zudoku 0.3.0-dev.87 → 0.3.0-dev.89

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 (94) hide show
  1. package/dist/lib/authentication/components/SignIn.js +2 -2
  2. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  3. package/dist/lib/authentication/components/SignOut.js +2 -2
  4. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  5. package/dist/lib/authentication/components/SignUp.js +2 -2
  6. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  7. package/dist/lib/authentication/hook.js +2 -2
  8. package/dist/lib/authentication/hook.js.map +1 -1
  9. package/dist/lib/authentication/providers/openid.js +3 -2
  10. package/dist/lib/authentication/providers/openid.js.map +1 -1
  11. package/dist/lib/components/DevPortal.d.ts +0 -4
  12. package/dist/lib/components/DevPortal.js +4 -23
  13. package/dist/lib/components/DevPortal.js.map +1 -1
  14. package/dist/lib/components/Header.js +2 -2
  15. package/dist/lib/components/Header.js.map +1 -1
  16. package/dist/lib/components/Layout.js +2 -2
  17. package/dist/lib/components/Layout.js.map +1 -1
  18. package/dist/lib/components/TopNavigation.js +2 -2
  19. package/dist/lib/components/TopNavigation.js.map +1 -1
  20. package/dist/lib/components/context/{DevPortalProvider.d.ts → ZudokuContext.d.ts} +2 -2
  21. package/dist/lib/components/context/{DevPortalProvider.js → ZudokuContext.js} +7 -8
  22. package/dist/lib/components/context/ZudokuContext.js.map +1 -0
  23. package/dist/lib/components/context/ZudokuProvider.d.ts +5 -0
  24. package/dist/lib/components/context/ZudokuProvider.js +16 -0
  25. package/dist/lib/components/context/ZudokuProvider.js.map +1 -0
  26. package/dist/lib/components/navigation/Sidebar.js +1 -1
  27. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  28. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  29. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  30. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  31. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  32. package/dist/lib/components/navigation/utils.js +3 -3
  33. package/dist/lib/components/navigation/utils.js.map +1 -1
  34. package/dist/lib/plugins/api-keys/CreateApiKey.js +2 -2
  35. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  36. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +2 -2
  37. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  38. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  39. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  40. package/lib/{AuthenticationPlugin-B68Pelzd.js → AuthenticationPlugin-C3dzfGaA.js} +2 -2
  41. package/lib/AuthenticationPlugin-C3dzfGaA.js.map +1 -0
  42. package/lib/{Combination-BOiWt0Ng.js → Combination-Djh-LWhb.js} +93 -93
  43. package/lib/Combination-Djh-LWhb.js.map +1 -0
  44. package/lib/{Input-LkQSHT1l.js → Input-SCGD-EvD.js} +3 -3
  45. package/lib/{Input-LkQSHT1l.js.map → Input-SCGD-EvD.js.map} +1 -1
  46. package/lib/{MdxPage-PhgXcrKE.js → MdxPage-d02krMBw.js} +2 -2
  47. package/lib/{MdxPage-PhgXcrKE.js.map → MdxPage-d02krMBw.js.map} +1 -1
  48. package/lib/{OperationList-DDLgAusb.js → OperationList-BQweX28o.js} +4 -4
  49. package/lib/{OperationList-DDLgAusb.js.map → OperationList-BQweX28o.js.map} +1 -1
  50. package/lib/{Route-2Br45GpS.js → Route-BPGW1TS_.js} +2 -2
  51. package/lib/{Route-2Br45GpS.js.map → Route-BPGW1TS_.js.map} +1 -1
  52. package/lib/{Spinner-CeuEm0Qc.js → Spinner-DEgs-1Gu.js} +2 -2
  53. package/lib/{Spinner-CeuEm0Qc.js.map → Spinner-DEgs-1Gu.js.map} +1 -1
  54. package/lib/{DevPortalProvider-D6Tr_uD_.js → ZudokuContext-C3JtXViU.js} +98 -98
  55. package/lib/ZudokuContext-C3JtXViU.js.map +1 -0
  56. package/lib/{index-DiSzJkoL.js → index-B8BCBPkc.js} +3 -3
  57. package/lib/{index-DiSzJkoL.js.map → index-B8BCBPkc.js.map} +1 -1
  58. package/lib/{index-BuVwhb9F.js → index-DoIWqOG1.js} +7 -7
  59. package/lib/index-DoIWqOG1.js.map +1 -0
  60. package/lib/{utils-Ctz-5ywK.js → utils-D3fcGEot.js} +9 -9
  61. package/lib/{utils-Ctz-5ywK.js.map → utils-D3fcGEot.js.map} +1 -1
  62. package/lib/zudoku.auth-clerk.js +1 -1
  63. package/lib/zudoku.auth-openid.js +8 -6
  64. package/lib/zudoku.auth-openid.js.map +1 -1
  65. package/lib/zudoku.components.js +597 -594
  66. package/lib/zudoku.components.js.map +1 -1
  67. package/lib/zudoku.plugin-api-keys.js +16 -16
  68. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  69. package/lib/zudoku.plugin-markdown.js +1 -1
  70. package/lib/zudoku.plugin-openapi.js +3 -3
  71. package/package.json +1 -1
  72. package/src/lib/authentication/components/SignIn.tsx +2 -2
  73. package/src/lib/authentication/components/SignOut.tsx +2 -2
  74. package/src/lib/authentication/components/SignUp.tsx +2 -2
  75. package/src/lib/authentication/hook.ts +2 -2
  76. package/src/lib/authentication/providers/openid.tsx +3 -4
  77. package/src/lib/components/DevPortal.tsx +4 -30
  78. package/src/lib/components/Header.tsx +2 -2
  79. package/src/lib/components/Layout.tsx +2 -2
  80. package/src/lib/components/TopNavigation.tsx +2 -2
  81. package/src/lib/components/context/{DevPortalProvider.ts → ZudokuContext.ts} +6 -8
  82. package/src/lib/components/context/ZudokuProvider.tsx +26 -0
  83. package/src/lib/components/navigation/Sidebar.tsx +1 -1
  84. package/src/lib/components/navigation/SidebarCategory.tsx +1 -1
  85. package/src/lib/components/navigation/SidebarItem.tsx +1 -1
  86. package/src/lib/components/navigation/utils.ts +3 -6
  87. package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
  88. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +2 -2
  89. package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
  90. package/dist/lib/components/context/DevPortalProvider.js.map +0 -1
  91. package/lib/AuthenticationPlugin-B68Pelzd.js.map +0 -1
  92. package/lib/Combination-BOiWt0Ng.js.map +0 -1
  93. package/lib/DevPortalProvider-D6Tr_uD_.js.map +0 -1
  94. package/lib/index-BuVwhb9F.js.map +0 -1
