negative-space 2.5.0 → 2.5.1

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.
@@ -1,2279 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var provider = require('@negative-space/provider');
3
+ var primitive = require('@negative-space/primitive');
4
4
 
5
- var __create = Object.create;
6
- var __defProp = Object.defineProperty;
7
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
- var __getOwnPropNames = Object.getOwnPropertyNames;
9
- var __getProtoOf = Object.getPrototypeOf;
10
- var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
- };
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
- mod
29
- ));
30
5
 
31
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.production.js
32
- var require_react_production = __commonJS({
33
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.production.js"(exports$1) {
34
- var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
35
- var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
36
- var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
37
- var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
38
- var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
39
- var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
40
- var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
41
- var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
42
- var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
43
- var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
44
- var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
45
- var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
46
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
47
- function getIteratorFn(maybeIterable) {
48
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
49
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
50
- return "function" === typeof maybeIterable ? maybeIterable : null;
51
- }
52
- var ReactNoopUpdateQueue = {
53
- isMounted: function() {
54
- return false;
55
- },
56
- enqueueForceUpdate: function() {
57
- },
58
- enqueueReplaceState: function() {
59
- },
60
- enqueueSetState: function() {
61
- }
62
- };
63
- var assign = Object.assign;
64
- var emptyObject = {};
65
- function Component(props, context, updater) {
66
- this.props = props;
67
- this.context = context;
68
- this.refs = emptyObject;
69
- this.updater = updater || ReactNoopUpdateQueue;
70
- }
71
- Component.prototype.isReactComponent = {};
72
- Component.prototype.setState = function(partialState, callback) {
73
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
74
- throw Error(
75
- "takes an object of state variables to update or a function which returns an object of state variables."
76
- );
77
- this.updater.enqueueSetState(this, partialState, callback, "setState");
78
- };
79
- Component.prototype.forceUpdate = function(callback) {
80
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
81
- };
82
- function ComponentDummy() {
83
- }
84
- ComponentDummy.prototype = Component.prototype;
85
- function PureComponent(props, context, updater) {
86
- this.props = props;
87
- this.context = context;
88
- this.refs = emptyObject;
89
- this.updater = updater || ReactNoopUpdateQueue;
90
- }
91
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
92
- pureComponentPrototype.constructor = PureComponent;
93
- assign(pureComponentPrototype, Component.prototype);
94
- pureComponentPrototype.isPureReactComponent = true;
95
- var isArrayImpl = Array.isArray;
96
- function noop() {
97
- }
98
- var ReactSharedInternals = { H: null, A: null, T: null, S: null };
99
- var hasOwnProperty = Object.prototype.hasOwnProperty;
100
- function ReactElement(type, key, props) {
101
- var refProp = props.ref;
102
- return {
103
- $$typeof: REACT_ELEMENT_TYPE,
104
- type,
105
- key,
106
- ref: void 0 !== refProp ? refProp : null,
107
- props
108
- };
109
- }
110
- function cloneAndReplaceKey(oldElement, newKey) {
111
- return ReactElement(oldElement.type, newKey, oldElement.props);
112
- }
113
- function isValidElement(object) {
114
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
115
- }
116
- function escape(key) {
117
- var escaperLookup = { "=": "=0", ":": "=2" };
118
- return "$" + key.replace(/[=:]/g, function(match) {
119
- return escaperLookup[match];
120
- });
121
- }
122
- var userProvidedKeyEscapeRegex = /\/+/g;
123
- function getElementKey(element, index) {
124
- return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
125
- }
126
- function resolveThenable(thenable) {
127
- switch (thenable.status) {
128
- case "fulfilled":
129
- return thenable.value;
130
- case "rejected":
131
- throw thenable.reason;
132
- default:
133
- switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
134
- function(fulfilledValue) {
135
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
136
- },
137
- function(error) {
138
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
139
- }
140
- )), thenable.status) {
141
- case "fulfilled":
142
- return thenable.value;
143
- case "rejected":
144
- throw thenable.reason;
145
- }
146
- }
147
- throw thenable;
148
- }
149
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
150
- var type = typeof children;
151
- if ("undefined" === type || "boolean" === type) children = null;
152
- var invokeCallback = false;
153
- if (null === children) invokeCallback = true;
154
- else
155
- switch (type) {
156
- case "bigint":
157
- case "string":
158
- case "number":
159
- invokeCallback = true;
160
- break;
161
- case "object":
162
- switch (children.$$typeof) {
163
- case REACT_ELEMENT_TYPE:
164
- case REACT_PORTAL_TYPE:
165
- invokeCallback = true;
166
- break;
167
- case REACT_LAZY_TYPE:
168
- return invokeCallback = children._init, mapIntoArray(
169
- invokeCallback(children._payload),
170
- array,
171
- escapedPrefix,
172
- nameSoFar,
173
- callback
174
- );
175
- }
176
- }
177
- if (invokeCallback)
178
- return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
179
- return c;
180
- })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
181
- callback,
182
- escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
183
- userProvidedKeyEscapeRegex,
184
- "$&/"
185
- ) + "/") + invokeCallback
186
- )), array.push(callback)), 1;
187
- invokeCallback = 0;
188
- var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
189
- if (isArrayImpl(children))
190
- for (var i = 0; i < children.length; i++)
191
- nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
192
- nameSoFar,
193
- array,
194
- escapedPrefix,
195
- type,
196
- callback
197
- );
198
- else if (i = getIteratorFn(children), "function" === typeof i)
199
- for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
200
- nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
201
- nameSoFar,
202
- array,
203
- escapedPrefix,
204
- type,
205
- callback
206
- );
207
- else if ("object" === type) {
208
- if ("function" === typeof children.then)
209
- return mapIntoArray(
210
- resolveThenable(children),
211
- array,
212
- escapedPrefix,
213
- nameSoFar,
214
- callback
215
- );
216
- array = String(children);
217
- throw Error(
218
- "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
219
- );
220
- }
221
- return invokeCallback;
222
- }
223
- function mapChildren(children, func, context) {
224
- if (null == children) return children;
225
- var result = [], count = 0;
226
- mapIntoArray(children, result, "", "", function(child) {
227
- return func.call(context, child, count++);
228
- });
229
- return result;
230
- }
231
- function lazyInitializer(payload) {
232
- if (-1 === payload._status) {
233
- var ctor = payload._result;
234
- ctor = ctor();
235
- ctor.then(
236
- function(moduleObject) {
237
- if (0 === payload._status || -1 === payload._status)
238
- payload._status = 1, payload._result = moduleObject;
239
- },
240
- function(error) {
241
- if (0 === payload._status || -1 === payload._status)
242
- payload._status = 2, payload._result = error;
243
- }
244
- );
245
- -1 === payload._status && (payload._status = 0, payload._result = ctor);
246
- }
247
- if (1 === payload._status) return payload._result.default;
248
- throw payload._result;
249
- }
250
- var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
251
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
252
- var event = new window.ErrorEvent("error", {
253
- bubbles: true,
254
- cancelable: true,
255
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
256
- error
257
- });
258
- if (!window.dispatchEvent(event)) return;
259
- } else if ("object" === typeof process && "function" === typeof process.emit) {
260
- process.emit("uncaughtException", error);
261
- return;
262
- }
263
- console.error(error);
264
- };
265
- var Children = {
266
- map: mapChildren,
267
- forEach: function(children, forEachFunc, forEachContext) {
268
- mapChildren(
269
- children,
270
- function() {
271
- forEachFunc.apply(this, arguments);
272
- },
273
- forEachContext
274
- );
275
- },
276
- count: function(children) {
277
- var n = 0;
278
- mapChildren(children, function() {
279
- n++;
280
- });
281
- return n;
282
- },
283
- toArray: function(children) {
284
- return mapChildren(children, function(child) {
285
- return child;
286
- }) || [];
287
- },
288
- only: function(children) {
289
- if (!isValidElement(children))
290
- throw Error(
291
- "React.Children.only expected to receive a single React element child."
292
- );
293
- return children;
294
- }
295
- };
296
- exports$1.Activity = REACT_ACTIVITY_TYPE;
297
- exports$1.Children = Children;
298
- exports$1.Component = Component;
299
- exports$1.Fragment = REACT_FRAGMENT_TYPE;
300
- exports$1.Profiler = REACT_PROFILER_TYPE;
301
- exports$1.PureComponent = PureComponent;
302
- exports$1.StrictMode = REACT_STRICT_MODE_TYPE;
303
- exports$1.Suspense = REACT_SUSPENSE_TYPE;
304
- exports$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
305
- exports$1.__COMPILER_RUNTIME = {
306
- __proto__: null,
307
- c: function(size) {
308
- return ReactSharedInternals.H.useMemoCache(size);
309
- }
310
- };
311
- exports$1.cache = function(fn) {
312
- return function() {
313
- return fn.apply(null, arguments);
314
- };
315
- };
316
- exports$1.cacheSignal = function() {
317
- return null;
318
- };
319
- exports$1.cloneElement = function(element, config, children) {
320
- if (null === element || void 0 === element)
321
- throw Error(
322
- "The argument must be a React element, but you passed " + element + "."
323
- );
324
- var props = assign({}, element.props), key = element.key;
325
- if (null != config)
326
- for (propName in void 0 !== config.key && (key = "" + config.key), config)
327
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
328
- var propName = arguments.length - 2;
329
- if (1 === propName) props.children = children;
330
- else if (1 < propName) {
331
- for (var childArray = Array(propName), i = 0; i < propName; i++)
332
- childArray[i] = arguments[i + 2];
333
- props.children = childArray;
334
- }
335
- return ReactElement(element.type, key, props);
336
- };
337
- exports$1.createContext = function(defaultValue) {
338
- defaultValue = {
339
- $$typeof: REACT_CONTEXT_TYPE,
340
- _currentValue: defaultValue,
341
- _currentValue2: defaultValue,
342
- _threadCount: 0,
343
- Provider: null,
344
- Consumer: null
345
- };
346
- defaultValue.Provider = defaultValue;
347
- defaultValue.Consumer = {
348
- $$typeof: REACT_CONSUMER_TYPE,
349
- _context: defaultValue
350
- };
351
- return defaultValue;
352
- };
353
- exports$1.createElement = function(type, config, children) {
354
- var propName, props = {}, key = null;
355
- if (null != config)
356
- for (propName in void 0 !== config.key && (key = "" + config.key), config)
357
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
358
- var childrenLength = arguments.length - 2;
359
- if (1 === childrenLength) props.children = children;
360
- else if (1 < childrenLength) {
361
- for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
362
- childArray[i] = arguments[i + 2];
363
- props.children = childArray;
364
- }
365
- if (type && type.defaultProps)
366
- for (propName in childrenLength = type.defaultProps, childrenLength)
367
- void 0 === props[propName] && (props[propName] = childrenLength[propName]);
368
- return ReactElement(type, key, props);
369
- };
370
- exports$1.createRef = function() {
371
- return { current: null };
372
- };
373
- exports$1.forwardRef = function(render) {
374
- return { $$typeof: REACT_FORWARD_REF_TYPE, render };
375
- };
376
- exports$1.isValidElement = isValidElement;
377
- exports$1.lazy = function(ctor) {
378
- return {
379
- $$typeof: REACT_LAZY_TYPE,
380
- _payload: { _status: -1, _result: ctor },
381
- _init: lazyInitializer
382
- };
383
- };
384
- exports$1.memo = function(type, compare) {
385
- return {
386
- $$typeof: REACT_MEMO_TYPE,
387
- type,
388
- compare: void 0 === compare ? null : compare
389
- };
390
- };
391
- exports$1.startTransition = function(scope) {
392
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
393
- ReactSharedInternals.T = currentTransition;
394
- try {
395
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
396
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
397
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
398
- } catch (error) {
399
- reportGlobalError(error);
400
- } finally {
401
- null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
402
- }
403
- };
404
- exports$1.unstable_useCacheRefresh = function() {
405
- return ReactSharedInternals.H.useCacheRefresh();
406
- };
407
- exports$1.use = function(usable) {
408
- return ReactSharedInternals.H.use(usable);
409
- };
410
- exports$1.useActionState = function(action, initialState, permalink) {
411
- return ReactSharedInternals.H.useActionState(action, initialState, permalink);
412
- };
413
- exports$1.useCallback = function(callback, deps) {
414
- return ReactSharedInternals.H.useCallback(callback, deps);
415
- };
416
- exports$1.useContext = function(Context) {
417
- return ReactSharedInternals.H.useContext(Context);
418
- };
419
- exports$1.useDebugValue = function() {
420
- };
421
- exports$1.useDeferredValue = function(value, initialValue) {
422
- return ReactSharedInternals.H.useDeferredValue(value, initialValue);
423
- };
424
- exports$1.useEffect = function(create, deps) {
425
- return ReactSharedInternals.H.useEffect(create, deps);
426
- };
427
- exports$1.useEffectEvent = function(callback) {
428
- return ReactSharedInternals.H.useEffectEvent(callback);
429
- };
430
- exports$1.useId = function() {
431
- return ReactSharedInternals.H.useId();
432
- };
433
- exports$1.useImperativeHandle = function(ref, create, deps) {
434
- return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
435
- };
436
- exports$1.useInsertionEffect = function(create, deps) {
437
- return ReactSharedInternals.H.useInsertionEffect(create, deps);
438
- };
439
- exports$1.useLayoutEffect = function(create, deps) {
440
- return ReactSharedInternals.H.useLayoutEffect(create, deps);
441
- };
442
- exports$1.useMemo = function(create, deps) {
443
- return ReactSharedInternals.H.useMemo(create, deps);
444
- };
445
- exports$1.useOptimistic = function(passthrough, reducer) {
446
- return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
447
- };
448
- exports$1.useReducer = function(reducer, initialArg, init) {
449
- return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
450
- };
451
- exports$1.useRef = function(initialValue) {
452
- return ReactSharedInternals.H.useRef(initialValue);
453
- };
454
- exports$1.useState = function(initialState) {
455
- return ReactSharedInternals.H.useState(initialState);
456
- };
457
- exports$1.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
458
- return ReactSharedInternals.H.useSyncExternalStore(
459
- subscribe,
460
- getSnapshot,
461
- getServerSnapshot
462
- );
463
- };
464
- exports$1.useTransition = function() {
465
- return ReactSharedInternals.H.useTransition();
466
- };
467
- exports$1.version = "19.2.3";
468
- }
469
- });
470
-
471
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.development.js
472
- var require_react_development = __commonJS({
473
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.development.js"(exports$1, module) {
474
- "production" !== process.env.NODE_ENV && (function() {
475
- function defineDeprecationWarning(methodName, info) {
476
- Object.defineProperty(Component.prototype, methodName, {
477
- get: function() {
478
- console.warn(
479
- "%s(...) is deprecated in plain JavaScript React classes. %s",
480
- info[0],
481
- info[1]
482
- );
483
- }
484
- });
485
- }
486
- function getIteratorFn(maybeIterable) {
487
- if (null === maybeIterable || "object" !== typeof maybeIterable)
488
- return null;
489
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
490
- return "function" === typeof maybeIterable ? maybeIterable : null;
491
- }
492
- function warnNoop(publicInstance, callerName) {
493
- publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
494
- var warningKey = publicInstance + "." + callerName;
495
- didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
496
- "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
497
- callerName,
498
- publicInstance
499
- ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
500
- }
501
- function Component(props, context, updater) {
502
- this.props = props;
503
- this.context = context;
504
- this.refs = emptyObject;
505
- this.updater = updater || ReactNoopUpdateQueue;
506
- }
507
- function ComponentDummy() {
508
- }
509
- function PureComponent(props, context, updater) {
510
- this.props = props;
511
- this.context = context;
512
- this.refs = emptyObject;
513
- this.updater = updater || ReactNoopUpdateQueue;
514
- }
515
- function noop() {
516
- }
517
- function testStringCoercion(value) {
518
- return "" + value;
519
- }
520
- function checkKeyStringCoercion(value) {
521
- try {
522
- testStringCoercion(value);
523
- var JSCompiler_inline_result = false;
524
- } catch (e) {
525
- JSCompiler_inline_result = true;
526
- }
527
- if (JSCompiler_inline_result) {
528
- JSCompiler_inline_result = console;
529
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
530
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
531
- JSCompiler_temp_const.call(
532
- JSCompiler_inline_result,
533
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
534
- JSCompiler_inline_result$jscomp$0
535
- );
536
- return testStringCoercion(value);
537
- }
538
- }
539
- function getComponentNameFromType(type) {
540
- if (null == type) return null;
541
- if ("function" === typeof type)
542
- return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
543
- if ("string" === typeof type) return type;
544
- switch (type) {
545
- case REACT_FRAGMENT_TYPE:
546
- return "Fragment";
547
- case REACT_PROFILER_TYPE:
548
- return "Profiler";
549
- case REACT_STRICT_MODE_TYPE:
550
- return "StrictMode";
551
- case REACT_SUSPENSE_TYPE:
552
- return "Suspense";
553
- case REACT_SUSPENSE_LIST_TYPE:
554
- return "SuspenseList";
555
- case REACT_ACTIVITY_TYPE:
556
- return "Activity";
557
- }
558
- if ("object" === typeof type)
559
- switch ("number" === typeof type.tag && console.error(
560
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
561
- ), type.$$typeof) {
562
- case REACT_PORTAL_TYPE:
563
- return "Portal";
564
- case REACT_CONTEXT_TYPE:
565
- return type.displayName || "Context";
566
- case REACT_CONSUMER_TYPE:
567
- return (type._context.displayName || "Context") + ".Consumer";
568
- case REACT_FORWARD_REF_TYPE:
569
- var innerType = type.render;
570
- type = type.displayName;
571
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
572
- return type;
573
- case REACT_MEMO_TYPE:
574
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
575
- case REACT_LAZY_TYPE:
576
- innerType = type._payload;
577
- type = type._init;
578
- try {
579
- return getComponentNameFromType(type(innerType));
580
- } catch (x) {
581
- }
582
- }
583
- return null;
584
- }
585
- function getTaskName(type) {
586
- if (type === REACT_FRAGMENT_TYPE) return "<>";
587
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
588
- return "<...>";
589
- try {
590
- var name = getComponentNameFromType(type);
591
- return name ? "<" + name + ">" : "<...>";
592
- } catch (x) {
593
- return "<...>";
594
- }
595
- }
596
- function getOwner() {
597
- var dispatcher = ReactSharedInternals.A;
598
- return null === dispatcher ? null : dispatcher.getOwner();
599
- }
600
- function UnknownOwner() {
601
- return Error("react-stack-top-frame");
602
- }
603
- function hasValidKey(config) {
604
- if (hasOwnProperty.call(config, "key")) {
605
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
606
- if (getter && getter.isReactWarning) return false;
607
- }
608
- return void 0 !== config.key;
609
- }
610
- function defineKeyPropWarningGetter(props, displayName) {
611
- function warnAboutAccessingKey() {
612
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
613
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
614
- displayName
615
- ));
616
- }
617
- warnAboutAccessingKey.isReactWarning = true;
618
- Object.defineProperty(props, "key", {
619
- get: warnAboutAccessingKey,
620
- configurable: true
621
- });
622
- }
623
- function elementRefGetterWithDeprecationWarning() {
624
- var componentName = getComponentNameFromType(this.type);
625
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
626
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
627
- ));
628
- componentName = this.props.ref;
629
- return void 0 !== componentName ? componentName : null;
630
- }
631
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
632
- var refProp = props.ref;
633
- type = {
634
- $$typeof: REACT_ELEMENT_TYPE,
635
- type,
636
- key,
637
- props,
638
- _owner: owner
639
- };
640
- null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
641
- enumerable: false,
642
- get: elementRefGetterWithDeprecationWarning
643
- }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
644
- type._store = {};
645
- Object.defineProperty(type._store, "validated", {
646
- configurable: false,
647
- enumerable: false,
648
- writable: true,
649
- value: 0
650
- });
651
- Object.defineProperty(type, "_debugInfo", {
652
- configurable: false,
653
- enumerable: false,
654
- writable: true,
655
- value: null
656
- });
657
- Object.defineProperty(type, "_debugStack", {
658
- configurable: false,
659
- enumerable: false,
660
- writable: true,
661
- value: debugStack
662
- });
663
- Object.defineProperty(type, "_debugTask", {
664
- configurable: false,
665
- enumerable: false,
666
- writable: true,
667
- value: debugTask
668
- });
669
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
670
- return type;
671
- }
672
- function cloneAndReplaceKey(oldElement, newKey) {
673
- newKey = ReactElement(
674
- oldElement.type,
675
- newKey,
676
- oldElement.props,
677
- oldElement._owner,
678
- oldElement._debugStack,
679
- oldElement._debugTask
680
- );
681
- oldElement._store && (newKey._store.validated = oldElement._store.validated);
682
- return newKey;
683
- }
684
- function validateChildKeys(node) {
685
- isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
686
- }
687
- function isValidElement(object) {
688
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
689
- }
690
- function escape(key) {
691
- var escaperLookup = { "=": "=0", ":": "=2" };
692
- return "$" + key.replace(/[=:]/g, function(match) {
693
- return escaperLookup[match];
694
- });
695
- }
696
- function getElementKey(element, index) {
697
- return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
698
- }
699
- function resolveThenable(thenable) {
700
- switch (thenable.status) {
701
- case "fulfilled":
702
- return thenable.value;
703
- case "rejected":
704
- throw thenable.reason;
705
- default:
706
- switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
707
- function(fulfilledValue) {
708
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
709
- },
710
- function(error) {
711
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
712
- }
713
- )), thenable.status) {
714
- case "fulfilled":
715
- return thenable.value;
716
- case "rejected":
717
- throw thenable.reason;
718
- }
719
- }
720
- throw thenable;
721
- }
722
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
723
- var type = typeof children;
724
- if ("undefined" === type || "boolean" === type) children = null;
725
- var invokeCallback = false;
726
- if (null === children) invokeCallback = true;
727
- else
728
- switch (type) {
729
- case "bigint":
730
- case "string":
731
- case "number":
732
- invokeCallback = true;
733
- break;
734
- case "object":
735
- switch (children.$$typeof) {
736
- case REACT_ELEMENT_TYPE:
737
- case REACT_PORTAL_TYPE:
738
- invokeCallback = true;
739
- break;
740
- case REACT_LAZY_TYPE:
741
- return invokeCallback = children._init, mapIntoArray(
742
- invokeCallback(children._payload),
743
- array,
744
- escapedPrefix,
745
- nameSoFar,
746
- callback
747
- );
748
- }
749
- }
750
- if (invokeCallback) {
751
- invokeCallback = children;
752
- callback = callback(invokeCallback);
753
- var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
754
- isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
755
- return c;
756
- })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
757
- callback,
758
- escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
759
- userProvidedKeyEscapeRegex,
760
- "$&/"
761
- ) + "/") + childKey
762
- ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
763
- return 1;
764
- }
765
- invokeCallback = 0;
766
- childKey = "" === nameSoFar ? "." : nameSoFar + ":";
767
- if (isArrayImpl(children))
768
- for (var i = 0; i < children.length; i++)
769
- nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
770
- nameSoFar,
771
- array,
772
- escapedPrefix,
773
- type,
774
- callback
775
- );
776
- else if (i = getIteratorFn(children), "function" === typeof i)
777
- for (i === children.entries && (didWarnAboutMaps || console.warn(
778
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
779
- ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
780
- nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
781
- nameSoFar,
782
- array,
783
- escapedPrefix,
784
- type,
785
- callback
786
- );
787
- else if ("object" === type) {
788
- if ("function" === typeof children.then)
789
- return mapIntoArray(
790
- resolveThenable(children),
791
- array,
792
- escapedPrefix,
793
- nameSoFar,
794
- callback
795
- );
796
- array = String(children);
797
- throw Error(
798
- "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
799
- );
800
- }
801
- return invokeCallback;
802
- }
803
- function mapChildren(children, func, context) {
804
- if (null == children) return children;
805
- var result = [], count = 0;
806
- mapIntoArray(children, result, "", "", function(child) {
807
- return func.call(context, child, count++);
808
- });
809
- return result;
810
- }
811
- function lazyInitializer(payload) {
812
- if (-1 === payload._status) {
813
- var ioInfo = payload._ioInfo;
814
- null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
815
- ioInfo = payload._result;
816
- var thenable = ioInfo();
817
- thenable.then(
818
- function(moduleObject) {
819
- if (0 === payload._status || -1 === payload._status) {
820
- payload._status = 1;
821
- payload._result = moduleObject;
822
- var _ioInfo = payload._ioInfo;
823
- null != _ioInfo && (_ioInfo.end = performance.now());
824
- void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
825
- }
826
- },
827
- function(error) {
828
- if (0 === payload._status || -1 === payload._status) {
829
- payload._status = 2;
830
- payload._result = error;
831
- var _ioInfo2 = payload._ioInfo;
832
- null != _ioInfo2 && (_ioInfo2.end = performance.now());
833
- void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
834
- }
835
- }
836
- );
837
- ioInfo = payload._ioInfo;
838
- if (null != ioInfo) {
839
- ioInfo.value = thenable;
840
- var displayName = thenable.displayName;
841
- "string" === typeof displayName && (ioInfo.name = displayName);
842
- }
843
- -1 === payload._status && (payload._status = 0, payload._result = thenable);
844
- }
845
- if (1 === payload._status)
846
- return ioInfo = payload._result, void 0 === ioInfo && console.error(
847
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
848
- ioInfo
849
- ), "default" in ioInfo || console.error(
850
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
851
- ioInfo
852
- ), ioInfo.default;
853
- throw payload._result;
854
- }
855
- function resolveDispatcher() {
856
- var dispatcher = ReactSharedInternals.H;
857
- null === dispatcher && console.error(
858
- "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
859
- );
860
- return dispatcher;
861
- }
862
- function releaseAsyncTransition() {
863
- ReactSharedInternals.asyncTransitions--;
864
- }
865
- function enqueueTask(task) {
866
- if (null === enqueueTaskImpl)
867
- try {
868
- var requireString = ("require" + Math.random()).slice(0, 7);
869
- enqueueTaskImpl = (module && module[requireString]).call(
870
- module,
871
- "timers"
872
- ).setImmediate;
873
- } catch (_err) {
874
- enqueueTaskImpl = function(callback) {
875
- false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
876
- "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
877
- ));
878
- var channel = new MessageChannel();
879
- channel.port1.onmessage = callback;
880
- channel.port2.postMessage(void 0);
881
- };
882
- }
883
- return enqueueTaskImpl(task);
884
- }
885
- function aggregateErrors(errors) {
886
- return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
887
- }
888
- function popActScope(prevActQueue, prevActScopeDepth) {
889
- prevActScopeDepth !== actScopeDepth - 1 && console.error(
890
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
891
- );
892
- actScopeDepth = prevActScopeDepth;
893
- }
894
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
895
- var queue = ReactSharedInternals.actQueue;
896
- if (null !== queue)
897
- if (0 !== queue.length)
898
- try {
899
- flushActQueue(queue);
900
- enqueueTask(function() {
901
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
902
- });
903
- return;
904
- } catch (error) {
905
- ReactSharedInternals.thrownErrors.push(error);
906
- }
907
- else ReactSharedInternals.actQueue = null;
908
- 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
909
- }
910
- function flushActQueue(queue) {
911
- if (!isFlushing) {
912
- isFlushing = true;
913
- var i = 0;
914
- try {
915
- for (; i < queue.length; i++) {
916
- var callback = queue[i];
917
- do {
918
- ReactSharedInternals.didUsePromise = false;
919
- var continuation = callback(false);
920
- if (null !== continuation) {
921
- if (ReactSharedInternals.didUsePromise) {
922
- queue[i] = callback;
923
- queue.splice(0, i);
924
- return;
925
- }
926
- callback = continuation;
927
- } else break;
928
- } while (1);
929
- }
930
- queue.length = 0;
931
- } catch (error) {
932
- queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
933
- } finally {
934
- isFlushing = false;
935
- }
936
- }
937
- }
938
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
939
- var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
940
- isMounted: function() {
941
- return false;
942
- },
943
- enqueueForceUpdate: function(publicInstance) {
944
- warnNoop(publicInstance, "forceUpdate");
945
- },
946
- enqueueReplaceState: function(publicInstance) {
947
- warnNoop(publicInstance, "replaceState");
948
- },
949
- enqueueSetState: function(publicInstance) {
950
- warnNoop(publicInstance, "setState");
951
- }
952
- }, assign = Object.assign, emptyObject = {};
953
- Object.freeze(emptyObject);
954
- Component.prototype.isReactComponent = {};
955
- Component.prototype.setState = function(partialState, callback) {
956
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
957
- throw Error(
958
- "takes an object of state variables to update or a function which returns an object of state variables."
959
- );
960
- this.updater.enqueueSetState(this, partialState, callback, "setState");
961
- };
962
- Component.prototype.forceUpdate = function(callback) {
963
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
964
- };
965
- var deprecatedAPIs = {
966
- isMounted: [
967
- "isMounted",
968
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
969
- ],
970
- replaceState: [
971
- "replaceState",
972
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
973
- ]
974
- };
975
- for (fnName in deprecatedAPIs)
976
- deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
977
- ComponentDummy.prototype = Component.prototype;
978
- deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
979
- deprecatedAPIs.constructor = PureComponent;
980
- assign(deprecatedAPIs, Component.prototype);
981
- deprecatedAPIs.isPureReactComponent = true;
982
- var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
983
- H: null,
984
- A: null,
985
- T: null,
986
- S: null,
987
- actQueue: null,
988
- asyncTransitions: 0,
989
- isBatchingLegacy: false,
990
- didScheduleLegacyUpdate: false,
991
- didUsePromise: false,
992
- thrownErrors: [],
993
- getCurrentStack: null,
994
- recentlyCreatedOwnerStacks: 0
995
- }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
996
- return null;
997
- };
998
- deprecatedAPIs = {
999
- react_stack_bottom_frame: function(callStackForError) {
1000
- return callStackForError();
1001
- }
1002
- };
1003
- var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1004
- var didWarnAboutElementRef = {};
1005
- var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
1006
- deprecatedAPIs,
1007
- UnknownOwner
1008
- )();
1009
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1010
- var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1011
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1012
- var event = new window.ErrorEvent("error", {
1013
- bubbles: true,
1014
- cancelable: true,
1015
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1016
- error
1017
- });
1018
- if (!window.dispatchEvent(event)) return;
1019
- } else if ("object" === typeof process && "function" === typeof process.emit) {
1020
- process.emit("uncaughtException", error);
1021
- return;
1022
- }
1023
- console.error(error);
1024
- }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1025
- queueMicrotask(function() {
1026
- return queueMicrotask(callback);
1027
- });
1028
- } : enqueueTask;
1029
- deprecatedAPIs = Object.freeze({
1030
- __proto__: null,
1031
- c: function(size) {
1032
- return resolveDispatcher().useMemoCache(size);
1033
- }
1034
- });
1035
- var fnName = {
1036
- map: mapChildren,
1037
- forEach: function(children, forEachFunc, forEachContext) {
1038
- mapChildren(
1039
- children,
1040
- function() {
1041
- forEachFunc.apply(this, arguments);
1042
- },
1043
- forEachContext
1044
- );
1045
- },
1046
- count: function(children) {
1047
- var n = 0;
1048
- mapChildren(children, function() {
1049
- n++;
1050
- });
1051
- return n;
1052
- },
1053
- toArray: function(children) {
1054
- return mapChildren(children, function(child) {
1055
- return child;
1056
- }) || [];
1057
- },
1058
- only: function(children) {
1059
- if (!isValidElement(children))
1060
- throw Error(
1061
- "React.Children.only expected to receive a single React element child."
1062
- );
1063
- return children;
1064
- }
1065
- };
1066
- exports$1.Activity = REACT_ACTIVITY_TYPE;
1067
- exports$1.Children = fnName;
1068
- exports$1.Component = Component;
1069
- exports$1.Fragment = REACT_FRAGMENT_TYPE;
1070
- exports$1.Profiler = REACT_PROFILER_TYPE;
1071
- exports$1.PureComponent = PureComponent;
1072
- exports$1.StrictMode = REACT_STRICT_MODE_TYPE;
1073
- exports$1.Suspense = REACT_SUSPENSE_TYPE;
1074
- exports$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1075
- exports$1.__COMPILER_RUNTIME = deprecatedAPIs;
1076
- exports$1.act = function(callback) {
1077
- var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1078
- actScopeDepth++;
1079
- var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1080
- try {
1081
- var result = callback();
1082
- } catch (error) {
1083
- ReactSharedInternals.thrownErrors.push(error);
1084
- }
1085
- if (0 < ReactSharedInternals.thrownErrors.length)
1086
- throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1087
- if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1088
- var thenable = result;
1089
- queueSeveralMicrotasks(function() {
1090
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1091
- "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
1092
- ));
1093
- });
1094
- return {
1095
- then: function(resolve, reject) {
1096
- didAwaitActCall = true;
1097
- thenable.then(
1098
- function(returnValue) {
1099
- popActScope(prevActQueue, prevActScopeDepth);
1100
- if (0 === prevActScopeDepth) {
1101
- try {
1102
- flushActQueue(queue), enqueueTask(function() {
1103
- return recursivelyFlushAsyncActWork(
1104
- returnValue,
1105
- resolve,
1106
- reject
1107
- );
1108
- });
1109
- } catch (error$0) {
1110
- ReactSharedInternals.thrownErrors.push(error$0);
1111
- }
1112
- if (0 < ReactSharedInternals.thrownErrors.length) {
1113
- var _thrownError = aggregateErrors(
1114
- ReactSharedInternals.thrownErrors
1115
- );
1116
- ReactSharedInternals.thrownErrors.length = 0;
1117
- reject(_thrownError);
1118
- }
1119
- } else resolve(returnValue);
1120
- },
1121
- function(error) {
1122
- popActScope(prevActQueue, prevActScopeDepth);
1123
- 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1124
- ReactSharedInternals.thrownErrors
1125
- ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1126
- }
1127
- );
1128
- }
1129
- };
1130
- }
1131
- var returnValue$jscomp$0 = result;
1132
- popActScope(prevActQueue, prevActScopeDepth);
1133
- 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1134
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1135
- "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1136
- ));
1137
- }), ReactSharedInternals.actQueue = null);
1138
- if (0 < ReactSharedInternals.thrownErrors.length)
1139
- throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1140
- return {
1141
- then: function(resolve, reject) {
1142
- didAwaitActCall = true;
1143
- 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1144
- return recursivelyFlushAsyncActWork(
1145
- returnValue$jscomp$0,
1146
- resolve,
1147
- reject
1148
- );
1149
- })) : resolve(returnValue$jscomp$0);
1150
- }
1151
- };
1152
- };
1153
- exports$1.cache = function(fn) {
1154
- return function() {
1155
- return fn.apply(null, arguments);
1156
- };
1157
- };
1158
- exports$1.cacheSignal = function() {
1159
- return null;
1160
- };
1161
- exports$1.captureOwnerStack = function() {
1162
- var getCurrentStack = ReactSharedInternals.getCurrentStack;
1163
- return null === getCurrentStack ? null : getCurrentStack();
1164
- };
1165
- exports$1.cloneElement = function(element, config, children) {
1166
- if (null === element || void 0 === element)
1167
- throw Error(
1168
- "The argument must be a React element, but you passed " + element + "."
1169
- );
1170
- var props = assign({}, element.props), key = element.key, owner = element._owner;
1171
- if (null != config) {
1172
- var JSCompiler_inline_result;
1173
- a: {
1174
- if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1175
- config,
1176
- "ref"
1177
- ).get) && JSCompiler_inline_result.isReactWarning) {
1178
- JSCompiler_inline_result = false;
1179
- break a;
1180
- }
1181
- JSCompiler_inline_result = void 0 !== config.ref;
1182
- }
1183
- JSCompiler_inline_result && (owner = getOwner());
1184
- hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1185
- for (propName in config)
1186
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1187
- }
1188
- var propName = arguments.length - 2;
1189
- if (1 === propName) props.children = children;
1190
- else if (1 < propName) {
1191
- JSCompiler_inline_result = Array(propName);
1192
- for (var i = 0; i < propName; i++)
1193
- JSCompiler_inline_result[i] = arguments[i + 2];
1194
- props.children = JSCompiler_inline_result;
1195
- }
1196
- props = ReactElement(
1197
- element.type,
1198
- key,
1199
- props,
1200
- owner,
1201
- element._debugStack,
1202
- element._debugTask
1203
- );
1204
- for (key = 2; key < arguments.length; key++)
1205
- validateChildKeys(arguments[key]);
1206
- return props;
1207
- };
1208
- exports$1.createContext = function(defaultValue) {
1209
- defaultValue = {
1210
- $$typeof: REACT_CONTEXT_TYPE,
1211
- _currentValue: defaultValue,
1212
- _currentValue2: defaultValue,
1213
- _threadCount: 0,
1214
- Provider: null,
1215
- Consumer: null
1216
- };
1217
- defaultValue.Provider = defaultValue;
1218
- defaultValue.Consumer = {
1219
- $$typeof: REACT_CONSUMER_TYPE,
1220
- _context: defaultValue
1221
- };
1222
- defaultValue._currentRenderer = null;
1223
- defaultValue._currentRenderer2 = null;
1224
- return defaultValue;
1225
- };
1226
- exports$1.createElement = function(type, config, children) {
1227
- for (var i = 2; i < arguments.length; i++)
1228
- validateChildKeys(arguments[i]);
1229
- i = {};
1230
- var key = null;
1231
- if (null != config)
1232
- for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1233
- "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1234
- )), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
1235
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1236
- var childrenLength = arguments.length - 2;
1237
- if (1 === childrenLength) i.children = children;
1238
- else if (1 < childrenLength) {
1239
- for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1240
- childArray[_i] = arguments[_i + 2];
1241
- Object.freeze && Object.freeze(childArray);
1242
- i.children = childArray;
1243
- }
1244
- if (type && type.defaultProps)
1245
- for (propName in childrenLength = type.defaultProps, childrenLength)
1246
- void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1247
- key && defineKeyPropWarningGetter(
1248
- i,
1249
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1250
- );
1251
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1252
- return ReactElement(
1253
- type,
1254
- key,
1255
- i,
1256
- getOwner(),
1257
- propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1258
- propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1259
- );
1260
- };
1261
- exports$1.createRef = function() {
1262
- var refObject = { current: null };
1263
- Object.seal(refObject);
1264
- return refObject;
1265
- };
1266
- exports$1.forwardRef = function(render) {
1267
- null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1268
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1269
- ) : "function" !== typeof render ? console.error(
1270
- "forwardRef requires a render function but was given %s.",
1271
- null === render ? "null" : typeof render
1272
- ) : 0 !== render.length && 2 !== render.length && console.error(
1273
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1274
- 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1275
- );
1276
- null != render && null != render.defaultProps && console.error(
1277
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1278
- );
1279
- var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1280
- Object.defineProperty(elementType, "displayName", {
1281
- enumerable: false,
1282
- configurable: true,
1283
- get: function() {
1284
- return ownName;
1285
- },
1286
- set: function(name) {
1287
- ownName = name;
1288
- render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1289
- }
1290
- });
1291
- return elementType;
1292
- };
1293
- exports$1.isValidElement = isValidElement;
1294
- exports$1.lazy = function(ctor) {
1295
- ctor = { _status: -1, _result: ctor };
1296
- var lazyType = {
1297
- $$typeof: REACT_LAZY_TYPE,
1298
- _payload: ctor,
1299
- _init: lazyInitializer
1300
- }, ioInfo = {
1301
- name: "lazy",
1302
- start: -1,
1303
- end: -1,
1304
- value: null,
1305
- owner: null,
1306
- debugStack: Error("react-stack-top-frame"),
1307
- debugTask: console.createTask ? console.createTask("lazy()") : null
1308
- };
1309
- ctor._ioInfo = ioInfo;
1310
- lazyType._debugInfo = [{ awaited: ioInfo }];
1311
- return lazyType;
1312
- };
1313
- exports$1.memo = function(type, compare) {
1314
- null == type && console.error(
1315
- "memo: The first argument must be a component. Instead received: %s",
1316
- null === type ? "null" : typeof type
1317
- );
1318
- compare = {
1319
- $$typeof: REACT_MEMO_TYPE,
1320
- type,
1321
- compare: void 0 === compare ? null : compare
1322
- };
1323
- var ownName;
1324
- Object.defineProperty(compare, "displayName", {
1325
- enumerable: false,
1326
- configurable: true,
1327
- get: function() {
1328
- return ownName;
1329
- },
1330
- set: function(name) {
1331
- ownName = name;
1332
- type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1333
- }
1334
- });
1335
- return compare;
1336
- };
1337
- exports$1.startTransition = function(scope) {
1338
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
1339
- currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1340
- ReactSharedInternals.T = currentTransition;
1341
- try {
1342
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1343
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1344
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
1345
- } catch (error) {
1346
- reportGlobalError(error);
1347
- } finally {
1348
- null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1349
- "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1350
- )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
1351
- "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1352
- ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
1353
- }
1354
- };
1355
- exports$1.unstable_useCacheRefresh = function() {
1356
- return resolveDispatcher().useCacheRefresh();
1357
- };
1358
- exports$1.use = function(usable) {
1359
- return resolveDispatcher().use(usable);
1360
- };
1361
- exports$1.useActionState = function(action, initialState, permalink) {
1362
- return resolveDispatcher().useActionState(
1363
- action,
1364
- initialState,
1365
- permalink
1366
- );
1367
- };
1368
- exports$1.useCallback = function(callback, deps) {
1369
- return resolveDispatcher().useCallback(callback, deps);
1370
- };
1371
- exports$1.useContext = function(Context) {
1372
- var dispatcher = resolveDispatcher();
1373
- Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1374
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1375
- );
1376
- return dispatcher.useContext(Context);
1377
- };
1378
- exports$1.useDebugValue = function(value, formatterFn) {
1379
- return resolveDispatcher().useDebugValue(value, formatterFn);
1380
- };
1381
- exports$1.useDeferredValue = function(value, initialValue) {
1382
- return resolveDispatcher().useDeferredValue(value, initialValue);
1383
- };
1384
- exports$1.useEffect = function(create, deps) {
1385
- null == create && console.warn(
1386
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1387
- );
1388
- return resolveDispatcher().useEffect(create, deps);
1389
- };
1390
- exports$1.useEffectEvent = function(callback) {
1391
- return resolveDispatcher().useEffectEvent(callback);
1392
- };
1393
- exports$1.useId = function() {
1394
- return resolveDispatcher().useId();
1395
- };
1396
- exports$1.useImperativeHandle = function(ref, create, deps) {
1397
- return resolveDispatcher().useImperativeHandle(ref, create, deps);
1398
- };
1399
- exports$1.useInsertionEffect = function(create, deps) {
1400
- null == create && console.warn(
1401
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1402
- );
1403
- return resolveDispatcher().useInsertionEffect(create, deps);
1404
- };
1405
- exports$1.useLayoutEffect = function(create, deps) {
1406
- null == create && console.warn(
1407
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1408
- );
1409
- return resolveDispatcher().useLayoutEffect(create, deps);
1410
- };
1411
- exports$1.useMemo = function(create, deps) {
1412
- return resolveDispatcher().useMemo(create, deps);
1413
- };
1414
- exports$1.useOptimistic = function(passthrough, reducer) {
1415
- return resolveDispatcher().useOptimistic(passthrough, reducer);
1416
- };
1417
- exports$1.useReducer = function(reducer, initialArg, init) {
1418
- return resolveDispatcher().useReducer(reducer, initialArg, init);
1419
- };
1420
- exports$1.useRef = function(initialValue) {
1421
- return resolveDispatcher().useRef(initialValue);
1422
- };
1423
- exports$1.useState = function(initialState) {
1424
- return resolveDispatcher().useState(initialState);
1425
- };
1426
- exports$1.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1427
- return resolveDispatcher().useSyncExternalStore(
1428
- subscribe,
1429
- getSnapshot,
1430
- getServerSnapshot
1431
- );
1432
- };
1433
- exports$1.useTransition = function() {
1434
- return resolveDispatcher().useTransition();
1435
- };
1436
- exports$1.version = "19.2.3";
1437
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1438
- })();
1439
- }
1440
- });
1441
-
1442
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js
1443
- var require_react = __commonJS({
1444
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js"(exports$1, module) {
1445
- if (process.env.NODE_ENV === "production") {
1446
- module.exports = require_react_production();
1447
- } else {
1448
- module.exports = require_react_development();
1449
- }
1450
- }
1451
- });
1452
-
1453
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.production.js
1454
- var require_react_jsx_runtime_production = __commonJS({
1455
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.production.js"(exports$1) {
1456
- var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
1457
- var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
1458
- function jsxProd(type, config, maybeKey) {
1459
- var key = null;
1460
- void 0 !== maybeKey && (key = "" + maybeKey);
1461
- void 0 !== config.key && (key = "" + config.key);
1462
- if ("key" in config) {
1463
- maybeKey = {};
1464
- for (var propName in config)
1465
- "key" !== propName && (maybeKey[propName] = config[propName]);
1466
- } else maybeKey = config;
1467
- config = maybeKey.ref;
1468
- return {
1469
- $$typeof: REACT_ELEMENT_TYPE,
1470
- type,
1471
- key,
1472
- ref: void 0 !== config ? config : null,
1473
- props: maybeKey
1474
- };
1475
- }
1476
- exports$1.Fragment = REACT_FRAGMENT_TYPE;
1477
- exports$1.jsx = jsxProd;
1478
- exports$1.jsxs = jsxProd;
1479
- }
1480
- });
1481
6
 
