@windrun-huaiin/third-ui 5.13.4 → 5.13.6

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.
@@ -901,7 +901,7 @@ var require_acorn = __commonJS({
901
901
  this.privateNameStack = [];
902
902
  };
903
903
  var prototypeAccessors2 = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
904
- Parser3.prototype.parse = function parse5() {
904
+ Parser3.prototype.parse = function parse6() {
905
905
  var node2 = this.options.program || this.startNode();
906
906
  this.nextToken();
907
907
  return this.parseTopLevel(node2);
@@ -961,7 +961,7 @@ var require_acorn = __commonJS({
961
961
  }
962
962
  return cls;
963
963
  };
964
- Parser3.parse = function parse5(input, options) {
964
+ Parser3.parse = function parse6(input, options) {
965
965
  return new this(options, input).parse();
966
966
  };
967
967
  Parser3.parseExpressionAt = function parseExpressionAt3(input, pos, options) {
@@ -3761,7 +3761,7 @@ var require_acorn = __commonJS({
3761
3761
  }
3762
3762
  }
3763
3763
  };
3764
- var Node3 = function Node4(parser, pos, loc) {
3764
+ var Node4 = function Node5(parser, pos, loc) {
3765
3765
  this.type = "";
3766
3766
  this.start = pos;
3767
3767
  this.end = 0;
@@ -3777,10 +3777,10 @@ var require_acorn = __commonJS({
3777
3777
  };
3778
3778
  var pp$22 = Parser3.prototype;
3779
3779
  pp$22.startNode = function() {
3780
- return new Node3(this, this.start, this.startLoc);
3780
+ return new Node4(this, this.start, this.startLoc);
3781
3781
  };
3782
3782
  pp$22.startNodeAt = function(pos, loc) {
3783
- return new Node3(this, pos, loc);
3783
+ return new Node4(this, pos, loc);
3784
3784
  };
3785
3785
  function finishNodeAt2(node2, type, pos, loc) {
3786
3786
  node2.type = type;
@@ -3800,7 +3800,7 @@ var require_acorn = __commonJS({
3800
3800
  return finishNodeAt2.call(this, node2, type, pos, loc);
3801
3801
  };
3802
3802
  pp$22.copyNode = function(node2) {
3803
- var newNode = new Node3(this, node2.start, this.startLoc);
3803
+ var newNode = new Node4(this, node2.start, this.startLoc);
3804
3804
  for (var prop in node2) {
3805
3805
  newNode[prop] = node2[prop];
3806
3806
  }
@@ -4998,11 +4998,11 @@ var require_acorn = __commonJS({
4998
4998
  return result;
4999
4999
  };
5000
5000
  pp$12.regexp_classString = function(state) {
5001
- var count = 0;
5001
+ var count3 = 0;
5002
5002
  while (this.regexp_eatClassSetCharacter(state)) {
5003
- count++;
5003
+ count3++;
5004
5004
  }
5005
- return count === 1 ? CharSetOk2 : CharSetString2;
5005
+ return count3 === 1 ? CharSetOk2 : CharSetString2;
5006
5006
  };
5007
5007
  pp$12.regexp_eatClassSetCharacter = function(state) {
5008
5008
  var start2 = state.pos;
@@ -6009,7 +6009,7 @@ var require_acorn = __commonJS({
6009
6009
  Position: Position3,
6010
6010
  SourceLocation: SourceLocation3,
6011
6011
  getLineInfo: getLineInfo2,
6012
- Node: Node3,
6012
+ Node: Node4,
6013
6013
  TokenType: TokenType3,
6014
6014
  tokTypes: types$12,
6015
6015
  keywordTypes: keywords2,
@@ -6023,7 +6023,7 @@ var require_acorn = __commonJS({
6023
6023
  lineBreakG: lineBreakG2,
6024
6024
  nonASCIIwhitespace: nonASCIIwhitespace2
6025
6025
  };
6026
- function parse4(input, options) {
6026
+ function parse5(input, options) {
6027
6027
  return Parser3.parse(input, options);
6028
6028
  }
6029
6029
  function parseExpressionAt2(input, pos, options) {
@@ -6032,7 +6032,7 @@ var require_acorn = __commonJS({
6032
6032
  function tokenizer2(input, options) {
6033
6033
  return Parser3.tokenizer(input, options);
6034
6034
  }
6035
- exports2.Node = Node3;
6035
+ exports2.Node = Node4;
6036
6036
  exports2.Parser = Parser3;
6037
6037
  exports2.Position = Position3;
6038
6038
  exports2.SourceLocation = SourceLocation3;
@@ -6048,7 +6048,7 @@ var require_acorn = __commonJS({
6048
6048
  exports2.lineBreak = lineBreak2;
6049
6049
  exports2.lineBreakG = lineBreakG2;
6050
6050
  exports2.nonASCIIwhitespace = nonASCIIwhitespace2;
6051
- exports2.parse = parse4;
6051
+ exports2.parse = parse5;
6052
6052
  exports2.parseExpressionAt = parseExpressionAt2;
6053
6053
  exports2.tokContexts = types2;
6054
6054
  exports2.tokTypes = types$12;
@@ -6231,12 +6231,12 @@ var require_acorn_jsx = __commonJS({
6231
6231
  return this.finishToken(tt.string, out);
6232
6232
  }
6233
6233
  jsx_readEntity() {
6234
- let str = "", count = 0, entity;
6234
+ let str = "", count3 = 0, entity;
6235
6235
  let ch = this.input[this.pos];
6236
6236
  if (ch !== "&")
6237
6237
  this.raise(this.pos, "Entity must start with an ampersand");
6238
6238
  let startPos = ++this.pos;
6239
- while (this.pos < this.input.length && count++ < 10) {
6239
+ while (this.pos < this.input.length && count3++ < 10) {
6240
6240
  ch = this.input[this.pos++];
6241
6241
  if (ch === ";") {
6242
6242
  if (str[0] === "#") {
@@ -6582,7 +6582,7 @@ var require_format = __commonJS({
6582
6582
 
6583
6583
  // src/fuma/fuma-page-genarator.tsx
6584
6584
  import { DocsBody, DocsDescription, DocsPage, DocsTitle } from "fumadocs-ui/page";
6585
- import { cloneElement as cloneElement2 } from "react";
6585
+ import { cloneElement as cloneElement4 } from "react";
6586
6586
 
6587
6587
  // ../base-ui/src/assets/github.tsx
6588
6588
  import React from "react";
@@ -9223,164 +9223,2284 @@ for (const [iconName, IconComponent] of Object.entries(BUILTIN_ICON_COMPONENTS))
9223
9223
  var wrappedBuiltinIconsPart = tempWrappedBuiltinIcons;
9224
9224
  var globalLucideIcons = __spreadValues(__spreadValues({}, styledLimitedIconsPart), wrappedBuiltinIconsPart);
9225
9225
 
9226
- // src/fuma/mdx/mermaid.tsx
9227
- import { useTheme } from "next-themes";
9228
- import { useEffect, useId, useState } from "react";
9229
- import { jsx as jsx33, jsxs as jsxs10 } from "react/jsx-runtime";
9226
+ // ../base-ui/src/ui/alert-dialog.tsx
9227
+ import * as React57 from "react";
9230
9228
 
9231
- // src/fuma/mdx/image-zoom.tsx
9232
- import { Image } from "fumadocs-core/framework";
9233
- import { useState as useState2 } from "react";
9234
- import Zoom from "react-medium-image-zoom";
9235
- import { jsx as jsx34 } from "react/jsx-runtime";
9229
+ // ../../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.1.14_@types+react-dom@19.1.3_@types+react@19.1.2__@types_c6ff7006a888f63e36d2502e019661c3/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
9230
+ import * as React55 from "react";
9236
9231
 
9237
- // src/fuma/mdx/trophy-card.tsx
9238
- import { jsx as jsx35, jsxs as jsxs11 } from "react/jsx-runtime";
9232
+ // ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.mjs
9233
+ import * as React33 from "react";
9234
+ import { jsx as jsx33 } from "react/jsx-runtime";
9235
+ function createContext2(rootComponentName, defaultContext) {
9236
+ const Context = React33.createContext(defaultContext);
9237
+ const Provider = (props) => {
9238
+ const _a = props, { children } = _a, context = __objRest(_a, ["children"]);
9239
+ const value2 = React33.useMemo(() => context, Object.values(context));
9240
+ return /* @__PURE__ */ jsx33(Context.Provider, { value: value2, children });
9241
+ };
9242
+ Provider.displayName = rootComponentName + "Provider";
9243
+ function useContext22(consumerName) {
9244
+ const context = React33.useContext(Context);
9245
+ if (context) return context;
9246
+ if (defaultContext !== void 0) return defaultContext;
9247
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
9248
+ }
9249
+ return [Provider, useContext22];
9250
+ }
9251
+ function createContextScope(scopeName, createContextScopeDeps = []) {
9252
+ let defaultContexts = [];
9253
+ function createContext32(rootComponentName, defaultContext) {
9254
+ const BaseContext = React33.createContext(defaultContext);
9255
+ const index2 = defaultContexts.length;
9256
+ defaultContexts = [...defaultContexts, defaultContext];
9257
+ const Provider = (props) => {
9258
+ var _b;
9259
+ const _a = props, { scope, children } = _a, context = __objRest(_a, ["scope", "children"]);
9260
+ const Context = ((_b = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _b[index2]) || BaseContext;
9261
+ const value2 = React33.useMemo(() => context, Object.values(context));
9262
+ return /* @__PURE__ */ jsx33(Context.Provider, { value: value2, children });
9263
+ };
9264
+ Provider.displayName = rootComponentName + "Provider";
9265
+ function useContext22(consumerName, scope) {
9266
+ var _a;
9267
+ const Context = ((_a = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a[index2]) || BaseContext;
9268
+ const context = React33.useContext(Context);
9269
+ if (context) return context;
9270
+ if (defaultContext !== void 0) return defaultContext;
9271
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
9272
+ }
9273
+ return [Provider, useContext22];
9274
+ }
9275
+ const createScope = () => {
9276
+ const scopeContexts = defaultContexts.map((defaultContext) => {
9277
+ return React33.createContext(defaultContext);
9278
+ });
9279
+ return function useScope(scope) {
9280
+ const contexts = (scope == null ? void 0 : scope[scopeName]) || scopeContexts;
9281
+ return React33.useMemo(
9282
+ () => ({ [`__scope${scopeName}`]: __spreadProps(__spreadValues({}, scope), { [scopeName]: contexts }) }),
9283
+ [scope, contexts]
9284
+ );
9285
+ };
9286
+ };
9287
+ createScope.scopeName = scopeName;
9288
+ return [createContext32, composeContextScopes(createScope, ...createContextScopeDeps)];
9289
+ }
9290
+ function composeContextScopes(...scopes) {
9291
+ const baseScope = scopes[0];
9292
+ if (scopes.length === 1) return baseScope;
9293
+ const createScope = () => {
9294
+ const scopeHooks = scopes.map((createScope2) => ({
9295
+ useScope: createScope2(),
9296
+ scopeName: createScope2.scopeName
9297
+ }));
9298
+ return function useComposedScopes(overrideScopes) {
9299
+ const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
9300
+ const scopeProps = useScope(overrideScopes);
9301
+ const currentScope = scopeProps[`__scope${scopeName}`];
9302
+ return __spreadValues(__spreadValues({}, nextScopes2), currentScope);
9303
+ }, {});
9304
+ return React33.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
9305
+ };
9306
+ };
9307
+ createScope.scopeName = baseScope.scopeName;
9308
+ return createScope;
9309
+ }
9239
9310
 
9240
- // src/fuma/mdx/image-grid.tsx
9311
+ // ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
9312
+ import * as React34 from "react";
9313
+ function setRef(ref2, value2) {
9314
+ if (typeof ref2 === "function") {
9315
+ return ref2(value2);
9316
+ } else if (ref2 !== null && ref2 !== void 0) {
9317
+ ref2.current = value2;
9318
+ }
9319
+ }
9320
+ function composeRefs(...refs) {
9321
+ return (node2) => {
9322
+ let hasCleanup = false;
9323
+ const cleanups = refs.map((ref2) => {
9324
+ const cleanup = setRef(ref2, node2);
9325
+ if (!hasCleanup && typeof cleanup == "function") {
9326
+ hasCleanup = true;
9327
+ }
9328
+ return cleanup;
9329
+ });
9330
+ if (hasCleanup) {
9331
+ return () => {
9332
+ for (let i = 0; i < cleanups.length; i++) {
9333
+ const cleanup = cleanups[i];
9334
+ if (typeof cleanup == "function") {
9335
+ cleanup();
9336
+ } else {
9337
+ setRef(refs[i], null);
9338
+ }
9339
+ }
9340
+ };
9341
+ }
9342
+ };
9343
+ }
9344
+ function useComposedRefs(...refs) {
9345
+ return React34.useCallback(composeRefs(...refs), refs);
9346
+ }
9347
+
9348
+ // ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.14_@types+react-dom@19.1.3_@types+react@19.1.2__@types+react_848f83211ce5e4d8275fe0d3e11a9387/node_modules/@radix-ui/react-dialog/dist/index.mjs
9349
+ import * as React54 from "react";
9350
+
9351
+ // ../../node_modules/.pnpm/@radix-ui+primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.mjs
9352
+ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
9353
+ return function handleEvent(event) {
9354
+ originalEventHandler == null ? void 0 : originalEventHandler(event);
9355
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) {
9356
+ return ourEventHandler == null ? void 0 : ourEventHandler(event);
9357
+ }
9358
+ };
9359
+ }
9360
+
9361
+ // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.mjs
9362
+ import * as React36 from "react";
9363
+
9364
+ // ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
9365
+ import * as React35 from "react";
9366
+ var useLayoutEffect2 = (globalThis == null ? void 0 : globalThis.document) ? React35.useLayoutEffect : () => {
9367
+ };
9368
+
9369
+ // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.mjs
9370
+ var useReactId = React36[" useId ".trim().toString()] || (() => void 0);
9371
+ var count = 0;
9372
+ function useId(deterministicId) {
9373
+ const [id, setId] = React36.useState(useReactId());
9374
+ useLayoutEffect2(() => {
9375
+ if (!deterministicId) setId((reactId) => reactId != null ? reactId : String(count++));
9376
+ }, [deterministicId]);
9377
+ return deterministicId || (id ? `radix-${id}` : "");
9378
+ }
9379
+
9380
+ // ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
9381
+ import * as React37 from "react";
9382
+ import * as React210 from "react";
9383
+ var useInsertionEffect = React37[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
9384
+ function useControllableState({
9385
+ prop,
9386
+ defaultProp,
9387
+ onChange = () => {
9388
+ },
9389
+ caller
9390
+ }) {
9391
+ const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
9392
+ defaultProp,
9393
+ onChange
9394
+ });
9395
+ const isControlled = prop !== void 0;
9396
+ const value2 = isControlled ? prop : uncontrolledProp;
9397
+ if (true) {
9398
+ const isControlledRef = React37.useRef(prop !== void 0);
9399
+ React37.useEffect(() => {
9400
+ const wasControlled = isControlledRef.current;
9401
+ if (wasControlled !== isControlled) {
9402
+ const from = wasControlled ? "controlled" : "uncontrolled";
9403
+ const to = isControlled ? "controlled" : "uncontrolled";
9404
+ console.warn(
9405
+ `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
9406
+ );
9407
+ }
9408
+ isControlledRef.current = isControlled;
9409
+ }, [isControlled, caller]);
9410
+ }
9411
+ const setValue = React37.useCallback(
9412
+ (nextValue) => {
9413
+ var _a;
9414
+ if (isControlled) {
9415
+ const value22 = isFunction(nextValue) ? nextValue(prop) : nextValue;
9416
+ if (value22 !== prop) {
9417
+ (_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value22);
9418
+ }
9419
+ } else {
9420
+ setUncontrolledProp(nextValue);
9421
+ }
9422
+ },
9423
+ [isControlled, prop, setUncontrolledProp, onChangeRef]
9424
+ );
9425
+ return [value2, setValue];
9426
+ }
9427
+ function useUncontrolledState({
9428
+ defaultProp,
9429
+ onChange
9430
+ }) {
9431
+ const [value2, setValue] = React37.useState(defaultProp);
9432
+ const prevValueRef = React37.useRef(value2);
9433
+ const onChangeRef = React37.useRef(onChange);
9434
+ useInsertionEffect(() => {
9435
+ onChangeRef.current = onChange;
9436
+ }, [onChange]);
9437
+ React37.useEffect(() => {
9438
+ var _a;
9439
+ if (prevValueRef.current !== value2) {
9440
+ (_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, value2);
9441
+ prevValueRef.current = value2;
9442
+ }
9443
+ }, [value2, prevValueRef]);
9444
+ return [value2, setValue, onChangeRef];
9445
+ }
9446
+ function isFunction(value2) {
9447
+ return typeof value2 === "function";
9448
+ }
9449
+ var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
9450
+
9451
+ // ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.3_@types+react@19.1.2__@_048ea5800fbfacb7489e4b7d728b493c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
9452
+ import * as React42 from "react";
9453
+
9454
+ // ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.3_@types+react@19.1.2__@types+rea_43250ccbc78c27b15284efcf829a65d5/node_modules/@radix-ui/react-primitive/dist/index.mjs
9455
+ import * as React39 from "react";
9456
+ import * as ReactDOM from "react-dom";
9457
+
9458
+ // ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.mjs
9459
+ import * as React38 from "react";
9460
+ import { Fragment as Fragment2, jsx as jsx34 } from "react/jsx-runtime";
9461
+ // @__NO_SIDE_EFFECTS__
9462
+ function createSlot(ownerName) {
9463
+ const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
9464
+ const Slot22 = React38.forwardRef((props, forwardedRef) => {
9465
+ const _a = props, { children } = _a, slotProps = __objRest(_a, ["children"]);
9466
+ const childrenArray = React38.Children.toArray(children);
9467
+ const slottable = childrenArray.find(isSlottable);
9468
+ if (slottable) {
9469
+ const newElement = slottable.props.children;
9470
+ const newChildren = childrenArray.map((child) => {
9471
+ if (child === slottable) {
9472
+ if (React38.Children.count(newElement) > 1) return React38.Children.only(null);
9473
+ return React38.isValidElement(newElement) ? newElement.props.children : null;
9474
+ } else {
9475
+ return child;
9476
+ }
9477
+ });
9478
+ return /* @__PURE__ */ jsx34(SlotClone, __spreadProps(__spreadValues({}, slotProps), { ref: forwardedRef, children: React38.isValidElement(newElement) ? React38.cloneElement(newElement, void 0, newChildren) : null }));
9479
+ }
9480
+ return /* @__PURE__ */ jsx34(SlotClone, __spreadProps(__spreadValues({}, slotProps), { ref: forwardedRef, children }));
9481
+ });
9482
+ Slot22.displayName = `${ownerName}.Slot`;
9483
+ return Slot22;
9484
+ }
9485
+ var Slot = /* @__PURE__ */ createSlot("Slot");
9486
+ // @__NO_SIDE_EFFECTS__
9487
+ function createSlotClone(ownerName) {
9488
+ const SlotClone = React38.forwardRef((props, forwardedRef) => {
9489
+ const _a = props, { children } = _a, slotProps = __objRest(_a, ["children"]);
9490
+ if (React38.isValidElement(children)) {
9491
+ const childrenRef = getElementRef(children);
9492
+ const props2 = mergeProps(slotProps, children.props);
9493
+ if (children.type !== React38.Fragment) {
9494
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
9495
+ }
9496
+ return React38.cloneElement(children, props2);
9497
+ }
9498
+ return React38.Children.count(children) > 1 ? React38.Children.only(null) : null;
9499
+ });
9500
+ SlotClone.displayName = `${ownerName}.SlotClone`;
9501
+ return SlotClone;
9502
+ }
9503
+ var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
9504
+ // @__NO_SIDE_EFFECTS__
9505
+ function createSlottable(ownerName) {
9506
+ const Slottable2 = ({ children }) => {
9507
+ return /* @__PURE__ */ jsx34(Fragment2, { children });
9508
+ };
9509
+ Slottable2.displayName = `${ownerName}.Slottable`;
9510
+ Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
9511
+ return Slottable2;
9512
+ }
9513
+ function isSlottable(child) {
9514
+ return React38.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
9515
+ }
9516
+ function mergeProps(slotProps, childProps) {
9517
+ const overrideProps = __spreadValues({}, childProps);
9518
+ for (const propName in childProps) {
9519
+ const slotPropValue = slotProps[propName];
9520
+ const childPropValue = childProps[propName];
9521
+ const isHandler = /^on[A-Z]/.test(propName);
9522
+ if (isHandler) {
9523
+ if (slotPropValue && childPropValue) {
9524
+ overrideProps[propName] = (...args) => {
9525
+ const result = childPropValue(...args);
9526
+ slotPropValue(...args);
9527
+ return result;
9528
+ };
9529
+ } else if (slotPropValue) {
9530
+ overrideProps[propName] = slotPropValue;
9531
+ }
9532
+ } else if (propName === "style") {
9533
+ overrideProps[propName] = __spreadValues(__spreadValues({}, slotPropValue), childPropValue);
9534
+ } else if (propName === "className") {
9535
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
9536
+ }
9537
+ }
9538
+ return __spreadValues(__spreadValues({}, slotProps), overrideProps);
9539
+ }
9540
+ function getElementRef(element) {
9541
+ var _a, _b;
9542
+ let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
9543
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
9544
+ if (mayWarn) {
9545
+ return element.ref;
9546
+ }
9547
+ getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
9548
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
9549
+ if (mayWarn) {
9550
+ return element.props.ref;
9551
+ }
9552
+ return element.props.ref || element.ref;
9553
+ }
9554
+
9555
+ // ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.1.3_@types+react@19.1.2__@types+rea_43250ccbc78c27b15284efcf829a65d5/node_modules/@radix-ui/react-primitive/dist/index.mjs
9556
+ import { jsx as jsx35 } from "react/jsx-runtime";
9557
+ var NODES = [
9558
+ "a",
9559
+ "button",
9560
+ "div",
9561
+ "form",
9562
+ "h2",
9563
+ "h3",
9564
+ "img",
9565
+ "input",
9566
+ "label",
9567
+ "li",
9568
+ "nav",
9569
+ "ol",
9570
+ "p",
9571
+ "select",
9572
+ "span",
9573
+ "svg",
9574
+ "ul"
9575
+ ];
9576
+ var Primitive = NODES.reduce((primitive, node2) => {
9577
+ const Slot3 = createSlot(`Primitive.${node2}`);
9578
+ const Node4 = React39.forwardRef((props, forwardedRef) => {
9579
+ const _a = props, { asChild } = _a, primitiveProps = __objRest(_a, ["asChild"]);
9580
+ const Comp = asChild ? Slot3 : node2;
9581
+ if (typeof window !== "undefined") {
9582
+ window[Symbol.for("radix-ui")] = true;
9583
+ }
9584
+ return /* @__PURE__ */ jsx35(Comp, __spreadProps(__spreadValues({}, primitiveProps), { ref: forwardedRef }));
9585
+ });
9586
+ Node4.displayName = `Primitive.${node2}`;
9587
+ return __spreadProps(__spreadValues({}, primitive), { [node2]: Node4 });
9588
+ }, {});
9589
+ function dispatchDiscreteCustomEvent(target, event) {
9590
+ if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
9591
+ }
9592
+
9593
+ // ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
9594
+ import * as React40 from "react";
9595
+ function useCallbackRef(callback) {
9596
+ const callbackRef = React40.useRef(callback);
9597
+ React40.useEffect(() => {
9598
+ callbackRef.current = callback;
9599
+ });
9600
+ return React40.useMemo(() => (...args) => {
9601
+ var _a;
9602
+ return (_a = callbackRef.current) == null ? void 0 : _a.call(callbackRef, ...args);
9603
+ }, []);
9604
+ }
9605
+
9606
+ // ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
9607
+ import * as React41 from "react";
9608
+ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
9609
+ const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
9610
+ React41.useEffect(() => {
9611
+ const handleKeyDown = (event) => {
9612
+ if (event.key === "Escape") {
9613
+ onEscapeKeyDown(event);
9614
+ }
9615
+ };
9616
+ ownerDocument.addEventListener("keydown", handleKeyDown, { capture: true });
9617
+ return () => ownerDocument.removeEventListener("keydown", handleKeyDown, { capture: true });
9618
+ }, [onEscapeKeyDown, ownerDocument]);
9619
+ }
9620
+
9621
+ // ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.10_@types+react-dom@19.1.3_@types+react@19.1.2__@_048ea5800fbfacb7489e4b7d728b493c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
9241
9622
  import { jsx as jsx36 } from "react/jsx-runtime";
9623
+ var DISMISSABLE_LAYER_NAME = "DismissableLayer";
9624
+ var CONTEXT_UPDATE = "dismissableLayer.update";
9625
+ var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
9626
+ var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
9627
+ var originalBodyPointerEvents;
9628
+ var DismissableLayerContext = React42.createContext({
9629
+ layers: /* @__PURE__ */ new Set(),
9630
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
9631
+ branches: /* @__PURE__ */ new Set()
9632
+ });
9633
+ var DismissableLayer = React42.forwardRef(
9634
+ (props, forwardedRef) => {
9635
+ var _b;
9636
+ const _a = props, {
9637
+ disableOutsidePointerEvents = false,
9638
+ onEscapeKeyDown,
9639
+ onPointerDownOutside,
9640
+ onFocusOutside,
9641
+ onInteractOutside,
9642
+ onDismiss
9643
+ } = _a, layerProps = __objRest(_a, [
9644
+ "disableOutsidePointerEvents",
9645
+ "onEscapeKeyDown",
9646
+ "onPointerDownOutside",
9647
+ "onFocusOutside",
9648
+ "onInteractOutside",
9649
+ "onDismiss"
9650
+ ]);
9651
+ const context = React42.useContext(DismissableLayerContext);
9652
+ const [node2, setNode] = React42.useState(null);
9653
+ const ownerDocument = (_b = node2 == null ? void 0 : node2.ownerDocument) != null ? _b : globalThis == null ? void 0 : globalThis.document;
9654
+ const [, force] = React42.useState({});
9655
+ const composedRefs = useComposedRefs(forwardedRef, (node22) => setNode(node22));
9656
+ const layers = Array.from(context.layers);
9657
+ const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
9658
+ const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
9659
+ const index2 = node2 ? layers.indexOf(node2) : -1;
9660
+ const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
9661
+ const isPointerEventsEnabled = index2 >= highestLayerWithOutsidePointerEventsDisabledIndex;
9662
+ const pointerDownOutside = usePointerDownOutside((event) => {
9663
+ const target = event.target;
9664
+ const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
9665
+ if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
9666
+ onPointerDownOutside == null ? void 0 : onPointerDownOutside(event);
9667
+ onInteractOutside == null ? void 0 : onInteractOutside(event);
9668
+ if (!event.defaultPrevented) onDismiss == null ? void 0 : onDismiss();
9669
+ }, ownerDocument);
9670
+ const focusOutside = useFocusOutside((event) => {
9671
+ const target = event.target;
9672
+ const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));
9673
+ if (isFocusInBranch) return;
9674
+ onFocusOutside == null ? void 0 : onFocusOutside(event);
9675
+ onInteractOutside == null ? void 0 : onInteractOutside(event);
9676
+ if (!event.defaultPrevented) onDismiss == null ? void 0 : onDismiss();
9677
+ }, ownerDocument);
9678
+ useEscapeKeydown((event) => {
9679
+ const isHighestLayer = index2 === context.layers.size - 1;
9680
+ if (!isHighestLayer) return;
9681
+ onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(event);
9682
+ if (!event.defaultPrevented && onDismiss) {
9683
+ event.preventDefault();
9684
+ onDismiss();
9685
+ }
9686
+ }, ownerDocument);
9687
+ React42.useEffect(() => {
9688
+ if (!node2) return;
9689
+ if (disableOutsidePointerEvents) {
9690
+ if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
9691
+ originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
9692
+ ownerDocument.body.style.pointerEvents = "none";
9693
+ }
9694
+ context.layersWithOutsidePointerEventsDisabled.add(node2);
9695
+ }
9696
+ context.layers.add(node2);
9697
+ dispatchUpdate();
9698
+ return () => {
9699
+ if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {
9700
+ ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
9701
+ }
9702
+ };
9703
+ }, [node2, ownerDocument, disableOutsidePointerEvents, context]);
9704
+ React42.useEffect(() => {
9705
+ return () => {
9706
+ if (!node2) return;
9707
+ context.layers.delete(node2);
9708
+ context.layersWithOutsidePointerEventsDisabled.delete(node2);
9709
+ dispatchUpdate();
9710
+ };
9711
+ }, [node2, context]);
9712
+ React42.useEffect(() => {
9713
+ const handleUpdate = () => force({});
9714
+ document.addEventListener(CONTEXT_UPDATE, handleUpdate);
9715
+ return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
9716
+ }, []);
9717
+ return /* @__PURE__ */ jsx36(
9718
+ Primitive.div,
9719
+ __spreadProps(__spreadValues({}, layerProps), {
9720
+ ref: composedRefs,
9721
+ style: __spreadValues({
9722
+ pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0
9723
+ }, props.style),
9724
+ onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),
9725
+ onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),
9726
+ onPointerDownCapture: composeEventHandlers(
9727
+ props.onPointerDownCapture,
9728
+ pointerDownOutside.onPointerDownCapture
9729
+ )
9730
+ })
9731
+ );
9732
+ }
9733
+ );
9734
+ DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
9735
+ var BRANCH_NAME = "DismissableLayerBranch";
9736
+ var DismissableLayerBranch = React42.forwardRef((props, forwardedRef) => {
9737
+ const context = React42.useContext(DismissableLayerContext);
9738
+ const ref2 = React42.useRef(null);
9739
+ const composedRefs = useComposedRefs(forwardedRef, ref2);
9740
+ React42.useEffect(() => {
9741
+ const node2 = ref2.current;
9742
+ if (node2) {
9743
+ context.branches.add(node2);
9744
+ return () => {
9745
+ context.branches.delete(node2);
9746
+ };
9747
+ }
9748
+ }, [context.branches]);
9749
+ return /* @__PURE__ */ jsx36(Primitive.div, __spreadProps(__spreadValues({}, props), { ref: composedRefs }));
9750
+ });
9751
+ DismissableLayerBranch.displayName = BRANCH_NAME;
9752
+ function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
9753
+ const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
9754
+ const isPointerInsideReactTreeRef = React42.useRef(false);
9755
+ const handleClickRef = React42.useRef(() => {
9756
+ });
9757
+ React42.useEffect(() => {
9758
+ const handlePointerDown = (event) => {
9759
+ if (event.target && !isPointerInsideReactTreeRef.current) {
9760
+ let handleAndDispatchPointerDownOutsideEvent2 = function() {
9761
+ handleAndDispatchCustomEvent(
9762
+ POINTER_DOWN_OUTSIDE,
9763
+ handlePointerDownOutside,
9764
+ eventDetail,
9765
+ { discrete: true }
9766
+ );
9767
+ };
9768
+ var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;
9769
+ const eventDetail = { originalEvent: event };
9770
+ if (event.pointerType === "touch") {
9771
+ ownerDocument.removeEventListener("click", handleClickRef.current);
9772
+ handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;
9773
+ ownerDocument.addEventListener("click", handleClickRef.current, { once: true });
9774
+ } else {
9775
+ handleAndDispatchPointerDownOutsideEvent2();
9776
+ }
9777
+ } else {
9778
+ ownerDocument.removeEventListener("click", handleClickRef.current);
9779
+ }
9780
+ isPointerInsideReactTreeRef.current = false;
9781
+ };
9782
+ const timerId = window.setTimeout(() => {
9783
+ ownerDocument.addEventListener("pointerdown", handlePointerDown);
9784
+ }, 0);
9785
+ return () => {
9786
+ window.clearTimeout(timerId);
9787
+ ownerDocument.removeEventListener("pointerdown", handlePointerDown);
9788
+ ownerDocument.removeEventListener("click", handleClickRef.current);
9789
+ };
9790
+ }, [ownerDocument, handlePointerDownOutside]);
9791
+ return {
9792
+ // ensures we check React component tree (not just DOM tree)
9793
+ onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true
9794
+ };
9795
+ }
9796
+ function useFocusOutside(onFocusOutside, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
9797
+ const handleFocusOutside = useCallbackRef(onFocusOutside);
9798
+ const isFocusInsideReactTreeRef = React42.useRef(false);
9799
+ React42.useEffect(() => {
9800
+ const handleFocus = (event) => {
9801
+ if (event.target && !isFocusInsideReactTreeRef.current) {
9802
+ const eventDetail = { originalEvent: event };
9803
+ handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
9804
+ discrete: false
9805
+ });
9806
+ }
9807
+ };
9808
+ ownerDocument.addEventListener("focusin", handleFocus);
9809
+ return () => ownerDocument.removeEventListener("focusin", handleFocus);
9810
+ }, [ownerDocument, handleFocusOutside]);
9811
+ return {
9812
+ onFocusCapture: () => isFocusInsideReactTreeRef.current = true,
9813
+ onBlurCapture: () => isFocusInsideReactTreeRef.current = false
9814
+ };
9815
+ }
9816
+ function dispatchUpdate() {
9817
+ const event = new CustomEvent(CONTEXT_UPDATE);
9818
+ document.dispatchEvent(event);
9819
+ }
9820
+ function handleAndDispatchCustomEvent(name2, handler2, detail, { discrete }) {
9821
+ const target = detail.originalEvent.target;
9822
+ const event = new CustomEvent(name2, { bubbles: false, cancelable: true, detail });
9823
+ if (handler2) target.addEventListener(name2, handler2, { once: true });
9824
+ if (discrete) {
9825
+ dispatchDiscreteCustomEvent(target, event);
9826
+ } else {
9827
+ target.dispatchEvent(event);
9828
+ }
9829
+ }
9830
+
9831
+ // ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.1.3_@types+react@19.1.2__@types+r_1ff7b04b7c975087a2da2b1568ac976e/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
9832
+ import * as React43 from "react";
9833
+ import { jsx as jsx37 } from "react/jsx-runtime";
9834
+ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
9835
+ var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
9836
+ var EVENT_OPTIONS = { bubbles: false, cancelable: true };
9837
+ var FOCUS_SCOPE_NAME = "FocusScope";
9838
+ var FocusScope = React43.forwardRef((props, forwardedRef) => {
9839
+ const _a = props, {
9840
+ loop = false,
9841
+ trapped = false,
9842
+ onMountAutoFocus: onMountAutoFocusProp,
9843
+ onUnmountAutoFocus: onUnmountAutoFocusProp
9844
+ } = _a, scopeProps = __objRest(_a, [
9845
+ "loop",
9846
+ "trapped",
9847
+ "onMountAutoFocus",
9848
+ "onUnmountAutoFocus"
9849
+ ]);
9850
+ const [container, setContainer] = React43.useState(null);
9851
+ const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
9852
+ const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
9853
+ const lastFocusedElementRef = React43.useRef(null);
9854
+ const composedRefs = useComposedRefs(forwardedRef, (node2) => setContainer(node2));
9855
+ const focusScope = React43.useRef({
9856
+ paused: false,
9857
+ pause() {
9858
+ this.paused = true;
9859
+ },
9860
+ resume() {
9861
+ this.paused = false;
9862
+ }
9863
+ }).current;
9864
+ React43.useEffect(() => {
9865
+ if (trapped) {
9866
+ let handleFocusIn2 = function(event) {
9867
+ if (focusScope.paused || !container) return;
9868
+ const target = event.target;
9869
+ if (container.contains(target)) {
9870
+ lastFocusedElementRef.current = target;
9871
+ } else {
9872
+ focus(lastFocusedElementRef.current, { select: true });
9873
+ }
9874
+ }, handleFocusOut2 = function(event) {
9875
+ if (focusScope.paused || !container) return;
9876
+ const relatedTarget = event.relatedTarget;
9877
+ if (relatedTarget === null) return;
9878
+ if (!container.contains(relatedTarget)) {
9879
+ focus(lastFocusedElementRef.current, { select: true });
9880
+ }
9881
+ }, handleMutations2 = function(mutations) {
9882
+ const focusedElement = document.activeElement;
9883
+ if (focusedElement !== document.body) return;
9884
+ for (const mutation of mutations) {
9885
+ if (mutation.removedNodes.length > 0) focus(container);
9886
+ }
9887
+ };
9888
+ var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;
9889
+ document.addEventListener("focusin", handleFocusIn2);
9890
+ document.addEventListener("focusout", handleFocusOut2);
9891
+ const mutationObserver = new MutationObserver(handleMutations2);
9892
+ if (container) mutationObserver.observe(container, { childList: true, subtree: true });
9893
+ return () => {
9894
+ document.removeEventListener("focusin", handleFocusIn2);
9895
+ document.removeEventListener("focusout", handleFocusOut2);
9896
+ mutationObserver.disconnect();
9897
+ };
9898
+ }
9899
+ }, [trapped, container, focusScope.paused]);
9900
+ React43.useEffect(() => {
9901
+ if (container) {
9902
+ focusScopesStack.add(focusScope);
9903
+ const previouslyFocusedElement = document.activeElement;
9904
+ const hasFocusedCandidate = container.contains(previouslyFocusedElement);
9905
+ if (!hasFocusedCandidate) {
9906
+ const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
9907
+ container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
9908
+ container.dispatchEvent(mountEvent);
9909
+ if (!mountEvent.defaultPrevented) {
9910
+ focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
9911
+ if (document.activeElement === previouslyFocusedElement) {
9912
+ focus(container);
9913
+ }
9914
+ }
9915
+ }
9916
+ return () => {
9917
+ container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
9918
+ setTimeout(() => {
9919
+ const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
9920
+ container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
9921
+ container.dispatchEvent(unmountEvent);
9922
+ if (!unmountEvent.defaultPrevented) {
9923
+ focus(previouslyFocusedElement != null ? previouslyFocusedElement : document.body, { select: true });
9924
+ }
9925
+ container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
9926
+ focusScopesStack.remove(focusScope);
9927
+ }, 0);
9928
+ };
9929
+ }
9930
+ }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
9931
+ const handleKeyDown = React43.useCallback(
9932
+ (event) => {
9933
+ if (!loop && !trapped) return;
9934
+ if (focusScope.paused) return;
9935
+ const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
9936
+ const focusedElement = document.activeElement;
9937
+ if (isTabKey && focusedElement) {
9938
+ const container2 = event.currentTarget;
9939
+ const [first, last] = getTabbableEdges(container2);
9940
+ const hasTabbableElementsInside = first && last;
9941
+ if (!hasTabbableElementsInside) {
9942
+ if (focusedElement === container2) event.preventDefault();
9943
+ } else {
9944
+ if (!event.shiftKey && focusedElement === last) {
9945
+ event.preventDefault();
9946
+ if (loop) focus(first, { select: true });
9947
+ } else if (event.shiftKey && focusedElement === first) {
9948
+ event.preventDefault();
9949
+ if (loop) focus(last, { select: true });
9950
+ }
9951
+ }
9952
+ }
9953
+ },
9954
+ [loop, trapped, focusScope.paused]
9955
+ );
9956
+ return /* @__PURE__ */ jsx37(Primitive.div, __spreadProps(__spreadValues({ tabIndex: -1 }, scopeProps), { ref: composedRefs, onKeyDown: handleKeyDown }));
9957
+ });
9958
+ FocusScope.displayName = FOCUS_SCOPE_NAME;
9959
+ function focusFirst(candidates, { select = false } = {}) {
9960
+ const previouslyFocusedElement = document.activeElement;
9961
+ for (const candidate of candidates) {
9962
+ focus(candidate, { select });
9963
+ if (document.activeElement !== previouslyFocusedElement) return;
9964
+ }
9965
+ }
9966
+ function getTabbableEdges(container) {
9967
+ const candidates = getTabbableCandidates(container);
9968
+ const first = findVisible(candidates, container);
9969
+ const last = findVisible(candidates.reverse(), container);
9970
+ return [first, last];
9971
+ }
9972
+ function getTabbableCandidates(container) {
9973
+ const nodes = [];
9974
+ const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
9975
+ acceptNode: (node2) => {
9976
+ const isHiddenInput = node2.tagName === "INPUT" && node2.type === "hidden";
9977
+ if (node2.disabled || node2.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
9978
+ return node2.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
9979
+ }
9980
+ });
9981
+ while (walker.nextNode()) nodes.push(walker.currentNode);
9982
+ return nodes;
9983
+ }
9984
+ function findVisible(elements, container) {
9985
+ for (const element of elements) {
9986
+ if (!isHidden(element, { upTo: container })) return element;
9987
+ }
9988
+ }
9989
+ function isHidden(node2, { upTo }) {
9990
+ if (getComputedStyle(node2).visibility === "hidden") return true;
9991
+ while (node2) {
9992
+ if (upTo !== void 0 && node2 === upTo) return false;
9993
+ if (getComputedStyle(node2).display === "none") return true;
9994
+ node2 = node2.parentElement;
9995
+ }
9996
+ return false;
9997
+ }
9998
+ function isSelectableInput(element) {
9999
+ return element instanceof HTMLInputElement && "select" in element;
10000
+ }
10001
+ function focus(element, { select = false } = {}) {
10002
+ if (element && element.focus) {
10003
+ const previouslyFocusedElement = document.activeElement;
10004
+ element.focus({ preventScroll: true });
10005
+ if (element !== previouslyFocusedElement && isSelectableInput(element) && select)
10006
+ element.select();
10007
+ }
10008
+ }
10009
+ var focusScopesStack = createFocusScopesStack();
10010
+ function createFocusScopesStack() {
10011
+ let stack = [];
10012
+ return {
10013
+ add(focusScope) {
10014
+ const activeFocusScope = stack[0];
10015
+ if (focusScope !== activeFocusScope) {
10016
+ activeFocusScope == null ? void 0 : activeFocusScope.pause();
10017
+ }
10018
+ stack = arrayRemove(stack, focusScope);
10019
+ stack.unshift(focusScope);
10020
+ },
10021
+ remove(focusScope) {
10022
+ var _a;
10023
+ stack = arrayRemove(stack, focusScope);
10024
+ (_a = stack[0]) == null ? void 0 : _a.resume();
10025
+ }
10026
+ };
10027
+ }
10028
+ function arrayRemove(array, item) {
10029
+ const updatedArray = [...array];
10030
+ const index2 = updatedArray.indexOf(item);
10031
+ if (index2 !== -1) {
10032
+ updatedArray.splice(index2, 1);
10033
+ }
10034
+ return updatedArray;
10035
+ }
10036
+ function removeLinks(items) {
10037
+ return items.filter((item) => item.tagName !== "A");
10038
+ }
10039
+
10040
+ // ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.1.3_@types+react@19.1.2__@types+react@_a0745de0839b0b019298ec068509a840/node_modules/@radix-ui/react-portal/dist/index.mjs
10041
+ import * as React44 from "react";
10042
+ import ReactDOM2 from "react-dom";
10043
+ import { jsx as jsx38 } from "react/jsx-runtime";
10044
+ var PORTAL_NAME = "Portal";
10045
+ var Portal = React44.forwardRef((props, forwardedRef) => {
10046
+ var _b;
10047
+ const _a = props, { container: containerProp } = _a, portalProps = __objRest(_a, ["container"]);
10048
+ const [mounted, setMounted] = React44.useState(false);
10049
+ useLayoutEffect2(() => setMounted(true), []);
10050
+ const container = containerProp || mounted && ((_b = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : _b.body);
10051
+ return container ? ReactDOM2.createPortal(/* @__PURE__ */ jsx38(Primitive.div, __spreadProps(__spreadValues({}, portalProps), { ref: forwardedRef })), container) : null;
10052
+ });
10053
+ Portal.displayName = PORTAL_NAME;
10054
+
10055
+ // ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.4_@types+react-dom@19.1.3_@types+react@19.1.2__@types+reac_dbbe976722e7c3e02883ea31c3bbbf14/node_modules/@radix-ui/react-presence/dist/index.mjs
10056
+ import * as React211 from "react";
10057
+ import * as React45 from "react";
10058
+ function useStateMachine(initialState, machine) {
10059
+ return React45.useReducer((state, event) => {
10060
+ const nextState = machine[state][event];
10061
+ return nextState != null ? nextState : state;
10062
+ }, initialState);
10063
+ }
10064
+ var Presence = (props) => {
10065
+ const { present, children } = props;
10066
+ const presence = usePresence(present);
10067
+ const child = typeof children === "function" ? children({ present: presence.isPresent }) : React211.Children.only(children);
10068
+ const ref2 = useComposedRefs(presence.ref, getElementRef2(child));
10069
+ const forceMount = typeof children === "function";
10070
+ return forceMount || presence.isPresent ? React211.cloneElement(child, { ref: ref2 }) : null;
10071
+ };
10072
+ Presence.displayName = "Presence";
10073
+ function usePresence(present) {
10074
+ const [node2, setNode] = React211.useState();
10075
+ const stylesRef = React211.useRef(null);
10076
+ const prevPresentRef = React211.useRef(present);
10077
+ const prevAnimationNameRef = React211.useRef("none");
10078
+ const initialState = present ? "mounted" : "unmounted";
10079
+ const [state, send] = useStateMachine(initialState, {
10080
+ mounted: {
10081
+ UNMOUNT: "unmounted",
10082
+ ANIMATION_OUT: "unmountSuspended"
10083
+ },
10084
+ unmountSuspended: {
10085
+ MOUNT: "mounted",
10086
+ ANIMATION_END: "unmounted"
10087
+ },
10088
+ unmounted: {
10089
+ MOUNT: "mounted"
10090
+ }
10091
+ });
10092
+ React211.useEffect(() => {
10093
+ const currentAnimationName = getAnimationName(stylesRef.current);
10094
+ prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
10095
+ }, [state]);
10096
+ useLayoutEffect2(() => {
10097
+ const styles = stylesRef.current;
10098
+ const wasPresent = prevPresentRef.current;
10099
+ const hasPresentChanged = wasPresent !== present;
10100
+ if (hasPresentChanged) {
10101
+ const prevAnimationName = prevAnimationNameRef.current;
10102
+ const currentAnimationName = getAnimationName(styles);
10103
+ if (present) {
10104
+ send("MOUNT");
10105
+ } else if (currentAnimationName === "none" || (styles == null ? void 0 : styles.display) === "none") {
10106
+ send("UNMOUNT");
10107
+ } else {
10108
+ const isAnimating = prevAnimationName !== currentAnimationName;
10109
+ if (wasPresent && isAnimating) {
10110
+ send("ANIMATION_OUT");
10111
+ } else {
10112
+ send("UNMOUNT");
10113
+ }
10114
+ }
10115
+ prevPresentRef.current = present;
10116
+ }
10117
+ }, [present, send]);
10118
+ useLayoutEffect2(() => {
10119
+ var _a;
10120
+ if (node2) {
10121
+ let timeoutId;
10122
+ const ownerWindow = (_a = node2.ownerDocument.defaultView) != null ? _a : window;
10123
+ const handleAnimationEnd = (event) => {
10124
+ const currentAnimationName = getAnimationName(stylesRef.current);
10125
+ const isCurrentAnimation = currentAnimationName.includes(event.animationName);
10126
+ if (event.target === node2 && isCurrentAnimation) {
10127
+ send("ANIMATION_END");
10128
+ if (!prevPresentRef.current) {
10129
+ const currentFillMode = node2.style.animationFillMode;
10130
+ node2.style.animationFillMode = "forwards";
10131
+ timeoutId = ownerWindow.setTimeout(() => {
10132
+ if (node2.style.animationFillMode === "forwards") {
10133
+ node2.style.animationFillMode = currentFillMode;
10134
+ }
10135
+ });
10136
+ }
10137
+ }
10138
+ };
10139
+ const handleAnimationStart = (event) => {
10140
+ if (event.target === node2) {
10141
+ prevAnimationNameRef.current = getAnimationName(stylesRef.current);
10142
+ }
10143
+ };
10144
+ node2.addEventListener("animationstart", handleAnimationStart);
10145
+ node2.addEventListener("animationcancel", handleAnimationEnd);
10146
+ node2.addEventListener("animationend", handleAnimationEnd);
10147
+ return () => {
10148
+ ownerWindow.clearTimeout(timeoutId);
10149
+ node2.removeEventListener("animationstart", handleAnimationStart);
10150
+ node2.removeEventListener("animationcancel", handleAnimationEnd);
10151
+ node2.removeEventListener("animationend", handleAnimationEnd);
10152
+ };
10153
+ } else {
10154
+ send("ANIMATION_END");
10155
+ }
10156
+ }, [node2, send]);
10157
+ return {
10158
+ isPresent: ["mounted", "unmountSuspended"].includes(state),
10159
+ ref: React211.useCallback((node22) => {
10160
+ stylesRef.current = node22 ? getComputedStyle(node22) : null;
10161
+ setNode(node22);
10162
+ }, [])
10163
+ };
10164
+ }
10165
+ function getAnimationName(styles) {
10166
+ return (styles == null ? void 0 : styles.animationName) || "none";
10167
+ }
10168
+ function getElementRef2(element) {
10169
+ var _a, _b;
10170
+ let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
10171
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
10172
+ if (mayWarn) {
10173
+ return element.ref;
10174
+ }
10175
+ getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
10176
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
10177
+ if (mayWarn) {
10178
+ return element.props.ref;
10179
+ }
10180
+ return element.props.ref || element.ref;
10181
+ }
9242
10182
 
9243
- // ../lib/src/utils.ts
9244
- import { clsx } from "clsx";
9245
- import { twMerge } from "tailwind-merge";
9246
- function cn(...inputs) {
9247
- return twMerge(clsx(inputs));
10183
+ // ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.2_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
10184
+ import * as React46 from "react";
10185
+ var count2 = 0;
10186
+ function useFocusGuards() {
10187
+ React46.useEffect(() => {
10188
+ var _a, _b;
10189
+ const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
10190
+ document.body.insertAdjacentElement("afterbegin", (_a = edgeGuards[0]) != null ? _a : createFocusGuard());
10191
+ document.body.insertAdjacentElement("beforeend", (_b = edgeGuards[1]) != null ? _b : createFocusGuard());
10192
+ count2++;
10193
+ return () => {
10194
+ if (count2 === 1) {
10195
+ document.querySelectorAll("[data-radix-focus-guard]").forEach((node2) => node2.remove());
10196
+ }
10197
+ count2--;
10198
+ };
10199
+ }, []);
10200
+ }
10201
+ function createFocusGuard() {
10202
+ const element = document.createElement("span");
10203
+ element.setAttribute("data-radix-focus-guard", "");
10204
+ element.tabIndex = 0;
10205
+ element.style.outline = "none";
10206
+ element.style.opacity = "0";
10207
+ element.style.position = "fixed";
10208
+ element.style.pointerEvents = "none";
10209
+ return element;
10210
+ }
10211
+
10212
+ // ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
10213
+ var __assign = function() {
10214
+ __assign = Object.assign || function __assign2(t) {
10215
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
10216
+ s = arguments[i];
10217
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
10218
+ }
10219
+ return t;
10220
+ };
10221
+ return __assign.apply(this, arguments);
10222
+ };
10223
+ function __rest(s, e) {
10224
+ var t = {};
10225
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
10226
+ t[p] = s[p];
10227
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
10228
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
10229
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
10230
+ t[p[i]] = s[p[i]];
10231
+ }
10232
+ return t;
10233
+ }
10234
+ function __spreadArray(to, from, pack) {
10235
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
10236
+ if (ar || !(i in from)) {
10237
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
10238
+ ar[i] = from[i];
10239
+ }
10240
+ }
10241
+ return to.concat(ar || Array.prototype.slice.call(from));
10242
+ }
10243
+
10244
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.js
10245
+ import * as React53 from "react";
10246
+
10247
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/UI.js
10248
+ import * as React49 from "react";
10249
+
10250
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
10251
+ var zeroRightClassName = "right-scroll-bar-position";
10252
+ var fullWidthClassName = "width-before-scroll-bar";
10253
+ var noScrollbarsClassName = "with-scroll-bars-hidden";
10254
+ var removedBarSizeVariable = "--removed-body-scroll-bar-size";
10255
+
10256
+ // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.2_react@19.1.0/node_modules/use-callback-ref/dist/es2015/assignRef.js
10257
+ function assignRef(ref2, value2) {
10258
+ if (typeof ref2 === "function") {
10259
+ ref2(value2);
10260
+ } else if (ref2) {
10261
+ ref2.current = value2;
10262
+ }
10263
+ return ref2;
10264
+ }
10265
+
10266
+ // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.2_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useRef.js
10267
+ import { useState as useState7 } from "react";
10268
+ function useCallbackRef2(initialValue, callback) {
10269
+ var ref2 = useState7(function() {
10270
+ return {
10271
+ // value
10272
+ value: initialValue,
10273
+ // last callback
10274
+ callback,
10275
+ // "memoized" public interface
10276
+ facade: {
10277
+ get current() {
10278
+ return ref2.value;
10279
+ },
10280
+ set current(value2) {
10281
+ var last = ref2.value;
10282
+ if (last !== value2) {
10283
+ ref2.value = value2;
10284
+ ref2.callback(value2, last);
10285
+ }
10286
+ }
10287
+ }
10288
+ };
10289
+ })[0];
10290
+ ref2.callback = callback;
10291
+ return ref2.facade;
10292
+ }
10293
+
10294
+ // ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.1.2_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
10295
+ import * as React47 from "react";
10296
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React47.useLayoutEffect : React47.useEffect;
10297
+ var currentValues = /* @__PURE__ */ new WeakMap();
10298
+ function useMergeRefs(refs, defaultValue) {
10299
+ var callbackRef = useCallbackRef2(defaultValue || null, function(newValue) {
10300
+ return refs.forEach(function(ref2) {
10301
+ return assignRef(ref2, newValue);
10302
+ });
10303
+ });
10304
+ useIsomorphicLayoutEffect(function() {
10305
+ var oldValue = currentValues.get(callbackRef);
10306
+ if (oldValue) {
10307
+ var prevRefs_1 = new Set(oldValue);
10308
+ var nextRefs_1 = new Set(refs);
10309
+ var current_1 = callbackRef.current;
10310
+ prevRefs_1.forEach(function(ref2) {
10311
+ if (!nextRefs_1.has(ref2)) {
10312
+ assignRef(ref2, null);
10313
+ }
10314
+ });
10315
+ nextRefs_1.forEach(function(ref2) {
10316
+ if (!prevRefs_1.has(ref2)) {
10317
+ assignRef(ref2, current_1);
10318
+ }
10319
+ });
10320
+ }
10321
+ currentValues.set(callbackRef, refs);
10322
+ }, [refs]);
10323
+ return callbackRef;
10324
+ }
10325
+
10326
+ // ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.1.2_react@19.1.0/node_modules/use-sidecar/dist/es2015/medium.js
10327
+ function ItoI(a) {
10328
+ return a;
10329
+ }
10330
+ function innerCreateMedium(defaults, middleware) {
10331
+ if (middleware === void 0) {
10332
+ middleware = ItoI;
10333
+ }
10334
+ var buffer = [];
10335
+ var assigned = false;
10336
+ var medium = {
10337
+ read: function() {
10338
+ if (assigned) {
10339
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
10340
+ }
10341
+ if (buffer.length) {
10342
+ return buffer[buffer.length - 1];
10343
+ }
10344
+ return defaults;
10345
+ },
10346
+ useMedium: function(data2) {
10347
+ var item = middleware(data2, assigned);
10348
+ buffer.push(item);
10349
+ return function() {
10350
+ buffer = buffer.filter(function(x) {
10351
+ return x !== item;
10352
+ });
10353
+ };
10354
+ },
10355
+ assignSyncMedium: function(cb) {
10356
+ assigned = true;
10357
+ while (buffer.length) {
10358
+ var cbs = buffer;
10359
+ buffer = [];
10360
+ cbs.forEach(cb);
10361
+ }
10362
+ buffer = {
10363
+ push: function(x) {
10364
+ return cb(x);
10365
+ },
10366
+ filter: function() {
10367
+ return buffer;
10368
+ }
10369
+ };
10370
+ },
10371
+ assignMedium: function(cb) {
10372
+ assigned = true;
10373
+ var pendingQueue = [];
10374
+ if (buffer.length) {
10375
+ var cbs = buffer;
10376
+ buffer = [];
10377
+ cbs.forEach(cb);
10378
+ pendingQueue = buffer;
10379
+ }
10380
+ var executeQueue = function() {
10381
+ var cbs2 = pendingQueue;
10382
+ pendingQueue = [];
10383
+ cbs2.forEach(cb);
10384
+ };
10385
+ var cycle = function() {
10386
+ return Promise.resolve().then(executeQueue);
10387
+ };
10388
+ cycle();
10389
+ buffer = {
10390
+ push: function(x) {
10391
+ pendingQueue.push(x);
10392
+ cycle();
10393
+ },
10394
+ filter: function(filter) {
10395
+ pendingQueue = pendingQueue.filter(filter);
10396
+ return buffer;
10397
+ }
10398
+ };
10399
+ }
10400
+ };
10401
+ return medium;
10402
+ }
10403
+ function createSidecarMedium(options) {
10404
+ if (options === void 0) {
10405
+ options = {};
10406
+ }
10407
+ var medium = innerCreateMedium(null);
10408
+ medium.options = __assign({ async: true, ssr: false }, options);
10409
+ return medium;
10410
+ }
10411
+
10412
+ // ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.1.2_react@19.1.0/node_modules/use-sidecar/dist/es2015/exports.js
10413
+ import * as React48 from "react";
10414
+ var SideCar = function(_a) {
10415
+ var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
10416
+ if (!sideCar) {
10417
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
10418
+ }
10419
+ var Target = sideCar.read();
10420
+ if (!Target) {
10421
+ throw new Error("Sidecar medium not found");
10422
+ }
10423
+ return React48.createElement(Target, __assign({}, rest));
10424
+ };
10425
+ SideCar.isSideCarExport = true;
10426
+ function exportSidecar(medium, exported) {
10427
+ medium.useMedium(exported);
10428
+ return SideCar;
10429
+ }
10430
+
10431
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/medium.js
10432
+ var effectCar = createSidecarMedium();
10433
+
10434
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/UI.js
10435
+ var nothing = function() {
10436
+ return;
10437
+ };
10438
+ var RemoveScroll = React49.forwardRef(function(props, parentRef) {
10439
+ var ref2 = React49.useRef(null);
10440
+ var _a = React49.useState({
10441
+ onScrollCapture: nothing,
10442
+ onWheelCapture: nothing,
10443
+ onTouchMoveCapture: nothing
10444
+ }), callbacks = _a[0], setCallbacks = _a[1];
10445
+ var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
10446
+ var SideCar2 = sideCar;
10447
+ var containerRef = useMergeRefs([ref2, parentRef]);
10448
+ var containerProps = __assign(__assign({}, rest), callbacks);
10449
+ return React49.createElement(
10450
+ React49.Fragment,
10451
+ null,
10452
+ enabled && React49.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref2, gapMode }),
10453
+ forwardProps ? React49.cloneElement(React49.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React49.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
10454
+ );
10455
+ });
10456
+ RemoveScroll.defaultProps = {
10457
+ enabled: true,
10458
+ removeScrollBar: true,
10459
+ inert: false
10460
+ };
10461
+ RemoveScroll.classNames = {
10462
+ fullWidth: fullWidthClassName,
10463
+ zeroRight: zeroRightClassName
10464
+ };
10465
+
10466
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
10467
+ import * as React52 from "react";
10468
+
10469
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js
10470
+ import * as React51 from "react";
10471
+
10472
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.2_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.js
10473
+ import * as React50 from "react";
10474
+
10475
+ // ../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
10476
+ var currentNonce;
10477
+ var getNonce = function() {
10478
+ if (currentNonce) {
10479
+ return currentNonce;
10480
+ }
10481
+ if (typeof __webpack_nonce__ !== "undefined") {
10482
+ return __webpack_nonce__;
10483
+ }
10484
+ return void 0;
10485
+ };
10486
+
10487
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.2_react@19.1.0/node_modules/react-style-singleton/dist/es2015/singleton.js
10488
+ function makeStyleTag() {
10489
+ if (!document)
10490
+ return null;
10491
+ var tag = document.createElement("style");
10492
+ tag.type = "text/css";
10493
+ var nonce = getNonce();
10494
+ if (nonce) {
10495
+ tag.setAttribute("nonce", nonce);
10496
+ }
10497
+ return tag;
10498
+ }
10499
+ function injectStyles(tag, css) {
10500
+ if (tag.styleSheet) {
10501
+ tag.styleSheet.cssText = css;
10502
+ } else {
10503
+ tag.appendChild(document.createTextNode(css));
10504
+ }
10505
+ }
10506
+ function insertStyleTag(tag) {
10507
+ var head = document.head || document.getElementsByTagName("head")[0];
10508
+ head.appendChild(tag);
10509
+ }
10510
+ var stylesheetSingleton = function() {
10511
+ var counter = 0;
10512
+ var stylesheet = null;
10513
+ return {
10514
+ add: function(style) {
10515
+ if (counter == 0) {
10516
+ if (stylesheet = makeStyleTag()) {
10517
+ injectStyles(stylesheet, style);
10518
+ insertStyleTag(stylesheet);
10519
+ }
10520
+ }
10521
+ counter++;
10522
+ },
10523
+ remove: function() {
10524
+ counter--;
10525
+ if (!counter && stylesheet) {
10526
+ stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
10527
+ stylesheet = null;
10528
+ }
10529
+ }
10530
+ };
10531
+ };
10532
+
10533
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.2_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.js
10534
+ var styleHookSingleton = function() {
10535
+ var sheet = stylesheetSingleton();
10536
+ return function(styles, isDynamic) {
10537
+ React50.useEffect(function() {
10538
+ sheet.add(styles);
10539
+ return function() {
10540
+ sheet.remove();
10541
+ };
10542
+ }, [styles && isDynamic]);
10543
+ };
10544
+ };
10545
+
10546
+ // ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.1.2_react@19.1.0/node_modules/react-style-singleton/dist/es2015/component.js
10547
+ var styleSingleton = function() {
10548
+ var useStyle = styleHookSingleton();
10549
+ var Sheet = function(_a) {
10550
+ var styles = _a.styles, dynamic = _a.dynamic;
10551
+ useStyle(styles, dynamic);
10552
+ return null;
10553
+ };
10554
+ return Sheet;
10555
+ };
10556
+
10557
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
10558
+ var zeroGap = {
10559
+ left: 0,
10560
+ top: 0,
10561
+ right: 0,
10562
+ gap: 0
10563
+ };
10564
+ var parse = function(x) {
10565
+ return parseInt(x || "", 10) || 0;
10566
+ };
10567
+ var getOffset = function(gapMode) {
10568
+ var cs = window.getComputedStyle(document.body);
10569
+ var left = cs[gapMode === "padding" ? "paddingLeft" : "marginLeft"];
10570
+ var top = cs[gapMode === "padding" ? "paddingTop" : "marginTop"];
10571
+ var right = cs[gapMode === "padding" ? "paddingRight" : "marginRight"];
10572
+ return [parse(left), parse(top), parse(right)];
10573
+ };
10574
+ var getGapWidth = function(gapMode) {
10575
+ if (gapMode === void 0) {
10576
+ gapMode = "margin";
10577
+ }
10578
+ if (typeof window === "undefined") {
10579
+ return zeroGap;
10580
+ }
10581
+ var offsets = getOffset(gapMode);
10582
+ var documentWidth = document.documentElement.clientWidth;
10583
+ var windowWidth = window.innerWidth;
10584
+ return {
10585
+ left: offsets[0],
10586
+ top: offsets[1],
10587
+ right: offsets[2],
10588
+ gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0])
10589
+ };
10590
+ };
10591
+
10592
+ // ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js
10593
+ var Style = styleSingleton();
10594
+ var lockAttribute = "data-scroll-locked";
10595
+ var getStyles = function(_a, allowRelative, gapMode, important) {
10596
+ var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
10597
+ if (gapMode === void 0) {
10598
+ gapMode = "margin";
10599
+ }
10600
+ return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
10601
+ allowRelative && "position: relative ".concat(important, ";"),
10602
+ gapMode === "margin" && "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
10603
+ gapMode === "padding" && "padding-right: ".concat(gap, "px ").concat(important, ";")
10604
+ ].filter(Boolean).join(""), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
10605
+ };
10606
+ var getCurrentUseCounter = function() {
10607
+ var counter = parseInt(document.body.getAttribute(lockAttribute) || "0", 10);
10608
+ return isFinite(counter) ? counter : 0;
10609
+ };
10610
+ var useLockAttribute = function() {
10611
+ React51.useEffect(function() {
10612
+ document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
10613
+ return function() {
10614
+ var newCounter = getCurrentUseCounter() - 1;
10615
+ if (newCounter <= 0) {
10616
+ document.body.removeAttribute(lockAttribute);
10617
+ } else {
10618
+ document.body.setAttribute(lockAttribute, newCounter.toString());
10619
+ }
10620
+ };
10621
+ }, []);
10622
+ };
10623
+ var RemoveScrollBar = function(_a) {
10624
+ var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? "margin" : _b;
10625
+ useLockAttribute();
10626
+ var gap = React51.useMemo(function() {
10627
+ return getGapWidth(gapMode);
10628
+ }, [gapMode]);
10629
+ return React51.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
10630
+ };
10631
+
10632
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
10633
+ var passiveSupported = false;
10634
+ if (typeof window !== "undefined") {
10635
+ try {
10636
+ options = Object.defineProperty({}, "passive", {
10637
+ get: function() {
10638
+ passiveSupported = true;
10639
+ return true;
10640
+ }
10641
+ });
10642
+ window.addEventListener("test", options, options);
10643
+ window.removeEventListener("test", options, options);
10644
+ } catch (err) {
10645
+ passiveSupported = false;
10646
+ }
10647
+ }
10648
+ var options;
10649
+ var nonPassive = passiveSupported ? { passive: false } : false;
10650
+
10651
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
10652
+ var alwaysContainsScroll = function(node2) {
10653
+ return node2.tagName === "TEXTAREA";
10654
+ };
10655
+ var elementCanBeScrolled = function(node2, overflow) {
10656
+ if (!(node2 instanceof Element)) {
10657
+ return false;
10658
+ }
10659
+ var styles = window.getComputedStyle(node2);
10660
+ return (
10661
+ // not-not-scrollable
10662
+ styles[overflow] !== "hidden" && // contains scroll inside self
10663
+ !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node2) && styles[overflow] === "visible")
10664
+ );
10665
+ };
10666
+ var elementCouldBeVScrolled = function(node2) {
10667
+ return elementCanBeScrolled(node2, "overflowY");
10668
+ };
10669
+ var elementCouldBeHScrolled = function(node2) {
10670
+ return elementCanBeScrolled(node2, "overflowX");
10671
+ };
10672
+ var locationCouldBeScrolled = function(axis, node2) {
10673
+ var ownerDocument = node2.ownerDocument;
10674
+ var current2 = node2;
10675
+ do {
10676
+ if (typeof ShadowRoot !== "undefined" && current2 instanceof ShadowRoot) {
10677
+ current2 = current2.host;
10678
+ }
10679
+ var isScrollable = elementCouldBeScrolled(axis, current2);
10680
+ if (isScrollable) {
10681
+ var _a = getScrollVariables(axis, current2), scrollHeight = _a[1], clientHeight = _a[2];
10682
+ if (scrollHeight > clientHeight) {
10683
+ return true;
10684
+ }
10685
+ }
10686
+ current2 = current2.parentNode;
10687
+ } while (current2 && current2 !== ownerDocument.body);
10688
+ return false;
10689
+ };
10690
+ var getVScrollVariables = function(_a) {
10691
+ var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
10692
+ return [
10693
+ scrollTop,
10694
+ scrollHeight,
10695
+ clientHeight
10696
+ ];
10697
+ };
10698
+ var getHScrollVariables = function(_a) {
10699
+ var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
10700
+ return [
10701
+ scrollLeft,
10702
+ scrollWidth,
10703
+ clientWidth
10704
+ ];
10705
+ };
10706
+ var elementCouldBeScrolled = function(axis, node2) {
10707
+ return axis === "v" ? elementCouldBeVScrolled(node2) : elementCouldBeHScrolled(node2);
10708
+ };
10709
+ var getScrollVariables = function(axis, node2) {
10710
+ return axis === "v" ? getVScrollVariables(node2) : getHScrollVariables(node2);
10711
+ };
10712
+ var getDirectionFactor = function(axis, direction) {
10713
+ return axis === "h" && direction === "rtl" ? -1 : 1;
10714
+ };
10715
+ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
10716
+ var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
10717
+ var delta = directionFactor * sourceDelta;
10718
+ var target = event.target;
10719
+ var targetInLock = endTarget.contains(target);
10720
+ var shouldCancelScroll = false;
10721
+ var isDeltaPositive = delta > 0;
10722
+ var availableScroll = 0;
10723
+ var availableScrollTop = 0;
10724
+ do {
10725
+ if (!target) {
10726
+ break;
10727
+ }
10728
+ var _a = getScrollVariables(axis, target), position2 = _a[0], scroll_1 = _a[1], capacity = _a[2];
10729
+ var elementScroll = scroll_1 - capacity - directionFactor * position2;
10730
+ if (position2 || elementScroll) {
10731
+ if (elementCouldBeScrolled(axis, target)) {
10732
+ availableScroll += elementScroll;
10733
+ availableScrollTop += position2;
10734
+ }
10735
+ }
10736
+ var parent_1 = target.parentNode;
10737
+ target = parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1;
10738
+ } while (
10739
+ // portaled content
10740
+ !targetInLock && target !== document.body || // self content
10741
+ targetInLock && (endTarget.contains(target) || endTarget === target)
10742
+ );
10743
+ if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) {
10744
+ shouldCancelScroll = true;
10745
+ } else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) {
10746
+ shouldCancelScroll = true;
10747
+ }
10748
+ return shouldCancelScroll;
10749
+ };
10750
+
10751
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
10752
+ var getTouchXY = function(event) {
10753
+ return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
10754
+ };
10755
+ var getDeltaXY = function(event) {
10756
+ return [event.deltaX, event.deltaY];
10757
+ };
10758
+ var extractRef = function(ref2) {
10759
+ return ref2 && "current" in ref2 ? ref2.current : ref2;
10760
+ };
10761
+ var deltaCompare = function(x, y) {
10762
+ return x[0] === y[0] && x[1] === y[1];
10763
+ };
10764
+ var generateStyle = function(id) {
10765
+ return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n");
10766
+ };
10767
+ var idCounter = 0;
10768
+ var lockStack = [];
10769
+ function RemoveScrollSideCar(props) {
10770
+ var shouldPreventQueue = React52.useRef([]);
10771
+ var touchStartRef = React52.useRef([0, 0]);
10772
+ var activeAxis = React52.useRef();
10773
+ var id = React52.useState(idCounter++)[0];
10774
+ var Style2 = React52.useState(styleSingleton)[0];
10775
+ var lastProps = React52.useRef(props);
10776
+ React52.useEffect(function() {
10777
+ lastProps.current = props;
10778
+ }, [props]);
10779
+ React52.useEffect(function() {
10780
+ if (props.inert) {
10781
+ document.body.classList.add("block-interactivity-".concat(id));
10782
+ var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
10783
+ allow_1.forEach(function(el) {
10784
+ return el.classList.add("allow-interactivity-".concat(id));
10785
+ });
10786
+ return function() {
10787
+ document.body.classList.remove("block-interactivity-".concat(id));
10788
+ allow_1.forEach(function(el) {
10789
+ return el.classList.remove("allow-interactivity-".concat(id));
10790
+ });
10791
+ };
10792
+ }
10793
+ return;
10794
+ }, [props.inert, props.lockRef.current, props.shards]);
10795
+ var shouldCancelEvent = React52.useCallback(function(event, parent) {
10796
+ if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) {
10797
+ return !lastProps.current.allowPinchZoom;
10798
+ }
10799
+ var touch = getTouchXY(event);
10800
+ var touchStart = touchStartRef.current;
10801
+ var deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0];
10802
+ var deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1];
10803
+ var currentAxis;
10804
+ var target = event.target;
10805
+ var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
10806
+ if ("touches" in event && moveDirection === "h" && target.type === "range") {
10807
+ return false;
10808
+ }
10809
+ var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
10810
+ if (!canBeScrolledInMainDirection) {
10811
+ return true;
10812
+ }
10813
+ if (canBeScrolledInMainDirection) {
10814
+ currentAxis = moveDirection;
10815
+ } else {
10816
+ currentAxis = moveDirection === "v" ? "h" : "v";
10817
+ canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
10818
+ }
10819
+ if (!canBeScrolledInMainDirection) {
10820
+ return false;
10821
+ }
10822
+ if (!activeAxis.current && "changedTouches" in event && (deltaX || deltaY)) {
10823
+ activeAxis.current = currentAxis;
10824
+ }
10825
+ if (!currentAxis) {
10826
+ return true;
10827
+ }
10828
+ var cancelingAxis = activeAxis.current || currentAxis;
10829
+ return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
10830
+ }, []);
10831
+ var shouldPrevent = React52.useCallback(function(_event) {
10832
+ var event = _event;
10833
+ if (!lockStack.length || lockStack[lockStack.length - 1] !== Style2) {
10834
+ return;
10835
+ }
10836
+ var delta = "deltaY" in event ? getDeltaXY(event) : getTouchXY(event);
10837
+ var sourceEvent = shouldPreventQueue.current.filter(function(e) {
10838
+ return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta);
10839
+ })[0];
10840
+ if (sourceEvent && sourceEvent.should) {
10841
+ if (event.cancelable) {
10842
+ event.preventDefault();
10843
+ }
10844
+ return;
10845
+ }
10846
+ if (!sourceEvent) {
10847
+ var shardNodes = (lastProps.current.shards || []).map(extractRef).filter(Boolean).filter(function(node2) {
10848
+ return node2.contains(event.target);
10849
+ });
10850
+ var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
10851
+ if (shouldStop) {
10852
+ if (event.cancelable) {
10853
+ event.preventDefault();
10854
+ }
10855
+ }
10856
+ }
10857
+ }, []);
10858
+ var shouldCancel = React52.useCallback(function(name2, delta, target, should) {
10859
+ var event = { name: name2, delta, target, should, shadowParent: getOutermostShadowParent(target) };
10860
+ shouldPreventQueue.current.push(event);
10861
+ setTimeout(function() {
10862
+ shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
10863
+ return e !== event;
10864
+ });
10865
+ }, 1);
10866
+ }, []);
10867
+ var scrollTouchStart = React52.useCallback(function(event) {
10868
+ touchStartRef.current = getTouchXY(event);
10869
+ activeAxis.current = void 0;
10870
+ }, []);
10871
+ var scrollWheel = React52.useCallback(function(event) {
10872
+ shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
10873
+ }, []);
10874
+ var scrollTouchMove = React52.useCallback(function(event) {
10875
+ shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
10876
+ }, []);
10877
+ React52.useEffect(function() {
10878
+ lockStack.push(Style2);
10879
+ props.setCallbacks({
10880
+ onScrollCapture: scrollWheel,
10881
+ onWheelCapture: scrollWheel,
10882
+ onTouchMoveCapture: scrollTouchMove
10883
+ });
10884
+ document.addEventListener("wheel", shouldPrevent, nonPassive);
10885
+ document.addEventListener("touchmove", shouldPrevent, nonPassive);
10886
+ document.addEventListener("touchstart", scrollTouchStart, nonPassive);
10887
+ return function() {
10888
+ lockStack = lockStack.filter(function(inst) {
10889
+ return inst !== Style2;
10890
+ });
10891
+ document.removeEventListener("wheel", shouldPrevent, nonPassive);
10892
+ document.removeEventListener("touchmove", shouldPrevent, nonPassive);
10893
+ document.removeEventListener("touchstart", scrollTouchStart, nonPassive);
10894
+ };
10895
+ }, []);
10896
+ var removeScrollBar = props.removeScrollBar, inert = props.inert;
10897
+ return React52.createElement(
10898
+ React52.Fragment,
10899
+ null,
10900
+ inert ? React52.createElement(Style2, { styles: generateStyle(id) }) : null,
10901
+ removeScrollBar ? React52.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
10902
+ );
10903
+ }
10904
+ function getOutermostShadowParent(node2) {
10905
+ var shadowParent = null;
10906
+ while (node2 !== null) {
10907
+ if (node2 instanceof ShadowRoot) {
10908
+ shadowParent = node2.host;
10909
+ node2 = node2.host;
10910
+ }
10911
+ node2 = node2.parentNode;
10912
+ }
10913
+ return shadowParent;
9248
10914
  }
9249
10915
 
9250
- // src/fuma/mdx/zia-card.tsx
9251
- import Link2 from "next/link";
9252
- import { jsx as jsx37, jsxs as jsxs12 } from "react/jsx-runtime";
9253
-
9254
- // ../base-ui/src/ui/button.tsx
9255
- import * as React35 from "react";
10916
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js
10917
+ var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
9256
10918
 
9257
- // ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.mjs
9258
- import * as React34 from "react";
10919
+ // ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.1.2_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.js
10920
+ var ReactRemoveScroll = React53.forwardRef(function(props, ref2) {
10921
+ return React53.createElement(RemoveScroll, __assign({}, props, { ref: ref2, sideCar: sidecar_default }));
10922
+ });
10923
+ ReactRemoveScroll.classNames = RemoveScroll.classNames;
10924
+ var Combination_default = ReactRemoveScroll;
9259
10925
 
9260
- // ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
9261
- import * as React33 from "react";
9262
- function setRef(ref2, value2) {
9263
- if (typeof ref2 === "function") {
9264
- return ref2(value2);
9265
- } else if (ref2 !== null && ref2 !== void 0) {
9266
- ref2.current = value2;
10926
+ // ../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
10927
+ var getDefaultParent = function(originalTarget) {
10928
+ if (typeof document === "undefined") {
10929
+ return null;
9267
10930
  }
9268
- }
9269
- function composeRefs(...refs) {
9270
- return (node2) => {
9271
- let hasCleanup = false;
9272
- const cleanups = refs.map((ref2) => {
9273
- const cleanup = setRef(ref2, node2);
9274
- if (!hasCleanup && typeof cleanup == "function") {
9275
- hasCleanup = true;
9276
- }
9277
- return cleanup;
9278
- });
9279
- if (hasCleanup) {
9280
- return () => {
9281
- for (let i = 0; i < cleanups.length; i++) {
9282
- const cleanup = cleanups[i];
9283
- if (typeof cleanup == "function") {
9284
- cleanup();
9285
- } else {
9286
- setRef(refs[i], null);
9287
- }
9288
- }
9289
- };
10931
+ var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
10932
+ return sampleTarget.ownerDocument.body;
10933
+ };
10934
+ var counterMap = /* @__PURE__ */ new WeakMap();
10935
+ var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
10936
+ var markerMap = {};
10937
+ var lockCount = 0;
10938
+ var unwrapHost = function(node2) {
10939
+ return node2 && (node2.host || unwrapHost(node2.parentNode));
10940
+ };
10941
+ var correctTargets = function(parent, targets) {
10942
+ return targets.map(function(target) {
10943
+ if (parent.contains(target)) {
10944
+ return target;
9290
10945
  }
9291
- };
9292
- }
9293
-
9294
- // ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.1.2_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.mjs
9295
- import { Fragment as Fragment2, jsx as jsx38 } from "react/jsx-runtime";
9296
- // @__NO_SIDE_EFFECTS__
9297
- function createSlot(ownerName) {
9298
- const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
9299
- const Slot2 = React34.forwardRef((props, forwardedRef) => {
9300
- const _a = props, { children } = _a, slotProps = __objRest(_a, ["children"]);
9301
- const childrenArray = React34.Children.toArray(children);
9302
- const slottable = childrenArray.find(isSlottable);
9303
- if (slottable) {
9304
- const newElement = slottable.props.children;
9305
- const newChildren = childrenArray.map((child) => {
9306
- if (child === slottable) {
9307
- if (React34.Children.count(newElement) > 1) return React34.Children.only(null);
9308
- return React34.isValidElement(newElement) ? newElement.props.children : null;
9309
- } else {
9310
- return child;
9311
- }
9312
- });
9313
- return /* @__PURE__ */ jsx38(SlotClone, __spreadProps(__spreadValues({}, slotProps), { ref: forwardedRef, children: React34.isValidElement(newElement) ? React34.cloneElement(newElement, void 0, newChildren) : null }));
10946
+ var correctedTarget = unwrapHost(target);
10947
+ if (correctedTarget && parent.contains(correctedTarget)) {
10948
+ return correctedTarget;
9314
10949
  }
9315
- return /* @__PURE__ */ jsx38(SlotClone, __spreadProps(__spreadValues({}, slotProps), { ref: forwardedRef, children }));
10950
+ console.error("aria-hidden", target, "in not contained inside", parent, ". Doing nothing");
10951
+ return null;
10952
+ }).filter(function(x) {
10953
+ return Boolean(x);
9316
10954
  });
9317
- Slot2.displayName = `${ownerName}.Slot`;
9318
- return Slot2;
9319
- }
9320
- var Slot = /* @__PURE__ */ createSlot("Slot");
9321
- // @__NO_SIDE_EFFECTS__
9322
- function createSlotClone(ownerName) {
9323
- const SlotClone = React34.forwardRef((props, forwardedRef) => {
9324
- const _a = props, { children } = _a, slotProps = __objRest(_a, ["children"]);
9325
- if (React34.isValidElement(children)) {
9326
- const childrenRef = getElementRef(children);
9327
- const props2 = mergeProps(slotProps, children.props);
9328
- if (children.type !== React34.Fragment) {
9329
- props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
10955
+ };
10956
+ var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
10957
+ var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
10958
+ if (!markerMap[markerName]) {
10959
+ markerMap[markerName] = /* @__PURE__ */ new WeakMap();
10960
+ }
10961
+ var markerCounter = markerMap[markerName];
10962
+ var hiddenNodes = [];
10963
+ var elementsToKeep = /* @__PURE__ */ new Set();
10964
+ var elementsToStop = new Set(targets);
10965
+ var keep = function(el) {
10966
+ if (!el || elementsToKeep.has(el)) {
10967
+ return;
10968
+ }
10969
+ elementsToKeep.add(el);
10970
+ keep(el.parentNode);
10971
+ };
10972
+ targets.forEach(keep);
10973
+ var deep = function(parent) {
10974
+ if (!parent || elementsToStop.has(parent)) {
10975
+ return;
10976
+ }
10977
+ Array.prototype.forEach.call(parent.children, function(node2) {
10978
+ if (elementsToKeep.has(node2)) {
10979
+ deep(node2);
10980
+ } else {
10981
+ try {
10982
+ var attr = node2.getAttribute(controlAttribute);
10983
+ var alreadyHidden = attr !== null && attr !== "false";
10984
+ var counterValue = (counterMap.get(node2) || 0) + 1;
10985
+ var markerValue = (markerCounter.get(node2) || 0) + 1;
10986
+ counterMap.set(node2, counterValue);
10987
+ markerCounter.set(node2, markerValue);
10988
+ hiddenNodes.push(node2);
10989
+ if (counterValue === 1 && alreadyHidden) {
10990
+ uncontrolledNodes.set(node2, true);
10991
+ }
10992
+ if (markerValue === 1) {
10993
+ node2.setAttribute(markerName, "true");
10994
+ }
10995
+ if (!alreadyHidden) {
10996
+ node2.setAttribute(controlAttribute, "true");
10997
+ }
10998
+ } catch (e) {
10999
+ console.error("aria-hidden: cannot operate on ", node2, e);
11000
+ }
11001
+ }
11002
+ });
11003
+ };
11004
+ deep(parentNode);
11005
+ elementsToKeep.clear();
11006
+ lockCount++;
11007
+ return function() {
11008
+ hiddenNodes.forEach(function(node2) {
11009
+ var counterValue = counterMap.get(node2) - 1;
11010
+ var markerValue = markerCounter.get(node2) - 1;
11011
+ counterMap.set(node2, counterValue);
11012
+ markerCounter.set(node2, markerValue);
11013
+ if (!counterValue) {
11014
+ if (!uncontrolledNodes.has(node2)) {
11015
+ node2.removeAttribute(controlAttribute);
11016
+ }
11017
+ uncontrolledNodes.delete(node2);
11018
+ }
11019
+ if (!markerValue) {
11020
+ node2.removeAttribute(markerName);
9330
11021
  }
9331
- return React34.cloneElement(children, props2);
11022
+ });
11023
+ lockCount--;
11024
+ if (!lockCount) {
11025
+ counterMap = /* @__PURE__ */ new WeakMap();
11026
+ counterMap = /* @__PURE__ */ new WeakMap();
11027
+ uncontrolledNodes = /* @__PURE__ */ new WeakMap();
11028
+ markerMap = {};
9332
11029
  }
9333
- return React34.Children.count(children) > 1 ? React34.Children.only(null) : null;
11030
+ };
11031
+ };
11032
+ var hideOthers = function(originalTarget, parentNode, markerName) {
11033
+ if (markerName === void 0) {
11034
+ markerName = "data-aria-hidden";
11035
+ }
11036
+ var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
11037
+ var activeParentNode = parentNode || getDefaultParent(originalTarget);
11038
+ if (!activeParentNode) {
11039
+ return function() {
11040
+ return null;
11041
+ };
11042
+ }
11043
+ targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
11044
+ return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
11045
+ };
11046
+
11047
+ // ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.14_@types+react-dom@19.1.3_@types+react@19.1.2__@types+react_848f83211ce5e4d8275fe0d3e11a9387/node_modules/@radix-ui/react-dialog/dist/index.mjs
11048
+ import { Fragment as Fragment5, jsx as jsx39, jsxs as jsxs10 } from "react/jsx-runtime";
11049
+ var DIALOG_NAME = "Dialog";
11050
+ var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
11051
+ var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
11052
+ var Dialog = (props) => {
11053
+ const {
11054
+ __scopeDialog,
11055
+ children,
11056
+ open: openProp,
11057
+ defaultOpen,
11058
+ onOpenChange,
11059
+ modal = true
11060
+ } = props;
11061
+ const triggerRef = React54.useRef(null);
11062
+ const contentRef = React54.useRef(null);
11063
+ const [open, setOpen] = useControllableState({
11064
+ prop: openProp,
11065
+ defaultProp: defaultOpen != null ? defaultOpen : false,
11066
+ onChange: onOpenChange,
11067
+ caller: DIALOG_NAME
9334
11068
  });
9335
- SlotClone.displayName = `${ownerName}.SlotClone`;
9336
- return SlotClone;
9337
- }
9338
- var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
9339
- function isSlottable(child) {
9340
- return React34.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
9341
- }
9342
- function mergeProps(slotProps, childProps) {
9343
- const overrideProps = __spreadValues({}, childProps);
9344
- for (const propName in childProps) {
9345
- const slotPropValue = slotProps[propName];
9346
- const childPropValue = childProps[propName];
9347
- const isHandler = /^on[A-Z]/.test(propName);
9348
- if (isHandler) {
9349
- if (slotPropValue && childPropValue) {
9350
- overrideProps[propName] = (...args) => {
9351
- const result = childPropValue(...args);
9352
- slotPropValue(...args);
9353
- return result;
9354
- };
9355
- } else if (slotPropValue) {
9356
- overrideProps[propName] = slotPropValue;
9357
- }
9358
- } else if (propName === "style") {
9359
- overrideProps[propName] = __spreadValues(__spreadValues({}, slotPropValue), childPropValue);
9360
- } else if (propName === "className") {
9361
- overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
11069
+ return /* @__PURE__ */ jsx39(
11070
+ DialogProvider,
11071
+ {
11072
+ scope: __scopeDialog,
11073
+ triggerRef,
11074
+ contentRef,
11075
+ contentId: useId(),
11076
+ titleId: useId(),
11077
+ descriptionId: useId(),
11078
+ open,
11079
+ onOpenChange: setOpen,
11080
+ onOpenToggle: React54.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
11081
+ modal,
11082
+ children
9362
11083
  }
11084
+ );
11085
+ };
11086
+ Dialog.displayName = DIALOG_NAME;
11087
+ var TRIGGER_NAME = "DialogTrigger";
11088
+ var DialogTrigger = React54.forwardRef(
11089
+ (props, forwardedRef) => {
11090
+ const _a = props, { __scopeDialog } = _a, triggerProps = __objRest(_a, ["__scopeDialog"]);
11091
+ const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
11092
+ const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
11093
+ return /* @__PURE__ */ jsx39(
11094
+ Primitive.button,
11095
+ __spreadProps(__spreadValues({
11096
+ type: "button",
11097
+ "aria-haspopup": "dialog",
11098
+ "aria-expanded": context.open,
11099
+ "aria-controls": context.contentId,
11100
+ "data-state": getState(context.open)
11101
+ }, triggerProps), {
11102
+ ref: composedTriggerRef,
11103
+ onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
11104
+ })
11105
+ );
9363
11106
  }
9364
- return __spreadValues(__spreadValues({}, slotProps), overrideProps);
9365
- }
9366
- function getElementRef(element) {
9367
- var _a, _b;
9368
- let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
9369
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
9370
- if (mayWarn) {
9371
- return element.ref;
11107
+ );
11108
+ DialogTrigger.displayName = TRIGGER_NAME;
11109
+ var PORTAL_NAME2 = "DialogPortal";
11110
+ var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME2, {
11111
+ forceMount: void 0
11112
+ });
11113
+ var DialogPortal = (props) => {
11114
+ const { __scopeDialog, forceMount, children, container } = props;
11115
+ const context = useDialogContext(PORTAL_NAME2, __scopeDialog);
11116
+ return /* @__PURE__ */ jsx39(PortalProvider, { scope: __scopeDialog, forceMount, children: React54.Children.map(children, (child) => /* @__PURE__ */ jsx39(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx39(Portal, { asChild: true, container, children: child }) })) });
11117
+ };
11118
+ DialogPortal.displayName = PORTAL_NAME2;
11119
+ var OVERLAY_NAME = "DialogOverlay";
11120
+ var DialogOverlay = React54.forwardRef(
11121
+ (props, forwardedRef) => {
11122
+ const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
11123
+ const _a = props, { forceMount = portalContext.forceMount } = _a, overlayProps = __objRest(_a, ["forceMount"]);
11124
+ const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
11125
+ return context.modal ? /* @__PURE__ */ jsx39(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx39(DialogOverlayImpl, __spreadProps(__spreadValues({}, overlayProps), { ref: forwardedRef })) }) : null;
9372
11126
  }
9373
- getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
9374
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
9375
- if (mayWarn) {
9376
- return element.props.ref;
11127
+ );
11128
+ DialogOverlay.displayName = OVERLAY_NAME;
11129
+ var Slot2 = createSlot("DialogOverlay.RemoveScroll");
11130
+ var DialogOverlayImpl = React54.forwardRef(
11131
+ (props, forwardedRef) => {
11132
+ const _a = props, { __scopeDialog } = _a, overlayProps = __objRest(_a, ["__scopeDialog"]);
11133
+ const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
11134
+ return (
11135
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
11136
+ // ie. when `Overlay` and `Content` are siblings
11137
+ /* @__PURE__ */ jsx39(Combination_default, { as: Slot2, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx39(
11138
+ Primitive.div,
11139
+ __spreadProps(__spreadValues({
11140
+ "data-state": getState(context.open)
11141
+ }, overlayProps), {
11142
+ ref: forwardedRef,
11143
+ style: __spreadValues({ pointerEvents: "auto" }, overlayProps.style)
11144
+ })
11145
+ ) })
11146
+ );
9377
11147
  }
9378
- return element.props.ref || element.ref;
11148
+ );
11149
+ var CONTENT_NAME = "DialogContent";
11150
+ var DialogContent = React54.forwardRef(
11151
+ (props, forwardedRef) => {
11152
+ const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
11153
+ const _a = props, { forceMount = portalContext.forceMount } = _a, contentProps = __objRest(_a, ["forceMount"]);
11154
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
11155
+ return /* @__PURE__ */ jsx39(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx39(DialogContentModal, __spreadProps(__spreadValues({}, contentProps), { ref: forwardedRef })) : /* @__PURE__ */ jsx39(DialogContentNonModal, __spreadProps(__spreadValues({}, contentProps), { ref: forwardedRef })) });
11156
+ }
11157
+ );
11158
+ DialogContent.displayName = CONTENT_NAME;
11159
+ var DialogContentModal = React54.forwardRef(
11160
+ (props, forwardedRef) => {
11161
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
11162
+ const contentRef = React54.useRef(null);
11163
+ const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);
11164
+ React54.useEffect(() => {
11165
+ const content3 = contentRef.current;
11166
+ if (content3) return hideOthers(content3);
11167
+ }, []);
11168
+ return /* @__PURE__ */ jsx39(
11169
+ DialogContentImpl,
11170
+ __spreadProps(__spreadValues({}, props), {
11171
+ ref: composedRefs,
11172
+ trapFocus: context.open,
11173
+ disableOutsidePointerEvents: true,
11174
+ onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
11175
+ var _a;
11176
+ event.preventDefault();
11177
+ (_a = context.triggerRef.current) == null ? void 0 : _a.focus();
11178
+ }),
11179
+ onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {
11180
+ const originalEvent = event.detail.originalEvent;
11181
+ const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
11182
+ const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
11183
+ if (isRightClick) event.preventDefault();
11184
+ }),
11185
+ onFocusOutside: composeEventHandlers(
11186
+ props.onFocusOutside,
11187
+ (event) => event.preventDefault()
11188
+ )
11189
+ })
11190
+ );
11191
+ }
11192
+ );
11193
+ var DialogContentNonModal = React54.forwardRef(
11194
+ (props, forwardedRef) => {
11195
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
11196
+ const hasInteractedOutsideRef = React54.useRef(false);
11197
+ const hasPointerDownOutsideRef = React54.useRef(false);
11198
+ return /* @__PURE__ */ jsx39(
11199
+ DialogContentImpl,
11200
+ __spreadProps(__spreadValues({}, props), {
11201
+ ref: forwardedRef,
11202
+ trapFocus: false,
11203
+ disableOutsidePointerEvents: false,
11204
+ onCloseAutoFocus: (event) => {
11205
+ var _a, _b;
11206
+ (_a = props.onCloseAutoFocus) == null ? void 0 : _a.call(props, event);
11207
+ if (!event.defaultPrevented) {
11208
+ if (!hasInteractedOutsideRef.current) (_b = context.triggerRef.current) == null ? void 0 : _b.focus();
11209
+ event.preventDefault();
11210
+ }
11211
+ hasInteractedOutsideRef.current = false;
11212
+ hasPointerDownOutsideRef.current = false;
11213
+ },
11214
+ onInteractOutside: (event) => {
11215
+ var _a, _b;
11216
+ (_a = props.onInteractOutside) == null ? void 0 : _a.call(props, event);
11217
+ if (!event.defaultPrevented) {
11218
+ hasInteractedOutsideRef.current = true;
11219
+ if (event.detail.originalEvent.type === "pointerdown") {
11220
+ hasPointerDownOutsideRef.current = true;
11221
+ }
11222
+ }
11223
+ const target = event.target;
11224
+ const targetIsTrigger = (_b = context.triggerRef.current) == null ? void 0 : _b.contains(target);
11225
+ if (targetIsTrigger) event.preventDefault();
11226
+ if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
11227
+ event.preventDefault();
11228
+ }
11229
+ }
11230
+ })
11231
+ );
11232
+ }
11233
+ );
11234
+ var DialogContentImpl = React54.forwardRef(
11235
+ (props, forwardedRef) => {
11236
+ const _a = props, { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus } = _a, contentProps = __objRest(_a, ["__scopeDialog", "trapFocus", "onOpenAutoFocus", "onCloseAutoFocus"]);
11237
+ const context = useDialogContext(CONTENT_NAME, __scopeDialog);
11238
+ const contentRef = React54.useRef(null);
11239
+ const composedRefs = useComposedRefs(forwardedRef, contentRef);
11240
+ useFocusGuards();
11241
+ return /* @__PURE__ */ jsxs10(Fragment5, { children: [
11242
+ /* @__PURE__ */ jsx39(
11243
+ FocusScope,
11244
+ {
11245
+ asChild: true,
11246
+ loop: true,
11247
+ trapped: trapFocus,
11248
+ onMountAutoFocus: onOpenAutoFocus,
11249
+ onUnmountAutoFocus: onCloseAutoFocus,
11250
+ children: /* @__PURE__ */ jsx39(
11251
+ DismissableLayer,
11252
+ __spreadProps(__spreadValues({
11253
+ role: "dialog",
11254
+ id: context.contentId,
11255
+ "aria-describedby": context.descriptionId,
11256
+ "aria-labelledby": context.titleId,
11257
+ "data-state": getState(context.open)
11258
+ }, contentProps), {
11259
+ ref: composedRefs,
11260
+ onDismiss: () => context.onOpenChange(false)
11261
+ })
11262
+ )
11263
+ }
11264
+ ),
11265
+ /* @__PURE__ */ jsxs10(Fragment5, { children: [
11266
+ /* @__PURE__ */ jsx39(TitleWarning, { titleId: context.titleId }),
11267
+ /* @__PURE__ */ jsx39(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
11268
+ ] })
11269
+ ] });
11270
+ }
11271
+ );
11272
+ var TITLE_NAME = "DialogTitle";
11273
+ var DialogTitle = React54.forwardRef(
11274
+ (props, forwardedRef) => {
11275
+ const _a = props, { __scopeDialog } = _a, titleProps = __objRest(_a, ["__scopeDialog"]);
11276
+ const context = useDialogContext(TITLE_NAME, __scopeDialog);
11277
+ return /* @__PURE__ */ jsx39(Primitive.h2, __spreadProps(__spreadValues({ id: context.titleId }, titleProps), { ref: forwardedRef }));
11278
+ }
11279
+ );
11280
+ DialogTitle.displayName = TITLE_NAME;
11281
+ var DESCRIPTION_NAME = "DialogDescription";
11282
+ var DialogDescription = React54.forwardRef(
11283
+ (props, forwardedRef) => {
11284
+ const _a = props, { __scopeDialog } = _a, descriptionProps = __objRest(_a, ["__scopeDialog"]);
11285
+ const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
11286
+ return /* @__PURE__ */ jsx39(Primitive.p, __spreadProps(__spreadValues({ id: context.descriptionId }, descriptionProps), { ref: forwardedRef }));
11287
+ }
11288
+ );
11289
+ DialogDescription.displayName = DESCRIPTION_NAME;
11290
+ var CLOSE_NAME = "DialogClose";
11291
+ var DialogClose = React54.forwardRef(
11292
+ (props, forwardedRef) => {
11293
+ const _a = props, { __scopeDialog } = _a, closeProps = __objRest(_a, ["__scopeDialog"]);
11294
+ const context = useDialogContext(CLOSE_NAME, __scopeDialog);
11295
+ return /* @__PURE__ */ jsx39(
11296
+ Primitive.button,
11297
+ __spreadProps(__spreadValues({
11298
+ type: "button"
11299
+ }, closeProps), {
11300
+ ref: forwardedRef,
11301
+ onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
11302
+ })
11303
+ );
11304
+ }
11305
+ );
11306
+ DialogClose.displayName = CLOSE_NAME;
11307
+ function getState(open) {
11308
+ return open ? "open" : "closed";
11309
+ }
11310
+ var TITLE_WARNING_NAME = "DialogTitleWarning";
11311
+ var [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {
11312
+ contentName: CONTENT_NAME,
11313
+ titleName: TITLE_NAME,
11314
+ docsSlug: "dialog"
11315
+ });
11316
+ var TitleWarning = ({ titleId }) => {
11317
+ const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);
11318
+ const MESSAGE = `\`${titleWarningContext.contentName}\` requires a \`${titleWarningContext.titleName}\` for the component to be accessible for screen reader users.
11319
+
11320
+ If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it with our VisuallyHidden component.
11321
+
11322
+ For more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;
11323
+ React54.useEffect(() => {
11324
+ if (titleId) {
11325
+ const hasTitle = document.getElementById(titleId);
11326
+ if (!hasTitle) console.error(MESSAGE);
11327
+ }
11328
+ }, [MESSAGE, titleId]);
11329
+ return null;
11330
+ };
11331
+ var DESCRIPTION_WARNING_NAME = "DialogDescriptionWarning";
11332
+ var DescriptionWarning = ({ contentRef, descriptionId }) => {
11333
+ const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);
11334
+ const MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${descriptionWarningContext.contentName}}.`;
11335
+ React54.useEffect(() => {
11336
+ var _a;
11337
+ const describedById = (_a = contentRef.current) == null ? void 0 : _a.getAttribute("aria-describedby");
11338
+ if (descriptionId && describedById) {
11339
+ const hasDescription = document.getElementById(descriptionId);
11340
+ if (!hasDescription) console.warn(MESSAGE);
11341
+ }
11342
+ }, [MESSAGE, contentRef, descriptionId]);
11343
+ return null;
11344
+ };
11345
+ var Root = Dialog;
11346
+ var Trigger = DialogTrigger;
11347
+ var Portal2 = DialogPortal;
11348
+ var Overlay = DialogOverlay;
11349
+ var Content = DialogContent;
11350
+ var Title = DialogTitle;
11351
+ var Description = DialogDescription;
11352
+ var Close = DialogClose;
11353
+
11354
+ // ../../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.1.14_@types+react-dom@19.1.3_@types+react@19.1.2__@types_c6ff7006a888f63e36d2502e019661c3/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
11355
+ import { jsx as jsx40, jsxs as jsxs11 } from "react/jsx-runtime";
11356
+ var ROOT_NAME = "AlertDialog";
11357
+ var [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [
11358
+ createDialogScope
11359
+ ]);
11360
+ var useDialogScope = createDialogScope();
11361
+ var AlertDialog = (props) => {
11362
+ const _a = props, { __scopeAlertDialog } = _a, alertDialogProps = __objRest(_a, ["__scopeAlertDialog"]);
11363
+ const dialogScope = useDialogScope(__scopeAlertDialog);
11364
+ return /* @__PURE__ */ jsx40(Root, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), alertDialogProps), { modal: true }));
11365
+ };
11366
+ AlertDialog.displayName = ROOT_NAME;
11367
+ var TRIGGER_NAME2 = "AlertDialogTrigger";
11368
+ var AlertDialogTrigger = React55.forwardRef(
11369
+ (props, forwardedRef) => {
11370
+ const _a = props, { __scopeAlertDialog } = _a, triggerProps = __objRest(_a, ["__scopeAlertDialog"]);
11371
+ const dialogScope = useDialogScope(__scopeAlertDialog);
11372
+ return /* @__PURE__ */ jsx40(Trigger, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), triggerProps), { ref: forwardedRef }));
11373
+ }
11374
+ );
11375
+ AlertDialogTrigger.displayName = TRIGGER_NAME2;
11376
+ var PORTAL_NAME3 = "AlertDialogPortal";
11377
+ var AlertDialogPortal = (props) => {
11378
+ const _a = props, { __scopeAlertDialog } = _a, portalProps = __objRest(_a, ["__scopeAlertDialog"]);
11379
+ const dialogScope = useDialogScope(__scopeAlertDialog);
11380
+ return /* @__PURE__ */ jsx40(Portal2, __spreadValues(__spreadValues({}, dialogScope), portalProps));
11381
+ };
11382
+ AlertDialogPortal.displayName = PORTAL_NAME3;
11383
+ var OVERLAY_NAME2 = "AlertDialogOverlay";
11384
+ var AlertDialogOverlay = React55.forwardRef(
11385
+ (props, forwardedRef) => {
11386
+ const _a = props, { __scopeAlertDialog } = _a, overlayProps = __objRest(_a, ["__scopeAlertDialog"]);
11387
+ const dialogScope = useDialogScope(__scopeAlertDialog);
11388
+ return /* @__PURE__ */ jsx40(Overlay, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), overlayProps), { ref: forwardedRef }));
11389
+ }
11390
+ );
11391
+ AlertDialogOverlay.displayName = OVERLAY_NAME2;
11392
+ var CONTENT_NAME2 = "AlertDialogContent";
11393
+ var [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME2);
11394
+ var Slottable = createSlottable("AlertDialogContent");
11395
+ var AlertDialogContent = React55.forwardRef(
11396
+ (props, forwardedRef) => {
11397
+ const _a = props, { __scopeAlertDialog, children } = _a, contentProps = __objRest(_a, ["__scopeAlertDialog", "children"]);
11398
+ const dialogScope = useDialogScope(__scopeAlertDialog);
11399
+ const contentRef = React55.useRef(null);
11400
+ const composedRefs = useComposedRefs(forwardedRef, contentRef);
11401
+ const cancelRef = React55.useRef(null);
11402
+ return /* @__PURE__ */ jsx40(
11403
+ WarningProvider,
11404
+ {
11405
+ contentName: CONTENT_NAME2,
11406
+ titleName: TITLE_NAME2,
11407
+ docsSlug: "alert-dialog",
11408
+ children: /* @__PURE__ */ jsx40(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs11(
11409
+ Content,
11410
+ __spreadProps(__spreadValues(__spreadValues({
11411
+ role: "alertdialog"
11412
+ }, dialogScope), contentProps), {
11413
+ ref: composedRefs,
11414
+ onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {
11415
+ var _a2;
11416
+ event.preventDefault();
11417
+ (_a2 = cancelRef.current) == null ? void 0 : _a2.focus({ preventScroll: true });
11418
+ }),
11419
+ onPointerDownOutside: (event) => event.preventDefault(),
11420
+ onInteractOutside: (event) => event.preventDefault(),
11421
+ children: [
11422
+ /* @__PURE__ */ jsx40(Slottable, { children }),
11423
+ /* @__PURE__ */ jsx40(DescriptionWarning2, { contentRef })
11424
+ ]
11425
+ })
11426
+ ) })
11427
+ }
11428
+ );
11429
+ }
11430
+ );
11431
+ AlertDialogContent.displayName = CONTENT_NAME2;
11432
+ var TITLE_NAME2 = "AlertDialogTitle";
11433
+ var AlertDialogTitle = React55.forwardRef(
11434
+ (props, forwardedRef) => {
11435
+ const _a = props, { __scopeAlertDialog } = _a, titleProps = __objRest(_a, ["__scopeAlertDialog"]);
11436
+ const dialogScope = useDialogScope(__scopeAlertDialog);
11437
+ return /* @__PURE__ */ jsx40(Title, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), titleProps), { ref: forwardedRef }));
11438
+ }
11439
+ );
11440
+ AlertDialogTitle.displayName = TITLE_NAME2;
11441
+ var DESCRIPTION_NAME2 = "AlertDialogDescription";
11442
+ var AlertDialogDescription = React55.forwardRef((props, forwardedRef) => {
11443
+ const _a = props, { __scopeAlertDialog } = _a, descriptionProps = __objRest(_a, ["__scopeAlertDialog"]);
11444
+ const dialogScope = useDialogScope(__scopeAlertDialog);
11445
+ return /* @__PURE__ */ jsx40(Description, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), descriptionProps), { ref: forwardedRef }));
11446
+ });
11447
+ AlertDialogDescription.displayName = DESCRIPTION_NAME2;
11448
+ var ACTION_NAME = "AlertDialogAction";
11449
+ var AlertDialogAction = React55.forwardRef(
11450
+ (props, forwardedRef) => {
11451
+ const _a = props, { __scopeAlertDialog } = _a, actionProps = __objRest(_a, ["__scopeAlertDialog"]);
11452
+ const dialogScope = useDialogScope(__scopeAlertDialog);
11453
+ return /* @__PURE__ */ jsx40(Close, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), actionProps), { ref: forwardedRef }));
11454
+ }
11455
+ );
11456
+ AlertDialogAction.displayName = ACTION_NAME;
11457
+ var CANCEL_NAME = "AlertDialogCancel";
11458
+ var AlertDialogCancel = React55.forwardRef(
11459
+ (props, forwardedRef) => {
11460
+ const _a = props, { __scopeAlertDialog } = _a, cancelProps = __objRest(_a, ["__scopeAlertDialog"]);
11461
+ const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);
11462
+ const dialogScope = useDialogScope(__scopeAlertDialog);
11463
+ const ref2 = useComposedRefs(forwardedRef, cancelRef);
11464
+ return /* @__PURE__ */ jsx40(Close, __spreadProps(__spreadValues(__spreadValues({}, dialogScope), cancelProps), { ref: ref2 }));
11465
+ }
11466
+ );
11467
+ AlertDialogCancel.displayName = CANCEL_NAME;
11468
+ var DescriptionWarning2 = ({ contentRef }) => {
11469
+ const MESSAGE = `\`${CONTENT_NAME2}\` requires a description for the component to be accessible for screen reader users.
11470
+
11471
+ You can add a description to the \`${CONTENT_NAME2}\` by passing a \`${DESCRIPTION_NAME2}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
11472
+
11473
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${CONTENT_NAME2}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
11474
+
11475
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
11476
+ React55.useEffect(() => {
11477
+ var _a;
11478
+ const hasDescription = document.getElementById(
11479
+ (_a = contentRef.current) == null ? void 0 : _a.getAttribute("aria-describedby")
11480
+ );
11481
+ if (!hasDescription) console.warn(MESSAGE);
11482
+ }, [MESSAGE, contentRef]);
11483
+ return null;
11484
+ };
11485
+ var Portal22 = AlertDialogPortal;
11486
+ var Overlay2 = AlertDialogOverlay;
11487
+ var Content2 = AlertDialogContent;
11488
+ var Action = AlertDialogAction;
11489
+ var Cancel = AlertDialogCancel;
11490
+ var Title2 = AlertDialogTitle;
11491
+ var Description2 = AlertDialogDescription;
11492
+
11493
+ // ../lib/src/utils.ts
11494
+ import { clsx } from "clsx";
11495
+ import { twMerge } from "tailwind-merge";
11496
+ function cn(...inputs) {
11497
+ return twMerge(clsx(inputs));
9379
11498
  }
9380
11499
 
9381
11500
  // ../base-ui/src/ui/button.tsx
11501
+ import * as React56 from "react";
9382
11502
  import { cva } from "class-variance-authority";
9383
- import { jsx as jsx39, jsxs as jsxs13 } from "react/jsx-runtime";
11503
+ import { jsx as jsx41, jsxs as jsxs12 } from "react/jsx-runtime";
9384
11504
  var buttonVariants = cva(
9385
11505
  "inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
9386
11506
  {
@@ -9406,12 +11526,12 @@ var buttonVariants = cva(
9406
11526
  }
9407
11527
  }
9408
11528
  );
9409
- var Button = React35.forwardRef(
11529
+ var Button = React56.forwardRef(
9410
11530
  (_a, ref2) => {
9411
11531
  var _b = _a, { className, variant, size, asChild = false, loading = false, children } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild", "loading", "children"]);
9412
11532
  const Comp = asChild ? Slot : "button";
9413
11533
  if (asChild) {
9414
- return /* @__PURE__ */ jsx39(
11534
+ return /* @__PURE__ */ jsx41(
9415
11535
  Comp,
9416
11536
  __spreadProps(__spreadValues({
9417
11537
  className: cn(buttonVariants({ variant, size, className })),
@@ -9422,7 +11542,7 @@ var Button = React35.forwardRef(
9422
11542
  })
9423
11543
  );
9424
11544
  }
9425
- return /* @__PURE__ */ jsxs13(
11545
+ return /* @__PURE__ */ jsxs12(
9426
11546
  Comp,
9427
11547
  __spreadProps(__spreadValues({
9428
11548
  className: cn(buttonVariants({ variant, size, className })),
@@ -9431,7 +11551,7 @@ var Button = React35.forwardRef(
9431
11551
  }, props), {
9432
11552
  children: [
9433
11553
  children,
9434
- loading && /* @__PURE__ */ jsx39(globalLucideIcons.Loader2, { className: "ml-2 h-4 w-4 animate-spin" })
11554
+ loading && /* @__PURE__ */ jsx41(globalLucideIcons.Loader2, { className: "ml-2 h-4 w-4 animate-spin" })
9435
11555
  ]
9436
11556
  })
9437
11557
  );
@@ -9439,33 +11559,172 @@ var Button = React35.forwardRef(
9439
11559
  );
9440
11560
  Button.displayName = "Button";
9441
11561
 
11562
+ // ../base-ui/src/ui/alert-dialog.tsx
11563
+ import { jsx as jsx42, jsxs as jsxs13 } from "react/jsx-runtime";
11564
+ var AlertDialogPortal2 = Portal22;
11565
+ var AlertDialogOverlay2 = React57.forwardRef((_a, ref2) => {
11566
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11567
+ return /* @__PURE__ */ jsx42(
11568
+ Overlay2,
11569
+ __spreadProps(__spreadValues({
11570
+ className: cn(
11571
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
11572
+ className
11573
+ )
11574
+ }, props), {
11575
+ ref: ref2
11576
+ })
11577
+ );
11578
+ });
11579
+ AlertDialogOverlay2.displayName = Overlay2.displayName;
11580
+ var AlertDialogContent2 = React57.forwardRef((_a, ref2) => {
11581
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11582
+ return /* @__PURE__ */ jsxs13(AlertDialogPortal2, { children: [
11583
+ /* @__PURE__ */ jsx42(AlertDialogOverlay2, {}),
11584
+ /* @__PURE__ */ jsx42(
11585
+ Content2,
11586
+ __spreadValues({
11587
+ ref: ref2,
11588
+ className: cn(
11589
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
11590
+ className
11591
+ )
11592
+ }, props)
11593
+ )
11594
+ ] });
11595
+ });
11596
+ AlertDialogContent2.displayName = Content2.displayName;
11597
+ var AlertDialogHeader = (_a) => {
11598
+ var _b = _a, {
11599
+ className
11600
+ } = _b, props = __objRest(_b, [
11601
+ "className"
11602
+ ]);
11603
+ return /* @__PURE__ */ jsx42(
11604
+ "div",
11605
+ __spreadValues({
11606
+ className: cn(
11607
+ "flex flex-col space-y-2 text-center sm:text-left",
11608
+ className
11609
+ )
11610
+ }, props)
11611
+ );
11612
+ };
11613
+ AlertDialogHeader.displayName = "AlertDialogHeader";
11614
+ var AlertDialogFooter = (_a) => {
11615
+ var _b = _a, {
11616
+ className
11617
+ } = _b, props = __objRest(_b, [
11618
+ "className"
11619
+ ]);
11620
+ return /* @__PURE__ */ jsx42(
11621
+ "div",
11622
+ __spreadValues({
11623
+ className: cn(
11624
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
11625
+ className
11626
+ )
11627
+ }, props)
11628
+ );
11629
+ };
11630
+ AlertDialogFooter.displayName = "AlertDialogFooter";
11631
+ var AlertDialogTitle2 = React57.forwardRef((_a, ref2) => {
11632
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11633
+ return /* @__PURE__ */ jsx42(
11634
+ Title2,
11635
+ __spreadValues({
11636
+ ref: ref2,
11637
+ className: cn("text-lg font-semibold", className)
11638
+ }, props)
11639
+ );
11640
+ });
11641
+ AlertDialogTitle2.displayName = Title2.displayName;
11642
+ var AlertDialogDescription2 = React57.forwardRef((_a, ref2) => {
11643
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11644
+ return /* @__PURE__ */ jsx42(
11645
+ Description2,
11646
+ __spreadValues({
11647
+ ref: ref2,
11648
+ className: cn("text-sm text-muted-foreground", className)
11649
+ }, props)
11650
+ );
11651
+ });
11652
+ AlertDialogDescription2.displayName = Description2.displayName;
11653
+ var AlertDialogAction2 = React57.forwardRef((_a, ref2) => {
11654
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11655
+ return /* @__PURE__ */ jsx42(
11656
+ Action,
11657
+ __spreadValues({
11658
+ ref: ref2,
11659
+ className: cn(buttonVariants(), className)
11660
+ }, props)
11661
+ );
11662
+ });
11663
+ AlertDialogAction2.displayName = Action.displayName;
11664
+ var AlertDialogCancel2 = React57.forwardRef((_a, ref2) => {
11665
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11666
+ return /* @__PURE__ */ jsx42(
11667
+ Cancel,
11668
+ __spreadValues({
11669
+ ref: ref2,
11670
+ className: cn(
11671
+ buttonVariants({ variant: "outline" }),
11672
+ "mt-2 sm:mt-0",
11673
+ className
11674
+ )
11675
+ }, props)
11676
+ );
11677
+ });
11678
+ AlertDialogCancel2.displayName = Cancel.displayName;
11679
+
11680
+ // src/fuma/mdx/mermaid.tsx
11681
+ import { useTheme } from "next-themes";
11682
+ import { useCallback as useCallback7, useEffect as useEffect15, useId as useId2, useRef as useRef11, useState as useState10 } from "react";
11683
+ import { jsx as jsx43, jsxs as jsxs14 } from "react/jsx-runtime";
11684
+
11685
+ // src/fuma/mdx/image-zoom.tsx
11686
+ import { Image } from "fumadocs-core/framework";
11687
+ import { useState as useState11 } from "react";
11688
+ import Zoom from "react-medium-image-zoom";
11689
+ import { jsx as jsx44 } from "react/jsx-runtime";
11690
+
11691
+ // src/fuma/mdx/trophy-card.tsx
11692
+ import { jsx as jsx45, jsxs as jsxs15 } from "react/jsx-runtime";
11693
+
11694
+ // src/fuma/mdx/image-grid.tsx
11695
+ import { jsx as jsx46 } from "react/jsx-runtime";
11696
+
11697
+ // src/fuma/mdx/zia-card.tsx
11698
+ import Link2 from "next/link";
11699
+ import { jsx as jsx47, jsxs as jsxs16 } from "react/jsx-runtime";
11700
+
9442
11701
  // src/fuma/mdx/gradient-button.tsx
9443
11702
  import Link3 from "next/link";
9444
- import React36, { useState as useState3 } from "react";
9445
- import { Fragment as Fragment3, jsx as jsx40, jsxs as jsxs14 } from "react/jsx-runtime";
11703
+ import React58, { useState as useState12 } from "react";
11704
+ import { Fragment as Fragment6, jsx as jsx48, jsxs as jsxs17 } from "react/jsx-runtime";
9446
11705
 
9447
11706
  // src/fuma/mdx/toc-base.tsx
9448
- import { useState as useState4 } from "react";
11707
+ import { useState as useState13 } from "react";
9449
11708
  import { useParams } from "next/navigation";
9450
11709
  import { useCopyButton } from "fumadocs-ui/utils/use-copy-button";
9451
11710
  import Link4 from "fumadocs-core/link";
9452
- import { Fragment as Fragment4, jsx as jsx41, jsxs as jsxs15 } from "react/jsx-runtime";
11711
+ import { Fragment as Fragment7, jsx as jsx49, jsxs as jsxs18 } from "react/jsx-runtime";
9453
11712
  function EditOnGitHub({ url }) {
9454
- return /* @__PURE__ */ jsxs15(
11713
+ return /* @__PURE__ */ jsxs18(
9455
11714
  Link4,
9456
11715
  {
9457
11716
  className: "flex items-center gap-x-2 text-stone-600 hover:text-stone-500 dark:text-stone-400 dark:hover:text-stone-300 text-sm",
9458
11717
  href: url,
9459
11718
  children: [
9460
- /* @__PURE__ */ jsx41(globalLucideIcons.GitHub, {}),
11719
+ /* @__PURE__ */ jsx49(globalLucideIcons.GitHub, {}),
9461
11720
  "Edit this page on GitHub"
9462
11721
  ]
9463
11722
  }
9464
11723
  );
9465
11724
  }
9466
11725
  function LastUpdatedDate({ date }) {
9467
- return /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-x-2 text-stone-600 dark:text-stone-400 text-sm", children: [
9468
- /* @__PURE__ */ jsx41(globalLucideIcons.LastUpdated, {}),
11726
+ return /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-x-2 text-stone-600 dark:text-stone-400 text-sm", children: [
11727
+ /* @__PURE__ */ jsx49(globalLucideIcons.LastUpdated, {}),
9469
11728
  "Lastest on ",
9470
11729
  date ? date : "Ages ago"
9471
11730
  ] });
@@ -9476,8 +11735,8 @@ import { useTranslations } from "next-intl";
9476
11735
 
9477
11736
  // src/fuma/mdx/banner.tsx
9478
11737
  import { cva as cva2 } from "class-variance-authority";
9479
- import { useEffect as useEffect2, useState as useState5 } from "react";
9480
- import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs16 } from "react/jsx-runtime";
11738
+ import { useEffect as useEffect16, useState as useState14 } from "react";
11739
+ import { Fragment as Fragment8, jsx as jsx50, jsxs as jsxs19 } from "react/jsx-runtime";
9481
11740
  var buttonVariants2 = cva2(
9482
11741
  "inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50",
9483
11742
  {
@@ -9498,39 +11757,39 @@ var buttonVariants2 = cva2(
9498
11757
  );
9499
11758
 
9500
11759
  // src/fuma/mdx/fuma-banner-suit.tsx
9501
- import { Fragment as Fragment6, jsx as jsx43 } from "react/jsx-runtime";
11760
+ import { Fragment as Fragment9, jsx as jsx51 } from "react/jsx-runtime";
9502
11761
 
9503
11762
  // src/fuma/mdx/fuma-github-info.tsx
9504
- import { useEffect as useEffect3, useState as useState6 } from "react";
9505
- import { jsx as jsx44, jsxs as jsxs17 } from "react/jsx-runtime";
11763
+ import { useEffect as useEffect17, useState as useState15 } from "react";
11764
+ import { jsx as jsx52, jsxs as jsxs20 } from "react/jsx-runtime";
9506
11765
 
9507
11766
  // src/fuma/mdx/site-x.tsx
9508
11767
  import { useTranslations as useTranslations2 } from "next-intl";
9509
- import { jsx as jsx45 } from "react/jsx-runtime";
11768
+ import { jsx as jsx53 } from "react/jsx-runtime";
9510
11769
 
9511
11770
  // src/fuma/mdx/zia-file.tsx
9512
- import { useState as useState7 } from "react";
11771
+ import { useState as useState16 } from "react";
9513
11772
  import {
9514
11773
  Collapsible,
9515
11774
  CollapsibleContent,
9516
11775
  CollapsibleTrigger
9517
11776
  } from "fumadocs-ui/components/ui/collapsible";
9518
11777
  import Link5 from "next/link";
9519
- import { jsx as jsx46, jsxs as jsxs18 } from "react/jsx-runtime";
11778
+ import { jsx as jsx54, jsxs as jsxs21 } from "react/jsx-runtime";
9520
11779
 
9521
11780
  // src/fuma/mdx/toc-footer-wrapper.tsx
9522
- import { jsx as jsx47, jsxs as jsxs19 } from "react/jsx-runtime";
11781
+ import { jsx as jsx55, jsxs as jsxs22 } from "react/jsx-runtime";
9523
11782
  function TocFooterWrapper({ lastModified, editPath, githubBaseUrl, copyButtonComponent }) {
9524
11783
  const showEdit = githubBaseUrl && editPath;
9525
- return /* @__PURE__ */ jsxs19("div", { className: "flex flex-col gap-y-2 items-start m-4", children: [
9526
- /* @__PURE__ */ jsx47(LastUpdatedDate, { date: lastModified }),
11784
+ return /* @__PURE__ */ jsxs22("div", { className: "flex flex-col gap-y-2 items-start m-4", children: [
11785
+ /* @__PURE__ */ jsx55(LastUpdatedDate, { date: lastModified }),
9527
11786
  copyButtonComponent,
9528
- showEdit && /* @__PURE__ */ jsx47(EditOnGitHub, { url: `${githubBaseUrl}${editPath}` })
11787
+ showEdit && /* @__PURE__ */ jsx55(EditOnGitHub, { url: `${githubBaseUrl}${editPath}` })
9529
11788
  ] });
9530
11789
  }
9531
11790
 
9532
11791
  // src/fuma/fuma-page-genarator.tsx
9533
- import { jsx as jsx48, jsxs as jsxs20 } from "react/jsx-runtime";
11792
+ import { jsx as jsx56, jsxs as jsxs23 } from "react/jsx-runtime";
9534
11793
  function createFumaPage({
9535
11794
  sourceKey,
9536
11795
  mdxContentSource,
@@ -9547,20 +11806,20 @@ function createFumaPage({
9547
11806
  const { slug, locale } = yield params;
9548
11807
  const page = mdxContentSource.getPage(slug, locale);
9549
11808
  if (!page) {
9550
- return /* @__PURE__ */ jsx48(FallbackPage, { siteIcon });
11809
+ return /* @__PURE__ */ jsx56(FallbackPage, { siteIcon });
9551
11810
  }
9552
11811
  const path2 = githubBaseUrl ? `${mdxSourceDir}/${page.file.path}` : void 0;
9553
- const tocFooterElement = /* @__PURE__ */ jsx48(
11812
+ const tocFooterElement = /* @__PURE__ */ jsx56(
9554
11813
  TocFooterWrapper,
9555
11814
  {
9556
11815
  lastModified: page.data.date,
9557
- copyButtonComponent: copyButtonComponent ? cloneElement2(copyButtonComponent, { sourceKey }) : void 0,
11816
+ copyButtonComponent: copyButtonComponent ? cloneElement4(copyButtonComponent, { sourceKey }) : void 0,
9558
11817
  editPath: path2,
9559
11818
  githubBaseUrl
9560
11819
  }
9561
11820
  );
9562
11821
  const MDX = page.data.body;
9563
- return /* @__PURE__ */ jsxs20(
11822
+ return /* @__PURE__ */ jsxs23(
9564
11823
  DocsPage,
9565
11824
  {
9566
11825
  tableOfContent: { style: "clerk", single: false, footer: tocFooterElement },
@@ -9569,9 +11828,9 @@ function createFumaPage({
9569
11828
  full: page.data.full,
9570
11829
  article: { className: "max-sm:pb-16" },
9571
11830
  children: [
9572
- /* @__PURE__ */ jsx48(DocsTitle, { children: page.data.title }),
9573
- /* @__PURE__ */ jsx48(DocsDescription, { className: "mb-2", children: page.data.description }),
9574
- /* @__PURE__ */ jsx48(DocsBody, { className: "text-fd-foreground/80", children: /* @__PURE__ */ jsx48(MDX, { components: getMDXComponents() }) })
11831
+ /* @__PURE__ */ jsx56(DocsTitle, { children: page.data.title }),
11832
+ /* @__PURE__ */ jsx56(DocsDescription, { className: "mb-2", children: page.data.description }),
11833
+ /* @__PURE__ */ jsx56(DocsBody, { className: "text-fd-foreground/80", children: /* @__PURE__ */ jsx56(MDX, { components: getMDXComponents() }) })
9575
11834
  ]
9576
11835
  }
9577
11836
  );
@@ -13021,9 +15280,9 @@ var SpliceBuffer = class {
13021
15280
  * Any removed items.
13022
15281
  */
13023
15282
  splice(start2, deleteCount, items) {
13024
- const count = deleteCount || 0;
15283
+ const count3 = deleteCount || 0;
13025
15284
  this.setCursor(Math.trunc(start2));
13026
- const removed = this.right.splice(this.right.length - count, Number.POSITIVE_INFINITY);
15285
+ const removed = this.right.splice(this.right.length - count3, Number.POSITIVE_INFINITY);
13027
15286
  if (items) chunkedPush(this.left, items);
13028
15287
  return removed.reverse();
13029
15288
  }
@@ -15641,7 +17900,7 @@ function serializeChunks(chunks, expandTabs) {
15641
17900
  }
15642
17901
 
15643
17902
  // ../../node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.js
15644
- function parse(options) {
17903
+ function parse2(options) {
15645
17904
  const settings = options || {};
15646
17905
  const constructs2 = (
15647
17906
  /** @type {FullNormalizedExtension} */
@@ -15803,7 +18062,7 @@ function fromMarkdown(value2, encoding, options) {
15803
18062
  options = encoding;
15804
18063
  encoding = void 0;
15805
18064
  }
15806
- return compiler(options)(postprocess(parse(options).document().write(preprocess()(value2, encoding, true))));
18065
+ return compiler(options)(postprocess(parse2(options).document().write(preprocess()(value2, encoding, true))));
15807
18066
  }
15808
18067
  function compiler(options) {
15809
18068
  const config = {
@@ -16642,18 +18901,18 @@ function longestStreak(value2, substring) {
16642
18901
  const source = String(value2);
16643
18902
  let index2 = source.indexOf(substring);
16644
18903
  let expected = index2;
16645
- let count = 0;
18904
+ let count3 = 0;
16646
18905
  let max = 0;
16647
18906
  if (typeof substring !== "string") {
16648
18907
  throw new TypeError("Expected substring");
16649
18908
  }
16650
18909
  while (index2 !== -1) {
16651
18910
  if (index2 === expected) {
16652
- if (++count > max) {
16653
- max = count;
18911
+ if (++count3 > max) {
18912
+ max = count3;
16654
18913
  }
16655
18914
  } else {
16656
- count = 1;
18915
+ count3 = 1;
16657
18916
  }
16658
18917
  expected = index2 + substring.length;
16659
18918
  index2 = source.indexOf(substring, expected);
@@ -18276,7 +20535,7 @@ function wrap(middleware, callback) {
18276
20535
  }
18277
20536
  }
18278
20537
 
18279
- // ../../node_modules/.pnpm/vfile-message@4.0.2/node_modules/vfile-message/lib/index.js
20538
+ // ../../node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.js
18280
20539
  var VFileMessage = class extends Error {
18281
20540
  /**
18282
20541
  * Create a message for `reason`.
@@ -18383,7 +20642,7 @@ var VFileMessage = class extends Error {
18383
20642
  this.cause = options.cause || void 0;
18384
20643
  this.column = start2 ? start2.column : void 0;
18385
20644
  this.fatal = void 0;
18386
- this.file;
20645
+ this.file = "";
18387
20646
  this.message = reason;
18388
20647
  this.line = start2 ? start2.line : void 0;
18389
20648
  this.name = stringifyPosition(options.place) || "1:1";
@@ -18392,10 +20651,10 @@ var VFileMessage = class extends Error {
18392
20651
  this.ruleId = options.ruleId || void 0;
18393
20652
  this.source = options.source || void 0;
18394
20653
  this.stack = legacyCause && options.cause && typeof options.cause.stack === "string" ? options.cause.stack : "";
18395
- this.actual;
18396
- this.expected;
18397
- this.note;
18398
- this.url;
20654
+ this.actual = void 0;
20655
+ this.expected = void 0;
20656
+ this.note = void 0;
20657
+ this.url = void 0;
18399
20658
  }
18400
20659
  };
18401
20660
  VFileMessage.prototype.file = "";
@@ -19559,13 +21818,13 @@ function ccount(value2, character) {
19559
21818
  if (typeof character !== "string") {
19560
21819
  throw new TypeError("Expected character");
19561
21820
  }
19562
- let count = 0;
21821
+ let count3 = 0;
19563
21822
  let index2 = source.indexOf(character);
19564
21823
  while (index2 !== -1) {
19565
- count++;
21824
+ count3++;
19566
21825
  index2 = source.indexOf(character, index2 + character.length);
19567
21826
  }
19568
- return count;
21827
+ return count3;
19569
21828
  }
19570
21829
 
19571
21830
  // ../../node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js
@@ -23182,7 +25441,7 @@ var Parser = function Parser2(options, input, startPos) {
23182
25441
  this.privateNameStack = [];
23183
25442
  };
23184
25443
  var prototypeAccessors = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
23185
- Parser.prototype.parse = function parse2() {
25444
+ Parser.prototype.parse = function parse3() {
23186
25445
  var node2 = this.options.program || this.startNode();
23187
25446
  this.nextToken();
23188
25447
  return this.parseTopLevel(node2);
@@ -23242,7 +25501,7 @@ Parser.extend = function extend2() {
23242
25501
  }
23243
25502
  return cls;
23244
25503
  };
23245
- Parser.parse = function parse3(input, options) {
25504
+ Parser.parse = function parse4(input, options) {
23246
25505
  return new this(options, input).parse();
23247
25506
  };
23248
25507
  Parser.parseExpressionAt = function parseExpressionAt(input, pos, options) {
@@ -26045,7 +28304,7 @@ pp$3.currentThisScope = function() {
26045
28304
  }
26046
28305
  }
26047
28306
  };
26048
- var Node = function Node2(parser, pos, loc) {
28307
+ var Node2 = function Node3(parser, pos, loc) {
26049
28308
  this.type = "";
26050
28309
  this.start = pos;
26051
28310
  this.end = 0;
@@ -26061,10 +28320,10 @@ var Node = function Node2(parser, pos, loc) {
26061
28320
  };
26062
28321
  var pp$2 = Parser.prototype;
26063
28322
  pp$2.startNode = function() {
26064
- return new Node(this, this.start, this.startLoc);
28323
+ return new Node2(this, this.start, this.startLoc);
26065
28324
  };
26066
28325
  pp$2.startNodeAt = function(pos, loc) {
26067
- return new Node(this, pos, loc);
28326
+ return new Node2(this, pos, loc);
26068
28327
  };
26069
28328
  function finishNodeAt(node2, type, pos, loc) {
26070
28329
  node2.type = type;
@@ -26084,7 +28343,7 @@ pp$2.finishNodeAt = function(node2, type, pos, loc) {
26084
28343
  return finishNodeAt.call(this, node2, type, pos, loc);
26085
28344
  };
26086
28345
  pp$2.copyNode = function(node2) {
26087
- var newNode = new Node(this, node2.start, this.startLoc);
28346
+ var newNode = new Node2(this, node2.start, this.startLoc);
26088
28347
  for (var prop in node2) {
26089
28348
  newNode[prop] = node2[prop];
26090
28349
  }
@@ -27285,11 +29544,11 @@ pp$1.regexp_classStringDisjunctionContents = function(state) {
27285
29544
  return result;
27286
29545
  };
27287
29546
  pp$1.regexp_classString = function(state) {
27288
- var count = 0;
29547
+ var count3 = 0;
27289
29548
  while (this.regexp_eatClassSetCharacter(state)) {
27290
- count++;
29549
+ count3++;
27291
29550
  }
27292
- return count === 1 ? CharSetOk : CharSetString;
29551
+ return count3 === 1 ? CharSetOk : CharSetString;
27293
29552
  };
27294
29553
  pp$1.regexp_eatClassSetCharacter = function(state) {
27295
29554
  var start2 = state.pos;
@@ -28296,7 +30555,7 @@ Parser.acorn = {
28296
30555
  Position,
28297
30556
  SourceLocation,
28298
30557
  getLineInfo,
28299
- Node,
30558
+ Node: Node2,
28300
30559
  TokenType,
28301
30560
  tokTypes: types$1,
28302
30561
  keywordTypes: keywords,