-
Notifications
You must be signed in to change notification settings - Fork 1
/
minimux.min.js
2 lines (2 loc) · 3.14 KB
/
minimux.min.js
1
2
!function e(t,n,o){function r(f,d){if(!n[f]){if(!t[f]){var u="function"==typeof require&&require;if(!d&&u)return u(f,!0);if(i)return i(f,!0);var a=new Error("Cannot find module '"+f+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[f]={exports:{}};t[f][0].call(p.exports,function(e){var n=t[f][1][e];return r(n?n:e)},p,p.exports,e,t,n,o)}return n[f].exports}for(var i="function"==typeof require&&require,f=0;f<o.length;f++)r(o[f]);return r}({1:[function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},r={},i=[],f=[],d={},u=null,a=function(e){return e.constructor===Array},p=function(e,t){if("string"!=typeof e&&("object"!==("undefined"==typeof e?"undefined":o(e))||!Array.isArray(e)))throw"Invalid type ("+("undefined"==typeof e?"undefined":o(e))+') for argument "actions" passed to listen. Expected string.';if("function"!=typeof t)throw"Invalid type ("+("undefined"==typeof t?"undefined":o(t))+') for argument "reducer" passed to listen. Expected function.';if(u&&console.warn("You have attempted to add a new reducer after the state was initialized (an action was thrown). This is illegal."),!u){a(e)||(e=[e]);for(var n=0,i=e.length;n<i;n++){var f=e[n];r[f]=r[f]||[],r[f].push(t)}}},s=function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1];if("function"!=typeof e)throw"Invalid type ("+("undefined"==typeof e?"undefined":o(e))+') for argument "middleware" passed to listen. Expected function.';if("number"!=typeof t)throw"Invalid type ("+("undefined"==typeof t?"undefined":o(t))+') for argument "priority" passed to listen. Expected number.';u&&console.warn("You have attempted to add new middleware after the state was initialized (an action was thrown). This is illegal."),u||f.unshift({p:t,m:e})},c=function(e){var t=d;if(r[e.type])for(var n=0,o=r[e.type].length;n<o;n++)t=r[e.type][n](t,e);return t},y=function(e){if("object"!==("undefined"==typeof e?"undefined":o(e)))throw"Invalid type ("+("undefined"==typeof e?"undefined":o(e))+') for argument "action" passed to dispatch. Expected object or array of objects.';if(a(e))e.forEach(function(e,t){if("object"!==("undefined"==typeof e?"undefined":o(e))||a(e))throw"Invalid type ("+("undefined"==typeof e?"undefined":o(e))+") for action at index "+t+" passed to dispatch. Expected object.";if(!e.hasOwnProperty("type"))throw"Action at index "+t+' passed to dispatch was missing required property: "type"'});else if(!e.hasOwnProperty("type"))throw'Action passed to dispatch was missing required property: "type"';u||(f.sort(function(e,t){return e.p-t.p}),u=f.reduce(function(e,t){return function(n){return t.m(n,e)}},c)),a(e)||(e=[e]);var t;for(t=0;t<e.length;t++)d=u(e[t]);for(t=0;t<i.length;t++)i[t](d)},l=function(e){if("function"!=typeof e)throw"Invalid type ("+("undefined"==typeof e?"undefined":o(e))+') for argument "callback" passed to listen. Expected function.';i.push(e)},h=function(e){var t=i.indexOf(e);t!==-1&&i.splice(t,1)},w=function(){return d};t.exports={getState:w,dispatch:y,register:p,listen:l,unlisten:h,use:s}},{}]},{},[1]);
//# sourceMappingURL=minimux.min.js.map