@@ -2,12 +2,12 @@ var wt = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
4
  var He = (e, t, n) => t.has(e) || wt("Cannot " + n);
5
- var L = (e, t, n) => (He(e, t, "read from private field"), n ? n.call(e) : t.get(e)), we = (e, t, n) => t.has(e) ? wt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), xe = (e, t, n, r) => (He(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), Z = (e, t, n) => (He(e, t, "access private method"), n);
5
+ var L = (e, t, n) => (He(e, t, "read from private field"), n ? n.call(e) : t.get(e)), we = (e, t, n) => t.has(e) ? wt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), xe = (e, t, n, r) => (He(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), q = (e, t, n) => (He(e, t, "access private method"), n);
6
6
  import { j as P } from "./jsx-runtime-B6kdoens.js";
7
- import { a as Dn, e as Nn } from "./Markdown-B_Gax7at.js";
7
+ import { a as Nn, e as Dn } from "./Markdown-B_Gax7at.js";
8
8
  import * as f from "react";
9
9
  import oe, { useLayoutEffect as kn, useEffect as Fn, useState as In } from "react";
10
- import { R as Wn, A as _n, n as Bn, u as jn } from "./DevPortalProvider-D6Tr_uD_.js";
10
+ import { R as Wn, A as _n, n as Bn, u as jn } from "./ZudokuContext-C3JtXViU.js";
11
11
  import { u as $n } from "./state-DsXXkBLH.js";
12
12
  import * as Ht from "react-dom";
13
13
  import Hn from "react-dom";
@@ -61,7 +61,7 @@ function Xn(e) {
61
61
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
62
62
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
63
63
  }
64
- const Kn = Nn(
64
+ const Kn = Dn(
65
65
  "not-prose inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
66
66
  {
67
67
  variants: {
@@ -92,7 +92,7 @@ const Kn = Nn(
92
92
  return /* @__PURE__ */ P.jsx(
93
93
  s,
94
94
  {
95
- className: Dn(Kn({ variant: t, size: n, className: e })),
95
+ className: Nn(Kn({ variant: t, size: n, className: e })),
96
96
  ref: i,
97
97
  ...o
98
98
  }
@@ -107,7 +107,7 @@ var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
107
107
  we(this, H);
108
108
  we(this, F);
109
109
  we(this, ie);
110
- this.mutationId = t.mutationId, xe(this, F, t.mutationCache), xe(this, H, []), this.state = t.state || qn(), this.setOptions(t.options), this.scheduleGc();
110
+ this.mutationId = t.mutationId, xe(this, F, t.mutationCache), xe(this, H, []), this.state = t.state || Zn(), this.setOptions(t.options), this.scheduleGc();
111
111
  }
112
112
  setOptions(t) {
113
113
  this.options = t, this.updateGcTime(this.options.gcTime);
@@ -142,13 +142,13 @@ var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
142
142
  xe(this, ie, _n({
143
143
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
144
144
  onFail: (A, O) => {
145
- Z(this, V, Q).call(this, { type: "failed", failureCount: A, error: O });
145
+ q(this, V, Q).call(this, { type: "failed", failureCount: A, error: O });
146
146
  },
147
147
  onPause: () => {
148
- Z(this, V, Q).call(this, { type: "pause" });
148
+ q(this, V, Q).call(this, { type: "pause" });
149
149
  },
150
150
  onContinue: () => {
151
- Z(this, V, Q).call(this, { type: "continue" });
151
+ q(this, V, Q).call(this, { type: "continue" });
152
152
  },
153
153
  retry: this.options.retry ?? 0,
154
154
  retryDelay: this.options.retryDelay,
@@ -158,13 +158,13 @@ var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
158
158
  const n = this.state.status === "pending", r = !L(this, ie).canStart();
159
159
  try {
160
160
  if (!n) {
161
- Z(this, V, Q).call(this, { type: "pending", variables: t, isPaused: r }), await ((i = (o = L(this, F).config).onMutate) == null ? void 0 : i.call(
161
+ q(this, V, Q).call(this, { type: "pending", variables: t, isPaused: r }), await ((i = (o = L(this, F).config).onMutate) == null ? void 0 : i.call(
162
162
  o,
163
163
  t,
164
164
  this
165
165
  ));
166
166
  const O = await ((c = (s = this.options).onMutate) == null ? void 0 : c.call(s, t));
167
- O !== this.state.context && Z(this, V, Q).call(this, {
167
+ O !== this.state.context && q(this, V, Q).call(this, {
168
168
  type: "pending",
169
169
  context: O,
170
170
  variables: t,
@@ -185,7 +185,7 @@ var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
185
185
  this.state.variables,
186
186
  this.state.context,
187
187
  this
188
- )), await ((u = (g = this.options).onSettled) == null ? void 0 : u.call(g, A, null, t, this.state.context)), Z(this, V, Q).call(this, { type: "success", data: A }), A;
188
+ )), await ((u = (g = this.options).onSettled) == null ? void 0 : u.call(g, A, null, t, this.state.context)), q(this, V, Q).call(this, { type: "success", data: A }), A;
189
189
  } catch (A) {
190
190
  try {
191
191
  throw await ((y = (v = L(this, F).config).onError) == null ? void 0 : y.call(
@@ -214,7 +214,7 @@ var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
214
214
  this.state.context
215
215
  )), A;
216
216
  } finally {
217
- Z(this, V, Q).call(this, { type: "error", error: A });
217
+ q(this, V, Q).call(this, { type: "error", error: A });
218
218
  }
219
219
  } finally {
220
220
  L(this, F).runNext(this);
@@ -284,7 +284,7 @@ var H, F, ie, V, Q, $t, gi = ($t = class extends Wn {
284
284
  });
285
285
  });
286
286
  }, $t);
287
- function qn() {
287
+ function Zn() {
288
288
  return {
289
289
  context: void 0,
290
290
  data: void 0,
@@ -363,9 +363,9 @@ function zt(e, t = []) {
363
363
  );
364
364
  };
365
365
  };
366
- return o.scopeName = e, [r, Zn(o, ...t)];
366
+ return o.scopeName = e, [r, qn(o, ...t)];
367
367
  }
368
- function Zn(...e) {
368
+ function qn(...e) {
369
369
  const t = e[0];
370
370
  if (e.length === 1) return t;
371
371
  const n = () => {
@@ -515,11 +515,11 @@ var rr = "DismissableLayer", Je = "dismissableLayer.update", or = "dismissableLa
515
515
  onDismiss: c,
516
516
  ...a
517
517
  } = e, l = f.useContext(Ut), [h, d] = f.useState(null), p = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = f.useState({}), g = se(t, (S) => d(S)), u = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = u.indexOf(v), w = h ? u.indexOf(h) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, E = lr((S) => {
518
- const A = S.target, O = [...l.branches].some((N) => N.contains(A));
518
+ const A = S.target, O = [...l.branches].some((D) => D.contains(A));
519
519
  !x || O || (o == null || o(S), s == null || s(S), S.defaultPrevented || c == null || c());
520
520
  }, p), C = ur((S) => {
521
521
  const A = S.target;
522
- [...l.branches].some((N) => N.contains(A)) || (i == null || i(S), s == null || s(S), S.defaultPrevented || c == null || c());
522
+ [...l.branches].some((D) => D.contains(A)) || (i == null || i(S), s == null || s(S), S.defaultPrevented || c == null || c());
523
523
  }, p);
524
524
  return nr((S) => {
525
525
  w === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && c && (S.preventDefault(), c()));
@@ -1050,12 +1050,12 @@ const Mr = (e) => ({
1050
1050
  }, m = it(o), g = ot(m), u = await s.getDimensions(l), v = m === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = i.reference[g] + i.reference[m] - p[m] - i.floating[g], E = p[m] - i.reference[m], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
1051
1051
  let S = C ? C[b] : 0;
1052
1052
  (!S || !await (s.isElement == null ? void 0 : s.isElement(C))) && (S = c.floating[b] || i.floating[g]);
1053
- const A = x / 2 - E / 2, O = S / 2 - u[g] / 2 - 1, N = te(d[y], O), j = te(d[w], O), M = N, I = S - u[g] - j, D = S / 2 - u[g] / 2 + A, T = et(M, D, I), k = !a.arrow && pe(o) != null && D !== T && i.reference[g] / 2 - (D < M ? N : j) - u[g] / 2 < 0, R = k ? D < M ? D - M : D - I : 0;
1053
+ const A = x / 2 - E / 2, O = S / 2 - u[g] / 2 - 1, D = te(d[y], O), j = te(d[w], O), M = D, I = S - u[g] - j, N = S / 2 - u[g] / 2 + A, T = et(M, N, I), k = !a.arrow && pe(o) != null && N !== T && i.reference[g] / 2 - (N < M ? D : j) - u[g] / 2 < 0, R = k ? N < M ? N - M : N - I : 0;
1054
1054
  return {
1055
1055
  [m]: p[m] + R,
1056
1056
  data: {
1057
1057
  [m]: T,
1058
- centerOffset: D - T - R,
1058
+ centerOffset: N - T - R,
1059
1059
  ...k && {
1060
1060
  alignmentOffset: R
1061
1061
  }
@@ -1099,7 +1099,7 @@ const Mr = (e) => ({
1099
1099
  placement: o,
1100
1100
  overflows: S
1101
1101
  }], !S.every((M) => M <= 0)) {
1102
- var O, N;
1102
+ var O, D;
1103
1103
  const M = (((O = i.flip) == null ? void 0 : O.index) || 0) + 1, I = E[M];
1104
1104
  if (I)
1105
1105
  return {
@@ -1111,23 +1111,23 @@ const Mr = (e) => ({
1111
1111
  placement: I
1112
1112
  }
1113
1113
  };
1114
- let D = (N = A.filter((T) => T.overflows[0] <= 0).sort((T, k) => T.overflows[1] - k.overflows[1])[0]) == null ? void 0 : N.placement;
1115
- if (!D)
1114
+ let N = (D = A.filter((T) => T.overflows[0] <= 0).sort((T, k) => T.overflows[1] - k.overflows[1])[0]) == null ? void 0 : D.placement;
1115
+ if (!N)
1116
1116
  switch (m) {
1117
1117
  case "bestFit": {
1118
1118
  var j;
1119
1119
  const T = (j = A.map((k) => [k.placement, k.overflows.filter((R) => R > 0).reduce((R, W) => R + W, 0)]).sort((k, R) => k[1] - R[1])[0]) == null ? void 0 : j[0];
1120
- T && (D = T);
1120
+ T && (N = T);
1121
1121
  break;
1122
1122
  }
1123
1123
  case "initialPlacement":
1124
- D = c;
1124
+ N = c;
1125
1125
  break;
1126
1126
  }
1127
- if (o !== D)
1127
+ if (o !== N)
1128
1128
  return {
1129
1129
  reset: {
1130
- placement: D
1130
+ placement: N
1131
1131
  }
1132
1132
  };
1133
1133
  }
@@ -1146,7 +1146,7 @@ function Ot(e, t) {
1146
1146
  function Tt(e) {
1147
1147
  return br.some((t) => e[t] >= 0);
1148
1148
  }
1149
- const Dr = function(e) {
1149
+ const Nr = function(e) {
1150
1150
  return e === void 0 && (e = {}), {
1151
1151
  name: "hide",
1152
1152
  options: e,
@@ -1188,7 +1188,7 @@ const Dr = function(e) {
1188
1188
  }
1189
1189
  };
1190
1190
  };
1191
- async function Nr(e, t) {
1191
+ async function Dr(e, t) {
1192
1192
  const {
1193
1193
  placement: n,
1194
1194
  platform: r,
@@ -1227,7 +1227,7 @@ const kr = function(e) {
1227
1227
  y: i,
1228
1228
  placement: s,
1229
1229
  middlewareData: c
1230
- } = t, a = await Nr(t, e);
1230
+ } = t, a = await Dr(t, e);
1231
1231
  return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
1232
1232
  x: o + a.x,
1233
1233
  y: i + a.y,
@@ -1386,7 +1386,7 @@ function B(e) {
1386
1386
  var t;
1387
1387
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1388
1388
  }
1389
- function q(e) {
1389
+ function Z(e) {
1390
1390
  var t;
1391
1391
  return (t = (Gt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1392
1392
  }
@@ -1453,21 +1453,21 @@ function re(e) {
1453
1453
  e.assignedSlot || // DOM Element detected.
1454
1454
  e.parentNode || // ShadowRoot detected.
1455
1455
  Mt(e) && e.host || // Fallback.
1456
- q(e)
1456
+ Z(e)
1457
1457
  );
1458
1458
  return Mt(t) ? t.host : t;
1459
1459
  }
1460
- function qt(e) {
1460
+ function Zt(e) {
1461
1461
  const t = re(e);
1462
- return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && Ae(t) ? t : qt(t);
1462
+ return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && Ae(t) ? t : Zt(t);
1463
1463
  }
1464
1464
  function Se(e, t, n) {
1465
1465
  var r;
1466
1466
  t === void 0 && (t = []), n === void 0 && (n = !0);
1467
- const o = qt(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(o);
1467
+ const o = Zt(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(o);
1468
1468
  return i ? t.concat(s, s.visualViewport || [], Ae(o) ? o : [], s.frameElement && n ? Se(s.frameElement) : []) : t.concat(o, Se(o, [], n));
1469
1469
  }
1470
- function Zt(e) {
1470
+ function qt(e) {
1471
1471
  const t = $(e);
1472
1472
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1473
1473
  const o = Y(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = Ie(n) !== i || Ie(r) !== s;
@@ -1488,7 +1488,7 @@ function de(e) {
1488
1488
  width: r,
1489
1489
  height: o,
1490
1490
  $: i
1491
- } = Zt(t);
1491
+ } = qt(t);
1492
1492
  let s = (i ? Ie(n.width) : n.width) / r, c = (i ? Ie(n.height) : n.height) / o;
1493
1493
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1494
1494
  x: s,
@@ -1545,7 +1545,7 @@ function Vr(e) {
1545
1545
  offsetParent: r,
1546
1546
  strategy: o
1547
1547
  } = e;
1548
- const i = o === "fixed", s = q(r), c = t ? lt(t.floating) : !1;
1548
+ const i = o === "fixed", s = Z(r), c = t ? lt(t.floating) : !1;
1549
1549
  if (r === s || c && i)
1550
1550
  return n;
1551
1551
  let a = {
@@ -1568,10 +1568,10 @@ function zr(e) {
1568
1568
  return Array.from(e.getClientRects());
1569
1569
  }
1570
1570
  function Jt(e) {
1571
- return ce(q(e)).left + je(e).scrollLeft;
1571
+ return ce(Z(e)).left + je(e).scrollLeft;
1572
1572
  }
1573
1573
  function Ur(e) {
1574
- const t = q(e), n = je(e), r = e.ownerDocument.body, o = _(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = _(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1574
+ const t = Z(e), n = je(e), r = e.ownerDocument.body, o = _(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = _(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1575
1575
  let s = -n.scrollLeft + Jt(e);
1576
1576
  const c = -n.scrollTop;
1577
1577
  return $(r).direction === "rtl" && (s += _(t.clientWidth, r.clientWidth) - o), {
@@ -1582,7 +1582,7 @@ function Ur(e) {
1582
1582
  };
1583
1583
  }
1584
1584
  function Yr(e, t) {
1585
- const n = B(e), r = q(e), o = n.visualViewport;
1585
+ const n = B(e), r = Z(e), o = n.visualViewport;
1586
1586
  let i = r.clientWidth, s = r.clientHeight, c = 0, a = 0;
1587
1587
  if (o) {
1588
1588
  i = o.width, s = o.height;
@@ -1610,7 +1610,7 @@ function Lt(e, t, n) {
1610
1610
  if (t === "viewport")
1611
1611
  r = Yr(e, n);
1612
1612
  else if (t === "document")
1613
- r = Ur(q(e));
1613
+ r = Ur(Z(e));
1614
1614
  else if (U(t))
1615
1615
  r = Xr(t, n);
1616
1616
  else {
@@ -1658,18 +1658,18 @@ function Gr(e) {
1658
1658
  y: a.top
1659
1659
  };
1660
1660
  }
1661
- function qr(e) {
1661
+ function Zr(e) {
1662
1662
  const {
1663
1663
  width: t,
1664
1664
  height: n
1665
- } = Zt(e);
1665
+ } = qt(e);
1666
1666
  return {
1667
1667
  width: t,
1668
1668
  height: n
1669
1669
  };
1670
1670
  }
1671
- function Zr(e, t, n) {
1672
- const r = Y(t), o = q(t), i = n === "fixed", s = ce(e, !0, i, t);
1671
+ function qr(e, t, n) {
1672
+ const r = Y(t), o = Z(t), i = n === "fixed", s = ce(e, !0, i, t);
1673
1673
  let c = {
1674
1674
  scrollLeft: 0,
1675
1675
  scrollTop: 0
@@ -1691,7 +1691,7 @@ function Zr(e, t, n) {
1691
1691
  function Xe(e) {
1692
1692
  return $(e).position === "static";
1693
1693
  }
1694
- function Dt(e, t) {
1694
+ function Nt(e, t) {
1695
1695
  return !Y(e) || $(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1696
1696
  }
1697
1697
  function tn(e, t) {
@@ -1707,15 +1707,15 @@ function tn(e, t) {
1707
1707
  }
1708
1708
  return n;
1709
1709
  }
1710
- let r = Dt(e, t);
1710
+ let r = Nt(e, t);
1711
1711
  for (; r && _r(r) && Xe(r); )
1712
- r = Dt(r, t);
1712
+ r = Nt(r, t);
1713
1713
  return r && me(r) && Xe(r) && !st(r) ? n : r || Br(e) || n;
1714
1714
  }
1715
1715
  const Qr = async function(e) {
1716
1716
  const t = this.getOffsetParent || tn, n = this.getDimensions, r = await n(e.floating);
1717
1717
  return {
1718
- reference: Zr(e.reference, await t(e.floating), e.strategy),
1718
+ reference: qr(e.reference, await t(e.floating), e.strategy),
1719
1719
  floating: {
1720
1720
  x: 0,
1721
1721
  y: 0,
@@ -1729,19 +1729,19 @@ function Jr(e) {
1729
1729
  }
1730
1730
  const eo = {
1731
1731
  convertOffsetParentRelativeRectToViewportRelativeRect: Vr,
1732
- getDocumentElement: q,
1732
+ getDocumentElement: Z,
1733
1733
  getClippingRect: Gr,
1734
1734
  getOffsetParent: tn,
1735
1735
  getElementRects: Qr,
1736
1736
  getClientRects: zr,
1737
- getDimensions: qr,
1737
+ getDimensions: Zr,
1738
1738
  getScale: de,
1739
1739
  isElement: U,
1740
1740
  isRTL: Jr
1741
1741
  };
1742
1742
  function to(e, t) {
1743
1743
  let n = null, r;
1744
- const o = q(e);
1744
+ const o = Z(e);
1745
1745
  function i() {
1746
1746
  var c;
1747
1747
  clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
@@ -1821,7 +1821,7 @@ function no(e, t, n, r) {
1821
1821
  }), d == null || d(), (y = m) == null || y.disconnect(), m = null, a && cancelAnimationFrame(g);
1822
1822
  };
1823
1823
  }
1824
- const ro = kr, oo = Fr, io = Lr, so = Wr, co = Dr, Nt = Mr, ao = Ir, lo = (e, t, n) => {
1824
+ const ro = kr, oo = Fr, io = Lr, so = Wr, co = Nr, Dt = Mr, ao = Ir, lo = (e, t, n) => {
1825
1825
  const r = /* @__PURE__ */ new Map(), o = {
1826
1826
  platform: eo,
1827
1827
  ...n
@@ -1845,17 +1845,17 @@ const ro = kr, oo = Fr, io = Lr, so = Wr, co = Dr, Nt = Mr, ao = Ir, lo = (e, t,
1845
1845
  element: r,
1846
1846
  padding: o
1847
1847
  } = typeof e == "function" ? e(n) : e;
1848
- return r && t(r) ? r.current != null ? Nt({
1848
+ return r && t(r) ? r.current != null ? Dt({
1849
1849
  element: r.current,
1850
1850
  padding: o
1851
- }).fn(n) : {} : r ? Nt({
1851
+ }).fn(n) : {} : r ? Dt({
1852
1852
  element: r,
1853
1853
  padding: o
1854
1854
  }).fn(n) : {};
1855
1855
  }
1856
1856
  };
1857
1857
  };
1858
- var Ne = typeof document < "u" ? kn : Fn;
1858
+ var De = typeof document < "u" ? kn : Fn;
1859
1859
  function Be(e, t) {
1860
1860
  if (e === t)
1861
1861
  return !0;
@@ -1895,7 +1895,7 @@ function kt(e, t) {
1895
1895
  }
1896
1896
  function Ft(e) {
1897
1897
  const t = f.useRef(e);
1898
- return Ne(() => {
1898
+ return De(() => {
1899
1899
  t.current = e;
1900
1900
  }), t;
1901
1901
  }
@@ -1926,7 +1926,7 @@ function fo(e) {
1926
1926
  R !== C.current && (C.current = R, u(R));
1927
1927
  }, []), b = f.useCallback((R) => {
1928
1928
  R !== S.current && (S.current = R, y(R));
1929
- }, []), x = i || g, E = s || v, C = f.useRef(null), S = f.useRef(null), A = f.useRef(h), O = a != null, N = Ft(a), j = Ft(o), M = f.useCallback(() => {
1929
+ }, []), x = i || g, E = s || v, C = f.useRef(null), S = f.useRef(null), A = f.useRef(h), O = a != null, D = Ft(a), j = Ft(o), M = f.useCallback(() => {
1930
1930
  if (!C.current || !S.current)
1931
1931
  return;
1932
1932
  const R = {
@@ -1944,23 +1944,23 @@ function fo(e) {
1944
1944
  }));
1945
1945
  });
1946
1946
  }, [p, t, n, j]);
1947
- Ne(() => {
1947
+ De(() => {
1948
1948
  l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, d((R) => ({
1949
1949
  ...R,
1950
1950
  isPositioned: !1
1951
1951
  })));
1952
1952
  }, [l]);
1953
1953
  const I = f.useRef(!1);
1954
- Ne(() => (I.current = !0, () => {
1954
+ De(() => (I.current = !0, () => {
1955
1955
  I.current = !1;
1956
- }), []), Ne(() => {
1956
+ }), []), De(() => {
1957
1957
  if (x && (C.current = x), E && (S.current = E), x && E) {
1958
- if (N.current)
1959
- return N.current(x, E, M);
1958
+ if (D.current)
1959
+ return D.current(x, E, M);
1960
1960
  M();
1961
1961
  }
1962
- }, [x, E, M, N, O]);
1963
- const D = f.useMemo(() => ({
1962
+ }, [x, E, M, D, O]);
1963
+ const N = f.useMemo(() => ({
1964
1964
  reference: C,
1965
1965
  floating: S,
1966
1966
  setReference: w,
@@ -1992,10 +1992,10 @@ function fo(e) {
1992
1992
  return f.useMemo(() => ({
1993
1993
  ...h,
1994
1994
  update: M,
1995
- refs: D,
1995
+ refs: N,
1996
1996
  elements: T,
1997
1997
  floatingStyles: k
1998
- }), [h, M, D, T, k]);
1998
+ }), [h, M, N, T, k]);
1999
1999
  }
2000
2000
  var ho = "Arrow", rn = f.forwardRef((e, t) => {
2001
2001
  const { children: n, width: r = 10, height: o = 5, ...i } = e;
@@ -2068,12 +2068,12 @@ var ft = "PopperContent", [go, yo] = on(ft), un = f.forwardRef(
2068
2068
  updatePositionStrategy: m = "optimized",
2069
2069
  onPlaced: g,
2070
2070
  ...u
2071
- } = e, v = sn(ft, n), [y, w] = f.useState(null), b = se(t, (ye) => w(ye)), [x, E] = f.useState(null), C = po(x), S = (C == null ? void 0 : C.width) ?? 0, A = (C == null ? void 0 : C.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), N = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, j = Array.isArray(l) ? l : [l], M = j.length > 0, I = {
2072
- padding: N,
2071
+ } = e, v = sn(ft, n), [y, w] = f.useState(null), b = se(t, (ye) => w(ye)), [x, E] = f.useState(null), C = po(x), S = (C == null ? void 0 : C.width) ?? 0, A = (C == null ? void 0 : C.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), D = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, j = Array.isArray(l) ? l : [l], M = j.length > 0, I = {
2072
+ padding: D,
2073
2073
  boundary: j.filter(xo),
2074
2074
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2075
2075
  altBoundary: M
2076
- }, { refs: D, floatingStyles: T, placement: k, isPositioned: R, middlewareData: W } = fo({
2076
+ }, { refs: N, floatingStyles: T, placement: k, isPositioned: R, middlewareData: W } = fo({
2077
2077
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2078
2078
  strategy: "fixed",
2079
2079
  placement: O,
@@ -2113,7 +2113,7 @@ var ft = "PopperContent", [go, yo] = on(ft), un = f.forwardRef(
2113
2113
  }, [y]), /* @__PURE__ */ P.jsx(
2114
2114
  "div",
2115
2115
  {
2116
- ref: D.setFloating,
2116
+ ref: N.setFloating,
2117
2117
  "data-radix-popper-content-wrapper": "",
2118
2118
  style: {
2119
2119
  ...T,
@@ -2337,7 +2337,7 @@ function Mo(e, t) {
2337
2337
  return n.callback = t, n.facade;
2338
2338
  }
2339
2339
  var Lo = typeof window < "u" ? f.useLayoutEffect : f.useEffect, It = /* @__PURE__ */ new WeakMap();
2340
- function Do(e, t) {
2340
+ function No(e, t) {
2341
2341
  var n = Mo(null, function(r) {
2342
2342
  return e.forEach(function(o) {
2343
2343
  return Ge(o, r);
@@ -2356,11 +2356,11 @@ function Do(e, t) {
2356
2356
  It.set(n, e);
2357
2357
  }, [e]), n;
2358
2358
  }
2359
- function No(e) {
2359
+ function Do(e) {
2360
2360
  return e;
2361
2361
  }
2362
2362
  function ko(e, t) {
2363
- t === void 0 && (t = No);
2363
+ t === void 0 && (t = Do);
2364
2364
  var n = [], r = !1, o = {
2365
2365
  read: function() {
2366
2366
  if (r)
@@ -2432,13 +2432,13 @@ vn.isSideCarExport = !0;
2432
2432
  function Io(e, t) {
2433
2433
  return e.useMedium(t), vn;
2434
2434
  }
2435
- var gn = Fo(), qe = function() {
2435
+ var gn = Fo(), Ze = function() {
2436
2436
  }, $e = f.forwardRef(function(e, t) {
2437
2437
  var n = f.useRef(null), r = f.useState({
2438
- onScrollCapture: qe,
2439
- onWheelCapture: qe,
2440
- onTouchMoveCapture: qe
2441
- }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, a = e.className, l = e.removeScrollBar, h = e.enabled, d = e.shards, p = e.sideCar, m = e.noIsolation, g = e.inert, u = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, b = pn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = p, E = Do([n, t]), C = z(z({}, b), o);
2438
+ onScrollCapture: Ze,
2439
+ onWheelCapture: Ze,
2440
+ onTouchMoveCapture: Ze
2441
+ }), o = r[0], i = r[1], s = e.forwardProps, c = e.children, a = e.className, l = e.removeScrollBar, h = e.enabled, d = e.shards, p = e.sideCar, m = e.noIsolation, g = e.inert, u = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, b = pn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = p, E = No([n, t]), C = z(z({}, b), o);
2442
2442
  return f.createElement(
2443
2443
  f.Fragment,
2444
2444
  null,
@@ -2504,11 +2504,11 @@ var $o = function() {
2504
2504
  top: 0,
2505
2505
  right: 0,
2506
2506
  gap: 0
2507
- }, Ze = function(e) {
2507
+ }, qe = function(e) {
2508
2508
  return parseInt(e || "", 10) || 0;
2509
2509
  }, zo = function(e) {
2510
2510
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2511
- return [Ze(n), Ze(r), Ze(o)];
2511
+ return [qe(n), qe(r), qe(o)];
2512
2512
  }, Uo = function(e) {
2513
2513
  if (e === void 0 && (e = "margin"), typeof window > "u")
2514
2514
  return Vo;
@@ -2592,16 +2592,16 @@ if (typeof window < "u")
2592
2592
  } catch {
2593
2593
  nt = !1;
2594
2594
  }
2595
- var ue = nt ? { passive: !1 } : !1, qo = function(e) {
2595
+ var ue = nt ? { passive: !1 } : !1, Zo = function(e) {
2596
2596
  return e.tagName === "TEXTAREA";
2597
2597
  }, wn = function(e, t) {
2598
2598
  var n = window.getComputedStyle(e);
2599
2599
  return (
2600
2600
  // not-not-scrollable
2601
2601
  n[t] !== "hidden" && // contains scroll inside self
2602
- !(n.overflowY === n.overflowX && !qo(e) && n[t] === "visible")
2602
+ !(n.overflowY === n.overflowX && !Zo(e) && n[t] === "visible")
2603
2603
  );
2604
- }, Zo = function(e) {
2604
+ }, qo = function(e) {
2605
2605
  return wn(e, "overflowY");
2606
2606
  }, Qo = function(e) {
2607
2607
  return wn(e, "overflowX");
@@ -2633,7 +2633,7 @@ var ue = nt ? { passive: !1 } : !1, qo = function(e) {
2633
2633
  r
2634
2634
  ];
2635
2635
  }, xn = function(e, t) {
2636
- return e === "v" ? Zo(t) : Qo(t);
2636
+ return e === "v" ? qo(t) : Qo(t);
2637
2637
  }, bn = function(e, t) {
2638
2638
  return e === "v" ? Jo(t) : ei(t);
2639
2639
  }, ti = function(e, t) {
@@ -2649,7 +2649,7 @@ var ue = nt ? { passive: !1 } : !1, qo = function(e) {
2649
2649
  a && (t.contains(c) || t === c)
2650
2650
  );
2651
2651
  return (h && (Math.abs(d) < 1 || !o) || !h && (Math.abs(p) < 1 || !o)) && (l = !0), l;
2652
- }, De = function(e) {
2652
+ }, Ne = function(e) {
2653
2653
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2654
2654
  }, Bt = function(e) {
2655
2655
  return [e.deltaX, e.deltaY];
@@ -2683,7 +2683,7 @@ function si(e) {
2683
2683
  var c = f.useCallback(function(u, v) {
2684
2684
  if ("touches" in u && u.touches.length === 2)
2685
2685
  return !s.current.allowPinchZoom;
2686
- var y = De(u), w = n.current, b = "deltaX" in u ? u.deltaX : w[0] - y[0], x = "deltaY" in u ? u.deltaY : w[1] - y[1], E, C = u.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
2686
+ var y = Ne(u), w = n.current, b = "deltaX" in u ? u.deltaX : w[0] - y[0], x = "deltaY" in u ? u.deltaY : w[1] - y[1], E, C = u.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
2687
2687
  if ("touches" in u && S === "h" && C.type === "range")
2688
2688
  return !1;
2689
2689
  var A = _t(S, C);
@@ -2698,7 +2698,7 @@ function si(e) {
2698
2698
  }, []), a = f.useCallback(function(u) {
2699
2699
  var v = u;
2700
2700
  if (!(!fe.length || fe[fe.length - 1] !== i)) {
2701
- var y = "deltaY" in v ? Bt(v) : De(v), w = t.current.filter(function(E) {
2701
+ var y = "deltaY" in v ? Bt(v) : Ne(v), w = t.current.filter(function(E) {
2702
2702
  return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && ri(E.delta, y);
2703
2703
  })[0];
2704
2704
  if (w && w.should) {
@@ -2720,11 +2720,11 @@ function si(e) {
2720
2720
  });
2721
2721
  }, 1);
2722
2722
  }, []), h = f.useCallback(function(u) {
2723
- n.current = De(u), r.current = void 0;
2723
+ n.current = Ne(u), r.current = void 0;
2724
2724
  }, []), d = f.useCallback(function(u) {
2725
2725
  l(u.type, Bt(u), u.target, c(u, e.lockRef.current));
2726
2726
  }, []), p = f.useCallback(function(u) {
2727
- l(u.type, De(u), u.target, c(u, e.lockRef.current));
2727
+ l(u.type, Ne(u), u.target, c(u, e.lockRef.current));
2728
2728
  }, []);
2729
2729
  f.useEffect(function() {
2730
2730
  return fe.push(i), e.setCallbacks({
@@ -2783,7 +2783,7 @@ export {
2783
2783
  yi as p,
2784
2784
  wi as q,
2785
2785
  Ee as r,
2786
- qn as s,
2786
+ Zn as s,
2787
2787
  se as u
2788
2788
  };
2789
- //# sourceMappingURL=Combination-BOiWt0Ng.js.map
2789
+ //# sourceMappingURL=Combination-Djh-LWhb.js.map