import{_ as y}from"./typeof-QjJsDpFa.js";function L(r,t){if(y(r)!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var n=e.call(r,t);if(y(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function D(r){var t=L(r,"string");return y(t)=="symbol"?t:t+""}function M(r,t,e){return(t=D(t))in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function d(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),e.push.apply(e,n)}return e}function O(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?d(Object(e),!0).forEach(function(n){M(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function i(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var E=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),P=function(){return Math.random().toString(36).substring(7).split("").join(".")},j={INIT:"@@redux/INIT"+P(),REPLACE:"@@redux/REPLACE"+P()};function N(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function R(r,t,e){var n;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(i(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(i(1));return e(R)(r,t)}if(typeof r!="function")throw new Error(i(2));var u=r,a=t,p=[],c=p,f=!1;function g(){c===p&&(c=p.slice())}function w(){if(f)throw new Error(i(3));return a}function m(o){if(typeof o!="function")throw new Error(i(4));if(f)throw new Error(i(5));var b=!0;return g(),c.push(o),function(){if(b){if(f)throw new Error(i(6));b=!1,g();var s=c.indexOf(o);c.splice(s,1),p=null}}}function v(o){if(!N(o))throw new Error(i(7));if(typeof o.type>"u")throw new Error(i(8));if(f)throw new Error(i(9));try{f=!0,a=u(a,o)}finally{f=!1}for(var b=p=c,l=0;l<b.length;l++){var s=b[l];s()}return o}function x(o){if(typeof o!="function")throw new Error(i(10));u=o,v({type:j.REPLACE})}function A(){var o,b=m;return o={subscribe:function(s){if(typeof s!="object"||s===null)throw new Error(i(11));function h(){s.next&&s.next(w())}h();var I=b(h);return{unsubscribe:I}}},o[E]=function(){return this},o}return v({type:j.INIT}),n={dispatch:v,subscribe:m,getState:w,replaceReducer:x},n[E]=A,n}function S(r,t){return function(){return t(r.apply(this,arguments))}}function $(r,t){if(typeof r=="function")return S(r,t);if(typeof r!="object"||r===null)throw new Error(i(16));var e={};for(var n in r){var u=r[n];typeof u=="function"&&(e[n]=S(u,t))}return e}function T(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,u){return function(){return n(u.apply(void 0,arguments))}})}function C(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(n){return function(){var u=n.apply(void 0,arguments),a=function(){throw new Error(i(15))},p={getState:u.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(f){return f(p)});return a=T.apply(void 0,c)(u.dispatch),O(O({},u),{},{dispatch:a})}}}export{M as _,T as a,$ as b,R as c,C as d,D as t};
