@feardread/feature-factory 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var version=function(e){"use strict";function t(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 r=()=>Math.random().toString(36).substring(7).split("").join("."),n={INIT:`@@redux/INIT${r()}`,REPLACE:`@@redux/REPLACE${r()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${r()}`};function o(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function i(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function a(e,t,r,i){const a=Object.keys(t),s=r&&r.type===n.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===a.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!o(e))return`The ${s} has unexpected type of "${function(e){let t=typeof e;return"production"!==process.env.NODE_ENV&&(t=function(e){if(void 0===e)return"undefined";if(null===e)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";const r=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}(e)),t}(e)}". Expected argument to be an object with the following keys: "${a.join('", "')}"`;const c=Object.keys(e).filter(e=>!t.hasOwnProperty(e)&&!i[e]);return c.forEach(e=>{i[e]=!0}),r&&r.type===n.REPLACE?void 0:c.length>0?`Unexpected ${c.length>1?"keys":"key"} "${c.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${a.join('", "')}". Unexpected keys will be ignored.`:void 0}function s(e){const r=Object.keys(e),o={};for(let t=0;t<r.length;t++){const n=r[t];"production"!==process.env.NODE_ENV&&void 0===e[n]&&i(`No reducer provided for key "${n}"`),"function"==typeof e[n]&&(o[n]=e[n])}const s=Object.keys(o);let c,u;"production"!==process.env.NODE_ENV&&(c={});try{!function(e){Object.keys(e).forEach(r=>{const o=e[r];if(void 0===o(void 0,{type:n.INIT}))throw new Error("production"===process.env.NODE_ENV?t(12):`The slice reducer for key "${r}" 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(void 0===o(void 0,{type:n.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?t(13):`The slice reducer for key "${r}" returned undefined when probed with a random type. Don't try to handle '${n.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.`)})}(o)}catch(e){u=e}return function(e={},r){if(u)throw u;if("production"!==process.env.NODE_ENV){const t=a(e,o,r,c);t&&i(t)}let n=!1;const l={};for(let i=0;i<s.length;i++){const a=s[i],c=o[a],u=e[a],f=c(u,r);if(void 0===f){const e=r&&r.type;throw new Error("production"===process.env.NODE_ENV?t(14):`When called with an action of type ${e?`"${String(e)}"`:"(unknown type)"}, the slice reducer for key "${a}" 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.`)}l[a]=f,n=n||f!==u}return n=n||s.length!==Object.keys(e).length,n?l:e}}function c(e){return o(e)&&"type"in e&&"string"==typeof e.type}var u=Symbol.for("immer-nothing"),l=Symbol.for("immer-draftable"),f=Symbol.for("immer-state"),d="production"!==process.env.NODE_ENV?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function p(e,...t){if("production"!==process.env.NODE_ENV){const r=d[e],n="function"==typeof r?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var y=Object.getPrototypeOf;function h(e){return!!e&&!!e[f]}function m(e){return!!e&&(b(e)||Array.isArray(e)||!!e[l]||!!e.constructor?.[l]||_(e)||A(e))}var g=Object.prototype.constructor.toString();function b(e){if(!e||"object"!=typeof e)return!1;const t=y(e);if(null===t)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===g}function v(e,t){0===w(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function w(e){const t=e[f];return t?t.type_:Array.isArray(e)?1:_(e)?2:A(e)?3:0}function S(e,t){return 2===w(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function E(e,t){return 2===w(e)?e.get(t):e[t]}function O(e,t,r){const n=w(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function _(e){return e instanceof Map}function A(e){return e instanceof Set}function T(e){return e.copy_||e.base_}function R(e,t){if(_(e))return new Map(e);if(A(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=b(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[f];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const o=r[n],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(y(e),t)}{const t=y(e);if(null!==t&&r)return{...e};const n=Object.create(t);return Object.assign(n,e)}}function j(e,t=!1){return k(e)||h(e)||!m(e)||(w(e)>1&&(e.set=e.add=e.clear=e.delete=P),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>j(t,!0))),e}function P(){p(2)}function k(e){return Object.isFrozen(e)}var C,N={};function x(e){const t=N[e];return t||p(0,e),t}function I(){return C}function D(e,t){t&&(x("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function q(e){F(e),e.drafts_.forEach(U),e.drafts_=null}function F(e){e===C&&(C=e.parent_)}function M(e){return C={drafts_:[],parent_:C,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function U(e){const t=e[f];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function L(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[f].modified_&&(q(t),p(4)),m(e)&&(e=$(t,e),t.parent_||z(t,e)),t.patches_&&x("Patches").generateReplacementPatches_(r[f].base_,e,t.patches_,t.inversePatches_)):e=$(t,r,[]),q(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==u?e:void 0}function $(e,t,r){if(k(t))return t;const n=t[f];if(!n)return v(t,(o,i)=>Q(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return z(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const t=n.copy_;let o=t,i=!1;3===n.type_&&(o=new Set(t),t.clear(),i=!0),v(o,(o,a)=>Q(e,n,t,o,a,r,i)),z(e,t,!1),r&&e.patches_&&x("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Q(e,t,r,n,o,i,a){if("production"!==process.env.NODE_ENV&&o===r&&p(5),h(o)){const a=$(e,o,i&&t&&3!==t.type_&&!S(t.assigned_,n)?i.concat(n):void 0);if(O(r,n,a),!h(a))return;e.canAutoFreeze_=!1}else a&&r.add(o);if(m(o)&&!k(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;$(e,o),t&&t.scope_.parent_||"symbol"==typeof n||!Object.prototype.propertyIsEnumerable.call(r,n)||z(e,o)}}function z(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&j(t,r)}var B={get(e,t){if(t===f)return e;const r=T(e);if(!S(r,t))return function(e,t,r){const n=H(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);const n=r[t];return e.finalized_||!m(n)?n:n===K(e.base_,t)?(G(e),e.copy_[t]=J(n,e)):n},has:(e,t)=>t in T(e),ownKeys:e=>Reflect.ownKeys(T(e)),set(e,t,r){const n=H(T(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=K(T(e),t),a=n?.[f];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(((o=r)===(i=n)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==r||S(e.base_,t)))return!0;G(e),W(e)}var o,i;return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==K(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,G(e),W(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=T(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){p(11)},getPrototypeOf:e=>y(e.base_),setPrototypeOf(){p(12)}},V={};function K(e,t){const r=e[f];return(r?T(r):e)[t]}function H(e,t){if(!(t in e))return;let r=y(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=y(r)}}function W(e){e.modified_||(e.modified_=!0,e.parent_&&W(e.parent_))}function G(e){e.copy_||(e.copy_=R(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function J(e,t){const r=_(e)?x("MapSet").proxyMap_(e,t):A(e)?x("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:I(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=B;r&&(o=[n],i=V);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}(e,t);return(t?t.scope_:I()).drafts_.push(r),r}function Y(e){return h(e)||p(10,e),X(e)}function X(e){if(!m(e)||k(e))return e;const t=e[f];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=R(e,t.scope_.immer_.useStrictShallowCopy_)}else r=R(e,!0);return v(r,(e,t)=>{O(r,e,X(t))}),t&&(t.finalized_=!1),r}function Z(){"production"!==process.env.NODE_ENV&&d.push('Sets cannot have "replace" patches.',function(e){return"Unsupported patch operation: "+e},function(e){return"Cannot apply patch, path doesn't resolve: "+e},"Patching reserved attributes like __proto__, prototype and constructor is not allowed");const e="replace",t="add",r="remove";function n(e){if(!m(e))return e;if(Array.isArray(e))return e.map(n);if(_(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,n(t)]));if(A(e))return new Set(Array.from(e).map(n));const t=Object.create(y(e));for(const r in e)t[r]=n(e[r]);return S(e,l)&&(t[l]=e[l]),t}function o(e){return h(e)?n(e):e}!function(e,t){N[e]||(N[e]=t)}("Patches",{applyPatches_:function(o,i){return i.forEach(i=>{const{path:a,op:s}=i;let c=o;for(let e=0;e<a.length-1;e++){const t=w(c);let r=a[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),0!==t&&1!==t||"__proto__"!==r&&"constructor"!==r||p(19),"function"==typeof c&&"prototype"===r&&p(19),c=E(c,r),"object"!=typeof c&&p(18,a.join("/"))}const u=w(c),l=n(i.value),f=a[a.length-1];switch(s){case e:switch(u){case 2:return c.set(f,l);case 3:p(16);default:return c[f]=l}case t:switch(u){case 1:return"-"===f?c.push(l):c.splice(f,0,l);case 2:return c.set(f,l);case 3:return c.add(l);default:return c[f]=l}case r:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(i.value);default:return delete c[f]}default:p(17,s)}}),o},generatePatches_:function(n,i,a,s){switch(n.type_){case 0:case 2:return function(n,i,a,s){const{base_:c,copy_:u}=n;v(n.assigned_,(n,l)=>{const f=E(c,n),d=E(u,n),p=l?S(c,n)?e:t:r;if(f===d&&p===e)return;const y=i.concat(n);a.push(p===r?{op:p,path:y}:{op:p,path:y,value:d}),s.push(p===t?{op:r,path:y}:p===r?{op:t,path:y,value:o(f)}:{op:e,path:y,value:o(f)})})}(n,i,a,s);case 1:return function(n,i,a,s){let{base_:c,assigned_:u}=n,l=n.copy_;l.length<c.length&&([c,l]=[l,c],[a,s]=[s,a]);for(let t=0;t<c.length;t++)if(u[t]&&l[t]!==c[t]){const r=i.concat([t]);a.push({op:e,path:r,value:o(l[t])}),s.push({op:e,path:r,value:o(c[t])})}for(let e=c.length;e<l.length;e++){const r=i.concat([e]);a.push({op:t,path:r,value:o(l[e])})}for(let e=l.length-1;c.length<=e;--e){const t=i.concat([e]);s.push({op:r,path:t})}}(n,i,a,s);case 3:return function(e,n,o,i){let{base_:a,copy_:s}=e,c=0;a.forEach(e=>{if(!s.has(e)){const a=n.concat([c]);o.push({op:r,path:a,value:e}),i.unshift({op:t,path:a,value:e})}c++}),c=0,s.forEach(e=>{if(!a.has(e)){const a=n.concat([c]);o.push({op:t,path:a,value:e}),i.unshift({op:r,path:a,value:e})}c++})}(n,i,a,s)}},generateReplacementPatches_:function(t,r,n,o){n.push({op:e,path:[],value:r===u?void 0:r}),o.push({op:e,path:[],value:t})}})}v(B,(e,t)=>{V[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),V.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&p(13),V.set.call(this,e,t,void 0)},V.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&p(14),B.set.call(this,e[0],t,r,e[0])};var ee=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...o){return n.produce(e,e=>t.call(this,e,...o))}}let n;if("function"!=typeof t&&p(6),void 0!==r&&"function"!=typeof r&&p(7),m(e)){const o=M(this),i=J(e,void 0);let a=!0;try{n=t(i),a=!1}finally{a?q(o):F(o)}return D(o,r),L(n,o)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===u&&(n=void 0),this.autoFreeze_&&j(n,!0),r){const t=[],o=[];x("Patches").generateReplacementPatches_(e,n,t,o),r(t,o)}return n}p(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){m(e)||p(8),h(e)&&(e=Y(e));const t=M(this),r=J(e,void 0);return r[f].isManual_=!0,F(t),r}finishDraft(e,t){const r=e&&e[f];r&&r.isManual_||p(9);const{scope_:n}=r;return D(n,t),L(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=x("Patches").applyPatches_;return h(e)?n(e,t):this.produce(e,e=>n(e,t))}},te=ee.produce,re=ee.produceWithPatches.bind(ee);ee.setAutoFreeze.bind(ee),ee.setUseStrictShallowCopy.bind(ee);var ne=ee.applyPatches.bind(ee);ee.createDraft.bind(ee),ee.finishDraft.bind(ee);var oe=(e,t,r)=>{if(1===t.length&&t[0]===r){let r=!1;try{const t={};e(t)===t&&(r=!0)}catch{}if(r){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.",{stack:e})}}},ie=(e,t,r)=>{const{memoize:n,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,s=n(()=>({}),...o);if(s.apply(null,i)!==s.apply(null,a)){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`",{arguments:r,firstInputs:i,secondInputs:a,stack:e})}},ae={inputStabilityCheck:"once",identityFunctionCheck:"once"},se=e=>Array.isArray(e)?e:[e];function ce(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var ue="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function le(){return{s:0,v:void 0,o:null,p:null}}function fe(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=t;let o,i=0;function a(){let t=r;const{length:a}=arguments;for(let e=0,r=a;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t=le(),e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t=le(),e.set(r,t)):t=n}}const s=t;let c;if(1===t.s)c=t.v;else if(c=e.apply(null,arguments),i++,n){const e=o?.deref?.()??o;null!=e&&n(e,c)&&(c=e,0!==i&&i--),o="object"==typeof c&&null!==c||"function"==typeof c?new ue(c):c}return s.s=1,s.v=c,c}return a.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function de(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...r,...i},{memoize:c,memoizeOptions:u=[],argsMemoize:l=fe,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=se(u),y=se(f),h=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),m=c(function(){return n++,a.apply(null,arguments)},...p);let g=!0;const b=l(function(){o++;const e=ce(h,arguments);if(t=m.apply(null,e),"production"!==process.env.NODE_ENV){const{identityFunctionCheck:r,inputStabilityCheck:n}=((e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...ae,...t};return{identityFunctionCheck:{shouldRun:"always"===r||"once"===r&&e,run:oe},inputStabilityCheck:{shouldRun:"always"===n||"once"===n&&e,run:ie}}})(g,d);if(r.shouldRun&&r.run(a,e,t),n.shouldRun){const t=ce(h,arguments);n.run({inputSelectorResults:e,inputSelectorResultsCopy:t},{memoize:c,memoizeOptions:p},arguments)}g&&(g=!1)}return t},...y);return Object.assign(b,{resultFunc:a,memoizedResultFunc:m,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:c,argsMemoize:l})};return Object.assign(n,{withTypes:()=>n}),n}var pe=de(fe),ye=Object.assign((e,t=pe)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>ye}),he=((...e)=>{const t=de(...e),r=Object.assign((...e)=>{const r=t(...e),n=(e,...t)=>r(h(e)?Y(e):e,...t);return Object.assign(n,r),n},{withTypes:()=>r});return r})(fe);function me(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error("production"===process.env.NODE_ENV?tt(0):"prepareAction did not return an object");return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>c(t)&&t.type===e,r}function ge(e){return["type","payload","error","meta"].indexOf(e)>-1}function be(e){return m(e)?te(e,()=>{}):e}function ve(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var we="RTK_autoBatch",Se=()=>e=>({payload:e,meta:{[we]:!0}});function Ee(e){const t={},r=[];let n;const o={addCase(e,i){if("production"!==process.env.NODE_ENV){if(r.length>0)throw new Error("production"===process.env.NODE_ENV?tt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("production"===process.env.NODE_ENV?tt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const a="string"==typeof e?e:e.type;if(!a)throw new Error("production"===process.env.NODE_ENV?tt(28):"`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("production"===process.env.NODE_ENV?tt(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${a}'`);return t[a]=i,o},addMatcher(e,t){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?tt(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:e,reducer:t}),o},addDefaultCase(e){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?tt(31):"`builder.addDefaultCase` can only be called once");return n=e,o}};return e(o),[t,r,n]}var Oe=(e,t)=>{return(r=e)&&"function"==typeof r.match?e.match(t):e(t);var r};function _e(...e){return t=>e.some(e=>Oe(e,t))}function Ae(...e){return t=>e.every(e=>Oe(e,t))}function Te(e,t){if(!e||!e.meta)return!1;const r="string"==typeof e.meta.requestId,n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function Re(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function je(...e){return 0===e.length?e=>Te(e,["pending"]):Re(e)?_e(...e.map(e=>e.pending)):je()(e[0])}function Pe(...e){return 0===e.length?e=>Te(e,["rejected"]):Re(e)?_e(...e.map(e=>e.rejected)):Pe()(e[0])}function ke(...e){return 0===e.length||Re(e)?Ae(Pe(...e),e=>e&&e.meta&&e.meta.rejectedWithValue):ke()(e[0])}function Ce(...e){return 0===e.length?e=>Te(e,["fulfilled"]):Re(e)?_e(...e.map(e=>e.fulfilled)):Ce()(e[0])}function Ne(...e){return 0===e.length?e=>Te(e,["pending","fulfilled","rejected"]):Re(e)?_e(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):Ne()(e[0])}var xe=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Ie=["name","message","stack","code"],De=class{constructor(e,t){this.payload=e,this.meta=t}_type},qe=class{constructor(e,t){this.payload=e,this.meta=t}_type},Fe=e=>{if("object"==typeof e&&null!==e){const t={};for(const r of Ie)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}},Me="External signal was aborted",Ue=(()=>{function e(e,t,r){const n=me(e+"/fulfilled",(e,t,r,n)=>({payload:e,meta:{...n||{},arg:r,requestId:t,requestStatus:"fulfilled"}})),o=me(e+"/pending",(e,t,r)=>({payload:void 0,meta:{...r||{},arg:t,requestId:e,requestStatus:"pending"}})),i=me(e+"/rejected",(e,t,n,o,i)=>({payload:o,error:(r&&r.serializeError||Fe)(e||"Rejected"),meta:{...i||{},arg:n,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}}));return Object.assign(function(e,{signal:a}={}){return(s,c,u)=>{const l=r?.idGenerator?r.idGenerator(e):xe(),f=new AbortController;let d,p;function y(e){p=e,f.abort()}a&&(a.aborted?y(Me):a.addEventListener("abort",()=>y(Me),{once:!0}));const h=async function(){let a;try{let i=r?.condition?.(e,{getState:c,extra:u});if(null!==(h=i)&&"object"==typeof h&&"function"==typeof h.then&&(i=await i),!1===i||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const m=new Promise((e,t)=>{d=()=>{t({name:"AbortError",message:p||"Aborted"})},f.signal.addEventListener("abort",d)});s(o(l,e,r?.getPendingMeta?.({requestId:l,arg:e},{getState:c,extra:u}))),a=await Promise.race([m,Promise.resolve(t(e,{dispatch:s,getState:c,extra:u,requestId:l,signal:f.signal,abort:y,rejectWithValue:(e,t)=>new De(e,t),fulfillWithValue:(e,t)=>new qe(e,t)})).then(t=>{if(t instanceof De)throw t;return t instanceof qe?n(t.payload,l,e,t.meta):n(t,l,e)})])}catch(t){a=t instanceof De?i(null,l,e,t.payload,t.meta):i(t,l,e)}finally{d&&f.signal.removeEventListener("abort",d)}var h;return r&&!r.dispatchConditionRejection&&i.match(a)&&a.meta.condition||s(a),a}();return Object.assign(h,{abort:y,requestId:l,arg:e,unwrap:()=>h.then(Le)})}},{pending:o,rejected:i,fulfilled:n,settled:_e(i,n),typePrefix:e})}return e.withTypes=()=>e,e})();function Le(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var $e=Symbol.for("rtk-slice-createasyncthunk");function Qe(e,t){return`${e}/${t}`}function ze(e,t,r,n){function o(o,...i){let a=t(o);if(void 0===a)if(n)a=r();else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?tt(16):"selectState returned undefined for an uninjected slice reducer");return e(a,...i)}return o.unwrapped=e,o}var Be=function({creators:e}={}){const t=e?.asyncThunk?.[$e];return function(e){const{name:r,reducerPath:n=r}=e;if(!r)throw new Error("production"===process.env.NODE_ENV?tt(11):"`name` is a required option for createSlice");"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&void 0===e.initialState&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error("production"===process.env.NODE_ENV?tt(12):"`context.addCase` cannot be called with an empty action type");if(r in a.sliceCaseReducersByType)throw new Error("production"===process.env.NODE_ENV?tt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+r);return a.sliceCaseReducersByType[r]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function c(){if("production"!==process.env.NODE_ENV&&"object"==typeof e.extraReducers)throw new Error("production"===process.env.NODE_ENV?tt(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[t={},r=[],n]="function"==typeof e.extraReducers?Ee(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){process.env.NODE_ENV;let r,[n,o,i]=Ee(t);if("function"==typeof e)r=()=>be(e());else{const t=be(e);r=()=>t}function a(e=r(),t){let a=[n[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===a.filter(e=>!!e).length&&(a=[i]),a.reduce((e,r)=>{if(r){if(h(e)){const n=r(e,t);return void 0===n?e:n}if(m(e))return te(e,e=>r(e,t));{const n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return a.getInitialState=r,a}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}i.forEach(n=>{const i=o[n],a={reducerName:n,type:Qe(r,n),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(n))throw new Error("production"===process.env.NODE_ENV?tt(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?me(e,a):me(e))}(a,i,s):function({type:e,reducerName:t},r,n,o){if(!o)throw new Error("production"===process.env.NODE_ENV?tt(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:a,pending:s,rejected:c,settled:u,options:l}=r,f=o(e,i,l);n.exposeAction(t,f),a&&n.addCase(f.fulfilled,a),s&&n.addCase(f.pending,s),c&&n.addCase(f.rejected,c),u&&n.addMatcher(f.settled,u),n.exposeCaseReducer(t,{fulfilled:a||Ve,pending:s||Ve,rejected:c||Ve,settled:u||Ve})}(a,i,s,t)});const u=e=>e,l=new Map,f=new WeakMap;let d;function p(e,t){return d||(d=c()),d(e,t)}function y(){return d||(d=c()),d.getInitialState()}function g(t,r=!1){function n(e){let o=e[t];if(void 0===o)if(r)o=ve(f,n,y);else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?tt(15):"selectSlice returned undefined for an uninjected slice reducer");return o}function o(t=u){const n=ve(l,r,()=>new WeakMap);return ve(n,t,()=>{const n={};for(const[o,i]of Object.entries(e.selectors??{}))n[o]=ze(i,t,()=>ve(f,t,y),r);return n})}return{reducerPath:t,getSelectors:o,get selectors(){return o(n)},selectSlice:n}}const b={name:r,reducer:p,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:y,...g(n),injectInto(e,{reducerPath:t,...r}={}){const o=t??n;return e.inject({reducerPath:o,reducer:p},r),{...b,...g(o,!0)}}};return b}}();function Ve(){}var Ke=h;function He(e){const t=We((t,r)=>e(r));return function(e){return t(e,void 0)}}function We(e){return function(t,r){const n=t=>{!function(e){return c(t=e)&&Object.keys(t).every(ge);var t}(r)?e(r,t):e(r.payload,t)};return Ke(t)?(n(t),t):te(t,n)}}function Ge(e,t){const r=t(e);return"production"!==process.env.NODE_ENV&&void 0===r&&console.warn("The entity passed to the `selectId` implementation returned undefined.","You should probably provide your own `selectId` implementation.","The entity that was passed:",e,"The `selectId` implementation:",t.toString()),r}function Je(e){return Array.isArray(e)||(e=Object.values(e)),e}function Ye(e){return h(e)?Y(e):e}function Xe(e,t,r){e=Je(e);const n=Ye(r.ids),o=new Set(n),i=[],a=new Set([]),s=[];for(const r of e){const e=Ge(r,t);o.has(e)||a.has(e)?s.push({id:e,changes:r}):(a.add(e),i.push(r))}return[i,s,n]}function Ze(e){function t(t,r){const n=Ge(t,e);n in r.entities||(r.ids.push(n),r.entities[n]=t)}function r(e,r){e=Je(e);for(const n of e)t(n,r)}function n(t,r){const n=Ge(t,e);n in r.entities||r.ids.push(n),r.entities[n]=t}function o(e,t){let r=!1;e.forEach(e=>{e in t.entities&&(delete t.entities[e],r=!0)}),r&&(t.ids=t.ids.filter(e=>e in t.entities))}function i(t,r){const n={},o={};if(t.forEach(e=>{e.id in r.entities&&(o[e.id]={id:e.id,changes:{...o[e.id]?.changes,...e.changes}})}),(t=Object.values(o)).length>0){const o=t.filter(t=>function(t,r,n){const o=n.entities[r.id];if(void 0===o)return!1;const i=Object.assign({},o,r.changes),a=Ge(i,e),s=a!==r.id;return s&&(t[r.id]=a,delete n.entities[r.id]),n.entities[a]=i,s}(n,t,r)).length>0;o&&(r.ids=Object.values(r.entities).map(t=>Ge(t,e)))}}function a(t,n){const[o,a]=Xe(t,e,n);r(o,n),i(a,n)}return{removeAll:He(function(e){Object.assign(e,{ids:[],entities:{}})}),addOne:We(t),addMany:We(r),setOne:We(n),setMany:We(function(e,t){e=Je(e);for(const r of e)n(r,t)}),setAll:We(function(e,t){e=Je(e),t.ids=[],t.entities={},r(e,t)}),updateOne:We(function(e,t){return i([e],t)}),updateMany:We(i),upsertOne:We(function(e,t){return a([e],t)}),upsertMany:We(a),removeOne:We(function(e,t){return o([e],t)}),removeMany:We(o)}}function et(e,t,r){const n=function(e,t,r){let n=0,o=e.length;for(;n<o;){let i=n+o>>>1;r(t,e[i])>=0?n=i+1:o=i}return n}(e,t,r);return e.splice(n,0,t),e}function tt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function rt(e,t){return function(){return e.apply(t,arguments)}}const{toString:nt}=Object.prototype,{getPrototypeOf:ot}=Object,{iterator:it,toStringTag:at}=Symbol,st=(e=>t=>{const r=nt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ct=e=>(e=e.toLowerCase(),t=>st(t)===e),ut=e=>t=>typeof t===e,{isArray:lt}=Array,ft=ut("undefined");function dt(e){return null!==e&&!ft(e)&&null!==e.constructor&&!ft(e.constructor)&&ht(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pt=ct("ArrayBuffer"),yt=ut("string"),ht=ut("function"),mt=ut("number"),gt=e=>null!==e&&"object"==typeof e,bt=e=>{if("object"!==st(e))return!1;const t=ot(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||at in e||it in e)},vt=ct("Date"),wt=ct("File"),St=ct("Blob"),Et=ct("FileList"),Ot=ct("URLSearchParams"),[_t,At,Tt,Rt]=["ReadableStream","Request","Response","Headers"].map(ct);function jt(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),lt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(dt(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function Pt(e,t){if(dt(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const kt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ct=e=>!ft(e)&&e!==kt,Nt=(xt="undefined"!=typeof Uint8Array&&ot(Uint8Array),e=>xt&&e instanceof xt);var xt;const It=ct("HTMLFormElement"),Dt=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qt=ct("RegExp"),Ft=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};jt(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},Mt=ct("AsyncFunction"),Ut=(Lt="function"==typeof setImmediate,$t=ht(kt.postMessage),Lt?setImmediate:$t?(Qt=`axios@${Math.random()}`,zt=[],kt.addEventListener("message",({source:e,data:t})=>{e===kt&&t===Qt&&zt.length&&zt.shift()()},!1),e=>{zt.push(e),kt.postMessage(Qt,"*")}):e=>setTimeout(e));var Lt,$t,Qt,zt;const Bt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(kt):"undefined"!=typeof process&&process.nextTick||Ut;var Vt={isArray:lt,isArrayBuffer:pt,isBuffer:dt,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ht(e.append)&&("formdata"===(t=st(e))||"object"===t&&ht(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pt(e.buffer),t},isString:yt,isNumber:mt,isBoolean:e=>!0===e||!1===e,isObject:gt,isPlainObject:bt,isEmptyObject:e=>{if(!gt(e)||dt(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:_t,isRequest:At,isResponse:Tt,isHeaders:Rt,isUndefined:ft,isDate:vt,isFile:wt,isBlob:St,isRegExp:qt,isFunction:ht,isStream:e=>gt(e)&&ht(e.pipe),isURLSearchParams:Ot,isTypedArray:Nt,isFileList:Et,forEach:jt,merge:function e(){const{caseless:t}=Ct(this)&&this||{},r={},n=(n,o)=>{const i=t&&Pt(r,o)||o;bt(r[i])&&bt(n)?r[i]=e(r[i],n):bt(n)?r[i]=e({},n):lt(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&jt(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(jt(t,(t,n)=>{r&&ht(t)?e[n]=rt(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&ot(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:st,kindOfTest:ct,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(lt(e))return e;let t=e.length;if(!mt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[it]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:It,hasOwnProperty:Dt,hasOwnProp:Dt,reduceDescriptors:Ft,freezeMethods:e=>{Ft(e,(t,r)=>{if(ht(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];ht(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return lt(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Pt,global:kt,isContextDefined:Ct,isSpecCompliantForm:function(e){return!!(e&&ht(e.append)&&"FormData"===e[at]&&e[it])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(gt(e)){if(t.indexOf(e)>=0)return;if(dt(e))return e;if(!("toJSON"in e)){t[n]=e;const o=lt(e)?[]:{};return jt(e,(e,t)=>{const i=r(e,n+1);!ft(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Mt,isThenable:e=>e&&(gt(e)||ht(e))&&ht(e.then)&&ht(e.catch),setImmediate:Ut,asap:Bt,isIterable:e=>null!=e&&ht(e[it])};function Kt(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}Vt.inherits(Kt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Vt.toJSONObject(this.config),code:this.code,status:this.status}}});const Ht=Kt.prototype,Wt={};function Gt(e){return Vt.isPlainObject(e)||Vt.isArray(e)}function Jt(e){return Vt.endsWith(e,"[]")?e.slice(0,-2):e}function Yt(e,t,r){return e?e.concat(t).map(function(e,t){return e=Jt(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Wt[e]={value:e}}),Object.defineProperties(Kt,Wt),Object.defineProperty(Ht,"isAxiosError",{value:!0}),Kt.from=(e,t,r,n,o,i)=>{const a=Object.create(Ht);return Vt.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Kt.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Xt=Vt.toFlatObject(Vt,{},null,function(e){return/^is[A-Z]/.test(e)});function Zt(e,t,r){if(!Vt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=Vt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Vt.isUndefined(t[e])})).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Vt.isSpecCompliantForm(t);if(!Vt.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Vt.isDate(e))return e.toISOString();if(Vt.isBoolean(e))return e.toString();if(!s&&Vt.isBlob(e))throw new Kt("Blob is not supported. Use a Buffer instead.");return Vt.isArrayBuffer(e)||Vt.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(Vt.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Vt.isArray(e)&&function(e){return Vt.isArray(e)&&!e.some(Gt)}(e)||(Vt.isFileList(e)||Vt.endsWith(r,"[]"))&&(s=Vt.toArray(e)))return r=Jt(r),s.forEach(function(e,n){!Vt.isUndefined(e)&&null!==e&&t.append(!0===a?Yt([r],n,i):null===a?r:r+"[]",c(e))}),!1;return!!Gt(e)||(t.append(Yt(o,r,i),c(e)),!1)}const l=[],f=Object.assign(Xt,{defaultVisitor:u,convertValue:c,isVisitable:Gt});if(!Vt.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Vt.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Vt.forEach(r,function(r,i){!0===(!(Vt.isUndefined(r)||null===r)&&o.call(t,r,Vt.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])}),l.pop()}}(e),t}function er(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function tr(e,t){this._pairs=[],e&&Zt(e,this,t)}const rr=tr.prototype;function nr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function or(e,t,r){if(!t)return e;const n=r&&r.encode||nr;Vt.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):Vt.isURLSearchParams(t)?t.toString():new tr(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}rr.append=function(e,t){this._pairs.push([e,t])},rr.toString=function(e){const t=e?function(t){return e.call(this,t,er)}:er;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ir{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Vt.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ar={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sr={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tr,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const cr="undefined"!=typeof window&&"undefined"!=typeof document,ur="object"==typeof navigator&&navigator||void 0,lr=cr&&(!ur||["ReactNative","NativeScript","NS"].indexOf(ur.product)<0),fr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dr=cr&&window.location.href||"http://localhost";var pr={...Object.freeze({__proto__:null,hasBrowserEnv:cr,hasStandardBrowserEnv:lr,hasStandardBrowserWebWorkerEnv:fr,navigator:ur,origin:dr}),...sr};function yr(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Vt.isArray(n)?n.length:i,s?(Vt.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a):(n[i]&&Vt.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&Vt.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!a)}if(Vt.isFormData(e)&&Vt.isFunction(e.entries)){const r={};return Vt.forEachEntry(e,(e,n)=>{t(function(e){return Vt.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const hr={transitional:ar,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Vt.isObject(e);if(o&&Vt.isHTMLForm(e)&&(e=new FormData(e)),Vt.isFormData(e))return n?JSON.stringify(yr(e)):e;if(Vt.isArrayBuffer(e)||Vt.isBuffer(e)||Vt.isStream(e)||Vt.isFile(e)||Vt.isBlob(e)||Vt.isReadableStream(e))return e;if(Vt.isArrayBufferView(e))return e.buffer;if(Vt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Zt(e,new pr.classes.URLSearchParams,{visitor:function(e,t,r,n){return pr.isNode&&Vt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Vt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Zt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e){if(Vt.isString(e))try{return(0,JSON.parse)(e),Vt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hr.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Vt.isResponse(e)||Vt.isReadableStream(e))return e;if(e&&Vt.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Kt.from(e,Kt.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Vt.forEach(["delete","get","head","post","put","patch"],e=>{hr.headers[e]={}});const mr=Vt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gr=Symbol("internals");function br(e){return e&&String(e).trim().toLowerCase()}function vr(e){return!1===e||null==e?e:Vt.isArray(e)?e.map(vr):String(e)}function wr(e,t,r,n,o){return Vt.isFunction(n)?n.call(this,t,r):(o&&(t=r),Vt.isString(t)?Vt.isString(n)?-1!==t.indexOf(n):Vt.isRegExp(n)?n.test(t):void 0:void 0)}let Sr=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=br(t);if(!o)throw new Error("header name must be a non-empty string");const i=Vt.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=vr(e))}const i=(e,t)=>Vt.forEach(e,(e,r)=>o(e,r,t));if(Vt.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Vt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&mr[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(Vt.isObject(e)&&Vt.isIterable(e)){let r,n,o={};for(const t of e){if(!Vt.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?Vt.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=br(e)){const r=Vt.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Vt.isFunction(t))return t.call(this,e,r);if(Vt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=br(e)){const r=Vt.findKey(this,e);return!(!r||void 0===this[r]||t&&!wr(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=br(e)){const o=Vt.findKey(r,e);!o||t&&!wr(0,r[o],o,t)||(delete r[o],n=!0)}}return Vt.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!wr(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Vt.forEach(this,(n,o)=>{const i=Vt.findKey(r,o);if(i)return t[i]=vr(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();a!==o&&delete t[o],t[a]=vr(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Vt.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Vt.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[gr]=this[gr]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=br(e);t[n]||(function(e,t){const r=Vt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return Vt.isArray(e)?e.forEach(n):n(e),this}};function Er(e,t){const r=this||hr,n=t||r,o=Sr.from(n.headers);let i=n.data;return Vt.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Or(e){return!(!e||!e.__CANCEL__)}function _r(e,t,r){Kt.call(this,null==e?"canceled":e,Kt.ERR_CANCELED,t,r),this.name="CanceledError"}function Ar(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Kt("Request failed with status code "+r.status,[Kt.ERR_BAD_REQUEST,Kt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Sr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Vt.reduceDescriptors(Sr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Vt.freezeMethods(Sr),Vt.inherits(_r,Kt,{__CANCEL__:!0});const Tr=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=n[a];o||(o=c),r[i]=s,n[i]=c;let l=a,f=0;for(;l!==i;)f+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},i-s)))},()=>r&&a(r)]}(r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,c=o(s);n=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},Rr=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},jr=e=>(...t)=>Vt.asap(()=>e(...t));var Pr=pr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,pr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(pr.origin),pr.navigator&&/(msie|trident)/i.test(pr.navigator.userAgent)):()=>!0,kr=pr.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];Vt.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Vt.isString(n)&&a.push("path="+n),Vt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Cr(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Nr=e=>e instanceof Sr?{...e}:e;function xr(e,t){t=t||{};const r={};function n(e,t,r,n){return Vt.isPlainObject(e)&&Vt.isPlainObject(t)?Vt.merge.call({caseless:n},e,t):Vt.isPlainObject(t)?Vt.merge({},t):Vt.isArray(t)?t.slice():t}function o(e,t,r,o){return Vt.isUndefined(t)?Vt.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!Vt.isUndefined(t))return n(void 0,t)}function a(e,t){return Vt.isUndefined(t)?Vt.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(Nr(e),Nr(t),0,!0)};return Vt.forEach(Object.keys({...e,...t}),function(n){const i=c[n]||o,a=i(e[n],t[n],n);Vt.isUndefined(a)&&i!==s||(r[n]=a)}),r}var Ir=e=>{const t=xr({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=Sr.from(s),t.url=or(Cr(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Vt.isFormData(n))if(pr.hasStandardBrowserEnv||pr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(pr.hasStandardBrowserEnv&&(o&&Vt.isFunction(o)&&(o=o(t)),o||!1!==o&&Pr(t.url))){const e=i&&a&&kr.read(a);e&&s.set(i,e)}return t},Dr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Ir(e);let o=n.data;const i=Sr.from(n.headers).normalize();let a,s,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=n;function y(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function m(){if(!h)return;const n=Sr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Ar(function(e){t(e),y()},function(e){r(e),y()},{data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(r(new Kt("Request aborted",Kt.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new Kt("Network Error",Kt.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||ar;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Kt(t,o.clarifyTimeoutError?Kt.ETIMEDOUT:Kt.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Vt.forEach(i.toJSON(),function(e,t){h.setRequestHeader(t,e)}),Vt.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),f&&"json"!==f&&(h.responseType=n.responseType),p&&([c,l]=Tr(p,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,u]=Tr(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new _r(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);g&&-1===pr.protocols.indexOf(g)?r(new Kt("Unsupported protocol "+g+":",Kt.ERR_BAD_REQUEST,e)):h.send(o||null)})};const qr=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Kt?t:new _r(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Kt(`timeout ${t} of ms exceeded`,Kt.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=()=>Vt.asap(a),s}},Fr=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},Mr=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Fr(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ur="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Lr=Ur&&"function"==typeof ReadableStream,$r=Ur&&("function"==typeof TextEncoder?(Qr=new TextEncoder,e=>Qr.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Qr;const zr=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Br=Lr&&zr(()=>{let e=!1;const t=new Request(pr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Vr=Lr&&zr(()=>Vt.isReadableStream(new Response("").body)),Kr={stream:Vr&&(e=>e.body)};var Hr;Ur&&(Hr=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Kr[e]&&(Kr[e]=Vt.isFunction(Hr[e])?t=>t[e]():(t,r)=>{throw new Kt(`Response type '${e}' is not supported`,Kt.ERR_NOT_SUPPORT,r)})}));const Wr={http:null,xhr:Dr,fetch:Ur&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=Ir(e);u=u?(u+"").toLowerCase():"text";let p,y=qr([o,i&&i.toAbortSignal()],a);const h=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let m;try{if(c&&Br&&"get"!==r&&"head"!==r&&0!==(m=await(async(e,t)=>{const r=Vt.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Vt.isBlob(e))return e.size;if(Vt.isSpecCompliantForm(e)){const t=new Request(pr.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Vt.isArrayBufferView(e)||Vt.isArrayBuffer(e)?e.byteLength:(Vt.isURLSearchParams(e)&&(e+=""),Vt.isString(e)?(await $r(e)).byteLength:void 0)})(t):r})(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(Vt.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=Rr(m,Tr(jr(c)));n=Mr(r.body,65536,e,t)}}Vt.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...d,signal:y,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0});let i=await fetch(p,d);const a=Vr&&("stream"===u||"response"===u);if(Vr&&(s||a&&h)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=Vt.toFiniteNumber(i.headers.get("content-length")),[r,n]=s&&Rr(t,Tr(jr(s),!0))||[];i=new Response(Mr(i.body,65536,r,()=>{n&&n(),h&&h()}),e)}u=u||"text";let g=await Kr[Vt.findKey(Kr,u)||"text"](i,e);return!a&&h&&h(),await new Promise((t,r)=>{Ar(t,r,{data:g,headers:Sr.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})})}catch(t){if(h&&h(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Kt("Network Error",Kt.ERR_NETWORK,e,p),{cause:t.cause||t});throw Kt.from(t,t&&t.code,e,p)}})};Vt.forEach(Wr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Gr=e=>`- ${e}`,Jr=e=>Vt.isFunction(e)||null===e||!1===e;var Yr=e=>{e=Vt.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!Jr(r)&&(n=Wr[(t=String(r)).toLowerCase()],void 0===n))throw new Kt(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Kt("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Gr).join("\n"):" "+Gr(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function Xr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _r(null,e)}function Zr(e){return Xr(e),e.headers=Sr.from(e.headers),e.data=Er.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yr(e.adapter||hr.adapter)(e).then(function(t){return Xr(e),t.data=Er.call(e,e.transformResponse,t),t.headers=Sr.from(t.headers),t},function(t){return Or(t)||(Xr(e),t&&t.response&&(t.response.data=Er.call(e,e.transformResponse,t.response),t.response.headers=Sr.from(t.response.headers))),Promise.reject(t)})}const en="1.11.0",tn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const rn={};tn.transitional=function(e,t,r){function n(e,t){return"[Axios v"+en+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new Kt(n(o," has been removed"+(t?" in "+t:"")),Kt.ERR_DEPRECATED);return t&&!rn[o]&&(rn[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},tn.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var nn={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Kt("options must be an object",Kt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new Kt("option "+i+" must be "+r,Kt.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Kt("Unknown option "+i,Kt.ERR_BAD_OPTION)}},validators:tn};const on=nn.validators;let an=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ir,response:new ir}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=xr(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&nn.assertOptions(r,{silentJSONParsing:on.transitional(on.boolean),forcedJSONParsing:on.transitional(on.boolean),clarifyTimeoutError:on.transitional(on.boolean)},!1),null!=n&&(Vt.isFunction(n)?t.paramsSerializer={serialize:n}:nn.assertOptions(n,{encode:on.function,serialize:on.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nn.assertOptions(t,{baseUrl:on.spelling("baseURL"),withXsrfToken:on.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Vt.merge(o.common,o[t.method]);o&&Vt.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Sr.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,f=0;if(!s){const e=[Zr.bind(this),void 0];for(e.unshift(...a),e.push(...c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=a.length;let d=t;for(f=0;f<l;){const t=a[f++],r=a[f++];try{d=t(d)}catch(e){r.call(this,e);break}}try{u=Zr.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return or(Cr((e=xr(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Vt.forEach(["delete","get","head","options"],function(e){an.prototype[e]=function(t,r){return this.request(xr(r||{},{method:e,url:t,data:(r||{}).data}))}}),Vt.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(xr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}an.prototype[e]=t(),an.prototype[e+"Form"]=t(!0)});const sn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(sn).forEach(([e,t])=>{sn[t]=e});const cn=function e(t){const r=new an(t),n=rt(an.prototype.request,r);return Vt.extend(n,an.prototype,r,{allOwnKeys:!0}),Vt.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(xr(t,r))},n}(hr);cn.Axios=an,cn.CanceledError=_r,cn.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new _r(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},cn.isCancel=Or,cn.VERSION=en,cn.toFormData=Zt,cn.AxiosError=Kt,cn.Cancel=cn.CanceledError,cn.all=function(e){return Promise.all(e)},cn.spread=function(e){return function(t){return e.apply(null,t)}},cn.isAxiosError=function(e){return Vt.isObject(e)&&!0===e.isAxiosError},cn.mergeConfig=xr,cn.AxiosHeaders=Sr,cn.formToJSON=e=>yr(Vt.isHTMLForm(e)?new FormData(e):e),cn.getAdapter=Yr,cn.HttpStatusCode=sn,cn.default=cn;const{Axios:un,AxiosError:ln,CanceledError:fn,isCancel:dn,CancelToken:pn,VERSION:yn,all:hn,Cancel:mn,isAxiosError:gn,spread:bn,toFormData:vn,AxiosHeaders:wn,HttpStatusCode:Sn,formToJSON:En,getAdapter:On,mergeConfig:_n}=cn;var An,Tn,Rn,jn,Pn,kn,Cn,Nn,xn,In,Dn,qn,Fn,Mn,Un,Ln,$n,Qn,zn,Bn,Vn,Kn,Hn,Wn,Gn,Jn,Yn,Xn,Zn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function eo(){return In?xn:(In=1,xn=SyntaxError)}function to(){return qn?Dn:(qn=1,Dn=TypeError)}function ro(){if(Wn)return Hn;Wn=1;var e=function(){if(Kn)return Vn;Kn=1;var e=Object.prototype.toString,t=Math.max,r=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};return Vn=function(n){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),s=t(0,o.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var e=o.apply(this,r(a,arguments));return Object(e)===e?e:this}return o.apply(n,r(a,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i},Vn}();return Hn=Function.prototype.bind||e}function no(){if(Xn)return Yn;var e;Xn=1;var t=Tn?An:(Tn=1,An=Error),r=jn?Rn:(jn=1,Rn=EvalError),n=kn?Pn:(kn=1,Pn=RangeError),o=Nn?Cn:(Nn=1,Cn=ReferenceError),i=eo(),a=to(),s=Mn?Fn:(Mn=1,Fn=URIError),c=Function,u=function(e){try{return c('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var f=function(){throw new a},d=l?function(){try{return f}catch(e){try{return l(arguments,"callee").get}catch(e){return f}}}():f,p=function(){if(Qn)return $n;Qn=1;var e="undefined"!=typeof Symbol&&Symbol,t=Ln?Un:(Ln=1,Un=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0});return $n=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"==typeof e("foo")&&"symbol"==typeof Symbol("bar")&&t()}}()(),y=function(){if(Bn)return zn;Bn=1;var e={__proto__:null,foo:{}},t=Object;return zn=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof t)}}()(),h=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),m={},g="undefined"!=typeof Uint8Array&&h?h(Uint8Array):e,b={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":p&&h?h([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&h?h(h([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&h?h((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":n,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&h?h((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&h?h(""[Symbol.iterator]()):e,"%Symbol%":p?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":d,"%TypedArray%":g,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":s,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet};if(h)try{null.error}catch(e){var v=h(h(e));b["%Error.prototype%"]=v}var w=function e(t){var r;if("%AsyncFunction%"===t)r=u("async function () {}");else if("%GeneratorFunction%"===t)r=u("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=u("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&h&&(r=h(o.prototype))}return b[t]=r,r},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=ro(),O=function(){if(Jn)return Gn;Jn=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=ro();return Gn=r.call(e,t)}(),_=E.call(Function.call,Array.prototype.concat),A=E.call(Function.apply,Array.prototype.splice),T=E.call(Function.call,String.prototype.replace),R=E.call(Function.call,String.prototype.slice),j=E.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,C=function(e,t){var r,n=e;if(O(S,n)&&(n="%"+(r=S[n])[0]+"%"),O(b,n)){var o=b[n];if(o===m&&(o=w(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};return Yn=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=R(e,0,1),r=R(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return T(e,P,function(e,t,r,o){n[n.length]=r?T(o,k,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=C("%"+n+"%",t),s=o.name,c=o.value,u=!1,f=o.alias;f&&(n=f[0],A(r,_([0,1],f)));for(var d=1,p=!0;d<r.length;d+=1){var y=r[d],h=R(y,0,1),m=R(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new i("property names with quotes must have matching quotes");if("constructor"!==y&&p||(u=!0),O(b,s="%"+(n+="."+y)+"%"))c=b[s];else if(null!=c){if(!(y in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=r.length){var g=l(c,y);c=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[y]}else p=O(c,y),c=c[y];p&&!u&&(b[s]=c)}}return c},Yn}var oo,io,ao,so,co,uo,lo,fo,po,yo,ho,mo,go,bo={exports:{}};function vo(){if(io)return oo;io=1;var e=no()("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return oo=e}function wo(){if(so)return ao;so=1;var e=no()("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch(t){e=null}return ao=e}function So(){if(yo)return po;yo=1;var e=no(),t=function(){if(uo)return co;uo=1;var e=vo(),t=eo(),r=to(),n=wo();return co=function(o,i,a){if(!o||"object"!=typeof o&&"function"!=typeof o)throw new r("`obj` must be an object or a function`");if("string"!=typeof i&&"symbol"!=typeof i)throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new r("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!n&&n(o,i);if(e)e(o,i,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:a,writable:null===c&&f?f.writable:!c});else{if(!l&&(s||c||u))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");o[i]=a}},co}(),r=function(){if(fo)return lo;fo=1;var e=vo(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return 1!==e([],"length",{value:1}).length}catch(e){return!0}},lo=t}()(),n=wo(),o=to(),i=e("%Math.floor%");return po=function(e,a){if("function"!=typeof e)throw new o("`fn` is not a function");if("number"!=typeof a||a<0||a>4294967295||i(a)!==a)throw new o("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],c=!0,u=!0;if("length"in e&&n){var l=n(e,"length");l&&!l.configurable&&(c=!1),l&&!l.writable&&(u=!1)}return(c||u||!s)&&(r?t(e,"length",a,!0,!0):t(e,"length",a)),e},po}function Eo(){if(go)return mo;go=1;var e=no(),t=(ho||(ho=1,function(e){var t=ro(),r=no(),n=So(),o=to(),i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(a,i),c=vo(),u=r("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var r=s(t,a,arguments);return n(r,1+u(0,e.length-(arguments.length-1)),!0)};var l=function(){return s(t,i,arguments)};c?c(e.exports,"apply",{value:l}):e.exports.apply=l}(bo)),bo.exports),r=t(e("String.prototype.indexOf"));return mo=function(n,o){var i=e(n,!!o);return"function"==typeof i&&r(n,".prototype.")>-1?t(i):i}}var Oo,_o,Ao,To,Ro,jo,Po,ko,Co,No,xo,Io,Do,qo,Fo=function(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze({__proto__:null,default:{}}));function Mo(){if(To)return Ao;To=1;var e=no(),t=Eo(),r=function(){if(_o)return Oo;_o=1;var e="function"==typeof Map&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&"function"==typeof t.get?t.get:null,n=e&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,s=o&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,u="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,l="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,d=Object.prototype.toString,p=Function.prototype.toString,y=String.prototype.match,h=String.prototype.slice,m=String.prototype.replace,g=String.prototype.toUpperCase,b=String.prototype.toLowerCase,v=RegExp.prototype.test,w=Array.prototype.concat,S=Array.prototype.join,E=Array.prototype.slice,O=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function C(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||v.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-O(-e):O(e);if(n!==e){var o=String(n),i=h.call(t,o.length+1);return m.call(o,r,"$&_")+"."+m.call(m.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(t,r,"$&_")}var N=Fo,x=N.custom,I=U(x)?x:null;function D(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function q(e){return m.call(String(e),/"/g,"&quot;")}function F(e){return!("[object Array]"!==Q(e)||j&&"object"==typeof e&&j in e)}function M(e){return!("[object RegExp]"!==Q(e)||j&&"object"==typeof e&&j in e)}function U(e){if(R)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}Oo=function e(t,o,i,d){var g=o||{};if($(g,"quoteStyle")&&"single"!==g.quoteStyle&&"double"!==g.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(g,"maxStringLength")&&("number"==typeof g.maxStringLength?g.maxStringLength<0&&g.maxStringLength!==1/0:null!==g.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var v=!$(g,"customInspect")||g.customInspect;if("boolean"!=typeof v&&"symbol"!==v)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(g,"indent")&&null!==g.indent&&"\t"!==g.indent&&!(parseInt(g.indent,10)===g.indent&&g.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(g,"numericSeparator")&&"boolean"!=typeof g.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var O=g.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return B(t,g);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var A=String(t);return O?C(t,A):A}if("bigint"==typeof t){var x=String(t)+"n";return O?C(t,x):x}var L=void 0===g.depth?5:g.depth;if(void 0===i&&(i=0),i>=L&&L>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var V=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=S.call(Array(e.indent+1)," ")}return{base:r,prev:S.call(Array(t+1),r)}}(g,i);if(void 0===d)d=[];else if(z(d,t)>=0)return"[Circular]";function Y(t,r,n){if(r&&(d=E.call(d)).push(r),n){var o={depth:g.depth};return $(g,"quoteStyle")&&(o.quoteStyle=g.quoteStyle),e(t,o,i+1,d)}return e(t,g,i+1,d)}if("function"==typeof t&&!M(t)){var X=function(e){if(e.name)return e.name;var t=y.call(p.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),Z=J(t,Y);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(Z.length>0?" { "+S.call(Z,", ")+" }":"")}if(U(t)){var ee=R?m.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||R?ee:K(ee)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var te="<"+b.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+D(q(re[ne].value),"double",g);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+"</"+b.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var oe=J(t,Y);return V&&!function(e){for(var t=0;t<e.length;t++)if(z(e[t],"\n")>=0)return!1;return!0}(oe)?"["+G(oe,V)+"]":"[ "+S.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==Q(e)||j&&"object"==typeof e&&j in e)}(t)){var ie=J(t,Y);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ie,", ")+" }":"{ ["+String(t)+"] "+S.call(w.call("[cause]: "+Y(t.cause),ie),", ")+" }"}if("object"==typeof t&&v){if(I&&"function"==typeof t[I]&&N)return N(t,{depth:L-i});if("symbol"!==v&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!r||!e||"object"!=typeof e)return!1;try{r.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return n&&n.call(t,function(e,r){ae.push(Y(r,t,!0)+" => "+Y(e,t))}),W("Map",r.call(t),ae,V)}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{r.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return s&&s.call(t,function(e){se.push(Y(e,t))}),W("Set",a.call(t),se,V)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return H("WeakMap");if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return H("WeakSet");if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{return l.call(e),!0}catch(e){}return!1}(t))return H("WeakRef");if(function(e){return!("[object Number]"!==Q(e)||j&&"object"==typeof e&&j in e)}(t))return K(Y(Number(t)));if(function(e){if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}(t))return K(Y(_.call(t)));if(function(e){return!("[object Boolean]"!==Q(e)||j&&"object"==typeof e&&j in e)}(t))return K(f.call(t));if(function(e){return!("[object String]"!==Q(e)||j&&"object"==typeof e&&j in e)}(t))return K(Y(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Zn&&t===Zn)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==Q(e)||j&&"object"==typeof e&&j in e)}(t)&&!M(t)){var ce=J(t,Y),ue=k?k(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",fe=!ue&&j&&Object(t)===t&&j in t?h.call(Q(t),8,-1):le?"Object":"",de=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||le?"["+S.call(w.call([],fe||[],le||[]),": ")+"] ":"");return 0===ce.length?de+"{}":V?de+"{"+G(ce,V)+"}":de+"{ "+S.call(ce,", ")+" }"}return String(t)};var L=Object.prototype.hasOwnProperty||function(e){return e in this};function $(e,t){return L.call(e,t)}function Q(e){return d.call(e)}function z(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function B(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return B(h.call(e,0,t.maxStringLength),t)+n}return D(m.call(m.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,V),"single",t)}function V(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+g.call(t.toString(16))}function K(e){return"Object("+e+")"}function H(e){return e+" { ? }"}function W(e,t,r,n){return e+" ("+t+") {"+(n?G(r,n):S.call(r,", "))+"}"}function G(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+S.call(e,","+r)+"\n"+t.prev}function J(e,t){var r=F(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=$(e,o)?t(e[o],e):""}var i,a="function"==typeof A?A(e):[];if(R){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)$(e,c)&&(r&&String(Number(c))===c&&c<e.length||R&&i["$"+c]instanceof Symbol||(v.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof A)for(var u=0;u<a.length;u++)P.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}return Oo}(),n=to(),o=e("%WeakMap%",!0),i=e("%Map%",!0),a=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),u=t("Map.prototype.get",!0),l=t("Map.prototype.set",!0),f=t("Map.prototype.has",!0),d=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};return Ao=function(){var e,t,p,y={assert:function(e){if(!y.has(e))throw new n("Side channel does not contain "+r(e))},get:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(e)return a(e,r)}else if(i){if(t)return u(t,r)}else if(p)return function(e,t){var r=d(e,t);return r&&r.value}(p,r)},has:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(i){if(t)return f(t,r)}else if(p)return function(e,t){return!!d(e,t)}(p,r);return!1},set:function(r,n){o&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new o),s(e,r,n)):i?(t||(t=new i),l(t,r,n)):(p||(p={key:{},next:null}),function(e,t,r){var n=d(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(p,r,n))}};return y}}function Uo(){if(jo)return Ro;jo=1;var e=String.prototype.replace,t=/%20/g,r="RFC3986";return Ro={default:r,formatters:{RFC1738:function(r){return e.call(r,t,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}}function Lo(){if(ko)return Po;ko=1;var e=Uo(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},i=1024;return Po={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:u}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(t,r,o,a,s){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===o)return escape(c).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var u="",l=0;l<c.length;l+=i){for(var f=c.length>=i?c.slice(l,l+i):c,d=[],p=0;p<f.length;++p){var y=f.charCodeAt(p);45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||s===e.RFC1738&&(40===y||41===y)?d[d.length]=f.charAt(p):y<128?d[d.length]=n[y]:y<2048?d[d.length]=n[192|y>>6]+n[128|63&y]:y<55296||y>=57344?d[d.length]=n[224|y>>12]+n[128|y>>6&63]+n[128|63&y]:(p+=1,y=65536+((1023&y)<<10|1023&f.charCodeAt(p)),d[d.length]=n[240|y>>18]+n[128|y>>12&63]+n[128|y>>6&63]+n[128|63&y])}u+=d.join("")}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(r(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(n,i,a){if(!i)return n;if("object"!=typeof i){if(r(n))n.push(i);else{if(!n||"object"!=typeof n)return[n,i];(a&&(a.plainObjects||a.allowPrototypes)||!t.call(Object.prototype,i))&&(n[i]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(i);var s=n;return r(n)&&!r(i)&&(s=o(n,a)),r(n)&&r(i)?(i.forEach(function(r,o){if(t.call(n,o)){var i=n[o];i&&"object"==typeof i&&r&&"object"==typeof r?n[o]=e(i,r,a):n.push(r)}else n[o]=r}),n):Object.keys(i).reduce(function(r,n){var o=i[n];return t.call(r,n)?r[n]=e(r[n],o,a):r[n]=o,r},s)}},Po}var $o=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(qo)return Do;qo=1;var e=function(){if(No)return Co;No=1;var e=Mo(),t=Lo(),r=Uo(),n=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},i=Array.isArray,a=Array.prototype.push,s=function(e,t){a.apply(e,i(t)?t:[t])},c=Date.prototype.toISOString,u=r.default,l={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,format:u,formatter:r.formatters[u],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},f={},d=function r(n,o,a,c,u,d,p,y,h,m,g,b,v,w,S,E,O,_){for(var A,T=n,R=_,j=0,P=!1;void 0!==(R=R.get(f))&&!P;){var k=R.get(n);if(j+=1,void 0!==k){if(k===j)throw new RangeError("Cyclic object value");P=!0}void 0===R.get(f)&&(j=0)}if("function"==typeof m?T=m(o,T):T instanceof Date?T=v(T):"comma"===a&&i(T)&&(T=t.maybeMap(T,function(e){return e instanceof Date?v(e):e})),null===T){if(d)return h&&!E?h(o,l.encoder,O,"key",w):o;T=""}if("string"==typeof(A=T)||"number"==typeof A||"boolean"==typeof A||"symbol"==typeof A||"bigint"==typeof A||t.isBuffer(T))return h?[S(E?o:h(o,l.encoder,O,"key",w))+"="+S(h(T,l.encoder,O,"value",w))]:[S(o)+"="+S(String(T))];var C,N=[];if(void 0===T)return N;if("comma"===a&&i(T))E&&h&&(T=t.maybeMap(T,h)),C=[{value:T.length>0?T.join(",")||null:void 0}];else if(i(m))C=m;else{var x=Object.keys(T);C=g?x.sort(g):x}var I=y?o.replace(/\./g,"%2E"):o,D=c&&i(T)&&1===T.length?I+"[]":I;if(u&&i(T)&&0===T.length)return D+"[]";for(var q=0;q<C.length;++q){var F=C[q],M="object"==typeof F&&void 0!==F.value?F.value:T[F];if(!p||null!==M){var U=b&&y?F.replace(/\./g,"%2E"):F,L=i(T)?"function"==typeof a?a(D,U):D:D+(b?"."+U:"["+U+"]");_.set(n,j);var $=e();$.set(f,_),s(N,r(M,L,a,c,u,d,p,y,"comma"===a&&E&&i(T)?null:h,m,g,b,v,w,S,E,O,$))}}return N};return Co=function(t,a){var c,u=t,f=function(e){if(!e)return l;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||l.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=r.default;if(void 0!==e.format){if(!n.call(r.formatters,e.format))throw new TypeError("Unknown format option provided.");a=e.format}var s,c=r.formatters[a],u=l.filter;if(("function"==typeof e.filter||i(e.filter))&&(u=e.filter),s=e.arrayFormat in o?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":l.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=void 0===e.allowDots?!0===e.encodeDotInKeys||l.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:l.addQueryPrefix,allowDots:f,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:l.allowEmptyArrays,arrayFormat:s,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?l.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:l.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:l.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:l.encodeValuesOnly,filter:u,format:a,formatter:c,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:l.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}}(a);"function"==typeof f.filter?u=(0,f.filter)("",u):i(f.filter)&&(c=f.filter);var p=[];if("object"!=typeof u||null===u)return"";var y=o[f.arrayFormat],h="comma"===y&&f.commaRoundTrip;c||(c=Object.keys(u)),f.sort&&c.sort(f.sort);for(var m=e(),g=0;g<c.length;++g){var b=c[g];f.skipNulls&&null===u[b]||s(p,d(u[b],b,y,h,f.allowEmptyArrays,f.strictNullHandling,f.skipNulls,f.encodeDotInKeys,f.encode?f.encoder:null,f.filter,f.sort,f.allowDots,f.serializeDate,f.format,f.formatter,f.encodeValuesOnly,f.charset,m))}var v=p.join(f.delimiter),w=!0===f.addQueryPrefix?"?":"";return f.charsetSentinel&&("iso-8859-1"===f.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""},Co}(),t=function(){if(Io)return xo;Io=1;var e=Lo(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},i=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},a=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(a),u=c?a.slice(0,c.index):a,l=[];if(u){if(!n.plainObjects&&t.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var f=0;n.depth>0&&null!==(c=s.exec(a))&&f<n.depth;){if(f+=1,!n.plainObjects&&t.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}if(c){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");l.push("["+a.slice(c.index)+"]")}return function(e,t,r,n){for(var o=n?t:i(t,r),a=e.length-1;a>=0;--a){var s,c=e[a];if("[]"===c&&r.parseArrays)s=r.allowEmptyArrays&&(""===o||r.strictNullHandling&&null===o)?[]:[].concat(o);else{s=r.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,f=parseInt(l,10);r.parseArrays||""!==l?!isNaN(f)&&c!==l&&String(f)===l&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(s=[])[f]=o:"__proto__"!==l&&(s[l]=o):s={0:o}}o=s}return o}(l,r,n,o)}};return xo=function(s,c){var u=function(t){if(!t)return n;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=void 0===t.charset?n.charset:t.charset,o=void 0===t.duplicates?n.duplicates:t.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||n.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:n.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:n.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:n.arrayLimit,charset:r,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:n.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:n.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:n.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:n.decoder,delimiter:"string"==typeof t.delimiter||e.isRegExp(t.delimiter)?t.delimiter:n.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:n.depth,duplicates:o,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:n.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:n.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:n.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:n.strictNullHandling}}(c);if(""===s||null==s)return u.plainObjects?Object.create(null):{};for(var l="string"==typeof s?function(a,s){var c={__proto__:null},u=s.ignoreQueryPrefix?a.replace(/^\?/,""):a;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l,f=s.parameterLimit===1/0?void 0:s.parameterLimit,d=u.split(s.delimiter,f),p=-1,y=s.charset;if(s.charsetSentinel)for(l=0;l<d.length;++l)0===d[l].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[l]?y="utf-8":"utf8=%26%2310003%3B"===d[l]&&(y="iso-8859-1"),p=l,l=d.length);for(l=0;l<d.length;++l)if(l!==p){var h,m,g=d[l],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(h=s.decoder(g,n.decoder,y,"key"),m=s.strictNullHandling?null:""):(h=s.decoder(g.slice(0,v),n.decoder,y,"key"),m=e.maybeMap(i(g.slice(v+1),s),function(e){return s.decoder(e,n.decoder,y,"value")})),m&&s.interpretNumericEntities&&"iso-8859-1"===y&&(m=o(m)),g.indexOf("[]=")>-1&&(m=r(m)?[m]:m);var w=t.call(c,h);w&&"combine"===s.duplicates?c[h]=e.combine(c[h],m):w&&"last"!==s.duplicates||(c[h]=m)}return c}(s,u):s,f=u.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p<d.length;++p){var y=d[p],h=a(y,l[y],u,"string"==typeof s);f=e.merge(f,h,u)}return!0===u.allowSparse?f:e.compact(f)}}();return Do={formats:Uo(),parse:t,stringify:e}}());const Qo={type:"session",prefix:"",enableLogging:!1,fallbackToMemory:!0,maxRetries:3};class zo{constructor(){this.data=new Map}setItem(e,t){this.data.set(e,t)}getItem(e){return this.data.get(e)||null}removeItem(e){this.data.delete(e)}clear(){this.data.clear()}get length(){return this.data.size}key(e){return Array.from(this.data.keys())[e]||null}keys(){return Array.from(this.data.keys())}}const Bo=(e={})=>{const t={...Qo,...e},r="local"===t.type?"localStorage":"sessionStorage";let n=null,o=!1;(()=>{if("undefined"==typeof window)return void(t.fallbackToMemory&&(n=new zo,o=!0,t.enableLogging&&console.warn("CacheFactory: Browser storage unavailable, using memory fallback")));const e=window[r];(e=>{if(!e)return!1;try{const t="__cache_factory_test__",r="test";e.setItem(t,r);const n=e.getItem(t);return e.removeItem(t),n===r}catch(e){return!1}})(e)?n=e:t.fallbackToMemory&&(n=new zo,o=!0,t.enableLogging&&console.warn(`CacheFactory: ${r} unavailable, using memory fallback`))})();const i=e=>t.prefix?`${t.prefix}${e}`:e,a=(e,n,i=null)=>{t.enableLogging&&console.debug(`CacheFactory[${r}]: ${e}`,{key:n,data:i,usingMemoryFallback:o})},s=async(e,r=0)=>{try{return await e()}catch(n){if(r<t.maxRetries){const t=100*Math.pow(2,r);return await new Promise(e=>setTimeout(e,t)),s(e,r+1)}throw n}};return{isAvailable:()=>null!==n,isUsingMemoryFallback:()=>o,getStorageType:()=>o?"memory":r,set:async(e,t)=>{if(!n)return console.error("CacheFactory: Storage not available"),!1;if(!e||"string"!=typeof e)throw new Error("CacheFactory: Invalid key provided");const r=i(e),o=(e=>{try{return JSON.stringify(e)}catch(e){return console.error("CacheFactory: Failed to serialize value",e),null}})(t);if(null===o)return!1;try{return await s(()=>{n.setItem(r,o)}),a("SET",e,t),!0}catch(t){return console.error(`CacheFactory: Error setting item ${e}:`,t),!1}},get:async(e,t=null)=>{if(!n)return console.warn("CacheFactory: Storage not available"),t;if(!e||"string"!=typeof e||"undefined"===e)return console.warn("CacheFactory: Invalid key provided for get operation"),t;const r=i(e);try{const o=await s(()=>n.getItem(r));if(null===o||"undefined"===o)return a("GET_MISS",e),t;const i=(e=>{if(null==e)return null;try{return JSON.parse(e)}catch(t){return e}})(o);return a("GET_HIT",e,i),i}catch(r){return console.error(`CacheFactory: Error getting item ${e}:`,r),t}},remove:async e=>{if(!n)return console.error("CacheFactory: Storage not available"),!1;if(!e||"string"!=typeof e)return console.warn("CacheFactory: Invalid key provided for remove operation"),!1;const t=i(e);try{return await s(()=>{n.removeItem(t)}),a("REMOVE",e),!0}catch(t){return console.error(`CacheFactory: Error removing item ${e}:`,t),!1}},clear:async()=>{if(!n)return console.error("CacheFactory: Storage not available"),!1;try{if(t.prefix){const e=await(void 0).keys();await Promise.all(e.map(e=>(void 0).remove(e)))}else await s(()=>{n.clear()});return a("CLEAR"),!0}catch(e){return console.error("CacheFactory: Error clearing storage:",e),!1}},keys:async()=>{if(!n)return console.warn("CacheFactory: Storage not available"),[];try{let e=[];e=o?n.keys():Object.keys(n);const r=t.prefix?e.filter(e=>e.startsWith(t.prefix)).map(e=>{return r=e,t.prefix&&r.startsWith(t.prefix)?r.slice(t.prefix.length):r;var r}):e;return a("KEYS",null,r),r}catch(e){return console.error("CacheFactory: Error getting keys:",e),[]}},has:async e=>{if(!n||!e||"string"!=typeof e)return!1;const t=i(e);try{const r=await s(()=>null!==n.getItem(t));return a("HAS",e,r),r}catch(t){return console.error(`CacheFactory: Error checking if key ${e} exists:`,t),!1}},getStats:async()=>{const e=await(void 0).keys();return{keyCount:e.length,storageType:(void 0).getStorageType(),usingMemoryFallback:o,prefix:t.prefix||"none",keys:e}},bulk:{set:async e=>{const t={};return await Promise.all(Object.entries(e).map(async([e,r])=>{t[e]=await(void 0).set(e,r)})),t},get:async e=>{const t={};return await Promise.all(e.map(async e=>{t[e]=await(void 0).get(e)})),t},remove:async e=>{const t={};return await Promise.all(e.map(async e=>{t[e]=await(void 0).remove(e)})),t}}}};Bo.local=Bo({type:"local"}),Bo.session=Bo({type:"session"}),Bo.memory=Bo({type:"session",fallbackToMemory:!0});const Vo="production"===process.env.NODE_ENV?"http://fear.master.com:4000/fear/api/":"http://localhost:4000/fear/api/",Ko=process.env.JWT_TOKEN?process.env.JWT_TOKEN:"x-token",Ho=cn.create({baseURL:`${Vo}`,headers:{Accept:"application/json","Content-Type":"application/json"},paramsSerializer:e=>$o.stringify(e,{indexes:!1}),credentials:!0});Ho.interceptors.request.use(e=>{const t=Bo.local.get("auth")?Bo.local.get("auth"):null;let r=null!==t?t.token:"";return e.headers={Authorization:`Bearer ${r}`,[Ko]:r},e},e=>{Promise.reject(e)}),Ho.interceptors.response.use(e=>(console.log("API RES :: ",e),e.data.message,e.status,e),e=>{if(console.log("API ERROR :: ",e),e.response){if(401===e.response.status)return Bo.local.remove("auth"),Promise.reject(e.response);if(500===e.response.status)return Promise.reject(e.response)}return Promise.reject(e)});const Wo=Ho,Go={GET:"GET",POST:"POST",PUT:"PUT",PATCH:"PATCH",DELETE:"DELETE"},Jo={all:{method:Go.GET,useParams:!1},one:{method:Go.GET,useParams:!1,useIdInUrl:!0},search:{method:Go.GET,useParams:!0},create:{method:Go.POST,useParams:!1},update:{method:Go.PUT,useParams:!1,useIdInUrl:!0},patch:{method:Go.PATCH,useParams:!1,useIdInUrl:!0},delete:{method:Go.DELETE,useParams:!1,useIdInUrl:!0}},Yo=(e,t)=>{if(!e||"string"!=typeof e)throw new Error("Entity must be a non-empty string");if(!t||"string"!=typeof t)throw new Error("Prefix must be a non-empty string")},Xo=(e,t,r={})=>{Yo(e,t);const n={method:Go.GET,useParams:!1,useIdInUrl:!1,customUrl:null,...r};return Ue(`${e}/${t}`,async(r={},o)=>{try{const o=n.customUrl||((e,t,r={},n=!1)=>{let o=`${e}`;return n&&r?.id?o+=`/${r.id}`:n&&"one"===t||(o+=`/${t}`),o})(e,t,r,n.useIdInUrl);let i;const a=n.useParams?{params:r}:{};switch(n.method){case Go.GET:i=Wo.get(o,a);break;case Go.POST:i=Wo.post(o,r,a);break;case Go.PUT:i=Wo.put(o,r,a);break;case Go.PATCH:i=Wo.patch(o,r,a);break;case Go.DELETE:i=Wo.delete(o,a);break;default:throw new Error(`Unsupported HTTP method: ${n.method}`)}return(e=>void 0!==e?.data?.result?e.data.result:void 0!==e?.data?e.data:e)(await i)}catch(e){return((e,t)=>{const r={message:e?.response?.data?.message||e?.message||"An unknown error occurred",status:e?.response?.status,code:e?.code};return t.rejectWithValue(r)})(e,o)}})},Zo={create:(e,t)=>{Yo(e,t);const r=Jo[t];return Xo(e,t,r||{method:Go.GET,useParams:"search"===t,useIdInUrl:"one"===t})},post:(e,t)=>Xo(e,t,{method:Go.POST,useParams:!1}),put:(e,t)=>Xo(e,t,{method:Go.PUT,useIdInUrl:"update"===t}),patch:(e,t)=>Xo(e,t,{method:Go.PATCH,useIdInUrl:!0}),delete:(e,t)=>Xo(e,t,{method:Go.DELETE,useIdInUrl:!0}),custom:(e,t,r={})=>Xo(e,t,r),createCrud:e=>(Yo(e,"crud"),{fetchAll:Zo.create(e,"all"),fetchOne:Zo.create(e,"one"),create:Zo.post(e,"create"),update:Zo.put(e,"update"),patch:Zo.patch(e,"patch"),delete:Zo.delete(e,"delete"),search:Zo.create(e,"search")}),getHttpMethods:()=>({...Go}),getStandardOperations:()=>({...Jo})},ei={includeEntityState:!0,includePagination:!0,includeFiltering:!0,includeSorting:!0,includeSelection:!0,includeValidation:!1,includeMetadata:!0,customFields:{}},ti={IDLE:"idle",PENDING:"pending",FULFILLED:"fulfilled",REJECTED:"rejected"},ri={ASC:"asc",DESC:"desc"},ni=(e,t)=>{if(!t||"object"!=typeof t)return e;const r={...e};return Object.keys(t).forEach(n=>{t[n]&&"object"==typeof t[n]&&!Array.isArray(t[n])?r[n]=ni(e[n]||{},t[n]):r[n]=t[n]}),r},oi=(e,t={})=>{(e=>{if(!e||"string"!=typeof e)throw new Error("Namespace must be a non-empty string");if(!/^[a-zA-Z][a-zA-Z0-9_]*$/.test(e))throw new Error("Namespace must be a valid identifier (letters, numbers, underscore, starting with letter)")})(e);const r={...ei,...t};return{...{data:[],loading:!1,success:!1,error:null,loadingState:ti.IDLE,...r.includeEntityState&&{[e]:null,[`${e}List`]:[],[`current${e.charAt(0).toUpperCase()+e.slice(1)}`]:null}},...{...r.includePagination&&{pagination:{currentPage:1,pageSize:10,totalItems:0,totalPages:0,hasNextPage:!1,hasPreviousPage:!1}},...r.includeFiltering&&{filtering:{filters:{},activeFilters:[],searchTerm:"",searchFields:[]}},...r.includeSorting&&{sorting:{sortBy:null,sortOrder:ri.ASC,multiSort:[]}},...r.includeSelection&&{selection:{selectedItems:[],selectedIds:[],allSelected:!1,selectionMode:"multiple"}},...r.includeValidation&&{validation:{validationErrors:{},isValid:!0,fieldErrors:{},touched:{}}},...r.includeMetadata&&{metadata:{lastFetch:null,lastUpdate:null,version:0,source:null,cached:!1,stale:!1}},async:{operations:{},globalLoading:!1,operationQueue:[]}},...r.customFields}};oi.minimal=e=>oi(e,{includeEntityState:!0,includePagination:!1,includeFiltering:!1,includeSorting:!1,includeSelection:!1,includeValidation:!1,includeMetadata:!1}),oi.forList=e=>oi(e,{includeEntityState:!0,includePagination:!0,includeFiltering:!0,includeSorting:!0,includeSelection:!0,includeValidation:!1,includeMetadata:!0}),oi.forForm=e=>oi(e,{includeEntityState:!0,includePagination:!1,includeFiltering:!1,includeSorting:!1,includeSelection:!1,includeValidation:!0,includeMetadata:!0,customFields:{formData:{},isDirty:!1,isSubmitting:!1,submitCount:0}}),oi.forRealTime=e=>oi(e,{includeEntityState:!0,includePagination:!1,includeFiltering:!1,includeSorting:!1,includeSelection:!1,includeValidation:!1,includeMetadata:!0,customFields:{connected:!1,connectionStatus:"disconnected",lastHeartbeat:null,subscriptions:[],liveUpdates:!0}}),oi.normalized=e=>oi(e,{includeEntityState:!1,customFields:{ids:[],entities:{}}}),oi.withOperations=(e,t=[])=>{const r=t.reduce((e,t)=>(e[`${t}Loading`]=!1,e[`${t}Success`]=!1,e[`${t}Error`]=null,e),{});return oi(e,{customFields:{...r,operations:t.reduce((e,t)=>(e[t]={loading:!1,success:!1,error:null,lastRun:null},e),{})}})},oi.utils={getLoadingStates:()=>({...ti}),getSortOrders:()=>({...ri}),createLoadingUpdates:(e="default")=>({pending:{loading:!0,success:!1,error:null,loadingState:ti.PENDING,[`async.operations.${e}.loading`]:!0},fulfilled:{loading:!1,success:!0,error:null,loadingState:ti.FULFILLED,[`async.operations.${e}.loading`]:!1,[`async.operations.${e}.success`]:!0,[`async.operations.${e}.lastRun`]:(new Date).toISOString()},rejected:t=>({loading:!1,success:!1,error:t,loadingState:ti.REJECTED,[`async.operations.${e}.loading`]:!1,[`async.operations.${e}.error`]:t,[`async.operations.${e}.lastRun`]:(new Date).toISOString()})}),validateState:(e,t)=>!(!e||"object"!=typeof e||!Array.isArray(e.data)||"boolean"!=typeof e.loading||"boolean"!=typeof e.success),mergeState:ni,resetState:(e,t={})=>oi(e,t)};var ii=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},ai=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(ai||{});function si(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}var ci=o;function ui(e,t){if(e===t||!(ci(e)&&ci(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let o=r.length===n.length;const i=Array.isArray(t)?[]:{};for(const n of r)i[n]=ui(e[n],t[n]),o&&(o=e[n]===i[n]);return o?e:i}function li(e){let t=0;for(const r in e)t++;return t}var fi=e=>[].concat(...e);function di(e){return null!=e}var pi=(...e)=>fetch(...e),yi=e=>e.status>=200&&e.status<=299,hi=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function mi(e){if(!o(e))return e;const t={...e};for(const[e,r]of Object.entries(t))void 0===r&&delete t[e];return t}function gi({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:r=pi,paramsSerializer:n,isJsonContentType:i=hi,jsonContentType:a="application/json",jsonReplacer:s,timeout:c,responseHandler:u,validateStatus:l,...f}={}){return"undefined"==typeof fetch&&r===pi&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(p,y,h)=>{const{getState:m,extra:g,endpoint:b,forced:v,type:w}=y;let S,E,{url:O,headers:_=new Headers(f.headers),params:A,responseHandler:T=u??"json",validateStatus:R=l??yi,timeout:j=c,...P}="string"==typeof p?{url:p}:p,k=y.signal;j&&(E=new AbortController,y.signal.addEventListener("abort",E.abort),k=E.signal);let C={...f,signal:k,...P};_=new Headers(mi(_)),C.headers=await t(_,{getState:m,arg:p,extra:g,endpoint:b,forced:v,type:w,extraOptions:h})||_;const N=e=>"object"==typeof e&&(o(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!C.headers.has("content-type")&&N(C.body)&&C.headers.set("content-type",a),N(C.body)&&i(C.headers)&&(C.body=JSON.stringify(C.body,s)),A){const e=~O.indexOf("?")?"&":"?";O+=e+(n?n(A):new URLSearchParams(mi(A)))}O=function(e,t){if(!e)return t;if(!t)return e;if(function(e){return new RegExp("(^|:)//").test(e)}(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=(e=>e.replace(/\/$/,""))(e)}${r}${t=(e=>e.replace(/^\//,""))(t)}`}(e,O);const x=new Request(O,C);S={request:new Request(O,C)};let I,D=!1,q=E&&setTimeout(()=>{D=!0,E.abort()},j);try{I=await r(x)}catch(e){return{error:{status:D?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:S}}finally{q&&clearTimeout(q),E?.signal.removeEventListener("abort",E.abort)}const F=I.clone();let M;S.response=F;let U="";try{let e;if(await Promise.all([d(I,T).then(e=>M=e,t=>e=t),F.text().then(e=>U=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:I.status,data:U,error:String(e)},meta:S}}return R(I,M)?{data:M,meta:S}:{error:{status:I.status,data:M},meta:S}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=i(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var bi=class{constructor(e,t=void 0){this.value=e,this.meta=t}},vi=me("__rtkq/focused"),wi=me("__rtkq/unfocused"),Si=me("__rtkq/online"),Ei=me("__rtkq/offline");function Oi(e){return"query"===e.type}function _i(e){return"infinitequery"===e.type}function Ai(e){return Oi(e)||_i(e)}function Ti(e,t,r,n,o,i){return"function"==typeof e?e(t,r,n,o).filter(di).map(Ri).map(i):Array.isArray(e)?e.map(Ri).map(i):[]}function Ri(e){return"string"==typeof e?{type:e}:e}var ji=Symbol("forceQueryFn"),Pi=e=>"function"==typeof e[ji],ki=class extends ii{constructor(e,t,r,n){super(e),this.value=t,this.schemaName=r,this._bqMeta=n}};async function Ci(e,t,r,n){const o=await e["~standard"].validate(t);if(o.issues)throw new ki(o.issues,t,r,n);return o.value}function Ni(e){return e}var xi=(e={})=>({...e,[we]:!0});function Ii(e,{pages:t,pageParams:r},n){const o=t.length-1;return e.getNextPageParam(t[o],t,r[o],r,n)}function Di(e,{pages:t,pageParams:r},n){return e.getPreviousPageParam?.(t[0],t,r[0],r,n)}function qi(e,t,r,n){return Ti(r[e.meta.arg.endpointName][t],Ce(e)?e.payload:void 0,ke(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Fi(e,t,r){const n=e[t];n&&r(n)}function Mi(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Ui(e,t,r){const n=e[Mi(t)];n&&r(n)}var Li={};function $i({reducerPath:e,queryThunk:t,mutationThunk:r,serializeQueryArgs:n,context:{endpointDefinitions:o,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:c},assertTagType:u,config:l}){const d=me(`${e}/resetApiState`);function y(e,t,r,n){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},Fi(e,t.queryCacheKey,e=>{e.status="pending",e.requestId=r&&e.requestId?e.requestId:n.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=n.startedTimeStamp,_i(o[n.arg.endpointName])&&"direction"in t&&(e.direction=t.direction)})}function m(e,t,r,n){Fi(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!n)return;const{merge:i}=o[t.arg.endpointName];if(e.status="fulfilled",i)if(void 0!==e.data){const{fulfilledTimeStamp:n,arg:o,baseQueryMeta:a,requestId:s}=t;let c=te(e.data,e=>i(e,r,{arg:o.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:n,requestId:s}));e.data=c}else e.data=r;else e.data=o[t.arg.endpointName].structuralSharing??1?ui(h(e.data)?(h(a=e.data)||p(15,a),a[f].base_):e.data,r):r;var a;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}const g=Be({name:`${e}/queries`,initialState:Li,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Se()},cacheEntriesUpserted:{reducer(e,t){for(const r of t.payload){const{queryDescription:n,value:o}=r;y(e,n,!0,{arg:n,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),m(e,{arg:n,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},o,!0)}},prepare:e=>({payload:e.map(e=>{const{endpointName:t,arg:r,value:i}=e,a=o[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:n({queryArgs:r,endpointDefinition:a,endpointName:t})},value:i}}),meta:{[we]:!0,requestId:xe(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:r}}){Fi(e,t,e=>{e.data=ne(e.data,r.concat())})},prepare:Se()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:r}})=>{y(e,r,Pi(r),t)}).addCase(t.fulfilled,(e,{meta:t,payload:r})=>{m(e,t,r,Pi(t.arg))}).addCase(t.rejected,(e,{meta:{condition:t,arg:r,requestId:n},error:o,payload:i})=>{Fi(e,r.queryCacheKey,e=>{if(t);else{if(e.requestId!==n)return;e.status="rejected",e.error=i??o}})}).addMatcher(c,(e,t)=>{const{queries:r}=a(t);for(const[t,n]of Object.entries(r))"fulfilled"!==n?.status&&"rejected"!==n?.status||(e[t]=n)})}}),b=Be({name:`${e}/mutations`,initialState:Li,reducers:{removeMutationResult:{reducer(e,{payload:t}){const r=Mi(t);r in e&&delete e[r]},prepare:Se()}},extraReducers(e){e.addCase(r.pending,(e,{meta:t,meta:{requestId:r,arg:n,startedTimeStamp:o}})=>{n.track&&(e[Mi(t)]={requestId:r,status:"pending",endpointName:n.endpointName,startedTimeStamp:o})}).addCase(r.fulfilled,(e,{payload:t,meta:r})=>{r.arg.track&&Ui(e,r,e=>{e.requestId===r.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=r.fulfilledTimeStamp)})}).addCase(r.rejected,(e,{payload:t,error:r,meta:n})=>{n.arg.track&&Ui(e,n,e=>{e.requestId===n.requestId&&(e.status="rejected",e.error=t??r)})}).addMatcher(c,(e,t)=>{const{mutations:r}=a(t);for(const[t,n]of Object.entries(r))"fulfilled"!==n?.status&&"rejected"!==n?.status||t===n?.requestId||(e[t]=n)})}}),v=Be({name:`${e}/invalidation`,initialState:{tags:{},keys:{}},reducers:{updateProvidedBy:{reducer(e,t){for(const{queryCacheKey:r,providedTags:n}of t.payload){w(e,r);for(const{type:t,id:o}of n){const n=(e.tags[t]??={})[o||"__internal_without_id"]??=[];n.includes(r)||n.push(r)}e.keys[r]=n}},prepare:Se()}},extraReducers(e){e.addCase(g.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{w(e,t)}).addMatcher(c,(e,t)=>{const{provided:r}=a(t);for(const[t,n]of Object.entries(r))for(const[r,o]of Object.entries(n)){const n=(e.tags[t]??={})[r||"__internal_without_id"]??=[];for(const e of o)n.includes(e)||n.push(e)}}).addMatcher(_e(Ce(t),ke(t)),(e,t)=>{S(e,[t])}).addMatcher(g.actions.cacheEntriesUpserted.match,(e,t)=>{S(e,t.payload.map(({queryDescription:e,value:t})=>({type:"UNKNOWN",payload:t,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:e}})))})}});function w(e,t){const r=e.keys[t]??[];for(const n of r){const r=n.type,o=n.id??"__internal_without_id",i=e.tags[r]?.[o];i&&(e.tags[r][o]=i.filter(e=>e!==t))}delete e.keys[t]}function S(e,t){const r=t.map(e=>{const t=qi(e,"providesTags",o,u),{queryCacheKey:r}=e.meta.arg;return{queryCacheKey:r,providedTags:t}});v.caseReducers.updateProvidedBy(e,v.actions.updateProvidedBy(r))}const E=Be({name:`${e}/subscriptions`,initialState:Li,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),O=Be({name:`${e}/internalSubscriptions`,initialState:Li,reducers:{subscriptionsUpdated:{reducer:(e,t)=>ne(e,t.payload),prepare:Se()}}}),_=Be({name:`${e}/config`,initialState:{online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"==typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...l},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&i===t||"conflict"}},extraReducers:e=>{e.addCase(Si,e=>{e.online=!0}).addCase(Ei,e=>{e.online=!1}).addCase(vi,e=>{e.focused=!0}).addCase(wi,e=>{e.focused=!1}).addMatcher(c,e=>({...e}))}}),A=s({queries:g.reducer,mutations:b.reducer,provided:v.reducer,subscriptions:O.reducer,config:_.reducer});return{reducer:(e,t)=>A(d.match(t)?void 0:e,t),actions:{..._.actions,...g.actions,...E.actions,...O.actions,...b.actions,...v.actions,resetApiState:d}}}var Qi=Symbol.for("RTKQ/skipToken"),zi={status:"uninitialized"},Bi=te(zi,()=>{}),Vi=te(zi,()=>{}),Ki=WeakMap?new WeakMap:void 0,Hi=({endpointName:e,queryArgs:t})=>{let r="";const n=Ki?.get(t);if("string"==typeof n)r=n;else{const e=JSON.stringify(t,(e,t)=>t=o(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t);o(t)&&Ki?.set(t,e),r=e}return`${e}(${r})`};function Wi(e,...t){return Object.assign(e,...t)}var Gi=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:o,selectors:{selectQueryEntry:i,selectConfig:a}})=>{const{removeQueryResult:s,unsubscribeQueryResult:c,cacheEntriesUpserted:u}=t.internalActions,l=_e(c.match,r.fulfilled,r.rejected,u.match);function f(e){const t=o.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const d={};function p(e,t,r){const n=t.getState();for(const o of e){const e=i(n,o);y(o,e?.endpointName,t,r)}}function y(e,t,r,o){const i=n.endpointDefinitions[t],a=i?.keepUnusedDataFor??o.keepUnusedDataFor;if(a===1/0)return;const c=Math.max(0,Math.min(a,2147482.647));if(!f(e)){const t=d[e];t&&clearTimeout(t),d[e]=setTimeout(()=>{f(e)||r.dispatch(s({queryCacheKey:e})),delete d[e]},1e3*c)}}return(e,r,o)=>{const i=r.getState(),s=a(i);if(l(e)){let t;if(u.match(e))t=e.payload.map(e=>e.queryDescription.queryCacheKey);else{const{queryCacheKey:r}=c.match(e)?e.payload:e.meta.arg;t=[r]}p(t,r,s)}if(t.util.resetApiState.match(e))for(const[e,t]of Object.entries(d))t&&clearTimeout(t),delete d[e];if(n.hasRehydrationInfo(e)){const{queries:t}=n.extractRehydrationInfo(e);p(Object.keys(t),r,s)}}},Ji=new Error("Promise never resolved before cacheEntryRemoved."),Yi=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:o,internalState:i,selectors:{selectQueryEntry:a,selectApiState:s}})=>{const c=Ne(n),u=Ne(o),l=Ce(n,o),f={};function d(e,t,r){const n=f[e];n?.valueResolved&&(n.valueResolved({data:t,meta:r}),delete n.valueResolved)}function p(e){const t=f[e];t&&(delete f[e],t.cacheEntryRemoved())}function y(t,n,o,i,a){const s=r.endpointDefinitions[t],c=s?.onCacheEntryAdded;if(!c)return;const u={},l=new Promise(e=>{u.cacheEntryRemoved=e}),d=Promise.race([new Promise(e=>{u.valueResolved=e}),l.then(()=>{throw Ji})]);d.catch(()=>{}),f[o]=u;const p=e.endpoints[t].select(Ai(s)?n:o),y=i.dispatch((e,t,r)=>r),h={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:y,updateCachedData:Ai(s)?r=>i.dispatch(e.util.updateQueryData(t,n,r)):void 0,cacheDataLoaded:d,cacheEntryRemoved:l},m=c(n,h);Promise.resolve(m).catch(e=>{if(e!==Ji)throw e})}return(r,i,s)=>{const h=function(t){return c(t)?t.meta.arg.queryCacheKey:u(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Mi(t.payload):""}(r);function m(e,t,r,n){const o=a(s,t),c=a(i.getState(),t);!o&&c&&y(e,n,t,i,r)}if(n.pending.match(r))m(r.meta.arg.endpointName,h,r.meta.requestId,r.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(r))for(const{queryDescription:e,value:t}of r.payload){const{endpointName:n,originalArgs:o,queryCacheKey:i}=e;m(n,i,r.meta.requestId,o),d(i,t,{})}else if(o.pending.match(r))i.getState()[t].mutations[h]&&y(r.meta.arg.endpointName,r.meta.arg.originalArgs,h,i,r.meta.requestId);else if(l(r))d(h,r.payload,r.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(r)||e.internalActions.removeMutationResult.match(r))p(h);else if(e.util.resetApiState.match(r))for(const e of Object.keys(f))p(e)}},Xi=({api:e,context:{apiUid:t},reducerPath:r})=>(n,o)=>{e.util.resetApiState.match(n)&&o.dispatch(e.internalActions.middlewareRegistered(t)),"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&e.internalActions.middlewareRegistered.match(n)&&n.payload===t&&"conflict"===o.getState()[r]?.config?.middlewareRegistered&&console.warn(`There is a mismatch between slice and middleware for the reducerPath "${r}".\nYou can only have one api per reducer path, this will lead to crashes in various situations!${"api"===r?"\nIf you have multiple apis, you *have* to specify the reducerPath option when using createApi!":""}`)},Zi=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:o,api:i,assertTagType:a,refetchQuery:s,internalState:c})=>{const{removeQueryResult:u}=i.internalActions,l=_e(Ce(n),ke(n)),f=_e(Ce(n,o),Pe(n,o));let d=[];function p(r,n){const o=n.getState(),a=o[e];if(d.push(...r),"delayed"===a.config.invalidationBehavior&&function(e){const{queries:t,mutations:r}=e;for(const e of[t,r])for(const t in e)if("pending"===e[t]?.status)return!0;return!1}(a))return;const l=d;if(d=[],0===l.length)return;const f=i.util.selectInvalidatedBy(o,l);t.batch(()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=a.queries[t],r=c.currentSubscriptions[t]??{};e&&(0===li(r)?n.dispatch(u({queryCacheKey:t})):"uninitialized"!==e.status&&n.dispatch(s(e)))}})}return(e,t)=>{l(e)?p(qi(e,"invalidatesTags",r,a),t):f(e)?p([],t):i.util.invalidateTags.match(e)&&p(Ti(e.payload,void 0,void 0,void 0,void 0,a),t)}},ea=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:o})=>{const i={};function a({queryCacheKey:t},r){const s=r.getState()[e],c=s.queries[t],l=o.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=u(l);if(!Number.isFinite(f))return;const p=i[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const y=Date.now()+f;i[t]={nextPollTimestamp:y,pollingInterval:f,timeout:setTimeout(()=>{!s.config.focused&&d||r.dispatch(n(c)),a({queryCacheKey:t},r)},f)}}function s({queryCacheKey:t},r){const n=r.getState()[e].queries[t],s=o.currentSubscriptions[t];if(!n||"uninitialized"===n.status)return;const{lowestPollingInterval:l}=u(s);if(!Number.isFinite(l))return void c(t);const f=i[t],d=Date.now()+l;(!f||d<f.nextPollTimestamp)&&a({queryCacheKey:t},r)}function c(e){const t=i[e];t?.timeout&&clearTimeout(t.timeout),delete i[e]}function u(e={}){let t=!1,r=Number.POSITIVE_INFINITY;for(let n in e)e[n].pollingInterval&&(r=Math.min(e[n].pollingInterval,r),t=e[n].skipPollingIfUnfocused||t);return{lowestPollingInterval:r,skipPollingIfUnfocused:t}}return(e,n)=>{(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,n),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,n),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,n),r.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))c(e)}()}},ta=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const o=je(r,n),i=Pe(r,n),a=Ce(r,n),s={};return(r,n)=>{if(o(r)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=r.meta,c=t.endpointDefinitions[i],u=c?.onQueryStarted;if(u){const t={},r=new Promise((e,r)=>{t.resolve=e,t.reject=r});r.catch(()=>{}),s[o]=t;const l=e.endpoints[i].select(Ai(c)?a:o),f=n.dispatch((e,t,r)=>r),d={...n,getCacheEntry:()=>l(n.getState()),requestId:o,extra:f,updateCachedData:Ai(c)?t=>n.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:r};u(a,d)}}else if(a(r)){const{requestId:e,baseQueryMeta:t}=r.meta;s[e]?.resolve({data:r.payload,meta:t}),delete s[e]}else if(i(r)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:n}=r.meta;s[e]?.reject({error:r.payload??r.error,isUnhandledError:!t,meta:n}),delete s[e]}}};function ra(e){const{reducerPath:t,queryThunk:r,api:n,context:o}=e,{apiUid:i}=o,a={invalidateTags:me(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),u=[Xi,Gi,Zi,ea,Yi,ta];return{middleware:r=>{let a=!1;const f={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},d=u.map(e=>e(f)),p=(({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,c=()=>r.currentSubscriptions,u={getSubscriptions:c,getSubscriptionCount:e=>li(c()[e]??{}),isRequestSubscribed:(e,t)=>{const r=c();return!!r?.[e]?.[t]}};return(c,l)=>{if(o||(o=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(c))return o=r.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,u];const f=((r,n)=>{if(a.match(n)){const{queryCacheKey:e,requestId:t,options:o}=n.payload;return r?.[e]?.[t]&&(r[e][t]=o),!0}if(s.match(n)){const{queryCacheKey:e,requestId:t}=n.payload;return r[e]&&delete r[e][t],!0}if(e.internalActions.removeQueryResult.match(n))return delete r[n.payload.queryCacheKey],!0;if(t.pending.match(n)){const{meta:{arg:e,requestId:t}}=n,o=r[e.queryCacheKey]??={};return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let o=!1;if(t.fulfilled.match(n)||t.rejected.match(n)){const e=r[n.meta.arg.queryCacheKey]||{},t=`${n.meta.requestId}_running`;o||=!!e[t],delete e[t]}if(t.rejected.match(n)){const{meta:{condition:e,arg:t,requestId:i}}=n;if(e&&t.subscribe){const e=r[t.queryCacheKey]??={};e[i]=t.subscriptionOptions??e[i]??{},o=!0}}return o})(r.currentSubscriptions,c);let d=!0;if(f){i||(i=setTimeout(()=>{const t=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,n]=re(o,()=>t);l.next(e.internalActions.subscriptionsUpdated(n)),o=t,i=null},500));const a="string"==typeof c.type&&!!c.type.startsWith(n),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!a&&!s}return[d,!1]}})(f),y=(({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:o})=>{const{removeQueryResult:i}=r.internalActions;function a(r,a){const s=r.getState()[e],c=s.queries,u=o.currentSubscriptions;t.batch(()=>{for(const e of Object.keys(u)){const t=c[e],o=u[e];o&&t&&(Object.values(o).some(e=>!0===e[a])||Object.values(o).every(e=>void 0===e[a])&&s.config[a])&&(0===li(o)?r.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&r.dispatch(n(t)))}})}return(e,t)=>{vi.match(e)&&a(t,"refetchOnFocus"),Si.match(e)&&a(t,"refetchOnReconnect")}})(f);return e=>u=>{if(!c(u))return e(u);a||(a=!0,r.dispatch(n.internalActions.middlewareRegistered(i)));const l={...r,next:e},f=r.getState(),[h,m]=p(u,l,f);let g;if(g=h?e(u):m,r.getState()[t]&&(y(u,l,f),s(u)||o.hasRehydrationInfo(u)))for(const e of d)e(u,l,f);return g}},actions:a};function l(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var na=Symbol(),oa=({createSelector:e=pe}={})=>({name:na,init(t,{baseQuery:r,tagTypes:n,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:u,invalidationBehavior:l,onSchemaFailure:f,catchSchemaFailure:d,skipSchemaValidation:p},y){Z();const h=e=>("undefined"!=typeof process&&"development"===process.env.NODE_ENV&&(n.includes(e.type)||console.error(`Tag type '${e.type}' was used, but not specified in \`tagTypes\`!`)),e);Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:Si,onOffline:Ei,onFocus:vi,onFocusLost:wi},util:{}});const g=function({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=e=>Bi,o=e=>Vi;return{buildQuerySelector:function(e,t){return u(e,t,i)},buildInfiniteQuerySelector:function(e,t){const{infiniteQueryOptions:r}=t;return u(e,t,function(e){const t={...e,...si(e.status)},{isLoading:n,isError:o,direction:i}=t,a="forward"===i,s="backward"===i;return{...t,hasNextPage:l(r,t.data,t.originalArgs),hasPreviousPage:f(r,t.data,t.originalArgs),isFetchingNextPage:n&&a,isFetchingPreviousPage:n&&s,isFetchNextPageError:o&&a,isFetchPreviousPageError:o&&s}})},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Mi(e)??Qi:e,r(t===Qi?o:e=>a(e)?.mutations?.[t]??Vi,i)}},selectInvalidatedBy:function(e,r){const n=e[t],o=new Set;for(const e of r.filter(di).map(Ri)){const t=n.provided.tags[e.type];if(!t)continue;let r=(void 0!==e.id?t[e.id]:fi(Object.values(t)))??[];for(const e of r)o.add(e)}return fi(Array.from(o.values()).map(e=>{const t=n.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]}))},selectCachedArgsForQuery:function(e,t){return Object.values(s(e)).filter(e=>e?.endpointName===t&&"uninitialized"!==e.status).map(e=>e.originalArgs)},selectApiState:a,selectQueries:s,selectMutations:function(e){return a(e)?.mutations},selectQueryEntry:c,selectConfig:function(e){return a(e)?.config}};function i(e){return{...e,...si(e.status)}}function a(e){const r=e[t];if("production"!==process.env.NODE_ENV&&!r){if(a.triggered)return r;a.triggered=!0,console.error(`Error: No data found at \`state.${t}\`. Did you forget to add the reducer to the store?`)}return r}function s(e){return a(e)?.queries}function c(e,t){return s(e)?.[t]}function u(t,o,i){return a=>{if(a===Qi)return r(n,i);const s=e({queryArgs:a,endpointDefinition:o,endpointName:t});return r(e=>c(e,s)??Bi,i)}}function l(e,t,r){return!!t&&null!=Ii(e,t,r)}function f(e,t,r){return!(!t||!e.getPreviousPageParam)&&null!=Di(e,t,r)}}({serializeQueryArgs:i,reducerPath:o,createSelector:e}),{selectInvalidatedBy:b,selectCachedArgsForQuery:v,buildQuerySelector:w,buildInfiniteQuerySelector:S,buildMutationSelector:E}=g;Wi(t.util,{selectInvalidatedBy:b,selectCachedArgsForQuery:v});const{queryThunk:O,infiniteQueryThunk:_,mutationThunk:A,patchQueryData:T,updateQueryData:R,upsertQueryData:j,prefetch:P,buildMatchThunkActions:k}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:o,assertTagType:i,selectors:a,onSchemaFailure:s,catchSchemaFailure:c,skipSchemaValidation:u}){function l(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}function f(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}const d=(e,t)=>e.query&&e[t]?e[t]:Ni,p=async(e,{signal:n,abort:o,rejectWithValue:i,fulfillWithValue:p,dispatch:h,getState:m,extra:g})=>{const b=r[e.endpointName],{metaSchema:v,skipSchemaValidation:w=u}=b;try{let S=d(b,"transformResponse");const E={signal:n,abort:o,dispatch:h,getState:m,extra:g,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?y(e,m()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},O="query"===e.type?e[ji]:void 0;let _;const A=async(t,r,n,o)=>{if(null==r&&t.pages.length)return Promise.resolve({data:t});const i={queryArg:e.originalArgs,pageParam:r},a=await T(i),s=o?l:f;return{data:{pages:s(t.pages,a.data,n),pageParams:s(t.pageParams,r,n)},meta:a.meta}};async function T(r){let n;const{extraOptions:o,argSchema:i,rawResponseSchema:a,responseSchema:s}=b;if(i&&!w&&(r=await Ci(i,r,"argSchema",{})),n=O?O():b.query?await t(b.query(r),E,o):await b.queryFn(r,E,o,e=>t(e,E,o)),"undefined"!=typeof process&&"development"===process.env.NODE_ENV){const t=b.query?"`baseQuery`":"`queryFn`";let r;if(n){if("object"!=typeof n)r=`${t} did not return an object.`;else if(n.error&&n.data)r=`${t} returned an object containing both \`error\` and \`result\`.`;else if(void 0===n.error&&void 0===n.data)r=`${t} returned an object containing neither a valid \`error\` and \`result\`. At least one of them should not be \`undefined\``;else for(const e of Object.keys(n))if("error"!==e&&"data"!==e&&"meta"!==e){r=`The object returned by ${t} has the unknown property ${e}.`;break}}else r=`${t} did not return anything.`;r&&console.error(`Error encountered handling the endpoint ${e.endpointName}.\n ${r}\n It needs to return an object with either the shape \`{ data: <value> }\` or \`{ error: <value> }\` that may contain an optional \`meta\` property.\n Object returned was:`,n)}if(n.error)throw new bi(n.error,n.meta);let{data:c}=n;a&&!w&&(c=await Ci(a,n.data,"rawResponseSchema",n.meta));let u=await S(c,n.meta,r);return s&&!w&&(u=await Ci(s,u,"responseSchema",n.meta)),{...n,data:u}}if("query"===e.type&&"infiniteQueryOptions"in b){const{infiniteQueryOptions:R}=b,{maxPages:j=1/0}=R;let P;const k={pages:[],pageParams:[]},C=a.selectQueryEntry(m(),e.queryCacheKey)?.data,N=y(e,m())&&!e.direction||!C?k:C;if("direction"in e&&e.direction&&N.pages.length){const x="backward"===e.direction,I=(x?Di:Ii)(R,N,e.originalArgs);P=await A(N,I,j,x)}else{const{initialPageParam:D=R.initialPageParam}=e,q=C?.pageParams??[],F=q[0]??D,M=q.length;P=await A(N,F,j),O&&(P={data:P.data.pages[0]});for(let U=1;U<M;U++){const L=Ii(R,P.data,e.originalArgs);P=await A(P.data,L,j)}}_=P}else _=await T(e.originalArgs);return v&&!w&&_.meta&&(_.meta=await Ci(v,_.meta,"metaSchema",_.meta)),p(_.data,xi({fulfilledTimeStamp:Date.now(),baseQueryMeta:_.meta}))}catch($){let Q=$;if(Q instanceof bi){let z=d(b,"transformErrorResponse");const{rawErrorResponseSchema:B,errorResponseSchema:V}=b;let{value:K,meta:H}=Q;try{B&&!w&&(K=await Ci(B,K,"rawErrorResponseSchema",H)),v&&!w&&(H=await Ci(v,H,"metaSchema",H));let W=await z(K,H,e.originalArgs);return V&&!w&&(W=await Ci(V,W,"errorResponseSchema",H)),i(W,xi({baseQueryMeta:H}))}catch(G){Q=G}}try{if(Q instanceof ki){const J={endpoint:e.endpointName,arg:e.originalArgs,type:e.type,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0};b.onSchemaFailure?.(Q,J),s?.(Q,J);const{catchSchemaFailure:Y=c}=b;if(Y)return i(Y(Q,J),xi({baseQueryMeta:Q._bqMeta}))}}catch(X){Q=X}throw"undefined"!=typeof process&&"production"!==process.env.NODE_ENV?console.error(`An unhandled error occurred processing a request for the endpoint "${e.endpointName}".\nIn the case of an unhandled error, no tags will be "provided" or "invalidated".`,Q):console.error(Q),Q}};function y(e,t){const r=a.selectQueryEntry(t,e.queryCacheKey),n=a.selectConfig(t).refetchOnMountOrArgChange,o=r?.fulfilledTimeStamp,i=e.forceRefetch??(e.subscribe&&n);return!!i&&(!0===i||(Number(new Date)-Number(o))/1e3>=i)}const h=()=>Ue(`${e}/executeQuery`,p,{getPendingMeta({arg:e}){const t=r[e.endpointName];return xi({startedTimeStamp:Date.now(),..._i(t)?{direction:e.direction}:{}})},condition(e,{getState:t}){const n=t(),o=a.selectQueryEntry(n,e.queryCacheKey),i=o?.fulfilledTimeStamp,s=e.originalArgs,c=o?.originalArgs,u=r[e.endpointName],l=e.direction;return!(!Pi(e)&&("pending"===o?.status||!y(e,n)&&(!Oi(u)||!u?.forceRefetch?.({currentArg:s,previousArg:c,endpointState:o,state:n}))&&i&&!l))},dispatchConditionRejection:!0}),g=h(),b=h();function v(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:g,mutationThunk:Ue(`${e}/executeMutation`,p,{getPendingMeta:()=>xi({startedTimeStamp:Date.now()})}),infiniteQueryThunk:b,prefetch:(e,t,r)=>(n,i)=>{const a=(e=>"force"in e)(r)&&r.force,s=(e=>"ifOlderThan"in e)(r)&&r.ifOlderThan,c=(r=!0)=>{const n={forceRefetch:r,isPrefetch:!0};return o.endpoints[e].initiate(t,n)},u=o.endpoints[e].select(t)(i());if(a)n(c());else if(s){const e=u?.fulfilledTimeStamp;if(!e)return void n(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&n(c())}else n(c(!1))},updateQueryData:(e,t,r,n=!0)=>(i,a)=>{const s=o.endpoints[e].select(t)(a()),c={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,c.inversePatches,n))};if("uninitialized"===s.status)return c;let u;if("data"in s)if(m(s.data)){const[e,t,n]=re(s.data,r);c.patches.push(...t),c.inversePatches.push(...n),u=e}else u=r(s.data),c.patches.push({op:"replace",path:[],value:u}),c.inversePatches.push({op:"replace",path:[],value:s.data});return 0===c.patches.length||i(o.util.patchQueryData(e,t,c.patches,n)),c},upsertQueryData:(e,t,r)=>n=>n(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[ji]:()=>({data:r})})),patchQueryData:(e,t,a,s)=>(c,u)=>{const l=r[e],f=n({queryArgs:t,endpointDefinition:l,endpointName:e});if(c(o.internalActions.queryResultPatched({queryCacheKey:f,patches:a})),!s)return;const d=o.endpoints[e].select(t)(u()),p=Ti(l.providesTags,d.data,void 0,t,{},i);c(o.internalActions.updateProvidedBy([{queryCacheKey:f,providedTags:p}]))},buildMatchThunkActions:function(e,t){return{matchPending:Ae(je(e),v(t)),matchFulfilled:Ae(Ce(e),v(t)),matchRejected:Ae(Pe(e),v(t))}}}}({baseQuery:r,reducerPath:o,context:y,api:t,serializeQueryArgs:i,assertTagType:h,selectors:g,onSchemaFailure:f,catchSchemaFailure:d,skipSchemaValidation:p}),{reducer:C,actions:N}=$i({context:y,queryThunk:O,mutationThunk:A,serializeQueryArgs:i,reducerPath:o,assertTagType:h,config:{refetchOnFocus:c,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:l}});Wi(t.util,{patchQueryData:T,updateQueryData:R,upsertQueryData:j,prefetch:P,resetApiState:N.resetApiState,upsertQueryEntries:N.cacheEntriesUpserted}),Wi(t.internalActions,N);const{middleware:x,actions:I}=ra({reducerPath:o,context:y,queryThunk:O,mutationThunk:A,infiniteQueryThunk:_,api:t,assertTagType:h,selectors:g});Wi(t.util,I),Wi(t,{reducer:C,middleware:x});const{buildInitiateQuery:D,buildInitiateInfiniteQuery:q,buildInitiateMutation:F,getRunningMutationThunk:M,getRunningMutationsThunk:U,getRunningQueriesThunk:L,getRunningQueryThunk:$}=function({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:r,mutationThunk:n,api:o,context:i}){const a=new Map,s=new Map,{unsubscribeQueryResult:c,removeMutationResult:u,updateSubscriptionOptions:l}=o.internalActions;return{buildInitiateQuery:function(e,t){return d(e,t)},buildInitiateInfiniteQuery:function(e,t){return d(e,t)},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,a)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),l=i(c);f(i);const{requestId:d,abort:p,unwrap:y}=l,h=(m=e=>({error:e}),l.unwrap().then(e=>({data:e})).catch(m));var m;const g=Object.assign(h,{arg:l.arg,requestId:d,abort:p,unwrap:y,reset:()=>{i(u({requestId:d,fixedCacheKey:o}))}}),b=s.get(i)||{};return s.set(i,b),b[d]=g,g.then(()=>{delete b[d],li(b)||s.delete(i)}),o&&(b[o]=g,g.then(()=>{b[o]===g&&(delete b[o],li(b)||s.delete(i))})),g}},getRunningQueryThunk:function(t,r){return n=>{const o=i.endpointDefinitions[t],s=e({queryArgs:r,endpointDefinition:o,endpointName:t});return a.get(n)?.[s]}},getRunningMutationThunk:function(e,t){return e=>s.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(a.get(e)||{}).filter(di)},getRunningMutationsThunk:function(){return e=>Object.values(s.get(e)||{}).filter(di)}};function f(e){if("production"!==process.env.NODE_ENV){if(f.triggered)return;const t=e(o.internalActions.internal_getRTKQSubscriptions());if(f.triggered=!0,"object"!=typeof t||"string"==typeof t?.type)throw new Error("production"===process.env.NODE_ENV?tt(34):`Warning: Middleware for RTK-Query API at reducerPath "${o.reducerPath}" has not been added to the store.\nYou must add the middleware for RTK-Query to function correctly!`)}}function d(n,i){const s=(u,{subscribe:d=!0,forceRefetch:p,subscriptionOptions:y,[ji]:h,...m}={})=>(g,b)=>{const v=e({queryArgs:u,endpointDefinition:i,endpointName:n});let w;const S={...m,type:"query",subscribe:d,forceRefetch:p,subscriptionOptions:y,endpointName:n,originalArgs:u,queryCacheKey:v,[ji]:h};if(Oi(i))w=t(S);else{const{direction:e,initialPageParam:t}=m;w=r({...S,direction:e,initialPageParam:t})}const E=o.endpoints[n].select(u),O=g(w),_=E(b());f(g);const{requestId:A,abort:T}=O,R=_.requestId!==A,j=a.get(g)?.[v],P=()=>E(b()),k=Object.assign(h?O.then(P):R&&!j?Promise.resolve(_):Promise.all([j,O]).then(P),{arg:u,requestId:A,subscriptionOptions:y,queryCacheKey:v,abort:T,async unwrap(){const e=await k;if(e.isError)throw e.error;return e.data},refetch:()=>g(s(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){d&&g(c({queryCacheKey:v,requestId:A}))},updateSubscriptionOptions(e){k.subscriptionOptions=e,g(l({endpointName:n,requestId:A,queryCacheKey:v,options:e}))}});if(!j&&!R&&!h){const e=(N=g,x={},(C=a).has(N)?C.get(N):C.set(N,x).get(N));e[v]=k,k.then(()=>{delete e[v],li(e)||a.delete(g)})}var C,N,x;return k};return s}}({queryThunk:O,mutationThunk:A,infiniteQueryThunk:_,api:t,serializeQueryArgs:i,context:y});return Wi(t.util,{getRunningMutationThunk:M,getRunningMutationsThunk:U,getRunningQueryThunk:$,getRunningQueriesThunk:L}),{name:na,injectEndpoint(e,r){const n=t,o=n.endpoints[e]??={};Oi(r)&&Wi(o,{name:e,select:w(e,r),initiate:D(e,r)},k(O,e)),"mutation"===r.type&&Wi(o,{name:e,select:E(),initiate:F(e)},k(A,e)),_i(r)&&Wi(o,{name:e,select:S(e,r),initiate:q(e,r)},k(O,e))}}}});oa();var ia,aa={exports:{}},sa={};var ca,ua,la={exports:{}};
1
+ var version=function(e){"use strict";function t(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 r=()=>Math.random().toString(36).substring(7).split("").join("."),n={INIT:`@@redux/INIT${r()}`,REPLACE:`@@redux/REPLACE${r()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${r()}`};function o(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function i(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function a(e,t,r,i){const a=Object.keys(t),s=r&&r.type===n.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===a.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!o(e))return`The ${s} has unexpected type of "${function(e){let t=typeof e;return"production"!==process.env.NODE_ENV&&(t=function(e){if(void 0===e)return"undefined";if(null===e)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";const r=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}(e)),t}(e)}". Expected argument to be an object with the following keys: "${a.join('", "')}"`;const c=Object.keys(e).filter(e=>!t.hasOwnProperty(e)&&!i[e]);return c.forEach(e=>{i[e]=!0}),r&&r.type===n.REPLACE?void 0:c.length>0?`Unexpected ${c.length>1?"keys":"key"} "${c.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${a.join('", "')}". Unexpected keys will be ignored.`:void 0}function s(e){const r=Object.keys(e),o={};for(let t=0;t<r.length;t++){const n=r[t];"production"!==process.env.NODE_ENV&&void 0===e[n]&&i(`No reducer provided for key "${n}"`),"function"==typeof e[n]&&(o[n]=e[n])}const s=Object.keys(o);let c,u;"production"!==process.env.NODE_ENV&&(c={});try{!function(e){Object.keys(e).forEach(r=>{const o=e[r];if(void 0===o(void 0,{type:n.INIT}))throw new Error("production"===process.env.NODE_ENV?t(12):`The slice reducer for key "${r}" 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(void 0===o(void 0,{type:n.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?t(13):`The slice reducer for key "${r}" returned undefined when probed with a random type. Don't try to handle '${n.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.`)})}(o)}catch(e){u=e}return function(e={},r){if(u)throw u;if("production"!==process.env.NODE_ENV){const t=a(e,o,r,c);t&&i(t)}let n=!1;const l={};for(let i=0;i<s.length;i++){const a=s[i],c=o[a],u=e[a],f=c(u,r);if(void 0===f){const e=r&&r.type;throw new Error("production"===process.env.NODE_ENV?t(14):`When called with an action of type ${e?`"${String(e)}"`:"(unknown type)"}, the slice reducer for key "${a}" 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.`)}l[a]=f,n=n||f!==u}return n=n||s.length!==Object.keys(e).length,n?l:e}}function c(e){return o(e)&&"type"in e&&"string"==typeof e.type}var u=Symbol.for("immer-nothing"),l=Symbol.for("immer-draftable"),f=Symbol.for("immer-state"),d="production"!==process.env.NODE_ENV?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function p(e,...t){if("production"!==process.env.NODE_ENV){const r=d[e],n="function"==typeof r?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var y=Object.getPrototypeOf;function h(e){return!!e&&!!e[f]}function m(e){return!!e&&(b(e)||Array.isArray(e)||!!e[l]||!!e.constructor?.[l]||_(e)||A(e))}var g=Object.prototype.constructor.toString();function b(e){if(!e||"object"!=typeof e)return!1;const t=y(e);if(null===t)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===g}function v(e,t){0===w(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function w(e){const t=e[f];return t?t.type_:Array.isArray(e)?1:_(e)?2:A(e)?3:0}function E(e,t){return 2===w(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function S(e,t){return 2===w(e)?e.get(t):e[t]}function O(e,t,r){const n=w(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function _(e){return e instanceof Map}function A(e){return e instanceof Set}function T(e){return e.copy_||e.base_}function R(e,t){if(_(e))return new Map(e);if(A(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=b(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[f];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const o=r[n],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(y(e),t)}{const t=y(e);if(null!==t&&r)return{...e};const n=Object.create(t);return Object.assign(n,e)}}function P(e,t=!1){return k(e)||h(e)||!m(e)||(w(e)>1&&(e.set=e.add=e.clear=e.delete=j),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>P(t,!0))),e}function j(){p(2)}function k(e){return Object.isFrozen(e)}var C,N={};function I(e){const t=N[e];return t||p(0,e),t}function x(){return C}function D(e,t){t&&(I("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function q(e){F(e),e.drafts_.forEach(U),e.drafts_=null}function F(e){e===C&&(C=e.parent_)}function M(e){return C={drafts_:[],parent_:C,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function U(e){const t=e[f];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function L(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[f].modified_&&(q(t),p(4)),m(e)&&(e=$(t,e),t.parent_||z(t,e)),t.patches_&&I("Patches").generateReplacementPatches_(r[f].base_,e,t.patches_,t.inversePatches_)):e=$(t,r,[]),q(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==u?e:void 0}function $(e,t,r){if(k(t))return t;const n=t[f];if(!n)return v(t,(o,i)=>Q(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return z(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const t=n.copy_;let o=t,i=!1;3===n.type_&&(o=new Set(t),t.clear(),i=!0),v(o,(o,a)=>Q(e,n,t,o,a,r,i)),z(e,t,!1),r&&e.patches_&&I("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Q(e,t,r,n,o,i,a){if("production"!==process.env.NODE_ENV&&o===r&&p(5),h(o)){const a=$(e,o,i&&t&&3!==t.type_&&!E(t.assigned_,n)?i.concat(n):void 0);if(O(r,n,a),!h(a))return;e.canAutoFreeze_=!1}else a&&r.add(o);if(m(o)&&!k(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;$(e,o),t&&t.scope_.parent_||"symbol"==typeof n||!Object.prototype.propertyIsEnumerable.call(r,n)||z(e,o)}}function z(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&P(t,r)}var B={get(e,t){if(t===f)return e;const r=T(e);if(!E(r,t))return function(e,t,r){const n=H(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);const n=r[t];return e.finalized_||!m(n)?n:n===K(e.base_,t)?(G(e),e.copy_[t]=J(n,e)):n},has:(e,t)=>t in T(e),ownKeys:e=>Reflect.ownKeys(T(e)),set(e,t,r){const n=H(T(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=K(T(e),t),a=n?.[f];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(((o=r)===(i=n)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==r||E(e.base_,t)))return!0;G(e),W(e)}var o,i;return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==K(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,G(e),W(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=T(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){p(11)},getPrototypeOf:e=>y(e.base_),setPrototypeOf(){p(12)}},V={};function K(e,t){const r=e[f];return(r?T(r):e)[t]}function H(e,t){if(!(t in e))return;let r=y(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=y(r)}}function W(e){e.modified_||(e.modified_=!0,e.parent_&&W(e.parent_))}function G(e){e.copy_||(e.copy_=R(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function J(e,t){const r=_(e)?I("MapSet").proxyMap_(e,t):A(e)?I("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:x(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=B;r&&(o=[n],i=V);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}(e,t);return(t?t.scope_:x()).drafts_.push(r),r}function Y(e){return h(e)||p(10,e),X(e)}function X(e){if(!m(e)||k(e))return e;const t=e[f];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=R(e,t.scope_.immer_.useStrictShallowCopy_)}else r=R(e,!0);return v(r,(e,t)=>{O(r,e,X(t))}),t&&(t.finalized_=!1),r}function Z(){"production"!==process.env.NODE_ENV&&d.push('Sets cannot have "replace" patches.',function(e){return"Unsupported patch operation: "+e},function(e){return"Cannot apply patch, path doesn't resolve: "+e},"Patching reserved attributes like __proto__, prototype and constructor is not allowed");const e="replace",t="add",r="remove";function n(e){if(!m(e))return e;if(Array.isArray(e))return e.map(n);if(_(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,n(t)]));if(A(e))return new Set(Array.from(e).map(n));const t=Object.create(y(e));for(const r in e)t[r]=n(e[r]);return E(e,l)&&(t[l]=e[l]),t}function o(e){return h(e)?n(e):e}!function(e,t){N[e]||(N[e]=t)}("Patches",{applyPatches_:function(o,i){return i.forEach(i=>{const{path:a,op:s}=i;let c=o;for(let e=0;e<a.length-1;e++){const t=w(c);let r=a[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),0!==t&&1!==t||"__proto__"!==r&&"constructor"!==r||p(19),"function"==typeof c&&"prototype"===r&&p(19),c=S(c,r),"object"!=typeof c&&p(18,a.join("/"))}const u=w(c),l=n(i.value),f=a[a.length-1];switch(s){case e:switch(u){case 2:return c.set(f,l);case 3:p(16);default:return c[f]=l}case t:switch(u){case 1:return"-"===f?c.push(l):c.splice(f,0,l);case 2:return c.set(f,l);case 3:return c.add(l);default:return c[f]=l}case r:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(i.value);default:return delete c[f]}default:p(17,s)}}),o},generatePatches_:function(n,i,a,s){switch(n.type_){case 0:case 2:return function(n,i,a,s){const{base_:c,copy_:u}=n;v(n.assigned_,(n,l)=>{const f=S(c,n),d=S(u,n),p=l?E(c,n)?e:t:r;if(f===d&&p===e)return;const y=i.concat(n);a.push(p===r?{op:p,path:y}:{op:p,path:y,value:d}),s.push(p===t?{op:r,path:y}:p===r?{op:t,path:y,value:o(f)}:{op:e,path:y,value:o(f)})})}(n,i,a,s);case 1:return function(n,i,a,s){let{base_:c,assigned_:u}=n,l=n.copy_;l.length<c.length&&([c,l]=[l,c],[a,s]=[s,a]);for(let t=0;t<c.length;t++)if(u[t]&&l[t]!==c[t]){const r=i.concat([t]);a.push({op:e,path:r,value:o(l[t])}),s.push({op:e,path:r,value:o(c[t])})}for(let e=c.length;e<l.length;e++){const r=i.concat([e]);a.push({op:t,path:r,value:o(l[e])})}for(let e=l.length-1;c.length<=e;--e){const t=i.concat([e]);s.push({op:r,path:t})}}(n,i,a,s);case 3:return function(e,n,o,i){let{base_:a,copy_:s}=e,c=0;a.forEach(e=>{if(!s.has(e)){const a=n.concat([c]);o.push({op:r,path:a,value:e}),i.unshift({op:t,path:a,value:e})}c++}),c=0,s.forEach(e=>{if(!a.has(e)){const a=n.concat([c]);o.push({op:t,path:a,value:e}),i.unshift({op:r,path:a,value:e})}c++})}(n,i,a,s)}},generateReplacementPatches_:function(t,r,n,o){n.push({op:e,path:[],value:r===u?void 0:r}),o.push({op:e,path:[],value:t})}})}v(B,(e,t)=>{V[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),V.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&p(13),V.set.call(this,e,t,void 0)},V.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&p(14),B.set.call(this,e[0],t,r,e[0])};var ee=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...o){return n.produce(e,e=>t.call(this,e,...o))}}let n;if("function"!=typeof t&&p(6),void 0!==r&&"function"!=typeof r&&p(7),m(e)){const o=M(this),i=J(e,void 0);let a=!0;try{n=t(i),a=!1}finally{a?q(o):F(o)}return D(o,r),L(n,o)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===u&&(n=void 0),this.autoFreeze_&&P(n,!0),r){const t=[],o=[];I("Patches").generateReplacementPatches_(e,n,t,o),r(t,o)}return n}p(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){m(e)||p(8),h(e)&&(e=Y(e));const t=M(this),r=J(e,void 0);return r[f].isManual_=!0,F(t),r}finishDraft(e,t){const r=e&&e[f];r&&r.isManual_||p(9);const{scope_:n}=r;return D(n,t),L(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=I("Patches").applyPatches_;return h(e)?n(e,t):this.produce(e,e=>n(e,t))}},te=ee.produce,re=ee.produceWithPatches.bind(ee);ee.setAutoFreeze.bind(ee),ee.setUseStrictShallowCopy.bind(ee);var ne=ee.applyPatches.bind(ee);ee.createDraft.bind(ee),ee.finishDraft.bind(ee);var oe=(e,t,r)=>{if(1===t.length&&t[0]===r){let r=!1;try{const t={};e(t)===t&&(r=!0)}catch{}if(r){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.",{stack:e})}}},ie=(e,t,r)=>{const{memoize:n,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,s=n(()=>({}),...o);if(s.apply(null,i)!==s.apply(null,a)){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`",{arguments:r,firstInputs:i,secondInputs:a,stack:e})}},ae={inputStabilityCheck:"once",identityFunctionCheck:"once"},se=e=>Array.isArray(e)?e:[e];function ce(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var ue="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function le(){return{s:0,v:void 0,o:null,p:null}}function fe(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=t;let o,i=0;function a(){let t=r;const{length:a}=arguments;for(let e=0,r=a;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t=le(),e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t=le(),e.set(r,t)):t=n}}const s=t;let c;if(1===t.s)c=t.v;else if(c=e.apply(null,arguments),i++,n){const e=o?.deref?.()??o;null!=e&&n(e,c)&&(c=e,0!==i&&i--),o="object"==typeof c&&null!==c||"function"==typeof c?new ue(c):c}return s.s=1,s.v=c,c}return a.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function de(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...r,...i},{memoize:c,memoizeOptions:u=[],argsMemoize:l=fe,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=se(u),y=se(f),h=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),m=c(function(){return n++,a.apply(null,arguments)},...p);let g=!0;const b=l(function(){o++;const e=ce(h,arguments);if(t=m.apply(null,e),"production"!==process.env.NODE_ENV){const{identityFunctionCheck:r,inputStabilityCheck:n}=((e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...ae,...t};return{identityFunctionCheck:{shouldRun:"always"===r||"once"===r&&e,run:oe},inputStabilityCheck:{shouldRun:"always"===n||"once"===n&&e,run:ie}}})(g,d);if(r.shouldRun&&r.run(a,e,t),n.shouldRun){const t=ce(h,arguments);n.run({inputSelectorResults:e,inputSelectorResultsCopy:t},{memoize:c,memoizeOptions:p},arguments)}g&&(g=!1)}return t},...y);return Object.assign(b,{resultFunc:a,memoizedResultFunc:m,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:c,argsMemoize:l})};return Object.assign(n,{withTypes:()=>n}),n}var pe=de(fe),ye=Object.assign((e,t=pe)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>ye}),he=((...e)=>{const t=de(...e),r=Object.assign((...e)=>{const r=t(...e),n=(e,...t)=>r(h(e)?Y(e):e,...t);return Object.assign(n,r),n},{withTypes:()=>r});return r})(fe);function me(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error("production"===process.env.NODE_ENV?tt(0):"prepareAction did not return an object");return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>c(t)&&t.type===e,r}function ge(e){return["type","payload","error","meta"].indexOf(e)>-1}function be(e){return m(e)?te(e,()=>{}):e}function ve(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var we="RTK_autoBatch",Ee=()=>e=>({payload:e,meta:{[we]:!0}});function Se(e){const t={},r=[];let n;const o={addCase(e,i){if("production"!==process.env.NODE_ENV){if(r.length>0)throw new Error("production"===process.env.NODE_ENV?tt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("production"===process.env.NODE_ENV?tt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const a="string"==typeof e?e:e.type;if(!a)throw new Error("production"===process.env.NODE_ENV?tt(28):"`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("production"===process.env.NODE_ENV?tt(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${a}'`);return t[a]=i,o},addMatcher(e,t){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?tt(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:e,reducer:t}),o},addDefaultCase(e){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?tt(31):"`builder.addDefaultCase` can only be called once");return n=e,o}};return e(o),[t,r,n]}var Oe=(e,t)=>{return(r=e)&&"function"==typeof r.match?e.match(t):e(t);var r};function _e(...e){return t=>e.some(e=>Oe(e,t))}function Ae(...e){return t=>e.every(e=>Oe(e,t))}function Te(e,t){if(!e||!e.meta)return!1;const r="string"==typeof e.meta.requestId,n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function Re(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Pe(...e){return 0===e.length?e=>Te(e,["pending"]):Re(e)?_e(...e.map(e=>e.pending)):Pe()(e[0])}function je(...e){return 0===e.length?e=>Te(e,["rejected"]):Re(e)?_e(...e.map(e=>e.rejected)):je()(e[0])}function ke(...e){return 0===e.length||Re(e)?Ae(je(...e),e=>e&&e.meta&&e.meta.rejectedWithValue):ke()(e[0])}function Ce(...e){return 0===e.length?e=>Te(e,["fulfilled"]):Re(e)?_e(...e.map(e=>e.fulfilled)):Ce()(e[0])}function Ne(...e){return 0===e.length?e=>Te(e,["pending","fulfilled","rejected"]):Re(e)?_e(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):Ne()(e[0])}var Ie=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},xe=["name","message","stack","code"],De=class{constructor(e,t){this.payload=e,this.meta=t}_type},qe=class{constructor(e,t){this.payload=e,this.meta=t}_type},Fe=e=>{if("object"==typeof e&&null!==e){const t={};for(const r of xe)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}},Me="External signal was aborted",Ue=(()=>{function e(e,t,r){const n=me(e+"/fulfilled",(e,t,r,n)=>({payload:e,meta:{...n||{},arg:r,requestId:t,requestStatus:"fulfilled"}})),o=me(e+"/pending",(e,t,r)=>({payload:void 0,meta:{...r||{},arg:t,requestId:e,requestStatus:"pending"}})),i=me(e+"/rejected",(e,t,n,o,i)=>({payload:o,error:(r&&r.serializeError||Fe)(e||"Rejected"),meta:{...i||{},arg:n,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}}));return Object.assign(function(e,{signal:a}={}){return(s,c,u)=>{const l=r?.idGenerator?r.idGenerator(e):Ie(),f=new AbortController;let d,p;function y(e){p=e,f.abort()}a&&(a.aborted?y(Me):a.addEventListener("abort",()=>y(Me),{once:!0}));const h=async function(){let a;try{let i=r?.condition?.(e,{getState:c,extra:u});if(null!==(h=i)&&"object"==typeof h&&"function"==typeof h.then&&(i=await i),!1===i||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const m=new Promise((e,t)=>{d=()=>{t({name:"AbortError",message:p||"Aborted"})},f.signal.addEventListener("abort",d)});s(o(l,e,r?.getPendingMeta?.({requestId:l,arg:e},{getState:c,extra:u}))),a=await Promise.race([m,Promise.resolve(t(e,{dispatch:s,getState:c,extra:u,requestId:l,signal:f.signal,abort:y,rejectWithValue:(e,t)=>new De(e,t),fulfillWithValue:(e,t)=>new qe(e,t)})).then(t=>{if(t instanceof De)throw t;return t instanceof qe?n(t.payload,l,e,t.meta):n(t,l,e)})])}catch(t){a=t instanceof De?i(null,l,e,t.payload,t.meta):i(t,l,e)}finally{d&&f.signal.removeEventListener("abort",d)}var h;return r&&!r.dispatchConditionRejection&&i.match(a)&&a.meta.condition||s(a),a}();return Object.assign(h,{abort:y,requestId:l,arg:e,unwrap:()=>h.then(Le)})}},{pending:o,rejected:i,fulfilled:n,settled:_e(i,n),typePrefix:e})}return e.withTypes=()=>e,e})();function Le(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var $e=Symbol.for("rtk-slice-createasyncthunk");function Qe(e,t){return`${e}/${t}`}function ze(e,t,r,n){function o(o,...i){let a=t(o);if(void 0===a)if(n)a=r();else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?tt(16):"selectState returned undefined for an uninjected slice reducer");return e(a,...i)}return o.unwrapped=e,o}var Be=function({creators:e}={}){const t=e?.asyncThunk?.[$e];return function(e){const{name:r,reducerPath:n=r}=e;if(!r)throw new Error("production"===process.env.NODE_ENV?tt(11):"`name` is a required option for createSlice");"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&void 0===e.initialState&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error("production"===process.env.NODE_ENV?tt(12):"`context.addCase` cannot be called with an empty action type");if(r in a.sliceCaseReducersByType)throw new Error("production"===process.env.NODE_ENV?tt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+r);return a.sliceCaseReducersByType[r]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function c(){if("production"!==process.env.NODE_ENV&&"object"==typeof e.extraReducers)throw new Error("production"===process.env.NODE_ENV?tt(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[t={},r=[],n]="function"==typeof e.extraReducers?Se(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){process.env.NODE_ENV;let r,[n,o,i]=Se(t);if("function"==typeof e)r=()=>be(e());else{const t=be(e);r=()=>t}function a(e=r(),t){let a=[n[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===a.filter(e=>!!e).length&&(a=[i]),a.reduce((e,r)=>{if(r){if(h(e)){const n=r(e,t);return void 0===n?e:n}if(m(e))return te(e,e=>r(e,t));{const n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return a.getInitialState=r,a}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}i.forEach(n=>{const i=o[n],a={reducerName:n,type:Qe(r,n),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(n))throw new Error("production"===process.env.NODE_ENV?tt(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?me(e,a):me(e))}(a,i,s):function({type:e,reducerName:t},r,n,o){if(!o)throw new Error("production"===process.env.NODE_ENV?tt(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:a,pending:s,rejected:c,settled:u,options:l}=r,f=o(e,i,l);n.exposeAction(t,f),a&&n.addCase(f.fulfilled,a),s&&n.addCase(f.pending,s),c&&n.addCase(f.rejected,c),u&&n.addMatcher(f.settled,u),n.exposeCaseReducer(t,{fulfilled:a||Ve,pending:s||Ve,rejected:c||Ve,settled:u||Ve})}(a,i,s,t)});const u=e=>e,l=new Map,f=new WeakMap;let d;function p(e,t){return d||(d=c()),d(e,t)}function y(){return d||(d=c()),d.getInitialState()}function g(t,r=!1){function n(e){let o=e[t];if(void 0===o)if(r)o=ve(f,n,y);else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?tt(15):"selectSlice returned undefined for an uninjected slice reducer");return o}function o(t=u){const n=ve(l,r,()=>new WeakMap);return ve(n,t,()=>{const n={};for(const[o,i]of Object.entries(e.selectors??{}))n[o]=ze(i,t,()=>ve(f,t,y),r);return n})}return{reducerPath:t,getSelectors:o,get selectors(){return o(n)},selectSlice:n}}const b={name:r,reducer:p,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:y,...g(n),injectInto(e,{reducerPath:t,...r}={}){const o=t??n;return e.inject({reducerPath:o,reducer:p},r),{...b,...g(o,!0)}}};return b}}();function Ve(){}var Ke=h;function He(e){const t=We((t,r)=>e(r));return function(e){return t(e,void 0)}}function We(e){return function(t,r){const n=t=>{!function(e){return c(t=e)&&Object.keys(t).every(ge);var t}(r)?e(r,t):e(r.payload,t)};return Ke(t)?(n(t),t):te(t,n)}}function Ge(e,t){const r=t(e);return"production"!==process.env.NODE_ENV&&void 0===r&&console.warn("The entity passed to the `selectId` implementation returned undefined.","You should probably provide your own `selectId` implementation.","The entity that was passed:",e,"The `selectId` implementation:",t.toString()),r}function Je(e){return Array.isArray(e)||(e=Object.values(e)),e}function Ye(e){return h(e)?Y(e):e}function Xe(e,t,r){e=Je(e);const n=Ye(r.ids),o=new Set(n),i=[],a=new Set([]),s=[];for(const r of e){const e=Ge(r,t);o.has(e)||a.has(e)?s.push({id:e,changes:r}):(a.add(e),i.push(r))}return[i,s,n]}function Ze(e){function t(t,r){const n=Ge(t,e);n in r.entities||(r.ids.push(n),r.entities[n]=t)}function r(e,r){e=Je(e);for(const n of e)t(n,r)}function n(t,r){const n=Ge(t,e);n in r.entities||r.ids.push(n),r.entities[n]=t}function o(e,t){let r=!1;e.forEach(e=>{e in t.entities&&(delete t.entities[e],r=!0)}),r&&(t.ids=t.ids.filter(e=>e in t.entities))}function i(t,r){const n={},o={};if(t.forEach(e=>{e.id in r.entities&&(o[e.id]={id:e.id,changes:{...o[e.id]?.changes,...e.changes}})}),(t=Object.values(o)).length>0){const o=t.filter(t=>function(t,r,n){const o=n.entities[r.id];if(void 0===o)return!1;const i=Object.assign({},o,r.changes),a=Ge(i,e),s=a!==r.id;return s&&(t[r.id]=a,delete n.entities[r.id]),n.entities[a]=i,s}(n,t,r)).length>0;o&&(r.ids=Object.values(r.entities).map(t=>Ge(t,e)))}}function a(t,n){const[o,a]=Xe(t,e,n);r(o,n),i(a,n)}return{removeAll:He(function(e){Object.assign(e,{ids:[],entities:{}})}),addOne:We(t),addMany:We(r),setOne:We(n),setMany:We(function(e,t){e=Je(e);for(const r of e)n(r,t)}),setAll:We(function(e,t){e=Je(e),t.ids=[],t.entities={},r(e,t)}),updateOne:We(function(e,t){return i([e],t)}),updateMany:We(i),upsertOne:We(function(e,t){return a([e],t)}),upsertMany:We(a),removeOne:We(function(e,t){return o([e],t)}),removeMany:We(o)}}function et(e,t,r){const n=function(e,t,r){let n=0,o=e.length;for(;n<o;){let i=n+o>>>1;r(t,e[i])>=0?n=i+1:o=i}return n}(e,t,r);return e.splice(n,0,t),e}function tt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function rt(e,t){return function(){return e.apply(t,arguments)}}const{toString:nt}=Object.prototype,{getPrototypeOf:ot}=Object,{iterator:it,toStringTag:at}=Symbol,st=(e=>t=>{const r=nt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ct=e=>(e=e.toLowerCase(),t=>st(t)===e),ut=e=>t=>typeof t===e,{isArray:lt}=Array,ft=ut("undefined");function dt(e){return null!==e&&!ft(e)&&null!==e.constructor&&!ft(e.constructor)&&ht(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pt=ct("ArrayBuffer"),yt=ut("string"),ht=ut("function"),mt=ut("number"),gt=e=>null!==e&&"object"==typeof e,bt=e=>{if("object"!==st(e))return!1;const t=ot(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||at in e||it in e)},vt=ct("Date"),wt=ct("File"),Et=ct("Blob"),St=ct("FileList"),Ot=ct("URLSearchParams"),[_t,At,Tt,Rt]=["ReadableStream","Request","Response","Headers"].map(ct);function Pt(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),lt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(dt(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function jt(e,t){if(dt(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const kt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ct=e=>!ft(e)&&e!==kt,Nt=(It="undefined"!=typeof Uint8Array&&ot(Uint8Array),e=>It&&e instanceof It);var It;const xt=ct("HTMLFormElement"),Dt=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qt=ct("RegExp"),Ft=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Pt(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},Mt=ct("AsyncFunction"),Ut=(Lt="function"==typeof setImmediate,$t=ht(kt.postMessage),Lt?setImmediate:$t?(Qt=`axios@${Math.random()}`,zt=[],kt.addEventListener("message",({source:e,data:t})=>{e===kt&&t===Qt&&zt.length&&zt.shift()()},!1),e=>{zt.push(e),kt.postMessage(Qt,"*")}):e=>setTimeout(e));var Lt,$t,Qt,zt;const Bt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(kt):"undefined"!=typeof process&&process.nextTick||Ut;var Vt={isArray:lt,isArrayBuffer:pt,isBuffer:dt,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ht(e.append)&&("formdata"===(t=st(e))||"object"===t&&ht(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pt(e.buffer),t},isString:yt,isNumber:mt,isBoolean:e=>!0===e||!1===e,isObject:gt,isPlainObject:bt,isEmptyObject:e=>{if(!gt(e)||dt(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:_t,isRequest:At,isResponse:Tt,isHeaders:Rt,isUndefined:ft,isDate:vt,isFile:wt,isBlob:Et,isRegExp:qt,isFunction:ht,isStream:e=>gt(e)&&ht(e.pipe),isURLSearchParams:Ot,isTypedArray:Nt,isFileList:St,forEach:Pt,merge:function e(){const{caseless:t}=Ct(this)&&this||{},r={},n=(n,o)=>{const i=t&&jt(r,o)||o;bt(r[i])&&bt(n)?r[i]=e(r[i],n):bt(n)?r[i]=e({},n):lt(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Pt(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(Pt(t,(t,n)=>{r&&ht(t)?e[n]=rt(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&ot(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:st,kindOfTest:ct,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(lt(e))return e;let t=e.length;if(!mt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[it]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:xt,hasOwnProperty:Dt,hasOwnProp:Dt,reduceDescriptors:Ft,freezeMethods:e=>{Ft(e,(t,r)=>{if(ht(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];ht(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return lt(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:jt,global:kt,isContextDefined:Ct,isSpecCompliantForm:function(e){return!!(e&&ht(e.append)&&"FormData"===e[at]&&e[it])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(gt(e)){if(t.indexOf(e)>=0)return;if(dt(e))return e;if(!("toJSON"in e)){t[n]=e;const o=lt(e)?[]:{};return Pt(e,(e,t)=>{const i=r(e,n+1);!ft(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Mt,isThenable:e=>e&&(gt(e)||ht(e))&&ht(e.then)&&ht(e.catch),setImmediate:Ut,asap:Bt,isIterable:e=>null!=e&&ht(e[it])};function Kt(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}Vt.inherits(Kt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Vt.toJSONObject(this.config),code:this.code,status:this.status}}});const Ht=Kt.prototype,Wt={};function Gt(e){return Vt.isPlainObject(e)||Vt.isArray(e)}function Jt(e){return Vt.endsWith(e,"[]")?e.slice(0,-2):e}function Yt(e,t,r){return e?e.concat(t).map(function(e,t){return e=Jt(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Wt[e]={value:e}}),Object.defineProperties(Kt,Wt),Object.defineProperty(Ht,"isAxiosError",{value:!0}),Kt.from=(e,t,r,n,o,i)=>{const a=Object.create(Ht);return Vt.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Kt.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Xt=Vt.toFlatObject(Vt,{},null,function(e){return/^is[A-Z]/.test(e)});function Zt(e,t,r){if(!Vt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=Vt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Vt.isUndefined(t[e])})).metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Vt.isSpecCompliantForm(t);if(!Vt.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Vt.isDate(e))return e.toISOString();if(Vt.isBoolean(e))return e.toString();if(!s&&Vt.isBlob(e))throw new Kt("Blob is not supported. Use a Buffer instead.");return Vt.isArrayBuffer(e)||Vt.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(Vt.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Vt.isArray(e)&&function(e){return Vt.isArray(e)&&!e.some(Gt)}(e)||(Vt.isFileList(e)||Vt.endsWith(r,"[]"))&&(s=Vt.toArray(e)))return r=Jt(r),s.forEach(function(e,n){!Vt.isUndefined(e)&&null!==e&&t.append(!0===a?Yt([r],n,i):null===a?r:r+"[]",c(e))}),!1;return!!Gt(e)||(t.append(Yt(o,r,i),c(e)),!1)}const l=[],f=Object.assign(Xt,{defaultVisitor:u,convertValue:c,isVisitable:Gt});if(!Vt.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Vt.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Vt.forEach(r,function(r,i){!0===(!(Vt.isUndefined(r)||null===r)&&o.call(t,r,Vt.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])}),l.pop()}}(e),t}function er(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function tr(e,t){this._pairs=[],e&&Zt(e,this,t)}const rr=tr.prototype;function nr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function or(e,t,r){if(!t)return e;const n=r&&r.encode||nr;Vt.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):Vt.isURLSearchParams(t)?t.toString():new tr(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}rr.append=function(e,t){this._pairs.push([e,t])},rr.toString=function(e){const t=e?function(t){return e.call(this,t,er)}:er;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ir{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Vt.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ar={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sr={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tr,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const cr="undefined"!=typeof window&&"undefined"!=typeof document,ur="object"==typeof navigator&&navigator||void 0,lr=cr&&(!ur||["ReactNative","NativeScript","NS"].indexOf(ur.product)<0),fr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dr=cr&&window.location.href||"http://localhost";var pr={...Object.freeze({__proto__:null,hasBrowserEnv:cr,hasStandardBrowserEnv:lr,hasStandardBrowserWebWorkerEnv:fr,navigator:ur,origin:dr}),...sr};function yr(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Vt.isArray(n)?n.length:i,s?(Vt.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a):(n[i]&&Vt.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&Vt.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!a)}if(Vt.isFormData(e)&&Vt.isFunction(e.entries)){const r={};return Vt.forEachEntry(e,(e,n)=>{t(function(e){return Vt.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const hr={transitional:ar,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Vt.isObject(e);if(o&&Vt.isHTMLForm(e)&&(e=new FormData(e)),Vt.isFormData(e))return n?JSON.stringify(yr(e)):e;if(Vt.isArrayBuffer(e)||Vt.isBuffer(e)||Vt.isStream(e)||Vt.isFile(e)||Vt.isBlob(e)||Vt.isReadableStream(e))return e;if(Vt.isArrayBufferView(e))return e.buffer;if(Vt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Zt(e,new pr.classes.URLSearchParams,{visitor:function(e,t,r,n){return pr.isNode&&Vt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Vt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Zt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e){if(Vt.isString(e))try{return(0,JSON.parse)(e),Vt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hr.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Vt.isResponse(e)||Vt.isReadableStream(e))return e;if(e&&Vt.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Kt.from(e,Kt.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Vt.forEach(["delete","get","head","post","put","patch"],e=>{hr.headers[e]={}});const mr=Vt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gr=Symbol("internals");function br(e){return e&&String(e).trim().toLowerCase()}function vr(e){return!1===e||null==e?e:Vt.isArray(e)?e.map(vr):String(e)}function wr(e,t,r,n,o){return Vt.isFunction(n)?n.call(this,t,r):(o&&(t=r),Vt.isString(t)?Vt.isString(n)?-1!==t.indexOf(n):Vt.isRegExp(n)?n.test(t):void 0:void 0)}let Er=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=br(t);if(!o)throw new Error("header name must be a non-empty string");const i=Vt.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=vr(e))}const i=(e,t)=>Vt.forEach(e,(e,r)=>o(e,r,t));if(Vt.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Vt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&mr[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(Vt.isObject(e)&&Vt.isIterable(e)){let r,n,o={};for(const t of e){if(!Vt.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?Vt.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=br(e)){const r=Vt.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Vt.isFunction(t))return t.call(this,e,r);if(Vt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=br(e)){const r=Vt.findKey(this,e);return!(!r||void 0===this[r]||t&&!wr(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=br(e)){const o=Vt.findKey(r,e);!o||t&&!wr(0,r[o],o,t)||(delete r[o],n=!0)}}return Vt.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!wr(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Vt.forEach(this,(n,o)=>{const i=Vt.findKey(r,o);if(i)return t[i]=vr(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();a!==o&&delete t[o],t[a]=vr(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Vt.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Vt.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[gr]=this[gr]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=br(e);t[n]||(function(e,t){const r=Vt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return Vt.isArray(e)?e.forEach(n):n(e),this}};function Sr(e,t){const r=this||hr,n=t||r,o=Er.from(n.headers);let i=n.data;return Vt.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Or(e){return!(!e||!e.__CANCEL__)}function _r(e,t,r){Kt.call(this,null==e?"canceled":e,Kt.ERR_CANCELED,t,r),this.name="CanceledError"}function Ar(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Kt("Request failed with status code "+r.status,[Kt.ERR_BAD_REQUEST,Kt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Er.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Vt.reduceDescriptors(Er.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Vt.freezeMethods(Er),Vt.inherits(_r,Kt,{__CANCEL__:!0});const Tr=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=n[a];o||(o=c),r[i]=s,n[i]=c;let l=a,f=0;for(;l!==i;)f+=r[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},i-s)))},()=>r&&a(r)]}(r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,c=o(s);n=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},Rr=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Pr=e=>(...t)=>Vt.asap(()=>e(...t));var jr=pr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,pr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(pr.origin),pr.navigator&&/(msie|trident)/i.test(pr.navigator.userAgent)):()=>!0,kr=pr.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];Vt.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Vt.isString(n)&&a.push("path="+n),Vt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Cr(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Nr=e=>e instanceof Er?{...e}:e;function Ir(e,t){t=t||{};const r={};function n(e,t,r,n){return Vt.isPlainObject(e)&&Vt.isPlainObject(t)?Vt.merge.call({caseless:n},e,t):Vt.isPlainObject(t)?Vt.merge({},t):Vt.isArray(t)?t.slice():t}function o(e,t,r,o){return Vt.isUndefined(t)?Vt.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!Vt.isUndefined(t))return n(void 0,t)}function a(e,t){return Vt.isUndefined(t)?Vt.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(Nr(e),Nr(t),0,!0)};return Vt.forEach(Object.keys({...e,...t}),function(n){const i=c[n]||o,a=i(e[n],t[n],n);Vt.isUndefined(a)&&i!==s||(r[n]=a)}),r}var xr=e=>{const t=Ir({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=Er.from(s),t.url=or(Cr(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Vt.isFormData(n))if(pr.hasStandardBrowserEnv||pr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(pr.hasStandardBrowserEnv&&(o&&Vt.isFunction(o)&&(o=o(t)),o||!1!==o&&jr(t.url))){const e=i&&a&&kr.read(a);e&&s.set(i,e)}return t},Dr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=xr(e);let o=n.data;const i=Er.from(n.headers).normalize();let a,s,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=n;function y(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function m(){if(!h)return;const n=Er.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Ar(function(e){t(e),y()},function(e){r(e),y()},{data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(r(new Kt("Request aborted",Kt.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new Kt("Network Error",Kt.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||ar;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Kt(t,o.clarifyTimeoutError?Kt.ETIMEDOUT:Kt.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Vt.forEach(i.toJSON(),function(e,t){h.setRequestHeader(t,e)}),Vt.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),f&&"json"!==f&&(h.responseType=n.responseType),p&&([c,l]=Tr(p,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,u]=Tr(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new _r(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);g&&-1===pr.protocols.indexOf(g)?r(new Kt("Unsupported protocol "+g+":",Kt.ERR_BAD_REQUEST,e)):h.send(o||null)})};const qr=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Kt?t:new _r(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Kt(`timeout ${t} of ms exceeded`,Kt.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=()=>Vt.asap(a),s}},Fr=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},Mr=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Fr(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ur="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Lr=Ur&&"function"==typeof ReadableStream,$r=Ur&&("function"==typeof TextEncoder?(Qr=new TextEncoder,e=>Qr.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Qr;const zr=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Br=Lr&&zr(()=>{let e=!1;const t=new Request(pr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Vr=Lr&&zr(()=>Vt.isReadableStream(new Response("").body)),Kr={stream:Vr&&(e=>e.body)};var Hr;Ur&&(Hr=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Kr[e]&&(Kr[e]=Vt.isFunction(Hr[e])?t=>t[e]():(t,r)=>{throw new Kt(`Response type '${e}' is not supported`,Kt.ERR_NOT_SUPPORT,r)})}));const Wr={http:null,xhr:Dr,fetch:Ur&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=xr(e);u=u?(u+"").toLowerCase():"text";let p,y=qr([o,i&&i.toAbortSignal()],a);const h=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let m;try{if(c&&Br&&"get"!==r&&"head"!==r&&0!==(m=await(async(e,t)=>{const r=Vt.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Vt.isBlob(e))return e.size;if(Vt.isSpecCompliantForm(e)){const t=new Request(pr.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Vt.isArrayBufferView(e)||Vt.isArrayBuffer(e)?e.byteLength:(Vt.isURLSearchParams(e)&&(e+=""),Vt.isString(e)?(await $r(e)).byteLength:void 0)})(t):r})(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(Vt.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=Rr(m,Tr(Pr(c)));n=Mr(r.body,65536,e,t)}}Vt.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...d,signal:y,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0});let i=await fetch(p,d);const a=Vr&&("stream"===u||"response"===u);if(Vr&&(s||a&&h)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=Vt.toFiniteNumber(i.headers.get("content-length")),[r,n]=s&&Rr(t,Tr(Pr(s),!0))||[];i=new Response(Mr(i.body,65536,r,()=>{n&&n(),h&&h()}),e)}u=u||"text";let g=await Kr[Vt.findKey(Kr,u)||"text"](i,e);return!a&&h&&h(),await new Promise((t,r)=>{Ar(t,r,{data:g,headers:Er.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})})}catch(t){if(h&&h(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Kt("Network Error",Kt.ERR_NETWORK,e,p),{cause:t.cause||t});throw Kt.from(t,t&&t.code,e,p)}})};Vt.forEach(Wr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Gr=e=>`- ${e}`,Jr=e=>Vt.isFunction(e)||null===e||!1===e;var Yr=e=>{e=Vt.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!Jr(r)&&(n=Wr[(t=String(r)).toLowerCase()],void 0===n))throw new Kt(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Kt("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Gr).join("\n"):" "+Gr(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function Xr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _r(null,e)}function Zr(e){return Xr(e),e.headers=Er.from(e.headers),e.data=Sr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yr(e.adapter||hr.adapter)(e).then(function(t){return Xr(e),t.data=Sr.call(e,e.transformResponse,t),t.headers=Er.from(t.headers),t},function(t){return Or(t)||(Xr(e),t&&t.response&&(t.response.data=Sr.call(e,e.transformResponse,t.response),t.response.headers=Er.from(t.response.headers))),Promise.reject(t)})}const en="1.11.0",tn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const rn={};tn.transitional=function(e,t,r){function n(e,t){return"[Axios v"+en+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new Kt(n(o," has been removed"+(t?" in "+t:"")),Kt.ERR_DEPRECATED);return t&&!rn[o]&&(rn[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},tn.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var nn={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Kt("options must be an object",Kt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new Kt("option "+i+" must be "+r,Kt.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Kt("Unknown option "+i,Kt.ERR_BAD_OPTION)}},validators:tn};const on=nn.validators;let an=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ir,response:new ir}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ir(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&nn.assertOptions(r,{silentJSONParsing:on.transitional(on.boolean),forcedJSONParsing:on.transitional(on.boolean),clarifyTimeoutError:on.transitional(on.boolean)},!1),null!=n&&(Vt.isFunction(n)?t.paramsSerializer={serialize:n}:nn.assertOptions(n,{encode:on.function,serialize:on.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nn.assertOptions(t,{baseUrl:on.spelling("baseURL"),withXsrfToken:on.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Vt.merge(o.common,o[t.method]);o&&Vt.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Er.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,f=0;if(!s){const e=[Zr.bind(this),void 0];for(e.unshift(...a),e.push(...c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=a.length;let d=t;for(f=0;f<l;){const t=a[f++],r=a[f++];try{d=t(d)}catch(e){r.call(this,e);break}}try{u=Zr.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return or(Cr((e=Ir(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Vt.forEach(["delete","get","head","options"],function(e){an.prototype[e]=function(t,r){return this.request(Ir(r||{},{method:e,url:t,data:(r||{}).data}))}}),Vt.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(Ir(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}an.prototype[e]=t(),an.prototype[e+"Form"]=t(!0)});const sn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(sn).forEach(([e,t])=>{sn[t]=e});const cn=function e(t){const r=new an(t),n=rt(an.prototype.request,r);return Vt.extend(n,an.prototype,r,{allOwnKeys:!0}),Vt.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ir(t,r))},n}(hr);cn.Axios=an,cn.CanceledError=_r,cn.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new _r(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},cn.isCancel=Or,cn.VERSION=en,cn.toFormData=Zt,cn.AxiosError=Kt,cn.Cancel=cn.CanceledError,cn.all=function(e){return Promise.all(e)},cn.spread=function(e){return function(t){return e.apply(null,t)}},cn.isAxiosError=function(e){return Vt.isObject(e)&&!0===e.isAxiosError},cn.mergeConfig=Ir,cn.AxiosHeaders=Er,cn.formToJSON=e=>yr(Vt.isHTMLForm(e)?new FormData(e):e),cn.getAdapter=Yr,cn.HttpStatusCode=sn,cn.default=cn;const{Axios:un,AxiosError:ln,CanceledError:fn,isCancel:dn,CancelToken:pn,VERSION:yn,all:hn,Cancel:mn,isAxiosError:gn,spread:bn,toFormData:vn,AxiosHeaders:wn,HttpStatusCode:En,formToJSON:Sn,getAdapter:On,mergeConfig:_n}=cn;var An,Tn,Rn,Pn,jn,kn,Cn,Nn,In,xn,Dn,qn,Fn,Mn,Un,Ln,$n,Qn,zn,Bn,Vn,Kn,Hn,Wn,Gn,Jn,Yn,Xn,Zn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function eo(){return xn?In:(xn=1,In=SyntaxError)}function to(){return qn?Dn:(qn=1,Dn=TypeError)}function ro(){if(Wn)return Hn;Wn=1;var e=function(){if(Kn)return Vn;Kn=1;var e=Object.prototype.toString,t=Math.max,r=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};return Vn=function(n){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),s=t(0,o.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var e=o.apply(this,r(a,arguments));return Object(e)===e?e:this}return o.apply(n,r(a,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i},Vn}();return Hn=Function.prototype.bind||e}function no(){if(Xn)return Yn;var e;Xn=1;var t=Tn?An:(Tn=1,An=Error),r=Pn?Rn:(Pn=1,Rn=EvalError),n=kn?jn:(kn=1,jn=RangeError),o=Nn?Cn:(Nn=1,Cn=ReferenceError),i=eo(),a=to(),s=Mn?Fn:(Mn=1,Fn=URIError),c=Function,u=function(e){try{return c('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var f=function(){throw new a},d=l?function(){try{return f}catch(e){try{return l(arguments,"callee").get}catch(e){return f}}}():f,p=function(){if(Qn)return $n;Qn=1;var e="undefined"!=typeof Symbol&&Symbol,t=Ln?Un:(Ln=1,Un=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0});return $n=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"==typeof e("foo")&&"symbol"==typeof Symbol("bar")&&t()}}()(),y=function(){if(Bn)return zn;Bn=1;var e={__proto__:null,foo:{}},t=Object;return zn=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof t)}}()(),h=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),m={},g="undefined"!=typeof Uint8Array&&h?h(Uint8Array):e,b={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":p&&h?h([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&h?h(h([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&h?h((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":n,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&h?h((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&h?h(""[Symbol.iterator]()):e,"%Symbol%":p?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":d,"%TypedArray%":g,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":s,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet};if(h)try{null.error}catch(e){var v=h(h(e));b["%Error.prototype%"]=v}var w=function e(t){var r;if("%AsyncFunction%"===t)r=u("async function () {}");else if("%GeneratorFunction%"===t)r=u("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=u("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&h&&(r=h(o.prototype))}return b[t]=r,r},E={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=ro(),O=function(){if(Jn)return Gn;Jn=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=ro();return Gn=r.call(e,t)}(),_=S.call(Function.call,Array.prototype.concat),A=S.call(Function.apply,Array.prototype.splice),T=S.call(Function.call,String.prototype.replace),R=S.call(Function.call,String.prototype.slice),P=S.call(Function.call,RegExp.prototype.exec),j=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,C=function(e,t){var r,n=e;if(O(E,n)&&(n="%"+(r=E[n])[0]+"%"),O(b,n)){var o=b[n];if(o===m&&(o=w(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};return Yn=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=R(e,0,1),r=R(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return T(e,j,function(e,t,r,o){n[n.length]=r?T(o,k,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=C("%"+n+"%",t),s=o.name,c=o.value,u=!1,f=o.alias;f&&(n=f[0],A(r,_([0,1],f)));for(var d=1,p=!0;d<r.length;d+=1){var y=r[d],h=R(y,0,1),m=R(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new i("property names with quotes must have matching quotes");if("constructor"!==y&&p||(u=!0),O(b,s="%"+(n+="."+y)+"%"))c=b[s];else if(null!=c){if(!(y in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=r.length){var g=l(c,y);c=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[y]}else p=O(c,y),c=c[y];p&&!u&&(b[s]=c)}}return c},Yn}var oo,io,ao,so,co,uo,lo,fo,po,yo,ho,mo,go,bo={exports:{}};function vo(){if(io)return oo;io=1;var e=no()("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return oo=e}function wo(){if(so)return ao;so=1;var e=no()("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch(t){e=null}return ao=e}function Eo(){if(yo)return po;yo=1;var e=no(),t=function(){if(uo)return co;uo=1;var e=vo(),t=eo(),r=to(),n=wo();return co=function(o,i,a){if(!o||"object"!=typeof o&&"function"!=typeof o)throw new r("`obj` must be an object or a function`");if("string"!=typeof i&&"symbol"!=typeof i)throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new r("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!n&&n(o,i);if(e)e(o,i,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:a,writable:null===c&&f?f.writable:!c});else{if(!l&&(s||c||u))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");o[i]=a}},co}(),r=function(){if(fo)return lo;fo=1;var e=vo(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return 1!==e([],"length",{value:1}).length}catch(e){return!0}},lo=t}()(),n=wo(),o=to(),i=e("%Math.floor%");return po=function(e,a){if("function"!=typeof e)throw new o("`fn` is not a function");if("number"!=typeof a||a<0||a>4294967295||i(a)!==a)throw new o("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],c=!0,u=!0;if("length"in e&&n){var l=n(e,"length");l&&!l.configurable&&(c=!1),l&&!l.writable&&(u=!1)}return(c||u||!s)&&(r?t(e,"length",a,!0,!0):t(e,"length",a)),e},po}function So(){if(go)return mo;go=1;var e=no(),t=(ho||(ho=1,function(e){var t=ro(),r=no(),n=Eo(),o=to(),i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(a,i),c=vo(),u=r("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var r=s(t,a,arguments);return n(r,1+u(0,e.length-(arguments.length-1)),!0)};var l=function(){return s(t,i,arguments)};c?c(e.exports,"apply",{value:l}):e.exports.apply=l}(bo)),bo.exports),r=t(e("String.prototype.indexOf"));return mo=function(n,o){var i=e(n,!!o);return"function"==typeof i&&r(n,".prototype.")>-1?t(i):i}}var Oo,_o,Ao,To,Ro,Po,jo,ko,Co,No,Io,xo,Do,qo,Fo=function(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze({__proto__:null,default:{}}));function Mo(){if(To)return Ao;To=1;var e=no(),t=So(),r=function(){if(_o)return Oo;_o=1;var e="function"==typeof Map&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&"function"==typeof t.get?t.get:null,n=e&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,s=o&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,u="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,l="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,d=Object.prototype.toString,p=Function.prototype.toString,y=String.prototype.match,h=String.prototype.slice,m=String.prototype.replace,g=String.prototype.toUpperCase,b=String.prototype.toLowerCase,v=RegExp.prototype.test,w=Array.prototype.concat,E=Array.prototype.join,S=Array.prototype.slice,O=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function C(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||v.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-O(-e):O(e);if(n!==e){var o=String(n),i=h.call(t,o.length+1);return m.call(o,r,"$&_")+"."+m.call(m.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(t,r,"$&_")}var N=Fo,I=N.custom,x=U(I)?I:null;function D(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function q(e){return m.call(String(e),/"/g,"&quot;")}function F(e){return!("[object Array]"!==Q(e)||P&&"object"==typeof e&&P in e)}function M(e){return!("[object RegExp]"!==Q(e)||P&&"object"==typeof e&&P in e)}function U(e){if(R)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}Oo=function e(t,o,i,d){var g=o||{};if($(g,"quoteStyle")&&"single"!==g.quoteStyle&&"double"!==g.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(g,"maxStringLength")&&("number"==typeof g.maxStringLength?g.maxStringLength<0&&g.maxStringLength!==1/0:null!==g.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var v=!$(g,"customInspect")||g.customInspect;if("boolean"!=typeof v&&"symbol"!==v)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(g,"indent")&&null!==g.indent&&"\t"!==g.indent&&!(parseInt(g.indent,10)===g.indent&&g.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(g,"numericSeparator")&&"boolean"!=typeof g.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var O=g.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return B(t,g);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var A=String(t);return O?C(t,A):A}if("bigint"==typeof t){var I=String(t)+"n";return O?C(t,I):I}var L=void 0===g.depth?5:g.depth;if(void 0===i&&(i=0),i>=L&&L>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var V=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=E.call(Array(e.indent+1)," ")}return{base:r,prev:E.call(Array(t+1),r)}}(g,i);if(void 0===d)d=[];else if(z(d,t)>=0)return"[Circular]";function Y(t,r,n){if(r&&(d=S.call(d)).push(r),n){var o={depth:g.depth};return $(g,"quoteStyle")&&(o.quoteStyle=g.quoteStyle),e(t,o,i+1,d)}return e(t,g,i+1,d)}if("function"==typeof t&&!M(t)){var X=function(e){if(e.name)return e.name;var t=y.call(p.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),Z=J(t,Y);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(Z.length>0?" { "+E.call(Z,", ")+" }":"")}if(U(t)){var ee=R?m.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||R?ee:K(ee)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var te="<"+b.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+D(q(re[ne].value),"double",g);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+"</"+b.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var oe=J(t,Y);return V&&!function(e){for(var t=0;t<e.length;t++)if(z(e[t],"\n")>=0)return!1;return!0}(oe)?"["+G(oe,V)+"]":"[ "+E.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t)){var ie=J(t,Y);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ie,", ")+" }":"{ ["+String(t)+"] "+E.call(w.call("[cause]: "+Y(t.cause),ie),", ")+" }"}if("object"==typeof t&&v){if(x&&"function"==typeof t[x]&&N)return N(t,{depth:L-i});if("symbol"!==v&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!r||!e||"object"!=typeof e)return!1;try{r.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return n&&n.call(t,function(e,r){ae.push(Y(r,t,!0)+" => "+Y(e,t))}),W("Map",r.call(t),ae,V)}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{r.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return s&&s.call(t,function(e){se.push(Y(e,t))}),W("Set",a.call(t),se,V)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{u.call(e,u)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return H("WeakMap");if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e,u);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return H("WeakSet");if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{return l.call(e),!0}catch(e){}return!1}(t))return H("WeakRef");if(function(e){return!("[object Number]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t))return K(Y(Number(t)));if(function(e){if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}(t))return K(Y(_.call(t)));if(function(e){return!("[object Boolean]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t))return K(f.call(t));if(function(e){return!("[object String]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t))return K(Y(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==Zn&&t===Zn)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==Q(e)||P&&"object"==typeof e&&P in e)}(t)&&!M(t)){var ce=J(t,Y),ue=k?k(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",fe=!ue&&P&&Object(t)===t&&P in t?h.call(Q(t),8,-1):le?"Object":"",de=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||le?"["+E.call(w.call([],fe||[],le||[]),": ")+"] ":"");return 0===ce.length?de+"{}":V?de+"{"+G(ce,V)+"}":de+"{ "+E.call(ce,", ")+" }"}return String(t)};var L=Object.prototype.hasOwnProperty||function(e){return e in this};function $(e,t){return L.call(e,t)}function Q(e){return d.call(e)}function z(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function B(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return B(h.call(e,0,t.maxStringLength),t)+n}return D(m.call(m.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,V),"single",t)}function V(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+g.call(t.toString(16))}function K(e){return"Object("+e+")"}function H(e){return e+" { ? }"}function W(e,t,r,n){return e+" ("+t+") {"+(n?G(r,n):E.call(r,", "))+"}"}function G(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+E.call(e,","+r)+"\n"+t.prev}function J(e,t){var r=F(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=$(e,o)?t(e[o],e):""}var i,a="function"==typeof A?A(e):[];if(R){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)$(e,c)&&(r&&String(Number(c))===c&&c<e.length||R&&i["$"+c]instanceof Symbol||(v.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof A)for(var u=0;u<a.length;u++)j.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}return Oo}(),n=to(),o=e("%WeakMap%",!0),i=e("%Map%",!0),a=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),u=t("Map.prototype.get",!0),l=t("Map.prototype.set",!0),f=t("Map.prototype.has",!0),d=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};return Ao=function(){var e,t,p,y={assert:function(e){if(!y.has(e))throw new n("Side channel does not contain "+r(e))},get:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(e)return a(e,r)}else if(i){if(t)return u(t,r)}else if(p)return function(e,t){var r=d(e,t);return r&&r.value}(p,r)},has:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(i){if(t)return f(t,r)}else if(p)return function(e,t){return!!d(e,t)}(p,r);return!1},set:function(r,n){o&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new o),s(e,r,n)):i?(t||(t=new i),l(t,r,n)):(p||(p={key:{},next:null}),function(e,t,r){var n=d(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(p,r,n))}};return y}}function Uo(){if(Po)return Ro;Po=1;var e=String.prototype.replace,t=/%20/g,r="RFC3986";return Ro={default:r,formatters:{RFC1738:function(r){return e.call(r,t,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}}function Lo(){if(ko)return jo;ko=1;var e=Uo(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},i=1024;return jo={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:u}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(t,r,o,a,s){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===o)return escape(c).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var u="",l=0;l<c.length;l+=i){for(var f=c.length>=i?c.slice(l,l+i):c,d=[],p=0;p<f.length;++p){var y=f.charCodeAt(p);45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||s===e.RFC1738&&(40===y||41===y)?d[d.length]=f.charAt(p):y<128?d[d.length]=n[y]:y<2048?d[d.length]=n[192|y>>6]+n[128|63&y]:y<55296||y>=57344?d[d.length]=n[224|y>>12]+n[128|y>>6&63]+n[128|63&y]:(p+=1,y=65536+((1023&y)<<10|1023&f.charCodeAt(p)),d[d.length]=n[240|y>>18]+n[128|y>>12&63]+n[128|y>>6&63]+n[128|63&y])}u+=d.join("")}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(r(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(n,i,a){if(!i)return n;if("object"!=typeof i){if(r(n))n.push(i);else{if(!n||"object"!=typeof n)return[n,i];(a&&(a.plainObjects||a.allowPrototypes)||!t.call(Object.prototype,i))&&(n[i]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(i);var s=n;return r(n)&&!r(i)&&(s=o(n,a)),r(n)&&r(i)?(i.forEach(function(r,o){if(t.call(n,o)){var i=n[o];i&&"object"==typeof i&&r&&"object"==typeof r?n[o]=e(i,r,a):n.push(r)}else n[o]=r}),n):Object.keys(i).reduce(function(r,n){var o=i[n];return t.call(r,n)?r[n]=e(r[n],o,a):r[n]=o,r},s)}},jo}var $o=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(qo)return Do;qo=1;var e=function(){if(No)return Co;No=1;var e=Mo(),t=Lo(),r=Uo(),n=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},i=Array.isArray,a=Array.prototype.push,s=function(e,t){a.apply(e,i(t)?t:[t])},c=Date.prototype.toISOString,u=r.default,l={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,format:u,formatter:r.formatters[u],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},f={},d=function r(n,o,a,c,u,d,p,y,h,m,g,b,v,w,E,S,O,_){for(var A,T=n,R=_,P=0,j=!1;void 0!==(R=R.get(f))&&!j;){var k=R.get(n);if(P+=1,void 0!==k){if(k===P)throw new RangeError("Cyclic object value");j=!0}void 0===R.get(f)&&(P=0)}if("function"==typeof m?T=m(o,T):T instanceof Date?T=v(T):"comma"===a&&i(T)&&(T=t.maybeMap(T,function(e){return e instanceof Date?v(e):e})),null===T){if(d)return h&&!S?h(o,l.encoder,O,"key",w):o;T=""}if("string"==typeof(A=T)||"number"==typeof A||"boolean"==typeof A||"symbol"==typeof A||"bigint"==typeof A||t.isBuffer(T))return h?[E(S?o:h(o,l.encoder,O,"key",w))+"="+E(h(T,l.encoder,O,"value",w))]:[E(o)+"="+E(String(T))];var C,N=[];if(void 0===T)return N;if("comma"===a&&i(T))S&&h&&(T=t.maybeMap(T,h)),C=[{value:T.length>0?T.join(",")||null:void 0}];else if(i(m))C=m;else{var I=Object.keys(T);C=g?I.sort(g):I}var x=y?o.replace(/\./g,"%2E"):o,D=c&&i(T)&&1===T.length?x+"[]":x;if(u&&i(T)&&0===T.length)return D+"[]";for(var q=0;q<C.length;++q){var F=C[q],M="object"==typeof F&&void 0!==F.value?F.value:T[F];if(!p||null!==M){var U=b&&y?F.replace(/\./g,"%2E"):F,L=i(T)?"function"==typeof a?a(D,U):D:D+(b?"."+U:"["+U+"]");_.set(n,P);var $=e();$.set(f,_),s(N,r(M,L,a,c,u,d,p,y,"comma"===a&&S&&i(T)?null:h,m,g,b,v,w,E,S,O,$))}}return N};return Co=function(t,a){var c,u=t,f=function(e){if(!e)return l;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||l.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=r.default;if(void 0!==e.format){if(!n.call(r.formatters,e.format))throw new TypeError("Unknown format option provided.");a=e.format}var s,c=r.formatters[a],u=l.filter;if(("function"==typeof e.filter||i(e.filter))&&(u=e.filter),s=e.arrayFormat in o?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":l.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=void 0===e.allowDots?!0===e.encodeDotInKeys||l.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:l.addQueryPrefix,allowDots:f,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:l.allowEmptyArrays,arrayFormat:s,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?l.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:l.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:l.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:l.encodeValuesOnly,filter:u,format:a,formatter:c,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:l.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}}(a);"function"==typeof f.filter?u=(0,f.filter)("",u):i(f.filter)&&(c=f.filter);var p=[];if("object"!=typeof u||null===u)return"";var y=o[f.arrayFormat],h="comma"===y&&f.commaRoundTrip;c||(c=Object.keys(u)),f.sort&&c.sort(f.sort);for(var m=e(),g=0;g<c.length;++g){var b=c[g];f.skipNulls&&null===u[b]||s(p,d(u[b],b,y,h,f.allowEmptyArrays,f.strictNullHandling,f.skipNulls,f.encodeDotInKeys,f.encode?f.encoder:null,f.filter,f.sort,f.allowDots,f.serializeDate,f.format,f.formatter,f.encodeValuesOnly,f.charset,m))}var v=p.join(f.delimiter),w=!0===f.addQueryPrefix?"?":"";return f.charsetSentinel&&("iso-8859-1"===f.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""},Co}(),t=function(){if(xo)return Io;xo=1;var e=Lo(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},i=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},a=function(e,r,n,o){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(a),u=c?a.slice(0,c.index):a,l=[];if(u){if(!n.plainObjects&&t.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var f=0;n.depth>0&&null!==(c=s.exec(a))&&f<n.depth;){if(f+=1,!n.plainObjects&&t.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}if(c){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");l.push("["+a.slice(c.index)+"]")}return function(e,t,r,n){for(var o=n?t:i(t,r),a=e.length-1;a>=0;--a){var s,c=e[a];if("[]"===c&&r.parseArrays)s=r.allowEmptyArrays&&(""===o||r.strictNullHandling&&null===o)?[]:[].concat(o);else{s=r.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,f=parseInt(l,10);r.parseArrays||""!==l?!isNaN(f)&&c!==l&&String(f)===l&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(s=[])[f]=o:"__proto__"!==l&&(s[l]=o):s={0:o}}o=s}return o}(l,r,n,o)}};return Io=function(s,c){var u=function(t){if(!t)return n;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=void 0===t.charset?n.charset:t.charset,o=void 0===t.duplicates?n.duplicates:t.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||n.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:n.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:n.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:n.arrayLimit,charset:r,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:n.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:n.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:n.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:n.decoder,delimiter:"string"==typeof t.delimiter||e.isRegExp(t.delimiter)?t.delimiter:n.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:n.depth,duplicates:o,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:n.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:n.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:n.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:n.strictNullHandling}}(c);if(""===s||null==s)return u.plainObjects?Object.create(null):{};for(var l="string"==typeof s?function(a,s){var c={__proto__:null},u=s.ignoreQueryPrefix?a.replace(/^\?/,""):a;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l,f=s.parameterLimit===1/0?void 0:s.parameterLimit,d=u.split(s.delimiter,f),p=-1,y=s.charset;if(s.charsetSentinel)for(l=0;l<d.length;++l)0===d[l].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[l]?y="utf-8":"utf8=%26%2310003%3B"===d[l]&&(y="iso-8859-1"),p=l,l=d.length);for(l=0;l<d.length;++l)if(l!==p){var h,m,g=d[l],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(h=s.decoder(g,n.decoder,y,"key"),m=s.strictNullHandling?null:""):(h=s.decoder(g.slice(0,v),n.decoder,y,"key"),m=e.maybeMap(i(g.slice(v+1),s),function(e){return s.decoder(e,n.decoder,y,"value")})),m&&s.interpretNumericEntities&&"iso-8859-1"===y&&(m=o(m)),g.indexOf("[]=")>-1&&(m=r(m)?[m]:m);var w=t.call(c,h);w&&"combine"===s.duplicates?c[h]=e.combine(c[h],m):w&&"last"!==s.duplicates||(c[h]=m)}return c}(s,u):s,f=u.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p<d.length;++p){var y=d[p],h=a(y,l[y],u,"string"==typeof s);f=e.merge(f,h,u)}return!0===u.allowSparse?f:e.compact(f)}}();return Do={formats:Uo(),parse:t,stringify:e}}());const Qo={type:"session",prefix:"",enableLogging:!1,fallbackToMemory:!0,maxRetries:3};class zo{constructor(){this.data=new Map}setItem(e,t){this.data.set(e,t)}getItem(e){return this.data.get(e)||null}removeItem(e){this.data.delete(e)}clear(){this.data.clear()}get length(){return this.data.size}key(e){return Array.from(this.data.keys())[e]||null}keys(){return Array.from(this.data.keys())}}const Bo=(e={})=>{const t={...Qo,...e},r="local"===t.type?"localStorage":"sessionStorage";let n=null,o=!1;(()=>{if("undefined"==typeof window)return void(t.fallbackToMemory&&(n=new zo,o=!0,t.enableLogging&&console.warn("CacheFactory: Browser storage unavailable, using memory fallback")));const e=window[r];(e=>{if(!e)return!1;try{const t="__cache_factory_test__",r="test";e.setItem(t,r);const n=e.getItem(t);return e.removeItem(t),n===r}catch(e){return!1}})(e)?n=e:t.fallbackToMemory&&(n=new zo,o=!0,t.enableLogging&&console.warn(`CacheFactory: ${r} unavailable, using memory fallback`))})();const i=e=>t.prefix?`${t.prefix}${e}`:e,a=(e,n,i=null)=>{t.enableLogging&&console.debug(`CacheFactory[${r}]: ${e}`,{key:n,data:i,usingMemoryFallback:o})},s=async(e,r=0)=>{try{return await e()}catch(n){if(r<t.maxRetries){const t=100*Math.pow(2,r);return await new Promise(e=>setTimeout(e,t)),s(e,r+1)}throw n}};return{isAvailable:()=>null!==n,isUsingMemoryFallback:()=>o,getStorageType:()=>o?"memory":r,set:async(e,t)=>{if(!n)return console.error("CacheFactory: Storage not available"),!1;if(!e||"string"!=typeof e)throw new Error("CacheFactory: Invalid key provided");const r=i(e),o=(e=>{try{return JSON.stringify(e)}catch(e){return console.error("CacheFactory: Failed to serialize value",e),null}})(t);if(null===o)return!1;try{return await s(()=>{n.setItem(r,o)}),a("SET",e,t),!0}catch(t){return console.error(`CacheFactory: Error setting item ${e}:`,t),!1}},get:async(e,t=null)=>{if(!n)return console.warn("CacheFactory: Storage not available"),t;if(!e||"string"!=typeof e||"undefined"===e)return console.warn("CacheFactory: Invalid key provided for get operation"),t;const r=i(e);try{const o=await s(()=>n.getItem(r));if(null===o||"undefined"===o)return a("GET_MISS",e),t;const i=(e=>{if(null==e)return null;try{return JSON.parse(e)}catch(t){return e}})(o);return a("GET_HIT",e,i),i}catch(r){return console.error(`CacheFactory: Error getting item ${e}:`,r),t}},remove:async e=>{if(!n)return console.error("CacheFactory: Storage not available"),!1;if(!e||"string"!=typeof e)return console.warn("CacheFactory: Invalid key provided for remove operation"),!1;const t=i(e);try{return await s(()=>{n.removeItem(t)}),a("REMOVE",e),!0}catch(t){return console.error(`CacheFactory: Error removing item ${e}:`,t),!1}},clear:async()=>{if(!n)return console.error("CacheFactory: Storage not available"),!1;try{if(t.prefix){const e=await(void 0).keys();await Promise.all(e.map(e=>(void 0).remove(e)))}else await s(()=>{n.clear()});return a("CLEAR"),!0}catch(e){return console.error("CacheFactory: Error clearing storage:",e),!1}},keys:async()=>{if(!n)return console.warn("CacheFactory: Storage not available"),[];try{let e=[];e=o?n.keys():Object.keys(n);const r=t.prefix?e.filter(e=>e.startsWith(t.prefix)).map(e=>{return r=e,t.prefix&&r.startsWith(t.prefix)?r.slice(t.prefix.length):r;var r}):e;return a("KEYS",null,r),r}catch(e){return console.error("CacheFactory: Error getting keys:",e),[]}},has:async e=>{if(!n||!e||"string"!=typeof e)return!1;const t=i(e);try{const r=await s(()=>null!==n.getItem(t));return a("HAS",e,r),r}catch(t){return console.error(`CacheFactory: Error checking if key ${e} exists:`,t),!1}},getStats:async()=>{const e=await(void 0).keys();return{keyCount:e.length,storageType:(void 0).getStorageType(),usingMemoryFallback:o,prefix:t.prefix||"none",keys:e}},bulk:{set:async e=>{const t={};return await Promise.all(Object.entries(e).map(async([e,r])=>{t[e]=await(void 0).set(e,r)})),t},get:async e=>{const t={};return await Promise.all(e.map(async e=>{t[e]=await(void 0).get(e)})),t},remove:async e=>{const t={};return await Promise.all(e.map(async e=>{t[e]=await(void 0).remove(e)})),t}}}};Bo.local=Bo({type:"local"}),Bo.session=Bo({type:"session"}),Bo.memory=Bo({type:"session",fallbackToMemory:!0});const Vo={baseUrls:{production:process.env.REACT_APP_API_BASE_URL_PROD||"https://fear.master.com/fear/api/",development:process.env.REACT_APP_API_BASE_URL_DEV||"http://localhost:4000/fear/api/",test:process.env.REACT_APP_API_BASE_URL_TEST||"http://localhost:3001/fear/api/"},tokenNames:{bearer:"Authorization",custom:process.env.REACT_APP_JWT_TOKEN_HEADER||"x-token"},cacheKeys:{auth:"auth",refreshToken:"refresh_token",userPrefs:"user_preferences"},timeout:parseInt(process.env.REACT_APP_API_TIMEOUT)||3e4,retryAttempts:parseInt(process.env.REACT_APP_API_RETRY_ATTEMPTS)||3,retryDelay:parseInt(process.env.REACT_APP_API_RETRY_DELAY)||1e3},Ko=()=>{const e=process.env.NODE_ENV||"development";return Vo.baseUrls[e]||Vo.baseUrls.development},Ho=async()=>{try{const e=await Bo.local.get(Vo.cacheKeys.auth);return e&&"object"==typeof e?e:null}catch(e){return console.warn("Failed to retrieve auth data:",e),null}},Wo=e=>{if(!e)return!0;try{const t=JSON.parse(atob(e.split(".")[1])),r=Date.now()/1e3;return t.exp<r}catch(e){return!0}},Go=async()=>{try{const e=await Ho(),t=e?.refreshToken||await Bo.local.get(Vo.cacheKeys.refreshToken);if(!t)throw new Error("No refresh token available");const r=await cn.post(`${Ko()}auth/refresh`,{refreshToken:t}),n={token:r.data.token,refreshToken:r.data.refreshToken||t,user:r.data.user,expiresAt:r.data.expiresAt};return await Bo.local.set(Vo.cacheKeys.auth,n),n.token}catch(e){return console.error("Token refresh failed:",e),await Jo(),null}},Jo=async()=>{try{await Promise.all([Bo.local.remove(Vo.cacheKeys.auth),Bo.local.remove(Vo.cacheKeys.refreshToken)])}catch(e){console.warn("Failed to clear auth data:",e)}},Yo=e=>{const t={message:"An unknown error occurred",status:null,code:null,data:null,timestamp:(new Date).toISOString()};return e.response?{...t,message:e.response.data?.message||`HTTP Error ${e.response.status}`,status:e.response.status,code:e.response.data?.code||e.code,data:e.response.data}:e.request?{...t,message:"Network error - no response received",code:"NETWORK_ERROR"}:{...t,message:e.message||"Request configuration error",code:e.code||"CONFIG_ERROR"}},Xo=async e=>{try{e.metadata={startTime:Date.now()},e._retry=e._retry||0;const t=await Ho();let r=t?.token;return r&&Wo(r)&&0===e._retry&&(r=await Go()),r&&(e.headers[Vo.tokenNames.bearer]=`Bearer ${r}`,e.headers[Vo.tokenNames.custom]=r),e.headers["X-Request-ID"]=`req_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,e.headers["X-Client-Version"]=process.env.REACT_APP_VERSION||"1.0.0",e.headers["X-Client-Platform"]="web",e}catch(t){return console.error("Request interceptor error:",t),e}},Zo=e=>(console.error("Request setup error:",e),Promise.reject(Yo(e))),ei=e=>(e.metadata={responseTime:Date.now()-(e.config.metadata?.startTime||Date.now()),requestId:e.config.headers["X-Request-ID"]},"development"===process.env.NODE_ENV&&console.log(`✅ API Success [${e.status}]:`,{url:e.config.url,method:e.config.method?.toUpperCase(),responseTime:e.metadata.responseTime,requestId:e.metadata.requestId}),e.data&&"object"==typeof e.data&&[200,201,202,204].includes(e.status)||e.status>=200&&e.status<300?e:Promise.reject(Yo({response:e,message:`Unexpected response status: ${e.status}`}))),ti=async e=>{const t=e.config,r=Yo(e);if("development"===process.env.NODE_ENV&&console.error(`❌ API Error [${r.status}]:`,{url:t?.url,method:t?.method?.toUpperCase(),message:r.message,requestId:t?.headers["X-Request-ID"]}),401===r.status&&!t._isRetryingAuth){t._isRetryingAuth=!0;try{const e=await Go();if(e)return t.headers[Vo.tokenNames.bearer]=`Bearer ${e}`,t.headers[Vo.tokenNames.custom]=e,ri(t)}catch(e){console.error("Auth refresh failed:",e)}await Jo(),"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("auth:failure",{detail:{error:r}}))}if(([408,429,500,502,503,504].includes(r.status)||"NETWORK_ERROR"===r.code)&&t._retry<Vo.retryAttempts){t._retry+=1;const e=(n=t._retry,Vo.retryDelay*Math.pow(2,n-1));return console.log(`⏳ Retrying request (${t._retry}/${Vo.retryAttempts}) in ${e}ms`),await new Promise(t=>setTimeout(t,e)),ri(t)}var n;if(429===r.status){const t=e.response?.headers["retry-after"];t&&(r.retryAfter=1e3*parseInt(t))}return Promise.reject(r)},ri=(()=>{const e=cn.create({baseURL:Ko(),timeout:Vo.timeout,headers:{Accept:"application/json","Content-Type":"application/json"},paramsSerializer:{serialize:e=>$o.stringify(e,{indices:!1,skipNulls:!0,arrayFormat:"brackets"})},withCredentials:!0,transformResponse:[e=>{try{return JSON.parse(e)}catch(t){return e}}]});return e.interceptors.request.use(Xo,Zo),e.interceptors.response.use(ei,ti),e})(),ni={instance:ri,get:ri.get.bind(ri),post:ri.post.bind(ri),put:ri.put.bind(ri),patch:ri.patch.bind(ri),delete:ri.delete.bind(ri),head:ri.head.bind(ri),options:ri.options.bind(ri),request:e=>ri.request(e),create:(e={})=>{const t=cn.create({...ri.defaults,...e});return t.interceptors.request.use(Xo,Zo),t.interceptors.response.use(ei,ti),t},setAuth:async(e,t={})=>{try{const r={token:e,user:t,timestamp:Date.now(),expiresAt:t.expiresAt};return await Bo.local.set(Vo.cacheKeys.auth,r),!0}catch(e){return console.error("Failed to set auth:",e),!1}},clearAuth:async()=>{try{return await Jo(),!0}catch(e){return console.error("Failed to clear auth:",e),!1}},getAuthStatus:async()=>{const e=await Ho();return{isAuthenticated:!(!e?.token||Wo(e.token)),user:e?.user||null,token:e?.token||null,expiresAt:e?.expiresAt||null}},configure:e=>{Object.assign(ri.defaults,e)},healthCheck:async()=>{try{return{status:"healthy",response:(await ri.get("health",{timeout:5e3})).data,timestamp:Date.now()}}catch(e){return{status:"unhealthy",error:Yo(e),timestamp:Date.now()}}},uploadFile:(e,t,r)=>ri.post(e,t,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:e=>{if(r&&e.total){const t=Math.round(100*e.loaded/e.total);r(t,e)}}}),config:Vo,getBaseUrl:Ko};"undefined"!=typeof window&&window.addEventListener("auth:failure",e=>{console.warn("Authentication failed:",e.detail.error)});const oi={GET:"GET",POST:"POST",PUT:"PUT",PATCH:"PATCH",DELETE:"DELETE"},ii={all:{method:oi.GET,useParams:!1},one:{method:oi.GET,useParams:!1,useIdInUrl:!0},search:{method:oi.GET,useParams:!0},create:{method:oi.POST,useParams:!1},update:{method:oi.PUT,useParams:!1,useIdInUrl:!0},patch:{method:oi.PATCH,useParams:!1,useIdInUrl:!0},delete:{method:oi.DELETE,useParams:!1,useIdInUrl:!0}},ai=(e,t)=>{if(!e||"string"!=typeof e)throw new Error("Entity must be a non-empty string");if(!t||"string"!=typeof t)throw new Error("Prefix must be a non-empty string")},si=(e,t,r={})=>{ai(e,t);const n={method:oi.GET,useParams:!1,useIdInUrl:!1,customUrl:null,...r};return Ue(`${e}/${t}`,async(r={},o)=>{try{const o=n.customUrl||((e,t,r={},n=!1)=>{let o=`${e}`;return n&&r?.id?o+=`/${r.id}`:n&&"one"===t||(o+=`/${t}`),o})(e,t,r,n.useIdInUrl);let i;const a=n.useParams?{params:r}:{};switch(n.method){case oi.GET:i=ni.get(o,a);break;case oi.POST:i=ni.post(o,r,a);break;case oi.PUT:i=ni.put(o,r,a);break;case oi.PATCH:i=ni.patch(o,r,a);break;case oi.DELETE:i=ni.delete(o,a);break;default:throw new Error(`Unsupported HTTP method: ${n.method}`)}return(e=>void 0!==e?.data?.result?e.data.result:void 0!==e?.data?e.data:e)(await i)}catch(e){return((e,t)=>{const r={message:e?.response?.data?.message||e?.message||"An unknown error occurred",status:e?.response?.status,code:e?.code};return t.rejectWithValue(r)})(e,o)}})},ci={create:(e,t)=>{ai(e,t);const r=ii[t];return si(e,t,r||{method:oi.GET,useParams:"search"===t,useIdInUrl:"one"===t})},post:(e,t)=>si(e,t,{method:oi.POST,useParams:!1}),put:(e,t)=>si(e,t,{method:oi.PUT,useIdInUrl:"update"===t}),patch:(e,t)=>si(e,t,{method:oi.PATCH,useIdInUrl:!0}),delete:(e,t)=>si(e,t,{method:oi.DELETE,useIdInUrl:!0}),custom:(e,t,r={})=>si(e,t,r),createCrud:e=>(ai(e,"crud"),{fetchAll:ci.create(e,"all"),fetchOne:ci.create(e,"one"),create:ci.post(e,"create"),update:ci.put(e,"update"),patch:ci.patch(e,"patch"),delete:ci.delete(e,"delete"),search:ci.create(e,"search")}),getHttpMethods:()=>({...oi}),getStandardOperations:()=>({...ii})},ui={includeEntityState:!0,includePagination:!0,includeFiltering:!0,includeSorting:!0,includeSelection:!0,includeValidation:!1,includeMetadata:!0,customFields:{}},li={IDLE:"idle",PENDING:"pending",FULFILLED:"fulfilled",REJECTED:"rejected"},fi={ASC:"asc",DESC:"desc"},di=(e,t)=>{if(!t||"object"!=typeof t)return e;const r={...e};return Object.keys(t).forEach(n=>{t[n]&&"object"==typeof t[n]&&!Array.isArray(t[n])?r[n]=di(e[n]||{},t[n]):r[n]=t[n]}),r},pi=(e,t={})=>{(e=>{if(!e||"string"!=typeof e)throw new Error("Namespace must be a non-empty string");if(!/^[a-zA-Z][a-zA-Z0-9_]*$/.test(e))throw new Error("Namespace must be a valid identifier (letters, numbers, underscore, starting with letter)")})(e);const r={...ui,...t};return{...{data:[],loading:!1,success:!1,error:null,loadingState:li.IDLE,...r.includeEntityState&&{[e]:null,[`${e}List`]:[],[`current${e.charAt(0).toUpperCase()+e.slice(1)}`]:null}},...{...r.includePagination&&{pagination:{currentPage:1,pageSize:10,totalItems:0,totalPages:0,hasNextPage:!1,hasPreviousPage:!1}},...r.includeFiltering&&{filtering:{filters:{},activeFilters:[],searchTerm:"",searchFields:[]}},...r.includeSorting&&{sorting:{sortBy:null,sortOrder:fi.ASC,multiSort:[]}},...r.includeSelection&&{selection:{selectedItems:[],selectedIds:[],allSelected:!1,selectionMode:"multiple"}},...r.includeValidation&&{validation:{validationErrors:{},isValid:!0,fieldErrors:{},touched:{}}},...r.includeMetadata&&{metadata:{lastFetch:null,lastUpdate:null,version:0,source:null,cached:!1,stale:!1}},async:{operations:{},globalLoading:!1,operationQueue:[]}},...r.customFields}};pi.minimal=e=>pi(e,{includeEntityState:!0,includePagination:!1,includeFiltering:!1,includeSorting:!1,includeSelection:!1,includeValidation:!1,includeMetadata:!1}),pi.forList=e=>pi(e,{includeEntityState:!0,includePagination:!0,includeFiltering:!0,includeSorting:!0,includeSelection:!0,includeValidation:!1,includeMetadata:!0}),pi.forForm=e=>pi(e,{includeEntityState:!0,includePagination:!1,includeFiltering:!1,includeSorting:!1,includeSelection:!1,includeValidation:!0,includeMetadata:!0,customFields:{formData:{},isDirty:!1,isSubmitting:!1,submitCount:0}}),pi.forRealTime=e=>pi(e,{includeEntityState:!0,includePagination:!1,includeFiltering:!1,includeSorting:!1,includeSelection:!1,includeValidation:!1,includeMetadata:!0,customFields:{connected:!1,connectionStatus:"disconnected",lastHeartbeat:null,subscriptions:[],liveUpdates:!0}}),pi.normalized=e=>pi(e,{includeEntityState:!1,customFields:{ids:[],entities:{}}}),pi.withOperations=(e,t=[])=>{const r=t.reduce((e,t)=>(e[`${t}Loading`]=!1,e[`${t}Success`]=!1,e[`${t}Error`]=null,e),{});return pi(e,{customFields:{...r,operations:t.reduce((e,t)=>(e[t]={loading:!1,success:!1,error:null,lastRun:null},e),{})}})},pi.utils={getLoadingStates:()=>({...li}),getSortOrders:()=>({...fi}),createLoadingUpdates:(e="default")=>({pending:{loading:!0,success:!1,error:null,loadingState:li.PENDING,[`async.operations.${e}.loading`]:!0},fulfilled:{loading:!1,success:!0,error:null,loadingState:li.FULFILLED,[`async.operations.${e}.loading`]:!1,[`async.operations.${e}.success`]:!0,[`async.operations.${e}.lastRun`]:(new Date).toISOString()},rejected:t=>({loading:!1,success:!1,error:t,loadingState:li.REJECTED,[`async.operations.${e}.loading`]:!1,[`async.operations.${e}.error`]:t,[`async.operations.${e}.lastRun`]:(new Date).toISOString()})}),validateState:(e,t)=>!(!e||"object"!=typeof e||!Array.isArray(e.data)||"boolean"!=typeof e.loading||"boolean"!=typeof e.success),mergeState:di,resetState:(e,t={})=>pi(e,t)};var yi=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},hi=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(hi||{});function mi(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}var gi=o;function bi(e,t){if(e===t||!(gi(e)&&gi(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let o=r.length===n.length;const i=Array.isArray(t)?[]:{};for(const n of r)i[n]=bi(e[n],t[n]),o&&(o=e[n]===i[n]);return o?e:i}function vi(e){let t=0;for(const r in e)t++;return t}var wi=e=>[].concat(...e);function Ei(e){return null!=e}var Si=(...e)=>fetch(...e),Oi=e=>e.status>=200&&e.status<=299,_i=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function Ai(e){if(!o(e))return e;const t={...e};for(const[e,r]of Object.entries(t))void 0===r&&delete t[e];return t}function Ti({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:r=Si,paramsSerializer:n,isJsonContentType:i=_i,jsonContentType:a="application/json",jsonReplacer:s,timeout:c,responseHandler:u,validateStatus:l,...f}={}){return"undefined"==typeof fetch&&r===Si&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(p,y,h)=>{const{getState:m,extra:g,endpoint:b,forced:v,type:w}=y;let E,S,{url:O,headers:_=new Headers(f.headers),params:A,responseHandler:T=u??"json",validateStatus:R=l??Oi,timeout:P=c,...j}="string"==typeof p?{url:p}:p,k=y.signal;P&&(S=new AbortController,y.signal.addEventListener("abort",S.abort),k=S.signal);let C={...f,signal:k,...j};_=new Headers(Ai(_)),C.headers=await t(_,{getState:m,arg:p,extra:g,endpoint:b,forced:v,type:w,extraOptions:h})||_;const N=e=>"object"==typeof e&&(o(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!C.headers.has("content-type")&&N(C.body)&&C.headers.set("content-type",a),N(C.body)&&i(C.headers)&&(C.body=JSON.stringify(C.body,s)),A){const e=~O.indexOf("?")?"&":"?";O+=e+(n?n(A):new URLSearchParams(Ai(A)))}O=function(e,t){if(!e)return t;if(!t)return e;if(function(e){return new RegExp("(^|:)//").test(e)}(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=(e=>e.replace(/\/$/,""))(e)}${r}${t=(e=>e.replace(/^\//,""))(t)}`}(e,O);const I=new Request(O,C);E={request:new Request(O,C)};let x,D=!1,q=S&&setTimeout(()=>{D=!0,S.abort()},P);try{x=await r(I)}catch(e){return{error:{status:D?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:E}}finally{q&&clearTimeout(q),S?.signal.removeEventListener("abort",S.abort)}const F=x.clone();let M;E.response=F;let U="";try{let e;if(await Promise.all([d(x,T).then(e=>M=e,t=>e=t),F.text().then(e=>U=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:x.status,data:U,error:String(e)},meta:E}}return R(x,M)?{data:M,meta:E}:{error:{status:x.status,data:M},meta:E}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=i(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var Ri=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Pi=me("__rtkq/focused"),ji=me("__rtkq/unfocused"),ki=me("__rtkq/online"),Ci=me("__rtkq/offline");function Ni(e){return"query"===e.type}function Ii(e){return"infinitequery"===e.type}function xi(e){return Ni(e)||Ii(e)}function Di(e,t,r,n,o,i){return"function"==typeof e?e(t,r,n,o).filter(Ei).map(qi).map(i):Array.isArray(e)?e.map(qi).map(i):[]}function qi(e){return"string"==typeof e?{type:e}:e}var Fi=Symbol("forceQueryFn"),Mi=e=>"function"==typeof e[Fi],Ui=class extends yi{constructor(e,t,r,n){super(e),this.value=t,this.schemaName=r,this._bqMeta=n}};async function Li(e,t,r,n){const o=await e["~standard"].validate(t);if(o.issues)throw new Ui(o.issues,t,r,n);return o.value}function $i(e){return e}var Qi=(e={})=>({...e,[we]:!0});function zi(e,{pages:t,pageParams:r},n){const o=t.length-1;return e.getNextPageParam(t[o],t,r[o],r,n)}function Bi(e,{pages:t,pageParams:r},n){return e.getPreviousPageParam?.(t[0],t,r[0],r,n)}function Vi(e,t,r,n){return Di(r[e.meta.arg.endpointName][t],Ce(e)?e.payload:void 0,ke(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Ki(e,t,r){const n=e[t];n&&r(n)}function Hi(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Wi(e,t,r){const n=e[Hi(t)];n&&r(n)}var Gi={};function Ji({reducerPath:e,queryThunk:t,mutationThunk:r,serializeQueryArgs:n,context:{endpointDefinitions:o,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:c},assertTagType:u,config:l}){const d=me(`${e}/resetApiState`);function y(e,t,r,n){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},Ki(e,t.queryCacheKey,e=>{e.status="pending",e.requestId=r&&e.requestId?e.requestId:n.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=n.startedTimeStamp,Ii(o[n.arg.endpointName])&&"direction"in t&&(e.direction=t.direction)})}function m(e,t,r,n){Ki(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!n)return;const{merge:i}=o[t.arg.endpointName];if(e.status="fulfilled",i)if(void 0!==e.data){const{fulfilledTimeStamp:n,arg:o,baseQueryMeta:a,requestId:s}=t;let c=te(e.data,e=>i(e,r,{arg:o.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:n,requestId:s}));e.data=c}else e.data=r;else e.data=o[t.arg.endpointName].structuralSharing??1?bi(h(e.data)?(h(a=e.data)||p(15,a),a[f].base_):e.data,r):r;var a;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}const g=Be({name:`${e}/queries`,initialState:Gi,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Ee()},cacheEntriesUpserted:{reducer(e,t){for(const r of t.payload){const{queryDescription:n,value:o}=r;y(e,n,!0,{arg:n,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),m(e,{arg:n,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},o,!0)}},prepare:e=>({payload:e.map(e=>{const{endpointName:t,arg:r,value:i}=e,a=o[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:n({queryArgs:r,endpointDefinition:a,endpointName:t})},value:i}}),meta:{[we]:!0,requestId:Ie(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:r}}){Ki(e,t,e=>{e.data=ne(e.data,r.concat())})},prepare:Ee()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:r}})=>{y(e,r,Mi(r),t)}).addCase(t.fulfilled,(e,{meta:t,payload:r})=>{m(e,t,r,Mi(t.arg))}).addCase(t.rejected,(e,{meta:{condition:t,arg:r,requestId:n},error:o,payload:i})=>{Ki(e,r.queryCacheKey,e=>{if(t);else{if(e.requestId!==n)return;e.status="rejected",e.error=i??o}})}).addMatcher(c,(e,t)=>{const{queries:r}=a(t);for(const[t,n]of Object.entries(r))"fulfilled"!==n?.status&&"rejected"!==n?.status||(e[t]=n)})}}),b=Be({name:`${e}/mutations`,initialState:Gi,reducers:{removeMutationResult:{reducer(e,{payload:t}){const r=Hi(t);r in e&&delete e[r]},prepare:Ee()}},extraReducers(e){e.addCase(r.pending,(e,{meta:t,meta:{requestId:r,arg:n,startedTimeStamp:o}})=>{n.track&&(e[Hi(t)]={requestId:r,status:"pending",endpointName:n.endpointName,startedTimeStamp:o})}).addCase(r.fulfilled,(e,{payload:t,meta:r})=>{r.arg.track&&Wi(e,r,e=>{e.requestId===r.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=r.fulfilledTimeStamp)})}).addCase(r.rejected,(e,{payload:t,error:r,meta:n})=>{n.arg.track&&Wi(e,n,e=>{e.requestId===n.requestId&&(e.status="rejected",e.error=t??r)})}).addMatcher(c,(e,t)=>{const{mutations:r}=a(t);for(const[t,n]of Object.entries(r))"fulfilled"!==n?.status&&"rejected"!==n?.status||t===n?.requestId||(e[t]=n)})}}),v=Be({name:`${e}/invalidation`,initialState:{tags:{},keys:{}},reducers:{updateProvidedBy:{reducer(e,t){for(const{queryCacheKey:r,providedTags:n}of t.payload){w(e,r);for(const{type:t,id:o}of n){const n=(e.tags[t]??={})[o||"__internal_without_id"]??=[];n.includes(r)||n.push(r)}e.keys[r]=n}},prepare:Ee()}},extraReducers(e){e.addCase(g.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{w(e,t)}).addMatcher(c,(e,t)=>{const{provided:r}=a(t);for(const[t,n]of Object.entries(r))for(const[r,o]of Object.entries(n)){const n=(e.tags[t]??={})[r||"__internal_without_id"]??=[];for(const e of o)n.includes(e)||n.push(e)}}).addMatcher(_e(Ce(t),ke(t)),(e,t)=>{E(e,[t])}).addMatcher(g.actions.cacheEntriesUpserted.match,(e,t)=>{E(e,t.payload.map(({queryDescription:e,value:t})=>({type:"UNKNOWN",payload:t,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:e}})))})}});function w(e,t){const r=e.keys[t]??[];for(const n of r){const r=n.type,o=n.id??"__internal_without_id",i=e.tags[r]?.[o];i&&(e.tags[r][o]=i.filter(e=>e!==t))}delete e.keys[t]}function E(e,t){const r=t.map(e=>{const t=Vi(e,"providesTags",o,u),{queryCacheKey:r}=e.meta.arg;return{queryCacheKey:r,providedTags:t}});v.caseReducers.updateProvidedBy(e,v.actions.updateProvidedBy(r))}const S=Be({name:`${e}/subscriptions`,initialState:Gi,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),O=Be({name:`${e}/internalSubscriptions`,initialState:Gi,reducers:{subscriptionsUpdated:{reducer:(e,t)=>ne(e,t.payload),prepare:Ee()}}}),_=Be({name:`${e}/config`,initialState:{online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"==typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...l},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&i===t||"conflict"}},extraReducers:e=>{e.addCase(ki,e=>{e.online=!0}).addCase(Ci,e=>{e.online=!1}).addCase(Pi,e=>{e.focused=!0}).addCase(ji,e=>{e.focused=!1}).addMatcher(c,e=>({...e}))}}),A=s({queries:g.reducer,mutations:b.reducer,provided:v.reducer,subscriptions:O.reducer,config:_.reducer});return{reducer:(e,t)=>A(d.match(t)?void 0:e,t),actions:{..._.actions,...g.actions,...S.actions,...O.actions,...b.actions,...v.actions,resetApiState:d}}}var Yi=Symbol.for("RTKQ/skipToken"),Xi={status:"uninitialized"},Zi=te(Xi,()=>{}),ea=te(Xi,()=>{}),ta=WeakMap?new WeakMap:void 0,ra=({endpointName:e,queryArgs:t})=>{let r="";const n=ta?.get(t);if("string"==typeof n)r=n;else{const e=JSON.stringify(t,(e,t)=>t=o(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t);o(t)&&ta?.set(t,e),r=e}return`${e}(${r})`};function na(e,...t){return Object.assign(e,...t)}var oa=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:o,selectors:{selectQueryEntry:i,selectConfig:a}})=>{const{removeQueryResult:s,unsubscribeQueryResult:c,cacheEntriesUpserted:u}=t.internalActions,l=_e(c.match,r.fulfilled,r.rejected,u.match);function f(e){const t=o.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const d={};function p(e,t,r){const n=t.getState();for(const o of e){const e=i(n,o);y(o,e?.endpointName,t,r)}}function y(e,t,r,o){const i=n.endpointDefinitions[t],a=i?.keepUnusedDataFor??o.keepUnusedDataFor;if(a===1/0)return;const c=Math.max(0,Math.min(a,2147482.647));if(!f(e)){const t=d[e];t&&clearTimeout(t),d[e]=setTimeout(()=>{f(e)||r.dispatch(s({queryCacheKey:e})),delete d[e]},1e3*c)}}return(e,r,o)=>{const i=r.getState(),s=a(i);if(l(e)){let t;if(u.match(e))t=e.payload.map(e=>e.queryDescription.queryCacheKey);else{const{queryCacheKey:r}=c.match(e)?e.payload:e.meta.arg;t=[r]}p(t,r,s)}if(t.util.resetApiState.match(e))for(const[e,t]of Object.entries(d))t&&clearTimeout(t),delete d[e];if(n.hasRehydrationInfo(e)){const{queries:t}=n.extractRehydrationInfo(e);p(Object.keys(t),r,s)}}},ia=new Error("Promise never resolved before cacheEntryRemoved."),aa=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:o,internalState:i,selectors:{selectQueryEntry:a,selectApiState:s}})=>{const c=Ne(n),u=Ne(o),l=Ce(n,o),f={};function d(e,t,r){const n=f[e];n?.valueResolved&&(n.valueResolved({data:t,meta:r}),delete n.valueResolved)}function p(e){const t=f[e];t&&(delete f[e],t.cacheEntryRemoved())}function y(t,n,o,i,a){const s=r.endpointDefinitions[t],c=s?.onCacheEntryAdded;if(!c)return;const u={},l=new Promise(e=>{u.cacheEntryRemoved=e}),d=Promise.race([new Promise(e=>{u.valueResolved=e}),l.then(()=>{throw ia})]);d.catch(()=>{}),f[o]=u;const p=e.endpoints[t].select(xi(s)?n:o),y=i.dispatch((e,t,r)=>r),h={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:y,updateCachedData:xi(s)?r=>i.dispatch(e.util.updateQueryData(t,n,r)):void 0,cacheDataLoaded:d,cacheEntryRemoved:l},m=c(n,h);Promise.resolve(m).catch(e=>{if(e!==ia)throw e})}return(r,i,s)=>{const h=function(t){return c(t)?t.meta.arg.queryCacheKey:u(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Hi(t.payload):""}(r);function m(e,t,r,n){const o=a(s,t),c=a(i.getState(),t);!o&&c&&y(e,n,t,i,r)}if(n.pending.match(r))m(r.meta.arg.endpointName,h,r.meta.requestId,r.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(r))for(const{queryDescription:e,value:t}of r.payload){const{endpointName:n,originalArgs:o,queryCacheKey:i}=e;m(n,i,r.meta.requestId,o),d(i,t,{})}else if(o.pending.match(r))i.getState()[t].mutations[h]&&y(r.meta.arg.endpointName,r.meta.arg.originalArgs,h,i,r.meta.requestId);else if(l(r))d(h,r.payload,r.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(r)||e.internalActions.removeMutationResult.match(r))p(h);else if(e.util.resetApiState.match(r))for(const e of Object.keys(f))p(e)}},sa=({api:e,context:{apiUid:t},reducerPath:r})=>(n,o)=>{e.util.resetApiState.match(n)&&o.dispatch(e.internalActions.middlewareRegistered(t)),"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&e.internalActions.middlewareRegistered.match(n)&&n.payload===t&&"conflict"===o.getState()[r]?.config?.middlewareRegistered&&console.warn(`There is a mismatch between slice and middleware for the reducerPath "${r}".\nYou can only have one api per reducer path, this will lead to crashes in various situations!${"api"===r?"\nIf you have multiple apis, you *have* to specify the reducerPath option when using createApi!":""}`)},ca=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:o,api:i,assertTagType:a,refetchQuery:s,internalState:c})=>{const{removeQueryResult:u}=i.internalActions,l=_e(Ce(n),ke(n)),f=_e(Ce(n,o),je(n,o));let d=[];function p(r,n){const o=n.getState(),a=o[e];if(d.push(...r),"delayed"===a.config.invalidationBehavior&&function(e){const{queries:t,mutations:r}=e;for(const e of[t,r])for(const t in e)if("pending"===e[t]?.status)return!0;return!1}(a))return;const l=d;if(d=[],0===l.length)return;const f=i.util.selectInvalidatedBy(o,l);t.batch(()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=a.queries[t],r=c.currentSubscriptions[t]??{};e&&(0===vi(r)?n.dispatch(u({queryCacheKey:t})):"uninitialized"!==e.status&&n.dispatch(s(e)))}})}return(e,t)=>{l(e)?p(Vi(e,"invalidatesTags",r,a),t):f(e)?p([],t):i.util.invalidateTags.match(e)&&p(Di(e.payload,void 0,void 0,void 0,void 0,a),t)}},ua=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:o})=>{const i={};function a({queryCacheKey:t},r){const s=r.getState()[e],c=s.queries[t],l=o.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=u(l);if(!Number.isFinite(f))return;const p=i[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const y=Date.now()+f;i[t]={nextPollTimestamp:y,pollingInterval:f,timeout:setTimeout(()=>{!s.config.focused&&d||r.dispatch(n(c)),a({queryCacheKey:t},r)},f)}}function s({queryCacheKey:t},r){const n=r.getState()[e].queries[t],s=o.currentSubscriptions[t];if(!n||"uninitialized"===n.status)return;const{lowestPollingInterval:l}=u(s);if(!Number.isFinite(l))return void c(t);const f=i[t],d=Date.now()+l;(!f||d<f.nextPollTimestamp)&&a({queryCacheKey:t},r)}function c(e){const t=i[e];t?.timeout&&clearTimeout(t.timeout),delete i[e]}function u(e={}){let t=!1,r=Number.POSITIVE_INFINITY;for(let n in e)e[n].pollingInterval&&(r=Math.min(e[n].pollingInterval,r),t=e[n].skipPollingIfUnfocused||t);return{lowestPollingInterval:r,skipPollingIfUnfocused:t}}return(e,n)=>{(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,n),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,n),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,n),r.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))c(e)}()}},la=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const o=Pe(r,n),i=je(r,n),a=Ce(r,n),s={};return(r,n)=>{if(o(r)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=r.meta,c=t.endpointDefinitions[i],u=c?.onQueryStarted;if(u){const t={},r=new Promise((e,r)=>{t.resolve=e,t.reject=r});r.catch(()=>{}),s[o]=t;const l=e.endpoints[i].select(xi(c)?a:o),f=n.dispatch((e,t,r)=>r),d={...n,getCacheEntry:()=>l(n.getState()),requestId:o,extra:f,updateCachedData:xi(c)?t=>n.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:r};u(a,d)}}else if(a(r)){const{requestId:e,baseQueryMeta:t}=r.meta;s[e]?.resolve({data:r.payload,meta:t}),delete s[e]}else if(i(r)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:n}=r.meta;s[e]?.reject({error:r.payload??r.error,isUnhandledError:!t,meta:n}),delete s[e]}}};function fa(e){const{reducerPath:t,queryThunk:r,api:n,context:o}=e,{apiUid:i}=o,a={invalidateTags:me(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),u=[sa,oa,ca,ua,aa,la];return{middleware:r=>{let a=!1;const f={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},d=u.map(e=>e(f)),p=(({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,c=()=>r.currentSubscriptions,u={getSubscriptions:c,getSubscriptionCount:e=>vi(c()[e]??{}),isRequestSubscribed:(e,t)=>{const r=c();return!!r?.[e]?.[t]}};return(c,l)=>{if(o||(o=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(c))return o=r.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,u];const f=((r,n)=>{if(a.match(n)){const{queryCacheKey:e,requestId:t,options:o}=n.payload;return r?.[e]?.[t]&&(r[e][t]=o),!0}if(s.match(n)){const{queryCacheKey:e,requestId:t}=n.payload;return r[e]&&delete r[e][t],!0}if(e.internalActions.removeQueryResult.match(n))return delete r[n.payload.queryCacheKey],!0;if(t.pending.match(n)){const{meta:{arg:e,requestId:t}}=n,o=r[e.queryCacheKey]??={};return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let o=!1;if(t.fulfilled.match(n)||t.rejected.match(n)){const e=r[n.meta.arg.queryCacheKey]||{},t=`${n.meta.requestId}_running`;o||=!!e[t],delete e[t]}if(t.rejected.match(n)){const{meta:{condition:e,arg:t,requestId:i}}=n;if(e&&t.subscribe){const e=r[t.queryCacheKey]??={};e[i]=t.subscriptionOptions??e[i]??{},o=!0}}return o})(r.currentSubscriptions,c);let d=!0;if(f){i||(i=setTimeout(()=>{const t=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,n]=re(o,()=>t);l.next(e.internalActions.subscriptionsUpdated(n)),o=t,i=null},500));const a="string"==typeof c.type&&!!c.type.startsWith(n),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!a&&!s}return[d,!1]}})(f),y=(({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:o})=>{const{removeQueryResult:i}=r.internalActions;function a(r,a){const s=r.getState()[e],c=s.queries,u=o.currentSubscriptions;t.batch(()=>{for(const e of Object.keys(u)){const t=c[e],o=u[e];o&&t&&(Object.values(o).some(e=>!0===e[a])||Object.values(o).every(e=>void 0===e[a])&&s.config[a])&&(0===vi(o)?r.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&r.dispatch(n(t)))}})}return(e,t)=>{Pi.match(e)&&a(t,"refetchOnFocus"),ki.match(e)&&a(t,"refetchOnReconnect")}})(f);return e=>u=>{if(!c(u))return e(u);a||(a=!0,r.dispatch(n.internalActions.middlewareRegistered(i)));const l={...r,next:e},f=r.getState(),[h,m]=p(u,l,f);let g;if(g=h?e(u):m,r.getState()[t]&&(y(u,l,f),s(u)||o.hasRehydrationInfo(u)))for(const e of d)e(u,l,f);return g}},actions:a};function l(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var da=Symbol(),pa=({createSelector:e=pe}={})=>({name:da,init(t,{baseQuery:r,tagTypes:n,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:u,invalidationBehavior:l,onSchemaFailure:f,catchSchemaFailure:d,skipSchemaValidation:p},y){Z();const h=e=>("undefined"!=typeof process&&"development"===process.env.NODE_ENV&&(n.includes(e.type)||console.error(`Tag type '${e.type}' was used, but not specified in \`tagTypes\`!`)),e);Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:ki,onOffline:Ci,onFocus:Pi,onFocusLost:ji},util:{}});const g=function({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=e=>Zi,o=e=>ea;return{buildQuerySelector:function(e,t){return u(e,t,i)},buildInfiniteQuerySelector:function(e,t){const{infiniteQueryOptions:r}=t;return u(e,t,function(e){const t={...e,...mi(e.status)},{isLoading:n,isError:o,direction:i}=t,a="forward"===i,s="backward"===i;return{...t,hasNextPage:l(r,t.data,t.originalArgs),hasPreviousPage:f(r,t.data,t.originalArgs),isFetchingNextPage:n&&a,isFetchingPreviousPage:n&&s,isFetchNextPageError:o&&a,isFetchPreviousPageError:o&&s}})},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Hi(e)??Yi:e,r(t===Yi?o:e=>a(e)?.mutations?.[t]??ea,i)}},selectInvalidatedBy:function(e,r){const n=e[t],o=new Set;for(const e of r.filter(Ei).map(qi)){const t=n.provided.tags[e.type];if(!t)continue;let r=(void 0!==e.id?t[e.id]:wi(Object.values(t)))??[];for(const e of r)o.add(e)}return wi(Array.from(o.values()).map(e=>{const t=n.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]}))},selectCachedArgsForQuery:function(e,t){return Object.values(s(e)).filter(e=>e?.endpointName===t&&"uninitialized"!==e.status).map(e=>e.originalArgs)},selectApiState:a,selectQueries:s,selectMutations:function(e){return a(e)?.mutations},selectQueryEntry:c,selectConfig:function(e){return a(e)?.config}};function i(e){return{...e,...mi(e.status)}}function a(e){const r=e[t];if("production"!==process.env.NODE_ENV&&!r){if(a.triggered)return r;a.triggered=!0,console.error(`Error: No data found at \`state.${t}\`. Did you forget to add the reducer to the store?`)}return r}function s(e){return a(e)?.queries}function c(e,t){return s(e)?.[t]}function u(t,o,i){return a=>{if(a===Yi)return r(n,i);const s=e({queryArgs:a,endpointDefinition:o,endpointName:t});return r(e=>c(e,s)??Zi,i)}}function l(e,t,r){return!!t&&null!=zi(e,t,r)}function f(e,t,r){return!(!t||!e.getPreviousPageParam)&&null!=Bi(e,t,r)}}({serializeQueryArgs:i,reducerPath:o,createSelector:e}),{selectInvalidatedBy:b,selectCachedArgsForQuery:v,buildQuerySelector:w,buildInfiniteQuerySelector:E,buildMutationSelector:S}=g;na(t.util,{selectInvalidatedBy:b,selectCachedArgsForQuery:v});const{queryThunk:O,infiniteQueryThunk:_,mutationThunk:A,patchQueryData:T,updateQueryData:R,upsertQueryData:P,prefetch:j,buildMatchThunkActions:k}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:o,assertTagType:i,selectors:a,onSchemaFailure:s,catchSchemaFailure:c,skipSchemaValidation:u}){function l(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}function f(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}const d=(e,t)=>e.query&&e[t]?e[t]:$i,p=async(e,{signal:n,abort:o,rejectWithValue:i,fulfillWithValue:p,dispatch:h,getState:m,extra:g})=>{const b=r[e.endpointName],{metaSchema:v,skipSchemaValidation:w=u}=b;try{let E=d(b,"transformResponse");const S={signal:n,abort:o,dispatch:h,getState:m,extra:g,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?y(e,m()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},O="query"===e.type?e[Fi]:void 0;let _;const A=async(t,r,n,o)=>{if(null==r&&t.pages.length)return Promise.resolve({data:t});const i={queryArg:e.originalArgs,pageParam:r},a=await T(i),s=o?l:f;return{data:{pages:s(t.pages,a.data,n),pageParams:s(t.pageParams,r,n)},meta:a.meta}};async function T(r){let n;const{extraOptions:o,argSchema:i,rawResponseSchema:a,responseSchema:s}=b;if(i&&!w&&(r=await Li(i,r,"argSchema",{})),n=O?O():b.query?await t(b.query(r),S,o):await b.queryFn(r,S,o,e=>t(e,S,o)),"undefined"!=typeof process&&"development"===process.env.NODE_ENV){const t=b.query?"`baseQuery`":"`queryFn`";let r;if(n){if("object"!=typeof n)r=`${t} did not return an object.`;else if(n.error&&n.data)r=`${t} returned an object containing both \`error\` and \`result\`.`;else if(void 0===n.error&&void 0===n.data)r=`${t} returned an object containing neither a valid \`error\` and \`result\`. At least one of them should not be \`undefined\``;else for(const e of Object.keys(n))if("error"!==e&&"data"!==e&&"meta"!==e){r=`The object returned by ${t} has the unknown property ${e}.`;break}}else r=`${t} did not return anything.`;r&&console.error(`Error encountered handling the endpoint ${e.endpointName}.\n ${r}\n It needs to return an object with either the shape \`{ data: <value> }\` or \`{ error: <value> }\` that may contain an optional \`meta\` property.\n Object returned was:`,n)}if(n.error)throw new Ri(n.error,n.meta);let{data:c}=n;a&&!w&&(c=await Li(a,n.data,"rawResponseSchema",n.meta));let u=await E(c,n.meta,r);return s&&!w&&(u=await Li(s,u,"responseSchema",n.meta)),{...n,data:u}}if("query"===e.type&&"infiniteQueryOptions"in b){const{infiniteQueryOptions:R}=b,{maxPages:P=1/0}=R;let j;const k={pages:[],pageParams:[]},C=a.selectQueryEntry(m(),e.queryCacheKey)?.data,N=y(e,m())&&!e.direction||!C?k:C;if("direction"in e&&e.direction&&N.pages.length){const I="backward"===e.direction,x=(I?Bi:zi)(R,N,e.originalArgs);j=await A(N,x,P,I)}else{const{initialPageParam:D=R.initialPageParam}=e,q=C?.pageParams??[],F=q[0]??D,M=q.length;j=await A(N,F,P),O&&(j={data:j.data.pages[0]});for(let U=1;U<M;U++){const L=zi(R,j.data,e.originalArgs);j=await A(j.data,L,P)}}_=j}else _=await T(e.originalArgs);return v&&!w&&_.meta&&(_.meta=await Li(v,_.meta,"metaSchema",_.meta)),p(_.data,Qi({fulfilledTimeStamp:Date.now(),baseQueryMeta:_.meta}))}catch($){let Q=$;if(Q instanceof Ri){let z=d(b,"transformErrorResponse");const{rawErrorResponseSchema:B,errorResponseSchema:V}=b;let{value:K,meta:H}=Q;try{B&&!w&&(K=await Li(B,K,"rawErrorResponseSchema",H)),v&&!w&&(H=await Li(v,H,"metaSchema",H));let W=await z(K,H,e.originalArgs);return V&&!w&&(W=await Li(V,W,"errorResponseSchema",H)),i(W,Qi({baseQueryMeta:H}))}catch(G){Q=G}}try{if(Q instanceof Ui){const J={endpoint:e.endpointName,arg:e.originalArgs,type:e.type,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0};b.onSchemaFailure?.(Q,J),s?.(Q,J);const{catchSchemaFailure:Y=c}=b;if(Y)return i(Y(Q,J),Qi({baseQueryMeta:Q._bqMeta}))}}catch(X){Q=X}throw"undefined"!=typeof process&&"production"!==process.env.NODE_ENV?console.error(`An unhandled error occurred processing a request for the endpoint "${e.endpointName}".\nIn the case of an unhandled error, no tags will be "provided" or "invalidated".`,Q):console.error(Q),Q}};function y(e,t){const r=a.selectQueryEntry(t,e.queryCacheKey),n=a.selectConfig(t).refetchOnMountOrArgChange,o=r?.fulfilledTimeStamp,i=e.forceRefetch??(e.subscribe&&n);return!!i&&(!0===i||(Number(new Date)-Number(o))/1e3>=i)}const h=()=>Ue(`${e}/executeQuery`,p,{getPendingMeta({arg:e}){const t=r[e.endpointName];return Qi({startedTimeStamp:Date.now(),...Ii(t)?{direction:e.direction}:{}})},condition(e,{getState:t}){const n=t(),o=a.selectQueryEntry(n,e.queryCacheKey),i=o?.fulfilledTimeStamp,s=e.originalArgs,c=o?.originalArgs,u=r[e.endpointName],l=e.direction;return!(!Mi(e)&&("pending"===o?.status||!y(e,n)&&(!Ni(u)||!u?.forceRefetch?.({currentArg:s,previousArg:c,endpointState:o,state:n}))&&i&&!l))},dispatchConditionRejection:!0}),g=h(),b=h();function v(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:g,mutationThunk:Ue(`${e}/executeMutation`,p,{getPendingMeta:()=>Qi({startedTimeStamp:Date.now()})}),infiniteQueryThunk:b,prefetch:(e,t,r)=>(n,i)=>{const a=(e=>"force"in e)(r)&&r.force,s=(e=>"ifOlderThan"in e)(r)&&r.ifOlderThan,c=(r=!0)=>{const n={forceRefetch:r,isPrefetch:!0};return o.endpoints[e].initiate(t,n)},u=o.endpoints[e].select(t)(i());if(a)n(c());else if(s){const e=u?.fulfilledTimeStamp;if(!e)return void n(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&n(c())}else n(c(!1))},updateQueryData:(e,t,r,n=!0)=>(i,a)=>{const s=o.endpoints[e].select(t)(a()),c={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,c.inversePatches,n))};if("uninitialized"===s.status)return c;let u;if("data"in s)if(m(s.data)){const[e,t,n]=re(s.data,r);c.patches.push(...t),c.inversePatches.push(...n),u=e}else u=r(s.data),c.patches.push({op:"replace",path:[],value:u}),c.inversePatches.push({op:"replace",path:[],value:s.data});return 0===c.patches.length||i(o.util.patchQueryData(e,t,c.patches,n)),c},upsertQueryData:(e,t,r)=>n=>n(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Fi]:()=>({data:r})})),patchQueryData:(e,t,a,s)=>(c,u)=>{const l=r[e],f=n({queryArgs:t,endpointDefinition:l,endpointName:e});if(c(o.internalActions.queryResultPatched({queryCacheKey:f,patches:a})),!s)return;const d=o.endpoints[e].select(t)(u()),p=Di(l.providesTags,d.data,void 0,t,{},i);c(o.internalActions.updateProvidedBy([{queryCacheKey:f,providedTags:p}]))},buildMatchThunkActions:function(e,t){return{matchPending:Ae(Pe(e),v(t)),matchFulfilled:Ae(Ce(e),v(t)),matchRejected:Ae(je(e),v(t))}}}}({baseQuery:r,reducerPath:o,context:y,api:t,serializeQueryArgs:i,assertTagType:h,selectors:g,onSchemaFailure:f,catchSchemaFailure:d,skipSchemaValidation:p}),{reducer:C,actions:N}=Ji({context:y,queryThunk:O,mutationThunk:A,serializeQueryArgs:i,reducerPath:o,assertTagType:h,config:{refetchOnFocus:c,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:l}});na(t.util,{patchQueryData:T,updateQueryData:R,upsertQueryData:P,prefetch:j,resetApiState:N.resetApiState,upsertQueryEntries:N.cacheEntriesUpserted}),na(t.internalActions,N);const{middleware:I,actions:x}=fa({reducerPath:o,context:y,queryThunk:O,mutationThunk:A,infiniteQueryThunk:_,api:t,assertTagType:h,selectors:g});na(t.util,x),na(t,{reducer:C,middleware:I});const{buildInitiateQuery:D,buildInitiateInfiniteQuery:q,buildInitiateMutation:F,getRunningMutationThunk:M,getRunningMutationsThunk:U,getRunningQueriesThunk:L,getRunningQueryThunk:$}=function({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:r,mutationThunk:n,api:o,context:i}){const a=new Map,s=new Map,{unsubscribeQueryResult:c,removeMutationResult:u,updateSubscriptionOptions:l}=o.internalActions;return{buildInitiateQuery:function(e,t){return d(e,t)},buildInitiateInfiniteQuery:function(e,t){return d(e,t)},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,a)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),l=i(c);f(i);const{requestId:d,abort:p,unwrap:y}=l,h=(m=e=>({error:e}),l.unwrap().then(e=>({data:e})).catch(m));var m;const g=Object.assign(h,{arg:l.arg,requestId:d,abort:p,unwrap:y,reset:()=>{i(u({requestId:d,fixedCacheKey:o}))}}),b=s.get(i)||{};return s.set(i,b),b[d]=g,g.then(()=>{delete b[d],vi(b)||s.delete(i)}),o&&(b[o]=g,g.then(()=>{b[o]===g&&(delete b[o],vi(b)||s.delete(i))})),g}},getRunningQueryThunk:function(t,r){return n=>{const o=i.endpointDefinitions[t],s=e({queryArgs:r,endpointDefinition:o,endpointName:t});return a.get(n)?.[s]}},getRunningMutationThunk:function(e,t){return e=>s.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(a.get(e)||{}).filter(Ei)},getRunningMutationsThunk:function(){return e=>Object.values(s.get(e)||{}).filter(Ei)}};function f(e){if("production"!==process.env.NODE_ENV){if(f.triggered)return;const t=e(o.internalActions.internal_getRTKQSubscriptions());if(f.triggered=!0,"object"!=typeof t||"string"==typeof t?.type)throw new Error("production"===process.env.NODE_ENV?tt(34):`Warning: Middleware for RTK-Query API at reducerPath "${o.reducerPath}" has not been added to the store.\nYou must add the middleware for RTK-Query to function correctly!`)}}function d(n,i){const s=(u,{subscribe:d=!0,forceRefetch:p,subscriptionOptions:y,[Fi]:h,...m}={})=>(g,b)=>{const v=e({queryArgs:u,endpointDefinition:i,endpointName:n});let w;const E={...m,type:"query",subscribe:d,forceRefetch:p,subscriptionOptions:y,endpointName:n,originalArgs:u,queryCacheKey:v,[Fi]:h};if(Ni(i))w=t(E);else{const{direction:e,initialPageParam:t}=m;w=r({...E,direction:e,initialPageParam:t})}const S=o.endpoints[n].select(u),O=g(w),_=S(b());f(g);const{requestId:A,abort:T}=O,R=_.requestId!==A,P=a.get(g)?.[v],j=()=>S(b()),k=Object.assign(h?O.then(j):R&&!P?Promise.resolve(_):Promise.all([P,O]).then(j),{arg:u,requestId:A,subscriptionOptions:y,queryCacheKey:v,abort:T,async unwrap(){const e=await k;if(e.isError)throw e.error;return e.data},refetch:()=>g(s(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){d&&g(c({queryCacheKey:v,requestId:A}))},updateSubscriptionOptions(e){k.subscriptionOptions=e,g(l({endpointName:n,requestId:A,queryCacheKey:v,options:e}))}});if(!P&&!R&&!h){const e=(N=g,I={},(C=a).has(N)?C.get(N):C.set(N,I).get(N));e[v]=k,k.then(()=>{delete e[v],vi(e)||a.delete(g)})}var C,N,I;return k};return s}}({queryThunk:O,mutationThunk:A,infiniteQueryThunk:_,api:t,serializeQueryArgs:i,context:y});return na(t.util,{getRunningMutationThunk:M,getRunningMutationsThunk:U,getRunningQueryThunk:$,getRunningQueriesThunk:L}),{name:da,injectEndpoint(e,r){const n=t,o=n.endpoints[e]??={};Ni(r)&&na(o,{name:e,select:w(e,r),initiate:D(e,r)},k(O,e)),"mutation"===r.type&&na(o,{name:e,select:S(),initiate:F(e)},k(A,e)),Ii(r)&&na(o,{name:e,select:E(e,r),initiate:q(e,r)},k(O,e))}}}});pa();var ya,ha={exports:{}},ma={};var ga,ba,va={exports:{}};
2
2
  /**
3
3
  * @license React
4
4
  * react.development.js
@@ -7,4 +7,4 @@ var version=function(e){"use strict";function t(e){return`Minified Redux error #
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */function fa(){return ca||(ca=1,function(e,t){"production"!==process.env.NODE_ENV&&function(){function r(e,t){Object.defineProperty(o.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}function n(e,t){var r=(e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass")+"."+t;z[r]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),z[r]=!0)}function o(e,t,r){this.props=e,this.context=t,this.refs=K,this.updater=r||B}function i(){}function a(e,t,r){this.props=e,this.context=t,this.refs=K,this.updater=r||B}function s(e){return""+e}function c(e){try{s(e);var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,n="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),s(e)}}function u(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===X?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case x:return"Profiler";case N:return"StrictMode";case F:return"Suspense";case M:return"SuspenseList";case $:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case k:return"Portal";case D:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U:return null!==(t=e.displayName||null)?t:u(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return u(e(t))}catch(e){}}return null}function l(e){if(e===C)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===L)return"<...>";try{var t=u(e);return t?"<"+t+">":"<...>"}catch(e){return"<...>"}}function f(){var e=Z.A;return null===e?null:e.getOwner()}function d(){return Error("react-stack-top-frame")}function p(e){if(ee.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function y(){var e=u(this.type);return re[e]||(re[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function h(e,t,r,n,o,i,a,s){return r=i.ref,e={$$typeof:P,type:e,key:t,props:i,_owner:o},null!==(void 0!==r?r:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:y}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function m(e){return"object"==typeof e&&null!==e&&e.$$typeof===P}function g(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(c(e.key),r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var r,n}function b(){}function v(e,t,r,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a,s,u,l=!1;if(null===e)l=!0;else switch(i){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case P:case k:l=!0;break;case L:return v((l=e._init)(e._payload),t,r,n,o)}}if(l){o=o(l=e);var f=""===n?"."+g(l,0):n;return Y(o)?(r="",null!=f&&(r=f.replace(ae,"$&/")+"/"),v(o,t,r,"",function(e){return e})):null!=o&&(m(o)&&(null!=o.key&&(l&&l.key===o.key||c(o.key)),a=o,s=r+(null==o.key||l&&l.key===o.key?"":(""+o.key).replace(ae,"$&/")+"/")+f,s=h(a.type,s,void 0,0,a._owner,a.props,a._debugStack,a._debugTask),a._store&&(s._store.validated=a._store.validated),r=s,""!==n&&null!=l&&m(l)&&null==l.key&&l._store&&!l._store.validated&&(r._store.validated=2),o=r),t.push(o)),1}if(l=0,f=""===n?".":n+":",Y(e))for(var d=0;d<e.length;d++)l+=v(n=e[d],t,r,i=f+g(n,d),o);else if("function"==typeof(d=null===(u=e)||"object"!=typeof u?null:"function"==typeof(u=Q&&u[Q]||u["@@iterator"])?u:null))for(d===e.entries&&(ie||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ie=!0),e=d.call(e),d=0;!(n=e.next()).done;)l+=v(n=n.value,t,r,i=f+g(n,d++),o);else if("object"===i){if("function"==typeof e.then)return v(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(b,b):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,r,n,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function w(e,t,r){if(null==e)return e;var n=[],o=0;return v(e,n,"","",function(e){return t.call(r,e,o++)}),n}function S(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return void 0===(t=e._result)&&console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",t),"default"in t||console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t),t.default;throw e._result}function E(){var e=Z.H;return null===e&&console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}function O(){}function _(t){if(null===ue)try{var r=("require"+Math.random()).slice(0,7);ue=(e&&e[r]).call(e,"timers").setImmediate}catch(e){ue=function(e){!1===ce&&(ce=!0,"undefined"==typeof MessageChannel&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return ue(t)}function A(e){return 1<e.length&&"function"==typeof AggregateError?new AggregateError(e):e[0]}function T(e,t){t!==le-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),le=t}function R(e,t,r){var n=Z.actQueue;if(null!==n)if(0!==n.length)try{return j(n),void _(function(){return R(e,t,r)})}catch(e){Z.thrownErrors.push(e)}else Z.actQueue=null;0<Z.thrownErrors.length?(n=A(Z.thrownErrors),Z.thrownErrors.length=0,r(n)):t(e)}function j(e){if(!de){de=!0;var t=0;try{for(;t<e.length;t++)for(var r=e[t];;){Z.didUsePromise=!1;var n=r(!1);if(null===n)break;if(Z.didUsePromise)return e[t]=r,void e.splice(0,t);r=n}e.length=0}catch(r){e.splice(0,t+1),Z.thrownErrors.push(r)}finally{de=!1}}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var P=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),D=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),Q=Symbol.iterator,z={},B={isMounted:function(){return!1},enqueueForceUpdate:function(e){n(e,"forceUpdate")},enqueueReplaceState:function(e){n(e,"replaceState")},enqueueSetState:function(e){n(e,"setState")}},V=Object.assign,K={};Object.freeze(K),o.prototype.isReactComponent={},o.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var H,W={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(H in W)W.hasOwnProperty(H)&&r(H,W[H]);i.prototype=o.prototype,(W=a.prototype=new i).constructor=a,V(W,o.prototype),W.isPureReactComponent=!0;var G,J,Y=Array.isArray,X=Symbol.for("react.client.reference"),Z={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ee=Object.prototype.hasOwnProperty,te=console.createTask?console.createTask:function(){return null},re={},ne=(W={"react-stack-bottom-frame":function(e){return e()}})["react-stack-bottom-frame"].bind(W,d)(),oe=te(l(d)),ie=!1,ae=/\/+/g,se="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},ce=!1,ue=null,le=0,fe=!1,de=!1,pe="function"==typeof queueMicrotask?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:_;W=Object.freeze({__proto__:null,c:function(e){return E().useMemoCache(e)}}),t.Children={map:w,forEach:function(e,t,r){w(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return w(e,function(){t++}),t},toArray:function(e){return w(e,function(e){return e})||[]},only:function(e){if(!m(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=o,t.Fragment=C,t.Profiler=x,t.PureComponent=a,t.StrictMode=N,t.Suspense=F,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,t.__COMPILER_RUNTIME=W,t.act=function(e){var t=Z.actQueue,r=le;le++;var n=Z.actQueue=null!==t?t:[],o=!1;try{var i=e()}catch(e){Z.thrownErrors.push(e)}if(0<Z.thrownErrors.length)throw T(0,r),e=A(Z.thrownErrors),Z.thrownErrors.length=0,e;if(null!==i&&"object"==typeof i&&"function"==typeof i.then){var a=i;return pe(function(){o||fe||(fe=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(e,t){o=!0,a.then(function(o){if(T(0,r),0===r){try{j(n),_(function(){return R(o,e,t)})}catch(e){Z.thrownErrors.push(e)}if(0<Z.thrownErrors.length){var i=A(Z.thrownErrors);Z.thrownErrors.length=0,t(i)}}else e(o)},function(e){T(0,r),0<Z.thrownErrors.length?(e=A(Z.thrownErrors),Z.thrownErrors.length=0,t(e)):t(e)})}}}var s=i;if(T(0,r),0===r&&(j(n),0!==n.length&&pe(function(){o||fe||(fe=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Z.actQueue=null),0<Z.thrownErrors.length)throw e=A(Z.thrownErrors),Z.thrownErrors.length=0,e;return{then:function(e,t){o=!0,0===r?(Z.actQueue=n,_(function(){return R(s,e,t)})):e(s)}}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.captureOwnerStack=function(){var e=Z.getCurrentStack;return null===e?null:e()},t.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n,o=V({},e.props),i=e.key,a=e._owner;if(null!=t)for(s in(n=!(ee.call(t,"ref")&&(n=Object.getOwnPropertyDescriptor(t,"ref").get)&&n.isReactWarning)&&void 0!==t.ref)&&(a=f()),p(t)&&(c(t.key),i=""+t.key),t)!ee.call(t,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===t.ref||(o[s]=t[s]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){n=Array(s);for(var u=0;u<s;u++)n[u]=arguments[u+2];o.children=n}for(o=h(e.type,i,void 0,0,a,o,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)m(a=arguments[i])&&a._store&&(a._store.validated=1);return o},t.createContext=function(e){return(e={$$typeof:D,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:I,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},t.createElement=function(e,t,r){for(var n=2;n<arguments.length;n++){var o=arguments[n];m(o)&&o._store&&(o._store.validated=1)}if(n={},o=null,null!=t)for(u in J||!("__self"in t)||"key"in t||(J=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),p(t)&&(c(t.key),o=""+t.key),t)ee.call(t,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&(n[u]=t[u]);var i=arguments.length-2;if(1===i)n.children=r;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];Object.freeze&&Object.freeze(a),n.children=a}if(e&&e.defaultProps)for(u in i=e.defaultProps)void 0===n[u]&&(n[u]=i[u]);o&&function(e,t){function r(){G||(G=!0,console.error("%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://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(n,"function"==typeof e?e.displayName||e.name||"Unknown":e);var u=1e4>Z.recentlyCreatedOwnerStacks++;return h(e,o,void 0,0,f(),n,u?Error("react-stack-top-frame"):ne,u?te(l(e)):oe)},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===U?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?console.error("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&null!=e.defaultProps&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var t,r={$$typeof:q,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(Object.defineProperty(e,"name",{value:r}),e.displayName=r)}}),r},t.isValidElement=m,t.lazy=function(e){return{$$typeof:L,_payload:{_status:-1,_result:e},_init:S}},t.memo=function(e,t){var r;return null==e&&console.error("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),t={$$typeof:U,type:e,compare:void 0===t?null:t},Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},t.startTransition=function(e){var t=Z.T,r={};Z.T=r,r._updatedFibers=new Set;try{var n=e(),o=Z.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(O,se)}catch(e){se(e)}finally{null===t&&r._updatedFibers&&(e=r._updatedFibers.size,r._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),Z.T=t}},t.unstable_useCacheRefresh=function(){return E().useCacheRefresh()},t.use=function(e){return E().use(e)},t.useActionState=function(e,t,r){return E().useActionState(e,t,r)},t.useCallback=function(e,t){return E().useCallback(e,t)},t.useContext=function(e){var t=E();return e.$$typeof===I&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),t.useContext(e)},t.useDebugValue=function(e,t){return E().useDebugValue(e,t)},t.useDeferredValue=function(e,t){return E().useDeferredValue(e,t)},t.useEffect=function(e,t,r){null==e&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var n=E();if("function"==typeof r)throw Error("useEffect CRUD overload is not enabled in this build of React.");return n.useEffect(e,t)},t.useId=function(){return E().useId()},t.useImperativeHandle=function(e,t,r){return E().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return null==e&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),E().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return null==e&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),E().useLayoutEffect(e,t)},t.useMemo=function(e,t){return E().useMemo(e,t)},t.useOptimistic=function(e,t){return E().useOptimistic(e,t)},t.useReducer=function(e,t,r){return E().useReducer(e,t,r)},t.useRef=function(e){return E().useRef(e)},t.useState=function(e){return E().useState(e)},t.useSyncExternalStore=function(e,t,r){return E().useSyncExternalStore(e,t,r)},t.useTransition=function(){return E().useTransition()},t.version="19.1.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(la,la.exports)),la.exports}function da(){return ua||(ua=1,"production"===process.env.NODE_ENV?aa.exports=function(){if(ia)return sa;ia=1;var e=Symbol.for("react.transitional.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.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),f=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,y={};function h(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||d}function m(){}function g(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||d}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=h.prototype;var b=g.prototype=new m;b.constructor=g,p(b,h.prototype),b.isPureReactComponent=!0;var v=Array.isArray,w={H:null,A:null,T:null,S:null,V:null},S=Object.prototype.hasOwnProperty;function E(t,r,n,o,i,a){return n=a.ref,{$$typeof:e,type:t,key:r,ref:void 0!==n?n:null,props:a}}function O(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var _=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var r,n}function T(){}function R(r,n,o,i,a){var s=typeof r;"undefined"!==s&&"boolean"!==s||(r=null);var c,u,d=!1;if(null===r)d=!0;else switch(s){case"bigint":case"string":case"number":d=!0;break;case"object":switch(r.$$typeof){case e:case t:d=!0;break;case l:return R((d=r._init)(r._payload),n,o,i,a)}}if(d)return a=a(r),d=""===i?"."+A(r,0):i,v(a)?(o="",null!=d&&(o=d.replace(_,"$&/")+"/"),R(a,n,o,"",function(e){return e})):null!=a&&(O(a)&&(c=a,u=o+(null==a.key||r&&r.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+d,a=E(c.type,u,void 0,0,0,c.props)),n.push(a)),1;d=0;var p,y=""===i?".":i+":";if(v(r))for(var h=0;h<r.length;h++)d+=R(i=r[h],n,o,s=y+A(i,h),a);else if("function"==typeof(h=null===(p=r)||"object"!=typeof p?null:"function"==typeof(p=f&&p[f]||p["@@iterator"])?p:null))for(r=h.call(r),h=0;!(i=r.next()).done;)d+=R(i=i.value,n,o,s=y+A(i,h++),a);else if("object"===s){if("function"==typeof r.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(T,T):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(r),n,o,i,a);throw n=String(r),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(r).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return d}function j(e,t,r){if(null==e)return e;var n=[],o=0;return R(e,n,"","",function(e){return t.call(r,e,o++)}),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var k="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function C(){}return sa.Children={map:j,forEach:function(e,t,r){j(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},sa.Component=h,sa.Fragment=r,sa.Profiler=o,sa.PureComponent=g,sa.StrictMode=n,sa.Suspense=c,sa.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,sa.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},sa.cache=function(e){return function(){return e.apply(null,arguments)}},sa.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=p({},e.props),o=e.key;if(null!=t)for(i in t.ref,void 0!==t.key&&(o=""+t.key),t)!S.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(n[i]=t[i]);var i=arguments.length-2;if(1===i)n.children=r;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];n.children=a}return E(e.type,o,void 0,0,0,n)},sa.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},sa.createElement=function(e,t,r){var n,o={},i=null;if(null!=t)for(n in void 0!==t.key&&(i=""+t.key),t)S.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(o[n]=t[n]);var a=arguments.length-2;if(1===a)o.children=r;else if(1<a){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===o[n]&&(o[n]=a[n]);return E(e,i,void 0,0,0,o)},sa.createRef=function(){return{current:null}},sa.forwardRef=function(e){return{$$typeof:s,render:e}},sa.isValidElement=O,sa.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:P}},sa.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},sa.startTransition=function(e){var t=w.T,r={};w.T=r;try{var n=e(),o=w.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(C,k)}catch(e){k(e)}finally{w.T=t}},sa.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},sa.use=function(e){return w.H.use(e)},sa.useActionState=function(e,t,r){return w.H.useActionState(e,t,r)},sa.useCallback=function(e,t){return w.H.useCallback(e,t)},sa.useContext=function(e){return w.H.useContext(e)},sa.useDebugValue=function(){},sa.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},sa.useEffect=function(e,t,r){var n=w.H;if("function"==typeof r)throw Error("useEffect CRUD overload is not enabled in this build of React.");return n.useEffect(e,t)},sa.useId=function(){return w.H.useId()},sa.useImperativeHandle=function(e,t,r){return w.H.useImperativeHandle(e,t,r)},sa.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},sa.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},sa.useMemo=function(e,t){return w.H.useMemo(e,t)},sa.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},sa.useReducer=function(e,t,r){return w.H.useReducer(e,t,r)},sa.useRef=function(e){return w.H.useRef(e)},sa.useState=function(e){return w.H.useState(e)},sa.useSyncExternalStore=function(e,t,r){return w.H.useSyncExternalStore(e,t,r)},sa.useTransition=function(){return w.H.useTransition()},sa.version="19.1.0",sa}():aa.exports=fa()),aa.exports}var pa,ya,ha,ma=da(),ga={exports:{}},ba={},va={},wa=(ha||(ha=1,"production"===process.env.NODE_ENV?ga.exports=function(){if(pa)return ba;pa=1;var e=da(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useSyncExternalStore,n=e.useRef,o=e.useEffect,i=e.useMemo,a=e.useDebugValue;return ba.useSyncExternalStoreWithSelector=function(e,s,c,u,l){var f=n(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i(function(){function e(e){if(!o){if(o=!0,r=e,e=u(e),void 0!==l&&d.hasValue){var i=d.value;if(l(i,e))return n=i}return n=e}if(i=n,t(r,e))return i;var a=u(e);return void 0!==l&&l(i,a)?(r=e,i):(r=e,n=a)}var r,n,o=!1,i=void 0===c?null:c;return[function(){return e(s())},null===i?void 0:function(){return e(i())}]},[s,c,u,l]);var p=r(e,f[0],f[1]);return o(function(){d.hasValue=!0,d.value=p},[p]),a(p),p},ba}():ga.exports=(ya||(ya=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=da(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useSyncExternalStore,n=e.useRef,o=e.useEffect,i=e.useMemo,a=e.useDebugValue;va.useSyncExternalStoreWithSelector=function(e,s,c,u,l){var f=n(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i(function(){function e(e){if(!o){if(o=!0,r=e,e=u(e),void 0!==l&&d.hasValue){var i=d.value;if(l(i,e))return n=i}return n=e}if(i=n,t(r,e))return i;var a=u(e);return void 0!==l&&l(i,a)?(r=e,i):(r=e,n=a)}var r,n,o=!1,i=void 0===c?null:c;return[function(){return e(s())},null===i?void 0:function(){return e(i())}]},[s,c,u,l]);var p=r(e,f[0],f[1]);return o(function(){d.hasValue=!0,d.value=p},[p]),a(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),va)),ga.exports);function Sa(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ea(e,t){if(Sa(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Sa(e[r[n]],t[r[n]]))return!1;return!0}var Oa=Symbol.for("react-redux-context"),_a="undefined"!=typeof globalThis?globalThis:{};var Aa=function(){if(!ma.createContext)return{};const e=_a[Oa]??=new Map;let t=e.get(ma.createContext);return t||(t=ma.createContext(null),"production"!==process.env.NODE_ENV&&(t.displayName="ReactRedux"),e.set(ma.createContext,t)),t}();function Ta(e=Aa){return function(){const t=ma.useContext(e);if("production"!==process.env.NODE_ENV&&!t)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return t}}var Ra=Ta();function ja(e=Aa){const t=e===Aa?Ra:Ta(e),r=()=>{const{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var Pa=ja();var ka=function(e=Aa){const t=e===Aa?Pa:ja(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}(),Ca=(e,t)=>e===t;var Na=function(e=Aa){const t=e===Aa?Ra:Ta(e),r=(e,r={})=>{const{equalityFn:n=Ca}="function"==typeof r?{equalityFn:r}:r;if("production"!==process.env.NODE_ENV){if(!e)throw new Error("You must pass a selector to useSelector");if("function"!=typeof e)throw new Error("You must pass a function as a selector to useSelector");if("function"!=typeof n)throw new Error("You must pass a function as an equality function to useSelector")}const o=t(),{store:i,subscription:a,getServerState:s}=o,c=ma.useRef(!0),u=ma.useCallback({[e.name](t){const i=e(t);if("production"!==process.env.NODE_ENV){const{devModeChecks:a={}}="function"==typeof r?{}:r,{identityFunctionCheck:s,stabilityCheck:u}=o,{identityFunctionCheck:l,stabilityCheck:f}={stabilityCheck:u,identityFunctionCheck:s,...a};if("always"===f||"once"===f&&c.current){const r=e(t);if(!n(i,r)){let n;try{throw new Error}catch(e){({stack:n}=e)}console.warn("Selector "+(e.name||"unknown")+" returned a different result when called with the same parameters. This can lead to unnecessary rerenders.\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization",{state:t,selected:i,selected2:r,stack:n})}}if(("always"===l||"once"===l&&c.current)&&i===t){let t;try{throw new Error}catch(e){({stack:t}=e)}console.warn("Selector "+(e.name||"unknown")+" returned the root state when called. This can lead to unnecessary rerenders.\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.",{stack:t})}c.current&&(c.current=!1)}return i}}[e.name],[e]),l=wa.useSyncExternalStoreWithSelector(a.addNestedSub,i.getState,s||i.getState,u,n);return ma.useDebugValue(l),l};return Object.assign(r,{withTypes:()=>r}),r}(),xa=function(e){e()};function Ia(e){return e.replace(e[0],e[0].toUpperCase())}function Da(e){let t=0;for(const r in e)t++;return t}function qa(e){return"infinitequery"===e.type}function Fa(e,...t){return Object.assign(e,...t)}var Ma=Symbol();function Ua(e,t,r,n){const o=ma.useMemo(()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),i=ma.useRef(o);return ma.useEffect(()=>{i.current.serialized!==o.serialized&&(i.current=o)},[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function La(e){const t=ma.useRef(e);return ma.useEffect(()=>{Ea(t.current,e)||(t.current=e)},[e]),Ea(t.current,e)?t.current:e}var $a=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Qa="undefined"!=typeof navigator&&"ReactNative"===navigator.product,za=$a||Qa?ma.useLayoutEffect:ma.useEffect,Ba=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:ai.pending}:e;function Va(e,...t){const r={};return t.forEach(t=>{r[t]=e[t]}),r}var Ka=["data","status","isLoading","isSuccess","isError","error"],Ha=Symbol(),Wa=function(...e){return function(t){const r=fe(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),n={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:r,serializeQueryArgs(e){let r=Hi;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;r=e=>{const r=t(e);return"string"==typeof r?r:Hi({...e,queryArgs:r})}}else t.serializeQueryArgs&&(r=t.serializeQueryArgs);return r(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:xe(),extractRehydrationInfo:r,hasRehydrationInfo:fe(e=>null!=r(e))},i={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"}),infiniteQuery:e=>({...e,type:"infinitequery"})});for(const[r,n]of Object.entries(t))if(!0!==e.overrideExisting&&r in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error("production"===process.env.NODE_ENV?tt(39):`called \`injectEndpoints\` to override already-existing endpointName ${r} without specifying \`overrideExisting: true\``);"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&console.error(`called \`injectEndpoints\` to override already-existing endpointName ${r} without specifying \`overrideExisting: true\``)}else{if("undefined"!=typeof process&&"development"===process.env.NODE_ENV&&_i(n)){const{infiniteQueryOptions:e}=n,{maxPages:t,getPreviousPageParam:o}=e;if("number"==typeof t){if(t<1)throw new Error("production"===process.env.NODE_ENV?tt(40):`maxPages for endpoint '${r}' must be a number greater than 0`);if("function"!=typeof o)throw new Error("production"===process.env.NODE_ENV?tt(41):`getPreviousPageParam for endpoint '${r}' must be a function if maxPages is used`)}}o.endpointDefinitions[r]=n;for(const e of a)e.injectEndpoint(r,n)}return i},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)n.tagTypes.includes(t)||n.tagTypes.push(t);if(t)for(const[e,r]of Object.entries(t))"function"==typeof r?r(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},r);return i}},a=e.map(e=>e.init(i,n,o));return i.injectEndpoints({endpoints:t.endpoints})}}(oa(),(({batch:e=xa,hooks:t={useDispatch:ka,useSelector:Na,useStore:Pa},createSelector:r=pe,unstable__sideEffectsInRender:n=!1,...o}={})=>{if("production"!==process.env.NODE_ENV){const e=["useDispatch","useSelector","useStore"];let r=!1;for(const n of e)if(Da(o)>0&&(o[n]&&(r||(console.warn("As of RTK 2.0, the hooks now need to be specified as one object, provided under a `hooks` key:\n`reactHooksModule({ hooks: { useDispatch, useSelector, useStore } })`"),r=!0)),t[n]=o[n]),"function"!=typeof t[n])throw new Error("production"===process.env.NODE_ENV?tt(36):`When using custom hooks for context, all ${e.length} hooks need to be provided: ${e.join(", ")}.\nHook ${n} was either not provided or not a function.`)}return{name:Ha,init(o,{serializeQueryArgs:i},a){const s=o,{buildQueryHooks:c,buildInfiniteQueryHooks:u,buildMutationHook:l,usePrefetch:f}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:o},unstable__sideEffectsInRender:i,createSelector:a},serializeQueryArgs:s,context:c}){const u=i?e=>e():ma.useEffect;return{buildQueryHooks:function(n){const o=(e,t={})=>{const[r]=d(n,e,t);return y(r),ma.useMemo(()=>({refetch:()=>h(r)}),[r])},i=({refetchOnReconnect:o,refetchOnFocus:i,pollingInterval:a=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:c}=e.endpoints[n],l=r(),[f,d]=ma.useState(Ma),p=ma.useRef(void 0),y=La({refetchOnReconnect:o,refetchOnFocus:i,pollingInterval:a,skipPollingIfUnfocused:s});u(()=>{const e=p.current?.subscriptionOptions;y!==e&&p.current?.updateSubscriptionOptions(y)},[y]);const h=ma.useRef(y);u(()=>{h.current=y},[y]);const m=ma.useCallback(function(e,r=!1){let n;return t(()=>{p.current?.unsubscribe(),p.current=n=l(c(e,{subscriptionOptions:h.current,forceRefetch:!r})),d(e)}),n},[l,c]),g=ma.useCallback(()=>{p.current?.queryCacheKey&&l(e.internalActions.removeQueryResult({queryCacheKey:p.current?.queryCacheKey}))},[l]);return ma.useEffect(()=>()=>{p?.current?.unsubscribe()},[]),ma.useEffect(()=>{f===Ma||p.current||m(f,!0)},[f,m]),ma.useMemo(()=>[m,f,{reset:g}],[m,f,g])},a=p(n,l);return{useQueryState:a,useQuerySubscription:o,useLazyQuerySubscription:i,useLazyQuery(e){const[t,r,{reset:n}]=i(e),o=a(r,{...e,skip:r===Ma}),s=ma.useMemo(()=>({lastArg:r}),[r]);return ma.useMemo(()=>[t,{...o,reset:n},s],[t,o,n,s])},useQuery(e,t){const r=o(e,t),n=a(e,{selectFromResult:e===Qi||t?.skip?void 0:Ba,...t}),i=Va(n,...Ka);return ma.useDebugValue(i),ma.useMemo(()=>({...n,...r}),[n,r])}}},buildInfiniteQueryHooks:function(e){const r=(r,n={})=>{const[o,i,a,s]=d(e,r,n),l=ma.useRef(s);u(()=>{l.current=s},[s]);const f=ma.useCallback(function(e,r){let n;return t(()=>{o.current?.unsubscribe(),o.current=n=i(a(e,{subscriptionOptions:l.current,direction:r}))}),n},[o,i,a]);y(o);const p=Ua(n.skip?Qi:r,Hi,c.endpointDefinitions[e],e),m=ma.useCallback(()=>h(o),[o]);return ma.useMemo(()=>({trigger:f,refetch:m,fetchNextPage:()=>f(p,"forward"),fetchPreviousPage:()=>f(p,"backward")}),[m,f,p])},n=p(e,f);return{useInfiniteQueryState:n,useInfiniteQuerySubscription:r,useInfiniteQuery(e,t){const{refetch:o,fetchNextPage:i,fetchPreviousPage:a}=r(e,t),s=n(e,{selectFromResult:e===Qi||t?.skip?void 0:Ba,...t}),c=Va(s,...Ka,"hasNextPage","hasPreviousPage");return ma.useDebugValue(c),ma.useMemo(()=>({...s,fetchNextPage:i,fetchPreviousPage:a,refetch:o}),[s,i,a,o])}}},buildMutationHook:function(o){return({selectFromResult:i,fixedCacheKey:s}={})=>{const{select:c,initiate:u}=e.endpoints[o],l=r(),[f,d]=ma.useState();ma.useEffect(()=>()=>{f?.arg.fixedCacheKey||f?.reset()},[f]);const p=ma.useCallback(function(e){const t=l(u(e,{fixedCacheKey:s}));return d(t),t},[l,u,s]),{requestId:y}=f||{},h=ma.useMemo(()=>c({fixedCacheKey:s,requestId:f?.requestId}),[s,f,c]),m=ma.useMemo(()=>i?a([h],i):h,[i,h]),g=n(m,Ea),b=null==s?f?.arg.originalArgs:void 0,v=ma.useCallback(()=>{t(()=>{f&&d(void 0),s&&l(e.internalActions.removeMutationResult({requestId:y,fixedCacheKey:s}))})},[l,s,f,y]),w=Va(g,...Ka,"endpointName");ma.useDebugValue(w);const S=ma.useMemo(()=>({...g,originalArgs:b,reset:v}),[g,b,v]);return ma.useMemo(()=>[p,S],[p,S])}},usePrefetch:function(t,n){const o=r(),i=La(n);return ma.useCallback((r,n)=>o(e.util.prefetch(t,r,{...i,...n})),[t,o,i])}};function l(e,t,r){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,n=c.endpointDefinitions[e];r!==Qi&&s({queryArgs:t.originalArgs,endpointDefinition:n,endpointName:e})===s({queryArgs:r,endpointDefinition:n,endpointName:e})&&(t=void 0)}let n=e.isSuccess?e.data:t?.data;void 0===n&&(n=e.data);const o=void 0!==n,i=e.isLoading,a=(!t||t.isLoading||t.isUninitialized)&&!o&&i,u=e.isSuccess||o&&(i&&!t?.isError||e.isUninitialized);return{...e,data:n,currentData:e.data,isFetching:i,isLoading:a,isSuccess:u}}function f(e,t,r){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,n=c.endpointDefinitions[e];r!==Qi&&s({queryArgs:t.originalArgs,endpointDefinition:n,endpointName:e})===s({queryArgs:r,endpointDefinition:n,endpointName:e})&&(t=void 0)}let n=e.isSuccess?e.data:t?.data;void 0===n&&(n=e.data);const o=void 0!==n,i=e.isLoading,a=(!t||t.isLoading||t.isUninitialized)&&!o&&i,u=e.isSuccess||i&&o;return{...e,data:n,currentData:e.data,isFetching:i,isLoading:a,isSuccess:u}}function d(t,n,{refetchOnReconnect:o,refetchOnFocus:i,refetchOnMountOrArgChange:a,skip:s=!1,pollingInterval:l=0,skipPollingIfUnfocused:f=!1,...d}={}){const{initiate:p}=e.endpoints[t],y=r(),h=ma.useRef(void 0);if(!h.current){const t=y(e.internalActions.internal_getRTKQSubscriptions());if("production"!==process.env.NODE_ENV&&("object"!=typeof t||"string"==typeof t?.type))throw new Error("production"===process.env.NODE_ENV?tt(37):`Warning: Middleware for RTK-Query API at reducerPath "${e.reducerPath}" has not been added to the store.\n You must add the middleware for RTK-Query to function correctly!`);h.current=t}const m=Ua(s?Qi:n,Hi,c.endpointDefinitions[t],t),g=La({refetchOnReconnect:o,refetchOnFocus:i,pollingInterval:l,skipPollingIfUnfocused:f}),b=La(d.initialPageParam),v=ma.useRef(void 0);let{queryCacheKey:w,requestId:S}=v.current||{},E=!1;w&&S&&(E=h.current.isRequestSubscribed(w,S));const O=!E&&void 0!==v.current;return u(()=>{O&&(v.current=void 0)},[O]),u(()=>{const e=v.current;if("undefined"!=typeof process&&"removeMeOnCompilation"===process.env.NODE_ENV&&console.log(O),m===Qi)return e?.unsubscribe(),void(v.current=void 0);const r=v.current?.subscriptionOptions;if(e&&e.arg===m)g!==r&&e.updateSubscriptionOptions(g);else{e?.unsubscribe();const r=y(p(m,{subscriptionOptions:g,forceRefetch:a,...qa(c.endpointDefinitions[t])?{initialPageParam:b}:{}}));v.current=r}},[y,p,a,m,g,O,b,t]),[v,y,p,g]}function p(t,r){return(i,{skip:u=!1,selectFromResult:l}={})=>{const{select:f}=e.endpoints[t],d=Ua(u?Qi:i,s,c.endpointDefinitions[t],t),p=ma.useRef(void 0),y=ma.useMemo(()=>a([f(d),(e,t)=>t,e=>d],r,{memoizeOptions:{resultEqualityCheck:Ea}}),[f,d]),h=ma.useMemo(()=>l?a([y],l,{devModeChecks:{identityFunctionCheck:"never"}}):y,[y,l]),m=n(e=>h(e,p.current),Ea),g=o(),b=y(g.getState(),p.current);return za(()=>{p.current=b},[b]),m}}function y(e){ma.useEffect(()=>()=>{e.current?.unsubscribe?.(),e.current=void 0},[e])}function h(e){if(!e.current)throw new Error("production"===process.env.NODE_ENV?tt(38):"Cannot refetch a query that has not been started yet.");return e.current.refetch()}}({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:i,context:a});return Fa(s,{usePrefetch:f}),Fa(a,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:r,useLazyQuerySubscription:n,useQueryState:i,useQuerySubscription:a}=c(e);Fa(s.endpoints[e],{useQuery:t,useLazyQuery:r,useLazyQuerySubscription:n,useQueryState:i,useQuerySubscription:a}),o[`use${Ia(e)}Query`]=t,o[`useLazy${Ia(e)}Query`]=r}if(function(e){return"mutation"===e.type}(t)){const t=l(e);Fa(s.endpoints[e],{useMutation:t}),o[`use${Ia(e)}Mutation`]=t}else if(qa(t)){const{useInfiniteQuery:t,useInfiniteQuerySubscription:r,useInfiniteQueryState:n}=u(e);Fa(s.endpoints[e],{useInfiniteQuery:t,useInfiniteQuerySubscription:r,useInfiniteQueryState:n}),o[`use${Ia(e)}InfiniteQuery`]=t}}}}}})());const Ga={baseUrl:process.env.REACT_APP_API_BASE_URL||"http://localhost:4000/fear/api/",timeout:3e4,credentials:"include",prepareHeaders:(e,{getState:t})=>{e.set("Content-Type","application/json");const r=t()?.auth?.token;return r&&e.set("Authorization",`Bearer ${r}`),e}},Ja={GET:"GET",POST:"POST",PUT:"PUT",PATCH:"PATCH",DELETE:"DELETE"},Ya={getAll:{method:Ja.GET,url:e=>`${e}/all`,providesTags:e=>[{type:e,id:"LIST"}]},getById:{method:Ja.GET,url:(e,t)=>`${e}/${t}`,providesTags:(e,t)=>[{type:e,id:t}]},create:{method:Ja.POST,url:e=>`${e}`,invalidatesTags:e=>[{type:e,id:"LIST"}]},update:{method:Ja.PUT,url:(e,t)=>`${e}/${t}`,invalidatesTags:(e,t)=>[{type:e,id:t},{type:e,id:"LIST"}]},patch:{method:Ja.PATCH,url:(e,t)=>`${e}/${t}`,invalidatesTags:(e,t)=>[{type:e,id:t},{type:e,id:"LIST"}]},delete:{method:Ja.DELETE,url:(e,t)=>`${e}/${t}`,invalidatesTags:(e,t)=>[{type:e,id:t},{type:e,id:"LIST"}]},search:{method:Ja.GET,url:e=>`${e}/search`,providesTags:e=>[{type:e,id:"SEARCH"}]}},Xa=e=>e.status?{status:e.status,message:e.data?.message||`HTTP Error ${e.status}`,data:e.data}:{status:"FETCH_ERROR",message:e.message||"Network error occurred",error:e.error},Za=(e,t,r={})=>{const{method:n,url:o}=e;let i={method:n,url:"function"==typeof o?o(t,r.id,r):o};return n!==Ja.GET&&n!==Ja.DELETE&&(i.body=r.data||r),n===Ja.GET&&r.params&&(i.params=r.params),i},es=(e,t={})=>{(e=>{if(!e||"string"!=typeof e)throw new Error("SliceName must be a non-empty string")})(e);const r={tagTypes:["Product","Order","User","Category"],baseQuery:{},includeStandardEndpoints:!0,...t},n=(o=e).charAt(0).toUpperCase()+o.slice(1);var o;r.tagTypes.includes(n)||r.tagTypes.push(n);const i={...Ga,...r.baseQuery},a=Wa({reducerPath:`${e}Api`,tagTypes:r.tagTypes,baseQuery:gi(i),endpoints:()=>({})}),s=(t,r)=>{const{method:n=Ja.GET,url:o,type:i=(n===Ja.GET?"query":"mutation"),providesTags:s,invalidatesTags:c,transformResponse:u,transformErrorResponse:l=Xa}=r;return a.injectEndpoints({endpoints:r=>({[t]:r[i]({query:(t={})=>Za({method:n,url:o},e,t),providesTags:s?(t,r,n)=>s(e,n?.id,t,r,n):void 0,invalidatesTags:c?(t,r,n)=>c(e,n?.id,t,r,n):void 0,transformResponse:u,transformErrorResponse:l})})})},c=t=>a.injectEndpoints({endpoints:r=>{const n={};return Object.entries(t).forEach(([t,o])=>{const{method:i=Ja.GET,url:a,type:s=(i===Ja.GET?"query":"mutation"),providesTags:c,invalidatesTags:u,transformResponse:l,transformErrorResponse:f=Xa}=o;n[t]=r[s]({query:(t={})=>Za({method:i,url:a},e,t),providesTags:c?(t,r,n)=>c(e,n?.id,t,r,n):void 0,invalidatesTags:u?(t,r,n)=>u(e,n?.id,t,r,n):void 0,transformResponse:l,transformErrorResponse:f})}),n}}),u=()=>{const e={};return Object.entries(Ya).forEach(([t,r])=>{e[t]={method:r.method,url:r.url,providesTags:r.providesTags,invalidatesTags:r.invalidatesTags}}),c(e)};return{sliceName:e,entityTagType:n,baseApi:a,inject:s,injectMany:c,create:()=>{let e=a;return r.includeStandardEndpoints&&(e=u()),e},createStandard:u,createBulk:()=>{const t={bulkCreate:{method:Ja.POST,url:`${e}/bulk`,invalidatesTags:()=>[{type:n,id:"LIST"}]},bulkUpdate:{method:Ja.PUT,url:`${e}/bulk`,invalidatesTags:()=>[{type:n,id:"LIST"}]},bulkDelete:{method:Ja.DELETE,url:`${e}/bulk`,invalidatesTags:()=>[{type:n,id:"LIST"}]}};return c(t)},createCustom:(e,t)=>s(e,t),getTagTypes:()=>[...r.tagTypes],getBaseUrl:()=>i.baseUrl,getReducerPath:()=>a.reducerPath,withAuth:t=>es(e,{...r,baseQuery:{...i,prepareHeaders:(e,r)=>(e.set("Authorization",`Bearer ${t}`),Ga.prepareHeaders(e,r))}}),withBaseUrl:t=>es(e,{...r,baseQuery:{...i,baseUrl:t}})}};return es.createComplete=(e,t={})=>es(e,t).create(),es.createCustom=(e,t,r={})=>es(e,{...r,includeStandardEndpoints:!1}).injectMany(t),es.getStandardEndpoints=()=>({...Ya}),es.getHttpMethods=()=>({...Ja}),e.ApiFactory=es,e.CacheFactory=Bo,e.FeatureFactory=function(e,t={},r=null){if(!e||"string"!=typeof e)throw new Error("Entity name must be provided as a string");const n=function(e={}){const{selectId:t,sortComparer:r}={sortComparer:!1,selectId:e=>e.id,...e},n=r?function(e,t){const{removeOne:r,removeMany:n,removeAll:o}=Ze(e);function i(t,r,n){t=Je(t);const o=new Set(n??Ye(r.ids)),i=t.filter(t=>!o.has(Ge(t,e)));0!==i.length&&u(r,i)}function a(t,r){if(0!==(t=Je(t)).length){for(const n of t)delete r.entities[e(n)];u(r,t)}}function s(t,r){let n=!1,o=!1;for(let i of t){const t=r.entities[i.id];if(!t)continue;n=!0,Object.assign(t,i.changes);const a=e(t);if(i.id!==a){o=!0,delete r.entities[i.id];const e=r.ids.indexOf(i.id);r.ids[e]=a,r.entities[a]=t}}n&&u(r,[],n,o)}function c(t,r){const[n,o,a]=Xe(t,e,r);n.length&&i(n,r,a),o.length&&s(o,r)}const u=(r,n,o,i)=>{const a=Ye(r.entities),s=Ye(r.ids),c=r.entities;let u=s;i&&(u=new Set(s));let l=[];for(const e of u){const t=a[e];t&&l.push(t)}const f=0===l.length;for(const r of n)c[e(r)]=r,f||et(l,r,t);f?l=n.slice().sort(t):o&&l.sort(t);const d=l.map(e);(function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0})(s,d)||(r.ids=d)};return{removeOne:r,removeMany:n,removeAll:o,addOne:We(function(e,t){return i([e],t)}),updateOne:We(function(e,t){return s([e],t)}),upsertOne:We(function(e,t){return c([e],t)}),setOne:We(function(e,t){return a([e],t)}),setMany:We(a),setAll:We(function(e,t){e=Je(e),t.entities={},t.ids=[],i(e,t,[])}),addMany:We(i),updateMany:We(s),upsertMany:We(c)}}(t,r):Ze(t),o=function(e){return{getInitialState:function(t={},r){const n=Object.assign({ids:[],entities:{}},t);return r?e.setAll(n,r):n}}}(n),i={getSelectors:function(e,t={}){const{createSelector:r=he}=t,n=e=>e.ids,o=e=>e.entities,i=r(n,o,(e,t)=>e.map(e=>t[e])),a=(e,t)=>t,s=(e,t)=>e[t],c=r(n,e=>e.length);if(!e)return{selectIds:n,selectEntities:o,selectAll:i,selectTotal:c,selectById:r(o,a,s)};const u=r(e,o);return{selectIds:r(e,n),selectEntities:u,selectAll:r(e,i),selectTotal:r(e,c),selectById:r(u,a,s)}}};return{selectId:t,sortComparer:r,...o,...i,...n}}(),o=(e,t)=>{if(!e||!t)throw new Error("Both source and destination objects must be provided");return Object.keys(e).reduce((t,r)=>(Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]),t),{...t})},i=(t={})=>{const{service:r=null,initialState:n=null}=t,a=e,s=(e=>({fetch:Zo.create(e,"all"),fetchOne:Zo.create(e,"one"),search:Zo.create(e,"search")}))(a);return{slice:i({initialState:n||oi(a)}),asyncActions:r?o(s,r):s}};return{entity:e,reducers:t,adapter:n,manager:(e={})=>{const t={...e};let r=s(t);return{reduce:(e,t)=>r(e,t),add:(e,n)=>{e&&"string"==typeof e?t[e]?console.warn(`Reducer with key '${e}' already exists`):(t[e]=n,r=s(t)):console.warn("Invalid reducer key provided")},remove:e=>{e&&t[e]?(delete t[e],r=s(t)):console.warn(`Reducer with key '${e}' does not exist`)},getReducerMap:()=>({...t})}},inject:o,create:i,getEntityName:()=>e,getAdapter:()=>n}},e.StateFactory=oi,e.ThunkFactory=Zo,e}({});
10
+ */function wa(){return ga||(ga=1,function(e,t){"production"!==process.env.NODE_ENV&&function(){function r(e,t){Object.defineProperty(o.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}function n(e,t){var r=(e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass")+"."+t;z[r]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),z[r]=!0)}function o(e,t,r){this.props=e,this.context=t,this.refs=K,this.updater=r||B}function i(){}function a(e,t,r){this.props=e,this.context=t,this.refs=K,this.updater=r||B}function s(e){return""+e}function c(e){try{s(e);var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,n="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),s(e)}}function u(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===X?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case I:return"Profiler";case N:return"StrictMode";case F:return"Suspense";case M:return"SuspenseList";case $:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case k:return"Portal";case D:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U:return null!==(t=e.displayName||null)?t:u(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return u(e(t))}catch(e){}}return null}function l(e){if(e===C)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===L)return"<...>";try{var t=u(e);return t?"<"+t+">":"<...>"}catch(e){return"<...>"}}function f(){var e=Z.A;return null===e?null:e.getOwner()}function d(){return Error("react-stack-top-frame")}function p(e){if(ee.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function y(){var e=u(this.type);return re[e]||(re[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function h(e,t,r,n,o,i,a,s){return r=i.ref,e={$$typeof:j,type:e,key:t,props:i,_owner:o},null!==(void 0!==r?r:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:y}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function m(e){return"object"==typeof e&&null!==e&&e.$$typeof===j}function g(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(c(e.key),r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var r,n}function b(){}function v(e,t,r,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a,s,u,l=!1;if(null===e)l=!0;else switch(i){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case j:case k:l=!0;break;case L:return v((l=e._init)(e._payload),t,r,n,o)}}if(l){o=o(l=e);var f=""===n?"."+g(l,0):n;return Y(o)?(r="",null!=f&&(r=f.replace(ae,"$&/")+"/"),v(o,t,r,"",function(e){return e})):null!=o&&(m(o)&&(null!=o.key&&(l&&l.key===o.key||c(o.key)),a=o,s=r+(null==o.key||l&&l.key===o.key?"":(""+o.key).replace(ae,"$&/")+"/")+f,s=h(a.type,s,void 0,0,a._owner,a.props,a._debugStack,a._debugTask),a._store&&(s._store.validated=a._store.validated),r=s,""!==n&&null!=l&&m(l)&&null==l.key&&l._store&&!l._store.validated&&(r._store.validated=2),o=r),t.push(o)),1}if(l=0,f=""===n?".":n+":",Y(e))for(var d=0;d<e.length;d++)l+=v(n=e[d],t,r,i=f+g(n,d),o);else if("function"==typeof(d=null===(u=e)||"object"!=typeof u?null:"function"==typeof(u=Q&&u[Q]||u["@@iterator"])?u:null))for(d===e.entries&&(ie||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ie=!0),e=d.call(e),d=0;!(n=e.next()).done;)l+=v(n=n.value,t,r,i=f+g(n,d++),o);else if("object"===i){if("function"==typeof e.then)return v(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(b,b):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,r,n,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function w(e,t,r){if(null==e)return e;var n=[],o=0;return v(e,n,"","",function(e){return t.call(r,e,o++)}),n}function E(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return void 0===(t=e._result)&&console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",t),"default"in t||console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t),t.default;throw e._result}function S(){var e=Z.H;return null===e&&console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}function O(){}function _(t){if(null===ue)try{var r=("require"+Math.random()).slice(0,7);ue=(e&&e[r]).call(e,"timers").setImmediate}catch(e){ue=function(e){!1===ce&&(ce=!0,"undefined"==typeof MessageChannel&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return ue(t)}function A(e){return 1<e.length&&"function"==typeof AggregateError?new AggregateError(e):e[0]}function T(e,t){t!==le-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),le=t}function R(e,t,r){var n=Z.actQueue;if(null!==n)if(0!==n.length)try{return P(n),void _(function(){return R(e,t,r)})}catch(e){Z.thrownErrors.push(e)}else Z.actQueue=null;0<Z.thrownErrors.length?(n=A(Z.thrownErrors),Z.thrownErrors.length=0,r(n)):t(e)}function P(e){if(!de){de=!0;var t=0;try{for(;t<e.length;t++)for(var r=e[t];;){Z.didUsePromise=!1;var n=r(!1);if(null===n)break;if(Z.didUsePromise)return e[t]=r,void e.splice(0,t);r=n}e.length=0}catch(r){e.splice(0,t+1),Z.thrownErrors.push(r)}finally{de=!1}}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var j=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),D=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),Q=Symbol.iterator,z={},B={isMounted:function(){return!1},enqueueForceUpdate:function(e){n(e,"forceUpdate")},enqueueReplaceState:function(e){n(e,"replaceState")},enqueueSetState:function(e){n(e,"setState")}},V=Object.assign,K={};Object.freeze(K),o.prototype.isReactComponent={},o.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var H,W={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(H in W)W.hasOwnProperty(H)&&r(H,W[H]);i.prototype=o.prototype,(W=a.prototype=new i).constructor=a,V(W,o.prototype),W.isPureReactComponent=!0;var G,J,Y=Array.isArray,X=Symbol.for("react.client.reference"),Z={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ee=Object.prototype.hasOwnProperty,te=console.createTask?console.createTask:function(){return null},re={},ne=(W={"react-stack-bottom-frame":function(e){return e()}})["react-stack-bottom-frame"].bind(W,d)(),oe=te(l(d)),ie=!1,ae=/\/+/g,se="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},ce=!1,ue=null,le=0,fe=!1,de=!1,pe="function"==typeof queueMicrotask?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:_;W=Object.freeze({__proto__:null,c:function(e){return S().useMemoCache(e)}}),t.Children={map:w,forEach:function(e,t,r){w(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return w(e,function(){t++}),t},toArray:function(e){return w(e,function(e){return e})||[]},only:function(e){if(!m(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=o,t.Fragment=C,t.Profiler=I,t.PureComponent=a,t.StrictMode=N,t.Suspense=F,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,t.__COMPILER_RUNTIME=W,t.act=function(e){var t=Z.actQueue,r=le;le++;var n=Z.actQueue=null!==t?t:[],o=!1;try{var i=e()}catch(e){Z.thrownErrors.push(e)}if(0<Z.thrownErrors.length)throw T(0,r),e=A(Z.thrownErrors),Z.thrownErrors.length=0,e;if(null!==i&&"object"==typeof i&&"function"==typeof i.then){var a=i;return pe(function(){o||fe||(fe=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(e,t){o=!0,a.then(function(o){if(T(0,r),0===r){try{P(n),_(function(){return R(o,e,t)})}catch(e){Z.thrownErrors.push(e)}if(0<Z.thrownErrors.length){var i=A(Z.thrownErrors);Z.thrownErrors.length=0,t(i)}}else e(o)},function(e){T(0,r),0<Z.thrownErrors.length?(e=A(Z.thrownErrors),Z.thrownErrors.length=0,t(e)):t(e)})}}}var s=i;if(T(0,r),0===r&&(P(n),0!==n.length&&pe(function(){o||fe||(fe=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Z.actQueue=null),0<Z.thrownErrors.length)throw e=A(Z.thrownErrors),Z.thrownErrors.length=0,e;return{then:function(e,t){o=!0,0===r?(Z.actQueue=n,_(function(){return R(s,e,t)})):e(s)}}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.captureOwnerStack=function(){var e=Z.getCurrentStack;return null===e?null:e()},t.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n,o=V({},e.props),i=e.key,a=e._owner;if(null!=t)for(s in(n=!(ee.call(t,"ref")&&(n=Object.getOwnPropertyDescriptor(t,"ref").get)&&n.isReactWarning)&&void 0!==t.ref)&&(a=f()),p(t)&&(c(t.key),i=""+t.key),t)!ee.call(t,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===t.ref||(o[s]=t[s]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){n=Array(s);for(var u=0;u<s;u++)n[u]=arguments[u+2];o.children=n}for(o=h(e.type,i,void 0,0,a,o,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)m(a=arguments[i])&&a._store&&(a._store.validated=1);return o},t.createContext=function(e){return(e={$$typeof:D,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:x,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},t.createElement=function(e,t,r){for(var n=2;n<arguments.length;n++){var o=arguments[n];m(o)&&o._store&&(o._store.validated=1)}if(n={},o=null,null!=t)for(u in J||!("__self"in t)||"key"in t||(J=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),p(t)&&(c(t.key),o=""+t.key),t)ee.call(t,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&(n[u]=t[u]);var i=arguments.length-2;if(1===i)n.children=r;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];Object.freeze&&Object.freeze(a),n.children=a}if(e&&e.defaultProps)for(u in i=e.defaultProps)void 0===n[u]&&(n[u]=i[u]);o&&function(e,t){function r(){G||(G=!0,console.error("%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://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(n,"function"==typeof e?e.displayName||e.name||"Unknown":e);var u=1e4>Z.recentlyCreatedOwnerStacks++;return h(e,o,void 0,0,f(),n,u?Error("react-stack-top-frame"):ne,u?te(l(e)):oe)},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===U?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?console.error("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&null!=e.defaultProps&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var t,r={$$typeof:q,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(Object.defineProperty(e,"name",{value:r}),e.displayName=r)}}),r},t.isValidElement=m,t.lazy=function(e){return{$$typeof:L,_payload:{_status:-1,_result:e},_init:E}},t.memo=function(e,t){var r;return null==e&&console.error("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),t={$$typeof:U,type:e,compare:void 0===t?null:t},Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},t.startTransition=function(e){var t=Z.T,r={};Z.T=r,r._updatedFibers=new Set;try{var n=e(),o=Z.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(O,se)}catch(e){se(e)}finally{null===t&&r._updatedFibers&&(e=r._updatedFibers.size,r._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),Z.T=t}},t.unstable_useCacheRefresh=function(){return S().useCacheRefresh()},t.use=function(e){return S().use(e)},t.useActionState=function(e,t,r){return S().useActionState(e,t,r)},t.useCallback=function(e,t){return S().useCallback(e,t)},t.useContext=function(e){var t=S();return e.$$typeof===x&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),t.useContext(e)},t.useDebugValue=function(e,t){return S().useDebugValue(e,t)},t.useDeferredValue=function(e,t){return S().useDeferredValue(e,t)},t.useEffect=function(e,t,r){null==e&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var n=S();if("function"==typeof r)throw Error("useEffect CRUD overload is not enabled in this build of React.");return n.useEffect(e,t)},t.useId=function(){return S().useId()},t.useImperativeHandle=function(e,t,r){return S().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return null==e&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),S().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return null==e&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),S().useLayoutEffect(e,t)},t.useMemo=function(e,t){return S().useMemo(e,t)},t.useOptimistic=function(e,t){return S().useOptimistic(e,t)},t.useReducer=function(e,t,r){return S().useReducer(e,t,r)},t.useRef=function(e){return S().useRef(e)},t.useState=function(e){return S().useState(e)},t.useSyncExternalStore=function(e,t,r){return S().useSyncExternalStore(e,t,r)},t.useTransition=function(){return S().useTransition()},t.version="19.1.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(va,va.exports)),va.exports}function Ea(){return ba||(ba=1,"production"===process.env.NODE_ENV?ha.exports=function(){if(ya)return ma;ya=1;var e=Symbol.for("react.transitional.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.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),f=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,y={};function h(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||d}function m(){}function g(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||d}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=h.prototype;var b=g.prototype=new m;b.constructor=g,p(b,h.prototype),b.isPureReactComponent=!0;var v=Array.isArray,w={H:null,A:null,T:null,S:null,V:null},E=Object.prototype.hasOwnProperty;function S(t,r,n,o,i,a){return n=a.ref,{$$typeof:e,type:t,key:r,ref:void 0!==n?n:null,props:a}}function O(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var _=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var r,n}function T(){}function R(r,n,o,i,a){var s=typeof r;"undefined"!==s&&"boolean"!==s||(r=null);var c,u,d=!1;if(null===r)d=!0;else switch(s){case"bigint":case"string":case"number":d=!0;break;case"object":switch(r.$$typeof){case e:case t:d=!0;break;case l:return R((d=r._init)(r._payload),n,o,i,a)}}if(d)return a=a(r),d=""===i?"."+A(r,0):i,v(a)?(o="",null!=d&&(o=d.replace(_,"$&/")+"/"),R(a,n,o,"",function(e){return e})):null!=a&&(O(a)&&(c=a,u=o+(null==a.key||r&&r.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+d,a=S(c.type,u,void 0,0,0,c.props)),n.push(a)),1;d=0;var p,y=""===i?".":i+":";if(v(r))for(var h=0;h<r.length;h++)d+=R(i=r[h],n,o,s=y+A(i,h),a);else if("function"==typeof(h=null===(p=r)||"object"!=typeof p?null:"function"==typeof(p=f&&p[f]||p["@@iterator"])?p:null))for(r=h.call(r),h=0;!(i=r.next()).done;)d+=R(i=i.value,n,o,s=y+A(i,h++),a);else if("object"===s){if("function"==typeof r.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(T,T):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(r),n,o,i,a);throw n=String(r),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(r).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return d}function P(e,t,r){if(null==e)return e;var n=[],o=0;return R(e,n,"","",function(e){return t.call(r,e,o++)}),n}function j(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var k="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function C(){}return ma.Children={map:P,forEach:function(e,t,r){P(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},ma.Component=h,ma.Fragment=r,ma.Profiler=o,ma.PureComponent=g,ma.StrictMode=n,ma.Suspense=c,ma.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,ma.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},ma.cache=function(e){return function(){return e.apply(null,arguments)}},ma.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=p({},e.props),o=e.key;if(null!=t)for(i in t.ref,void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(n[i]=t[i]);var i=arguments.length-2;if(1===i)n.children=r;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];n.children=a}return S(e.type,o,void 0,0,0,n)},ma.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},ma.createElement=function(e,t,r){var n,o={},i=null;if(null!=t)for(n in void 0!==t.key&&(i=""+t.key),t)E.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(o[n]=t[n]);var a=arguments.length-2;if(1===a)o.children=r;else if(1<a){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===o[n]&&(o[n]=a[n]);return S(e,i,void 0,0,0,o)},ma.createRef=function(){return{current:null}},ma.forwardRef=function(e){return{$$typeof:s,render:e}},ma.isValidElement=O,ma.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:j}},ma.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},ma.startTransition=function(e){var t=w.T,r={};w.T=r;try{var n=e(),o=w.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(C,k)}catch(e){k(e)}finally{w.T=t}},ma.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},ma.use=function(e){return w.H.use(e)},ma.useActionState=function(e,t,r){return w.H.useActionState(e,t,r)},ma.useCallback=function(e,t){return w.H.useCallback(e,t)},ma.useContext=function(e){return w.H.useContext(e)},ma.useDebugValue=function(){},ma.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},ma.useEffect=function(e,t,r){var n=w.H;if("function"==typeof r)throw Error("useEffect CRUD overload is not enabled in this build of React.");return n.useEffect(e,t)},ma.useId=function(){return w.H.useId()},ma.useImperativeHandle=function(e,t,r){return w.H.useImperativeHandle(e,t,r)},ma.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},ma.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},ma.useMemo=function(e,t){return w.H.useMemo(e,t)},ma.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},ma.useReducer=function(e,t,r){return w.H.useReducer(e,t,r)},ma.useRef=function(e){return w.H.useRef(e)},ma.useState=function(e){return w.H.useState(e)},ma.useSyncExternalStore=function(e,t,r){return w.H.useSyncExternalStore(e,t,r)},ma.useTransition=function(){return w.H.useTransition()},ma.version="19.1.0",ma}():ha.exports=wa()),ha.exports}var Sa,Oa,_a,Aa=Ea(),Ta={exports:{}},Ra={},Pa={},ja=(_a||(_a=1,"production"===process.env.NODE_ENV?Ta.exports=function(){if(Sa)return Ra;Sa=1;var e=Ea(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useSyncExternalStore,n=e.useRef,o=e.useEffect,i=e.useMemo,a=e.useDebugValue;return Ra.useSyncExternalStoreWithSelector=function(e,s,c,u,l){var f=n(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i(function(){function e(e){if(!o){if(o=!0,r=e,e=u(e),void 0!==l&&d.hasValue){var i=d.value;if(l(i,e))return n=i}return n=e}if(i=n,t(r,e))return i;var a=u(e);return void 0!==l&&l(i,a)?(r=e,i):(r=e,n=a)}var r,n,o=!1,i=void 0===c?null:c;return[function(){return e(s())},null===i?void 0:function(){return e(i())}]},[s,c,u,l]);var p=r(e,f[0],f[1]);return o(function(){d.hasValue=!0,d.value=p},[p]),a(p),p},Ra}():Ta.exports=(Oa||(Oa=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=Ea(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useSyncExternalStore,n=e.useRef,o=e.useEffect,i=e.useMemo,a=e.useDebugValue;Pa.useSyncExternalStoreWithSelector=function(e,s,c,u,l){var f=n(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i(function(){function e(e){if(!o){if(o=!0,r=e,e=u(e),void 0!==l&&d.hasValue){var i=d.value;if(l(i,e))return n=i}return n=e}if(i=n,t(r,e))return i;var a=u(e);return void 0!==l&&l(i,a)?(r=e,i):(r=e,n=a)}var r,n,o=!1,i=void 0===c?null:c;return[function(){return e(s())},null===i?void 0:function(){return e(i())}]},[s,c,u,l]);var p=r(e,f[0],f[1]);return o(function(){d.hasValue=!0,d.value=p},[p]),a(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Pa)),Ta.exports);function ka(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ca(e,t){if(ka(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!ka(e[r[n]],t[r[n]]))return!1;return!0}var Na=Symbol.for("react-redux-context"),Ia="undefined"!=typeof globalThis?globalThis:{};var xa=function(){if(!Aa.createContext)return{};const e=Ia[Na]??=new Map;let t=e.get(Aa.createContext);return t||(t=Aa.createContext(null),"production"!==process.env.NODE_ENV&&(t.displayName="ReactRedux"),e.set(Aa.createContext,t)),t}();function Da(e=xa){return function(){const t=Aa.useContext(e);if("production"!==process.env.NODE_ENV&&!t)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return t}}var qa=Da();function Fa(e=xa){const t=e===xa?qa:Da(e),r=()=>{const{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var Ma=Fa();var Ua=function(e=xa){const t=e===xa?Ma:Fa(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}(),La=(e,t)=>e===t;var $a=function(e=xa){const t=e===xa?qa:Da(e),r=(e,r={})=>{const{equalityFn:n=La}="function"==typeof r?{equalityFn:r}:r;if("production"!==process.env.NODE_ENV){if(!e)throw new Error("You must pass a selector to useSelector");if("function"!=typeof e)throw new Error("You must pass a function as a selector to useSelector");if("function"!=typeof n)throw new Error("You must pass a function as an equality function to useSelector")}const o=t(),{store:i,subscription:a,getServerState:s}=o,c=Aa.useRef(!0),u=Aa.useCallback({[e.name](t){const i=e(t);if("production"!==process.env.NODE_ENV){const{devModeChecks:a={}}="function"==typeof r?{}:r,{identityFunctionCheck:s,stabilityCheck:u}=o,{identityFunctionCheck:l,stabilityCheck:f}={stabilityCheck:u,identityFunctionCheck:s,...a};if("always"===f||"once"===f&&c.current){const r=e(t);if(!n(i,r)){let n;try{throw new Error}catch(e){({stack:n}=e)}console.warn("Selector "+(e.name||"unknown")+" returned a different result when called with the same parameters. This can lead to unnecessary rerenders.\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization",{state:t,selected:i,selected2:r,stack:n})}}if(("always"===l||"once"===l&&c.current)&&i===t){let t;try{throw new Error}catch(e){({stack:t}=e)}console.warn("Selector "+(e.name||"unknown")+" returned the root state when called. This can lead to unnecessary rerenders.\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.",{stack:t})}c.current&&(c.current=!1)}return i}}[e.name],[e]),l=ja.useSyncExternalStoreWithSelector(a.addNestedSub,i.getState,s||i.getState,u,n);return Aa.useDebugValue(l),l};return Object.assign(r,{withTypes:()=>r}),r}(),Qa=function(e){e()};function za(e){return e.replace(e[0],e[0].toUpperCase())}function Ba(e){let t=0;for(const r in e)t++;return t}function Va(e){return"infinitequery"===e.type}function Ka(e,...t){return Object.assign(e,...t)}var Ha=Symbol();function Wa(e,t,r,n){const o=Aa.useMemo(()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),i=Aa.useRef(o);return Aa.useEffect(()=>{i.current.serialized!==o.serialized&&(i.current=o)},[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function Ga(e){const t=Aa.useRef(e);return Aa.useEffect(()=>{Ca(t.current,e)||(t.current=e)},[e]),Ca(t.current,e)?t.current:e}var Ja=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ya="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Xa=Ja||Ya?Aa.useLayoutEffect:Aa.useEffect,Za=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:hi.pending}:e;function es(e,...t){const r={};return t.forEach(t=>{r[t]=e[t]}),r}var ts=["data","status","isLoading","isSuccess","isError","error"],rs=Symbol(),ns=function(...e){return function(t){const r=fe(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),n={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:r,serializeQueryArgs(e){let r=ra;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;r=e=>{const r=t(e);return"string"==typeof r?r:ra({...e,queryArgs:r})}}else t.serializeQueryArgs&&(r=t.serializeQueryArgs);return r(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:Ie(),extractRehydrationInfo:r,hasRehydrationInfo:fe(e=>null!=r(e))},i={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"}),infiniteQuery:e=>({...e,type:"infinitequery"})});for(const[r,n]of Object.entries(t))if(!0!==e.overrideExisting&&r in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error("production"===process.env.NODE_ENV?tt(39):`called \`injectEndpoints\` to override already-existing endpointName ${r} without specifying \`overrideExisting: true\``);"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&console.error(`called \`injectEndpoints\` to override already-existing endpointName ${r} without specifying \`overrideExisting: true\``)}else{if("undefined"!=typeof process&&"development"===process.env.NODE_ENV&&Ii(n)){const{infiniteQueryOptions:e}=n,{maxPages:t,getPreviousPageParam:o}=e;if("number"==typeof t){if(t<1)throw new Error("production"===process.env.NODE_ENV?tt(40):`maxPages for endpoint '${r}' must be a number greater than 0`);if("function"!=typeof o)throw new Error("production"===process.env.NODE_ENV?tt(41):`getPreviousPageParam for endpoint '${r}' must be a function if maxPages is used`)}}o.endpointDefinitions[r]=n;for(const e of a)e.injectEndpoint(r,n)}return i},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)n.tagTypes.includes(t)||n.tagTypes.push(t);if(t)for(const[e,r]of Object.entries(t))"function"==typeof r?r(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},r);return i}},a=e.map(e=>e.init(i,n,o));return i.injectEndpoints({endpoints:t.endpoints})}}(pa(),(({batch:e=Qa,hooks:t={useDispatch:Ua,useSelector:$a,useStore:Ma},createSelector:r=pe,unstable__sideEffectsInRender:n=!1,...o}={})=>{if("production"!==process.env.NODE_ENV){const e=["useDispatch","useSelector","useStore"];let r=!1;for(const n of e)if(Ba(o)>0&&(o[n]&&(r||(console.warn("As of RTK 2.0, the hooks now need to be specified as one object, provided under a `hooks` key:\n`reactHooksModule({ hooks: { useDispatch, useSelector, useStore } })`"),r=!0)),t[n]=o[n]),"function"!=typeof t[n])throw new Error("production"===process.env.NODE_ENV?tt(36):`When using custom hooks for context, all ${e.length} hooks need to be provided: ${e.join(", ")}.\nHook ${n} was either not provided or not a function.`)}return{name:rs,init(o,{serializeQueryArgs:i},a){const s=o,{buildQueryHooks:c,buildInfiniteQueryHooks:u,buildMutationHook:l,usePrefetch:f}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:o},unstable__sideEffectsInRender:i,createSelector:a},serializeQueryArgs:s,context:c}){const u=i?e=>e():Aa.useEffect;return{buildQueryHooks:function(n){const o=(e,t={})=>{const[r]=d(n,e,t);return y(r),Aa.useMemo(()=>({refetch:()=>h(r)}),[r])},i=({refetchOnReconnect:o,refetchOnFocus:i,pollingInterval:a=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:c}=e.endpoints[n],l=r(),[f,d]=Aa.useState(Ha),p=Aa.useRef(void 0),y=Ga({refetchOnReconnect:o,refetchOnFocus:i,pollingInterval:a,skipPollingIfUnfocused:s});u(()=>{const e=p.current?.subscriptionOptions;y!==e&&p.current?.updateSubscriptionOptions(y)},[y]);const h=Aa.useRef(y);u(()=>{h.current=y},[y]);const m=Aa.useCallback(function(e,r=!1){let n;return t(()=>{p.current?.unsubscribe(),p.current=n=l(c(e,{subscriptionOptions:h.current,forceRefetch:!r})),d(e)}),n},[l,c]),g=Aa.useCallback(()=>{p.current?.queryCacheKey&&l(e.internalActions.removeQueryResult({queryCacheKey:p.current?.queryCacheKey}))},[l]);return Aa.useEffect(()=>()=>{p?.current?.unsubscribe()},[]),Aa.useEffect(()=>{f===Ha||p.current||m(f,!0)},[f,m]),Aa.useMemo(()=>[m,f,{reset:g}],[m,f,g])},a=p(n,l);return{useQueryState:a,useQuerySubscription:o,useLazyQuerySubscription:i,useLazyQuery(e){const[t,r,{reset:n}]=i(e),o=a(r,{...e,skip:r===Ha}),s=Aa.useMemo(()=>({lastArg:r}),[r]);return Aa.useMemo(()=>[t,{...o,reset:n},s],[t,o,n,s])},useQuery(e,t){const r=o(e,t),n=a(e,{selectFromResult:e===Yi||t?.skip?void 0:Za,...t}),i=es(n,...ts);return Aa.useDebugValue(i),Aa.useMemo(()=>({...n,...r}),[n,r])}}},buildInfiniteQueryHooks:function(e){const r=(r,n={})=>{const[o,i,a,s]=d(e,r,n),l=Aa.useRef(s);u(()=>{l.current=s},[s]);const f=Aa.useCallback(function(e,r){let n;return t(()=>{o.current?.unsubscribe(),o.current=n=i(a(e,{subscriptionOptions:l.current,direction:r}))}),n},[o,i,a]);y(o);const p=Wa(n.skip?Yi:r,ra,c.endpointDefinitions[e],e),m=Aa.useCallback(()=>h(o),[o]);return Aa.useMemo(()=>({trigger:f,refetch:m,fetchNextPage:()=>f(p,"forward"),fetchPreviousPage:()=>f(p,"backward")}),[m,f,p])},n=p(e,f);return{useInfiniteQueryState:n,useInfiniteQuerySubscription:r,useInfiniteQuery(e,t){const{refetch:o,fetchNextPage:i,fetchPreviousPage:a}=r(e,t),s=n(e,{selectFromResult:e===Yi||t?.skip?void 0:Za,...t}),c=es(s,...ts,"hasNextPage","hasPreviousPage");return Aa.useDebugValue(c),Aa.useMemo(()=>({...s,fetchNextPage:i,fetchPreviousPage:a,refetch:o}),[s,i,a,o])}}},buildMutationHook:function(o){return({selectFromResult:i,fixedCacheKey:s}={})=>{const{select:c,initiate:u}=e.endpoints[o],l=r(),[f,d]=Aa.useState();Aa.useEffect(()=>()=>{f?.arg.fixedCacheKey||f?.reset()},[f]);const p=Aa.useCallback(function(e){const t=l(u(e,{fixedCacheKey:s}));return d(t),t},[l,u,s]),{requestId:y}=f||{},h=Aa.useMemo(()=>c({fixedCacheKey:s,requestId:f?.requestId}),[s,f,c]),m=Aa.useMemo(()=>i?a([h],i):h,[i,h]),g=n(m,Ca),b=null==s?f?.arg.originalArgs:void 0,v=Aa.useCallback(()=>{t(()=>{f&&d(void 0),s&&l(e.internalActions.removeMutationResult({requestId:y,fixedCacheKey:s}))})},[l,s,f,y]),w=es(g,...ts,"endpointName");Aa.useDebugValue(w);const E=Aa.useMemo(()=>({...g,originalArgs:b,reset:v}),[g,b,v]);return Aa.useMemo(()=>[p,E],[p,E])}},usePrefetch:function(t,n){const o=r(),i=Ga(n);return Aa.useCallback((r,n)=>o(e.util.prefetch(t,r,{...i,...n})),[t,o,i])}};function l(e,t,r){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,n=c.endpointDefinitions[e];r!==Yi&&s({queryArgs:t.originalArgs,endpointDefinition:n,endpointName:e})===s({queryArgs:r,endpointDefinition:n,endpointName:e})&&(t=void 0)}let n=e.isSuccess?e.data:t?.data;void 0===n&&(n=e.data);const o=void 0!==n,i=e.isLoading,a=(!t||t.isLoading||t.isUninitialized)&&!o&&i,u=e.isSuccess||o&&(i&&!t?.isError||e.isUninitialized);return{...e,data:n,currentData:e.data,isFetching:i,isLoading:a,isSuccess:u}}function f(e,t,r){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,n=c.endpointDefinitions[e];r!==Yi&&s({queryArgs:t.originalArgs,endpointDefinition:n,endpointName:e})===s({queryArgs:r,endpointDefinition:n,endpointName:e})&&(t=void 0)}let n=e.isSuccess?e.data:t?.data;void 0===n&&(n=e.data);const o=void 0!==n,i=e.isLoading,a=(!t||t.isLoading||t.isUninitialized)&&!o&&i,u=e.isSuccess||i&&o;return{...e,data:n,currentData:e.data,isFetching:i,isLoading:a,isSuccess:u}}function d(t,n,{refetchOnReconnect:o,refetchOnFocus:i,refetchOnMountOrArgChange:a,skip:s=!1,pollingInterval:l=0,skipPollingIfUnfocused:f=!1,...d}={}){const{initiate:p}=e.endpoints[t],y=r(),h=Aa.useRef(void 0);if(!h.current){const t=y(e.internalActions.internal_getRTKQSubscriptions());if("production"!==process.env.NODE_ENV&&("object"!=typeof t||"string"==typeof t?.type))throw new Error("production"===process.env.NODE_ENV?tt(37):`Warning: Middleware for RTK-Query API at reducerPath "${e.reducerPath}" has not been added to the store.\n You must add the middleware for RTK-Query to function correctly!`);h.current=t}const m=Wa(s?Yi:n,ra,c.endpointDefinitions[t],t),g=Ga({refetchOnReconnect:o,refetchOnFocus:i,pollingInterval:l,skipPollingIfUnfocused:f}),b=Ga(d.initialPageParam),v=Aa.useRef(void 0);let{queryCacheKey:w,requestId:E}=v.current||{},S=!1;w&&E&&(S=h.current.isRequestSubscribed(w,E));const O=!S&&void 0!==v.current;return u(()=>{O&&(v.current=void 0)},[O]),u(()=>{const e=v.current;if("undefined"!=typeof process&&"removeMeOnCompilation"===process.env.NODE_ENV&&console.log(O),m===Yi)return e?.unsubscribe(),void(v.current=void 0);const r=v.current?.subscriptionOptions;if(e&&e.arg===m)g!==r&&e.updateSubscriptionOptions(g);else{e?.unsubscribe();const r=y(p(m,{subscriptionOptions:g,forceRefetch:a,...Va(c.endpointDefinitions[t])?{initialPageParam:b}:{}}));v.current=r}},[y,p,a,m,g,O,b,t]),[v,y,p,g]}function p(t,r){return(i,{skip:u=!1,selectFromResult:l}={})=>{const{select:f}=e.endpoints[t],d=Wa(u?Yi:i,s,c.endpointDefinitions[t],t),p=Aa.useRef(void 0),y=Aa.useMemo(()=>a([f(d),(e,t)=>t,e=>d],r,{memoizeOptions:{resultEqualityCheck:Ca}}),[f,d]),h=Aa.useMemo(()=>l?a([y],l,{devModeChecks:{identityFunctionCheck:"never"}}):y,[y,l]),m=n(e=>h(e,p.current),Ca),g=o(),b=y(g.getState(),p.current);return Xa(()=>{p.current=b},[b]),m}}function y(e){Aa.useEffect(()=>()=>{e.current?.unsubscribe?.(),e.current=void 0},[e])}function h(e){if(!e.current)throw new Error("production"===process.env.NODE_ENV?tt(38):"Cannot refetch a query that has not been started yet.");return e.current.refetch()}}({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:i,context:a});return Ka(s,{usePrefetch:f}),Ka(a,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:r,useLazyQuerySubscription:n,useQueryState:i,useQuerySubscription:a}=c(e);Ka(s.endpoints[e],{useQuery:t,useLazyQuery:r,useLazyQuerySubscription:n,useQueryState:i,useQuerySubscription:a}),o[`use${za(e)}Query`]=t,o[`useLazy${za(e)}Query`]=r}if(function(e){return"mutation"===e.type}(t)){const t=l(e);Ka(s.endpoints[e],{useMutation:t}),o[`use${za(e)}Mutation`]=t}else if(Va(t)){const{useInfiniteQuery:t,useInfiniteQuerySubscription:r,useInfiniteQueryState:n}=u(e);Ka(s.endpoints[e],{useInfiniteQuery:t,useInfiniteQuerySubscription:r,useInfiniteQueryState:n}),o[`use${za(e)}InfiniteQuery`]=t}}}}}})());const os={baseUrl:process.env.REACT_APP_API_BASE_URL||"http://localhost:4000/fear/api/",timeout:3e4,credentials:"include",prepareHeaders:(e,{getState:t})=>{e.set("Content-Type","application/json");const r=t()?.auth?.token;return r&&e.set("Authorization",`Bearer ${r}`),e}},is={GET:"GET",POST:"POST",PUT:"PUT",PATCH:"PATCH",DELETE:"DELETE"},as={getAll:{method:is.GET,url:e=>`${e}/all`,providesTags:e=>[{type:e,id:"LIST"}]},getById:{method:is.GET,url:(e,t)=>`${e}/${t}`,providesTags:(e,t)=>[{type:e,id:t}]},create:{method:is.POST,url:e=>`${e}`,invalidatesTags:e=>[{type:e,id:"LIST"}]},update:{method:is.PUT,url:(e,t)=>`${e}/${t}`,invalidatesTags:(e,t)=>[{type:e,id:t},{type:e,id:"LIST"}]},patch:{method:is.PATCH,url:(e,t)=>`${e}/${t}`,invalidatesTags:(e,t)=>[{type:e,id:t},{type:e,id:"LIST"}]},delete:{method:is.DELETE,url:(e,t)=>`${e}/${t}`,invalidatesTags:(e,t)=>[{type:e,id:t},{type:e,id:"LIST"}]},search:{method:is.GET,url:e=>`${e}/search`,providesTags:e=>[{type:e,id:"SEARCH"}]}},ss=e=>e.status?{status:e.status,message:e.data?.message||`HTTP Error ${e.status}`,data:e.data}:{status:"FETCH_ERROR",message:e.message||"Network error occurred",error:e.error},cs=(e,t,r={})=>{const{method:n,url:o}=e;let i={method:n,url:"function"==typeof o?o(t,r.id,r):o};return n!==is.GET&&n!==is.DELETE&&(i.body=r.data||r),n===is.GET&&r.params&&(i.params=r.params),i},us=(e,t={})=>{(e=>{if(!e||"string"!=typeof e)throw new Error("SliceName must be a non-empty string")})(e);const r={tagTypes:["Product","Order","User","Category"],baseQuery:{},includeStandardEndpoints:!0,...t},n=(o=e).charAt(0).toUpperCase()+o.slice(1);var o;r.tagTypes.includes(n)||r.tagTypes.push(n);const i={...os,...r.baseQuery},a=ns({reducerPath:`${e}Api`,tagTypes:r.tagTypes,baseQuery:Ti(i),endpoints:()=>({})}),s=(t,r)=>{const{method:n=is.GET,url:o,type:i=(n===is.GET?"query":"mutation"),providesTags:s,invalidatesTags:c,transformResponse:u,transformErrorResponse:l=ss}=r;return a.injectEndpoints({endpoints:r=>({[t]:r[i]({query:(t={})=>cs({method:n,url:o},e,t),providesTags:s?(t,r,n)=>s(e,n?.id,t,r,n):void 0,invalidatesTags:c?(t,r,n)=>c(e,n?.id,t,r,n):void 0,transformResponse:u,transformErrorResponse:l})})})},c=t=>a.injectEndpoints({endpoints:r=>{const n={};return Object.entries(t).forEach(([t,o])=>{const{method:i=is.GET,url:a,type:s=(i===is.GET?"query":"mutation"),providesTags:c,invalidatesTags:u,transformResponse:l,transformErrorResponse:f=ss}=o;n[t]=r[s]({query:(t={})=>cs({method:i,url:a},e,t),providesTags:c?(t,r,n)=>c(e,n?.id,t,r,n):void 0,invalidatesTags:u?(t,r,n)=>u(e,n?.id,t,r,n):void 0,transformResponse:l,transformErrorResponse:f})}),n}}),u=()=>{const e={};return Object.entries(as).forEach(([t,r])=>{e[t]={method:r.method,url:r.url,providesTags:r.providesTags,invalidatesTags:r.invalidatesTags}}),c(e)};return{sliceName:e,entityTagType:n,baseApi:a,inject:s,injectMany:c,create:()=>{let e=a;return r.includeStandardEndpoints&&(e=u()),e},createStandard:u,createBulk:()=>{const t={bulkCreate:{method:is.POST,url:`${e}/bulk`,invalidatesTags:()=>[{type:n,id:"LIST"}]},bulkUpdate:{method:is.PUT,url:`${e}/bulk`,invalidatesTags:()=>[{type:n,id:"LIST"}]},bulkDelete:{method:is.DELETE,url:`${e}/bulk`,invalidatesTags:()=>[{type:n,id:"LIST"}]}};return c(t)},createCustom:(e,t)=>s(e,t),getTagTypes:()=>[...r.tagTypes],getBaseUrl:()=>i.baseUrl,getReducerPath:()=>a.reducerPath,withAuth:t=>us(e,{...r,baseQuery:{...i,prepareHeaders:(e,r)=>(e.set("Authorization",`Bearer ${t}`),os.prepareHeaders(e,r))}}),withBaseUrl:t=>us(e,{...r,baseQuery:{...i,baseUrl:t}})}};return us.createComplete=(e,t={})=>us(e,t).create(),us.createCustom=(e,t,r={})=>us(e,{...r,includeStandardEndpoints:!1}).injectMany(t),us.getStandardEndpoints=()=>({...as}),us.getHttpMethods=()=>({...is}),e.ApiFactory=us,e.CacheFactory=Bo,e.FeatureFactory=function(e,t={},r=null){if(!e||"string"!=typeof e)throw new Error("Entity name must be provided as a string");const n=function(e={}){const{selectId:t,sortComparer:r}={sortComparer:!1,selectId:e=>e.id,...e},n=r?function(e,t){const{removeOne:r,removeMany:n,removeAll:o}=Ze(e);function i(t,r,n){t=Je(t);const o=new Set(n??Ye(r.ids)),i=t.filter(t=>!o.has(Ge(t,e)));0!==i.length&&u(r,i)}function a(t,r){if(0!==(t=Je(t)).length){for(const n of t)delete r.entities[e(n)];u(r,t)}}function s(t,r){let n=!1,o=!1;for(let i of t){const t=r.entities[i.id];if(!t)continue;n=!0,Object.assign(t,i.changes);const a=e(t);if(i.id!==a){o=!0,delete r.entities[i.id];const e=r.ids.indexOf(i.id);r.ids[e]=a,r.entities[a]=t}}n&&u(r,[],n,o)}function c(t,r){const[n,o,a]=Xe(t,e,r);n.length&&i(n,r,a),o.length&&s(o,r)}const u=(r,n,o,i)=>{const a=Ye(r.entities),s=Ye(r.ids),c=r.entities;let u=s;i&&(u=new Set(s));let l=[];for(const e of u){const t=a[e];t&&l.push(t)}const f=0===l.length;for(const r of n)c[e(r)]=r,f||et(l,r,t);f?l=n.slice().sort(t):o&&l.sort(t);const d=l.map(e);(function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0})(s,d)||(r.ids=d)};return{removeOne:r,removeMany:n,removeAll:o,addOne:We(function(e,t){return i([e],t)}),updateOne:We(function(e,t){return s([e],t)}),upsertOne:We(function(e,t){return c([e],t)}),setOne:We(function(e,t){return a([e],t)}),setMany:We(a),setAll:We(function(e,t){e=Je(e),t.entities={},t.ids=[],i(e,t,[])}),addMany:We(i),updateMany:We(s),upsertMany:We(c)}}(t,r):Ze(t),o=function(e){return{getInitialState:function(t={},r){const n=Object.assign({ids:[],entities:{}},t);return r?e.setAll(n,r):n}}}(n),i={getSelectors:function(e,t={}){const{createSelector:r=he}=t,n=e=>e.ids,o=e=>e.entities,i=r(n,o,(e,t)=>e.map(e=>t[e])),a=(e,t)=>t,s=(e,t)=>e[t],c=r(n,e=>e.length);if(!e)return{selectIds:n,selectEntities:o,selectAll:i,selectTotal:c,selectById:r(o,a,s)};const u=r(e,o);return{selectIds:r(e,n),selectEntities:u,selectAll:r(e,i),selectTotal:r(e,c),selectById:r(u,a,s)}}};return{selectId:t,sortComparer:r,...o,...i,...n}}(),o=(e,t)=>{if(!e||!t)throw new Error("Both source and destination objects must be provided");return Object.keys(e).reduce((t,r)=>(Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]),t),{...t})},i=(e,t,r)=>{Object.entries(t).forEach(([t,n])=>{e.addCase(n.pending,e=>{e.loading=!0,e.error=null}).addCase(n.fulfilled,(e,n)=>{e.loading=!1,e.success=!0,e.data=n.payload,("fetchOne"===t&&Array.isArray(n.payload)||Array.isArray(n.payload)&&n.payload.length>0)&&(e[r]=n.payload[0])}).addCase(n.rejected,(e,t)=>{e.loading=!1,e.success=!1,e.error=t.error||t.payload})})};return{entity:e,reducers:t,adapter:n,manager:(e={})=>{const t={...e};let r=s(t);return{reduce:(e,t)=>r(e,t),add:(e,n)=>{e&&"string"==typeof e?t[e]?console.warn(`Reducer with key '${e}' already exists`):(t[e]=n,r=s(t)):console.warn("Invalid reducer key provided")},remove:e=>{e&&t[e]?(delete t[e],r=s(t)):console.warn(`Reducer with key '${e}' does not exist`)},getReducerMap:()=>({...t})}},inject:o,create:(r={})=>{const{service:n=null,initialState:a=null}=r,s=e,c=(e=>({fetch:ci.create(e,"all"),fetchOne:ci.create(e,"one"),search:ci.create(e,"search")}))(s);return{slice:Be({name:s,initialState:a||pi(s),reducers:t,extraReducers:e=>{if(i(e,c,s),n&&"object"==typeof n){const t=Object.entries(n).reduce((e,[t,r])=>(c[t]||(e[t]=r),e),{});i(e,t,s)}}}),asyncActions:n?o(c,n):c}},getEntityName:()=>e,getAdapter:()=>n}},e.StateFactory=pi,e.ThunkFactory=ci,e}({});