@strkfarm/sdk 1.0.31 → 1.0.33

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.
@@ -6907,6 +6907,1232 @@ var strkfarm_risk_engine = (() => {
6907
6907
  }
6908
6908
  });
6909
6909
 
6910
+ // node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.js
6911
+ var require_react_development = __commonJS({
6912
+ "node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.js"(exports, module) {
6913
+ "use strict";
6914
+ (function() {
6915
+ function defineDeprecationWarning(methodName, info) {
6916
+ Object.defineProperty(Component.prototype, methodName, {
6917
+ get: function() {
6918
+ console.warn(
6919
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
6920
+ info[0],
6921
+ info[1]
6922
+ );
6923
+ }
6924
+ });
6925
+ }
6926
+ function getIteratorFn(maybeIterable) {
6927
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
6928
+ return null;
6929
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
6930
+ return "function" === typeof maybeIterable ? maybeIterable : null;
6931
+ }
6932
+ function warnNoop(publicInstance, callerName) {
6933
+ publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
6934
+ var warningKey = publicInstance + "." + callerName;
6935
+ didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
6936
+ "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.",
6937
+ callerName,
6938
+ publicInstance
6939
+ ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
6940
+ }
6941
+ function Component(props, context, updater) {
6942
+ this.props = props;
6943
+ this.context = context;
6944
+ this.refs = emptyObject;
6945
+ this.updater = updater || ReactNoopUpdateQueue;
6946
+ }
6947
+ function ComponentDummy() {
6948
+ }
6949
+ function PureComponent(props, context, updater) {
6950
+ this.props = props;
6951
+ this.context = context;
6952
+ this.refs = emptyObject;
6953
+ this.updater = updater || ReactNoopUpdateQueue;
6954
+ }
6955
+ function testStringCoercion(value) {
6956
+ return "" + value;
6957
+ }
6958
+ function checkKeyStringCoercion(value) {
6959
+ try {
6960
+ testStringCoercion(value);
6961
+ var JSCompiler_inline_result = false;
6962
+ } catch (e) {
6963
+ JSCompiler_inline_result = true;
6964
+ }
6965
+ if (JSCompiler_inline_result) {
6966
+ JSCompiler_inline_result = console;
6967
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
6968
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
6969
+ JSCompiler_temp_const.call(
6970
+ JSCompiler_inline_result,
6971
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
6972
+ JSCompiler_inline_result$jscomp$0
6973
+ );
6974
+ return testStringCoercion(value);
6975
+ }
6976
+ }
6977
+ function getComponentNameFromType(type) {
6978
+ if (null == type) return null;
6979
+ if ("function" === typeof type)
6980
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
6981
+ if ("string" === typeof type) return type;
6982
+ switch (type) {
6983
+ case REACT_FRAGMENT_TYPE:
6984
+ return "Fragment";
6985
+ case REACT_PROFILER_TYPE:
6986
+ return "Profiler";
6987
+ case REACT_STRICT_MODE_TYPE:
6988
+ return "StrictMode";
6989
+ case REACT_SUSPENSE_TYPE:
6990
+ return "Suspense";
6991
+ case REACT_SUSPENSE_LIST_TYPE:
6992
+ return "SuspenseList";
6993
+ case REACT_ACTIVITY_TYPE:
6994
+ return "Activity";
6995
+ }
6996
+ if ("object" === typeof type)
6997
+ switch ("number" === typeof type.tag && console.error(
6998
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
6999
+ ), type.$$typeof) {
7000
+ case REACT_PORTAL_TYPE:
7001
+ return "Portal";
7002
+ case REACT_CONTEXT_TYPE:
7003
+ return (type.displayName || "Context") + ".Provider";
7004
+ case REACT_CONSUMER_TYPE:
7005
+ return (type._context.displayName || "Context") + ".Consumer";
7006
+ case REACT_FORWARD_REF_TYPE:
7007
+ var innerType = type.render;
7008
+ type = type.displayName;
7009
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
7010
+ return type;
7011
+ case REACT_MEMO_TYPE:
7012
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
7013
+ case REACT_LAZY_TYPE:
7014
+ innerType = type._payload;
7015
+ type = type._init;
7016
+ try {
7017
+ return getComponentNameFromType(type(innerType));
7018
+ } catch (x) {
7019
+ }
7020
+ }
7021
+ return null;
7022
+ }
7023
+ function getTaskName(type) {
7024
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
7025
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
7026
+ return "<...>";
7027
+ try {
7028
+ var name = getComponentNameFromType(type);
7029
+ return name ? "<" + name + ">" : "<...>";
7030
+ } catch (x) {
7031
+ return "<...>";
7032
+ }
7033
+ }
7034
+ function getOwner() {
7035
+ var dispatcher = ReactSharedInternals.A;
7036
+ return null === dispatcher ? null : dispatcher.getOwner();
7037
+ }
7038
+ function UnknownOwner() {
7039
+ return Error("react-stack-top-frame");
7040
+ }
7041
+ function hasValidKey(config3) {
7042
+ if (hasOwnProperty2.call(config3, "key")) {
7043
+ var getter = Object.getOwnPropertyDescriptor(config3, "key").get;
7044
+ if (getter && getter.isReactWarning) return false;
7045
+ }
7046
+ return void 0 !== config3.key;
7047
+ }
7048
+ function defineKeyPropWarningGetter(props, displayName) {
7049
+ function warnAboutAccessingKey() {
7050
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
7051
+ "%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)",
7052
+ displayName
7053
+ ));
7054
+ }
7055
+ warnAboutAccessingKey.isReactWarning = true;
7056
+ Object.defineProperty(props, "key", {
7057
+ get: warnAboutAccessingKey,
7058
+ configurable: true
7059
+ });
7060
+ }
7061
+ function elementRefGetterWithDeprecationWarning() {
7062
+ var componentName = getComponentNameFromType(this.type);
7063
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
7064
+ "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."
7065
+ ));
7066
+ componentName = this.props.ref;
7067
+ return void 0 !== componentName ? componentName : null;
7068
+ }
7069
+ function ReactElement(type, key, self2, source, owner, props, debugStack, debugTask) {
7070
+ self2 = props.ref;
7071
+ type = {
7072
+ $$typeof: REACT_ELEMENT_TYPE,
7073
+ type,
7074
+ key,
7075
+ props,
7076
+ _owner: owner
7077
+ };
7078
+ null !== (void 0 !== self2 ? self2 : null) ? Object.defineProperty(type, "ref", {
7079
+ enumerable: false,
7080
+ get: elementRefGetterWithDeprecationWarning
7081
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
7082
+ type._store = {};
7083
+ Object.defineProperty(type._store, "validated", {
7084
+ configurable: false,
7085
+ enumerable: false,
7086
+ writable: true,
7087
+ value: 0
7088
+ });
7089
+ Object.defineProperty(type, "_debugInfo", {
7090
+ configurable: false,
7091
+ enumerable: false,
7092
+ writable: true,
7093
+ value: null
7094
+ });
7095
+ Object.defineProperty(type, "_debugStack", {
7096
+ configurable: false,
7097
+ enumerable: false,
7098
+ writable: true,
7099
+ value: debugStack
7100
+ });
7101
+ Object.defineProperty(type, "_debugTask", {
7102
+ configurable: false,
7103
+ enumerable: false,
7104
+ writable: true,
7105
+ value: debugTask
7106
+ });
7107
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
7108
+ return type;
7109
+ }
7110
+ function cloneAndReplaceKey(oldElement, newKey) {
7111
+ newKey = ReactElement(
7112
+ oldElement.type,
7113
+ newKey,
7114
+ void 0,
7115
+ void 0,
7116
+ oldElement._owner,
7117
+ oldElement.props,
7118
+ oldElement._debugStack,
7119
+ oldElement._debugTask
7120
+ );
7121
+ oldElement._store && (newKey._store.validated = oldElement._store.validated);
7122
+ return newKey;
7123
+ }
7124
+ function isValidElement(object) {
7125
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
7126
+ }
7127
+ function escape2(key) {
7128
+ var escaperLookup = { "=": "=0", ":": "=2" };
7129
+ return "$" + key.replace(/[=:]/g, function(match) {
7130
+ return escaperLookup[match];
7131
+ });
7132
+ }
7133
+ function getElementKey(element, index) {
7134
+ return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape2("" + element.key)) : index.toString(36);
7135
+ }
7136
+ function noop$1() {
7137
+ }
7138
+ function resolveThenable(thenable) {
7139
+ switch (thenable.status) {
7140
+ case "fulfilled":
7141
+ return thenable.value;
7142
+ case "rejected":
7143
+ throw thenable.reason;
7144
+ default:
7145
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
7146
+ function(fulfilledValue) {
7147
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
7148
+ },
7149
+ function(error2) {
7150
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error2);
7151
+ }
7152
+ )), thenable.status) {
7153
+ case "fulfilled":
7154
+ return thenable.value;
7155
+ case "rejected":
7156
+ throw thenable.reason;
7157
+ }
7158
+ }
7159
+ throw thenable;
7160
+ }
7161
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
7162
+ var type = typeof children;
7163
+ if ("undefined" === type || "boolean" === type) children = null;
7164
+ var invokeCallback = false;
7165
+ if (null === children) invokeCallback = true;
7166
+ else
7167
+ switch (type) {
7168
+ case "bigint":
7169
+ case "string":
7170
+ case "number":
7171
+ invokeCallback = true;
7172
+ break;
7173
+ case "object":
7174
+ switch (children.$$typeof) {
7175
+ case REACT_ELEMENT_TYPE:
7176
+ case REACT_PORTAL_TYPE:
7177
+ invokeCallback = true;
7178
+ break;
7179
+ case REACT_LAZY_TYPE:
7180
+ return invokeCallback = children._init, mapIntoArray(
7181
+ invokeCallback(children._payload),
7182
+ array,
7183
+ escapedPrefix,
7184
+ nameSoFar,
7185
+ callback
7186
+ );
7187
+ }
7188
+ }
7189
+ if (invokeCallback) {
7190
+ invokeCallback = children;
7191
+ callback = callback(invokeCallback);
7192
+ var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
7193
+ isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
7194
+ return c;
7195
+ })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
7196
+ callback,
7197
+ escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
7198
+ userProvidedKeyEscapeRegex,
7199
+ "$&/"
7200
+ ) + "/") + childKey
7201
+ ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
7202
+ return 1;
7203
+ }
7204
+ invokeCallback = 0;
7205
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
7206
+ if (isArrayImpl(children))
7207
+ for (var i = 0; i < children.length; i++)
7208
+ nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
7209
+ nameSoFar,
7210
+ array,
7211
+ escapedPrefix,
7212
+ type,
7213
+ callback
7214
+ );
7215
+ else if (i = getIteratorFn(children), "function" === typeof i)
7216
+ for (i === children.entries && (didWarnAboutMaps || console.warn(
7217
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
7218
+ ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
7219
+ nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
7220
+ nameSoFar,
7221
+ array,
7222
+ escapedPrefix,
7223
+ type,
7224
+ callback
7225
+ );
7226
+ else if ("object" === type) {
7227
+ if ("function" === typeof children.then)
7228
+ return mapIntoArray(
7229
+ resolveThenable(children),
7230
+ array,
7231
+ escapedPrefix,
7232
+ nameSoFar,
7233
+ callback
7234
+ );
7235
+ array = String(children);
7236
+ throw Error(
7237
+ "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."
7238
+ );
7239
+ }
7240
+ return invokeCallback;
7241
+ }
7242
+ function mapChildren(children, func, context) {
7243
+ if (null == children) return children;
7244
+ var result = [], count = 0;
7245
+ mapIntoArray(children, result, "", "", function(child) {
7246
+ return func.call(context, child, count++);
7247
+ });
7248
+ return result;
7249
+ }
7250
+ function lazyInitializer(payload) {
7251
+ if (-1 === payload._status) {
7252
+ var ctor = payload._result;
7253
+ ctor = ctor();
7254
+ ctor.then(
7255
+ function(moduleObject) {
7256
+ if (0 === payload._status || -1 === payload._status)
7257
+ payload._status = 1, payload._result = moduleObject;
7258
+ },
7259
+ function(error2) {
7260
+ if (0 === payload._status || -1 === payload._status)
7261
+ payload._status = 2, payload._result = error2;
7262
+ }
7263
+ );
7264
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
7265
+ }
7266
+ if (1 === payload._status)
7267
+ return ctor = payload._result, void 0 === ctor && console.error(
7268
+ "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?",
7269
+ ctor
7270
+ ), "default" in ctor || console.error(
7271
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
7272
+ ctor
7273
+ ), ctor.default;
7274
+ throw payload._result;
7275
+ }
7276
+ function resolveDispatcher() {
7277
+ var dispatcher = ReactSharedInternals.H;
7278
+ null === dispatcher && console.error(
7279
+ "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."
7280
+ );
7281
+ return dispatcher;
7282
+ }
7283
+ function noop2() {
7284
+ }
7285
+ function enqueueTask(task) {
7286
+ if (null === enqueueTaskImpl)
7287
+ try {
7288
+ var requireString = ("require" + Math.random()).slice(0, 7);
7289
+ enqueueTaskImpl = (module && module[requireString]).call(
7290
+ module,
7291
+ "timers"
7292
+ ).setImmediate;
7293
+ } catch (_err) {
7294
+ enqueueTaskImpl = function(callback) {
7295
+ false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
7296
+ "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."
7297
+ ));
7298
+ var channel = new MessageChannel();
7299
+ channel.port1.onmessage = callback;
7300
+ channel.port2.postMessage(void 0);
7301
+ };
7302
+ }
7303
+ return enqueueTaskImpl(task);
7304
+ }
7305
+ function aggregateErrors(errors2) {
7306
+ return 1 < errors2.length && "function" === typeof AggregateError ? new AggregateError(errors2) : errors2[0];
7307
+ }
7308
+ function popActScope(prevActQueue, prevActScopeDepth) {
7309
+ prevActScopeDepth !== actScopeDepth - 1 && console.error(
7310
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
7311
+ );
7312
+ actScopeDepth = prevActScopeDepth;
7313
+ }
7314
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
7315
+ var queue = ReactSharedInternals.actQueue;
7316
+ if (null !== queue)
7317
+ if (0 !== queue.length)
7318
+ try {
7319
+ flushActQueue(queue);
7320
+ enqueueTask(function() {
7321
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
7322
+ });
7323
+ return;
7324
+ } catch (error2) {
7325
+ ReactSharedInternals.thrownErrors.push(error2);
7326
+ }
7327
+ else ReactSharedInternals.actQueue = null;
7328
+ 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
7329
+ }
7330
+ function flushActQueue(queue) {
7331
+ if (!isFlushing) {
7332
+ isFlushing = true;
7333
+ var i = 0;
7334
+ try {
7335
+ for (; i < queue.length; i++) {
7336
+ var callback = queue[i];
7337
+ do {
7338
+ ReactSharedInternals.didUsePromise = false;
7339
+ var continuation = callback(false);
7340
+ if (null !== continuation) {
7341
+ if (ReactSharedInternals.didUsePromise) {
7342
+ queue[i] = callback;
7343
+ queue.splice(0, i);
7344
+ return;
7345
+ }
7346
+ callback = continuation;
7347
+ } else break;
7348
+ } while (1);
7349
+ }
7350
+ queue.length = 0;
7351
+ } catch (error2) {
7352
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error2);
7353
+ } finally {
7354
+ isFlushing = false;
7355
+ }
7356
+ }
7357
+ }
7358
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
7359
+ 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");
7360
+ Symbol.for("react.provider");
7361
+ 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 = {
7362
+ isMounted: function() {
7363
+ return false;
7364
+ },
7365
+ enqueueForceUpdate: function(publicInstance) {
7366
+ warnNoop(publicInstance, "forceUpdate");
7367
+ },
7368
+ enqueueReplaceState: function(publicInstance) {
7369
+ warnNoop(publicInstance, "replaceState");
7370
+ },
7371
+ enqueueSetState: function(publicInstance) {
7372
+ warnNoop(publicInstance, "setState");
7373
+ }
7374
+ }, assign2 = Object.assign, emptyObject = {};
7375
+ Object.freeze(emptyObject);
7376
+ Component.prototype.isReactComponent = {};
7377
+ Component.prototype.setState = function(partialState, callback) {
7378
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
7379
+ throw Error(
7380
+ "takes an object of state variables to update or a function which returns an object of state variables."
7381
+ );
7382
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
7383
+ };
7384
+ Component.prototype.forceUpdate = function(callback) {
7385
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
7386
+ };
7387
+ var deprecatedAPIs = {
7388
+ isMounted: [
7389
+ "isMounted",
7390
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
7391
+ ],
7392
+ replaceState: [
7393
+ "replaceState",
7394
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
7395
+ ]
7396
+ }, fnName;
7397
+ for (fnName in deprecatedAPIs)
7398
+ deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
7399
+ ComponentDummy.prototype = Component.prototype;
7400
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
7401
+ deprecatedAPIs.constructor = PureComponent;
7402
+ assign2(deprecatedAPIs, Component.prototype);
7403
+ deprecatedAPIs.isPureReactComponent = true;
7404
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
7405
+ H: null,
7406
+ A: null,
7407
+ T: null,
7408
+ S: null,
7409
+ V: null,
7410
+ actQueue: null,
7411
+ isBatchingLegacy: false,
7412
+ didScheduleLegacyUpdate: false,
7413
+ didUsePromise: false,
7414
+ thrownErrors: [],
7415
+ getCurrentStack: null,
7416
+ recentlyCreatedOwnerStacks: 0
7417
+ }, hasOwnProperty2 = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
7418
+ return null;
7419
+ };
7420
+ deprecatedAPIs = {
7421
+ "react-stack-bottom-frame": function(callStackForError) {
7422
+ return callStackForError();
7423
+ }
7424
+ };
7425
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
7426
+ var didWarnAboutElementRef = {};
7427
+ var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
7428
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
7429
+ var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error2) {
7430
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
7431
+ var event = new window.ErrorEvent("error", {
7432
+ bubbles: true,
7433
+ cancelable: true,
7434
+ message: "object" === typeof error2 && null !== error2 && "string" === typeof error2.message ? String(error2.message) : String(error2),
7435
+ error: error2
7436
+ });
7437
+ if (!window.dispatchEvent(event)) return;
7438
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
7439
+ process.emit("uncaughtException", error2);
7440
+ return;
7441
+ }
7442
+ console.error(error2);
7443
+ }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
7444
+ queueMicrotask(function() {
7445
+ return queueMicrotask(callback);
7446
+ });
7447
+ } : enqueueTask;
7448
+ deprecatedAPIs = Object.freeze({
7449
+ __proto__: null,
7450
+ c: function(size) {
7451
+ return resolveDispatcher().useMemoCache(size);
7452
+ }
7453
+ });
7454
+ exports.Children = {
7455
+ map: mapChildren,
7456
+ forEach: function(children, forEachFunc, forEachContext) {
7457
+ mapChildren(
7458
+ children,
7459
+ function() {
7460
+ forEachFunc.apply(this, arguments);
7461
+ },
7462
+ forEachContext
7463
+ );
7464
+ },
7465
+ count: function(children) {
7466
+ var n = 0;
7467
+ mapChildren(children, function() {
7468
+ n++;
7469
+ });
7470
+ return n;
7471
+ },
7472
+ toArray: function(children) {
7473
+ return mapChildren(children, function(child) {
7474
+ return child;
7475
+ }) || [];
7476
+ },
7477
+ only: function(children) {
7478
+ if (!isValidElement(children))
7479
+ throw Error(
7480
+ "React.Children.only expected to receive a single React element child."
7481
+ );
7482
+ return children;
7483
+ }
7484
+ };
7485
+ exports.Component = Component;
7486
+ exports.Fragment = REACT_FRAGMENT_TYPE;
7487
+ exports.Profiler = REACT_PROFILER_TYPE;
7488
+ exports.PureComponent = PureComponent;
7489
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
7490
+ exports.Suspense = REACT_SUSPENSE_TYPE;
7491
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
7492
+ exports.__COMPILER_RUNTIME = deprecatedAPIs;
7493
+ exports.act = function(callback) {
7494
+ var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
7495
+ actScopeDepth++;
7496
+ var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
7497
+ try {
7498
+ var result = callback();
7499
+ } catch (error2) {
7500
+ ReactSharedInternals.thrownErrors.push(error2);
7501
+ }
7502
+ if (0 < ReactSharedInternals.thrownErrors.length)
7503
+ throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
7504
+ if (null !== result && "object" === typeof result && "function" === typeof result.then) {
7505
+ var thenable = result;
7506
+ queueSeveralMicrotasks(function() {
7507
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
7508
+ "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 () => ...);"
7509
+ ));
7510
+ });
7511
+ return {
7512
+ then: function(resolve, reject) {
7513
+ didAwaitActCall = true;
7514
+ thenable.then(
7515
+ function(returnValue) {
7516
+ popActScope(prevActQueue, prevActScopeDepth);
7517
+ if (0 === prevActScopeDepth) {
7518
+ try {
7519
+ flushActQueue(queue), enqueueTask(function() {
7520
+ return recursivelyFlushAsyncActWork(
7521
+ returnValue,
7522
+ resolve,
7523
+ reject
7524
+ );
7525
+ });
7526
+ } catch (error$0) {
7527
+ ReactSharedInternals.thrownErrors.push(error$0);
7528
+ }
7529
+ if (0 < ReactSharedInternals.thrownErrors.length) {
7530
+ var _thrownError = aggregateErrors(
7531
+ ReactSharedInternals.thrownErrors
7532
+ );
7533
+ ReactSharedInternals.thrownErrors.length = 0;
7534
+ reject(_thrownError);
7535
+ }
7536
+ } else resolve(returnValue);
7537
+ },
7538
+ function(error2) {
7539
+ popActScope(prevActQueue, prevActScopeDepth);
7540
+ 0 < ReactSharedInternals.thrownErrors.length ? (error2 = aggregateErrors(
7541
+ ReactSharedInternals.thrownErrors
7542
+ ), ReactSharedInternals.thrownErrors.length = 0, reject(error2)) : reject(error2);
7543
+ }
7544
+ );
7545
+ }
7546
+ };
7547
+ }
7548
+ var returnValue$jscomp$0 = result;
7549
+ popActScope(prevActQueue, prevActScopeDepth);
7550
+ 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
7551
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
7552
+ "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(() => ...)"
7553
+ ));
7554
+ }), ReactSharedInternals.actQueue = null);
7555
+ if (0 < ReactSharedInternals.thrownErrors.length)
7556
+ throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
7557
+ return {
7558
+ then: function(resolve, reject) {
7559
+ didAwaitActCall = true;
7560
+ 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
7561
+ return recursivelyFlushAsyncActWork(
7562
+ returnValue$jscomp$0,
7563
+ resolve,
7564
+ reject
7565
+ );
7566
+ })) : resolve(returnValue$jscomp$0);
7567
+ }
7568
+ };
7569
+ };
7570
+ exports.cache = function(fn) {
7571
+ return function() {
7572
+ return fn.apply(null, arguments);
7573
+ };
7574
+ };
7575
+ exports.captureOwnerStack = function() {
7576
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
7577
+ return null === getCurrentStack ? null : getCurrentStack();
7578
+ };
7579
+ exports.cloneElement = function(element, config3, children) {
7580
+ if (null === element || void 0 === element)
7581
+ throw Error(
7582
+ "The argument must be a React element, but you passed " + element + "."
7583
+ );
7584
+ var props = assign2({}, element.props), key = element.key, owner = element._owner;
7585
+ if (null != config3) {
7586
+ var JSCompiler_inline_result;
7587
+ a: {
7588
+ if (hasOwnProperty2.call(config3, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
7589
+ config3,
7590
+ "ref"
7591
+ ).get) && JSCompiler_inline_result.isReactWarning) {
7592
+ JSCompiler_inline_result = false;
7593
+ break a;
7594
+ }
7595
+ JSCompiler_inline_result = void 0 !== config3.ref;
7596
+ }
7597
+ JSCompiler_inline_result && (owner = getOwner());
7598
+ hasValidKey(config3) && (checkKeyStringCoercion(config3.key), key = "" + config3.key);
7599
+ for (propName in config3)
7600
+ !hasOwnProperty2.call(config3, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config3.ref || (props[propName] = config3[propName]);
7601
+ }
7602
+ var propName = arguments.length - 2;
7603
+ if (1 === propName) props.children = children;
7604
+ else if (1 < propName) {
7605
+ JSCompiler_inline_result = Array(propName);
7606
+ for (var i = 0; i < propName; i++)
7607
+ JSCompiler_inline_result[i] = arguments[i + 2];
7608
+ props.children = JSCompiler_inline_result;
7609
+ }
7610
+ props = ReactElement(
7611
+ element.type,
7612
+ key,
7613
+ void 0,
7614
+ void 0,
7615
+ owner,
7616
+ props,
7617
+ element._debugStack,
7618
+ element._debugTask
7619
+ );
7620
+ for (key = 2; key < arguments.length; key++)
7621
+ owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
7622
+ return props;
7623
+ };
7624
+ exports.createContext = function(defaultValue) {
7625
+ defaultValue = {
7626
+ $$typeof: REACT_CONTEXT_TYPE,
7627
+ _currentValue: defaultValue,
7628
+ _currentValue2: defaultValue,
7629
+ _threadCount: 0,
7630
+ Provider: null,
7631
+ Consumer: null
7632
+ };
7633
+ defaultValue.Provider = defaultValue;
7634
+ defaultValue.Consumer = {
7635
+ $$typeof: REACT_CONSUMER_TYPE,
7636
+ _context: defaultValue
7637
+ };
7638
+ defaultValue._currentRenderer = null;
7639
+ defaultValue._currentRenderer2 = null;
7640
+ return defaultValue;
7641
+ };
7642
+ exports.createElement = function(type, config3, children) {
7643
+ for (var i = 2; i < arguments.length; i++) {
7644
+ var node = arguments[i];
7645
+ isValidElement(node) && node._store && (node._store.validated = 1);
7646
+ }
7647
+ i = {};
7648
+ node = null;
7649
+ if (null != config3)
7650
+ for (propName in didWarnAboutOldJSXRuntime || !("__self" in config3) || "key" in config3 || (didWarnAboutOldJSXRuntime = true, console.warn(
7651
+ "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"
7652
+ )), hasValidKey(config3) && (checkKeyStringCoercion(config3.key), node = "" + config3.key), config3)
7653
+ hasOwnProperty2.call(config3, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config3[propName]);
7654
+ var childrenLength = arguments.length - 2;
7655
+ if (1 === childrenLength) i.children = children;
7656
+ else if (1 < childrenLength) {
7657
+ for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
7658
+ childArray[_i] = arguments[_i + 2];
7659
+ Object.freeze && Object.freeze(childArray);
7660
+ i.children = childArray;
7661
+ }
7662
+ if (type && type.defaultProps)
7663
+ for (propName in childrenLength = type.defaultProps, childrenLength)
7664
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
7665
+ node && defineKeyPropWarningGetter(
7666
+ i,
7667
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
7668
+ );
7669
+ var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
7670
+ return ReactElement(
7671
+ type,
7672
+ node,
7673
+ void 0,
7674
+ void 0,
7675
+ getOwner(),
7676
+ i,
7677
+ propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
7678
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
7679
+ );
7680
+ };
7681
+ exports.createRef = function() {
7682
+ var refObject = { current: null };
7683
+ Object.seal(refObject);
7684
+ return refObject;
7685
+ };
7686
+ exports.forwardRef = function(render) {
7687
+ null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
7688
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
7689
+ ) : "function" !== typeof render ? console.error(
7690
+ "forwardRef requires a render function but was given %s.",
7691
+ null === render ? "null" : typeof render
7692
+ ) : 0 !== render.length && 2 !== render.length && console.error(
7693
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
7694
+ 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
7695
+ );
7696
+ null != render && null != render.defaultProps && console.error(
7697
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
7698
+ );
7699
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
7700
+ Object.defineProperty(elementType, "displayName", {
7701
+ enumerable: false,
7702
+ configurable: true,
7703
+ get: function() {
7704
+ return ownName;
7705
+ },
7706
+ set: function(name) {
7707
+ ownName = name;
7708
+ render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
7709
+ }
7710
+ });
7711
+ return elementType;
7712
+ };
7713
+ exports.isValidElement = isValidElement;
7714
+ exports.lazy = function(ctor) {
7715
+ return {
7716
+ $$typeof: REACT_LAZY_TYPE,
7717
+ _payload: { _status: -1, _result: ctor },
7718
+ _init: lazyInitializer
7719
+ };
7720
+ };
7721
+ exports.memo = function(type, compare) {
7722
+ null == type && console.error(
7723
+ "memo: The first argument must be a component. Instead received: %s",
7724
+ null === type ? "null" : typeof type
7725
+ );
7726
+ compare = {
7727
+ $$typeof: REACT_MEMO_TYPE,
7728
+ type,
7729
+ compare: void 0 === compare ? null : compare
7730
+ };
7731
+ var ownName;
7732
+ Object.defineProperty(compare, "displayName", {
7733
+ enumerable: false,
7734
+ configurable: true,
7735
+ get: function() {
7736
+ return ownName;
7737
+ },
7738
+ set: function(name) {
7739
+ ownName = name;
7740
+ type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
7741
+ }
7742
+ });
7743
+ return compare;
7744
+ };
7745
+ exports.startTransition = function(scope) {
7746
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
7747
+ ReactSharedInternals.T = currentTransition;
7748
+ currentTransition._updatedFibers = /* @__PURE__ */ new Set();
7749
+ try {
7750
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
7751
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
7752
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop2, reportGlobalError);
7753
+ } catch (error2) {
7754
+ reportGlobalError(error2);
7755
+ } finally {
7756
+ null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
7757
+ "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."
7758
+ )), ReactSharedInternals.T = prevTransition;
7759
+ }
7760
+ };
7761
+ exports.unstable_useCacheRefresh = function() {
7762
+ return resolveDispatcher().useCacheRefresh();
7763
+ };
7764
+ exports.use = function(usable) {
7765
+ return resolveDispatcher().use(usable);
7766
+ };
7767
+ exports.useActionState = function(action, initialState, permalink) {
7768
+ return resolveDispatcher().useActionState(
7769
+ action,
7770
+ initialState,
7771
+ permalink
7772
+ );
7773
+ };
7774
+ exports.useCallback = function(callback, deps) {
7775
+ return resolveDispatcher().useCallback(callback, deps);
7776
+ };
7777
+ exports.useContext = function(Context) {
7778
+ var dispatcher = resolveDispatcher();
7779
+ Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
7780
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
7781
+ );
7782
+ return dispatcher.useContext(Context);
7783
+ };
7784
+ exports.useDebugValue = function(value, formatterFn) {
7785
+ return resolveDispatcher().useDebugValue(value, formatterFn);
7786
+ };
7787
+ exports.useDeferredValue = function(value, initialValue) {
7788
+ return resolveDispatcher().useDeferredValue(value, initialValue);
7789
+ };
7790
+ exports.useEffect = function(create, createDeps, update) {
7791
+ null == create && console.warn(
7792
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
7793
+ );
7794
+ var dispatcher = resolveDispatcher();
7795
+ if ("function" === typeof update)
7796
+ throw Error(
7797
+ "useEffect CRUD overload is not enabled in this build of React."
7798
+ );
7799
+ return dispatcher.useEffect(create, createDeps);
7800
+ };
7801
+ exports.useId = function() {
7802
+ return resolveDispatcher().useId();
7803
+ };
7804
+ exports.useImperativeHandle = function(ref, create, deps) {
7805
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
7806
+ };
7807
+ exports.useInsertionEffect = function(create, deps) {
7808
+ null == create && console.warn(
7809
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
7810
+ );
7811
+ return resolveDispatcher().useInsertionEffect(create, deps);
7812
+ };
7813
+ exports.useLayoutEffect = function(create, deps) {
7814
+ null == create && console.warn(
7815
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
7816
+ );
7817
+ return resolveDispatcher().useLayoutEffect(create, deps);
7818
+ };
7819
+ exports.useMemo = function(create, deps) {
7820
+ return resolveDispatcher().useMemo(create, deps);
7821
+ };
7822
+ exports.useOptimistic = function(passthrough, reducer) {
7823
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
7824
+ };
7825
+ exports.useReducer = function(reducer, initialArg, init) {
7826
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
7827
+ };
7828
+ exports.useRef = function(initialValue) {
7829
+ return resolveDispatcher().useRef(initialValue);
7830
+ };
7831
+ exports.useState = function(initialState) {
7832
+ return resolveDispatcher().useState(initialState);
7833
+ };
7834
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
7835
+ return resolveDispatcher().useSyncExternalStore(
7836
+ subscribe,
7837
+ getSnapshot,
7838
+ getServerSnapshot
7839
+ );
7840
+ };
7841
+ exports.useTransition = function() {
7842
+ return resolveDispatcher().useTransition();
7843
+ };
7844
+ exports.version = "19.1.0";
7845
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
7846
+ })();
7847
+ }
7848
+ });
7849
+
7850
+ // node_modules/.pnpm/react@19.1.0/node_modules/react/index.js
7851
+ var require_react = __commonJS({
7852
+ "node_modules/.pnpm/react@19.1.0/node_modules/react/index.js"(exports, module) {
7853
+ "use strict";
7854
+ if (false) {
7855
+ module.exports = null;
7856
+ } else {
7857
+ module.exports = require_react_development();
7858
+ }
7859
+ }
7860
+ });
7861
+
7862
+ // node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js
7863
+ var require_react_jsx_runtime_development = __commonJS({
7864
+ "node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
7865
+ "use strict";
7866
+ (function() {
7867
+ function getComponentNameFromType(type) {
7868
+ if (null == type) return null;
7869
+ if ("function" === typeof type)
7870
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
7871
+ if ("string" === typeof type) return type;
7872
+ switch (type) {
7873
+ case REACT_FRAGMENT_TYPE:
7874
+ return "Fragment";
7875
+ case REACT_PROFILER_TYPE:
7876
+ return "Profiler";
7877
+ case REACT_STRICT_MODE_TYPE:
7878
+ return "StrictMode";
7879
+ case REACT_SUSPENSE_TYPE:
7880
+ return "Suspense";
7881
+ case REACT_SUSPENSE_LIST_TYPE:
7882
+ return "SuspenseList";
7883
+ case REACT_ACTIVITY_TYPE:
7884
+ return "Activity";
7885
+ }
7886
+ if ("object" === typeof type)
7887
+ switch ("number" === typeof type.tag && console.error(
7888
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
7889
+ ), type.$$typeof) {
7890
+ case REACT_PORTAL_TYPE:
7891
+ return "Portal";
7892
+ case REACT_CONTEXT_TYPE:
7893
+ return (type.displayName || "Context") + ".Provider";
7894
+ case REACT_CONSUMER_TYPE:
7895
+ return (type._context.displayName || "Context") + ".Consumer";
7896
+ case REACT_FORWARD_REF_TYPE:
7897
+ var innerType = type.render;
7898
+ type = type.displayName;
7899
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
7900
+ return type;
7901
+ case REACT_MEMO_TYPE:
7902
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
7903
+ case REACT_LAZY_TYPE:
7904
+ innerType = type._payload;
7905
+ type = type._init;
7906
+ try {
7907
+ return getComponentNameFromType(type(innerType));
7908
+ } catch (x) {
7909
+ }
7910
+ }
7911
+ return null;
7912
+ }
7913
+ function testStringCoercion(value) {
7914
+ return "" + value;
7915
+ }
7916
+ function checkKeyStringCoercion(value) {
7917
+ try {
7918
+ testStringCoercion(value);
7919
+ var JSCompiler_inline_result = false;
7920
+ } catch (e) {
7921
+ JSCompiler_inline_result = true;
7922
+ }
7923
+ if (JSCompiler_inline_result) {
7924
+ JSCompiler_inline_result = console;
7925
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
7926
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
7927
+ JSCompiler_temp_const.call(
7928
+ JSCompiler_inline_result,
7929
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
7930
+ JSCompiler_inline_result$jscomp$0
7931
+ );
7932
+ return testStringCoercion(value);
7933
+ }
7934
+ }
7935
+ function getTaskName(type) {
7936
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
7937
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
7938
+ return "<...>";
7939
+ try {
7940
+ var name = getComponentNameFromType(type);
7941
+ return name ? "<" + name + ">" : "<...>";
7942
+ } catch (x) {
7943
+ return "<...>";
7944
+ }
7945
+ }
7946
+ function getOwner() {
7947
+ var dispatcher = ReactSharedInternals.A;
7948
+ return null === dispatcher ? null : dispatcher.getOwner();
7949
+ }
7950
+ function UnknownOwner() {
7951
+ return Error("react-stack-top-frame");
7952
+ }
7953
+ function hasValidKey(config3) {
7954
+ if (hasOwnProperty2.call(config3, "key")) {
7955
+ var getter = Object.getOwnPropertyDescriptor(config3, "key").get;
7956
+ if (getter && getter.isReactWarning) return false;
7957
+ }
7958
+ return void 0 !== config3.key;
7959
+ }
7960
+ function defineKeyPropWarningGetter(props, displayName) {
7961
+ function warnAboutAccessingKey() {
7962
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
7963
+ "%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)",
7964
+ displayName
7965
+ ));
7966
+ }
7967
+ warnAboutAccessingKey.isReactWarning = true;
7968
+ Object.defineProperty(props, "key", {
7969
+ get: warnAboutAccessingKey,
7970
+ configurable: true
7971
+ });
7972
+ }
7973
+ function elementRefGetterWithDeprecationWarning() {
7974
+ var componentName = getComponentNameFromType(this.type);
7975
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
7976
+ "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."
7977
+ ));
7978
+ componentName = this.props.ref;
7979
+ return void 0 !== componentName ? componentName : null;
7980
+ }
7981
+ function ReactElement(type, key, self2, source, owner, props, debugStack, debugTask) {
7982
+ self2 = props.ref;
7983
+ type = {
7984
+ $$typeof: REACT_ELEMENT_TYPE,
7985
+ type,
7986
+ key,
7987
+ props,
7988
+ _owner: owner
7989
+ };
7990
+ null !== (void 0 !== self2 ? self2 : null) ? Object.defineProperty(type, "ref", {
7991
+ enumerable: false,
7992
+ get: elementRefGetterWithDeprecationWarning
7993
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
7994
+ type._store = {};
7995
+ Object.defineProperty(type._store, "validated", {
7996
+ configurable: false,
7997
+ enumerable: false,
7998
+ writable: true,
7999
+ value: 0
8000
+ });
8001
+ Object.defineProperty(type, "_debugInfo", {
8002
+ configurable: false,
8003
+ enumerable: false,
8004
+ writable: true,
8005
+ value: null
8006
+ });
8007
+ Object.defineProperty(type, "_debugStack", {
8008
+ configurable: false,
8009
+ enumerable: false,
8010
+ writable: true,
8011
+ value: debugStack
8012
+ });
8013
+ Object.defineProperty(type, "_debugTask", {
8014
+ configurable: false,
8015
+ enumerable: false,
8016
+ writable: true,
8017
+ value: debugTask
8018
+ });
8019
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
8020
+ return type;
8021
+ }
8022
+ function jsxDEVImpl(type, config3, maybeKey, isStaticChildren, source, self2, debugStack, debugTask) {
8023
+ var children = config3.children;
8024
+ if (void 0 !== children)
8025
+ if (isStaticChildren)
8026
+ if (isArrayImpl(children)) {
8027
+ for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
8028
+ validateChildKeys(children[isStaticChildren]);
8029
+ Object.freeze && Object.freeze(children);
8030
+ } else
8031
+ console.error(
8032
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
8033
+ );
8034
+ else validateChildKeys(children);
8035
+ if (hasOwnProperty2.call(config3, "key")) {
8036
+ children = getComponentNameFromType(type);
8037
+ var keys = Object.keys(config3).filter(function(k) {
8038
+ return "key" !== k;
8039
+ });
8040
+ isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
8041
+ didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
8042
+ '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} />',
8043
+ isStaticChildren,
8044
+ children,
8045
+ keys,
8046
+ children
8047
+ ), didWarnAboutKeySpread[children + isStaticChildren] = true);
8048
+ }
8049
+ children = null;
8050
+ void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
8051
+ hasValidKey(config3) && (checkKeyStringCoercion(config3.key), children = "" + config3.key);
8052
+ if ("key" in config3) {
8053
+ maybeKey = {};
8054
+ for (var propName in config3)
8055
+ "key" !== propName && (maybeKey[propName] = config3[propName]);
8056
+ } else maybeKey = config3;
8057
+ children && defineKeyPropWarningGetter(
8058
+ maybeKey,
8059
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
8060
+ );
8061
+ return ReactElement(
8062
+ type,
8063
+ children,
8064
+ self2,
8065
+ source,
8066
+ getOwner(),
8067
+ maybeKey,
8068
+ debugStack,
8069
+ debugTask
8070
+ );
8071
+ }
8072
+ function validateChildKeys(node) {
8073
+ "object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
8074
+ }
8075
+ var React = 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");
8076
+ Symbol.for("react.provider");
8077
+ 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 = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty2 = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
8078
+ return null;
8079
+ };
8080
+ React = {
8081
+ "react-stack-bottom-frame": function(callStackForError) {
8082
+ return callStackForError();
8083
+ }
8084
+ };
8085
+ var specialPropKeyWarningShown;
8086
+ var didWarnAboutElementRef = {};
8087
+ var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
8088
+ React,
8089
+ UnknownOwner
8090
+ )();
8091
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
8092
+ var didWarnAboutKeySpread = {};
8093
+ exports.Fragment = REACT_FRAGMENT_TYPE;
8094
+ exports.jsx = function(type, config3, maybeKey, source, self2) {
8095
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
8096
+ return jsxDEVImpl(
8097
+ type,
8098
+ config3,
8099
+ maybeKey,
8100
+ false,
8101
+ source,
8102
+ self2,
8103
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
8104
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
8105
+ );
8106
+ };
8107
+ exports.jsxs = function(type, config3, maybeKey, source, self2) {
8108
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
8109
+ return jsxDEVImpl(
8110
+ type,
8111
+ config3,
8112
+ maybeKey,
8113
+ true,
8114
+ source,
8115
+ self2,
8116
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
8117
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
8118
+ );
8119
+ };
8120
+ })();
8121
+ }
8122
+ });
8123
+
8124
+ // node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js
8125
+ var require_jsx_runtime = __commonJS({
8126
+ "node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js"(exports, module) {
8127
+ "use strict";
8128
+ if (false) {
8129
+ module.exports = null;
8130
+ } else {
8131
+ module.exports = require_react_jsx_runtime_development();
8132
+ }
8133
+ }
8134
+ });
8135
+
6910
8136
  // src/index.browser.ts
