@softistx/material 3.249.0 → 3.250.0

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.
@@ -6,8 +6,8 @@ import * as k from "react-dom";
6
6
  import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
7
7
  import { getNonce as ee } from "@softistx/material-core/csp-nonce";
8
8
  import { forwardEscape as N } from "@softistx/material-core/escape-forward";
9
- import { shapeOutline as te, toSvgPath as ne } from "@softistx/material-core/shapes";
10
- import { inertOthers as re } from "@softistx/material-core/inert-others";
9
+ import { inertOthers as te } from "@softistx/material-core/inert-others";
10
+ import { shapeOutline as ne, toSvgPath as re } from "@softistx/material-core/shapes";
11
11
  //#region ../../node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
12
12
  var ie = Object.defineProperty, ae = (e, t) => ie(e, "name", {
13
13
  value: t,
@@ -906,33 +906,33 @@ function yt() {
906
906
  mt(yt, "createFocusGuard");
907
907
  //#endregion
908
908
  //#region ../../node_modules/react-remove-scroll/node_modules/tslib/tslib.es6.mjs
909
- var bt = function() {
910
- return bt = Object.assign || function(e) {
909
+ var z = function() {
910
+ return z = Object.assign || function(e) {
911
911
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
912
912
  return e;
913
- }, bt.apply(this, arguments);
913
+ }, z.apply(this, arguments);
914
914
  };
915
- function xt(e, t) {
915
+ function bt(e, t) {
916
916
  var n = {};
917
917
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
918
918
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
919
919
  return n;
920
920
  }
921
- function St(e, t, n) {
921
+ function xt(e, t, n) {
922
922
  if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
923
923
  return e.concat(a || Array.prototype.slice.call(t));
924
924
  }
925
925
  //#endregion
926
926
  //#region ../../node_modules/react-remove-scroll-bar/dist/es2015/constants.js
927
- var Ct = "right-scroll-bar-position", wt = "width-before-scroll-bar", Tt = "with-scroll-bars-hidden", Et = "--removed-body-scroll-bar-size";
927
+ var St = "right-scroll-bar-position", Ct = "width-before-scroll-bar", wt = "with-scroll-bars-hidden", Tt = "--removed-body-scroll-bar-size";
928
928
  //#endregion
929
929
  //#region ../../node_modules/use-callback-ref/dist/es2015/assignRef.js
930
- function Dt(e, t) {
930
+ function Et(e, t) {
931
931
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
932
932
  }
933
933
  //#endregion
934
934
  //#region ../../node_modules/use-callback-ref/dist/es2015/useRef.js
935
- function Ot(e, t) {
935
+ function Dt(e, t) {
936
936
  var n = D(function() {
937
937
  return {
938
938
  value: e,
@@ -952,35 +952,35 @@ function Ot(e, t) {
952
952
  }
953
953
  //#endregion
954
954
  //#region ../../node_modules/use-callback-ref/dist/es2015/useMergeRef.js
955
- var kt = typeof window < "u" ? y.useLayoutEffect : y.useEffect, At = /* @__PURE__ */ new WeakMap();
956
- function jt(e, t) {
957
- var n = Ot(t || null, function(t) {
955
+ var Ot = typeof window < "u" ? y.useLayoutEffect : y.useEffect, kt = /* @__PURE__ */ new WeakMap();
956
+ function At(e, t) {
957
+ var n = Dt(t || null, function(t) {
958
958
  return e.forEach(function(e) {
959
- return Dt(e, t);
959
+ return Et(e, t);
960
960
  });
961
961
  });
962
- return kt(function() {
963
- var t = At.get(n);
962
+ return Ot(function() {
963
+ var t = kt.get(n);
964
964
  if (t) {
965
965
  var r = new Set(t), i = new Set(e), a = n.current;
966
966
  r.forEach(function(e) {
967
- i.has(e) || Dt(e, null);
967
+ i.has(e) || Et(e, null);
968
968
  }), i.forEach(function(e) {
969
- r.has(e) || Dt(e, a);
969
+ r.has(e) || Et(e, a);
970
970
  });
971
971
  }
972
- At.set(n, e);
972
+ kt.set(n, e);
973
973
  }, [e]), n;
974
974
  }
975
975
  //#endregion
976
976
  //#region ../../node_modules/use-sidecar/node_modules/tslib/tslib.es6.mjs
977
- var Mt = function() {
978
- return Mt = Object.assign || function(e) {
977
+ var jt = function() {
978
+ return jt = Object.assign || function(e) {
979
979
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
980
980
  return e;
981
- }, Mt.apply(this, arguments);
981
+ }, jt.apply(this, arguments);
982
982
  };
983
- function Nt(e, t) {
983
+ function Mt(e, t) {
984
984
  var n = {};
985
985
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
986
986
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
@@ -988,11 +988,11 @@ function Nt(e, t) {
988
988
  }
989
989
  //#endregion
990
990
  //#region ../../node_modules/use-sidecar/dist/es2015/medium.js
991
- function Pt(e) {
991
+ function Nt(e) {
992
992
  return e;
993
993
  }
994
- function Ft(e, t) {
995
- t === void 0 && (t = Pt);
994
+ function Pt(e, t) {
995
+ t === void 0 && (t = Nt);
996
996
  var n = [], r = !1;
997
997
  return {
998
998
  read: function() {
@@ -1045,35 +1045,35 @@ function Ft(e, t) {
1045
1045
  }
1046
1046
  };
1047
1047
  }
1048
- function It(e) {
1048
+ function Ft(e) {
1049
1049
  e === void 0 && (e = {});
1050
- var t = Ft(null);
1051
- return t.options = Mt({
1050
+ var t = Pt(null);
1051
+ return t.options = jt({
1052
1052
  async: !0,
1053
1053
  ssr: !1
1054
1054
  }, e), t;
1055
1055
  }
1056
1056
  //#endregion
1057
1057
  //#region ../../node_modules/use-sidecar/dist/es2015/exports.js
1058
- var Lt = function(e) {
1059
- var t = e.sideCar, n = Nt(e, ["sideCar"]);
1058
+ var It = function(e) {
1059
+ var t = e.sideCar, n = Mt(e, ["sideCar"]);
1060
1060
  if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
1061
1061
  var r = t.read();
1062
1062
  if (!r) throw Error("Sidecar medium not found");
1063
- return y.createElement(r, Mt({}, n));
1063
+ return y.createElement(r, jt({}, n));
1064
1064
  };
1065
- Lt.isSideCarExport = !0;
1066
- function Rt(e, t) {
1067
- return e.useMedium(t), Lt;
1065
+ It.isSideCarExport = !0;
1066
+ function Lt(e, t) {
1067
+ return e.useMedium(t), It;
1068
1068
  }
1069
1069
  //#endregion
1070
1070
  //#region ../../node_modules/react-remove-scroll/dist/es2015/medium.js
1071
- var zt = It(), Bt = function() {}, Vt = y.forwardRef(function(e, t) {
1071
+ var Rt = Ft(), zt = function() {}, Bt = y.forwardRef(function(e, t) {
1072
1072
  var n = y.useRef(null), r = y.useState({
1073
- onScrollCapture: Bt,
1074
- onWheelCapture: Bt,
1075
- onTouchMoveCapture: Bt
1076
- }), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, m = e.noIsolation, h = e.inert, g = e.allowPinchZoom, _ = e.as, v = _ === void 0 ? "div" : _, b = e.gapMode, x = xt(e, [
1073
+ onScrollCapture: zt,
1074
+ onWheelCapture: zt,
1075
+ onTouchMoveCapture: zt
1076
+ }), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, m = e.noIsolation, h = e.inert, g = e.allowPinchZoom, _ = e.as, v = _ === void 0 ? "div" : _, b = e.gapMode, x = bt(e, [
1077
1077
  "forwardProps",
1078
1078
  "children",
1079
1079
  "className",
@@ -1087,9 +1087,9 @@ var zt = It(), Bt = function() {}, Vt = y.forwardRef(function(e, t) {
1087
1087
  "allowPinchZoom",
1088
1088
  "as",
1089
1089
  "gapMode"
1090
- ]), S = f, C = jt([n, t]), w = bt(bt({}, x), i);
1090
+ ]), S = f, C = At([n, t]), w = z(z({}, x), i);
1091
1091
  return y.createElement(y.Fragment, null, u && y.createElement(S, {
1092
- sideCar: zt,
1092
+ sideCar: Rt,
1093
1093
  removeScrollBar: l,
1094
1094
  shards: d,
1095
1095
  noRelative: p,
@@ -1099,46 +1099,46 @@ var zt = It(), Bt = function() {}, Vt = y.forwardRef(function(e, t) {
1099
1099
  allowPinchZoom: !!g,
1100
1100
  lockRef: n,
1101
1101
  gapMode: b
1102
- }), o ? y.cloneElement(y.Children.only(s), bt(bt({}, w), { ref: C })) : y.createElement(v, bt({}, w, {
1102
+ }), o ? y.cloneElement(y.Children.only(s), z(z({}, w), { ref: C })) : y.createElement(v, z({}, w, {
1103
1103
  className: c,
1104
1104
  ref: C
1105
1105
  }), s));
1106
1106
  });
1107
- Vt.defaultProps = {
1107
+ Bt.defaultProps = {
1108
1108
  enabled: !0,
1109
1109
  removeScrollBar: !0,
1110
1110
  inert: !1
1111
- }, Vt.classNames = {
1112
- fullWidth: wt,
1113
- zeroRight: Ct
1111
+ }, Bt.classNames = {
1112
+ fullWidth: Ct,
1113
+ zeroRight: St
1114
1114
  };
1115
1115
  //#endregion
1116
1116
  //#region ../../node_modules/react-style-singleton/dist/es2015/singleton.js
1117
- function Ht() {
1117
+ function Vt() {
1118
1118
  if (!document) return null;
1119
1119
  var e = document.createElement("style");
1120
1120
  e.type = "text/css";
1121
1121
  var t = ee();
1122
1122
  return t && e.setAttribute("nonce", t), e;
1123
1123
  }
1124
- function Ut(e, t) {
1124
+ function Ht(e, t) {
1125
1125
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
1126
1126
  }
1127
- function Wt(e) {
1127
+ function Ut(e) {
1128
1128
  (document.head || document.getElementsByTagName("head")[0]).appendChild(e);
1129
1129
  }
1130
- var Gt = function() {
1130
+ var Wt = function() {
1131
1131
  var e = 0, t = null;
1132
1132
  return {
1133
1133
  add: function(n) {
1134
- e == 0 && (t = Ht()) && (Ut(t, n), Wt(t)), e++;
1134
+ e == 0 && (t = Vt()) && (Ht(t, n), Ut(t)), e++;
1135
1135
  },
1136
1136
  remove: function() {
1137
1137
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
1138
1138
  }
1139
1139
  };
1140
- }, Kt = function() {
1141
- var e = Gt();
1140
+ }, Gt = function() {
1141
+ var e = Wt();
1142
1142
  return function(t, n) {
1143
1143
  y.useEffect(function() {
1144
1144
  return e.add(t), function() {
@@ -1146,43 +1146,43 @@ var Gt = function() {
1146
1146
  };
1147
1147
  }, [t && n]);
1148
1148
  };
1149
- }, qt = function() {
1150
- var e = Kt();
1149
+ }, Kt = function() {
1150
+ var e = Gt();
1151
1151
  return function(t) {
1152
1152
  var n = t.styles, r = t.dynamic;
1153
1153
  return e(n, r), null;
1154
1154
  };
1155
- }, Jt = {
1155
+ }, qt = {
1156
1156
  left: 0,
1157
1157
  top: 0,
1158
1158
  right: 0,
1159
1159
  gap: 0
1160
- }, Yt = function(e) {
1160
+ }, Jt = function(e) {
1161
1161
  return parseInt(e || "", 10) || 0;
1162
- }, Xt = function(e) {
1162
+ }, Yt = function(e) {
1163
1163
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
1164
1164
  return [
1165
- Yt(n),
1166
- Yt(r),
1167
- Yt(i)
1165
+ Jt(n),
1166
+ Jt(r),
1167
+ Jt(i)
1168
1168
  ];
1169
- }, Zt = function(e) {
1170
- if (e === void 0 && (e = "margin"), typeof window > "u") return Jt;
1171
- var t = Xt(e), n = document.documentElement.clientWidth, r = window.innerWidth;
1169
+ }, Xt = function(e) {
1170
+ if (e === void 0 && (e = "margin"), typeof window > "u") return qt;
1171
+ var t = Yt(e), n = document.documentElement.clientWidth, r = window.innerWidth;
1172
1172
  return {
1173
1173
  left: t[0],
1174
1174
  top: t[1],
1175
1175
  right: t[2],
1176
1176
  gap: Math.max(0, r - n + t[2] - t[0])
1177
1177
  };
1178
- }, Qt = qt(), $t = "data-scroll-locked", en = function(e, t, n, r) {
1178
+ }, Zt = Kt(), Qt = "data-scroll-locked", $t = function(e, t, n, r) {
1179
1179
  var i = e.left, a = e.top, o = e.right, s = e.gap;
1180
1180
  return n === void 0 && (n = "margin"), `
1181
- .${Tt} {
1181
+ .${wt} {
1182
1182
  overflow: hidden ${r};
1183
1183
  padding-right: ${s}px ${r};
1184
1184
  }
1185
- body[${$t}] {
1185
+ body[${Qt}] {
1186
1186
  overflow: hidden ${r};
1187
1187
  overscroll-behavior: contain;
1188
1188
  ${[
@@ -1199,122 +1199,122 @@ var Gt = function() {
1199
1199
  ].filter(Boolean).join("")}
1200
1200
  }
1201
1201
 
1202
- .${Ct} {
1202
+ .${St} {
1203
1203
  right: ${s}px ${r};
1204
1204
  }
1205
1205
 
1206
- .${wt} {
1206
+ .${Ct} {
1207
1207
  margin-right: ${s}px ${r};
1208
1208
  }
1209
1209
 
1210
- .${Ct} .${Ct} {
1210
+ .${St} .${St} {
1211
1211
  right: 0 ${r};
1212
1212
  }
1213
1213
 
1214
- .${wt} .${wt} {
1214
+ .${Ct} .${Ct} {
1215
1215
  margin-right: 0 ${r};
1216
1216
  }
1217
1217
 
1218
- body[${$t}] {
1219
- ${Et}: ${s}px;
1218
+ body[${Qt}] {
1219
+ ${Tt}: ${s}px;
1220
1220
  }
1221
1221
  `;
1222
- }, tn = function() {
1222
+ }, en = function() {
1223
1223
  var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
1224
1224
  return isFinite(e) ? e : 0;
1225
- }, nn = function() {
1225
+ }, tn = function() {
1226
1226
  y.useEffect(function() {
1227
- return document.body.setAttribute($t, (tn() + 1).toString()), function() {
1228
- var e = tn() - 1;
1229
- e <= 0 ? document.body.removeAttribute($t) : document.body.setAttribute($t, e.toString());
1227
+ return document.body.setAttribute(Qt, (en() + 1).toString()), function() {
1228
+ var e = en() - 1;
1229
+ e <= 0 ? document.body.removeAttribute(Qt) : document.body.setAttribute(Qt, e.toString());
1230
1230
  };
1231
1231
  }, []);
1232
- }, rn = function(e) {
1232
+ }, nn = function(e) {
1233
1233
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
1234
- nn();
1234
+ tn();
1235
1235
  var a = y.useMemo(function() {
1236
- return Zt(i);
1236
+ return Xt(i);
1237
1237
  }, [i]);
1238
- return y.createElement(Qt, { styles: en(a, !t, i, n ? "" : "!important") });
1239
- }, an = !1;
1238
+ return y.createElement(Zt, { styles: $t(a, !t, i, n ? "" : "!important") });
1239
+ }, rn = !1;
1240
1240
  if (typeof window < "u") try {
1241
- var on = Object.defineProperty({}, "passive", { get: function() {
1242
- return an = !0, !0;
1241
+ var an = Object.defineProperty({}, "passive", { get: function() {
1242
+ return rn = !0, !0;
1243
1243
  } });
1244
- window.addEventListener("test", on, on), window.removeEventListener("test", on, on);
1244
+ window.addEventListener("test", an, an), window.removeEventListener("test", an, an);
1245
1245
  } catch {
1246
- an = !1;
1246
+ rn = !1;
1247
1247
  }
1248
- var sn = an ? { passive: !1 } : !1, cn = function(e) {
1248
+ var on = rn ? { passive: !1 } : !1, sn = function(e) {
1249
1249
  return e.tagName === "TEXTAREA";
1250
- }, ln = function(e, t) {
1250
+ }, cn = function(e, t) {
1251
1251
  if (!(e instanceof Element)) return !1;
1252
1252
  var n = window.getComputedStyle(e);
1253
- return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !cn(e) && n[t] === "visible");
1253
+ return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !sn(e) && n[t] === "visible");
1254
+ }, ln = function(e) {
1255
+ return cn(e, "overflowY");
1254
1256
  }, un = function(e) {
1255
- return ln(e, "overflowY");
1256
- }, dn = function(e) {
1257
- return ln(e, "overflowX");
1258
- }, fn = function(e, t) {
1257
+ return cn(e, "overflowX");
1258
+ }, dn = function(e, t) {
1259
1259
  var n = t.ownerDocument, r = t;
1260
1260
  do {
1261
- if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), hn(e, r)) {
1262
- var i = gn(e, r);
1261
+ if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), mn(e, r)) {
1262
+ var i = hn(e, r);
1263
1263
  if (i[1] > i[2]) return !0;
1264
1264
  }
1265
1265
  r = r.parentNode;
1266
1266
  } while (r && r !== n.body);
1267
1267
  return !1;
1268
- }, pn = function(e) {
1268
+ }, fn = function(e) {
1269
1269
  return [
1270
1270
  e.scrollTop,
1271
1271
  e.scrollHeight,
1272
1272
  e.clientHeight
1273
1273
  ];
1274
- }, mn = function(e) {
1274
+ }, pn = function(e) {
1275
1275
  return [
1276
1276
  e.scrollLeft,
1277
1277
  e.scrollWidth,
1278
1278
  e.clientWidth
1279
1279
  ];
1280
+ }, mn = function(e, t) {
1281
+ return e === "v" ? ln(t) : un(t);
1280
1282
  }, hn = function(e, t) {
1281
- return e === "v" ? un(t) : dn(t);
1283
+ return e === "v" ? fn(t) : pn(t);
1282
1284
  }, gn = function(e, t) {
1283
- return e === "v" ? pn(t) : mn(t);
1284
- }, _n = function(e, t) {
1285
1285
  return e === "h" && t === "rtl" ? -1 : 1;
1286
- }, vn = function(e, t, n, r, i) {
1287
- var a = _n(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
1286
+ }, _n = function(e, t, n, r, i) {
1287
+ var a = gn(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
1288
1288
  do {
1289
1289
  if (!s) break;
1290
- var p = gn(e, s), m = p[0], h = p[1] - p[2] - a * m;
1291
- (m || h) && hn(e, s) && (d += h, f += m);
1290
+ var p = hn(e, s), m = p[0], h = p[1] - p[2] - a * m;
1291
+ (m || h) && mn(e, s) && (d += h, f += m);
1292
1292
  var g = s.parentNode;
1293
1293
  s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
1294
1294
  } while (!c && s !== document.body || c && (t.contains(s) || t === s));
1295
1295
  return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
1296
- }, yn = function(e) {
1296
+ }, vn = function(e) {
1297
1297
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
1298
- }, bn = function(e) {
1298
+ }, yn = function(e) {
1299
1299
  return [e.deltaX, e.deltaY];
1300
- }, xn = function(e) {
1300
+ }, bn = function(e) {
1301
1301
  return e && "current" in e ? e.current : e;
1302
- }, Sn = function(e, t) {
1302
+ }, xn = function(e, t) {
1303
1303
  return e[0] === t[0] && e[1] === t[1];
1304
- }, Cn = function(e) {
1304
+ }, Sn = function(e) {
1305
1305
  return `
1306
1306
  .block-interactivity-${e} {pointer-events: none;}
1307
1307
  .allow-interactivity-${e} {pointer-events: all;}
1308
1308
  `;
1309
- }, wn = 0, Tn = [];
1310
- function En(e) {
1311
- var t = y.useRef([]), n = y.useRef([0, 0]), r = y.useRef(), i = y.useState(wn++)[0], a = y.useState(qt)[0], o = y.useRef(e);
1309
+ }, Cn = 0, wn = [];
1310
+ function Tn(e) {
1311
+ var t = y.useRef([]), n = y.useRef([0, 0]), r = y.useRef(), i = y.useState(Cn++)[0], a = y.useState(Kt)[0], o = y.useRef(e);
1312
1312
  y.useEffect(function() {
1313
1313
  o.current = e;
1314
1314
  }, [e]), y.useEffect(function() {
1315
1315
  if (e.inert) {
1316
1316
  document.body.classList.add(`block-interactivity-${i}`);
1317
- var t = St([e.lockRef.current], (e.shards || []).map(xn), !0).filter(Boolean);
1317
+ var t = xt([e.lockRef.current], (e.shards || []).map(bn), !0).filter(Boolean);
1318
1318
  return t.forEach(function(e) {
1319
1319
  return e.classList.add(`allow-interactivity-${i}`);
1320
1320
  }), function() {
@@ -1330,28 +1330,28 @@ function En(e) {
1330
1330
  ]);
1331
1331
  var s = y.useCallback(function(e, t) {
1332
1332
  if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
1333
- var i = yn(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
1333
+ var i = vn(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
1334
1334
  if ("touches" in e && d === "h" && u.type === "range") return !1;
1335
1335
  var f = window.getSelection(), p = f && f.anchorNode;
1336
1336
  if (p && (p === u || p.contains(u))) return !1;
1337
- var m = fn(d, u);
1337
+ var m = dn(d, u);
1338
1338
  if (!m) return !0;
1339
- if (m ? l = d : (l = d === "v" ? "h" : "v", m = fn(d, u)), !m) return !1;
1339
+ if (m ? l = d : (l = d === "v" ? "h" : "v", m = dn(d, u)), !m) return !1;
1340
1340
  if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
1341
1341
  var h = r.current || l;
1342
- return vn(h, t, e, h === "h" ? s : c, !0);
1342
+ return _n(h, t, e, h === "h" ? s : c, !0);
1343
1343
  }, []), c = y.useCallback(function(e) {
1344
1344
  var n = e;
1345
- if (!(!Tn.length || Tn[Tn.length - 1] !== a)) {
1346
- var r = "deltaY" in n ? bn(n) : yn(n), i = t.current.filter(function(e) {
1347
- return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && Sn(e.delta, r);
1345
+ if (!(!wn.length || wn[wn.length - 1] !== a)) {
1346
+ var r = "deltaY" in n ? yn(n) : vn(n), i = t.current.filter(function(e) {
1347
+ return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && xn(e.delta, r);
1348
1348
  })[0];
1349
1349
  if (i && i.should) {
1350
1350
  n.cancelable && n.preventDefault();
1351
1351
  return;
1352
1352
  }
1353
1353
  if (!i) {
1354
- var c = (o.current.shards || []).map(xn).filter(Boolean).filter(function(e) {
1354
+ var c = (o.current.shards || []).map(bn).filter(Boolean).filter(function(e) {
1355
1355
  return e.contains(n.target);
1356
1356
  });
1357
1357
  (c.length > 0 ? s(n, c[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
@@ -1363,7 +1363,7 @@ function En(e) {
1363
1363
  delta: n,
1364
1364
  target: r,
1365
1365
  should: i,
1366
- shadowParent: Dn(r)
1366
+ shadowParent: En(r)
1367
1367
  };
1368
1368
  t.current.push(a), setTimeout(function() {
1369
1369
  t.current = t.current.filter(function(e) {
@@ -1371,60 +1371,60 @@ function En(e) {
1371
1371
  });
1372
1372
  }, 1);
1373
1373
  }, []), u = y.useCallback(function(e) {
1374
- n.current = yn(e), r.current = void 0;
1374
+ n.current = vn(e), r.current = void 0;
1375
1375
  }, []), d = y.useCallback(function(t) {
1376
- l(t.type, bn(t), t.target, s(t, e.lockRef.current));
1377
- }, []), f = y.useCallback(function(t) {
1378
1376
  l(t.type, yn(t), t.target, s(t, e.lockRef.current));
1377
+ }, []), f = y.useCallback(function(t) {
1378
+ l(t.type, vn(t), t.target, s(t, e.lockRef.current));
1379
1379
  }, []);
1380
1380
  y.useEffect(function() {
1381
- return Tn.push(a), e.setCallbacks({
1381
+ return wn.push(a), e.setCallbacks({
1382
1382
  onScrollCapture: d,
1383
1383
  onWheelCapture: d,
1384
1384
  onTouchMoveCapture: f
1385
- }), document.addEventListener("wheel", c, sn), document.addEventListener("touchmove", c, sn), document.addEventListener("touchstart", u, sn), function() {
1386
- Tn = Tn.filter(function(e) {
1385
+ }), document.addEventListener("wheel", c, on), document.addEventListener("touchmove", c, on), document.addEventListener("touchstart", u, on), function() {
1386
+ wn = wn.filter(function(e) {
1387
1387
  return e !== a;
1388
- }), document.removeEventListener("wheel", c, sn), document.removeEventListener("touchmove", c, sn), document.removeEventListener("touchstart", u, sn);
1388
+ }), document.removeEventListener("wheel", c, on), document.removeEventListener("touchmove", c, on), document.removeEventListener("touchstart", u, on);
1389
1389
  };
1390
1390
  }, []);
1391
1391
  var p = e.removeScrollBar, m = e.inert;
1392
- return y.createElement(y.Fragment, null, m ? y.createElement(a, { styles: Cn(i) }) : null, p ? y.createElement(rn, {
1392
+ return y.createElement(y.Fragment, null, m ? y.createElement(a, { styles: Sn(i) }) : null, p ? y.createElement(nn, {
1393
1393
  noRelative: e.noRelative,
1394
1394
  gapMode: e.gapMode
1395
1395
  }) : null);
1396
1396
  }
1397
- function Dn(e) {
1397
+ function En(e) {
1398
1398
  for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
1399
1399
  return t;
1400
1400
  }
1401
1401
  //#endregion
1402
1402
  //#region ../../node_modules/react-remove-scroll/dist/es2015/sidecar.js
1403
- var On = Rt(zt, En), kn = y.forwardRef(function(e, t) {
1404
- return y.createElement(Vt, bt({}, e, {
1403
+ var Dn = Lt(Rt, Tn), On = y.forwardRef(function(e, t) {
1404
+ return y.createElement(Bt, z({}, e, {
1405
1405
  ref: t,
1406
- sideCar: On
1406
+ sideCar: Dn
1407
1407
  }));
1408
1408
  });
1409
- kn.classNames = Vt.classNames;
1409
+ On.classNames = Bt.classNames;
1410
1410
  //#endregion
1411
1411
  //#region ../../node_modules/aria-hidden/dist/es2015/index.js
1412
- var An = function(e) {
1412
+ var kn = function(e) {
1413
1413
  return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
1414
- }, jn = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), Nn = {}, Pn = 0, Fn = function(e) {
1415
- return e && (e.host || Fn(e.parentNode));
1416
- }, In = function(e, t) {
1414
+ }, An = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), Mn = {}, Nn = 0, Pn = function(e) {
1415
+ return e && (e.host || Pn(e.parentNode));
1416
+ }, Fn = function(e, t) {
1417
1417
  return t.map(function(t) {
1418
1418
  if (e.contains(t)) return t;
1419
- var n = Fn(t);
1419
+ var n = Pn(t);
1420
1420
  return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
1421
1421
  }).filter(function(e) {
1422
1422
  return !!e;
1423
1423
  });
1424
- }, Ln = function(e, t, n, r) {
1425
- var i = In(t, Array.isArray(e) ? e : [e]);
1426
- Nn[n] || (Nn[n] = /* @__PURE__ */ new WeakMap());
1427
- var a = Nn[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
1424
+ }, In = function(e, t, n, r) {
1425
+ var i = Fn(t, Array.isArray(e) ? e : [e]);
1426
+ Mn[n] || (Mn[n] = /* @__PURE__ */ new WeakMap());
1427
+ var a = Mn[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
1428
1428
  !e || s.has(e) || (s.add(e), l(e.parentNode));
1429
1429
  };
1430
1430
  i.forEach(l);
@@ -1432,46 +1432,46 @@ var An = function(e) {
1432
1432
  !e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
1433
1433
  if (s.has(e)) u(e);
1434
1434
  else try {
1435
- var t = e.getAttribute(r), i = t !== null && t !== "false", c = (jn.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
1436
- jn.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Mn.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
1435
+ var t = e.getAttribute(r), i = t !== null && t !== "false", c = (An.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
1436
+ An.set(e, c), a.set(e, l), o.push(e), c === 1 && i && jn.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
1437
1437
  } catch (t) {
1438
1438
  console.error("aria-hidden: cannot operate on ", e, t);
1439
1439
  }
1440
1440
  });
1441
1441
  };
1442
- return u(t), s.clear(), Pn++, function() {
1442
+ return u(t), s.clear(), Nn++, function() {
1443
1443
  o.forEach(function(e) {
1444
- var t = jn.get(e) - 1, i = a.get(e) - 1;
1445
- jn.set(e, t), a.set(e, i), t || (Mn.has(e) || e.removeAttribute(r), Mn.delete(e)), i || e.removeAttribute(n);
1446
- }), Pn--, Pn || (jn = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), Nn = {});
1444
+ var t = An.get(e) - 1, i = a.get(e) - 1;
1445
+ An.set(e, t), a.set(e, i), t || (jn.has(e) || e.removeAttribute(r), jn.delete(e)), i || e.removeAttribute(n);
1446
+ }), Nn--, Nn || (An = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), Mn = {});
1447
1447
  };
1448
- }, Rn = function(e, t, n) {
1448
+ }, Ln = function(e, t, n) {
1449
1449
  n === void 0 && (n = "data-aria-hidden");
1450
- var r = Array.from(Array.isArray(e) ? e : [e]), i = t || An(e);
1451
- return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Ln(r, i, n, "aria-hidden")) : function() {
1450
+ var r = Array.from(Array.isArray(e) ? e : [e]), i = t || kn(e);
1451
+ return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), In(r, i, n, "aria-hidden")) : function() {
1452
1452
  return null;
1453
1453
  };
1454
- }, zn = [
1454
+ }, Rn = [
1455
1455
  "top",
1456
1456
  "right",
1457
1457
  "bottom",
1458
1458
  "left"
1459
- ], z = Math.min, B = Math.max, Bn = Math.round, Vn = Math.floor, V = (e) => ({
1459
+ ], B = Math.min, V = Math.max, zn = Math.round, Bn = Math.floor, H = (e) => ({
1460
1460
  x: e,
1461
1461
  y: e
1462
- }), Hn = {
1462
+ }), Vn = {
1463
1463
  left: "right",
1464
1464
  right: "left",
1465
1465
  bottom: "top",
1466
1466
  top: "bottom"
1467
1467
  };
1468
- function Un(e, t, n) {
1469
- return B(e, z(t, n));
1468
+ function Hn(e, t, n) {
1469
+ return V(e, B(t, n));
1470
1470
  }
1471
- function H(e, t) {
1471
+ function U(e, t) {
1472
1472
  return typeof e == "function" ? e(t) : e;
1473
1473
  }
1474
- function U(e) {
1474
+ function Un(e) {
1475
1475
  return e.split("-")[0];
1476
1476
  }
1477
1477
  function Wn(e) {
@@ -1517,12 +1517,12 @@ function tr(e, t, n) {
1517
1517
  }
1518
1518
  }
1519
1519
  function nr(e, t, n, r) {
1520
- let i = Wn(e), a = tr(U(e), n === "start", r);
1520
+ let i = Wn(e), a = tr(Un(e), n === "start", r);
1521
1521
  return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Xn)))), a;
1522
1522
  }
1523
1523
  function rr(e) {
1524
- let t = U(e);
1525
- return Hn[t] + e.slice(t.length);
1524
+ let t = Un(e);
1525
+ return Vn[t] + e.slice(t.length);
1526
1526
  }
1527
1527
  function ir(e) {
1528
1528
  return {
@@ -1556,7 +1556,7 @@ function or(e) {
1556
1556
  //#endregion
1557
1557
  //#region ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
1558
1558
  function sr(e, t, n) {
1559
- let { reference: r, floating: i } = e, a = W(t), o = qn(t), s = Kn(o), c = U(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
1559
+ let { reference: r, floating: i } = e, a = W(t), o = qn(t), s = Kn(o), c = Un(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
1560
1560
  switch (c) {
1561
1561
  case "top":
1562
1562
  p = {
@@ -1592,7 +1592,7 @@ function sr(e, t, n) {
1592
1592
  }
1593
1593
  async function cr(e, t) {
1594
1594
  t === void 0 && (t = {});
1595
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = H(t, e), p = ar(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = or(await i.getClippingRect({
1595
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = U(t, e), p = ar(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = or(await i.getClippingRect({
1596
1596
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
1597
1597
  boundary: c,
1598
1598
  rootBoundary: l,
@@ -1664,14 +1664,14 @@ var lr = 50, ur = async (e, t, n) => {
1664
1664
  name: "arrow",
1665
1665
  options: e,
1666
1666
  async fn(t) {
1667
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = H(e, t) || {};
1667
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = U(e, t) || {};
1668
1668
  if (l == null) return {};
1669
1669
  let d = ar(u), f = {
1670
1670
  x: n,
1671
1671
  y: r
1672
1672
  }, p = qn(i), m = Kn(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
1673
1673
  (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
1674
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = z(d[_], T), D = z(d[v], T), O = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = Un(E, k, O), j = !c.arrow && Wn(i) != null && k !== A && a.reference[m] / 2 - (k < E ? E : D) - h[m] / 2 < 0, M = j ? k < E ? k - E : k - O : 0;
1674
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = B(d[_], T), D = B(d[v], T), O = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = Hn(E, k, O), j = !c.arrow && Wn(i) != null && k !== A && a.reference[m] / 2 - (k < E ? E : D) - h[m] / 2 < 0, M = j ? k < E ? k - E : k - O : 0;
1675
1675
  return {
1676
1676
  [p]: f[p] + M,
1677
1677
  data: {
@@ -1688,9 +1688,9 @@ var lr = 50, ur = async (e, t, n) => {
1688
1688
  options: e,
1689
1689
  async fn(t) {
1690
1690
  var n;
1691
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = H(e, t);
1691
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = U(e, t);
1692
1692
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
1693
- let g = U(r), _ = W(o), v = U(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [rr(o)] : Yn(o)), x = p !== "none";
1693
+ let g = Un(r), _ = W(o), v = Un(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [rr(o)] : Yn(o)), x = p !== "none";
1694
1694
  !d && x && b.push(...nr(o, m, p, y));
1695
1695
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
1696
1696
  if (l && w.push(C[g]), u) {
@@ -1741,14 +1741,14 @@ function pr(e, t) {
1741
1741
  };
1742
1742
  }
1743
1743
  function mr(e) {
1744
- return zn.some((t) => e[t] >= 0);
1744
+ return Rn.some((t) => e[t] >= 0);
1745
1745
  }
1746
1746
  var hr = function(e) {
1747
1747
  return e === void 0 && (e = {}), {
1748
1748
  name: "hide",
1749
1749
  options: e,
1750
1750
  async fn(t) {
1751
- let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = H(e, t);
1751
+ let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = U(e, t);
1752
1752
  switch (i) {
1753
1753
  case "referenceHidden": {
1754
1754
  let e = pr(await r.detectOverflow(t, {
@@ -1776,7 +1776,7 @@ var hr = function(e) {
1776
1776
  };
1777
1777
  }, gr = /*#__PURE__*/ new Set(["left", "top"]);
1778
1778
  async function _r(e, t) {
1779
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = U(n), s = Wn(n), c = W(n) === "y", l = gr.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = H(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
1779
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Un(n), s = Wn(n), c = W(n) === "y", l = gr.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = U(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
1780
1780
  mainAxis: d,
1781
1781
  crossAxis: 0,
1782
1782
  alignmentAxis: null
@@ -1821,10 +1821,10 @@ var vr = function(e) {
1821
1821
  x: t,
1822
1822
  y: n
1823
1823
  };
1824
- } }, ...l } = H(e, t), u = {
1824
+ } }, ...l } = U(e, t), u = {
1825
1825
  x: n,
1826
1826
  y: r
1827
- }, d = await a.detectOverflow(t, l), f = W(i), p = Gn(f), m = u[p], h = u[f], g = (e, t) => Un(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
1827
+ }, d = await a.detectOverflow(t, l), f = W(i), p = Gn(f), m = u[p], h = u[f], g = (e, t) => Hn(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
1828
1828
  o && (m = g(p, m)), s && (h = g(f, h));
1829
1829
  let _ = c.fn({
1830
1830
  ...t,
@@ -1848,10 +1848,10 @@ var vr = function(e) {
1848
1848
  return e === void 0 && (e = {}), {
1849
1849
  options: e,
1850
1850
  fn(t) {
1851
- let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = H(e, t), u = {
1851
+ let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = U(e, t), u = {
1852
1852
  x: n,
1853
1853
  y: r
1854
- }, d = W(i), f = Gn(d), p = u[f], m = u[d], h = H(s, t), g = typeof h == "number" ? {
1854
+ }, d = W(i), f = Gn(d), p = u[f], m = u[d], h = U(s, t), g = typeof h == "number" ? {
1855
1855
  mainAxis: h,
1856
1856
  crossAxis: 0
1857
1857
  } : {
@@ -1863,7 +1863,7 @@ var vr = function(e) {
1863
1863
  p < t ? p = t : p > n && (p = n);
1864
1864
  }
1865
1865
  if (l) {
1866
- let e = f === "y" ? "width" : "height", t = gr.has(U(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
1866
+ let e = f === "y" ? "width" : "height", t = gr.has(Un(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
1867
1867
  m < n ? m = n : m > r && (m = r);
1868
1868
  }
1869
1869
  return {
@@ -1877,10 +1877,10 @@ var vr = function(e) {
1877
1877
  name: "size",
1878
1878
  options: e,
1879
1879
  async fn(t) {
1880
- let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = H(e, t), c = await i.detectOverflow(t, s), l = U(n), u = Wn(n), d = W(n) === "y", { width: f, height: p } = r.floating, m, h;
1880
+ let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = U(e, t), c = await i.detectOverflow(t, s), l = Un(n), u = Wn(n), d = W(n) === "y", { width: f, height: p } = r.floating, m, h;
1881
1881
  l === "top" || l === "bottom" ? (m = l, h = u === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (h = l, m = u === "end" ? "top" : "bottom");
1882
- let g = p - c.top - c.bottom, _ = f - c.left - c.right, v = z(p - c[m], g), y = z(f - c[h], _), b = t.middlewareData.shift, x = !b, S = v, C = y;
1883
- b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 * B(c.left, c.right) : S = p - 2 * B(c.top, c.bottom)), await o({
1882
+ let g = p - c.top - c.bottom, _ = f - c.left - c.right, v = B(p - c[m], g), y = B(f - c[h], _), b = t.middlewareData.shift, x = !b, S = v, C = y;
1883
+ b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 * V(c.left, c.right) : S = p - 2 * V(c.top, c.bottom)), await o({
1884
1884
  ...t,
1885
1885
  availableWidth: C,
1886
1886
  availableHeight: S
@@ -1989,7 +1989,7 @@ function Hr(e) {
1989
1989
  //#endregion
1990
1990
  //#region ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
1991
1991
  function Ur(e) {
1992
- let t = J(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Tr(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Bn(n) !== a || Bn(r) !== o;
1992
+ let t = J(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Tr(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = zn(n) !== a || zn(r) !== o;
1993
1993
  return s && (n = a, r = o), {
1994
1994
  width: n,
1995
1995
  height: r,
@@ -2001,14 +2001,14 @@ function Wr(e) {
2001
2001
  }
2002
2002
  function Gr(e) {
2003
2003
  let t = Wr(e);
2004
- if (!Tr(t)) return V(1);
2005
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Ur(t), o = (a ? Bn(n.width) : n.width) / r, s = (a ? Bn(n.height) : n.height) / i;
2004
+ if (!Tr(t)) return H(1);
2005
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Ur(t), o = (a ? zn(n.width) : n.width) / r, s = (a ? zn(n.height) : n.height) / i;
2006
2006
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
2007
2007
  x: o,
2008
2008
  y: s
2009
2009
  };
2010
2010
  }
2011
- var Kr = /*#__PURE__*/ V(0);
2011
+ var Kr = /*#__PURE__*/ H(0);
2012
2012
  function qr(e) {
2013
2013
  let t = G(e);
2014
2014
  return !Ir() || !t.visualViewport ? Kr : {
@@ -2021,9 +2021,9 @@ function Jr(e, t, n) {
2021
2021
  }
2022
2022
  function Yr(e, t, n, r) {
2023
2023
  t === void 0 && (t = !1), n === void 0 && (n = !1);
2024
- let i = e.getBoundingClientRect(), a = Wr(e), o = V(1);
2024
+ let i = e.getBoundingClientRect(), a = Wr(e), o = H(1);
2025
2025
  t && (r ? q(r) && (o = Gr(r)) : o = Gr(e));
2026
- let s = Jr(a, n, r) ? qr(a) : V(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
2026
+ let s = Jr(a, n, r) ? qr(a) : H(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
2027
2027
  if (a && r) {
2028
2028
  let e = G(a), t = q(r) ? G(r) : r, n = e, i = Hr(n);
2029
2029
  for (; i && t !== n;) {
@@ -2055,12 +2055,12 @@ function Qr(e) {
2055
2055
  let c = {
2056
2056
  scrollLeft: 0,
2057
2057
  scrollTop: 0
2058
- }, l = V(1), u = V(0), d = Tr(r);
2058
+ }, l = H(1), u = H(0), d = Tr(r);
2059
2059
  if ((d || !a) && ((Cr(r) !== "body" || Dr(o)) && (c = Rr(r)), d)) {
2060
2060
  let e = Yr(r);
2061
2061
  l = Gr(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
2062
2062
  }
2063
- let f = o && !d && !a ? Zr(o, c) : V(0);
2063
+ let f = o && !d && !a ? Zr(o, c) : H(0);
2064
2064
  return {
2065
2065
  width: n.width * l.x,
2066
2066
  height: n.height * l.y,
@@ -2072,8 +2072,8 @@ function $r(e) {
2072
2072
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
2073
2073
  }
2074
2074
  function ei(e) {
2075
- let t = Rr(e), n = e.ownerDocument.body, r = B(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = B(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Xr(e), o = -t.scrollTop;
2076
- return J(n).direction === "rtl" && (a += B(e.clientWidth, n.clientWidth) - r), {
2075
+ let t = Rr(e), n = e.ownerDocument.body, r = V(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = V(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Xr(e), o = -t.scrollTop;
2076
+ return J(n).direction === "rtl" && (a += V(e.clientWidth, n.clientWidth) - r), {
2077
2077
  width: r,
2078
2078
  height: i,
2079
2079
  x: a,
@@ -2138,7 +2138,7 @@ function oi(e) {
2138
2138
  let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? kr(t) ? [] : ai(t, this._c) : [].concat(n), r], o = ii(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
2139
2139
  for (let e = 1; e < a.length; e++) {
2140
2140
  let n = ii(t, a[e], i);
2141
- s = B(n.top, s), c = z(n.right, c), l = z(n.bottom, l), u = B(n.left, u);
2141
+ s = V(n.top, s), c = B(n.right, c), l = B(n.bottom, l), u = V(n.left, u);
2142
2142
  }
2143
2143
  return {
2144
2144
  width: c - u,
@@ -2158,13 +2158,13 @@ function ci(e, t, n) {
2158
2158
  let r = Tr(t), i = K(t), a = n === "fixed", o = Yr(e, !0, a, t), s = {
2159
2159
  scrollLeft: 0,
2160
2160
  scrollTop: 0
2161
- }, c = V(0);
2161
+ }, c = H(0);
2162
2162
  if ((r || !a) && ((Cr(t) !== "body" || Dr(i)) && (s = Rr(t)), r)) {
2163
2163
  let e = Yr(t, !0, a, t);
2164
2164
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
2165
2165
  }
2166
2166
  !r && i && (c.x = Xr(i));
2167
- let l = i && !r && !a ? Zr(i, s) : V(0);
2167
+ let l = i && !r && !a ? Zr(i, s) : H(0);
2168
2168
  return {
2169
2169
  x: o.left + s.scrollLeft - c.x - l.x,
2170
2170
  y: o.top + s.scrollTop - c.y - l.y,
@@ -2236,9 +2236,9 @@ function gi(e, t, n) {
2236
2236
  n === void 0 && (n = !1), c === void 0 && (c = 1), o();
2237
2237
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
2238
2238
  if (n || t(), !f || !p) return;
2239
- let m = Vn(d), h = Vn(a.clientWidth - (u + f)), g = Vn(a.clientHeight - (d + p)), _ = Vn(u), v = {
2239
+ let m = Bn(d), h = Bn(a.clientWidth - (u + f)), g = Bn(a.clientHeight - (d + p)), _ = Bn(u), v = {
2240
2240
  rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
2241
- threshold: B(0, z(1, c)) || 1
2241
+ threshold: V(0, B(1, c)) || 1
2242
2242
  }, y = !0;
2243
2243
  function b(t) {
2244
2244
  let n = t[0].intersectionRatio;
@@ -3614,8 +3614,88 @@ function es(e, t) {
3614
3614
  };
3615
3615
  }
3616
3616
  //#endregion
3617
+ //#region lib/components/ui/actions/button-group/button-group-reset.tsx
3618
+ function ts({ children: e }) {
3619
+ return /* @__PURE__ */ j(Ko, {
3620
+ value: void 0,
3621
+ children: e
3622
+ });
3623
+ }
3624
+ //#endregion
3625
+ //#region lib/components/ui/overlays/dialog/in-dialog.ts
3626
+ var ns = b(!1), rs = b(void 0);
3627
+ function is(e, n) {
3628
+ let [r, i] = D(null), [a, o] = as(r), s = E(null);
3629
+ return C(() => {
3630
+ if (!e || !a || !r || r.getAttribute("data-state") === "closed") return;
3631
+ let t = te(r);
3632
+ return s.current = t, () => {
3633
+ s.current = null, t();
3634
+ };
3635
+ }, [
3636
+ e,
3637
+ a,
3638
+ r
3639
+ ]), T(() => {
3640
+ !a || r?.getAttribute("data-state") !== "closed" || (s.current?.(), o(!1));
3641
+ }), t(i, n);
3642
+ }
3643
+ function as(e) {
3644
+ let [t, n] = D(!0);
3645
+ return C(() => {
3646
+ let t = e?.ownerDocument.defaultView?.MutationObserver;
3647
+ if (!e || !t) return;
3648
+ let r = () => n(e.getAttribute("data-state") !== "closed");
3649
+ r();
3650
+ let i = new t(r);
3651
+ return i.observe(e, { attributeFilter: ["data-state"] }), () => i.disconnect();
3652
+ }, [e]), [t, n];
3653
+ }
3654
+ function os(e, t) {
3655
+ return is(S(rs) ?? e, t);
3656
+ }
3657
+ //#endregion
3658
+ //#region lib/components/ui/primitives/field-box/field-box.ts
3659
+ var ss = "nxgt-field-box";
3660
+ //#endregion
3661
+ //#region lib/components/ui/primitives/label/label.tsx
3662
+ function cs() {
3663
+ return /* @__PURE__ */ j("svg", {
3664
+ "data-slot": "label-required-mark",
3665
+ "aria-hidden": "true",
3666
+ focusable: "false",
3667
+ viewBox: "0 0 10 10",
3668
+ fill: "none",
3669
+ stroke: "currentColor",
3670
+ strokeWidth: "1.75",
3671
+ strokeLinecap: "round",
3672
+ children: /* @__PURE__ */ j("path", { d: "M5 1v8M1.5 3l7 4M8.5 3l-7 4" })
3673
+ });
3674
+ }
3675
+ function ls({ children: e }) {
3676
+ return /* @__PURE__ */ j("span", {
3677
+ "aria-hidden": "true",
3678
+ "data-slot": "label-required-glue",
3679
+ className: "whitespace-nowrap [&>svg]:align-text-top",
3680
+ children: e
3681
+ });
3682
+ }
3683
+ function us({ className: e, withAsterisk: t, ...n }) {
3684
+ return /* @__PURE__ */ j(Ua, {
3685
+ "data-slot": "label",
3686
+ className: _("flex items-center gap-2 text-sm leading-5 -my-[3px] empty:my-0 font-semibold select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
3687
+ ...n,
3688
+ children: t ? /* @__PURE__ */ M("span", {
3689
+ "data-slot": "label-text",
3690
+ "data-required": "",
3691
+ className: "min-w-0",
3692
+ children: [n.children, /* @__PURE__ */ j(ls, { children: /* @__PURE__ */ j(cs, {}) })]
3693
+ }) : n.children
3694
+ });
3695
+ }
3696
+ //#endregion
3617
3697
  //#region lib/components/ui/actions/icon-button/icon-button.compound-variants.ts
3618
- var ts = [
3698
+ var ds = [
3619
3699
  {
3620
3700
  variant: "filled",
3621
3701
  color: "primary",
@@ -3791,7 +3871,7 @@ var ts = [
3791
3871
  color: "default",
3792
3872
  class: `${Z.default} ${Q.default} ${$.default} underline-offset-4 hover:underline hover:bg-foreground/10 active:bg-muted focus:bg-foreground/10`
3793
3873
  }
3794
- ], ns = f("inline-flex center gap-2 cursor-pointer whitespace-nowrap text-sm font-medium disabled:pointer-events-none [&_svg]:bg-transparent [&_svg]:text-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-(--btn-ic,1rem) shrink-0 [&_svg]:shrink-0", {
3874
+ ], fs = f("inline-flex center gap-2 cursor-pointer whitespace-nowrap text-sm font-medium disabled:pointer-events-none [&_svg]:bg-transparent [&_svg]:text-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-(--btn-ic,1rem) shrink-0 [&_svg]:shrink-0", {
3795
3875
  variants: {
3796
3876
  look: {
3797
3877
  btn: "nxgt-btn nxgt-morph-fill aria-invalid:[--btn-focus:var(--color-error)] aria-invalid:[--btn-line:var(--color-error)]",
@@ -3826,35 +3906,35 @@ var ts = [
3826
3906
  size: "legacy",
3827
3907
  width: "default"
3828
3908
  },
3829
- compoundVariants: [...ts, {
3909
+ compoundVariants: [...ds, {
3830
3910
  look: "btn",
3831
3911
  size: "legacy",
3832
3912
  width: "default",
3833
3913
  class: "[--btn-round:var(--nxgt-icon-button-radius,50%)]"
3834
3914
  }]
3835
3915
  });
3836
- function rs(e) {
3837
- return (t) => ns({
3916
+ function ps(e) {
3917
+ return (t) => fs({
3838
3918
  ...t,
3839
3919
  look: e,
3840
3920
  size: t?.size ?? "legacy",
3841
3921
  color: t?.variant === "ghost" && t.color == null ? "default" : t?.color
3842
3922
  });
3843
3923
  }
3844
- var is = rs("btn"), as = rs("shaped");
3924
+ var ms = ps("btn"), hs = ps("shaped");
3845
3925
  //#endregion
3846
3926
  //#region lib/components/ui/display/count-badge/format-count.ts
3847
- function os(e, t = 99) {
3927
+ function gs(e, t = 99) {
3848
3928
  let n = Math.max(0, Math.round(e));
3849
3929
  return n > t ? `${t}+` : String(n);
3850
3930
  }
3851
3931
  //#endregion
3852
3932
  //#region lib/components/ui/actions/icon-button/icon-button-badge.tsx
3853
- function ss(e) {
3854
- return e === void 0 || !Number.isFinite(e) || e < .5 ? null : os(e);
3933
+ function _s(e) {
3934
+ return e === void 0 || !Number.isFinite(e) || e < .5 ? null : gs(e);
3855
3935
  }
3856
- function cs({ badge: e, tone: t }) {
3857
- let n = ss(e);
3936
+ function vs({ badge: e, tone: t }) {
3937
+ let n = _s(e);
3858
3938
  return n === null ? null : /* @__PURE__ */ j("span", {
3859
3939
  "data-slot": "icon-button-badge",
3860
3940
  "aria-hidden": "true",
@@ -3865,7 +3945,7 @@ function cs({ badge: e, tone: t }) {
3865
3945
  }
3866
3946
  //#endregion
3867
3947
  //#region lib/components/ui/actions/icon-button/icon-button-busy.tsx
3868
- function ls(e, t) {
3948
+ function ys(e, t) {
3869
3949
  let n = es(!1, e);
3870
3950
  return {
3871
3951
  busyClassName: e ? "relative [&_[data-slot=icon]]:invisible" : void 0,
@@ -3876,7 +3956,7 @@ function ls(e, t) {
3876
3956
  }
3877
3957
  };
3878
3958
  }
3879
- function us({ variant: e, color: t }) {
3959
+ function bs({ variant: e, color: t }) {
3880
3960
  return /* @__PURE__ */ j(Qo, {
3881
3961
  variant: "2",
3882
3962
  color: e === "filled" ? "light" : t ?? (e === "ghost" ? "default" : "primary"),
@@ -3885,7 +3965,7 @@ function us({ variant: e, color: t }) {
3885
3965
  }
3886
3966
  //#endregion
3887
3967
  //#region lib/components/ui/actions/icon-button/icon-button-surface.ts
3888
- var ds = {
3968
+ var xs = {
3889
3969
  filled: {
3890
3970
  primary: "fill-primary",
3891
3971
  secondary: "fill-secondary dark:fill-[color-mix(in_oklab,var(--color-secondary)_70%,var(--color-background))]",
@@ -3932,7 +4012,7 @@ var ds = {
3932
4012
  default: "fill-transparent group-hover/icon-button:fill-accent dark:group-hover/icon-button:fill-accent/50"
3933
4013
  }
3934
4014
  };
3935
- function fs({ outline: e }) {
4015
+ function Ss({ outline: e }) {
3936
4016
  let t = E(null), n = E(null), r = w();
3937
4017
  return p(t, e, !0), p(n, e, !0), /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M("mask", {
3938
4018
  id: r,
@@ -3949,7 +4029,7 @@ function fs({ outline: e }) {
3949
4029
  fill: "white"
3950
4030
  }), /* @__PURE__ */ j("path", {
3951
4031
  ref: n,
3952
- d: ne(e),
4032
+ d: re(e),
3953
4033
  vectorEffect: "non-scaling-stroke",
3954
4034
  fill: "black",
3955
4035
  stroke: "black",
@@ -3959,15 +4039,15 @@ function fs({ outline: e }) {
3959
4039
  }), /* @__PURE__ */ j("path", {
3960
4040
  ref: t,
3961
4041
  "data-slot": "icon-button-focus-band",
3962
- d: ne(e),
4042
+ d: re(e),
3963
4043
  mask: `url(#${r})`,
3964
4044
  vectorEffect: "non-scaling-stroke",
3965
4045
  strokeLinejoin: "round",
3966
4046
  className: "fill-none stroke-transparent group-focus-visible/icon-button:stroke-primary-indicator group-focus-visible/icon-button:stroke-[8px] forced-colors:hidden"
3967
4047
  })] });
3968
4048
  }
3969
- function ps({ shape: e, variant: t, color: n }) {
3970
- let r = te(e), i = E(null);
4049
+ function Cs({ shape: e, variant: t, color: n }) {
4050
+ let r = ne(e), i = E(null);
3971
4051
  p(i, r, !0);
3972
4052
  let a = t === "filled";
3973
4053
  return /* @__PURE__ */ M("svg", {
@@ -3976,17 +4056,17 @@ function ps({ shape: e, variant: t, color: n }) {
3976
4056
  "aria-hidden": "true",
3977
4057
  focusable: "false",
3978
4058
  className: "-z-10 pointer-events-none absolute inset-0 size-full overflow-visible",
3979
- children: [a && /* @__PURE__ */ j(fs, { outline: r }), /* @__PURE__ */ j("path", {
4059
+ children: [a && /* @__PURE__ */ j(Ss, { outline: r }), /* @__PURE__ */ j("path", {
3980
4060
  ref: i,
3981
- d: ne(r),
4061
+ d: re(r),
3982
4062
  vectorEffect: "non-scaling-stroke",
3983
4063
  paintOrder: "stroke",
3984
4064
  strokeLinejoin: "round",
3985
- className: _("stroke-transparent stroke-1 transition-[fill,filter]", ds[t][n], a ? "group-hover/icon-button:brightness-90 group-active/icon-button:brightness-80" : "group-focus-visible/icon-button:stroke-primary-indicator group-focus-visible/icon-button:stroke-[3px]", "forced-colors:fill-none forced-colors:stroke-[ButtonText] forced-colors:group-focus-visible/icon-button:stroke-[Highlight] forced-colors:group-focus-visible/icon-button:stroke-[3px]")
4065
+ className: _("stroke-transparent stroke-1 transition-[fill,filter]", xs[t][n], a ? "group-hover/icon-button:brightness-90 group-active/icon-button:brightness-80" : "group-focus-visible/icon-button:stroke-primary-indicator group-focus-visible/icon-button:stroke-[3px]", "forced-colors:fill-none forced-colors:stroke-[ButtonText] forced-colors:group-focus-visible/icon-button:stroke-[Highlight] forced-colors:group-focus-visible/icon-button:stroke-[3px]")
3986
4066
  })]
3987
4067
  });
3988
4068
  }
3989
- function ms(e, t) {
4069
+ function ws(e, t) {
3990
4070
  let n = !!e && t != null && t !== "default";
3991
4071
  C(() => {
3992
4072
  n && !v() && console.warn("IconButton: `width` is ignored with `shape`; a shaped button is as wide as it is high.");
@@ -3994,8 +4074,8 @@ function ms(e, t) {
3994
4074
  }
3995
4075
  //#endregion
3996
4076
  //#region lib/components/ui/actions/icon-button/own-box.ts
3997
- var hs = "size|[hw]|(?:min|max)-[hw]|aspect", gs = "(?:min-|max-)?(?:block|inline)-(?!(?:block|flex|grid|table)$)", _s = String.raw`border(?:-(?:[xytrblse]|bs|be))?(?:-\d+|-\[(?:length:)?[\d.]+[a-z%]*\]|-\(length:[^)]*\))?$`, vs = new RegExp(String.raw`^-?(?:(?:${hs}|rounded|outline-offset)(?:-|$)|${gs}|${_s}|m(?:[xytrblse]|bs|be)?-(?!auto$))`), ys = /^\[(?:(?:min-|max-)?(?:width|height|inline-size|block-size)|aspect-ratio|margin(?:-[a-z-]+)?|border(?:-[a-z-]+)?-(?:width|radius)|border-radius|outline-offset):/, bs = /^(?:min-(?:[hw]|inline|block)-0|max-(?:[hw]|inline|block)-none)$/, xs = /^(?:\*{1,2}|\[&[\s_>+~])/;
3998
- function Ss(e) {
4077
+ var Ts = "size|[hw]|(?:min|max)-[hw]|aspect", Es = "(?:min-|max-)?(?:block|inline)-(?!(?:block|flex|grid|table)$)", Ds = String.raw`border(?:-(?:[xytrblse]|bs|be))?(?:-\d+|-\[(?:length:)?[\d.]+[a-z%]*\]|-\(length:[^)]*\))?$`, Os = new RegExp(String.raw`^-?(?:(?:${Ts}|rounded|outline-offset)(?:-|$)|${Es}|${Ds}|m(?:[xytrblse]|bs|be)?-(?!auto$))`), ks = /^\[(?:(?:min-|max-)?(?:width|height|inline-size|block-size)|aspect-ratio|margin(?:-[a-z-]+)?|border(?:-[a-z-]+)?-(?:width|radius)|border-radius|outline-offset):/, As = /^(?:min-(?:[hw]|inline|block)-0|max-(?:[hw]|inline|block)-none)$/, js = /^(?:\*{1,2}|\[&[\s_>+~])/;
4078
+ function Ms(e) {
3999
4079
  let t = [], n = 0, r = 0;
4000
4080
  for (let i = 0; i < e.length; i += 1) {
4001
4081
  let a = e[i];
@@ -4003,20 +4083,20 @@ function Ss(e) {
4003
4083
  }
4004
4084
  return t.push(e.slice(r)), t;
4005
4085
  }
4006
- function Cs(e) {
4007
- let t = Ss(e), n = (t.pop() ?? "").replace(/^!|!$/g, "");
4008
- return n === "rounded-(--nxgt-item-radius)" || bs.test(n) || t.some((e) => xs.test(e)) ? !1 : vs.test(n) || ys.test(n);
4086
+ function Ns(e) {
4087
+ let t = Ms(e), n = (t.pop() ?? "").replace(/^!|!$/g, "");
4088
+ return n === "rounded-(--nxgt-item-radius)" || As.test(n) || t.some((e) => js.test(e)) ? !1 : Os.test(n) || ks.test(n);
4009
4089
  }
4010
- var ws = /^(?:width|height|(?:min|max)(?:Width|Height)|inlineSize|blockSize|(?:min|max)(?:InlineSize|BlockSize)|aspectRatio|margin|border(?!\w*(?:Color|Style)$)|outlineOffset)/;
4011
- function Ts(e, t) {
4012
- return t && Object.entries(t).some(([e, t]) => ws.test(e) && !(e.startsWith("margin") && t === "auto")) ? !0 : e ? e.split(/\s+/).some((e) => e && Cs(e)) : !1;
4090
+ var Ps = /^(?:width|height|(?:min|max)(?:Width|Height)|inlineSize|blockSize|(?:min|max)(?:InlineSize|BlockSize)|aspectRatio|margin|border(?!\w*(?:Color|Style)$)|outlineOffset)/;
4091
+ function Fs(e, t) {
4092
+ return t && Object.entries(t).some(([e, t]) => Ps.test(e) && !(e.startsWith("margin") && t === "auto")) ? !0 : e ? e.split(/\s+/).some((e) => e && Ns(e)) : !1;
4013
4093
  }
4014
4094
  //#endregion
4015
4095
  //#region lib/components/ui/actions/icon-button/icon-button.tsx
4016
- function Es({ variant: t, color: n, size: r, width: i, className: o, asChild: s, type: c = "button", shape: l, morph: u = "pill", badge: d, badgeTone: f = "primary", loading: p = !1, children: m, ...h }) {
4096
+ function Is({ variant: t, color: n, size: r, width: i, className: o, asChild: s, type: c = "button", shape: l, morph: u = "pill", badge: d, badgeTone: f = "primary", loading: p = !1, children: m, ...h }) {
4017
4097
  let g = s ? a : "button", v = S(Ko), y = r ?? v, b = !!(h["aria-label"] || h["aria-labelledby"]);
4018
- ms(l, i);
4019
- let x = !l && u !== "none" && h["aria-pressed"] != null, C = String(h["aria-pressed"]) === "true", w = ls(p, h);
4098
+ ws(l, i);
4099
+ let x = !l && u !== "none" && h["aria-pressed"] != null, C = String(h["aria-pressed"]) === "true", w = ys(p, h);
4020
4100
  return /* @__PURE__ */ j(Go, {
4021
4101
  value: b,
4022
4102
  children: /* @__PURE__ */ M(g, {
@@ -4029,12 +4109,12 @@ function Es({ variant: t, color: n, size: r, width: i, className: o, asChild: s,
4029
4109
  "data-shape": l,
4030
4110
  "data-morph": x ? u : void 0,
4031
4111
  "data-selected": x && C ? "true" : void 0,
4032
- "data-own-box": Ts(o, h.style) ? "" : void 0,
4033
- className: _(l ? as({
4112
+ "data-own-box": Fs(o, h.style) ? "" : void 0,
4113
+ className: _(l ? hs({
4034
4114
  variant: t,
4035
4115
  color: n,
4036
4116
  size: y
4037
- }) : is({
4117
+ }) : ms({
4038
4118
  variant: t,
4039
4119
  color: n,
4040
4120
  size: y,
@@ -4043,17 +4123,17 @@ function Es({ variant: t, color: n, size: r, width: i, className: o, asChild: s,
4043
4123
  ...h,
4044
4124
  ...w.hostProps,
4045
4125
  children: [
4046
- l ? /* @__PURE__ */ j(ps, {
4126
+ l ? /* @__PURE__ */ j(Cs, {
4047
4127
  shape: l,
4048
4128
  variant: t ?? "filled",
4049
4129
  color: n ?? (t === "ghost" ? "default" : "primary")
4050
4130
  }) : null,
4051
4131
  /* @__PURE__ */ j(e, { children: m }),
4052
- p && /* @__PURE__ */ j(us, {
4132
+ p && /* @__PURE__ */ j(bs, {
4053
4133
  variant: t ?? "filled",
4054
4134
  color: n
4055
4135
  }),
4056
- /* @__PURE__ */ j(cs, {
4136
+ /* @__PURE__ */ j(vs, {
4057
4137
  badge: d,
4058
4138
  tone: f
4059
4139
  })
@@ -4061,23 +4141,23 @@ function Es({ variant: t, color: n, size: r, width: i, className: o, asChild: s,
4061
4141
  })
4062
4142
  });
4063
4143
  }
4064
- function Ds({ tooltip: e, tooltipProps: t, "aria-label": n, ...r }) {
4144
+ function Ls({ tooltip: e, tooltipProps: t, "aria-label": n, ...r }) {
4065
4145
  let i = n ?? (typeof e == "string" ? e : void 0);
4066
4146
  return e ? /* @__PURE__ */ j(Vo, {
4067
4147
  content: e,
4068
4148
  ...t,
4069
- children: /* @__PURE__ */ j(Es, {
4149
+ children: /* @__PURE__ */ j(Is, {
4070
4150
  "aria-label": i,
4071
4151
  ...r
4072
4152
  })
4073
- }) : /* @__PURE__ */ j(Es, {
4153
+ }) : /* @__PURE__ */ j(Is, {
4074
4154
  "aria-label": i,
4075
4155
  ...r
4076
4156
  });
4077
4157
  }
4078
4158
  //#endregion
4079
4159
  //#region lib/components/ui/primitives/helper-text/helper-text.tsx
4080
- function Os({ error: e, className: t, ...n }) {
4160
+ function Rs({ error: e, className: t, ...n }) {
4081
4161
  return /* @__PURE__ */ j(u, {
4082
4162
  "data-slot": "helper-text",
4083
4163
  variant: "body-sm",
@@ -4086,90 +4166,10 @@ function Os({ error: e, className: t, ...n }) {
4086
4166
  });
4087
4167
  }
4088
4168
  //#endregion
4089
- //#region lib/components/ui/primitives/field-box/field-box.ts
4090
- var ks = "nxgt-field-box";
4091
- //#endregion
4092
- //#region lib/components/ui/primitives/label/label.tsx
4093
- function As() {
4094
- return /* @__PURE__ */ j("svg", {
4095
- "data-slot": "label-required-mark",
4096
- "aria-hidden": "true",
4097
- focusable: "false",
4098
- viewBox: "0 0 10 10",
4099
- fill: "none",
4100
- stroke: "currentColor",
4101
- strokeWidth: "1.75",
4102
- strokeLinecap: "round",
4103
- children: /* @__PURE__ */ j("path", { d: "M5 1v8M1.5 3l7 4M8.5 3l-7 4" })
4104
- });
4105
- }
4106
- function js({ children: e }) {
4107
- return /* @__PURE__ */ j("span", {
4108
- "aria-hidden": "true",
4109
- "data-slot": "label-required-glue",
4110
- className: "whitespace-nowrap [&>svg]:align-text-top",
4111
- children: e
4112
- });
4113
- }
4114
- function Ms({ className: e, withAsterisk: t, ...n }) {
4115
- return /* @__PURE__ */ j(Ua, {
4116
- "data-slot": "label",
4117
- className: _("flex items-center gap-2 text-sm leading-5 -my-[3px] empty:my-0 font-semibold select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
4118
- ...n,
4119
- children: t ? /* @__PURE__ */ M("span", {
4120
- "data-slot": "label-text",
4121
- "data-required": "",
4122
- className: "min-w-0",
4123
- children: [n.children, /* @__PURE__ */ j(js, { children: /* @__PURE__ */ j(As, {}) })]
4124
- }) : n.children
4125
- });
4126
- }
4127
- //#endregion
4128
- //#region lib/components/ui/actions/button-group/button-group-reset.tsx
4129
- function Ns({ children: e }) {
4130
- return /* @__PURE__ */ j(Ko, {
4131
- value: void 0,
4132
- children: e
4133
- });
4134
- }
4135
- //#endregion
4136
- //#region lib/components/ui/overlays/dialog/in-dialog.ts
4137
- var Ps = b(!1), Fs = b(void 0);
4138
- function Is(e, n) {
4139
- let [r, i] = D(null), [a, o] = Ls(r), s = E(null);
4140
- return C(() => {
4141
- if (!e || !a || !r || r.getAttribute("data-state") === "closed") return;
4142
- let t = re(r);
4143
- return s.current = t, () => {
4144
- s.current = null, t();
4145
- };
4146
- }, [
4147
- e,
4148
- a,
4149
- r
4150
- ]), T(() => {
4151
- !a || r?.getAttribute("data-state") !== "closed" || (s.current?.(), o(!1));
4152
- }), t(i, n);
4153
- }
4154
- function Ls(e) {
4155
- let [t, n] = D(!0);
4156
- return C(() => {
4157
- let t = e?.ownerDocument.defaultView?.MutationObserver;
4158
- if (!e || !t) return;
4159
- let r = () => n(e.getAttribute("data-state") !== "closed");
4160
- r();
4161
- let i = new t(r);
4162
- return i.observe(e, { attributeFilter: ["data-state"] }), () => i.disconnect();
4163
- }, [e]), [t, n];
4164
- }
4165
- function Rs(e, t) {
4166
- return Is(S(Fs) ?? e, t);
4167
- }
4168
- //#endregion
4169
4169
  //#region ../../node_modules/react-use/esm/useLatest.js
4170
4170
  var zs = function(e) {
4171
4171
  var t = E(e);
4172
4172
  return t.current = e, t;
4173
4173
  };
4174
4174
  //#endregion
4175
- export { ua as A, We as B, zo as C, Ba as D, Va as E, kn as F, Me as H, vt as I, ft as L, sa as M, Gi as N, Oa as O, Rn as P, et as R, Ro as S, Ao as T, Se as U, Ie as V, le as W, Jo as _, Ps as a, Go as b, ks as c, is as d, es as f, Xo as g, Z as h, Rs as i, la as j, ca as k, Os as l, Q as m, Fs as n, Ns as o, Qo as p, Is as r, Ms as s, zs as t, Ds as u, qo as v, ko as w, Vo as x, Ko as y, Ue as z };
4175
+ export { ua as A, We as B, zo as C, Ba as D, Va as E, On as F, Me as H, vt as I, ft as L, sa as M, Gi as N, Oa as O, Ln as P, et as R, Ro as S, Ao as T, Se as U, Ie as V, le as W, Jo as _, us as a, Go as b, is as c, ts as d, es as f, Xo as g, Z as h, ms as i, la as j, ca as k, os as l, Q as m, Rs as n, ss as o, Qo as p, Ls as r, rs as s, zs as t, ns as u, qo as v, ko as w, Vo as x, Ko as y, Ue as z };