첫 커밋
This commit is contained in:
36
.babelrc
Normal file
36
.babelrc
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
[
|
||||||
|
"@babel/preset-react",
|
||||||
|
{
|
||||||
|
"runtime": "automatic"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
[
|
||||||
|
"@emotion/babel-plugin-jsx-pragmatic",
|
||||||
|
{
|
||||||
|
"export": "jsx",
|
||||||
|
"import": "__to_avoid_prepending_/** @jsxImportSource @emotion/react */",
|
||||||
|
"module": "@emotion/react"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@babel/plugin-transform-react-jsx",
|
||||||
|
{
|
||||||
|
"pragma": "__to_avoid_prepending_/** @jsxImportSource @emotion/react */"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"module-resolver",
|
||||||
|
{
|
||||||
|
"root": ["."],
|
||||||
|
"alias": {
|
||||||
|
"~": "./src"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
["babel-plugin-styled-components"]
|
||||||
|
]
|
||||||
|
}
|
||||||
5
.env.development
Normal file
5
.env.development
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
VITE_APP_ENV=development
|
||||||
|
VITE_APP_AUTH_PROXY_HOST='http://3.35.79.250:8090'
|
||||||
|
VITE_APP_API_PROXY_HOST='http://3.35.79.250:8080'
|
||||||
|
GENERATE_SOURCEMAP=false
|
||||||
|
SENTRY_AUTH_TOKEN=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
|
||||||
5
.env.local.server
Normal file
5
.env.local.server
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
VITE_APP_ENV=development
|
||||||
|
VITE_APP_AUTH_PROXY_HOST='http://3.35.79.250:8090'
|
||||||
|
VITE_APP_API_PROXY_HOST='http://3.35.79.250:8080'
|
||||||
|
GENERATE_SOURCEMAP=false
|
||||||
|
SENTRY_AUTH_TOKEN=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
|
||||||
28
.eslintrc.cjs
Normal file
28
.eslintrc.cjs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
env: { browser: true, es2020: true },
|
||||||
|
extends: [
|
||||||
|
'eslint:recommended',
|
||||||
|
'@typescript-eslint/recommended',
|
||||||
|
'plugin:react/recommended',
|
||||||
|
'plugin:react/jsx-runtime',
|
||||||
|
'plugin:react-hooks/recommended',
|
||||||
|
],
|
||||||
|
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
||||||
|
parser: '@typescript-eslint/parser',
|
||||||
|
parserOptions: {
|
||||||
|
ecmaVersion: 'latest',
|
||||||
|
sourceType: 'module',
|
||||||
|
project: './tsconfig.json'
|
||||||
|
},
|
||||||
|
settings: { react: { version: '18.2' } },
|
||||||
|
plugins: ['react-refresh', '@typescript-eslint'],
|
||||||
|
rules: {
|
||||||
|
'react-refresh/only-export-components': [
|
||||||
|
'warn',
|
||||||
|
{ allowConstantExport: true },
|
||||||
|
],
|
||||||
|
'@typescript-eslint/no-unused-vars': 'error',
|
||||||
|
'@typescript-eslint/no-explicit-any': 'warn',
|
||||||
|
},
|
||||||
|
}
|
||||||
24
.gitignore
vendored
Normal file
24
.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
*.local
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
550
.vite/deps/@dhmk_zustand-lens.js
Normal file
550
.vite/deps/@dhmk_zustand-lens.js
Normal file
@@ -0,0 +1,550 @@
|
|||||||
|
import {
|
||||||
|
createStore
|
||||||
|
} from "./chunk-2TJP56W3.js";
|
||||||
|
import "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/@dhmk+utils@4.4.1/node_modules/@dhmk/utils/esm/error.js
|
||||||
|
var __extends = /* @__PURE__ */ function() {
|
||||||
|
var extendStatics = function(d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
||||||
|
d2.__proto__ = b2;
|
||||||
|
} || function(d2, b2) {
|
||||||
|
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
||||||
|
};
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function(d, b) {
|
||||||
|
if (typeof b !== "function" && b !== null)
|
||||||
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() {
|
||||||
|
this.constructor = d;
|
||||||
|
}
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
}();
|
||||||
|
var CustomError = (
|
||||||
|
/** @class */
|
||||||
|
function(_super) {
|
||||||
|
__extends(CustomError2, _super);
|
||||||
|
function CustomError2() {
|
||||||
|
var _newTarget = this.constructor;
|
||||||
|
var _a;
|
||||||
|
var _this = _super.call(this) || this;
|
||||||
|
Object.setPrototypeOf(_this, _newTarget.prototype);
|
||||||
|
(_a = Error.captureStackTrace) === null || _a === void 0 ? void 0 : _a.call(
|
||||||
|
// a key to successful extending
|
||||||
|
Error,
|
||||||
|
_this,
|
||||||
|
_newTarget
|
||||||
|
);
|
||||||
|
return _this;
|
||||||
|
}
|
||||||
|
return CustomError2;
|
||||||
|
}(Error)
|
||||||
|
);
|
||||||
|
var DomainError = (
|
||||||
|
/** @class */
|
||||||
|
function(_super) {
|
||||||
|
__extends(DomainError2, _super);
|
||||||
|
function DomainError2(a1, a2, a3, a4) {
|
||||||
|
var _this = _super.call(this) || this;
|
||||||
|
_this.context = a1;
|
||||||
|
_this.error = a2 instanceof Error ? a2 : void 0;
|
||||||
|
_this.code = (_this.error ? a3 : a2) || 0;
|
||||||
|
_this.meta = _this.error ? a4 : a3;
|
||||||
|
if (_this.error) {
|
||||||
|
_this.message = _this.error.message;
|
||||||
|
_this.toString = _this.error.toString.bind(_this.error);
|
||||||
|
}
|
||||||
|
return _this;
|
||||||
|
}
|
||||||
|
return DomainError2;
|
||||||
|
}(CustomError)
|
||||||
|
);
|
||||||
|
|
||||||
|
// node_modules/.pnpm/@dhmk+utils@4.4.1/node_modules/@dhmk/utils/esm/types.js
|
||||||
|
var CancelledResult = (
|
||||||
|
/** @class */
|
||||||
|
/* @__PURE__ */ function() {
|
||||||
|
function CancelledResult2() {
|
||||||
|
}
|
||||||
|
return CancelledResult2;
|
||||||
|
}()
|
||||||
|
);
|
||||||
|
var Cancelled = new CancelledResult();
|
||||||
|
|
||||||
|
// node_modules/.pnpm/@dhmk+utils@4.4.1/node_modules/@dhmk/utils/esm/std.js
|
||||||
|
var __assign = function() {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var id = function(x) {
|
||||||
|
return x;
|
||||||
|
};
|
||||||
|
var shallowEqual = function(a, b) {
|
||||||
|
var ka = Object.keys(a);
|
||||||
|
var kb = Object.keys(b);
|
||||||
|
return ka.length === kb.length && ka.every(function(k) {
|
||||||
|
return a[k] === b[k];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
function objectFrom(entries) {
|
||||||
|
return Array.from(entries).reduce(function(res, _a) {
|
||||||
|
var k = _a[0], v = _a[1];
|
||||||
|
res[k] = v;
|
||||||
|
return res;
|
||||||
|
}, {});
|
||||||
|
}
|
||||||
|
function objectMap(src, mapValue, mapKey, mapSymbol) {
|
||||||
|
if (mapKey === void 0) {
|
||||||
|
mapKey = id;
|
||||||
|
}
|
||||||
|
if (mapSymbol === void 0) {
|
||||||
|
mapSymbol = id;
|
||||||
|
}
|
||||||
|
return objectFrom(Object.keys(src).map(function(k) {
|
||||||
|
return [mapKey(k, src[k], src), mapValue(src[k], k, src)];
|
||||||
|
}).concat(Object.getOwnPropertySymbols(src).map(function(k) {
|
||||||
|
return [
|
||||||
|
k,
|
||||||
|
mapSymbol(src[k], k, src)
|
||||||
|
];
|
||||||
|
})));
|
||||||
|
}
|
||||||
|
var mergeDeepRec = function(a, b) {
|
||||||
|
if (!isPlainObject(a) || !isPlainObject(b))
|
||||||
|
return b;
|
||||||
|
var res = __assign(__assign({}, a), b);
|
||||||
|
for (var k in b) {
|
||||||
|
res[k] = mergeDeepRec(a[k], b[k]);
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
};
|
||||||
|
var mergeDeep2 = function(a, b) {
|
||||||
|
return mergeDeepRec(a, typeof b === "function" ? b(a) : b);
|
||||||
|
};
|
||||||
|
var mergeDeep = function(a, b) {
|
||||||
|
return b ? mergeDeep2(a, b) : function(b2) {
|
||||||
|
return mergeDeep2(b2, a);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
var isPlainObject = function(x) {
|
||||||
|
return !!x && typeof x === "object" && Object.getPrototypeOf(x) === Object.prototype;
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/.pnpm/@dhmk+utils@4.4.1/node_modules/@dhmk/utils/esm/misc.js
|
||||||
|
function createCaseConverter(mapKey) {
|
||||||
|
return function convertCase(obj) {
|
||||||
|
if (isPlainObject(obj)) {
|
||||||
|
return objectMap(obj, convertCase, mapKey);
|
||||||
|
} else if (Array.isArray(obj))
|
||||||
|
return obj.map(convertCase);
|
||||||
|
else
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var snakeToCamelCase = createCaseConverter(function(k) {
|
||||||
|
return k.replace(/_(\w)/g, function(_, x) {
|
||||||
|
return x.toUpperCase();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
var camelToSnakeCase = createCaseConverter(function(k) {
|
||||||
|
return k.replace(/([A-Z])([a-z0-9])/g, function(_, x1, x2) {
|
||||||
|
return "_" + x1.toLowerCase() + x2;
|
||||||
|
}).replace(/([A-Z]+)/g, function(_, x) {
|
||||||
|
return "_" + x.toLowerCase();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/.pnpm/@dhmk+utils@4.4.1/node_modules/@dhmk/utils/esm/lens.js
|
||||||
|
var __assign2 = function() {
|
||||||
|
__assign2 = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign2.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var getIn = function(x, path) {
|
||||||
|
return path.reduce(function(src, k) {
|
||||||
|
return src[k];
|
||||||
|
}, x);
|
||||||
|
};
|
||||||
|
var updateIn = function(x, path, updater) {
|
||||||
|
if (path.length === 0) {
|
||||||
|
return updater(x);
|
||||||
|
}
|
||||||
|
var k = path[0], rest = path.slice(1);
|
||||||
|
var value = updateIn(x[k], rest, updater);
|
||||||
|
return Array.isArray(x) ? arraySet(x, Number(k), value) : objectSet(x, k, value);
|
||||||
|
};
|
||||||
|
var setIn = function(x, path, v) {
|
||||||
|
return updateIn(x, path, function() {
|
||||||
|
return v;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var arraySet = function(x, k, v) {
|
||||||
|
return x.map(function(_v, i) {
|
||||||
|
return i === k ? v : _v;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var objectSet = function(x, k, v) {
|
||||||
|
var _a;
|
||||||
|
return __assign2(__assign2({}, x), (_a = {}, _a[k] = v, _a));
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/.pnpm/@dhmk+zustand-lens@5.0.0_zu_f4d5fd4b94829d1baae72c44d4297fa8/node_modules/@dhmk/zustand-lens/esm/core.js
|
||||||
|
var __assign3 = function() {
|
||||||
|
__assign3 = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign3.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __spreadArray = function(to, from, pack) {
|
||||||
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
||||||
|
if (ar || !(i in from)) {
|
||||||
|
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
||||||
|
ar[i] = from[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return to.concat(ar || Array.prototype.slice.call(from));
|
||||||
|
};
|
||||||
|
var meta = Symbol("lens meta");
|
||||||
|
var storeContext = Symbol("store context");
|
||||||
|
function createLens(set, get, path) {
|
||||||
|
var normPath = path === void 0 ? void 0 : typeof path === "string" ? [path] : path;
|
||||||
|
var _set = function(partial, replace) {
|
||||||
|
var args = [];
|
||||||
|
for (var _i = 2; _i < arguments.length; _i++) {
|
||||||
|
args[_i - 2] = arguments[_i];
|
||||||
|
}
|
||||||
|
return set.apply(void 0, __spreadArray([
|
||||||
|
function(parentValue) {
|
||||||
|
var _a, _b, _c, _d;
|
||||||
|
var ourOldValue = normPath ? getIn(parentValue, normPath) : parentValue;
|
||||||
|
var ourTmpValue = typeof partial === "function" ? partial(ourOldValue) : partial;
|
||||||
|
var isPlain = isPlainObject(ourOldValue);
|
||||||
|
var ourOldValue2 = normPath ? getIn(get(), normPath) : get();
|
||||||
|
var isDraft = isPlain && ourOldValue !== ourOldValue2;
|
||||||
|
if (isDraft) {
|
||||||
|
var draft = ourOldValue;
|
||||||
|
if (ourTmpValue)
|
||||||
|
Object.assign(draft, ourTmpValue);
|
||||||
|
var pp = (
|
||||||
|
/*draft*/
|
||||||
|
(_b = (_a = ourOldValue2[meta]) === null || _a === void 0 ? void 0 : _a.postprocess) === null || _b === void 0 ? void 0 : _b.call.apply(_b, __spreadArray([
|
||||||
|
_a,
|
||||||
|
draft,
|
||||||
|
ourOldValue2
|
||||||
|
], args, false))
|
||||||
|
);
|
||||||
|
if (pp)
|
||||||
|
Object.assign(draft, pp);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var ourTmpValue2 = replace || !isPlain ? ourTmpValue : __assign3(__assign3({}, ourOldValue), ourTmpValue);
|
||||||
|
var ourNextValue = isPlain ? __assign3(__assign3({}, ourTmpValue2), (_d = (_c = ourTmpValue2[meta]) === null || _c === void 0 ? void 0 : _c.postprocess) === null || _d === void 0 ? void 0 : _d.call.apply(_d, __spreadArray([
|
||||||
|
_c,
|
||||||
|
ourTmpValue2,
|
||||||
|
ourOldValue
|
||||||
|
], args, false))) : ourTmpValue2;
|
||||||
|
var isSame = isPlain ? shallowEqual(ourOldValue, ourNextValue) : Object.is(ourOldValue, ourNextValue);
|
||||||
|
return isSame ? parentValue : normPath ? setIn(parentValue, normPath, ourNextValue) : ourNextValue;
|
||||||
|
},
|
||||||
|
normPath ? false : replace
|
||||||
|
], args, false));
|
||||||
|
};
|
||||||
|
var _get = function() {
|
||||||
|
return normPath ? getIn(get(), normPath) : get();
|
||||||
|
};
|
||||||
|
return [_set, _get];
|
||||||
|
}
|
||||||
|
var LENS_TAG = "@dhmk/LENS_TAG";
|
||||||
|
var isLens = function(x) {
|
||||||
|
return !!x && x[LENS_TAG];
|
||||||
|
};
|
||||||
|
function lens(fn) {
|
||||||
|
var self = function(set, get, api, ctx) {
|
||||||
|
var _a = createLens(set, get, ctx.relativePath), _set = _a[0], _get = _a[1];
|
||||||
|
ctx.set = _set;
|
||||||
|
ctx.get = _get;
|
||||||
|
return fn(_set, _get, api, ctx);
|
||||||
|
};
|
||||||
|
self[LENS_TAG] = true;
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
var findLensAndCreate = function(x, parentCtx) {
|
||||||
|
var _a, _b;
|
||||||
|
var res = x;
|
||||||
|
if (isPlainObject(x)) {
|
||||||
|
res = {};
|
||||||
|
var keys = Array().concat(
|
||||||
|
Object.getOwnPropertyNames(x),
|
||||||
|
(_b = (_a = Object.getOwnPropertySymbols) === null || _a === void 0 ? void 0 : _a.call(Object, x)) !== null && _b !== void 0 ? _b : []
|
||||||
|
// ie 11
|
||||||
|
);
|
||||||
|
keys.forEach(function(k) {
|
||||||
|
var _a2;
|
||||||
|
var v = x[k];
|
||||||
|
if (typeof k === "symbol") {
|
||||||
|
res[k] = v;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var nextSet = parentCtx.set;
|
||||||
|
var nextGet = parentCtx.get;
|
||||||
|
var nextRelativePath = parentCtx.relativePath.concat(k);
|
||||||
|
if (isLens(v)) {
|
||||||
|
var lensCtx_1 = {
|
||||||
|
set: void 0,
|
||||||
|
// will be set by `lens` function
|
||||||
|
get: void 0,
|
||||||
|
// see `set`
|
||||||
|
api: parentCtx.api,
|
||||||
|
rootPath: parentCtx.rootPath.concat(k),
|
||||||
|
relativePath: parentCtx.relativePath.concat(k),
|
||||||
|
atomic: parentCtx.atomic === atomicStub ? atomicStubWithWarning : parentCtx.atomic
|
||||||
|
};
|
||||||
|
var setterFn_1 = function(x2) {
|
||||||
|
return x2();
|
||||||
|
};
|
||||||
|
var set = function() {
|
||||||
|
var args = [];
|
||||||
|
for (var _i = 0; _i < arguments.length; _i++) {
|
||||||
|
args[_i] = arguments[_i];
|
||||||
|
}
|
||||||
|
return parentCtx.atomic(function() {
|
||||||
|
return setterFn_1(function() {
|
||||||
|
return parentCtx.set.apply(parentCtx, args);
|
||||||
|
}, lensCtx_1);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
v = v(set, parentCtx.get, parentCtx.api, lensCtx_1);
|
||||||
|
if ((_a2 = v[meta]) === null || _a2 === void 0 ? void 0 : _a2.setter)
|
||||||
|
setterFn_1 = v[meta].setter;
|
||||||
|
nextSet = lensCtx_1.set;
|
||||||
|
nextGet = lensCtx_1.get;
|
||||||
|
nextRelativePath = [];
|
||||||
|
}
|
||||||
|
res[k] = findLensAndCreate(v, {
|
||||||
|
set: nextSet,
|
||||||
|
get: nextGet,
|
||||||
|
api: parentCtx.api,
|
||||||
|
rootPath: parentCtx.rootPath.concat(k),
|
||||||
|
relativePath: nextRelativePath,
|
||||||
|
atomic: parentCtx.atomic
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
};
|
||||||
|
var withLensesImpl = function(config) {
|
||||||
|
return function(set, get, api) {
|
||||||
|
var _a, _b, _c;
|
||||||
|
var atomic2 = (_b = (_a = api[storeContext]) === null || _a === void 0 ? void 0 : _a.atomic) !== null && _b !== void 0 ? _b : atomicStub;
|
||||||
|
var setterFn = function(x) {
|
||||||
|
return x();
|
||||||
|
};
|
||||||
|
var setFn = function() {
|
||||||
|
var args = [];
|
||||||
|
for (var _i = 0; _i < arguments.length; _i++) {
|
||||||
|
args[_i] = arguments[_i];
|
||||||
|
}
|
||||||
|
return atomic2(function() {
|
||||||
|
return setterFn(function() {
|
||||||
|
return set.apply(void 0, args);
|
||||||
|
}, ctx);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var _set = createLens(setFn, get, void 0)[0];
|
||||||
|
var ctx = {
|
||||||
|
set: _set,
|
||||||
|
get,
|
||||||
|
api,
|
||||||
|
rootPath: [],
|
||||||
|
relativePath: [],
|
||||||
|
atomic: atomic2
|
||||||
|
};
|
||||||
|
var obj = typeof config === "function" ? config(_set, get, api) : config;
|
||||||
|
var res = findLensAndCreate(obj, ctx);
|
||||||
|
if ((_c = res[meta]) === null || _c === void 0 ? void 0 : _c.setter)
|
||||||
|
setterFn = res[meta].setter;
|
||||||
|
return res;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
var withLenses = withLensesImpl;
|
||||||
|
var atomicStub = function(fn) {
|
||||||
|
return fn();
|
||||||
|
};
|
||||||
|
var atomicStubWithWarning = function(fn) {
|
||||||
|
console.warn("You must include `atomic` middleware.");
|
||||||
|
return atomicStub(fn);
|
||||||
|
};
|
||||||
|
var atomicImpl = function(config) {
|
||||||
|
return function(set, get, api) {
|
||||||
|
var _a;
|
||||||
|
var tempStore = createStore(get);
|
||||||
|
var counter = 0;
|
||||||
|
var atomic2 = function(fn) {
|
||||||
|
if (++counter === 1) {
|
||||||
|
tempStore.setState(get());
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
fn();
|
||||||
|
} finally {
|
||||||
|
if (--counter === 0) {
|
||||||
|
set(tempStore.getState());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var _set = function() {
|
||||||
|
var args = [];
|
||||||
|
for (var _i = 0; _i < arguments.length; _i++) {
|
||||||
|
args[_i] = arguments[_i];
|
||||||
|
}
|
||||||
|
atomic2(function() {
|
||||||
|
return tempStore.setState.apply(tempStore, args);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var _get = function() {
|
||||||
|
return counter ? tempStore.getState() : get();
|
||||||
|
};
|
||||||
|
return config(_set, _get, __assign3(__assign3({}, api), (_a = { setState: _set, getState: _get }, _a[storeContext] = {
|
||||||
|
atomic: atomic2
|
||||||
|
}, _a)));
|
||||||
|
};
|
||||||
|
};
|
||||||
|
var atomic = atomicImpl;
|
||||||
|
|
||||||
|
// node_modules/.pnpm/@dhmk+zustand-lens@5.0.0_zu_f4d5fd4b94829d1baae72c44d4297fa8/node_modules/@dhmk/zustand-lens/esm/helpers.js
|
||||||
|
var mergeDeepLeft = function(a, b) {
|
||||||
|
return mergeDeep(b, a);
|
||||||
|
};
|
||||||
|
var customSetter = function(setter) {
|
||||||
|
return function(fn) {
|
||||||
|
return function(set, get, api, ctx) {
|
||||||
|
return fn(setter(set), get, api, ctx);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
var namedSetter = customSetter(function(set) {
|
||||||
|
return function(partial, name, replace) {
|
||||||
|
return set(partial, replace, name);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
function subscribe(store, selector, effect, options) {
|
||||||
|
if (options === void 0) {
|
||||||
|
options = {};
|
||||||
|
}
|
||||||
|
var _a = options.equalityFn, equalityFn = _a === void 0 ? Object.is : _a, _b = options.fireImmediately, fireImmediately = _b === void 0 ? false : _b;
|
||||||
|
var curr = selector(store.getState());
|
||||||
|
if (fireImmediately)
|
||||||
|
effect(curr, curr);
|
||||||
|
return store.subscribe(function(state) {
|
||||||
|
var next = selector(state);
|
||||||
|
if (!equalityFn(next, curr)) {
|
||||||
|
var prev = curr;
|
||||||
|
effect(curr = next, prev);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function watch(selector, effect, options) {
|
||||||
|
if (options === void 0) {
|
||||||
|
options = {};
|
||||||
|
}
|
||||||
|
var _a = options.equalityFn, equalityFn = _a === void 0 ? Object.is : _a, _b = options.fireImmediately, fireImmediately = _b === void 0 ? false : _b;
|
||||||
|
var curr;
|
||||||
|
if (fireImmediately)
|
||||||
|
effect(void 0, void 0);
|
||||||
|
return function(set, ctx) {
|
||||||
|
if (!curr)
|
||||||
|
curr = selector(ctx.get());
|
||||||
|
set();
|
||||||
|
var next = selector(ctx.get());
|
||||||
|
if (!equalityFn(next, curr)) {
|
||||||
|
var prev = curr;
|
||||||
|
effect(curr = next, prev);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function combineWatchers() {
|
||||||
|
var fns = [];
|
||||||
|
for (var _i = 0; _i < arguments.length; _i++) {
|
||||||
|
fns[_i] = arguments[_i];
|
||||||
|
}
|
||||||
|
var initialized;
|
||||||
|
var runWatchers = function(ctx) {
|
||||||
|
return fns.forEach(function(fn) {
|
||||||
|
return fn(function() {
|
||||||
|
}, ctx);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
return function(set, ctx) {
|
||||||
|
if (!initialized) {
|
||||||
|
initialized = true;
|
||||||
|
runWatchers(ctx);
|
||||||
|
}
|
||||||
|
set();
|
||||||
|
runWatchers(ctx);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var persist = Symbol("persist");
|
||||||
|
function persistOptions(conf) {
|
||||||
|
var _a;
|
||||||
|
return _a = {}, _a[persist] = conf, _a;
|
||||||
|
}
|
||||||
|
function walk(x, fn) {
|
||||||
|
return isPlainObject(x) ? objectMap(fn(x), function(v) {
|
||||||
|
return walk(v, fn);
|
||||||
|
}) : x;
|
||||||
|
}
|
||||||
|
var zustandPersistOptions = {
|
||||||
|
merge: function(persistedState, currentState) {
|
||||||
|
if (persistedState === void 0) {
|
||||||
|
persistedState = {};
|
||||||
|
}
|
||||||
|
return walk(mergeDeep(currentState, persistedState), function(x) {
|
||||||
|
var _a, _b, _c;
|
||||||
|
return (_c = (_b = (_a = x[persist]) === null || _a === void 0 ? void 0 : _a.load) === null || _b === void 0 ? void 0 : _b.call(_a, x)) !== null && _c !== void 0 ? _c : x;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
partialize: function(state) {
|
||||||
|
return walk(state, function(x) {
|
||||||
|
var _a, _b, _c;
|
||||||
|
return (_c = (_b = (_a = x[persist]) === null || _a === void 0 ? void 0 : _a.save) === null || _b === void 0 ? void 0 : _b.call(_a, x)) !== null && _c !== void 0 ? _c : x;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
persistOptions.merge = zustandPersistOptions.merge;
|
||||||
|
persistOptions.partialize = zustandPersistOptions.partialize;
|
||||||
|
export {
|
||||||
|
atomic,
|
||||||
|
combineWatchers,
|
||||||
|
createLens,
|
||||||
|
customSetter,
|
||||||
|
lens,
|
||||||
|
mergeDeep,
|
||||||
|
mergeDeepLeft,
|
||||||
|
meta,
|
||||||
|
namedSetter,
|
||||||
|
persistOptions,
|
||||||
|
subscribe,
|
||||||
|
watch,
|
||||||
|
withLenses
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=@dhmk_zustand-lens.js.map
|
||||||
7
.vite/deps/@dhmk_zustand-lens.js.map
Normal file
7
.vite/deps/@dhmk_zustand-lens.js.map
Normal file
File diff suppressed because one or more lines are too long
1488
.vite/deps/@emotion_react_jsx-dev-runtime.js
Normal file
1488
.vite/deps/@emotion_react_jsx-dev-runtime.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/@emotion_react_jsx-dev-runtime.js.map
Normal file
7
.vite/deps/@emotion_react_jsx-dev-runtime.js.map
Normal file
File diff suppressed because one or more lines are too long
9945
.vite/deps/@headlessui_react.js
Normal file
9945
.vite/deps/@headlessui_react.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/@headlessui_react.js.map
Normal file
7
.vite/deps/@headlessui_react.js.map
Normal file
File diff suppressed because one or more lines are too long
6107
.vite/deps/@lottiefiles_react-lottie-player.js
Normal file
6107
.vite/deps/@lottiefiles_react-lottie-player.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/@lottiefiles_react-lottie-player.js.map
Normal file
7
.vite/deps/@lottiefiles_react-lottie-player.js.map
Normal file
File diff suppressed because one or more lines are too long
26223
.vite/deps/@sentry_react.js
Normal file
26223
.vite/deps/@sentry_react.js
Normal file
File diff suppressed because one or more lines are too long
7
.vite/deps/@sentry_react.js.map
Normal file
7
.vite/deps/@sentry_react.js.map
Normal file
File diff suppressed because one or more lines are too long
3433
.vite/deps/@tanstack_react-query.js
Normal file
3433
.vite/deps/@tanstack_react-query.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/@tanstack_react-query.js.map
Normal file
7
.vite/deps/@tanstack_react-query.js.map
Normal file
File diff suppressed because one or more lines are too long
6398
.vite/deps/@tanstack_react-router.js
Normal file
6398
.vite/deps/@tanstack_react-router.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/@tanstack_react-router.js.map
Normal file
7
.vite/deps/@tanstack_react-router.js.map
Normal file
File diff suppressed because one or more lines are too long
91
.vite/deps/@webview-bridge_react.js
Normal file
91
.vite/deps/@webview-bridge_react.js
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
import {
|
||||||
|
linkBridge
|
||||||
|
} from "./chunk-4UG2A3YC.js";
|
||||||
|
import {
|
||||||
|
require_with_selector
|
||||||
|
} from "./chunk-TJUXSJCW.js";
|
||||||
|
import {
|
||||||
|
require_jsx_runtime
|
||||||
|
} from "./chunk-CQKXKKJC.js";
|
||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
__toESM
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/@webview-bridge+react@1.7.8_9f2461fed625767687060b7a28cbdf78/node_modules/@webview-bridge/react/dist/index.js
|
||||||
|
var import_react = __toESM(require_react());
|
||||||
|
var import_with_selector = __toESM(require_with_selector());
|
||||||
|
var import_jsx_runtime = __toESM(require_jsx_runtime());
|
||||||
|
function useBridge(store, selector) {
|
||||||
|
var $selector = selector !== null && selector !== void 0 ? selector : function(state) {
|
||||||
|
return state;
|
||||||
|
};
|
||||||
|
return (0, import_with_selector.useSyncExternalStoreWithSelector)(store.subscribe, store.getState, store.getState, $selector);
|
||||||
|
}
|
||||||
|
var createLinkBridgeProvider = function(options) {
|
||||||
|
var bridge = linkBridge(options);
|
||||||
|
var BridgeContext = (0, import_react.createContext)(null);
|
||||||
|
var BridgeProvider = function(param) {
|
||||||
|
var children = param.children;
|
||||||
|
var storeRef = (0, import_react.useRef)();
|
||||||
|
if (!storeRef.current) {
|
||||||
|
storeRef.current = bridge;
|
||||||
|
}
|
||||||
|
return (0, import_jsx_runtime.jsx)(BridgeContext.Provider, {
|
||||||
|
value: storeRef.current,
|
||||||
|
children
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var useBridgeStore = function(selector) {
|
||||||
|
var bridgeStoreContext = (0, import_react.useContext)(BridgeContext);
|
||||||
|
if (!bridgeStoreContext) {
|
||||||
|
throw new Error("useBridgeStore must be used within a BridgeProvider");
|
||||||
|
}
|
||||||
|
return useBridge(bridgeStoreContext.store, selector);
|
||||||
|
};
|
||||||
|
var useBridgeStatus = function() {
|
||||||
|
var bridgeStoreContext = (0, import_react.useContext)(BridgeContext);
|
||||||
|
if (!bridgeStoreContext) {
|
||||||
|
throw new Error("useBridgeStatus must be used within a BridgeProvider");
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
isNativeMethodAvailable: function(method) {
|
||||||
|
return bridgeStoreContext.isNativeMethodAvailable(method);
|
||||||
|
},
|
||||||
|
isWebViewBridgeAvailable: bridgeStoreContext.isWebViewBridgeAvailable
|
||||||
|
};
|
||||||
|
};
|
||||||
|
var useBridgeLoose = function() {
|
||||||
|
var bridgeStoreContext = (0, import_react.useContext)(BridgeContext);
|
||||||
|
if (!bridgeStoreContext) {
|
||||||
|
throw new Error("useBridgeLoose must be used within a BridgeProvider");
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
loose: bridgeStoreContext.loose
|
||||||
|
};
|
||||||
|
};
|
||||||
|
var useBridgeEventListener = function(eventName, listener) {
|
||||||
|
var bridgeStoreContext = (0, import_react.useContext)(BridgeContext);
|
||||||
|
if (!bridgeStoreContext) {
|
||||||
|
throw new Error("useBridgeEventListener must be used within a BridgeProvider");
|
||||||
|
}
|
||||||
|
(0, import_react.useEffect)(function() {
|
||||||
|
return bridgeStoreContext.addEventListener(eventName, listener);
|
||||||
|
}, []);
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
bridge,
|
||||||
|
BridgeProvider,
|
||||||
|
useBridgeStore,
|
||||||
|
useBridgeStatus,
|
||||||
|
useBridgeLoose,
|
||||||
|
useBridgeEventListener
|
||||||
|
};
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
createLinkBridgeProvider,
|
||||||
|
useBridge
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=@webview-bridge_react.js.map
|
||||||
7
.vite/deps/@webview-bridge_react.js.map
Normal file
7
.vite/deps/@webview-bridge_react.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../node_modules/.pnpm/@webview-bridge+react@1.7.8_9f2461fed625767687060b7a28cbdf78/node_modules/@webview-bridge/react/dist/index.js"],
|
||||||
|
"sourcesContent": ["// src/createLinkBridgeProvider.tsx\nimport { linkBridge } from \"@webview-bridge/web\";\nimport { createContext, useContext, useEffect, useRef } from \"react\";\n// src/useBridge.ts\nimport { useSyncExternalStoreWithSelector } from \"use-sync-external-store/with-selector.js\";\nfunction useBridge(store, selector) {\n var $selector = selector !== null && selector !== void 0 ? selector : function(state) {\n return state;\n };\n return useSyncExternalStoreWithSelector(store.subscribe, store.getState, store.getState, $selector);\n}\n// src/createLinkBridgeProvider.tsx\nimport { jsx } from \"react/jsx-runtime\";\nvar createLinkBridgeProvider = function(options) {\n var bridge = linkBridge(options);\n var BridgeContext = createContext(null);\n var BridgeProvider = function(param) {\n var children = param.children;\n var storeRef = useRef();\n if (!storeRef.current) {\n storeRef.current = bridge;\n }\n return /* @__PURE__ */ jsx(BridgeContext.Provider, {\n value: storeRef.current,\n children: children\n });\n };\n var useBridgeStore = function(selector) {\n var bridgeStoreContext = useContext(BridgeContext);\n if (!bridgeStoreContext) {\n throw new Error(\"useBridgeStore must be used within a BridgeProvider\");\n }\n return useBridge(bridgeStoreContext.store, selector);\n };\n var useBridgeStatus = function() {\n var bridgeStoreContext = useContext(BridgeContext);\n if (!bridgeStoreContext) {\n throw new Error(\"useBridgeStatus must be used within a BridgeProvider\");\n }\n return {\n isNativeMethodAvailable: function(method) {\n return bridgeStoreContext.isNativeMethodAvailable(method);\n },\n isWebViewBridgeAvailable: bridgeStoreContext.isWebViewBridgeAvailable\n };\n };\n var useBridgeLoose = function() {\n var bridgeStoreContext = useContext(BridgeContext);\n if (!bridgeStoreContext) {\n throw new Error(\"useBridgeLoose must be used within a BridgeProvider\");\n }\n return {\n loose: bridgeStoreContext.loose\n };\n };\n var useBridgeEventListener = function(eventName, listener) {\n var bridgeStoreContext = useContext(BridgeContext);\n if (!bridgeStoreContext) {\n throw new Error(\"useBridgeEventListener must be used within a BridgeProvider\");\n }\n useEffect(function() {\n return bridgeStoreContext.addEventListener(eventName, listener);\n }, []);\n };\n return {\n bridge: bridge,\n BridgeProvider: BridgeProvider,\n useBridgeStore: useBridgeStore,\n useBridgeStatus: useBridgeStatus,\n useBridgeLoose: useBridgeLoose,\n useBridgeEventListener: useBridgeEventListener\n };\n};\nexport { createLinkBridgeProvider, useBridge };\n"],
|
||||||
|
"mappings": ";;;;;;;;;;;;;;;;;AAEA,mBAA6D;AAE7D,2BAAiD;AAQjD,yBAAoB;AAPpB,SAAS,UAAU,OAAO,UAAU;AAChC,MAAI,YAAY,aAAa,QAAQ,aAAa,SAAS,WAAW,SAAS,OAAO;AAClF,WAAO;AAAA,EACX;AACA,aAAO,uDAAiC,MAAM,WAAW,MAAM,UAAU,MAAM,UAAU,SAAS;AACtG;AAGA,IAAI,2BAA2B,SAAS,SAAS;AAC7C,MAAI,SAAS,WAAW,OAAO;AAC/B,MAAI,oBAAgB,4BAAc,IAAI;AACtC,MAAI,iBAAiB,SAAS,OAAO;AACjC,QAAI,WAAW,MAAM;AACrB,QAAI,eAAW,qBAAO;AACtB,QAAI,CAAC,SAAS,SAAS;AACnB,eAAS,UAAU;AAAA,IACvB;AACA,eAAuB,wBAAI,cAAc,UAAU;AAAA,MAC/C,OAAO,SAAS;AAAA,MAChB;AAAA,IACJ,CAAC;AAAA,EACL;AACA,MAAI,iBAAiB,SAAS,UAAU;AACpC,QAAI,yBAAqB,yBAAW,aAAa;AACjD,QAAI,CAAC,oBAAoB;AACrB,YAAM,IAAI,MAAM,qDAAqD;AAAA,IACzE;AACA,WAAO,UAAU,mBAAmB,OAAO,QAAQ;AAAA,EACvD;AACA,MAAI,kBAAkB,WAAW;AAC7B,QAAI,yBAAqB,yBAAW,aAAa;AACjD,QAAI,CAAC,oBAAoB;AACrB,YAAM,IAAI,MAAM,sDAAsD;AAAA,IAC1E;AACA,WAAO;AAAA,MACH,yBAAyB,SAAS,QAAQ;AACtC,eAAO,mBAAmB,wBAAwB,MAAM;AAAA,MAC5D;AAAA,MACA,0BAA0B,mBAAmB;AAAA,IACjD;AAAA,EACJ;AACA,MAAI,iBAAiB,WAAW;AAC5B,QAAI,yBAAqB,yBAAW,aAAa;AACjD,QAAI,CAAC,oBAAoB;AACrB,YAAM,IAAI,MAAM,qDAAqD;AAAA,IACzE;AACA,WAAO;AAAA,MACH,OAAO,mBAAmB;AAAA,IAC9B;AAAA,EACJ;AACA,MAAI,yBAAyB,SAAS,WAAW,UAAU;AACvD,QAAI,yBAAqB,yBAAW,aAAa;AACjD,QAAI,CAAC,oBAAoB;AACrB,YAAM,IAAI,MAAM,6DAA6D;AAAA,IACjF;AACA,gCAAU,WAAW;AACjB,aAAO,mBAAmB,iBAAiB,WAAW,QAAQ;AAAA,IAClE,GAAG,CAAC,CAAC;AAAA,EACT;AACA,SAAO;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AACJ;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
13
.vite/deps/@webview-bridge_web.js
Normal file
13
.vite/deps/@webview-bridge_web.js
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import {
|
||||||
|
MethodNotFoundError,
|
||||||
|
NativeMethodError,
|
||||||
|
linkBridge,
|
||||||
|
registerWebMethod
|
||||||
|
} from "./chunk-4UG2A3YC.js";
|
||||||
|
import "./chunk-PLDDJCW6.js";
|
||||||
|
export {
|
||||||
|
MethodNotFoundError,
|
||||||
|
NativeMethodError,
|
||||||
|
linkBridge,
|
||||||
|
registerWebMethod
|
||||||
|
};
|
||||||
7
.vite/deps/@webview-bridge_web.js.map
Normal file
7
.vite/deps/@webview-bridge_web.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
259
.vite/deps/_metadata.json
Normal file
259
.vite/deps/_metadata.json
Normal file
@@ -0,0 +1,259 @@
|
|||||||
|
{
|
||||||
|
"hash": "65273ca4",
|
||||||
|
"configHash": "c9148444",
|
||||||
|
"lockfileHash": "1ae65ff2",
|
||||||
|
"browserHash": "d738e548",
|
||||||
|
"optimized": {
|
||||||
|
"@emotion/react/jsx-dev-runtime": {
|
||||||
|
"src": "../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@19.1.10_react@19.1.1/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js",
|
||||||
|
"file": "@emotion_react_jsx-dev-runtime.js",
|
||||||
|
"fileHash": "7859a408",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"@dhmk/zustand-lens": {
|
||||||
|
"src": "../../node_modules/.pnpm/@dhmk+zustand-lens@5.0.0_zu_f4d5fd4b94829d1baae72c44d4297fa8/node_modules/@dhmk/zustand-lens/esm/index.js",
|
||||||
|
"file": "@dhmk_zustand-lens.js",
|
||||||
|
"fileHash": "4f0ac499",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"@headlessui/react": {
|
||||||
|
"src": "../../node_modules/.pnpm/@headlessui+react@2.2.7_rea_0ce2b2bc9c6002d78d2cb0b12b83e105/node_modules/@headlessui/react/dist/headlessui.esm.js",
|
||||||
|
"file": "@headlessui_react.js",
|
||||||
|
"fileHash": "0cd68640",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"@lottiefiles/react-lottie-player": {
|
||||||
|
"src": "../../node_modules/.pnpm/@lottiefiles+react-lottie-player@3.6.0_react@19.1.1/node_modules/@lottiefiles/react-lottie-player/dist/lottie-react.esm.js",
|
||||||
|
"file": "@lottiefiles_react-lottie-player.js",
|
||||||
|
"fileHash": "45b36668",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"@sentry/react": {
|
||||||
|
"src": "../../node_modules/.pnpm/@sentry+react@10.4.0_react@19.1.1/node_modules/@sentry/react/build/esm/index.js",
|
||||||
|
"file": "@sentry_react.js",
|
||||||
|
"fileHash": "ce8a1666",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"@tanstack/react-query": {
|
||||||
|
"src": "../../node_modules/.pnpm/@tanstack+react-query@5.84.2_react@19.1.1/node_modules/@tanstack/react-query/build/modern/index.js",
|
||||||
|
"file": "@tanstack_react-query.js",
|
||||||
|
"fileHash": "2dd24b06",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"@tanstack/react-router": {
|
||||||
|
"src": "../../node_modules/.pnpm/@tanstack+react-router@1.13_fa2ecf64975fde76e8218d35a2f1565b/node_modules/@tanstack/react-router/dist/esm/index.js",
|
||||||
|
"file": "@tanstack_react-router.js",
|
||||||
|
"fileHash": "340833e2",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"@webview-bridge/react": {
|
||||||
|
"src": "../../node_modules/.pnpm/@webview-bridge+react@1.7.8_9f2461fed625767687060b7a28cbdf78/node_modules/@webview-bridge/react/dist/index.js",
|
||||||
|
"file": "@webview-bridge_react.js",
|
||||||
|
"fileHash": "0d7f69cc",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"@webview-bridge/web": {
|
||||||
|
"src": "../../node_modules/.pnpm/@webview-bridge+web@1.7.8/node_modules/@webview-bridge/web/dist/index.js",
|
||||||
|
"file": "@webview-bridge_web.js",
|
||||||
|
"fileHash": "5ba1daed",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"axios": {
|
||||||
|
"src": "../../node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.js",
|
||||||
|
"file": "axios.js",
|
||||||
|
"fileHash": "466a28ad",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"clsx": {
|
||||||
|
"src": "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs",
|
||||||
|
"file": "clsx.js",
|
||||||
|
"fileHash": "3d5178b6",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"framer-motion": {
|
||||||
|
"src": "../../node_modules/.pnpm/framer-motion@12.23.12_@emo_63cee98fb814fb2ad43a64018335c355/node_modules/framer-motion/dist/es/index.mjs",
|
||||||
|
"file": "framer-motion.js",
|
||||||
|
"fileHash": "5be18852",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"moment": {
|
||||||
|
"src": "../../node_modules/.pnpm/moment@2.30.1/node_modules/moment/dist/moment.js",
|
||||||
|
"file": "moment.js",
|
||||||
|
"fileHash": "8faabcf3",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"moment/dist/locale/ko": {
|
||||||
|
"src": "../../node_modules/.pnpm/moment@2.30.1/node_modules/moment/dist/locale/ko.js",
|
||||||
|
"file": "moment_dist_locale_ko.js",
|
||||||
|
"fileHash": "51afa9ee",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"overlay-kit": {
|
||||||
|
"src": "../../node_modules/.pnpm/overlay-kit@1.8.4_react-dom_8ea85e22eb3956f3589f4c288e5185a7/node_modules/overlay-kit/dist/index.js",
|
||||||
|
"file": "overlay-kit.js",
|
||||||
|
"fileHash": "76fcefc7",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react": {
|
||||||
|
"src": "../../node_modules/.pnpm/react@19.1.1/node_modules/react/index.js",
|
||||||
|
"file": "react.js",
|
||||||
|
"fileHash": "88a9047e",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react-cookie": {
|
||||||
|
"src": "../../node_modules/.pnpm/react-cookie@8.0.1_@types+react@19.1.10_react@19.1.1/node_modules/react-cookie/esm/index.mjs",
|
||||||
|
"file": "react-cookie.js",
|
||||||
|
"fileHash": "b8c51ee9",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react-dom": {
|
||||||
|
"src": "../../node_modules/.pnpm/react-dom@19.1.1_react@19.1.1/node_modules/react-dom/index.js",
|
||||||
|
"file": "react-dom.js",
|
||||||
|
"fileHash": "d916f79f",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react-dom/client": {
|
||||||
|
"src": "../../node_modules/.pnpm/react-dom@19.1.1_react@19.1.1/node_modules/react-dom/client.js",
|
||||||
|
"file": "react-dom_client.js",
|
||||||
|
"fileHash": "35550f6c",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react-error-boundary": {
|
||||||
|
"src": "../../node_modules/.pnpm/react-error-boundary@6.0.0_react@19.1.1/node_modules/react-error-boundary/dist/react-error-boundary.development.js",
|
||||||
|
"file": "react-error-boundary.js",
|
||||||
|
"fileHash": "11c72a7f",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react-i18next": {
|
||||||
|
"src": "../../node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/index.js",
|
||||||
|
"file": "react-i18next.js",
|
||||||
|
"fileHash": "79c65135",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react-number-format": {
|
||||||
|
"src": "../../node_modules/.pnpm/react-number-format@5.4.4_r_2d4ee6c05daca4e1f99e3d8344ca6704/node_modules/react-number-format/dist/react-number-format.es.js",
|
||||||
|
"file": "react-number-format.js",
|
||||||
|
"fileHash": "42841665",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react-router": {
|
||||||
|
"src": "../../node_modules/.pnpm/react-router@7.8.0_react-do_ddf32c646a867a9a514d8176243fec17/node_modules/react-router/dist/development/index.mjs",
|
||||||
|
"file": "react-router.js",
|
||||||
|
"fileHash": "d5a6ae91",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react-router-dom": {
|
||||||
|
"src": "../../node_modules/.pnpm/react-router-dom@7.8.0_reac_c61acd8108dca6d9bddb9dfc5e34fb33/node_modules/react-router-dom/dist/index.mjs",
|
||||||
|
"file": "react-router-dom.js",
|
||||||
|
"fileHash": "1f25c215",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react-toastify": {
|
||||||
|
"src": "../../node_modules/.pnpm/react-toastify@11.0.5_react_2dfc4103ab28776bb23596b6cf63c441/node_modules/react-toastify/dist/index.mjs",
|
||||||
|
"file": "react-toastify.js",
|
||||||
|
"fileHash": "cea77331",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react-use": {
|
||||||
|
"src": "../../node_modules/.pnpm/react-use@17.6.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/react-use/esm/index.js",
|
||||||
|
"file": "react-use.js",
|
||||||
|
"fileHash": "e4963b6b",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"react/jsx-dev-runtime": {
|
||||||
|
"src": "../../node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-dev-runtime.js",
|
||||||
|
"file": "react_jsx-dev-runtime.js",
|
||||||
|
"fileHash": "109bd4f3",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react/jsx-runtime": {
|
||||||
|
"src": "../../node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-runtime.js",
|
||||||
|
"file": "react_jsx-runtime.js",
|
||||||
|
"fileHash": "399f70f4",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"recoil": {
|
||||||
|
"src": "../../node_modules/.pnpm/recoil@0.7.7_react-dom@19.1_8ab0e37d79d46f8e700766391da7d1c0/node_modules/recoil/es/index.js",
|
||||||
|
"file": "recoil.js",
|
||||||
|
"fileHash": "919d2403",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"styled-components": {
|
||||||
|
"src": "../../node_modules/.pnpm/styled-components@6.1.19_re_e652f248d3edcbf50059d25db363f69b/node_modules/styled-components/dist/styled-components.browser.esm.js",
|
||||||
|
"file": "styled-components.js",
|
||||||
|
"fileHash": "64f98e59",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"swiper/react": {
|
||||||
|
"src": "../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper-react.mjs",
|
||||||
|
"file": "swiper_react.js",
|
||||||
|
"fileHash": "f6e5b4bd",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"use-local-storage-state": {
|
||||||
|
"src": "../../node_modules/.pnpm/use-local-storage-state@19._4d94ea5c8b720894eddc04bd1d07d188/node_modules/use-local-storage-state/index.js",
|
||||||
|
"file": "use-local-storage-state.js",
|
||||||
|
"fileHash": "f51f45a1",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"zustand": {
|
||||||
|
"src": "../../node_modules/.pnpm/zustand@5.0.7_@types+react@_351ff060662620a9a4f6757877b5b1df/node_modules/zustand/esm/index.mjs",
|
||||||
|
"file": "zustand.js",
|
||||||
|
"fileHash": "dc5af59d",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"zustand/middleware": {
|
||||||
|
"src": "../../node_modules/.pnpm/zustand@5.0.7_@types+react@_351ff060662620a9a4f6757877b5b1df/node_modules/zustand/esm/middleware.mjs",
|
||||||
|
"file": "zustand_middleware.js",
|
||||||
|
"fileHash": "b26e4461",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"zustand/middleware/immer": {
|
||||||
|
"src": "../../node_modules/.pnpm/zustand@5.0.7_@types+react@_351ff060662620a9a4f6757877b5b1df/node_modules/zustand/esm/middleware/immer.mjs",
|
||||||
|
"file": "zustand_middleware_immer.js",
|
||||||
|
"fileHash": "253d6c13",
|
||||||
|
"needsInterop": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chunks": {
|
||||||
|
"chunk-7EPPR7CJ": {
|
||||||
|
"file": "chunk-7EPPR7CJ.js"
|
||||||
|
},
|
||||||
|
"chunk-4GLESION": {
|
||||||
|
"file": "chunk-4GLESION.js"
|
||||||
|
},
|
||||||
|
"chunk-B4R7W4KZ": {
|
||||||
|
"file": "chunk-B4R7W4KZ.js"
|
||||||
|
},
|
||||||
|
"chunk-VKF4V6AS": {
|
||||||
|
"file": "chunk-VKF4V6AS.js"
|
||||||
|
},
|
||||||
|
"chunk-B6YZCPZH": {
|
||||||
|
"file": "chunk-B6YZCPZH.js"
|
||||||
|
},
|
||||||
|
"chunk-65SL2JMO": {
|
||||||
|
"file": "chunk-65SL2JMO.js"
|
||||||
|
},
|
||||||
|
"chunk-4UG2A3YC": {
|
||||||
|
"file": "chunk-4UG2A3YC.js"
|
||||||
|
},
|
||||||
|
"chunk-TJUXSJCW": {
|
||||||
|
"file": "chunk-TJUXSJCW.js"
|
||||||
|
},
|
||||||
|
"chunk-CQKXKKJC": {
|
||||||
|
"file": "chunk-CQKXKKJC.js"
|
||||||
|
},
|
||||||
|
"chunk-R7JHQV4C": {
|
||||||
|
"file": "chunk-R7JHQV4C.js"
|
||||||
|
},
|
||||||
|
"chunk-6SD27EE3": {
|
||||||
|
"file": "chunk-6SD27EE3.js"
|
||||||
|
},
|
||||||
|
"chunk-2TJP56W3": {
|
||||||
|
"file": "chunk-2TJP56W3.js"
|
||||||
|
},
|
||||||
|
"chunk-PLDDJCW6": {
|
||||||
|
"file": "chunk-PLDDJCW6.js"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2544
.vite/deps/axios.js
Normal file
2544
.vite/deps/axios.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/axios.js.map
Normal file
7
.vite/deps/axios.js.map
Normal file
File diff suppressed because one or more lines are too long
28
.vite/deps/chunk-2TJP56W3.js
Normal file
28
.vite/deps/chunk-2TJP56W3.js
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
// node_modules/.pnpm/zustand@5.0.7_@types+react@_351ff060662620a9a4f6757877b5b1df/node_modules/zustand/esm/vanilla.mjs
|
||||||
|
var createStoreImpl = (createState) => {
|
||||||
|
let state;
|
||||||
|
const listeners = /* @__PURE__ */ new Set();
|
||||||
|
const setState = (partial, replace) => {
|
||||||
|
const nextState = typeof partial === "function" ? partial(state) : partial;
|
||||||
|
if (!Object.is(nextState, state)) {
|
||||||
|
const previousState = state;
|
||||||
|
state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
||||||
|
listeners.forEach((listener) => listener(state, previousState));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const getState = () => state;
|
||||||
|
const getInitialState = () => initialState;
|
||||||
|
const subscribe = (listener) => {
|
||||||
|
listeners.add(listener);
|
||||||
|
return () => listeners.delete(listener);
|
||||||
|
};
|
||||||
|
const api = { setState, getState, getInitialState, subscribe };
|
||||||
|
const initialState = state = createState(setState, getState, api);
|
||||||
|
return api;
|
||||||
|
};
|
||||||
|
var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
||||||
|
|
||||||
|
export {
|
||||||
|
createStore
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-2TJP56W3.js.map
|
||||||
7
.vite/deps/chunk-2TJP56W3.js.map
Normal file
7
.vite/deps/chunk-2TJP56W3.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../node_modules/.pnpm/zustand@5.0.7_@types+react@_351ff060662620a9a4f6757877b5b1df/node_modules/zustand/esm/vanilla.mjs"],
|
||||||
|
"sourcesContent": ["const createStoreImpl = (createState) => {\n let state;\n const listeners = /* @__PURE__ */ new Set();\n const setState = (partial, replace) => {\n const nextState = typeof partial === \"function\" ? partial(state) : partial;\n if (!Object.is(nextState, state)) {\n const previousState = state;\n state = (replace != null ? replace : typeof nextState !== \"object\" || nextState === null) ? nextState : Object.assign({}, state, nextState);\n listeners.forEach((listener) => listener(state, previousState));\n }\n };\n const getState = () => state;\n const getInitialState = () => initialState;\n const subscribe = (listener) => {\n listeners.add(listener);\n return () => listeners.delete(listener);\n };\n const api = { setState, getState, getInitialState, subscribe };\n const initialState = state = createState(setState, getState, api);\n return api;\n};\nconst createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;\n\nexport { createStore };\n"],
|
||||||
|
"mappings": ";AAAA,IAAM,kBAAkB,CAAC,gBAAgB;AACvC,MAAI;AACJ,QAAM,YAA4B,oBAAI,IAAI;AAC1C,QAAM,WAAW,CAAC,SAAS,YAAY;AACrC,UAAM,YAAY,OAAO,YAAY,aAAa,QAAQ,KAAK,IAAI;AACnE,QAAI,CAAC,OAAO,GAAG,WAAW,KAAK,GAAG;AAChC,YAAM,gBAAgB;AACtB,eAAS,WAAW,OAAO,UAAU,OAAO,cAAc,YAAY,cAAc,QAAQ,YAAY,OAAO,OAAO,CAAC,GAAG,OAAO,SAAS;AAC1I,gBAAU,QAAQ,CAAC,aAAa,SAAS,OAAO,aAAa,CAAC;AAAA,IAChE;AAAA,EACF;AACA,QAAM,WAAW,MAAM;AACvB,QAAM,kBAAkB,MAAM;AAC9B,QAAM,YAAY,CAAC,aAAa;AAC9B,cAAU,IAAI,QAAQ;AACtB,WAAO,MAAM,UAAU,OAAO,QAAQ;AAAA,EACxC;AACA,QAAM,MAAM,EAAE,UAAU,UAAU,iBAAiB,UAAU;AAC7D,QAAM,eAAe,QAAQ,YAAY,UAAU,UAAU,GAAG;AAChE,SAAO;AACT;AACA,IAAM,cAAc,CAAC,gBAAgB,cAAc,gBAAgB,WAAW,IAAI;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
4082
.vite/deps/chunk-4GLESION.js
Normal file
4082
.vite/deps/chunk-4GLESION.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/chunk-4GLESION.js.map
Normal file
7
.vite/deps/chunk-4GLESION.js.map
Normal file
File diff suppressed because one or more lines are too long
1048
.vite/deps/chunk-4UG2A3YC.js
Normal file
1048
.vite/deps/chunk-4UG2A3YC.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/chunk-4UG2A3YC.js.map
Normal file
7
.vite/deps/chunk-4UG2A3YC.js.map
Normal file
File diff suppressed because one or more lines are too long
280
.vite/deps/chunk-65SL2JMO.js
Normal file
280
.vite/deps/chunk-65SL2JMO.js
Normal file
@@ -0,0 +1,280 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-dom@19.1.1_react@19.1.1/node_modules/react-dom/cjs/react-dom.development.js
|
||||||
|
var require_react_dom_development = __commonJS({
|
||||||
|
"node_modules/.pnpm/react-dom@19.1.1_react@19.1.1/node_modules/react-dom/cjs/react-dom.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
(function() {
|
||||||
|
function noop() {
|
||||||
|
}
|
||||||
|
function testStringCoercion(value) {
|
||||||
|
return "" + value;
|
||||||
|
}
|
||||||
|
function createPortal$1(children, containerInfo, implementation) {
|
||||||
|
var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
||||||
|
try {
|
||||||
|
testStringCoercion(key);
|
||||||
|
var JSCompiler_inline_result = false;
|
||||||
|
} catch (e) {
|
||||||
|
JSCompiler_inline_result = true;
|
||||||
|
}
|
||||||
|
JSCompiler_inline_result && (console.error(
|
||||||
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||||
|
"function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"
|
||||||
|
), testStringCoercion(key));
|
||||||
|
return {
|
||||||
|
$$typeof: REACT_PORTAL_TYPE,
|
||||||
|
key: null == key ? null : "" + key,
|
||||||
|
children,
|
||||||
|
containerInfo,
|
||||||
|
implementation
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function getCrossOriginStringAs(as, input) {
|
||||||
|
if ("font" === as) return "";
|
||||||
|
if ("string" === typeof input)
|
||||||
|
return "use-credentials" === input ? input : "";
|
||||||
|
}
|
||||||
|
function getValueDescriptorExpectingObjectForWarning(thing) {
|
||||||
|
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"';
|
||||||
|
}
|
||||||
|
function getValueDescriptorExpectingEnumForWarning(thing) {
|
||||||
|
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"';
|
||||||
|
}
|
||||||
|
function resolveDispatcher() {
|
||||||
|
var dispatcher = ReactSharedInternals.H;
|
||||||
|
null === dispatcher && console.error(
|
||||||
|
"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."
|
||||||
|
);
|
||||||
|
return dispatcher;
|
||||||
|
}
|
||||||
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
||||||
|
var React = require_react(), Internals = {
|
||||||
|
d: {
|
||||||
|
f: noop,
|
||||||
|
r: function() {
|
||||||
|
throw Error(
|
||||||
|
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
||||||
|
);
|
||||||
|
},
|
||||||
|
D: noop,
|
||||||
|
C: noop,
|
||||||
|
L: noop,
|
||||||
|
m: noop,
|
||||||
|
X: noop,
|
||||||
|
S: noop,
|
||||||
|
M: noop
|
||||||
|
},
|
||||||
|
p: 0,
|
||||||
|
findDOMNode: null
|
||||||
|
}, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
||||||
|
"function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
|
||||||
|
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
||||||
|
);
|
||||||
|
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
||||||
|
exports.createPortal = function(children, container) {
|
||||||
|
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
||||||
|
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
||||||
|
throw Error("Target container is not a DOM element.");
|
||||||
|
return createPortal$1(children, container, null, key);
|
||||||
|
};
|
||||||
|
exports.flushSync = function(fn) {
|
||||||
|
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
||||||
|
try {
|
||||||
|
if (ReactSharedInternals.T = null, Internals.p = 2, fn)
|
||||||
|
return fn();
|
||||||
|
} finally {
|
||||||
|
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error(
|
||||||
|
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.preconnect = function(href, options) {
|
||||||
|
"string" === typeof href && href ? null != options && "object" !== typeof options ? console.error(
|
||||||
|
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
||||||
|
getValueDescriptorExpectingEnumForWarning(options)
|
||||||
|
) : null != options && "string" !== typeof options.crossOrigin && console.error(
|
||||||
|
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
||||||
|
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
||||||
|
) : console.error(
|
||||||
|
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
||||||
|
getValueDescriptorExpectingObjectForWarning(href)
|
||||||
|
);
|
||||||
|
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
||||||
|
};
|
||||||
|
exports.prefetchDNS = function(href) {
|
||||||
|
if ("string" !== typeof href || !href)
|
||||||
|
console.error(
|
||||||
|
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
||||||
|
getValueDescriptorExpectingObjectForWarning(href)
|
||||||
|
);
|
||||||
|
else if (1 < arguments.length) {
|
||||||
|
var options = arguments[1];
|
||||||
|
"object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error(
|
||||||
|
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
||||||
|
getValueDescriptorExpectingEnumForWarning(options)
|
||||||
|
) : console.error(
|
||||||
|
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
||||||
|
getValueDescriptorExpectingEnumForWarning(options)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
"string" === typeof href && Internals.d.D(href);
|
||||||
|
};
|
||||||
|
exports.preinit = function(href, options) {
|
||||||
|
"string" === typeof href && href ? null == options || "object" !== typeof options ? console.error(
|
||||||
|
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
||||||
|
getValueDescriptorExpectingEnumForWarning(options)
|
||||||
|
) : "style" !== options.as && "script" !== options.as && console.error(
|
||||||
|
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
||||||
|
getValueDescriptorExpectingEnumForWarning(options.as)
|
||||||
|
) : console.error(
|
||||||
|
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
||||||
|
getValueDescriptorExpectingObjectForWarning(href)
|
||||||
|
);
|
||||||
|
if ("string" === typeof href && options && "string" === typeof options.as) {
|
||||||
|
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
||||||
|
"style" === as ? Internals.d.S(
|
||||||
|
href,
|
||||||
|
"string" === typeof options.precedence ? options.precedence : void 0,
|
||||||
|
{
|
||||||
|
crossOrigin,
|
||||||
|
integrity,
|
||||||
|
fetchPriority
|
||||||
|
}
|
||||||
|
) : "script" === as && Internals.d.X(href, {
|
||||||
|
crossOrigin,
|
||||||
|
integrity,
|
||||||
|
fetchPriority,
|
||||||
|
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.preinitModule = function(href, options) {
|
||||||
|
var encountered = "";
|
||||||
|
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
||||||
|
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".");
|
||||||
|
if (encountered)
|
||||||
|
console.error(
|
||||||
|
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
||||||
|
encountered
|
||||||
|
);
|
||||||
|
else
|
||||||
|
switch (encountered = options && "string" === typeof options.as ? options.as : "script", encountered) {
|
||||||
|
case "script":
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error(
|
||||||
|
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
||||||
|
encountered,
|
||||||
|
href
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if ("string" === typeof href)
|
||||||
|
if ("object" === typeof options && null !== options) {
|
||||||
|
if (null == options.as || "script" === options.as)
|
||||||
|
encountered = getCrossOriginStringAs(
|
||||||
|
options.as,
|
||||||
|
options.crossOrigin
|
||||||
|
), Internals.d.M(href, {
|
||||||
|
crossOrigin: encountered,
|
||||||
|
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
||||||
|
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
||||||
|
});
|
||||||
|
} else null == options && Internals.d.M(href);
|
||||||
|
};
|
||||||
|
exports.preload = function(href, options) {
|
||||||
|
var encountered = "";
|
||||||
|
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
||||||
|
null == options || "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : "string" === typeof options.as && options.as || (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
||||||
|
encountered && console.error(
|
||||||
|
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
||||||
|
encountered
|
||||||
|
);
|
||||||
|
if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
|
||||||
|
encountered = options.as;
|
||||||
|
var crossOrigin = getCrossOriginStringAs(
|
||||||
|
encountered,
|
||||||
|
options.crossOrigin
|
||||||
|
);
|
||||||
|
Internals.d.L(href, encountered, {
|
||||||
|
crossOrigin,
|
||||||
|
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
||||||
|
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
||||||
|
type: "string" === typeof options.type ? options.type : void 0,
|
||||||
|
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
||||||
|
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
||||||
|
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
||||||
|
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
||||||
|
media: "string" === typeof options.media ? options.media : void 0
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.preloadModule = function(href, options) {
|
||||||
|
var encountered = "";
|
||||||
|
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
||||||
|
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "string" !== typeof options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
||||||
|
encountered && console.error(
|
||||||
|
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
||||||
|
encountered
|
||||||
|
);
|
||||||
|
"string" === typeof href && (options ? (encountered = getCrossOriginStringAs(
|
||||||
|
options.as,
|
||||||
|
options.crossOrigin
|
||||||
|
), Internals.d.m(href, {
|
||||||
|
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
||||||
|
crossOrigin: encountered,
|
||||||
|
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
||||||
|
})) : Internals.d.m(href));
|
||||||
|
};
|
||||||
|
exports.requestFormReset = function(form) {
|
||||||
|
Internals.d.r(form);
|
||||||
|
};
|
||||||
|
exports.unstable_batchedUpdates = function(fn, a) {
|
||||||
|
return fn(a);
|
||||||
|
};
|
||||||
|
exports.useFormState = function(action, initialState, permalink) {
|
||||||
|
return resolveDispatcher().useFormState(action, initialState, permalink);
|
||||||
|
};
|
||||||
|
exports.useFormStatus = function() {
|
||||||
|
return resolveDispatcher().useHostTransitionStatus();
|
||||||
|
};
|
||||||
|
exports.version = "19.1.1";
|
||||||
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-dom@19.1.1_react@19.1.1/node_modules/react-dom/index.js
|
||||||
|
var require_react_dom = __commonJS({
|
||||||
|
"node_modules/.pnpm/react-dom@19.1.1_react@19.1.1/node_modules/react-dom/index.js"(exports, module) {
|
||||||
|
if (false) {
|
||||||
|
checkDCE();
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_dom_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_react_dom
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react-dom/cjs/react-dom.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* react-dom.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=chunk-65SL2JMO.js.map
|
||||||
7
.vite/deps/chunk-65SL2JMO.js.map
Normal file
7
.vite/deps/chunk-65SL2JMO.js.map
Normal file
File diff suppressed because one or more lines are too long
21
.vite/deps/chunk-6SD27EE3.js
Normal file
21
.vite/deps/chunk-6SD27EE3.js
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
// node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
||||||
|
function r(e) {
|
||||||
|
var t, f, n = "";
|
||||||
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
||||||
|
else if ("object" == typeof e) if (Array.isArray(e)) {
|
||||||
|
var o = e.length;
|
||||||
|
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
||||||
|
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
||||||
|
return n;
|
||||||
|
}
|
||||||
|
function clsx() {
|
||||||
|
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
||||||
|
return n;
|
||||||
|
}
|
||||||
|
var clsx_default = clsx;
|
||||||
|
|
||||||
|
export {
|
||||||
|
clsx,
|
||||||
|
clsx_default
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-6SD27EE3.js.map
|
||||||
7
.vite/deps/chunk-6SD27EE3.js.map
Normal file
7
.vite/deps/chunk-6SD27EE3.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs"],
|
||||||
|
"sourcesContent": ["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],
|
||||||
|
"mappings": ";AAAA,SAAS,EAAE,GAAE;AAAC,MAAI,GAAE,GAAE,IAAE;AAAG,MAAG,YAAU,OAAO,KAAG,YAAU,OAAO,EAAE,MAAG;AAAA,WAAU,YAAU,OAAO,EAAE,KAAG,MAAM,QAAQ,CAAC,GAAE;AAAC,QAAI,IAAE,EAAE;AAAO,SAAI,IAAE,GAAE,IAAE,GAAE,IAAI,GAAE,CAAC,MAAI,IAAE,EAAE,EAAE,CAAC,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAA,EAAE,MAAM,MAAI,KAAK,EAAE,GAAE,CAAC,MAAI,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;AAAQ,SAAS,OAAM;AAAC,WAAQ,GAAE,GAAE,IAAE,GAAE,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,IAAI,EAAC,IAAE,UAAU,CAAC,OAAK,IAAE,EAAE,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;AAAC,IAAO,eAAQ;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
13157
.vite/deps/chunk-7EPPR7CJ.js
Normal file
13157
.vite/deps/chunk-7EPPR7CJ.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/chunk-7EPPR7CJ.js.map
Normal file
7
.vite/deps/chunk-7EPPR7CJ.js.map
Normal file
File diff suppressed because one or more lines are too long
284
.vite/deps/chunk-B4R7W4KZ.js
Normal file
284
.vite/deps/chunk-B4R7W4KZ.js
Normal file
@@ -0,0 +1,284 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-dev-runtime.development.js
|
||||||
|
var require_react_jsx_dev_runtime_development = __commonJS({
|
||||||
|
"node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-dev-runtime.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
(function() {
|
||||||
|
function getComponentNameFromType(type) {
|
||||||
|
if (null == type) return null;
|
||||||
|
if ("function" === typeof type)
|
||||||
|
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
||||||
|
if ("string" === typeof type) return type;
|
||||||
|
switch (type) {
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
return "Fragment";
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
return "Profiler";
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
return "StrictMode";
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return "Suspense";
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return "SuspenseList";
|
||||||
|
case REACT_ACTIVITY_TYPE:
|
||||||
|
return "Activity";
|
||||||
|
}
|
||||||
|
if ("object" === typeof type)
|
||||||
|
switch ("number" === typeof type.tag && console.error(
|
||||||
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
||||||
|
), type.$$typeof) {
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return "Portal";
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
return (type.displayName || "Context") + ".Provider";
|
||||||
|
case REACT_CONSUMER_TYPE:
|
||||||
|
return (type._context.displayName || "Context") + ".Consumer";
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
var innerType = type.render;
|
||||||
|
type = type.displayName;
|
||||||
|
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
||||||
|
return type;
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
||||||
|
case REACT_LAZY_TYPE:
|
||||||
|
innerType = type._payload;
|
||||||
|
type = type._init;
|
||||||
|
try {
|
||||||
|
return getComponentNameFromType(type(innerType));
|
||||||
|
} catch (x) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
function testStringCoercion(value) {
|
||||||
|
return "" + value;
|
||||||
|
}
|
||||||
|
function checkKeyStringCoercion(value) {
|
||||||
|
try {
|
||||||
|
testStringCoercion(value);
|
||||||
|
var JSCompiler_inline_result = false;
|
||||||
|
} catch (e) {
|
||||||
|
JSCompiler_inline_result = true;
|
||||||
|
}
|
||||||
|
if (JSCompiler_inline_result) {
|
||||||
|
JSCompiler_inline_result = console;
|
||||||
|
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
||||||
|
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||||
|
JSCompiler_temp_const.call(
|
||||||
|
JSCompiler_inline_result,
|
||||||
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||||
|
JSCompiler_inline_result$jscomp$0
|
||||||
|
);
|
||||||
|
return testStringCoercion(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getTaskName(type) {
|
||||||
|
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||||
|
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
||||||
|
return "<...>";
|
||||||
|
try {
|
||||||
|
var name = getComponentNameFromType(type);
|
||||||
|
return name ? "<" + name + ">" : "<...>";
|
||||||
|
} catch (x) {
|
||||||
|
return "<...>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getOwner() {
|
||||||
|
var dispatcher = ReactSharedInternals.A;
|
||||||
|
return null === dispatcher ? null : dispatcher.getOwner();
|
||||||
|
}
|
||||||
|
function UnknownOwner() {
|
||||||
|
return Error("react-stack-top-frame");
|
||||||
|
}
|
||||||
|
function hasValidKey(config) {
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||||
|
if (getter && getter.isReactWarning) return false;
|
||||||
|
}
|
||||||
|
return void 0 !== config.key;
|
||||||
|
}
|
||||||
|
function defineKeyPropWarningGetter(props, displayName) {
|
||||||
|
function warnAboutAccessingKey() {
|
||||||
|
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
||||||
|
"%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)",
|
||||||
|
displayName
|
||||||
|
));
|
||||||
|
}
|
||||||
|
warnAboutAccessingKey.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "key", {
|
||||||
|
get: warnAboutAccessingKey,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function elementRefGetterWithDeprecationWarning() {
|
||||||
|
var componentName = getComponentNameFromType(this.type);
|
||||||
|
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
||||||
|
"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."
|
||||||
|
));
|
||||||
|
componentName = this.props.ref;
|
||||||
|
return void 0 !== componentName ? componentName : null;
|
||||||
|
}
|
||||||
|
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
||||||
|
self = props.ref;
|
||||||
|
type = {
|
||||||
|
$$typeof: REACT_ELEMENT_TYPE,
|
||||||
|
type,
|
||||||
|
key,
|
||||||
|
props,
|
||||||
|
_owner: owner
|
||||||
|
};
|
||||||
|
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
||||||
|
enumerable: false,
|
||||||
|
get: elementRefGetterWithDeprecationWarning
|
||||||
|
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
||||||
|
type._store = {};
|
||||||
|
Object.defineProperty(type._store, "validated", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: 0
|
||||||
|
});
|
||||||
|
Object.defineProperty(type, "_debugInfo", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: null
|
||||||
|
});
|
||||||
|
Object.defineProperty(type, "_debugStack", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: debugStack
|
||||||
|
});
|
||||||
|
Object.defineProperty(type, "_debugTask", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: debugTask
|
||||||
|
});
|
||||||
|
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
|
||||||
|
var children = config.children;
|
||||||
|
if (void 0 !== children)
|
||||||
|
if (isStaticChildren)
|
||||||
|
if (isArrayImpl(children)) {
|
||||||
|
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
||||||
|
validateChildKeys(children[isStaticChildren]);
|
||||||
|
Object.freeze && Object.freeze(children);
|
||||||
|
} else
|
||||||
|
console.error(
|
||||||
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
||||||
|
);
|
||||||
|
else validateChildKeys(children);
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
children = getComponentNameFromType(type);
|
||||||
|
var keys = Object.keys(config).filter(function(k) {
|
||||||
|
return "key" !== k;
|
||||||
|
});
|
||||||
|
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
||||||
|
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
||||||
|
'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} />',
|
||||||
|
isStaticChildren,
|
||||||
|
children,
|
||||||
|
keys,
|
||||||
|
children
|
||||||
|
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
||||||
|
}
|
||||||
|
children = null;
|
||||||
|
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
||||||
|
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
||||||
|
if ("key" in config) {
|
||||||
|
maybeKey = {};
|
||||||
|
for (var propName in config)
|
||||||
|
"key" !== propName && (maybeKey[propName] = config[propName]);
|
||||||
|
} else maybeKey = config;
|
||||||
|
children && defineKeyPropWarningGetter(
|
||||||
|
maybeKey,
|
||||||
|
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
||||||
|
);
|
||||||
|
return ReactElement(
|
||||||
|
type,
|
||||||
|
children,
|
||||||
|
self,
|
||||||
|
source,
|
||||||
|
getOwner(),
|
||||||
|
maybeKey,
|
||||||
|
debugStack,
|
||||||
|
debugTask
|
||||||
|
);
|
||||||
|
}
|
||||||
|
function validateChildKeys(node) {
|
||||||
|
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
||||||
|
}
|
||||||
|
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");
|
||||||
|
Symbol.for("react.provider");
|
||||||
|
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, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
React = {
|
||||||
|
react_stack_bottom_frame: function(callStackForError) {
|
||||||
|
return callStackForError();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var specialPropKeyWarningShown;
|
||||||
|
var didWarnAboutElementRef = {};
|
||||||
|
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
|
||||||
|
React,
|
||||||
|
UnknownOwner
|
||||||
|
)();
|
||||||
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
||||||
|
var didWarnAboutKeySpread = {};
|
||||||
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
exports.jsxDEV = function(type, config, maybeKey, isStaticChildren, source, self) {
|
||||||
|
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
||||||
|
return jsxDEVImpl(
|
||||||
|
type,
|
||||||
|
config,
|
||||||
|
maybeKey,
|
||||||
|
isStaticChildren,
|
||||||
|
source,
|
||||||
|
self,
|
||||||
|
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
||||||
|
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||||
|
);
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-dev-runtime.js
|
||||||
|
var require_jsx_dev_runtime = __commonJS({
|
||||||
|
"node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-dev-runtime.js"(exports, module) {
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_jsx_dev_runtime_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_jsx_dev_runtime
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react/cjs/react-jsx-dev-runtime.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* react-jsx-dev-runtime.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=chunk-B4R7W4KZ.js.map
|
||||||
7
.vite/deps/chunk-B4R7W4KZ.js.map
Normal file
7
.vite/deps/chunk-B4R7W4KZ.js.map
Normal file
File diff suppressed because one or more lines are too long
275
.vite/deps/chunk-B6YZCPZH.js
Normal file
275
.vite/deps/chunk-B6YZCPZH.js
Normal file
@@ -0,0 +1,275 @@
|
|||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
|
||||||
|
var require_react_is_development = __commonJS({
|
||||||
|
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
if (true) {
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
||||||
|
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
||||||
|
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
||||||
|
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
||||||
|
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
||||||
|
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
||||||
|
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
||||||
|
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
||||||
|
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
||||||
|
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
||||||
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
||||||
|
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
||||||
|
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
||||||
|
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
||||||
|
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
||||||
|
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
||||||
|
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
||||||
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
||||||
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
||||||
|
function isValidElementType(type) {
|
||||||
|
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
||||||
|
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
||||||
|
}
|
||||||
|
function typeOf(object) {
|
||||||
|
if (typeof object === "object" && object !== null) {
|
||||||
|
var $$typeof = object.$$typeof;
|
||||||
|
switch ($$typeof) {
|
||||||
|
case REACT_ELEMENT_TYPE:
|
||||||
|
var type = object.type;
|
||||||
|
switch (type) {
|
||||||
|
case REACT_ASYNC_MODE_TYPE:
|
||||||
|
case REACT_CONCURRENT_MODE_TYPE:
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return type;
|
||||||
|
default:
|
||||||
|
var $$typeofType = type && type.$$typeof;
|
||||||
|
switch ($$typeofType) {
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
case REACT_LAZY_TYPE:
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
case REACT_PROVIDER_TYPE:
|
||||||
|
return $$typeofType;
|
||||||
|
default:
|
||||||
|
return $$typeof;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return $$typeof;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
|
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
||||||
|
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
||||||
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
||||||
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
||||||
|
var Element = REACT_ELEMENT_TYPE;
|
||||||
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
||||||
|
var Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
var Lazy = REACT_LAZY_TYPE;
|
||||||
|
var Memo = REACT_MEMO_TYPE;
|
||||||
|
var Portal = REACT_PORTAL_TYPE;
|
||||||
|
var Profiler = REACT_PROFILER_TYPE;
|
||||||
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
||||||
|
var Suspense = REACT_SUSPENSE_TYPE;
|
||||||
|
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
||||||
|
function isAsyncMode(object) {
|
||||||
|
{
|
||||||
|
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
||||||
|
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
||||||
|
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isConcurrentMode(object) {
|
||||||
|
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isContextConsumer(object) {
|
||||||
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
||||||
|
}
|
||||||
|
function isContextProvider(object) {
|
||||||
|
return typeOf(object) === REACT_PROVIDER_TYPE;
|
||||||
|
}
|
||||||
|
function isElement(object) {
|
||||||
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
function isForwardRef(object) {
|
||||||
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
||||||
|
}
|
||||||
|
function isFragment(object) {
|
||||||
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
||||||
|
}
|
||||||
|
function isLazy(object) {
|
||||||
|
return typeOf(object) === REACT_LAZY_TYPE;
|
||||||
|
}
|
||||||
|
function isMemo(object) {
|
||||||
|
return typeOf(object) === REACT_MEMO_TYPE;
|
||||||
|
}
|
||||||
|
function isPortal(object) {
|
||||||
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
||||||
|
}
|
||||||
|
function isProfiler(object) {
|
||||||
|
return typeOf(object) === REACT_PROFILER_TYPE;
|
||||||
|
}
|
||||||
|
function isStrictMode(object) {
|
||||||
|
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isSuspense(object) {
|
||||||
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
||||||
|
}
|
||||||
|
exports.AsyncMode = AsyncMode;
|
||||||
|
exports.ConcurrentMode = ConcurrentMode;
|
||||||
|
exports.ContextConsumer = ContextConsumer;
|
||||||
|
exports.ContextProvider = ContextProvider;
|
||||||
|
exports.Element = Element;
|
||||||
|
exports.ForwardRef = ForwardRef;
|
||||||
|
exports.Fragment = Fragment;
|
||||||
|
exports.Lazy = Lazy;
|
||||||
|
exports.Memo = Memo;
|
||||||
|
exports.Portal = Portal;
|
||||||
|
exports.Profiler = Profiler;
|
||||||
|
exports.StrictMode = StrictMode;
|
||||||
|
exports.Suspense = Suspense;
|
||||||
|
exports.isAsyncMode = isAsyncMode;
|
||||||
|
exports.isConcurrentMode = isConcurrentMode;
|
||||||
|
exports.isContextConsumer = isContextConsumer;
|
||||||
|
exports.isContextProvider = isContextProvider;
|
||||||
|
exports.isElement = isElement;
|
||||||
|
exports.isForwardRef = isForwardRef;
|
||||||
|
exports.isFragment = isFragment;
|
||||||
|
exports.isLazy = isLazy;
|
||||||
|
exports.isMemo = isMemo;
|
||||||
|
exports.isPortal = isPortal;
|
||||||
|
exports.isProfiler = isProfiler;
|
||||||
|
exports.isStrictMode = isStrictMode;
|
||||||
|
exports.isSuspense = isSuspense;
|
||||||
|
exports.isValidElementType = isValidElementType;
|
||||||
|
exports.typeOf = typeOf;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js
|
||||||
|
var require_react_is = __commonJS({
|
||||||
|
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js"(exports, module) {
|
||||||
|
"use strict";
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_is_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
||||||
|
var require_hoist_non_react_statics_cjs = __commonJS({
|
||||||
|
"node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
||||||
|
"use strict";
|
||||||
|
var reactIs = require_react_is();
|
||||||
|
var REACT_STATICS = {
|
||||||
|
childContextTypes: true,
|
||||||
|
contextType: true,
|
||||||
|
contextTypes: true,
|
||||||
|
defaultProps: true,
|
||||||
|
displayName: true,
|
||||||
|
getDefaultProps: true,
|
||||||
|
getDerivedStateFromError: true,
|
||||||
|
getDerivedStateFromProps: true,
|
||||||
|
mixins: true,
|
||||||
|
propTypes: true,
|
||||||
|
type: true
|
||||||
|
};
|
||||||
|
var KNOWN_STATICS = {
|
||||||
|
name: true,
|
||||||
|
length: true,
|
||||||
|
prototype: true,
|
||||||
|
caller: true,
|
||||||
|
callee: true,
|
||||||
|
arguments: true,
|
||||||
|
arity: true
|
||||||
|
};
|
||||||
|
var FORWARD_REF_STATICS = {
|
||||||
|
"$$typeof": true,
|
||||||
|
render: true,
|
||||||
|
defaultProps: true,
|
||||||
|
displayName: true,
|
||||||
|
propTypes: true
|
||||||
|
};
|
||||||
|
var MEMO_STATICS = {
|
||||||
|
"$$typeof": true,
|
||||||
|
compare: true,
|
||||||
|
defaultProps: true,
|
||||||
|
displayName: true,
|
||||||
|
propTypes: true,
|
||||||
|
type: true
|
||||||
|
};
|
||||||
|
var TYPE_STATICS = {};
|
||||||
|
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
||||||
|
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
||||||
|
function getStatics(component) {
|
||||||
|
if (reactIs.isMemo(component)) {
|
||||||
|
return MEMO_STATICS;
|
||||||
|
}
|
||||||
|
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
||||||
|
}
|
||||||
|
var defineProperty = Object.defineProperty;
|
||||||
|
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
||||||
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
||||||
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||||||
|
var getPrototypeOf = Object.getPrototypeOf;
|
||||||
|
var objectPrototype = Object.prototype;
|
||||||
|
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
||||||
|
if (typeof sourceComponent !== "string") {
|
||||||
|
if (objectPrototype) {
|
||||||
|
var inheritedComponent = getPrototypeOf(sourceComponent);
|
||||||
|
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
||||||
|
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var keys = getOwnPropertyNames(sourceComponent);
|
||||||
|
if (getOwnPropertySymbols) {
|
||||||
|
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
||||||
|
}
|
||||||
|
var targetStatics = getStatics(targetComponent);
|
||||||
|
var sourceStatics = getStatics(sourceComponent);
|
||||||
|
for (var i = 0; i < keys.length; ++i) {
|
||||||
|
var key = keys[i];
|
||||||
|
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
||||||
|
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
||||||
|
try {
|
||||||
|
defineProperty(targetComponent, key, descriptor);
|
||||||
|
} catch (e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return targetComponent;
|
||||||
|
}
|
||||||
|
module.exports = hoistNonReactStatics;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_hoist_non_react_statics_cjs
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react-is/cjs/react-is.development.js:
|
||||||
|
(** @license React v16.13.1
|
||||||
|
* react-is.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=chunk-B6YZCPZH.js.map
|
||||||
7
.vite/deps/chunk-B6YZCPZH.js.map
Normal file
7
.vite/deps/chunk-B6YZCPZH.js.map
Normal file
File diff suppressed because one or more lines are too long
297
.vite/deps/chunk-CQKXKKJC.js
Normal file
297
.vite/deps/chunk-CQKXKKJC.js
Normal file
@@ -0,0 +1,297 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-runtime.development.js
|
||||||
|
var require_react_jsx_runtime_development = __commonJS({
|
||||||
|
"node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
(function() {
|
||||||
|
function getComponentNameFromType(type) {
|
||||||
|
if (null == type) return null;
|
||||||
|
if ("function" === typeof type)
|
||||||
|
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
||||||
|
if ("string" === typeof type) return type;
|
||||||
|
switch (type) {
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
return "Fragment";
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
return "Profiler";
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
return "StrictMode";
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return "Suspense";
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return "SuspenseList";
|
||||||
|
case REACT_ACTIVITY_TYPE:
|
||||||
|
return "Activity";
|
||||||
|
}
|
||||||
|
if ("object" === typeof type)
|
||||||
|
switch ("number" === typeof type.tag && console.error(
|
||||||
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
||||||
|
), type.$$typeof) {
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return "Portal";
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
return (type.displayName || "Context") + ".Provider";
|
||||||
|
case REACT_CONSUMER_TYPE:
|
||||||
|
return (type._context.displayName || "Context") + ".Consumer";
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
var innerType = type.render;
|
||||||
|
type = type.displayName;
|
||||||
|
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
||||||
|
return type;
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
||||||
|
case REACT_LAZY_TYPE:
|
||||||
|
innerType = type._payload;
|
||||||
|
type = type._init;
|
||||||
|
try {
|
||||||
|
return getComponentNameFromType(type(innerType));
|
||||||
|
} catch (x) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
function testStringCoercion(value) {
|
||||||
|
return "" + value;
|
||||||
|
}
|
||||||
|
function checkKeyStringCoercion(value) {
|
||||||
|
try {
|
||||||
|
testStringCoercion(value);
|
||||||
|
var JSCompiler_inline_result = false;
|
||||||
|
} catch (e) {
|
||||||
|
JSCompiler_inline_result = true;
|
||||||
|
}
|
||||||
|
if (JSCompiler_inline_result) {
|
||||||
|
JSCompiler_inline_result = console;
|
||||||
|
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
||||||
|
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||||
|
JSCompiler_temp_const.call(
|
||||||
|
JSCompiler_inline_result,
|
||||||
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||||
|
JSCompiler_inline_result$jscomp$0
|
||||||
|
);
|
||||||
|
return testStringCoercion(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getTaskName(type) {
|
||||||
|
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||||
|
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
||||||
|
return "<...>";
|
||||||
|
try {
|
||||||
|
var name = getComponentNameFromType(type);
|
||||||
|
return name ? "<" + name + ">" : "<...>";
|
||||||
|
} catch (x) {
|
||||||
|
return "<...>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getOwner() {
|
||||||
|
var dispatcher = ReactSharedInternals.A;
|
||||||
|
return null === dispatcher ? null : dispatcher.getOwner();
|
||||||
|
}
|
||||||
|
function UnknownOwner() {
|
||||||
|
return Error("react-stack-top-frame");
|
||||||
|
}
|
||||||
|
function hasValidKey(config) {
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||||
|
if (getter && getter.isReactWarning) return false;
|
||||||
|
}
|
||||||
|
return void 0 !== config.key;
|
||||||
|
}
|
||||||
|
function defineKeyPropWarningGetter(props, displayName) {
|
||||||
|
function warnAboutAccessingKey() {
|
||||||
|
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
||||||
|
"%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)",
|
||||||
|
displayName
|
||||||
|
));
|
||||||
|
}
|
||||||
|
warnAboutAccessingKey.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "key", {
|
||||||
|
get: warnAboutAccessingKey,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function elementRefGetterWithDeprecationWarning() {
|
||||||
|
var componentName = getComponentNameFromType(this.type);
|
||||||
|
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
||||||
|
"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."
|
||||||
|
));
|
||||||
|
componentName = this.props.ref;
|
||||||
|
return void 0 !== componentName ? componentName : null;
|
||||||
|
}
|
||||||
|
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
||||||
|
self = props.ref;
|
||||||
|
type = {
|
||||||
|
$$typeof: REACT_ELEMENT_TYPE,
|
||||||
|
type,
|
||||||
|
key,
|
||||||
|
props,
|
||||||
|
_owner: owner
|
||||||
|
};
|
||||||
|
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
||||||
|
enumerable: false,
|
||||||
|
get: elementRefGetterWithDeprecationWarning
|
||||||
|
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
||||||
|
type._store = {};
|
||||||
|
Object.defineProperty(type._store, "validated", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: 0
|
||||||
|
});
|
||||||
|
Object.defineProperty(type, "_debugInfo", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: null
|
||||||
|
});
|
||||||
|
Object.defineProperty(type, "_debugStack", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: debugStack
|
||||||
|
});
|
||||||
|
Object.defineProperty(type, "_debugTask", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: debugTask
|
||||||
|
});
|
||||||
|
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
|
||||||
|
var children = config.children;
|
||||||
|
if (void 0 !== children)
|
||||||
|
if (isStaticChildren)
|
||||||
|
if (isArrayImpl(children)) {
|
||||||
|
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
||||||
|
validateChildKeys(children[isStaticChildren]);
|
||||||
|
Object.freeze && Object.freeze(children);
|
||||||
|
} else
|
||||||
|
console.error(
|
||||||
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
||||||
|
);
|
||||||
|
else validateChildKeys(children);
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
children = getComponentNameFromType(type);
|
||||||
|
var keys = Object.keys(config).filter(function(k) {
|
||||||
|
return "key" !== k;
|
||||||
|
});
|
||||||
|
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
||||||
|
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
||||||
|
'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} />',
|
||||||
|
isStaticChildren,
|
||||||
|
children,
|
||||||
|
keys,
|
||||||
|
children
|
||||||
|
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
||||||
|
}
|
||||||
|
children = null;
|
||||||
|
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
||||||
|
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
||||||
|
if ("key" in config) {
|
||||||
|
maybeKey = {};
|
||||||
|
for (var propName in config)
|
||||||
|
"key" !== propName && (maybeKey[propName] = config[propName]);
|
||||||
|
} else maybeKey = config;
|
||||||
|
children && defineKeyPropWarningGetter(
|
||||||
|
maybeKey,
|
||||||
|
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
||||||
|
);
|
||||||
|
return ReactElement(
|
||||||
|
type,
|
||||||
|
children,
|
||||||
|
self,
|
||||||
|
source,
|
||||||
|
getOwner(),
|
||||||
|
maybeKey,
|
||||||
|
debugStack,
|
||||||
|
debugTask
|
||||||
|
);
|
||||||
|
}
|
||||||
|
function validateChildKeys(node) {
|
||||||
|
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
||||||
|
}
|
||||||
|
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");
|
||||||
|
Symbol.for("react.provider");
|
||||||
|
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, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
React = {
|
||||||
|
react_stack_bottom_frame: function(callStackForError) {
|
||||||
|
return callStackForError();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var specialPropKeyWarningShown;
|
||||||
|
var didWarnAboutElementRef = {};
|
||||||
|
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
|
||||||
|
React,
|
||||||
|
UnknownOwner
|
||||||
|
)();
|
||||||
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
||||||
|
var didWarnAboutKeySpread = {};
|
||||||
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
exports.jsx = function(type, config, maybeKey, source, self) {
|
||||||
|
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
||||||
|
return jsxDEVImpl(
|
||||||
|
type,
|
||||||
|
config,
|
||||||
|
maybeKey,
|
||||||
|
false,
|
||||||
|
source,
|
||||||
|
self,
|
||||||
|
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
||||||
|
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||||
|
);
|
||||||
|
};
|
||||||
|
exports.jsxs = function(type, config, maybeKey, source, self) {
|
||||||
|
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
||||||
|
return jsxDEVImpl(
|
||||||
|
type,
|
||||||
|
config,
|
||||||
|
maybeKey,
|
||||||
|
true,
|
||||||
|
source,
|
||||||
|
self,
|
||||||
|
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
||||||
|
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||||
|
);
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-runtime.js
|
||||||
|
var require_jsx_runtime = __commonJS({
|
||||||
|
"node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-runtime.js"(exports, module) {
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_jsx_runtime_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_jsx_runtime
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react/cjs/react-jsx-runtime.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* react-jsx-runtime.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=chunk-CQKXKKJC.js.map
|
||||||
7
.vite/deps/chunk-CQKXKKJC.js.map
Normal file
7
.vite/deps/chunk-CQKXKKJC.js.map
Normal file
File diff suppressed because one or more lines are too long
48
.vite/deps/chunk-PLDDJCW6.js
Normal file
48
.vite/deps/chunk-PLDDJCW6.js
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||||
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||||
|
}) : x)(function(x) {
|
||||||
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
||||||
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
||||||
|
});
|
||||||
|
var __esm = (fn, res) => function __init() {
|
||||||
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
||||||
|
};
|
||||||
|
var __commonJS = (cb, mod) => function __require2() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||||
|
// If the importer is in node compatibility mode or this is not an ESM
|
||||||
|
// file that has been converted to a CommonJS file using a Babel-
|
||||||
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||||
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||||
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||||
|
mod
|
||||||
|
));
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
export {
|
||||||
|
__require,
|
||||||
|
__esm,
|
||||||
|
__commonJS,
|
||||||
|
__export,
|
||||||
|
__toESM,
|
||||||
|
__toCommonJS
|
||||||
|
};
|
||||||
7
.vite/deps/chunk-PLDDJCW6.js.map
Normal file
7
.vite/deps/chunk-PLDDJCW6.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
975
.vite/deps/chunk-R7JHQV4C.js
Normal file
975
.vite/deps/chunk-R7JHQV4C.js
Normal file
@@ -0,0 +1,975 @@
|
|||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react.development.js
|
||||||
|
var require_react_development = __commonJS({
|
||||||
|
"node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react.development.js"(exports, module) {
|
||||||
|
"use strict";
|
||||||
|
(function() {
|
||||||
|
function defineDeprecationWarning(methodName, info) {
|
||||||
|
Object.defineProperty(Component.prototype, methodName, {
|
||||||
|
get: function() {
|
||||||
|
console.warn(
|
||||||
|
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
||||||
|
info[0],
|
||||||
|
info[1]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function getIteratorFn(maybeIterable) {
|
||||||
|
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
||||||
|
return null;
|
||||||
|
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
||||||
|
return "function" === typeof maybeIterable ? maybeIterable : null;
|
||||||
|
}
|
||||||
|
function warnNoop(publicInstance, callerName) {
|
||||||
|
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
||||||
|
var warningKey = publicInstance + "." + callerName;
|
||||||
|
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
||||||
|
"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.",
|
||||||
|
callerName,
|
||||||
|
publicInstance
|
||||||
|
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
||||||
|
}
|
||||||
|
function Component(props, context, updater) {
|
||||||
|
this.props = props;
|
||||||
|
this.context = context;
|
||||||
|
this.refs = emptyObject;
|
||||||
|
this.updater = updater || ReactNoopUpdateQueue;
|
||||||
|
}
|
||||||
|
function ComponentDummy() {
|
||||||
|
}
|
||||||
|
function PureComponent(props, context, updater) {
|
||||||
|
this.props = props;
|
||||||
|
this.context = context;
|
||||||
|
this.refs = emptyObject;
|
||||||
|
this.updater = updater || ReactNoopUpdateQueue;
|
||||||
|
}
|
||||||
|
function testStringCoercion(value) {
|
||||||
|
return "" + value;
|
||||||
|
}
|
||||||
|
function checkKeyStringCoercion(value) {
|
||||||
|
try {
|
||||||
|
testStringCoercion(value);
|
||||||
|
var JSCompiler_inline_result = false;
|
||||||
|
} catch (e) {
|
||||||
|
JSCompiler_inline_result = true;
|
||||||
|
}
|
||||||
|
if (JSCompiler_inline_result) {
|
||||||
|
JSCompiler_inline_result = console;
|
||||||
|
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
||||||
|
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||||
|
JSCompiler_temp_const.call(
|
||||||
|
JSCompiler_inline_result,
|
||||||
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||||
|
JSCompiler_inline_result$jscomp$0
|
||||||
|
);
|
||||||
|
return testStringCoercion(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getComponentNameFromType(type) {
|
||||||
|
if (null == type) return null;
|
||||||
|
if ("function" === typeof type)
|
||||||
|
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
||||||
|
if ("string" === typeof type) return type;
|
||||||
|
switch (type) {
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
return "Fragment";
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
return "Profiler";
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
return "StrictMode";
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return "Suspense";
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return "SuspenseList";
|
||||||
|
case REACT_ACTIVITY_TYPE:
|
||||||
|
return "Activity";
|
||||||
|
}
|
||||||
|
if ("object" === typeof type)
|
||||||
|
switch ("number" === typeof type.tag && console.error(
|
||||||
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
||||||
|
), type.$$typeof) {
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return "Portal";
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
return (type.displayName || "Context") + ".Provider";
|
||||||
|
case REACT_CONSUMER_TYPE:
|
||||||
|
return (type._context.displayName || "Context") + ".Consumer";
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
var innerType = type.render;
|
||||||
|
type = type.displayName;
|
||||||
|
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
||||||
|
return type;
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
||||||
|
case REACT_LAZY_TYPE:
|
||||||
|
innerType = type._payload;
|
||||||
|
type = type._init;
|
||||||
|
try {
|
||||||
|
return getComponentNameFromType(type(innerType));
|
||||||
|
} catch (x) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
function getTaskName(type) {
|
||||||
|
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||||
|
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
||||||
|
return "<...>";
|
||||||
|
try {
|
||||||
|
var name = getComponentNameFromType(type);
|
||||||
|
return name ? "<" + name + ">" : "<...>";
|
||||||
|
} catch (x) {
|
||||||
|
return "<...>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getOwner() {
|
||||||
|
var dispatcher = ReactSharedInternals.A;
|
||||||
|
return null === dispatcher ? null : dispatcher.getOwner();
|
||||||
|
}
|
||||||
|
function UnknownOwner() {
|
||||||
|
return Error("react-stack-top-frame");
|
||||||
|
}
|
||||||
|
function hasValidKey(config) {
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||||
|
if (getter && getter.isReactWarning) return false;
|
||||||
|
}
|
||||||
|
return void 0 !== config.key;
|
||||||
|
}
|
||||||
|
function defineKeyPropWarningGetter(props, displayName) {
|
||||||
|
function warnAboutAccessingKey() {
|
||||||
|
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
||||||
|
"%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)",
|
||||||
|
displayName
|
||||||
|
));
|
||||||
|
}
|
||||||
|
warnAboutAccessingKey.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "key", {
|
||||||
|
get: warnAboutAccessingKey,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function elementRefGetterWithDeprecationWarning() {
|
||||||
|
var componentName = getComponentNameFromType(this.type);
|
||||||
|
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
||||||
|
"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."
|
||||||
|
));
|
||||||
|
componentName = this.props.ref;
|
||||||
|
return void 0 !== componentName ? componentName : null;
|
||||||
|
}
|
||||||
|
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
||||||
|
self = props.ref;
|
||||||
|
type = {
|
||||||
|
$$typeof: REACT_ELEMENT_TYPE,
|
||||||
|
type,
|
||||||
|
key,
|
||||||
|
props,
|
||||||
|
_owner: owner
|
||||||
|
};
|
||||||
|
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
||||||
|
enumerable: false,
|
||||||
|
get: elementRefGetterWithDeprecationWarning
|
||||||
|
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
||||||
|
type._store = {};
|
||||||
|
Object.defineProperty(type._store, "validated", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: 0
|
||||||
|
});
|
||||||
|
Object.defineProperty(type, "_debugInfo", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: null
|
||||||
|
});
|
||||||
|
Object.defineProperty(type, "_debugStack", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: debugStack
|
||||||
|
});
|
||||||
|
Object.defineProperty(type, "_debugTask", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: debugTask
|
||||||
|
});
|
||||||
|
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
function cloneAndReplaceKey(oldElement, newKey) {
|
||||||
|
newKey = ReactElement(
|
||||||
|
oldElement.type,
|
||||||
|
newKey,
|
||||||
|
void 0,
|
||||||
|
void 0,
|
||||||
|
oldElement._owner,
|
||||||
|
oldElement.props,
|
||||||
|
oldElement._debugStack,
|
||||||
|
oldElement._debugTask
|
||||||
|
);
|
||||||
|
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
||||||
|
return newKey;
|
||||||
|
}
|
||||||
|
function isValidElement(object) {
|
||||||
|
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
function escape(key) {
|
||||||
|
var escaperLookup = { "=": "=0", ":": "=2" };
|
||||||
|
return "$" + key.replace(/[=:]/g, function(match) {
|
||||||
|
return escaperLookup[match];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function getElementKey(element, index) {
|
||||||
|
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
||||||
|
}
|
||||||
|
function noop$1() {
|
||||||
|
}
|
||||||
|
function resolveThenable(thenable) {
|
||||||
|
switch (thenable.status) {
|
||||||
|
case "fulfilled":
|
||||||
|
return thenable.value;
|
||||||
|
case "rejected":
|
||||||
|
throw thenable.reason;
|
||||||
|
default:
|
||||||
|
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
||||||
|
function(fulfilledValue) {
|
||||||
|
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
||||||
|
},
|
||||||
|
function(error) {
|
||||||
|
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
||||||
|
}
|
||||||
|
)), thenable.status) {
|
||||||
|
case "fulfilled":
|
||||||
|
return thenable.value;
|
||||||
|
case "rejected":
|
||||||
|
throw thenable.reason;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw thenable;
|
||||||
|
}
|
||||||
|
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
||||||
|
var type = typeof children;
|
||||||
|
if ("undefined" === type || "boolean" === type) children = null;
|
||||||
|
var invokeCallback = false;
|
||||||
|
if (null === children) invokeCallback = true;
|
||||||
|
else
|
||||||
|
switch (type) {
|
||||||
|
case "bigint":
|
||||||
|
case "string":
|
||||||
|
case "number":
|
||||||
|
invokeCallback = true;
|
||||||
|
break;
|
||||||
|
case "object":
|
||||||
|
switch (children.$$typeof) {
|
||||||
|
case REACT_ELEMENT_TYPE:
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
invokeCallback = true;
|
||||||
|
break;
|
||||||
|
case REACT_LAZY_TYPE:
|
||||||
|
return invokeCallback = children._init, mapIntoArray(
|
||||||
|
invokeCallback(children._payload),
|
||||||
|
array,
|
||||||
|
escapedPrefix,
|
||||||
|
nameSoFar,
|
||||||
|
callback
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (invokeCallback) {
|
||||||
|
invokeCallback = children;
|
||||||
|
callback = callback(invokeCallback);
|
||||||
|
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
||||||
|
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
||||||
|
return c;
|
||||||
|
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
||||||
|
callback,
|
||||||
|
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
||||||
|
userProvidedKeyEscapeRegex,
|
||||||
|
"$&/"
|
||||||
|
) + "/") + childKey
|
||||||
|
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
invokeCallback = 0;
|
||||||
|
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
||||||
|
if (isArrayImpl(children))
|
||||||
|
for (var i = 0; i < children.length; i++)
|
||||||
|
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
||||||
|
nameSoFar,
|
||||||
|
array,
|
||||||
|
escapedPrefix,
|
||||||
|
type,
|
||||||
|
callback
|
||||||
|
);
|
||||||
|
else if (i = getIteratorFn(children), "function" === typeof i)
|
||||||
|
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
||||||
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
||||||
|
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
||||||
|
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
||||||
|
nameSoFar,
|
||||||
|
array,
|
||||||
|
escapedPrefix,
|
||||||
|
type,
|
||||||
|
callback
|
||||||
|
);
|
||||||
|
else if ("object" === type) {
|
||||||
|
if ("function" === typeof children.then)
|
||||||
|
return mapIntoArray(
|
||||||
|
resolveThenable(children),
|
||||||
|
array,
|
||||||
|
escapedPrefix,
|
||||||
|
nameSoFar,
|
||||||
|
callback
|
||||||
|
);
|
||||||
|
array = String(children);
|
||||||
|
throw Error(
|
||||||
|
"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."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return invokeCallback;
|
||||||
|
}
|
||||||
|
function mapChildren(children, func, context) {
|
||||||
|
if (null == children) return children;
|
||||||
|
var result = [], count = 0;
|
||||||
|
mapIntoArray(children, result, "", "", function(child) {
|
||||||
|
return func.call(context, child, count++);
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
function lazyInitializer(payload) {
|
||||||
|
if (-1 === payload._status) {
|
||||||
|
var ctor = payload._result;
|
||||||
|
ctor = ctor();
|
||||||
|
ctor.then(
|
||||||
|
function(moduleObject) {
|
||||||
|
if (0 === payload._status || -1 === payload._status)
|
||||||
|
payload._status = 1, payload._result = moduleObject;
|
||||||
|
},
|
||||||
|
function(error) {
|
||||||
|
if (0 === payload._status || -1 === payload._status)
|
||||||
|
payload._status = 2, payload._result = error;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
||||||
|
}
|
||||||
|
if (1 === payload._status)
|
||||||
|
return ctor = payload._result, void 0 === ctor && console.error(
|
||||||
|
"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?",
|
||||||
|
ctor
|
||||||
|
), "default" in ctor || console.error(
|
||||||
|
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
||||||
|
ctor
|
||||||
|
), ctor.default;
|
||||||
|
throw payload._result;
|
||||||
|
}
|
||||||
|
function resolveDispatcher() {
|
||||||
|
var dispatcher = ReactSharedInternals.H;
|
||||||
|
null === dispatcher && console.error(
|
||||||
|
"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."
|
||||||
|
);
|
||||||
|
return dispatcher;
|
||||||
|
}
|
||||||
|
function noop() {
|
||||||
|
}
|
||||||
|
function enqueueTask(task) {
|
||||||
|
if (null === enqueueTaskImpl)
|
||||||
|
try {
|
||||||
|
var requireString = ("require" + Math.random()).slice(0, 7);
|
||||||
|
enqueueTaskImpl = (module && module[requireString]).call(
|
||||||
|
module,
|
||||||
|
"timers"
|
||||||
|
).setImmediate;
|
||||||
|
} catch (_err) {
|
||||||
|
enqueueTaskImpl = function(callback) {
|
||||||
|
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
||||||
|
"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."
|
||||||
|
));
|
||||||
|
var channel = new MessageChannel();
|
||||||
|
channel.port1.onmessage = callback;
|
||||||
|
channel.port2.postMessage(void 0);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return enqueueTaskImpl(task);
|
||||||
|
}
|
||||||
|
function aggregateErrors(errors) {
|
||||||
|
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
||||||
|
}
|
||||||
|
function popActScope(prevActQueue, prevActScopeDepth) {
|
||||||
|
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
||||||
|
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
||||||
|
);
|
||||||
|
actScopeDepth = prevActScopeDepth;
|
||||||
|
}
|
||||||
|
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
||||||
|
var queue = ReactSharedInternals.actQueue;
|
||||||
|
if (null !== queue)
|
||||||
|
if (0 !== queue.length)
|
||||||
|
try {
|
||||||
|
flushActQueue(queue);
|
||||||
|
enqueueTask(function() {
|
||||||
|
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
} catch (error) {
|
||||||
|
ReactSharedInternals.thrownErrors.push(error);
|
||||||
|
}
|
||||||
|
else ReactSharedInternals.actQueue = null;
|
||||||
|
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
||||||
|
}
|
||||||
|
function flushActQueue(queue) {
|
||||||
|
if (!isFlushing) {
|
||||||
|
isFlushing = true;
|
||||||
|
var i = 0;
|
||||||
|
try {
|
||||||
|
for (; i < queue.length; i++) {
|
||||||
|
var callback = queue[i];
|
||||||
|
do {
|
||||||
|
ReactSharedInternals.didUsePromise = false;
|
||||||
|
var continuation = callback(false);
|
||||||
|
if (null !== continuation) {
|
||||||
|
if (ReactSharedInternals.didUsePromise) {
|
||||||
|
queue[i] = callback;
|
||||||
|
queue.splice(0, i);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
callback = continuation;
|
||||||
|
} else break;
|
||||||
|
} while (1);
|
||||||
|
}
|
||||||
|
queue.length = 0;
|
||||||
|
} catch (error) {
|
||||||
|
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
||||||
|
} finally {
|
||||||
|
isFlushing = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
||||||
|
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");
|
||||||
|
Symbol.for("react.provider");
|
||||||
|
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 = {
|
||||||
|
isMounted: function() {
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
enqueueForceUpdate: function(publicInstance) {
|
||||||
|
warnNoop(publicInstance, "forceUpdate");
|
||||||
|
},
|
||||||
|
enqueueReplaceState: function(publicInstance) {
|
||||||
|
warnNoop(publicInstance, "replaceState");
|
||||||
|
},
|
||||||
|
enqueueSetState: function(publicInstance) {
|
||||||
|
warnNoop(publicInstance, "setState");
|
||||||
|
}
|
||||||
|
}, assign = Object.assign, emptyObject = {};
|
||||||
|
Object.freeze(emptyObject);
|
||||||
|
Component.prototype.isReactComponent = {};
|
||||||
|
Component.prototype.setState = function(partialState, callback) {
|
||||||
|
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
||||||
|
throw Error(
|
||||||
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
||||||
|
);
|
||||||
|
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
||||||
|
};
|
||||||
|
Component.prototype.forceUpdate = function(callback) {
|
||||||
|
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
||||||
|
};
|
||||||
|
var deprecatedAPIs = {
|
||||||
|
isMounted: [
|
||||||
|
"isMounted",
|
||||||
|
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
||||||
|
],
|
||||||
|
replaceState: [
|
||||||
|
"replaceState",
|
||||||
|
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
||||||
|
]
|
||||||
|
}, fnName;
|
||||||
|
for (fnName in deprecatedAPIs)
|
||||||
|
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
||||||
|
ComponentDummy.prototype = Component.prototype;
|
||||||
|
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
||||||
|
deprecatedAPIs.constructor = PureComponent;
|
||||||
|
assign(deprecatedAPIs, Component.prototype);
|
||||||
|
deprecatedAPIs.isPureReactComponent = true;
|
||||||
|
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
||||||
|
H: null,
|
||||||
|
A: null,
|
||||||
|
T: null,
|
||||||
|
S: null,
|
||||||
|
V: null,
|
||||||
|
actQueue: null,
|
||||||
|
isBatchingLegacy: false,
|
||||||
|
didScheduleLegacyUpdate: false,
|
||||||
|
didUsePromise: false,
|
||||||
|
thrownErrors: [],
|
||||||
|
getCurrentStack: null,
|
||||||
|
recentlyCreatedOwnerStacks: 0
|
||||||
|
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
deprecatedAPIs = {
|
||||||
|
react_stack_bottom_frame: function(callStackForError) {
|
||||||
|
return callStackForError();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
||||||
|
var didWarnAboutElementRef = {};
|
||||||
|
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
||||||
|
deprecatedAPIs,
|
||||||
|
UnknownOwner
|
||||||
|
)();
|
||||||
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
||||||
|
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
||||||
|
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
||||||
|
var event = new window.ErrorEvent("error", {
|
||||||
|
bubbles: true,
|
||||||
|
cancelable: true,
|
||||||
|
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
||||||
|
error
|
||||||
|
});
|
||||||
|
if (!window.dispatchEvent(event)) return;
|
||||||
|
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
||||||
|
process.emit("uncaughtException", error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
console.error(error);
|
||||||
|
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
||||||
|
queueMicrotask(function() {
|
||||||
|
return queueMicrotask(callback);
|
||||||
|
});
|
||||||
|
} : enqueueTask;
|
||||||
|
deprecatedAPIs = Object.freeze({
|
||||||
|
__proto__: null,
|
||||||
|
c: function(size) {
|
||||||
|
return resolveDispatcher().useMemoCache(size);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
exports.Children = {
|
||||||
|
map: mapChildren,
|
||||||
|
forEach: function(children, forEachFunc, forEachContext) {
|
||||||
|
mapChildren(
|
||||||
|
children,
|
||||||
|
function() {
|
||||||
|
forEachFunc.apply(this, arguments);
|
||||||
|
},
|
||||||
|
forEachContext
|
||||||
|
);
|
||||||
|
},
|
||||||
|
count: function(children) {
|
||||||
|
var n = 0;
|
||||||
|
mapChildren(children, function() {
|
||||||
|
n++;
|
||||||
|
});
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
toArray: function(children) {
|
||||||
|
return mapChildren(children, function(child) {
|
||||||
|
return child;
|
||||||
|
}) || [];
|
||||||
|
},
|
||||||
|
only: function(children) {
|
||||||
|
if (!isValidElement(children))
|
||||||
|
throw Error(
|
||||||
|
"React.Children.only expected to receive a single React element child."
|
||||||
|
);
|
||||||
|
return children;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.Component = Component;
|
||||||
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
exports.Profiler = REACT_PROFILER_TYPE;
|
||||||
|
exports.PureComponent = PureComponent;
|
||||||
|
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
||||||
|
exports.Suspense = REACT_SUSPENSE_TYPE;
|
||||||
|
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
||||||
|
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
||||||
|
exports.act = function(callback) {
|
||||||
|
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
||||||
|
actScopeDepth++;
|
||||||
|
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
||||||
|
try {
|
||||||
|
var result = callback();
|
||||||
|
} catch (error) {
|
||||||
|
ReactSharedInternals.thrownErrors.push(error);
|
||||||
|
}
|
||||||
|
if (0 < ReactSharedInternals.thrownErrors.length)
|
||||||
|
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
||||||
|
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
||||||
|
var thenable = result;
|
||||||
|
queueSeveralMicrotasks(function() {
|
||||||
|
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
||||||
|
"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 () => ...);"
|
||||||
|
));
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
then: function(resolve, reject) {
|
||||||
|
didAwaitActCall = true;
|
||||||
|
thenable.then(
|
||||||
|
function(returnValue) {
|
||||||
|
popActScope(prevActQueue, prevActScopeDepth);
|
||||||
|
if (0 === prevActScopeDepth) {
|
||||||
|
try {
|
||||||
|
flushActQueue(queue), enqueueTask(function() {
|
||||||
|
return recursivelyFlushAsyncActWork(
|
||||||
|
returnValue,
|
||||||
|
resolve,
|
||||||
|
reject
|
||||||
|
);
|
||||||
|
});
|
||||||
|
} catch (error$0) {
|
||||||
|
ReactSharedInternals.thrownErrors.push(error$0);
|
||||||
|
}
|
||||||
|
if (0 < ReactSharedInternals.thrownErrors.length) {
|
||||||
|
var _thrownError = aggregateErrors(
|
||||||
|
ReactSharedInternals.thrownErrors
|
||||||
|
);
|
||||||
|
ReactSharedInternals.thrownErrors.length = 0;
|
||||||
|
reject(_thrownError);
|
||||||
|
}
|
||||||
|
} else resolve(returnValue);
|
||||||
|
},
|
||||||
|
function(error) {
|
||||||
|
popActScope(prevActQueue, prevActScopeDepth);
|
||||||
|
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
||||||
|
ReactSharedInternals.thrownErrors
|
||||||
|
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var returnValue$jscomp$0 = result;
|
||||||
|
popActScope(prevActQueue, prevActScopeDepth);
|
||||||
|
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
||||||
|
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
||||||
|
"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(() => ...)"
|
||||||
|
));
|
||||||
|
}), ReactSharedInternals.actQueue = null);
|
||||||
|
if (0 < ReactSharedInternals.thrownErrors.length)
|
||||||
|
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
||||||
|
return {
|
||||||
|
then: function(resolve, reject) {
|
||||||
|
didAwaitActCall = true;
|
||||||
|
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
||||||
|
return recursivelyFlushAsyncActWork(
|
||||||
|
returnValue$jscomp$0,
|
||||||
|
resolve,
|
||||||
|
reject
|
||||||
|
);
|
||||||
|
})) : resolve(returnValue$jscomp$0);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.cache = function(fn) {
|
||||||
|
return function() {
|
||||||
|
return fn.apply(null, arguments);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.captureOwnerStack = function() {
|
||||||
|
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
||||||
|
return null === getCurrentStack ? null : getCurrentStack();
|
||||||
|
};
|
||||||
|
exports.cloneElement = function(element, config, children) {
|
||||||
|
if (null === element || void 0 === element)
|
||||||
|
throw Error(
|
||||||
|
"The argument must be a React element, but you passed " + element + "."
|
||||||
|
);
|
||||||
|
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
||||||
|
if (null != config) {
|
||||||
|
var JSCompiler_inline_result;
|
||||||
|
a: {
|
||||||
|
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
||||||
|
config,
|
||||||
|
"ref"
|
||||||
|
).get) && JSCompiler_inline_result.isReactWarning) {
|
||||||
|
JSCompiler_inline_result = false;
|
||||||
|
break a;
|
||||||
|
}
|
||||||
|
JSCompiler_inline_result = void 0 !== config.ref;
|
||||||
|
}
|
||||||
|
JSCompiler_inline_result && (owner = getOwner());
|
||||||
|
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
||||||
|
for (propName in config)
|
||||||
|
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
||||||
|
}
|
||||||
|
var propName = arguments.length - 2;
|
||||||
|
if (1 === propName) props.children = children;
|
||||||
|
else if (1 < propName) {
|
||||||
|
JSCompiler_inline_result = Array(propName);
|
||||||
|
for (var i = 0; i < propName; i++)
|
||||||
|
JSCompiler_inline_result[i] = arguments[i + 2];
|
||||||
|
props.children = JSCompiler_inline_result;
|
||||||
|
}
|
||||||
|
props = ReactElement(
|
||||||
|
element.type,
|
||||||
|
key,
|
||||||
|
void 0,
|
||||||
|
void 0,
|
||||||
|
owner,
|
||||||
|
props,
|
||||||
|
element._debugStack,
|
||||||
|
element._debugTask
|
||||||
|
);
|
||||||
|
for (key = 2; key < arguments.length; key++)
|
||||||
|
owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
||||||
|
return props;
|
||||||
|
};
|
||||||
|
exports.createContext = function(defaultValue) {
|
||||||
|
defaultValue = {
|
||||||
|
$$typeof: REACT_CONTEXT_TYPE,
|
||||||
|
_currentValue: defaultValue,
|
||||||
|
_currentValue2: defaultValue,
|
||||||
|
_threadCount: 0,
|
||||||
|
Provider: null,
|
||||||
|
Consumer: null
|
||||||
|
};
|
||||||
|
defaultValue.Provider = defaultValue;
|
||||||
|
defaultValue.Consumer = {
|
||||||
|
$$typeof: REACT_CONSUMER_TYPE,
|
||||||
|
_context: defaultValue
|
||||||
|
};
|
||||||
|
defaultValue._currentRenderer = null;
|
||||||
|
defaultValue._currentRenderer2 = null;
|
||||||
|
return defaultValue;
|
||||||
|
};
|
||||||
|
exports.createElement = function(type, config, children) {
|
||||||
|
for (var i = 2; i < arguments.length; i++) {
|
||||||
|
var node = arguments[i];
|
||||||
|
isValidElement(node) && node._store && (node._store.validated = 1);
|
||||||
|
}
|
||||||
|
i = {};
|
||||||
|
node = null;
|
||||||
|
if (null != config)
|
||||||
|
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
||||||
|
"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"
|
||||||
|
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
|
||||||
|
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
||||||
|
var childrenLength = arguments.length - 2;
|
||||||
|
if (1 === childrenLength) i.children = children;
|
||||||
|
else if (1 < childrenLength) {
|
||||||
|
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
||||||
|
childArray[_i] = arguments[_i + 2];
|
||||||
|
Object.freeze && Object.freeze(childArray);
|
||||||
|
i.children = childArray;
|
||||||
|
}
|
||||||
|
if (type && type.defaultProps)
|
||||||
|
for (propName in childrenLength = type.defaultProps, childrenLength)
|
||||||
|
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
||||||
|
node && defineKeyPropWarningGetter(
|
||||||
|
i,
|
||||||
|
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
||||||
|
);
|
||||||
|
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
||||||
|
return ReactElement(
|
||||||
|
type,
|
||||||
|
node,
|
||||||
|
void 0,
|
||||||
|
void 0,
|
||||||
|
getOwner(),
|
||||||
|
i,
|
||||||
|
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
||||||
|
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||||
|
);
|
||||||
|
};
|
||||||
|
exports.createRef = function() {
|
||||||
|
var refObject = { current: null };
|
||||||
|
Object.seal(refObject);
|
||||||
|
return refObject;
|
||||||
|
};
|
||||||
|
exports.forwardRef = function(render) {
|
||||||
|
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
||||||
|
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
||||||
|
) : "function" !== typeof render ? console.error(
|
||||||
|
"forwardRef requires a render function but was given %s.",
|
||||||
|
null === render ? "null" : typeof render
|
||||||
|
) : 0 !== render.length && 2 !== render.length && console.error(
|
||||||
|
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
||||||
|
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
||||||
|
);
|
||||||
|
null != render && null != render.defaultProps && console.error(
|
||||||
|
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
||||||
|
);
|
||||||
|
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
||||||
|
Object.defineProperty(elementType, "displayName", {
|
||||||
|
enumerable: false,
|
||||||
|
configurable: true,
|
||||||
|
get: function() {
|
||||||
|
return ownName;
|
||||||
|
},
|
||||||
|
set: function(name) {
|
||||||
|
ownName = name;
|
||||||
|
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return elementType;
|
||||||
|
};
|
||||||
|
exports.isValidElement = isValidElement;
|
||||||
|
exports.lazy = function(ctor) {
|
||||||
|
return {
|
||||||
|
$$typeof: REACT_LAZY_TYPE,
|
||||||
|
_payload: { _status: -1, _result: ctor },
|
||||||
|
_init: lazyInitializer
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.memo = function(type, compare) {
|
||||||
|
null == type && console.error(
|
||||||
|
"memo: The first argument must be a component. Instead received: %s",
|
||||||
|
null === type ? "null" : typeof type
|
||||||
|
);
|
||||||
|
compare = {
|
||||||
|
$$typeof: REACT_MEMO_TYPE,
|
||||||
|
type,
|
||||||
|
compare: void 0 === compare ? null : compare
|
||||||
|
};
|
||||||
|
var ownName;
|
||||||
|
Object.defineProperty(compare, "displayName", {
|
||||||
|
enumerable: false,
|
||||||
|
configurable: true,
|
||||||
|
get: function() {
|
||||||
|
return ownName;
|
||||||
|
},
|
||||||
|
set: function(name) {
|
||||||
|
ownName = name;
|
||||||
|
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return compare;
|
||||||
|
};
|
||||||
|
exports.startTransition = function(scope) {
|
||||||
|
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
||||||
|
ReactSharedInternals.T = currentTransition;
|
||||||
|
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
||||||
|
try {
|
||||||
|
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
||||||
|
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
||||||
|
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
||||||
|
} catch (error) {
|
||||||
|
reportGlobalError(error);
|
||||||
|
} finally {
|
||||||
|
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
||||||
|
"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."
|
||||||
|
)), ReactSharedInternals.T = prevTransition;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.unstable_useCacheRefresh = function() {
|
||||||
|
return resolveDispatcher().useCacheRefresh();
|
||||||
|
};
|
||||||
|
exports.use = function(usable) {
|
||||||
|
return resolveDispatcher().use(usable);
|
||||||
|
};
|
||||||
|
exports.useActionState = function(action, initialState, permalink) {
|
||||||
|
return resolveDispatcher().useActionState(
|
||||||
|
action,
|
||||||
|
initialState,
|
||||||
|
permalink
|
||||||
|
);
|
||||||
|
};
|
||||||
|
exports.useCallback = function(callback, deps) {
|
||||||
|
return resolveDispatcher().useCallback(callback, deps);
|
||||||
|
};
|
||||||
|
exports.useContext = function(Context) {
|
||||||
|
var dispatcher = resolveDispatcher();
|
||||||
|
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
||||||
|
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
||||||
|
);
|
||||||
|
return dispatcher.useContext(Context);
|
||||||
|
};
|
||||||
|
exports.useDebugValue = function(value, formatterFn) {
|
||||||
|
return resolveDispatcher().useDebugValue(value, formatterFn);
|
||||||
|
};
|
||||||
|
exports.useDeferredValue = function(value, initialValue) {
|
||||||
|
return resolveDispatcher().useDeferredValue(value, initialValue);
|
||||||
|
};
|
||||||
|
exports.useEffect = function(create, createDeps, update) {
|
||||||
|
null == create && console.warn(
|
||||||
|
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
||||||
|
);
|
||||||
|
var dispatcher = resolveDispatcher();
|
||||||
|
if ("function" === typeof update)
|
||||||
|
throw Error(
|
||||||
|
"useEffect CRUD overload is not enabled in this build of React."
|
||||||
|
);
|
||||||
|
return dispatcher.useEffect(create, createDeps);
|
||||||
|
};
|
||||||
|
exports.useId = function() {
|
||||||
|
return resolveDispatcher().useId();
|
||||||
|
};
|
||||||
|
exports.useImperativeHandle = function(ref, create, deps) {
|
||||||
|
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
||||||
|
};
|
||||||
|
exports.useInsertionEffect = function(create, deps) {
|
||||||
|
null == create && console.warn(
|
||||||
|
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
||||||
|
);
|
||||||
|
return resolveDispatcher().useInsertionEffect(create, deps);
|
||||||
|
};
|
||||||
|
exports.useLayoutEffect = function(create, deps) {
|
||||||
|
null == create && console.warn(
|
||||||
|
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
||||||
|
);
|
||||||
|
return resolveDispatcher().useLayoutEffect(create, deps);
|
||||||
|
};
|
||||||
|
exports.useMemo = function(create, deps) {
|
||||||
|
return resolveDispatcher().useMemo(create, deps);
|
||||||
|
};
|
||||||
|
exports.useOptimistic = function(passthrough, reducer) {
|
||||||
|
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
||||||
|
};
|
||||||
|
exports.useReducer = function(reducer, initialArg, init) {
|
||||||
|
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
||||||
|
};
|
||||||
|
exports.useRef = function(initialValue) {
|
||||||
|
return resolveDispatcher().useRef(initialValue);
|
||||||
|
};
|
||||||
|
exports.useState = function(initialState) {
|
||||||
|
return resolveDispatcher().useState(initialState);
|
||||||
|
};
|
||||||
|
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
||||||
|
return resolveDispatcher().useSyncExternalStore(
|
||||||
|
subscribe,
|
||||||
|
getSnapshot,
|
||||||
|
getServerSnapshot
|
||||||
|
);
|
||||||
|
};
|
||||||
|
exports.useTransition = function() {
|
||||||
|
return resolveDispatcher().useTransition();
|
||||||
|
};
|
||||||
|
exports.version = "19.1.1";
|
||||||
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react@19.1.1/node_modules/react/index.js
|
||||||
|
var require_react = __commonJS({
|
||||||
|
"node_modules/.pnpm/react@19.1.1/node_modules/react/index.js"(exports, module) {
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_react
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react/cjs/react.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* react.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=chunk-R7JHQV4C.js.map
|
||||||
7
.vite/deps/chunk-R7JHQV4C.js.map
Normal file
7
.vite/deps/chunk-R7JHQV4C.js.map
Normal file
File diff suppressed because one or more lines are too long
103
.vite/deps/chunk-TJUXSJCW.js
Normal file
103
.vite/deps/chunk-TJUXSJCW.js
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js
|
||||||
|
var require_use_sync_external_store_with_selector_development = __commonJS({
|
||||||
|
"node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
(function() {
|
||||||
|
function is(x, y) {
|
||||||
|
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
||||||
|
}
|
||||||
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
||||||
|
var React = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = React.useSyncExternalStore, useRef = React.useRef, useEffect = React.useEffect, useMemo = React.useMemo, useDebugValue = React.useDebugValue;
|
||||||
|
exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
||||||
|
var instRef = useRef(null);
|
||||||
|
if (null === instRef.current) {
|
||||||
|
var inst = { hasValue: false, value: null };
|
||||||
|
instRef.current = inst;
|
||||||
|
} else inst = instRef.current;
|
||||||
|
instRef = useMemo(
|
||||||
|
function() {
|
||||||
|
function memoizedSelector(nextSnapshot) {
|
||||||
|
if (!hasMemo) {
|
||||||
|
hasMemo = true;
|
||||||
|
memoizedSnapshot = nextSnapshot;
|
||||||
|
nextSnapshot = selector(nextSnapshot);
|
||||||
|
if (void 0 !== isEqual && inst.hasValue) {
|
||||||
|
var currentSelection = inst.value;
|
||||||
|
if (isEqual(currentSelection, nextSnapshot))
|
||||||
|
return memoizedSelection = currentSelection;
|
||||||
|
}
|
||||||
|
return memoizedSelection = nextSnapshot;
|
||||||
|
}
|
||||||
|
currentSelection = memoizedSelection;
|
||||||
|
if (objectIs(memoizedSnapshot, nextSnapshot))
|
||||||
|
return currentSelection;
|
||||||
|
var nextSelection = selector(nextSnapshot);
|
||||||
|
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
||||||
|
return memoizedSnapshot = nextSnapshot, currentSelection;
|
||||||
|
memoizedSnapshot = nextSnapshot;
|
||||||
|
return memoizedSelection = nextSelection;
|
||||||
|
}
|
||||||
|
var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
|
||||||
|
return [
|
||||||
|
function() {
|
||||||
|
return memoizedSelector(getSnapshot());
|
||||||
|
},
|
||||||
|
null === maybeGetServerSnapshot ? void 0 : function() {
|
||||||
|
return memoizedSelector(maybeGetServerSnapshot());
|
||||||
|
}
|
||||||
|
];
|
||||||
|
},
|
||||||
|
[getSnapshot, getServerSnapshot, selector, isEqual]
|
||||||
|
);
|
||||||
|
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
||||||
|
useEffect(
|
||||||
|
function() {
|
||||||
|
inst.hasValue = true;
|
||||||
|
inst.value = value;
|
||||||
|
},
|
||||||
|
[value]
|
||||||
|
);
|
||||||
|
useDebugValue(value);
|
||||||
|
return value;
|
||||||
|
};
|
||||||
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.1/node_modules/use-sync-external-store/with-selector.js
|
||||||
|
var require_with_selector = __commonJS({
|
||||||
|
"node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.1/node_modules/use-sync-external-store/with-selector.js"(exports, module) {
|
||||||
|
"use strict";
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_use_sync_external_store_with_selector_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
require_with_selector
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* use-sync-external-store-with-selector.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=chunk-TJUXSJCW.js.map
|
||||||
7
.vite/deps/chunk-TJUXSJCW.js.map
Normal file
7
.vite/deps/chunk-TJUXSJCW.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js", "../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.1/node_modules/use-sync-external-store/with-selector.js"],
|
||||||
|
"sourcesContent": ["/**\n * @license React\n * use-sync-external-store-with-selector.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = React.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/use-sync-external-store-with-selector.production.js');\n} else {\n module.exports = require('./cjs/use-sync-external-store-with-selector.development.js');\n}\n"],
|
||||||
|
"mappings": ";;;;;;;;AAAA;AAAA;AAAA;AAWA,KACG,WAAY;AACX,eAAS,GAAG,GAAG,GAAG;AAChB,eAAQ,MAAM,MAAM,MAAM,KAAK,IAAI,MAAM,IAAI,MAAQ,MAAM,KAAK,MAAM;AAAA,MACxE;AACA,sBAAgB,OAAO,kCACrB,eACE,OAAO,+BAA+B,+BACxC,+BAA+B,4BAA4B,MAAM,CAAC;AACpE,UAAI,QAAQ,iBACV,WAAW,eAAe,OAAO,OAAO,KAAK,OAAO,KAAK,IACzD,uBAAuB,MAAM,sBAC7B,SAAS,MAAM,QACf,YAAY,MAAM,WAClB,UAAU,MAAM,SAChB,gBAAgB,MAAM;AACxB,cAAQ,mCAAmC,SACzC,WACA,aACA,mBACA,UACA,SACA;AACA,YAAI,UAAU,OAAO,IAAI;AACzB,YAAI,SAAS,QAAQ,SAAS;AAC5B,cAAI,OAAO,EAAE,UAAU,OAAI,OAAO,KAAK;AACvC,kBAAQ,UAAU;AAAA,QACpB,MAAO,QAAO,QAAQ;AACtB,kBAAU;AAAA,UACR,WAAY;AACV,qBAAS,iBAAiB,cAAc;AACtC,kBAAI,CAAC,SAAS;AACZ,0BAAU;AACV,mCAAmB;AACnB,+BAAe,SAAS,YAAY;AACpC,oBAAI,WAAW,WAAW,KAAK,UAAU;AACvC,sBAAI,mBAAmB,KAAK;AAC5B,sBAAI,QAAQ,kBAAkB,YAAY;AACxC,2BAAQ,oBAAoB;AAAA,gBAChC;AACA,uBAAQ,oBAAoB;AAAA,cAC9B;AACA,iCAAmB;AACnB,kBAAI,SAAS,kBAAkB,YAAY;AACzC,uBAAO;AACT,kBAAI,gBAAgB,SAAS,YAAY;AACzC,kBAAI,WAAW,WAAW,QAAQ,kBAAkB,aAAa;AAC/D,uBAAQ,mBAAmB,cAAe;AAC5C,iCAAmB;AACnB,qBAAQ,oBAAoB;AAAA,YAC9B;AACA,gBAAI,UAAU,OACZ,kBACA,mBACA,yBACE,WAAW,oBAAoB,OAAO;AAC1C,mBAAO;AAAA,cACL,WAAY;AACV,uBAAO,iBAAiB,YAAY,CAAC;AAAA,cACvC;AAAA,cACA,SAAS,yBACL,SACA,WAAY;AACV,uBAAO,iBAAiB,uBAAuB,CAAC;AAAA,cAClD;AAAA,YACN;AAAA,UACF;AAAA,UACA,CAAC,aAAa,mBAAmB,UAAU,OAAO;AAAA,QACpD;AACA,YAAI,QAAQ,qBAAqB,WAAW,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC;AAClE;AAAA,UACE,WAAY;AACV,iBAAK,WAAW;AAChB,iBAAK,QAAQ;AAAA,UACf;AAAA,UACA,CAAC,KAAK;AAAA,QACR;AACA,sBAAc,KAAK;AACnB,eAAO;AAAA,MACT;AACA,sBAAgB,OAAO,kCACrB,eACE,OAAO,+BAA+B,8BACxC,+BAA+B,2BAA2B,MAAM,CAAC;AAAA,IACrE,GAAG;AAAA;AAAA;;;AC/FL;AAAA;AAAA;AAEA,QAAI,OAAuC;AACzC,aAAO,UAAU;AAAA,IACnB,OAAO;AACL,aAAO,UAAU;AAAA,IACnB;AAAA;AAAA;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
22
.vite/deps/chunk-VKF4V6AS.js
Normal file
22
.vite/deps/chunk-VKF4V6AS.js
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import {
|
||||||
|
__esm
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
||||||
|
function memoize(fn) {
|
||||||
|
var cache = /* @__PURE__ */ Object.create(null);
|
||||||
|
return function(arg) {
|
||||||
|
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
||||||
|
return cache[arg];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var init_emotion_memoize_esm = __esm({
|
||||||
|
"node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"() {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export {
|
||||||
|
memoize,
|
||||||
|
init_emotion_memoize_esm
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-VKF4V6AS.js.map
|
||||||
7
.vite/deps/chunk-VKF4V6AS.js.map
Normal file
7
.vite/deps/chunk-VKF4V6AS.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"],
|
||||||
|
"sourcesContent": ["function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n"],
|
||||||
|
"mappings": ";;;;;AAAA,SAAS,QAAQ,IAAI;AACnB,MAAI,QAAQ,uBAAO,OAAO,IAAI;AAC9B,SAAO,SAAU,KAAK;AACpB,QAAI,MAAM,GAAG,MAAM,OAAW,OAAM,GAAG,IAAI,GAAG,GAAG;AACjD,WAAO,MAAM,GAAG;AAAA,EAClB;AACF;AANA;AAAA;AAAA;AAAA;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
9
.vite/deps/clsx.js
Normal file
9
.vite/deps/clsx.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import {
|
||||||
|
clsx,
|
||||||
|
clsx_default
|
||||||
|
} from "./chunk-6SD27EE3.js";
|
||||||
|
import "./chunk-PLDDJCW6.js";
|
||||||
|
export {
|
||||||
|
clsx,
|
||||||
|
clsx_default as default
|
||||||
|
};
|
||||||
7
.vite/deps/clsx.js.map
Normal file
7
.vite/deps/clsx.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
11230
.vite/deps/framer-motion.js
Normal file
11230
.vite/deps/framer-motion.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/framer-motion.js.map
Normal file
7
.vite/deps/framer-motion.js.map
Normal file
File diff suppressed because one or more lines are too long
7
.vite/deps/moment.js
Normal file
7
.vite/deps/moment.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import {
|
||||||
|
moment_default
|
||||||
|
} from "./chunk-4GLESION.js";
|
||||||
|
import "./chunk-PLDDJCW6.js";
|
||||||
|
export {
|
||||||
|
moment_default as default
|
||||||
|
};
|
||||||
7
.vite/deps/moment.js.map
Normal file
7
.vite/deps/moment.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
86
.vite/deps/moment_dist_locale_ko.js
Normal file
86
.vite/deps/moment_dist_locale_ko.js
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
import {
|
||||||
|
moment_default
|
||||||
|
} from "./chunk-4GLESION.js";
|
||||||
|
import "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/moment@2.30.1/node_modules/moment/dist/locale/ko.js
|
||||||
|
var ko_default = moment_default.defineLocale("ko", {
|
||||||
|
months: "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
||||||
|
monthsShort: "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split(
|
||||||
|
"_"
|
||||||
|
),
|
||||||
|
weekdays: "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),
|
||||||
|
weekdaysShort: "일_월_화_수_목_금_토".split("_"),
|
||||||
|
weekdaysMin: "일_월_화_수_목_금_토".split("_"),
|
||||||
|
longDateFormat: {
|
||||||
|
LT: "A h:mm",
|
||||||
|
LTS: "A h:mm:ss",
|
||||||
|
L: "YYYY.MM.DD.",
|
||||||
|
LL: "YYYY년 MMMM D일",
|
||||||
|
LLL: "YYYY년 MMMM D일 A h:mm",
|
||||||
|
LLLL: "YYYY년 MMMM D일 dddd A h:mm",
|
||||||
|
l: "YYYY.MM.DD.",
|
||||||
|
ll: "YYYY년 MMMM D일",
|
||||||
|
lll: "YYYY년 MMMM D일 A h:mm",
|
||||||
|
llll: "YYYY년 MMMM D일 dddd A h:mm"
|
||||||
|
},
|
||||||
|
calendar: {
|
||||||
|
sameDay: "오늘 LT",
|
||||||
|
nextDay: "내일 LT",
|
||||||
|
nextWeek: "dddd LT",
|
||||||
|
lastDay: "어제 LT",
|
||||||
|
lastWeek: "지난주 dddd LT",
|
||||||
|
sameElse: "L"
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: "%s 후",
|
||||||
|
past: "%s 전",
|
||||||
|
s: "몇 초",
|
||||||
|
ss: "%d초",
|
||||||
|
m: "1분",
|
||||||
|
mm: "%d분",
|
||||||
|
h: "한 시간",
|
||||||
|
hh: "%d시간",
|
||||||
|
d: "하루",
|
||||||
|
dd: "%d일",
|
||||||
|
M: "한 달",
|
||||||
|
MM: "%d달",
|
||||||
|
y: "일 년",
|
||||||
|
yy: "%d년"
|
||||||
|
},
|
||||||
|
dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
|
||||||
|
ordinal: function(number, period) {
|
||||||
|
switch (period) {
|
||||||
|
case "d":
|
||||||
|
case "D":
|
||||||
|
case "DDD":
|
||||||
|
return number + "일";
|
||||||
|
case "M":
|
||||||
|
return number + "월";
|
||||||
|
case "w":
|
||||||
|
case "W":
|
||||||
|
return number + "주";
|
||||||
|
default:
|
||||||
|
return number;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
meridiemParse: /오전|오후/,
|
||||||
|
isPM: function(token) {
|
||||||
|
return token === "오후";
|
||||||
|
},
|
||||||
|
meridiem: function(hour, minute, isUpper) {
|
||||||
|
return hour < 12 ? "오전" : "오후";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export {
|
||||||
|
ko_default as default
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
moment/dist/locale/ko.js:
|
||||||
|
(*! moment.js locale configuration *)
|
||||||
|
(*! locale : Korean [ko] *)
|
||||||
|
(*! author : Kyungwook, Park : https://github.com/kyungw00k *)
|
||||||
|
(*! author : Jeeeyul Lee <jeeeyul@gmail.com> *)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=moment_dist_locale_ko.js.map
|
||||||
7
.vite/deps/moment_dist_locale_ko.js.map
Normal file
7
.vite/deps/moment_dist_locale_ko.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../node_modules/.pnpm/moment@2.30.1/node_modules/moment/dist/locale/ko.js"],
|
||||||
|
"sourcesContent": ["//! moment.js locale configuration\n//! locale : Korean [ko]\n//! author : Kyungwook, Park : https://github.com/kyungw00k\n//! author : Jeeeyul Lee <jeeeyul@gmail.com>\n\nimport moment from '../moment';\n\nexport default moment.defineLocale('ko', {\n months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(\n '_'\n ),\n weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),\n weekdaysShort: '일_월_화_수_목_금_토'.split('_'),\n weekdaysMin: '일_월_화_수_목_금_토'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'YYYY.MM.DD.',\n LL: 'YYYY년 MMMM D일',\n LLL: 'YYYY년 MMMM D일 A h:mm',\n LLLL: 'YYYY년 MMMM D일 dddd A h:mm',\n l: 'YYYY.MM.DD.',\n ll: 'YYYY년 MMMM D일',\n lll: 'YYYY년 MMMM D일 A h:mm',\n llll: 'YYYY년 MMMM D일 dddd A h:mm',\n },\n calendar: {\n sameDay: '오늘 LT',\n nextDay: '내일 LT',\n nextWeek: 'dddd LT',\n lastDay: '어제 LT',\n lastWeek: '지난주 dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s 후',\n past: '%s 전',\n s: '몇 초',\n ss: '%d초',\n m: '1분',\n mm: '%d분',\n h: '한 시간',\n hh: '%d시간',\n d: '하루',\n dd: '%d일',\n M: '한 달',\n MM: '%d달',\n y: '일 년',\n yy: '%d년',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(일|월|주)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '일';\n case 'M':\n return number + '월';\n case 'w':\n case 'W':\n return number + '주';\n default:\n return number;\n }\n },\n meridiemParse: /오전|오후/,\n isPM: function (token) {\n return token === '오후';\n },\n meridiem: function (hour, minute, isUpper) {\n return hour < 12 ? '오전' : '오후';\n },\n});\n"],
|
||||||
|
"mappings": ";;;;;;AAOA,IAAO,aAAQ,eAAO,aAAa,MAAM;AAAA,EACrC,QAAQ,yCAAyC,MAAM,GAAG;AAAA,EAC1D,aAAa,yCAAyC;AAAA,IAClD;AAAA,EACJ;AAAA,EACA,UAAU,8BAA8B,MAAM,GAAG;AAAA,EACjD,eAAe,gBAAgB,MAAM,GAAG;AAAA,EACxC,aAAa,gBAAgB,MAAM,GAAG;AAAA,EACtC,gBAAgB;AAAA,IACZ,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,MAAM;AAAA,IACN,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,MAAM;AAAA,EACV;AAAA,EACA,UAAU;AAAA,IACN,SAAS;AAAA,IACT,SAAS;AAAA,IACT,UAAU;AAAA,IACV,SAAS;AAAA,IACT,UAAU;AAAA,IACV,UAAU;AAAA,EACd;AAAA,EACA,cAAc;AAAA,IACV,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,IAAI;AAAA,EACR;AAAA,EACA,wBAAwB;AAAA,EACxB,SAAS,SAAU,QAAQ,QAAQ;AAC/B,YAAQ,QAAQ;AAAA,MACZ,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AACD,eAAO,SAAS;AAAA,MACpB,KAAK;AACD,eAAO,SAAS;AAAA,MACpB,KAAK;AAAA,MACL,KAAK;AACD,eAAO,SAAS;AAAA,MACpB;AACI,eAAO;AAAA,IACf;AAAA,EACJ;AAAA,EACA,eAAe;AAAA,EACf,MAAM,SAAU,OAAO;AACnB,WAAO,UAAU;AAAA,EACrB;AAAA,EACA,UAAU,SAAU,MAAM,QAAQ,SAAS;AACvC,WAAO,OAAO,KAAK,OAAO;AAAA,EAC9B;AACJ,CAAC;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
227
.vite/deps/overlay-kit.js
Normal file
227
.vite/deps/overlay-kit.js
Normal file
@@ -0,0 +1,227 @@
|
|||||||
|
import {
|
||||||
|
require_jsx_runtime
|
||||||
|
} from "./chunk-CQKXKKJC.js";
|
||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
__toESM
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/overlay-kit@1.8.4_react-dom_8ea85e22eb3956f3589f4c288e5185a7/node_modules/overlay-kit/dist/index.js
|
||||||
|
var import_react = __toESM(require_react());
|
||||||
|
var import_react2 = __toESM(require_react());
|
||||||
|
var import_jsx_runtime = __toESM(require_jsx_runtime());
|
||||||
|
var import_react3 = __toESM(require_react());
|
||||||
|
var import_jsx_runtime2 = __toESM(require_jsx_runtime());
|
||||||
|
var import_react4 = __toESM(require_react());
|
||||||
|
var G = Object.defineProperty;
|
||||||
|
var j = Object.defineProperties;
|
||||||
|
var q = Object.getOwnPropertyDescriptors;
|
||||||
|
var L = Object.getOwnPropertySymbols;
|
||||||
|
var H = Object.prototype.hasOwnProperty;
|
||||||
|
var P = Object.prototype.propertyIsEnumerable;
|
||||||
|
var T = (e, r, t) => r in e ? G(e, r, { enumerable: true, configurable: true, writable: true, value: t }) : e[r] = t;
|
||||||
|
var a = (e, r) => {
|
||||||
|
for (var t in r || (r = {})) H.call(r, t) && T(e, t, r[t]);
|
||||||
|
if (L) for (var t of L(r)) P.call(r, t) && T(e, t, r[t]);
|
||||||
|
return e;
|
||||||
|
};
|
||||||
|
var y = (e, r) => j(e, q(r));
|
||||||
|
var K = (e, r) => {
|
||||||
|
var t = {};
|
||||||
|
for (var n in e) H.call(e, n) && r.indexOf(n) < 0 && (t[n] = e[n]);
|
||||||
|
if (e != null && L) for (var n of L(e)) r.indexOf(n) < 0 && P.call(e, n) && (t[n] = e[n]);
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
var S = (e, r, t) => new Promise((n, o) => {
|
||||||
|
var l = (c) => {
|
||||||
|
try {
|
||||||
|
s(t.next(c));
|
||||||
|
} catch (v) {
|
||||||
|
o(v);
|
||||||
|
}
|
||||||
|
}, d = (c) => {
|
||||||
|
try {
|
||||||
|
s(t.throw(c));
|
||||||
|
} catch (v) {
|
||||||
|
o(v);
|
||||||
|
}
|
||||||
|
}, s = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(l, d);
|
||||||
|
s((t = t.apply(e, r)).next());
|
||||||
|
});
|
||||||
|
var M = (0, import_react2.memo)(({ isOpen: e, overlayId: r, overlayDispatch: t, controller: n }) => ((0, import_react2.useEffect)(() => {
|
||||||
|
requestAnimationFrame(() => {
|
||||||
|
t({ type: "OPEN", overlayId: r });
|
||||||
|
});
|
||||||
|
}, [t, r]), (0, import_jsx_runtime.jsx)(n, { isOpen: e, overlayId: r, close: () => t({ type: "CLOSE", overlayId: r }), unmount: () => t({ type: "REMOVE", overlayId: r }) })));
|
||||||
|
function C() {
|
||||||
|
return `overlay-kit-${Math.random().toString(36).slice(2, 11)}`;
|
||||||
|
}
|
||||||
|
function w(e) {
|
||||||
|
let [r, t] = b(`${e}/overlay-kit`), n = (v, i) => {
|
||||||
|
var E;
|
||||||
|
let u = (E = i == null ? void 0 : i.overlayId) != null ? E : C(), f = C();
|
||||||
|
return t("open")({ controller: v, overlayId: u, componentKey: f }), u;
|
||||||
|
}, o = (v, i) => S(this, null, function* () {
|
||||||
|
return new Promise((u) => {
|
||||||
|
n((f, ...D) => {
|
||||||
|
let E = (A) => {
|
||||||
|
u(A), f.close();
|
||||||
|
}, g = y(a({}, f), { close: E });
|
||||||
|
return v(g, ...D);
|
||||||
|
}, i);
|
||||||
|
});
|
||||||
|
}), l = t("close"), d = t("unmount"), s = t("closeAll"), c = t("unmountAll");
|
||||||
|
return { open: n, openAsync: o, close: l, unmount: d, closeAll: s, unmountAll: c, useOverlayEvent: r };
|
||||||
|
}
|
||||||
|
var W = Symbol("Null");
|
||||||
|
function N(e) {
|
||||||
|
let r = (0, import_react3.createContext)(W);
|
||||||
|
r.displayName = e != null ? e : "SafeContext";
|
||||||
|
function t() {
|
||||||
|
let n = (0, import_react3.useContext)(r);
|
||||||
|
if (n === W) {
|
||||||
|
let o = new Error(`[${r.displayName}]: Provider not found.`);
|
||||||
|
throw o.name = "[Error] Context", o;
|
||||||
|
}
|
||||||
|
return n;
|
||||||
|
}
|
||||||
|
return [r.Provider, t];
|
||||||
|
}
|
||||||
|
function V() {
|
||||||
|
let [e, r] = N("overlay-kit/OverlayContext");
|
||||||
|
function t() {
|
||||||
|
return r().current;
|
||||||
|
}
|
||||||
|
function n() {
|
||||||
|
return r().overlayData;
|
||||||
|
}
|
||||||
|
return { OverlayContextProvider: e, useCurrentOverlay: t, useOverlayData: n };
|
||||||
|
}
|
||||||
|
var _ = (e, r, t) => {
|
||||||
|
var l, d;
|
||||||
|
let n = e.filter((s) => r[s].isOpen === true), o = n.findIndex((s) => s === t);
|
||||||
|
return o === n.length - 1 ? (l = n[o - 1]) != null ? l : null : (d = n.at(-1)) != null ? d : null;
|
||||||
|
};
|
||||||
|
function $(e, r) {
|
||||||
|
switch (r.type) {
|
||||||
|
case "ADD": {
|
||||||
|
if (e.overlayData[r.overlay.id] != null && e.overlayData[r.overlay.id].isOpen === false) {
|
||||||
|
let n = e.overlayData[r.overlay.id];
|
||||||
|
return n == null || n.isOpen ? e : y(a({}, e), { current: r.overlay.id, overlayData: y(a({}, e.overlayData), { [r.overlay.id]: y(a({}, n), { isOpen: true }) }) });
|
||||||
|
}
|
||||||
|
let t = e.overlayOrderList.includes(r.overlay.id);
|
||||||
|
if (t && e.overlayData[r.overlay.id].isOpen === true) throw new Error(`You can't open the multiple overlays with the same overlayId(${r.overlay.id}). Please set a different id.`);
|
||||||
|
return { current: r.overlay.id, overlayOrderList: [...e.overlayOrderList.filter((n) => n !== r.overlay.id), r.overlay.id], overlayData: t ? e.overlayData : y(a({}, e.overlayData), { [r.overlay.id]: r.overlay }) };
|
||||||
|
}
|
||||||
|
case "OPEN": {
|
||||||
|
let t = e.overlayData[r.overlayId];
|
||||||
|
return t == null || t.isOpen ? e : y(a({}, e), { overlayData: y(a({}, e.overlayData), { [r.overlayId]: y(a({}, t), { isOpen: true, isMounted: true }) }) });
|
||||||
|
}
|
||||||
|
case "CLOSE": {
|
||||||
|
let t = e.overlayData[r.overlayId];
|
||||||
|
if (t == null || !t.isOpen) return e;
|
||||||
|
let n = _(e.overlayOrderList, e.overlayData, r.overlayId);
|
||||||
|
return y(a({}, e), { current: n, overlayData: y(a({}, e.overlayData), { [r.overlayId]: y(a({}, e.overlayData[r.overlayId]), { isOpen: false }) }) });
|
||||||
|
}
|
||||||
|
case "REMOVE": {
|
||||||
|
if (e.overlayData[r.overlayId] == null) return e;
|
||||||
|
let n = e.overlayOrderList.filter((d) => d !== r.overlayId);
|
||||||
|
if (e.overlayOrderList.length === n.length) return e;
|
||||||
|
let o = a({}, e.overlayData);
|
||||||
|
return delete o[r.overlayId], { current: _(e.overlayOrderList, e.overlayData, r.overlayId), overlayOrderList: n, overlayData: o };
|
||||||
|
}
|
||||||
|
case "CLOSE_ALL":
|
||||||
|
return Object.keys(e.overlayData).length === 0 ? e : y(a({}, e), { current: null, overlayData: Object.keys(e.overlayData).reduce((t, n) => y(a({}, t), { [n]: y(a({}, e.overlayData[n]), { isOpen: false }) }), {}) });
|
||||||
|
case "REMOVE_ALL":
|
||||||
|
return { current: null, overlayOrderList: [], overlayData: {} };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function R() {
|
||||||
|
let e = C(), s = w(e), { useOverlayEvent: r } = s, t = K(s, ["useOverlayEvent"]), { OverlayContextProvider: n, useCurrentOverlay: o, useOverlayData: l } = V();
|
||||||
|
function d({ children: c }) {
|
||||||
|
let [v, i] = (0, import_react.useReducer)($, { current: null, overlayOrderList: [], overlayData: {} }), u = (0, import_react.useRef)(v), f = (0, import_react.useCallback)(({ controller: p, overlayId: O, componentKey: m }) => {
|
||||||
|
i({ type: "ADD", overlay: { id: O, componentKey: m, isOpen: false, isMounted: false, controller: p } });
|
||||||
|
}, []), D = (0, import_react.useCallback)((p) => {
|
||||||
|
i({ type: "CLOSE", overlayId: p });
|
||||||
|
}, []), E = (0, import_react.useCallback)((p) => {
|
||||||
|
i({ type: "REMOVE", overlayId: p });
|
||||||
|
}, []), g = (0, import_react.useCallback)(() => {
|
||||||
|
i({ type: "CLOSE_ALL" });
|
||||||
|
}, []), A = (0, import_react.useCallback)(() => {
|
||||||
|
i({ type: "REMOVE_ALL" });
|
||||||
|
}, []);
|
||||||
|
return r({ open: f, close: D, unmount: E, closeAll: g, unmountAll: A }), u.current !== v && (v.overlayOrderList.forEach((p) => {
|
||||||
|
let O = u.current.overlayData, m = v.overlayData;
|
||||||
|
if (O[p] != null && O[p].isMounted === true) {
|
||||||
|
let k = O[p].isOpen === false, h = m[p].isOpen === true;
|
||||||
|
k && h && requestAnimationFrame(() => {
|
||||||
|
i({ type: "OPEN", overlayId: p });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}), u.current = v), (0, import_react.useEffect)(() => () => {
|
||||||
|
i({ type: "REMOVE_ALL" });
|
||||||
|
}, []), (0, import_jsx_runtime2.jsxs)(n, { value: v, children: [c, v.overlayOrderList.map((p) => {
|
||||||
|
let { id: O, componentKey: m, isOpen: k, controller: h } = v.overlayData[p];
|
||||||
|
return (0, import_jsx_runtime2.jsx)(M, { isOpen: k, controller: h, overlayId: O, overlayDispatch: i }, m);
|
||||||
|
})] });
|
||||||
|
}
|
||||||
|
return { overlay: t, OverlayProvider: d, useCurrentOverlay: o, useOverlayData: l };
|
||||||
|
}
|
||||||
|
var { overlay: He, OverlayProvider: Pe, useCurrentOverlay: Ke, useOverlayData: Se } = R();
|
||||||
|
function Me() {
|
||||||
|
return R();
|
||||||
|
}
|
||||||
|
function F(e) {
|
||||||
|
return e = e || /* @__PURE__ */ new Map(), { all: e, on(r, t) {
|
||||||
|
let n = e.get(r);
|
||||||
|
n ? n.push(t) : e.set(r, [t]);
|
||||||
|
}, off(r, t) {
|
||||||
|
let n = e.get(r);
|
||||||
|
n && (t ? n.splice(n.indexOf(t) >>> 0, 1) : e.set(r, []));
|
||||||
|
}, emit(r, t) {
|
||||||
|
let n = e.get(r);
|
||||||
|
n && n.slice().forEach((o) => {
|
||||||
|
o(t);
|
||||||
|
}), n = e.get("*"), n && n.slice().forEach((o) => {
|
||||||
|
o(r, t);
|
||||||
|
});
|
||||||
|
} };
|
||||||
|
}
|
||||||
|
var I = F();
|
||||||
|
function ne(...e) {
|
||||||
|
let r = typeof document != "undefined", t = typeof navigator != "undefined" && navigator.product === "ReactNative";
|
||||||
|
!r && !t || (0, import_react4.useLayoutEffect)(...e);
|
||||||
|
}
|
||||||
|
function oe(e, r) {
|
||||||
|
I.emit(e, r);
|
||||||
|
}
|
||||||
|
function b(e) {
|
||||||
|
function r(n) {
|
||||||
|
let o = Object.keys(n).reduce((l, d) => {
|
||||||
|
let s = `${e}:${d}`;
|
||||||
|
return y(a({}, l), { [s]: function(c) {
|
||||||
|
n[d](c);
|
||||||
|
} });
|
||||||
|
}, {});
|
||||||
|
ne(() => (Object.keys(o).forEach((l) => {
|
||||||
|
I.off(l, o[l]), I.on(l, o[l]);
|
||||||
|
}), () => Object.keys(o).forEach((l) => {
|
||||||
|
I.off(l, o[l]);
|
||||||
|
})), [o]);
|
||||||
|
}
|
||||||
|
function t(n) {
|
||||||
|
return (...o) => oe(`${e}:${String(n)}`, o[0]);
|
||||||
|
}
|
||||||
|
return [r, t];
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
Pe as OverlayProvider,
|
||||||
|
b as createUseExternalEvents,
|
||||||
|
Me as experimental_createOverlayContext,
|
||||||
|
He as overlay,
|
||||||
|
Ke as useCurrentOverlay,
|
||||||
|
Se as useOverlayData
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=overlay-kit.js.map
|
||||||
7
.vite/deps/overlay-kit.js.map
Normal file
7
.vite/deps/overlay-kit.js.map
Normal file
File diff suppressed because one or more lines are too long
3
.vite/deps/package.json
Normal file
3
.vite/deps/package.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
||||||
709
.vite/deps/react-cookie.js
vendored
Normal file
709
.vite/deps/react-cookie.js
vendored
Normal file
@@ -0,0 +1,709 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
__toESM
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/universal-cookie@8.0.1/node_modules/universal-cookie/esm/index.mjs
|
||||||
|
var dist = {};
|
||||||
|
var hasRequiredDist;
|
||||||
|
function requireDist() {
|
||||||
|
if (hasRequiredDist) return dist;
|
||||||
|
hasRequiredDist = 1;
|
||||||
|
Object.defineProperty(dist, "__esModule", { value: true });
|
||||||
|
dist.parse = parse;
|
||||||
|
dist.serialize = serialize;
|
||||||
|
const cookieNameRegExp = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/;
|
||||||
|
const cookieValueRegExp = /^[\u0021-\u003A\u003C-\u007E]*$/;
|
||||||
|
const domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
|
||||||
|
const pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/;
|
||||||
|
const __toString = Object.prototype.toString;
|
||||||
|
const NullObject = (() => {
|
||||||
|
const C = function() {
|
||||||
|
};
|
||||||
|
C.prototype = /* @__PURE__ */ Object.create(null);
|
||||||
|
return C;
|
||||||
|
})();
|
||||||
|
function parse(str, options) {
|
||||||
|
const obj = new NullObject();
|
||||||
|
const len = str.length;
|
||||||
|
if (len < 2)
|
||||||
|
return obj;
|
||||||
|
const dec = options?.decode || decode;
|
||||||
|
let index = 0;
|
||||||
|
do {
|
||||||
|
const eqIdx = str.indexOf("=", index);
|
||||||
|
if (eqIdx === -1)
|
||||||
|
break;
|
||||||
|
const colonIdx = str.indexOf(";", index);
|
||||||
|
const endIdx = colonIdx === -1 ? len : colonIdx;
|
||||||
|
if (eqIdx > endIdx) {
|
||||||
|
index = str.lastIndexOf(";", eqIdx - 1) + 1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
const keyStartIdx = startIndex(str, index, eqIdx);
|
||||||
|
const keyEndIdx = endIndex(str, eqIdx, keyStartIdx);
|
||||||
|
const key = str.slice(keyStartIdx, keyEndIdx);
|
||||||
|
if (obj[key] === void 0) {
|
||||||
|
let valStartIdx = startIndex(str, eqIdx + 1, endIdx);
|
||||||
|
let valEndIdx = endIndex(str, endIdx, valStartIdx);
|
||||||
|
const value = dec(str.slice(valStartIdx, valEndIdx));
|
||||||
|
obj[key] = value;
|
||||||
|
}
|
||||||
|
index = endIdx + 1;
|
||||||
|
} while (index < len);
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
function startIndex(str, index, max) {
|
||||||
|
do {
|
||||||
|
const code = str.charCodeAt(index);
|
||||||
|
if (code !== 32 && code !== 9)
|
||||||
|
return index;
|
||||||
|
} while (++index < max);
|
||||||
|
return max;
|
||||||
|
}
|
||||||
|
function endIndex(str, index, min) {
|
||||||
|
while (index > min) {
|
||||||
|
const code = str.charCodeAt(--index);
|
||||||
|
if (code !== 32 && code !== 9)
|
||||||
|
return index + 1;
|
||||||
|
}
|
||||||
|
return min;
|
||||||
|
}
|
||||||
|
function serialize(name, val, options) {
|
||||||
|
const enc = options?.encode || encodeURIComponent;
|
||||||
|
if (!cookieNameRegExp.test(name)) {
|
||||||
|
throw new TypeError(`argument name is invalid: ${name}`);
|
||||||
|
}
|
||||||
|
const value = enc(val);
|
||||||
|
if (!cookieValueRegExp.test(value)) {
|
||||||
|
throw new TypeError(`argument val is invalid: ${val}`);
|
||||||
|
}
|
||||||
|
let str = name + "=" + value;
|
||||||
|
if (!options)
|
||||||
|
return str;
|
||||||
|
if (options.maxAge !== void 0) {
|
||||||
|
if (!Number.isInteger(options.maxAge)) {
|
||||||
|
throw new TypeError(`option maxAge is invalid: ${options.maxAge}`);
|
||||||
|
}
|
||||||
|
str += "; Max-Age=" + options.maxAge;
|
||||||
|
}
|
||||||
|
if (options.domain) {
|
||||||
|
if (!domainValueRegExp.test(options.domain)) {
|
||||||
|
throw new TypeError(`option domain is invalid: ${options.domain}`);
|
||||||
|
}
|
||||||
|
str += "; Domain=" + options.domain;
|
||||||
|
}
|
||||||
|
if (options.path) {
|
||||||
|
if (!pathValueRegExp.test(options.path)) {
|
||||||
|
throw new TypeError(`option path is invalid: ${options.path}`);
|
||||||
|
}
|
||||||
|
str += "; Path=" + options.path;
|
||||||
|
}
|
||||||
|
if (options.expires) {
|
||||||
|
if (!isDate(options.expires) || !Number.isFinite(options.expires.valueOf())) {
|
||||||
|
throw new TypeError(`option expires is invalid: ${options.expires}`);
|
||||||
|
}
|
||||||
|
str += "; Expires=" + options.expires.toUTCString();
|
||||||
|
}
|
||||||
|
if (options.httpOnly) {
|
||||||
|
str += "; HttpOnly";
|
||||||
|
}
|
||||||
|
if (options.secure) {
|
||||||
|
str += "; Secure";
|
||||||
|
}
|
||||||
|
if (options.partitioned) {
|
||||||
|
str += "; Partitioned";
|
||||||
|
}
|
||||||
|
if (options.priority) {
|
||||||
|
const priority = typeof options.priority === "string" ? options.priority.toLowerCase() : void 0;
|
||||||
|
switch (priority) {
|
||||||
|
case "low":
|
||||||
|
str += "; Priority=Low";
|
||||||
|
break;
|
||||||
|
case "medium":
|
||||||
|
str += "; Priority=Medium";
|
||||||
|
break;
|
||||||
|
case "high":
|
||||||
|
str += "; Priority=High";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
throw new TypeError(`option priority is invalid: ${options.priority}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (options.sameSite) {
|
||||||
|
const sameSite = typeof options.sameSite === "string" ? options.sameSite.toLowerCase() : options.sameSite;
|
||||||
|
switch (sameSite) {
|
||||||
|
case true:
|
||||||
|
case "strict":
|
||||||
|
str += "; SameSite=Strict";
|
||||||
|
break;
|
||||||
|
case "lax":
|
||||||
|
str += "; SameSite=Lax";
|
||||||
|
break;
|
||||||
|
case "none":
|
||||||
|
str += "; SameSite=None";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
throw new TypeError(`option sameSite is invalid: ${options.sameSite}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
function decode(str) {
|
||||||
|
if (str.indexOf("%") === -1)
|
||||||
|
return str;
|
||||||
|
try {
|
||||||
|
return decodeURIComponent(str);
|
||||||
|
} catch (e) {
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function isDate(val) {
|
||||||
|
return __toString.call(val) === "[object Date]";
|
||||||
|
}
|
||||||
|
return dist;
|
||||||
|
}
|
||||||
|
var distExports = requireDist();
|
||||||
|
function hasDocumentCookie() {
|
||||||
|
const testingValue = typeof global === "undefined" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
|
||||||
|
if (typeof testingValue === "boolean") {
|
||||||
|
return testingValue;
|
||||||
|
}
|
||||||
|
return typeof document === "object" && typeof document.cookie === "string";
|
||||||
|
}
|
||||||
|
function parseCookies(cookies) {
|
||||||
|
if (typeof cookies === "string") {
|
||||||
|
return distExports.parse(cookies);
|
||||||
|
} else if (typeof cookies === "object" && cookies !== null) {
|
||||||
|
return cookies;
|
||||||
|
} else {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function readCookie(value, options = {}) {
|
||||||
|
const cleanValue = cleanupCookieValue(value);
|
||||||
|
if (!options.doNotParse) {
|
||||||
|
try {
|
||||||
|
return JSON.parse(cleanValue);
|
||||||
|
} catch (e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
function cleanupCookieValue(value) {
|
||||||
|
if (value && value[0] === "j" && value[1] === ":") {
|
||||||
|
return value.substr(2);
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
var Cookies = class {
|
||||||
|
constructor(cookies, defaultSetOptions = {}) {
|
||||||
|
this.changeListeners = [];
|
||||||
|
this.HAS_DOCUMENT_COOKIE = false;
|
||||||
|
this.update = () => {
|
||||||
|
if (!this.HAS_DOCUMENT_COOKIE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const previousCookies = this.cookies;
|
||||||
|
this.cookies = distExports.parse(document.cookie);
|
||||||
|
this._checkChanges(previousCookies);
|
||||||
|
};
|
||||||
|
const domCookies = typeof document === "undefined" ? "" : document.cookie;
|
||||||
|
this.cookies = parseCookies(cookies || domCookies);
|
||||||
|
this.defaultSetOptions = defaultSetOptions;
|
||||||
|
this.HAS_DOCUMENT_COOKIE = hasDocumentCookie();
|
||||||
|
}
|
||||||
|
_emitChange(params) {
|
||||||
|
for (let i = 0; i < this.changeListeners.length; ++i) {
|
||||||
|
this.changeListeners[i](params);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_checkChanges(previousCookies) {
|
||||||
|
const names = new Set(Object.keys(previousCookies).concat(Object.keys(this.cookies)));
|
||||||
|
names.forEach((name) => {
|
||||||
|
if (previousCookies[name] !== this.cookies[name]) {
|
||||||
|
this._emitChange({
|
||||||
|
name,
|
||||||
|
value: readCookie(this.cookies[name])
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
_startPolling() {
|
||||||
|
this.pollingInterval = setInterval(this.update, 300);
|
||||||
|
}
|
||||||
|
_stopPolling() {
|
||||||
|
if (this.pollingInterval) {
|
||||||
|
clearInterval(this.pollingInterval);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
get(name, options = {}) {
|
||||||
|
if (!options.doNotUpdate) {
|
||||||
|
this.update();
|
||||||
|
}
|
||||||
|
return readCookie(this.cookies[name], options);
|
||||||
|
}
|
||||||
|
getAll(options = {}) {
|
||||||
|
if (!options.doNotUpdate) {
|
||||||
|
this.update();
|
||||||
|
}
|
||||||
|
const result = {};
|
||||||
|
for (let name in this.cookies) {
|
||||||
|
result[name] = readCookie(this.cookies[name], options);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
set(name, value, options) {
|
||||||
|
if (options) {
|
||||||
|
options = Object.assign(Object.assign({}, this.defaultSetOptions), options);
|
||||||
|
} else {
|
||||||
|
options = this.defaultSetOptions;
|
||||||
|
}
|
||||||
|
const stringValue = typeof value === "string" ? value : JSON.stringify(value);
|
||||||
|
this.cookies = Object.assign(Object.assign({}, this.cookies), { [name]: stringValue });
|
||||||
|
if (this.HAS_DOCUMENT_COOKIE) {
|
||||||
|
document.cookie = distExports.serialize(name, stringValue, options);
|
||||||
|
}
|
||||||
|
this._emitChange({ name, value, options });
|
||||||
|
}
|
||||||
|
remove(name, options) {
|
||||||
|
const finalOptions = options = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), options), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 });
|
||||||
|
this.cookies = Object.assign({}, this.cookies);
|
||||||
|
delete this.cookies[name];
|
||||||
|
if (this.HAS_DOCUMENT_COOKIE) {
|
||||||
|
document.cookie = distExports.serialize(name, "", finalOptions);
|
||||||
|
}
|
||||||
|
this._emitChange({ name, value: void 0, options });
|
||||||
|
}
|
||||||
|
addChangeListener(callback) {
|
||||||
|
this.changeListeners.push(callback);
|
||||||
|
if (this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 1) {
|
||||||
|
if (typeof window === "object" && "cookieStore" in window) {
|
||||||
|
window.cookieStore.addEventListener("change", this.update);
|
||||||
|
} else {
|
||||||
|
this._startPolling();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
removeChangeListener(callback) {
|
||||||
|
const idx = this.changeListeners.indexOf(callback);
|
||||||
|
if (idx >= 0) {
|
||||||
|
this.changeListeners.splice(idx, 1);
|
||||||
|
}
|
||||||
|
if (this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 0) {
|
||||||
|
if (typeof window === "object" && "cookieStore" in window) {
|
||||||
|
window.cookieStore.removeEventListener("change", this.update);
|
||||||
|
} else {
|
||||||
|
this._stopPolling();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
removeAllChangeListeners() {
|
||||||
|
while (this.changeListeners.length > 0) {
|
||||||
|
this.removeChangeListener(this.changeListeners[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-cookie@8.0.1_@types+react@19.1.10_react@19.1.1/node_modules/react-cookie/esm/index.mjs
|
||||||
|
var React = __toESM(require_react(), 1);
|
||||||
|
var import_react = __toESM(require_react(), 1);
|
||||||
|
var CookiesContext = React.createContext(null);
|
||||||
|
var { Provider, Consumer } = CookiesContext;
|
||||||
|
var CookiesProvider = (props) => {
|
||||||
|
const cookies = React.useMemo(() => {
|
||||||
|
if (props.cookies) {
|
||||||
|
return props.cookies;
|
||||||
|
} else {
|
||||||
|
return new Cookies(void 0, props.defaultSetOptions);
|
||||||
|
}
|
||||||
|
}, [props.cookies, props.defaultSetOptions]);
|
||||||
|
return React.createElement(Provider, { value: cookies }, props.children);
|
||||||
|
};
|
||||||
|
function __rest(s, e) {
|
||||||
|
var t = {};
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||||
|
t[p] = s[p];
|
||||||
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||||
|
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||||
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||||
|
t[p[i]] = s[p[i]];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
function getDefaultExportFromCjs(x) {
|
||||||
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
||||||
|
}
|
||||||
|
var reactIs = { exports: {} };
|
||||||
|
var reactIs_development = {};
|
||||||
|
var hasRequiredReactIs_development;
|
||||||
|
function requireReactIs_development() {
|
||||||
|
if (hasRequiredReactIs_development) return reactIs_development;
|
||||||
|
hasRequiredReactIs_development = 1;
|
||||||
|
if (true) {
|
||||||
|
(function() {
|
||||||
|
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
||||||
|
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
||||||
|
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
||||||
|
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
||||||
|
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
||||||
|
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
||||||
|
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
||||||
|
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
||||||
|
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
||||||
|
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
||||||
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
||||||
|
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
||||||
|
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
||||||
|
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
||||||
|
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
||||||
|
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
||||||
|
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
||||||
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
||||||
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
||||||
|
function isValidElementType(type) {
|
||||||
|
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
||||||
|
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
||||||
|
}
|
||||||
|
function typeOf(object) {
|
||||||
|
if (typeof object === "object" && object !== null) {
|
||||||
|
var $$typeof = object.$$typeof;
|
||||||
|
switch ($$typeof) {
|
||||||
|
case REACT_ELEMENT_TYPE:
|
||||||
|
var type = object.type;
|
||||||
|
switch (type) {
|
||||||
|
case REACT_ASYNC_MODE_TYPE:
|
||||||
|
case REACT_CONCURRENT_MODE_TYPE:
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return type;
|
||||||
|
default:
|
||||||
|
var $$typeofType = type && type.$$typeof;
|
||||||
|
switch ($$typeofType) {
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
case REACT_LAZY_TYPE:
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
case REACT_PROVIDER_TYPE:
|
||||||
|
return $$typeofType;
|
||||||
|
default:
|
||||||
|
return $$typeof;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return $$typeof;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
|
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
||||||
|
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
||||||
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
||||||
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
||||||
|
var Element = REACT_ELEMENT_TYPE;
|
||||||
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
||||||
|
var Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
var Lazy = REACT_LAZY_TYPE;
|
||||||
|
var Memo = REACT_MEMO_TYPE;
|
||||||
|
var Portal = REACT_PORTAL_TYPE;
|
||||||
|
var Profiler = REACT_PROFILER_TYPE;
|
||||||
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
||||||
|
var Suspense = REACT_SUSPENSE_TYPE;
|
||||||
|
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
||||||
|
function isAsyncMode(object) {
|
||||||
|
{
|
||||||
|
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
||||||
|
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
||||||
|
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isConcurrentMode(object) {
|
||||||
|
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isContextConsumer(object) {
|
||||||
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
||||||
|
}
|
||||||
|
function isContextProvider(object) {
|
||||||
|
return typeOf(object) === REACT_PROVIDER_TYPE;
|
||||||
|
}
|
||||||
|
function isElement(object) {
|
||||||
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
function isForwardRef(object) {
|
||||||
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
||||||
|
}
|
||||||
|
function isFragment(object) {
|
||||||
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
||||||
|
}
|
||||||
|
function isLazy(object) {
|
||||||
|
return typeOf(object) === REACT_LAZY_TYPE;
|
||||||
|
}
|
||||||
|
function isMemo(object) {
|
||||||
|
return typeOf(object) === REACT_MEMO_TYPE;
|
||||||
|
}
|
||||||
|
function isPortal(object) {
|
||||||
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
||||||
|
}
|
||||||
|
function isProfiler(object) {
|
||||||
|
return typeOf(object) === REACT_PROFILER_TYPE;
|
||||||
|
}
|
||||||
|
function isStrictMode(object) {
|
||||||
|
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
||||||
|
}
|
||||||
|
function isSuspense(object) {
|
||||||
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
||||||
|
}
|
||||||
|
reactIs_development.AsyncMode = AsyncMode;
|
||||||
|
reactIs_development.ConcurrentMode = ConcurrentMode;
|
||||||
|
reactIs_development.ContextConsumer = ContextConsumer;
|
||||||
|
reactIs_development.ContextProvider = ContextProvider;
|
||||||
|
reactIs_development.Element = Element;
|
||||||
|
reactIs_development.ForwardRef = ForwardRef;
|
||||||
|
reactIs_development.Fragment = Fragment;
|
||||||
|
reactIs_development.Lazy = Lazy;
|
||||||
|
reactIs_development.Memo = Memo;
|
||||||
|
reactIs_development.Portal = Portal;
|
||||||
|
reactIs_development.Profiler = Profiler;
|
||||||
|
reactIs_development.StrictMode = StrictMode;
|
||||||
|
reactIs_development.Suspense = Suspense;
|
||||||
|
reactIs_development.isAsyncMode = isAsyncMode;
|
||||||
|
reactIs_development.isConcurrentMode = isConcurrentMode;
|
||||||
|
reactIs_development.isContextConsumer = isContextConsumer;
|
||||||
|
reactIs_development.isContextProvider = isContextProvider;
|
||||||
|
reactIs_development.isElement = isElement;
|
||||||
|
reactIs_development.isForwardRef = isForwardRef;
|
||||||
|
reactIs_development.isFragment = isFragment;
|
||||||
|
reactIs_development.isLazy = isLazy;
|
||||||
|
reactIs_development.isMemo = isMemo;
|
||||||
|
reactIs_development.isPortal = isPortal;
|
||||||
|
reactIs_development.isProfiler = isProfiler;
|
||||||
|
reactIs_development.isStrictMode = isStrictMode;
|
||||||
|
reactIs_development.isSuspense = isSuspense;
|
||||||
|
reactIs_development.isValidElementType = isValidElementType;
|
||||||
|
reactIs_development.typeOf = typeOf;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
return reactIs_development;
|
||||||
|
}
|
||||||
|
var hasRequiredReactIs;
|
||||||
|
function requireReactIs() {
|
||||||
|
if (hasRequiredReactIs) return reactIs.exports;
|
||||||
|
hasRequiredReactIs = 1;
|
||||||
|
if (false) {
|
||||||
|
reactIs.exports = requireReactIs_production_min();
|
||||||
|
} else {
|
||||||
|
reactIs.exports = requireReactIs_development();
|
||||||
|
}
|
||||||
|
return reactIs.exports;
|
||||||
|
}
|
||||||
|
var hoistNonReactStatics_cjs;
|
||||||
|
var hasRequiredHoistNonReactStatics_cjs;
|
||||||
|
function requireHoistNonReactStatics_cjs() {
|
||||||
|
if (hasRequiredHoistNonReactStatics_cjs) return hoistNonReactStatics_cjs;
|
||||||
|
hasRequiredHoistNonReactStatics_cjs = 1;
|
||||||
|
var reactIs2 = requireReactIs();
|
||||||
|
var REACT_STATICS = {
|
||||||
|
childContextTypes: true,
|
||||||
|
contextType: true,
|
||||||
|
contextTypes: true,
|
||||||
|
defaultProps: true,
|
||||||
|
displayName: true,
|
||||||
|
getDefaultProps: true,
|
||||||
|
getDerivedStateFromError: true,
|
||||||
|
getDerivedStateFromProps: true,
|
||||||
|
mixins: true,
|
||||||
|
propTypes: true,
|
||||||
|
type: true
|
||||||
|
};
|
||||||
|
var KNOWN_STATICS = {
|
||||||
|
name: true,
|
||||||
|
length: true,
|
||||||
|
prototype: true,
|
||||||
|
caller: true,
|
||||||
|
callee: true,
|
||||||
|
arguments: true,
|
||||||
|
arity: true
|
||||||
|
};
|
||||||
|
var FORWARD_REF_STATICS = {
|
||||||
|
"$$typeof": true,
|
||||||
|
render: true,
|
||||||
|
defaultProps: true,
|
||||||
|
displayName: true,
|
||||||
|
propTypes: true
|
||||||
|
};
|
||||||
|
var MEMO_STATICS = {
|
||||||
|
"$$typeof": true,
|
||||||
|
compare: true,
|
||||||
|
defaultProps: true,
|
||||||
|
displayName: true,
|
||||||
|
propTypes: true,
|
||||||
|
type: true
|
||||||
|
};
|
||||||
|
var TYPE_STATICS = {};
|
||||||
|
TYPE_STATICS[reactIs2.ForwardRef] = FORWARD_REF_STATICS;
|
||||||
|
TYPE_STATICS[reactIs2.Memo] = MEMO_STATICS;
|
||||||
|
function getStatics(component) {
|
||||||
|
if (reactIs2.isMemo(component)) {
|
||||||
|
return MEMO_STATICS;
|
||||||
|
}
|
||||||
|
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
||||||
|
}
|
||||||
|
var defineProperty = Object.defineProperty;
|
||||||
|
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
||||||
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
||||||
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||||||
|
var getPrototypeOf = Object.getPrototypeOf;
|
||||||
|
var objectPrototype = Object.prototype;
|
||||||
|
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
||||||
|
if (typeof sourceComponent !== "string") {
|
||||||
|
if (objectPrototype) {
|
||||||
|
var inheritedComponent = getPrototypeOf(sourceComponent);
|
||||||
|
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
||||||
|
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var keys = getOwnPropertyNames(sourceComponent);
|
||||||
|
if (getOwnPropertySymbols) {
|
||||||
|
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
||||||
|
}
|
||||||
|
var targetStatics = getStatics(targetComponent);
|
||||||
|
var sourceStatics = getStatics(sourceComponent);
|
||||||
|
for (var i = 0; i < keys.length; ++i) {
|
||||||
|
var key = keys[i];
|
||||||
|
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
||||||
|
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
||||||
|
try {
|
||||||
|
defineProperty(targetComponent, key, descriptor);
|
||||||
|
} catch (e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return targetComponent;
|
||||||
|
}
|
||||||
|
hoistNonReactStatics_cjs = hoistNonReactStatics;
|
||||||
|
return hoistNonReactStatics_cjs;
|
||||||
|
}
|
||||||
|
var hoistNonReactStatics_cjsExports = requireHoistNonReactStatics_cjs();
|
||||||
|
var hoistStatics = getDefaultExportFromCjs(hoistNonReactStatics_cjsExports);
|
||||||
|
function withCookies(WrappedComponent) {
|
||||||
|
const name = WrappedComponent.displayName || WrappedComponent.name;
|
||||||
|
class CookieWrapper extends React.Component {
|
||||||
|
constructor() {
|
||||||
|
super(...arguments);
|
||||||
|
this.onChange = () => {
|
||||||
|
this.forceUpdate();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
listen() {
|
||||||
|
this.props.cookies.addChangeListener(this.onChange);
|
||||||
|
}
|
||||||
|
unlisten(cookies) {
|
||||||
|
(cookies || this.props.cookies).removeChangeListener(this.onChange);
|
||||||
|
}
|
||||||
|
componentDidMount() {
|
||||||
|
this.listen();
|
||||||
|
}
|
||||||
|
componentDidUpdate(prevProps) {
|
||||||
|
if (prevProps.cookies !== this.props.cookies) {
|
||||||
|
this.unlisten(prevProps.cookies);
|
||||||
|
this.listen();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
componentWillUnmount() {
|
||||||
|
this.unlisten();
|
||||||
|
}
|
||||||
|
render() {
|
||||||
|
const _a = this.props, { forwardedRef, cookies } = _a, restProps = __rest(_a, ["forwardedRef", "cookies"]);
|
||||||
|
const allCookies = cookies.getAll({ doNotUpdate: true });
|
||||||
|
return React.createElement(WrappedComponent, Object.assign({}, restProps, { ref: forwardedRef, cookies, allCookies }));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CookieWrapper.displayName = `withCookies(${name})`;
|
||||||
|
CookieWrapper.WrappedComponent = WrappedComponent;
|
||||||
|
const ForwardedComponent = React.forwardRef((props, ref) => {
|
||||||
|
return React.createElement(Consumer, null, (cookies) => React.createElement(CookieWrapper, Object.assign({ cookies }, props, { forwardedRef: ref })));
|
||||||
|
});
|
||||||
|
ForwardedComponent.displayName = CookieWrapper.displayName;
|
||||||
|
ForwardedComponent.WrappedComponent = CookieWrapper.WrappedComponent;
|
||||||
|
return hoistStatics(ForwardedComponent, WrappedComponent);
|
||||||
|
}
|
||||||
|
function isInBrowser() {
|
||||||
|
return typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
||||||
|
}
|
||||||
|
function useCookies(dependencies, options) {
|
||||||
|
const cookies = (0, import_react.useContext)(CookiesContext);
|
||||||
|
if (!cookies) {
|
||||||
|
throw new Error("Missing <CookiesProvider>");
|
||||||
|
}
|
||||||
|
const defaultOptions = { doNotUpdate: true };
|
||||||
|
const getOptions = Object.assign(Object.assign({}, defaultOptions), options);
|
||||||
|
const [allCookies, setCookies] = (0, import_react.useState)(() => cookies.getAll(getOptions));
|
||||||
|
if (isInBrowser()) {
|
||||||
|
(0, import_react.useLayoutEffect)(() => {
|
||||||
|
function onChange() {
|
||||||
|
if (!cookies) {
|
||||||
|
throw new Error("Missing <CookiesProvider>");
|
||||||
|
}
|
||||||
|
const newCookies = cookies.getAll(getOptions);
|
||||||
|
if (shouldUpdate(dependencies || null, newCookies, allCookies)) {
|
||||||
|
setCookies(newCookies);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cookies.addChangeListener(onChange);
|
||||||
|
return () => {
|
||||||
|
cookies.removeChangeListener(onChange);
|
||||||
|
};
|
||||||
|
}, [cookies, allCookies]);
|
||||||
|
}
|
||||||
|
const setCookie = (0, import_react.useMemo)(() => cookies.set.bind(cookies), [cookies]);
|
||||||
|
const removeCookie = (0, import_react.useMemo)(() => cookies.remove.bind(cookies), [cookies]);
|
||||||
|
const updateCookies = (0, import_react.useMemo)(() => cookies.update.bind(cookies), [cookies]);
|
||||||
|
return [allCookies, setCookie, removeCookie, updateCookies];
|
||||||
|
}
|
||||||
|
function shouldUpdate(dependencies, newCookies, oldCookies) {
|
||||||
|
if (!dependencies) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
for (let dependency of dependencies) {
|
||||||
|
if (newCookies[dependency] !== oldCookies[dependency]) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
Cookies,
|
||||||
|
CookiesProvider,
|
||||||
|
useCookies,
|
||||||
|
withCookies
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react-cookie/esm/index.mjs:
|
||||||
|
(** @license React v16.13.1
|
||||||
|
* react-is.production.min.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
|
||||||
|
react-cookie/esm/index.mjs:
|
||||||
|
(** @license React v16.13.1
|
||||||
|
* react-is.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=react-cookie.js.map
|
||||||
7
.vite/deps/react-cookie.js.map
Normal file
7
.vite/deps/react-cookie.js.map
Normal file
File diff suppressed because one or more lines are too long
6
.vite/deps/react-dom.js
vendored
Normal file
6
.vite/deps/react-dom.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import {
|
||||||
|
require_react_dom
|
||||||
|
} from "./chunk-65SL2JMO.js";
|
||||||
|
import "./chunk-R7JHQV4C.js";
|
||||||
|
import "./chunk-PLDDJCW6.js";
|
||||||
|
export default require_react_dom();
|
||||||
7
.vite/deps/react-dom.js.map
Normal file
7
.vite/deps/react-dom.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
18108
.vite/deps/react-dom_client.js
vendored
Normal file
18108
.vite/deps/react-dom_client.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/react-dom_client.js.map
Normal file
7
.vite/deps/react-dom_client.js.map
Normal file
File diff suppressed because one or more lines are too long
154
.vite/deps/react-error-boundary.js
vendored
Normal file
154
.vite/deps/react-error-boundary.js
vendored
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
"use client";
|
||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
__toESM
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-error-boundary@6.0.0_react@19.1.1/node_modules/react-error-boundary/dist/react-error-boundary.development.js
|
||||||
|
var import_react = __toESM(require_react());
|
||||||
|
var ErrorBoundaryContext = (0, import_react.createContext)(null);
|
||||||
|
var initialState = {
|
||||||
|
didCatch: false,
|
||||||
|
error: null
|
||||||
|
};
|
||||||
|
var ErrorBoundary = class extends import_react.Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.resetErrorBoundary = this.resetErrorBoundary.bind(this);
|
||||||
|
this.state = initialState;
|
||||||
|
}
|
||||||
|
static getDerivedStateFromError(error) {
|
||||||
|
return {
|
||||||
|
didCatch: true,
|
||||||
|
error
|
||||||
|
};
|
||||||
|
}
|
||||||
|
resetErrorBoundary() {
|
||||||
|
const {
|
||||||
|
error
|
||||||
|
} = this.state;
|
||||||
|
if (error !== null) {
|
||||||
|
var _this$props$onReset, _this$props;
|
||||||
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||||
|
args[_key] = arguments[_key];
|
||||||
|
}
|
||||||
|
(_this$props$onReset = (_this$props = this.props).onReset) === null || _this$props$onReset === void 0 ? void 0 : _this$props$onReset.call(_this$props, {
|
||||||
|
args,
|
||||||
|
reason: "imperative-api"
|
||||||
|
});
|
||||||
|
this.setState(initialState);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
componentDidCatch(error, info) {
|
||||||
|
var _this$props$onError, _this$props2;
|
||||||
|
(_this$props$onError = (_this$props2 = this.props).onError) === null || _this$props$onError === void 0 ? void 0 : _this$props$onError.call(_this$props2, error, info);
|
||||||
|
}
|
||||||
|
componentDidUpdate(prevProps, prevState) {
|
||||||
|
const {
|
||||||
|
didCatch
|
||||||
|
} = this.state;
|
||||||
|
const {
|
||||||
|
resetKeys
|
||||||
|
} = this.props;
|
||||||
|
if (didCatch && prevState.error !== null && hasArrayChanged(prevProps.resetKeys, resetKeys)) {
|
||||||
|
var _this$props$onReset2, _this$props3;
|
||||||
|
(_this$props$onReset2 = (_this$props3 = this.props).onReset) === null || _this$props$onReset2 === void 0 ? void 0 : _this$props$onReset2.call(_this$props3, {
|
||||||
|
next: resetKeys,
|
||||||
|
prev: prevProps.resetKeys,
|
||||||
|
reason: "keys"
|
||||||
|
});
|
||||||
|
this.setState(initialState);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
render() {
|
||||||
|
const {
|
||||||
|
children,
|
||||||
|
fallbackRender,
|
||||||
|
FallbackComponent,
|
||||||
|
fallback
|
||||||
|
} = this.props;
|
||||||
|
const {
|
||||||
|
didCatch,
|
||||||
|
error
|
||||||
|
} = this.state;
|
||||||
|
let childToRender = children;
|
||||||
|
if (didCatch) {
|
||||||
|
const props = {
|
||||||
|
error,
|
||||||
|
resetErrorBoundary: this.resetErrorBoundary
|
||||||
|
};
|
||||||
|
if (typeof fallbackRender === "function") {
|
||||||
|
childToRender = fallbackRender(props);
|
||||||
|
} else if (FallbackComponent) {
|
||||||
|
childToRender = (0, import_react.createElement)(FallbackComponent, props);
|
||||||
|
} else if (fallback !== void 0) {
|
||||||
|
childToRender = fallback;
|
||||||
|
} else {
|
||||||
|
{
|
||||||
|
console.error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop");
|
||||||
|
}
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return (0, import_react.createElement)(ErrorBoundaryContext.Provider, {
|
||||||
|
value: {
|
||||||
|
didCatch,
|
||||||
|
error,
|
||||||
|
resetErrorBoundary: this.resetErrorBoundary
|
||||||
|
}
|
||||||
|
}, childToRender);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function hasArrayChanged() {
|
||||||
|
let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
||||||
|
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
||||||
|
return a.length !== b.length || a.some((item, index) => !Object.is(item, b[index]));
|
||||||
|
}
|
||||||
|
function assertErrorBoundaryContext(value) {
|
||||||
|
if (value == null || typeof value.didCatch !== "boolean" || typeof value.resetErrorBoundary !== "function") {
|
||||||
|
throw new Error("ErrorBoundaryContext not found");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function useErrorBoundary() {
|
||||||
|
const context = (0, import_react.useContext)(ErrorBoundaryContext);
|
||||||
|
assertErrorBoundaryContext(context);
|
||||||
|
const [state, setState] = (0, import_react.useState)({
|
||||||
|
error: null,
|
||||||
|
hasError: false
|
||||||
|
});
|
||||||
|
const memoized = (0, import_react.useMemo)(() => ({
|
||||||
|
resetBoundary: () => {
|
||||||
|
context.resetErrorBoundary();
|
||||||
|
setState({
|
||||||
|
error: null,
|
||||||
|
hasError: false
|
||||||
|
});
|
||||||
|
},
|
||||||
|
showBoundary: (error) => setState({
|
||||||
|
error,
|
||||||
|
hasError: true
|
||||||
|
})
|
||||||
|
}), [context.resetErrorBoundary]);
|
||||||
|
if (state.hasError) {
|
||||||
|
throw state.error;
|
||||||
|
}
|
||||||
|
return memoized;
|
||||||
|
}
|
||||||
|
function withErrorBoundary(component, errorBoundaryProps) {
|
||||||
|
const Wrapped = (0, import_react.forwardRef)((props, ref) => (0, import_react.createElement)(ErrorBoundary, errorBoundaryProps, (0, import_react.createElement)(component, {
|
||||||
|
...props,
|
||||||
|
ref
|
||||||
|
})));
|
||||||
|
const name = component.displayName || component.name || "Unknown";
|
||||||
|
Wrapped.displayName = "withErrorBoundary(".concat(name, ")");
|
||||||
|
return Wrapped;
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
ErrorBoundary,
|
||||||
|
ErrorBoundaryContext,
|
||||||
|
useErrorBoundary,
|
||||||
|
withErrorBoundary
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=react-error-boundary.js.map
|
||||||
7
.vite/deps/react-error-boundary.js.map
Normal file
7
.vite/deps/react-error-boundary.js.map
Normal file
File diff suppressed because one or more lines are too long
875
.vite/deps/react-i18next.js
vendored
Normal file
875
.vite/deps/react-i18next.js
vendored
Normal file
@@ -0,0 +1,875 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
__commonJS,
|
||||||
|
__toESM
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/void-elements@3.1.0/node_modules/void-elements/index.js
|
||||||
|
var require_void_elements = __commonJS({
|
||||||
|
"node_modules/.pnpm/void-elements@3.1.0/node_modules/void-elements/index.js"(exports, module) {
|
||||||
|
module.exports = {
|
||||||
|
"area": true,
|
||||||
|
"base": true,
|
||||||
|
"br": true,
|
||||||
|
"col": true,
|
||||||
|
"embed": true,
|
||||||
|
"hr": true,
|
||||||
|
"img": true,
|
||||||
|
"input": true,
|
||||||
|
"link": true,
|
||||||
|
"meta": true,
|
||||||
|
"param": true,
|
||||||
|
"source": true,
|
||||||
|
"track": true,
|
||||||
|
"wbr": true
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/Trans.js
|
||||||
|
var import_react3 = __toESM(require_react(), 1);
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/TransWithoutContext.js
|
||||||
|
var import_react = __toESM(require_react(), 1);
|
||||||
|
|
||||||
|
// node_modules/.pnpm/html-parse-stringify@3.0.1/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
|
||||||
|
var import_void_elements = __toESM(require_void_elements());
|
||||||
|
var t = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
|
||||||
|
function n(n2) {
|
||||||
|
var r2 = { type: "tag", name: "", voidElement: false, attrs: {}, children: [] }, i2 = n2.match(/<\/?([^\s]+?)[/\s>]/);
|
||||||
|
if (i2 && (r2.name = i2[1], (import_void_elements.default[i2[1]] || "/" === n2.charAt(n2.length - 2)) && (r2.voidElement = true), r2.name.startsWith("!--"))) {
|
||||||
|
var s2 = n2.indexOf("-->");
|
||||||
|
return { type: "comment", comment: -1 !== s2 ? n2.slice(4, s2) : "" };
|
||||||
|
}
|
||||||
|
for (var a2 = new RegExp(t), c2 = null; null !== (c2 = a2.exec(n2)); ) if (c2[0].trim()) if (c2[1]) {
|
||||||
|
var o = c2[1].trim(), l = [o, ""];
|
||||||
|
o.indexOf("=") > -1 && (l = o.split("=")), r2.attrs[l[0]] = l[1], a2.lastIndex--;
|
||||||
|
} else c2[2] && (r2.attrs[c2[2]] = c2[3].trim().substring(1, c2[3].length - 1));
|
||||||
|
return r2;
|
||||||
|
}
|
||||||
|
var r = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g;
|
||||||
|
var i = /^\s*$/;
|
||||||
|
var s = /* @__PURE__ */ Object.create(null);
|
||||||
|
function a(e2, t2) {
|
||||||
|
switch (t2.type) {
|
||||||
|
case "text":
|
||||||
|
return e2 + t2.content;
|
||||||
|
case "tag":
|
||||||
|
return e2 += "<" + t2.name + (t2.attrs ? function(e3) {
|
||||||
|
var t3 = [];
|
||||||
|
for (var n2 in e3) t3.push(n2 + '="' + e3[n2] + '"');
|
||||||
|
return t3.length ? " " + t3.join(" ") : "";
|
||||||
|
}(t2.attrs) : "") + (t2.voidElement ? "/>" : ">"), t2.voidElement ? e2 : e2 + t2.children.reduce(a, "") + "</" + t2.name + ">";
|
||||||
|
case "comment":
|
||||||
|
return e2 + "<!--" + t2.comment + "-->";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var c = { parse: function(e2, t2) {
|
||||||
|
t2 || (t2 = {}), t2.components || (t2.components = s);
|
||||||
|
var a2, c2 = [], o = [], l = -1, m = false;
|
||||||
|
if (0 !== e2.indexOf("<")) {
|
||||||
|
var u = e2.indexOf("<");
|
||||||
|
c2.push({ type: "text", content: -1 === u ? e2 : e2.substring(0, u) });
|
||||||
|
}
|
||||||
|
return e2.replace(r, function(r2, s2) {
|
||||||
|
if (m) {
|
||||||
|
if (r2 !== "</" + a2.name + ">") return;
|
||||||
|
m = false;
|
||||||
|
}
|
||||||
|
var u2, f = "/" !== r2.charAt(1), h = r2.startsWith("<!--"), p = s2 + r2.length, d = e2.charAt(p);
|
||||||
|
if (h) {
|
||||||
|
var v = n(r2);
|
||||||
|
return l < 0 ? (c2.push(v), c2) : ((u2 = o[l]).children.push(v), c2);
|
||||||
|
}
|
||||||
|
if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component", m = true), a2.voidElement || m || !d || "<" === d || a2.children.push({ type: "text", content: e2.slice(p, e2.indexOf("<", p)) }), 0 === l && c2.push(a2), (u2 = o[l - 1]) && u2.children.push(a2), o[l] = a2), (!f || a2.voidElement) && (l > -1 && (a2.voidElement || a2.name === r2.slice(2, -1)) && (l--, a2 = -1 === l ? c2 : o[l]), !m && "<" !== d && d)) {
|
||||||
|
u2 = -1 === l ? c2 : o[l].children;
|
||||||
|
var x = e2.indexOf("<", p), g = e2.slice(p, -1 === x ? void 0 : x);
|
||||||
|
i.test(g) && (g = " "), (x > -1 && l + u2.length >= 0 || " " !== g) && u2.push({ type: "text", content: g });
|
||||||
|
}
|
||||||
|
}), c2;
|
||||||
|
}, stringify: function(e2) {
|
||||||
|
return e2.reduce(function(e3, t2) {
|
||||||
|
return e3 + a("", t2);
|
||||||
|
}, "");
|
||||||
|
} };
|
||||||
|
var html_parse_stringify_module_default = c;
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/utils.js
|
||||||
|
var warn = (i18n, code, msg, rest) => {
|
||||||
|
const args = [msg, {
|
||||||
|
code,
|
||||||
|
...rest || {}
|
||||||
|
}];
|
||||||
|
if (i18n?.services?.logger?.forward) {
|
||||||
|
return i18n.services.logger.forward(args, "warn", "react-i18next::", true);
|
||||||
|
}
|
||||||
|
if (isString(args[0])) args[0] = `react-i18next:: ${args[0]}`;
|
||||||
|
if (i18n?.services?.logger?.warn) {
|
||||||
|
i18n.services.logger.warn(...args);
|
||||||
|
} else if (console?.warn) {
|
||||||
|
console.warn(...args);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var alreadyWarned = {};
|
||||||
|
var warnOnce = (i18n, code, msg, rest) => {
|
||||||
|
if (isString(msg) && alreadyWarned[msg]) return;
|
||||||
|
if (isString(msg)) alreadyWarned[msg] = /* @__PURE__ */ new Date();
|
||||||
|
warn(i18n, code, msg, rest);
|
||||||
|
};
|
||||||
|
var loadedClb = (i18n, cb) => () => {
|
||||||
|
if (i18n.isInitialized) {
|
||||||
|
cb();
|
||||||
|
} else {
|
||||||
|
const initialized = () => {
|
||||||
|
setTimeout(() => {
|
||||||
|
i18n.off("initialized", initialized);
|
||||||
|
}, 0);
|
||||||
|
cb();
|
||||||
|
};
|
||||||
|
i18n.on("initialized", initialized);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var loadNamespaces = (i18n, ns, cb) => {
|
||||||
|
i18n.loadNamespaces(ns, loadedClb(i18n, cb));
|
||||||
|
};
|
||||||
|
var loadLanguages = (i18n, lng, ns, cb) => {
|
||||||
|
if (isString(ns)) ns = [ns];
|
||||||
|
if (i18n.options.preload && i18n.options.preload.indexOf(lng) > -1) return loadNamespaces(i18n, ns, cb);
|
||||||
|
ns.forEach((n2) => {
|
||||||
|
if (i18n.options.ns.indexOf(n2) < 0) i18n.options.ns.push(n2);
|
||||||
|
});
|
||||||
|
i18n.loadLanguages(lng, loadedClb(i18n, cb));
|
||||||
|
};
|
||||||
|
var hasLoadedNamespace = (ns, i18n, options = {}) => {
|
||||||
|
if (!i18n.languages || !i18n.languages.length) {
|
||||||
|
warnOnce(i18n, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
|
||||||
|
languages: i18n.languages
|
||||||
|
});
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return i18n.hasLoadedNamespace(ns, {
|
||||||
|
lng: options.lng,
|
||||||
|
precheck: (i18nInstance2, loadNotPending) => {
|
||||||
|
if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18nInstance2.services.backendConnector.backend && i18nInstance2.isLanguageChangingTo && !loadNotPending(i18nInstance2.isLanguageChangingTo, ns)) return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var getDisplayName = (Component) => Component.displayName || Component.name || (isString(Component) && Component.length > 0 ? Component : "Unknown");
|
||||||
|
var isString = (obj) => typeof obj === "string";
|
||||||
|
var isObject = (obj) => typeof obj === "object" && obj !== null;
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/unescape.js
|
||||||
|
var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
||||||
|
var htmlEntities = {
|
||||||
|
"&": "&",
|
||||||
|
"&": "&",
|
||||||
|
"<": "<",
|
||||||
|
"<": "<",
|
||||||
|
">": ">",
|
||||||
|
">": ">",
|
||||||
|
"'": "'",
|
||||||
|
"'": "'",
|
||||||
|
""": '"',
|
||||||
|
""": '"',
|
||||||
|
" ": " ",
|
||||||
|
" ": " ",
|
||||||
|
"©": "©",
|
||||||
|
"©": "©",
|
||||||
|
"®": "®",
|
||||||
|
"®": "®",
|
||||||
|
"…": "…",
|
||||||
|
"…": "…",
|
||||||
|
"/": "/",
|
||||||
|
"/": "/"
|
||||||
|
};
|
||||||
|
var unescapeHtmlEntity = (m) => htmlEntities[m];
|
||||||
|
var unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/defaults.js
|
||||||
|
var defaultOptions = {
|
||||||
|
bindI18n: "languageChanged",
|
||||||
|
bindI18nStore: "",
|
||||||
|
transEmptyNodeValue: "",
|
||||||
|
transSupportBasicHtmlNodes: true,
|
||||||
|
transWrapTextNodes: "",
|
||||||
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
||||||
|
useSuspense: true,
|
||||||
|
unescape
|
||||||
|
};
|
||||||
|
var setDefaults = (options = {}) => {
|
||||||
|
defaultOptions = {
|
||||||
|
...defaultOptions,
|
||||||
|
...options
|
||||||
|
};
|
||||||
|
};
|
||||||
|
var getDefaults = () => defaultOptions;
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/i18nInstance.js
|
||||||
|
var i18nInstance;
|
||||||
|
var setI18n = (instance) => {
|
||||||
|
i18nInstance = instance;
|
||||||
|
};
|
||||||
|
var getI18n = () => i18nInstance;
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/TransWithoutContext.js
|
||||||
|
var hasChildren = (node, checkLength) => {
|
||||||
|
if (!node) return false;
|
||||||
|
const base = node.props?.children ?? node.children;
|
||||||
|
if (checkLength) return base.length > 0;
|
||||||
|
return !!base;
|
||||||
|
};
|
||||||
|
var getChildren = (node) => {
|
||||||
|
if (!node) return [];
|
||||||
|
const children = node.props?.children ?? node.children;
|
||||||
|
return node.props?.i18nIsDynamicList ? getAsArray(children) : children;
|
||||||
|
};
|
||||||
|
var hasValidReactChildren = (children) => Array.isArray(children) && children.every(import_react.isValidElement);
|
||||||
|
var getAsArray = (data) => Array.isArray(data) ? data : [data];
|
||||||
|
var mergeProps = (source, target) => {
|
||||||
|
const newTarget = {
|
||||||
|
...target
|
||||||
|
};
|
||||||
|
newTarget.props = Object.assign(source.props, target.props);
|
||||||
|
return newTarget;
|
||||||
|
};
|
||||||
|
var nodesToString = (children, i18nOptions, i18n, i18nKey) => {
|
||||||
|
if (!children) return "";
|
||||||
|
let stringNode = "";
|
||||||
|
const childrenArray = getAsArray(children);
|
||||||
|
const keepArray = i18nOptions?.transSupportBasicHtmlNodes ? i18nOptions.transKeepBasicHtmlNodesFor ?? [] : [];
|
||||||
|
childrenArray.forEach((child, childIndex) => {
|
||||||
|
if (isString(child)) {
|
||||||
|
stringNode += `${child}`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ((0, import_react.isValidElement)(child)) {
|
||||||
|
const {
|
||||||
|
props,
|
||||||
|
type
|
||||||
|
} = child;
|
||||||
|
const childPropsCount = Object.keys(props).length;
|
||||||
|
const shouldKeepChild = keepArray.indexOf(type) > -1;
|
||||||
|
const childChildren = props.children;
|
||||||
|
if (!childChildren && shouldKeepChild && !childPropsCount) {
|
||||||
|
stringNode += `<${type}/>`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!childChildren && (!shouldKeepChild || childPropsCount) || props.i18nIsDynamicList) {
|
||||||
|
stringNode += `<${childIndex}></${childIndex}>`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (shouldKeepChild && childPropsCount === 1 && isString(childChildren)) {
|
||||||
|
stringNode += `<${type}>${childChildren}</${type}>`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const content = nodesToString(childChildren, i18nOptions, i18n, i18nKey);
|
||||||
|
stringNode += `<${childIndex}>${content}</${childIndex}>`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (child === null) {
|
||||||
|
warn(i18n, "TRANS_NULL_VALUE", `Passed in a null value as child`, {
|
||||||
|
i18nKey
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (isObject(child)) {
|
||||||
|
const {
|
||||||
|
format,
|
||||||
|
...clone
|
||||||
|
} = child;
|
||||||
|
const keys = Object.keys(clone);
|
||||||
|
if (keys.length === 1) {
|
||||||
|
const value = format ? `${keys[0]}, ${format}` : keys[0];
|
||||||
|
stringNode += `{{${value}}}`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
warn(i18n, "TRANS_INVALID_OBJ", `Invalid child - Object should only have keys {{ value, format }} (format is optional).`, {
|
||||||
|
i18nKey,
|
||||||
|
child
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
warn(i18n, "TRANS_INVALID_VAR", `Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`, {
|
||||||
|
i18nKey,
|
||||||
|
child
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return stringNode;
|
||||||
|
};
|
||||||
|
var renderNodes = (children, knownComponentsMap, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) => {
|
||||||
|
if (targetString === "") return [];
|
||||||
|
const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];
|
||||||
|
const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map((keep) => `<${keep}`).join("|")).test(targetString);
|
||||||
|
if (!children && !knownComponentsMap && !emptyChildrenButNeedsHandling && !shouldUnescape) return [targetString];
|
||||||
|
const data = knownComponentsMap ?? {};
|
||||||
|
const getData = (childs) => {
|
||||||
|
const childrenArray = getAsArray(childs);
|
||||||
|
childrenArray.forEach((child) => {
|
||||||
|
if (isString(child)) return;
|
||||||
|
if (hasChildren(child)) getData(getChildren(child));
|
||||||
|
else if (isObject(child) && !(0, import_react.isValidElement)(child)) Object.assign(data, child);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
getData(children);
|
||||||
|
const ast = html_parse_stringify_module_default.parse(`<0>${targetString}</0>`);
|
||||||
|
const opts = {
|
||||||
|
...data,
|
||||||
|
...combinedTOpts
|
||||||
|
};
|
||||||
|
const renderInner = (child, node, rootReactNode) => {
|
||||||
|
const childs = getChildren(child);
|
||||||
|
const mappedChildren = mapAST(childs, node.children, rootReactNode);
|
||||||
|
return hasValidReactChildren(childs) && mappedChildren.length === 0 || child.props?.i18nIsDynamicList ? childs : mappedChildren;
|
||||||
|
};
|
||||||
|
const pushTranslatedJSX = (child, inner, mem, i2, isVoid) => {
|
||||||
|
if (child.dummy) {
|
||||||
|
child.children = inner;
|
||||||
|
mem.push((0, import_react.cloneElement)(child, {
|
||||||
|
key: i2
|
||||||
|
}, isVoid ? void 0 : inner));
|
||||||
|
} else {
|
||||||
|
mem.push(...import_react.Children.map([child], (c2) => {
|
||||||
|
const props = {
|
||||||
|
...c2.props
|
||||||
|
};
|
||||||
|
delete props.i18nIsDynamicList;
|
||||||
|
return (0, import_react.createElement)(c2.type, {
|
||||||
|
...props,
|
||||||
|
key: i2,
|
||||||
|
ref: c2.props.ref ?? c2.ref
|
||||||
|
}, isVoid ? null : inner);
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const mapAST = (reactNode, astNode, rootReactNode) => {
|
||||||
|
const reactNodes = getAsArray(reactNode);
|
||||||
|
const astNodes = getAsArray(astNode);
|
||||||
|
return astNodes.reduce((mem, node, i2) => {
|
||||||
|
const translationContent = node.children?.[0]?.content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);
|
||||||
|
if (node.type === "tag") {
|
||||||
|
let tmp = reactNodes[parseInt(node.name, 10)];
|
||||||
|
if (!tmp && knownComponentsMap) tmp = knownComponentsMap[node.name];
|
||||||
|
if (rootReactNode.length === 1 && !tmp) tmp = rootReactNode[0][node.name];
|
||||||
|
if (!tmp) tmp = {};
|
||||||
|
const child = Object.keys(node.attrs).length !== 0 ? mergeProps({
|
||||||
|
props: node.attrs
|
||||||
|
}, tmp) : tmp;
|
||||||
|
const isElement = (0, import_react.isValidElement)(child);
|
||||||
|
const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
|
||||||
|
const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && isObject(child) && child.dummy && !isElement;
|
||||||
|
const isKnownComponent = isObject(knownComponentsMap) && Object.hasOwnProperty.call(knownComponentsMap, node.name);
|
||||||
|
if (isString(child)) {
|
||||||
|
const value = i18n.services.interpolator.interpolate(child, opts, i18n.language);
|
||||||
|
mem.push(value);
|
||||||
|
} else if (hasChildren(child) || isValidTranslationWithChildren) {
|
||||||
|
const inner = renderInner(child, node, rootReactNode);
|
||||||
|
pushTranslatedJSX(child, inner, mem, i2);
|
||||||
|
} else if (isEmptyTransWithHTML) {
|
||||||
|
const inner = mapAST(reactNodes, node.children, rootReactNode);
|
||||||
|
pushTranslatedJSX(child, inner, mem, i2);
|
||||||
|
} else if (Number.isNaN(parseFloat(node.name))) {
|
||||||
|
if (isKnownComponent) {
|
||||||
|
const inner = renderInner(child, node, rootReactNode);
|
||||||
|
pushTranslatedJSX(child, inner, mem, i2, node.voidElement);
|
||||||
|
} else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
|
||||||
|
if (node.voidElement) {
|
||||||
|
mem.push((0, import_react.createElement)(node.name, {
|
||||||
|
key: `${node.name}-${i2}`
|
||||||
|
}));
|
||||||
|
} else {
|
||||||
|
const inner = mapAST(reactNodes, node.children, rootReactNode);
|
||||||
|
mem.push((0, import_react.createElement)(node.name, {
|
||||||
|
key: `${node.name}-${i2}`
|
||||||
|
}, inner));
|
||||||
|
}
|
||||||
|
} else if (node.voidElement) {
|
||||||
|
mem.push(`<${node.name} />`);
|
||||||
|
} else {
|
||||||
|
const inner = mapAST(reactNodes, node.children, rootReactNode);
|
||||||
|
mem.push(`<${node.name}>${inner}</${node.name}>`);
|
||||||
|
}
|
||||||
|
} else if (isObject(child) && !isElement) {
|
||||||
|
const content = node.children[0] ? translationContent : null;
|
||||||
|
if (content) mem.push(content);
|
||||||
|
} else {
|
||||||
|
pushTranslatedJSX(child, translationContent, mem, i2, node.children.length !== 1 || !translationContent);
|
||||||
|
}
|
||||||
|
} else if (node.type === "text") {
|
||||||
|
const wrapTextNodes = i18nOptions.transWrapTextNodes;
|
||||||
|
const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
|
||||||
|
if (wrapTextNodes) {
|
||||||
|
mem.push((0, import_react.createElement)(wrapTextNodes, {
|
||||||
|
key: `${node.name}-${i2}`
|
||||||
|
}, content));
|
||||||
|
} else {
|
||||||
|
mem.push(content);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return mem;
|
||||||
|
}, []);
|
||||||
|
};
|
||||||
|
const result = mapAST([{
|
||||||
|
dummy: true,
|
||||||
|
children: children || []
|
||||||
|
}], ast, getAsArray(children || []));
|
||||||
|
return getChildren(result[0]);
|
||||||
|
};
|
||||||
|
var fixComponentProps = (component, index, translation) => {
|
||||||
|
const componentKey = component.key || index;
|
||||||
|
const comp = (0, import_react.cloneElement)(component, {
|
||||||
|
key: componentKey
|
||||||
|
});
|
||||||
|
if (!comp.props || !comp.props.children || translation.indexOf(`${index}/>`) < 0 && translation.indexOf(`${index} />`) < 0) {
|
||||||
|
return comp;
|
||||||
|
}
|
||||||
|
function Componentized() {
|
||||||
|
return (0, import_react.createElement)(import_react.Fragment, null, comp);
|
||||||
|
}
|
||||||
|
return (0, import_react.createElement)(Componentized, {
|
||||||
|
key: componentKey
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var generateArrayComponents = (components, translation) => components.map((c2, index) => fixComponentProps(c2, index, translation));
|
||||||
|
var generateObjectComponents = (components, translation) => {
|
||||||
|
const componentMap = {};
|
||||||
|
Object.keys(components).forEach((c2) => {
|
||||||
|
Object.assign(componentMap, {
|
||||||
|
[c2]: fixComponentProps(components[c2], c2, translation)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return componentMap;
|
||||||
|
};
|
||||||
|
var generateComponents = (components, translation, i18n, i18nKey) => {
|
||||||
|
if (!components) return null;
|
||||||
|
if (Array.isArray(components)) {
|
||||||
|
return generateArrayComponents(components, translation);
|
||||||
|
}
|
||||||
|
if (isObject(components)) {
|
||||||
|
return generateObjectComponents(components, translation);
|
||||||
|
}
|
||||||
|
warnOnce(i18n, "TRANS_INVALID_COMPONENTS", `<Trans /> "components" prop expects an object or array`, {
|
||||||
|
i18nKey
|
||||||
|
});
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
var isComponentsMap = (object) => {
|
||||||
|
if (!isObject(object)) return false;
|
||||||
|
if (Array.isArray(object)) return false;
|
||||||
|
return Object.keys(object).reduce((acc, key) => acc && Number.isNaN(Number.parseFloat(key)), true);
|
||||||
|
};
|
||||||
|
function Trans({
|
||||||
|
children,
|
||||||
|
count,
|
||||||
|
parent,
|
||||||
|
i18nKey,
|
||||||
|
context,
|
||||||
|
tOptions = {},
|
||||||
|
values,
|
||||||
|
defaults,
|
||||||
|
components,
|
||||||
|
ns,
|
||||||
|
i18n: i18nFromProps,
|
||||||
|
t: tFromProps,
|
||||||
|
shouldUnescape,
|
||||||
|
...additionalProps
|
||||||
|
}) {
|
||||||
|
const i18n = i18nFromProps || getI18n();
|
||||||
|
if (!i18n) {
|
||||||
|
warnOnce(i18n, "NO_I18NEXT_INSTANCE", `Trans: You need to pass in an i18next instance using i18nextReactModule`, {
|
||||||
|
i18nKey
|
||||||
|
});
|
||||||
|
return children;
|
||||||
|
}
|
||||||
|
const t2 = tFromProps || i18n.t.bind(i18n) || ((k) => k);
|
||||||
|
const reactI18nextOptions = {
|
||||||
|
...getDefaults(),
|
||||||
|
...i18n.options?.react
|
||||||
|
};
|
||||||
|
let namespaces = ns || t2.ns || i18n.options?.defaultNS;
|
||||||
|
namespaces = isString(namespaces) ? [namespaces] : namespaces || ["translation"];
|
||||||
|
const nodeAsString = nodesToString(children, reactI18nextOptions, i18n, i18nKey);
|
||||||
|
const defaultValue = defaults || nodeAsString || reactI18nextOptions.transEmptyNodeValue || i18nKey;
|
||||||
|
const {
|
||||||
|
hashTransKey
|
||||||
|
} = reactI18nextOptions;
|
||||||
|
const key = i18nKey || (hashTransKey ? hashTransKey(nodeAsString || defaultValue) : nodeAsString || defaultValue);
|
||||||
|
if (i18n.options?.interpolation?.defaultVariables) {
|
||||||
|
values = values && Object.keys(values).length > 0 ? {
|
||||||
|
...values,
|
||||||
|
...i18n.options.interpolation.defaultVariables
|
||||||
|
} : {
|
||||||
|
...i18n.options.interpolation.defaultVariables
|
||||||
|
};
|
||||||
|
}
|
||||||
|
const interpolationOverride = values || count !== void 0 && !i18n.options?.interpolation?.alwaysFormat || !children ? tOptions.interpolation : {
|
||||||
|
interpolation: {
|
||||||
|
...tOptions.interpolation,
|
||||||
|
prefix: "#$?",
|
||||||
|
suffix: "?$#"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const combinedTOpts = {
|
||||||
|
...tOptions,
|
||||||
|
context: context || tOptions.context,
|
||||||
|
count,
|
||||||
|
...values,
|
||||||
|
...interpolationOverride,
|
||||||
|
defaultValue,
|
||||||
|
ns: namespaces
|
||||||
|
};
|
||||||
|
const translation = key ? t2(key, combinedTOpts) : defaultValue;
|
||||||
|
const generatedComponents = generateComponents(components, translation, i18n, i18nKey);
|
||||||
|
let indexedChildren = generatedComponents || children;
|
||||||
|
let componentsMap = null;
|
||||||
|
if (isComponentsMap(generatedComponents)) {
|
||||||
|
componentsMap = generatedComponents;
|
||||||
|
indexedChildren = children;
|
||||||
|
}
|
||||||
|
const content = renderNodes(indexedChildren, componentsMap, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
|
||||||
|
const useAsParent = parent ?? reactI18nextOptions.defaultTransParent;
|
||||||
|
return useAsParent ? (0, import_react.createElement)(useAsParent, additionalProps, content) : content;
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/context.js
|
||||||
|
var import_react2 = __toESM(require_react(), 1);
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/initReactI18next.js
|
||||||
|
var initReactI18next = {
|
||||||
|
type: "3rdParty",
|
||||||
|
init(instance) {
|
||||||
|
setDefaults(instance.options.react);
|
||||||
|
setI18n(instance);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/context.js
|
||||||
|
var I18nContext = (0, import_react2.createContext)();
|
||||||
|
var ReportNamespaces = class {
|
||||||
|
constructor() {
|
||||||
|
this.usedNamespaces = {};
|
||||||
|
}
|
||||||
|
addUsedNamespaces(namespaces) {
|
||||||
|
namespaces.forEach((ns) => {
|
||||||
|
if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
getUsedNamespaces() {
|
||||||
|
return Object.keys(this.usedNamespaces);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var composeInitialProps = (ForComponent) => async (ctx) => {
|
||||||
|
const componentsInitialProps = await ForComponent.getInitialProps?.(ctx) ?? {};
|
||||||
|
const i18nInitialProps = getInitialProps();
|
||||||
|
return {
|
||||||
|
...componentsInitialProps,
|
||||||
|
...i18nInitialProps
|
||||||
|
};
|
||||||
|
};
|
||||||
|
var getInitialProps = () => {
|
||||||
|
const i18n = getI18n();
|
||||||
|
const namespaces = i18n.reportNamespaces?.getUsedNamespaces() ?? [];
|
||||||
|
const ret = {};
|
||||||
|
const initialI18nStore = {};
|
||||||
|
i18n.languages.forEach((l) => {
|
||||||
|
initialI18nStore[l] = {};
|
||||||
|
namespaces.forEach((ns) => {
|
||||||
|
initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};
|
||||||
|
});
|
||||||
|
});
|
||||||
|
ret.initialI18nStore = initialI18nStore;
|
||||||
|
ret.initialLanguage = i18n.language;
|
||||||
|
return ret;
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/Trans.js
|
||||||
|
function Trans2({
|
||||||
|
children,
|
||||||
|
count,
|
||||||
|
parent,
|
||||||
|
i18nKey,
|
||||||
|
context,
|
||||||
|
tOptions = {},
|
||||||
|
values,
|
||||||
|
defaults,
|
||||||
|
components,
|
||||||
|
ns,
|
||||||
|
i18n: i18nFromProps,
|
||||||
|
t: tFromProps,
|
||||||
|
shouldUnescape,
|
||||||
|
...additionalProps
|
||||||
|
}) {
|
||||||
|
const {
|
||||||
|
i18n: i18nFromContext,
|
||||||
|
defaultNS: defaultNSFromContext
|
||||||
|
} = (0, import_react3.useContext)(I18nContext) || {};
|
||||||
|
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
||||||
|
const t2 = tFromProps || i18n?.t.bind(i18n);
|
||||||
|
return Trans({
|
||||||
|
children,
|
||||||
|
count,
|
||||||
|
parent,
|
||||||
|
i18nKey,
|
||||||
|
context,
|
||||||
|
tOptions,
|
||||||
|
values,
|
||||||
|
defaults,
|
||||||
|
components,
|
||||||
|
ns: ns || t2?.ns || defaultNSFromContext || i18n?.options?.defaultNS,
|
||||||
|
i18n,
|
||||||
|
t: tFromProps,
|
||||||
|
shouldUnescape,
|
||||||
|
...additionalProps
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/useTranslation.js
|
||||||
|
var import_react4 = __toESM(require_react(), 1);
|
||||||
|
var usePrevious = (value, ignore) => {
|
||||||
|
const ref = (0, import_react4.useRef)();
|
||||||
|
(0, import_react4.useEffect)(() => {
|
||||||
|
ref.current = ignore ? ref.current : value;
|
||||||
|
}, [value, ignore]);
|
||||||
|
return ref.current;
|
||||||
|
};
|
||||||
|
var alwaysNewT = (i18n, language, namespace, keyPrefix) => i18n.getFixedT(language, namespace, keyPrefix);
|
||||||
|
var useMemoizedT = (i18n, language, namespace, keyPrefix) => (0, import_react4.useCallback)(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
|
||||||
|
var useTranslation = (ns, props = {}) => {
|
||||||
|
const {
|
||||||
|
i18n: i18nFromProps
|
||||||
|
} = props;
|
||||||
|
const {
|
||||||
|
i18n: i18nFromContext,
|
||||||
|
defaultNS: defaultNSFromContext
|
||||||
|
} = (0, import_react4.useContext)(I18nContext) || {};
|
||||||
|
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
||||||
|
if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
|
||||||
|
if (!i18n) {
|
||||||
|
warnOnce(i18n, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
||||||
|
const notReadyT = (k, optsOrDefaultValue) => {
|
||||||
|
if (isString(optsOrDefaultValue)) return optsOrDefaultValue;
|
||||||
|
if (isObject(optsOrDefaultValue) && isString(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;
|
||||||
|
return Array.isArray(k) ? k[k.length - 1] : k;
|
||||||
|
};
|
||||||
|
const retNotReady = [notReadyT, {}, false];
|
||||||
|
retNotReady.t = notReadyT;
|
||||||
|
retNotReady.i18n = {};
|
||||||
|
retNotReady.ready = false;
|
||||||
|
return retNotReady;
|
||||||
|
}
|
||||||
|
if (i18n.options.react?.wait) warnOnce(i18n, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
||||||
|
const i18nOptions = {
|
||||||
|
...getDefaults(),
|
||||||
|
...i18n.options.react,
|
||||||
|
...props
|
||||||
|
};
|
||||||
|
const {
|
||||||
|
useSuspense,
|
||||||
|
keyPrefix
|
||||||
|
} = i18nOptions;
|
||||||
|
let namespaces = ns || defaultNSFromContext || i18n.options?.defaultNS;
|
||||||
|
namespaces = isString(namespaces) ? [namespaces] : namespaces || ["translation"];
|
||||||
|
i18n.reportNamespaces.addUsedNamespaces?.(namespaces);
|
||||||
|
const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every((n2) => hasLoadedNamespace(n2, i18n, i18nOptions));
|
||||||
|
const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
||||||
|
const getT = () => memoGetT;
|
||||||
|
const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
||||||
|
const [t2, setT] = (0, import_react4.useState)(getT);
|
||||||
|
let joinedNS = namespaces.join();
|
||||||
|
if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
|
||||||
|
const previousJoinedNS = usePrevious(joinedNS);
|
||||||
|
const isMounted = (0, import_react4.useRef)(true);
|
||||||
|
(0, import_react4.useEffect)(() => {
|
||||||
|
const {
|
||||||
|
bindI18n,
|
||||||
|
bindI18nStore
|
||||||
|
} = i18nOptions;
|
||||||
|
isMounted.current = true;
|
||||||
|
if (!ready && !useSuspense) {
|
||||||
|
if (props.lng) {
|
||||||
|
loadLanguages(i18n, props.lng, namespaces, () => {
|
||||||
|
if (isMounted.current) setT(getNewT);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
loadNamespaces(i18n, namespaces, () => {
|
||||||
|
if (isMounted.current) setT(getNewT);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
|
||||||
|
setT(getNewT);
|
||||||
|
}
|
||||||
|
const boundReset = () => {
|
||||||
|
if (isMounted.current) setT(getNewT);
|
||||||
|
};
|
||||||
|
if (bindI18n) i18n?.on(bindI18n, boundReset);
|
||||||
|
if (bindI18nStore) i18n?.store.on(bindI18nStore, boundReset);
|
||||||
|
return () => {
|
||||||
|
isMounted.current = false;
|
||||||
|
if (i18n && bindI18n) bindI18n?.split(" ").forEach((e2) => i18n.off(e2, boundReset));
|
||||||
|
if (bindI18nStore && i18n) bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, boundReset));
|
||||||
|
};
|
||||||
|
}, [i18n, joinedNS]);
|
||||||
|
(0, import_react4.useEffect)(() => {
|
||||||
|
if (isMounted.current && ready) {
|
||||||
|
setT(getT);
|
||||||
|
}
|
||||||
|
}, [i18n, keyPrefix, ready]);
|
||||||
|
const ret = [t2, i18n, ready];
|
||||||
|
ret.t = t2;
|
||||||
|
ret.i18n = i18n;
|
||||||
|
ret.ready = ready;
|
||||||
|
if (ready) return ret;
|
||||||
|
if (!ready && !useSuspense) return ret;
|
||||||
|
throw new Promise((resolve) => {
|
||||||
|
if (props.lng) {
|
||||||
|
loadLanguages(i18n, props.lng, namespaces, () => resolve());
|
||||||
|
} else {
|
||||||
|
loadNamespaces(i18n, namespaces, () => resolve());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/withTranslation.js
|
||||||
|
var import_react5 = __toESM(require_react(), 1);
|
||||||
|
var withTranslation = (ns, options = {}) => function Extend(WrappedComponent) {
|
||||||
|
function I18nextWithTranslation({
|
||||||
|
forwardedRef,
|
||||||
|
...rest
|
||||||
|
}) {
|
||||||
|
const [t2, i18n, ready] = useTranslation(ns, {
|
||||||
|
...rest,
|
||||||
|
keyPrefix: options.keyPrefix
|
||||||
|
});
|
||||||
|
const passDownProps = {
|
||||||
|
...rest,
|
||||||
|
t: t2,
|
||||||
|
i18n,
|
||||||
|
tReady: ready
|
||||||
|
};
|
||||||
|
if (options.withRef && forwardedRef) {
|
||||||
|
passDownProps.ref = forwardedRef;
|
||||||
|
} else if (!options.withRef && forwardedRef) {
|
||||||
|
passDownProps.forwardedRef = forwardedRef;
|
||||||
|
}
|
||||||
|
return (0, import_react5.createElement)(WrappedComponent, passDownProps);
|
||||||
|
}
|
||||||
|
I18nextWithTranslation.displayName = `withI18nextTranslation(${getDisplayName(WrappedComponent)})`;
|
||||||
|
I18nextWithTranslation.WrappedComponent = WrappedComponent;
|
||||||
|
const forwardRef = (props, ref) => (0, import_react5.createElement)(I18nextWithTranslation, Object.assign({}, props, {
|
||||||
|
forwardedRef: ref
|
||||||
|
}));
|
||||||
|
return options.withRef ? (0, import_react5.forwardRef)(forwardRef) : I18nextWithTranslation;
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/Translation.js
|
||||||
|
var Translation = ({
|
||||||
|
ns,
|
||||||
|
children,
|
||||||
|
...options
|
||||||
|
}) => {
|
||||||
|
const [t2, i18n, ready] = useTranslation(ns, options);
|
||||||
|
return children(t2, {
|
||||||
|
i18n,
|
||||||
|
lng: i18n.language
|
||||||
|
}, ready);
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/I18nextProvider.js
|
||||||
|
var import_react6 = __toESM(require_react(), 1);
|
||||||
|
function I18nextProvider({
|
||||||
|
i18n,
|
||||||
|
defaultNS,
|
||||||
|
children
|
||||||
|
}) {
|
||||||
|
const value = (0, import_react6.useMemo)(() => ({
|
||||||
|
i18n,
|
||||||
|
defaultNS
|
||||||
|
}), [i18n, defaultNS]);
|
||||||
|
return (0, import_react6.createElement)(I18nContext.Provider, {
|
||||||
|
value
|
||||||
|
}, children);
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/withSSR.js
|
||||||
|
var import_react8 = __toESM(require_react(), 1);
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/useSSR.js
|
||||||
|
var import_react7 = __toESM(require_react(), 1);
|
||||||
|
var useSSR = (initialI18nStore, initialLanguage, props = {}) => {
|
||||||
|
const {
|
||||||
|
i18n: i18nFromProps
|
||||||
|
} = props;
|
||||||
|
const {
|
||||||
|
i18n: i18nFromContext
|
||||||
|
} = (0, import_react7.useContext)(I18nContext) || {};
|
||||||
|
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
||||||
|
if (i18n.options?.isClone) return;
|
||||||
|
if (initialI18nStore && !i18n.initializedStoreOnce) {
|
||||||
|
i18n.services.resourceStore.data = initialI18nStore;
|
||||||
|
i18n.options.ns = Object.values(initialI18nStore).reduce((mem, lngResources) => {
|
||||||
|
Object.keys(lngResources).forEach((ns) => {
|
||||||
|
if (mem.indexOf(ns) < 0) mem.push(ns);
|
||||||
|
});
|
||||||
|
return mem;
|
||||||
|
}, i18n.options.ns);
|
||||||
|
i18n.initializedStoreOnce = true;
|
||||||
|
i18n.isInitialized = true;
|
||||||
|
}
|
||||||
|
if (initialLanguage && !i18n.initializedLanguageOnce) {
|
||||||
|
i18n.changeLanguage(initialLanguage);
|
||||||
|
i18n.initializedLanguageOnce = true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/withSSR.js
|
||||||
|
var withSSR = () => function Extend(WrappedComponent) {
|
||||||
|
function I18nextWithSSR({
|
||||||
|
initialI18nStore,
|
||||||
|
initialLanguage,
|
||||||
|
...rest
|
||||||
|
}) {
|
||||||
|
useSSR(initialI18nStore, initialLanguage);
|
||||||
|
return (0, import_react8.createElement)(WrappedComponent, {
|
||||||
|
...rest
|
||||||
|
});
|
||||||
|
}
|
||||||
|
I18nextWithSSR.getInitialProps = composeInitialProps(WrappedComponent);
|
||||||
|
I18nextWithSSR.displayName = `withI18nextSSR(${getDisplayName(WrappedComponent)})`;
|
||||||
|
I18nextWithSSR.WrappedComponent = WrappedComponent;
|
||||||
|
return I18nextWithSSR;
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-i18next@15.6.1_i18nex_638c8fb8fd870caac3f31fd93f9674b6/node_modules/react-i18next/dist/es/index.js
|
||||||
|
var date = () => "";
|
||||||
|
var time = () => "";
|
||||||
|
var number = () => "";
|
||||||
|
var select = () => "";
|
||||||
|
var plural = () => "";
|
||||||
|
var selectOrdinal = () => "";
|
||||||
|
export {
|
||||||
|
I18nContext,
|
||||||
|
I18nextProvider,
|
||||||
|
Trans2 as Trans,
|
||||||
|
Trans as TransWithoutContext,
|
||||||
|
Translation,
|
||||||
|
composeInitialProps,
|
||||||
|
date,
|
||||||
|
getDefaults,
|
||||||
|
getI18n,
|
||||||
|
getInitialProps,
|
||||||
|
initReactI18next,
|
||||||
|
number,
|
||||||
|
plural,
|
||||||
|
select,
|
||||||
|
selectOrdinal,
|
||||||
|
setDefaults,
|
||||||
|
setI18n,
|
||||||
|
time,
|
||||||
|
useSSR,
|
||||||
|
useTranslation,
|
||||||
|
withSSR,
|
||||||
|
withTranslation
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=react-i18next.js.map
|
||||||
7
.vite/deps/react-i18next.js.map
Normal file
7
.vite/deps/react-i18next.js.map
Normal file
File diff suppressed because one or more lines are too long
1221
.vite/deps/react-number-format.js
vendored
Normal file
1221
.vite/deps/react-number-format.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/react-number-format.js.map
Normal file
7
.vite/deps/react-number-format.js.map
Normal file
File diff suppressed because one or more lines are too long
494
.vite/deps/react-router-dom.js
vendored
Normal file
494
.vite/deps/react-router-dom.js
vendored
Normal file
@@ -0,0 +1,494 @@
|
|||||||
|
import {
|
||||||
|
Action,
|
||||||
|
Await,
|
||||||
|
BrowserRouter,
|
||||||
|
CRITICAL_CSS_DATA_ATTRIBUTE,
|
||||||
|
DataRouterContext,
|
||||||
|
DataRouterStateContext,
|
||||||
|
ErrorResponseImpl,
|
||||||
|
FetchersContext,
|
||||||
|
Form,
|
||||||
|
FrameworkContext,
|
||||||
|
HashRouter,
|
||||||
|
HistoryRouter,
|
||||||
|
IDLE_BLOCKER,
|
||||||
|
IDLE_FETCHER,
|
||||||
|
IDLE_NAVIGATION,
|
||||||
|
Link,
|
||||||
|
Links,
|
||||||
|
LocationContext,
|
||||||
|
MemoryRouter,
|
||||||
|
Meta,
|
||||||
|
NavLink,
|
||||||
|
Navigate,
|
||||||
|
NavigationContext,
|
||||||
|
Outlet,
|
||||||
|
PrefetchPageLinks,
|
||||||
|
RSCDefaultRootErrorBoundary,
|
||||||
|
RSCHydratedRouter,
|
||||||
|
RSCStaticRouter,
|
||||||
|
RemixErrorBoundary,
|
||||||
|
Route,
|
||||||
|
RouteContext,
|
||||||
|
Router,
|
||||||
|
RouterProvider,
|
||||||
|
Routes,
|
||||||
|
Scripts,
|
||||||
|
ScrollRestoration,
|
||||||
|
ServerMode,
|
||||||
|
ServerRouter,
|
||||||
|
SingleFetchRedirectSymbol,
|
||||||
|
StaticRouter,
|
||||||
|
StaticRouterProvider,
|
||||||
|
ViewTransitionContext,
|
||||||
|
WithComponentProps,
|
||||||
|
WithErrorBoundaryProps,
|
||||||
|
WithHydrateFallbackProps,
|
||||||
|
createBrowserHistory,
|
||||||
|
createBrowserRouter,
|
||||||
|
createCallServer,
|
||||||
|
createClientRoutes,
|
||||||
|
createClientRoutesWithHMRRevalidationOptOut,
|
||||||
|
createCookie,
|
||||||
|
createCookieSessionStorage,
|
||||||
|
createHashRouter,
|
||||||
|
createMemoryRouter,
|
||||||
|
createMemorySessionStorage,
|
||||||
|
createPath,
|
||||||
|
createRequestHandler,
|
||||||
|
createRouter,
|
||||||
|
createRoutesFromChildren,
|
||||||
|
createRoutesFromElements,
|
||||||
|
createRoutesStub,
|
||||||
|
createSearchParams,
|
||||||
|
createSession,
|
||||||
|
createSessionStorage,
|
||||||
|
createStaticHandler2,
|
||||||
|
createStaticRouter,
|
||||||
|
data,
|
||||||
|
decodeViaTurboStream,
|
||||||
|
deserializeErrors,
|
||||||
|
generatePath,
|
||||||
|
getHydrationData,
|
||||||
|
getPatchRoutesOnNavigationFunction,
|
||||||
|
getRSCStream,
|
||||||
|
getTurboStreamSingleFetchDataStrategy,
|
||||||
|
href,
|
||||||
|
hydrationRouteProperties,
|
||||||
|
invariant,
|
||||||
|
isCookie,
|
||||||
|
isRouteErrorResponse,
|
||||||
|
isSession,
|
||||||
|
mapRouteProperties,
|
||||||
|
matchPath,
|
||||||
|
matchRoutes,
|
||||||
|
parsePath,
|
||||||
|
redirect,
|
||||||
|
redirectDocument,
|
||||||
|
renderMatches,
|
||||||
|
replace,
|
||||||
|
resolvePath,
|
||||||
|
routeRSCServerRequest,
|
||||||
|
setDevServerHooks,
|
||||||
|
shouldHydrateRouteLoader,
|
||||||
|
unstable_RouterContextProvider,
|
||||||
|
unstable_createContext,
|
||||||
|
useActionData,
|
||||||
|
useAsyncError,
|
||||||
|
useAsyncValue,
|
||||||
|
useBeforeUnload,
|
||||||
|
useBlocker,
|
||||||
|
useFetcher,
|
||||||
|
useFetchers,
|
||||||
|
useFogOFWarDiscovery,
|
||||||
|
useFormAction,
|
||||||
|
useHref,
|
||||||
|
useInRouterContext,
|
||||||
|
useLinkClickHandler,
|
||||||
|
useLoaderData,
|
||||||
|
useLocation,
|
||||||
|
useMatch,
|
||||||
|
useMatches,
|
||||||
|
useNavigate,
|
||||||
|
useNavigation,
|
||||||
|
useNavigationType,
|
||||||
|
useOutlet,
|
||||||
|
useOutletContext,
|
||||||
|
useParams,
|
||||||
|
usePrompt,
|
||||||
|
useResolvedPath,
|
||||||
|
useRevalidator,
|
||||||
|
useRouteError,
|
||||||
|
useRouteLoaderData,
|
||||||
|
useRoutes,
|
||||||
|
useScrollRestoration,
|
||||||
|
useSearchParams,
|
||||||
|
useSubmit,
|
||||||
|
useViewTransitionState,
|
||||||
|
withComponentProps,
|
||||||
|
withErrorBoundaryProps,
|
||||||
|
withHydrateFallbackProps
|
||||||
|
} from "./chunk-7EPPR7CJ.js";
|
||||||
|
import {
|
||||||
|
require_react_dom
|
||||||
|
} from "./chunk-65SL2JMO.js";
|
||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
__toESM
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/react-router@7.8.0_react-do_ddf32c646a867a9a514d8176243fec17/node_modules/react-router/dist/development/dom-export.mjs
|
||||||
|
var React = __toESM(require_react(), 1);
|
||||||
|
var ReactDOM = __toESM(require_react_dom(), 1);
|
||||||
|
var React2 = __toESM(require_react(), 1);
|
||||||
|
function RouterProvider2(props) {
|
||||||
|
return React.createElement(RouterProvider, { flushSync: ReactDOM.flushSync, ...props });
|
||||||
|
}
|
||||||
|
var ssrInfo = null;
|
||||||
|
var router = null;
|
||||||
|
function initSsrInfo() {
|
||||||
|
if (!ssrInfo && window.__reactRouterContext && window.__reactRouterManifest && window.__reactRouterRouteModules) {
|
||||||
|
if (window.__reactRouterManifest.sri === true) {
|
||||||
|
const importMap = document.querySelector("script[rr-importmap]");
|
||||||
|
if (importMap?.textContent) {
|
||||||
|
try {
|
||||||
|
window.__reactRouterManifest.sri = JSON.parse(
|
||||||
|
importMap.textContent
|
||||||
|
).integrity;
|
||||||
|
} catch (err) {
|
||||||
|
console.error("Failed to parse import map", err);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ssrInfo = {
|
||||||
|
context: window.__reactRouterContext,
|
||||||
|
manifest: window.__reactRouterManifest,
|
||||||
|
routeModules: window.__reactRouterRouteModules,
|
||||||
|
stateDecodingPromise: void 0,
|
||||||
|
router: void 0,
|
||||||
|
routerInitialized: false
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function createHydratedRouter({
|
||||||
|
unstable_getContext
|
||||||
|
}) {
|
||||||
|
initSsrInfo();
|
||||||
|
if (!ssrInfo) {
|
||||||
|
throw new Error(
|
||||||
|
"You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
let localSsrInfo = ssrInfo;
|
||||||
|
if (!ssrInfo.stateDecodingPromise) {
|
||||||
|
let stream = ssrInfo.context.stream;
|
||||||
|
invariant(stream, "No stream found for single fetch decoding");
|
||||||
|
ssrInfo.context.stream = void 0;
|
||||||
|
ssrInfo.stateDecodingPromise = decodeViaTurboStream(stream, window).then((value) => {
|
||||||
|
ssrInfo.context.state = value.value;
|
||||||
|
localSsrInfo.stateDecodingPromise.value = true;
|
||||||
|
}).catch((e) => {
|
||||||
|
localSsrInfo.stateDecodingPromise.error = e;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (ssrInfo.stateDecodingPromise.error) {
|
||||||
|
throw ssrInfo.stateDecodingPromise.error;
|
||||||
|
}
|
||||||
|
if (!ssrInfo.stateDecodingPromise.value) {
|
||||||
|
throw ssrInfo.stateDecodingPromise;
|
||||||
|
}
|
||||||
|
let routes = createClientRoutes(
|
||||||
|
ssrInfo.manifest.routes,
|
||||||
|
ssrInfo.routeModules,
|
||||||
|
ssrInfo.context.state,
|
||||||
|
ssrInfo.context.ssr,
|
||||||
|
ssrInfo.context.isSpaMode
|
||||||
|
);
|
||||||
|
let hydrationData = void 0;
|
||||||
|
if (ssrInfo.context.isSpaMode) {
|
||||||
|
let { loaderData } = ssrInfo.context.state;
|
||||||
|
if (ssrInfo.manifest.routes.root?.hasLoader && loaderData && "root" in loaderData) {
|
||||||
|
hydrationData = {
|
||||||
|
loaderData: {
|
||||||
|
root: loaderData.root
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
hydrationData = getHydrationData(
|
||||||
|
ssrInfo.context.state,
|
||||||
|
routes,
|
||||||
|
(routeId) => ({
|
||||||
|
clientLoader: ssrInfo.routeModules[routeId]?.clientLoader,
|
||||||
|
hasLoader: ssrInfo.manifest.routes[routeId]?.hasLoader === true,
|
||||||
|
hasHydrateFallback: ssrInfo.routeModules[routeId]?.HydrateFallback != null
|
||||||
|
}),
|
||||||
|
window.location,
|
||||||
|
window.__reactRouterContext?.basename,
|
||||||
|
ssrInfo.context.isSpaMode
|
||||||
|
);
|
||||||
|
if (hydrationData && hydrationData.errors) {
|
||||||
|
hydrationData.errors = deserializeErrors(hydrationData.errors);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let router2 = createRouter({
|
||||||
|
routes,
|
||||||
|
history: createBrowserHistory(),
|
||||||
|
basename: ssrInfo.context.basename,
|
||||||
|
unstable_getContext,
|
||||||
|
hydrationData,
|
||||||
|
hydrationRouteProperties,
|
||||||
|
mapRouteProperties,
|
||||||
|
future: {
|
||||||
|
unstable_middleware: ssrInfo.context.future.unstable_middleware
|
||||||
|
},
|
||||||
|
dataStrategy: getTurboStreamSingleFetchDataStrategy(
|
||||||
|
() => router2,
|
||||||
|
ssrInfo.manifest,
|
||||||
|
ssrInfo.routeModules,
|
||||||
|
ssrInfo.context.ssr,
|
||||||
|
ssrInfo.context.basename
|
||||||
|
),
|
||||||
|
patchRoutesOnNavigation: getPatchRoutesOnNavigationFunction(
|
||||||
|
ssrInfo.manifest,
|
||||||
|
ssrInfo.routeModules,
|
||||||
|
ssrInfo.context.ssr,
|
||||||
|
ssrInfo.context.routeDiscovery,
|
||||||
|
ssrInfo.context.isSpaMode,
|
||||||
|
ssrInfo.context.basename
|
||||||
|
)
|
||||||
|
});
|
||||||
|
ssrInfo.router = router2;
|
||||||
|
if (router2.state.initialized) {
|
||||||
|
ssrInfo.routerInitialized = true;
|
||||||
|
router2.initialize();
|
||||||
|
}
|
||||||
|
router2.createRoutesForHMR = /* spacer so ts-ignore does not affect the right hand of the assignment */
|
||||||
|
createClientRoutesWithHMRRevalidationOptOut;
|
||||||
|
window.__reactRouterDataRouter = router2;
|
||||||
|
return router2;
|
||||||
|
}
|
||||||
|
function HydratedRouter(props) {
|
||||||
|
if (!router) {
|
||||||
|
router = createHydratedRouter({
|
||||||
|
unstable_getContext: props.unstable_getContext
|
||||||
|
});
|
||||||
|
}
|
||||||
|
let [criticalCss, setCriticalCss] = React2.useState(
|
||||||
|
true ? ssrInfo?.context.criticalCss : void 0
|
||||||
|
);
|
||||||
|
React2.useEffect(() => {
|
||||||
|
if (true) {
|
||||||
|
setCriticalCss(void 0);
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
React2.useEffect(() => {
|
||||||
|
if (criticalCss === void 0) {
|
||||||
|
document.querySelectorAll(`[${CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
|
||||||
|
}
|
||||||
|
}, [criticalCss]);
|
||||||
|
let [location, setLocation] = React2.useState(router.state.location);
|
||||||
|
React2.useLayoutEffect(() => {
|
||||||
|
if (ssrInfo && ssrInfo.router && !ssrInfo.routerInitialized) {
|
||||||
|
ssrInfo.routerInitialized = true;
|
||||||
|
ssrInfo.router.initialize();
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
React2.useLayoutEffect(() => {
|
||||||
|
if (ssrInfo && ssrInfo.router) {
|
||||||
|
return ssrInfo.router.subscribe((newState) => {
|
||||||
|
if (newState.location !== location) {
|
||||||
|
setLocation(newState.location);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, [location]);
|
||||||
|
invariant(ssrInfo, "ssrInfo unavailable for HydratedRouter");
|
||||||
|
useFogOFWarDiscovery(
|
||||||
|
router,
|
||||||
|
ssrInfo.manifest,
|
||||||
|
ssrInfo.routeModules,
|
||||||
|
ssrInfo.context.ssr,
|
||||||
|
ssrInfo.context.routeDiscovery,
|
||||||
|
ssrInfo.context.isSpaMode
|
||||||
|
);
|
||||||
|
return (
|
||||||
|
// This fragment is important to ensure we match the <ServerRouter> JSX
|
||||||
|
// structure so that useId values hydrate correctly
|
||||||
|
React2.createElement(React2.Fragment, null, React2.createElement(
|
||||||
|
FrameworkContext.Provider,
|
||||||
|
{
|
||||||
|
value: {
|
||||||
|
manifest: ssrInfo.manifest,
|
||||||
|
routeModules: ssrInfo.routeModules,
|
||||||
|
future: ssrInfo.context.future,
|
||||||
|
criticalCss,
|
||||||
|
ssr: ssrInfo.context.ssr,
|
||||||
|
isSpaMode: ssrInfo.context.isSpaMode,
|
||||||
|
routeDiscovery: ssrInfo.context.routeDiscovery
|
||||||
|
}
|
||||||
|
},
|
||||||
|
React2.createElement(RemixErrorBoundary, { location }, React2.createElement(RouterProvider2, { router }))
|
||||||
|
), React2.createElement(React2.Fragment, null))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
Await,
|
||||||
|
BrowserRouter,
|
||||||
|
Form,
|
||||||
|
HashRouter,
|
||||||
|
HydratedRouter,
|
||||||
|
IDLE_BLOCKER,
|
||||||
|
IDLE_FETCHER,
|
||||||
|
IDLE_NAVIGATION,
|
||||||
|
Link,
|
||||||
|
Links,
|
||||||
|
MemoryRouter,
|
||||||
|
Meta,
|
||||||
|
NavLink,
|
||||||
|
Navigate,
|
||||||
|
Action as NavigationType,
|
||||||
|
Outlet,
|
||||||
|
PrefetchPageLinks,
|
||||||
|
Route,
|
||||||
|
Router,
|
||||||
|
RouterProvider2 as RouterProvider,
|
||||||
|
Routes,
|
||||||
|
Scripts,
|
||||||
|
ScrollRestoration,
|
||||||
|
ServerRouter,
|
||||||
|
StaticRouter,
|
||||||
|
StaticRouterProvider,
|
||||||
|
DataRouterContext as UNSAFE_DataRouterContext,
|
||||||
|
DataRouterStateContext as UNSAFE_DataRouterStateContext,
|
||||||
|
ErrorResponseImpl as UNSAFE_ErrorResponseImpl,
|
||||||
|
FetchersContext as UNSAFE_FetchersContext,
|
||||||
|
FrameworkContext as UNSAFE_FrameworkContext,
|
||||||
|
LocationContext as UNSAFE_LocationContext,
|
||||||
|
NavigationContext as UNSAFE_NavigationContext,
|
||||||
|
RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary,
|
||||||
|
RemixErrorBoundary as UNSAFE_RemixErrorBoundary,
|
||||||
|
RouteContext as UNSAFE_RouteContext,
|
||||||
|
ServerMode as UNSAFE_ServerMode,
|
||||||
|
SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol,
|
||||||
|
ViewTransitionContext as UNSAFE_ViewTransitionContext,
|
||||||
|
WithComponentProps as UNSAFE_WithComponentProps,
|
||||||
|
WithErrorBoundaryProps as UNSAFE_WithErrorBoundaryProps,
|
||||||
|
WithHydrateFallbackProps as UNSAFE_WithHydrateFallbackProps,
|
||||||
|
createBrowserHistory as UNSAFE_createBrowserHistory,
|
||||||
|
createClientRoutes as UNSAFE_createClientRoutes,
|
||||||
|
createClientRoutesWithHMRRevalidationOptOut as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
|
||||||
|
createRouter as UNSAFE_createRouter,
|
||||||
|
decodeViaTurboStream as UNSAFE_decodeViaTurboStream,
|
||||||
|
deserializeErrors as UNSAFE_deserializeErrors,
|
||||||
|
getHydrationData as UNSAFE_getHydrationData,
|
||||||
|
getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction,
|
||||||
|
getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy,
|
||||||
|
hydrationRouteProperties as UNSAFE_hydrationRouteProperties,
|
||||||
|
invariant as UNSAFE_invariant,
|
||||||
|
mapRouteProperties as UNSAFE_mapRouteProperties,
|
||||||
|
shouldHydrateRouteLoader as UNSAFE_shouldHydrateRouteLoader,
|
||||||
|
useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery,
|
||||||
|
useScrollRestoration as UNSAFE_useScrollRestoration,
|
||||||
|
withComponentProps as UNSAFE_withComponentProps,
|
||||||
|
withErrorBoundaryProps as UNSAFE_withErrorBoundaryProps,
|
||||||
|
withHydrateFallbackProps as UNSAFE_withHydrateFallbackProps,
|
||||||
|
createBrowserRouter,
|
||||||
|
createCookie,
|
||||||
|
createCookieSessionStorage,
|
||||||
|
createHashRouter,
|
||||||
|
createMemoryRouter,
|
||||||
|
createMemorySessionStorage,
|
||||||
|
createPath,
|
||||||
|
createRequestHandler,
|
||||||
|
createRoutesFromChildren,
|
||||||
|
createRoutesFromElements,
|
||||||
|
createRoutesStub,
|
||||||
|
createSearchParams,
|
||||||
|
createSession,
|
||||||
|
createSessionStorage,
|
||||||
|
createStaticHandler2 as createStaticHandler,
|
||||||
|
createStaticRouter,
|
||||||
|
data,
|
||||||
|
generatePath,
|
||||||
|
href,
|
||||||
|
isCookie,
|
||||||
|
isRouteErrorResponse,
|
||||||
|
isSession,
|
||||||
|
matchPath,
|
||||||
|
matchRoutes,
|
||||||
|
parsePath,
|
||||||
|
redirect,
|
||||||
|
redirectDocument,
|
||||||
|
renderMatches,
|
||||||
|
replace,
|
||||||
|
resolvePath,
|
||||||
|
HistoryRouter as unstable_HistoryRouter,
|
||||||
|
RSCHydratedRouter as unstable_RSCHydratedRouter,
|
||||||
|
RSCStaticRouter as unstable_RSCStaticRouter,
|
||||||
|
unstable_RouterContextProvider,
|
||||||
|
createCallServer as unstable_createCallServer,
|
||||||
|
unstable_createContext,
|
||||||
|
getRSCStream as unstable_getRSCStream,
|
||||||
|
routeRSCServerRequest as unstable_routeRSCServerRequest,
|
||||||
|
setDevServerHooks as unstable_setDevServerHooks,
|
||||||
|
usePrompt as unstable_usePrompt,
|
||||||
|
useActionData,
|
||||||
|
useAsyncError,
|
||||||
|
useAsyncValue,
|
||||||
|
useBeforeUnload,
|
||||||
|
useBlocker,
|
||||||
|
useFetcher,
|
||||||
|
useFetchers,
|
||||||
|
useFormAction,
|
||||||
|
useHref,
|
||||||
|
useInRouterContext,
|
||||||
|
useLinkClickHandler,
|
||||||
|
useLoaderData,
|
||||||
|
useLocation,
|
||||||
|
useMatch,
|
||||||
|
useMatches,
|
||||||
|
useNavigate,
|
||||||
|
useNavigation,
|
||||||
|
useNavigationType,
|
||||||
|
useOutlet,
|
||||||
|
useOutletContext,
|
||||||
|
useParams,
|
||||||
|
useResolvedPath,
|
||||||
|
useRevalidator,
|
||||||
|
useRouteError,
|
||||||
|
useRouteLoaderData,
|
||||||
|
useRoutes,
|
||||||
|
useSearchParams,
|
||||||
|
useSubmit,
|
||||||
|
useViewTransitionState
|
||||||
|
};
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react-router/dist/development/dom-export.mjs:
|
||||||
|
(**
|
||||||
|
* react-router v7.8.0
|
||||||
|
*
|
||||||
|
* Copyright (c) Remix Software Inc.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE.md file in the root directory of this source tree.
|
||||||
|
*
|
||||||
|
* @license MIT
|
||||||
|
*)
|
||||||
|
|
||||||
|
react-router-dom/dist/index.mjs:
|
||||||
|
(**
|
||||||
|
* react-router-dom v7.8.0
|
||||||
|
*
|
||||||
|
* Copyright (c) Remix Software Inc.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE.md file in the root directory of this source tree.
|
||||||
|
*
|
||||||
|
* @license MIT
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=react-router-dom.js.map
|
||||||
7
.vite/deps/react-router-dom.js.map
Normal file
7
.vite/deps/react-router-dom.js.map
Normal file
File diff suppressed because one or more lines are too long
264
.vite/deps/react-router.js
vendored
Normal file
264
.vite/deps/react-router.js
vendored
Normal file
@@ -0,0 +1,264 @@
|
|||||||
|
"use client";
|
||||||
|
import {
|
||||||
|
Action,
|
||||||
|
Await,
|
||||||
|
BrowserRouter,
|
||||||
|
DataRouterContext,
|
||||||
|
DataRouterStateContext,
|
||||||
|
ErrorResponseImpl,
|
||||||
|
FetchersContext,
|
||||||
|
Form,
|
||||||
|
FrameworkContext,
|
||||||
|
HashRouter,
|
||||||
|
HistoryRouter,
|
||||||
|
IDLE_BLOCKER,
|
||||||
|
IDLE_FETCHER,
|
||||||
|
IDLE_NAVIGATION,
|
||||||
|
Link,
|
||||||
|
Links,
|
||||||
|
LocationContext,
|
||||||
|
MemoryRouter,
|
||||||
|
Meta,
|
||||||
|
NavLink,
|
||||||
|
Navigate,
|
||||||
|
NavigationContext,
|
||||||
|
Outlet,
|
||||||
|
PrefetchPageLinks,
|
||||||
|
RSCDefaultRootErrorBoundary,
|
||||||
|
RSCHydratedRouter,
|
||||||
|
RSCStaticRouter,
|
||||||
|
RemixErrorBoundary,
|
||||||
|
Route,
|
||||||
|
RouteContext,
|
||||||
|
Router,
|
||||||
|
RouterProvider,
|
||||||
|
Routes,
|
||||||
|
Scripts,
|
||||||
|
ScrollRestoration,
|
||||||
|
ServerMode,
|
||||||
|
ServerRouter,
|
||||||
|
SingleFetchRedirectSymbol,
|
||||||
|
StaticRouter,
|
||||||
|
StaticRouterProvider,
|
||||||
|
ViewTransitionContext,
|
||||||
|
WithComponentProps,
|
||||||
|
WithErrorBoundaryProps,
|
||||||
|
WithHydrateFallbackProps,
|
||||||
|
createBrowserHistory,
|
||||||
|
createBrowserRouter,
|
||||||
|
createCallServer,
|
||||||
|
createClientRoutes,
|
||||||
|
createClientRoutesWithHMRRevalidationOptOut,
|
||||||
|
createCookie,
|
||||||
|
createCookieSessionStorage,
|
||||||
|
createHashRouter,
|
||||||
|
createMemoryRouter,
|
||||||
|
createMemorySessionStorage,
|
||||||
|
createPath,
|
||||||
|
createRequestHandler,
|
||||||
|
createRouter,
|
||||||
|
createRoutesFromChildren,
|
||||||
|
createRoutesFromElements,
|
||||||
|
createRoutesStub,
|
||||||
|
createSearchParams,
|
||||||
|
createSession,
|
||||||
|
createSessionStorage,
|
||||||
|
createStaticHandler2,
|
||||||
|
createStaticRouter,
|
||||||
|
data,
|
||||||
|
decodeViaTurboStream,
|
||||||
|
deserializeErrors,
|
||||||
|
generatePath,
|
||||||
|
getHydrationData,
|
||||||
|
getPatchRoutesOnNavigationFunction,
|
||||||
|
getRSCStream,
|
||||||
|
getTurboStreamSingleFetchDataStrategy,
|
||||||
|
href,
|
||||||
|
hydrationRouteProperties,
|
||||||
|
invariant,
|
||||||
|
isCookie,
|
||||||
|
isRouteErrorResponse,
|
||||||
|
isSession,
|
||||||
|
mapRouteProperties,
|
||||||
|
matchPath,
|
||||||
|
matchRoutes,
|
||||||
|
parsePath,
|
||||||
|
redirect,
|
||||||
|
redirectDocument,
|
||||||
|
renderMatches,
|
||||||
|
replace,
|
||||||
|
resolvePath,
|
||||||
|
routeRSCServerRequest,
|
||||||
|
setDevServerHooks,
|
||||||
|
shouldHydrateRouteLoader,
|
||||||
|
unstable_RouterContextProvider,
|
||||||
|
unstable_createContext,
|
||||||
|
useActionData,
|
||||||
|
useAsyncError,
|
||||||
|
useAsyncValue,
|
||||||
|
useBeforeUnload,
|
||||||
|
useBlocker,
|
||||||
|
useFetcher,
|
||||||
|
useFetchers,
|
||||||
|
useFogOFWarDiscovery,
|
||||||
|
useFormAction,
|
||||||
|
useHref,
|
||||||
|
useInRouterContext,
|
||||||
|
useLinkClickHandler,
|
||||||
|
useLoaderData,
|
||||||
|
useLocation,
|
||||||
|
useMatch,
|
||||||
|
useMatches,
|
||||||
|
useNavigate,
|
||||||
|
useNavigation,
|
||||||
|
useNavigationType,
|
||||||
|
useOutlet,
|
||||||
|
useOutletContext,
|
||||||
|
useParams,
|
||||||
|
usePrompt,
|
||||||
|
useResolvedPath,
|
||||||
|
useRevalidator,
|
||||||
|
useRouteError,
|
||||||
|
useRouteLoaderData,
|
||||||
|
useRoutes,
|
||||||
|
useScrollRestoration,
|
||||||
|
useSearchParams,
|
||||||
|
useSubmit,
|
||||||
|
useViewTransitionState,
|
||||||
|
withComponentProps,
|
||||||
|
withErrorBoundaryProps,
|
||||||
|
withHydrateFallbackProps
|
||||||
|
} from "./chunk-7EPPR7CJ.js";
|
||||||
|
import "./chunk-65SL2JMO.js";
|
||||||
|
import "./chunk-R7JHQV4C.js";
|
||||||
|
import "./chunk-PLDDJCW6.js";
|
||||||
|
export {
|
||||||
|
Await,
|
||||||
|
BrowserRouter,
|
||||||
|
Form,
|
||||||
|
HashRouter,
|
||||||
|
IDLE_BLOCKER,
|
||||||
|
IDLE_FETCHER,
|
||||||
|
IDLE_NAVIGATION,
|
||||||
|
Link,
|
||||||
|
Links,
|
||||||
|
MemoryRouter,
|
||||||
|
Meta,
|
||||||
|
NavLink,
|
||||||
|
Navigate,
|
||||||
|
Action as NavigationType,
|
||||||
|
Outlet,
|
||||||
|
PrefetchPageLinks,
|
||||||
|
Route,
|
||||||
|
Router,
|
||||||
|
RouterProvider,
|
||||||
|
Routes,
|
||||||
|
Scripts,
|
||||||
|
ScrollRestoration,
|
||||||
|
ServerRouter,
|
||||||
|
StaticRouter,
|
||||||
|
StaticRouterProvider,
|
||||||
|
DataRouterContext as UNSAFE_DataRouterContext,
|
||||||
|
DataRouterStateContext as UNSAFE_DataRouterStateContext,
|
||||||
|
ErrorResponseImpl as UNSAFE_ErrorResponseImpl,
|
||||||
|
FetchersContext as UNSAFE_FetchersContext,
|
||||||
|
FrameworkContext as UNSAFE_FrameworkContext,
|
||||||
|
LocationContext as UNSAFE_LocationContext,
|
||||||
|
NavigationContext as UNSAFE_NavigationContext,
|
||||||
|
RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary,
|
||||||
|
RemixErrorBoundary as UNSAFE_RemixErrorBoundary,
|
||||||
|
RouteContext as UNSAFE_RouteContext,
|
||||||
|
ServerMode as UNSAFE_ServerMode,
|
||||||
|
SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol,
|
||||||
|
ViewTransitionContext as UNSAFE_ViewTransitionContext,
|
||||||
|
WithComponentProps as UNSAFE_WithComponentProps,
|
||||||
|
WithErrorBoundaryProps as UNSAFE_WithErrorBoundaryProps,
|
||||||
|
WithHydrateFallbackProps as UNSAFE_WithHydrateFallbackProps,
|
||||||
|
createBrowserHistory as UNSAFE_createBrowserHistory,
|
||||||
|
createClientRoutes as UNSAFE_createClientRoutes,
|
||||||
|
createClientRoutesWithHMRRevalidationOptOut as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
|
||||||
|
createRouter as UNSAFE_createRouter,
|
||||||
|
decodeViaTurboStream as UNSAFE_decodeViaTurboStream,
|
||||||
|
deserializeErrors as UNSAFE_deserializeErrors,
|
||||||
|
getHydrationData as UNSAFE_getHydrationData,
|
||||||
|
getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction,
|
||||||
|
getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy,
|
||||||
|
hydrationRouteProperties as UNSAFE_hydrationRouteProperties,
|
||||||
|
invariant as UNSAFE_invariant,
|
||||||
|
mapRouteProperties as UNSAFE_mapRouteProperties,
|
||||||
|
shouldHydrateRouteLoader as UNSAFE_shouldHydrateRouteLoader,
|
||||||
|
useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery,
|
||||||
|
useScrollRestoration as UNSAFE_useScrollRestoration,
|
||||||
|
withComponentProps as UNSAFE_withComponentProps,
|
||||||
|
withErrorBoundaryProps as UNSAFE_withErrorBoundaryProps,
|
||||||
|
withHydrateFallbackProps as UNSAFE_withHydrateFallbackProps,
|
||||||
|
createBrowserRouter,
|
||||||
|
createCookie,
|
||||||
|
createCookieSessionStorage,
|
||||||
|
createHashRouter,
|
||||||
|
createMemoryRouter,
|
||||||
|
createMemorySessionStorage,
|
||||||
|
createPath,
|
||||||
|
createRequestHandler,
|
||||||
|
createRoutesFromChildren,
|
||||||
|
createRoutesFromElements,
|
||||||
|
createRoutesStub,
|
||||||
|
createSearchParams,
|
||||||
|
createSession,
|
||||||
|
createSessionStorage,
|
||||||
|
createStaticHandler2 as createStaticHandler,
|
||||||
|
createStaticRouter,
|
||||||
|
data,
|
||||||
|
generatePath,
|
||||||
|
href,
|
||||||
|
isCookie,
|
||||||
|
isRouteErrorResponse,
|
||||||
|
isSession,
|
||||||
|
matchPath,
|
||||||
|
matchRoutes,
|
||||||
|
parsePath,
|
||||||
|
redirect,
|
||||||
|
redirectDocument,
|
||||||
|
renderMatches,
|
||||||
|
replace,
|
||||||
|
resolvePath,
|
||||||
|
HistoryRouter as unstable_HistoryRouter,
|
||||||
|
RSCHydratedRouter as unstable_RSCHydratedRouter,
|
||||||
|
RSCStaticRouter as unstable_RSCStaticRouter,
|
||||||
|
unstable_RouterContextProvider,
|
||||||
|
createCallServer as unstable_createCallServer,
|
||||||
|
unstable_createContext,
|
||||||
|
getRSCStream as unstable_getRSCStream,
|
||||||
|
routeRSCServerRequest as unstable_routeRSCServerRequest,
|
||||||
|
setDevServerHooks as unstable_setDevServerHooks,
|
||||||
|
usePrompt as unstable_usePrompt,
|
||||||
|
useActionData,
|
||||||
|
useAsyncError,
|
||||||
|
useAsyncValue,
|
||||||
|
useBeforeUnload,
|
||||||
|
useBlocker,
|
||||||
|
useFetcher,
|
||||||
|
useFetchers,
|
||||||
|
useFormAction,
|
||||||
|
useHref,
|
||||||
|
useInRouterContext,
|
||||||
|
useLinkClickHandler,
|
||||||
|
useLoaderData,
|
||||||
|
useLocation,
|
||||||
|
useMatch,
|
||||||
|
useMatches,
|
||||||
|
useNavigate,
|
||||||
|
useNavigation,
|
||||||
|
useNavigationType,
|
||||||
|
useOutlet,
|
||||||
|
useOutletContext,
|
||||||
|
useParams,
|
||||||
|
useResolvedPath,
|
||||||
|
useRevalidator,
|
||||||
|
useRouteError,
|
||||||
|
useRouteLoaderData,
|
||||||
|
useRoutes,
|
||||||
|
useSearchParams,
|
||||||
|
useSubmit,
|
||||||
|
useViewTransitionState
|
||||||
|
};
|
||||||
7
.vite/deps/react-router.js.map
Normal file
7
.vite/deps/react-router.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
434
.vite/deps/react-toastify.js
vendored
Normal file
434
.vite/deps/react-toastify.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
.vite/deps/react-toastify.js.map
Normal file
7
.vite/deps/react-toastify.js.map
Normal file
File diff suppressed because one or more lines are too long
5811
.vite/deps/react-use.js
vendored
Normal file
5811
.vite/deps/react-use.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/react-use.js.map
Normal file
7
.vite/deps/react-use.js.map
Normal file
File diff suppressed because one or more lines are too long
5
.vite/deps/react.js
vendored
Normal file
5
.vite/deps/react.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import "./chunk-PLDDJCW6.js";
|
||||||
|
export default require_react();
|
||||||
7
.vite/deps/react.js.map
Normal file
7
.vite/deps/react.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
6
.vite/deps/react_jsx-dev-runtime.js
Normal file
6
.vite/deps/react_jsx-dev-runtime.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import {
|
||||||
|
require_jsx_dev_runtime
|
||||||
|
} from "./chunk-B4R7W4KZ.js";
|
||||||
|
import "./chunk-R7JHQV4C.js";
|
||||||
|
import "./chunk-PLDDJCW6.js";
|
||||||
|
export default require_jsx_dev_runtime();
|
||||||
7
.vite/deps/react_jsx-dev-runtime.js.map
Normal file
7
.vite/deps/react_jsx-dev-runtime.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
6
.vite/deps/react_jsx-runtime.js
Normal file
6
.vite/deps/react_jsx-runtime.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import {
|
||||||
|
require_jsx_runtime
|
||||||
|
} from "./chunk-CQKXKKJC.js";
|
||||||
|
import "./chunk-R7JHQV4C.js";
|
||||||
|
import "./chunk-PLDDJCW6.js";
|
||||||
|
export default require_jsx_runtime();
|
||||||
7
.vite/deps/react_jsx-runtime.js.map
Normal file
7
.vite/deps/react_jsx-runtime.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
5902
.vite/deps/recoil.js
Normal file
5902
.vite/deps/recoil.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/recoil.js.map
Normal file
7
.vite/deps/recoil.js.map
Normal file
File diff suppressed because one or more lines are too long
1435
.vite/deps/styled-components.js
Normal file
1435
.vite/deps/styled-components.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/styled-components.js.map
Normal file
7
.vite/deps/styled-components.js.map
Normal file
File diff suppressed because one or more lines are too long
4993
.vite/deps/swiper_react.js
Normal file
4993
.vite/deps/swiper_react.js
Normal file
File diff suppressed because it is too large
Load Diff
7
.vite/deps/swiper_react.js.map
Normal file
7
.vite/deps/swiper_react.js.map
Normal file
File diff suppressed because one or more lines are too long
119
.vite/deps/use-local-storage-state.js
Normal file
119
.vite/deps/use-local-storage-state.js
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
__toESM
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/use-local-storage-state@19._4d94ea5c8b720894eddc04bd1d07d188/node_modules/use-local-storage-state/src/useLocalStorageState.js
|
||||||
|
var import_react = __toESM(require_react(), 1);
|
||||||
|
var inMemoryData = /* @__PURE__ */ new Map();
|
||||||
|
function useLocalStorageState(key, options) {
|
||||||
|
const serializer = options?.serializer;
|
||||||
|
const [defaultValue] = (0, import_react.useState)(options?.defaultValue);
|
||||||
|
const [defaultServerValue] = (0, import_react.useState)(options?.defaultServerValue);
|
||||||
|
return useLocalStorage(key, defaultValue, defaultServerValue, options?.storageSync, serializer?.parse, serializer?.stringify);
|
||||||
|
}
|
||||||
|
function useLocalStorage(key, defaultValue, defaultServerValue, storageSync = true, parse = parseJSON, stringify = JSON.stringify) {
|
||||||
|
const storageItem = (0, import_react.useRef)({
|
||||||
|
string: null,
|
||||||
|
parsed: void 0
|
||||||
|
});
|
||||||
|
const value = (0, import_react.useSyncExternalStore)(
|
||||||
|
// useSyncExternalStore.subscribe
|
||||||
|
(0, import_react.useCallback)((onStoreChange) => {
|
||||||
|
const onChange = (localKey) => {
|
||||||
|
if (key === localKey) {
|
||||||
|
onStoreChange();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
callbacks.add(onChange);
|
||||||
|
return () => {
|
||||||
|
callbacks.delete(onChange);
|
||||||
|
};
|
||||||
|
}, [key]),
|
||||||
|
// useSyncExternalStore.getSnapshot
|
||||||
|
() => {
|
||||||
|
const string = goodTry(() => localStorage.getItem(key)) ?? null;
|
||||||
|
if (inMemoryData.has(key)) {
|
||||||
|
storageItem.current.parsed = inMemoryData.get(key);
|
||||||
|
} else if (string !== storageItem.current.string) {
|
||||||
|
let parsed;
|
||||||
|
try {
|
||||||
|
parsed = string === null ? defaultValue : parse(string);
|
||||||
|
} catch {
|
||||||
|
parsed = defaultValue;
|
||||||
|
}
|
||||||
|
storageItem.current.parsed = parsed;
|
||||||
|
}
|
||||||
|
storageItem.current.string = string;
|
||||||
|
if (defaultValue !== void 0 && string === null) {
|
||||||
|
goodTry(() => {
|
||||||
|
const string2 = stringify(defaultValue);
|
||||||
|
localStorage.setItem(key, string2);
|
||||||
|
storageItem.current = { string: string2, parsed: defaultValue };
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return storageItem.current.parsed;
|
||||||
|
},
|
||||||
|
// useSyncExternalStore.getServerSnapshot
|
||||||
|
() => defaultServerValue ?? defaultValue
|
||||||
|
);
|
||||||
|
const setState = (0, import_react.useCallback)((newValue) => {
|
||||||
|
const value2 = newValue instanceof Function ? newValue(storageItem.current.parsed) : newValue;
|
||||||
|
try {
|
||||||
|
localStorage.setItem(key, stringify(value2));
|
||||||
|
inMemoryData.delete(key);
|
||||||
|
} catch {
|
||||||
|
inMemoryData.set(key, value2);
|
||||||
|
}
|
||||||
|
triggerCallbacks(key);
|
||||||
|
}, [key, stringify]);
|
||||||
|
const removeItem = (0, import_react.useCallback)(() => {
|
||||||
|
goodTry(() => localStorage.removeItem(key));
|
||||||
|
inMemoryData.delete(key);
|
||||||
|
triggerCallbacks(key);
|
||||||
|
}, [key]);
|
||||||
|
(0, import_react.useEffect)(() => {
|
||||||
|
if (!storageSync) {
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
|
const onStorage = (e) => {
|
||||||
|
if (e.key === key && e.storageArea === goodTry(() => localStorage)) {
|
||||||
|
triggerCallbacks(key);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
window.addEventListener("storage", onStorage);
|
||||||
|
return () => window.removeEventListener("storage", onStorage);
|
||||||
|
}, [key, storageSync]);
|
||||||
|
return (0, import_react.useMemo)(() => [
|
||||||
|
value,
|
||||||
|
setState,
|
||||||
|
{
|
||||||
|
isPersistent: value === defaultValue || !inMemoryData.has(key),
|
||||||
|
removeItem
|
||||||
|
}
|
||||||
|
], [key, setState, value, defaultValue, removeItem]);
|
||||||
|
}
|
||||||
|
var callbacks = /* @__PURE__ */ new Set();
|
||||||
|
function triggerCallbacks(key) {
|
||||||
|
for (const callback of [...callbacks]) {
|
||||||
|
callback(key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function parseJSON(value) {
|
||||||
|
return value === "undefined" ? void 0 : JSON.parse(value);
|
||||||
|
}
|
||||||
|
function goodTry(tryFn) {
|
||||||
|
try {
|
||||||
|
return tryFn();
|
||||||
|
} catch {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/.pnpm/use-local-storage-state@19._4d94ea5c8b720894eddc04bd1d07d188/node_modules/use-local-storage-state/index.js
|
||||||
|
var use_local_storage_state_default = useLocalStorageState;
|
||||||
|
export {
|
||||||
|
use_local_storage_state_default as default
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=use-local-storage-state.js.map
|
||||||
7
.vite/deps/use-local-storage-state.js.map
Normal file
7
.vite/deps/use-local-storage-state.js.map
Normal file
File diff suppressed because one or more lines are too long
35
.vite/deps/zustand.js
Normal file
35
.vite/deps/zustand.js
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-R7JHQV4C.js";
|
||||||
|
import {
|
||||||
|
createStore
|
||||||
|
} from "./chunk-2TJP56W3.js";
|
||||||
|
import {
|
||||||
|
__toESM
|
||||||
|
} from "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/zustand@5.0.7_@types+react@_351ff060662620a9a4f6757877b5b1df/node_modules/zustand/esm/react.mjs
|
||||||
|
var import_react = __toESM(require_react(), 1);
|
||||||
|
var identity = (arg) => arg;
|
||||||
|
function useStore(api, selector = identity) {
|
||||||
|
const slice = import_react.default.useSyncExternalStore(
|
||||||
|
api.subscribe,
|
||||||
|
import_react.default.useCallback(() => selector(api.getState()), [api, selector]),
|
||||||
|
import_react.default.useCallback(() => selector(api.getInitialState()), [api, selector])
|
||||||
|
);
|
||||||
|
import_react.default.useDebugValue(slice);
|
||||||
|
return slice;
|
||||||
|
}
|
||||||
|
var createImpl = (createState) => {
|
||||||
|
const api = createStore(createState);
|
||||||
|
const useBoundStore = (selector) => useStore(api, selector);
|
||||||
|
Object.assign(useBoundStore, api);
|
||||||
|
return useBoundStore;
|
||||||
|
};
|
||||||
|
var create = (createState) => createState ? createImpl(createState) : createImpl;
|
||||||
|
export {
|
||||||
|
create,
|
||||||
|
createStore,
|
||||||
|
useStore
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=zustand.js.map
|
||||||
7
.vite/deps/zustand.js.map
Normal file
7
.vite/deps/zustand.js.map
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../node_modules/.pnpm/zustand@5.0.7_@types+react@_351ff060662620a9a4f6757877b5b1df/node_modules/zustand/esm/react.mjs"],
|
||||||
|
"sourcesContent": ["import React from 'react';\nimport { createStore } from 'zustand/vanilla';\n\nconst identity = (arg) => arg;\nfunction useStore(api, selector = identity) {\n const slice = React.useSyncExternalStore(\n api.subscribe,\n React.useCallback(() => selector(api.getState()), [api, selector]),\n React.useCallback(() => selector(api.getInitialState()), [api, selector])\n );\n React.useDebugValue(slice);\n return slice;\n}\nconst createImpl = (createState) => {\n const api = createStore(createState);\n const useBoundStore = (selector) => useStore(api, selector);\n Object.assign(useBoundStore, api);\n return useBoundStore;\n};\nconst create = (createState) => createState ? createImpl(createState) : createImpl;\n\nexport { create, useStore };\n"],
|
||||||
|
"mappings": ";;;;;;;;;;;AAAA,mBAAkB;AAGlB,IAAM,WAAW,CAAC,QAAQ;AAC1B,SAAS,SAAS,KAAK,WAAW,UAAU;AAC1C,QAAM,QAAQ,aAAAA,QAAM;AAAA,IAClB,IAAI;AAAA,IACJ,aAAAA,QAAM,YAAY,MAAM,SAAS,IAAI,SAAS,CAAC,GAAG,CAAC,KAAK,QAAQ,CAAC;AAAA,IACjE,aAAAA,QAAM,YAAY,MAAM,SAAS,IAAI,gBAAgB,CAAC,GAAG,CAAC,KAAK,QAAQ,CAAC;AAAA,EAC1E;AACA,eAAAA,QAAM,cAAc,KAAK;AACzB,SAAO;AACT;AACA,IAAM,aAAa,CAAC,gBAAgB;AAClC,QAAM,MAAM,YAAY,WAAW;AACnC,QAAM,gBAAgB,CAAC,aAAa,SAAS,KAAK,QAAQ;AAC1D,SAAO,OAAO,eAAe,GAAG;AAChC,SAAO;AACT;AACA,IAAM,SAAS,CAAC,gBAAgB,cAAc,WAAW,WAAW,IAAI;",
|
||||||
|
"names": ["React"]
|
||||||
|
}
|
||||||
468
.vite/deps/zustand_middleware.js
Normal file
468
.vite/deps/zustand_middleware.js
Normal file
@@ -0,0 +1,468 @@
|
|||||||
|
import "./chunk-PLDDJCW6.js";
|
||||||
|
|
||||||
|
// node_modules/.pnpm/zustand@5.0.7_@types+react@_351ff060662620a9a4f6757877b5b1df/node_modules/zustand/esm/middleware.mjs
|
||||||
|
var reduxImpl = (reducer, initial) => (set, _get, api) => {
|
||||||
|
api.dispatch = (action) => {
|
||||||
|
set((state) => reducer(state, action), false, action);
|
||||||
|
return action;
|
||||||
|
};
|
||||||
|
api.dispatchFromDevtools = true;
|
||||||
|
return { dispatch: (...args) => api.dispatch(...args), ...initial };
|
||||||
|
};
|
||||||
|
var redux = reduxImpl;
|
||||||
|
var trackedConnections = /* @__PURE__ */ new Map();
|
||||||
|
var getTrackedConnectionState = (name) => {
|
||||||
|
const api = trackedConnections.get(name);
|
||||||
|
if (!api) return {};
|
||||||
|
return Object.fromEntries(
|
||||||
|
Object.entries(api.stores).map(([key, api2]) => [key, api2.getState()])
|
||||||
|
);
|
||||||
|
};
|
||||||
|
var extractConnectionInformation = (store, extensionConnector, options) => {
|
||||||
|
if (store === void 0) {
|
||||||
|
return {
|
||||||
|
type: "untracked",
|
||||||
|
connection: extensionConnector.connect(options)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
const existingConnection = trackedConnections.get(options.name);
|
||||||
|
if (existingConnection) {
|
||||||
|
return { type: "tracked", store, ...existingConnection };
|
||||||
|
}
|
||||||
|
const newConnection = {
|
||||||
|
connection: extensionConnector.connect(options),
|
||||||
|
stores: {}
|
||||||
|
};
|
||||||
|
trackedConnections.set(options.name, newConnection);
|
||||||
|
return { type: "tracked", store, ...newConnection };
|
||||||
|
};
|
||||||
|
var removeStoreFromTrackedConnections = (name, store) => {
|
||||||
|
if (store === void 0) return;
|
||||||
|
const connectionInfo = trackedConnections.get(name);
|
||||||
|
if (!connectionInfo) return;
|
||||||
|
delete connectionInfo.stores[store];
|
||||||
|
if (Object.keys(connectionInfo.stores).length === 0) {
|
||||||
|
trackedConnections.delete(name);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var findCallerName = (stack) => {
|
||||||
|
var _a, _b;
|
||||||
|
if (!stack) return void 0;
|
||||||
|
const traceLines = stack.split("\n");
|
||||||
|
const apiSetStateLineIndex = traceLines.findIndex(
|
||||||
|
(traceLine) => traceLine.includes("api.setState")
|
||||||
|
);
|
||||||
|
if (apiSetStateLineIndex < 0) return void 0;
|
||||||
|
const callerLine = ((_a = traceLines[apiSetStateLineIndex + 1]) == null ? void 0 : _a.trim()) || "";
|
||||||
|
return (_b = /.+ (.+) .+/.exec(callerLine)) == null ? void 0 : _b[1];
|
||||||
|
};
|
||||||
|
var devtoolsImpl = (fn, devtoolsOptions = {}) => (set, get, api) => {
|
||||||
|
const { enabled, anonymousActionType, store, ...options } = devtoolsOptions;
|
||||||
|
let extensionConnector;
|
||||||
|
try {
|
||||||
|
extensionConnector = (enabled != null ? enabled : (import.meta.env ? import.meta.env.MODE : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
|
||||||
|
} catch (e) {
|
||||||
|
}
|
||||||
|
if (!extensionConnector) {
|
||||||
|
return fn(set, get, api);
|
||||||
|
}
|
||||||
|
const { connection, ...connectionInformation } = extractConnectionInformation(store, extensionConnector, options);
|
||||||
|
let isRecording = true;
|
||||||
|
api.setState = (state, replace, nameOrAction) => {
|
||||||
|
const r = set(state, replace);
|
||||||
|
if (!isRecording) return r;
|
||||||
|
const action = nameOrAction === void 0 ? {
|
||||||
|
type: anonymousActionType || findCallerName(new Error().stack) || "anonymous"
|
||||||
|
} : typeof nameOrAction === "string" ? { type: nameOrAction } : nameOrAction;
|
||||||
|
if (store === void 0) {
|
||||||
|
connection == null ? void 0 : connection.send(action, get());
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
connection == null ? void 0 : connection.send(
|
||||||
|
{
|
||||||
|
...action,
|
||||||
|
type: `${store}/${action.type}`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
...getTrackedConnectionState(options.name),
|
||||||
|
[store]: api.getState()
|
||||||
|
}
|
||||||
|
);
|
||||||
|
return r;
|
||||||
|
};
|
||||||
|
api.devtools = {
|
||||||
|
cleanup: () => {
|
||||||
|
if (connection && typeof connection.unsubscribe === "function") {
|
||||||
|
connection.unsubscribe();
|
||||||
|
}
|
||||||
|
removeStoreFromTrackedConnections(options.name, store);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const setStateFromDevtools = (...a) => {
|
||||||
|
const originalIsRecording = isRecording;
|
||||||
|
isRecording = false;
|
||||||
|
set(...a);
|
||||||
|
isRecording = originalIsRecording;
|
||||||
|
};
|
||||||
|
const initialState = fn(api.setState, get, api);
|
||||||
|
if (connectionInformation.type === "untracked") {
|
||||||
|
connection == null ? void 0 : connection.init(initialState);
|
||||||
|
} else {
|
||||||
|
connectionInformation.stores[connectionInformation.store] = api;
|
||||||
|
connection == null ? void 0 : connection.init(
|
||||||
|
Object.fromEntries(
|
||||||
|
Object.entries(connectionInformation.stores).map(([key, store2]) => [
|
||||||
|
key,
|
||||||
|
key === connectionInformation.store ? initialState : store2.getState()
|
||||||
|
])
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (api.dispatchFromDevtools && typeof api.dispatch === "function") {
|
||||||
|
let didWarnAboutReservedActionType = false;
|
||||||
|
const originalDispatch = api.dispatch;
|
||||||
|
api.dispatch = (...args) => {
|
||||||
|
if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production" && args[0].type === "__setState" && !didWarnAboutReservedActionType) {
|
||||||
|
console.warn(
|
||||||
|
'[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'
|
||||||
|
);
|
||||||
|
didWarnAboutReservedActionType = true;
|
||||||
|
}
|
||||||
|
originalDispatch(...args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
connection.subscribe((message) => {
|
||||||
|
var _a;
|
||||||
|
switch (message.type) {
|
||||||
|
case "ACTION":
|
||||||
|
if (typeof message.payload !== "string") {
|
||||||
|
console.error(
|
||||||
|
"[zustand devtools middleware] Unsupported action format"
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
return parseJsonThen(
|
||||||
|
message.payload,
|
||||||
|
(action) => {
|
||||||
|
if (action.type === "__setState") {
|
||||||
|
if (store === void 0) {
|
||||||
|
setStateFromDevtools(action.state);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (Object.keys(action.state).length !== 1) {
|
||||||
|
console.error(
|
||||||
|
`
|
||||||
|
[zustand devtools middleware] Unsupported __setState action format.
|
||||||
|
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
||||||
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
||||||
|
`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
const stateFromDevtools = action.state[store];
|
||||||
|
if (stateFromDevtools === void 0 || stateFromDevtools === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (JSON.stringify(api.getState()) !== JSON.stringify(stateFromDevtools)) {
|
||||||
|
setStateFromDevtools(stateFromDevtools);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!api.dispatchFromDevtools) return;
|
||||||
|
if (typeof api.dispatch !== "function") return;
|
||||||
|
api.dispatch(action);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
case "DISPATCH":
|
||||||
|
switch (message.payload.type) {
|
||||||
|
case "RESET":
|
||||||
|
setStateFromDevtools(initialState);
|
||||||
|
if (store === void 0) {
|
||||||
|
return connection == null ? void 0 : connection.init(api.getState());
|
||||||
|
}
|
||||||
|
return connection == null ? void 0 : connection.init(getTrackedConnectionState(options.name));
|
||||||
|
case "COMMIT":
|
||||||
|
if (store === void 0) {
|
||||||
|
connection == null ? void 0 : connection.init(api.getState());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
return connection == null ? void 0 : connection.init(getTrackedConnectionState(options.name));
|
||||||
|
case "ROLLBACK":
|
||||||
|
return parseJsonThen(message.state, (state) => {
|
||||||
|
if (store === void 0) {
|
||||||
|
setStateFromDevtools(state);
|
||||||
|
connection == null ? void 0 : connection.init(api.getState());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
setStateFromDevtools(state[store]);
|
||||||
|
connection == null ? void 0 : connection.init(getTrackedConnectionState(options.name));
|
||||||
|
});
|
||||||
|
case "JUMP_TO_STATE":
|
||||||
|
case "JUMP_TO_ACTION":
|
||||||
|
return parseJsonThen(message.state, (state) => {
|
||||||
|
if (store === void 0) {
|
||||||
|
setStateFromDevtools(state);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (JSON.stringify(api.getState()) !== JSON.stringify(state[store])) {
|
||||||
|
setStateFromDevtools(state[store]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
case "IMPORT_STATE": {
|
||||||
|
const { nextLiftedState } = message.payload;
|
||||||
|
const lastComputedState = (_a = nextLiftedState.computedStates.slice(-1)[0]) == null ? void 0 : _a.state;
|
||||||
|
if (!lastComputedState) return;
|
||||||
|
if (store === void 0) {
|
||||||
|
setStateFromDevtools(lastComputedState);
|
||||||
|
} else {
|
||||||
|
setStateFromDevtools(lastComputedState[store]);
|
||||||
|
}
|
||||||
|
connection == null ? void 0 : connection.send(
|
||||||
|
null,
|
||||||
|
// FIXME no-any
|
||||||
|
nextLiftedState
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
case "PAUSE_RECORDING":
|
||||||
|
return isRecording = !isRecording;
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return initialState;
|
||||||
|
};
|
||||||
|
var devtools = devtoolsImpl;
|
||||||
|
var parseJsonThen = (stringified, fn) => {
|
||||||
|
let parsed;
|
||||||
|
try {
|
||||||
|
parsed = JSON.parse(stringified);
|
||||||
|
} catch (e) {
|
||||||
|
console.error(
|
||||||
|
"[zustand devtools middleware] Could not parse the received json",
|
||||||
|
e
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (parsed !== void 0) fn(parsed);
|
||||||
|
};
|
||||||
|
var subscribeWithSelectorImpl = (fn) => (set, get, api) => {
|
||||||
|
const origSubscribe = api.subscribe;
|
||||||
|
api.subscribe = (selector, optListener, options) => {
|
||||||
|
let listener = selector;
|
||||||
|
if (optListener) {
|
||||||
|
const equalityFn = (options == null ? void 0 : options.equalityFn) || Object.is;
|
||||||
|
let currentSlice = selector(api.getState());
|
||||||
|
listener = (state) => {
|
||||||
|
const nextSlice = selector(state);
|
||||||
|
if (!equalityFn(currentSlice, nextSlice)) {
|
||||||
|
const previousSlice = currentSlice;
|
||||||
|
optListener(currentSlice = nextSlice, previousSlice);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
if (options == null ? void 0 : options.fireImmediately) {
|
||||||
|
optListener(currentSlice, currentSlice);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return origSubscribe(listener);
|
||||||
|
};
|
||||||
|
const initialState = fn(set, get, api);
|
||||||
|
return initialState;
|
||||||
|
};
|
||||||
|
var subscribeWithSelector = subscribeWithSelectorImpl;
|
||||||
|
function combine(initialState, create) {
|
||||||
|
return (...args) => Object.assign({}, initialState, create(...args));
|
||||||
|
}
|
||||||
|
function createJSONStorage(getStorage, options) {
|
||||||
|
let storage;
|
||||||
|
try {
|
||||||
|
storage = getStorage();
|
||||||
|
} catch (e) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const persistStorage = {
|
||||||
|
getItem: (name) => {
|
||||||
|
var _a;
|
||||||
|
const parse = (str2) => {
|
||||||
|
if (str2 === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return JSON.parse(str2, options == null ? void 0 : options.reviver);
|
||||||
|
};
|
||||||
|
const str = (_a = storage.getItem(name)) != null ? _a : null;
|
||||||
|
if (str instanceof Promise) {
|
||||||
|
return str.then(parse);
|
||||||
|
}
|
||||||
|
return parse(str);
|
||||||
|
},
|
||||||
|
setItem: (name, newValue) => storage.setItem(name, JSON.stringify(newValue, options == null ? void 0 : options.replacer)),
|
||||||
|
removeItem: (name) => storage.removeItem(name)
|
||||||
|
};
|
||||||
|
return persistStorage;
|
||||||
|
}
|
||||||
|
var toThenable = (fn) => (input) => {
|
||||||
|
try {
|
||||||
|
const result = fn(input);
|
||||||
|
if (result instanceof Promise) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
then(onFulfilled) {
|
||||||
|
return toThenable(onFulfilled)(result);
|
||||||
|
},
|
||||||
|
catch(_onRejected) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
} catch (e) {
|
||||||
|
return {
|
||||||
|
then(_onFulfilled) {
|
||||||
|
return this;
|
||||||
|
},
|
||||||
|
catch(onRejected) {
|
||||||
|
return toThenable(onRejected)(e);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var persistImpl = (config, baseOptions) => (set, get, api) => {
|
||||||
|
let options = {
|
||||||
|
storage: createJSONStorage(() => localStorage),
|
||||||
|
partialize: (state) => state,
|
||||||
|
version: 0,
|
||||||
|
merge: (persistedState, currentState) => ({
|
||||||
|
...currentState,
|
||||||
|
...persistedState
|
||||||
|
}),
|
||||||
|
...baseOptions
|
||||||
|
};
|
||||||
|
let hasHydrated = false;
|
||||||
|
const hydrationListeners = /* @__PURE__ */ new Set();
|
||||||
|
const finishHydrationListeners = /* @__PURE__ */ new Set();
|
||||||
|
let storage = options.storage;
|
||||||
|
if (!storage) {
|
||||||
|
return config(
|
||||||
|
(...args) => {
|
||||||
|
console.warn(
|
||||||
|
`[zustand persist middleware] Unable to update item '${options.name}', the given storage is currently unavailable.`
|
||||||
|
);
|
||||||
|
set(...args);
|
||||||
|
},
|
||||||
|
get,
|
||||||
|
api
|
||||||
|
);
|
||||||
|
}
|
||||||
|
const setItem = () => {
|
||||||
|
const state = options.partialize({ ...get() });
|
||||||
|
return storage.setItem(options.name, {
|
||||||
|
state,
|
||||||
|
version: options.version
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const savedSetState = api.setState;
|
||||||
|
api.setState = (state, replace) => {
|
||||||
|
savedSetState(state, replace);
|
||||||
|
void setItem();
|
||||||
|
};
|
||||||
|
const configResult = config(
|
||||||
|
(...args) => {
|
||||||
|
set(...args);
|
||||||
|
void setItem();
|
||||||
|
},
|
||||||
|
get,
|
||||||
|
api
|
||||||
|
);
|
||||||
|
api.getInitialState = () => configResult;
|
||||||
|
let stateFromStorage;
|
||||||
|
const hydrate = () => {
|
||||||
|
var _a, _b;
|
||||||
|
if (!storage) return;
|
||||||
|
hasHydrated = false;
|
||||||
|
hydrationListeners.forEach((cb) => {
|
||||||
|
var _a2;
|
||||||
|
return cb((_a2 = get()) != null ? _a2 : configResult);
|
||||||
|
});
|
||||||
|
const postRehydrationCallback = ((_b = options.onRehydrateStorage) == null ? void 0 : _b.call(options, (_a = get()) != null ? _a : configResult)) || void 0;
|
||||||
|
return toThenable(storage.getItem.bind(storage))(options.name).then((deserializedStorageValue) => {
|
||||||
|
if (deserializedStorageValue) {
|
||||||
|
if (typeof deserializedStorageValue.version === "number" && deserializedStorageValue.version !== options.version) {
|
||||||
|
if (options.migrate) {
|
||||||
|
const migration = options.migrate(
|
||||||
|
deserializedStorageValue.state,
|
||||||
|
deserializedStorageValue.version
|
||||||
|
);
|
||||||
|
if (migration instanceof Promise) {
|
||||||
|
return migration.then((result) => [true, result]);
|
||||||
|
}
|
||||||
|
return [true, migration];
|
||||||
|
}
|
||||||
|
console.error(
|
||||||
|
`State loaded from storage couldn't be migrated since no migrate function was provided`
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return [false, deserializedStorageValue.state];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return [false, void 0];
|
||||||
|
}).then((migrationResult) => {
|
||||||
|
var _a2;
|
||||||
|
const [migrated, migratedState] = migrationResult;
|
||||||
|
stateFromStorage = options.merge(
|
||||||
|
migratedState,
|
||||||
|
(_a2 = get()) != null ? _a2 : configResult
|
||||||
|
);
|
||||||
|
set(stateFromStorage, true);
|
||||||
|
if (migrated) {
|
||||||
|
return setItem();
|
||||||
|
}
|
||||||
|
}).then(() => {
|
||||||
|
postRehydrationCallback == null ? void 0 : postRehydrationCallback(stateFromStorage, void 0);
|
||||||
|
stateFromStorage = get();
|
||||||
|
hasHydrated = true;
|
||||||
|
finishHydrationListeners.forEach((cb) => cb(stateFromStorage));
|
||||||
|
}).catch((e) => {
|
||||||
|
postRehydrationCallback == null ? void 0 : postRehydrationCallback(void 0, e);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
api.persist = {
|
||||||
|
setOptions: (newOptions) => {
|
||||||
|
options = {
|
||||||
|
...options,
|
||||||
|
...newOptions
|
||||||
|
};
|
||||||
|
if (newOptions.storage) {
|
||||||
|
storage = newOptions.storage;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clearStorage: () => {
|
||||||
|
storage == null ? void 0 : storage.removeItem(options.name);
|
||||||
|
},
|
||||||
|
getOptions: () => options,
|
||||||
|
rehydrate: () => hydrate(),
|
||||||
|
hasHydrated: () => hasHydrated,
|
||||||
|
onHydrate: (cb) => {
|
||||||
|
hydrationListeners.add(cb);
|
||||||
|
return () => {
|
||||||
|
hydrationListeners.delete(cb);
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onFinishHydration: (cb) => {
|
||||||
|
finishHydrationListeners.add(cb);
|
||||||
|
return () => {
|
||||||
|
finishHydrationListeners.delete(cb);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
if (!options.skipHydration) {
|
||||||
|
hydrate();
|
||||||
|
}
|
||||||
|
return stateFromStorage || configResult;
|
||||||
|
};
|
||||||
|
var persist = persistImpl;
|
||||||
|
export {
|
||||||
|
combine,
|
||||||
|
createJSONStorage,
|
||||||
|
devtools,
|
||||||
|
persist,
|
||||||
|
redux,
|
||||||
|
subscribeWithSelector
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=zustand_middleware.js.map
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user