@marimo-team/islands 0.25.3-dev500 → 0.25.3-dev502
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.
- package/dist/{ConnectedDataExplorerComponent-BV2GFVYn.js → ConnectedDataExplorerComponent-DtwVgVpX.js} +13 -13
- package/dist/{ErrorBoundary-CpSSnt9y.js → ErrorBoundary-ePLziXRA.js} +8 -8
- package/dist/{abnfDiagram-VCTEODGH-1AWrWE-o.js → abnfDiagram-VCTEODGH-BbZOIueZ.js} +2 -2
- package/dist/{any-language-editor-Dqpg95i0.js → any-language-editor-yG-YmLaK.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-D0zM5fGn.js → architectureDiagram-5GKGNRK7-qjLjxapm.js} +1 -1
- package/dist/{assertNever-BQEDS5Ew.js → assertNever-DywGMo-S.js} +2 -2
- package/dist/{chat-ui-JmYr7eaD.js → chat-ui-CCmVFbcB.js} +41 -41
- package/dist/{check-BTnCP_6g.js → check-jchHMCfs.js} +1 -1
- package/dist/{chunk-IMKFNOWR-CTe-GyEo.js → chunk-IMKFNOWR-BzDY1_I7.js} +1 -1
- package/dist/{chunk-SHT3W25Y-mDvz0_Bb.js → chunk-SHT3W25Y-DbHsMKdo.js} +1 -1
- package/dist/{chunk-SVP7TREG-TQe5CTi-.js → chunk-SVP7TREG-CtwnwAE6.js} +1 -1
- package/dist/{chunk-TICWLB2K-DueGZcaL.js → chunk-TICWLB2K-C5Z5QMbO.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-C80WtbRl.js → classDiagram-ZZMXUADV-B8E5Hn78.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-BGUFGXB1.js → classDiagram-v2-VYDZK3BY-DeGsK9bT.js} +2 -2
- package/dist/{code-visibility-CXdUXvjR.js → code-visibility-DKneHpuR.js} +19 -19
- package/dist/{common-Bgx8DW-s.js → common-DzAGemKS.js} +162 -162
- package/dist/{config-DbjezUyA.js → config-qTaTHnpE.js} +3 -3
- package/dist/{copy-icon-7bY-OuK1.js → copy-icon-BI7vZHEW.js} +2 -2
- package/dist/{createReducer-BTiEYD5d.js → createReducer-DdSLRfBT.js} +5 -5
- package/dist/{cynefinDiagram-5FMLGOSQ-B1FxtX7q.js → cynefinDiagram-5FMLGOSQ-NDedRwsw.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-DsaxsLKR.js → dagre-GXQ25YYZ-De0sSZO7.js} +1 -1
- package/dist/{data-grid-overlay-editor-Db7nCoNJ.js → data-grid-overlay-editor-CfDzyrId.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-0_x8Q-Gz.js → diagram-S7CK7UJ4-wBtVl61y.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-nvR7yqd-.js → diagram-UQ7AKVKN-CKWE3c1T.js} +1 -1
- package/dist/{diagram-VX7I27RA-BnEUU78X.js → diagram-VX7I27RA-D2Ac5198.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BHX2x9ql.js → diagram-Z3DM3KII-CYaFOQcI.js} +1 -1
- package/dist/{dialog-CBKdXrw9.js → dialog-Ic6dh09m.js} +31 -31
- package/dist/{dropdown-menu-218IIk7S.js → dropdown-menu-Dhv4fcNl.js} +86 -86
- package/dist/{ebnfDiagram-PWID7BFC-DYZD7-aw.js → ebnfDiagram-PWID7BFC-Ds7f42dj.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-Bv-0tHzX.js → erDiagram-RLTQ6QDP-b58Sz2Mc.js} +1 -1
- package/dist/{error-banner-cub3qDum.js → error-banner-CJVLr5_a.js} +15 -15
- package/dist/{error-entries-MZLN-feW.js → error-entries-BoO7a296.js} +378 -378
- package/dist/{feedback-button-Vn4lQguX.js → feedback-button-C_1Vvn9U.js} +120 -120
- package/dist/{flowDiagram-HODETNUW-BV2Dug--.js → flowDiagram-HODETNUW-BH9U7VZK.js} +2 -2
- package/dist/{formats-CBWqzCiR.js → formats-BLNFWWhV.js} +1 -1
- package/dist/{glide-data-editor-SVSB_FrV.js → glide-data-editor-TRIDYIO5.js} +11 -11
- package/dist/{glide-utils-DlglW_uh.js → glide-utils-Cn2_NadX.js} +2 -2
- package/dist/{globals-DLg0VAFW.js → globals-BYTYkr6e.js} +3 -3
- package/dist/{html-to-image-D6h4lzXj.js → html-to-image-rvMfQD46.js} +326 -326
- package/dist/{infoDiagram-27XIBGKW-xekhSKlY.js → infoDiagram-27XIBGKW-xbjwrcNi.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-Coe7mUqv.js → ishikawaDiagram-5VMMS53U-DKtukhGS.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-Znywqtyi.js → kanban-definition-UXKFOSKX-BEhlkZBb.js} +1 -1
- package/dist/main.js +5887 -5861
- package/dist/{mermaid-DRT7MewO.js → mermaid-D1CZDNoB.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-Do_NrRXE.js → mindmap-definition-YA3MSWOX-DQcnJPcV.js} +1 -1
- package/dist/{number-overlay-editor-Cl-4xrmj.js → number-overlay-editor-Byu7YaAa.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CTuwofVH.js → pegDiagram-XKGWAZYB-BFQuPYfI.js} +2 -2
- package/dist/{pencil-qedVMD6q.js → pencil-DVYzq-iR.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-CFHRBvha.js → pieDiagram-E7YTZNPT-l7aqNrem.js} +1 -1
- package/dist/{process-output-MYh-Vr__.js → process-output-BXff1USQ.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-BJBqS4A3.js → railroadDiagram-O6MQD6OU-6R3C1lwQ.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-CoMoIh3b.js → requirementDiagram-BXWQKSXE-DdWYu8fn.js} +1 -1
- package/dist/{reveal-component-CSm--bq9.js → reveal-component-DAxvGRsf.js} +1008 -1008
- package/dist/{select-BcEi9lad.js → select-CDUxhHZg.js} +109 -109
- package/dist/{sequenceDiagram-WJ2MYXX4-Cu7Mpp-z.js → sequenceDiagram-WJ2MYXX4-Dzp0dgRc.js} +1 -1
- package/dist/{spec-AxyC1vc5.js → spec-ZAt4P01J.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-DX7_Rnib.js → stateDiagram-D77RDMKH-BGnTUhFJ.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-oFXVbGoo.js → stateDiagram-v2-MP3YSRHH-DsJbmDf1.js} +2 -2
- package/dist/{static-state-CqzVppxA.js → static-state-C4bAlKTU.js} +9 -9
- package/dist/{swimlanes-42K2YHIH-CxzCGtVZ.js → swimlanes-42K2YHIH-Bd4Bzh9r.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-1a1GRLNf.js → swimlanesDiagram-VR7AAH4N-BlY12Jf6.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-Pfn2awsU.js → timeline-definition-24CTP7MA-m0LanyCH.js} +1 -1
- package/dist/{toast-aYa8V5tR.js → toast-U3NpO2x3.js} +192 -192
- package/dist/{tooltip-CwQmweEz.js → tooltip-UzJukb3F.js} +65 -65
- package/dist/{use-restore-focus-DlX1CSiq.js → use-restore-focus-DaTVz6S6.js} +679 -668
- package/dist/{useDateFormatter-BAckjdIS.js → useDateFormatter-LQNtoXyh.js} +2 -2
- package/dist/{useDeepCompareMemoize-C6mte0N8.js → useDeepCompareMemoize-CmNbQ9TT.js} +1 -1
- package/dist/{useLifecycle-XZ5KJAFU.js → useLifecycle-DTMczKkf.js} +1 -1
- package/dist/{vega-component-_We1FoNw.js → vega-component-ZTdbCcwI.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-DrIqDugg.js → vennDiagram-4TSXK5OY-BJ7vqDmn.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DBPVNfc3.js → wardleyDiagram-VM6X3IG4-D5kWacsn.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-64Isocef.js → xychartDiagram-S5SC5T6Z-gr15Ws_z.js} +1 -1
- package/package.json +1 -1
|
@@ -138,72 +138,72 @@ var le = globalThis?.document ? v.useLayoutEffect : () => {}, ue = Object.define
|
|
|
138
138
|
value: t,
|
|
139
139
|
configurable: !0
|
|
140
140
|
}), fe = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
141
|
-
function
|
|
141
|
+
function S(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
142
142
|
return /* @__PURE__ */ de(function(r) {
|
|
143
143
|
if (e?.(r), n === !1 || !r || !r.defaultPrevented) return t?.(r);
|
|
144
144
|
}, "handleEvent");
|
|
145
145
|
}
|
|
146
|
-
de(
|
|
147
|
-
function
|
|
146
|
+
de(S, "composeEventHandlers");
|
|
147
|
+
function pe(e) {
|
|
148
148
|
if (!fe) throw Error("Cannot access window outside of the DOM");
|
|
149
149
|
return e?.ownerDocument?.defaultView ?? window;
|
|
150
150
|
}
|
|
151
|
-
de(
|
|
152
|
-
function
|
|
151
|
+
de(pe, "getOwnerWindow");
|
|
152
|
+
function me(e) {
|
|
153
153
|
if (!fe) throw Error("Cannot access document outside of the DOM");
|
|
154
154
|
return e?.ownerDocument ?? document;
|
|
155
155
|
}
|
|
156
|
-
de(
|
|
157
|
-
function
|
|
158
|
-
let { activeElement: n } =
|
|
156
|
+
de(me, "getOwnerDocument");
|
|
157
|
+
function he(e, t = !1) {
|
|
158
|
+
let { activeElement: n } = me(e);
|
|
159
159
|
if (!n?.nodeName) return null;
|
|
160
|
-
if (
|
|
160
|
+
if (ge(n) && n.contentDocument) return he(n.contentDocument.body, t);
|
|
161
161
|
if (t) {
|
|
162
162
|
let e = n.getAttribute("aria-activedescendant");
|
|
163
163
|
if (e) {
|
|
164
|
-
let t =
|
|
164
|
+
let t = me(n).getElementById(e);
|
|
165
165
|
if (t) return t;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
return n;
|
|
169
169
|
}
|
|
170
|
-
de(
|
|
171
|
-
function
|
|
170
|
+
de(he, "getActiveElement");
|
|
171
|
+
function ge(e) {
|
|
172
172
|
return e.tagName === "IFRAME";
|
|
173
173
|
}
|
|
174
|
-
de(
|
|
174
|
+
de(ge, "isFrame");
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region ../node_modules/.pnpm/@radix-ui+react-use-effect-event@0.0.5_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
|
|
177
|
-
var
|
|
177
|
+
var _e = Object.defineProperty, ve = (e, t) => _e(e, "name", {
|
|
178
178
|
value: t,
|
|
179
179
|
configurable: !0
|
|
180
|
-
}),
|
|
181
|
-
function
|
|
182
|
-
if (typeof
|
|
180
|
+
}), ye = v.useEffectEvent, be = v.useInsertionEffect;
|
|
181
|
+
function xe(e) {
|
|
182
|
+
if (typeof ye == "function") return ye(e);
|
|
183
183
|
let t = v.useRef(() => {
|
|
184
184
|
throw Error("Cannot call an event handler while rendering.");
|
|
185
185
|
});
|
|
186
|
-
return typeof
|
|
186
|
+
return typeof be == "function" ? be(() => {
|
|
187
187
|
t.current = e;
|
|
188
188
|
}) : le(() => {
|
|
189
189
|
t.current = e;
|
|
190
190
|
}), v.useMemo(() => ((...e) => t.current?.(...e)), []);
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
ve(xe, "useEffectEvent");
|
|
193
193
|
//#endregion
|
|
194
194
|
//#region ../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.3.0_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
195
|
-
var
|
|
195
|
+
var Se = Object.defineProperty, Ce = (e, t) => Se(e, "name", {
|
|
196
196
|
value: t,
|
|
197
197
|
configurable: !0
|
|
198
|
-
}),
|
|
199
|
-
function
|
|
200
|
-
let [i, a, o] =
|
|
198
|
+
}), we = v.useInsertionEffect || le;
|
|
199
|
+
function Te({ prop: e, defaultProp: t, onChange: n = /* @__PURE__ */ Ce(() => {}, "onChange"), caller: r }) {
|
|
200
|
+
let [i, a, o] = Ee({
|
|
201
201
|
defaultProp: t,
|
|
202
202
|
onChange: n
|
|
203
203
|
}), s = e !== void 0;
|
|
204
204
|
return [s ? e : i, v.useCallback((t) => {
|
|
205
205
|
if (s) {
|
|
206
|
-
let n =
|
|
206
|
+
let n = De(t) ? t(e) : t;
|
|
207
207
|
n !== e && o.current?.(n);
|
|
208
208
|
} else a(t);
|
|
209
209
|
}, [
|
|
@@ -213,10 +213,10 @@ function Ee({ prop: e, defaultProp: t, onChange: n = /* @__PURE__ */ we(() => {}
|
|
|
213
213
|
o
|
|
214
214
|
])];
|
|
215
215
|
}
|
|
216
|
-
|
|
217
|
-
function
|
|
216
|
+
Ce(Te, "useControllableState");
|
|
217
|
+
function Ee({ defaultProp: e, onChange: t }) {
|
|
218
218
|
let [n, r] = v.useState(e), i = v.useRef(n), a = v.useRef(t);
|
|
219
|
-
return
|
|
219
|
+
return we(() => {
|
|
220
220
|
a.current = t;
|
|
221
221
|
}, [t]), v.useEffect(() => {
|
|
222
222
|
i.current !== n && (a.current?.(n), i.current = n);
|
|
@@ -226,20 +226,20 @@ function De({ defaultProp: e, onChange: t }) {
|
|
|
226
226
|
a
|
|
227
227
|
];
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
function
|
|
229
|
+
Ce(Ee, "useUncontrolledState");
|
|
230
|
+
function De(e) {
|
|
231
231
|
return typeof e == "function";
|
|
232
232
|
}
|
|
233
|
-
|
|
234
|
-
var
|
|
235
|
-
function
|
|
236
|
-
let { prop: i, defaultProp: a, onChange: o, caller: s } = t, c = i !== void 0, l =
|
|
233
|
+
Ce(De, "isFunction");
|
|
234
|
+
var Oe = Symbol("RADIX:SYNC_STATE");
|
|
235
|
+
function ke(e, t, n, r) {
|
|
236
|
+
let { prop: i, defaultProp: a, onChange: o, caller: s } = t, c = i !== void 0, l = xe(o), u = [{
|
|
237
237
|
...n,
|
|
238
238
|
state: a
|
|
239
239
|
}];
|
|
240
240
|
r && u.push(r);
|
|
241
241
|
let [d, f] = v.useReducer((t, n) => {
|
|
242
|
-
if (n.type ===
|
|
242
|
+
if (n.type === Oe) return {
|
|
243
243
|
...t,
|
|
244
244
|
state: n.state
|
|
245
245
|
};
|
|
@@ -259,7 +259,7 @@ function Ae(e, t, n, r) {
|
|
|
259
259
|
}, [d, i]);
|
|
260
260
|
return v.useEffect(() => {
|
|
261
261
|
c && !Object.is(i, d.state) && f({
|
|
262
|
-
type:
|
|
262
|
+
type: Oe,
|
|
263
263
|
state: i
|
|
264
264
|
});
|
|
265
265
|
}, [
|
|
@@ -268,23 +268,23 @@ function Ae(e, t, n, r) {
|
|
|
268
268
|
c
|
|
269
269
|
]), [h, f];
|
|
270
270
|
}
|
|
271
|
-
|
|
271
|
+
Ce(ke, "useControllableStateReducer");
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region ../node_modules/.pnpm/@radix-ui+react-presence@1.1.11_@types+react-dom@19.3.0_@types+react@19.3.0__@types+rea_f62c16392ef5c0f7dddc17b4112d7eab/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
274
|
-
var
|
|
274
|
+
var Ae = Object.defineProperty, je = (e, t) => Ae(e, "name", {
|
|
275
275
|
value: t,
|
|
276
276
|
configurable: !0
|
|
277
277
|
});
|
|
278
|
-
function
|
|
278
|
+
function Me(e, t) {
|
|
279
279
|
return v.useReducer((e, n) => t[e][n] ?? e, e);
|
|
280
280
|
}
|
|
281
|
-
Me
|
|
282
|
-
var
|
|
283
|
-
let { present: t, children: n } = e, r =
|
|
281
|
+
je(Me, "useStateMachine");
|
|
282
|
+
var Ne = /* @__PURE__ */ je((e) => {
|
|
283
|
+
let { present: t, children: n } = e, r = Pe(t), i = typeof n == "function" ? n({ present: r.isPresent }) : v.Children.only(n), a = Ie(r.ref, Re(i));
|
|
284
284
|
return typeof n == "function" || r.isPresent ? v.cloneElement(i, { ref: a }) : null;
|
|
285
285
|
}, "Presence");
|
|
286
|
-
function
|
|
287
|
-
let [t, n] = v.useState(), r = v.useRef(null), i = v.useRef(e), a = v.useRef("none"), o = v.useRef(void 0), [s, c] =
|
|
286
|
+
function Pe(e) {
|
|
287
|
+
let [t, n] = v.useState(), r = v.useRef(null), i = v.useRef(e), a = v.useRef("none"), o = v.useRef(void 0), [s, c] = Me(e ? "mounted" : "unmounted", {
|
|
288
288
|
mounted: {
|
|
289
289
|
UNMOUNT: "unmounted",
|
|
290
290
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -296,25 +296,25 @@ function Fe(e) {
|
|
|
296
296
|
unmounted: { MOUNT: "mounted" }
|
|
297
297
|
});
|
|
298
298
|
return v.useEffect(() => {
|
|
299
|
-
s === "mounted" ? (a.current = o.current ??
|
|
299
|
+
s === "mounted" ? (a.current = o.current ?? Le(r.current), o.current = void 0) : a.current = "none";
|
|
300
300
|
}, [s]), le(() => {
|
|
301
301
|
let t = r.current, n = i.current;
|
|
302
302
|
if (n !== e) {
|
|
303
|
-
let r = a.current, s =
|
|
303
|
+
let r = a.current, s = Le(t);
|
|
304
304
|
e ? (o.current = s, c("MOUNT")) : s === "none" || t?.display === "none" ? c("UNMOUNT") : c(n && r !== s ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
305
305
|
}
|
|
306
306
|
}, [e, c]), le(() => {
|
|
307
307
|
if (t) {
|
|
308
|
-
let e, n = t.ownerDocument.defaultView ?? window, o = /* @__PURE__ */
|
|
309
|
-
let o =
|
|
308
|
+
let e, n = t.ownerDocument.defaultView ?? window, o = /* @__PURE__ */ je((a) => {
|
|
309
|
+
let o = Le(r.current).includes(CSS.escape(a.animationName));
|
|
310
310
|
if (a.target === t && o && (c("ANIMATION_END"), !i.current)) {
|
|
311
311
|
let r = t.style.animationFillMode;
|
|
312
312
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
313
313
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = r);
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
}, "handleAnimationEnd"), s = /* @__PURE__ */
|
|
317
|
-
e.target === t && (a.current =
|
|
316
|
+
}, "handleAnimationEnd"), s = /* @__PURE__ */ je((e) => {
|
|
317
|
+
e.target === t && (a.current = Le(r.current));
|
|
318
318
|
}, "handleAnimationStart");
|
|
319
319
|
return t.addEventListener("animationstart", s), t.addEventListener("animationcancel", o), t.addEventListener("animationend", o), () => {
|
|
320
320
|
n.clearTimeout(e), t.removeEventListener("animationstart", s), t.removeEventListener("animationcancel", o), t.removeEventListener("animationend", o);
|
|
@@ -326,83 +326,83 @@ function Fe(e) {
|
|
|
326
326
|
ref: v.useCallback((e) => {
|
|
327
327
|
if (e) {
|
|
328
328
|
let t = getComputedStyle(e);
|
|
329
|
-
r.current = t, o.current =
|
|
329
|
+
r.current = t, o.current = Le(t);
|
|
330
330
|
} else r.current = null;
|
|
331
331
|
n(e);
|
|
332
332
|
}, [])
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
function
|
|
335
|
+
je(Pe, "usePresence");
|
|
336
|
+
function Fe(e, t) {
|
|
337
337
|
if (typeof e == "function") return e(t);
|
|
338
338
|
e != null && (e.current = t);
|
|
339
339
|
}
|
|
340
|
-
|
|
341
|
-
function
|
|
340
|
+
je(Fe, "setRef");
|
|
341
|
+
function Ie(...e) {
|
|
342
342
|
let t = v.useRef(e);
|
|
343
343
|
return t.current = e, v.useCallback((e) => {
|
|
344
344
|
let n = t.current, r = !1, i = n.map((t) => {
|
|
345
|
-
let n =
|
|
345
|
+
let n = Fe(t, e);
|
|
346
346
|
return !r && typeof n == "function" && (r = !0), n;
|
|
347
347
|
});
|
|
348
348
|
if (r) return () => {
|
|
349
349
|
for (let e = 0; e < i.length; e++) {
|
|
350
350
|
let t = i[e];
|
|
351
|
-
typeof t == "function" ? t() :
|
|
351
|
+
typeof t == "function" ? t() : Fe(n[e], null);
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
354
|
}, []);
|
|
355
355
|
}
|
|
356
|
-
|
|
357
|
-
function
|
|
356
|
+
je(Ie, "useStableComposedRefs");
|
|
357
|
+
function Le(e) {
|
|
358
358
|
return e?.animationName || "none";
|
|
359
359
|
}
|
|
360
|
-
|
|
361
|
-
function
|
|
360
|
+
je(Le, "getAnimationName");
|
|
361
|
+
function Re(e) {
|
|
362
362
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
363
363
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
364
364
|
}
|
|
365
|
-
|
|
365
|
+
je(Re, "getElementRef");
|
|
366
366
|
//#endregion
|
|
367
367
|
//#region ../node_modules/.pnpm/@radix-ui+react-id@1.1.4_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
368
|
-
var
|
|
368
|
+
var ze = Object.defineProperty, Be = (e, t) => ze(e, "name", {
|
|
369
369
|
value: t,
|
|
370
370
|
configurable: !0
|
|
371
|
-
}),
|
|
372
|
-
function
|
|
373
|
-
let [t, n] = v.useState(
|
|
371
|
+
}), Ve = v.useId || (() => void 0), He = 0;
|
|
372
|
+
function Ue(e) {
|
|
373
|
+
let [t, n] = v.useState(Ve());
|
|
374
374
|
return le(() => {
|
|
375
|
-
e || n((e) => e ?? String(
|
|
375
|
+
e || n((e) => e ?? String(He++));
|
|
376
376
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
377
377
|
}
|
|
378
|
-
|
|
378
|
+
Be(Ue, "useId");
|
|
379
379
|
//#endregion
|
|
380
380
|
//#region ../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.5_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
381
|
-
var
|
|
381
|
+
var We = Object.defineProperty, Ge = (e, t) => We(e, "name", {
|
|
382
382
|
value: t,
|
|
383
383
|
configurable: !0
|
|
384
|
-
}),
|
|
385
|
-
function
|
|
384
|
+
}), Ke = v.useInsertionEffect;
|
|
385
|
+
function qe(e) {
|
|
386
386
|
let t = v.useRef(e);
|
|
387
|
-
return typeof
|
|
387
|
+
return typeof Ke == "function" ? Ke(() => {
|
|
388
388
|
t.current = e;
|
|
389
389
|
}) : le(() => {
|
|
390
390
|
t.current = e;
|
|
391
391
|
}), v.useMemo(() => ((...e) => t.current?.(...e)), []);
|
|
392
392
|
}
|
|
393
|
-
|
|
393
|
+
Ge(qe, "useCallbackRef");
|
|
394
394
|
//#endregion
|
|
395
395
|
//#region ../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@t_aa9a2defeade16af3bdfd2945af978c3/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
396
|
-
var
|
|
396
|
+
var Je = Object.defineProperty, C = (e, t) => Je(e, "name", {
|
|
397
397
|
value: t,
|
|
398
398
|
configurable: !0
|
|
399
|
-
}),
|
|
399
|
+
}), Ye = "dismissableLayer.update", Xe = "dismissableLayer.pointerDownOutside", Ze = "dismissableLayer.focusOutside", Qe, $e = v.createContext({
|
|
400
400
|
layers: /* @__PURE__ */ new Set(),
|
|
401
401
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
402
402
|
branches: /* @__PURE__ */ new Set(),
|
|
403
403
|
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
404
|
-
}),
|
|
405
|
-
let { disableOutsidePointerEvents: n = !1, deferPointerDownOutside: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...u } = e, d = v.useContext(
|
|
404
|
+
}), et = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ C(function(e, t) {
|
|
405
|
+
let { disableOutsidePointerEvents: n = !1, deferPointerDownOutside: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...u } = e, d = v.useContext($e), [f, p] = v.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = v.useState({}), g = o(t, p), _ = Array.from(d.layers), [ee] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), te = ee ? _.indexOf(ee) : -1, ne = f ? _.indexOf(f) : -1, re = d.layersWithOutsidePointerEventsDisabled.size > 0, ie = ne >= te, ae = v.useRef(!1), x = it((e) => {
|
|
406
406
|
a?.(e), c?.(e), e.defaultPrevented || l?.();
|
|
407
407
|
}, {
|
|
408
408
|
ownerDocument: m,
|
|
@@ -414,11 +414,11 @@ var Ye = Object.defineProperty, S = (e, t) => Ye(e, "name", {
|
|
|
414
414
|
let t = [...d.branches].some((t) => t.contains(e));
|
|
415
415
|
return ie && !t;
|
|
416
416
|
}, [d.branches, ie])
|
|
417
|
-
}), oe =
|
|
417
|
+
}), oe = at((e) => {
|
|
418
418
|
if (r && ae.current) return;
|
|
419
419
|
let t = e.target;
|
|
420
420
|
[...d.branches].some((e) => e.contains(t)) || (s?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
421
|
-
}, m), se = f ? ne === _.length - 1 : !1, ce =
|
|
421
|
+
}, m), se = f ? ne === _.length - 1 : !1, ce = qe((e) => {
|
|
422
422
|
e.key === "Escape" && (i?.(e), !e.defaultPrevented && l && (e.preventDefault(), l()));
|
|
423
423
|
});
|
|
424
424
|
return v.useEffect(() => {
|
|
@@ -428,8 +428,8 @@ var Ye = Object.defineProperty, S = (e, t) => Ye(e, "name", {
|
|
|
428
428
|
se,
|
|
429
429
|
ce
|
|
430
430
|
]), v.useEffect(() => {
|
|
431
|
-
if (f) return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
432
|
-
n && (d.layersWithOutsidePointerEventsDisabled.delete(f), d.layersWithOutsidePointerEventsDisabled.size === 0 && (m.body.style.pointerEvents =
|
|
431
|
+
if (f) return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Qe = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), ot(), () => {
|
|
432
|
+
n && (d.layersWithOutsidePointerEventsDisabled.delete(f), d.layersWithOutsidePointerEventsDisabled.size === 0 && (m.body.style.pointerEvents = Qe));
|
|
433
433
|
};
|
|
434
434
|
}, [
|
|
435
435
|
f,
|
|
@@ -437,10 +437,10 @@ var Ye = Object.defineProperty, S = (e, t) => Ye(e, "name", {
|
|
|
437
437
|
n,
|
|
438
438
|
d
|
|
439
439
|
]), v.useEffect(() => () => {
|
|
440
|
-
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f),
|
|
440
|
+
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), ot());
|
|
441
441
|
}, [f, d]), v.useEffect(() => {
|
|
442
|
-
let e = /* @__PURE__ */
|
|
443
|
-
return document.addEventListener(
|
|
442
|
+
let e = /* @__PURE__ */ C(() => h({}), "handleUpdate");
|
|
443
|
+
return document.addEventListener(Ye, e), () => document.removeEventListener(Ye, e);
|
|
444
444
|
}, []), /* @__PURE__ */ (0, y.jsx)(b.div, {
|
|
445
445
|
...u,
|
|
446
446
|
ref: g,
|
|
@@ -448,12 +448,12 @@ var Ye = Object.defineProperty, S = (e, t) => Ye(e, "name", {
|
|
|
448
448
|
pointerEvents: re ? ie ? "auto" : "none" : void 0,
|
|
449
449
|
...e.style
|
|
450
450
|
},
|
|
451
|
-
onFocusCapture:
|
|
452
|
-
onBlurCapture:
|
|
453
|
-
onPointerDownCapture:
|
|
451
|
+
onFocusCapture: S(e.onFocusCapture, oe.onFocusCapture),
|
|
452
|
+
onBlurCapture: S(e.onBlurCapture, oe.onBlurCapture),
|
|
453
|
+
onPointerDownCapture: S(e.onPointerDownCapture, x.onPointerDownCapture)
|
|
454
454
|
});
|
|
455
|
-
}, "DismissableLayer")),
|
|
456
|
-
let n = v.useContext(
|
|
455
|
+
}, "DismissableLayer")), tt = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ C(function(e, t) {
|
|
456
|
+
let n = v.useContext($e), r = v.useRef(null), i = o(t, r);
|
|
457
457
|
return v.useEffect(() => {
|
|
458
458
|
let e = r.current;
|
|
459
459
|
if (e) return n.branches.add(e), () => {
|
|
@@ -464,27 +464,27 @@ var Ye = Object.defineProperty, S = (e, t) => Ye(e, "name", {
|
|
|
464
464
|
ref: i
|
|
465
465
|
});
|
|
466
466
|
}, "DismissableLayerBranch"));
|
|
467
|
-
function
|
|
468
|
-
let e = v.useContext(
|
|
467
|
+
function nt() {
|
|
468
|
+
let e = v.useContext($e), [t, n] = v.useState(null);
|
|
469
469
|
return v.useEffect(() => {
|
|
470
470
|
if (t) return e.dismissableSurfaces.add(t), () => {
|
|
471
471
|
e.dismissableSurfaces.delete(t);
|
|
472
472
|
};
|
|
473
473
|
}, [t, e.dismissableSurfaces]), n;
|
|
474
474
|
}
|
|
475
|
-
|
|
476
|
-
var
|
|
477
|
-
function
|
|
478
|
-
let { ownerDocument: n = globalThis?.document, deferPointerDownOutside: r = !1, isDeferredPointerDownOutsideRef: i, dismissableSurfaces: a, shouldHandlePointerDownOutside: o =
|
|
475
|
+
C(nt, "useDismissableLayerSurface");
|
|
476
|
+
var rt = /* @__PURE__ */ C(() => !0, "IS_TRUE");
|
|
477
|
+
function it(e, t) {
|
|
478
|
+
let { ownerDocument: n = globalThis?.document, deferPointerDownOutside: r = !1, isDeferredPointerDownOutsideRef: i, dismissableSurfaces: a, shouldHandlePointerDownOutside: o = rt } = t, s = qe(e), c = v.useRef(!1), l = v.useRef(!1), u = v.useRef(/* @__PURE__ */ new Map()), d = v.useRef(() => {});
|
|
479
479
|
return v.useEffect(() => {
|
|
480
480
|
function e() {
|
|
481
481
|
l.current = !1, i.current = !1, u.current.clear();
|
|
482
482
|
}
|
|
483
|
-
|
|
483
|
+
C(e, "resetOutsideInteraction");
|
|
484
484
|
function t() {
|
|
485
485
|
return Array.from(u.current.values()).some(Boolean);
|
|
486
486
|
}
|
|
487
|
-
|
|
487
|
+
C(t, "isOutsideInteractionIntercepted");
|
|
488
488
|
function f(e) {
|
|
489
489
|
if (!l.current) return;
|
|
490
490
|
let t = e.target;
|
|
@@ -492,19 +492,19 @@ function at(e, t) {
|
|
|
492
492
|
l.current && d.current();
|
|
493
493
|
}, 0);
|
|
494
494
|
}
|
|
495
|
-
|
|
495
|
+
C(f, "handleInteractionCapture");
|
|
496
496
|
function p(e) {
|
|
497
497
|
l.current && u.current.set(e.type, !1);
|
|
498
498
|
}
|
|
499
|
-
|
|
500
|
-
let m = /* @__PURE__ */
|
|
499
|
+
C(p, "handleInteractionBubble");
|
|
500
|
+
let m = /* @__PURE__ */ C((a) => {
|
|
501
501
|
if (a.target && !c.current) {
|
|
502
502
|
let f = function() {
|
|
503
503
|
n.removeEventListener("click", d.current);
|
|
504
504
|
let r = t();
|
|
505
|
-
e(), r ||
|
|
505
|
+
e(), r || st(Xe, s, p, { discrete: !0 });
|
|
506
506
|
};
|
|
507
|
-
if (
|
|
507
|
+
if (C(f, "handleAndDispatchPointerDownOutsideEvent"), !o(a.target)) {
|
|
508
508
|
n.removeEventListener("click", d.current), e(), c.current = !1;
|
|
509
509
|
return;
|
|
510
510
|
}
|
|
@@ -535,28 +535,28 @@ function at(e, t) {
|
|
|
535
535
|
i,
|
|
536
536
|
a,
|
|
537
537
|
o
|
|
538
|
-
]), { onPointerDownCapture: /* @__PURE__ */
|
|
538
|
+
]), { onPointerDownCapture: /* @__PURE__ */ C(() => c.current = !0, "onPointerDownCapture") };
|
|
539
539
|
}
|
|
540
|
-
|
|
541
|
-
function
|
|
542
|
-
let n =
|
|
540
|
+
C(it, "usePointerDownOutside");
|
|
541
|
+
function at(e, t = globalThis?.document) {
|
|
542
|
+
let n = qe(e), r = v.useRef(!1);
|
|
543
543
|
return v.useEffect(() => {
|
|
544
|
-
let e = /* @__PURE__ */
|
|
545
|
-
e.target && !r.current &&
|
|
544
|
+
let e = /* @__PURE__ */ C((e) => {
|
|
545
|
+
e.target && !r.current && st(Ze, n, { originalEvent: e }, { discrete: !1 });
|
|
546
546
|
}, "handleFocus");
|
|
547
547
|
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
548
548
|
}, [t, n]), {
|
|
549
|
-
onFocusCapture: /* @__PURE__ */
|
|
550
|
-
onBlurCapture: /* @__PURE__ */
|
|
549
|
+
onFocusCapture: /* @__PURE__ */ C(() => r.current = !0, "onFocusCapture"),
|
|
550
|
+
onBlurCapture: /* @__PURE__ */ C(() => r.current = !1, "onBlurCapture")
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
|
|
554
|
-
function
|
|
555
|
-
let e = new CustomEvent(
|
|
553
|
+
C(at, "useFocusOutside");
|
|
554
|
+
function ot() {
|
|
555
|
+
let e = new CustomEvent(Ye);
|
|
556
556
|
document.dispatchEvent(e);
|
|
557
557
|
}
|
|
558
|
-
|
|
559
|
-
function
|
|
558
|
+
C(ot, "dispatchUpdate");
|
|
559
|
+
function st(e, t, n, { discrete: r }) {
|
|
560
560
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
561
561
|
bubbles: !1,
|
|
562
562
|
cancelable: !0,
|
|
@@ -564,17 +564,17 @@ function ct(e, t, n, { discrete: r }) {
|
|
|
564
564
|
});
|
|
565
565
|
t && i.addEventListener(e, t, { once: !0 }), r ? ie(i, a) : i.dispatchEvent(a);
|
|
566
566
|
}
|
|
567
|
-
|
|
567
|
+
C(st, "handleAndDispatchCustomEvent");
|
|
568
568
|
//#endregion
|
|
569
569
|
//#region ../node_modules/.pnpm/@radix-ui+react-focus-scope@1.3.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+r_6d7db95e6b4b16578fd42789685673fa/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
570
|
-
var
|
|
570
|
+
var ct = Object.defineProperty, w = (e, t) => ct(e, "name", {
|
|
571
571
|
value: t,
|
|
572
572
|
configurable: !0
|
|
573
|
-
}),
|
|
573
|
+
}), lt = "focusScope.autoFocusOnMount", ut = "focusScope.autoFocusOnUnmount", dt = {
|
|
574
574
|
bubbles: !1,
|
|
575
575
|
cancelable: !0
|
|
576
|
-
},
|
|
577
|
-
let { loop: n = !1, trapped: r = !1, branches: i, onMountAutoFocus: a, onUnmountAutoFocus: s, ...c } = e, [l, u] = v.useState(null), d =
|
|
576
|
+
}, ft = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
577
|
+
let { loop: n = !1, trapped: r = !1, branches: i, onMountAutoFocus: a, onUnmountAutoFocus: s, ...c } = e, [l, u] = v.useState(null), d = qe(a), f = qe(s), p = v.useRef(null), m = o(t, u), h = v.useRef(i);
|
|
578
578
|
v.useEffect(() => {
|
|
579
579
|
h.current = i;
|
|
580
580
|
});
|
|
@@ -592,15 +592,15 @@ var lt = Object.defineProperty, C = (e, t) => lt(e, "name", {
|
|
|
592
592
|
let e = function(e) {
|
|
593
593
|
if (_.paused || !l) return;
|
|
594
594
|
let t = e.target;
|
|
595
|
-
g(t) ? p.current = t :
|
|
595
|
+
g(t) ? p.current = t : Ct(p.current, { select: !0 });
|
|
596
596
|
}, t = function(e) {
|
|
597
597
|
if (_.paused || !l) return;
|
|
598
598
|
let t = e.relatedTarget;
|
|
599
|
-
t !== null && (g(t) ||
|
|
599
|
+
t !== null && (g(t) || Ct(p.current, { select: !0 }));
|
|
600
600
|
}, n = function(e) {
|
|
601
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
601
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && Ct(l);
|
|
602
602
|
};
|
|
603
|
-
|
|
603
|
+
w(e, "handleFocusIn"), w(t, "handleFocusOut"), w(n, "handleMutations"), document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
604
604
|
let r = new MutationObserver(n);
|
|
605
605
|
return l && r.observe(l, {
|
|
606
606
|
childList: !0,
|
|
@@ -616,18 +616,18 @@ var lt = Object.defineProperty, C = (e, t) => lt(e, "name", {
|
|
|
616
616
|
g
|
|
617
617
|
]), v.useEffect(() => {
|
|
618
618
|
if (l) {
|
|
619
|
-
|
|
619
|
+
wt.add(_);
|
|
620
620
|
let e = document.activeElement;
|
|
621
621
|
if (!l.contains(e)) {
|
|
622
|
-
let t = new CustomEvent(
|
|
623
|
-
l.addEventListener(
|
|
622
|
+
let t = new CustomEvent(lt, dt);
|
|
623
|
+
l.addEventListener(lt, d), l.dispatchEvent(t), t.defaultPrevented || (_t(Dt(yt(l)), { select: !0 }), document.activeElement === e && Ct(l));
|
|
624
624
|
}
|
|
625
625
|
return () => {
|
|
626
|
-
l.removeEventListener(
|
|
626
|
+
l.removeEventListener(lt, d);
|
|
627
627
|
let t = l.ownerDocument, n = CustomEvent;
|
|
628
628
|
setTimeout(() => {
|
|
629
|
-
let r = new n(
|
|
630
|
-
l.addEventListener(
|
|
629
|
+
let r = new n(ut, dt);
|
|
630
|
+
l.addEventListener(ut, f), l.dispatchEvent(r), r.defaultPrevented || Ct(e ?? t.body, { select: !0 }), l.removeEventListener(ut, f), wt.remove(_);
|
|
631
631
|
}, 0);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
@@ -641,8 +641,8 @@ var lt = Object.defineProperty, C = (e, t) => lt(e, "name", {
|
|
|
641
641
|
if (!n && !r || _.paused) return;
|
|
642
642
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, i = document.activeElement;
|
|
643
643
|
if (t && i) {
|
|
644
|
-
let t = e.currentTarget, [r, a] =
|
|
645
|
-
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n &&
|
|
644
|
+
let t = e.currentTarget, [r, a] = vt(t);
|
|
645
|
+
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n && Ct(r, { select: !0 })) : e.shiftKey && i === r && (e.preventDefault(), n && Ct(a, { select: !0 })) : i === t && e.preventDefault();
|
|
646
646
|
}
|
|
647
647
|
}, [
|
|
648
648
|
n,
|
|
@@ -655,57 +655,57 @@ var lt = Object.defineProperty, C = (e, t) => lt(e, "name", {
|
|
|
655
655
|
ref: m,
|
|
656
656
|
onKeyDown: ee
|
|
657
657
|
});
|
|
658
|
-
}, "FocusScope")),
|
|
659
|
-
function
|
|
660
|
-
return e ? /* @__PURE__ */ (0, y.jsx)(
|
|
658
|
+
}, "FocusScope")), pt = v.createContext(null);
|
|
659
|
+
function mt({ registry: e, children: t }) {
|
|
660
|
+
return e ? /* @__PURE__ */ (0, y.jsx)(pt.Provider, {
|
|
661
661
|
value: e,
|
|
662
662
|
children: t
|
|
663
663
|
}) : t;
|
|
664
664
|
}
|
|
665
|
-
|
|
666
|
-
function
|
|
665
|
+
w(mt, "FocusScopeBranchProvider");
|
|
666
|
+
function ht() {
|
|
667
667
|
let [e, t] = v.useState([]);
|
|
668
668
|
return {
|
|
669
669
|
nodes: e,
|
|
670
670
|
registry: v.useMemo(() => ({
|
|
671
|
-
add: /* @__PURE__ */
|
|
672
|
-
remove: /* @__PURE__ */
|
|
671
|
+
add: /* @__PURE__ */ w((e) => t((t) => t.includes(e) ? t : [...t, e]), "add"),
|
|
672
|
+
remove: /* @__PURE__ */ w((e) => t((t) => t.filter((t) => t !== e)), "remove")
|
|
673
673
|
}), [])
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
|
|
677
|
-
function
|
|
678
|
-
let t = v.useContext(
|
|
676
|
+
w(ht, "useFocusScopeBranchRegistry");
|
|
677
|
+
function gt(e) {
|
|
678
|
+
let t = v.useContext(pt);
|
|
679
679
|
v.useEffect(() => {
|
|
680
680
|
if (e && t) return t.add(e), () => t.remove(e);
|
|
681
681
|
}, [e, t]);
|
|
682
682
|
}
|
|
683
|
-
|
|
684
|
-
function
|
|
683
|
+
w(gt, "useFocusScopeBranch");
|
|
684
|
+
function _t(e, { select: t = !1 } = {}) {
|
|
685
685
|
let n = document.activeElement;
|
|
686
|
-
for (let r of e) if (
|
|
686
|
+
for (let r of e) if (Ct(r, { select: t }), document.activeElement !== n) return;
|
|
687
687
|
}
|
|
688
|
-
|
|
689
|
-
function
|
|
690
|
-
let t =
|
|
691
|
-
return [
|
|
688
|
+
w(_t, "focusFirst");
|
|
689
|
+
function vt(e) {
|
|
690
|
+
let t = yt(e);
|
|
691
|
+
return [bt(t, e), bt(t.reverse(), e)];
|
|
692
692
|
}
|
|
693
|
-
|
|
694
|
-
function
|
|
695
|
-
let t = [], n = e.ownerDocument.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */
|
|
693
|
+
w(vt, "getTabbableEdges");
|
|
694
|
+
function yt(e) {
|
|
695
|
+
let t = [], n = e.ownerDocument.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ w((e) => {
|
|
696
696
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
697
697
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
698
698
|
}, "acceptNode") });
|
|
699
699
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
700
700
|
return t;
|
|
701
701
|
}
|
|
702
|
-
|
|
703
|
-
function
|
|
702
|
+
w(yt, "getTabbableCandidates");
|
|
703
|
+
function bt(e, t) {
|
|
704
704
|
let n = typeof t.checkVisibility == "function" && t.checkVisibility({ checkVisibilityCSS: !0 });
|
|
705
|
-
for (let r of e) if (!(n ? !r.checkVisibility({ checkVisibilityCSS: !0 }) :
|
|
705
|
+
for (let r of e) if (!(n ? !r.checkVisibility({ checkVisibilityCSS: !0 }) : xt(r, { upTo: t }))) return r;
|
|
706
706
|
}
|
|
707
|
-
|
|
708
|
-
function
|
|
707
|
+
w(bt, "findVisible");
|
|
708
|
+
function xt(e, { upTo: t }) {
|
|
709
709
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
710
710
|
for (; e;) {
|
|
711
711
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -714,44 +714,44 @@ function St(e, { upTo: t }) {
|
|
|
714
714
|
}
|
|
715
715
|
return !1;
|
|
716
716
|
}
|
|
717
|
-
|
|
718
|
-
function
|
|
717
|
+
w(xt, "isHidden");
|
|
718
|
+
function St(e) {
|
|
719
719
|
return e.tagName === "INPUT" && typeof e.select == "function";
|
|
720
720
|
}
|
|
721
|
-
|
|
722
|
-
function
|
|
721
|
+
w(St, "isSelectableInput");
|
|
722
|
+
function Ct(e, { select: t = !1 } = {}) {
|
|
723
723
|
if (e && e.focus) {
|
|
724
724
|
let n = (e.ownerDocument ?? document).activeElement;
|
|
725
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
725
|
+
e.focus({ preventScroll: !0 }), e !== n && St(e) && t && e.select();
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
|
|
729
|
-
var
|
|
730
|
-
function
|
|
728
|
+
w(Ct, "focus");
|
|
729
|
+
var wt = Tt();
|
|
730
|
+
function Tt() {
|
|
731
731
|
let e = [];
|
|
732
732
|
return {
|
|
733
733
|
add(t) {
|
|
734
734
|
let n = e[0];
|
|
735
|
-
t !== n && n?.pause(), e =
|
|
735
|
+
t !== n && n?.pause(), e = Et(e, t), e.unshift(t);
|
|
736
736
|
},
|
|
737
737
|
remove(t) {
|
|
738
|
-
e =
|
|
738
|
+
e = Et(e, t), e[0]?.resume();
|
|
739
739
|
}
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
|
-
|
|
743
|
-
function
|
|
742
|
+
w(Tt, "createFocusScopesStack");
|
|
743
|
+
function Et(e, t) {
|
|
744
744
|
let n = [...e], r = n.indexOf(t);
|
|
745
745
|
return r !== -1 && n.splice(r, 1), n;
|
|
746
746
|
}
|
|
747
|
-
|
|
748
|
-
function
|
|
747
|
+
w(Et, "arrayRemove");
|
|
748
|
+
function Dt(e) {
|
|
749
749
|
return e.filter((e) => e.tagName !== "A");
|
|
750
750
|
}
|
|
751
|
-
|
|
751
|
+
w(Dt, "removeLinks");
|
|
752
752
|
//#endregion
|
|
753
753
|
//#region ../node_modules/.pnpm/@radix-ui+react-portal@1.2.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@_058d94c3625e9af8e54f0154a66c0818/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
754
|
-
var
|
|
754
|
+
var Ot = Object.defineProperty, kt = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ ((e, t) => Ot(e, "name", {
|
|
755
755
|
value: t,
|
|
756
756
|
configurable: !0
|
|
757
757
|
}))(function(e, t) {
|
|
@@ -762,47 +762,47 @@ var kt = Object.defineProperty, At = /* @__PURE__ */ v.forwardRef(/* @__PURE__ *
|
|
|
762
762
|
...r,
|
|
763
763
|
ref: t
|
|
764
764
|
}), o) : null;
|
|
765
|
-
}, "Portal")),
|
|
765
|
+
}, "Portal")), At = Object.defineProperty, jt = (e, t) => At(e, "name", {
|
|
766
766
|
value: t,
|
|
767
767
|
configurable: !0
|
|
768
|
-
}),
|
|
769
|
-
function
|
|
770
|
-
return
|
|
768
|
+
}), Mt = 0, Nt = null;
|
|
769
|
+
function Pt(e) {
|
|
770
|
+
return Ft(), e.children;
|
|
771
771
|
}
|
|
772
|
-
|
|
773
|
-
function
|
|
772
|
+
jt(Pt, "FocusGuards");
|
|
773
|
+
function Ft() {
|
|
774
774
|
v.useEffect(() => {
|
|
775
|
-
|
|
776
|
-
start:
|
|
777
|
-
end:
|
|
775
|
+
Nt ||= {
|
|
776
|
+
start: It(),
|
|
777
|
+
end: It()
|
|
778
778
|
};
|
|
779
|
-
let { start: e, end: t } =
|
|
780
|
-
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t),
|
|
781
|
-
|
|
779
|
+
let { start: e, end: t } = Nt;
|
|
780
|
+
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t), Mt++, () => {
|
|
781
|
+
Mt === 1 && (Nt?.start.remove(), Nt?.end.remove(), Nt = null), Mt = Math.max(0, Mt - 1);
|
|
782
782
|
};
|
|
783
783
|
}, []);
|
|
784
784
|
}
|
|
785
|
-
|
|
786
|
-
function
|
|
785
|
+
jt(Ft, "useFocusGuards");
|
|
786
|
+
function It() {
|
|
787
787
|
let e = document.createElement("span");
|
|
788
788
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
789
789
|
}
|
|
790
|
-
|
|
790
|
+
jt(It, "createFocusGuard");
|
|
791
791
|
//#endregion
|
|
792
792
|
//#region ../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
793
|
-
var
|
|
794
|
-
return
|
|
793
|
+
var T = function() {
|
|
794
|
+
return T = Object.assign || function(e) {
|
|
795
795
|
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]);
|
|
796
796
|
return e;
|
|
797
|
-
},
|
|
797
|
+
}, T.apply(this, arguments);
|
|
798
798
|
};
|
|
799
|
-
function
|
|
799
|
+
function Lt(e, t) {
|
|
800
800
|
var n = {};
|
|
801
801
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
802
802
|
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]]);
|
|
803
803
|
return n;
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function Rt(e, t, n, r) {
|
|
806
806
|
function i(e) {
|
|
807
807
|
return e instanceof n ? e : new n(function(t) {
|
|
808
808
|
t(e);
|
|
@@ -829,21 +829,21 @@ function zt(e, t, n, r) {
|
|
|
829
829
|
c((r = r.apply(e, t || [])).next());
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function zt(e, t, n) {
|
|
833
833
|
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]);
|
|
834
834
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
835
835
|
}
|
|
836
836
|
//#endregion
|
|
837
837
|
//#region ../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
838
|
-
var
|
|
838
|
+
var Bt = "right-scroll-bar-position", Vt = "width-before-scroll-bar", Ht = "with-scroll-bars-hidden", Ut = "--removed-body-scroll-bar-size";
|
|
839
839
|
//#endregion
|
|
840
840
|
//#region ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
841
|
-
function
|
|
841
|
+
function Wt(e, t) {
|
|
842
842
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
843
843
|
}
|
|
844
844
|
//#endregion
|
|
845
845
|
//#region ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
846
|
-
function
|
|
846
|
+
function Gt(e, t) {
|
|
847
847
|
var n = (0, v.useState)(function() {
|
|
848
848
|
return {
|
|
849
849
|
value: e,
|
|
@@ -863,33 +863,33 @@ function Kt(e, t) {
|
|
|
863
863
|
}
|
|
864
864
|
//#endregion
|
|
865
865
|
//#region ../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
866
|
-
var
|
|
867
|
-
function
|
|
868
|
-
var n =
|
|
866
|
+
var Kt = typeof window < "u" ? v.useLayoutEffect : v.useEffect, qt = /* @__PURE__ */ new WeakMap();
|
|
867
|
+
function Jt(e, t) {
|
|
868
|
+
var n = Gt(t || null, function(t) {
|
|
869
869
|
return e.forEach(function(e) {
|
|
870
|
-
return
|
|
870
|
+
return Wt(e, t);
|
|
871
871
|
});
|
|
872
872
|
});
|
|
873
|
-
return
|
|
874
|
-
var t =
|
|
873
|
+
return Kt(function() {
|
|
874
|
+
var t = qt.get(n);
|
|
875
875
|
if (t) {
|
|
876
876
|
var r = new Set(t), i = new Set(e), a = n.current;
|
|
877
877
|
r.forEach(function(e) {
|
|
878
|
-
i.has(e) ||
|
|
878
|
+
i.has(e) || Wt(e, null);
|
|
879
879
|
}), i.forEach(function(e) {
|
|
880
|
-
r.has(e) ||
|
|
880
|
+
r.has(e) || Wt(e, a);
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
|
-
|
|
883
|
+
qt.set(n, e);
|
|
884
884
|
}, [e]), n;
|
|
885
885
|
}
|
|
886
886
|
//#endregion
|
|
887
887
|
//#region ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.js
|
|
888
|
-
function
|
|
888
|
+
function Yt(e) {
|
|
889
889
|
return e;
|
|
890
890
|
}
|
|
891
|
-
function
|
|
892
|
-
t === void 0 && (t =
|
|
891
|
+
function Xt(e, t) {
|
|
892
|
+
t === void 0 && (t = Yt);
|
|
893
893
|
var n = [], r = !1;
|
|
894
894
|
return {
|
|
895
895
|
read: function() {
|
|
@@ -942,35 +942,35 @@ function Zt(e, t) {
|
|
|
942
942
|
}
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function Zt(e) {
|
|
946
946
|
e === void 0 && (e = {});
|
|
947
|
-
var t =
|
|
948
|
-
return t.options =
|
|
947
|
+
var t = Xt(null);
|
|
948
|
+
return t.options = T({
|
|
949
949
|
async: !0,
|
|
950
950
|
ssr: !1
|
|
951
951
|
}, e), t;
|
|
952
952
|
}
|
|
953
953
|
//#endregion
|
|
954
954
|
//#region ../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.js
|
|
955
|
-
var
|
|
956
|
-
var t = e.sideCar, n =
|
|
955
|
+
var Qt = function(e) {
|
|
956
|
+
var t = e.sideCar, n = Lt(e, ["sideCar"]);
|
|
957
957
|
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
958
958
|
var r = t.read();
|
|
959
959
|
if (!r) throw Error("Sidecar medium not found");
|
|
960
|
-
return v.createElement(r,
|
|
960
|
+
return v.createElement(r, T({}, n));
|
|
961
961
|
};
|
|
962
|
-
|
|
963
|
-
function
|
|
964
|
-
return e.useMedium(t),
|
|
962
|
+
Qt.isSideCarExport = !0;
|
|
963
|
+
function $t(e, t) {
|
|
964
|
+
return e.useMedium(t), Qt;
|
|
965
965
|
}
|
|
966
966
|
//#endregion
|
|
967
967
|
//#region ../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
968
|
-
var
|
|
968
|
+
var en = Zt(), tn = function() {}, nn = v.forwardRef(function(e, t) {
|
|
969
969
|
var n = v.useRef(null), r = v.useState({
|
|
970
|
-
onScrollCapture:
|
|
971
|
-
onWheelCapture:
|
|
972
|
-
onTouchMoveCapture:
|
|
973
|
-
}), 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, ee = _ === void 0 ? "div" : _, te = e.gapMode, y =
|
|
970
|
+
onScrollCapture: tn,
|
|
971
|
+
onWheelCapture: tn,
|
|
972
|
+
onTouchMoveCapture: tn
|
|
973
|
+
}), 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, ee = _ === void 0 ? "div" : _, te = e.gapMode, y = Lt(e, [
|
|
974
974
|
"forwardProps",
|
|
975
975
|
"children",
|
|
976
976
|
"className",
|
|
@@ -984,9 +984,9 @@ var tn = Qt(), nn = function() {}, rn = v.forwardRef(function(e, t) {
|
|
|
984
984
|
"allowPinchZoom",
|
|
985
985
|
"as",
|
|
986
986
|
"gapMode"
|
|
987
|
-
]), ne = f, re =
|
|
987
|
+
]), ne = f, re = Jt([n, t]), b = T(T({}, y), i);
|
|
988
988
|
return v.createElement(v.Fragment, null, u && v.createElement(ne, {
|
|
989
|
-
sideCar:
|
|
989
|
+
sideCar: en,
|
|
990
990
|
removeScrollBar: l,
|
|
991
991
|
shards: d,
|
|
992
992
|
noRelative: p,
|
|
@@ -996,51 +996,51 @@ var tn = Qt(), nn = function() {}, rn = v.forwardRef(function(e, t) {
|
|
|
996
996
|
allowPinchZoom: !!g,
|
|
997
997
|
lockRef: n,
|
|
998
998
|
gapMode: te
|
|
999
|
-
}), o ? v.cloneElement(v.Children.only(s),
|
|
999
|
+
}), o ? v.cloneElement(v.Children.only(s), T(T({}, b), { ref: re })) : v.createElement(ee, T({}, b, {
|
|
1000
1000
|
className: c,
|
|
1001
1001
|
ref: re
|
|
1002
1002
|
}), s));
|
|
1003
1003
|
});
|
|
1004
|
-
|
|
1004
|
+
nn.defaultProps = {
|
|
1005
1005
|
enabled: !0,
|
|
1006
1006
|
removeScrollBar: !0,
|
|
1007
1007
|
inert: !1
|
|
1008
|
-
},
|
|
1009
|
-
fullWidth:
|
|
1010
|
-
zeroRight:
|
|
1008
|
+
}, nn.classNames = {
|
|
1009
|
+
fullWidth: Vt,
|
|
1010
|
+
zeroRight: Bt
|
|
1011
1011
|
};
|
|
1012
1012
|
//#endregion
|
|
1013
1013
|
//#region ../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
1014
|
-
var
|
|
1014
|
+
var rn = function() {
|
|
1015
1015
|
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
1016
1016
|
};
|
|
1017
1017
|
//#endregion
|
|
1018
1018
|
//#region ../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
1019
|
-
function
|
|
1019
|
+
function an() {
|
|
1020
1020
|
if (!document) return null;
|
|
1021
1021
|
var e = document.createElement("style");
|
|
1022
1022
|
e.type = "text/css";
|
|
1023
|
-
var t =
|
|
1023
|
+
var t = rn();
|
|
1024
1024
|
return t && e.setAttribute("nonce", t), e;
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function on(e, t) {
|
|
1027
1027
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function sn(e) {
|
|
1030
1030
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
1031
1031
|
}
|
|
1032
|
-
var
|
|
1032
|
+
var cn = function() {
|
|
1033
1033
|
var e = 0, t = null;
|
|
1034
1034
|
return {
|
|
1035
1035
|
add: function(n) {
|
|
1036
|
-
e == 0 && (t =
|
|
1036
|
+
e == 0 && (t = an()) && (on(t, n), sn(t)), e++;
|
|
1037
1037
|
},
|
|
1038
1038
|
remove: function() {
|
|
1039
1039
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
1040
1040
|
}
|
|
1041
1041
|
};
|
|
1042
|
-
},
|
|
1043
|
-
var e =
|
|
1042
|
+
}, ln = function() {
|
|
1043
|
+
var e = cn();
|
|
1044
1044
|
return function(t, n) {
|
|
1045
1045
|
v.useEffect(function() {
|
|
1046
1046
|
return e.add(t), function() {
|
|
@@ -1048,43 +1048,43 @@ var ln = function() {
|
|
|
1048
1048
|
};
|
|
1049
1049
|
}, [t && n]);
|
|
1050
1050
|
};
|
|
1051
|
-
},
|
|
1052
|
-
var e =
|
|
1051
|
+
}, un = function() {
|
|
1052
|
+
var e = ln();
|
|
1053
1053
|
return function(t) {
|
|
1054
1054
|
var n = t.styles, r = t.dynamic;
|
|
1055
1055
|
return e(n, r), null;
|
|
1056
1056
|
};
|
|
1057
|
-
},
|
|
1057
|
+
}, dn = {
|
|
1058
1058
|
left: 0,
|
|
1059
1059
|
top: 0,
|
|
1060
1060
|
right: 0,
|
|
1061
1061
|
gap: 0
|
|
1062
|
-
},
|
|
1062
|
+
}, fn = function(e) {
|
|
1063
1063
|
return parseInt(e || "", 10) || 0;
|
|
1064
|
-
},
|
|
1064
|
+
}, pn = function(e) {
|
|
1065
1065
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
1066
1066
|
return [
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1067
|
+
fn(n),
|
|
1068
|
+
fn(r),
|
|
1069
|
+
fn(i)
|
|
1070
1070
|
];
|
|
1071
|
-
},
|
|
1072
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return
|
|
1073
|
-
var t =
|
|
1071
|
+
}, mn = function(e) {
|
|
1072
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return dn;
|
|
1073
|
+
var t = pn(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
1074
1074
|
return {
|
|
1075
1075
|
left: t[0],
|
|
1076
1076
|
top: t[1],
|
|
1077
1077
|
right: t[2],
|
|
1078
1078
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
1079
1079
|
};
|
|
1080
|
-
},
|
|
1080
|
+
}, hn = un(), gn = "data-scroll-locked", _n = function(e, t, n, r) {
|
|
1081
1081
|
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
1082
1082
|
return n === void 0 && (n = "margin"), `
|
|
1083
|
-
.${
|
|
1083
|
+
.${Ht} {
|
|
1084
1084
|
overflow: hidden ${r};
|
|
1085
1085
|
padding-right: ${s}px ${r};
|
|
1086
1086
|
}
|
|
1087
|
-
body[${
|
|
1087
|
+
body[${gn}] {
|
|
1088
1088
|
overflow: hidden ${r};
|
|
1089
1089
|
overscroll-behavior: contain;
|
|
1090
1090
|
${[
|
|
@@ -1101,122 +1101,122 @@ var ln = function() {
|
|
|
1101
1101
|
].filter(Boolean).join("")}
|
|
1102
1102
|
}
|
|
1103
1103
|
|
|
1104
|
-
.${
|
|
1104
|
+
.${Bt} {
|
|
1105
1105
|
right: ${s}px ${r};
|
|
1106
1106
|
}
|
|
1107
1107
|
|
|
1108
|
-
.${
|
|
1108
|
+
.${Vt} {
|
|
1109
1109
|
margin-right: ${s}px ${r};
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
1112
|
-
.${
|
|
1112
|
+
.${Bt} .${Bt} {
|
|
1113
1113
|
right: 0 ${r};
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
|
-
.${
|
|
1116
|
+
.${Vt} .${Vt} {
|
|
1117
1117
|
margin-right: 0 ${r};
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
|
-
body[${
|
|
1121
|
-
${
|
|
1120
|
+
body[${gn}] {
|
|
1121
|
+
${Ut}: ${s}px;
|
|
1122
1122
|
}
|
|
1123
1123
|
`;
|
|
1124
|
-
},
|
|
1124
|
+
}, vn = function() {
|
|
1125
1125
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
1126
1126
|
return isFinite(e) ? e : 0;
|
|
1127
|
-
},
|
|
1127
|
+
}, yn = function() {
|
|
1128
1128
|
v.useEffect(function() {
|
|
1129
|
-
return document.body.setAttribute(
|
|
1130
|
-
var e =
|
|
1131
|
-
e <= 0 ? document.body.removeAttribute(
|
|
1129
|
+
return document.body.setAttribute(gn, (vn() + 1).toString()), function() {
|
|
1130
|
+
var e = vn() - 1;
|
|
1131
|
+
e <= 0 ? document.body.removeAttribute(gn) : document.body.setAttribute(gn, e.toString());
|
|
1132
1132
|
};
|
|
1133
1133
|
}, []);
|
|
1134
|
-
},
|
|
1134
|
+
}, bn = function(e) {
|
|
1135
1135
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
1136
|
-
|
|
1136
|
+
yn();
|
|
1137
1137
|
var a = v.useMemo(function() {
|
|
1138
|
-
return
|
|
1138
|
+
return mn(i);
|
|
1139
1139
|
}, [i]);
|
|
1140
|
-
return v.createElement(
|
|
1141
|
-
},
|
|
1140
|
+
return v.createElement(hn, { styles: _n(a, !t, i, n ? "" : "!important") });
|
|
1141
|
+
}, xn = !1;
|
|
1142
1142
|
if (typeof window < "u") try {
|
|
1143
|
-
var
|
|
1144
|
-
return
|
|
1143
|
+
var Sn = Object.defineProperty({}, "passive", { get: function() {
|
|
1144
|
+
return xn = !0, !0;
|
|
1145
1145
|
} });
|
|
1146
|
-
window.addEventListener("test",
|
|
1146
|
+
window.addEventListener("test", Sn, Sn), window.removeEventListener("test", Sn, Sn);
|
|
1147
1147
|
} catch {
|
|
1148
|
-
|
|
1148
|
+
xn = !1;
|
|
1149
1149
|
}
|
|
1150
|
-
var
|
|
1150
|
+
var Cn = xn ? { passive: !1 } : !1, wn = function(e) {
|
|
1151
1151
|
return e.tagName === "TEXTAREA";
|
|
1152
|
-
},
|
|
1152
|
+
}, Tn = function(e, t) {
|
|
1153
1153
|
if (!(e instanceof Element)) return !1;
|
|
1154
1154
|
var n = window.getComputedStyle(e);
|
|
1155
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
1155
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !wn(e) && n[t] === "visible");
|
|
1156
|
+
}, En = function(e) {
|
|
1157
|
+
return Tn(e, "overflowY");
|
|
1156
1158
|
}, Dn = function(e) {
|
|
1157
|
-
return
|
|
1158
|
-
}, On = function(e) {
|
|
1159
|
-
return En(e, "overflowX");
|
|
1160
|
-
}, kn = function(e, t) {
|
|
1159
|
+
return Tn(e, "overflowX");
|
|
1160
|
+
}, On = function(e, t) {
|
|
1161
1161
|
var n = t.ownerDocument, r = t;
|
|
1162
1162
|
do {
|
|
1163
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
1164
|
-
var i =
|
|
1163
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), jn(e, r)) {
|
|
1164
|
+
var i = Mn(e, r);
|
|
1165
1165
|
if (i[1] > i[2]) return !0;
|
|
1166
1166
|
}
|
|
1167
1167
|
r = r.parentNode;
|
|
1168
1168
|
} while (r && r !== n.body);
|
|
1169
1169
|
return !1;
|
|
1170
|
-
},
|
|
1170
|
+
}, kn = function(e) {
|
|
1171
1171
|
return [
|
|
1172
1172
|
e.scrollTop,
|
|
1173
1173
|
e.scrollHeight,
|
|
1174
1174
|
e.clientHeight
|
|
1175
1175
|
];
|
|
1176
|
-
},
|
|
1176
|
+
}, An = function(e) {
|
|
1177
1177
|
return [
|
|
1178
1178
|
e.scrollLeft,
|
|
1179
1179
|
e.scrollWidth,
|
|
1180
1180
|
e.clientWidth
|
|
1181
1181
|
];
|
|
1182
|
+
}, jn = function(e, t) {
|
|
1183
|
+
return e === "v" ? En(t) : Dn(t);
|
|
1182
1184
|
}, Mn = function(e, t) {
|
|
1183
|
-
return e === "v" ?
|
|
1185
|
+
return e === "v" ? kn(t) : An(t);
|
|
1184
1186
|
}, Nn = function(e, t) {
|
|
1185
|
-
return e === "v" ? An(t) : jn(t);
|
|
1186
|
-
}, Pn = function(e, t) {
|
|
1187
1187
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
1188
|
-
},
|
|
1189
|
-
var a =
|
|
1188
|
+
}, Pn = function(e, t, n, r, i) {
|
|
1189
|
+
var a = Nn(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
1190
1190
|
do {
|
|
1191
1191
|
if (!s) break;
|
|
1192
|
-
var p =
|
|
1193
|
-
(m || h) &&
|
|
1192
|
+
var p = Mn(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
1193
|
+
(m || h) && jn(e, s) && (d += h, f += m);
|
|
1194
1194
|
var g = s.parentNode;
|
|
1195
1195
|
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
1196
1196
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
1197
1197
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
1198
|
-
},
|
|
1198
|
+
}, Fn = function(e) {
|
|
1199
1199
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
1200
|
-
},
|
|
1200
|
+
}, In = function(e) {
|
|
1201
1201
|
return [e.deltaX, e.deltaY];
|
|
1202
|
-
},
|
|
1202
|
+
}, Ln = function(e) {
|
|
1203
1203
|
return e && "current" in e ? e.current : e;
|
|
1204
|
-
},
|
|
1204
|
+
}, Rn = function(e, t) {
|
|
1205
1205
|
return e[0] === t[0] && e[1] === t[1];
|
|
1206
|
-
},
|
|
1206
|
+
}, zn = function(e) {
|
|
1207
1207
|
return `
|
|
1208
1208
|
.block-interactivity-${e} {pointer-events: none;}
|
|
1209
1209
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
1210
1210
|
`;
|
|
1211
|
-
},
|
|
1212
|
-
function
|
|
1213
|
-
var t = v.useRef([]), n = v.useRef([0, 0]), r = v.useRef(), i = v.useState(
|
|
1211
|
+
}, Bn = 0, Vn = [];
|
|
1212
|
+
function Hn(e) {
|
|
1213
|
+
var t = v.useRef([]), n = v.useRef([0, 0]), r = v.useRef(), i = v.useState(Bn++)[0], a = v.useState(un)[0], o = v.useRef(e);
|
|
1214
1214
|
v.useEffect(function() {
|
|
1215
1215
|
o.current = e;
|
|
1216
1216
|
}, [e]), v.useEffect(function() {
|
|
1217
1217
|
if (e.inert) {
|
|
1218
1218
|
document.body.classList.add(`block-interactivity-${i}`);
|
|
1219
|
-
var t =
|
|
1219
|
+
var t = zt([e.lockRef.current], (e.shards || []).map(Ln), !0).filter(Boolean);
|
|
1220
1220
|
return t.forEach(function(e) {
|
|
1221
1221
|
return e.classList.add(`allow-interactivity-${i}`);
|
|
1222
1222
|
}), function() {
|
|
@@ -1232,25 +1232,25 @@ function Un(e) {
|
|
|
1232
1232
|
]);
|
|
1233
1233
|
var s = v.useCallback(function(e, t) {
|
|
1234
1234
|
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
|
|
1235
|
-
var i =
|
|
1235
|
+
var i = Fn(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";
|
|
1236
1236
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
1237
1237
|
var f = window.getSelection(), p = f && f.anchorNode;
|
|
1238
1238
|
if (p && (p === u || p.contains(u))) return !1;
|
|
1239
|
-
var m =
|
|
1239
|
+
var m = On(d, u);
|
|
1240
1240
|
if (!m) return !0;
|
|
1241
|
-
if (m ? l = d : (l = d === "v" ? "h" : "v", m =
|
|
1241
|
+
if (m ? l = d : (l = d === "v" ? "h" : "v", m = On(d, u)), !m) return !1;
|
|
1242
1242
|
if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
|
|
1243
1243
|
var h = r.current || l;
|
|
1244
|
-
return
|
|
1244
|
+
return Pn(h, t, e, h === "h" ? s : c, !0);
|
|
1245
1245
|
}, []), c = v.useCallback(function(e) {
|
|
1246
1246
|
var n = e;
|
|
1247
|
-
if (
|
|
1248
|
-
var r = "deltaY" in n ?
|
|
1249
|
-
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) &&
|
|
1247
|
+
if (Vn.length && Vn[Vn.length - 1] === a) {
|
|
1248
|
+
var r = "deltaY" in n ? In(n) : Fn(n), i = t.current.filter(function(e) {
|
|
1249
|
+
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && Rn(e.delta, r);
|
|
1250
1250
|
})[0];
|
|
1251
1251
|
if (i && i.should) n.cancelable && n.preventDefault();
|
|
1252
1252
|
else if (!i) {
|
|
1253
|
-
var c = (o.current.shards || []).map(
|
|
1253
|
+
var c = (o.current.shards || []).map(Ln).filter(Boolean).filter(function(e) {
|
|
1254
1254
|
return e.contains(n.target);
|
|
1255
1255
|
});
|
|
1256
1256
|
(c.length > 0 ? s(n, c[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
@@ -1262,7 +1262,7 @@ function Un(e) {
|
|
|
1262
1262
|
delta: n,
|
|
1263
1263
|
target: r,
|
|
1264
1264
|
should: i,
|
|
1265
|
-
shadowParent:
|
|
1265
|
+
shadowParent: Un(r)
|
|
1266
1266
|
};
|
|
1267
1267
|
t.current.push(a), setTimeout(function() {
|
|
1268
1268
|
t.current = t.current.filter(function(e) {
|
|
@@ -1270,60 +1270,60 @@ function Un(e) {
|
|
|
1270
1270
|
});
|
|
1271
1271
|
}, 1);
|
|
1272
1272
|
}, []), u = v.useCallback(function(e) {
|
|
1273
|
-
n.current =
|
|
1273
|
+
n.current = Fn(e), r.current = void 0;
|
|
1274
1274
|
}, []), d = v.useCallback(function(t) {
|
|
1275
|
-
l(t.type, Ln(t), t.target, s(t, e.lockRef.current));
|
|
1276
|
-
}, []), f = v.useCallback(function(t) {
|
|
1277
1275
|
l(t.type, In(t), t.target, s(t, e.lockRef.current));
|
|
1276
|
+
}, []), f = v.useCallback(function(t) {
|
|
1277
|
+
l(t.type, Fn(t), t.target, s(t, e.lockRef.current));
|
|
1278
1278
|
}, []);
|
|
1279
1279
|
v.useEffect(function() {
|
|
1280
|
-
return
|
|
1280
|
+
return Vn.push(a), e.setCallbacks({
|
|
1281
1281
|
onScrollCapture: d,
|
|
1282
1282
|
onWheelCapture: d,
|
|
1283
1283
|
onTouchMoveCapture: f
|
|
1284
|
-
}), document.addEventListener("wheel", c,
|
|
1285
|
-
|
|
1284
|
+
}), document.addEventListener("wheel", c, Cn), document.addEventListener("touchmove", c, Cn), document.addEventListener("touchstart", u, Cn), function() {
|
|
1285
|
+
Vn = Vn.filter(function(e) {
|
|
1286
1286
|
return e !== a;
|
|
1287
|
-
}), document.removeEventListener("wheel", c,
|
|
1287
|
+
}), document.removeEventListener("wheel", c, Cn), document.removeEventListener("touchmove", c, Cn), document.removeEventListener("touchstart", u, Cn);
|
|
1288
1288
|
};
|
|
1289
1289
|
}, []);
|
|
1290
1290
|
var p = e.removeScrollBar, m = e.inert;
|
|
1291
|
-
return v.createElement(v.Fragment, null, m ? v.createElement(a, { styles:
|
|
1291
|
+
return v.createElement(v.Fragment, null, m ? v.createElement(a, { styles: zn(i) }) : null, p ? v.createElement(bn, {
|
|
1292
1292
|
noRelative: e.noRelative,
|
|
1293
1293
|
gapMode: e.gapMode
|
|
1294
1294
|
}) : null);
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function Un(e) {
|
|
1297
1297
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
1298
1298
|
return t;
|
|
1299
1299
|
}
|
|
1300
1300
|
//#endregion
|
|
1301
1301
|
//#region ../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
1302
|
-
var
|
|
1303
|
-
return v.createElement(
|
|
1302
|
+
var Wn = $t(en, Hn), Gn = v.forwardRef(function(e, t) {
|
|
1303
|
+
return v.createElement(nn, T({}, e, {
|
|
1304
1304
|
ref: t,
|
|
1305
|
-
sideCar:
|
|
1305
|
+
sideCar: Wn
|
|
1306
1306
|
}));
|
|
1307
1307
|
});
|
|
1308
|
-
|
|
1308
|
+
Gn.classNames = nn.classNames;
|
|
1309
1309
|
//#endregion
|
|
1310
1310
|
//#region ../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
|
|
1311
|
-
var
|
|
1311
|
+
var Kn = function(e) {
|
|
1312
1312
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
1313
|
-
},
|
|
1314
|
-
return e && (e.host ||
|
|
1315
|
-
},
|
|
1313
|
+
}, qn = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Yn = {}, Xn = 0, Zn = function(e) {
|
|
1314
|
+
return e && (e.host || Zn(e.parentNode));
|
|
1315
|
+
}, Qn = function(e, t) {
|
|
1316
1316
|
return t.map(function(t) {
|
|
1317
1317
|
if (e.contains(t)) return t;
|
|
1318
|
-
var n =
|
|
1318
|
+
var n = Zn(t);
|
|
1319
1319
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
1320
1320
|
}).filter(function(e) {
|
|
1321
1321
|
return !!e;
|
|
1322
1322
|
});
|
|
1323
|
-
},
|
|
1324
|
-
var i =
|
|
1325
|
-
|
|
1326
|
-
var a =
|
|
1323
|
+
}, $n = function(e, t, n, r) {
|
|
1324
|
+
var i = Qn(t, Array.isArray(e) ? e : [e]);
|
|
1325
|
+
Yn[n] || (Yn[n] = /* @__PURE__ */ new WeakMap());
|
|
1326
|
+
var a = Yn[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
1327
1327
|
e && !s.has(e) && (s.add(e), l(e.parentNode));
|
|
1328
1328
|
};
|
|
1329
1329
|
i.forEach(l);
|
|
@@ -1331,42 +1331,42 @@ var qn = function(e) {
|
|
|
1331
1331
|
e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
|
|
1332
1332
|
if (s.has(e)) u(e);
|
|
1333
1333
|
else try {
|
|
1334
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
1335
|
-
|
|
1334
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (qn.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
1335
|
+
qn.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");
|
|
1336
1336
|
} catch (t) {
|
|
1337
1337
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
1338
1338
|
}
|
|
1339
1339
|
});
|
|
1340
1340
|
};
|
|
1341
|
-
return u(t), s.clear(),
|
|
1341
|
+
return u(t), s.clear(), Xn++, function() {
|
|
1342
1342
|
o.forEach(function(e) {
|
|
1343
|
-
var t =
|
|
1344
|
-
|
|
1345
|
-
}),
|
|
1343
|
+
var t = qn.get(e) - 1, i = a.get(e) - 1;
|
|
1344
|
+
qn.set(e, t), a.set(e, i), t || (Jn.has(e) || e.removeAttribute(r), Jn.delete(e)), i || e.removeAttribute(n);
|
|
1345
|
+
}), Xn--, Xn || (qn = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Yn = {});
|
|
1346
1346
|
};
|
|
1347
|
-
},
|
|
1347
|
+
}, er = function(e, t, n) {
|
|
1348
1348
|
n === void 0 && (n = "data-aria-hidden");
|
|
1349
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
1350
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))),
|
|
1349
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Kn(e);
|
|
1350
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), $n(r, i, n, "aria-hidden")) : function() {
|
|
1351
1351
|
return null;
|
|
1352
1352
|
};
|
|
1353
|
-
},
|
|
1353
|
+
}, tr = Object.defineProperty, E = (e, t) => tr(e, "name", {
|
|
1354
1354
|
value: t,
|
|
1355
1355
|
configurable: !0
|
|
1356
|
-
}),
|
|
1357
|
-
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = v.useRef(null), c = v.useRef(null), { nodes: l, registry: u } =
|
|
1356
|
+
}), nr = "Dialog", [rr, ir] = /* @__PURE__ */ se(nr), [ar, D] = rr(nr), or = /* @__PURE__ */ E((e) => {
|
|
1357
|
+
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = v.useRef(null), c = v.useRef(null), { nodes: l, registry: u } = ht(), [d, f] = Te({
|
|
1358
1358
|
prop: r,
|
|
1359
1359
|
defaultProp: i ?? !1,
|
|
1360
1360
|
onChange: a,
|
|
1361
|
-
caller:
|
|
1361
|
+
caller: nr
|
|
1362
1362
|
}), [p, m] = v.useState(0), [h, g] = v.useState(0);
|
|
1363
|
-
return /* @__PURE__ */ (0, y.jsx)(
|
|
1363
|
+
return /* @__PURE__ */ (0, y.jsx)(ar, {
|
|
1364
1364
|
scope: t,
|
|
1365
1365
|
triggerRef: s,
|
|
1366
1366
|
contentRef: c,
|
|
1367
|
-
contentId:
|
|
1368
|
-
titleId:
|
|
1369
|
-
descriptionId:
|
|
1367
|
+
contentId: Ue(),
|
|
1368
|
+
titleId: Ue(),
|
|
1369
|
+
descriptionId: Ue(),
|
|
1370
1370
|
titlePresent: p > 0,
|
|
1371
1371
|
descriptionPresent: h > 0,
|
|
1372
1372
|
setTitleCount: m,
|
|
@@ -1379,49 +1379,49 @@ var qn = function(e) {
|
|
|
1379
1379
|
branchRegistry: u,
|
|
1380
1380
|
children: n
|
|
1381
1381
|
});
|
|
1382
|
-
}, "Dialog"),
|
|
1383
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
1382
|
+
}, "Dialog"), sr = "DialogTrigger", cr = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
1383
|
+
let { __scopeDialog: n, ...r } = e, i = D(sr, n), a = o(t, i.triggerRef);
|
|
1384
1384
|
return /* @__PURE__ */ (0, y.jsx)(b.button, {
|
|
1385
1385
|
type: "button",
|
|
1386
1386
|
"aria-haspopup": "dialog",
|
|
1387
1387
|
"aria-expanded": i.open,
|
|
1388
1388
|
"aria-controls": i.open ? i.contentId : void 0,
|
|
1389
|
-
"data-state":
|
|
1389
|
+
"data-state": Dr(i.open),
|
|
1390
1390
|
...r,
|
|
1391
1391
|
ref: a,
|
|
1392
|
-
onClick:
|
|
1392
|
+
onClick: S(e.onClick, i.onOpenToggle)
|
|
1393
1393
|
});
|
|
1394
|
-
}, "DialogTrigger")),
|
|
1395
|
-
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a =
|
|
1396
|
-
return /* @__PURE__ */ (0, y.jsx)(
|
|
1394
|
+
}, "DialogTrigger")), lr = "DialogPortal", [ur, dr] = rr(lr, { forceMount: void 0 }), fr = /* @__PURE__ */ E((e) => {
|
|
1395
|
+
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = D(lr, t);
|
|
1396
|
+
return /* @__PURE__ */ (0, y.jsx)(ur, {
|
|
1397
1397
|
scope: t,
|
|
1398
1398
|
forceMount: n,
|
|
1399
|
-
children: v.Children.map(r, (e) => /* @__PURE__ */ (0, y.jsx)(
|
|
1399
|
+
children: v.Children.map(r, (e) => /* @__PURE__ */ (0, y.jsx)(Ne, {
|
|
1400
1400
|
present: n || a.open,
|
|
1401
|
-
children: /* @__PURE__ */ (0, y.jsx)(
|
|
1401
|
+
children: /* @__PURE__ */ (0, y.jsx)(kt, {
|
|
1402
1402
|
asChild: !0,
|
|
1403
1403
|
container: i,
|
|
1404
1404
|
children: e
|
|
1405
1405
|
})
|
|
1406
1406
|
}))
|
|
1407
1407
|
});
|
|
1408
|
-
}, "DialogPortal"),
|
|
1409
|
-
let n =
|
|
1410
|
-
return a.modal ? /* @__PURE__ */ (0, y.jsx)(
|
|
1408
|
+
}, "DialogPortal"), pr = "DialogOverlay", mr = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
1409
|
+
let n = dr(pr, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = D(pr, e.__scopeDialog);
|
|
1410
|
+
return a.modal ? /* @__PURE__ */ (0, y.jsx)(Ne, {
|
|
1411
1411
|
present: r || a.open,
|
|
1412
|
-
children: /* @__PURE__ */ (0, y.jsx)(
|
|
1412
|
+
children: /* @__PURE__ */ (0, y.jsx)(gr, {
|
|
1413
1413
|
...i,
|
|
1414
1414
|
ref: t
|
|
1415
1415
|
})
|
|
1416
1416
|
}) : null;
|
|
1417
|
-
}, "DialogOverlay")),
|
|
1418
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
1419
|
-
return /* @__PURE__ */ (0, y.jsx)(
|
|
1420
|
-
as:
|
|
1417
|
+
}, "DialogOverlay")), hr = s("DialogOverlay.RemoveScroll"), gr = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
1418
|
+
let { __scopeDialog: n, ...r } = e, i = D(pr, n), a = nt(), s = o(t, a);
|
|
1419
|
+
return /* @__PURE__ */ (0, y.jsx)(Gn, {
|
|
1420
|
+
as: hr,
|
|
1421
1421
|
allowPinchZoom: !0,
|
|
1422
1422
|
shards: v.useMemo(() => [i.contentRef, ...i.branchNodes.map((e) => ({ current: e }))], [i.contentRef, i.branchNodes]),
|
|
1423
1423
|
children: /* @__PURE__ */ (0, y.jsx)(b.div, {
|
|
1424
|
-
"data-state":
|
|
1424
|
+
"data-state": Dr(i.open),
|
|
1425
1425
|
...r,
|
|
1426
1426
|
ref: s,
|
|
1427
1427
|
style: {
|
|
@@ -1430,40 +1430,40 @@ var qn = function(e) {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
})
|
|
1432
1432
|
});
|
|
1433
|
-
}, "DialogOverlayImpl")),
|
|
1434
|
-
let n =
|
|
1435
|
-
return /* @__PURE__ */ (0, y.jsx)(
|
|
1433
|
+
}, "DialogOverlayImpl")), _r = "DialogContent", vr = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
1434
|
+
let n = dr(_r, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = D(_r, e.__scopeDialog);
|
|
1435
|
+
return /* @__PURE__ */ (0, y.jsx)(Ne, {
|
|
1436
1436
|
present: r || a.open,
|
|
1437
|
-
children: a.modal ? /* @__PURE__ */ (0, y.jsx)(
|
|
1437
|
+
children: a.modal ? /* @__PURE__ */ (0, y.jsx)(yr, {
|
|
1438
1438
|
...i,
|
|
1439
1439
|
ref: t
|
|
1440
|
-
}) : /* @__PURE__ */ (0, y.jsx)(
|
|
1440
|
+
}) : /* @__PURE__ */ (0, y.jsx)(br, {
|
|
1441
1441
|
...i,
|
|
1442
1442
|
ref: t
|
|
1443
1443
|
})
|
|
1444
1444
|
});
|
|
1445
|
-
}, "DialogContent")),
|
|
1446
|
-
let n =
|
|
1445
|
+
}, "DialogContent")), yr = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
1446
|
+
let n = D(_r, e.__scopeDialog), r = v.useRef(null), i = o(t, n.contentRef, r);
|
|
1447
1447
|
return v.useEffect(() => {
|
|
1448
1448
|
let e = r.current;
|
|
1449
|
-
if (e) return
|
|
1450
|
-
}, []), /* @__PURE__ */ (0, y.jsx)(
|
|
1449
|
+
if (e) return er(e);
|
|
1450
|
+
}, []), /* @__PURE__ */ (0, y.jsx)(xr, {
|
|
1451
1451
|
...e,
|
|
1452
1452
|
ref: i,
|
|
1453
1453
|
trapFocus: n.open,
|
|
1454
1454
|
disableOutsidePointerEvents: n.open,
|
|
1455
|
-
onCloseAutoFocus:
|
|
1455
|
+
onCloseAutoFocus: S(e.onCloseAutoFocus, (e) => {
|
|
1456
1456
|
e.preventDefault(), n.triggerRef.current?.focus();
|
|
1457
1457
|
}),
|
|
1458
|
-
onPointerDownOutside:
|
|
1458
|
+
onPointerDownOutside: S(e.onPointerDownOutside, (e) => {
|
|
1459
1459
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
1460
1460
|
(t.button === 2 || n) && e.preventDefault();
|
|
1461
1461
|
}),
|
|
1462
|
-
onFocusOutside:
|
|
1462
|
+
onFocusOutside: S(e.onFocusOutside, (e) => e.preventDefault())
|
|
1463
1463
|
});
|
|
1464
|
-
}, "DialogContentModal")),
|
|
1465
|
-
let n =
|
|
1466
|
-
return /* @__PURE__ */ (0, y.jsx)(
|
|
1464
|
+
}, "DialogContentModal")), br = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
1465
|
+
let n = D(_r, e.__scopeDialog), r = v.useRef(!1), i = v.useRef(!1);
|
|
1466
|
+
return /* @__PURE__ */ (0, y.jsx)(xr, {
|
|
1467
1467
|
...e,
|
|
1468
1468
|
ref: t,
|
|
1469
1469
|
trapFocus: !1,
|
|
@@ -1477,23 +1477,23 @@ var qn = function(e) {
|
|
|
1477
1477
|
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
1478
1478
|
}
|
|
1479
1479
|
});
|
|
1480
|
-
}, "DialogContentNonModal")),
|
|
1481
|
-
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, "aria-describedby": o, children: s, ...c } = e, l =
|
|
1482
|
-
return
|
|
1480
|
+
}, "DialogContentNonModal")), xr = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
1481
|
+
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, "aria-describedby": o, children: s, ...c } = e, l = D(_r, n);
|
|
1482
|
+
return Ft(), /* @__PURE__ */ (0, y.jsx)(mt, {
|
|
1483
1483
|
registry: l.branchRegistry,
|
|
1484
|
-
children: /* @__PURE__ */ (0, y.jsx)(
|
|
1484
|
+
children: /* @__PURE__ */ (0, y.jsx)(ft, {
|
|
1485
1485
|
asChild: !0,
|
|
1486
1486
|
loop: !0,
|
|
1487
1487
|
trapped: r,
|
|
1488
1488
|
branches: l.branchNodes,
|
|
1489
1489
|
onMountAutoFocus: i,
|
|
1490
1490
|
onUnmountAutoFocus: a,
|
|
1491
|
-
children: /* @__PURE__ */ (0, y.jsx)(
|
|
1491
|
+
children: /* @__PURE__ */ (0, y.jsx)(et, {
|
|
1492
1492
|
role: "dialog",
|
|
1493
1493
|
id: l.contentId,
|
|
1494
1494
|
"aria-labelledby": l.titlePresent ? l.titleId : void 0,
|
|
1495
|
-
"aria-describedby": l.descriptionPresent ?
|
|
1496
|
-
"data-state":
|
|
1495
|
+
"aria-describedby": l.descriptionPresent ? Er(o, l.descriptionId) : o,
|
|
1496
|
+
"data-state": Dr(l.open),
|
|
1497
1497
|
...c,
|
|
1498
1498
|
ref: t,
|
|
1499
1499
|
deferPointerDownOutside: !0,
|
|
@@ -1502,86 +1502,86 @@ var qn = function(e) {
|
|
|
1502
1502
|
})
|
|
1503
1503
|
})
|
|
1504
1504
|
});
|
|
1505
|
-
}, "DialogContentImpl")),
|
|
1506
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
1505
|
+
}, "DialogContentImpl")), Sr = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
1506
|
+
let { __scopeDialog: n, ...r } = e, i = D("DialogTitle", n), { setTitleCount: a } = i;
|
|
1507
1507
|
return le(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ (0, y.jsx)(b.h2, {
|
|
1508
1508
|
id: i.titleId,
|
|
1509
1509
|
...r,
|
|
1510
1510
|
ref: t
|
|
1511
1511
|
});
|
|
1512
|
-
}, "DialogTitle")),
|
|
1513
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
1512
|
+
}, "DialogTitle")), Cr = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
1513
|
+
let { __scopeDialog: n, ...r } = e, i = D("DialogDescription", n), { setDescriptionCount: a } = i;
|
|
1514
1514
|
return le(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ (0, y.jsx)(b.p, {
|
|
1515
1515
|
id: i.descriptionId,
|
|
1516
1516
|
...r,
|
|
1517
1517
|
ref: t
|
|
1518
1518
|
});
|
|
1519
|
-
}, "DialogDescription")),
|
|
1520
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
1519
|
+
}, "DialogDescription")), wr = "DialogClose", Tr = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ E(function(e, t) {
|
|
1520
|
+
let { __scopeDialog: n, ...r } = e, i = D(wr, n);
|
|
1521
1521
|
return /* @__PURE__ */ (0, y.jsx)(b.button, {
|
|
1522
1522
|
type: "button",
|
|
1523
1523
|
...r,
|
|
1524
1524
|
ref: t,
|
|
1525
|
-
onClick:
|
|
1525
|
+
onClick: S(e.onClick, () => i.onOpenChange(!1))
|
|
1526
1526
|
});
|
|
1527
1527
|
}, "DialogClose"));
|
|
1528
|
-
function
|
|
1528
|
+
function Er(...e) {
|
|
1529
1529
|
let t = /* @__PURE__ */ new Set();
|
|
1530
1530
|
for (let n of e) if (typeof n == "string") for (let e of String(n).trim().split(/\s+/)) e && t.add(e);
|
|
1531
1531
|
return t.size > 0 ? Array.from(t).join(" ") : void 0;
|
|
1532
1532
|
}
|
|
1533
|
-
|
|
1534
|
-
function
|
|
1533
|
+
E(Er, "concatAriaDescribedby");
|
|
1534
|
+
function Dr(e) {
|
|
1535
1535
|
return e ? "open" : "closed";
|
|
1536
1536
|
}
|
|
1537
|
-
|
|
1537
|
+
E(Dr, "getState");
|
|
1538
1538
|
//#endregion
|
|
1539
1539
|
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_supports-color@10.0.0__@babel+template@7.28.6_@types+react@19.3.0_react@19.3.1/node_modules/jotai/esm/vanilla/internals.mjs
|
|
1540
|
-
var
|
|
1541
|
-
INTERNAL_addPendingPromiseToDependency: () =>
|
|
1542
|
-
INTERNAL_buildStoreRev3: () =>
|
|
1543
|
-
INTERNAL_getBuildingBlocksRev3: () =>
|
|
1544
|
-
INTERNAL_getMountedOrPendingDependents: () =>
|
|
1545
|
-
INTERNAL_hasInitialValue: () =>
|
|
1546
|
-
INTERNAL_initializeStoreHooksRev3: () =>
|
|
1547
|
-
INTERNAL_isActuallyWritableAtom: () =>
|
|
1548
|
-
INTERNAL_isAtomStateInitialized: () =>
|
|
1549
|
-
INTERNAL_isPromiseLike: () =>
|
|
1550
|
-
INTERNAL_returnAtomValue: () =>
|
|
1551
|
-
INTERNAL_shouldThrowSynchronously: () =>
|
|
1540
|
+
var Or = /* @__PURE__ */ t({
|
|
1541
|
+
INTERNAL_addPendingPromiseToDependency: () => Ir,
|
|
1542
|
+
INTERNAL_buildStoreRev3: () => li,
|
|
1543
|
+
INTERNAL_getBuildingBlocksRev3: () => ci,
|
|
1544
|
+
INTERNAL_getMountedOrPendingDependents: () => Lr,
|
|
1545
|
+
INTERNAL_hasInitialValue: () => kr,
|
|
1546
|
+
INTERNAL_initializeStoreHooksRev3: () => Br,
|
|
1547
|
+
INTERNAL_isActuallyWritableAtom: () => Ar,
|
|
1548
|
+
INTERNAL_isAtomStateInitialized: () => Mr,
|
|
1549
|
+
INTERNAL_isPromiseLike: () => Pr,
|
|
1550
|
+
INTERNAL_returnAtomValue: () => Nr,
|
|
1551
|
+
INTERNAL_shouldThrowSynchronously: () => Fr
|
|
1552
1552
|
});
|
|
1553
|
-
function
|
|
1553
|
+
function kr(e) {
|
|
1554
1554
|
return "init" in e;
|
|
1555
1555
|
}
|
|
1556
|
-
function
|
|
1556
|
+
function Ar(e) {
|
|
1557
1557
|
return typeof e.write == "function";
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1559
|
+
function jr(e) {
|
|
1560
1560
|
return !!e.onMount;
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Mr(e) {
|
|
1563
1563
|
return "v" in e || "e" in e;
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1565
|
+
function Nr(e) {
|
|
1566
1566
|
if ("e" in e) throw e.e;
|
|
1567
1567
|
return e.v;
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function Pr(e) {
|
|
1570
1570
|
return typeof e?.then == "function";
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function Fr(e) {
|
|
1573
1573
|
if (!(e instanceof Error)) return !1;
|
|
1574
1574
|
let t = e.name, n = e.message.toLowerCase();
|
|
1575
1575
|
return (t === "RangeError" || t === "InternalError") && (n.includes("call stack") || n.includes("too much recursion") || n.includes("stack overflow"));
|
|
1576
1576
|
}
|
|
1577
|
-
function
|
|
1577
|
+
function Ir(e, t, n) {
|
|
1578
1578
|
if (!n.p.has(e)) {
|
|
1579
1579
|
n.p.add(e);
|
|
1580
1580
|
let r = () => n.p.delete(e);
|
|
1581
1581
|
t.then(r, r);
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Lr(e, t, n) {
|
|
1585
1585
|
let r = n.get(e)?.t, i = t.p;
|
|
1586
1586
|
if (!r?.size) return i;
|
|
1587
1587
|
if (!i.size) return r;
|
|
@@ -1589,10 +1589,10 @@ function Rr(e, t, n) {
|
|
|
1589
1589
|
for (let e of i) a.add(e);
|
|
1590
1590
|
return a;
|
|
1591
1591
|
}
|
|
1592
|
-
var
|
|
1592
|
+
var Rr = () => {
|
|
1593
1593
|
let e = /* @__PURE__ */ new Set(), t = () => e.forEach((e) => e());
|
|
1594
1594
|
return t.add = (t) => (e.add(t), () => e.delete(t)), t;
|
|
1595
|
-
},
|
|
1595
|
+
}, zr = () => {
|
|
1596
1596
|
let e = {}, t = /* @__PURE__ */ new WeakMap(), n = (n) => {
|
|
1597
1597
|
var r, i;
|
|
1598
1598
|
(r = t.get(e)) == null || r.forEach((e) => e(n)), (i = t.get(n)) == null || i.forEach((e) => e());
|
|
@@ -1604,13 +1604,13 @@ var zr = () => {
|
|
|
1604
1604
|
};
|
|
1605
1605
|
}, n;
|
|
1606
1606
|
};
|
|
1607
|
-
function
|
|
1608
|
-
return e.i ||=
|
|
1607
|
+
function Br(e) {
|
|
1608
|
+
return e.i ||= zr(), e.r ||= zr(), e.c ||= zr(), e.m ||= zr(), e.u ||= zr(), e.f ||= Rr(), e;
|
|
1609
1609
|
}
|
|
1610
|
-
function
|
|
1610
|
+
function Vr(e) {
|
|
1611
1611
|
return !!e.INTERNAL_onInit;
|
|
1612
1612
|
}
|
|
1613
|
-
var
|
|
1613
|
+
var Hr = (e, t, n, ...r) => n.read(...r), Ur = (e, t, n, ...r) => n.write(...r), Wr = (e, t, n) => n.INTERNAL_onInit(t), Gr = (e, t, n, r) => n.onMount?.call(n, r), Kr = (e, t, n) => {
|
|
1614
1614
|
var r;
|
|
1615
1615
|
let i = e[0], a = i.get(n);
|
|
1616
1616
|
if (!a) {
|
|
@@ -1619,10 +1619,10 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1619
1619
|
d: /* @__PURE__ */ new Map(),
|
|
1620
1620
|
p: /* @__PURE__ */ new Set(),
|
|
1621
1621
|
n: 0
|
|
1622
|
-
}, i.set(n, a), (r = o.i) == null || r.call(o, n),
|
|
1622
|
+
}, i.set(n, a), (r = o.i) == null || r.call(o, n), Vr(n) && s(e, t, n);
|
|
1623
1623
|
}
|
|
1624
1624
|
return a;
|
|
1625
|
-
},
|
|
1625
|
+
}, qr = (e, t) => {
|
|
1626
1626
|
let n = e[1], r = e[3], i = e[4], a = e[5], o = e[6], s = e[13];
|
|
1627
1627
|
if (!o.f && !r.size && !i.size && !a.size) return;
|
|
1628
1628
|
let c = [], l = (e) => {
|
|
@@ -1648,7 +1648,7 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1648
1648
|
r.size && s(e, t);
|
|
1649
1649
|
} while (r.size || a.size || i.size);
|
|
1650
1650
|
if (c.length) throw AggregateError(c);
|
|
1651
|
-
},
|
|
1651
|
+
}, Jr = (e, t) => {
|
|
1652
1652
|
let n = e[1], r = e[2], i = e[3], a = e[11], o = e[14], s = e[17];
|
|
1653
1653
|
if (!i.size) return;
|
|
1654
1654
|
let c = [], l = [], u = /* @__PURE__ */ new WeakSet(), d = /* @__PURE__ */ new WeakSet(), f = [], p = [];
|
|
@@ -1659,7 +1659,7 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1659
1659
|
else if (u.has(o)) r.get(o) === s.n && (c.push(o), l.push(s)), d.add(o), f.pop(), p.pop();
|
|
1660
1660
|
else {
|
|
1661
1661
|
u.add(o);
|
|
1662
|
-
for (let r of
|
|
1662
|
+
for (let r of Lr(o, s, n)) u.has(r) || (f.push(r), p.push(a(e, t, r)));
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
1665
|
for (let n = c.length - 1; n >= 0; --n) {
|
|
@@ -1670,10 +1670,10 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1670
1670
|
}
|
|
1671
1671
|
d && (r.set(a, u.n), o(e, t, a), s(e, t, a)), r.delete(a);
|
|
1672
1672
|
}
|
|
1673
|
-
},
|
|
1673
|
+
}, Yr = (e, t, n) => {
|
|
1674
1674
|
var r, i;
|
|
1675
1675
|
let a = e[1], o = e[2], s = e[3], c = e[6], l = e[7], u = e[11], d = e[12], f = e[13], p = e[14], m = e[16], h = e[17], g = e[20], _ = e[26], ee = e[28], v = u(e, t, n), te = ee[0];
|
|
1676
|
-
if (
|
|
1676
|
+
if (Mr(v)) {
|
|
1677
1677
|
if (a.has(n) && o.get(n) !== v.n || v.m === te) return v.m = te, v;
|
|
1678
1678
|
let r = !1;
|
|
1679
1679
|
for (let [n, i] of v.d) if (p(e, t, n).n !== i) {
|
|
@@ -1693,24 +1693,24 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1693
1693
|
var i;
|
|
1694
1694
|
if (r === n) {
|
|
1695
1695
|
let n = u(e, t, r);
|
|
1696
|
-
if (!
|
|
1697
|
-
if (
|
|
1696
|
+
if (!Mr(n)) {
|
|
1697
|
+
if (kr(r)) g(e, t, r, r.init);
|
|
1698
1698
|
else throw Error("no atom init");
|
|
1699
1699
|
}
|
|
1700
|
-
return
|
|
1700
|
+
return Nr(n);
|
|
1701
1701
|
}
|
|
1702
1702
|
let o = p(e, t, r);
|
|
1703
1703
|
try {
|
|
1704
|
-
return
|
|
1704
|
+
return Nr(o);
|
|
1705
1705
|
} finally {
|
|
1706
|
-
ne.delete(r), v.d.set(r, o.n),
|
|
1706
|
+
ne.delete(r), v.d.set(r, o.n), Pr(v.v) && Ir(n, v.v, o), a.has(n) && ((i = a.get(r)) == null || i.t.add(n)), y || b();
|
|
1707
1707
|
}
|
|
1708
1708
|
}, ae, x, oe = {
|
|
1709
1709
|
get signal() {
|
|
1710
1710
|
return ae ||= new AbortController(), ae.signal;
|
|
1711
1711
|
},
|
|
1712
1712
|
get setSelf() {
|
|
1713
|
-
return !x &&
|
|
1713
|
+
return !x && Ar(n) && (x = (...r) => {
|
|
1714
1714
|
if (!y) try {
|
|
1715
1715
|
return m(e, t, n, r);
|
|
1716
1716
|
} finally {
|
|
@@ -1721,7 +1721,7 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1721
1721
|
}, se = v.n, ce = o.get(n) === se;
|
|
1722
1722
|
try {
|
|
1723
1723
|
let i = l(e, t, n, ie, oe);
|
|
1724
|
-
if (g(e, t, n, i),
|
|
1724
|
+
if (g(e, t, n, i), Pr(i)) {
|
|
1725
1725
|
_(e, t, i, () => ae?.abort());
|
|
1726
1726
|
let n = () => {
|
|
1727
1727
|
re(), b();
|
|
@@ -1730,27 +1730,27 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1730
1730
|
} else re();
|
|
1731
1731
|
return (r = c.r) == null || r.call(c, n), v.m = te, v;
|
|
1732
1732
|
} catch (e) {
|
|
1733
|
-
if (
|
|
1733
|
+
if (Fr(e)) throw e;
|
|
1734
1734
|
return delete v.v, v.e = e, ++v.n, v.m = te, v;
|
|
1735
1735
|
} finally {
|
|
1736
1736
|
y = !1, v.n !== se && ce && (o.set(n, v.n), s.add(n), (i = c.c) == null || i.call(c, n));
|
|
1737
1737
|
}
|
|
1738
|
-
},
|
|
1738
|
+
}, Xr = (e, t, n) => {
|
|
1739
1739
|
let r = e[1], i = e[2], a = e[11], o = [n];
|
|
1740
1740
|
for (; o.length;) {
|
|
1741
1741
|
let n = o.pop(), s = a(e, t, n);
|
|
1742
|
-
for (let c of
|
|
1742
|
+
for (let c of Lr(n, s, r)) {
|
|
1743
1743
|
let n = a(e, t, c);
|
|
1744
1744
|
i.get(c) !== n.n && (i.set(c, n.n), o.push(c));
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
|
-
},
|
|
1748
|
-
let i = e[3], a = e[6], o = e[8], s = e[11], c = e[12], l = e[13], u = e[14], d = e[15], f = e[16], p = e[17], m = e[20], h = e[28], g = !0, _ = (n) =>
|
|
1747
|
+
}, Zr = (e, t, n, r) => {
|
|
1748
|
+
let i = e[3], a = e[6], o = e[8], s = e[11], c = e[12], l = e[13], u = e[14], d = e[15], f = e[16], p = e[17], m = e[20], h = e[28], g = !0, _ = (n) => Nr(u(e, t, n)), ee = (r, ...o) => {
|
|
1749
1749
|
var u;
|
|
1750
1750
|
let _ = s(e, t, r);
|
|
1751
1751
|
try {
|
|
1752
1752
|
if (r === n) {
|
|
1753
|
-
if (!
|
|
1753
|
+
if (!kr(r)) throw Error("atom not writable");
|
|
1754
1754
|
let n = _.n, s = o[0];
|
|
1755
1755
|
m(e, t, r, s), p(e, t, r), n !== _.n && (++h[0], i.add(r), d(e, t, r), (u = a.c) == null || u.call(a, r));
|
|
1756
1756
|
return;
|
|
@@ -1765,7 +1765,7 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1765
1765
|
} finally {
|
|
1766
1766
|
g = !1;
|
|
1767
1767
|
}
|
|
1768
|
-
},
|
|
1768
|
+
}, Qr = (e, t, n) => {
|
|
1769
1769
|
var r;
|
|
1770
1770
|
let i = e[1], a = e[3], o = e[6], s = e[11], c = e[15], l = e[18], u = e[19], d = s(e, t, n), f = i.get(n);
|
|
1771
1771
|
if (f && d.d.size > 0) {
|
|
@@ -1775,7 +1775,7 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1775
1775
|
}
|
|
1776
1776
|
for (let r of f.d) d.d.has(r) || (f.d.delete(r), u(e, t, r)?.t.delete(n));
|
|
1777
1777
|
}
|
|
1778
|
-
},
|
|
1778
|
+
}, $r = (e, t, n) => {
|
|
1779
1779
|
var r;
|
|
1780
1780
|
let i = e[1], a = e[4], o = e[6], s = e[10], c = e[11], l = e[12], u = e[13], d = e[14], f = e[16], p = e[18], m = c(e, t, n), h = i.get(n);
|
|
1781
1781
|
if (!h) {
|
|
@@ -1785,7 +1785,7 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1785
1785
|
l: /* @__PURE__ */ new Set(),
|
|
1786
1786
|
d: new Set(m.d.keys()),
|
|
1787
1787
|
t: /* @__PURE__ */ new Set()
|
|
1788
|
-
}, i.set(n, h),
|
|
1788
|
+
}, i.set(n, h), Ar(n) && jr(n) && a.add(() => {
|
|
1789
1789
|
let r = !0, i = (...i) => {
|
|
1790
1790
|
try {
|
|
1791
1791
|
return f(e, t, n, i);
|
|
@@ -1809,7 +1809,7 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1809
1809
|
}), (r = o.m) == null || r.call(o, n);
|
|
1810
1810
|
}
|
|
1811
1811
|
return h;
|
|
1812
|
-
},
|
|
1812
|
+
}, ei = (e, t, n) => {
|
|
1813
1813
|
var r;
|
|
1814
1814
|
let i = e[1], a = e[5], o = e[6], s = e[11], c = e[19], l = s(e, t, n), u = i.get(n);
|
|
1815
1815
|
if (!u || u.l.size) return u;
|
|
@@ -1822,26 +1822,26 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1822
1822
|
u.u && a.add(u.u), u = void 0, i.delete(n);
|
|
1823
1823
|
for (let r of l.d.keys()) c(e, t, r)?.t.delete(n);
|
|
1824
1824
|
(r = o.u) == null || r.call(o, n);
|
|
1825
|
-
},
|
|
1825
|
+
}, ti = (e, t, n, r) => {
|
|
1826
1826
|
let i = e[11], a = e[27], o = i(e, t, n), s = "v" in o, c = o.v;
|
|
1827
|
-
if (
|
|
1828
|
-
o.v = r, delete o.e, (!s || !Object.is(c, o.v)) && (++o.n,
|
|
1829
|
-
},
|
|
1827
|
+
if (Pr(r)) for (let a of o.d.keys()) Ir(n, r, i(e, t, a));
|
|
1828
|
+
o.v = r, delete o.e, (!s || !Object.is(c, o.v)) && (++o.n, Pr(c) && a(e, t, c));
|
|
1829
|
+
}, ni = (e, t, n) => {
|
|
1830
1830
|
let r = e[14];
|
|
1831
|
-
return
|
|
1832
|
-
},
|
|
1831
|
+
return Nr(r(e, t, n));
|
|
1832
|
+
}, ri = (e, t, n, ...r) => {
|
|
1833
1833
|
let i = e[3], a = e[12], o = e[13], s = e[16], c = i.size;
|
|
1834
1834
|
try {
|
|
1835
1835
|
return s(e, t, n, r);
|
|
1836
1836
|
} finally {
|
|
1837
1837
|
i.size !== c && (o(e, t), a(e, t));
|
|
1838
1838
|
}
|
|
1839
|
-
},
|
|
1839
|
+
}, ii = (e, t, n, r) => {
|
|
1840
1840
|
let i = e[12], a = e[13], o = e[18], s = e[19], c = o(e, t, n).l;
|
|
1841
1841
|
return c.add(r), a(e, t), i(e, t), () => {
|
|
1842
1842
|
c.delete(r), s(e, t, n), a(e, t), i(e, t);
|
|
1843
1843
|
};
|
|
1844
|
-
},
|
|
1844
|
+
}, ai = (e, t, n, r) => {
|
|
1845
1845
|
let i = e[25], a = i.get(n);
|
|
1846
1846
|
if (!a) {
|
|
1847
1847
|
a = /* @__PURE__ */ new Set(), i.set(n, a);
|
|
@@ -1849,14 +1849,14 @@ var Ur = (e, t, n, ...r) => n.read(...r), Wr = (e, t, n, ...r) => n.write(...r),
|
|
|
1849
1849
|
n.then(e, e);
|
|
1850
1850
|
}
|
|
1851
1851
|
a.add(r);
|
|
1852
|
-
},
|
|
1852
|
+
}, oi = (e, t, n) => {
|
|
1853
1853
|
e[25].get(n)?.forEach((e) => e());
|
|
1854
|
-
},
|
|
1855
|
-
function
|
|
1856
|
-
let t =
|
|
1854
|
+
}, si = /* @__PURE__ */ new WeakMap();
|
|
1855
|
+
function ci(e) {
|
|
1856
|
+
let t = si.get(e), n = t[24];
|
|
1857
1857
|
return n ? n(t, e) : t;
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1859
|
+
function li(...e) {
|
|
1860
1860
|
let t = {
|
|
1861
1861
|
get(e) {
|
|
1862
1862
|
return r(n, t, e);
|
|
@@ -1875,6 +1875,7 @@ function ui(...e) {
|
|
|
1875
1875
|
/* @__PURE__ */ new Set(),
|
|
1876
1876
|
/* @__PURE__ */ new Set(),
|
|
1877
1877
|
{},
|
|
1878
|
+
Hr,
|
|
1878
1879
|
Ur,
|
|
1879
1880
|
Wr,
|
|
1880
1881
|
Gr,
|
|
@@ -1891,62 +1892,61 @@ function ui(...e) {
|
|
|
1891
1892
|
ni,
|
|
1892
1893
|
ri,
|
|
1893
1894
|
ii,
|
|
1894
|
-
ai,
|
|
1895
1895
|
void 0,
|
|
1896
1896
|
/* @__PURE__ */ new WeakMap(),
|
|
1897
|
+
ai,
|
|
1897
1898
|
oi,
|
|
1898
|
-
si,
|
|
1899
1899
|
[0]
|
|
1900
1900
|
].map((t, n) => e[n] || t);
|
|
1901
|
-
|
|
1901
|
+
si.set(t, Object.freeze(n));
|
|
1902
1902
|
let r = n[21], i = n[22], a = n[23];
|
|
1903
1903
|
return t;
|
|
1904
1904
|
}
|
|
1905
1905
|
//#endregion
|
|
1906
1906
|
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_supports-color@10.0.0__@babel+template@7.28.6_@types+react@19.3.0_react@19.3.1/node_modules/jotai/esm/vanilla.mjs
|
|
1907
|
-
var
|
|
1908
|
-
function
|
|
1909
|
-
let n = `atom${++
|
|
1907
|
+
var ui = 0;
|
|
1908
|
+
function O(e, t) {
|
|
1909
|
+
let n = `atom${++ui}`, r = { toString() {
|
|
1910
1910
|
return n;
|
|
1911
1911
|
} };
|
|
1912
|
-
return typeof e == "function" ? r.read = e : (r.init = e, r.read =
|
|
1912
|
+
return typeof e == "function" ? r.read = e : (r.init = e, r.read = di, r.write = fi), t && (r.write = t), r;
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function di(e) {
|
|
1915
1915
|
return e(this);
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1917
|
+
function fi(e, t, n) {
|
|
1918
1918
|
return t(this, typeof n == "function" ? n(e(this)) : n);
|
|
1919
1919
|
}
|
|
1920
|
-
function
|
|
1921
|
-
return
|
|
1920
|
+
function pi() {
|
|
1921
|
+
return li();
|
|
1922
1922
|
}
|
|
1923
|
-
var
|
|
1924
|
-
function
|
|
1925
|
-
return
|
|
1923
|
+
var mi;
|
|
1924
|
+
function hi() {
|
|
1925
|
+
return mi ||= pi(), mi;
|
|
1926
1926
|
}
|
|
1927
1927
|
//#endregion
|
|
1928
1928
|
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_supports-color@10.0.0__@babel+template@7.28.6_@types+react@19.3.0_react@19.3.1/node_modules/jotai/esm/react.mjs
|
|
1929
|
-
var
|
|
1930
|
-
function
|
|
1931
|
-
let t = (0, v.useContext)(
|
|
1932
|
-
return e?.store || t ||
|
|
1929
|
+
var gi = (0, v.createContext)(void 0);
|
|
1930
|
+
function _i(e) {
|
|
1931
|
+
let t = (0, v.useContext)(gi);
|
|
1932
|
+
return e?.store || t || hi();
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function vi({ children: e, store: t }) {
|
|
1935
1935
|
let n = (0, v.useRef)(null);
|
|
1936
|
-
return t ? (0, v.createElement)(
|
|
1936
|
+
return t ? (0, v.createElement)(gi.Provider, { value: t }, e) : (n.current === null && (n.current = pi()), (0, v.createElement)(gi.Provider, { value: n.current }, e));
|
|
1937
1937
|
}
|
|
1938
|
-
var
|
|
1938
|
+
var yi = (e) => typeof e?.then == "function", bi = (e) => {
|
|
1939
1939
|
e.status || (e.status = "pending", e.then((t) => {
|
|
1940
1940
|
e.status = "fulfilled", e.value = t;
|
|
1941
1941
|
}, (t) => {
|
|
1942
1942
|
e.status = "rejected", e.reason = t;
|
|
1943
1943
|
}));
|
|
1944
|
-
},
|
|
1944
|
+
}, xi = v.use || ((e) => {
|
|
1945
1945
|
if (e.status === "pending") throw e;
|
|
1946
1946
|
if (e.status === "fulfilled") return e.value;
|
|
1947
|
-
throw e.status === "rejected" ? e.reason : (
|
|
1948
|
-
}),
|
|
1949
|
-
let r =
|
|
1947
|
+
throw e.status === "rejected" ? e.reason : (bi(e), e);
|
|
1948
|
+
}), Si = /* @__PURE__ */ new WeakMap(), Ci = (e, t, n) => {
|
|
1949
|
+
let r = ci(e), i = r[26], a = Si.get(t);
|
|
1950
1950
|
return a || (a = new Promise((o, s) => {
|
|
1951
1951
|
let c = t, l = (e) => (t) => {
|
|
1952
1952
|
c === e && o(t);
|
|
@@ -1955,16 +1955,16 @@ var bi = (e) => typeof e?.then == "function", xi = (e) => {
|
|
|
1955
1955
|
}, d = () => {
|
|
1956
1956
|
try {
|
|
1957
1957
|
let t = n();
|
|
1958
|
-
|
|
1958
|
+
yi(t) ? (Si.set(t, a), c = t, t.then(l(t), u(t)), i(r, e, t, d)) : o(t);
|
|
1959
1959
|
} catch (e) {
|
|
1960
1960
|
s(e);
|
|
1961
1961
|
}
|
|
1962
1962
|
};
|
|
1963
1963
|
t.then(l(t), u(t)), i(r, e, t, d);
|
|
1964
|
-
}),
|
|
1964
|
+
}), Si.set(t, a)), a;
|
|
1965
1965
|
};
|
|
1966
|
-
function
|
|
1967
|
-
let { delay: n, unstable_promiseStatus: r = !v.use } = t || {}, i =
|
|
1966
|
+
function wi(e, t) {
|
|
1967
|
+
let { delay: n, unstable_promiseStatus: r = !v.use } = t || {}, i = _i(t), [[a, o, s], c] = (0, v.useReducer)((t) => {
|
|
1968
1968
|
let n = i.get(e);
|
|
1969
1969
|
return Object.is(t[0], n) && t[1] === i && t[2] === e ? t : [
|
|
1970
1970
|
n,
|
|
@@ -1980,7 +1980,7 @@ function Ti(e, t) {
|
|
|
1980
1980
|
let t = i.sub(e, () => {
|
|
1981
1981
|
if (r) try {
|
|
1982
1982
|
let t = i.get(e);
|
|
1983
|
-
|
|
1983
|
+
yi(t) && bi(Ci(i, t, () => i.get(e)));
|
|
1984
1984
|
} catch {}
|
|
1985
1985
|
typeof n == "number" ? (console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"), setTimeout(c, n)) : c();
|
|
1986
1986
|
});
|
|
@@ -1990,43 +1990,43 @@ function Ti(e, t) {
|
|
|
1990
1990
|
e,
|
|
1991
1991
|
n,
|
|
1992
1992
|
r
|
|
1993
|
-
]), (0, v.useDebugValue)(l),
|
|
1994
|
-
let t =
|
|
1995
|
-
return r &&
|
|
1993
|
+
]), (0, v.useDebugValue)(l), yi(l)) {
|
|
1994
|
+
let t = Ci(i, l, () => i.get(e));
|
|
1995
|
+
return r && bi(t), xi(t);
|
|
1996
1996
|
}
|
|
1997
1997
|
return l;
|
|
1998
1998
|
}
|
|
1999
|
-
function
|
|
2000
|
-
let n =
|
|
1999
|
+
function Ti(e, t) {
|
|
2000
|
+
let n = _i(t);
|
|
2001
2001
|
return (0, v.useCallback)((...t) => n.set(e, ...t), [n, e]);
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2004
|
-
return [
|
|
2003
|
+
function Ei(e, t) {
|
|
2004
|
+
return [wi(e, t), Ti(e, t)];
|
|
2005
2005
|
}
|
|
2006
2006
|
//#endregion
|
|
2007
2007
|
//#region ../node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.mjs
|
|
2008
|
-
var
|
|
2009
|
-
function
|
|
2010
|
-
for (n of e.keys()) if (
|
|
2008
|
+
var k = l(), Di = Object.prototype.hasOwnProperty;
|
|
2009
|
+
function Oi(e, t, n) {
|
|
2010
|
+
for (n of e.keys()) if (ki(n, t)) return n;
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2012
|
+
function ki(e, t) {
|
|
2013
2013
|
var n, r, i;
|
|
2014
2014
|
if (e === t) return !0;
|
|
2015
2015
|
if (e && t && (n = e.constructor) === t.constructor) {
|
|
2016
2016
|
if (n === Date) return e.getTime() === t.getTime();
|
|
2017
2017
|
if (n === RegExp) return e.toString() === t.toString();
|
|
2018
2018
|
if (n === Array) {
|
|
2019
|
-
if ((r = e.length) === t.length) for (; r-- &&
|
|
2019
|
+
if ((r = e.length) === t.length) for (; r-- && ki(e[r], t[r]););
|
|
2020
2020
|
return r === -1;
|
|
2021
2021
|
}
|
|
2022
2022
|
if (n === Set) {
|
|
2023
2023
|
if (e.size !== t.size) return !1;
|
|
2024
|
-
for (r of e) if (i = r, i && typeof i == "object" && (i =
|
|
2024
|
+
for (r of e) if (i = r, i && typeof i == "object" && (i = Oi(t, i), !i) || !t.has(i)) return !1;
|
|
2025
2025
|
return !0;
|
|
2026
2026
|
}
|
|
2027
2027
|
if (n === Map) {
|
|
2028
2028
|
if (e.size !== t.size) return !1;
|
|
2029
|
-
for (r of e) if (i = r[0], i && typeof i == "object" && (i =
|
|
2029
|
+
for (r of e) if (i = r[0], i && typeof i == "object" && (i = Oi(t, i), !i) || !ki(r[1], t.get(i))) return !1;
|
|
2030
2030
|
return !0;
|
|
2031
2031
|
}
|
|
2032
2032
|
if (n === ArrayBuffer) e = new Uint8Array(e), t = new Uint8Array(t);
|
|
@@ -2039,7 +2039,7 @@ function Ai(e, t) {
|
|
|
2039
2039
|
return r === -1;
|
|
2040
2040
|
}
|
|
2041
2041
|
if (!n || typeof e == "object") {
|
|
2042
|
-
for (n in r = 0, e) if (
|
|
2042
|
+
for (n in r = 0, e) if (Di.call(e, n) && ++r && !Di.call(t, n) || !(n in t) || !ki(e[n], t[n])) return !1;
|
|
2043
2043
|
return Object.keys(t).length === r;
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
|
@@ -2047,13 +2047,13 @@ function Ai(e, t) {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
//#endregion
|
|
2049
2049
|
//#region ../node_modules/.pnpm/jotai@2.20.3_@babel+core@7.29.0_supports-color@10.0.0__@babel+template@7.28.6_@types+react@19.3.0_react@19.3.1/node_modules/jotai/esm/vanilla/utils.mjs
|
|
2050
|
-
var
|
|
2051
|
-
function
|
|
2052
|
-
return
|
|
2050
|
+
var Ai = /* @__PURE__ */ Symbol("");
|
|
2051
|
+
function ji(e, t) {
|
|
2052
|
+
return O(e, function(e, n, r) {
|
|
2053
2053
|
n(this, t(e(this), r));
|
|
2054
2054
|
});
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2056
|
+
function Mi(e, t) {
|
|
2057
2057
|
let n = null, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), a = (i) => {
|
|
2058
2058
|
let s;
|
|
2059
2059
|
if (t === void 0) s = r.get(i);
|
|
@@ -2089,23 +2089,23 @@ function Ni(e, t) {
|
|
|
2089
2089
|
if (n = e, n) for (let [e, [t, i]] of r) n(i, e) && (r.delete(e), o("REMOVE", e, t));
|
|
2090
2090
|
}, a;
|
|
2091
2091
|
}
|
|
2092
|
-
var
|
|
2093
|
-
function
|
|
2094
|
-
return
|
|
2092
|
+
var Ni = (e, t, n) => (t.has(n) ? t : t.set(n, e())).get(n), Pi = /* @__PURE__ */ new WeakMap(), Fi = (e, t, n, r) => Ni(e, Ni(() => /* @__PURE__ */ new WeakMap(), Ni(() => /* @__PURE__ */ new WeakMap(), Pi, t), n), r);
|
|
2093
|
+
function Ii(e, t, n = Object.is) {
|
|
2094
|
+
return Fi(() => {
|
|
2095
2095
|
let r = /* @__PURE__ */ Symbol(), i = ([e, i]) => {
|
|
2096
2096
|
if (i === r) return t(e);
|
|
2097
2097
|
let a = t(e, i);
|
|
2098
2098
|
return n(i, a) ? i : a;
|
|
2099
|
-
}, a =
|
|
2099
|
+
}, a = O((t) => {
|
|
2100
2100
|
let n = t(a), r = t(e);
|
|
2101
2101
|
return i([r, n]);
|
|
2102
2102
|
});
|
|
2103
2103
|
return a.init = r, a;
|
|
2104
2104
|
}, e, t, n);
|
|
2105
2105
|
}
|
|
2106
|
-
var
|
|
2107
|
-
function
|
|
2108
|
-
return
|
|
2106
|
+
var Li = (e, t, n) => (t.has(n) ? t : t.set(n, e())).get(n), Ri = /* @__PURE__ */ new WeakMap(), zi = (e, t, n) => Li(e, Li(() => /* @__PURE__ */ new WeakMap(), Ri, t), n), Bi = {}, Vi = (e) => !!e.write, Hi = (e) => typeof e == "function";
|
|
2107
|
+
function Ui(e, t) {
|
|
2108
|
+
return zi(() => {
|
|
2109
2109
|
let n = /* @__PURE__ */ new WeakMap(), r = (a, o) => {
|
|
2110
2110
|
let s = n.get(a);
|
|
2111
2111
|
if (s) return s;
|
|
@@ -2127,27 +2127,27 @@ function Wi(e, t) {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
return o[c];
|
|
2129
2129
|
};
|
|
2130
|
-
l[o] =
|
|
2130
|
+
l[o] = Vi(e) ? O(f, (t, n, a) => {
|
|
2131
2131
|
let o = t(i), c = t(e), l = r(c, o?.arr).keyList.indexOf(s);
|
|
2132
2132
|
if (l < 0 || l >= c.length) throw Error("splitAtom: index out of bounds for write");
|
|
2133
|
-
let u =
|
|
2133
|
+
let u = Hi(a) ? a(c[l]) : a;
|
|
2134
2134
|
Object.is(c[l], u) || n(e, [
|
|
2135
2135
|
...c.slice(0, l),
|
|
2136
2136
|
u,
|
|
2137
2137
|
...c.slice(l + 1)
|
|
2138
2138
|
]);
|
|
2139
|
-
}) :
|
|
2139
|
+
}) : O(f);
|
|
2140
2140
|
}), s = c && c.keyList.length === u.length && c.keyList.every((e, t) => e === u[t]) ? c : {
|
|
2141
2141
|
arr: a,
|
|
2142
2142
|
atomList: l,
|
|
2143
2143
|
keyList: u
|
|
2144
2144
|
}, n.set(a, s), s;
|
|
2145
|
-
}, i =
|
|
2145
|
+
}, i = O((t) => {
|
|
2146
2146
|
let n = t(i), a = t(e);
|
|
2147
2147
|
return r(a, n?.arr);
|
|
2148
2148
|
});
|
|
2149
2149
|
i.init = void 0;
|
|
2150
|
-
let a =
|
|
2150
|
+
let a = Vi(e) ? O((e) => e(i).atomList, (t, n, r) => {
|
|
2151
2151
|
switch (r.type) {
|
|
2152
2152
|
case "remove": {
|
|
2153
2153
|
let i = t(a).indexOf(r.atom);
|
|
@@ -2188,12 +2188,12 @@ function Wi(e, t) {
|
|
|
2188
2188
|
break;
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
|
-
}) :
|
|
2191
|
+
}) : O((e) => e(i).atomList);
|
|
2192
2192
|
return a;
|
|
2193
|
-
}, e, t ||
|
|
2193
|
+
}, e, t || Bi);
|
|
2194
2194
|
}
|
|
2195
|
-
var
|
|
2196
|
-
function
|
|
2195
|
+
var Wi = (e) => typeof e?.then == "function";
|
|
2196
|
+
function Gi(e = () => {
|
|
2197
2197
|
try {
|
|
2198
2198
|
return window.localStorage;
|
|
2199
2199
|
} catch {
|
|
@@ -2213,7 +2213,7 @@ function Ki(e = () => {
|
|
|
2213
2213
|
}
|
|
2214
2214
|
return r;
|
|
2215
2215
|
}, s = e()?.getItem(i) ?? null;
|
|
2216
|
-
return
|
|
2216
|
+
return Wi(s) ? s.then(o) : o(s);
|
|
2217
2217
|
},
|
|
2218
2218
|
setItem: (n, r) => e()?.setItem(n, JSON.stringify(r, t?.replacer)),
|
|
2219
2219
|
removeItem: (t) => e()?.removeItem(t)
|
|
@@ -2239,50 +2239,50 @@ function Ki(e = () => {
|
|
|
2239
2239
|
};
|
|
2240
2240
|
}), o && (i.subscribe = a(o)), i;
|
|
2241
2241
|
}
|
|
2242
|
-
var
|
|
2243
|
-
function
|
|
2244
|
-
let i = r?.getOnInit, a =
|
|
2245
|
-
return a.onMount = (r) => (r(n.getItem(e, t)), n.subscribe?.call(n, e, r, t)),
|
|
2242
|
+
var Ki = Gi();
|
|
2243
|
+
function qi(e, t, n = Ki, r) {
|
|
2244
|
+
let i = r?.getOnInit, a = O(i ? n.getItem(e, t) : t);
|
|
2245
|
+
return a.onMount = (r) => (r(n.getItem(e, t)), n.subscribe?.call(n, e, r, t)), O((e) => e(a), (r, i, o) => {
|
|
2246
2246
|
let s = typeof o == "function" ? o(r(a)) : o;
|
|
2247
|
-
return s ===
|
|
2247
|
+
return s === Ai ? (i(a, t), n.removeItem(e)) : Wi(s) ? s.then((t) => (i(a, t), n.setItem(e, t))) : (i(a, s), n.setItem(e, s));
|
|
2248
2248
|
});
|
|
2249
2249
|
}
|
|
2250
2250
|
//#endregion
|
|
2251
2251
|
//#region ../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mergeWith.js
|
|
2252
|
-
var
|
|
2252
|
+
var Ji = _(function(e, t, n, r) {
|
|
2253
2253
|
g(e, t, n, r);
|
|
2254
2254
|
});
|
|
2255
2255
|
//#endregion
|
|
2256
2256
|
//#region ../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/set.js
|
|
2257
|
-
function
|
|
2257
|
+
function Yi(e, t, n) {
|
|
2258
2258
|
return e == null ? e : ee(e, t, n);
|
|
2259
2259
|
}
|
|
2260
2260
|
//#endregion
|
|
2261
2261
|
//#region src/core/session/active-notebook.ts
|
|
2262
|
-
var
|
|
2263
|
-
|
|
2264
|
-
let t = e(
|
|
2262
|
+
var Xi = O(null);
|
|
2263
|
+
O((e) => {
|
|
2264
|
+
let t = e(Xi);
|
|
2265
2265
|
return (t && e(t.analysisAtom)?.analysis) ?? null;
|
|
2266
2266
|
});
|
|
2267
|
-
var
|
|
2268
|
-
|
|
2269
|
-
let t = e(
|
|
2267
|
+
var Zi = O(null);
|
|
2268
|
+
O((e) => {
|
|
2269
|
+
let t = e(Xi);
|
|
2270
2270
|
return t === null ? null : e(t.backendAtom);
|
|
2271
2271
|
});
|
|
2272
|
-
var
|
|
2273
|
-
let t = e(
|
|
2272
|
+
var Qi = O((e) => {
|
|
2273
|
+
let t = e(Xi);
|
|
2274
2274
|
return t === null ? null : e(t.shownDocumentAtom);
|
|
2275
|
-
}),
|
|
2275
|
+
}), $i = pi();
|
|
2276
2276
|
async function ea(e, t) {
|
|
2277
|
-
return t(
|
|
2278
|
-
let r =
|
|
2279
|
-
let i =
|
|
2277
|
+
return t($i.get(e)) ? $i.get(e) : new Promise((n) => {
|
|
2278
|
+
let r = $i.sub(e, () => {
|
|
2279
|
+
let i = $i.get(e);
|
|
2280
2280
|
t(i) && (r(), n(i));
|
|
2281
2281
|
});
|
|
2282
2282
|
});
|
|
2283
2283
|
}
|
|
2284
2284
|
function ta(e, t) {
|
|
2285
|
-
let n = (0,
|
|
2285
|
+
let n = (0, k.c)(5), r = _i(), i, a;
|
|
2286
2286
|
n[0] !== e || n[1] !== t || n[2] !== r ? (i = () => {
|
|
2287
2287
|
let n = r.get(e);
|
|
2288
2288
|
return r.sub(e, () => {
|
|
@@ -2296,9 +2296,9 @@ function ta(e, t) {
|
|
|
2296
2296
|
], n[0] = e, n[1] = t, n[2] = r, n[3] = i, n[4] = a) : (i = n[3], a = n[4]), (0, v.useEffect)(i, a);
|
|
2297
2297
|
}
|
|
2298
2298
|
var na = Symbol("sentinel");
|
|
2299
|
-
function ra(e, t =
|
|
2299
|
+
function ra(e, t = ki) {
|
|
2300
2300
|
let n = na;
|
|
2301
|
-
return
|
|
2301
|
+
return O((r) => {
|
|
2302
2302
|
let i = r(e);
|
|
2303
2303
|
return (n === na || !t(n, i)) && (n = i), n;
|
|
2304
2304
|
});
|
|
@@ -7063,31 +7063,42 @@ function Nm(e, t = {}) {
|
|
|
7063
7063
|
});
|
|
7064
7064
|
}, n;
|
|
7065
7065
|
}
|
|
7066
|
+
function Pm(e) {
|
|
7067
|
+
let t = Dm(() => Kp([
|
|
7068
|
+
G(e),
|
|
7069
|
+
q(),
|
|
7070
|
+
J(),
|
|
7071
|
+
Np(),
|
|
7072
|
+
Y(t),
|
|
7073
|
+
em(G(), t)
|
|
7074
|
+
]));
|
|
7075
|
+
return t;
|
|
7076
|
+
}
|
|
7066
7077
|
//#endregion
|
|
7067
7078
|
//#region src/core/config/config-schema.ts
|
|
7068
|
-
var
|
|
7079
|
+
var Fm = [
|
|
7069
7080
|
"pip",
|
|
7070
7081
|
"uv",
|
|
7071
7082
|
"rye",
|
|
7072
7083
|
"poetry",
|
|
7073
7084
|
"pixi"
|
|
7074
|
-
],
|
|
7085
|
+
], Im = [
|
|
7075
7086
|
"normal",
|
|
7076
7087
|
"compact",
|
|
7077
7088
|
"medium",
|
|
7078
7089
|
"full",
|
|
7079
7090
|
"columns"
|
|
7080
|
-
],
|
|
7091
|
+
], Lm = [
|
|
7081
7092
|
"auto",
|
|
7082
7093
|
"native",
|
|
7083
7094
|
"polars",
|
|
7084
7095
|
"lazy-polars",
|
|
7085
7096
|
"pandas"
|
|
7086
|
-
],
|
|
7097
|
+
], Rm = [
|
|
7087
7098
|
"html",
|
|
7088
7099
|
"markdown",
|
|
7089
7100
|
"ipynb"
|
|
7090
|
-
],
|
|
7101
|
+
], zm = ["off", "jedi"], Bm = [
|
|
7091
7102
|
"manual",
|
|
7092
7103
|
"ask",
|
|
7093
7104
|
"agent",
|
|
@@ -7096,13 +7107,13 @@ var Pm = [
|
|
|
7096
7107
|
api_key: G().optional(),
|
|
7097
7108
|
base_url: G().optional(),
|
|
7098
7109
|
project: G().optional()
|
|
7099
|
-
}).loose(),
|
|
7110
|
+
}).loose(), Vm = Up({
|
|
7100
7111
|
chat_model: G().nullish().prefault(null),
|
|
7101
7112
|
edit_model: G().nullish().prefault(null),
|
|
7102
7113
|
autocomplete_model: G().nullish().prefault(null),
|
|
7103
7114
|
displayed_models: Y(G()).default([]),
|
|
7104
7115
|
custom_models: Y(G()).default([])
|
|
7105
|
-
}),
|
|
7116
|
+
}), Hm = X({
|
|
7106
7117
|
completion: Up({
|
|
7107
7118
|
activate_on_typing: J().prefault(!0),
|
|
7108
7119
|
signature_hint_on_typing: J().prefault(!1),
|
|
@@ -7120,7 +7131,7 @@ var Pm = [
|
|
|
7120
7131
|
}).prefault({}),
|
|
7121
7132
|
formatting: X({
|
|
7122
7133
|
line_length: q().nonnegative().prefault(79).transform((e) => Math.min(e, 1e3)),
|
|
7123
|
-
infer_types: Z(
|
|
7134
|
+
infer_types: Z(zm).prefault("off")
|
|
7124
7135
|
}).prefault({}),
|
|
7125
7136
|
keymap: X({
|
|
7126
7137
|
preset: Z(["default", "vim"]).prefault("default"),
|
|
@@ -7138,8 +7149,8 @@ var Pm = [
|
|
|
7138
7149
|
reactive_tests: J().prefault(!0),
|
|
7139
7150
|
watcher_on_save: Z(["lazy", "autorun"]).prefault("lazy"),
|
|
7140
7151
|
sql_default_limit: q().int().nullable().optional(),
|
|
7141
|
-
default_sql_output: Z(
|
|
7142
|
-
default_auto_download: Y(Z(
|
|
7152
|
+
default_sql_output: Z(Lm).prefault("auto"),
|
|
7153
|
+
default_auto_download: Y(Z(Rm)).prefault([]),
|
|
7143
7154
|
show_tracebacks: J().prefault(!1),
|
|
7144
7155
|
pythonpath: Y(G()).prefault([]),
|
|
7145
7156
|
cache_cells: J().prefault(!1),
|
|
@@ -7157,17 +7168,17 @@ var Pm = [
|
|
|
7157
7168
|
dataframes: Z(["rich", "plain"]).prefault("rich"),
|
|
7158
7169
|
default_table_page_size: q().prefault(10),
|
|
7159
7170
|
default_table_max_columns: q().prefault(50),
|
|
7160
|
-
default_width: Z(
|
|
7171
|
+
default_width: Z(Im).prefault("medium").transform((e) => e === "normal" ? "compact" : e),
|
|
7161
7172
|
locale: G().nullable().optional(),
|
|
7162
7173
|
reference_highlighting: J().prefault(!0),
|
|
7163
7174
|
code_lens: J().prefault(!0)
|
|
7164
7175
|
}).prefault({}),
|
|
7165
|
-
package_management: X({ manager: Z(
|
|
7176
|
+
package_management: X({ manager: Z(Fm).prefault("pip") }).prefault({}),
|
|
7166
7177
|
ai: X({
|
|
7167
7178
|
enabled: J().prefault(!0),
|
|
7168
7179
|
rules: G().prefault(""),
|
|
7169
7180
|
max_tokens: q().int().positive().nullable().prefault(null),
|
|
7170
|
-
mode: Z(
|
|
7181
|
+
mode: Z(Bm).transform((e) => e === "manual" ? "ask" : e).prefault("ask"),
|
|
7171
7182
|
inline_tooltip: J().prefault(!1),
|
|
7172
7183
|
allow_provider_config: J().prefault(!0),
|
|
7173
7184
|
open_ai: Q.optional(),
|
|
@@ -7187,7 +7198,7 @@ var Pm = [
|
|
|
7187
7198
|
aws_secret_access_key: G().optional()
|
|
7188
7199
|
}).optional(),
|
|
7189
7200
|
custom_providers: em(G(), Q).prefault({}),
|
|
7190
|
-
models:
|
|
7201
|
+
models: Vm.prefault({
|
|
7191
7202
|
displayed_models: [],
|
|
7192
7203
|
custom_models: []
|
|
7193
7204
|
})
|
|
@@ -7300,27 +7311,27 @@ var Pm = [
|
|
|
7300
7311
|
signing: {},
|
|
7301
7312
|
lint: {},
|
|
7302
7313
|
datasources: {}
|
|
7303
|
-
})),
|
|
7304
|
-
width: Z(
|
|
7305
|
-
app_title:
|
|
7314
|
+
})), Um = G(), Wm = Z(Lm).prefault("auto"), Gm = Up({
|
|
7315
|
+
width: Z(Im).prefault("compact").transform((e) => e === "normal" ? "compact" : e),
|
|
7316
|
+
app_title: Um.nullish(),
|
|
7306
7317
|
css_file: G().nullish(),
|
|
7307
7318
|
html_head_file: G().nullish(),
|
|
7308
|
-
auto_download: Y(Z(
|
|
7309
|
-
sql_output:
|
|
7319
|
+
auto_download: Y(Z(Rm)).prefault([]),
|
|
7320
|
+
sql_output: Wm
|
|
7310
7321
|
}).prefault(() => ({
|
|
7311
7322
|
width: "compact",
|
|
7312
7323
|
auto_download: [],
|
|
7313
7324
|
sql_output: "auto"
|
|
7314
7325
|
}));
|
|
7315
|
-
function
|
|
7326
|
+
function Km(e) {
|
|
7316
7327
|
try {
|
|
7317
|
-
return
|
|
7328
|
+
return Gm.parse(e);
|
|
7318
7329
|
} catch (e) {
|
|
7319
|
-
return r.error(`Marimo got an unexpected value in the configuration file: ${e}`),
|
|
7330
|
+
return r.error(`Marimo got an unexpected value in the configuration file: ${e}`), Gm.parse({});
|
|
7320
7331
|
}
|
|
7321
7332
|
}
|
|
7322
|
-
function
|
|
7323
|
-
return
|
|
7333
|
+
function qm() {
|
|
7334
|
+
return Hm.parse({
|
|
7324
7335
|
completion: {},
|
|
7325
7336
|
save: {},
|
|
7326
7337
|
formatting: {},
|
|
@@ -7346,7 +7357,7 @@ function Km() {
|
|
|
7346
7357
|
}
|
|
7347
7358
|
//#endregion
|
|
7348
7359
|
//#region src/core/config/config.ts
|
|
7349
|
-
function
|
|
7360
|
+
function Jm(...e) {
|
|
7350
7361
|
let t = {};
|
|
7351
7362
|
for (let n of e) {
|
|
7352
7363
|
let e = [
|
|
@@ -7363,49 +7374,49 @@ function qm(...e) {
|
|
|
7363
7374
|
} : t])) : i
|
|
7364
7375
|
};
|
|
7365
7376
|
});
|
|
7366
|
-
|
|
7367
|
-
for (let { path: n, value: r } of e)
|
|
7377
|
+
Ji(t, n, (e, t) => Array.isArray(t) ? [...t] : void 0);
|
|
7378
|
+
for (let { path: n, value: r } of e) Yi(t, n, m(r));
|
|
7368
7379
|
}
|
|
7369
7380
|
return t;
|
|
7370
7381
|
}
|
|
7371
|
-
var
|
|
7372
|
-
let t = e(
|
|
7373
|
-
return
|
|
7374
|
-
}),
|
|
7375
|
-
|
|
7376
|
-
let t = e(
|
|
7382
|
+
var Ym = O(qm()), Xm = O({}), $ = O((e) => {
|
|
7383
|
+
let t = e(Xm);
|
|
7384
|
+
return Jm(e(Ym), t);
|
|
7385
|
+
}), Zm = O((e) => e($).runtime.on_cell_change === "autorun"), Qm = O((e) => e($).runtime.auto_instantiate), $m = O((e) => e($).keymap.overrides ?? {}), eh = O(n());
|
|
7386
|
+
O((e) => {
|
|
7387
|
+
let t = e($m), n = e(eh);
|
|
7377
7388
|
return new a(t, { platform: n });
|
|
7378
|
-
}),
|
|
7379
|
-
var
|
|
7380
|
-
|
|
7381
|
-
function
|
|
7382
|
-
let e = (0,
|
|
7389
|
+
}), O((e) => e($).save), O((e) => e($).server.transport === "sse" ? "sse" : "websocket");
|
|
7390
|
+
var th = O((e) => e($).ai);
|
|
7391
|
+
O((e) => e($).completion), O((e) => e($).keymap.preset);
|
|
7392
|
+
function nh() {
|
|
7393
|
+
let e = (0, k.c)(3), t = wi($), n = Ti(Ym), r;
|
|
7383
7394
|
return e[0] !== t || e[1] !== n ? (r = [t, n], e[0] = t, e[1] = n, e[2] = r) : r = e[2], r;
|
|
7384
7395
|
}
|
|
7385
|
-
function
|
|
7386
|
-
return
|
|
7396
|
+
function rh() {
|
|
7397
|
+
return $i.get($);
|
|
7387
7398
|
}
|
|
7388
|
-
|
|
7389
|
-
var
|
|
7390
|
-
|
|
7391
|
-
var
|
|
7392
|
-
function
|
|
7399
|
+
O((e) => sh(e($)));
|
|
7400
|
+
var ih = O((e) => ch(e($))), ah = O((e) => lh(e($)));
|
|
7401
|
+
O((e) => e($).display.code_editor_font_size);
|
|
7402
|
+
var oh = O((e) => e($).display.locale);
|
|
7403
|
+
function sh(e) {
|
|
7393
7404
|
return e.ai?.enabled !== !1;
|
|
7394
7405
|
}
|
|
7395
|
-
function
|
|
7406
|
+
function ch(e) {
|
|
7396
7407
|
return !!e.ai?.models?.chat_model || !!e.ai?.models?.edit_model || !!e.ai?.models?.autocomplete_model;
|
|
7397
7408
|
}
|
|
7398
|
-
function
|
|
7399
|
-
return
|
|
7409
|
+
function lh(e) {
|
|
7410
|
+
return sh(e) && ch(e);
|
|
7400
7411
|
}
|
|
7401
|
-
var
|
|
7402
|
-
|
|
7412
|
+
var uh = O({}), dh = Ii(O((e) => e(Qi)?.revision.app_config ?? e(uh)), (e) => e, ki), fh = O((e) => Km(e(dh)));
|
|
7413
|
+
O((e) => e(fh).width), O((e) => {
|
|
7403
7414
|
let t = e($), n = t.snippets?.custom_paths ?? [], r = t.snippets?.include_default_snippets;
|
|
7404
7415
|
return n.length > 0 || r === !0;
|
|
7405
|
-
}),
|
|
7416
|
+
}), O((e) => e($).server?.disable_file_downloads ?? !1);
|
|
7406
7417
|
//#endregion
|
|
7407
7418
|
//#region src/core/constants.ts
|
|
7408
|
-
var
|
|
7419
|
+
var ph = {
|
|
7409
7420
|
githubPage: "https://github.com/marimo-team/marimo",
|
|
7410
7421
|
releasesPage: "https://github.com/marimo-team/marimo/releases",
|
|
7411
7422
|
issuesPage: "https://github.com/marimo-team/marimo/issues",
|
|
@@ -7415,7 +7426,7 @@ var fh = {
|
|
|
7415
7426
|
docsPage: "https://docs.marimo.io",
|
|
7416
7427
|
youtube: "https://www.youtube.com/@marimo-team",
|
|
7417
7428
|
molab: "https://molab.marimo.io"
|
|
7418
|
-
},
|
|
7429
|
+
}, mh = {
|
|
7419
7430
|
showCode: "show-code",
|
|
7420
7431
|
includeCode: "include-code",
|
|
7421
7432
|
sessionId: "session_id",
|
|
@@ -7426,32 +7437,32 @@ var fh = {
|
|
|
7426
7437
|
viewAs: "view-as",
|
|
7427
7438
|
showChrome: "show-chrome",
|
|
7428
7439
|
theme: "theme"
|
|
7429
|
-
},
|
|
7440
|
+
}, hh = { outputArea: "output-area" };
|
|
7430
7441
|
//#endregion
|
|
7431
7442
|
//#region src/core/islands/utils.ts
|
|
7432
|
-
function
|
|
7443
|
+
function gh() {
|
|
7433
7444
|
return !0;
|
|
7434
7445
|
}
|
|
7435
7446
|
//#endregion
|
|
7436
7447
|
//#region src/theme/useTheme.ts
|
|
7437
|
-
var
|
|
7448
|
+
var _h = [
|
|
7438
7449
|
"light",
|
|
7439
7450
|
"dark",
|
|
7440
7451
|
"system"
|
|
7441
7452
|
];
|
|
7442
|
-
function
|
|
7453
|
+
function vh() {
|
|
7443
7454
|
if (typeof window > "u") return;
|
|
7444
|
-
let e = new URLSearchParams(window.location.search).get(
|
|
7445
|
-
return
|
|
7455
|
+
let e = new URLSearchParams(window.location.search).get(mh.theme);
|
|
7456
|
+
return _h.includes(e) ? e : void 0;
|
|
7446
7457
|
}
|
|
7447
|
-
function
|
|
7458
|
+
function yh() {
|
|
7448
7459
|
return [document.body, document.documentElement];
|
|
7449
7460
|
}
|
|
7450
|
-
function
|
|
7461
|
+
function bh() {
|
|
7451
7462
|
return typeof window > "u" ? void 0 : window.matchMedia?.("(prefers-color-scheme: dark)");
|
|
7452
7463
|
}
|
|
7453
|
-
function
|
|
7454
|
-
let t =
|
|
7464
|
+
function xh(e = bh()?.matches) {
|
|
7465
|
+
let t = yh();
|
|
7455
7466
|
for (let e of t) for (let t of ["dark", "light"]) if (e.classList.contains(t) || e.classList.contains(`${t}-mode`) || e.classList.contains(`${t}-theme`) || e.dataset.theme === t || e.dataset.mode === t) return t;
|
|
7456
7467
|
let n = t.map((e) => window.getComputedStyle(e)), r = n[0].colorScheme.split(/\s+/);
|
|
7457
7468
|
if (r.includes("dark")) return !r.includes("light") || e ? "dark" : "light";
|
|
@@ -7465,10 +7476,10 @@ function bh(e = yh()?.matches) {
|
|
|
7465
7476
|
}
|
|
7466
7477
|
return "light";
|
|
7467
7478
|
}
|
|
7468
|
-
var
|
|
7469
|
-
|
|
7470
|
-
let t =
|
|
7471
|
-
for (let e of
|
|
7479
|
+
var Sh = O(void 0);
|
|
7480
|
+
Sh.onMount = (e) => {
|
|
7481
|
+
let t = bh(), n = () => e(xh(t?.matches)), r = new MutationObserver(n);
|
|
7482
|
+
for (let e of yh()) r.observe(e, {
|
|
7472
7483
|
attributes: !0,
|
|
7473
7484
|
attributeFilter: [
|
|
7474
7485
|
"class",
|
|
@@ -7481,98 +7492,98 @@ xh.onMount = (e) => {
|
|
|
7481
7492
|
r.disconnect(), t?.removeEventListener("change", n), e(void 0);
|
|
7482
7493
|
};
|
|
7483
7494
|
};
|
|
7484
|
-
var
|
|
7485
|
-
function
|
|
7486
|
-
let e =
|
|
7487
|
-
e && (
|
|
7488
|
-
|
|
7495
|
+
var Ch = O((e) => gh() ? e(Sh) ?? xh() : vh() ?? e($).display.theme), wh = O(!1);
|
|
7496
|
+
function Th() {
|
|
7497
|
+
let e = bh();
|
|
7498
|
+
e && ($i.set(wh, e.matches), e.addEventListener("change", (e) => {
|
|
7499
|
+
$i.set(wh, e.matches);
|
|
7489
7500
|
}));
|
|
7490
7501
|
}
|
|
7491
|
-
|
|
7492
|
-
function
|
|
7502
|
+
Th();
|
|
7503
|
+
function Eh() {
|
|
7493
7504
|
switch (document.body.dataset.vscodeThemeKind) {
|
|
7494
7505
|
case "vscode-dark": return "dark";
|
|
7495
7506
|
case "vscode-high-contrast": return "dark";
|
|
7496
7507
|
case "vscode-light": return "light";
|
|
7497
7508
|
}
|
|
7498
7509
|
}
|
|
7499
|
-
var
|
|
7500
|
-
function
|
|
7510
|
+
var Dh = O(Eh());
|
|
7511
|
+
function Oh() {
|
|
7501
7512
|
let e = new MutationObserver(() => {
|
|
7502
|
-
let e =
|
|
7503
|
-
|
|
7513
|
+
let e = Eh();
|
|
7514
|
+
$i.set(Dh, e);
|
|
7504
7515
|
});
|
|
7505
7516
|
return e.observe(document.body, {
|
|
7506
7517
|
attributes: !0,
|
|
7507
7518
|
attributeFilter: ["data-vscode-theme-kind"]
|
|
7508
7519
|
}), () => e.disconnect();
|
|
7509
7520
|
}
|
|
7510
|
-
|
|
7511
|
-
var
|
|
7512
|
-
let t = e(
|
|
7521
|
+
Oh();
|
|
7522
|
+
var kh = O((e) => {
|
|
7523
|
+
let t = e(Ch), n = e(Dh);
|
|
7513
7524
|
if (n !== void 0) return n;
|
|
7514
|
-
let r = e(
|
|
7525
|
+
let r = e(wh);
|
|
7515
7526
|
return t === "system" ? r ? "dark" : "light" : t;
|
|
7516
7527
|
});
|
|
7517
|
-
function
|
|
7518
|
-
let e = (0,
|
|
7519
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = { store:
|
|
7520
|
-
let n =
|
|
7528
|
+
function Ah() {
|
|
7529
|
+
let e = (0, k.c)(3), t;
|
|
7530
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = { store: $i }, e[0] = t) : t = e[0];
|
|
7531
|
+
let n = wi(kh, t), r;
|
|
7521
7532
|
return e[1] === n ? r = e[2] : (r = { theme: n }, e[1] = n, e[2] = r), r;
|
|
7522
7533
|
}
|
|
7523
7534
|
//#endregion
|
|
7524
7535
|
//#region src/theme/namespace.tsx
|
|
7525
|
-
var
|
|
7526
|
-
let n = (0,
|
|
7536
|
+
var jh = { display: "contents" }, Mh = v.forwardRef((e, t) => {
|
|
7537
|
+
let n = (0, k.c)(4), { children: r } = e, { theme: i } = Ah(), a = `marimo ${i}`, o;
|
|
7527
7538
|
return n[0] !== r || n[1] !== t || n[2] !== a ? (o = /* @__PURE__ */ (0, y.jsx)("div", {
|
|
7528
7539
|
ref: t,
|
|
7529
7540
|
className: a,
|
|
7530
|
-
style:
|
|
7541
|
+
style: jh,
|
|
7531
7542
|
children: r
|
|
7532
7543
|
}), n[0] = r, n[1] = t, n[2] = a, n[3] = o) : o = n[3], o;
|
|
7533
7544
|
});
|
|
7534
|
-
|
|
7545
|
+
Mh.displayName = "StyleNamespace";
|
|
7535
7546
|
//#endregion
|
|
7536
7547
|
//#region src/core/vscode/is-in-vscode.ts
|
|
7537
|
-
function
|
|
7548
|
+
function Nh() {
|
|
7538
7549
|
return document.querySelector("[data-vscode-theme-kind]") !== null;
|
|
7539
7550
|
}
|
|
7540
7551
|
//#endregion
|
|
7541
7552
|
//#region src/components/ui/fullscreen.tsx
|
|
7542
|
-
var
|
|
7543
|
-
function
|
|
7553
|
+
var Ph = "[data-vscode-output-container]", Fh = Nh() ? 0 : 30;
|
|
7554
|
+
function Ih() {
|
|
7544
7555
|
let e = document.fullscreenElement;
|
|
7545
7556
|
for (; e?.shadowRoot?.fullscreenElement;) e = e.shadowRoot.fullscreenElement;
|
|
7546
7557
|
return e;
|
|
7547
7558
|
}
|
|
7548
|
-
function
|
|
7549
|
-
let e = (0,
|
|
7559
|
+
function Lh() {
|
|
7560
|
+
let e = (0, k.c)(1), [t, n] = (0, v.useState)(Ih), r;
|
|
7550
7561
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = () => {
|
|
7551
|
-
n(
|
|
7562
|
+
n(Ih());
|
|
7552
7563
|
}, e[0] = r) : r = e[0], i(document, "fullscreenchange", r), t;
|
|
7553
7564
|
}
|
|
7554
|
-
var
|
|
7555
|
-
function
|
|
7556
|
-
for (let e of
|
|
7565
|
+
var Rh = /* @__PURE__ */ new Set();
|
|
7566
|
+
function zh() {
|
|
7567
|
+
for (let e of Rh) e();
|
|
7557
7568
|
}
|
|
7558
|
-
function
|
|
7559
|
-
return
|
|
7560
|
-
|
|
7569
|
+
function Bh(e) {
|
|
7570
|
+
return Rh.size === 0 && document.addEventListener("fullscreenchange", zh), Rh.add(e), () => {
|
|
7571
|
+
Rh.delete(e), Rh.size === 0 && document.removeEventListener("fullscreenchange", zh);
|
|
7561
7572
|
};
|
|
7562
7573
|
}
|
|
7563
|
-
function
|
|
7564
|
-
let t = (0,
|
|
7574
|
+
function Vh(e) {
|
|
7575
|
+
let t = (0, k.c)(2), n;
|
|
7565
7576
|
return t[0] === e ? n = t[1] : (n = () => {
|
|
7566
7577
|
let t = document.fullscreenElement;
|
|
7567
7578
|
return t !== null && t === e.current;
|
|
7568
|
-
}, t[0] = e, t[1] = n), (0, v.useSyncExternalStore)(
|
|
7579
|
+
}, t[0] = e, t[1] = n), (0, v.useSyncExternalStore)(Bh, n);
|
|
7569
7580
|
}
|
|
7570
|
-
function
|
|
7581
|
+
function Hh(e) {
|
|
7571
7582
|
let t = (t) => {
|
|
7572
|
-
let n = (0,
|
|
7583
|
+
let n = (0, k.c)(6), [r, i] = v.useState(null), a = v.useRef(null), o, s;
|
|
7573
7584
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (o = () => {
|
|
7574
7585
|
if (!a.current) return;
|
|
7575
|
-
let e =
|
|
7586
|
+
let e = Wh(a.current, Ph);
|
|
7576
7587
|
i(e);
|
|
7577
7588
|
}, s = [], n[0] = o, n[1] = s) : (o = n[0], s = n[1]), v.useLayoutEffect(o, s);
|
|
7578
7589
|
let c;
|
|
@@ -7586,8 +7597,8 @@ function Vh(e) {
|
|
|
7586
7597
|
container: r
|
|
7587
7598
|
})] }), n[3] = r, n[4] = t, n[5] = l) : l = n[5], l;
|
|
7588
7599
|
}, n = (n) => {
|
|
7589
|
-
let r = (0,
|
|
7590
|
-
if (
|
|
7600
|
+
let r = (0, k.c)(7), i = Lh();
|
|
7601
|
+
if (Nh()) {
|
|
7591
7602
|
let e;
|
|
7592
7603
|
return r[0] === n ? e = r[1] : (e = /* @__PURE__ */ (0, y.jsx)(t, { ...n }), r[0] = n, r[1] = e), e;
|
|
7593
7604
|
}
|
|
@@ -7603,12 +7614,12 @@ function Vh(e) {
|
|
|
7603
7614
|
};
|
|
7604
7615
|
return n.displayName = e.displayName, n;
|
|
7605
7616
|
}
|
|
7606
|
-
function
|
|
7617
|
+
function Uh(e) {
|
|
7607
7618
|
let t = (t) => {
|
|
7608
|
-
let n = (0,
|
|
7619
|
+
let n = (0, k.c)(6), [r, i] = v.useState(null), a = v.useRef(null), o, s;
|
|
7609
7620
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (o = () => {
|
|
7610
7621
|
if (!a.current) return;
|
|
7611
|
-
let e =
|
|
7622
|
+
let e = Wh(a.current, Ph);
|
|
7612
7623
|
i(e);
|
|
7613
7624
|
}, s = [], n[0] = o, n[1] = s) : (o = n[0], s = n[1]), v.useLayoutEffect(o, s);
|
|
7614
7625
|
let c;
|
|
@@ -7622,8 +7633,8 @@ function Hh(e) {
|
|
|
7622
7633
|
collisionBoundary: r
|
|
7623
7634
|
})] }), n[3] = r, n[4] = t, n[5] = l) : l = n[5], l;
|
|
7624
7635
|
}, n = (n) => {
|
|
7625
|
-
let r = (0,
|
|
7626
|
-
if (
|
|
7636
|
+
let r = (0, k.c)(4);
|
|
7637
|
+
if (Nh()) {
|
|
7627
7638
|
let e;
|
|
7628
7639
|
return r[0] === n ? e = r[1] : (e = /* @__PURE__ */ (0, y.jsx)(t, { ...n }), r[0] = n, r[1] = e), e;
|
|
7629
7640
|
}
|
|
@@ -7632,7 +7643,7 @@ function Hh(e) {
|
|
|
7632
7643
|
};
|
|
7633
7644
|
return n.displayName = e.displayName, n;
|
|
7634
7645
|
}
|
|
7635
|
-
function
|
|
7646
|
+
function Wh(e, t) {
|
|
7636
7647
|
let n = e;
|
|
7637
7648
|
for (; n;) {
|
|
7638
7649
|
let e = n.closest(t);
|
|
@@ -7644,8 +7655,8 @@ function Uh(e, t) {
|
|
|
7644
7655
|
}
|
|
7645
7656
|
//#endregion
|
|
7646
7657
|
//#region src/components/ui/use-restore-focus.ts
|
|
7647
|
-
function
|
|
7648
|
-
let e = (0,
|
|
7658
|
+
function Gh() {
|
|
7659
|
+
let e = (0, k.c)(3), [t, n] = (0, v.useState)(null), r;
|
|
7649
7660
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = () => {
|
|
7650
7661
|
n(document.activeElement);
|
|
7651
7662
|
}, e[0] = r) : r = e[0];
|
|
@@ -7658,4 +7669,4 @@ function Wh() {
|
|
|
7658
7669
|
}, e[1] = t, e[2] = a), a;
|
|
7659
7670
|
}
|
|
7660
7671
|
//#endregion
|
|
7661
|
-
export {
|
|
7672
|
+
export { Pm as $, ir as $t, Bp as A, Mi as At, ip as B, Ti as Bt, Jm as C, $i as Ct, Pp as D, Xi as Dt, Ym as E, Zi as Et, nm as F, Ui as Ft, Nm as G, or as Gt, W as H, O as Ht, Op as I, ki as It, Y as J, Cr as Jt, Np as K, Tr as Kt, Hp as L, vi as Lt, qp as M, qi as Mt, tm as N, Gi as Nt, Vp as O, Qi as Ot, ap as P, Ii as Pt, Ap as Q, cr as Qt, om as R, Ei as Rt, oh as S, ra as St, nh as T, ea as Tt, Gp as U, pi as Ut, Zp as V, _i as Vt, Z as W, Or as Wt, km as X, fr as Xt, J as Y, mr as Yt, Jp as Z, Sr as Zt, ah as _, se as _n, Wu as _t, Vh as a, ft as an, q as at, Zm as b, Mu as bt, Nh as c, ht as cn, em as ct, Ah as d, qe as dn, Qp as dt, er as en, Dm as et, gh as f, Ue as fn, Kp as ft, th as g, le as gn, Rf as gt, mh as h, S as hn, Hf as ht, Lh as i, kt as in, zp as it, fm as j, ji as jt, jp as k, Yi as kt, Mh as l, et as ln, Wp as lt, ph as m, Te as mn, Kf as mt, Fh as n, Rt as nn, X as nt, Hh as o, mt as on, Up as ot, hh as p, Ne as pn, Lp as pt, Fp as q, vr as qt, Ih as r, Ft as rn, xm as rt, Uh as s, gt as sn, sm as st, Gh as t, Gn as tn, rm as tt, kh as u, tt as un, G as ut, ih as v, b as vn, Lu as vt, $ as w, ta as wt, rh as x, jo as xt, Qm as y, ie as yn, lu as yt, Sm as z, wi as zt };
|