1482
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js
1483
- var require_react_jsx_runtime_development = __commonJS({
1484
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js"(exports$1) {
1485
- "production" !== process.env.NODE_ENV && (function() {
1486
- function getComponentNameFromType(type) {
1487
- if (null == type) return null;
1488
- if ("function" === typeof type)
1489
- return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
1490
- if ("string" === typeof type) return type;
1491
- switch (type) {
1492
- case REACT_FRAGMENT_TYPE:
1493
- return "Fragment";
1494
- case REACT_PROFILER_TYPE:
1495
- return "Profiler";
1496
- case REACT_STRICT_MODE_TYPE:
1497
- return "StrictMode";
1498
- case REACT_SUSPENSE_TYPE:
1499
- return "Suspense";
1500
- case REACT_SUSPENSE_LIST_TYPE:
1501
- return "SuspenseList";
1502
- case REACT_ACTIVITY_TYPE:
1503
- return "Activity";
1504
- }
1505
- if ("object" === typeof type)
1506
- switch ("number" === typeof type.tag && console.error(
1507
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1508
- ), type.$$typeof) {
1509
- case REACT_PORTAL_TYPE:
1510
- return "Portal";
1511
- case REACT_CONTEXT_TYPE:
1512
- return type.displayName || "Context";
1513
- case REACT_CONSUMER_TYPE:
1514
- return (type._context.displayName || "Context") + ".Consumer";
1515
- case REACT_FORWARD_REF_TYPE:
1516
- var innerType = type.render;
1517
- type = type.displayName;
1518
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
1519
- return type;
1520
- case REACT_MEMO_TYPE:
1521
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
1522
- case REACT_LAZY_TYPE:
1523
- innerType = type._payload;
1524
- type = type._init;
1525
- try {
1526
- return getComponentNameFromType(type(innerType));
1527
- } catch (x) {
1528
- }
1529
- }
1530
- return null;
1531
- }
1532
- function testStringCoercion(value) {
1533
- return "" + value;
1534
- }
1535
- function checkKeyStringCoercion(value) {
1536
- try {
1537
- testStringCoercion(value);
1538
- var JSCompiler_inline_result = false;
1539
- } catch (e) {
1540
- JSCompiler_inline_result = true;
1541
- }
1542
- if (JSCompiler_inline_result) {
1543
- JSCompiler_inline_result = console;
1544
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
1545
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
1546
- JSCompiler_temp_const.call(
1547
- JSCompiler_inline_result,
1548
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1549
- JSCompiler_inline_result$jscomp$0
1550
- );
1551
- return testStringCoercion(value);
1552
- }
1553
- }
1554
- function getTaskName(type) {
1555
- if (type === REACT_FRAGMENT_TYPE) return "<>";
1556
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
1557
- return "<...>";
1558
- try {
1559
- var name = getComponentNameFromType(type);
1560
- return name ? "<" + name + ">" : "<...>";
1561
- } catch (x) {
1562
- return "<...>";
1563
- }
1564
- }
1565
- function getOwner() {
1566
- var dispatcher = ReactSharedInternals.A;
1567
- return null === dispatcher ? null : dispatcher.getOwner();
1568
- }
1569
- function UnknownOwner() {
1570
- return Error("react-stack-top-frame");
1571
- }
1572
- function hasValidKey(config) {
1573
- if (hasOwnProperty.call(config, "key")) {
1574
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1575
- if (getter && getter.isReactWarning) return false;
1576
- }
1577
- return void 0 !== config.key;
1578
- }
1579
- function defineKeyPropWarningGetter(props, displayName) {
1580
- function warnAboutAccessingKey() {
1581
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
1582
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
1583
- displayName
1584
- ));
1585
- }
1586
- warnAboutAccessingKey.isReactWarning = true;
1587
- Object.defineProperty(props, "key", {
1588
- get: warnAboutAccessingKey,
1589
- configurable: true
1590
- });
1591
- }
1592
- function elementRefGetterWithDeprecationWarning() {
1593
- var componentName = getComponentNameFromType(this.type);
1594
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
1595
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
1596
- ));
1597
- componentName = this.props.ref;
1598
- return void 0 !== componentName ? componentName : null;
1599
- }
1600
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
1601
- var refProp = props.ref;
1602
- type = {
1603
- $$typeof: REACT_ELEMENT_TYPE,
1604
- type,
1605
- key,
1606
- props,
1607
- _owner: owner
1608
- };
1609
- null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
1610
- enumerable: false,
1611
- get: elementRefGetterWithDeprecationWarning
1612
- }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
1613
- type._store = {};
1614
- Object.defineProperty(type._store, "validated", {
1615
- configurable: false,
1616
- enumerable: false,
1617
- writable: true,
1618
- value: 0
1619
- });
1620
- Object.defineProperty(type, "_debugInfo", {
1621
- configurable: false,
1622
- enumerable: false,
1623
- writable: true,
1624
- value: null
1625
- });
1626
- Object.defineProperty(type, "_debugStack", {
1627
- configurable: false,
1628
- enumerable: false,
1629
- writable: true,
1630
- value: debugStack
1631
- });
1632
- Object.defineProperty(type, "_debugTask", {
1633
- configurable: false,
1634
- enumerable: false,
1635
- writable: true,
1636
- value: debugTask
1637
- });
1638
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1639
- return type;
1640
- }
1641
- function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
1642
- var children = config.children;
1643
- if (void 0 !== children)
1644
- if (isStaticChildren)
1645
- if (isArrayImpl(children)) {
1646
- for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
1647
- validateChildKeys(children[isStaticChildren]);
1648
- Object.freeze && Object.freeze(children);
1649
- } else
1650
- console.error(
1651
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1652
- );
1653
- else validateChildKeys(children);
1654
- if (hasOwnProperty.call(config, "key")) {
1655
- children = getComponentNameFromType(type);
1656
- var keys = Object.keys(config).filter(function(k) {
1657
- return "key" !== k;
1658
- });
1659
- isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
1660
- didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
1661
- 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
1662
- isStaticChildren,
1663
- children,
1664
- keys,
1665
- children
1666
- ), didWarnAboutKeySpread[children + isStaticChildren] = true);
1667
- }
1668
- children = null;
1669
- void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
1670
- hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
1671
- if ("key" in config) {
1672
- maybeKey = {};
1673
- for (var propName in config)
1674
- "key" !== propName && (maybeKey[propName] = config[propName]);
1675
- } else maybeKey = config;
1676
- children && defineKeyPropWarningGetter(
1677
- maybeKey,
1678
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1679
- );
1680
- return ReactElement(
1681
- type,
1682
- children,
1683
- maybeKey,
1684
- getOwner(),
1685
- debugStack,
1686
- debugTask
1687
- );
1688
- }
1689
- function validateChildKeys(node) {
1690
- isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
1691
- }
1692
- function isValidElement(object) {
1693
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
1694
- }
1695
- var React8 = require_react(), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
1696
- return null;
1697
- };
1698
- React8 = {
1699
- react_stack_bottom_frame: function(callStackForError) {
1700
- return callStackForError();
1701
- }
1702
- };
1703
- var specialPropKeyWarningShown;
1704
- var didWarnAboutElementRef = {};
1705
- var unknownOwnerDebugStack = React8.react_stack_bottom_frame.bind(
1706
- React8,
1707
- UnknownOwner
1708
- )();
1709
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1710
- var didWarnAboutKeySpread = {};
1711
- exports$1.Fragment = REACT_FRAGMENT_TYPE;
1712
- exports$1.jsx = function(type, config, maybeKey) {
1713
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1714
- return jsxDEVImpl(
1715
- type,
1716
- config,
1717
- maybeKey,
1718
- false,
1719
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1720
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1721
- );
1722
- };
1723
- exports$1.jsxs = function(type, config, maybeKey) {
1724
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1725
- return jsxDEVImpl(
1726
- type,
1727
- config,
1728
- maybeKey,
1729
- true,
1730
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1731
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1732
- );
1733
- };
1734
- })();
1735
- }
7
+ Object.keys(primitive).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: function () { return primitive[k]; }
11
+ });
1736
12
  });
