function symbolObservablePonyfill(root) { var result; var Symbol = root.Symbol;
if (typeof Symbol === 'function') { if (Symbol.observable) {
result = Symbol.observable;
} else {
result = Symbol('observable');
Symbol.observable = result;
}
} else {
result = '@@observable';
}
function createStore(reducer, preloadedState, enhancer) { var _ref2;
if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') { thrownew Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');
}
if (typeof reducer !== 'function') { thrownew Error('Expected the reducer to be a function.');
}
var currentReducer = reducer; var currentState = preloadedState; var currentListeners = []; var nextListeners = currentListeners; var isDispatching = false; /** *ThismakesashallowcopyofcurrentListenerssowecanuse *nextListenersasatemporarylistwhiledispatching. * *Thispreventsanybugsaroundconsumerscalling *subscribe/unsubscribeinthemiddleofadispatch.
*/
function ensureCanMutateNextListeners() { if (nextListeners === currentListeners) {
nextListeners = currentListeners.slice();
}
} /** *Readsthestatetreemanagedbythestore. * *@returns{any}Thecurrentstatetreeofyourapplication.
*/
function getState() { if (isDispatching) { thrownew Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
}
function subscribe(listener) { if (typeof listener !== 'function') { thrownew Error('Expected the listener to be a function.');
}
if (isDispatching) { thrownew Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');
}
var isSubscribed = true;
ensureCanMutateNextListeners();
nextListeners.push(listener); returnfunction unsubscribe() { if (!isSubscribed) { return;
}
function dispatch(action) { if (!isPlainObject(action)) { thrownew Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');
}
if (typeof action.type === 'undefined') { thrownew Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?');
}
if (isDispatching) { thrownew Error('Reducers may not dispatch actions.');
}
function replaceReducer(nextReducer) { if (typeof nextReducer !== 'function') { thrownew Error('Expected the nextReducer to be a function.');
}
currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT. // Any reducers that existed in both the new and old rootReducer // will receive the previous state. This effectively populates // the new state tree with any relevant data from the old one.
var outerSubscribe = subscribe; return _ref = { /** *Theminimalobservablesubscriptionmethod. *@param{Object}observerAnyobjectthatcanbeusedasanobserver. *Theobserverobjectshouldhavea`next`method. *@returns{subscription}Anobjectwithan`unsubscribe`methodthatcan *beusedtounsubscribetheobservablefromthestore,andpreventfurther *emissionofvaluesfromtheobservable.
*/
subscribe: function subscribe(observer) { if (typeof observer !== 'object' || observer === null) { thrownew TypeError('Expected the observer to be an object.');
}
function observeState() { if (observer.next) {
observer.next(getState());
}
}
observeState(); var unsubscribe = outerSubscribe(observeState); return {
unsubscribe: unsubscribe
};
}
}, _ref[result] = function () { returnthis;
}, _ref;
} // When a store is created, an "INIT" action is dispatched so that every // reducer returns their initial state. This effectively populates // the initial state tree.
try { // This error was thrown as a convenience so that if you enable // "break on all exceptions" in your console, // it would pause the execution at this line. thrownew Error(message);
} catch (e) {} // eslint-disable-line no-empty
}
function getUndefinedStateErrorMessage(key, action) { var actionType = action && action.type; var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action'; return"Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.";
}
function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) { var reducerKeys = Object.keys(reducers); var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
if (reducerKeys.length === 0) { return'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
}
if (!isPlainObject(inputState)) { return"The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
}
if (unexpectedKeys.length > 0) { return"Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored.");
}
}
function assertReducerShape(reducers) {
Object.keys(reducers).forEach(function (key) { var reducer = reducers[key]; var initialState = reducer(undefined, {
type: ActionTypes.INIT
});
if (typeof initialState === 'undefined') { thrownew Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
}
if (typeof reducer(undefined, {
type: ActionTypes.PROBE_UNKNOWN_ACTION()
}) === 'undefined') { thrownew Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null."); } }); } /** *Turnsanobjectwhosevaluesaredifferentreducerfunctions,intoasingle *reducerfunction.Itwillcalleverychildreducer,andgathertheirresults *intoasinglestateobject,whosekeyscorrespondtothekeysofthepassed *reducerfunctions. * *@param{Object}reducersAnobjectwhosevaluescorrespondtodifferent *reducerfunctionsthatneedtobecombinedintoone.Onehandywaytoobtain *itistouseES6`import*asreducers`syntax.Thereducersmayneverreturn *undefinedforanyaction.Instead,theyshouldreturntheirinitialstate *ifthestatepassedtothemwasundefined,andthecurrentstateforany *unrecognizedaction. * *@returns{Function}Areducerfunctionthatinvokeseveryreducerinsidethe *passedobject,andbuildsastateobjectwiththesameshape.
*/
function combineReducers(reducers) { var reducerKeys = Object.keys(reducers); var finalReducers = {};
for (var i = 0; i < reducerKeys.length; i++) { var key = reducerKeys[i];
{ if (typeof reducers[key] === 'undefined') {
warning("No reducer provided for key \"" + key + "\"");
}
}
function applyMiddleware() { for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
middlewares[_key] = arguments[_key];
}
returnfunction (createStore) { returnfunction () { var store = createStore.apply(void0, arguments);
var _dispatch = function dispatch() { thrownew Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
};
if ( typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.25Bemerkung:
(vorverarbeitet am 2026-08-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.