@edux-design/buttons 0.0.6 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/index.js +15 -1827
- package/dist/index.mjs +15 -1827
- package/package.json +5 -3
package/dist/index.mjs
CHANGED
|
@@ -128,1723 +128,8 @@ var MenuButtonContext = createContext();
|
|
|
128
128
|
import { cx as cx3 } from "@edux-design/utils";
|
|
129
129
|
|
|
130
130
|
// ../icons/dist/index.mjs
|
|
131
|
-
|
|
132
|
-
var
|
|
133
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
134
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
135
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
136
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
137
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
138
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
139
|
-
};
|
|
140
|
-
var __copyProps = (to, from, except, desc) => {
|
|
141
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
142
|
-
for (let key of __getOwnPropNames(from))
|
|
143
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
144
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
145
|
-
}
|
|
146
|
-
return to;
|
|
147
|
-
};
|
|
148
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
149
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
150
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
151
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
152
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
153
|
-
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
154
|
-
mod
|
|
155
|
-
));
|
|
156
|
-
var require_react_jsx_runtime_production = __commonJS({
|
|
157
|
-
"../../node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
|
|
158
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
159
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
160
|
-
function jsxProd(type, config, maybeKey) {
|
|
161
|
-
var key = null;
|
|
162
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
163
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
164
|
-
if ("key" in config) {
|
|
165
|
-
maybeKey = {};
|
|
166
|
-
for (var propName in config)
|
|
167
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
168
|
-
} else maybeKey = config;
|
|
169
|
-
config = maybeKey.ref;
|
|
170
|
-
return {
|
|
171
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
172
|
-
type,
|
|
173
|
-
key,
|
|
174
|
-
ref: void 0 !== config ? config : null,
|
|
175
|
-
props: maybeKey
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
179
|
-
exports.jsx = jsxProd;
|
|
180
|
-
exports.jsxs = jsxProd;
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
var require_react_production = __commonJS({
|
|
184
|
-
"../../node_modules/react/cjs/react.production.js"(exports) {
|
|
185
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
186
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
187
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
188
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
189
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
190
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
191
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
192
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
193
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
194
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
195
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
196
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
197
|
-
function getIteratorFn(maybeIterable) {
|
|
198
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
199
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
200
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
201
|
-
}
|
|
202
|
-
var ReactNoopUpdateQueue = {
|
|
203
|
-
isMounted: function() {
|
|
204
|
-
return false;
|
|
205
|
-
},
|
|
206
|
-
enqueueForceUpdate: function() {
|
|
207
|
-
},
|
|
208
|
-
enqueueReplaceState: function() {
|
|
209
|
-
},
|
|
210
|
-
enqueueSetState: function() {
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
var assign = Object.assign;
|
|
214
|
-
var emptyObject = {};
|
|
215
|
-
function Component(props, context, updater) {
|
|
216
|
-
this.props = props;
|
|
217
|
-
this.context = context;
|
|
218
|
-
this.refs = emptyObject;
|
|
219
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
220
|
-
}
|
|
221
|
-
Component.prototype.isReactComponent = {};
|
|
222
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
223
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
224
|
-
throw Error(
|
|
225
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
226
|
-
);
|
|
227
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
228
|
-
};
|
|
229
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
230
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
231
|
-
};
|
|
232
|
-
function ComponentDummy() {
|
|
233
|
-
}
|
|
234
|
-
ComponentDummy.prototype = Component.prototype;
|
|
235
|
-
function PureComponent(props, context, updater) {
|
|
236
|
-
this.props = props;
|
|
237
|
-
this.context = context;
|
|
238
|
-
this.refs = emptyObject;
|
|
239
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
240
|
-
}
|
|
241
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
242
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
243
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
244
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
245
|
-
var isArrayImpl = Array.isArray;
|
|
246
|
-
var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
|
|
247
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
248
|
-
function ReactElement(type, key, self, source, owner, props) {
|
|
249
|
-
self = props.ref;
|
|
250
|
-
return {
|
|
251
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
252
|
-
type,
|
|
253
|
-
key,
|
|
254
|
-
ref: void 0 !== self ? self : null,
|
|
255
|
-
props
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
259
|
-
return ReactElement(
|
|
260
|
-
oldElement.type,
|
|
261
|
-
newKey,
|
|
262
|
-
void 0,
|
|
263
|
-
void 0,
|
|
264
|
-
void 0,
|
|
265
|
-
oldElement.props
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
function isValidElement(object) {
|
|
269
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
270
|
-
}
|
|
271
|
-
function escape(key) {
|
|
272
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
273
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
274
|
-
return escaperLookup[match];
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
278
|
-
function getElementKey(element, index) {
|
|
279
|
-
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
280
|
-
}
|
|
281
|
-
function noop$1() {
|
|
282
|
-
}
|
|
283
|
-
function resolveThenable(thenable) {
|
|
284
|
-
switch (thenable.status) {
|
|
285
|
-
case "fulfilled":
|
|
286
|
-
return thenable.value;
|
|
287
|
-
case "rejected":
|
|
288
|
-
throw thenable.reason;
|
|
289
|
-
default:
|
|
290
|
-
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
291
|
-
function(fulfilledValue) {
|
|
292
|
-
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
293
|
-
},
|
|
294
|
-
function(error) {
|
|
295
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
296
|
-
}
|
|
297
|
-
)), thenable.status) {
|
|
298
|
-
case "fulfilled":
|
|
299
|
-
return thenable.value;
|
|
300
|
-
case "rejected":
|
|
301
|
-
throw thenable.reason;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
throw thenable;
|
|
305
|
-
}
|
|
306
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
307
|
-
var type = typeof children;
|
|
308
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
309
|
-
var invokeCallback = false;
|
|
310
|
-
if (null === children) invokeCallback = true;
|
|
311
|
-
else
|
|
312
|
-
switch (type) {
|
|
313
|
-
case "bigint":
|
|
314
|
-
case "string":
|
|
315
|
-
case "number":
|
|
316
|
-
invokeCallback = true;
|
|
317
|
-
break;
|
|
318
|
-
case "object":
|
|
319
|
-
switch (children.$$typeof) {
|
|
320
|
-
case REACT_ELEMENT_TYPE:
|
|
321
|
-
case REACT_PORTAL_TYPE:
|
|
322
|
-
invokeCallback = true;
|
|
323
|
-
break;
|
|
324
|
-
case REACT_LAZY_TYPE:
|
|
325
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
326
|
-
invokeCallback(children._payload),
|
|
327
|
-
array,
|
|
328
|
-
escapedPrefix,
|
|
329
|
-
nameSoFar,
|
|
330
|
-
callback
|
|
331
|
-
);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
if (invokeCallback)
|
|
335
|
-
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) {
|
|
336
|
-
return c;
|
|
337
|
-
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
338
|
-
callback,
|
|
339
|
-
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
340
|
-
userProvidedKeyEscapeRegex,
|
|
341
|
-
"$&/"
|
|
342
|
-
) + "/") + invokeCallback
|
|
343
|
-
)), array.push(callback)), 1;
|
|
344
|
-
invokeCallback = 0;
|
|
345
|
-
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
346
|
-
if (isArrayImpl(children))
|
|
347
|
-
for (var i = 0; i < children.length; i++)
|
|
348
|
-
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
349
|
-
nameSoFar,
|
|
350
|
-
array,
|
|
351
|
-
escapedPrefix,
|
|
352
|
-
type,
|
|
353
|
-
callback
|
|
354
|
-
);
|
|
355
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
356
|
-
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
357
|
-
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
358
|
-
nameSoFar,
|
|
359
|
-
array,
|
|
360
|
-
escapedPrefix,
|
|
361
|
-
type,
|
|
362
|
-
callback
|
|
363
|
-
);
|
|
364
|
-
else if ("object" === type) {
|
|
365
|
-
if ("function" === typeof children.then)
|
|
366
|
-
return mapIntoArray(
|
|
367
|
-
resolveThenable(children),
|
|
368
|
-
array,
|
|
369
|
-
escapedPrefix,
|
|
370
|
-
nameSoFar,
|
|
371
|
-
callback
|
|
372
|
-
);
|
|
373
|
-
array = String(children);
|
|
374
|
-
throw Error(
|
|
375
|
-
"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."
|
|
376
|
-
);
|
|
377
|
-
}
|
|
378
|
-
return invokeCallback;
|
|
379
|
-
}
|
|
380
|
-
function mapChildren(children, func, context) {
|
|
381
|
-
if (null == children) return children;
|
|
382
|
-
var result = [], count = 0;
|
|
383
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
384
|
-
return func.call(context, child, count++);
|
|
385
|
-
});
|
|
386
|
-
return result;
|
|
387
|
-
}
|
|
388
|
-
function lazyInitializer(payload) {
|
|
389
|
-
if (-1 === payload._status) {
|
|
390
|
-
var ctor = payload._result;
|
|
391
|
-
ctor = ctor();
|
|
392
|
-
ctor.then(
|
|
393
|
-
function(moduleObject) {
|
|
394
|
-
if (0 === payload._status || -1 === payload._status)
|
|
395
|
-
payload._status = 1, payload._result = moduleObject;
|
|
396
|
-
},
|
|
397
|
-
function(error) {
|
|
398
|
-
if (0 === payload._status || -1 === payload._status)
|
|
399
|
-
payload._status = 2, payload._result = error;
|
|
400
|
-
}
|
|
401
|
-
);
|
|
402
|
-
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
403
|
-
}
|
|
404
|
-
if (1 === payload._status) return payload._result.default;
|
|
405
|
-
throw payload._result;
|
|
406
|
-
}
|
|
407
|
-
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
408
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
409
|
-
var event = new window.ErrorEvent("error", {
|
|
410
|
-
bubbles: true,
|
|
411
|
-
cancelable: true,
|
|
412
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
413
|
-
error
|
|
414
|
-
});
|
|
415
|
-
if (!window.dispatchEvent(event)) return;
|
|
416
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
417
|
-
process.emit("uncaughtException", error);
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
console.error(error);
|
|
421
|
-
};
|
|
422
|
-
function noop() {
|
|
423
|
-
}
|
|
424
|
-
exports.Children = {
|
|
425
|
-
map: mapChildren,
|
|
426
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
427
|
-
mapChildren(
|
|
428
|
-
children,
|
|
429
|
-
function() {
|
|
430
|
-
forEachFunc.apply(this, arguments);
|
|
431
|
-
},
|
|
432
|
-
forEachContext
|
|
433
|
-
);
|
|
434
|
-
},
|
|
435
|
-
count: function(children) {
|
|
436
|
-
var n = 0;
|
|
437
|
-
mapChildren(children, function() {
|
|
438
|
-
n++;
|
|
439
|
-
});
|
|
440
|
-
return n;
|
|
441
|
-
},
|
|
442
|
-
toArray: function(children) {
|
|
443
|
-
return mapChildren(children, function(child) {
|
|
444
|
-
return child;
|
|
445
|
-
}) || [];
|
|
446
|
-
},
|
|
447
|
-
only: function(children) {
|
|
448
|
-
if (!isValidElement(children))
|
|
449
|
-
throw Error(
|
|
450
|
-
"React.Children.only expected to receive a single React element child."
|
|
451
|
-
);
|
|
452
|
-
return children;
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
exports.Component = Component;
|
|
456
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
457
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
458
|
-
exports.PureComponent = PureComponent;
|
|
459
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
460
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
461
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
462
|
-
exports.__COMPILER_RUNTIME = {
|
|
463
|
-
__proto__: null,
|
|
464
|
-
c: function(size) {
|
|
465
|
-
return ReactSharedInternals.H.useMemoCache(size);
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
exports.cache = function(fn) {
|
|
469
|
-
return function() {
|
|
470
|
-
return fn.apply(null, arguments);
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
|
-
exports.cloneElement = function(element, config, children) {
|
|
474
|
-
if (null === element || void 0 === element)
|
|
475
|
-
throw Error(
|
|
476
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
477
|
-
);
|
|
478
|
-
var props = assign({}, element.props), key = element.key, owner = void 0;
|
|
479
|
-
if (null != config)
|
|
480
|
-
for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
|
|
481
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
482
|
-
var propName = arguments.length - 2;
|
|
483
|
-
if (1 === propName) props.children = children;
|
|
484
|
-
else if (1 < propName) {
|
|
485
|
-
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
486
|
-
childArray[i] = arguments[i + 2];
|
|
487
|
-
props.children = childArray;
|
|
488
|
-
}
|
|
489
|
-
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
490
|
-
};
|
|
491
|
-
exports.createContext = function(defaultValue) {
|
|
492
|
-
defaultValue = {
|
|
493
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
494
|
-
_currentValue: defaultValue,
|
|
495
|
-
_currentValue2: defaultValue,
|
|
496
|
-
_threadCount: 0,
|
|
497
|
-
Provider: null,
|
|
498
|
-
Consumer: null
|
|
499
|
-
};
|
|
500
|
-
defaultValue.Provider = defaultValue;
|
|
501
|
-
defaultValue.Consumer = {
|
|
502
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
503
|
-
_context: defaultValue
|
|
504
|
-
};
|
|
505
|
-
return defaultValue;
|
|
506
|
-
};
|
|
507
|
-
exports.createElement = function(type, config, children) {
|
|
508
|
-
var propName, props = {}, key = null;
|
|
509
|
-
if (null != config)
|
|
510
|
-
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
511
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
512
|
-
var childrenLength = arguments.length - 2;
|
|
513
|
-
if (1 === childrenLength) props.children = children;
|
|
514
|
-
else if (1 < childrenLength) {
|
|
515
|
-
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
516
|
-
childArray[i] = arguments[i + 2];
|
|
517
|
-
props.children = childArray;
|
|
518
|
-
}
|
|
519
|
-
if (type && type.defaultProps)
|
|
520
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
521
|
-
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
522
|
-
return ReactElement(type, key, void 0, void 0, null, props);
|
|
523
|
-
};
|
|
524
|
-
exports.createRef = function() {
|
|
525
|
-
return { current: null };
|
|
526
|
-
};
|
|
527
|
-
exports.forwardRef = function(render) {
|
|
528
|
-
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
529
|
-
};
|
|
530
|
-
exports.isValidElement = isValidElement;
|
|
531
|
-
exports.lazy = function(ctor) {
|
|
532
|
-
return {
|
|
533
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
534
|
-
_payload: { _status: -1, _result: ctor },
|
|
535
|
-
_init: lazyInitializer
|
|
536
|
-
};
|
|
537
|
-
};
|
|
538
|
-
exports.memo = function(type, compare) {
|
|
539
|
-
return {
|
|
540
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
541
|
-
type,
|
|
542
|
-
compare: void 0 === compare ? null : compare
|
|
543
|
-
};
|
|
544
|
-
};
|
|
545
|
-
exports.startTransition = function(scope) {
|
|
546
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
547
|
-
ReactSharedInternals.T = currentTransition;
|
|
548
|
-
try {
|
|
549
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
550
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
551
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
552
|
-
} catch (error) {
|
|
553
|
-
reportGlobalError(error);
|
|
554
|
-
} finally {
|
|
555
|
-
ReactSharedInternals.T = prevTransition;
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
|
-
exports.unstable_useCacheRefresh = function() {
|
|
559
|
-
return ReactSharedInternals.H.useCacheRefresh();
|
|
560
|
-
};
|
|
561
|
-
exports.use = function(usable) {
|
|
562
|
-
return ReactSharedInternals.H.use(usable);
|
|
563
|
-
};
|
|
564
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
565
|
-
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
566
|
-
};
|
|
567
|
-
exports.useCallback = function(callback, deps) {
|
|
568
|
-
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
569
|
-
};
|
|
570
|
-
exports.useContext = function(Context) {
|
|
571
|
-
return ReactSharedInternals.H.useContext(Context);
|
|
572
|
-
};
|
|
573
|
-
exports.useDebugValue = function() {
|
|
574
|
-
};
|
|
575
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
576
|
-
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
577
|
-
};
|
|
578
|
-
exports.useEffect = function(create, createDeps, update) {
|
|
579
|
-
var dispatcher = ReactSharedInternals.H;
|
|
580
|
-
if ("function" === typeof update)
|
|
581
|
-
throw Error(
|
|
582
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
583
|
-
);
|
|
584
|
-
return dispatcher.useEffect(create, createDeps);
|
|
585
|
-
};
|
|
586
|
-
exports.useId = function() {
|
|
587
|
-
return ReactSharedInternals.H.useId();
|
|
588
|
-
};
|
|
589
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
590
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
591
|
-
};
|
|
592
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
593
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
594
|
-
};
|
|
595
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
596
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
597
|
-
};
|
|
598
|
-
exports.useMemo = function(create, deps) {
|
|
599
|
-
return ReactSharedInternals.H.useMemo(create, deps);
|
|
600
|
-
};
|
|
601
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
602
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
603
|
-
};
|
|
604
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
605
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
606
|
-
};
|
|
607
|
-
exports.useRef = function(initialValue) {
|
|
608
|
-
return ReactSharedInternals.H.useRef(initialValue);
|
|
609
|
-
};
|
|
610
|
-
exports.useState = function(initialState) {
|
|
611
|
-
return ReactSharedInternals.H.useState(initialState);
|
|
612
|
-
};
|
|
613
|
-
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
614
|
-
return ReactSharedInternals.H.useSyncExternalStore(
|
|
615
|
-
subscribe,
|
|
616
|
-
getSnapshot,
|
|
617
|
-
getServerSnapshot
|
|
618
|
-
);
|
|
619
|
-
};
|
|
620
|
-
exports.useTransition = function() {
|
|
621
|
-
return ReactSharedInternals.H.useTransition();
|
|
622
|
-
};
|
|
623
|
-
exports.version = "19.1.1";
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
var require_react_development = __commonJS({
|
|
627
|
-
"../../node_modules/react/cjs/react.development.js"(exports, module) {
|
|
628
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
629
|
-
function defineDeprecationWarning(methodName, info) {
|
|
630
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
631
|
-
get: function() {
|
|
632
|
-
console.warn(
|
|
633
|
-
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
634
|
-
info[0],
|
|
635
|
-
info[1]
|
|
636
|
-
);
|
|
637
|
-
}
|
|
638
|
-
});
|
|
639
|
-
}
|
|
640
|
-
function getIteratorFn(maybeIterable) {
|
|
641
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
642
|
-
return null;
|
|
643
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
644
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
645
|
-
}
|
|
646
|
-
function warnNoop(publicInstance, callerName) {
|
|
647
|
-
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
648
|
-
var warningKey = publicInstance + "." + callerName;
|
|
649
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
|
650
|
-
"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.",
|
|
651
|
-
callerName,
|
|
652
|
-
publicInstance
|
|
653
|
-
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
654
|
-
}
|
|
655
|
-
function Component(props, context, updater) {
|
|
656
|
-
this.props = props;
|
|
657
|
-
this.context = context;
|
|
658
|
-
this.refs = emptyObject;
|
|
659
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
660
|
-
}
|
|
661
|
-
function ComponentDummy() {
|
|
662
|
-
}
|
|
663
|
-
function PureComponent(props, context, updater) {
|
|
664
|
-
this.props = props;
|
|
665
|
-
this.context = context;
|
|
666
|
-
this.refs = emptyObject;
|
|
667
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
668
|
-
}
|
|
669
|
-
function testStringCoercion(value) {
|
|
670
|
-
return "" + value;
|
|
671
|
-
}
|
|
672
|
-
function checkKeyStringCoercion(value) {
|
|
673
|
-
try {
|
|
674
|
-
testStringCoercion(value);
|
|
675
|
-
var JSCompiler_inline_result = false;
|
|
676
|
-
} catch (e) {
|
|
677
|
-
JSCompiler_inline_result = true;
|
|
678
|
-
}
|
|
679
|
-
if (JSCompiler_inline_result) {
|
|
680
|
-
JSCompiler_inline_result = console;
|
|
681
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
682
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
683
|
-
JSCompiler_temp_const.call(
|
|
684
|
-
JSCompiler_inline_result,
|
|
685
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
686
|
-
JSCompiler_inline_result$jscomp$0
|
|
687
|
-
);
|
|
688
|
-
return testStringCoercion(value);
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
function getComponentNameFromType(type) {
|
|
692
|
-
if (null == type) return null;
|
|
693
|
-
if ("function" === typeof type)
|
|
694
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
695
|
-
if ("string" === typeof type) return type;
|
|
696
|
-
switch (type) {
|
|
697
|
-
case REACT_FRAGMENT_TYPE:
|
|
698
|
-
return "Fragment";
|
|
699
|
-
case REACT_PROFILER_TYPE:
|
|
700
|
-
return "Profiler";
|
|
701
|
-
case REACT_STRICT_MODE_TYPE:
|
|
702
|
-
return "StrictMode";
|
|
703
|
-
case REACT_SUSPENSE_TYPE:
|
|
704
|
-
return "Suspense";
|
|
705
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
706
|
-
return "SuspenseList";
|
|
707
|
-
case REACT_ACTIVITY_TYPE:
|
|
708
|
-
return "Activity";
|
|
709
|
-
}
|
|
710
|
-
if ("object" === typeof type)
|
|
711
|
-
switch ("number" === typeof type.tag && console.error(
|
|
712
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
713
|
-
), type.$$typeof) {
|
|
714
|
-
case REACT_PORTAL_TYPE:
|
|
715
|
-
return "Portal";
|
|
716
|
-
case REACT_CONTEXT_TYPE:
|
|
717
|
-
return (type.displayName || "Context") + ".Provider";
|
|
718
|
-
case REACT_CONSUMER_TYPE:
|
|
719
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
720
|
-
case REACT_FORWARD_REF_TYPE:
|
|
721
|
-
var innerType = type.render;
|
|
722
|
-
type = type.displayName;
|
|
723
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
724
|
-
return type;
|
|
725
|
-
case REACT_MEMO_TYPE:
|
|
726
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
727
|
-
case REACT_LAZY_TYPE:
|
|
728
|
-
innerType = type._payload;
|
|
729
|
-
type = type._init;
|
|
730
|
-
try {
|
|
731
|
-
return getComponentNameFromType(type(innerType));
|
|
732
|
-
} catch (x) {
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
return null;
|
|
736
|
-
}
|
|
737
|
-
function getTaskName(type) {
|
|
738
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
739
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
740
|
-
return "<...>";
|
|
741
|
-
try {
|
|
742
|
-
var name = getComponentNameFromType(type);
|
|
743
|
-
return name ? "<" + name + ">" : "<...>";
|
|
744
|
-
} catch (x) {
|
|
745
|
-
return "<...>";
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
function getOwner() {
|
|
749
|
-
var dispatcher = ReactSharedInternals.A;
|
|
750
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
751
|
-
}
|
|
752
|
-
function UnknownOwner() {
|
|
753
|
-
return Error("react-stack-top-frame");
|
|
754
|
-
}
|
|
755
|
-
function hasValidKey(config) {
|
|
756
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
757
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
758
|
-
if (getter && getter.isReactWarning) return false;
|
|
759
|
-
}
|
|
760
|
-
return void 0 !== config.key;
|
|
761
|
-
}
|
|
762
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
763
|
-
function warnAboutAccessingKey() {
|
|
764
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
765
|
-
"%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)",
|
|
766
|
-
displayName
|
|
767
|
-
));
|
|
768
|
-
}
|
|
769
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
770
|
-
Object.defineProperty(props, "key", {
|
|
771
|
-
get: warnAboutAccessingKey,
|
|
772
|
-
configurable: true
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
776
|
-
var componentName = getComponentNameFromType(this.type);
|
|
777
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
778
|
-
"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."
|
|
779
|
-
));
|
|
780
|
-
componentName = this.props.ref;
|
|
781
|
-
return void 0 !== componentName ? componentName : null;
|
|
782
|
-
}
|
|
783
|
-
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
784
|
-
self = props.ref;
|
|
785
|
-
type = {
|
|
786
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
787
|
-
type,
|
|
788
|
-
key,
|
|
789
|
-
props,
|
|
790
|
-
_owner: owner
|
|
791
|
-
};
|
|
792
|
-
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
793
|
-
enumerable: false,
|
|
794
|
-
get: elementRefGetterWithDeprecationWarning
|
|
795
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
796
|
-
type._store = {};
|
|
797
|
-
Object.defineProperty(type._store, "validated", {
|
|
798
|
-
configurable: false,
|
|
799
|
-
enumerable: false,
|
|
800
|
-
writable: true,
|
|
801
|
-
value: 0
|
|
802
|
-
});
|
|
803
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
804
|
-
configurable: false,
|
|
805
|
-
enumerable: false,
|
|
806
|
-
writable: true,
|
|
807
|
-
value: null
|
|
808
|
-
});
|
|
809
|
-
Object.defineProperty(type, "_debugStack", {
|
|
810
|
-
configurable: false,
|
|
811
|
-
enumerable: false,
|
|
812
|
-
writable: true,
|
|
813
|
-
value: debugStack
|
|
814
|
-
});
|
|
815
|
-
Object.defineProperty(type, "_debugTask", {
|
|
816
|
-
configurable: false,
|
|
817
|
-
enumerable: false,
|
|
818
|
-
writable: true,
|
|
819
|
-
value: debugTask
|
|
820
|
-
});
|
|
821
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
822
|
-
return type;
|
|
823
|
-
}
|
|
824
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
825
|
-
newKey = ReactElement(
|
|
826
|
-
oldElement.type,
|
|
827
|
-
newKey,
|
|
828
|
-
void 0,
|
|
829
|
-
void 0,
|
|
830
|
-
oldElement._owner,
|
|
831
|
-
oldElement.props,
|
|
832
|
-
oldElement._debugStack,
|
|
833
|
-
oldElement._debugTask
|
|
834
|
-
);
|
|
835
|
-
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
836
|
-
return newKey;
|
|
837
|
-
}
|
|
838
|
-
function isValidElement(object) {
|
|
839
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
840
|
-
}
|
|
841
|
-
function escape(key) {
|
|
842
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
843
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
844
|
-
return escaperLookup[match];
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
function getElementKey(element, index) {
|
|
848
|
-
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
849
|
-
}
|
|
850
|
-
function noop$1() {
|
|
851
|
-
}
|
|
852
|
-
function resolveThenable(thenable) {
|
|
853
|
-
switch (thenable.status) {
|
|
854
|
-
case "fulfilled":
|
|
855
|
-
return thenable.value;
|
|
856
|
-
case "rejected":
|
|
857
|
-
throw thenable.reason;
|
|
858
|
-
default:
|
|
859
|
-
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
860
|
-
function(fulfilledValue) {
|
|
861
|
-
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
862
|
-
},
|
|
863
|
-
function(error) {
|
|
864
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
865
|
-
}
|
|
866
|
-
)), thenable.status) {
|
|
867
|
-
case "fulfilled":
|
|
868
|
-
return thenable.value;
|
|
869
|
-
case "rejected":
|
|
870
|
-
throw thenable.reason;
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
throw thenable;
|
|
874
|
-
}
|
|
875
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
876
|
-
var type = typeof children;
|
|
877
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
878
|
-
var invokeCallback = false;
|
|
879
|
-
if (null === children) invokeCallback = true;
|
|
880
|
-
else
|
|
881
|
-
switch (type) {
|
|
882
|
-
case "bigint":
|
|
883
|
-
case "string":
|
|
884
|
-
case "number":
|
|
885
|
-
invokeCallback = true;
|
|
886
|
-
break;
|
|
887
|
-
case "object":
|
|
888
|
-
switch (children.$$typeof) {
|
|
889
|
-
case REACT_ELEMENT_TYPE:
|
|
890
|
-
case REACT_PORTAL_TYPE:
|
|
891
|
-
invokeCallback = true;
|
|
892
|
-
break;
|
|
893
|
-
case REACT_LAZY_TYPE:
|
|
894
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
895
|
-
invokeCallback(children._payload),
|
|
896
|
-
array,
|
|
897
|
-
escapedPrefix,
|
|
898
|
-
nameSoFar,
|
|
899
|
-
callback
|
|
900
|
-
);
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
if (invokeCallback) {
|
|
904
|
-
invokeCallback = children;
|
|
905
|
-
callback = callback(invokeCallback);
|
|
906
|
-
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
907
|
-
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
908
|
-
return c;
|
|
909
|
-
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
910
|
-
callback,
|
|
911
|
-
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
912
|
-
userProvidedKeyEscapeRegex,
|
|
913
|
-
"$&/"
|
|
914
|
-
) + "/") + childKey
|
|
915
|
-
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
916
|
-
return 1;
|
|
917
|
-
}
|
|
918
|
-
invokeCallback = 0;
|
|
919
|
-
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
920
|
-
if (isArrayImpl(children))
|
|
921
|
-
for (var i = 0; i < children.length; i++)
|
|
922
|
-
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
923
|
-
nameSoFar,
|
|
924
|
-
array,
|
|
925
|
-
escapedPrefix,
|
|
926
|
-
type,
|
|
927
|
-
callback
|
|
928
|
-
);
|
|
929
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
930
|
-
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
931
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
932
|
-
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
933
|
-
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
934
|
-
nameSoFar,
|
|
935
|
-
array,
|
|
936
|
-
escapedPrefix,
|
|
937
|
-
type,
|
|
938
|
-
callback
|
|
939
|
-
);
|
|
940
|
-
else if ("object" === type) {
|
|
941
|
-
if ("function" === typeof children.then)
|
|
942
|
-
return mapIntoArray(
|
|
943
|
-
resolveThenable(children),
|
|
944
|
-
array,
|
|
945
|
-
escapedPrefix,
|
|
946
|
-
nameSoFar,
|
|
947
|
-
callback
|
|
948
|
-
);
|
|
949
|
-
array = String(children);
|
|
950
|
-
throw Error(
|
|
951
|
-
"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."
|
|
952
|
-
);
|
|
953
|
-
}
|
|
954
|
-
return invokeCallback;
|
|
955
|
-
}
|
|
956
|
-
function mapChildren(children, func, context) {
|
|
957
|
-
if (null == children) return children;
|
|
958
|
-
var result = [], count = 0;
|
|
959
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
960
|
-
return func.call(context, child, count++);
|
|
961
|
-
});
|
|
962
|
-
return result;
|
|
963
|
-
}
|
|
964
|
-
function lazyInitializer(payload) {
|
|
965
|
-
if (-1 === payload._status) {
|
|
966
|
-
var ctor = payload._result;
|
|
967
|
-
ctor = ctor();
|
|
968
|
-
ctor.then(
|
|
969
|
-
function(moduleObject) {
|
|
970
|
-
if (0 === payload._status || -1 === payload._status)
|
|
971
|
-
payload._status = 1, payload._result = moduleObject;
|
|
972
|
-
},
|
|
973
|
-
function(error) {
|
|
974
|
-
if (0 === payload._status || -1 === payload._status)
|
|
975
|
-
payload._status = 2, payload._result = error;
|
|
976
|
-
}
|
|
977
|
-
);
|
|
978
|
-
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
979
|
-
}
|
|
980
|
-
if (1 === payload._status)
|
|
981
|
-
return ctor = payload._result, void 0 === ctor && console.error(
|
|
982
|
-
"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?",
|
|
983
|
-
ctor
|
|
984
|
-
), "default" in ctor || console.error(
|
|
985
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
986
|
-
ctor
|
|
987
|
-
), ctor.default;
|
|
988
|
-
throw payload._result;
|
|
989
|
-
}
|
|
990
|
-
function resolveDispatcher() {
|
|
991
|
-
var dispatcher = ReactSharedInternals.H;
|
|
992
|
-
null === dispatcher && console.error(
|
|
993
|
-
"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."
|
|
994
|
-
);
|
|
995
|
-
return dispatcher;
|
|
996
|
-
}
|
|
997
|
-
function noop() {
|
|
998
|
-
}
|
|
999
|
-
function enqueueTask(task) {
|
|
1000
|
-
if (null === enqueueTaskImpl)
|
|
1001
|
-
try {
|
|
1002
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
1003
|
-
enqueueTaskImpl = (module && module[requireString]).call(
|
|
1004
|
-
module,
|
|
1005
|
-
"timers"
|
|
1006
|
-
).setImmediate;
|
|
1007
|
-
} catch (_err) {
|
|
1008
|
-
enqueueTaskImpl = function(callback) {
|
|
1009
|
-
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
1010
|
-
"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."
|
|
1011
|
-
));
|
|
1012
|
-
var channel = new MessageChannel();
|
|
1013
|
-
channel.port1.onmessage = callback;
|
|
1014
|
-
channel.port2.postMessage(void 0);
|
|
1015
|
-
};
|
|
1016
|
-
}
|
|
1017
|
-
return enqueueTaskImpl(task);
|
|
1018
|
-
}
|
|
1019
|
-
function aggregateErrors(errors) {
|
|
1020
|
-
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
1021
|
-
}
|
|
1022
|
-
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
1023
|
-
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
1024
|
-
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
1025
|
-
);
|
|
1026
|
-
actScopeDepth = prevActScopeDepth;
|
|
1027
|
-
}
|
|
1028
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
1029
|
-
var queue = ReactSharedInternals.actQueue;
|
|
1030
|
-
if (null !== queue)
|
|
1031
|
-
if (0 !== queue.length)
|
|
1032
|
-
try {
|
|
1033
|
-
flushActQueue(queue);
|
|
1034
|
-
enqueueTask(function() {
|
|
1035
|
-
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
1036
|
-
});
|
|
1037
|
-
return;
|
|
1038
|
-
} catch (error) {
|
|
1039
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
1040
|
-
}
|
|
1041
|
-
else ReactSharedInternals.actQueue = null;
|
|
1042
|
-
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
1043
|
-
}
|
|
1044
|
-
function flushActQueue(queue) {
|
|
1045
|
-
if (!isFlushing) {
|
|
1046
|
-
isFlushing = true;
|
|
1047
|
-
var i = 0;
|
|
1048
|
-
try {
|
|
1049
|
-
for (; i < queue.length; i++) {
|
|
1050
|
-
var callback = queue[i];
|
|
1051
|
-
do {
|
|
1052
|
-
ReactSharedInternals.didUsePromise = false;
|
|
1053
|
-
var continuation = callback(false);
|
|
1054
|
-
if (null !== continuation) {
|
|
1055
|
-
if (ReactSharedInternals.didUsePromise) {
|
|
1056
|
-
queue[i] = callback;
|
|
1057
|
-
queue.splice(0, i);
|
|
1058
|
-
return;
|
|
1059
|
-
}
|
|
1060
|
-
callback = continuation;
|
|
1061
|
-
} else break;
|
|
1062
|
-
} while (1);
|
|
1063
|
-
}
|
|
1064
|
-
queue.length = 0;
|
|
1065
|
-
} catch (error) {
|
|
1066
|
-
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
1067
|
-
} finally {
|
|
1068
|
-
isFlushing = false;
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1073
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1074
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
1075
|
-
isMounted: function() {
|
|
1076
|
-
return false;
|
|
1077
|
-
},
|
|
1078
|
-
enqueueForceUpdate: function(publicInstance) {
|
|
1079
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
1080
|
-
},
|
|
1081
|
-
enqueueReplaceState: function(publicInstance) {
|
|
1082
|
-
warnNoop(publicInstance, "replaceState");
|
|
1083
|
-
},
|
|
1084
|
-
enqueueSetState: function(publicInstance) {
|
|
1085
|
-
warnNoop(publicInstance, "setState");
|
|
1086
|
-
}
|
|
1087
|
-
}, assign = Object.assign, emptyObject = {};
|
|
1088
|
-
Object.freeze(emptyObject);
|
|
1089
|
-
Component.prototype.isReactComponent = {};
|
|
1090
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
1091
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
1092
|
-
throw Error(
|
|
1093
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1094
|
-
);
|
|
1095
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
1096
|
-
};
|
|
1097
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
1098
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
1099
|
-
};
|
|
1100
|
-
var deprecatedAPIs = {
|
|
1101
|
-
isMounted: [
|
|
1102
|
-
"isMounted",
|
|
1103
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1104
|
-
],
|
|
1105
|
-
replaceState: [
|
|
1106
|
-
"replaceState",
|
|
1107
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1108
|
-
]
|
|
1109
|
-
}, fnName;
|
|
1110
|
-
for (fnName in deprecatedAPIs)
|
|
1111
|
-
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1112
|
-
ComponentDummy.prototype = Component.prototype;
|
|
1113
|
-
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1114
|
-
deprecatedAPIs.constructor = PureComponent;
|
|
1115
|
-
assign(deprecatedAPIs, Component.prototype);
|
|
1116
|
-
deprecatedAPIs.isPureReactComponent = true;
|
|
1117
|
-
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
1118
|
-
H: null,
|
|
1119
|
-
A: null,
|
|
1120
|
-
T: null,
|
|
1121
|
-
S: null,
|
|
1122
|
-
V: null,
|
|
1123
|
-
actQueue: null,
|
|
1124
|
-
isBatchingLegacy: false,
|
|
1125
|
-
didScheduleLegacyUpdate: false,
|
|
1126
|
-
didUsePromise: false,
|
|
1127
|
-
thrownErrors: [],
|
|
1128
|
-
getCurrentStack: null,
|
|
1129
|
-
recentlyCreatedOwnerStacks: 0
|
|
1130
|
-
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1131
|
-
return null;
|
|
1132
|
-
};
|
|
1133
|
-
deprecatedAPIs = {
|
|
1134
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
1135
|
-
return callStackForError();
|
|
1136
|
-
}
|
|
1137
|
-
};
|
|
1138
|
-
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1139
|
-
var didWarnAboutElementRef = {};
|
|
1140
|
-
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
1141
|
-
deprecatedAPIs,
|
|
1142
|
-
UnknownOwner
|
|
1143
|
-
)();
|
|
1144
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1145
|
-
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1146
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1147
|
-
var event = new window.ErrorEvent("error", {
|
|
1148
|
-
bubbles: true,
|
|
1149
|
-
cancelable: true,
|
|
1150
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1151
|
-
error
|
|
1152
|
-
});
|
|
1153
|
-
if (!window.dispatchEvent(event)) return;
|
|
1154
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1155
|
-
process.emit("uncaughtException", error);
|
|
1156
|
-
return;
|
|
1157
|
-
}
|
|
1158
|
-
console.error(error);
|
|
1159
|
-
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
1160
|
-
queueMicrotask(function() {
|
|
1161
|
-
return queueMicrotask(callback);
|
|
1162
|
-
});
|
|
1163
|
-
} : enqueueTask;
|
|
1164
|
-
deprecatedAPIs = Object.freeze({
|
|
1165
|
-
__proto__: null,
|
|
1166
|
-
c: function(size) {
|
|
1167
|
-
return resolveDispatcher().useMemoCache(size);
|
|
1168
|
-
}
|
|
1169
|
-
});
|
|
1170
|
-
exports.Children = {
|
|
1171
|
-
map: mapChildren,
|
|
1172
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
1173
|
-
mapChildren(
|
|
1174
|
-
children,
|
|
1175
|
-
function() {
|
|
1176
|
-
forEachFunc.apply(this, arguments);
|
|
1177
|
-
},
|
|
1178
|
-
forEachContext
|
|
1179
|
-
);
|
|
1180
|
-
},
|
|
1181
|
-
count: function(children) {
|
|
1182
|
-
var n = 0;
|
|
1183
|
-
mapChildren(children, function() {
|
|
1184
|
-
n++;
|
|
1185
|
-
});
|
|
1186
|
-
return n;
|
|
1187
|
-
},
|
|
1188
|
-
toArray: function(children) {
|
|
1189
|
-
return mapChildren(children, function(child) {
|
|
1190
|
-
return child;
|
|
1191
|
-
}) || [];
|
|
1192
|
-
},
|
|
1193
|
-
only: function(children) {
|
|
1194
|
-
if (!isValidElement(children))
|
|
1195
|
-
throw Error(
|
|
1196
|
-
"React.Children.only expected to receive a single React element child."
|
|
1197
|
-
);
|
|
1198
|
-
return children;
|
|
1199
|
-
}
|
|
1200
|
-
};
|
|
1201
|
-
exports.Component = Component;
|
|
1202
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1203
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
1204
|
-
exports.PureComponent = PureComponent;
|
|
1205
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1206
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
1207
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1208
|
-
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1209
|
-
exports.act = function(callback) {
|
|
1210
|
-
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1211
|
-
actScopeDepth++;
|
|
1212
|
-
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1213
|
-
try {
|
|
1214
|
-
var result = callback();
|
|
1215
|
-
} catch (error) {
|
|
1216
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
1217
|
-
}
|
|
1218
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1219
|
-
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1220
|
-
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
1221
|
-
var thenable = result;
|
|
1222
|
-
queueSeveralMicrotasks(function() {
|
|
1223
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1224
|
-
"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 () => ...);"
|
|
1225
|
-
));
|
|
1226
|
-
});
|
|
1227
|
-
return {
|
|
1228
|
-
then: function(resolve, reject) {
|
|
1229
|
-
didAwaitActCall = true;
|
|
1230
|
-
thenable.then(
|
|
1231
|
-
function(returnValue) {
|
|
1232
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1233
|
-
if (0 === prevActScopeDepth) {
|
|
1234
|
-
try {
|
|
1235
|
-
flushActQueue(queue), enqueueTask(function() {
|
|
1236
|
-
return recursivelyFlushAsyncActWork(
|
|
1237
|
-
returnValue,
|
|
1238
|
-
resolve,
|
|
1239
|
-
reject
|
|
1240
|
-
);
|
|
1241
|
-
});
|
|
1242
|
-
} catch (error$0) {
|
|
1243
|
-
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1244
|
-
}
|
|
1245
|
-
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1246
|
-
var _thrownError = aggregateErrors(
|
|
1247
|
-
ReactSharedInternals.thrownErrors
|
|
1248
|
-
);
|
|
1249
|
-
ReactSharedInternals.thrownErrors.length = 0;
|
|
1250
|
-
reject(_thrownError);
|
|
1251
|
-
}
|
|
1252
|
-
} else resolve(returnValue);
|
|
1253
|
-
},
|
|
1254
|
-
function(error) {
|
|
1255
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1256
|
-
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
1257
|
-
ReactSharedInternals.thrownErrors
|
|
1258
|
-
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
1259
|
-
}
|
|
1260
|
-
);
|
|
1261
|
-
}
|
|
1262
|
-
};
|
|
1263
|
-
}
|
|
1264
|
-
var returnValue$jscomp$0 = result;
|
|
1265
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1266
|
-
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
1267
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1268
|
-
"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(() => ...)"
|
|
1269
|
-
));
|
|
1270
|
-
}), ReactSharedInternals.actQueue = null);
|
|
1271
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1272
|
-
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1273
|
-
return {
|
|
1274
|
-
then: function(resolve, reject) {
|
|
1275
|
-
didAwaitActCall = true;
|
|
1276
|
-
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
1277
|
-
return recursivelyFlushAsyncActWork(
|
|
1278
|
-
returnValue$jscomp$0,
|
|
1279
|
-
resolve,
|
|
1280
|
-
reject
|
|
1281
|
-
);
|
|
1282
|
-
})) : resolve(returnValue$jscomp$0);
|
|
1283
|
-
}
|
|
1284
|
-
};
|
|
1285
|
-
};
|
|
1286
|
-
exports.cache = function(fn) {
|
|
1287
|
-
return function() {
|
|
1288
|
-
return fn.apply(null, arguments);
|
|
1289
|
-
};
|
|
1290
|
-
};
|
|
1291
|
-
exports.captureOwnerStack = function() {
|
|
1292
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1293
|
-
return null === getCurrentStack ? null : getCurrentStack();
|
|
1294
|
-
};
|
|
1295
|
-
exports.cloneElement = function(element, config, children) {
|
|
1296
|
-
if (null === element || void 0 === element)
|
|
1297
|
-
throw Error(
|
|
1298
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
1299
|
-
);
|
|
1300
|
-
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1301
|
-
if (null != config) {
|
|
1302
|
-
var JSCompiler_inline_result;
|
|
1303
|
-
a: {
|
|
1304
|
-
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1305
|
-
config,
|
|
1306
|
-
"ref"
|
|
1307
|
-
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1308
|
-
JSCompiler_inline_result = false;
|
|
1309
|
-
break a;
|
|
1310
|
-
}
|
|
1311
|
-
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1312
|
-
}
|
|
1313
|
-
JSCompiler_inline_result && (owner = getOwner());
|
|
1314
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1315
|
-
for (propName in config)
|
|
1316
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1317
|
-
}
|
|
1318
|
-
var propName = arguments.length - 2;
|
|
1319
|
-
if (1 === propName) props.children = children;
|
|
1320
|
-
else if (1 < propName) {
|
|
1321
|
-
JSCompiler_inline_result = Array(propName);
|
|
1322
|
-
for (var i = 0; i < propName; i++)
|
|
1323
|
-
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1324
|
-
props.children = JSCompiler_inline_result;
|
|
1325
|
-
}
|
|
1326
|
-
props = ReactElement(
|
|
1327
|
-
element.type,
|
|
1328
|
-
key,
|
|
1329
|
-
void 0,
|
|
1330
|
-
void 0,
|
|
1331
|
-
owner,
|
|
1332
|
-
props,
|
|
1333
|
-
element._debugStack,
|
|
1334
|
-
element._debugTask
|
|
1335
|
-
);
|
|
1336
|
-
for (key = 2; key < arguments.length; key++)
|
|
1337
|
-
owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
|
1338
|
-
return props;
|
|
1339
|
-
};
|
|
1340
|
-
exports.createContext = function(defaultValue) {
|
|
1341
|
-
defaultValue = {
|
|
1342
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1343
|
-
_currentValue: defaultValue,
|
|
1344
|
-
_currentValue2: defaultValue,
|
|
1345
|
-
_threadCount: 0,
|
|
1346
|
-
Provider: null,
|
|
1347
|
-
Consumer: null
|
|
1348
|
-
};
|
|
1349
|
-
defaultValue.Provider = defaultValue;
|
|
1350
|
-
defaultValue.Consumer = {
|
|
1351
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
1352
|
-
_context: defaultValue
|
|
1353
|
-
};
|
|
1354
|
-
defaultValue._currentRenderer = null;
|
|
1355
|
-
defaultValue._currentRenderer2 = null;
|
|
1356
|
-
return defaultValue;
|
|
1357
|
-
};
|
|
1358
|
-
exports.createElement = function(type, config, children) {
|
|
1359
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1360
|
-
var node = arguments[i];
|
|
1361
|
-
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
1362
|
-
}
|
|
1363
|
-
i = {};
|
|
1364
|
-
node = null;
|
|
1365
|
-
if (null != config)
|
|
1366
|
-
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
1367
|
-
"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"
|
|
1368
|
-
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
|
|
1369
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1370
|
-
var childrenLength = arguments.length - 2;
|
|
1371
|
-
if (1 === childrenLength) i.children = children;
|
|
1372
|
-
else if (1 < childrenLength) {
|
|
1373
|
-
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
1374
|
-
childArray[_i] = arguments[_i + 2];
|
|
1375
|
-
Object.freeze && Object.freeze(childArray);
|
|
1376
|
-
i.children = childArray;
|
|
1377
|
-
}
|
|
1378
|
-
if (type && type.defaultProps)
|
|
1379
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1380
|
-
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1381
|
-
node && defineKeyPropWarningGetter(
|
|
1382
|
-
i,
|
|
1383
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1384
|
-
);
|
|
1385
|
-
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1386
|
-
return ReactElement(
|
|
1387
|
-
type,
|
|
1388
|
-
node,
|
|
1389
|
-
void 0,
|
|
1390
|
-
void 0,
|
|
1391
|
-
getOwner(),
|
|
1392
|
-
i,
|
|
1393
|
-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1394
|
-
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1395
|
-
);
|
|
1396
|
-
};
|
|
1397
|
-
exports.createRef = function() {
|
|
1398
|
-
var refObject = { current: null };
|
|
1399
|
-
Object.seal(refObject);
|
|
1400
|
-
return refObject;
|
|
1401
|
-
};
|
|
1402
|
-
exports.forwardRef = function(render) {
|
|
1403
|
-
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1404
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1405
|
-
) : "function" !== typeof render ? console.error(
|
|
1406
|
-
"forwardRef requires a render function but was given %s.",
|
|
1407
|
-
null === render ? "null" : typeof render
|
|
1408
|
-
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1409
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1410
|
-
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1411
|
-
);
|
|
1412
|
-
null != render && null != render.defaultProps && console.error(
|
|
1413
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1414
|
-
);
|
|
1415
|
-
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1416
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1417
|
-
enumerable: false,
|
|
1418
|
-
configurable: true,
|
|
1419
|
-
get: function() {
|
|
1420
|
-
return ownName;
|
|
1421
|
-
},
|
|
1422
|
-
set: function(name) {
|
|
1423
|
-
ownName = name;
|
|
1424
|
-
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
1425
|
-
}
|
|
1426
|
-
});
|
|
1427
|
-
return elementType;
|
|
1428
|
-
};
|
|
1429
|
-
exports.isValidElement = isValidElement;
|
|
1430
|
-
exports.lazy = function(ctor) {
|
|
1431
|
-
return {
|
|
1432
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1433
|
-
_payload: { _status: -1, _result: ctor },
|
|
1434
|
-
_init: lazyInitializer
|
|
1435
|
-
};
|
|
1436
|
-
};
|
|
1437
|
-
exports.memo = function(type, compare) {
|
|
1438
|
-
null == type && console.error(
|
|
1439
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
1440
|
-
null === type ? "null" : typeof type
|
|
1441
|
-
);
|
|
1442
|
-
compare = {
|
|
1443
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1444
|
-
type,
|
|
1445
|
-
compare: void 0 === compare ? null : compare
|
|
1446
|
-
};
|
|
1447
|
-
var ownName;
|
|
1448
|
-
Object.defineProperty(compare, "displayName", {
|
|
1449
|
-
enumerable: false,
|
|
1450
|
-
configurable: true,
|
|
1451
|
-
get: function() {
|
|
1452
|
-
return ownName;
|
|
1453
|
-
},
|
|
1454
|
-
set: function(name) {
|
|
1455
|
-
ownName = name;
|
|
1456
|
-
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
1457
|
-
}
|
|
1458
|
-
});
|
|
1459
|
-
return compare;
|
|
1460
|
-
};
|
|
1461
|
-
exports.startTransition = function(scope) {
|
|
1462
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
1463
|
-
ReactSharedInternals.T = currentTransition;
|
|
1464
|
-
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1465
|
-
try {
|
|
1466
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
1467
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1468
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
1469
|
-
} catch (error) {
|
|
1470
|
-
reportGlobalError(error);
|
|
1471
|
-
} finally {
|
|
1472
|
-
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
1473
|
-
"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."
|
|
1474
|
-
)), ReactSharedInternals.T = prevTransition;
|
|
1475
|
-
}
|
|
1476
|
-
};
|
|
1477
|
-
exports.unstable_useCacheRefresh = function() {
|
|
1478
|
-
return resolveDispatcher().useCacheRefresh();
|
|
1479
|
-
};
|
|
1480
|
-
exports.use = function(usable) {
|
|
1481
|
-
return resolveDispatcher().use(usable);
|
|
1482
|
-
};
|
|
1483
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
1484
|
-
return resolveDispatcher().useActionState(
|
|
1485
|
-
action,
|
|
1486
|
-
initialState,
|
|
1487
|
-
permalink
|
|
1488
|
-
);
|
|
1489
|
-
};
|
|
1490
|
-
exports.useCallback = function(callback, deps) {
|
|
1491
|
-
return resolveDispatcher().useCallback(callback, deps);
|
|
1492
|
-
};
|
|
1493
|
-
exports.useContext = function(Context) {
|
|
1494
|
-
var dispatcher = resolveDispatcher();
|
|
1495
|
-
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1496
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1497
|
-
);
|
|
1498
|
-
return dispatcher.useContext(Context);
|
|
1499
|
-
};
|
|
1500
|
-
exports.useDebugValue = function(value, formatterFn) {
|
|
1501
|
-
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1502
|
-
};
|
|
1503
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
1504
|
-
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1505
|
-
};
|
|
1506
|
-
exports.useEffect = function(create, createDeps, update) {
|
|
1507
|
-
null == create && console.warn(
|
|
1508
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1509
|
-
);
|
|
1510
|
-
var dispatcher = resolveDispatcher();
|
|
1511
|
-
if ("function" === typeof update)
|
|
1512
|
-
throw Error(
|
|
1513
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
1514
|
-
);
|
|
1515
|
-
return dispatcher.useEffect(create, createDeps);
|
|
1516
|
-
};
|
|
1517
|
-
exports.useId = function() {
|
|
1518
|
-
return resolveDispatcher().useId();
|
|
1519
|
-
};
|
|
1520
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
1521
|
-
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1522
|
-
};
|
|
1523
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
1524
|
-
null == create && console.warn(
|
|
1525
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1526
|
-
);
|
|
1527
|
-
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1528
|
-
};
|
|
1529
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
1530
|
-
null == create && console.warn(
|
|
1531
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1532
|
-
);
|
|
1533
|
-
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1534
|
-
};
|
|
1535
|
-
exports.useMemo = function(create, deps) {
|
|
1536
|
-
return resolveDispatcher().useMemo(create, deps);
|
|
1537
|
-
};
|
|
1538
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
1539
|
-
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1540
|
-
};
|
|
1541
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
1542
|
-
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1543
|
-
};
|
|
1544
|
-
exports.useRef = function(initialValue) {
|
|
1545
|
-
return resolveDispatcher().useRef(initialValue);
|
|
1546
|
-
};
|
|
1547
|
-
exports.useState = function(initialState) {
|
|
1548
|
-
return resolveDispatcher().useState(initialState);
|
|
1549
|
-
};
|
|
1550
|
-
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1551
|
-
return resolveDispatcher().useSyncExternalStore(
|
|
1552
|
-
subscribe,
|
|
1553
|
-
getSnapshot,
|
|
1554
|
-
getServerSnapshot
|
|
1555
|
-
);
|
|
1556
|
-
};
|
|
1557
|
-
exports.useTransition = function() {
|
|
1558
|
-
return resolveDispatcher().useTransition();
|
|
1559
|
-
};
|
|
1560
|
-
exports.version = "19.1.1";
|
|
1561
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1562
|
-
})();
|
|
1563
|
-
}
|
|
1564
|
-
});
|
|
1565
|
-
var require_react = __commonJS({
|
|
1566
|
-
"../../node_modules/react/index.js"(exports, module) {
|
|
1567
|
-
if (process.env.NODE_ENV === "production") {
|
|
1568
|
-
module.exports = require_react_production();
|
|
1569
|
-
} else {
|
|
1570
|
-
module.exports = require_react_development();
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1573
|
-
});
|
|
1574
|
-
var require_react_jsx_runtime_development = __commonJS({
|
|
1575
|
-
"../../node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
1576
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
1577
|
-
function getComponentNameFromType(type) {
|
|
1578
|
-
if (null == type) return null;
|
|
1579
|
-
if ("function" === typeof type)
|
|
1580
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
1581
|
-
if ("string" === typeof type) return type;
|
|
1582
|
-
switch (type) {
|
|
1583
|
-
case REACT_FRAGMENT_TYPE:
|
|
1584
|
-
return "Fragment";
|
|
1585
|
-
case REACT_PROFILER_TYPE:
|
|
1586
|
-
return "Profiler";
|
|
1587
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1588
|
-
return "StrictMode";
|
|
1589
|
-
case REACT_SUSPENSE_TYPE:
|
|
1590
|
-
return "Suspense";
|
|
1591
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1592
|
-
return "SuspenseList";
|
|
1593
|
-
case REACT_ACTIVITY_TYPE:
|
|
1594
|
-
return "Activity";
|
|
1595
|
-
}
|
|
1596
|
-
if ("object" === typeof type)
|
|
1597
|
-
switch ("number" === typeof type.tag && console.error(
|
|
1598
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1599
|
-
), type.$$typeof) {
|
|
1600
|
-
case REACT_PORTAL_TYPE:
|
|
1601
|
-
return "Portal";
|
|
1602
|
-
case REACT_CONTEXT_TYPE:
|
|
1603
|
-
return (type.displayName || "Context") + ".Provider";
|
|
1604
|
-
case REACT_CONSUMER_TYPE:
|
|
1605
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
1606
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1607
|
-
var innerType = type.render;
|
|
1608
|
-
type = type.displayName;
|
|
1609
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1610
|
-
return type;
|
|
1611
|
-
case REACT_MEMO_TYPE:
|
|
1612
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1613
|
-
case REACT_LAZY_TYPE:
|
|
1614
|
-
innerType = type._payload;
|
|
1615
|
-
type = type._init;
|
|
1616
|
-
try {
|
|
1617
|
-
return getComponentNameFromType(type(innerType));
|
|
1618
|
-
} catch (x) {
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
return null;
|
|
1622
|
-
}
|
|
1623
|
-
function testStringCoercion(value) {
|
|
1624
|
-
return "" + value;
|
|
1625
|
-
}
|
|
1626
|
-
function checkKeyStringCoercion(value) {
|
|
1627
|
-
try {
|
|
1628
|
-
testStringCoercion(value);
|
|
1629
|
-
var JSCompiler_inline_result = false;
|
|
1630
|
-
} catch (e) {
|
|
1631
|
-
JSCompiler_inline_result = true;
|
|
1632
|
-
}
|
|
1633
|
-
if (JSCompiler_inline_result) {
|
|
1634
|
-
JSCompiler_inline_result = console;
|
|
1635
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1636
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1637
|
-
JSCompiler_temp_const.call(
|
|
1638
|
-
JSCompiler_inline_result,
|
|
1639
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1640
|
-
JSCompiler_inline_result$jscomp$0
|
|
1641
|
-
);
|
|
1642
|
-
return testStringCoercion(value);
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
function getTaskName(type) {
|
|
1646
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
1647
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
1648
|
-
return "<...>";
|
|
1649
|
-
try {
|
|
1650
|
-
var name = getComponentNameFromType(type);
|
|
1651
|
-
return name ? "<" + name + ">" : "<...>";
|
|
1652
|
-
} catch (x) {
|
|
1653
|
-
return "<...>";
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
function getOwner() {
|
|
1657
|
-
var dispatcher = ReactSharedInternals.A;
|
|
1658
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1659
|
-
}
|
|
1660
|
-
function UnknownOwner() {
|
|
1661
|
-
return Error("react-stack-top-frame");
|
|
1662
|
-
}
|
|
1663
|
-
function hasValidKey(config) {
|
|
1664
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1665
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1666
|
-
if (getter && getter.isReactWarning) return false;
|
|
1667
|
-
}
|
|
1668
|
-
return void 0 !== config.key;
|
|
1669
|
-
}
|
|
1670
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
1671
|
-
function warnAboutAccessingKey() {
|
|
1672
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
1673
|
-
"%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)",
|
|
1674
|
-
displayName
|
|
1675
|
-
));
|
|
1676
|
-
}
|
|
1677
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
1678
|
-
Object.defineProperty(props, "key", {
|
|
1679
|
-
get: warnAboutAccessingKey,
|
|
1680
|
-
configurable: true
|
|
1681
|
-
});
|
|
1682
|
-
}
|
|
1683
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
1684
|
-
var componentName = getComponentNameFromType(this.type);
|
|
1685
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
1686
|
-
"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."
|
|
1687
|
-
));
|
|
1688
|
-
componentName = this.props.ref;
|
|
1689
|
-
return void 0 !== componentName ? componentName : null;
|
|
1690
|
-
}
|
|
1691
|
-
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
1692
|
-
self = props.ref;
|
|
1693
|
-
type = {
|
|
1694
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1695
|
-
type,
|
|
1696
|
-
key,
|
|
1697
|
-
props,
|
|
1698
|
-
_owner: owner
|
|
1699
|
-
};
|
|
1700
|
-
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
1701
|
-
enumerable: false,
|
|
1702
|
-
get: elementRefGetterWithDeprecationWarning
|
|
1703
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
1704
|
-
type._store = {};
|
|
1705
|
-
Object.defineProperty(type._store, "validated", {
|
|
1706
|
-
configurable: false,
|
|
1707
|
-
enumerable: false,
|
|
1708
|
-
writable: true,
|
|
1709
|
-
value: 0
|
|
1710
|
-
});
|
|
1711
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
1712
|
-
configurable: false,
|
|
1713
|
-
enumerable: false,
|
|
1714
|
-
writable: true,
|
|
1715
|
-
value: null
|
|
1716
|
-
});
|
|
1717
|
-
Object.defineProperty(type, "_debugStack", {
|
|
1718
|
-
configurable: false,
|
|
1719
|
-
enumerable: false,
|
|
1720
|
-
writable: true,
|
|
1721
|
-
value: debugStack
|
|
1722
|
-
});
|
|
1723
|
-
Object.defineProperty(type, "_debugTask", {
|
|
1724
|
-
configurable: false,
|
|
1725
|
-
enumerable: false,
|
|
1726
|
-
writable: true,
|
|
1727
|
-
value: debugTask
|
|
1728
|
-
});
|
|
1729
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1730
|
-
return type;
|
|
1731
|
-
}
|
|
1732
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
|
|
1733
|
-
var children = config.children;
|
|
1734
|
-
if (void 0 !== children)
|
|
1735
|
-
if (isStaticChildren)
|
|
1736
|
-
if (isArrayImpl(children)) {
|
|
1737
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
1738
|
-
validateChildKeys(children[isStaticChildren]);
|
|
1739
|
-
Object.freeze && Object.freeze(children);
|
|
1740
|
-
} else
|
|
1741
|
-
console.error(
|
|
1742
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1743
|
-
);
|
|
1744
|
-
else validateChildKeys(children);
|
|
1745
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1746
|
-
children = getComponentNameFromType(type);
|
|
1747
|
-
var keys = Object.keys(config).filter(function(k) {
|
|
1748
|
-
return "key" !== k;
|
|
1749
|
-
});
|
|
1750
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1751
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1752
|
-
'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} />',
|
|
1753
|
-
isStaticChildren,
|
|
1754
|
-
children,
|
|
1755
|
-
keys,
|
|
1756
|
-
children
|
|
1757
|
-
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
1758
|
-
}
|
|
1759
|
-
children = null;
|
|
1760
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1761
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1762
|
-
if ("key" in config) {
|
|
1763
|
-
maybeKey = {};
|
|
1764
|
-
for (var propName in config)
|
|
1765
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1766
|
-
} else maybeKey = config;
|
|
1767
|
-
children && defineKeyPropWarningGetter(
|
|
1768
|
-
maybeKey,
|
|
1769
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1770
|
-
);
|
|
1771
|
-
return ReactElement(
|
|
1772
|
-
type,
|
|
1773
|
-
children,
|
|
1774
|
-
self,
|
|
1775
|
-
source,
|
|
1776
|
-
getOwner(),
|
|
1777
|
-
maybeKey,
|
|
1778
|
-
debugStack,
|
|
1779
|
-
debugTask
|
|
1780
|
-
);
|
|
1781
|
-
}
|
|
1782
|
-
function validateChildKeys(node) {
|
|
1783
|
-
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
|
1784
|
-
}
|
|
1785
|
-
var React7 = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1786
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
1787
|
-
return null;
|
|
1788
|
-
};
|
|
1789
|
-
React7 = {
|
|
1790
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
1791
|
-
return callStackForError();
|
|
1792
|
-
}
|
|
1793
|
-
};
|
|
1794
|
-
var specialPropKeyWarningShown;
|
|
1795
|
-
var didWarnAboutElementRef = {};
|
|
1796
|
-
var unknownOwnerDebugStack = React7.react_stack_bottom_frame.bind(
|
|
1797
|
-
React7,
|
|
1798
|
-
UnknownOwner
|
|
1799
|
-
)();
|
|
1800
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1801
|
-
var didWarnAboutKeySpread = {};
|
|
1802
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1803
|
-
exports.jsx = function(type, config, maybeKey, source, self) {
|
|
1804
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1805
|
-
return jsxDEVImpl(
|
|
1806
|
-
type,
|
|
1807
|
-
config,
|
|
1808
|
-
maybeKey,
|
|
1809
|
-
false,
|
|
1810
|
-
source,
|
|
1811
|
-
self,
|
|
1812
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1813
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1814
|
-
);
|
|
1815
|
-
};
|
|
1816
|
-
exports.jsxs = function(type, config, maybeKey, source, self) {
|
|
1817
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1818
|
-
return jsxDEVImpl(
|
|
1819
|
-
type,
|
|
1820
|
-
config,
|
|
1821
|
-
maybeKey,
|
|
1822
|
-
true,
|
|
1823
|
-
source,
|
|
1824
|
-
self,
|
|
1825
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1826
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1827
|
-
);
|
|
1828
|
-
};
|
|
1829
|
-
})();
|
|
1830
|
-
}
|
|
1831
|
-
});
|
|
1832
|
-
var require_jsx_runtime = __commonJS({
|
|
1833
|
-
"../../node_modules/react/jsx-runtime.js"(exports, module) {
|
|
1834
|
-
if (process.env.NODE_ENV === "production") {
|
|
1835
|
-
module.exports = require_react_jsx_runtime_production();
|
|
1836
|
-
} else {
|
|
1837
|
-
module.exports = require_react_jsx_runtime_development();
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
1840
|
-
});
|
|
1841
|
-
var import_jsx_runtime3 = __toESM(require_jsx_runtime());
|
|
1842
|
-
var import_jsx_runtime22 = __toESM(require_jsx_runtime());
|
|
1843
|
-
var import_jsx_runtime32 = __toESM(require_jsx_runtime());
|
|
1844
|
-
var import_jsx_runtime4 = __toESM(require_jsx_runtime());
|
|
1845
|
-
var import_jsx_runtime5 = __toESM(require_jsx_runtime());
|
|
1846
|
-
var import_jsx_runtime6 = __toESM(require_jsx_runtime());
|
|
1847
|
-
var SvgChevron = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
131
|
+
import { jsxs, jsx as jsx3 } from "react/jsx-runtime";
|
|
132
|
+
var SvgChevron = (props) => /* @__PURE__ */ jsx3(
|
|
1848
133
|
"svg",
|
|
1849
134
|
{
|
|
1850
135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1853,7 +138,7 @@ var SvgChevron = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
|
1853
138
|
fill: "none",
|
|
1854
139
|
viewBox: "0 0 24 24",
|
|
1855
140
|
...props,
|
|
1856
|
-
children: /* @__PURE__ */ (
|
|
141
|
+
children: /* @__PURE__ */ jsx3(
|
|
1857
142
|
"path",
|
|
1858
143
|
{
|
|
1859
144
|
fill: "currentColor",
|
|
@@ -1865,60 +150,9 @@ var SvgChevron = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
|
1865
150
|
}
|
|
1866
151
|
);
|
|
1867
152
|
var Chevron_default = SvgChevron;
|
|
1868
|
-
var import_jsx_runtime7 = __toESM(require_jsx_runtime());
|
|
1869
|
-
var import_jsx_runtime8 = __toESM(require_jsx_runtime());
|
|
1870
|
-
var import_jsx_runtime9 = __toESM(require_jsx_runtime());
|
|
1871
|
-
var import_jsx_runtime10 = __toESM(require_jsx_runtime());
|
|
1872
|
-
var import_jsx_runtime11 = __toESM(require_jsx_runtime());
|
|
1873
|
-
var import_jsx_runtime12 = __toESM(require_jsx_runtime());
|
|
1874
|
-
var import_jsx_runtime13 = __toESM(require_jsx_runtime());
|
|
1875
|
-
var import_jsx_runtime14 = __toESM(require_jsx_runtime());
|
|
1876
|
-
var import_jsx_runtime15 = __toESM(require_jsx_runtime());
|
|
1877
|
-
var import_jsx_runtime16 = __toESM(require_jsx_runtime());
|
|
1878
|
-
var import_jsx_runtime17 = __toESM(require_jsx_runtime());
|
|
1879
|
-
var import_jsx_runtime18 = __toESM(require_jsx_runtime());
|
|
1880
|
-
var import_jsx_runtime19 = __toESM(require_jsx_runtime());
|
|
1881
|
-
var import_jsx_runtime20 = __toESM(require_jsx_runtime());
|
|
1882
|
-
var import_jsx_runtime21 = __toESM(require_jsx_runtime());
|
|
1883
|
-
var import_jsx_runtime222 = __toESM(require_jsx_runtime());
|
|
1884
|
-
var import_jsx_runtime23 = __toESM(require_jsx_runtime());
|
|
1885
|
-
var import_jsx_runtime24 = __toESM(require_jsx_runtime());
|
|
1886
|
-
var import_jsx_runtime25 = __toESM(require_jsx_runtime());
|
|
1887
|
-
var import_jsx_runtime26 = __toESM(require_jsx_runtime());
|
|
1888
|
-
var import_jsx_runtime27 = __toESM(require_jsx_runtime());
|
|
1889
|
-
var import_jsx_runtime28 = __toESM(require_jsx_runtime());
|
|
1890
|
-
var import_jsx_runtime29 = __toESM(require_jsx_runtime());
|
|
1891
|
-
var import_jsx_runtime30 = __toESM(require_jsx_runtime());
|
|
1892
|
-
var import_jsx_runtime31 = __toESM(require_jsx_runtime());
|
|
1893
|
-
var import_jsx_runtime322 = __toESM(require_jsx_runtime());
|
|
1894
|
-
var import_jsx_runtime33 = __toESM(require_jsx_runtime());
|
|
1895
|
-
var import_jsx_runtime34 = __toESM(require_jsx_runtime());
|
|
1896
|
-
var import_jsx_runtime35 = __toESM(require_jsx_runtime());
|
|
1897
|
-
var import_jsx_runtime36 = __toESM(require_jsx_runtime());
|
|
1898
|
-
var import_jsx_runtime37 = __toESM(require_jsx_runtime());
|
|
1899
|
-
var import_jsx_runtime38 = __toESM(require_jsx_runtime());
|
|
1900
|
-
var import_jsx_runtime39 = __toESM(require_jsx_runtime());
|
|
1901
|
-
var import_jsx_runtime40 = __toESM(require_jsx_runtime());
|
|
1902
|
-
var import_jsx_runtime41 = __toESM(require_jsx_runtime());
|
|
1903
|
-
var import_jsx_runtime42 = __toESM(require_jsx_runtime());
|
|
1904
|
-
var import_jsx_runtime43 = __toESM(require_jsx_runtime());
|
|
1905
|
-
var import_jsx_runtime44 = __toESM(require_jsx_runtime());
|
|
1906
|
-
var import_jsx_runtime45 = __toESM(require_jsx_runtime());
|
|
1907
|
-
var import_jsx_runtime46 = __toESM(require_jsx_runtime());
|
|
1908
|
-
var import_jsx_runtime47 = __toESM(require_jsx_runtime());
|
|
1909
|
-
var import_jsx_runtime48 = __toESM(require_jsx_runtime());
|
|
1910
|
-
var import_jsx_runtime49 = __toESM(require_jsx_runtime());
|
|
1911
|
-
var import_jsx_runtime50 = __toESM(require_jsx_runtime());
|
|
1912
|
-
var import_jsx_runtime51 = __toESM(require_jsx_runtime());
|
|
1913
|
-
var import_jsx_runtime52 = __toESM(require_jsx_runtime());
|
|
1914
|
-
var import_jsx_runtime53 = __toESM(require_jsx_runtime());
|
|
1915
|
-
var import_jsx_runtime54 = __toESM(require_jsx_runtime());
|
|
1916
|
-
var import_jsx_runtime55 = __toESM(require_jsx_runtime());
|
|
1917
|
-
var import_jsx_runtime56 = __toESM(require_jsx_runtime());
|
|
1918
|
-
var import_jsx_runtime57 = __toESM(require_jsx_runtime());
|
|
1919
153
|
|
|
1920
154
|
// src/elements/MenuButton.jsx
|
|
1921
|
-
import { jsx as
|
|
155
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1922
156
|
function MenuButton({ children, size }) {
|
|
1923
157
|
const SPLIT_BUTTON_STYLES = cx3(
|
|
1924
158
|
"w-[36px] border-l-[1px] border-l-black flex flex-row justify-center items-center",
|
|
@@ -1927,9 +161,9 @@ function MenuButton({ children, size }) {
|
|
|
1927
161
|
"h-[40px] py-2": size === "medium" || size === void 0
|
|
1928
162
|
}
|
|
1929
163
|
);
|
|
1930
|
-
return /* @__PURE__ */
|
|
1931
|
-
/* @__PURE__ */
|
|
1932
|
-
/* @__PURE__ */
|
|
164
|
+
return /* @__PURE__ */ jsxs2(MenuButtonContext.Provider, { value: true, children: [
|
|
165
|
+
/* @__PURE__ */ jsx4("div", { className: SPLIT_BUTTON_STYLES, children }),
|
|
166
|
+
/* @__PURE__ */ jsx4(Chevron_default, {})
|
|
1933
167
|
] });
|
|
1934
168
|
}
|
|
1935
169
|
|
|
@@ -1944,7 +178,7 @@ import React5, {
|
|
|
1944
178
|
useState
|
|
1945
179
|
} from "react";
|
|
1946
180
|
import { cx as cx4, filterChildrenByDisplayName } from "@edux-design/utils";
|
|
1947
|
-
import { jsx as
|
|
181
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1948
182
|
var SIZE_STYLES = {
|
|
1949
183
|
small: {
|
|
1950
184
|
button: "text-xs px-12 py-6 rounded-md "
|
|
@@ -2130,15 +364,15 @@ var ButtonGroup = forwardRef3(function ButtonGroup2({
|
|
|
2130
364
|
sizeStyles.button,
|
|
2131
365
|
isStretched ? "flex-1" : "w-auto"
|
|
2132
366
|
);
|
|
2133
|
-
return /* @__PURE__ */
|
|
367
|
+
return /* @__PURE__ */ jsx5(
|
|
2134
368
|
"div",
|
|
2135
369
|
{
|
|
2136
370
|
...rest,
|
|
2137
371
|
ref: setContainerRef,
|
|
2138
372
|
role: "radiogroup",
|
|
2139
373
|
className: rootClasses,
|
|
2140
|
-
children: /* @__PURE__ */
|
|
2141
|
-
/* @__PURE__ */
|
|
374
|
+
children: /* @__PURE__ */ jsxs3("div", { className: trackClasses, children: [
|
|
375
|
+
/* @__PURE__ */ jsx5(
|
|
2142
376
|
"span",
|
|
2143
377
|
{
|
|
2144
378
|
"aria-hidden": "true",
|
|
@@ -2200,7 +434,7 @@ var ButtonGroup = forwardRef3(function ButtonGroup2({
|
|
|
2200
434
|
const hasStartAdornment = option.startAdornment !== void 0 && option.startAdornment !== null;
|
|
2201
435
|
const endAdornment = option.endAdornment ?? option.endIcon;
|
|
2202
436
|
const hasEndAdornment = endAdornment !== void 0 && endAdornment !== null;
|
|
2203
|
-
return /* @__PURE__ */
|
|
437
|
+
return /* @__PURE__ */ jsxs3(
|
|
2204
438
|
"button",
|
|
2205
439
|
{
|
|
2206
440
|
ref: registerButtonRef(option.value),
|
|
@@ -2213,7 +447,7 @@ var ButtonGroup = forwardRef3(function ButtonGroup2({
|
|
|
2213
447
|
onKeyDown: handleKeyDown,
|
|
2214
448
|
"data-state": isActive ? "active" : "inactive",
|
|
2215
449
|
children: [
|
|
2216
|
-
hasStartAdornment && /* @__PURE__ */
|
|
450
|
+
hasStartAdornment && /* @__PURE__ */ jsx5(
|
|
2217
451
|
"span",
|
|
2218
452
|
{
|
|
2219
453
|
"aria-hidden": "true",
|
|
@@ -2221,8 +455,8 @@ var ButtonGroup = forwardRef3(function ButtonGroup2({
|
|
|
2221
455
|
children: option.startAdornment
|
|
2222
456
|
}
|
|
2223
457
|
),
|
|
2224
|
-
/* @__PURE__ */
|
|
2225
|
-
hasEndAdornment && /* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ jsx5("span", { className: "flex items-center gap-1 leading-none text-current", children: option.label ?? `Option ${index + 1}` }),
|
|
459
|
+
hasEndAdornment && /* @__PURE__ */ jsx5(
|
|
2226
460
|
"span",
|
|
2227
461
|
{
|
|
2228
462
|
"aria-hidden": "true",
|
|
@@ -2253,49 +487,3 @@ export {
|
|
|
2253
487
|
IconButton,
|
|
2254
488
|
MenuButton
|
|
2255
489
|
};
|
|
2256
|
-
/*! Bundled license information:
|
|
2257
|
-
|
|
2258
|
-
react/cjs/react-jsx-runtime.production.js:
|
|
2259
|
-
(**
|
|
2260
|
-
* @license React
|
|
2261
|
-
* react-jsx-runtime.production.js
|
|
2262
|
-
*
|
|
2263
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2264
|
-
*
|
|
2265
|
-
* This source code is licensed under the MIT license found in the
|
|
2266
|
-
* LICENSE file in the root directory of this source tree.
|
|
2267
|
-
*)
|
|
2268
|
-
|
|
2269
|
-
react/cjs/react.production.js:
|
|
2270
|
-
(**
|
|
2271
|
-
* @license React
|
|
2272
|
-
* react.production.js
|
|
2273
|
-
*
|
|
2274
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2275
|
-
*
|
|
2276
|
-
* This source code is licensed under the MIT license found in the
|
|
2277
|
-
* LICENSE file in the root directory of this source tree.
|
|
2278
|
-
*)
|
|
2279
|
-
|
|
2280
|
-
react/cjs/react.development.js:
|
|
2281
|
-
(**
|
|
2282
|
-
* @license React
|
|
2283
|
-
* react.development.js
|
|
2284
|
-
*
|
|
2285
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2286
|
-
*
|
|
2287
|
-
* This source code is licensed under the MIT license found in the
|
|
2288
|
-
* LICENSE file in the root directory of this source tree.
|
|
2289
|
-
*)
|
|
2290
|
-
|
|
2291
|
-
react/cjs/react-jsx-runtime.development.js:
|
|
2292
|
-
(**
|
|
2293
|
-
* @license React
|
|
2294
|
-
* react-jsx-runtime.development.js
|
|
2295
|
-
*
|
|
2296
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2297
|
-
*
|
|
2298
|
-
* This source code is licensed under the MIT license found in the
|
|
2299
|
-
* LICENSE file in the root directory of this source tree.
|
|
2300
|
-
*)
|
|
2301
|
-
*/
|