6911
8137
  var index_browser_exports = {};
6912
8138
  __export(index_browser_exports, {
@@ -40101,7 +41327,7 @@ ${JSON.stringify(data, null, 2)}`;
40101
41327
  ]
40102
41328
  };
40103
41329
 
40104
- // src/strategies/vesu-rebalance.ts
41330
+ // src/strategies/vesu-rebalance.tsx
40105
41331
  var VesuRebalance = class _VesuRebalance extends BaseStrategy {
40106
41332
  // 10000 bps = 100%
40107
41333
  /**
@@ -45501,7 +46727,8 @@ ${JSON.stringify(data, null, 2)}`;
45501
46727
  }
45502
46728
  ];
45503
46729
 
45504
- // src/strategies/ekubo-cl-vault.ts
46730
+ // src/strategies/ekubo-cl-vault.tsx
46731
+ var import_jsx_runtime = __toESM(require_jsx_runtime());
45505
46732
  var EkuboCLVault = class _EkuboCLVault extends BaseStrategy {
45506
46733
  /**
45507
46734
  * Creates a new VesuRebalance strategy instance.
@@ -46030,11 +47257,10 @@ ${JSON.stringify(data, null, 2)}`;
46030
47257
  * @returns Array of contract calls needed for rebalancing
46031
47258
  * @throws Error if max retries reached without successful rebalance
46032
47259
  */
46033
- async rebalanceIter(swapInfo, acc, estimateCall, retry = 0, adjustmentFactor = 1, isToken0Deficit = true) {
46034
- const MAX_RETRIES = 20;
46035
- const MIN_ADJUSTMENT = 1e-3;
47260
+ async rebalanceIter(swapInfo, acc, estimateCall, isSellTokenToken0 = true, retry = 0, lowerLimit = 0n, upperLimit = 0n) {
47261
+ const MAX_RETRIES = 40;
46036
47262
  logger2.verbose(
46037
- `Rebalancing ${this.metadata.name}: retry=${retry}, adjustment=${adjustmentFactor}%, token0Deficit=${isToken0Deficit}`
47263
+ `Rebalancing ${this.metadata.name}: retry=${retry}, lowerLimit=${lowerLimit}, upperLimit=${upperLimit}, isSellTokenToken0=${isSellTokenToken0}`
46038
47264
  );
46039
47265
  const fromAmount = uint256_exports.uint256ToBN(swapInfo.token_from_amount);
46040
47266
  logger2.verbose(
@@ -46049,38 +47275,69 @@ ${JSON.stringify(data, null, 2)}`;
46049
47275
  logger2.error(`Rebalance failed after ${MAX_RETRIES} retries`);
46050
47276
  throw err2;
46051
47277
  }
46052
- if (adjustmentFactor < MIN_ADJUSTMENT) {
46053
- logger2.error("Adjustment factor too small, likely oscillating");
46054
- throw new Error("Failed to converge on valid swap amount");
46055
- }
46056
47278
  logger2.error(`Rebalance attempt ${retry + 1} failed, adjusting swap amount...`);
46057
47279
  const newSwapInfo = { ...swapInfo };
46058
47280
  const currentAmount = Web3Number.fromWei(fromAmount.toString(), 18);
47281
+ logger2.verbose(`Current amount: ${currentAmount.toString()}`);
46059
47282
  if (err2.message.includes("invalid token0 balance") || err2.message.includes("invalid token0 amount")) {
46060
- logger2.verbose("Reducing swap amount - excess token0");
46061
- newSwapInfo.token_from_amount = uint256_exports.bnToUint256(
46062
- currentAmount.multipliedBy((100 - adjustmentFactor) / 100).toWei()
46063
- );
46064
- adjustmentFactor = isToken0Deficit ? adjustmentFactor * 2 : adjustmentFactor / 2;
46065
- isToken0Deficit = true;
46066
- } else if (err2.message.includes("invalid token1 balance") || err2.message.includes("invalid token1 amount")) {
46067
- logger2.verbose("Increasing swap amount - excess token1");
46068
- newSwapInfo.token_from_amount = uint256_exports.bnToUint256(
46069
- currentAmount.multipliedBy((100 + adjustmentFactor) / 100).toWei()
46070
- );
46071
- adjustmentFactor = isToken0Deficit ? adjustmentFactor / 2 : adjustmentFactor * 2;
46072
- isToken0Deficit = false;
47283
+ if (!isSellTokenToken0) {
47284
+ logger2.verbose("Reducing swap amount - excess token0");
47285
+ let nextAmount = (fromAmount + lowerLimit) / 2n;
47286
+ upperLimit = fromAmount;
47287
+ if (nextAmount <= lowerLimit) {
47288
+ logger2.error("Convergence failed: nextAmount <= lowerLimit");
47289
+ throw err2;
47290
+ }
47291
+ newSwapInfo.token_from_amount = uint256_exports.bnToUint256(nextAmount);
47292
+ } else {
47293
+ logger2.verbose("Increasing swap amount - deficit token0");
47294
+ let nextAmount = (fromAmount + upperLimit) / 2n;
47295
+ if (upperLimit == 0n) {
47296
+ nextAmount = fromAmount * 2n;
47297
+ }
47298
+ lowerLimit = fromAmount;
47299
+ if (upperLimit != 0n && nextAmount >= upperLimit) {
47300
+ logger2.error("Convergence failed: nextAmount >= upperLimit");
47301
+ throw err2;
47302
+ }
47303
+ newSwapInfo.token_from_amount = uint256_exports.bnToUint256(nextAmount);
47304
+ }
47305
+ } else if (err2.message.includes("invalid token1 amount") || err2.message.includes("invalid token1 balance")) {
47306
+ if (isSellTokenToken0) {
47307
+ logger2.verbose("Reducing swap amount - excess token1");
47308
+ let nextAmount = (fromAmount + lowerLimit) / 2n;
47309
+ upperLimit = fromAmount;
47310
+ if (nextAmount <= lowerLimit) {
47311
+ logger2.error("Convergence failed: nextAmount <= lowerLimit");
47312
+ throw err2;
47313
+ }
47314
+ newSwapInfo.token_from_amount = uint256_exports.bnToUint256(nextAmount);
47315
+ } else {
47316
+ logger2.verbose("Increasing swap amount - deficit token1");
47317
+ let nextAmount = (fromAmount + upperLimit) / 2n;
47318
+ if (upperLimit == 0n) {
47319
+ nextAmount = fromAmount * 2n;
47320
+ }
47321
+ lowerLimit = fromAmount;
47322
+ if (upperLimit != 0n && nextAmount >= upperLimit) {
47323
+ logger2.error("Convergence failed: nextAmount >= upperLimit");
47324
+ throw err2;
47325
+ }
47326
+ newSwapInfo.token_from_amount = uint256_exports.bnToUint256(nextAmount);
47327
+ }
46073
47328
  } else {
46074
47329
  logger2.error("Unexpected error:", err2);
47330
+ throw err2;
46075
47331
  }
46076
47332
  newSwapInfo.token_to_min_amount = uint256_exports.bnToUint256("0");
46077
47333
  return this.rebalanceIter(
46078
47334
  newSwapInfo,
46079
47335
  acc,
46080
47336
  estimateCall,
47337
+ isSellTokenToken0,
46081
47338
  retry + 1,
46082
- adjustmentFactor,
46083
- isToken0Deficit
47339
+ lowerLimit,
47340
+ upperLimit
46084
47341
  );
46085
47342
  }
46086
47343
  }
@@ -46215,7 +47472,13 @@ ${JSON.stringify(data, null, 2)}`;
46215
47472
  var AUDIT_URL2 = "https://assets.strkfarm.com/strkfarm/audit_report_vesu_and_ekubo_strats.pdf";
46216
47473
  var EkuboCLVaultStrategies = [{
46217
47474
  name: "Ekubo xSTRK/STRK",
46218
- description: _description2.replace("{{POOL_NAME}}", "xSTRK/STRK"),
47475
+ description: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
47476
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: _description2.replace("{{POOL_NAME}}", "xSTRK/STRK") }),
47477
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("ul", { style: { marginLeft: "20px", listStyle: "circle", fontSize: "12px" }, children: [
47478
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { style: { marginTop: "10px" }, children: "During withdrawal, you may receive either or both tokens depending on market conditions and prevailing prices." }),
47479
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { style: { marginTop: "10px" }, children: "Sometimes you might see a negative APY \u2014 this is usually not a big deal. It happens when xSTRK's price drops on DEXes, but things typically bounce back within a few days or a week." })
47480
+ ] })
47481
+ ] }),
46219
47482
  address: ContractAddr.from("0x01f083b98674bc21effee29ef443a00c7b9a500fd92cf30341a3da12c73f2324"),
46220
47483
  type: "Other",
46221
47484
  // must be same order as poolKey token0 and token1
@@ -46437,6 +47700,28 @@ tough-cookie/lib/cookie.js:
46437
47700
  * POSSIBILITY OF SUCH DAMAGE.
46438
47701
  *)
46439
47702
 
47703
+ react/cjs/react.development.js:
47704
+ (**
47705
+ * @license React
47706
+ * react.development.js
47707
+ *
47708
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
47709
+ *
47710
+ * This source code is licensed under the MIT license found in the
47711
+ * LICENSE file in the root directory of this source tree.
47712
+ *)
47713
+
47714
+ react/cjs/react-jsx-runtime.development.js:
47715
+ (**
47716
+ * @license React
47717
+ * react-jsx-runtime.development.js
47718
+ *
47719
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
47720
+ *
47721
+ * This source code is licensed under the MIT license found in the
47722
+ * LICENSE file in the root directory of this source tree.
47723
+ *)
47724
+
46440
47725
  @scure/base/lib/esm/index.js:
46441
47726
  (*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
46442
47727