1737
-
1738
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js
1739
- var require_jsx_runtime = __commonJS({
1740
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js"(exports$1, module) {
1741
- if (process.env.NODE_ENV === "production") {
1742
- module.exports = require_react_jsx_runtime_production();
1743
- } else {
1744
- module.exports = require_react_jsx_runtime_development();
1745
- }
1746
- }
1747
- });
1748
-
1749
- // ../ui/primitive/collection/src/Collection.tsx
1750
- var import_react4 = __toESM(require_react());
1751
-
1752
- // ../ui/layout/grid/src/Grid.tsx
1753
- var import_react = __toESM(require_react());
1754
-
1755
- // ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
1756
- function r(e) {
1757
- var t, f, n = "";
1758
- if ("string" == typeof e || "number" == typeof e) n += e;
1759
- else if ("object" == typeof e) if (Array.isArray(e)) {
1760
- var o = e.length;
1761
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
1762
- } else for (f in e) e[f] && (n && (n += " "), n += f);
1763
- return n;
1764
- }
1765
- function clsx() {
1766
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
1767
- return n;
1768
- }
1769
- var clsx_default = clsx;
1770
-
1771
- // ../core/system/src/cn.ts
1772
- function cn(...inputs) {
1773
- return clsx_default(inputs);
1774
- }
1775
-
1776
- // ../ui/layout/grid/src/Grid.tsx
1777
- var import_jsx_runtime = __toESM(require_jsx_runtime());
1778
- var Grid = (0, import_react.forwardRef)(
1779
- ({
1780
- as,
1781
- columns = 2,
1782
- rows = 1,
1783
- gap = "0.5rem",
1784
- alignItems = "start",
1785
- justifyItems = "start",
1786
- alignContent = "start",
1787
- justifyContent = "start",
1788
- className,
1789
- style,
1790
- children,
1791
- ...props
1792
- }, ref) => {
1793
- const Component = as ?? "div";
1794
- const { global } = provider.useNSUI();
1795
- const gridStyle = {
1796
- display: "grid",
1797
- gridTemplateColumns: `repeat(${columns}, 1fr)`,
1798
- gridTemplateRows: rows === "auto" ? "auto" : `repeat(${rows}, 1fr)`,
1799
- gap,
1800
- alignItems,
1801
- justifyItems,
1802
- alignContent,
1803
- justifyContent,
1804
- ...style
1805
- };
1806
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1807
- Component,
1808
- {
1809
- ...props,
1810
- ref,
1811
- className: cn(`${global.prefixCls}-grid`, className),
1812
- style: gridStyle,
1813
- children
1814
- }
1815
- );
1816
- }
1817
- );
1818
- Grid.displayName = "Grid";
1819
-
1820
- // ../core/hooks/roving-focus/src/index.ts
1821
- var import_react2 = __toESM(require_react());
1822
- function useRovingFocus(options = {}) {
1823
- const { wrap = true, allowHorizontal = true, containerRole } = options;
1824
- const items = (0, import_react2.useRef)([]);
1825
- const activeIdRef = (0, import_react2.useRef)(null);
1826
- const [activeId, _setActiveId] = (0, import_react2.useState)(null);
1827
- const hasInteractedRef = (0, import_react2.useRef)(false);
1828
- const [hasInteracted, _setHasInteracted] = (0, import_react2.useState)(false);
1829
- const setActiveId = (0, import_react2.useCallback)((id) => {
1830
- activeIdRef.current = id;
1831
- _setActiveId(id);
1832
- }, []);
1833
- const setHasInteracted = (0, import_react2.useCallback)((value) => {
1834
- hasInteractedRef.current = value;
1835
- _setHasInteracted(value);
1836
- }, []);
1837
- const registerItem = (0, import_react2.useCallback)(
1838
- (item) => {
1839
- const idx = items.current.findIndex((i) => i.id === item.id);
1840
- if (idx === -1) {
1841
- items.current.push(item);
1842
- } else {
1843
- items.current[idx] = item;
1844
- }
1845
- if (!activeIdRef.current && !item.disabled) {
1846
- setActiveId(item.id);
1847
- }
1848
- },
1849
- [setActiveId]
1850
- );
1851
- const unregisterItem = (0, import_react2.useCallback)(
1852
- (id) => {
1853
- items.current = items.current.filter((i) => i.id !== id);
1854
- if (activeIdRef.current === id) {
1855
- const next = items.current.find((i) => !i.disabled);
1856
- setActiveId(next?.id ?? null);
1857
- }
1858
- },
1859
- [setActiveId]
1860
- );
1861
- const move = (0, import_react2.useCallback)(
1862
- (dir) => {
1863
- setHasInteracted(true);
1864
- const enabled = items.current.filter((i) => !i.disabled);
1865
- if (!enabled.length) return;
1866
- const idx = enabled.findIndex((i) => i.id === activeIdRef.current);
1867
- const nextIdx = wrap ? (idx + dir + enabled.length) % enabled.length : Math.min(Math.max(idx + dir, 0), enabled.length - 1);
1868
- const next = enabled[nextIdx];
1869
- setActiveId(next.id);
1870
- next.ref.current?.focus();
1871
- },
1872
- [wrap, setActiveId, setHasInteracted]
1873
- );
1874
- const focusFirst = (0, import_react2.useCallback)(() => {
1875
- const first = items.current.find((i) => !i.disabled);
1876
- if (!first) return;
1877
- setHasInteracted(true);
1878
- setActiveId(first.id);
1879
- first.ref.current?.focus();
1880
- }, [setActiveId, setHasInteracted]);
1881
- const focusLast = (0, import_react2.useCallback)(() => {
1882
- const enabled = items.current.filter((i) => !i.disabled);
1883
- const last = enabled[enabled.length - 1];
1884
- if (!last) return;
1885
- setHasInteracted(true);
1886
- setActiveId(last.id);
1887
- last.ref.current?.focus();
1888
- }, [setActiveId, setHasInteracted]);
1889
- const focusItem = (0, import_react2.useCallback)(
1890
- (id) => {
1891
- setHasInteracted(true);
1892
- setActiveId(id);
1893
- },
1894
- [setActiveId, setHasInteracted]
1895
- );
1896
- const getFirstEnabledId = (0, import_react2.useCallback)(
1897
- () => items.current.find((i) => !i.disabled)?.id ?? null,
1898
- []
1899
- );
1900
- const reset = (0, import_react2.useCallback)(() => {
1901
- setHasInteracted(false);
1902
- }, [setHasInteracted]);
1903
- const handleGroupKeyDown = (0, import_react2.useCallback)(
1904
- (e) => {
1905
- const isArrow = ["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"].includes(e.key);
1906
- if (!isArrow) return;
1907
- if (!e.currentTarget.contains(document.activeElement)) return;
1908
- if (e.currentTarget !== document.activeElement) return;
1909
- e.preventDefault();
1910
- focusFirst();
1911
- },
1912
- [focusFirst]
1913
- );
1914
- const handleGroupBlur = (0, import_react2.useCallback)(
1915
- (e) => {
1916
- const currentTarget = e.currentTarget;
1917
- setTimeout(() => {
1918
- if (!currentTarget.contains(document.activeElement)) reset();
1919
- }, 0);
1920
- },
1921
- [reset]
1922
- );
1923
- const handleItemKeyDown = (0, import_react2.useCallback)(
1924
- (e, itemId, onSelect, containerRef) => {
1925
- if (e.key === "Tab") {
1926
- if (e.shiftKey) {
1927
- e.preventDefault();
1928
- reset();
1929
- const container = containerRef?.current ?? (containerRole ? e.target.closest(
1930
- `[role="${containerRole}"]`
1931
- ) : null);
1932
- container?.focus();
1933
- } else {
1934
- reset();
1935
- }
1936
- return;
1937
- }
1938
- if (e.key === "ArrowDown" || allowHorizontal && e.key === "ArrowRight") {
1939
- e.preventDefault();
1940
- move(1);
1941
- return;
1942
- }
1943
- if (e.key === "ArrowUp" || allowHorizontal && e.key === "ArrowLeft") {
1944
- e.preventDefault();
1945
- move(-1);
1946
- return;
1947
- }
1948
- if (e.key === "Home") {
1949
- e.preventDefault();
1950
- focusFirst();
1951
- return;
1952
- }
1953
- if (e.key === "End") {
1954
- e.preventDefault();
1955
- focusLast();
1956
- return;
1957
- }
1958
- if (e.key === "Enter" || e.key === " ") {
1959
- e.preventDefault();
1960
- onSelect?.(itemId);
1961
- }
1962
- },
1963
- [allowHorizontal, move, focusFirst, focusLast, reset, containerRole]
1964
- );
1965
- return {
1966
- activeId,
1967
- hasInteracted,
1968
- registerItem,
1969
- unregisterItem,
1970
- focusItem,
1971
- focusFirst,
1972
- focusLast,
1973
- getFirstEnabledId,
1974
- reset,
1975
- handleGroupKeyDown,
1976
- handleItemKeyDown,
1977
- handleGroupBlur
1978
- };
1979
- }
1980
-
1981
- // ../ui/primitive/collection/src/CollectionContext.ts
1982
- var import_react3 = __toESM(require_react());
1983
- var CollectionContext = import_react3.default.createContext(null);
1984
-
1985
- // ../ui/primitive/collection/src/Collection.tsx
1986
- var import_jsx_runtime2 = __toESM(require_jsx_runtime());
1987
- function Collection({
1988
- children,
1989
- disabled = false,
1990
- columns = 1,
1991
- rovingOptions,
1992
- ...props
1993
- }) {
1994
- const ref = (0, import_react4.useRef)(null);
1995
- const roving = useRovingFocus(rovingOptions);
1996
- const ctxValue = (0, import_react4.useMemo)(
1997
- () => ({
1998
- registerItem: roving.registerItem,
1999
- unregisterItem: roving.unregisterItem,
2000
- focusItem: roving.focusItem,
2001
- handleItemKeyDown: roving.handleItemKeyDown,
2002
- activeId: roving.activeId,
2003
- hasInteracted: roving.hasInteracted,
2004
- containerRef: ref,
2005
- disabled
2006
- }),
2007
- [
2008
- roving.registerItem,
2009
- roving.unregisterItem,
2010
- roving.focusItem,
2011
- roving.handleItemKeyDown,
2012
- roving.activeId,
2013
- roving.hasInteracted,
2014
- disabled
2015
- ]
2016
- );
2017
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CollectionContext.Provider, { value: ctxValue, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2018
- Grid,
2019
- {
2020
- ref,
2021
- columns,
2022
- tabIndex: disabled ? -1 : roving.hasInteracted ? -1 : 0,
2023
- "aria-disabled": disabled || void 0,
2024
- onKeyDown: disabled ? void 0 : roving.handleGroupKeyDown,
2025
- onBlur: disabled ? void 0 : roving.handleGroupBlur,
2026
- ...props,
2027
- children
2028
- }
2029
- ) });
2030
- }
2031
- Collection.displayName = "Collection";
2032
-
2033
- // ../ui/primitive/collection/src/CollectionGroup.tsx
2034
- var import_react6 = __toESM(require_react());
2035
-
2036
- // ../ui/typography/heading/src/Heading.tsx
2037
- var import_react5 = __toESM(require_react());
2038
- var import_jsx_runtime3 = __toESM(require_jsx_runtime());
2039
- var Heading = (0, import_react5.forwardRef)(
2040
- ({ as, children, className, ...props }, ref) => {
2041
- const { global, components } = provider.useNSUI();
2042
- const Component = as ?? components.heading.typeElement;
2043
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Component, { ...props, ref, className: cn(`${global.prefixCls}-heading`, className), children });
2044
- }
2045
- );
2046
- Heading.displayName = "Heading";
2047
-
2048
- // ../ui/primitive/collection/src/CollectionGroup.tsx
2049
- var import_jsx_runtime4 = __toESM(require_jsx_runtime());
2050
- function CollectionGroup({
2051
- children,
2052
- classNames,
2053
- styles,
2054
- label,
2055
- headingAs = "h3",
2056
- ...props
2057
- }) {
2058
- const id = (0, import_react6.useId)();
2059
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
2060
- "div",
2061
- {
2062
- role: "group",
2063
- "aria-labelledby": label ? id : void 0,
2064
- className: classNames?.root,
2065
- style: styles?.root,
2066
- ...props,
2067
- children: [
2068
- label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading, { id, as: headingAs, className: classNames?.label, style: styles?.label, children: label }),
2069
- children
2070
- ]
2071
- }
2072
- );
2073
- }
2074
- CollectionGroup.displayName = "CollectionGroup";
2075
-
2076
- // ../ui/primitive/collection/src/CollectionItem.tsx
2077
- var import_react8 = __toESM(require_react());
2078
-
2079
- // ../ui/layout/flex/src/Flex.tsx
2080
- var import_react7 = __toESM(require_react());
2081
- var import_jsx_runtime5 = __toESM(require_jsx_runtime());
2082
- var Flex = (0, import_react7.forwardRef)(
2083
- ({
2084
- as,
2085
- direction = "row",
2086
- wrap = "nowrap",
2087
- alignItems = "flex-start",
2088
- justify = "flex-start",
2089
- gap = "0.5rem",
2090
- className,
2091
- style,
2092
- children,
2093
- ...props
2094
- }, ref) => {
2095
- const Component = as ?? "div";
2096
- const { global } = provider.useNSUI();
2097
- const flexStyle = {
2098
- display: "flex",
2099
- flexDirection: direction,
2100
- flexWrap: wrap,
2101
- alignItems,
2102
- justifyContent: justify,
2103
- gap,
2104
- ...style
2105
- };
2106
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2107
- Component,
2108
- {
2109
- ...props,
2110
- ref,
2111
- className: cn(`${global.prefixCls}-flex`, className),
2112
- style: flexStyle,
2113
- children
2114
- }
2115
- );
2116
- }
2117
- );
2118
- Flex.displayName = "Flex";
2119
-
2120
- // ../ui/primitive/collection/src/CollectionItem.tsx
2121
- var import_jsx_runtime6 = __toESM(require_jsx_runtime());
2122
- function CollectionItem({
2123
- children,
2124
- value,
2125
- disabled = false,
2126
- selected,
2127
- role = "option",
2128
- classNames,
2129
- styles,
2130
- onClick,
2131
- onSelect,
2132
- alignItems = "center",
2133
- ...props
2134
- }) {
2135
- const ref = (0, import_react8.useRef)(null);
2136
- const generatedId = (0, import_react8.useId)();
2137
- const itemId = value ?? generatedId;
2138
- const ctx = (0, import_react8.useContext)(CollectionContext);
2139
- const registerItem = ctx?.registerItem;
2140
- const unregisterItem = ctx?.unregisterItem;
2141
- const focusItem = ctx?.focusItem;
2142
- const handleItemKeyDown = ctx?.handleItemKeyDown;
2143
- const containerRef = ctx?.containerRef;
2144
- const isDisabled = disabled || (ctx?.disabled ?? false);
2145
- (0, import_react8.useEffect)(() => {
2146
- if (!registerItem || !unregisterItem) return;
2147
- registerItem({
2148
- id: itemId,
2149
- ref,
2150
- disabled: isDisabled
2151
- });
2152
- return () => unregisterItem(itemId);
2153
- }, [itemId, isDisabled, registerItem, unregisterItem]);
2154
- const handleClick = (event) => {
2155
- if (isDisabled) return;
2156
- focusItem?.(itemId);
2157
- onClick?.(value, event);
2158
- };
2159
- const handleFocus = () => {
2160
- if (!isDisabled) focusItem?.(itemId);
2161
- };
2162
- const handleKeyDown = (e) => {
2163
- if (isDisabled || !handleItemKeyDown) return;
2164
- handleItemKeyDown(
2165
- e,
2166
- itemId,
2167
- () => {
2168
- onSelect?.(value);
2169
- onClick?.(value, e);
2170
- },
2171
- containerRef
2172
- );
2173
- };
2174
- const tabIndex = isDisabled ? -1 : !ctx ? 0 : -1;
2175
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2176
- Flex,
2177
- {
2178
- ref,
2179
- as: "li",
2180
- role,
2181
- alignItems,
2182
- tabIndex,
2183
- "aria-disabled": isDisabled || void 0,
2184
- "aria-selected": selected,
2185
- onFocus: handleFocus,
2186
- onClick: handleClick,
2187
- onKeyDown: handleKeyDown,
2188
- className: classNames?.root,
2189
- style: styles?.root,
2190
- ...props,
2191
- children
2192
- }
2193
- );
2194
- }
2195
- CollectionItem.displayName = "CollectionItem";
2196
-
2197
- // ../ui/layout/divider/src/Divider.tsx
2198
- var import_jsx_runtime7 = __toESM(require_jsx_runtime());
2199
- var Divider = ({
2200
- orientation = "horizontal",
2201
- className,
2202
- style,
2203
- ...props
2204
- }) => {
2205
- const { global } = provider.useNSUI();
2206
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2207
- "hr",
2208
- {
2209
- ...props,
2210
- "aria-hidden": "true",
2211
- className: cn(
2212
- `${global.prefixCls}-divider`,
2213
- `${global.prefixCls}-divider-${orientation}`,
2214
- className
2215
- ),
2216
- style
2217
- }
2218
- );
2219
- };
2220
-
2221
- // ../ui/primitive/collection/src/CollectionSeparator.tsx
2222
- var import_jsx_runtime8 = __toESM(require_jsx_runtime());
2223
- function CollectionSeparator(props) {
2224
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Divider, { role: "separator", ...props });
2225
- }
2226
- CollectionSeparator.displayName = "CollectionSeparator";
2227
- /*! Bundled license information:
2228
-
2229
- react/cjs/react.production.js:
2230
- (**
2231
- * @license React
2232
- * react.production.js
2233
- *
2234
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2235
- *
2236
- * This source code is licensed under the MIT license found in the
2237
- * LICENSE file in the root directory of this source tree.
2238
- *)
2239
-
2240
- react/cjs/react.development.js:
2241
- (**
2242
- * @license React
2243
- * react.development.js
2244
- *
2245
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2246
- *
2247
- * This source code is licensed under the MIT license found in the
2248
- * LICENSE file in the root directory of this source tree.
2249
- *)
2250
-
2251
- react/cjs/react-jsx-runtime.production.js:
2252
- (**
2253
- * @license React
2254
- * react-jsx-runtime.production.js
2255
- *
2256
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2257
- *
2258
- * This source code is licensed under the MIT license found in the
2259
- * LICENSE file in the root directory of this source tree.
2260
- *)
2261
-
2262
- react/cjs/react-jsx-runtime.development.js:
2263
- (**
2264
- * @license React
2265
- * react-jsx-runtime.development.js
2266
- *
2267
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2268
- *
2269
- * This source code is licensed under the MIT license found in the
2270
- * LICENSE file in the root directory of this source tree.
2271
- *)
2272
- */
2273
-
2274
- exports.Collection = Collection;
2275
- exports.CollectionGroup = CollectionGroup;
2276
- exports.CollectionItem = CollectionItem;
2277
- exports.CollectionSeparator = CollectionSeparator;
2278
13
  //# sourceMappingURL=index.js.map
2279
14
  //# sourceMappingURL=index.js.map