@alpernative/tree
Version:
[`@alpernative/tree`](https://www.npmjs.com/package/@alpernative/tree) is a high-performance, customizable tree component for React. It provides a wide range of features, including virtualization, drag-and-drop, and nested drag-and-drop support.
93 lines (89 loc) • 179 kB
JavaScript
(function(ae,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],N):(ae=typeof globalThis<"u"?globalThis:ae||self,N(ae.tree={},ae.React,ae.ReactDOM))})(this,function(ae,N,Ae){"use strict";var ap=Object.defineProperty;var cp=(ae,N,Ae)=>N in ae?ap(ae,N,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):ae[N]=Ae;var X=(ae,N,Ae)=>(cp(ae,typeof N!="symbol"?N+"":N,Ae),Ae);function bs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=bs(N);function ys(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zt={exports:{}},rt={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Dn;function Es(){if(Dn)return rt;Dn=1;var e=N,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,c,d){var f,u={},l=null,m=null;d!==void 0&&(l=""+d),c.key!==void 0&&(l=""+c.key),c.ref!==void 0&&(m=c.ref);for(f in c)n.call(c,f)&&!i.hasOwnProperty(f)&&(u[f]=c[f]);if(a&&a.defaultProps)for(f in c=a.defaultProps,c)u[f]===void 0&&(u[f]=c[f]);return{$$typeof:t,type:a,key:l,ref:m,props:u,_owner:o.current}}return rt.Fragment=r,rt.jsx=s,rt.jsxs=s,rt}var nt={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _n;function Ss(){return _n||(_n=1,process.env.NODE_ENV!=="production"&&function(){var e=N,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,p="@@iterator";function g(h){if(h===null||typeof h!="object")return null;var x=b&&h[b]||h[p];return typeof x=="function"?x:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(h){{for(var x=arguments.length,I=new Array(x>1?x-1:0),R=1;R<x;R++)I[R-1]=arguments[R];D("error",h,I)}}function D(h,x,I){{var R=E.ReactDebugCurrentFrame,W=R.getStackAddendum();W!==""&&(x+="%s",I=I.concat([W]));var Y=I.map(function(F){return String(F)});Y.unshift("Warning: "+x),Function.prototype.apply.call(console[h],console,Y)}}var _=!1,y=!1,O=!1,w=!1,A=!1,L;L=Symbol.for("react.module.reference");function M(h){return!!(typeof h=="string"||typeof h=="function"||h===n||h===i||A||h===o||h===d||h===f||w||h===m||_||y||O||typeof h=="object"&&h!==null&&(h.$$typeof===l||h.$$typeof===u||h.$$typeof===s||h.$$typeof===a||h.$$typeof===c||h.$$typeof===L||h.getModuleId!==void 0))}function q(h,x,I){var R=h.displayName;if(R)return R;var W=x.displayName||x.name||"";return W!==""?I+"("+W+")":I}function B(h){return h.displayName||"Context"}function H(h){if(h==null)return null;if(typeof h.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case a:var x=h;return B(x)+".Consumer";case s:var I=h;return B(I._context)+".Provider";case c:return q(h,h.render,"ForwardRef");case u:var R=h.displayName||null;return R!==null?R:H(h.type)||"Memo";case l:{var W=h,Y=W._payload,F=W._init;try{return H(F(Y))}catch{return null}}}return null}var J=Object.assign,Z=0,ie,se,ne,De,he,_e,Oe;function le(){}le.__reactDisabledLog=!0;function fe(){{if(Z===0){ie=console.log,se=console.info,ne=console.warn,De=console.error,he=console.group,_e=console.groupCollapsed,Oe=console.groupEnd;var h={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}Z++}}function Ne(){{if(Z--,Z===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},h,{value:ie}),info:J({},h,{value:se}),warn:J({},h,{value:ne}),error:J({},h,{value:De}),group:J({},h,{value:he}),groupCollapsed:J({},h,{value:_e}),groupEnd:J({},h,{value:Oe})})}Z<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pe=E.ReactCurrentDispatcher,Re;function Le(h,x,I){{if(Re===void 0)try{throw Error()}catch(W){var R=W.stack.trim().match(/\n( *(at )?)/);Re=R&&R[1]||""}return`
`+Re+h}}var xe=!1,Ie;{var Qe=typeof WeakMap=="function"?WeakMap:Map;Ie=new Qe}function C(h,x){if(!h||xe)return"";{var I=Ie.get(h);if(I!==void 0)return I}var R;xe=!0;var W=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Y;Y=Pe.current,Pe.current=null,fe();try{if(x){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(Be){R=Be}Reflect.construct(h,[],F)}else{try{F.call()}catch(Be){R=Be}h.call(F.prototype)}}else{try{throw Error()}catch(Be){R=Be}h()}}catch(Be){if(Be&&R&&typeof Be.stack=="string"){for(var $=Be.stack.split(`
`),ue=R.stack.split(`
`),Q=$.length-1,ee=ue.length-1;Q>=1&&ee>=0&&$[Q]!==ue[ee];)ee--;for(;Q>=1&&ee>=0;Q--,ee--)if($[Q]!==ue[ee]){if(Q!==1||ee!==1)do if(Q--,ee--,ee<0||$[Q]!==ue[ee]){var we=`
`+$[Q].replace(" at new "," at ");return h.displayName&&we.includes("<anonymous>")&&(we=we.replace("<anonymous>",h.displayName)),typeof h=="function"&&Ie.set(h,we),we}while(Q>=1&&ee>=0);break}}}finally{xe=!1,Pe.current=Y,Ne(),Error.prepareStackTrace=W}var tt=h?h.displayName||h.name:"",vs=tt?Le(tt):"";return typeof h=="function"&&Ie.set(h,vs),vs}function ve(h,x,I){return C(h,!1)}function T(h){var x=h.prototype;return!!(x&&x.isReactComponent)}function Te(h,x,I){if(h==null)return"";if(typeof h=="function")return C(h,T(h));if(typeof h=="string")return Le(h);switch(h){case d:return Le("Suspense");case f:return Le("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case c:return ve(h.render);case u:return Te(h.type,x,I);case l:{var R=h,W=R._payload,Y=R._init;try{return Te(Y(W),x,I)}catch{}}}return""}var Ve=Object.prototype.hasOwnProperty,xt={},ss=E.ReactDebugCurrentFrame;function Jt(h){if(h){var x=h._owner,I=Te(h.type,h._source,x?x.type:null);ss.setExtraStackFrame(I)}else ss.setExtraStackFrame(null)}function Wf(h,x,I,R,W){{var Y=Function.call.bind(Ve);for(var F in h)if(Y(h,F)){var $=void 0;try{if(typeof h[F]!="function"){var ue=Error((R||"React class")+": "+I+" type `"+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[F]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ue.name="Invariant Violation",ue}$=h[F](x,F,R,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Q){$=Q}$&&!($ instanceof Error)&&(Jt(W),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",R||"React class",I,F,typeof $),Jt(null)),$ instanceof Error&&!($.message in xt)&&(xt[$.message]=!0,Jt(W),S("Failed %s type: %s",I,$.message),Jt(null))}}}var Gf=Array.isArray;function vn(h){return Gf(h)}function kf(h){{var x=typeof Symbol=="function"&&Symbol.toStringTag,I=x&&h[Symbol.toStringTag]||h.constructor.name||"Object";return I}}function Uf(h){try{return as(h),!1}catch{return!0}}function as(h){return""+h}function cs(h){if(Uf(h))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",kf(h)),as(h)}var It=E.ReactCurrentOwner,jf={key:!0,ref:!0,__self:!0,__source:!0},ls,us,bn;bn={};function Hf(h){if(Ve.call(h,"ref")){var x=Object.getOwnPropertyDescriptor(h,"ref").get;if(x&&x.isReactWarning)return!1}return h.ref!==void 0}function qf(h){if(Ve.call(h,"key")){var x=Object.getOwnPropertyDescriptor(h,"key").get;if(x&&x.isReactWarning)return!1}return h.key!==void 0}function Yf(h,x){if(typeof h.ref=="string"&&It.current&&x&&It.current.stateNode!==x){var I=H(It.current.type);bn[I]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',H(It.current.type),h.ref),bn[I]=!0)}}function Kf(h,x){{var I=function(){ls||(ls=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};I.isReactWarning=!0,Object.defineProperty(h,"key",{get:I,configurable:!0})}}function Xf(h,x){{var I=function(){us||(us=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};I.isReactWarning=!0,Object.defineProperty(h,"ref",{get:I,configurable:!0})}}var Jf=function(h,x,I,R,W,Y,F){var $={$$typeof:t,type:h,key:x,ref:I,props:F,_owner:Y};return $._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($,"_self",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.defineProperty($,"_source",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$};function Zf(h,x,I,R,W){{var Y,F={},$=null,ue=null;I!==void 0&&(cs(I),$=""+I),qf(x)&&(cs(x.key),$=""+x.key),Hf(x)&&(ue=x.ref,Yf(x,W));for(Y in x)Ve.call(x,Y)&&!jf.hasOwnProperty(Y)&&(F[Y]=x[Y]);if(h&&h.defaultProps){var Q=h.defaultProps;for(Y in Q)F[Y]===void 0&&(F[Y]=Q[Y])}if($||ue){var ee=typeof h=="function"?h.displayName||h.name||"Unknown":h;$&&Kf(F,ee),ue&&Xf(F,ee)}return Jf(h,$,ue,W,R,It.current,F)}}var yn=E.ReactCurrentOwner,ds=E.ReactDebugCurrentFrame;function et(h){if(h){var x=h._owner,I=Te(h.type,h._source,x?x.type:null);ds.setExtraStackFrame(I)}else ds.setExtraStackFrame(null)}var En;En=!1;function Sn(h){return typeof h=="object"&&h!==null&&h.$$typeof===t}function fs(){{if(yn.current){var h=H(yn.current.type);if(h)return`
Check the render method of \``+h+"`."}return""}}function Qf(h){{if(h!==void 0){var x=h.fileName.replace(/^.*[\\\/]/,""),I=h.lineNumber;return`
Check your code at `+x+":"+I+"."}return""}}var ps={};function ep(h){{var x=fs();if(!x){var I=typeof h=="string"?h:h.displayName||h.name;I&&(x=`
Check the top-level render call using <`+I+">.")}return x}}function ms(h,x){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var I=ep(x);if(ps[I])return;ps[I]=!0;var R="";h&&h._owner&&h._owner!==yn.current&&(R=" It was passed a child from "+H(h._owner.type)+"."),et(h),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,R),et(null)}}function gs(h,x){{if(typeof h!="object")return;if(vn(h))for(var I=0;I<h.length;I++){var R=h[I];Sn(R)&&ms(R,x)}else if(Sn(h))h._store&&(h._store.validated=!0);else if(h){var W=g(h);if(typeof W=="function"&&W!==h.entries)for(var Y=W.call(h),F;!(F=Y.next()).done;)Sn(F.value)&&ms(F.value,x)}}}function tp(h){{var x=h.type;if(x==null||typeof x=="string")return;var I;if(typeof x=="function")I=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===c||x.$$typeof===u))I=x.propTypes;else return;if(I){var R=H(x);Wf(I,h.props,"prop",R,h)}else if(x.PropTypes!==void 0&&!En){En=!0;var W=H(x);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",W||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rp(h){{for(var x=Object.keys(h.props),I=0;I<x.length;I++){var R=x[I];if(R!=="children"&&R!=="key"){et(h),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",R),et(null);break}}h.ref!==null&&(et(h),S("Invalid attribute `ref` supplied to `React.Fragment`."),et(null))}}function hs(h,x,I,R,W,Y){{var F=M(h);if(!F){var $="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&($+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ue=Qf(W);ue?$+=ue:$+=fs();var Q;h===null?Q="null":vn(h)?Q="array":h!==void 0&&h.$$typeof===t?(Q="<"+(H(h.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):Q=typeof h,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Q,$)}var ee=Zf(h,x,I,W,Y);if(ee==null)return ee;if(F){var we=x.children;if(we!==void 0)if(R)if(vn(we)){for(var tt=0;tt<we.length;tt++)gs(we[tt],h);Object.freeze&&Object.freeze(we)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else gs(we,h)}return h===n?rp(ee):tp(ee),ee}}function np(h,x,I){return hs(h,x,I,!0)}function op(h,x,I){return hs(h,x,I,!1)}var ip=op,sp=np;nt.Fragment=n,nt.jsx=ip,nt.jsxs=sp}()),nt}process.env.NODE_ENV==="production"?Zt.exports=Es():Zt.exports=Ss();var Me=Zt.exports;function ot(e){"@babel/helpers - typeof";return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(e)}function Ds(e,t){if(ot(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ot(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _s(e){var t=Ds(e,"string");return ot(t)=="symbol"?t:String(t)}function Os(e,t,r){return t=_s(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function On(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Nn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?On(Object(r),!0).forEach(function(n){Os(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):On(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function de(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var xn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Qt=function(){return Math.random().toString(36).substring(7).split("").join(".")},In={INIT:"@@redux/INIT"+Qt(),REPLACE:"@@redux/REPLACE"+Qt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qt()}};function Ns(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function xs(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Cs(e))return"date";if(ws(e))return"error";var r=Is(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Is(e){return typeof e.constructor=="function"?e.constructor.name:null}function ws(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Cs(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Ge(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=xs(e)),t}function wn(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?de(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?de(1):"Expected the enhancer to be a function. Instead, received: '"+Ge(r)+"'");return r(wn)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?de(2):"Expected the root reducer to be a function. Instead, received: '"+Ge(e)+"'");var o=e,i=t,s=[],a=s,c=!1;function d(){a===s&&(a=s.slice())}function f(){if(c)throw new Error(process.env.NODE_ENV==="production"?de(3):"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.");return i}function u(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?de(4):"Expected the listener to be a function. Instead, received: '"+Ge(p)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?de(5):"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/store#subscribelistener for more details.");var g=!0;return d(),a.push(p),function(){if(g){if(c)throw new Error(process.env.NODE_ENV==="production"?de(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");g=!1,d();var S=a.indexOf(p);a.splice(S,1),s=null}}}function l(p){if(!Ns(p))throw new Error(process.env.NODE_ENV==="production"?de(7):"Actions must be plain objects. Instead, the actual type was: '"+Ge(p)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof p.type>"u")throw new Error(process.env.NODE_ENV==="production"?de(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?de(9):"Reducers may not dispatch actions.");try{c=!0,i=o(i,p)}finally{c=!1}for(var g=s=a,E=0;E<g.length;E++){var S=g[E];S()}return p}function m(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?de(10):"Expected the nextReducer to be a function. Instead, received: '"+Ge(p));o=p,l({type:In.REPLACE})}function b(){var p,g=u;return p={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(process.env.NODE_ENV==="production"?de(11):"Expected the observer to be an object. Instead, received: '"+Ge(S)+"'");function D(){S.next&&S.next(f())}D();var _=g(D);return{unsubscribe:_}}},p[xn]=function(){return this},p}return l({type:In.INIT}),n={dispatch:l,subscribe:u,getState:f,replaceReducer:m},n[xn]=b,n}function Cn(e,t){return function(){return t(e.apply(this,arguments))}}function Pn(e,t){if(typeof e=="function")return Cn(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?de(16):"bindActionCreators expected an object or a function, but instead received: '"+Ge(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in e){var o=e[n];typeof o=="function"&&(r[n]=Cn(o,t))}return r}function Tn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,o){return function(){return n(o.apply(void 0,arguments))}})}function Ps(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var o=n.apply(void 0,arguments),i=function(){throw new Error(process.env.NODE_ENV==="production"?de(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},a=t.map(function(c){return c(s)});return i=Tn.apply(void 0,a)(o.dispatch),Nn(Nn({},o),{},{dispatch:i})}}}var er={exports:{}},tr={};/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var An;function Ts(){if(An)return tr;An=1;var e=N;function t(u,l){return u===l&&(u!==0||1/u===1/l)||u!==u&&l!==l}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(u,l){var m=l(),b=n({inst:{value:m,getSnapshot:l}}),p=b[0].inst,g=b[1];return i(function(){p.value=m,p.getSnapshot=l,c(p)&&g({inst:p})},[u,m,l]),o(function(){return c(p)&&g({inst:p}),u(function(){c(p)&&g({inst:p})})},[u]),s(m),m}function c(u){var l=u.getSnapshot;u=u.value;try{var m=l();return!r(u,m)}catch{return!0}}function d(u,l){return l()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:a;return tr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,tr}var rr={};/**
* @license React
* use-sync-external-store-shim.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Rn;function As(){return Rn||(Rn=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=N,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(D){{for(var _=arguments.length,y=new Array(_>1?_-1:0),O=1;O<_;O++)y[O-1]=arguments[O];n("error",D,y)}}function n(D,_,y){{var O=t.ReactDebugCurrentFrame,w=O.getStackAddendum();w!==""&&(_+="%s",y=y.concat([w]));var A=y.map(function(L){return String(L)});A.unshift("Warning: "+_),Function.prototype.apply.call(console[D],console,A)}}function o(D,_){return D===_&&(D!==0||1/D===1/_)||D!==D&&_!==_}var i=typeof Object.is=="function"?Object.is:o,s=e.useState,a=e.useEffect,c=e.useLayoutEffect,d=e.useDebugValue,f=!1,u=!1;function l(D,_,y){f||e.startTransition!==void 0&&(f=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var O=_();if(!u){var w=_();i(O,w)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var A=s({inst:{value:O,getSnapshot:_}}),L=A[0].inst,M=A[1];return c(function(){L.value=O,L.getSnapshot=_,m(L)&&M({inst:L})},[D,O,_]),a(function(){m(L)&&M({inst:L});var q=function(){m(L)&&M({inst:L})};return D(q)},[D]),d(O),O}function m(D){var _=D.getSnapshot,y=D.value;try{var O=_();return!i(y,O)}catch{return!0}}function b(D,_,y){return _()}var p=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",g=!p,E=g?b:l,S=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:E;rr.useSyncExternalStore=S,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),rr}process.env.NODE_ENV==="production"?er.exports=Ts():er.exports=As();var nr=er.exports,or={};/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ln;function Rs(){if(Ln)return or;Ln=1;var e=N,t=nr;function r(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,c=e.useDebugValue;return or.useSyncExternalStoreWithSelector=function(d,f,u,l,m){var b=i(null);if(b.current===null){var p={hasValue:!1,value:null};b.current=p}else p=b.current;b=a(function(){function E(O){if(!S){if(S=!0,D=O,O=l(O),m!==void 0&&p.hasValue){var w=p.value;if(m(w,O))return _=w}return _=O}if(w=_,n(D,O))return w;var A=l(O);return m!==void 0&&m(w,A)?w:(D=O,_=A)}var S=!1,D,_,y=u===void 0?null:u;return[function(){return E(f())},y===null?void 0:function(){return E(y())}]},[f,u,l,m]);var g=o(d,b[0],b[1]);return s(function(){p.hasValue=!0,p.value=g},[g]),c(g),g},or}var ir={};/**
* @license React
* use-sync-external-store-shim/with-selector.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Mn;function Ls(){return Mn||(Mn=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=N,t=nr;function r(f,u){return f===u&&(f!==0||1/f===1/u)||f!==f&&u!==u}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,c=e.useDebugValue;function d(f,u,l,m,b){var p=i(null),g;p.current===null?(g={hasValue:!1,value:null},p.current=g):g=p.current;var E=a(function(){var y=!1,O,w,A=function(B){if(!y){y=!0,O=B;var H=m(B);if(b!==void 0&&g.hasValue){var J=g.value;if(b(J,H))return w=J,J}return w=H,H}var Z=O,ie=w;if(n(Z,B))return ie;var se=m(B);return b!==void 0&&b(ie,se)?ie:(O=B,w=se,se)},L=l===void 0?null:l,M=function(){return A(u())},q=L===null?void 0:function(){return A(L())};return[M,q]},[u,l,m,b]),S=E[0],D=E[1],_=o(f,S,D);return s(function(){g.hasValue=!0,g.value=_},[_]),c(_),_}ir.useSyncExternalStoreWithSelector=d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ir}process.env.NODE_ENV==="production"?Rs():Ls();function Ms(e){e()}let $n=Ms;const $s=e=>$n=e,Vs=()=>$n,Vn=Symbol.for("react-redux-context"),Bn=typeof globalThis<"u"?globalThis:{};function Bs(){var e;if(!z.createContext)return{};const t=(e=Bn[Vn])!=null?e:Bn[Vn]=new Map;let r=t.get(z.createContext);return r||(r=z.createContext(null),process.env.NODE_ENV!=="production"&&(r.displayName="ReactRedux"),t.set(z.createContext,r)),r}const Fn=Bs(),Fs=()=>{throw new Error("uSES not initialized!")};function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$e.apply(this,arguments)}function wt(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var sr={exports:{}},G={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var zn;function zs(){if(zn)return G;zn=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,l=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function D(y){if(typeof y=="object"&&y!==null){var O=y.$$typeof;switch(O){case t:switch(y=y.type,y){case c:case d:case n:case i:case o:case u:return y;default:switch(y=y&&y.$$typeof,y){case a:case f:case b:case m:case s:return y;default:return O}}case r:return O}}}function _(y){return D(y)===d}return G.AsyncMode=c,G.ConcurrentMode=d,G.ContextConsumer=a,G.ContextProvider=s,G.Element=t,G.ForwardRef=f,G.Fragment=n,G.Lazy=b,G.Memo=m,G.Portal=r,G.Profiler=i,G.StrictMode=o,G.Suspense=u,G.isAsyncMode=function(y){return _(y)||D(y)===c},G.isConcurrentMode=_,G.isContextConsumer=function(y){return D(y)===a},G.isContextProvider=function(y){return D(y)===s},G.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},G.isForwardRef=function(y){return D(y)===f},G.isFragment=function(y){return D(y)===n},G.isLazy=function(y){return D(y)===b},G.isMemo=function(y){return D(y)===m},G.isPortal=function(y){return D(y)===r},G.isProfiler=function(y){return D(y)===i},G.isStrictMode=function(y){return D(y)===o},G.isSuspense=function(y){return D(y)===u},G.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===d||y===i||y===o||y===u||y===l||typeof y=="object"&&y!==null&&(y.$$typeof===b||y.$$typeof===m||y.$$typeof===s||y.$$typeof===a||y.$$typeof===f||y.$$typeof===g||y.$$typeof===E||y.$$typeof===S||y.$$typeof===p)},G.typeOf=D,G}var k={};/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Wn;function Ws(){return Wn||(Wn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,l=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function D(C){return typeof C=="string"||typeof C=="function"||C===n||C===d||C===i||C===o||C===u||C===l||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===m||C.$$typeof===s||C.$$typeof===a||C.$$typeof===f||C.$$typeof===g||C.$$typeof===E||C.$$typeof===S||C.$$typeof===p)}function _(C){if(typeof C=="object"&&C!==null){var ve=C.$$typeof;switch(ve){case t:var T=C.type;switch(T){case c:case d:case n:case i:case o:case u:return T;default:var Te=T&&T.$$typeof;switch(Te){case a:case f:case b:case m:case s:return Te;default:return ve}}case r:return ve}}}var y=c,O=d,w=a,A=s,L=t,M=f,q=n,B=b,H=m,J=r,Z=i,ie=o,se=u,ne=!1;function De(C){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),he(C)||_(C)===c}function he(C){return _(C)===d}function _e(C){return _(C)===a}function Oe(C){return _(C)===s}function le(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function fe(C){return _(C)===f}function Ne(C){return _(C)===n}function Pe(C){return _(C)===b}function Re(C){return _(C)===m}function Le(C){return _(C)===r}function xe(C){return _(C)===i}function Ie(C){return _(C)===o}function Qe(C){return _(C)===u}k.AsyncMode=y,k.ConcurrentMode=O,k.ContextConsumer=w,k.ContextProvider=A,k.Element=L,k.ForwardRef=M,k.Fragment=q,k.Lazy=B,k.Memo=H,k.Portal=J,k.Profiler=Z,k.StrictMode=ie,k.Suspense=se,k.isAsyncMode=De,k.isConcurrentMode=he,k.isContextConsumer=_e,k.isContextProvider=Oe,k.isElement=le,k.isForwardRef=fe,k.isFragment=Ne,k.isLazy=Pe,k.isMemo=Re,k.isPortal=Le,k.isProfiler=xe,k.isStrictMode=Ie,k.isSuspense=Qe,k.isValidElementType=D,k.typeOf=_}()),k}process.env.NODE_ENV==="production"?sr.exports=zs():sr.exports=Ws();var Gs=sr.exports,ar=Gs,ks={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Us={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},js={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cr={};cr[ar.ForwardRef]=js,cr[ar.Memo]=Gn;function kn(e){return ar.isMemo(e)?Gn:cr[e.$$typeof]||ks}var Hs=Object.defineProperty,qs=Object.getOwnPropertyNames,Un=Object.getOwnPropertySymbols,Ys=Object.getOwnPropertyDescriptor,Ks=Object.getPrototypeOf,jn=Object.prototype;function Hn(e,t,r){if(typeof t!="string"){if(jn){var n=Ks(t);n&&n!==jn&&Hn(e,n,r)}var o=qs(t);Un&&(o=o.concat(Un(t)));for(var i=kn(e),s=kn(t),a=0;a<o.length;++a){var c=o[a];if(!Us[c]&&!(r&&r[c])&&!(s&&s[c])&&!(i&&i[c])){var d=Ys(t,c);try{Hs(e,c,d)}catch{}}}}return e}var Xs=Hn;const qn=ys(Xs);var lr={exports:{}},U={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Yn;function Js(){if(Yn)return U;Yn=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function p(g){if(typeof g=="object"&&g!==null){var E=g.$$typeof;switch(E){case e:switch(g=g.type,g){case r:case o:case n:case d:case f:return g;default:switch(g=g&&g.$$typeof,g){case a:case s:case c:case l:case u:case i:return g;default:return E}}case t:return E}}}return U.ContextConsumer=s,U.ContextProvider=i,U.Element=e,U.ForwardRef=c,U.Fragment=r,U.Lazy=l,U.Memo=u,U.Portal=t,U.Profiler=o,U.StrictMode=n,U.Suspense=d,U.SuspenseList=f,U.isAsyncMode=function(){return!1},U.isConcurrentMode=function(){return!1},U.isContextConsumer=function(g){return p(g)===s},U.isContextProvider=function(g){return p(g)===i},U.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},U.isForwardRef=function(g){return p(g)===c},U.isFragment=function(g){return p(g)===r},U.isLazy=function(g){return p(g)===l},U.isMemo=function(g){return p(g)===u},U.isPortal=function(g){return p(g)===t},U.isProfiler=function(g){return p(g)===o},U.isStrictMode=function(g){return p(g)===n},U.isSuspense=function(g){return p(g)===d},U.isSuspenseList=function(g){return p(g)===f},U.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===d||g===f||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===l||g.$$typeof===u||g.$$typeof===i||g.$$typeof===s||g.$$typeof===c||g.$$typeof===b||g.getModuleId!==void 0)},U.typeOf=p,U}var j={};/**
* @license React
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Kn;function Zs(){return Kn||(Kn=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=!1,p=!1,g=!1,E=!1,S=!1,D;D=Symbol.for("react.module.reference");function _(T){return!!(typeof T=="string"||typeof T=="function"||T===r||T===o||S||T===n||T===d||T===f||E||T===m||b||p||g||typeof T=="object"&&T!==null&&(T.$$typeof===l||T.$$typeof===u||T.$$typeof===i||T.$$typeof===s||T.$$typeof===c||T.$$typeof===D||T.getModuleId!==void 0))}function y(T){if(typeof T=="object"&&T!==null){var Te=T.$$typeof;switch(Te){case e:var Ve=T.type;switch(Ve){case r:case o:case n:case d:case f:return Ve;default:var xt=Ve&&Ve.$$typeof;switch(xt){case a:case s:case c:case l:case u:case i:return xt;default:return Te}}case t:return Te}}}var O=s,w=i,A=e,L=c,M=r,q=l,B=u,H=t,J=o,Z=n,ie=d,se=f,ne=!1,De=!1;function he(T){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function _e(T){return De||(De=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Oe(T){return y(T)===s}function le(T){return y(T)===i}function fe(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function Ne(T){return y(T)===c}function Pe(T){return y(T)===r}function Re(T){return y(T)===l}function Le(T){return y(T)===u}function xe(T){return y(T)===t}function Ie(T){return y(T)===o}function Qe(T){return y(T)===n}function C(T){return y(T)===d}function ve(T){return y(T)===f}j.ContextConsumer=O,j.ContextProvider=w,j.Element=A,j.ForwardRef=L,j.Fragment=M,j.Lazy=q,j.Memo=B,j.Portal=H,j.Profiler=J,j.StrictMode=Z,j.Suspense=ie,j.SuspenseList=se,j.isAsyncMode=he,j.isConcurrentMode=_e,j.isContextConsumer=Oe,j.isContextProvider=le,j.isElement=fe,j.isForwardRef=Ne,j.isFragment=Pe,j.isLazy=Re,j.isMemo=Le,j.isPortal=xe,j.isProfiler=Ie,j.isStrictMode=Qe,j.isSuspense=C,j.isSuspenseList=ve,j.isValidElementType=_,j.typeOf=y}()),j}process.env.NODE_ENV==="production"?lr.exports=Js():lr.exports=Zs();var Xn=lr.exports;function ur(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function dr(e,t){if(e)(t==="mapStateToProps"||t==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||ur(`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${t} in connect.`)}function Qs(e,t,r){dr(e,"mapStateToProps"),dr(t,"mapDispatchToProps"),dr(r,"mergeProps")}const ea=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ta(e,t,r,n,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:s}){let a=!1,c,d,f,u,l;function m(S,D){return c=S,d=D,f=e(c,d),u=t(n,d),l=r(f,u,d),a=!0,l}function b(){return f=e(c,d),t.dependsOnOwnProps&&(u=t(n,d)),l=r(f,u,d),l}function p(){return e.dependsOnOwnProps&&(f=e(c,d)),t.dependsOnOwnProps&&(u=t(n,d)),l=r(f,u,d),l}function g(){const S=e(c,d),D=!s(S,f);return f=S,D&&(l=r(f,u,d)),l}function E(S,D){const _=!i(D,d),y=!o(S,c,D,d);return c=S,d=D,_&&y?b():_?p():y?g():l}return function(D,_){return a?E(D,_):m(D,_)}}function ra(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:o}=t,i=wt(t,ea);const s=r(e,i),a=n(e,i),c=o(e,i);return process.env.NODE_ENV!=="production"&&Qs(s,a,c),ta(s,a,c,e,i)}function na(e,t){const r={};for(const n in e){const o=e[n];typeof o=="function"&&(r[n]=(...i)=>t(o(...i)))}return r}function oa(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Jn(e,t,r){oa(e)||ur(`${r}() in ${t} must return a plain object. Instead received ${e}.`)}function fr(e){return function(r){const n=e(r);function o(){return n}return o.dependsOnOwnProps=!1,o}}function Zn(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Qn(e,t){return function(n,{displayName:o}){const i=function(a,c){return i.dependsOnOwnProps?i.mapToProps(a,c):i.mapToProps(a,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(a,c){i.mapToProps=e,i.dependsOnOwnProps=Zn(e);let d=i(a,c);return typeof d=="function"&&(i.mapToProps=d,i.dependsOnOwnProps=Zn(d),d=i(a,c)),process.env.NODE_ENV!=="production"&&Jn(d,o,t),d},i}}function pr(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function ia(e){return e&&typeof e=="object"?fr(t=>na(e,t)):e?typeof e=="function"?Qn(e,"mapDispatchToProps"):pr(e,"mapDispatchToProps"):fr(t=>({dispatch:t}))}function sa(e){return e?typeof e=="function"?Qn(e,"mapStateToProps"):pr(e,"mapStateToProps"):fr(()=>({}))}function aa(e,t,r){return $e({},r,e,t)}function ca(e){return function(r,{displayName:n,areMergedPropsEqual:o}){let i=!1,s;return function(c,d,f){const u=e(c,d,f);return i?o(u,s)||(s=u):(i=!0,s=u,process.env.NODE_ENV!=="production"&&Jn(s,n,"mergeProps")),s}}}function la(e){return e?typeof e=="function"?ca(e):pr(e,"mergeProps"):()=>aa}function ua(){const e=Vs();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],o=t;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0,i=r={callback:n,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const eo={notify(){},get:()=>[]};function to(e,t){let r,n=eo,o=0,i=!1;function s(p){f();const g=n.subscribe(p);let E=!1;return()=>{E||(E=!0,g(),u())}}function a(){n.notify()}function c(){b.onStateChange&&b.onStateChange()}function d(){return i}function f(){o++,r||(r=t?t.addNestedSub(c):e.subscribe(c),n=ua())}function u(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=eo)}function l(){i||(i=!0,f())}function m(){i&&(i=!1,u())}const b={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:c,isSubscribed:d,trySubscribe:l,tryUnsubscribe:m,getListeners:()=>n};return b}const Ct=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?z.useLayoutEffect:z.useEffect;function ro(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function mr(e,t){if(ro(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!ro(e[r[o]],t[r[o]]))return!1;return!0}const da=["reactReduxForwardedRef"];let no=Fs;const fa=e=>{no=e},pa=[null,null],ma=e=>{try{return JSON.stringify(e)}catch{return String(e)}};function ga(e,t,r){Ct(()=>e(...t),r)}function ha(e,t,r,n,o,i){e.current=n,r.current=!1,o.current&&(o.current=null,i())}function va(e,t,r,n,o,i,s,a,c,d,f){if(!e)return()=>{};let u=!1,l=null;const m=()=>{if(u||!a.current)return;const p=t.getState();let g,E;try{g=n(p,o.current)}catch(S){E=S,l=S}E||(l=null),g===i.current?s.current||d():(i.current=g,c.current=g,s.current=!0,f())};return r.onStateChange=m,r.trySubscribe(),m(),()=>{if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,l)throw l}}function ba(e,t){return e===t}let oo=!1;function io(e,t,r,{pure:n,areStatesEqual:o=ba,areOwnPropsEqual:i=mr,areStatePropsEqual:s=mr,areMergedPropsEqual:a=mr,forwardRef:c=!1,context:d=Fn}={}){process.env.NODE_ENV!=="production"&&n!==void 0&&!oo&&(oo=!0,ur('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const f=d,u=sa(e),l=ia(t),m=la(r),b=!!e;return g=>{if(process.env.NODE_ENV!=="production"&&!Xn.isValidElementType(g))throw new Error(`You must pass a component to the function returned by connect. Instead received ${ma(g)}`);const E=g.displayName||g.name||"Component",S=`Connect(${E})`,D={shouldHandleStateChanges:b,displayName:S,wrappedComponentName:E,WrappedComponent:g,initMapStateToProps:u,initMapDispatchToProps:l,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:i,areMergedPropsEqual:a};function _(w){const[A,L,M]=z.useMemo(()=>{const{reactReduxForwardedRef:C}=w,ve=wt(w,da);return[w.context,C,ve]},[w]),q=z.useMemo(()=>A&&A.Consumer&&Xn.isContextConsumer(z.createElement(A.Consumer,null))?A:f,[A,f]),B=z.useContext(q),H=!!w.store&&!!w.store.getState&&!!w.store.dispatch,J=!!B&&!!B.store;if(process.env.NODE_ENV!=="production"&&!H&&!J)throw new Error(`Could not find "store" in the context of "${S}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${S} in connect options.`);const Z=H?w.store:B.store,ie=J?B.getServerState:Z.getState,se=z.useMemo(()=>ra(Z.dispatch,D),[Z]),[ne,De]=z.useMemo(()=>{if(!b)return pa;const C=to(Z,H?void 0:B.subscription),ve=C.notifyNestedSubs.bind(C);return[C,ve]},[Z,H,B]),he=z.useMemo(()=>H?B:$e({},B,{subscription:ne}),[H,B,ne]),_e=z.useRef(),Oe=z.useRef(M),le=z.useRef(),fe=z.useRef(!1);z.useRef(!1);const Ne=z.useRef(!1),Pe=z.useRef();Ct(()=>(Ne.current=!0,()=>{Ne.current=!1}),[]);const Re=z.useMemo(()=>()=>le.current&&M===Oe.current?le.current:se(Z.getState(),M),[Z,M]),Le=z.useMemo(()=>ve=>ne?va(b,Z,ne,se,Oe,_e,fe,Ne,le,De,ve):()=>{},[ne]);ga(ha,[Oe,_e,fe,M,le,De]);let xe;try{xe=no(Le,Re,ie?()=>se(ie(),M):Re)}catch(C){throw Pe.current&&(C.message+=`
The error may be correlated with this previous error:
${Pe.current.stack}
`),C}Ct(()=>{Pe.current=void 0,le.current=void 0,_e.current=xe});const Ie=z.useMemo(()=>z.createElement(g,$e({},xe,{ref:L})),[L,g,xe]);return z.useMemo(()=>b?z.createElement(q.Provider,{value:he},Ie):Ie,[q,Ie,he])}const O=z.memo(_);if(O.WrappedComponent=g,O.displayName=_.displayName=S,c){const A=z.forwardRef(function(M,q){return z.createElement(O,$e({},M,{reactReduxForwardedRef:q}))});return A.displayName=S,A.WrappedComponent=g,qn(A,g)}return qn(O,g)}}function ya({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const s=z.useMemo(()=>{const d=to(e);return{store:e,subscription:d,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:i}},[e,n,o,i]),a=z.useMemo(()=>e.getState(),[e]);Ct(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),a!==e.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,a]);const c=t||Fn;return z.createElement(c.Provider,{value:s},r)}fa(nr.useSyncExternalStore),$s(Ae.unstable_batchedUpdates);function Ea(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function so(e,t){var r=N.useState(function(){return{inputs:t,result:e()}})[0],n=N.useRef(!0),o=N.useRef(r),i=n.current||!!(t&&o.current.inputs&&Ea(t,o.current.inputs)),s=i?o.current:{inputs:t,result:e()};return N.useEffect(function(){n.current=!1,o.current=s},[s]),s.result}function Sa(e,t){return so(function(){return e},t)}var V=so,P=Sa,Da=process.env.NODE_ENV==="production",gr="Invariant failed";function ao(e,t){if(!e){if(Da)throw new Error(gr);var r=typeof t=="function"?t():t,n=r?"".concat(gr,": ").concat(r):gr;throw new Error(n)}}var Ce=function(t){var r=t.top,n=t.right,o=t.bottom,i=t.left,s=n-i,a=o-r,c={top:r,right:n,bottom:o,left:i,width:s,height:a,x:i,y:r,center:{x:(n+i)/2,y:(o+r)/2}};return c},hr=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},co=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},_a=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},vr={top:0,right:0,bottom:0,left:0},br=function(t){var r=t.borderBox,n=t.margin,o=n===void 0?vr:n,i=t.border,s=i===void 0?vr:i,a=t.padding,c=a===void 0?vr:a,d=Ce(hr(r,o)),f=Ce(co(r,s)),u=Ce(co(f,c));return{marginBox:d,borderBox:Ce(r),paddingBox:f,contentBox:u,margin:o,border:s,padding:c}},be=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var o=Number(r);return isNaN(o)&&(process.env.NODE_ENV!=="production"?ao(!1,"Coul