Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub (part 13)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- frontend/node_modules/.pnpm-workspace-state-v1.json +36 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.browser.production.js +0 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.bun.development.js +0 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.bun.production.js +0 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.edge.development.js +0 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.edge.production.js +0 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.node.production.js +0 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-test-utils.development.js +24 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-test-utils.production.js +21 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom.development.js +424 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom.production.js +210 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom.react-server.development.js +340 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom.react-server.production.js +152 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/client.js +38 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/client.react-server.js +5 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/index.js +38 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/package.json +117 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/profiling.js +38 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/profiling.react-server.js +5 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/react-dom.react-server.js +7 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.browser.js +16 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.bun.js +17 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.edge.js +17 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.js +3 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.node.js +18 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.react-server.js +5 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/static.browser.js +12 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/static.edge.js +12 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/static.js +3 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/static.node.js +14 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/static.react-server.js +5 -0
- frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/test-utils.js +7 -0
- frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/LICENSE +21 -0
- frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/README.md +5 -0
- frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/babel.js +7 -0
- frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/cjs/react-refresh-babel.development.js +601 -0
- frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/cjs/react-refresh-babel.production.js +586 -0
- frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/cjs/react-refresh-runtime.development.js +338 -0
- frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/cjs/react-refresh-runtime.production.js +14 -0
- frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/package.json +38 -0
- frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/runtime.js +7 -0
- frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/LICENSE +21 -0
- frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/README.md +37 -0
- frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-compiler-runtime.development.js +24 -0
- frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-compiler-runtime.production.js +16 -0
- frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-compiler-runtime.profiling.js +16 -0
- frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-dev-runtime.development.js +338 -0
- frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-dev-runtime.production.js +14 -0
- frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-dev-runtime.profiling.js +14 -0
frontend/node_modules/.pnpm-workspace-state-v1.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"lastValidatedTimestamp": 1786094450288,
|
| 3 |
+
"projects": {
|
| 4 |
+
"/Users/hongmingtan/Library/CloudStorage/Dropbox-Personal/PHD/Teaching/BME5203 AI From Basics to Execution/AgenticNodeBuilder2/frontend": {
|
| 5 |
+
"name": "agentic-workflow-lab",
|
| 6 |
+
"version": "1.0.0"
|
| 7 |
+
}
|
| 8 |
+
},
|
| 9 |
+
"pnpmfiles": [],
|
| 10 |
+
"settings": {
|
| 11 |
+
"autoInstallPeers": true,
|
| 12 |
+
"catalogs": {},
|
| 13 |
+
"dedupeDirectDeps": false,
|
| 14 |
+
"dedupeInjectedDeps": true,
|
| 15 |
+
"dedupePeerDependents": true,
|
| 16 |
+
"dedupePeers": false,
|
| 17 |
+
"dev": true,
|
| 18 |
+
"excludeLinksFromLockfile": false,
|
| 19 |
+
"hoistPattern": [
|
| 20 |
+
"*"
|
| 21 |
+
],
|
| 22 |
+
"hoistWorkspacePackages": true,
|
| 23 |
+
"injectWorkspacePackages": false,
|
| 24 |
+
"linkWorkspacePackages": false,
|
| 25 |
+
"nodeLinker": "isolated",
|
| 26 |
+
"optional": true,
|
| 27 |
+
"peersSuffixMaxLength": 1000,
|
| 28 |
+
"preferWorkspacePackages": false,
|
| 29 |
+
"production": true,
|
| 30 |
+
"publicHoistPattern": [],
|
| 31 |
+
"workspacePackagePatterns": [
|
| 32 |
+
"."
|
| 33 |
+
]
|
| 34 |
+
},
|
| 35 |
+
"filteredInstall": false
|
| 36 |
+
}
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.browser.production.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.bun.development.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.bun.production.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.edge.development.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.edge.production.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.node.development.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-server.node.production.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-test-utils.development.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-dom-test-utils.development.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
"production" !== process.env.NODE_ENV &&
|
| 13 |
+
(function () {
|
| 14 |
+
var React = require("react"),
|
| 15 |
+
didWarnAboutUsingAct = !1;
|
| 16 |
+
exports.act = function (callback) {
|
| 17 |
+
!1 === didWarnAboutUsingAct &&
|
| 18 |
+
((didWarnAboutUsingAct = !0),
|
| 19 |
+
console.error(
|
| 20 |
+
"`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info."
|
| 21 |
+
));
|
| 22 |
+
return React.act(callback);
|
| 23 |
+
};
|
| 24 |
+
})();
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom-test-utils.production.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-dom-test-utils.production.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
var React = require("react"),
|
| 13 |
+
didWarnAboutUsingAct = !1;
|
| 14 |
+
exports.act = function (callback) {
|
| 15 |
+
!1 === didWarnAboutUsingAct &&
|
| 16 |
+
((didWarnAboutUsingAct = !0),
|
| 17 |
+
console.error(
|
| 18 |
+
"`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info."
|
| 19 |
+
));
|
| 20 |
+
return React.act(callback);
|
| 21 |
+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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-dom.development.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
"production" !== process.env.NODE_ENV &&
|
| 13 |
+
(function () {
|
| 14 |
+
function noop() {}
|
| 15 |
+
function testStringCoercion(value) {
|
| 16 |
+
return "" + value;
|
| 17 |
+
}
|
| 18 |
+
function createPortal$1(children, containerInfo, implementation) {
|
| 19 |
+
var key =
|
| 20 |
+
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
| 21 |
+
try {
|
| 22 |
+
testStringCoercion(key);
|
| 23 |
+
var JSCompiler_inline_result = !1;
|
| 24 |
+
} catch (e) {
|
| 25 |
+
JSCompiler_inline_result = !0;
|
| 26 |
+
}
|
| 27 |
+
JSCompiler_inline_result &&
|
| 28 |
+
(console.error(
|
| 29 |
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
| 30 |
+
("function" === typeof Symbol &&
|
| 31 |
+
Symbol.toStringTag &&
|
| 32 |
+
key[Symbol.toStringTag]) ||
|
| 33 |
+
key.constructor.name ||
|
| 34 |
+
"Object"
|
| 35 |
+
),
|
| 36 |
+
testStringCoercion(key));
|
| 37 |
+
return {
|
| 38 |
+
$$typeof: REACT_PORTAL_TYPE,
|
| 39 |
+
key: null == key ? null : "" + key,
|
| 40 |
+
children: children,
|
| 41 |
+
containerInfo: containerInfo,
|
| 42 |
+
implementation: implementation
|
| 43 |
+
};
|
| 44 |
+
}
|
| 45 |
+
function getCrossOriginStringAs(as, input) {
|
| 46 |
+
if ("font" === as) return "";
|
| 47 |
+
if ("string" === typeof input)
|
| 48 |
+
return "use-credentials" === input ? input : "";
|
| 49 |
+
}
|
| 50 |
+
function getValueDescriptorExpectingObjectForWarning(thing) {
|
| 51 |
+
return null === thing
|
| 52 |
+
? "`null`"
|
| 53 |
+
: void 0 === thing
|
| 54 |
+
? "`undefined`"
|
| 55 |
+
: "" === thing
|
| 56 |
+
? "an empty string"
|
| 57 |
+
: 'something with type "' + typeof thing + '"';
|
| 58 |
+
}
|
| 59 |
+
function getValueDescriptorExpectingEnumForWarning(thing) {
|
| 60 |
+
return null === thing
|
| 61 |
+
? "`null`"
|
| 62 |
+
: void 0 === thing
|
| 63 |
+
? "`undefined`"
|
| 64 |
+
: "" === thing
|
| 65 |
+
? "an empty string"
|
| 66 |
+
: "string" === typeof thing
|
| 67 |
+
? JSON.stringify(thing)
|
| 68 |
+
: "number" === typeof thing
|
| 69 |
+
? "`" + thing + "`"
|
| 70 |
+
: 'something with type "' + typeof thing + '"';
|
| 71 |
+
}
|
| 72 |
+
function resolveDispatcher() {
|
| 73 |
+
var dispatcher = ReactSharedInternals.H;
|
| 74 |
+
null === dispatcher &&
|
| 75 |
+
console.error(
|
| 76 |
+
"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."
|
| 77 |
+
);
|
| 78 |
+
return dispatcher;
|
| 79 |
+
}
|
| 80 |
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
| 81 |
+
"function" ===
|
| 82 |
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
| 83 |
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
| 84 |
+
var React = require("react"),
|
| 85 |
+
Internals = {
|
| 86 |
+
d: {
|
| 87 |
+
f: noop,
|
| 88 |
+
r: function () {
|
| 89 |
+
throw Error(
|
| 90 |
+
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
| 91 |
+
);
|
| 92 |
+
},
|
| 93 |
+
D: noop,
|
| 94 |
+
C: noop,
|
| 95 |
+
L: noop,
|
| 96 |
+
m: noop,
|
| 97 |
+
X: noop,
|
| 98 |
+
S: noop,
|
| 99 |
+
M: noop
|
| 100 |
+
},
|
| 101 |
+
p: 0,
|
| 102 |
+
findDOMNode: null
|
| 103 |
+
},
|
| 104 |
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
| 105 |
+
ReactSharedInternals =
|
| 106 |
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
| 107 |
+
("function" === typeof Map &&
|
| 108 |
+
null != Map.prototype &&
|
| 109 |
+
"function" === typeof Map.prototype.forEach &&
|
| 110 |
+
"function" === typeof Set &&
|
| 111 |
+
null != Set.prototype &&
|
| 112 |
+
"function" === typeof Set.prototype.clear &&
|
| 113 |
+
"function" === typeof Set.prototype.forEach) ||
|
| 114 |
+
console.error(
|
| 115 |
+
"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"
|
| 116 |
+
);
|
| 117 |
+
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
| 118 |
+
Internals;
|
| 119 |
+
exports.createPortal = function (children, container) {
|
| 120 |
+
var key =
|
| 121 |
+
2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
| 122 |
+
if (
|
| 123 |
+
!container ||
|
| 124 |
+
(1 !== container.nodeType &&
|
| 125 |
+
9 !== container.nodeType &&
|
| 126 |
+
11 !== container.nodeType)
|
| 127 |
+
)
|
| 128 |
+
throw Error("Target container is not a DOM element.");
|
| 129 |
+
return createPortal$1(children, container, null, key);
|
| 130 |
+
};
|
| 131 |
+
exports.flushSync = function (fn) {
|
| 132 |
+
var previousTransition = ReactSharedInternals.T,
|
| 133 |
+
previousUpdatePriority = Internals.p;
|
| 134 |
+
try {
|
| 135 |
+
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn))
|
| 136 |
+
return fn();
|
| 137 |
+
} finally {
|
| 138 |
+
(ReactSharedInternals.T = previousTransition),
|
| 139 |
+
(Internals.p = previousUpdatePriority),
|
| 140 |
+
Internals.d.f() &&
|
| 141 |
+
console.error(
|
| 142 |
+
"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."
|
| 143 |
+
);
|
| 144 |
+
}
|
| 145 |
+
};
|
| 146 |
+
exports.preconnect = function (href, options) {
|
| 147 |
+
"string" === typeof href && href
|
| 148 |
+
? null != options && "object" !== typeof options
|
| 149 |
+
? console.error(
|
| 150 |
+
"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.",
|
| 151 |
+
getValueDescriptorExpectingEnumForWarning(options)
|
| 152 |
+
)
|
| 153 |
+
: null != options &&
|
| 154 |
+
"string" !== typeof options.crossOrigin &&
|
| 155 |
+
console.error(
|
| 156 |
+
"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.",
|
| 157 |
+
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
| 158 |
+
)
|
| 159 |
+
: console.error(
|
| 160 |
+
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
| 161 |
+
getValueDescriptorExpectingObjectForWarning(href)
|
| 162 |
+
);
|
| 163 |
+
"string" === typeof href &&
|
| 164 |
+
(options
|
| 165 |
+
? ((options = options.crossOrigin),
|
| 166 |
+
(options =
|
| 167 |
+
"string" === typeof options
|
| 168 |
+
? "use-credentials" === options
|
| 169 |
+
? options
|
| 170 |
+
: ""
|
| 171 |
+
: void 0))
|
| 172 |
+
: (options = null),
|
| 173 |
+
Internals.d.C(href, options));
|
| 174 |
+
};
|
| 175 |
+
exports.prefetchDNS = function (href) {
|
| 176 |
+
if ("string" !== typeof href || !href)
|
| 177 |
+
console.error(
|
| 178 |
+
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
| 179 |
+
getValueDescriptorExpectingObjectForWarning(href)
|
| 180 |
+
);
|
| 181 |
+
else if (1 < arguments.length) {
|
| 182 |
+
var options = arguments[1];
|
| 183 |
+
"object" === typeof options && options.hasOwnProperty("crossOrigin")
|
| 184 |
+
? console.error(
|
| 185 |
+
"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`.",
|
| 186 |
+
getValueDescriptorExpectingEnumForWarning(options)
|
| 187 |
+
)
|
| 188 |
+
: console.error(
|
| 189 |
+
"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`.",
|
| 190 |
+
getValueDescriptorExpectingEnumForWarning(options)
|
| 191 |
+
);
|
| 192 |
+
}
|
| 193 |
+
"string" === typeof href && Internals.d.D(href);
|
| 194 |
+
};
|
| 195 |
+
exports.preinit = function (href, options) {
|
| 196 |
+
"string" === typeof href && href
|
| 197 |
+
? null == options || "object" !== typeof options
|
| 198 |
+
? console.error(
|
| 199 |
+
"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.",
|
| 200 |
+
getValueDescriptorExpectingEnumForWarning(options)
|
| 201 |
+
)
|
| 202 |
+
: "style" !== options.as &&
|
| 203 |
+
"script" !== options.as &&
|
| 204 |
+
console.error(
|
| 205 |
+
'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".',
|
| 206 |
+
getValueDescriptorExpectingEnumForWarning(options.as)
|
| 207 |
+
)
|
| 208 |
+
: console.error(
|
| 209 |
+
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
| 210 |
+
getValueDescriptorExpectingObjectForWarning(href)
|
| 211 |
+
);
|
| 212 |
+
if (
|
| 213 |
+
"string" === typeof href &&
|
| 214 |
+
options &&
|
| 215 |
+
"string" === typeof options.as
|
| 216 |
+
) {
|
| 217 |
+
var as = options.as,
|
| 218 |
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
| 219 |
+
integrity =
|
| 220 |
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
| 221 |
+
fetchPriority =
|
| 222 |
+
"string" === typeof options.fetchPriority
|
| 223 |
+
? options.fetchPriority
|
| 224 |
+
: void 0;
|
| 225 |
+
"style" === as
|
| 226 |
+
? Internals.d.S(
|
| 227 |
+
href,
|
| 228 |
+
"string" === typeof options.precedence
|
| 229 |
+
? options.precedence
|
| 230 |
+
: void 0,
|
| 231 |
+
{
|
| 232 |
+
crossOrigin: crossOrigin,
|
| 233 |
+
integrity: integrity,
|
| 234 |
+
fetchPriority: fetchPriority
|
| 235 |
+
}
|
| 236 |
+
)
|
| 237 |
+
: "script" === as &&
|
| 238 |
+
Internals.d.X(href, {
|
| 239 |
+
crossOrigin: crossOrigin,
|
| 240 |
+
integrity: integrity,
|
| 241 |
+
fetchPriority: fetchPriority,
|
| 242 |
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
| 243 |
+
});
|
| 244 |
+
}
|
| 245 |
+
};
|
| 246 |
+
exports.preinitModule = function (href, options) {
|
| 247 |
+
var encountered = "";
|
| 248 |
+
("string" === typeof href && href) ||
|
| 249 |
+
(encountered +=
|
| 250 |
+
" The `href` argument encountered was " +
|
| 251 |
+
getValueDescriptorExpectingObjectForWarning(href) +
|
| 252 |
+
".");
|
| 253 |
+
void 0 !== options && "object" !== typeof options
|
| 254 |
+
? (encountered +=
|
| 255 |
+
" The `options` argument encountered was " +
|
| 256 |
+
getValueDescriptorExpectingObjectForWarning(options) +
|
| 257 |
+
".")
|
| 258 |
+
: options &&
|
| 259 |
+
"as" in options &&
|
| 260 |
+
"script" !== options.as &&
|
| 261 |
+
(encountered +=
|
| 262 |
+
" The `as` option encountered was " +
|
| 263 |
+
getValueDescriptorExpectingEnumForWarning(options.as) +
|
| 264 |
+
".");
|
| 265 |
+
if (encountered)
|
| 266 |
+
console.error(
|
| 267 |
+
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
| 268 |
+
encountered
|
| 269 |
+
);
|
| 270 |
+
else
|
| 271 |
+
switch (
|
| 272 |
+
((encountered =
|
| 273 |
+
options && "string" === typeof options.as ? options.as : "script"),
|
| 274 |
+
encountered)
|
| 275 |
+
) {
|
| 276 |
+
case "script":
|
| 277 |
+
break;
|
| 278 |
+
default:
|
| 279 |
+
(encountered =
|
| 280 |
+
getValueDescriptorExpectingEnumForWarning(encountered)),
|
| 281 |
+
console.error(
|
| 282 |
+
'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)',
|
| 283 |
+
encountered,
|
| 284 |
+
href
|
| 285 |
+
);
|
| 286 |
+
}
|
| 287 |
+
if ("string" === typeof href)
|
| 288 |
+
if ("object" === typeof options && null !== options) {
|
| 289 |
+
if (null == options.as || "script" === options.as)
|
| 290 |
+
(encountered = getCrossOriginStringAs(
|
| 291 |
+
options.as,
|
| 292 |
+
options.crossOrigin
|
| 293 |
+
)),
|
| 294 |
+
Internals.d.M(href, {
|
| 295 |
+
crossOrigin: encountered,
|
| 296 |
+
integrity:
|
| 297 |
+
"string" === typeof options.integrity
|
| 298 |
+
? options.integrity
|
| 299 |
+
: void 0,
|
| 300 |
+
nonce:
|
| 301 |
+
"string" === typeof options.nonce ? options.nonce : void 0
|
| 302 |
+
});
|
| 303 |
+
} else null == options && Internals.d.M(href);
|
| 304 |
+
};
|
| 305 |
+
exports.preload = function (href, options) {
|
| 306 |
+
var encountered = "";
|
| 307 |
+
("string" === typeof href && href) ||
|
| 308 |
+
(encountered +=
|
| 309 |
+
" The `href` argument encountered was " +
|
| 310 |
+
getValueDescriptorExpectingObjectForWarning(href) +
|
| 311 |
+
".");
|
| 312 |
+
null == options || "object" !== typeof options
|
| 313 |
+
? (encountered +=
|
| 314 |
+
" The `options` argument encountered was " +
|
| 315 |
+
getValueDescriptorExpectingObjectForWarning(options) +
|
| 316 |
+
".")
|
| 317 |
+
: ("string" === typeof options.as && options.as) ||
|
| 318 |
+
(encountered +=
|
| 319 |
+
" The `as` option encountered was " +
|
| 320 |
+
getValueDescriptorExpectingObjectForWarning(options.as) +
|
| 321 |
+
".");
|
| 322 |
+
encountered &&
|
| 323 |
+
console.error(
|
| 324 |
+
'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',
|
| 325 |
+
encountered
|
| 326 |
+
);
|
| 327 |
+
if (
|
| 328 |
+
"string" === typeof href &&
|
| 329 |
+
"object" === typeof options &&
|
| 330 |
+
null !== options &&
|
| 331 |
+
"string" === typeof options.as
|
| 332 |
+
) {
|
| 333 |
+
encountered = options.as;
|
| 334 |
+
var crossOrigin = getCrossOriginStringAs(
|
| 335 |
+
encountered,
|
| 336 |
+
options.crossOrigin
|
| 337 |
+
);
|
| 338 |
+
Internals.d.L(href, encountered, {
|
| 339 |
+
crossOrigin: crossOrigin,
|
| 340 |
+
integrity:
|
| 341 |
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
| 342 |
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
| 343 |
+
type: "string" === typeof options.type ? options.type : void 0,
|
| 344 |
+
fetchPriority:
|
| 345 |
+
"string" === typeof options.fetchPriority
|
| 346 |
+
? options.fetchPriority
|
| 347 |
+
: void 0,
|
| 348 |
+
referrerPolicy:
|
| 349 |
+
"string" === typeof options.referrerPolicy
|
| 350 |
+
? options.referrerPolicy
|
| 351 |
+
: void 0,
|
| 352 |
+
imageSrcSet:
|
| 353 |
+
"string" === typeof options.imageSrcSet
|
| 354 |
+
? options.imageSrcSet
|
| 355 |
+
: void 0,
|
| 356 |
+
imageSizes:
|
| 357 |
+
"string" === typeof options.imageSizes
|
| 358 |
+
? options.imageSizes
|
| 359 |
+
: void 0,
|
| 360 |
+
media: "string" === typeof options.media ? options.media : void 0
|
| 361 |
+
});
|
| 362 |
+
}
|
| 363 |
+
};
|
| 364 |
+
exports.preloadModule = function (href, options) {
|
| 365 |
+
var encountered = "";
|
| 366 |
+
("string" === typeof href && href) ||
|
| 367 |
+
(encountered +=
|
| 368 |
+
" The `href` argument encountered was " +
|
| 369 |
+
getValueDescriptorExpectingObjectForWarning(href) +
|
| 370 |
+
".");
|
| 371 |
+
void 0 !== options && "object" !== typeof options
|
| 372 |
+
? (encountered +=
|
| 373 |
+
" The `options` argument encountered was " +
|
| 374 |
+
getValueDescriptorExpectingObjectForWarning(options) +
|
| 375 |
+
".")
|
| 376 |
+
: options &&
|
| 377 |
+
"as" in options &&
|
| 378 |
+
"string" !== typeof options.as &&
|
| 379 |
+
(encountered +=
|
| 380 |
+
" The `as` option encountered was " +
|
| 381 |
+
getValueDescriptorExpectingObjectForWarning(options.as) +
|
| 382 |
+
".");
|
| 383 |
+
encountered &&
|
| 384 |
+
console.error(
|
| 385 |
+
'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',
|
| 386 |
+
encountered
|
| 387 |
+
);
|
| 388 |
+
"string" === typeof href &&
|
| 389 |
+
(options
|
| 390 |
+
? ((encountered = getCrossOriginStringAs(
|
| 391 |
+
options.as,
|
| 392 |
+
options.crossOrigin
|
| 393 |
+
)),
|
| 394 |
+
Internals.d.m(href, {
|
| 395 |
+
as:
|
| 396 |
+
"string" === typeof options.as && "script" !== options.as
|
| 397 |
+
? options.as
|
| 398 |
+
: void 0,
|
| 399 |
+
crossOrigin: encountered,
|
| 400 |
+
integrity:
|
| 401 |
+
"string" === typeof options.integrity
|
| 402 |
+
? options.integrity
|
| 403 |
+
: void 0
|
| 404 |
+
}))
|
| 405 |
+
: Internals.d.m(href));
|
| 406 |
+
};
|
| 407 |
+
exports.requestFormReset = function (form) {
|
| 408 |
+
Internals.d.r(form);
|
| 409 |
+
};
|
| 410 |
+
exports.unstable_batchedUpdates = function (fn, a) {
|
| 411 |
+
return fn(a);
|
| 412 |
+
};
|
| 413 |
+
exports.useFormState = function (action, initialState, permalink) {
|
| 414 |
+
return resolveDispatcher().useFormState(action, initialState, permalink);
|
| 415 |
+
};
|
| 416 |
+
exports.useFormStatus = function () {
|
| 417 |
+
return resolveDispatcher().useHostTransitionStatus();
|
| 418 |
+
};
|
| 419 |
+
exports.version = "19.2.8";
|
| 420 |
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
| 421 |
+
"function" ===
|
| 422 |
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
| 423 |
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
| 424 |
+
})();
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom.production.js
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-dom.production.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
var React = require("react");
|
| 13 |
+
function formatProdErrorMessage(code) {
|
| 14 |
+
var url = "https://react.dev/errors/" + code;
|
| 15 |
+
if (1 < arguments.length) {
|
| 16 |
+
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
| 17 |
+
for (var i = 2; i < arguments.length; i++)
|
| 18 |
+
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
| 19 |
+
}
|
| 20 |
+
return (
|
| 21 |
+
"Minified React error #" +
|
| 22 |
+
code +
|
| 23 |
+
"; visit " +
|
| 24 |
+
url +
|
| 25 |
+
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
|
| 26 |
+
);
|
| 27 |
+
}
|
| 28 |
+
function noop() {}
|
| 29 |
+
var Internals = {
|
| 30 |
+
d: {
|
| 31 |
+
f: noop,
|
| 32 |
+
r: function () {
|
| 33 |
+
throw Error(formatProdErrorMessage(522));
|
| 34 |
+
},
|
| 35 |
+
D: noop,
|
| 36 |
+
C: noop,
|
| 37 |
+
L: noop,
|
| 38 |
+
m: noop,
|
| 39 |
+
X: noop,
|
| 40 |
+
S: noop,
|
| 41 |
+
M: noop
|
| 42 |
+
},
|
| 43 |
+
p: 0,
|
| 44 |
+
findDOMNode: null
|
| 45 |
+
},
|
| 46 |
+
REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
| 47 |
+
function createPortal$1(children, containerInfo, implementation) {
|
| 48 |
+
var key =
|
| 49 |
+
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
| 50 |
+
return {
|
| 51 |
+
$$typeof: REACT_PORTAL_TYPE,
|
| 52 |
+
key: null == key ? null : "" + key,
|
| 53 |
+
children: children,
|
| 54 |
+
containerInfo: containerInfo,
|
| 55 |
+
implementation: implementation
|
| 56 |
+
};
|
| 57 |
+
}
|
| 58 |
+
var ReactSharedInternals =
|
| 59 |
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
| 60 |
+
function getCrossOriginStringAs(as, input) {
|
| 61 |
+
if ("font" === as) return "";
|
| 62 |
+
if ("string" === typeof input)
|
| 63 |
+
return "use-credentials" === input ? input : "";
|
| 64 |
+
}
|
| 65 |
+
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
| 66 |
+
Internals;
|
| 67 |
+
exports.createPortal = function (children, container) {
|
| 68 |
+
var key =
|
| 69 |
+
2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
| 70 |
+
if (
|
| 71 |
+
!container ||
|
| 72 |
+
(1 !== container.nodeType &&
|
| 73 |
+
9 !== container.nodeType &&
|
| 74 |
+
11 !== container.nodeType)
|
| 75 |
+
)
|
| 76 |
+
throw Error(formatProdErrorMessage(299));
|
| 77 |
+
return createPortal$1(children, container, null, key);
|
| 78 |
+
};
|
| 79 |
+
exports.flushSync = function (fn) {
|
| 80 |
+
var previousTransition = ReactSharedInternals.T,
|
| 81 |
+
previousUpdatePriority = Internals.p;
|
| 82 |
+
try {
|
| 83 |
+
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();
|
| 84 |
+
} finally {
|
| 85 |
+
(ReactSharedInternals.T = previousTransition),
|
| 86 |
+
(Internals.p = previousUpdatePriority),
|
| 87 |
+
Internals.d.f();
|
| 88 |
+
}
|
| 89 |
+
};
|
| 90 |
+
exports.preconnect = function (href, options) {
|
| 91 |
+
"string" === typeof href &&
|
| 92 |
+
(options
|
| 93 |
+
? ((options = options.crossOrigin),
|
| 94 |
+
(options =
|
| 95 |
+
"string" === typeof options
|
| 96 |
+
? "use-credentials" === options
|
| 97 |
+
? options
|
| 98 |
+
: ""
|
| 99 |
+
: void 0))
|
| 100 |
+
: (options = null),
|
| 101 |
+
Internals.d.C(href, options));
|
| 102 |
+
};
|
| 103 |
+
exports.prefetchDNS = function (href) {
|
| 104 |
+
"string" === typeof href && Internals.d.D(href);
|
| 105 |
+
};
|
| 106 |
+
exports.preinit = function (href, options) {
|
| 107 |
+
if ("string" === typeof href && options && "string" === typeof options.as) {
|
| 108 |
+
var as = options.as,
|
| 109 |
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
| 110 |
+
integrity =
|
| 111 |
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
| 112 |
+
fetchPriority =
|
| 113 |
+
"string" === typeof options.fetchPriority
|
| 114 |
+
? options.fetchPriority
|
| 115 |
+
: void 0;
|
| 116 |
+
"style" === as
|
| 117 |
+
? Internals.d.S(
|
| 118 |
+
href,
|
| 119 |
+
"string" === typeof options.precedence ? options.precedence : void 0,
|
| 120 |
+
{
|
| 121 |
+
crossOrigin: crossOrigin,
|
| 122 |
+
integrity: integrity,
|
| 123 |
+
fetchPriority: fetchPriority
|
| 124 |
+
}
|
| 125 |
+
)
|
| 126 |
+
: "script" === as &&
|
| 127 |
+
Internals.d.X(href, {
|
| 128 |
+
crossOrigin: crossOrigin,
|
| 129 |
+
integrity: integrity,
|
| 130 |
+
fetchPriority: fetchPriority,
|
| 131 |
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
| 132 |
+
});
|
| 133 |
+
}
|
| 134 |
+
};
|
| 135 |
+
exports.preinitModule = function (href, options) {
|
| 136 |
+
if ("string" === typeof href)
|
| 137 |
+
if ("object" === typeof options && null !== options) {
|
| 138 |
+
if (null == options.as || "script" === options.as) {
|
| 139 |
+
var crossOrigin = getCrossOriginStringAs(
|
| 140 |
+
options.as,
|
| 141 |
+
options.crossOrigin
|
| 142 |
+
);
|
| 143 |
+
Internals.d.M(href, {
|
| 144 |
+
crossOrigin: crossOrigin,
|
| 145 |
+
integrity:
|
| 146 |
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
| 147 |
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
| 148 |
+
});
|
| 149 |
+
}
|
| 150 |
+
} else null == options && Internals.d.M(href);
|
| 151 |
+
};
|
| 152 |
+
exports.preload = function (href, options) {
|
| 153 |
+
if (
|
| 154 |
+
"string" === typeof href &&
|
| 155 |
+
"object" === typeof options &&
|
| 156 |
+
null !== options &&
|
| 157 |
+
"string" === typeof options.as
|
| 158 |
+
) {
|
| 159 |
+
var as = options.as,
|
| 160 |
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
|
| 161 |
+
Internals.d.L(href, as, {
|
| 162 |
+
crossOrigin: crossOrigin,
|
| 163 |
+
integrity:
|
| 164 |
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
| 165 |
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
| 166 |
+
type: "string" === typeof options.type ? options.type : void 0,
|
| 167 |
+
fetchPriority:
|
| 168 |
+
"string" === typeof options.fetchPriority
|
| 169 |
+
? options.fetchPriority
|
| 170 |
+
: void 0,
|
| 171 |
+
referrerPolicy:
|
| 172 |
+
"string" === typeof options.referrerPolicy
|
| 173 |
+
? options.referrerPolicy
|
| 174 |
+
: void 0,
|
| 175 |
+
imageSrcSet:
|
| 176 |
+
"string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
| 177 |
+
imageSizes:
|
| 178 |
+
"string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
| 179 |
+
media: "string" === typeof options.media ? options.media : void 0
|
| 180 |
+
});
|
| 181 |
+
}
|
| 182 |
+
};
|
| 183 |
+
exports.preloadModule = function (href, options) {
|
| 184 |
+
if ("string" === typeof href)
|
| 185 |
+
if (options) {
|
| 186 |
+
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
|
| 187 |
+
Internals.d.m(href, {
|
| 188 |
+
as:
|
| 189 |
+
"string" === typeof options.as && "script" !== options.as
|
| 190 |
+
? options.as
|
| 191 |
+
: void 0,
|
| 192 |
+
crossOrigin: crossOrigin,
|
| 193 |
+
integrity:
|
| 194 |
+
"string" === typeof options.integrity ? options.integrity : void 0
|
| 195 |
+
});
|
| 196 |
+
} else Internals.d.m(href);
|
| 197 |
+
};
|
| 198 |
+
exports.requestFormReset = function (form) {
|
| 199 |
+
Internals.d.r(form);
|
| 200 |
+
};
|
| 201 |
+
exports.unstable_batchedUpdates = function (fn, a) {
|
| 202 |
+
return fn(a);
|
| 203 |
+
};
|
| 204 |
+
exports.useFormState = function (action, initialState, permalink) {
|
| 205 |
+
return ReactSharedInternals.H.useFormState(action, initialState, permalink);
|
| 206 |
+
};
|
| 207 |
+
exports.useFormStatus = function () {
|
| 208 |
+
return ReactSharedInternals.H.useHostTransitionStatus();
|
| 209 |
+
};
|
| 210 |
+
exports.version = "19.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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-dom.react-server.development.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
"production" !== process.env.NODE_ENV &&
|
| 13 |
+
(function () {
|
| 14 |
+
function noop() {}
|
| 15 |
+
function getCrossOriginStringAs(as, input) {
|
| 16 |
+
if ("font" === as) return "";
|
| 17 |
+
if ("string" === typeof input)
|
| 18 |
+
return "use-credentials" === input ? input : "";
|
| 19 |
+
}
|
| 20 |
+
function getValueDescriptorExpectingObjectForWarning(thing) {
|
| 21 |
+
return null === thing
|
| 22 |
+
? "`null`"
|
| 23 |
+
: void 0 === thing
|
| 24 |
+
? "`undefined`"
|
| 25 |
+
: "" === thing
|
| 26 |
+
? "an empty string"
|
| 27 |
+
: 'something with type "' + typeof thing + '"';
|
| 28 |
+
}
|
| 29 |
+
function getValueDescriptorExpectingEnumForWarning(thing) {
|
| 30 |
+
return null === thing
|
| 31 |
+
? "`null`"
|
| 32 |
+
: void 0 === thing
|
| 33 |
+
? "`undefined`"
|
| 34 |
+
: "" === thing
|
| 35 |
+
? "an empty string"
|
| 36 |
+
: "string" === typeof thing
|
| 37 |
+
? JSON.stringify(thing)
|
| 38 |
+
: "number" === typeof thing
|
| 39 |
+
? "`" + thing + "`"
|
| 40 |
+
: 'something with type "' + typeof thing + '"';
|
| 41 |
+
}
|
| 42 |
+
var React = require("react"),
|
| 43 |
+
Internals = {
|
| 44 |
+
d: {
|
| 45 |
+
f: noop,
|
| 46 |
+
r: function () {
|
| 47 |
+
throw Error(
|
| 48 |
+
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
| 49 |
+
);
|
| 50 |
+
},
|
| 51 |
+
D: noop,
|
| 52 |
+
C: noop,
|
| 53 |
+
L: noop,
|
| 54 |
+
m: noop,
|
| 55 |
+
X: noop,
|
| 56 |
+
S: noop,
|
| 57 |
+
M: noop
|
| 58 |
+
},
|
| 59 |
+
p: 0,
|
| 60 |
+
findDOMNode: null
|
| 61 |
+
};
|
| 62 |
+
if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
|
| 63 |
+
throw Error(
|
| 64 |
+
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
| 65 |
+
);
|
| 66 |
+
("function" === typeof Map &&
|
| 67 |
+
null != Map.prototype &&
|
| 68 |
+
"function" === typeof Map.prototype.forEach &&
|
| 69 |
+
"function" === typeof Set &&
|
| 70 |
+
null != Set.prototype &&
|
| 71 |
+
"function" === typeof Set.prototype.clear &&
|
| 72 |
+
"function" === typeof Set.prototype.forEach) ||
|
| 73 |
+
console.error(
|
| 74 |
+
"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"
|
| 75 |
+
);
|
| 76 |
+
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
| 77 |
+
Internals;
|
| 78 |
+
exports.preconnect = function (href, options) {
|
| 79 |
+
"string" === typeof href && href
|
| 80 |
+
? null != options && "object" !== typeof options
|
| 81 |
+
? console.error(
|
| 82 |
+
"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.",
|
| 83 |
+
getValueDescriptorExpectingEnumForWarning(options)
|
| 84 |
+
)
|
| 85 |
+
: null != options &&
|
| 86 |
+
"string" !== typeof options.crossOrigin &&
|
| 87 |
+
console.error(
|
| 88 |
+
"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.",
|
| 89 |
+
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
| 90 |
+
)
|
| 91 |
+
: console.error(
|
| 92 |
+
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
| 93 |
+
getValueDescriptorExpectingObjectForWarning(href)
|
| 94 |
+
);
|
| 95 |
+
"string" === typeof href &&
|
| 96 |
+
(options
|
| 97 |
+
? ((options = options.crossOrigin),
|
| 98 |
+
(options =
|
| 99 |
+
"string" === typeof options
|
| 100 |
+
? "use-credentials" === options
|
| 101 |
+
? options
|
| 102 |
+
: ""
|
| 103 |
+
: void 0))
|
| 104 |
+
: (options = null),
|
| 105 |
+
Internals.d.C(href, options));
|
| 106 |
+
};
|
| 107 |
+
exports.prefetchDNS = function (href) {
|
| 108 |
+
if ("string" !== typeof href || !href)
|
| 109 |
+
console.error(
|
| 110 |
+
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
| 111 |
+
getValueDescriptorExpectingObjectForWarning(href)
|
| 112 |
+
);
|
| 113 |
+
else if (1 < arguments.length) {
|
| 114 |
+
var options = arguments[1];
|
| 115 |
+
"object" === typeof options && options.hasOwnProperty("crossOrigin")
|
| 116 |
+
? console.error(
|
| 117 |
+
"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`.",
|
| 118 |
+
getValueDescriptorExpectingEnumForWarning(options)
|
| 119 |
+
)
|
| 120 |
+
: console.error(
|
| 121 |
+
"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`.",
|
| 122 |
+
getValueDescriptorExpectingEnumForWarning(options)
|
| 123 |
+
);
|
| 124 |
+
}
|
| 125 |
+
"string" === typeof href && Internals.d.D(href);
|
| 126 |
+
};
|
| 127 |
+
exports.preinit = function (href, options) {
|
| 128 |
+
"string" === typeof href && href
|
| 129 |
+
? null == options || "object" !== typeof options
|
| 130 |
+
? console.error(
|
| 131 |
+
"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.",
|
| 132 |
+
getValueDescriptorExpectingEnumForWarning(options)
|
| 133 |
+
)
|
| 134 |
+
: "style" !== options.as &&
|
| 135 |
+
"script" !== options.as &&
|
| 136 |
+
console.error(
|
| 137 |
+
'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".',
|
| 138 |
+
getValueDescriptorExpectingEnumForWarning(options.as)
|
| 139 |
+
)
|
| 140 |
+
: console.error(
|
| 141 |
+
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
| 142 |
+
getValueDescriptorExpectingObjectForWarning(href)
|
| 143 |
+
);
|
| 144 |
+
if (
|
| 145 |
+
"string" === typeof href &&
|
| 146 |
+
options &&
|
| 147 |
+
"string" === typeof options.as
|
| 148 |
+
) {
|
| 149 |
+
var as = options.as,
|
| 150 |
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
| 151 |
+
integrity =
|
| 152 |
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
| 153 |
+
fetchPriority =
|
| 154 |
+
"string" === typeof options.fetchPriority
|
| 155 |
+
? options.fetchPriority
|
| 156 |
+
: void 0;
|
| 157 |
+
"style" === as
|
| 158 |
+
? Internals.d.S(
|
| 159 |
+
href,
|
| 160 |
+
"string" === typeof options.precedence
|
| 161 |
+
? options.precedence
|
| 162 |
+
: void 0,
|
| 163 |
+
{
|
| 164 |
+
crossOrigin: crossOrigin,
|
| 165 |
+
integrity: integrity,
|
| 166 |
+
fetchPriority: fetchPriority
|
| 167 |
+
}
|
| 168 |
+
)
|
| 169 |
+
: "script" === as &&
|
| 170 |
+
Internals.d.X(href, {
|
| 171 |
+
crossOrigin: crossOrigin,
|
| 172 |
+
integrity: integrity,
|
| 173 |
+
fetchPriority: fetchPriority,
|
| 174 |
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
| 175 |
+
});
|
| 176 |
+
}
|
| 177 |
+
};
|
| 178 |
+
exports.preinitModule = function (href, options) {
|
| 179 |
+
var encountered = "";
|
| 180 |
+
("string" === typeof href && href) ||
|
| 181 |
+
(encountered +=
|
| 182 |
+
" The `href` argument encountered was " +
|
| 183 |
+
getValueDescriptorExpectingObjectForWarning(href) +
|
| 184 |
+
".");
|
| 185 |
+
void 0 !== options && "object" !== typeof options
|
| 186 |
+
? (encountered +=
|
| 187 |
+
" The `options` argument encountered was " +
|
| 188 |
+
getValueDescriptorExpectingObjectForWarning(options) +
|
| 189 |
+
".")
|
| 190 |
+
: options &&
|
| 191 |
+
"as" in options &&
|
| 192 |
+
"script" !== options.as &&
|
| 193 |
+
(encountered +=
|
| 194 |
+
" The `as` option encountered was " +
|
| 195 |
+
getValueDescriptorExpectingEnumForWarning(options.as) +
|
| 196 |
+
".");
|
| 197 |
+
if (encountered)
|
| 198 |
+
console.error(
|
| 199 |
+
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
| 200 |
+
encountered
|
| 201 |
+
);
|
| 202 |
+
else
|
| 203 |
+
switch (
|
| 204 |
+
((encountered =
|
| 205 |
+
options && "string" === typeof options.as ? options.as : "script"),
|
| 206 |
+
encountered)
|
| 207 |
+
) {
|
| 208 |
+
case "script":
|
| 209 |
+
break;
|
| 210 |
+
default:
|
| 211 |
+
(encountered =
|
| 212 |
+
getValueDescriptorExpectingEnumForWarning(encountered)),
|
| 213 |
+
console.error(
|
| 214 |
+
'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)',
|
| 215 |
+
encountered,
|
| 216 |
+
href
|
| 217 |
+
);
|
| 218 |
+
}
|
| 219 |
+
if ("string" === typeof href)
|
| 220 |
+
if ("object" === typeof options && null !== options) {
|
| 221 |
+
if (null == options.as || "script" === options.as)
|
| 222 |
+
(encountered = getCrossOriginStringAs(
|
| 223 |
+
options.as,
|
| 224 |
+
options.crossOrigin
|
| 225 |
+
)),
|
| 226 |
+
Internals.d.M(href, {
|
| 227 |
+
crossOrigin: encountered,
|
| 228 |
+
integrity:
|
| 229 |
+
"string" === typeof options.integrity
|
| 230 |
+
? options.integrity
|
| 231 |
+
: void 0,
|
| 232 |
+
nonce:
|
| 233 |
+
"string" === typeof options.nonce ? options.nonce : void 0
|
| 234 |
+
});
|
| 235 |
+
} else null == options && Internals.d.M(href);
|
| 236 |
+
};
|
| 237 |
+
exports.preload = function (href, options) {
|
| 238 |
+
var encountered = "";
|
| 239 |
+
("string" === typeof href && href) ||
|
| 240 |
+
(encountered +=
|
| 241 |
+
" The `href` argument encountered was " +
|
| 242 |
+
getValueDescriptorExpectingObjectForWarning(href) +
|
| 243 |
+
".");
|
| 244 |
+
null == options || "object" !== typeof options
|
| 245 |
+
? (encountered +=
|
| 246 |
+
" The `options` argument encountered was " +
|
| 247 |
+
getValueDescriptorExpectingObjectForWarning(options) +
|
| 248 |
+
".")
|
| 249 |
+
: ("string" === typeof options.as && options.as) ||
|
| 250 |
+
(encountered +=
|
| 251 |
+
" The `as` option encountered was " +
|
| 252 |
+
getValueDescriptorExpectingObjectForWarning(options.as) +
|
| 253 |
+
".");
|
| 254 |
+
encountered &&
|
| 255 |
+
console.error(
|
| 256 |
+
'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',
|
| 257 |
+
encountered
|
| 258 |
+
);
|
| 259 |
+
if (
|
| 260 |
+
"string" === typeof href &&
|
| 261 |
+
"object" === typeof options &&
|
| 262 |
+
null !== options &&
|
| 263 |
+
"string" === typeof options.as
|
| 264 |
+
) {
|
| 265 |
+
encountered = options.as;
|
| 266 |
+
var crossOrigin = getCrossOriginStringAs(
|
| 267 |
+
encountered,
|
| 268 |
+
options.crossOrigin
|
| 269 |
+
);
|
| 270 |
+
Internals.d.L(href, encountered, {
|
| 271 |
+
crossOrigin: crossOrigin,
|
| 272 |
+
integrity:
|
| 273 |
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
| 274 |
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
| 275 |
+
type: "string" === typeof options.type ? options.type : void 0,
|
| 276 |
+
fetchPriority:
|
| 277 |
+
"string" === typeof options.fetchPriority
|
| 278 |
+
? options.fetchPriority
|
| 279 |
+
: void 0,
|
| 280 |
+
referrerPolicy:
|
| 281 |
+
"string" === typeof options.referrerPolicy
|
| 282 |
+
? options.referrerPolicy
|
| 283 |
+
: void 0,
|
| 284 |
+
imageSrcSet:
|
| 285 |
+
"string" === typeof options.imageSrcSet
|
| 286 |
+
? options.imageSrcSet
|
| 287 |
+
: void 0,
|
| 288 |
+
imageSizes:
|
| 289 |
+
"string" === typeof options.imageSizes
|
| 290 |
+
? options.imageSizes
|
| 291 |
+
: void 0,
|
| 292 |
+
media: "string" === typeof options.media ? options.media : void 0
|
| 293 |
+
});
|
| 294 |
+
}
|
| 295 |
+
};
|
| 296 |
+
exports.preloadModule = function (href, options) {
|
| 297 |
+
var encountered = "";
|
| 298 |
+
("string" === typeof href && href) ||
|
| 299 |
+
(encountered +=
|
| 300 |
+
" The `href` argument encountered was " +
|
| 301 |
+
getValueDescriptorExpectingObjectForWarning(href) +
|
| 302 |
+
".");
|
| 303 |
+
void 0 !== options && "object" !== typeof options
|
| 304 |
+
? (encountered +=
|
| 305 |
+
" The `options` argument encountered was " +
|
| 306 |
+
getValueDescriptorExpectingObjectForWarning(options) +
|
| 307 |
+
".")
|
| 308 |
+
: options &&
|
| 309 |
+
"as" in options &&
|
| 310 |
+
"string" !== typeof options.as &&
|
| 311 |
+
(encountered +=
|
| 312 |
+
" The `as` option encountered was " +
|
| 313 |
+
getValueDescriptorExpectingObjectForWarning(options.as) +
|
| 314 |
+
".");
|
| 315 |
+
encountered &&
|
| 316 |
+
console.error(
|
| 317 |
+
'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',
|
| 318 |
+
encountered
|
| 319 |
+
);
|
| 320 |
+
"string" === typeof href &&
|
| 321 |
+
(options
|
| 322 |
+
? ((encountered = getCrossOriginStringAs(
|
| 323 |
+
options.as,
|
| 324 |
+
options.crossOrigin
|
| 325 |
+
)),
|
| 326 |
+
Internals.d.m(href, {
|
| 327 |
+
as:
|
| 328 |
+
"string" === typeof options.as && "script" !== options.as
|
| 329 |
+
? options.as
|
| 330 |
+
: void 0,
|
| 331 |
+
crossOrigin: encountered,
|
| 332 |
+
integrity:
|
| 333 |
+
"string" === typeof options.integrity
|
| 334 |
+
? options.integrity
|
| 335 |
+
: void 0
|
| 336 |
+
}))
|
| 337 |
+
: Internals.d.m(href));
|
| 338 |
+
};
|
| 339 |
+
exports.version = "19.2.8";
|
| 340 |
+
})();
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/cjs/react-dom.react-server.production.js
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-dom.react-server.production.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
var React = require("react");
|
| 13 |
+
function noop() {}
|
| 14 |
+
var Internals = {
|
| 15 |
+
d: {
|
| 16 |
+
f: noop,
|
| 17 |
+
r: function () {
|
| 18 |
+
throw Error(
|
| 19 |
+
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
| 20 |
+
);
|
| 21 |
+
},
|
| 22 |
+
D: noop,
|
| 23 |
+
C: noop,
|
| 24 |
+
L: noop,
|
| 25 |
+
m: noop,
|
| 26 |
+
X: noop,
|
| 27 |
+
S: noop,
|
| 28 |
+
M: noop
|
| 29 |
+
},
|
| 30 |
+
p: 0,
|
| 31 |
+
findDOMNode: null
|
| 32 |
+
};
|
| 33 |
+
if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
|
| 34 |
+
throw Error(
|
| 35 |
+
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
| 36 |
+
);
|
| 37 |
+
function getCrossOriginStringAs(as, input) {
|
| 38 |
+
if ("font" === as) return "";
|
| 39 |
+
if ("string" === typeof input)
|
| 40 |
+
return "use-credentials" === input ? input : "";
|
| 41 |
+
}
|
| 42 |
+
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
| 43 |
+
Internals;
|
| 44 |
+
exports.preconnect = function (href, options) {
|
| 45 |
+
"string" === typeof href &&
|
| 46 |
+
(options
|
| 47 |
+
? ((options = options.crossOrigin),
|
| 48 |
+
(options =
|
| 49 |
+
"string" === typeof options
|
| 50 |
+
? "use-credentials" === options
|
| 51 |
+
? options
|
| 52 |
+
: ""
|
| 53 |
+
: void 0))
|
| 54 |
+
: (options = null),
|
| 55 |
+
Internals.d.C(href, options));
|
| 56 |
+
};
|
| 57 |
+
exports.prefetchDNS = function (href) {
|
| 58 |
+
"string" === typeof href && Internals.d.D(href);
|
| 59 |
+
};
|
| 60 |
+
exports.preinit = function (href, options) {
|
| 61 |
+
if ("string" === typeof href && options && "string" === typeof options.as) {
|
| 62 |
+
var as = options.as,
|
| 63 |
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
| 64 |
+
integrity =
|
| 65 |
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
| 66 |
+
fetchPriority =
|
| 67 |
+
"string" === typeof options.fetchPriority
|
| 68 |
+
? options.fetchPriority
|
| 69 |
+
: void 0;
|
| 70 |
+
"style" === as
|
| 71 |
+
? Internals.d.S(
|
| 72 |
+
href,
|
| 73 |
+
"string" === typeof options.precedence ? options.precedence : void 0,
|
| 74 |
+
{
|
| 75 |
+
crossOrigin: crossOrigin,
|
| 76 |
+
integrity: integrity,
|
| 77 |
+
fetchPriority: fetchPriority
|
| 78 |
+
}
|
| 79 |
+
)
|
| 80 |
+
: "script" === as &&
|
| 81 |
+
Internals.d.X(href, {
|
| 82 |
+
crossOrigin: crossOrigin,
|
| 83 |
+
integrity: integrity,
|
| 84 |
+
fetchPriority: fetchPriority,
|
| 85 |
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
| 86 |
+
});
|
| 87 |
+
}
|
| 88 |
+
};
|
| 89 |
+
exports.preinitModule = function (href, options) {
|
| 90 |
+
if ("string" === typeof href)
|
| 91 |
+
if ("object" === typeof options && null !== options) {
|
| 92 |
+
if (null == options.as || "script" === options.as) {
|
| 93 |
+
var crossOrigin = getCrossOriginStringAs(
|
| 94 |
+
options.as,
|
| 95 |
+
options.crossOrigin
|
| 96 |
+
);
|
| 97 |
+
Internals.d.M(href, {
|
| 98 |
+
crossOrigin: crossOrigin,
|
| 99 |
+
integrity:
|
| 100 |
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
| 101 |
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
| 102 |
+
});
|
| 103 |
+
}
|
| 104 |
+
} else null == options && Internals.d.M(href);
|
| 105 |
+
};
|
| 106 |
+
exports.preload = function (href, options) {
|
| 107 |
+
if (
|
| 108 |
+
"string" === typeof href &&
|
| 109 |
+
"object" === typeof options &&
|
| 110 |
+
null !== options &&
|
| 111 |
+
"string" === typeof options.as
|
| 112 |
+
) {
|
| 113 |
+
var as = options.as,
|
| 114 |
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
|
| 115 |
+
Internals.d.L(href, as, {
|
| 116 |
+
crossOrigin: crossOrigin,
|
| 117 |
+
integrity:
|
| 118 |
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
| 119 |
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
| 120 |
+
type: "string" === typeof options.type ? options.type : void 0,
|
| 121 |
+
fetchPriority:
|
| 122 |
+
"string" === typeof options.fetchPriority
|
| 123 |
+
? options.fetchPriority
|
| 124 |
+
: void 0,
|
| 125 |
+
referrerPolicy:
|
| 126 |
+
"string" === typeof options.referrerPolicy
|
| 127 |
+
? options.referrerPolicy
|
| 128 |
+
: void 0,
|
| 129 |
+
imageSrcSet:
|
| 130 |
+
"string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
| 131 |
+
imageSizes:
|
| 132 |
+
"string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
| 133 |
+
media: "string" === typeof options.media ? options.media : void 0
|
| 134 |
+
});
|
| 135 |
+
}
|
| 136 |
+
};
|
| 137 |
+
exports.preloadModule = function (href, options) {
|
| 138 |
+
if ("string" === typeof href)
|
| 139 |
+
if (options) {
|
| 140 |
+
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
|
| 141 |
+
Internals.d.m(href, {
|
| 142 |
+
as:
|
| 143 |
+
"string" === typeof options.as && "script" !== options.as
|
| 144 |
+
? options.as
|
| 145 |
+
: void 0,
|
| 146 |
+
crossOrigin: crossOrigin,
|
| 147 |
+
integrity:
|
| 148 |
+
"string" === typeof options.integrity ? options.integrity : void 0
|
| 149 |
+
});
|
| 150 |
+
} else Internals.d.m(href);
|
| 151 |
+
};
|
| 152 |
+
exports.version = "19.2.8";
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/client.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
function checkDCE() {
|
| 4 |
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
| 5 |
+
if (
|
| 6 |
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
|
| 7 |
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
|
| 8 |
+
) {
|
| 9 |
+
return;
|
| 10 |
+
}
|
| 11 |
+
if (process.env.NODE_ENV !== 'production') {
|
| 12 |
+
// This branch is unreachable because this function is only called
|
| 13 |
+
// in production, but the condition is true only in development.
|
| 14 |
+
// Therefore if the branch is still here, dead code elimination wasn't
|
| 15 |
+
// properly applied.
|
| 16 |
+
// Don't change the message. React DevTools relies on it. Also make sure
|
| 17 |
+
// this message doesn't occur elsewhere in this function, or it will cause
|
| 18 |
+
// a false positive.
|
| 19 |
+
throw new Error('^_^');
|
| 20 |
+
}
|
| 21 |
+
try {
|
| 22 |
+
// Verify that the code above has been dead code eliminated (DCE'd).
|
| 23 |
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
| 24 |
+
} catch (err) {
|
| 25 |
+
// DevTools shouldn't crash React, no matter what.
|
| 26 |
+
// We should still report in case we break this code.
|
| 27 |
+
console.error(err);
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
if (process.env.NODE_ENV === 'production') {
|
| 32 |
+
// DCE check should happen before ReactDOM bundle executes so that
|
| 33 |
+
// DevTools can report bad minification during injection.
|
| 34 |
+
checkDCE();
|
| 35 |
+
module.exports = require('./cjs/react-dom-client.production.js');
|
| 36 |
+
} else {
|
| 37 |
+
module.exports = require('./cjs/react-dom-client.development.js');
|
| 38 |
+
}
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/client.react-server.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
throw new Error(
|
| 4 |
+
'react-dom/client is not supported in React Server Components.'
|
| 5 |
+
);
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
function checkDCE() {
|
| 4 |
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
| 5 |
+
if (
|
| 6 |
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
|
| 7 |
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
|
| 8 |
+
) {
|
| 9 |
+
return;
|
| 10 |
+
}
|
| 11 |
+
if (process.env.NODE_ENV !== 'production') {
|
| 12 |
+
// This branch is unreachable because this function is only called
|
| 13 |
+
// in production, but the condition is true only in development.
|
| 14 |
+
// Therefore if the branch is still here, dead code elimination wasn't
|
| 15 |
+
// properly applied.
|
| 16 |
+
// Don't change the message. React DevTools relies on it. Also make sure
|
| 17 |
+
// this message doesn't occur elsewhere in this function, or it will cause
|
| 18 |
+
// a false positive.
|
| 19 |
+
throw new Error('^_^');
|
| 20 |
+
}
|
| 21 |
+
try {
|
| 22 |
+
// Verify that the code above has been dead code eliminated (DCE'd).
|
| 23 |
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
| 24 |
+
} catch (err) {
|
| 25 |
+
// DevTools shouldn't crash React, no matter what.
|
| 26 |
+
// We should still report in case we break this code.
|
| 27 |
+
console.error(err);
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
if (process.env.NODE_ENV === 'production') {
|
| 32 |
+
// DCE check should happen before ReactDOM bundle executes so that
|
| 33 |
+
// DevTools can report bad minification during injection.
|
| 34 |
+
checkDCE();
|
| 35 |
+
module.exports = require('./cjs/react-dom.production.js');
|
| 36 |
+
} else {
|
| 37 |
+
module.exports = require('./cjs/react-dom.development.js');
|
| 38 |
+
}
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/package.json
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "react-dom",
|
| 3 |
+
"version": "19.2.8",
|
| 4 |
+
"description": "React package for working with the DOM.",
|
| 5 |
+
"main": "index.js",
|
| 6 |
+
"repository": {
|
| 7 |
+
"type": "git",
|
| 8 |
+
"url": "https://github.com/react/react.git",
|
| 9 |
+
"directory": "packages/react-dom"
|
| 10 |
+
},
|
| 11 |
+
"keywords": [
|
| 12 |
+
"react"
|
| 13 |
+
],
|
| 14 |
+
"license": "MIT",
|
| 15 |
+
"bugs": {
|
| 16 |
+
"url": "https://github.com/react/react/issues"
|
| 17 |
+
},
|
| 18 |
+
"homepage": "https://react.dev/",
|
| 19 |
+
"dependencies": {
|
| 20 |
+
"scheduler": "^0.27.0"
|
| 21 |
+
},
|
| 22 |
+
"peerDependencies": {
|
| 23 |
+
"react": "^19.2.8"
|
| 24 |
+
},
|
| 25 |
+
"files": [
|
| 26 |
+
"LICENSE",
|
| 27 |
+
"README.md",
|
| 28 |
+
"client.js",
|
| 29 |
+
"client.react-server.js",
|
| 30 |
+
"index.js",
|
| 31 |
+
"profiling.js",
|
| 32 |
+
"profiling.react-server.js",
|
| 33 |
+
"react-dom.react-server.js",
|
| 34 |
+
"server.browser.js",
|
| 35 |
+
"server.bun.js",
|
| 36 |
+
"server.edge.js",
|
| 37 |
+
"server.js",
|
| 38 |
+
"server.node.js",
|
| 39 |
+
"server.react-server.js",
|
| 40 |
+
"static.browser.js",
|
| 41 |
+
"static.edge.js",
|
| 42 |
+
"static.js",
|
| 43 |
+
"static.node.js",
|
| 44 |
+
"static.react-server.js",
|
| 45 |
+
"test-utils.js",
|
| 46 |
+
"cjs/"
|
| 47 |
+
],
|
| 48 |
+
"exports": {
|
| 49 |
+
".": {
|
| 50 |
+
"react-server": "./react-dom.react-server.js",
|
| 51 |
+
"default": "./index.js"
|
| 52 |
+
},
|
| 53 |
+
"./client": {
|
| 54 |
+
"react-server": "./client.react-server.js",
|
| 55 |
+
"default": "./client.js"
|
| 56 |
+
},
|
| 57 |
+
"./server": {
|
| 58 |
+
"react-server": "./server.react-server.js",
|
| 59 |
+
"workerd": "./server.edge.js",
|
| 60 |
+
"bun": "./server.bun.js",
|
| 61 |
+
"deno": "./server.browser.js",
|
| 62 |
+
"worker": "./server.browser.js",
|
| 63 |
+
"node": "./server.node.js",
|
| 64 |
+
"edge-light": "./server.edge.js",
|
| 65 |
+
"browser": "./server.browser.js",
|
| 66 |
+
"default": "./server.node.js"
|
| 67 |
+
},
|
| 68 |
+
"./server.browser": {
|
| 69 |
+
"react-server": "./server.react-server.js",
|
| 70 |
+
"default": "./server.browser.js"
|
| 71 |
+
},
|
| 72 |
+
"./server.bun": {
|
| 73 |
+
"react-server": "./server.react-server.js",
|
| 74 |
+
"default": "./server.bun.js"
|
| 75 |
+
},
|
| 76 |
+
"./server.edge": {
|
| 77 |
+
"react-server": "./server.react-server.js",
|
| 78 |
+
"default": "./server.edge.js"
|
| 79 |
+
},
|
| 80 |
+
"./server.node": {
|
| 81 |
+
"react-server": "./server.react-server.js",
|
| 82 |
+
"default": "./server.node.js"
|
| 83 |
+
},
|
| 84 |
+
"./static": {
|
| 85 |
+
"react-server": "./static.react-server.js",
|
| 86 |
+
"workerd": "./static.edge.js",
|
| 87 |
+
"deno": "./static.browser.js",
|
| 88 |
+
"worker": "./static.browser.js",
|
| 89 |
+
"node": "./static.node.js",
|
| 90 |
+
"edge-light": "./static.edge.js",
|
| 91 |
+
"browser": "./static.browser.js",
|
| 92 |
+
"default": "./static.node.js"
|
| 93 |
+
},
|
| 94 |
+
"./static.browser": {
|
| 95 |
+
"react-server": "./static.react-server.js",
|
| 96 |
+
"default": "./static.browser.js"
|
| 97 |
+
},
|
| 98 |
+
"./static.edge": {
|
| 99 |
+
"react-server": "./static.react-server.js",
|
| 100 |
+
"default": "./static.edge.js"
|
| 101 |
+
},
|
| 102 |
+
"./static.node": {
|
| 103 |
+
"react-server": "./static.react-server.js",
|
| 104 |
+
"default": "./static.node.js"
|
| 105 |
+
},
|
| 106 |
+
"./profiling": {
|
| 107 |
+
"react-server": "./profiling.react-server.js",
|
| 108 |
+
"default": "./profiling.js"
|
| 109 |
+
},
|
| 110 |
+
"./test-utils": "./test-utils.js",
|
| 111 |
+
"./package.json": "./package.json"
|
| 112 |
+
},
|
| 113 |
+
"browser": {
|
| 114 |
+
"./server.js": "./server.browser.js",
|
| 115 |
+
"./static.js": "./static.browser.js"
|
| 116 |
+
}
|
| 117 |
+
}
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/profiling.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
function checkDCE() {
|
| 4 |
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
| 5 |
+
if (
|
| 6 |
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
|
| 7 |
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
|
| 8 |
+
) {
|
| 9 |
+
return;
|
| 10 |
+
}
|
| 11 |
+
if (process.env.NODE_ENV !== 'production') {
|
| 12 |
+
// This branch is unreachable because this function is only called
|
| 13 |
+
// in production, but the condition is true only in development.
|
| 14 |
+
// Therefore if the branch is still here, dead code elimination wasn't
|
| 15 |
+
// properly applied.
|
| 16 |
+
// Don't change the message. React DevTools relies on it. Also make sure
|
| 17 |
+
// this message doesn't occur elsewhere in this function, or it will cause
|
| 18 |
+
// a false positive.
|
| 19 |
+
throw new Error('^_^');
|
| 20 |
+
}
|
| 21 |
+
try {
|
| 22 |
+
// Verify that the code above has been dead code eliminated (DCE'd).
|
| 23 |
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
| 24 |
+
} catch (err) {
|
| 25 |
+
// DevTools shouldn't crash React, no matter what.
|
| 26 |
+
// We should still report in case we break this code.
|
| 27 |
+
console.error(err);
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
if (process.env.NODE_ENV === 'production') {
|
| 32 |
+
// DCE check should happen before ReactDOM bundle executes so that
|
| 33 |
+
// DevTools can report bad minification during injection.
|
| 34 |
+
checkDCE();
|
| 35 |
+
module.exports = require('./cjs/react-dom-profiling.profiling.js');
|
| 36 |
+
} else {
|
| 37 |
+
module.exports = require('./cjs/react-dom-profiling.development.js');
|
| 38 |
+
}
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/profiling.react-server.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
throw new Error(
|
| 4 |
+
'react-dom/profiling is not supported in React Server Components.'
|
| 5 |
+
);
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/react-dom.react-server.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
if (process.env.NODE_ENV === 'production') {
|
| 4 |
+
module.exports = require('./cjs/react-dom.react-server.production.js');
|
| 5 |
+
} else {
|
| 6 |
+
module.exports = require('./cjs/react-dom.react-server.development.js');
|
| 7 |
+
}
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.browser.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var l, s;
|
| 4 |
+
if (process.env.NODE_ENV === 'production') {
|
| 5 |
+
l = require('./cjs/react-dom-server-legacy.browser.production.js');
|
| 6 |
+
s = require('./cjs/react-dom-server.browser.production.js');
|
| 7 |
+
} else {
|
| 8 |
+
l = require('./cjs/react-dom-server-legacy.browser.development.js');
|
| 9 |
+
s = require('./cjs/react-dom-server.browser.development.js');
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
exports.version = l.version;
|
| 13 |
+
exports.renderToString = l.renderToString;
|
| 14 |
+
exports.renderToStaticMarkup = l.renderToStaticMarkup;
|
| 15 |
+
exports.renderToReadableStream = s.renderToReadableStream;
|
| 16 |
+
exports.resume = s.resume;
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.bun.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var b;
|
| 4 |
+
var l;
|
| 5 |
+
if (process.env.NODE_ENV === 'production') {
|
| 6 |
+
b = require('./cjs/react-dom-server.bun.production.js');
|
| 7 |
+
l = require('./cjs/react-dom-server-legacy.browser.production.js');
|
| 8 |
+
} else {
|
| 9 |
+
b = require('./cjs/react-dom-server.bun.development.js');
|
| 10 |
+
l = require('./cjs/react-dom-server-legacy.browser.development.js');
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
exports.version = b.version;
|
| 14 |
+
exports.renderToReadableStream = b.renderToReadableStream;
|
| 15 |
+
exports.resume = b.resume;
|
| 16 |
+
exports.renderToString = l.renderToString;
|
| 17 |
+
exports.renderToStaticMarkup = l.renderToStaticMarkup;
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.edge.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var b;
|
| 4 |
+
var l;
|
| 5 |
+
if (process.env.NODE_ENV === 'production') {
|
| 6 |
+
b = require('./cjs/react-dom-server.edge.production.js');
|
| 7 |
+
l = require('./cjs/react-dom-server-legacy.browser.production.js');
|
| 8 |
+
} else {
|
| 9 |
+
b = require('./cjs/react-dom-server.edge.development.js');
|
| 10 |
+
l = require('./cjs/react-dom-server-legacy.browser.development.js');
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
exports.version = b.version;
|
| 14 |
+
exports.renderToReadableStream = b.renderToReadableStream;
|
| 15 |
+
exports.renderToString = l.renderToString;
|
| 16 |
+
exports.renderToStaticMarkup = l.renderToStaticMarkup;
|
| 17 |
+
exports.resume = b.resume;
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
module.exports = require('./server.node');
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.node.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var l, s;
|
| 4 |
+
if (process.env.NODE_ENV === 'production') {
|
| 5 |
+
l = require('./cjs/react-dom-server-legacy.node.production.js');
|
| 6 |
+
s = require('./cjs/react-dom-server.node.production.js');
|
| 7 |
+
} else {
|
| 8 |
+
l = require('./cjs/react-dom-server-legacy.node.development.js');
|
| 9 |
+
s = require('./cjs/react-dom-server.node.development.js');
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
exports.version = l.version;
|
| 13 |
+
exports.renderToString = l.renderToString;
|
| 14 |
+
exports.renderToStaticMarkup = l.renderToStaticMarkup;
|
| 15 |
+
exports.renderToPipeableStream = s.renderToPipeableStream;
|
| 16 |
+
exports.renderToReadableStream = s.renderToReadableStream;
|
| 17 |
+
exports.resumeToPipeableStream = s.resumeToPipeableStream;
|
| 18 |
+
exports.resume = s.resume;
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/server.react-server.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
throw new Error(
|
| 4 |
+
'react-dom/server is not supported in React Server Components.'
|
| 5 |
+
);
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/static.browser.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var s;
|
| 4 |
+
if (process.env.NODE_ENV === 'production') {
|
| 5 |
+
s = require('./cjs/react-dom-server.browser.production.js');
|
| 6 |
+
} else {
|
| 7 |
+
s = require('./cjs/react-dom-server.browser.development.js');
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
exports.version = s.version;
|
| 11 |
+
exports.prerender = s.prerender;
|
| 12 |
+
exports.resumeAndPrerender = s.resumeAndPrerender;
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/static.edge.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var s;
|
| 4 |
+
if (process.env.NODE_ENV === 'production') {
|
| 5 |
+
s = require('./cjs/react-dom-server.edge.production.js');
|
| 6 |
+
} else {
|
| 7 |
+
s = require('./cjs/react-dom-server.edge.development.js');
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
exports.version = s.version;
|
| 11 |
+
exports.prerender = s.prerender;
|
| 12 |
+
exports.resumeAndPrerender = s.resumeAndPrerender;
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/static.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
module.exports = require('./static.node');
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/static.node.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
var s;
|
| 4 |
+
if (process.env.NODE_ENV === 'production') {
|
| 5 |
+
s = require('./cjs/react-dom-server.node.production.js');
|
| 6 |
+
} else {
|
| 7 |
+
s = require('./cjs/react-dom-server.node.development.js');
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
exports.version = s.version;
|
| 11 |
+
exports.prerenderToNodeStream = s.prerenderToNodeStream;
|
| 12 |
+
exports.prerender = s.prerender;
|
| 13 |
+
exports.resumeAndPrerenderToNodeStream = s.resumeAndPrerenderToNodeStream;
|
| 14 |
+
exports.resumeAndPrerender = s.resumeAndPrerender;
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/static.react-server.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
throw new Error(
|
| 4 |
+
'react-dom/static is not supported in React Server Components.'
|
| 5 |
+
);
|
frontend/node_modules/.pnpm/react-dom@19.2.8_react@19.2.8/node_modules/react-dom/test-utils.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
if (process.env.NODE_ENV === 'production') {
|
| 4 |
+
module.exports = require('./cjs/react-dom-test-utils.production.js');
|
| 5 |
+
} else {
|
| 6 |
+
module.exports = require('./cjs/react-dom-test-utils.development.js');
|
| 7 |
+
}
|
frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# react-refresh
|
| 2 |
+
|
| 3 |
+
This package implements the wiring necessary to integrate Fast Refresh into bundlers. Fast Refresh is a feature that lets you edit React components in a running application without losing their state. It is similar to an old feature known as "hot reloading", but Fast Refresh is more reliable and officially supported by React.
|
| 4 |
+
|
| 5 |
+
This package is primarily aimed at developers of bundler plugins. If you’re working on one, here is a [rough guide](https://github.com/facebook/react/issues/16604#issuecomment-528663101) for Fast Refresh integration using this package.
|
frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/babel.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
if (process.env.NODE_ENV === 'production') {
|
| 4 |
+
module.exports = require('./cjs/react-refresh-babel.production.js');
|
| 5 |
+
} else {
|
| 6 |
+
module.exports = require('./cjs/react-refresh-babel.development.js');
|
| 7 |
+
}
|
frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/cjs/react-refresh-babel.development.js
ADDED
|
@@ -0,0 +1,601 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-refresh-babel.development.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
"production" !== process.env.NODE_ENV &&
|
| 13 |
+
(module.exports = function (babel) {
|
| 14 |
+
function createRegistration(programPath, persistentID) {
|
| 15 |
+
var handle = programPath.scope.generateUidIdentifier("c");
|
| 16 |
+
registrationsByProgramPath.has(programPath) ||
|
| 17 |
+
registrationsByProgramPath.set(programPath, []);
|
| 18 |
+
registrationsByProgramPath
|
| 19 |
+
.get(programPath)
|
| 20 |
+
.push({ handle: handle, persistentID: persistentID });
|
| 21 |
+
return handle;
|
| 22 |
+
}
|
| 23 |
+
function isComponentishName(name) {
|
| 24 |
+
return "string" === typeof name && "A" <= name[0] && "Z" >= name[0];
|
| 25 |
+
}
|
| 26 |
+
function findInnerComponents(inferredName, path, callback) {
|
| 27 |
+
var node = path.node;
|
| 28 |
+
switch (node.type) {
|
| 29 |
+
case "Identifier":
|
| 30 |
+
if (!isComponentishName(node.name)) break;
|
| 31 |
+
callback(inferredName, node, null);
|
| 32 |
+
return !0;
|
| 33 |
+
case "FunctionDeclaration":
|
| 34 |
+
return callback(inferredName, node.id, null), !0;
|
| 35 |
+
case "ArrowFunctionExpression":
|
| 36 |
+
if ("ArrowFunctionExpression" === node.body.type) break;
|
| 37 |
+
callback(inferredName, node, path);
|
| 38 |
+
return !0;
|
| 39 |
+
case "FunctionExpression":
|
| 40 |
+
return callback(inferredName, node, path), !0;
|
| 41 |
+
case "CallExpression":
|
| 42 |
+
var argsPath = path.get("arguments");
|
| 43 |
+
if (void 0 === argsPath || 0 === argsPath.length) break;
|
| 44 |
+
var calleePath = path.get("callee");
|
| 45 |
+
switch (calleePath.node.type) {
|
| 46 |
+
case "MemberExpression":
|
| 47 |
+
case "Identifier":
|
| 48 |
+
calleePath = calleePath.getSource();
|
| 49 |
+
if (
|
| 50 |
+
!findInnerComponents(
|
| 51 |
+
inferredName + "$" + calleePath,
|
| 52 |
+
argsPath[0],
|
| 53 |
+
callback
|
| 54 |
+
)
|
| 55 |
+
)
|
| 56 |
+
return !1;
|
| 57 |
+
callback(inferredName, node, path);
|
| 58 |
+
return !0;
|
| 59 |
+
default:
|
| 60 |
+
return !1;
|
| 61 |
+
}
|
| 62 |
+
case "VariableDeclarator":
|
| 63 |
+
if (
|
| 64 |
+
((argsPath = node.init),
|
| 65 |
+
null !== argsPath &&
|
| 66 |
+
((calleePath = node.id.name), isComponentishName(calleePath)))
|
| 67 |
+
) {
|
| 68 |
+
switch (argsPath.type) {
|
| 69 |
+
case "ArrowFunctionExpression":
|
| 70 |
+
case "FunctionExpression":
|
| 71 |
+
break;
|
| 72 |
+
case "CallExpression":
|
| 73 |
+
node = argsPath.callee;
|
| 74 |
+
var calleeType = node.type;
|
| 75 |
+
if (
|
| 76 |
+
"Import" === calleeType ||
|
| 77 |
+
("Identifier" === calleeType &&
|
| 78 |
+
(0 === node.name.indexOf("require") ||
|
| 79 |
+
0 === node.name.indexOf("import")))
|
| 80 |
+
)
|
| 81 |
+
return !1;
|
| 82 |
+
break;
|
| 83 |
+
case "TaggedTemplateExpression":
|
| 84 |
+
break;
|
| 85 |
+
default:
|
| 86 |
+
return !1;
|
| 87 |
+
}
|
| 88 |
+
node = path.get("init");
|
| 89 |
+
if (findInnerComponents(inferredName, node, callback)) return !0;
|
| 90 |
+
calleePath = path.scope.getBinding(calleePath);
|
| 91 |
+
if (void 0 === calleePath) return;
|
| 92 |
+
path = !1;
|
| 93 |
+
calleePath = calleePath.referencePaths;
|
| 94 |
+
for (calleeType = 0; calleeType < calleePath.length; calleeType++) {
|
| 95 |
+
var ref = calleePath[calleeType];
|
| 96 |
+
if (
|
| 97 |
+
!ref.node ||
|
| 98 |
+
"JSXIdentifier" === ref.node.type ||
|
| 99 |
+
"Identifier" === ref.node.type
|
| 100 |
+
) {
|
| 101 |
+
ref = ref.parent;
|
| 102 |
+
if ("JSXOpeningElement" === ref.type) path = !0;
|
| 103 |
+
else if ("CallExpression" === ref.type) {
|
| 104 |
+
ref = ref.callee;
|
| 105 |
+
var fnName = void 0;
|
| 106 |
+
switch (ref.type) {
|
| 107 |
+
case "Identifier":
|
| 108 |
+
fnName = ref.name;
|
| 109 |
+
break;
|
| 110 |
+
case "MemberExpression":
|
| 111 |
+
fnName = ref.property.name;
|
| 112 |
+
}
|
| 113 |
+
switch (fnName) {
|
| 114 |
+
case "createElement":
|
| 115 |
+
case "jsx":
|
| 116 |
+
case "jsxDEV":
|
| 117 |
+
case "jsxs":
|
| 118 |
+
path = !0;
|
| 119 |
+
}
|
| 120 |
+
}
|
| 121 |
+
if (path) return callback(inferredName, argsPath, node), !0;
|
| 122 |
+
}
|
| 123 |
+
}
|
| 124 |
+
}
|
| 125 |
+
}
|
| 126 |
+
return !1;
|
| 127 |
+
}
|
| 128 |
+
function getHookCallsSignature(functionNode) {
|
| 129 |
+
functionNode = hookCalls.get(functionNode);
|
| 130 |
+
return void 0 === functionNode
|
| 131 |
+
? null
|
| 132 |
+
: {
|
| 133 |
+
key: functionNode
|
| 134 |
+
.map(function (call) {
|
| 135 |
+
return call.name + "{" + call.key + "}";
|
| 136 |
+
})
|
| 137 |
+
.join("\n"),
|
| 138 |
+
customHooks: functionNode
|
| 139 |
+
.filter(function (call) {
|
| 140 |
+
a: switch (call.name) {
|
| 141 |
+
case "useState":
|
| 142 |
+
case "React.useState":
|
| 143 |
+
case "useReducer":
|
| 144 |
+
case "React.useReducer":
|
| 145 |
+
case "useEffect":
|
| 146 |
+
case "React.useEffect":
|
| 147 |
+
case "useLayoutEffect":
|
| 148 |
+
case "React.useLayoutEffect":
|
| 149 |
+
case "useMemo":
|
| 150 |
+
case "React.useMemo":
|
| 151 |
+
case "useCallback":
|
| 152 |
+
case "React.useCallback":
|
| 153 |
+
case "useRef":
|
| 154 |
+
case "React.useRef":
|
| 155 |
+
case "useContext":
|
| 156 |
+
case "React.useContext":
|
| 157 |
+
case "useImperativeHandle":
|
| 158 |
+
case "React.useImperativeHandle":
|
| 159 |
+
case "useDebugValue":
|
| 160 |
+
case "React.useDebugValue":
|
| 161 |
+
case "useId":
|
| 162 |
+
case "React.useId":
|
| 163 |
+
case "useDeferredValue":
|
| 164 |
+
case "React.useDeferredValue":
|
| 165 |
+
case "useTransition":
|
| 166 |
+
case "React.useTransition":
|
| 167 |
+
case "useInsertionEffect":
|
| 168 |
+
case "React.useInsertionEffect":
|
| 169 |
+
case "useSyncExternalStore":
|
| 170 |
+
case "React.useSyncExternalStore":
|
| 171 |
+
case "useFormStatus":
|
| 172 |
+
case "React.useFormStatus":
|
| 173 |
+
case "useFormState":
|
| 174 |
+
case "React.useFormState":
|
| 175 |
+
case "useActionState":
|
| 176 |
+
case "React.useActionState":
|
| 177 |
+
case "useOptimistic":
|
| 178 |
+
case "React.useOptimistic":
|
| 179 |
+
call = !0;
|
| 180 |
+
break a;
|
| 181 |
+
default:
|
| 182 |
+
call = !1;
|
| 183 |
+
}
|
| 184 |
+
return !call;
|
| 185 |
+
})
|
| 186 |
+
.map(function (call) {
|
| 187 |
+
return t.cloneDeep(call.callee);
|
| 188 |
+
})
|
| 189 |
+
};
|
| 190 |
+
}
|
| 191 |
+
function hasForceResetComment(path) {
|
| 192 |
+
path = path.hub.file;
|
| 193 |
+
var hasForceReset = hasForceResetCommentByFile.get(path);
|
| 194 |
+
if (void 0 !== hasForceReset) return hasForceReset;
|
| 195 |
+
hasForceReset = !1;
|
| 196 |
+
for (var comments = path.ast.comments, i = 0; i < comments.length; i++)
|
| 197 |
+
if (-1 !== comments[i].value.indexOf("@refresh reset")) {
|
| 198 |
+
hasForceReset = !0;
|
| 199 |
+
break;
|
| 200 |
+
}
|
| 201 |
+
hasForceResetCommentByFile.set(path, hasForceReset);
|
| 202 |
+
return hasForceReset;
|
| 203 |
+
}
|
| 204 |
+
function createArgumentsForSignature(node, signature, scope) {
|
| 205 |
+
var key = signature.key;
|
| 206 |
+
signature = signature.customHooks;
|
| 207 |
+
var forceReset = hasForceResetComment(scope.path),
|
| 208 |
+
customHooksInScope = [];
|
| 209 |
+
signature.forEach(function (callee) {
|
| 210 |
+
switch (callee.type) {
|
| 211 |
+
case "MemberExpression":
|
| 212 |
+
if ("Identifier" === callee.object.type)
|
| 213 |
+
var bindingName = callee.object.name;
|
| 214 |
+
break;
|
| 215 |
+
case "Identifier":
|
| 216 |
+
bindingName = callee.name;
|
| 217 |
+
}
|
| 218 |
+
scope.hasBinding(bindingName)
|
| 219 |
+
? customHooksInScope.push(callee)
|
| 220 |
+
: (forceReset = !0);
|
| 221 |
+
});
|
| 222 |
+
signature = key;
|
| 223 |
+
"function" !== typeof require ||
|
| 224 |
+
opts.emitFullSignatures ||
|
| 225 |
+
(signature = require("crypto")
|
| 226 |
+
.createHash("sha1")
|
| 227 |
+
.update(key)
|
| 228 |
+
.digest("base64"));
|
| 229 |
+
node = [node, t.stringLiteral(signature)];
|
| 230 |
+
(forceReset || 0 < customHooksInScope.length) &&
|
| 231 |
+
node.push(t.booleanLiteral(forceReset));
|
| 232 |
+
0 < customHooksInScope.length &&
|
| 233 |
+
node.push(
|
| 234 |
+
t.functionExpression(
|
| 235 |
+
null,
|
| 236 |
+
[],
|
| 237 |
+
t.blockStatement([
|
| 238 |
+
t.returnStatement(t.arrayExpression(customHooksInScope))
|
| 239 |
+
])
|
| 240 |
+
)
|
| 241 |
+
);
|
| 242 |
+
return node;
|
| 243 |
+
}
|
| 244 |
+
function findHOCCallPathsAbove(path) {
|
| 245 |
+
for (var calls = []; ; ) {
|
| 246 |
+
if (!path) return calls;
|
| 247 |
+
var parentPath = path.parentPath;
|
| 248 |
+
if (!parentPath) return calls;
|
| 249 |
+
if (
|
| 250 |
+
"AssignmentExpression" === parentPath.node.type &&
|
| 251 |
+
path.node === parentPath.node.right
|
| 252 |
+
)
|
| 253 |
+
path = parentPath;
|
| 254 |
+
else if (
|
| 255 |
+
"CallExpression" === parentPath.node.type &&
|
| 256 |
+
path.node !== parentPath.node.callee
|
| 257 |
+
)
|
| 258 |
+
calls.push(parentPath), (path = parentPath);
|
| 259 |
+
else return calls;
|
| 260 |
+
}
|
| 261 |
+
}
|
| 262 |
+
var opts =
|
| 263 |
+
1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {};
|
| 264 |
+
if ("function" === typeof babel.env) {
|
| 265 |
+
var env = babel.env();
|
| 266 |
+
if ("development" !== env && !opts.skipEnvCheck)
|
| 267 |
+
throw Error(
|
| 268 |
+
'React Refresh Babel transform should only be enabled in development environment. Instead, the environment is: "' +
|
| 269 |
+
env +
|
| 270 |
+
'". If you want to override this check, pass {skipEnvCheck: true} as plugin options.'
|
| 271 |
+
);
|
| 272 |
+
}
|
| 273 |
+
var t = babel.types,
|
| 274 |
+
refreshReg = t.identifier(opts.refreshReg || "$RefreshReg$"),
|
| 275 |
+
refreshSig = t.identifier(opts.refreshSig || "$RefreshSig$"),
|
| 276 |
+
registrationsByProgramPath = new Map(),
|
| 277 |
+
hasForceResetCommentByFile = new WeakMap(),
|
| 278 |
+
seenForRegistration = new WeakSet(),
|
| 279 |
+
seenForSignature = new WeakSet(),
|
| 280 |
+
seenForOutro = new WeakSet(),
|
| 281 |
+
hookCalls = new WeakMap(),
|
| 282 |
+
HookCallsVisitor = {
|
| 283 |
+
CallExpression: function (path) {
|
| 284 |
+
var callee = path.node.callee,
|
| 285 |
+
name = null;
|
| 286 |
+
switch (callee.type) {
|
| 287 |
+
case "Identifier":
|
| 288 |
+
name = callee.name;
|
| 289 |
+
break;
|
| 290 |
+
case "MemberExpression":
|
| 291 |
+
name = callee.property.name;
|
| 292 |
+
}
|
| 293 |
+
if (
|
| 294 |
+
null !== name &&
|
| 295 |
+
/^use[A-Z]/.test(name) &&
|
| 296 |
+
((callee = path.scope.getFunctionParent()), null !== callee)
|
| 297 |
+
) {
|
| 298 |
+
callee = callee.block;
|
| 299 |
+
hookCalls.has(callee) || hookCalls.set(callee, []);
|
| 300 |
+
callee = hookCalls.get(callee);
|
| 301 |
+
var key = "";
|
| 302 |
+
"VariableDeclarator" === path.parent.type &&
|
| 303 |
+
(key = path.parentPath.get("id").getSource());
|
| 304 |
+
var args = path.get("arguments");
|
| 305 |
+
"useState" === name && 0 < args.length
|
| 306 |
+
? (key += "(" + args[0].getSource() + ")")
|
| 307 |
+
: "useReducer" === name &&
|
| 308 |
+
1 < args.length &&
|
| 309 |
+
(key += "(" + args[1].getSource() + ")");
|
| 310 |
+
callee.push({ callee: path.node.callee, name: name, key: key });
|
| 311 |
+
}
|
| 312 |
+
}
|
| 313 |
+
};
|
| 314 |
+
return {
|
| 315 |
+
visitor: {
|
| 316 |
+
ExportDefaultDeclaration: function (path) {
|
| 317 |
+
var node = path.node,
|
| 318 |
+
decl = node.declaration,
|
| 319 |
+
declPath = path.get("declaration");
|
| 320 |
+
if (
|
| 321 |
+
"CallExpression" === decl.type &&
|
| 322 |
+
!seenForRegistration.has(node)
|
| 323 |
+
) {
|
| 324 |
+
seenForRegistration.add(node);
|
| 325 |
+
var programPath = path.parentPath;
|
| 326 |
+
findInnerComponents(
|
| 327 |
+
"%default%",
|
| 328 |
+
declPath,
|
| 329 |
+
function (persistentID, targetExpr, targetPath) {
|
| 330 |
+
null !== targetPath &&
|
| 331 |
+
((persistentID = createRegistration(
|
| 332 |
+
programPath,
|
| 333 |
+
persistentID
|
| 334 |
+
)),
|
| 335 |
+
targetPath.replaceWith(
|
| 336 |
+
t.assignmentExpression("=", persistentID, targetExpr)
|
| 337 |
+
));
|
| 338 |
+
}
|
| 339 |
+
);
|
| 340 |
+
}
|
| 341 |
+
},
|
| 342 |
+
FunctionDeclaration: {
|
| 343 |
+
enter: function (path) {
|
| 344 |
+
var node = path.node,
|
| 345 |
+
modulePrefix = "";
|
| 346 |
+
switch (path.parent.type) {
|
| 347 |
+
case "Program":
|
| 348 |
+
var insertAfterPath = path;
|
| 349 |
+
var programPath = path.parentPath;
|
| 350 |
+
break;
|
| 351 |
+
case "TSModuleBlock":
|
| 352 |
+
insertAfterPath = path;
|
| 353 |
+
programPath = insertAfterPath.parentPath.parentPath;
|
| 354 |
+
break;
|
| 355 |
+
case "ExportNamedDeclaration":
|
| 356 |
+
insertAfterPath = path.parentPath;
|
| 357 |
+
programPath = insertAfterPath.parentPath;
|
| 358 |
+
break;
|
| 359 |
+
case "ExportDefaultDeclaration":
|
| 360 |
+
insertAfterPath = path.parentPath;
|
| 361 |
+
programPath = insertAfterPath.parentPath;
|
| 362 |
+
break;
|
| 363 |
+
default:
|
| 364 |
+
return;
|
| 365 |
+
}
|
| 366 |
+
if (
|
| 367 |
+
"TSModuleBlock" === path.parent.type ||
|
| 368 |
+
"ExportNamedDeclaration" === path.parent.type
|
| 369 |
+
)
|
| 370 |
+
for (; "Program" !== programPath.type; ) {
|
| 371 |
+
if ("TSModuleDeclaration" === programPath.type) {
|
| 372 |
+
if (
|
| 373 |
+
"Program" !== programPath.parentPath.type &&
|
| 374 |
+
"ExportNamedDeclaration" !== programPath.parentPath.type
|
| 375 |
+
)
|
| 376 |
+
return;
|
| 377 |
+
modulePrefix = programPath.node.id.name + "$" + modulePrefix;
|
| 378 |
+
}
|
| 379 |
+
programPath = programPath.parentPath;
|
| 380 |
+
}
|
| 381 |
+
var id = node.id;
|
| 382 |
+
null !== id &&
|
| 383 |
+
((id = id.name),
|
| 384 |
+
isComponentishName(id) &&
|
| 385 |
+
!seenForRegistration.has(node) &&
|
| 386 |
+
(seenForRegistration.add(node),
|
| 387 |
+
findInnerComponents(
|
| 388 |
+
modulePrefix + id,
|
| 389 |
+
path,
|
| 390 |
+
function (persistentID, targetExpr) {
|
| 391 |
+
persistentID = createRegistration(
|
| 392 |
+
programPath,
|
| 393 |
+
persistentID
|
| 394 |
+
);
|
| 395 |
+
insertAfterPath.insertAfter(
|
| 396 |
+
t.expressionStatement(
|
| 397 |
+
t.assignmentExpression("=", persistentID, targetExpr)
|
| 398 |
+
)
|
| 399 |
+
);
|
| 400 |
+
}
|
| 401 |
+
)));
|
| 402 |
+
},
|
| 403 |
+
exit: function (path) {
|
| 404 |
+
var node = path.node,
|
| 405 |
+
id = node.id;
|
| 406 |
+
if (null !== id) {
|
| 407 |
+
var signature = getHookCallsSignature(node);
|
| 408 |
+
if (null !== signature && !seenForSignature.has(node)) {
|
| 409 |
+
seenForSignature.add(node);
|
| 410 |
+
node = path.scope.generateUidIdentifier("_s");
|
| 411 |
+
path.scope.parent.push({
|
| 412 |
+
id: node,
|
| 413 |
+
init: t.callExpression(refreshSig, [])
|
| 414 |
+
});
|
| 415 |
+
path
|
| 416 |
+
.get("body")
|
| 417 |
+
.unshiftContainer(
|
| 418 |
+
"body",
|
| 419 |
+
t.expressionStatement(t.callExpression(node, []))
|
| 420 |
+
);
|
| 421 |
+
var insertAfterPath = null;
|
| 422 |
+
path.find(function (p) {
|
| 423 |
+
if (p.parentPath.isBlock()) return (insertAfterPath = p), !0;
|
| 424 |
+
});
|
| 425 |
+
null !== insertAfterPath &&
|
| 426 |
+
insertAfterPath.insertAfter(
|
| 427 |
+
t.expressionStatement(
|
| 428 |
+
t.callExpression(
|
| 429 |
+
node,
|
| 430 |
+
createArgumentsForSignature(
|
| 431 |
+
id,
|
| 432 |
+
signature,
|
| 433 |
+
insertAfterPath.scope
|
| 434 |
+
)
|
| 435 |
+
)
|
| 436 |
+
)
|
| 437 |
+
);
|
| 438 |
+
}
|
| 439 |
+
}
|
| 440 |
+
}
|
| 441 |
+
},
|
| 442 |
+
"ArrowFunctionExpression|FunctionExpression": {
|
| 443 |
+
exit: function (path) {
|
| 444 |
+
var node = path.node,
|
| 445 |
+
signature = getHookCallsSignature(node);
|
| 446 |
+
if (null !== signature && !seenForSignature.has(node)) {
|
| 447 |
+
seenForSignature.add(node);
|
| 448 |
+
var sigCallID = path.scope.generateUidIdentifier("_s");
|
| 449 |
+
path.scope.parent.push({
|
| 450 |
+
id: sigCallID,
|
| 451 |
+
init: t.callExpression(refreshSig, [])
|
| 452 |
+
});
|
| 453 |
+
"BlockStatement" !== path.node.body.type &&
|
| 454 |
+
(path.node.body = t.blockStatement([
|
| 455 |
+
t.returnStatement(path.node.body)
|
| 456 |
+
]));
|
| 457 |
+
path
|
| 458 |
+
.get("body")
|
| 459 |
+
.unshiftContainer(
|
| 460 |
+
"body",
|
| 461 |
+
t.expressionStatement(t.callExpression(sigCallID, []))
|
| 462 |
+
);
|
| 463 |
+
if ("VariableDeclarator" === path.parent.type) {
|
| 464 |
+
var insertAfterPath = null;
|
| 465 |
+
path.find(function (p) {
|
| 466 |
+
if (p.parentPath.isBlock()) return (insertAfterPath = p), !0;
|
| 467 |
+
});
|
| 468 |
+
null !== insertAfterPath &&
|
| 469 |
+
insertAfterPath.insertAfter(
|
| 470 |
+
t.expressionStatement(
|
| 471 |
+
t.callExpression(
|
| 472 |
+
sigCallID,
|
| 473 |
+
createArgumentsForSignature(
|
| 474 |
+
path.parent.id,
|
| 475 |
+
signature,
|
| 476 |
+
insertAfterPath.scope
|
| 477 |
+
)
|
| 478 |
+
)
|
| 479 |
+
)
|
| 480 |
+
);
|
| 481 |
+
} else
|
| 482 |
+
[path]
|
| 483 |
+
.concat(findHOCCallPathsAbove(path))
|
| 484 |
+
.forEach(function (p) {
|
| 485 |
+
p.replaceWith(
|
| 486 |
+
t.callExpression(
|
| 487 |
+
sigCallID,
|
| 488 |
+
createArgumentsForSignature(p.node, signature, p.scope)
|
| 489 |
+
)
|
| 490 |
+
);
|
| 491 |
+
});
|
| 492 |
+
}
|
| 493 |
+
}
|
| 494 |
+
},
|
| 495 |
+
VariableDeclaration: function (path) {
|
| 496 |
+
var node = path.node,
|
| 497 |
+
modulePrefix = "";
|
| 498 |
+
switch (path.parent.type) {
|
| 499 |
+
case "Program":
|
| 500 |
+
var insertAfterPath = path;
|
| 501 |
+
var programPath = path.parentPath;
|
| 502 |
+
break;
|
| 503 |
+
case "TSModuleBlock":
|
| 504 |
+
insertAfterPath = path;
|
| 505 |
+
programPath = insertAfterPath.parentPath.parentPath;
|
| 506 |
+
break;
|
| 507 |
+
case "ExportNamedDeclaration":
|
| 508 |
+
insertAfterPath = path.parentPath;
|
| 509 |
+
programPath = insertAfterPath.parentPath;
|
| 510 |
+
break;
|
| 511 |
+
case "ExportDefaultDeclaration":
|
| 512 |
+
insertAfterPath = path.parentPath;
|
| 513 |
+
programPath = insertAfterPath.parentPath;
|
| 514 |
+
break;
|
| 515 |
+
default:
|
| 516 |
+
return;
|
| 517 |
+
}
|
| 518 |
+
if (
|
| 519 |
+
"TSModuleBlock" === path.parent.type ||
|
| 520 |
+
"ExportNamedDeclaration" === path.parent.type
|
| 521 |
+
)
|
| 522 |
+
for (; "Program" !== programPath.type; ) {
|
| 523 |
+
if ("TSModuleDeclaration" === programPath.type) {
|
| 524 |
+
if (
|
| 525 |
+
"Program" !== programPath.parentPath.type &&
|
| 526 |
+
"ExportNamedDeclaration" !== programPath.parentPath.type
|
| 527 |
+
)
|
| 528 |
+
return;
|
| 529 |
+
modulePrefix = programPath.node.id.name + "$" + modulePrefix;
|
| 530 |
+
}
|
| 531 |
+
programPath = programPath.parentPath;
|
| 532 |
+
}
|
| 533 |
+
if (
|
| 534 |
+
!seenForRegistration.has(node) &&
|
| 535 |
+
(seenForRegistration.add(node),
|
| 536 |
+
(path = path.get("declarations")),
|
| 537 |
+
1 === path.length)
|
| 538 |
+
) {
|
| 539 |
+
var declPath = path[0];
|
| 540 |
+
findInnerComponents(
|
| 541 |
+
modulePrefix + declPath.node.id.name,
|
| 542 |
+
declPath,
|
| 543 |
+
function (persistentID, targetExpr, targetPath) {
|
| 544 |
+
null !== targetPath &&
|
| 545 |
+
((persistentID = createRegistration(
|
| 546 |
+
programPath,
|
| 547 |
+
persistentID
|
| 548 |
+
)),
|
| 549 |
+
"VariableDeclarator" === targetPath.parent.type
|
| 550 |
+
? insertAfterPath.insertAfter(
|
| 551 |
+
t.expressionStatement(
|
| 552 |
+
t.assignmentExpression(
|
| 553 |
+
"=",
|
| 554 |
+
persistentID,
|
| 555 |
+
declPath.node.id
|
| 556 |
+
)
|
| 557 |
+
)
|
| 558 |
+
)
|
| 559 |
+
: targetPath.replaceWith(
|
| 560 |
+
t.assignmentExpression("=", persistentID, targetExpr)
|
| 561 |
+
));
|
| 562 |
+
}
|
| 563 |
+
);
|
| 564 |
+
}
|
| 565 |
+
},
|
| 566 |
+
Program: {
|
| 567 |
+
enter: function (path) {
|
| 568 |
+
path.traverse(HookCallsVisitor);
|
| 569 |
+
},
|
| 570 |
+
exit: function (path) {
|
| 571 |
+
var registrations = registrationsByProgramPath.get(path);
|
| 572 |
+
if (void 0 !== registrations) {
|
| 573 |
+
var node = path.node;
|
| 574 |
+
if (!seenForOutro.has(node)) {
|
| 575 |
+
seenForOutro.add(node);
|
| 576 |
+
registrationsByProgramPath.delete(path);
|
| 577 |
+
var declarators = [];
|
| 578 |
+
path.pushContainer(
|
| 579 |
+
"body",
|
| 580 |
+
t.variableDeclaration("var", declarators)
|
| 581 |
+
);
|
| 582 |
+
registrations.forEach(function (_ref) {
|
| 583 |
+
var handle = _ref.handle;
|
| 584 |
+
path.pushContainer(
|
| 585 |
+
"body",
|
| 586 |
+
t.expressionStatement(
|
| 587 |
+
t.callExpression(refreshReg, [
|
| 588 |
+
handle,
|
| 589 |
+
t.stringLiteral(_ref.persistentID)
|
| 590 |
+
])
|
| 591 |
+
)
|
| 592 |
+
);
|
| 593 |
+
declarators.push(t.variableDeclarator(handle));
|
| 594 |
+
});
|
| 595 |
+
}
|
| 596 |
+
}
|
| 597 |
+
}
|
| 598 |
+
}
|
| 599 |
+
}
|
| 600 |
+
};
|
| 601 |
+
});
|
frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/cjs/react-refresh-babel.production.js
ADDED
|
@@ -0,0 +1,586 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-refresh-babel.production.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
module.exports = function (babel) {
|
| 13 |
+
function createRegistration(programPath, persistentID) {
|
| 14 |
+
var handle = programPath.scope.generateUidIdentifier("c");
|
| 15 |
+
registrationsByProgramPath.has(programPath) ||
|
| 16 |
+
registrationsByProgramPath.set(programPath, []);
|
| 17 |
+
registrationsByProgramPath
|
| 18 |
+
.get(programPath)
|
| 19 |
+
.push({ handle: handle, persistentID: persistentID });
|
| 20 |
+
return handle;
|
| 21 |
+
}
|
| 22 |
+
function isComponentishName(name) {
|
| 23 |
+
return "string" === typeof name && "A" <= name[0] && "Z" >= name[0];
|
| 24 |
+
}
|
| 25 |
+
function findInnerComponents(inferredName, path, callback) {
|
| 26 |
+
var node = path.node;
|
| 27 |
+
switch (node.type) {
|
| 28 |
+
case "Identifier":
|
| 29 |
+
if (!isComponentishName(node.name)) break;
|
| 30 |
+
callback(inferredName, node, null);
|
| 31 |
+
return !0;
|
| 32 |
+
case "FunctionDeclaration":
|
| 33 |
+
return callback(inferredName, node.id, null), !0;
|
| 34 |
+
case "ArrowFunctionExpression":
|
| 35 |
+
if ("ArrowFunctionExpression" === node.body.type) break;
|
| 36 |
+
callback(inferredName, node, path);
|
| 37 |
+
return !0;
|
| 38 |
+
case "FunctionExpression":
|
| 39 |
+
return callback(inferredName, node, path), !0;
|
| 40 |
+
case "CallExpression":
|
| 41 |
+
var argsPath = path.get("arguments");
|
| 42 |
+
if (void 0 === argsPath || 0 === argsPath.length) break;
|
| 43 |
+
var calleePath = path.get("callee");
|
| 44 |
+
switch (calleePath.node.type) {
|
| 45 |
+
case "MemberExpression":
|
| 46 |
+
case "Identifier":
|
| 47 |
+
calleePath = calleePath.getSource();
|
| 48 |
+
if (
|
| 49 |
+
!findInnerComponents(
|
| 50 |
+
inferredName + "$" + calleePath,
|
| 51 |
+
argsPath[0],
|
| 52 |
+
callback
|
| 53 |
+
)
|
| 54 |
+
)
|
| 55 |
+
return !1;
|
| 56 |
+
callback(inferredName, node, path);
|
| 57 |
+
return !0;
|
| 58 |
+
default:
|
| 59 |
+
return !1;
|
| 60 |
+
}
|
| 61 |
+
case "VariableDeclarator":
|
| 62 |
+
if (
|
| 63 |
+
((argsPath = node.init),
|
| 64 |
+
null !== argsPath &&
|
| 65 |
+
((calleePath = node.id.name), isComponentishName(calleePath)))
|
| 66 |
+
) {
|
| 67 |
+
switch (argsPath.type) {
|
| 68 |
+
case "ArrowFunctionExpression":
|
| 69 |
+
case "FunctionExpression":
|
| 70 |
+
break;
|
| 71 |
+
case "CallExpression":
|
| 72 |
+
node = argsPath.callee;
|
| 73 |
+
var calleeType = node.type;
|
| 74 |
+
if (
|
| 75 |
+
"Import" === calleeType ||
|
| 76 |
+
("Identifier" === calleeType &&
|
| 77 |
+
(0 === node.name.indexOf("require") ||
|
| 78 |
+
0 === node.name.indexOf("import")))
|
| 79 |
+
)
|
| 80 |
+
return !1;
|
| 81 |
+
break;
|
| 82 |
+
case "TaggedTemplateExpression":
|
| 83 |
+
break;
|
| 84 |
+
default:
|
| 85 |
+
return !1;
|
| 86 |
+
}
|
| 87 |
+
node = path.get("init");
|
| 88 |
+
if (findInnerComponents(inferredName, node, callback)) return !0;
|
| 89 |
+
calleePath = path.scope.getBinding(calleePath);
|
| 90 |
+
if (void 0 === calleePath) return;
|
| 91 |
+
path = !1;
|
| 92 |
+
calleePath = calleePath.referencePaths;
|
| 93 |
+
for (calleeType = 0; calleeType < calleePath.length; calleeType++) {
|
| 94 |
+
var ref = calleePath[calleeType];
|
| 95 |
+
if (
|
| 96 |
+
!ref.node ||
|
| 97 |
+
"JSXIdentifier" === ref.node.type ||
|
| 98 |
+
"Identifier" === ref.node.type
|
| 99 |
+
) {
|
| 100 |
+
ref = ref.parent;
|
| 101 |
+
if ("JSXOpeningElement" === ref.type) path = !0;
|
| 102 |
+
else if ("CallExpression" === ref.type) {
|
| 103 |
+
ref = ref.callee;
|
| 104 |
+
var fnName = void 0;
|
| 105 |
+
switch (ref.type) {
|
| 106 |
+
case "Identifier":
|
| 107 |
+
fnName = ref.name;
|
| 108 |
+
break;
|
| 109 |
+
case "MemberExpression":
|
| 110 |
+
fnName = ref.property.name;
|
| 111 |
+
}
|
| 112 |
+
switch (fnName) {
|
| 113 |
+
case "createElement":
|
| 114 |
+
case "jsx":
|
| 115 |
+
case "jsxDEV":
|
| 116 |
+
case "jsxs":
|
| 117 |
+
path = !0;
|
| 118 |
+
}
|
| 119 |
+
}
|
| 120 |
+
if (path) return callback(inferredName, argsPath, node), !0;
|
| 121 |
+
}
|
| 122 |
+
}
|
| 123 |
+
}
|
| 124 |
+
}
|
| 125 |
+
return !1;
|
| 126 |
+
}
|
| 127 |
+
function getHookCallsSignature(functionNode) {
|
| 128 |
+
functionNode = hookCalls.get(functionNode);
|
| 129 |
+
return void 0 === functionNode
|
| 130 |
+
? null
|
| 131 |
+
: {
|
| 132 |
+
key: functionNode
|
| 133 |
+
.map(function (call) {
|
| 134 |
+
return call.name + "{" + call.key + "}";
|
| 135 |
+
})
|
| 136 |
+
.join("\n"),
|
| 137 |
+
customHooks: functionNode
|
| 138 |
+
.filter(function (call) {
|
| 139 |
+
a: switch (call.name) {
|
| 140 |
+
case "useState":
|
| 141 |
+
case "React.useState":
|
| 142 |
+
case "useReducer":
|
| 143 |
+
case "React.useReducer":
|
| 144 |
+
case "useEffect":
|
| 145 |
+
case "React.useEffect":
|
| 146 |
+
case "useLayoutEffect":
|
| 147 |
+
case "React.useLayoutEffect":
|
| 148 |
+
case "useMemo":
|
| 149 |
+
case "React.useMemo":
|
| 150 |
+
case "useCallback":
|
| 151 |
+
case "React.useCallback":
|
| 152 |
+
case "useRef":
|
| 153 |
+
case "React.useRef":
|
| 154 |
+
case "useContext":
|
| 155 |
+
case "React.useContext":
|
| 156 |
+
case "useImperativeHandle":
|
| 157 |
+
case "React.useImperativeHandle":
|
| 158 |
+
case "useDebugValue":
|
| 159 |
+
case "React.useDebugValue":
|
| 160 |
+
case "useId":
|
| 161 |
+
case "React.useId":
|
| 162 |
+
case "useDeferredValue":
|
| 163 |
+
case "React.useDeferredValue":
|
| 164 |
+
case "useTransition":
|
| 165 |
+
case "React.useTransition":
|
| 166 |
+
case "useInsertionEffect":
|
| 167 |
+
case "React.useInsertionEffect":
|
| 168 |
+
case "useSyncExternalStore":
|
| 169 |
+
case "React.useSyncExternalStore":
|
| 170 |
+
case "useFormStatus":
|
| 171 |
+
case "React.useFormStatus":
|
| 172 |
+
case "useFormState":
|
| 173 |
+
case "React.useFormState":
|
| 174 |
+
case "useActionState":
|
| 175 |
+
case "React.useActionState":
|
| 176 |
+
case "useOptimistic":
|
| 177 |
+
case "React.useOptimistic":
|
| 178 |
+
call = !0;
|
| 179 |
+
break a;
|
| 180 |
+
default:
|
| 181 |
+
call = !1;
|
| 182 |
+
}
|
| 183 |
+
return !call;
|
| 184 |
+
})
|
| 185 |
+
.map(function (call) {
|
| 186 |
+
return t.cloneDeep(call.callee);
|
| 187 |
+
})
|
| 188 |
+
};
|
| 189 |
+
}
|
| 190 |
+
function hasForceResetComment(path) {
|
| 191 |
+
path = path.hub.file;
|
| 192 |
+
var hasForceReset = hasForceResetCommentByFile.get(path);
|
| 193 |
+
if (void 0 !== hasForceReset) return hasForceReset;
|
| 194 |
+
hasForceReset = !1;
|
| 195 |
+
for (var comments = path.ast.comments, i = 0; i < comments.length; i++)
|
| 196 |
+
if (-1 !== comments[i].value.indexOf("@refresh reset")) {
|
| 197 |
+
hasForceReset = !0;
|
| 198 |
+
break;
|
| 199 |
+
}
|
| 200 |
+
hasForceResetCommentByFile.set(path, hasForceReset);
|
| 201 |
+
return hasForceReset;
|
| 202 |
+
}
|
| 203 |
+
function createArgumentsForSignature(node, signature, scope) {
|
| 204 |
+
var key = signature.key;
|
| 205 |
+
signature = signature.customHooks;
|
| 206 |
+
var forceReset = hasForceResetComment(scope.path),
|
| 207 |
+
customHooksInScope = [];
|
| 208 |
+
signature.forEach(function (callee) {
|
| 209 |
+
switch (callee.type) {
|
| 210 |
+
case "MemberExpression":
|
| 211 |
+
if ("Identifier" === callee.object.type)
|
| 212 |
+
var bindingName = callee.object.name;
|
| 213 |
+
break;
|
| 214 |
+
case "Identifier":
|
| 215 |
+
bindingName = callee.name;
|
| 216 |
+
}
|
| 217 |
+
scope.hasBinding(bindingName)
|
| 218 |
+
? customHooksInScope.push(callee)
|
| 219 |
+
: (forceReset = !0);
|
| 220 |
+
});
|
| 221 |
+
signature = key;
|
| 222 |
+
"function" !== typeof require ||
|
| 223 |
+
opts.emitFullSignatures ||
|
| 224 |
+
(signature = require("crypto")
|
| 225 |
+
.createHash("sha1")
|
| 226 |
+
.update(key)
|
| 227 |
+
.digest("base64"));
|
| 228 |
+
node = [node, t.stringLiteral(signature)];
|
| 229 |
+
(forceReset || 0 < customHooksInScope.length) &&
|
| 230 |
+
node.push(t.booleanLiteral(forceReset));
|
| 231 |
+
0 < customHooksInScope.length &&
|
| 232 |
+
node.push(
|
| 233 |
+
t.functionExpression(
|
| 234 |
+
null,
|
| 235 |
+
[],
|
| 236 |
+
t.blockStatement([
|
| 237 |
+
t.returnStatement(t.arrayExpression(customHooksInScope))
|
| 238 |
+
])
|
| 239 |
+
)
|
| 240 |
+
);
|
| 241 |
+
return node;
|
| 242 |
+
}
|
| 243 |
+
function findHOCCallPathsAbove(path) {
|
| 244 |
+
for (var calls = []; ; ) {
|
| 245 |
+
if (!path) return calls;
|
| 246 |
+
var parentPath = path.parentPath;
|
| 247 |
+
if (!parentPath) return calls;
|
| 248 |
+
if (
|
| 249 |
+
"AssignmentExpression" === parentPath.node.type &&
|
| 250 |
+
path.node === parentPath.node.right
|
| 251 |
+
)
|
| 252 |
+
path = parentPath;
|
| 253 |
+
else if (
|
| 254 |
+
"CallExpression" === parentPath.node.type &&
|
| 255 |
+
path.node !== parentPath.node.callee
|
| 256 |
+
)
|
| 257 |
+
calls.push(parentPath), (path = parentPath);
|
| 258 |
+
else return calls;
|
| 259 |
+
}
|
| 260 |
+
}
|
| 261 |
+
var opts =
|
| 262 |
+
1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {};
|
| 263 |
+
if ("function" === typeof babel.env) {
|
| 264 |
+
var env = babel.env();
|
| 265 |
+
if ("development" !== env && !opts.skipEnvCheck)
|
| 266 |
+
throw Error(
|
| 267 |
+
'React Refresh Babel transform should only be enabled in development environment. Instead, the environment is: "' +
|
| 268 |
+
env +
|
| 269 |
+
'". If you want to override this check, pass {skipEnvCheck: true} as plugin options.'
|
| 270 |
+
);
|
| 271 |
+
}
|
| 272 |
+
var t = babel.types,
|
| 273 |
+
refreshReg = t.identifier(opts.refreshReg || "$RefreshReg$"),
|
| 274 |
+
refreshSig = t.identifier(opts.refreshSig || "$RefreshSig$"),
|
| 275 |
+
registrationsByProgramPath = new Map(),
|
| 276 |
+
hasForceResetCommentByFile = new WeakMap(),
|
| 277 |
+
seenForRegistration = new WeakSet(),
|
| 278 |
+
seenForSignature = new WeakSet(),
|
| 279 |
+
seenForOutro = new WeakSet(),
|
| 280 |
+
hookCalls = new WeakMap(),
|
| 281 |
+
HookCallsVisitor = {
|
| 282 |
+
CallExpression: function (path) {
|
| 283 |
+
var callee = path.node.callee,
|
| 284 |
+
name = null;
|
| 285 |
+
switch (callee.type) {
|
| 286 |
+
case "Identifier":
|
| 287 |
+
name = callee.name;
|
| 288 |
+
break;
|
| 289 |
+
case "MemberExpression":
|
| 290 |
+
name = callee.property.name;
|
| 291 |
+
}
|
| 292 |
+
if (
|
| 293 |
+
null !== name &&
|
| 294 |
+
/^use[A-Z]/.test(name) &&
|
| 295 |
+
((callee = path.scope.getFunctionParent()), null !== callee)
|
| 296 |
+
) {
|
| 297 |
+
callee = callee.block;
|
| 298 |
+
hookCalls.has(callee) || hookCalls.set(callee, []);
|
| 299 |
+
callee = hookCalls.get(callee);
|
| 300 |
+
var key = "";
|
| 301 |
+
"VariableDeclarator" === path.parent.type &&
|
| 302 |
+
(key = path.parentPath.get("id").getSource());
|
| 303 |
+
var args = path.get("arguments");
|
| 304 |
+
"useState" === name && 0 < args.length
|
| 305 |
+
? (key += "(" + args[0].getSource() + ")")
|
| 306 |
+
: "useReducer" === name &&
|
| 307 |
+
1 < args.length &&
|
| 308 |
+
(key += "(" + args[1].getSource() + ")");
|
| 309 |
+
callee.push({ callee: path.node.callee, name: name, key: key });
|
| 310 |
+
}
|
| 311 |
+
}
|
| 312 |
+
};
|
| 313 |
+
return {
|
| 314 |
+
visitor: {
|
| 315 |
+
ExportDefaultDeclaration: function (path) {
|
| 316 |
+
var node = path.node,
|
| 317 |
+
decl = node.declaration,
|
| 318 |
+
declPath = path.get("declaration");
|
| 319 |
+
if ("CallExpression" === decl.type && !seenForRegistration.has(node)) {
|
| 320 |
+
seenForRegistration.add(node);
|
| 321 |
+
var programPath = path.parentPath;
|
| 322 |
+
findInnerComponents(
|
| 323 |
+
"%default%",
|
| 324 |
+
declPath,
|
| 325 |
+
function (persistentID, targetExpr, targetPath) {
|
| 326 |
+
null !== targetPath &&
|
| 327 |
+
((persistentID = createRegistration(programPath, persistentID)),
|
| 328 |
+
targetPath.replaceWith(
|
| 329 |
+
t.assignmentExpression("=", persistentID, targetExpr)
|
| 330 |
+
));
|
| 331 |
+
}
|
| 332 |
+
);
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
FunctionDeclaration: {
|
| 336 |
+
enter: function (path) {
|
| 337 |
+
var node = path.node,
|
| 338 |
+
modulePrefix = "";
|
| 339 |
+
switch (path.parent.type) {
|
| 340 |
+
case "Program":
|
| 341 |
+
var insertAfterPath = path;
|
| 342 |
+
var programPath = path.parentPath;
|
| 343 |
+
break;
|
| 344 |
+
case "TSModuleBlock":
|
| 345 |
+
insertAfterPath = path;
|
| 346 |
+
programPath = insertAfterPath.parentPath.parentPath;
|
| 347 |
+
break;
|
| 348 |
+
case "ExportNamedDeclaration":
|
| 349 |
+
insertAfterPath = path.parentPath;
|
| 350 |
+
programPath = insertAfterPath.parentPath;
|
| 351 |
+
break;
|
| 352 |
+
case "ExportDefaultDeclaration":
|
| 353 |
+
insertAfterPath = path.parentPath;
|
| 354 |
+
programPath = insertAfterPath.parentPath;
|
| 355 |
+
break;
|
| 356 |
+
default:
|
| 357 |
+
return;
|
| 358 |
+
}
|
| 359 |
+
if (
|
| 360 |
+
"TSModuleBlock" === path.parent.type ||
|
| 361 |
+
"ExportNamedDeclaration" === path.parent.type
|
| 362 |
+
)
|
| 363 |
+
for (; "Program" !== programPath.type; ) {
|
| 364 |
+
if ("TSModuleDeclaration" === programPath.type) {
|
| 365 |
+
if (
|
| 366 |
+
"Program" !== programPath.parentPath.type &&
|
| 367 |
+
"ExportNamedDeclaration" !== programPath.parentPath.type
|
| 368 |
+
)
|
| 369 |
+
return;
|
| 370 |
+
modulePrefix = programPath.node.id.name + "$" + modulePrefix;
|
| 371 |
+
}
|
| 372 |
+
programPath = programPath.parentPath;
|
| 373 |
+
}
|
| 374 |
+
var id = node.id;
|
| 375 |
+
null !== id &&
|
| 376 |
+
((id = id.name),
|
| 377 |
+
isComponentishName(id) &&
|
| 378 |
+
!seenForRegistration.has(node) &&
|
| 379 |
+
(seenForRegistration.add(node),
|
| 380 |
+
findInnerComponents(
|
| 381 |
+
modulePrefix + id,
|
| 382 |
+
path,
|
| 383 |
+
function (persistentID, targetExpr) {
|
| 384 |
+
persistentID = createRegistration(programPath, persistentID);
|
| 385 |
+
insertAfterPath.insertAfter(
|
| 386 |
+
t.expressionStatement(
|
| 387 |
+
t.assignmentExpression("=", persistentID, targetExpr)
|
| 388 |
+
)
|
| 389 |
+
);
|
| 390 |
+
}
|
| 391 |
+
)));
|
| 392 |
+
},
|
| 393 |
+
exit: function (path) {
|
| 394 |
+
var node = path.node,
|
| 395 |
+
id = node.id;
|
| 396 |
+
if (null !== id) {
|
| 397 |
+
var signature = getHookCallsSignature(node);
|
| 398 |
+
if (null !== signature && !seenForSignature.has(node)) {
|
| 399 |
+
seenForSignature.add(node);
|
| 400 |
+
node = path.scope.generateUidIdentifier("_s");
|
| 401 |
+
path.scope.parent.push({
|
| 402 |
+
id: node,
|
| 403 |
+
init: t.callExpression(refreshSig, [])
|
| 404 |
+
});
|
| 405 |
+
path
|
| 406 |
+
.get("body")
|
| 407 |
+
.unshiftContainer(
|
| 408 |
+
"body",
|
| 409 |
+
t.expressionStatement(t.callExpression(node, []))
|
| 410 |
+
);
|
| 411 |
+
var insertAfterPath = null;
|
| 412 |
+
path.find(function (p) {
|
| 413 |
+
if (p.parentPath.isBlock()) return (insertAfterPath = p), !0;
|
| 414 |
+
});
|
| 415 |
+
null !== insertAfterPath &&
|
| 416 |
+
insertAfterPath.insertAfter(
|
| 417 |
+
t.expressionStatement(
|
| 418 |
+
t.callExpression(
|
| 419 |
+
node,
|
| 420 |
+
createArgumentsForSignature(
|
| 421 |
+
id,
|
| 422 |
+
signature,
|
| 423 |
+
insertAfterPath.scope
|
| 424 |
+
)
|
| 425 |
+
)
|
| 426 |
+
)
|
| 427 |
+
);
|
| 428 |
+
}
|
| 429 |
+
}
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
"ArrowFunctionExpression|FunctionExpression": {
|
| 433 |
+
exit: function (path) {
|
| 434 |
+
var node = path.node,
|
| 435 |
+
signature = getHookCallsSignature(node);
|
| 436 |
+
if (null !== signature && !seenForSignature.has(node)) {
|
| 437 |
+
seenForSignature.add(node);
|
| 438 |
+
var sigCallID = path.scope.generateUidIdentifier("_s");
|
| 439 |
+
path.scope.parent.push({
|
| 440 |
+
id: sigCallID,
|
| 441 |
+
init: t.callExpression(refreshSig, [])
|
| 442 |
+
});
|
| 443 |
+
"BlockStatement" !== path.node.body.type &&
|
| 444 |
+
(path.node.body = t.blockStatement([
|
| 445 |
+
t.returnStatement(path.node.body)
|
| 446 |
+
]));
|
| 447 |
+
path
|
| 448 |
+
.get("body")
|
| 449 |
+
.unshiftContainer(
|
| 450 |
+
"body",
|
| 451 |
+
t.expressionStatement(t.callExpression(sigCallID, []))
|
| 452 |
+
);
|
| 453 |
+
if ("VariableDeclarator" === path.parent.type) {
|
| 454 |
+
var insertAfterPath = null;
|
| 455 |
+
path.find(function (p) {
|
| 456 |
+
if (p.parentPath.isBlock()) return (insertAfterPath = p), !0;
|
| 457 |
+
});
|
| 458 |
+
null !== insertAfterPath &&
|
| 459 |
+
insertAfterPath.insertAfter(
|
| 460 |
+
t.expressionStatement(
|
| 461 |
+
t.callExpression(
|
| 462 |
+
sigCallID,
|
| 463 |
+
createArgumentsForSignature(
|
| 464 |
+
path.parent.id,
|
| 465 |
+
signature,
|
| 466 |
+
insertAfterPath.scope
|
| 467 |
+
)
|
| 468 |
+
)
|
| 469 |
+
)
|
| 470 |
+
);
|
| 471 |
+
} else
|
| 472 |
+
[path].concat(findHOCCallPathsAbove(path)).forEach(function (p) {
|
| 473 |
+
p.replaceWith(
|
| 474 |
+
t.callExpression(
|
| 475 |
+
sigCallID,
|
| 476 |
+
createArgumentsForSignature(p.node, signature, p.scope)
|
| 477 |
+
)
|
| 478 |
+
);
|
| 479 |
+
});
|
| 480 |
+
}
|
| 481 |
+
}
|
| 482 |
+
},
|
| 483 |
+
VariableDeclaration: function (path) {
|
| 484 |
+
var node = path.node,
|
| 485 |
+
modulePrefix = "";
|
| 486 |
+
switch (path.parent.type) {
|
| 487 |
+
case "Program":
|
| 488 |
+
var insertAfterPath = path;
|
| 489 |
+
var programPath = path.parentPath;
|
| 490 |
+
break;
|
| 491 |
+
case "TSModuleBlock":
|
| 492 |
+
insertAfterPath = path;
|
| 493 |
+
programPath = insertAfterPath.parentPath.parentPath;
|
| 494 |
+
break;
|
| 495 |
+
case "ExportNamedDeclaration":
|
| 496 |
+
insertAfterPath = path.parentPath;
|
| 497 |
+
programPath = insertAfterPath.parentPath;
|
| 498 |
+
break;
|
| 499 |
+
case "ExportDefaultDeclaration":
|
| 500 |
+
insertAfterPath = path.parentPath;
|
| 501 |
+
programPath = insertAfterPath.parentPath;
|
| 502 |
+
break;
|
| 503 |
+
default:
|
| 504 |
+
return;
|
| 505 |
+
}
|
| 506 |
+
if (
|
| 507 |
+
"TSModuleBlock" === path.parent.type ||
|
| 508 |
+
"ExportNamedDeclaration" === path.parent.type
|
| 509 |
+
)
|
| 510 |
+
for (; "Program" !== programPath.type; ) {
|
| 511 |
+
if ("TSModuleDeclaration" === programPath.type) {
|
| 512 |
+
if (
|
| 513 |
+
"Program" !== programPath.parentPath.type &&
|
| 514 |
+
"ExportNamedDeclaration" !== programPath.parentPath.type
|
| 515 |
+
)
|
| 516 |
+
return;
|
| 517 |
+
modulePrefix = programPath.node.id.name + "$" + modulePrefix;
|
| 518 |
+
}
|
| 519 |
+
programPath = programPath.parentPath;
|
| 520 |
+
}
|
| 521 |
+
if (
|
| 522 |
+
!seenForRegistration.has(node) &&
|
| 523 |
+
(seenForRegistration.add(node),
|
| 524 |
+
(path = path.get("declarations")),
|
| 525 |
+
1 === path.length)
|
| 526 |
+
) {
|
| 527 |
+
var declPath = path[0];
|
| 528 |
+
findInnerComponents(
|
| 529 |
+
modulePrefix + declPath.node.id.name,
|
| 530 |
+
declPath,
|
| 531 |
+
function (persistentID, targetExpr, targetPath) {
|
| 532 |
+
null !== targetPath &&
|
| 533 |
+
((persistentID = createRegistration(programPath, persistentID)),
|
| 534 |
+
"VariableDeclarator" === targetPath.parent.type
|
| 535 |
+
? insertAfterPath.insertAfter(
|
| 536 |
+
t.expressionStatement(
|
| 537 |
+
t.assignmentExpression(
|
| 538 |
+
"=",
|
| 539 |
+
persistentID,
|
| 540 |
+
declPath.node.id
|
| 541 |
+
)
|
| 542 |
+
)
|
| 543 |
+
)
|
| 544 |
+
: targetPath.replaceWith(
|
| 545 |
+
t.assignmentExpression("=", persistentID, targetExpr)
|
| 546 |
+
));
|
| 547 |
+
}
|
| 548 |
+
);
|
| 549 |
+
}
|
| 550 |
+
},
|
| 551 |
+
Program: {
|
| 552 |
+
enter: function (path) {
|
| 553 |
+
path.traverse(HookCallsVisitor);
|
| 554 |
+
},
|
| 555 |
+
exit: function (path) {
|
| 556 |
+
var registrations = registrationsByProgramPath.get(path);
|
| 557 |
+
if (void 0 !== registrations) {
|
| 558 |
+
var node = path.node;
|
| 559 |
+
if (!seenForOutro.has(node)) {
|
| 560 |
+
seenForOutro.add(node);
|
| 561 |
+
registrationsByProgramPath.delete(path);
|
| 562 |
+
var declarators = [];
|
| 563 |
+
path.pushContainer(
|
| 564 |
+
"body",
|
| 565 |
+
t.variableDeclaration("var", declarators)
|
| 566 |
+
);
|
| 567 |
+
registrations.forEach(function (_ref) {
|
| 568 |
+
var handle = _ref.handle;
|
| 569 |
+
path.pushContainer(
|
| 570 |
+
"body",
|
| 571 |
+
t.expressionStatement(
|
| 572 |
+
t.callExpression(refreshReg, [
|
| 573 |
+
handle,
|
| 574 |
+
t.stringLiteral(_ref.persistentID)
|
| 575 |
+
])
|
| 576 |
+
)
|
| 577 |
+
);
|
| 578 |
+
declarators.push(t.variableDeclarator(handle));
|
| 579 |
+
});
|
| 580 |
+
}
|
| 581 |
+
}
|
| 582 |
+
}
|
| 583 |
+
}
|
| 584 |
+
}
|
| 585 |
+
};
|
| 586 |
+
};
|
frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/cjs/react-refresh-runtime.development.js
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
"production" !== process.env.NODE_ENV &&
|
| 13 |
+
(function () {
|
| 14 |
+
function computeFullKey(signature) {
|
| 15 |
+
if (null !== signature.fullKey) return signature.fullKey;
|
| 16 |
+
var fullKey = signature.ownKey;
|
| 17 |
+
try {
|
| 18 |
+
var hooks = signature.getCustomHooks();
|
| 19 |
+
} catch (err) {
|
| 20 |
+
return (signature.forceReset = !0), (signature.fullKey = fullKey);
|
| 21 |
+
}
|
| 22 |
+
for (var i = 0; i < hooks.length; i++) {
|
| 23 |
+
var hook = hooks[i];
|
| 24 |
+
if ("function" !== typeof hook)
|
| 25 |
+
return (signature.forceReset = !0), (signature.fullKey = fullKey);
|
| 26 |
+
hook = allSignaturesByType.get(hook);
|
| 27 |
+
if (void 0 !== hook) {
|
| 28 |
+
var nestedHookKey = computeFullKey(hook);
|
| 29 |
+
hook.forceReset && (signature.forceReset = !0);
|
| 30 |
+
fullKey += "\n---\n" + nestedHookKey;
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
return (signature.fullKey = fullKey);
|
| 34 |
+
}
|
| 35 |
+
function resolveFamily(type) {
|
| 36 |
+
return updatedFamiliesByType.get(type);
|
| 37 |
+
}
|
| 38 |
+
function cloneMap(map) {
|
| 39 |
+
var clone = new Map();
|
| 40 |
+
map.forEach(function (value, key) {
|
| 41 |
+
clone.set(key, value);
|
| 42 |
+
});
|
| 43 |
+
return clone;
|
| 44 |
+
}
|
| 45 |
+
function cloneSet(set) {
|
| 46 |
+
var clone = new Set();
|
| 47 |
+
set.forEach(function (value) {
|
| 48 |
+
clone.add(value);
|
| 49 |
+
});
|
| 50 |
+
return clone;
|
| 51 |
+
}
|
| 52 |
+
function getProperty(object, property) {
|
| 53 |
+
try {
|
| 54 |
+
return object[property];
|
| 55 |
+
} catch (err) {}
|
| 56 |
+
}
|
| 57 |
+
function register(type, id) {
|
| 58 |
+
if (
|
| 59 |
+
!(
|
| 60 |
+
null === type ||
|
| 61 |
+
("function" !== typeof type && "object" !== typeof type) ||
|
| 62 |
+
allFamiliesByType.has(type)
|
| 63 |
+
)
|
| 64 |
+
) {
|
| 65 |
+
var family = allFamiliesByID.get(id);
|
| 66 |
+
void 0 === family
|
| 67 |
+
? ((family = { current: type }), allFamiliesByID.set(id, family))
|
| 68 |
+
: pendingUpdates.push([family, type]);
|
| 69 |
+
allFamiliesByType.set(type, family);
|
| 70 |
+
if ("object" === typeof type && null !== type)
|
| 71 |
+
switch (getProperty(type, "$$typeof")) {
|
| 72 |
+
case REACT_FORWARD_REF_TYPE:
|
| 73 |
+
register(type.render, id + "$render");
|
| 74 |
+
break;
|
| 75 |
+
case REACT_MEMO_TYPE:
|
| 76 |
+
register(type.type, id + "$type");
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
}
|
| 80 |
+
function setSignature(type, key) {
|
| 81 |
+
var forceReset =
|
| 82 |
+
2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : !1,
|
| 83 |
+
getCustomHooks = 3 < arguments.length ? arguments[3] : void 0;
|
| 84 |
+
allSignaturesByType.has(type) ||
|
| 85 |
+
allSignaturesByType.set(type, {
|
| 86 |
+
forceReset: forceReset,
|
| 87 |
+
ownKey: key,
|
| 88 |
+
fullKey: null,
|
| 89 |
+
getCustomHooks:
|
| 90 |
+
getCustomHooks ||
|
| 91 |
+
function () {
|
| 92 |
+
return [];
|
| 93 |
+
}
|
| 94 |
+
});
|
| 95 |
+
if ("object" === typeof type && null !== type)
|
| 96 |
+
switch (getProperty(type, "$$typeof")) {
|
| 97 |
+
case REACT_FORWARD_REF_TYPE:
|
| 98 |
+
setSignature(type.render, key, forceReset, getCustomHooks);
|
| 99 |
+
break;
|
| 100 |
+
case REACT_MEMO_TYPE:
|
| 101 |
+
setSignature(type.type, key, forceReset, getCustomHooks);
|
| 102 |
+
}
|
| 103 |
+
}
|
| 104 |
+
function collectCustomHooksForSignature(type) {
|
| 105 |
+
type = allSignaturesByType.get(type);
|
| 106 |
+
void 0 !== type && computeFullKey(type);
|
| 107 |
+
}
|
| 108 |
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
| 109 |
+
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
| 110 |
+
PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map,
|
| 111 |
+
allFamiliesByID = new Map(),
|
| 112 |
+
allFamiliesByType = new PossiblyWeakMap(),
|
| 113 |
+
allSignaturesByType = new PossiblyWeakMap(),
|
| 114 |
+
updatedFamiliesByType = new PossiblyWeakMap(),
|
| 115 |
+
pendingUpdates = [],
|
| 116 |
+
helpersByRendererID = new Map(),
|
| 117 |
+
helpersByRoot = new Map(),
|
| 118 |
+
mountedRoots = new Set(),
|
| 119 |
+
failedRoots = new Set(),
|
| 120 |
+
rootElements = "function" === typeof WeakMap ? new WeakMap() : null,
|
| 121 |
+
isPerformingRefresh = !1;
|
| 122 |
+
exports._getMountedRootCount = function () {
|
| 123 |
+
return mountedRoots.size;
|
| 124 |
+
};
|
| 125 |
+
exports.collectCustomHooksForSignature = collectCustomHooksForSignature;
|
| 126 |
+
exports.createSignatureFunctionForTransform = function () {
|
| 127 |
+
var savedType,
|
| 128 |
+
hasCustomHooks,
|
| 129 |
+
didCollectHooks = !1;
|
| 130 |
+
return function (type, key, forceReset, getCustomHooks) {
|
| 131 |
+
if ("string" === typeof key)
|
| 132 |
+
return (
|
| 133 |
+
savedType ||
|
| 134 |
+
((savedType = type),
|
| 135 |
+
(hasCustomHooks = "function" === typeof getCustomHooks)),
|
| 136 |
+
null == type ||
|
| 137 |
+
("function" !== typeof type && "object" !== typeof type) ||
|
| 138 |
+
setSignature(type, key, forceReset, getCustomHooks),
|
| 139 |
+
type
|
| 140 |
+
);
|
| 141 |
+
!didCollectHooks &&
|
| 142 |
+
hasCustomHooks &&
|
| 143 |
+
((didCollectHooks = !0), collectCustomHooksForSignature(savedType));
|
| 144 |
+
};
|
| 145 |
+
};
|
| 146 |
+
exports.getFamilyByID = function (id) {
|
| 147 |
+
return allFamiliesByID.get(id);
|
| 148 |
+
};
|
| 149 |
+
exports.getFamilyByType = function (type) {
|
| 150 |
+
return allFamiliesByType.get(type);
|
| 151 |
+
};
|
| 152 |
+
exports.hasUnrecoverableErrors = function () {
|
| 153 |
+
return !1;
|
| 154 |
+
};
|
| 155 |
+
exports.injectIntoGlobalHook = function (globalObject) {
|
| 156 |
+
var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
| 157 |
+
if (void 0 === hook) {
|
| 158 |
+
var nextID = 0;
|
| 159 |
+
globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {
|
| 160 |
+
renderers: new Map(),
|
| 161 |
+
supportsFiber: !0,
|
| 162 |
+
inject: function () {
|
| 163 |
+
return nextID++;
|
| 164 |
+
},
|
| 165 |
+
onScheduleFiberRoot: function () {},
|
| 166 |
+
onCommitFiberRoot: function () {},
|
| 167 |
+
onCommitFiberUnmount: function () {}
|
| 168 |
+
};
|
| 169 |
+
}
|
| 170 |
+
if (hook.isDisabled)
|
| 171 |
+
console.warn(
|
| 172 |
+
"Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). Fast Refresh is not compatible with this shim and will be disabled."
|
| 173 |
+
);
|
| 174 |
+
else {
|
| 175 |
+
var oldInject = hook.inject;
|
| 176 |
+
hook.inject = function (injected) {
|
| 177 |
+
var id = oldInject.apply(this, arguments);
|
| 178 |
+
"function" === typeof injected.scheduleRefresh &&
|
| 179 |
+
"function" === typeof injected.setRefreshHandler &&
|
| 180 |
+
helpersByRendererID.set(id, injected);
|
| 181 |
+
return id;
|
| 182 |
+
};
|
| 183 |
+
hook.renderers.forEach(function (injected, id) {
|
| 184 |
+
"function" === typeof injected.scheduleRefresh &&
|
| 185 |
+
"function" === typeof injected.setRefreshHandler &&
|
| 186 |
+
helpersByRendererID.set(id, injected);
|
| 187 |
+
});
|
| 188 |
+
var oldOnCommitFiberRoot = hook.onCommitFiberRoot,
|
| 189 |
+
oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function () {};
|
| 190 |
+
hook.onScheduleFiberRoot = function (id, root, children) {
|
| 191 |
+
isPerformingRefresh ||
|
| 192 |
+
(failedRoots.delete(root),
|
| 193 |
+
null !== rootElements && rootElements.set(root, children));
|
| 194 |
+
return oldOnScheduleFiberRoot.apply(this, arguments);
|
| 195 |
+
};
|
| 196 |
+
hook.onCommitFiberRoot = function (
|
| 197 |
+
id,
|
| 198 |
+
root,
|
| 199 |
+
maybePriorityLevel,
|
| 200 |
+
didError
|
| 201 |
+
) {
|
| 202 |
+
var helpers = helpersByRendererID.get(id);
|
| 203 |
+
if (void 0 !== helpers) {
|
| 204 |
+
helpersByRoot.set(root, helpers);
|
| 205 |
+
helpers = root.current;
|
| 206 |
+
var alternate = helpers.alternate;
|
| 207 |
+
null !== alternate
|
| 208 |
+
? ((alternate =
|
| 209 |
+
null != alternate.memoizedState &&
|
| 210 |
+
null != alternate.memoizedState.element &&
|
| 211 |
+
mountedRoots.has(root)),
|
| 212 |
+
(helpers =
|
| 213 |
+
null != helpers.memoizedState &&
|
| 214 |
+
null != helpers.memoizedState.element),
|
| 215 |
+
!alternate && helpers
|
| 216 |
+
? (mountedRoots.add(root), failedRoots.delete(root))
|
| 217 |
+
: (alternate && helpers) ||
|
| 218 |
+
(alternate && !helpers
|
| 219 |
+
? (mountedRoots.delete(root),
|
| 220 |
+
didError
|
| 221 |
+
? failedRoots.add(root)
|
| 222 |
+
: helpersByRoot.delete(root))
|
| 223 |
+
: alternate ||
|
| 224 |
+
helpers ||
|
| 225 |
+
(didError && failedRoots.add(root))))
|
| 226 |
+
: mountedRoots.add(root);
|
| 227 |
+
}
|
| 228 |
+
return oldOnCommitFiberRoot.apply(this, arguments);
|
| 229 |
+
};
|
| 230 |
+
}
|
| 231 |
+
};
|
| 232 |
+
exports.isLikelyComponentType = function (type) {
|
| 233 |
+
switch (typeof type) {
|
| 234 |
+
case "function":
|
| 235 |
+
if (null != type.prototype) {
|
| 236 |
+
if (type.prototype.isReactComponent) return !0;
|
| 237 |
+
var ownNames = Object.getOwnPropertyNames(type.prototype);
|
| 238 |
+
if (
|
| 239 |
+
1 < ownNames.length ||
|
| 240 |
+
"constructor" !== ownNames[0] ||
|
| 241 |
+
type.prototype.__proto__ !== Object.prototype
|
| 242 |
+
)
|
| 243 |
+
return !1;
|
| 244 |
+
}
|
| 245 |
+
type = type.name || type.displayName;
|
| 246 |
+
return "string" === typeof type && /^[A-Z]/.test(type);
|
| 247 |
+
case "object":
|
| 248 |
+
if (null != type)
|
| 249 |
+
switch (getProperty(type, "$$typeof")) {
|
| 250 |
+
case REACT_FORWARD_REF_TYPE:
|
| 251 |
+
case REACT_MEMO_TYPE:
|
| 252 |
+
return !0;
|
| 253 |
+
}
|
| 254 |
+
return !1;
|
| 255 |
+
default:
|
| 256 |
+
return !1;
|
| 257 |
+
}
|
| 258 |
+
};
|
| 259 |
+
exports.performReactRefresh = function () {
|
| 260 |
+
if (0 === pendingUpdates.length || isPerformingRefresh) return null;
|
| 261 |
+
isPerformingRefresh = !0;
|
| 262 |
+
try {
|
| 263 |
+
var staleFamilies = new Set(),
|
| 264 |
+
updatedFamilies = new Set(),
|
| 265 |
+
updates = pendingUpdates;
|
| 266 |
+
pendingUpdates = [];
|
| 267 |
+
updates.forEach(function (_ref) {
|
| 268 |
+
var family = _ref[0];
|
| 269 |
+
_ref = _ref[1];
|
| 270 |
+
var prevType = family.current;
|
| 271 |
+
updatedFamiliesByType.set(prevType, family);
|
| 272 |
+
updatedFamiliesByType.set(_ref, family);
|
| 273 |
+
family.current = _ref;
|
| 274 |
+
(prevType.prototype && prevType.prototype.isReactComponent) ||
|
| 275 |
+
(_ref.prototype && _ref.prototype.isReactComponent)
|
| 276 |
+
? (_ref = !1)
|
| 277 |
+
: ((prevType = allSignaturesByType.get(prevType)),
|
| 278 |
+
(_ref = allSignaturesByType.get(_ref)),
|
| 279 |
+
(_ref =
|
| 280 |
+
(void 0 === prevType && void 0 === _ref) ||
|
| 281 |
+
(void 0 !== prevType &&
|
| 282 |
+
void 0 !== _ref &&
|
| 283 |
+
computeFullKey(prevType) === computeFullKey(_ref) &&
|
| 284 |
+
!_ref.forceReset)
|
| 285 |
+
? !0
|
| 286 |
+
: !1));
|
| 287 |
+
_ref ? updatedFamilies.add(family) : staleFamilies.add(family);
|
| 288 |
+
});
|
| 289 |
+
var update = {
|
| 290 |
+
updatedFamilies: updatedFamilies,
|
| 291 |
+
staleFamilies: staleFamilies
|
| 292 |
+
};
|
| 293 |
+
helpersByRendererID.forEach(function (helpers) {
|
| 294 |
+
helpers.setRefreshHandler(resolveFamily);
|
| 295 |
+
});
|
| 296 |
+
var didError = !1,
|
| 297 |
+
firstError = null,
|
| 298 |
+
failedRootsSnapshot = cloneSet(failedRoots),
|
| 299 |
+
mountedRootsSnapshot = cloneSet(mountedRoots),
|
| 300 |
+
helpersByRootSnapshot = cloneMap(helpersByRoot);
|
| 301 |
+
failedRootsSnapshot.forEach(function (root) {
|
| 302 |
+
var helpers = helpersByRootSnapshot.get(root);
|
| 303 |
+
if (void 0 === helpers)
|
| 304 |
+
throw Error(
|
| 305 |
+
"Could not find helpers for a root. This is a bug in React Refresh."
|
| 306 |
+
);
|
| 307 |
+
failedRoots.has(root);
|
| 308 |
+
if (null !== rootElements && rootElements.has(root)) {
|
| 309 |
+
var element = rootElements.get(root);
|
| 310 |
+
try {
|
| 311 |
+
helpers.scheduleRoot(root, element);
|
| 312 |
+
} catch (err) {
|
| 313 |
+
didError || ((didError = !0), (firstError = err));
|
| 314 |
+
}
|
| 315 |
+
}
|
| 316 |
+
});
|
| 317 |
+
mountedRootsSnapshot.forEach(function (root) {
|
| 318 |
+
var helpers = helpersByRootSnapshot.get(root);
|
| 319 |
+
if (void 0 === helpers)
|
| 320 |
+
throw Error(
|
| 321 |
+
"Could not find helpers for a root. This is a bug in React Refresh."
|
| 322 |
+
);
|
| 323 |
+
mountedRoots.has(root);
|
| 324 |
+
try {
|
| 325 |
+
helpers.scheduleRefresh(root, update);
|
| 326 |
+
} catch (err) {
|
| 327 |
+
didError || ((didError = !0), (firstError = err));
|
| 328 |
+
}
|
| 329 |
+
});
|
| 330 |
+
if (didError) throw firstError;
|
| 331 |
+
return update;
|
| 332 |
+
} finally {
|
| 333 |
+
isPerformingRefresh = !1;
|
| 334 |
+
}
|
| 335 |
+
};
|
| 336 |
+
exports.register = register;
|
| 337 |
+
exports.setSignature = setSignature;
|
| 338 |
+
})();
|
frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/cjs/react-refresh-runtime.production.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-refresh-runtime.production.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
throw Error(
|
| 13 |
+
"React Refresh runtime should not be included in the production bundle."
|
| 14 |
+
);
|
frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "react-refresh",
|
| 3 |
+
"description": "React is a JavaScript library for building user interfaces.",
|
| 4 |
+
"keywords": [
|
| 5 |
+
"react"
|
| 6 |
+
],
|
| 7 |
+
"version": "0.17.0",
|
| 8 |
+
"homepage": "https://react.dev/",
|
| 9 |
+
"bugs": "https://github.com/facebook/react/issues",
|
| 10 |
+
"license": "MIT",
|
| 11 |
+
"files": [
|
| 12 |
+
"LICENSE",
|
| 13 |
+
"README.md",
|
| 14 |
+
"babel.js",
|
| 15 |
+
"runtime.js",
|
| 16 |
+
"cjs/"
|
| 17 |
+
],
|
| 18 |
+
"main": "runtime.js",
|
| 19 |
+
"exports": {
|
| 20 |
+
".": "./runtime.js",
|
| 21 |
+
"./runtime": "./runtime.js",
|
| 22 |
+
"./babel": "./babel.js",
|
| 23 |
+
"./package.json": "./package.json"
|
| 24 |
+
},
|
| 25 |
+
"repository": {
|
| 26 |
+
"type": "git",
|
| 27 |
+
"url": "https://github.com/facebook/react.git",
|
| 28 |
+
"directory": "packages/react"
|
| 29 |
+
},
|
| 30 |
+
"engines": {
|
| 31 |
+
"node": ">=0.10.0"
|
| 32 |
+
},
|
| 33 |
+
"devDependencies": {
|
| 34 |
+
"react-16-8": "npm:react@16.8.0",
|
| 35 |
+
"react-dom-16-8": "npm:react-dom@16.8.0",
|
| 36 |
+
"scheduler-0-13": "npm:scheduler@0.13.0"
|
| 37 |
+
}
|
| 38 |
+
}
|
frontend/node_modules/.pnpm/react-refresh@0.17.0/node_modules/react-refresh/runtime.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
if (process.env.NODE_ENV === 'production') {
|
| 4 |
+
module.exports = require('./cjs/react-refresh-runtime.production.js');
|
| 5 |
+
} else {
|
| 6 |
+
module.exports = require('./cjs/react-refresh-runtime.development.js');
|
| 7 |
+
}
|
frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# `react`
|
| 2 |
+
|
| 3 |
+
React is a JavaScript library for creating user interfaces.
|
| 4 |
+
|
| 5 |
+
The `react` package contains only the functionality necessary to define React components. It is typically used together with a React renderer like `react-dom` for the web, or `react-native` for the native environments.
|
| 6 |
+
|
| 7 |
+
**Note:** by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages. Don't forget to use the [production build](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build) when deploying your application.
|
| 8 |
+
|
| 9 |
+
## Usage
|
| 10 |
+
|
| 11 |
+
```js
|
| 12 |
+
import { useState } from 'react';
|
| 13 |
+
import { createRoot } from 'react-dom/client';
|
| 14 |
+
|
| 15 |
+
function Counter() {
|
| 16 |
+
const [count, setCount] = useState(0);
|
| 17 |
+
return (
|
| 18 |
+
<>
|
| 19 |
+
<h1>{count}</h1>
|
| 20 |
+
<button onClick={() => setCount(count + 1)}>
|
| 21 |
+
Increment
|
| 22 |
+
</button>
|
| 23 |
+
</>
|
| 24 |
+
);
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
const root = createRoot(document.getElementById('root'));
|
| 28 |
+
root.render(<Counter />);
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## Documentation
|
| 32 |
+
|
| 33 |
+
See https://react.dev/
|
| 34 |
+
|
| 35 |
+
## API
|
| 36 |
+
|
| 37 |
+
See https://react.dev/reference/react
|
frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-compiler-runtime.development.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-compiler-runtime.development.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
"production" !== process.env.NODE_ENV &&
|
| 13 |
+
(function () {
|
| 14 |
+
var ReactSharedInternals =
|
| 15 |
+
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
| 16 |
+
exports.c = function (size) {
|
| 17 |
+
var dispatcher = ReactSharedInternals.H;
|
| 18 |
+
null === dispatcher &&
|
| 19 |
+
console.error(
|
| 20 |
+
"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."
|
| 21 |
+
);
|
| 22 |
+
return dispatcher.useMemoCache(size);
|
| 23 |
+
};
|
| 24 |
+
})();
|
frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-compiler-runtime.production.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-compiler-runtime.production.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
var ReactSharedInternals =
|
| 13 |
+
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
| 14 |
+
exports.c = function (size) {
|
| 15 |
+
return ReactSharedInternals.H.useMemoCache(size);
|
| 16 |
+
};
|
frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-compiler-runtime.profiling.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-compiler-runtime.profiling.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
var ReactSharedInternals =
|
| 13 |
+
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
| 14 |
+
exports.c = function (size) {
|
| 15 |
+
return ReactSharedInternals.H.useMemoCache(size);
|
| 16 |
+
};
|
frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-dev-runtime.development.js
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
"production" !== process.env.NODE_ENV &&
|
| 13 |
+
(function () {
|
| 14 |
+
function getComponentNameFromType(type) {
|
| 15 |
+
if (null == type) return null;
|
| 16 |
+
if ("function" === typeof type)
|
| 17 |
+
return type.$$typeof === REACT_CLIENT_REFERENCE
|
| 18 |
+
? null
|
| 19 |
+
: type.displayName || type.name || null;
|
| 20 |
+
if ("string" === typeof type) return type;
|
| 21 |
+
switch (type) {
|
| 22 |
+
case REACT_FRAGMENT_TYPE:
|
| 23 |
+
return "Fragment";
|
| 24 |
+
case REACT_PROFILER_TYPE:
|
| 25 |
+
return "Profiler";
|
| 26 |
+
case REACT_STRICT_MODE_TYPE:
|
| 27 |
+
return "StrictMode";
|
| 28 |
+
case REACT_SUSPENSE_TYPE:
|
| 29 |
+
return "Suspense";
|
| 30 |
+
case REACT_SUSPENSE_LIST_TYPE:
|
| 31 |
+
return "SuspenseList";
|
| 32 |
+
case REACT_ACTIVITY_TYPE:
|
| 33 |
+
return "Activity";
|
| 34 |
+
}
|
| 35 |
+
if ("object" === typeof type)
|
| 36 |
+
switch (
|
| 37 |
+
("number" === typeof type.tag &&
|
| 38 |
+
console.error(
|
| 39 |
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
| 40 |
+
),
|
| 41 |
+
type.$$typeof)
|
| 42 |
+
) {
|
| 43 |
+
case REACT_PORTAL_TYPE:
|
| 44 |
+
return "Portal";
|
| 45 |
+
case REACT_CONTEXT_TYPE:
|
| 46 |
+
return type.displayName || "Context";
|
| 47 |
+
case REACT_CONSUMER_TYPE:
|
| 48 |
+
return (type._context.displayName || "Context") + ".Consumer";
|
| 49 |
+
case REACT_FORWARD_REF_TYPE:
|
| 50 |
+
var innerType = type.render;
|
| 51 |
+
type = type.displayName;
|
| 52 |
+
type ||
|
| 53 |
+
((type = innerType.displayName || innerType.name || ""),
|
| 54 |
+
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
| 55 |
+
return type;
|
| 56 |
+
case REACT_MEMO_TYPE:
|
| 57 |
+
return (
|
| 58 |
+
(innerType = type.displayName || null),
|
| 59 |
+
null !== innerType
|
| 60 |
+
? innerType
|
| 61 |
+
: getComponentNameFromType(type.type) || "Memo"
|
| 62 |
+
);
|
| 63 |
+
case REACT_LAZY_TYPE:
|
| 64 |
+
innerType = type._payload;
|
| 65 |
+
type = type._init;
|
| 66 |
+
try {
|
| 67 |
+
return getComponentNameFromType(type(innerType));
|
| 68 |
+
} catch (x) {}
|
| 69 |
+
}
|
| 70 |
+
return null;
|
| 71 |
+
}
|
| 72 |
+
function testStringCoercion(value) {
|
| 73 |
+
return "" + value;
|
| 74 |
+
}
|
| 75 |
+
function checkKeyStringCoercion(value) {
|
| 76 |
+
try {
|
| 77 |
+
testStringCoercion(value);
|
| 78 |
+
var JSCompiler_inline_result = !1;
|
| 79 |
+
} catch (e) {
|
| 80 |
+
JSCompiler_inline_result = !0;
|
| 81 |
+
}
|
| 82 |
+
if (JSCompiler_inline_result) {
|
| 83 |
+
JSCompiler_inline_result = console;
|
| 84 |
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
| 85 |
+
var JSCompiler_inline_result$jscomp$0 =
|
| 86 |
+
("function" === typeof Symbol &&
|
| 87 |
+
Symbol.toStringTag &&
|
| 88 |
+
value[Symbol.toStringTag]) ||
|
| 89 |
+
value.constructor.name ||
|
| 90 |
+
"Object";
|
| 91 |
+
JSCompiler_temp_const.call(
|
| 92 |
+
JSCompiler_inline_result,
|
| 93 |
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
| 94 |
+
JSCompiler_inline_result$jscomp$0
|
| 95 |
+
);
|
| 96 |
+
return testStringCoercion(value);
|
| 97 |
+
}
|
| 98 |
+
}
|
| 99 |
+
function getTaskName(type) {
|
| 100 |
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
| 101 |
+
if (
|
| 102 |
+
"object" === typeof type &&
|
| 103 |
+
null !== type &&
|
| 104 |
+
type.$$typeof === REACT_LAZY_TYPE
|
| 105 |
+
)
|
| 106 |
+
return "<...>";
|
| 107 |
+
try {
|
| 108 |
+
var name = getComponentNameFromType(type);
|
| 109 |
+
return name ? "<" + name + ">" : "<...>";
|
| 110 |
+
} catch (x) {
|
| 111 |
+
return "<...>";
|
| 112 |
+
}
|
| 113 |
+
}
|
| 114 |
+
function getOwner() {
|
| 115 |
+
var dispatcher = ReactSharedInternals.A;
|
| 116 |
+
return null === dispatcher ? null : dispatcher.getOwner();
|
| 117 |
+
}
|
| 118 |
+
function UnknownOwner() {
|
| 119 |
+
return Error("react-stack-top-frame");
|
| 120 |
+
}
|
| 121 |
+
function hasValidKey(config) {
|
| 122 |
+
if (hasOwnProperty.call(config, "key")) {
|
| 123 |
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
| 124 |
+
if (getter && getter.isReactWarning) return !1;
|
| 125 |
+
}
|
| 126 |
+
return void 0 !== config.key;
|
| 127 |
+
}
|
| 128 |
+
function defineKeyPropWarningGetter(props, displayName) {
|
| 129 |
+
function warnAboutAccessingKey() {
|
| 130 |
+
specialPropKeyWarningShown ||
|
| 131 |
+
((specialPropKeyWarningShown = !0),
|
| 132 |
+
console.error(
|
| 133 |
+
"%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)",
|
| 134 |
+
displayName
|
| 135 |
+
));
|
| 136 |
+
}
|
| 137 |
+
warnAboutAccessingKey.isReactWarning = !0;
|
| 138 |
+
Object.defineProperty(props, "key", {
|
| 139 |
+
get: warnAboutAccessingKey,
|
| 140 |
+
configurable: !0
|
| 141 |
+
});
|
| 142 |
+
}
|
| 143 |
+
function elementRefGetterWithDeprecationWarning() {
|
| 144 |
+
var componentName = getComponentNameFromType(this.type);
|
| 145 |
+
didWarnAboutElementRef[componentName] ||
|
| 146 |
+
((didWarnAboutElementRef[componentName] = !0),
|
| 147 |
+
console.error(
|
| 148 |
+
"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."
|
| 149 |
+
));
|
| 150 |
+
componentName = this.props.ref;
|
| 151 |
+
return void 0 !== componentName ? componentName : null;
|
| 152 |
+
}
|
| 153 |
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
| 154 |
+
var refProp = props.ref;
|
| 155 |
+
type = {
|
| 156 |
+
$$typeof: REACT_ELEMENT_TYPE,
|
| 157 |
+
type: type,
|
| 158 |
+
key: key,
|
| 159 |
+
props: props,
|
| 160 |
+
_owner: owner
|
| 161 |
+
};
|
| 162 |
+
null !== (void 0 !== refProp ? refProp : null)
|
| 163 |
+
? Object.defineProperty(type, "ref", {
|
| 164 |
+
enumerable: !1,
|
| 165 |
+
get: elementRefGetterWithDeprecationWarning
|
| 166 |
+
})
|
| 167 |
+
: Object.defineProperty(type, "ref", { enumerable: !1, value: null });
|
| 168 |
+
type._store = {};
|
| 169 |
+
Object.defineProperty(type._store, "validated", {
|
| 170 |
+
configurable: !1,
|
| 171 |
+
enumerable: !1,
|
| 172 |
+
writable: !0,
|
| 173 |
+
value: 0
|
| 174 |
+
});
|
| 175 |
+
Object.defineProperty(type, "_debugInfo", {
|
| 176 |
+
configurable: !1,
|
| 177 |
+
enumerable: !1,
|
| 178 |
+
writable: !0,
|
| 179 |
+
value: null
|
| 180 |
+
});
|
| 181 |
+
Object.defineProperty(type, "_debugStack", {
|
| 182 |
+
configurable: !1,
|
| 183 |
+
enumerable: !1,
|
| 184 |
+
writable: !0,
|
| 185 |
+
value: debugStack
|
| 186 |
+
});
|
| 187 |
+
Object.defineProperty(type, "_debugTask", {
|
| 188 |
+
configurable: !1,
|
| 189 |
+
enumerable: !1,
|
| 190 |
+
writable: !0,
|
| 191 |
+
value: debugTask
|
| 192 |
+
});
|
| 193 |
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
| 194 |
+
return type;
|
| 195 |
+
}
|
| 196 |
+
function jsxDEVImpl(
|
| 197 |
+
type,
|
| 198 |
+
config,
|
| 199 |
+
maybeKey,
|
| 200 |
+
isStaticChildren,
|
| 201 |
+
debugStack,
|
| 202 |
+
debugTask
|
| 203 |
+
) {
|
| 204 |
+
var children = config.children;
|
| 205 |
+
if (void 0 !== children)
|
| 206 |
+
if (isStaticChildren)
|
| 207 |
+
if (isArrayImpl(children)) {
|
| 208 |
+
for (
|
| 209 |
+
isStaticChildren = 0;
|
| 210 |
+
isStaticChildren < children.length;
|
| 211 |
+
isStaticChildren++
|
| 212 |
+
)
|
| 213 |
+
validateChildKeys(children[isStaticChildren]);
|
| 214 |
+
Object.freeze && Object.freeze(children);
|
| 215 |
+
} else
|
| 216 |
+
console.error(
|
| 217 |
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
| 218 |
+
);
|
| 219 |
+
else validateChildKeys(children);
|
| 220 |
+
if (hasOwnProperty.call(config, "key")) {
|
| 221 |
+
children = getComponentNameFromType(type);
|
| 222 |
+
var keys = Object.keys(config).filter(function (k) {
|
| 223 |
+
return "key" !== k;
|
| 224 |
+
});
|
| 225 |
+
isStaticChildren =
|
| 226 |
+
0 < keys.length
|
| 227 |
+
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
| 228 |
+
: "{key: someKey}";
|
| 229 |
+
didWarnAboutKeySpread[children + isStaticChildren] ||
|
| 230 |
+
((keys =
|
| 231 |
+
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
| 232 |
+
console.error(
|
| 233 |
+
'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} />',
|
| 234 |
+
isStaticChildren,
|
| 235 |
+
children,
|
| 236 |
+
keys,
|
| 237 |
+
children
|
| 238 |
+
),
|
| 239 |
+
(didWarnAboutKeySpread[children + isStaticChildren] = !0));
|
| 240 |
+
}
|
| 241 |
+
children = null;
|
| 242 |
+
void 0 !== maybeKey &&
|
| 243 |
+
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
| 244 |
+
hasValidKey(config) &&
|
| 245 |
+
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
| 246 |
+
if ("key" in config) {
|
| 247 |
+
maybeKey = {};
|
| 248 |
+
for (var propName in config)
|
| 249 |
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
| 250 |
+
} else maybeKey = config;
|
| 251 |
+
children &&
|
| 252 |
+
defineKeyPropWarningGetter(
|
| 253 |
+
maybeKey,
|
| 254 |
+
"function" === typeof type
|
| 255 |
+
? type.displayName || type.name || "Unknown"
|
| 256 |
+
: type
|
| 257 |
+
);
|
| 258 |
+
return ReactElement(
|
| 259 |
+
type,
|
| 260 |
+
children,
|
| 261 |
+
maybeKey,
|
| 262 |
+
getOwner(),
|
| 263 |
+
debugStack,
|
| 264 |
+
debugTask
|
| 265 |
+
);
|
| 266 |
+
}
|
| 267 |
+
function validateChildKeys(node) {
|
| 268 |
+
isValidElement(node)
|
| 269 |
+
? node._store && (node._store.validated = 1)
|
| 270 |
+
: "object" === typeof node &&
|
| 271 |
+
null !== node &&
|
| 272 |
+
node.$$typeof === REACT_LAZY_TYPE &&
|
| 273 |
+
("fulfilled" === node._payload.status
|
| 274 |
+
? isValidElement(node._payload.value) &&
|
| 275 |
+
node._payload.value._store &&
|
| 276 |
+
(node._payload.value._store.validated = 1)
|
| 277 |
+
: node._store && (node._store.validated = 1));
|
| 278 |
+
}
|
| 279 |
+
function isValidElement(object) {
|
| 280 |
+
return (
|
| 281 |
+
"object" === typeof object &&
|
| 282 |
+
null !== object &&
|
| 283 |
+
object.$$typeof === REACT_ELEMENT_TYPE
|
| 284 |
+
);
|
| 285 |
+
}
|
| 286 |
+
var React = require("react"),
|
| 287 |
+
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
| 288 |
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
| 289 |
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
| 290 |
+
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
| 291 |
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
| 292 |
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
| 293 |
+
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
| 294 |
+
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
| 295 |
+
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
| 296 |
+
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
| 297 |
+
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
| 298 |
+
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
| 299 |
+
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
| 300 |
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
| 301 |
+
ReactSharedInternals =
|
| 302 |
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
| 303 |
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
| 304 |
+
isArrayImpl = Array.isArray,
|
| 305 |
+
createTask = console.createTask
|
| 306 |
+
? console.createTask
|
| 307 |
+
: function () {
|
| 308 |
+
return null;
|
| 309 |
+
};
|
| 310 |
+
React = {
|
| 311 |
+
react_stack_bottom_frame: function (callStackForError) {
|
| 312 |
+
return callStackForError();
|
| 313 |
+
}
|
| 314 |
+
};
|
| 315 |
+
var specialPropKeyWarningShown;
|
| 316 |
+
var didWarnAboutElementRef = {};
|
| 317 |
+
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
|
| 318 |
+
React,
|
| 319 |
+
UnknownOwner
|
| 320 |
+
)();
|
| 321 |
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
| 322 |
+
var didWarnAboutKeySpread = {};
|
| 323 |
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
| 324 |
+
exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
|
| 325 |
+
var trackActualOwner =
|
| 326 |
+
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
| 327 |
+
return jsxDEVImpl(
|
| 328 |
+
type,
|
| 329 |
+
config,
|
| 330 |
+
maybeKey,
|
| 331 |
+
isStaticChildren,
|
| 332 |
+
trackActualOwner
|
| 333 |
+
? Error("react-stack-top-frame")
|
| 334 |
+
: unknownOwnerDebugStack,
|
| 335 |
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
| 336 |
+
);
|
| 337 |
+
};
|
| 338 |
+
})();
|
frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-dev-runtime.production.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-jsx-dev-runtime.production.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
| 13 |
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
| 14 |
+
exports.jsxDEV = void 0;
|
frontend/node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-dev-runtime.profiling.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license React
|
| 3 |
+
* react-jsx-dev-runtime.profiling.js
|
| 4 |
+
*
|
| 5 |
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 6 |
+
*
|
| 7 |
+
* This source code is licensed under the MIT license found in the
|
| 8 |
+
* LICENSE file in the root directory of this source tree.
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
"use strict";
|
| 12 |
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
| 13 |
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
| 14 |
+
exports.jsxDEV = void 0;
|