mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-10 03:18:14 +08:00
1 line
48 KiB
Plaintext
1 line
48 KiB
Plaintext
|
{"version":3,"sources":["../../src/index.ts","../../src/utils/formatProdErrorMessage.ts","../../src/utils/symbol-observable.ts","../../src/utils/actionTypes.ts","../../src/utils/isPlainObject.ts","../../src/utils/kindOf.ts","../../src/createStore.ts","../../src/utils/warning.ts","../../src/combineReducers.ts","../../src/bindActionCreators.ts","../../src/compose.ts","../../src/applyMiddleware.ts","../../src/utils/isAction.ts"],"sourcesContent":["// functions\nimport { createStore, legacy_createStore } from './createStore';\nimport combineReducers from './combineReducers';\nimport bindActionCreators from './bindActionCreators';\nimport applyMiddleware from './applyMiddleware';\nimport compose from './compose';\nimport isAction from './utils/isAction';\nimport isPlainObject from './utils/isPlainObject';\nimport __DO_NOT_USE__ActionTypes from './utils/actionTypes';\n\n// types\n// store\nexport { Dispatch, Unsubscribe, Observable, Observer, Store, StoreCreator, StoreEnhancer, StoreEnhancerStoreCreator } from './types/store';\n// reducers\nexport { Reducer, ReducersMapObject, StateFromReducersMapObject, ReducerFromReducersMapObject, ActionFromReducer, ActionFromReducersMapObject, PreloadedStateShapeFromReducersMapObject } from './types/reducers';\n// action creators\nexport { ActionCreator, ActionCreatorsMapObject } from './types/actions';\n// middleware\nexport { MiddlewareAPI, Middleware } from './types/middleware';\n// actions\nexport { Action, UnknownAction, AnyAction } from './types/actions';\nexport { createStore, legacy_createStore, combineReducers, bindActionCreators, applyMiddleware, compose, isAction, isPlainObject, __DO_NOT_USE__ActionTypes };","/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nexport function formatProdErrorMessage(code: number) {\n return `Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or ` + 'use the non-minified dev environment for full errors. ';\n}","declare global {\n interface SymbolConstructor {\n readonly observable: symbol;\n }\n}\nconst $$observable = /* #__PURE__ */(() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\nexport default $$observable;","/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\n\nconst randomString = () => Math.random().toString(36).substring(7).split('').join('.');\nconst ActionTypes = {\n INIT: `@@redux/INIT${/* #__PURE__ */randomString()}`,\n REPLACE: `@@redux/REPLACE${/* #__PURE__ */randomString()}`,\n PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`\n};\nexport default ActionTypes;","/**\n * @param obj The object to inspect.\n * @returns True if the argument appears to be a plain object.\n */\nexport default function isPlainObject(obj: any): obj is object {\n if (typeof obj !== 'object' || obj === null) return false;\n let proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null;\n}","// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\nexport function miniKindOf(val: any): string {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n const type = typeof val;\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n const constructorName = ctorName(val);\n switch (constructo
|