@recode-js/next-toolkit 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/dist/NextToolkitProvider.d.ts +8 -0
- package/dist/NextToolkitProvider.d.ts.map +1 -0
- package/dist/NextToolkitProvider.js +12 -0
- package/dist/NextToolkitProvider.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/browser.js +4 -0
- package/dist/_virtual/browser.js.map +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/node.js +4 -0
- package/dist/_virtual/node.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js.map +1 -0
- package/dist/_virtual/with-selector.js +4 -0
- package/dist/_virtual/with-selector.js.map +1 -0
- package/dist/axios/api.d.ts +16 -0
- package/dist/axios/api.d.ts.map +1 -0
- package/dist/axios/api.js +11 -0
- package/dist/axios/api.js.map +1 -0
- package/dist/components/auth/Form.d.ts +10 -0
- package/dist/components/auth/Form.d.ts.map +1 -0
- package/dist/components/auth/Form.js +49 -0
- package/dist/components/auth/Form.js.map +1 -0
- package/dist/components/auth/auth.d.ts +8 -0
- package/dist/components/auth/auth.d.ts.map +1 -0
- package/dist/components/auth/auth.js +18 -0
- package/dist/components/auth/auth.js.map +1 -0
- package/dist/components/auth/formActions.d.ts +17 -0
- package/dist/components/auth/formActions.d.ts.map +1 -0
- package/dist/components/auth/formActions.js +58 -0
- package/dist/components/auth/formActions.js.map +1 -0
- package/dist/components/auth/login/LoginPage.d.ts +7 -0
- package/dist/components/auth/login/LoginPage.d.ts.map +1 -0
- package/dist/components/auth/login/LoginPage.js +18 -0
- package/dist/components/auth/login/LoginPage.js.map +1 -0
- package/dist/components/auth/login/login.d.ts +1 -0
- package/dist/components/auth/login/login.d.ts.map +1 -0
- package/dist/components/auth/register/RegisterPage.d.ts +7 -0
- package/dist/components/auth/register/RegisterPage.d.ts.map +1 -0
- package/dist/components/auth/register/RegisterPage.js +18 -0
- package/dist/components/auth/register/RegisterPage.js.map +1 -0
- package/dist/components/auth/register/register.d.ts +1 -0
- package/dist/components/auth/register/register.d.ts.map +1 -0
- package/dist/components/auth/styles/form.module.css.js +4 -0
- package/dist/components/auth/styles/form.module.css.js.map +1 -0
- package/dist/components/common/Button.d.ts +25 -0
- package/dist/components/common/Button.d.ts.map +1 -0
- package/dist/components/common/Button.js +25 -0
- package/dist/components/common/Button.js.map +1 -0
- package/dist/components/common/styles/button.module.css.js +4 -0
- package/dist/components/common/styles/button.module.css.js.map +1 -0
- package/dist/components/navigation/NavigatorProvider.d.ts +10 -0
- package/dist/components/navigation/NavigatorProvider.d.ts.map +1 -0
- package/dist/components/navigation/NavigatorProvider.js +15 -0
- package/dist/components/navigation/NavigatorProvider.js.map +1 -0
- package/dist/components/navigation/bottom-tab/BottomTab.d.ts +12 -0
- package/dist/components/navigation/bottom-tab/BottomTab.d.ts.map +1 -0
- package/dist/components/navigation/bottom-tab/BottomTab.js +45 -0
- package/dist/components/navigation/bottom-tab/BottomTab.js.map +1 -0
- package/dist/components/navigation/bottom-tab/bottom-tab.module.css.js +4 -0
- package/dist/components/navigation/bottom-tab/bottom-tab.module.css.js.map +1 -0
- package/dist/components/navigation/drawer/Drawer.d.ts +21 -0
- package/dist/components/navigation/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/navigation/drawer/Drawer.js +91 -0
- package/dist/components/navigation/drawer/Drawer.js.map +1 -0
- package/dist/components/navigation/drawer/drawer.module.css.js +4 -0
- package/dist/components/navigation/drawer/drawer.module.css.js.map +1 -0
- package/dist/components/navigation/header/Header.d.ts +7 -0
- package/dist/components/navigation/header/Header.d.ts.map +1 -0
- package/dist/components/navigation/header/Header.js +32 -0
- package/dist/components/navigation/header/Header.js.map +1 -0
- package/dist/components/navigation/header/header.module.css.js +4 -0
- package/dist/components/navigation/header/header.module.css.js.map +1 -0
- package/dist/components/navigation/navigatior-provider.module.css.js +4 -0
- package/dist/components/navigation/navigatior-provider.module.css.js.map +1 -0
- package/dist/components/toast/Toast.d.ts +9 -0
- package/dist/components/toast/Toast.d.ts.map +1 -0
- package/dist/components/toast/Toast.js +92 -0
- package/dist/components/toast/Toast.js.map +1 -0
- package/dist/components/toast/ToastExamples.d.ts +2 -0
- package/dist/components/toast/ToastExamples.d.ts.map +1 -0
- package/dist/components/toast/ToastExamples.js +74 -0
- package/dist/components/toast/ToastExamples.js.map +1 -0
- package/dist/components/toast/toast.module.css.js +4 -0
- package/dist/components/toast/toast.module.css.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +969 -0
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js.map +1 -0
- package/dist/node_modules/axios/index.js +26 -0
- package/dist/node_modules/axios/index.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +129 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js +289 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/http.js +895 -0
- package/dist/node_modules/axios/lib/adapters/http.js.map +1 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +203 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js.map +1 -0
- package/dist/node_modules/axios/lib/axios.js +88 -0
- package/dist/node_modules/axios/lib/axios.js.map +1 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +25 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js.map +1 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js +7 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js.map +1 -0
- package/dist/node_modules/axios/lib/core/Axios.js +238 -0
- package/dist/node_modules/axios/lib/core/Axios.js.map +1 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js +110 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js.map +1 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +314 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js.map +1 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +71 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +24 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +83 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +108 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
- package/dist/node_modules/axios/lib/core/settle.js +29 -0
- package/dist/node_modules/axios/lib/core/settle.js.map +1 -0
- package/dist/node_modules/axios/lib/core/transformData.js +30 -0
- package/dist/node_modules/axios/lib/core/transformData.js.map +1 -0
- package/dist/node_modules/axios/lib/defaults/index.js +161 -0
- package/dist/node_modules/axios/lib/defaults/index.js.map +1 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +9 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js.map +1 -0
- package/dist/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/axios/lib/env/data.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/AxiosTransformStream.js +143 -0
- package/dist/node_modules/axios/lib/helpers/AxiosTransformStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +78 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
- package/dist/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/bind.js +16 -0
- package/dist/node_modules/axios/lib/helpers/bind.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/callbackify.js +17 -0
- package/dist/node_modules/axios/lib/helpers/callbackify.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +17 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +49 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +55 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +76 -0
- package/dist/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +95 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/formDataToStream.js +113 -0
- package/dist/node_modules/axios/lib/helpers/formDataToStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/fromDataURI.js +55 -0
- package/dist/node_modules/axios/lib/helpers/fromDataURI.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +17 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +16 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +17 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +57 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +8 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +47 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/readBlob.js +16 -0
- package/dist/node_modules/axios/lib/helpers/readBlob.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +63 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +30 -0
- package/dist/node_modules/axios/lib/helpers/spread.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js +45 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +222 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +21 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js.map +1 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +101 -0
- package/dist/node_modules/axios/lib/helpers/validator.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +46 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/index.js +10 -0
- package/dist/node_modules/axios/lib/platform/index.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/dist/node_modules/axios/lib/platform/node/classes/FormData.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +7 -0
- package/dist/node_modules/axios/lib/platform/node/classes/URLSearchParams.js.map +1 -0
- package/dist/node_modules/axios/lib/platform/node/index.js +41 -0
- package/dist/node_modules/axios/lib/platform/node/index.js.map +1 -0
- package/dist/node_modules/axios/lib/utils.js +784 -0
- package/dist/node_modules/axios/lib/utils.js.map +1 -0
- package/dist/node_modules/debug/src/browser.js +287 -0
- package/dist/node_modules/debug/src/browser.js.map +1 -0
- package/dist/node_modules/debug/src/common.js +304 -0
- package/dist/node_modules/debug/src/common.js.map +1 -0
- package/dist/node_modules/debug/src/index.js +24 -0
- package/dist/node_modules/debug/src/index.js.map +1 -0
- package/dist/node_modules/debug/src/node.js +280 -0
- package/dist/node_modules/debug/src/node.js.map +1 -0
- package/dist/node_modules/follow-redirects/debug.js +20 -0
- package/dist/node_modules/follow-redirects/debug.js.map +1 -0
- package/dist/node_modules/follow-redirects/index.js +701 -0
- package/dist/node_modules/follow-redirects/index.js.map +1 -0
- package/dist/node_modules/immer/dist/immer.js +860 -0
- package/dist/node_modules/immer/dist/immer.js.map +1 -0
- package/dist/node_modules/proxy-from-env/index.js +112 -0
- package/dist/node_modules/proxy-from-env/index.js.map +1 -0
- package/dist/node_modules/react-redux/dist/react-redux.js +348 -0
- package/dist/node_modules/react-redux/dist/react-redux.js.map +1 -0
- package/dist/node_modules/redux/dist/redux.js +362 -0
- package/dist/node_modules/redux/dist/redux.js.map +1 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js +15 -0
- package/dist/node_modules/redux-thunk/dist/redux-thunk.js.map +1 -0
- package/dist/node_modules/reselect/dist/reselect.js +322 -0
- package/dist/node_modules/reselect/dist/reselect.js.map +1 -0
- package/dist/node_modules/server-only/index.js +5 -0
- package/dist/node_modules/server-only/index.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +108 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +96 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +14 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js.map +1 -0
- package/dist/store/StoreProvider.d.ts +7 -0
- package/dist/store/StoreProvider.d.ts.map +1 -0
- package/dist/store/StoreProvider.js +11 -0
- package/dist/store/StoreProvider.js.map +1 -0
- package/dist/store/features/drawer/drawer.slice.d.ts +12 -0
- package/dist/store/features/drawer/drawer.slice.d.ts.map +1 -0
- package/dist/store/features/drawer/drawer.slice.js +26 -0
- package/dist/store/features/drawer/drawer.slice.js.map +1 -0
- package/dist/store/features/toast/toastSlice.d.ts +16 -0
- package/dist/store/features/toast/toastSlice.d.ts.map +1 -0
- package/dist/store/features/toast/toastSlice.js +26 -0
- package/dist/store/features/toast/toastSlice.js.map +1 -0
- package/dist/store/hooks.d.ts +10 -0
- package/dist/store/hooks.d.ts.map +1 -0
- package/dist/store/hooks.js +8 -0
- package/dist/store/hooks.js.map +1 -0
- package/dist/store/store.d.ts +16 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/store.js +13 -0
- package/dist/store/store.js.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/styles.css.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
// src/devModeChecks/identityFunctionCheck.ts
|
|
2
|
+
var runIdentityFunctionCheck = (resultFunc, inputSelectorsResults, outputSelectorResult) => {
|
|
3
|
+
if (inputSelectorsResults.length === 1 && inputSelectorsResults[0] === outputSelectorResult) {
|
|
4
|
+
let isInputSameAsOutput = false;
|
|
5
|
+
try {
|
|
6
|
+
const emptyObject = {};
|
|
7
|
+
if (resultFunc(emptyObject) === emptyObject)
|
|
8
|
+
isInputSameAsOutput = true;
|
|
9
|
+
} catch {
|
|
10
|
+
}
|
|
11
|
+
if (isInputSameAsOutput) {
|
|
12
|
+
let stack = void 0;
|
|
13
|
+
try {
|
|
14
|
+
throw new Error();
|
|
15
|
+
} catch (e) {
|
|
16
|
+
({ stack } = e);
|
|
17
|
+
}
|
|
18
|
+
console.warn(
|
|
19
|
+
"The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.",
|
|
20
|
+
{ stack }
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// src/devModeChecks/inputStabilityCheck.ts
|
|
27
|
+
var runInputStabilityCheck = (inputSelectorResultsObject, options, inputSelectorArgs) => {
|
|
28
|
+
const { memoize, memoizeOptions } = options;
|
|
29
|
+
const { inputSelectorResults, inputSelectorResultsCopy } = inputSelectorResultsObject;
|
|
30
|
+
const createAnEmptyObject = memoize(() => ({}), ...memoizeOptions);
|
|
31
|
+
const areInputSelectorResultsEqual = createAnEmptyObject.apply(null, inputSelectorResults) === createAnEmptyObject.apply(null, inputSelectorResultsCopy);
|
|
32
|
+
if (!areInputSelectorResultsEqual) {
|
|
33
|
+
let stack = void 0;
|
|
34
|
+
try {
|
|
35
|
+
throw new Error();
|
|
36
|
+
} catch (e) {
|
|
37
|
+
({ stack } = e);
|
|
38
|
+
}
|
|
39
|
+
console.warn(
|
|
40
|
+
"An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`",
|
|
41
|
+
{
|
|
42
|
+
arguments: inputSelectorArgs,
|
|
43
|
+
firstInputs: inputSelectorResults,
|
|
44
|
+
secondInputs: inputSelectorResultsCopy,
|
|
45
|
+
stack
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// src/devModeChecks/setGlobalDevModeChecks.ts
|
|
52
|
+
var globalDevModeChecks = {
|
|
53
|
+
inputStabilityCheck: "once",
|
|
54
|
+
identityFunctionCheck: "once"
|
|
55
|
+
};
|
|
56
|
+
function assertIsFunction(func, errorMessage = `expected a function, instead received ${typeof func}`) {
|
|
57
|
+
if (typeof func !== "function") {
|
|
58
|
+
throw new TypeError(errorMessage);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function assertIsObject(object, errorMessage = `expected an object, instead received ${typeof object}`) {
|
|
62
|
+
if (typeof object !== "object") {
|
|
63
|
+
throw new TypeError(errorMessage);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function assertIsArrayOfFunctions(array, errorMessage = `expected all items to be functions, instead received the following types: `) {
|
|
67
|
+
if (!array.every((item) => typeof item === "function")) {
|
|
68
|
+
const itemTypes = array.map(
|
|
69
|
+
(item) => typeof item === "function" ? `function ${item.name || "unnamed"}()` : typeof item
|
|
70
|
+
).join(", ");
|
|
71
|
+
throw new TypeError(`${errorMessage}[${itemTypes}]`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
var ensureIsArray = (item) => {
|
|
75
|
+
return Array.isArray(item) ? item : [item];
|
|
76
|
+
};
|
|
77
|
+
function getDependencies(createSelectorArgs) {
|
|
78
|
+
const dependencies = Array.isArray(createSelectorArgs[0]) ? createSelectorArgs[0] : createSelectorArgs;
|
|
79
|
+
assertIsArrayOfFunctions(
|
|
80
|
+
dependencies,
|
|
81
|
+
`createSelector expects all input-selectors to be functions, but received the following types: `
|
|
82
|
+
);
|
|
83
|
+
return dependencies;
|
|
84
|
+
}
|
|
85
|
+
function collectInputSelectorResults(dependencies, inputSelectorArgs) {
|
|
86
|
+
const inputSelectorResults = [];
|
|
87
|
+
const { length } = dependencies;
|
|
88
|
+
for (let i = 0; i < length; i++) {
|
|
89
|
+
inputSelectorResults.push(dependencies[i].apply(null, inputSelectorArgs));
|
|
90
|
+
}
|
|
91
|
+
return inputSelectorResults;
|
|
92
|
+
}
|
|
93
|
+
var getDevModeChecksExecutionInfo = (firstRun, devModeChecks) => {
|
|
94
|
+
const { identityFunctionCheck, inputStabilityCheck } = {
|
|
95
|
+
...globalDevModeChecks,
|
|
96
|
+
...devModeChecks
|
|
97
|
+
};
|
|
98
|
+
return {
|
|
99
|
+
identityFunctionCheck: {
|
|
100
|
+
shouldRun: identityFunctionCheck === "always" || identityFunctionCheck === "once" && firstRun,
|
|
101
|
+
run: runIdentityFunctionCheck
|
|
102
|
+
},
|
|
103
|
+
inputStabilityCheck: {
|
|
104
|
+
shouldRun: inputStabilityCheck === "always" || inputStabilityCheck === "once" && firstRun,
|
|
105
|
+
run: runInputStabilityCheck
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// src/weakMapMemoize.ts
|
|
111
|
+
var StrongRef = class {
|
|
112
|
+
constructor(value) {
|
|
113
|
+
this.value = value;
|
|
114
|
+
}
|
|
115
|
+
deref() {
|
|
116
|
+
return this.value;
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
var Ref = typeof WeakRef !== "undefined" ? WeakRef : StrongRef;
|
|
120
|
+
var UNTERMINATED = 0;
|
|
121
|
+
var TERMINATED = 1;
|
|
122
|
+
function createCacheNode() {
|
|
123
|
+
return {
|
|
124
|
+
s: UNTERMINATED,
|
|
125
|
+
v: void 0,
|
|
126
|
+
o: null,
|
|
127
|
+
p: null
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function weakMapMemoize(func, options = {}) {
|
|
131
|
+
let fnNode = createCacheNode();
|
|
132
|
+
const { resultEqualityCheck } = options;
|
|
133
|
+
let lastResult;
|
|
134
|
+
let resultsCount = 0;
|
|
135
|
+
function memoized() {
|
|
136
|
+
let cacheNode = fnNode;
|
|
137
|
+
const { length } = arguments;
|
|
138
|
+
for (let i = 0, l = length; i < l; i++) {
|
|
139
|
+
const arg = arguments[i];
|
|
140
|
+
if (typeof arg === "function" || typeof arg === "object" && arg !== null) {
|
|
141
|
+
let objectCache = cacheNode.o;
|
|
142
|
+
if (objectCache === null) {
|
|
143
|
+
cacheNode.o = objectCache = /* @__PURE__ */ new WeakMap();
|
|
144
|
+
}
|
|
145
|
+
const objectNode = objectCache.get(arg);
|
|
146
|
+
if (objectNode === void 0) {
|
|
147
|
+
cacheNode = createCacheNode();
|
|
148
|
+
objectCache.set(arg, cacheNode);
|
|
149
|
+
} else {
|
|
150
|
+
cacheNode = objectNode;
|
|
151
|
+
}
|
|
152
|
+
} else {
|
|
153
|
+
let primitiveCache = cacheNode.p;
|
|
154
|
+
if (primitiveCache === null) {
|
|
155
|
+
cacheNode.p = primitiveCache = /* @__PURE__ */ new Map();
|
|
156
|
+
}
|
|
157
|
+
const primitiveNode = primitiveCache.get(arg);
|
|
158
|
+
if (primitiveNode === void 0) {
|
|
159
|
+
cacheNode = createCacheNode();
|
|
160
|
+
primitiveCache.set(arg, cacheNode);
|
|
161
|
+
} else {
|
|
162
|
+
cacheNode = primitiveNode;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
const terminatedNode = cacheNode;
|
|
167
|
+
let result;
|
|
168
|
+
if (cacheNode.s === TERMINATED) {
|
|
169
|
+
result = cacheNode.v;
|
|
170
|
+
} else {
|
|
171
|
+
result = func.apply(null, arguments);
|
|
172
|
+
resultsCount++;
|
|
173
|
+
if (resultEqualityCheck) {
|
|
174
|
+
const lastResultValue = lastResult?.deref?.() ?? lastResult;
|
|
175
|
+
if (lastResultValue != null && resultEqualityCheck(lastResultValue, result)) {
|
|
176
|
+
result = lastResultValue;
|
|
177
|
+
resultsCount !== 0 && resultsCount--;
|
|
178
|
+
}
|
|
179
|
+
const needsWeakRef = typeof result === "object" && result !== null || typeof result === "function";
|
|
180
|
+
lastResult = needsWeakRef ? new Ref(result) : result;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
terminatedNode.s = TERMINATED;
|
|
184
|
+
terminatedNode.v = result;
|
|
185
|
+
return result;
|
|
186
|
+
}
|
|
187
|
+
memoized.clearCache = () => {
|
|
188
|
+
fnNode = createCacheNode();
|
|
189
|
+
memoized.resetResultsCount();
|
|
190
|
+
};
|
|
191
|
+
memoized.resultsCount = () => resultsCount;
|
|
192
|
+
memoized.resetResultsCount = () => {
|
|
193
|
+
resultsCount = 0;
|
|
194
|
+
};
|
|
195
|
+
return memoized;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// src/createSelectorCreator.ts
|
|
199
|
+
function createSelectorCreator(memoizeOrOptions, ...memoizeOptionsFromArgs) {
|
|
200
|
+
const createSelectorCreatorOptions = typeof memoizeOrOptions === "function" ? {
|
|
201
|
+
memoize: memoizeOrOptions,
|
|
202
|
+
memoizeOptions: memoizeOptionsFromArgs
|
|
203
|
+
} : memoizeOrOptions;
|
|
204
|
+
const createSelector2 = (...createSelectorArgs) => {
|
|
205
|
+
let recomputations = 0;
|
|
206
|
+
let dependencyRecomputations = 0;
|
|
207
|
+
let lastResult;
|
|
208
|
+
let directlyPassedOptions = {};
|
|
209
|
+
let resultFunc = createSelectorArgs.pop();
|
|
210
|
+
if (typeof resultFunc === "object") {
|
|
211
|
+
directlyPassedOptions = resultFunc;
|
|
212
|
+
resultFunc = createSelectorArgs.pop();
|
|
213
|
+
}
|
|
214
|
+
assertIsFunction(
|
|
215
|
+
resultFunc,
|
|
216
|
+
`createSelector expects an output function after the inputs, but received: [${typeof resultFunc}]`
|
|
217
|
+
);
|
|
218
|
+
const combinedOptions = {
|
|
219
|
+
...createSelectorCreatorOptions,
|
|
220
|
+
...directlyPassedOptions
|
|
221
|
+
};
|
|
222
|
+
const {
|
|
223
|
+
memoize,
|
|
224
|
+
memoizeOptions = [],
|
|
225
|
+
argsMemoize = weakMapMemoize,
|
|
226
|
+
argsMemoizeOptions = [],
|
|
227
|
+
devModeChecks = {}
|
|
228
|
+
} = combinedOptions;
|
|
229
|
+
const finalMemoizeOptions = ensureIsArray(memoizeOptions);
|
|
230
|
+
const finalArgsMemoizeOptions = ensureIsArray(argsMemoizeOptions);
|
|
231
|
+
const dependencies = getDependencies(createSelectorArgs);
|
|
232
|
+
const memoizedResultFunc = memoize(function recomputationWrapper() {
|
|
233
|
+
recomputations++;
|
|
234
|
+
return resultFunc.apply(
|
|
235
|
+
null,
|
|
236
|
+
arguments
|
|
237
|
+
);
|
|
238
|
+
}, ...finalMemoizeOptions);
|
|
239
|
+
let firstRun = true;
|
|
240
|
+
const selector = argsMemoize(function dependenciesChecker() {
|
|
241
|
+
dependencyRecomputations++;
|
|
242
|
+
const inputSelectorResults = collectInputSelectorResults(
|
|
243
|
+
dependencies,
|
|
244
|
+
arguments
|
|
245
|
+
);
|
|
246
|
+
lastResult = memoizedResultFunc.apply(null, inputSelectorResults);
|
|
247
|
+
if (process.env.NODE_ENV !== "production") {
|
|
248
|
+
const { identityFunctionCheck, inputStabilityCheck } = getDevModeChecksExecutionInfo(firstRun, devModeChecks);
|
|
249
|
+
if (identityFunctionCheck.shouldRun) {
|
|
250
|
+
identityFunctionCheck.run(
|
|
251
|
+
resultFunc,
|
|
252
|
+
inputSelectorResults,
|
|
253
|
+
lastResult
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
if (inputStabilityCheck.shouldRun) {
|
|
257
|
+
const inputSelectorResultsCopy = collectInputSelectorResults(
|
|
258
|
+
dependencies,
|
|
259
|
+
arguments
|
|
260
|
+
);
|
|
261
|
+
inputStabilityCheck.run(
|
|
262
|
+
{ inputSelectorResults, inputSelectorResultsCopy },
|
|
263
|
+
{ memoize, memoizeOptions: finalMemoizeOptions },
|
|
264
|
+
arguments
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
if (firstRun)
|
|
268
|
+
firstRun = false;
|
|
269
|
+
}
|
|
270
|
+
return lastResult;
|
|
271
|
+
}, ...finalArgsMemoizeOptions);
|
|
272
|
+
return Object.assign(selector, {
|
|
273
|
+
resultFunc,
|
|
274
|
+
memoizedResultFunc,
|
|
275
|
+
dependencies,
|
|
276
|
+
dependencyRecomputations: () => dependencyRecomputations,
|
|
277
|
+
resetDependencyRecomputations: () => {
|
|
278
|
+
dependencyRecomputations = 0;
|
|
279
|
+
},
|
|
280
|
+
lastResult: () => lastResult,
|
|
281
|
+
recomputations: () => recomputations,
|
|
282
|
+
resetRecomputations: () => {
|
|
283
|
+
recomputations = 0;
|
|
284
|
+
},
|
|
285
|
+
memoize,
|
|
286
|
+
argsMemoize
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
Object.assign(createSelector2, {
|
|
290
|
+
withTypes: () => createSelector2
|
|
291
|
+
});
|
|
292
|
+
return createSelector2;
|
|
293
|
+
}
|
|
294
|
+
var createSelector = /* @__PURE__ */ createSelectorCreator(weakMapMemoize);
|
|
295
|
+
|
|
296
|
+
// src/createStructuredSelector.ts
|
|
297
|
+
var createStructuredSelector = Object.assign(
|
|
298
|
+
(inputSelectorsObject, selectorCreator = createSelector) => {
|
|
299
|
+
assertIsObject(
|
|
300
|
+
inputSelectorsObject,
|
|
301
|
+
`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof inputSelectorsObject}`
|
|
302
|
+
);
|
|
303
|
+
const inputSelectorKeys = Object.keys(inputSelectorsObject);
|
|
304
|
+
const dependencies = inputSelectorKeys.map(
|
|
305
|
+
(key) => inputSelectorsObject[key]
|
|
306
|
+
);
|
|
307
|
+
const structuredSelector = selectorCreator(
|
|
308
|
+
dependencies,
|
|
309
|
+
(...inputSelectorResults) => {
|
|
310
|
+
return inputSelectorResults.reduce((composition, value, index) => {
|
|
311
|
+
composition[inputSelectorKeys[index]] = value;
|
|
312
|
+
return composition;
|
|
313
|
+
}, {});
|
|
314
|
+
}
|
|
315
|
+
);
|
|
316
|
+
return structuredSelector;
|
|
317
|
+
},
|
|
318
|
+
{ withTypes: () => createStructuredSelector }
|
|
319
|
+
);
|
|
320
|
+
|
|
321
|
+
export { createSelector, createSelectorCreator, createStructuredSelector, weakMapMemoize };
|
|
322
|
+
//# sourceMappingURL=reselect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reselect.js","sources":["../../../../node_modules/reselect/dist/reselect.mjs"],"sourcesContent":["// src/devModeChecks/identityFunctionCheck.ts\nvar runIdentityFunctionCheck = (resultFunc, inputSelectorsResults, outputSelectorResult) => {\n if (inputSelectorsResults.length === 1 && inputSelectorsResults[0] === outputSelectorResult) {\n let isInputSameAsOutput = false;\n try {\n const emptyObject = {};\n if (resultFunc(emptyObject) === emptyObject)\n isInputSameAsOutput = true;\n } catch {\n }\n if (isInputSameAsOutput) {\n let stack = void 0;\n try {\n throw new Error();\n } catch (e) {\n ;\n ({ stack } = e);\n }\n console.warn(\n \"The result function returned its own inputs without modification. e.g\\n`createSelector([state => state.todos], todos => todos)`\\nThis could lead to inefficient memoization and unnecessary re-renders.\\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.\",\n { stack }\n );\n }\n }\n};\n\n// src/devModeChecks/inputStabilityCheck.ts\nvar runInputStabilityCheck = (inputSelectorResultsObject, options, inputSelectorArgs) => {\n const { memoize, memoizeOptions } = options;\n const { inputSelectorResults, inputSelectorResultsCopy } = inputSelectorResultsObject;\n const createAnEmptyObject = memoize(() => ({}), ...memoizeOptions);\n const areInputSelectorResultsEqual = createAnEmptyObject.apply(null, inputSelectorResults) === createAnEmptyObject.apply(null, inputSelectorResultsCopy);\n if (!areInputSelectorResultsEqual) {\n let stack = void 0;\n try {\n throw new Error();\n } catch (e) {\n ;\n ({ stack } = e);\n }\n console.warn(\n \"An input selector returned a different result when passed same arguments.\\nThis means your output selector will likely run more frequently than intended.\\nAvoid returning a new reference inside your input selector, e.g.\\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`\",\n {\n arguments: inputSelectorArgs,\n firstInputs: inputSelectorResults,\n secondInputs: inputSelectorResultsCopy,\n stack\n }\n );\n }\n};\n\n// src/devModeChecks/setGlobalDevModeChecks.ts\nvar globalDevModeChecks = {\n inputStabilityCheck: \"once\",\n identityFunctionCheck: \"once\"\n};\nvar setGlobalDevModeChecks = (devModeChecks) => {\n Object.assign(globalDevModeChecks, devModeChecks);\n};\n\n// src/utils.ts\nvar NOT_FOUND = /* @__PURE__ */ Symbol(\"NOT_FOUND\");\nfunction assertIsFunction(func, errorMessage = `expected a function, instead received ${typeof func}`) {\n if (typeof func !== \"function\") {\n throw new TypeError(errorMessage);\n }\n}\nfunction assertIsObject(object, errorMessage = `expected an object, instead received ${typeof object}`) {\n if (typeof object !== \"object\") {\n throw new TypeError(errorMessage);\n }\n}\nfunction assertIsArrayOfFunctions(array, errorMessage = `expected all items to be functions, instead received the following types: `) {\n if (!array.every((item) => typeof item === \"function\")) {\n const itemTypes = array.map(\n (item) => typeof item === \"function\" ? `function ${item.name || \"unnamed\"}()` : typeof item\n ).join(\", \");\n throw new TypeError(`${errorMessage}[${itemTypes}]`);\n }\n}\nvar ensureIsArray = (item) => {\n return Array.isArray(item) ? item : [item];\n};\nfunction getDependencies(createSelectorArgs) {\n const dependencies = Array.isArray(createSelectorArgs[0]) ? createSelectorArgs[0] : createSelectorArgs;\n assertIsArrayOfFunctions(\n dependencies,\n `createSelector expects all input-selectors to be functions, but received the following types: `\n );\n return dependencies;\n}\nfunction collectInputSelectorResults(dependencies, inputSelectorArgs) {\n const inputSelectorResults = [];\n const { length } = dependencies;\n for (let i = 0; i < length; i++) {\n inputSelectorResults.push(dependencies[i].apply(null, inputSelectorArgs));\n }\n return inputSelectorResults;\n}\nvar getDevModeChecksExecutionInfo = (firstRun, devModeChecks) => {\n const { identityFunctionCheck, inputStabilityCheck } = {\n ...globalDevModeChecks,\n ...devModeChecks\n };\n return {\n identityFunctionCheck: {\n shouldRun: identityFunctionCheck === \"always\" || identityFunctionCheck === \"once\" && firstRun,\n run: runIdentityFunctionCheck\n },\n inputStabilityCheck: {\n shouldRun: inputStabilityCheck === \"always\" || inputStabilityCheck === \"once\" && firstRun,\n run: runInputStabilityCheck\n }\n };\n};\n\n// src/autotrackMemoize/autotracking.ts\nvar $REVISION = 0;\nvar CURRENT_TRACKER = null;\nvar Cell = class {\n revision = $REVISION;\n _value;\n _lastValue;\n _isEqual = tripleEq;\n constructor(initialValue, isEqual = tripleEq) {\n this._value = this._lastValue = initialValue;\n this._isEqual = isEqual;\n }\n // Whenever a storage value is read, it'll add itself to the current tracker if\n // one exists, entangling its state with that cache.\n get value() {\n CURRENT_TRACKER?.add(this);\n return this._value;\n }\n // Whenever a storage value is updated, we bump the global revision clock,\n // assign the revision for this storage to the new value, _and_ we schedule a\n // rerender. This is important, and it's what makes autotracking _pull_\n // based. We don't actively tell the caches which depend on the storage that\n // anything has happened. Instead, we recompute the caches when needed.\n set value(newValue) {\n if (this.value === newValue)\n return;\n this._value = newValue;\n this.revision = ++$REVISION;\n }\n};\nfunction tripleEq(a, b) {\n return a === b;\n}\nvar TrackingCache = class {\n _cachedValue;\n _cachedRevision = -1;\n _deps = [];\n hits = 0;\n fn;\n constructor(fn) {\n this.fn = fn;\n }\n clear() {\n this._cachedValue = void 0;\n this._cachedRevision = -1;\n this._deps = [];\n this.hits = 0;\n }\n get value() {\n if (this.revision > this._cachedRevision) {\n const { fn } = this;\n const currentTracker = /* @__PURE__ */ new Set();\n const prevTracker = CURRENT_TRACKER;\n CURRENT_TRACKER = currentTracker;\n this._cachedValue = fn();\n CURRENT_TRACKER = prevTracker;\n this.hits++;\n this._deps = Array.from(currentTracker);\n this._cachedRevision = this.revision;\n }\n CURRENT_TRACKER?.add(this);\n return this._cachedValue;\n }\n get revision() {\n return Math.max(...this._deps.map((d) => d.revision), 0);\n }\n};\nfunction getValue(cell) {\n if (!(cell instanceof Cell)) {\n console.warn(\"Not a valid cell! \", cell);\n }\n return cell.value;\n}\nfunction setValue(storage, value) {\n if (!(storage instanceof Cell)) {\n throw new TypeError(\n \"setValue must be passed a tracked store created with `createStorage`.\"\n );\n }\n storage.value = storage._lastValue = value;\n}\nfunction createCell(initialValue, isEqual = tripleEq) {\n return new Cell(initialValue, isEqual);\n}\nfunction createCache(fn) {\n assertIsFunction(\n fn,\n \"the first parameter to `createCache` must be a function\"\n );\n return new TrackingCache(fn);\n}\n\n// src/autotrackMemoize/tracking.ts\nvar neverEq = (a, b) => false;\nfunction createTag() {\n return createCell(null, neverEq);\n}\nfunction dirtyTag(tag, value) {\n setValue(tag, value);\n}\nvar consumeCollection = (node) => {\n let tag = node.collectionTag;\n if (tag === null) {\n tag = node.collectionTag = createTag();\n }\n getValue(tag);\n};\nvar dirtyCollection = (node) => {\n const tag = node.collectionTag;\n if (tag !== null) {\n dirtyTag(tag, null);\n }\n};\n\n// src/autotrackMemoize/proxy.ts\nvar REDUX_PROXY_LABEL = Symbol();\nvar nextId = 0;\nvar proto = Object.getPrototypeOf({});\nvar ObjectTreeNode = class {\n constructor(value) {\n this.value = value;\n this.value = value;\n this.tag.value = value;\n }\n proxy = new Proxy(this, objectProxyHandler);\n tag = createTag();\n tags = {};\n children = {};\n collectionTag = null;\n id = nextId++;\n};\nvar objectProxyHandler = {\n get(node, key) {\n function calculateResult() {\n const { value } = node;\n const childValue = Reflect.get(value, key);\n if (typeof key === \"symbol\") {\n return childValue;\n }\n if (key in proto) {\n return childValue;\n }\n if (typeof childValue === \"object\" && childValue !== null) {\n let childNode = node.children[key];\n if (childNode === void 0) {\n childNode = node.children[key] = createNode(childValue);\n }\n if (childNode.tag) {\n getValue(childNode.tag);\n }\n return childNode.proxy;\n } else {\n let tag = node.tags[key];\n if (tag === void 0) {\n tag = node.tags[key] = createTag();\n tag.value = childValue;\n }\n getValue(tag);\n return childValue;\n }\n }\n const res = calculateResult();\n return res;\n },\n ownKeys(node) {\n consumeCollection(node);\n return Reflect.ownKeys(node.value);\n },\n getOwnPropertyDescriptor(node, prop) {\n return Reflect.getOwnPropertyDescriptor(node.value, prop);\n },\n has(node, prop) {\n return Reflect.has(node.value, prop);\n }\n};\nvar ArrayTreeNode = class {\n constructor(value) {\n this.value = value;\n this.value = value;\n this.tag.value = value;\n }\n proxy = new Proxy([this], arrayProxyHandler);\n tag = createTag();\n tags = {};\n children = {};\n collectionTag = null;\n id = nextId++;\n};\nvar arrayProxyHandler = {\n get([node], key) {\n if (key === \"length\") {\n consumeCollection(node);\n }\n return objectProxyHandler.get(node, key);\n },\n ownKeys([node]) {\n return objectProxyHandler.ownKeys(node);\n },\n getOwnPropertyDescriptor([node], prop) {\n return objectProxyHandler.getOwnPropertyDescriptor(node, prop);\n },\n has([node], prop) {\n return objectProxyHandler.has(node, prop);\n }\n};\nfunction createNode(value) {\n if (Array.isArray(value)) {\n return new ArrayTreeNode(value);\n }\n return new ObjectTreeNode(value);\n}\nfunction updateNode(node, newValue) {\n const { value, tags, children } = node;\n node.value = newValue;\n if (Array.isArray(value) && Array.isArray(newValue) && value.length !== newValue.length) {\n dirtyCollection(node);\n } else {\n if (value !== newValue) {\n let oldKeysSize = 0;\n let newKeysSize = 0;\n let anyKeysAdded = false;\n for (const _key in value) {\n oldKeysSize++;\n }\n for (const key in newValue) {\n newKeysSize++;\n if (!(key in value)) {\n anyKeysAdded = true;\n break;\n }\n }\n const isDifferent = anyKeysAdded || oldKeysSize !== newKeysSize;\n if (isDifferent) {\n dirtyCollection(node);\n }\n }\n }\n for (const key in tags) {\n const childValue = value[key];\n const newChildValue = newValue[key];\n if (childValue !== newChildValue) {\n dirtyCollection(node);\n dirtyTag(tags[key], newChildValue);\n }\n if (typeof newChildValue === \"object\" && newChildValue !== null) {\n delete tags[key];\n }\n }\n for (const key in children) {\n const childNode = children[key];\n const newChildValue = newValue[key];\n const childValue = childNode.value;\n if (childValue === newChildValue) {\n continue;\n } else if (typeof newChildValue === \"object\" && newChildValue !== null) {\n updateNode(childNode, newChildValue);\n } else {\n deleteNode(childNode);\n delete children[key];\n }\n }\n}\nfunction deleteNode(node) {\n if (node.tag) {\n dirtyTag(node.tag, null);\n }\n dirtyCollection(node);\n for (const key in node.tags) {\n dirtyTag(node.tags[key], null);\n }\n for (const key in node.children) {\n deleteNode(node.children[key]);\n }\n}\n\n// src/lruMemoize.ts\nfunction createSingletonCache(equals) {\n let entry;\n return {\n get(key) {\n if (entry && equals(entry.key, key)) {\n return entry.value;\n }\n return NOT_FOUND;\n },\n put(key, value) {\n entry = { key, value };\n },\n getEntries() {\n return entry ? [entry] : [];\n },\n clear() {\n entry = void 0;\n }\n };\n}\nfunction createLruCache(maxSize, equals) {\n let entries = [];\n function get(key) {\n const cacheIndex = entries.findIndex((entry) => equals(key, entry.key));\n if (cacheIndex > -1) {\n const entry = entries[cacheIndex];\n if (cacheIndex > 0) {\n entries.splice(cacheIndex, 1);\n entries.unshift(entry);\n }\n return entry.value;\n }\n return NOT_FOUND;\n }\n function put(key, value) {\n if (get(key) === NOT_FOUND) {\n entries.unshift({ key, value });\n if (entries.length > maxSize) {\n entries.pop();\n }\n }\n }\n function getEntries() {\n return entries;\n }\n function clear() {\n entries = [];\n }\n return { get, put, getEntries, clear };\n}\nvar referenceEqualityCheck = (a, b) => a === b;\nfunction createCacheKeyComparator(equalityCheck) {\n return function areArgumentsShallowlyEqual(prev, next) {\n if (prev === null || next === null || prev.length !== next.length) {\n return false;\n }\n const { length } = prev;\n for (let i = 0; i < length; i++) {\n if (!equalityCheck(prev[i], next[i])) {\n return false;\n }\n }\n return true;\n };\n}\nfunction lruMemoize(func, equalityCheckOrOptions) {\n const providedOptions = typeof equalityCheckOrOptions === \"object\" ? equalityCheckOrOptions : { equalityCheck: equalityCheckOrOptions };\n const {\n equalityCheck = referenceEqualityCheck,\n maxSize = 1,\n resultEqualityCheck\n } = providedOptions;\n const comparator = createCacheKeyComparator(equalityCheck);\n let resultsCount = 0;\n const cache = maxSize <= 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator);\n function memoized() {\n let value = cache.get(arguments);\n if (value === NOT_FOUND) {\n value = func.apply(null, arguments);\n resultsCount++;\n if (resultEqualityCheck) {\n const entries = cache.getEntries();\n const matchingEntry = entries.find(\n (entry) => resultEqualityCheck(entry.value, value)\n );\n if (matchingEntry) {\n value = matchingEntry.value;\n resultsCount !== 0 && resultsCount--;\n }\n }\n cache.put(arguments, value);\n }\n return value;\n }\n memoized.clearCache = () => {\n cache.clear();\n memoized.resetResultsCount();\n };\n memoized.resultsCount = () => resultsCount;\n memoized.resetResultsCount = () => {\n resultsCount = 0;\n };\n return memoized;\n}\n\n// src/autotrackMemoize/autotrackMemoize.ts\nfunction autotrackMemoize(func) {\n const node = createNode(\n []\n );\n let lastArgs = null;\n const shallowEqual = createCacheKeyComparator(referenceEqualityCheck);\n const cache = createCache(() => {\n const res = func.apply(null, node.proxy);\n return res;\n });\n function memoized() {\n if (!shallowEqual(lastArgs, arguments)) {\n updateNode(node, arguments);\n lastArgs = arguments;\n }\n return cache.value;\n }\n memoized.clearCache = () => {\n return cache.clear();\n };\n return memoized;\n}\n\n// src/weakMapMemoize.ts\nvar StrongRef = class {\n constructor(value) {\n this.value = value;\n }\n deref() {\n return this.value;\n }\n};\nvar Ref = typeof WeakRef !== \"undefined\" ? WeakRef : StrongRef;\nvar UNTERMINATED = 0;\nvar TERMINATED = 1;\nfunction createCacheNode() {\n return {\n s: UNTERMINATED,\n v: void 0,\n o: null,\n p: null\n };\n}\nfunction weakMapMemoize(func, options = {}) {\n let fnNode = createCacheNode();\n const { resultEqualityCheck } = options;\n let lastResult;\n let resultsCount = 0;\n function memoized() {\n let cacheNode = fnNode;\n const { length } = arguments;\n for (let i = 0, l = length; i < l; i++) {\n const arg = arguments[i];\n if (typeof arg === \"function\" || typeof arg === \"object\" && arg !== null) {\n let objectCache = cacheNode.o;\n if (objectCache === null) {\n cacheNode.o = objectCache = /* @__PURE__ */ new WeakMap();\n }\n const objectNode = objectCache.get(arg);\n if (objectNode === void 0) {\n cacheNode = createCacheNode();\n objectCache.set(arg, cacheNode);\n } else {\n cacheNode = objectNode;\n }\n } else {\n let primitiveCache = cacheNode.p;\n if (primitiveCache === null) {\n cacheNode.p = primitiveCache = /* @__PURE__ */ new Map();\n }\n const primitiveNode = primitiveCache.get(arg);\n if (primitiveNode === void 0) {\n cacheNode = createCacheNode();\n primitiveCache.set(arg, cacheNode);\n } else {\n cacheNode = primitiveNode;\n }\n }\n }\n const terminatedNode = cacheNode;\n let result;\n if (cacheNode.s === TERMINATED) {\n result = cacheNode.v;\n } else {\n result = func.apply(null, arguments);\n resultsCount++;\n if (resultEqualityCheck) {\n const lastResultValue = lastResult?.deref?.() ?? lastResult;\n if (lastResultValue != null && resultEqualityCheck(lastResultValue, result)) {\n result = lastResultValue;\n resultsCount !== 0 && resultsCount--;\n }\n const needsWeakRef = typeof result === \"object\" && result !== null || typeof result === \"function\";\n lastResult = needsWeakRef ? new Ref(result) : result;\n }\n }\n terminatedNode.s = TERMINATED;\n terminatedNode.v = result;\n return result;\n }\n memoized.clearCache = () => {\n fnNode = createCacheNode();\n memoized.resetResultsCount();\n };\n memoized.resultsCount = () => resultsCount;\n memoized.resetResultsCount = () => {\n resultsCount = 0;\n };\n return memoized;\n}\n\n// src/createSelectorCreator.ts\nfunction createSelectorCreator(memoizeOrOptions, ...memoizeOptionsFromArgs) {\n const createSelectorCreatorOptions = typeof memoizeOrOptions === \"function\" ? {\n memoize: memoizeOrOptions,\n memoizeOptions: memoizeOptionsFromArgs\n } : memoizeOrOptions;\n const createSelector2 = (...createSelectorArgs) => {\n let recomputations = 0;\n let dependencyRecomputations = 0;\n let lastResult;\n let directlyPassedOptions = {};\n let resultFunc = createSelectorArgs.pop();\n if (typeof resultFunc === \"object\") {\n directlyPassedOptions = resultFunc;\n resultFunc = createSelectorArgs.pop();\n }\n assertIsFunction(\n resultFunc,\n `createSelector expects an output function after the inputs, but received: [${typeof resultFunc}]`\n );\n const combinedOptions = {\n ...createSelectorCreatorOptions,\n ...directlyPassedOptions\n };\n const {\n memoize,\n memoizeOptions = [],\n argsMemoize = weakMapMemoize,\n argsMemoizeOptions = [],\n devModeChecks = {}\n } = combinedOptions;\n const finalMemoizeOptions = ensureIsArray(memoizeOptions);\n const finalArgsMemoizeOptions = ensureIsArray(argsMemoizeOptions);\n const dependencies = getDependencies(createSelectorArgs);\n const memoizedResultFunc = memoize(function recomputationWrapper() {\n recomputations++;\n return resultFunc.apply(\n null,\n arguments\n );\n }, ...finalMemoizeOptions);\n let firstRun = true;\n const selector = argsMemoize(function dependenciesChecker() {\n dependencyRecomputations++;\n const inputSelectorResults = collectInputSelectorResults(\n dependencies,\n arguments\n );\n lastResult = memoizedResultFunc.apply(null, inputSelectorResults);\n if (process.env.NODE_ENV !== \"production\") {\n const { identityFunctionCheck, inputStabilityCheck } = getDevModeChecksExecutionInfo(firstRun, devModeChecks);\n if (identityFunctionCheck.shouldRun) {\n identityFunctionCheck.run(\n resultFunc,\n inputSelectorResults,\n lastResult\n );\n }\n if (inputStabilityCheck.shouldRun) {\n const inputSelectorResultsCopy = collectInputSelectorResults(\n dependencies,\n arguments\n );\n inputStabilityCheck.run(\n { inputSelectorResults, inputSelectorResultsCopy },\n { memoize, memoizeOptions: finalMemoizeOptions },\n arguments\n );\n }\n if (firstRun)\n firstRun = false;\n }\n return lastResult;\n }, ...finalArgsMemoizeOptions);\n return Object.assign(selector, {\n resultFunc,\n memoizedResultFunc,\n dependencies,\n dependencyRecomputations: () => dependencyRecomputations,\n resetDependencyRecomputations: () => {\n dependencyRecomputations = 0;\n },\n lastResult: () => lastResult,\n recomputations: () => recomputations,\n resetRecomputations: () => {\n recomputations = 0;\n },\n memoize,\n argsMemoize\n });\n };\n Object.assign(createSelector2, {\n withTypes: () => createSelector2\n });\n return createSelector2;\n}\nvar createSelector = /* @__PURE__ */ createSelectorCreator(weakMapMemoize);\n\n// src/createStructuredSelector.ts\nvar createStructuredSelector = Object.assign(\n (inputSelectorsObject, selectorCreator = createSelector) => {\n assertIsObject(\n inputSelectorsObject,\n `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof inputSelectorsObject}`\n );\n const inputSelectorKeys = Object.keys(inputSelectorsObject);\n const dependencies = inputSelectorKeys.map(\n (key) => inputSelectorsObject[key]\n );\n const structuredSelector = selectorCreator(\n dependencies,\n (...inputSelectorResults) => {\n return inputSelectorResults.reduce((composition, value, index) => {\n composition[inputSelectorKeys[index]] = value;\n return composition;\n }, {});\n }\n );\n return structuredSelector;\n },\n { withTypes: () => createStructuredSelector }\n);\nexport {\n createSelector,\n createSelectorCreator,\n createStructuredSelector,\n lruMemoize,\n referenceEqualityCheck,\n setGlobalDevModeChecks,\n autotrackMemoize as unstable_autotrackMemoize,\n weakMapMemoize\n};\n//# sourceMappingURL=reselect.mjs.map"],"names":[],"mappings":"AAAA;AACA,IAAI,wBAAwB,GAAG,CAAC,UAAU,EAAE,qBAAqB,EAAE,oBAAoB,KAAK;AAC5F,EAAE,IAAI,qBAAqB,CAAC,MAAM,KAAK,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,KAAK,oBAAoB,EAAE;AAC/F,IAAI,IAAI,mBAAmB,GAAG,KAAK;AACnC,IAAI,IAAI;AACR,MAAM,MAAM,WAAW,GAAG,EAAE;AAC5B,MAAM,IAAI,UAAU,CAAC,WAAW,CAAC,KAAK,WAAW;AACjD,QAAQ,mBAAmB,GAAG,IAAI;AAClC,IAAI,CAAC,CAAC,MAAM;AACZ,IAAI;AACJ,IAAI,IAAI,mBAAmB,EAAE;AAC7B,MAAM,IAAI,KAAK,GAAG,MAAM;AACxB,MAAM,IAAI;AACV,QAAQ,MAAM,IAAI,KAAK,EAAE;AACzB,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE;AAElB,QAAQ,CAAC,EAA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,MAAM,oBAAoB;AAC1B,MAAM,CAAC,sHAAsH,EAAE,OAAO,oBAAoB,CAAC;AAC3J,KAAK;AACL,IAAI,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC;AAC/D,IAAI,MAAM,YAAY,GAAG,iBAAiB,CAAC,GAAG;AAC9C,MAAM,CAAC,GAAG,KAAK,oBAAoB,CAAC,GAAG;AACvC,KAAK;AACL,IAAI,MAAM,kBAAkB,GAAG,eAAe;AAC9C,MAAM,YAAY;AAClB,MAAM,CAAC,GAAG,oBAAoB,KAAK;AACnC,QAAQ,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,KAAK;AAC1E,UAAU,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK;AACvD,UAAU,OAAO,WAAW;AAC5B,QAAQ,CAAC,EAAE,EAAE,CAAC;AACd,MAAM;AACN,KAAK;AACL,IAAI,OAAO,kBAAkB;AAC7B,EAAE,CAAC;AACH,EAAE,EAAE,SAAS,EAAE,MAAM,wBAAwB;AAC7C;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/server-only/index.js"],"sourcesContent":["throw new Error(\n \"This module cannot be imported from a Client Component module. \" +\n \"It should only be used from a Server Component.\"\n);\n"],"names":[],"mappings":"AAAA,MAAM,IAAI,KAAK;AACf,EAAE,iEAAiE;AACnE,IAAI;AACJ,CAAC","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { __exports as useSyncExternalStoreWithSelector_development } from '../../../_virtual/use-sync-external-store-with-selector.development.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-with-selector.development.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
var hasRequiredUseSyncExternalStoreWithSelector_development;
|
|
15
|
+
|
|
16
|
+
function requireUseSyncExternalStoreWithSelector_development () {
|
|
17
|
+
if (hasRequiredUseSyncExternalStoreWithSelector_development) return useSyncExternalStoreWithSelector_development;
|
|
18
|
+
hasRequiredUseSyncExternalStoreWithSelector_development = 1;
|
|
19
|
+
"production" !== process.env.NODE_ENV &&
|
|
20
|
+
(function () {
|
|
21
|
+
function is(x, y) {
|
|
22
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
23
|
+
}
|
|
24
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
25
|
+
"function" ===
|
|
26
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
27
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
28
|
+
var React = React__default,
|
|
29
|
+
objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
30
|
+
useSyncExternalStore = React.useSyncExternalStore,
|
|
31
|
+
useRef = React.useRef,
|
|
32
|
+
useEffect = React.useEffect,
|
|
33
|
+
useMemo = React.useMemo,
|
|
34
|
+
useDebugValue = React.useDebugValue;
|
|
35
|
+
useSyncExternalStoreWithSelector_development.useSyncExternalStoreWithSelector = function (
|
|
36
|
+
subscribe,
|
|
37
|
+
getSnapshot,
|
|
38
|
+
getServerSnapshot,
|
|
39
|
+
selector,
|
|
40
|
+
isEqual
|
|
41
|
+
) {
|
|
42
|
+
var instRef = useRef(null);
|
|
43
|
+
if (null === instRef.current) {
|
|
44
|
+
var inst = { hasValue: false, value: null };
|
|
45
|
+
instRef.current = inst;
|
|
46
|
+
} else inst = instRef.current;
|
|
47
|
+
instRef = useMemo(
|
|
48
|
+
function () {
|
|
49
|
+
function memoizedSelector(nextSnapshot) {
|
|
50
|
+
if (!hasMemo) {
|
|
51
|
+
hasMemo = true;
|
|
52
|
+
memoizedSnapshot = nextSnapshot;
|
|
53
|
+
nextSnapshot = selector(nextSnapshot);
|
|
54
|
+
if (void 0 !== isEqual && inst.hasValue) {
|
|
55
|
+
var currentSelection = inst.value;
|
|
56
|
+
if (isEqual(currentSelection, nextSnapshot))
|
|
57
|
+
return (memoizedSelection = currentSelection);
|
|
58
|
+
}
|
|
59
|
+
return (memoizedSelection = nextSnapshot);
|
|
60
|
+
}
|
|
61
|
+
currentSelection = memoizedSelection;
|
|
62
|
+
if (objectIs(memoizedSnapshot, nextSnapshot))
|
|
63
|
+
return currentSelection;
|
|
64
|
+
var nextSelection = selector(nextSnapshot);
|
|
65
|
+
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
|
66
|
+
return (memoizedSnapshot = nextSnapshot), currentSelection;
|
|
67
|
+
memoizedSnapshot = nextSnapshot;
|
|
68
|
+
return (memoizedSelection = nextSelection);
|
|
69
|
+
}
|
|
70
|
+
var hasMemo = false,
|
|
71
|
+
memoizedSnapshot,
|
|
72
|
+
memoizedSelection,
|
|
73
|
+
maybeGetServerSnapshot =
|
|
74
|
+
void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
75
|
+
return [
|
|
76
|
+
function () {
|
|
77
|
+
return memoizedSelector(getSnapshot());
|
|
78
|
+
},
|
|
79
|
+
null === maybeGetServerSnapshot
|
|
80
|
+
? void 0
|
|
81
|
+
: function () {
|
|
82
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
},
|
|
86
|
+
[getSnapshot, getServerSnapshot, selector, isEqual]
|
|
87
|
+
);
|
|
88
|
+
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
89
|
+
useEffect(
|
|
90
|
+
function () {
|
|
91
|
+
inst.hasValue = true;
|
|
92
|
+
inst.value = value;
|
|
93
|
+
},
|
|
94
|
+
[value]
|
|
95
|
+
);
|
|
96
|
+
useDebugValue(value);
|
|
97
|
+
return value;
|
|
98
|
+
};
|
|
99
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
100
|
+
"function" ===
|
|
101
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
102
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
103
|
+
})();
|
|
104
|
+
return useSyncExternalStoreWithSelector_development;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export { requireUseSyncExternalStoreWithSelector_development as __require };
|
|
108
|
+
//# sourceMappingURL=use-sync-external-store-with-selector.development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-external-store-with-selector.development.js","sources":["../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-with-selector.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = React.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":["require$$0"],"mappings":";;;;;;;;;;;;;;;;;;AAWA,CAAA,YAAY,KAAK,OAAO,CAAC,GAAG,CAAC,QAAQ;AACrC,GAAE,CAAC,YAAY;AACf,KAAI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M,IAAI,KAAK,GAAG,oBAAoB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACzE,OAAM,SAAS;AACf,SAAQ,YAAY;AACpB,WAAU,IAAI,CAAC,QAAQ,GAAG,IAAE;AAC5B,WAAU,IAAI,CAAC,KAAK,GAAG,KAAK;SAC5B,CAAS;AACT,SAAQ,CAAC,KAAK;QACP;OACD,aAAa,CAAC,KAAK,CAAC;AAC1B,OAAM,OAAO,KAAK;KAClB,CAAK;KACD,WAAW,KAAK,OAAO,8BAA8B;AACzD,OAAM,UAAU;SACR,OAAO,8BAA8B,CAAC,0BAA0B;AACxE,OAAM,8BAA8B,CAAC,0BAA0B,CAAC,KAAK,EAAE,CAAC;AACxE,GAAA,CAAG,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { __exports as useSyncExternalStoreWithSelector_production } from '../../../_virtual/use-sync-external-store-with-selector.production.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-with-selector.production.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
var hasRequiredUseSyncExternalStoreWithSelector_production;
|
|
15
|
+
|
|
16
|
+
function requireUseSyncExternalStoreWithSelector_production () {
|
|
17
|
+
if (hasRequiredUseSyncExternalStoreWithSelector_production) return useSyncExternalStoreWithSelector_production;
|
|
18
|
+
hasRequiredUseSyncExternalStoreWithSelector_production = 1;
|
|
19
|
+
var React = React__default;
|
|
20
|
+
function is(x, y) {
|
|
21
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
22
|
+
}
|
|
23
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
24
|
+
useSyncExternalStore = React.useSyncExternalStore,
|
|
25
|
+
useRef = React.useRef,
|
|
26
|
+
useEffect = React.useEffect,
|
|
27
|
+
useMemo = React.useMemo,
|
|
28
|
+
useDebugValue = React.useDebugValue;
|
|
29
|
+
useSyncExternalStoreWithSelector_production.useSyncExternalStoreWithSelector = function (
|
|
30
|
+
subscribe,
|
|
31
|
+
getSnapshot,
|
|
32
|
+
getServerSnapshot,
|
|
33
|
+
selector,
|
|
34
|
+
isEqual
|
|
35
|
+
) {
|
|
36
|
+
var instRef = useRef(null);
|
|
37
|
+
if (null === instRef.current) {
|
|
38
|
+
var inst = { hasValue: false, value: null };
|
|
39
|
+
instRef.current = inst;
|
|
40
|
+
} else inst = instRef.current;
|
|
41
|
+
instRef = useMemo(
|
|
42
|
+
function () {
|
|
43
|
+
function memoizedSelector(nextSnapshot) {
|
|
44
|
+
if (!hasMemo) {
|
|
45
|
+
hasMemo = true;
|
|
46
|
+
memoizedSnapshot = nextSnapshot;
|
|
47
|
+
nextSnapshot = selector(nextSnapshot);
|
|
48
|
+
if (void 0 !== isEqual && inst.hasValue) {
|
|
49
|
+
var currentSelection = inst.value;
|
|
50
|
+
if (isEqual(currentSelection, nextSnapshot))
|
|
51
|
+
return (memoizedSelection = currentSelection);
|
|
52
|
+
}
|
|
53
|
+
return (memoizedSelection = nextSnapshot);
|
|
54
|
+
}
|
|
55
|
+
currentSelection = memoizedSelection;
|
|
56
|
+
if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
|
|
57
|
+
var nextSelection = selector(nextSnapshot);
|
|
58
|
+
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
|
59
|
+
return (memoizedSnapshot = nextSnapshot), currentSelection;
|
|
60
|
+
memoizedSnapshot = nextSnapshot;
|
|
61
|
+
return (memoizedSelection = nextSelection);
|
|
62
|
+
}
|
|
63
|
+
var hasMemo = false,
|
|
64
|
+
memoizedSnapshot,
|
|
65
|
+
memoizedSelection,
|
|
66
|
+
maybeGetServerSnapshot =
|
|
67
|
+
void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
68
|
+
return [
|
|
69
|
+
function () {
|
|
70
|
+
return memoizedSelector(getSnapshot());
|
|
71
|
+
},
|
|
72
|
+
null === maybeGetServerSnapshot
|
|
73
|
+
? void 0
|
|
74
|
+
: function () {
|
|
75
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
},
|
|
79
|
+
[getSnapshot, getServerSnapshot, selector, isEqual]
|
|
80
|
+
);
|
|
81
|
+
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
82
|
+
useEffect(
|
|
83
|
+
function () {
|
|
84
|
+
inst.hasValue = true;
|
|
85
|
+
inst.value = value;
|
|
86
|
+
},
|
|
87
|
+
[value]
|
|
88
|
+
);
|
|
89
|
+
useDebugValue(value);
|
|
90
|
+
return value;
|
|
91
|
+
};
|
|
92
|
+
return useSyncExternalStoreWithSelector_production;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { requireUseSyncExternalStoreWithSelector_production as __require };
|
|
96
|
+
//# sourceMappingURL=use-sync-external-store-with-selector.production.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-external-store-with-selector.production.js","sources":["../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-with-selector.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = React.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\nexports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n};\n"],"names":["require$$0"],"mappings":";;;;;;;;;;;;;;;;;;CAWA,IAAI,KAAK,GAAGA,cAAgB;AAC5B,CAAA,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE;GAChB,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG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,GAAE,OAAO,KAAK;CACd,CAAC;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __module as withSelector } from '../../_virtual/with-selector.js';
|
|
2
|
+
import { __require as requireUseSyncExternalStoreWithSelector_production } from './cjs/use-sync-external-store-with-selector.production.js';
|
|
3
|
+
import { __require as requireUseSyncExternalStoreWithSelector_development } from './cjs/use-sync-external-store-with-selector.development.js';
|
|
4
|
+
|
|
5
|
+
if (process.env.NODE_ENV === 'production') {
|
|
6
|
+
withSelector.exports = requireUseSyncExternalStoreWithSelector_production();
|
|
7
|
+
} else {
|
|
8
|
+
withSelector.exports = requireUseSyncExternalStoreWithSelector_development();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
var withSelectorExports = withSelector.exports;
|
|
12
|
+
|
|
13
|
+
export { withSelectorExports as w };
|
|
14
|
+
//# sourceMappingURL=with-selector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-selector.js","sources":["../../../node_modules/use-sync-external-store/with-selector.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/use-sync-external-store-with-selector.production.js');\n} else {\n module.exports = require('./cjs/use-sync-external-store-with-selector.development.js');\n}\n"],"names":["withSelectorModule","require$$0","require$$1"],"mappings":";;;;AAEA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;AAC3C,EAAEA,YAAA,CAAA,OAAc,GAAGC,kDAAA,EAAoE;AACvF,CAAC,MAAM;AACP,EAAED,YAAA,CAAA,OAAc,GAAGE,mDAAA,EAAqE;AACxF;;;;;;","x_google_ignoreList":[0]}
|