@wellesley/auth 1.0.941 → 1.0.943

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.
Files changed (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var dU=Object.defineProperty,pU=(e,t,n)=>t in e?dU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mn=(e,t,n)=>pU(e,"symbol"!=typeof t?t+"":t,n);function hU(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function oz(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 Ix=()=>Math.random().toString(36).substring(7).split("").join("."),mU={INIT:`@@redux/INIT${Ix()}`,REPLACE:`@@redux/REPLACE${Ix()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ix()}`},fj=mU;function pp(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 gU(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:fj.INIT})>"u")throw new Error(oz(12));if(typeof n(void 0,{type:fj.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oz(13))}))}function WR(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}const r=Object.keys(n);let a;try{gU(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<r.length;a++){const s=r[a],c=n[s],l=e[s],u=c(l,t);if(typeof u>"u")throw t&&t.type,new Error(oz(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function FR(e){return pp(e)&&"type"in e&&"string"==typeof e.type}var B8=Symbol.for("immer-nothing"),Py=Symbol.for("immer-draftable"),Os=Symbol.for("immer-state");function lo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var em=Object.getPrototypeOf;function Zc(e){return!!e&&!!e[Os]}function Wc(e){var t;return!!e&&(UR(e)||Array.isArray(e)||!!e[Py]||!(null==(t=e.constructor)||!t[Py])||wv(e)||xv(e))}var yU=Object.prototype.constructor.toString();function UR(e){if(!e||"object"!=typeof e)return!1;const t=em(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===yU}function vU(e){return Zc(e)||lo(15,e),e[Os].base_}function y1(e,t){0===tm(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function tm(e){const t=e[Os];return t?t.type_:Array.isArray(e)?1:wv(e)?2:xv(e)?3:0}function Ly(e,t){return 2===tm(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Bx(e,t){return 2===tm(e)?e.get(t):e[t]}function VR(e,t,n){const r=tm(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function bU(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function wv(e){return e instanceof Map}function xv(e){return e instanceof Set}function Wh(e){return e.copy_||e.base_}function sz(e,t){if(wv(e))return new Map(e);if(xv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&UR(e))return em(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Os];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const a=r[t],o=n[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(em(e),n)}function X8(e,t=!1){return Sw(e)||Zc(e)||!Wc(e)||(tm(e)>1&&(e.set=e.add=e.clear=e.delete=wU),Object.freeze(e),t&&y1(e,((e,t)=>X8(t,!0)))),e}function wU(){lo(2)}function Sw(e){return Object.isFrozen(e)}var Iy,iz={};function nm(e){const t=iz[e];return t||lo(0,e),t}function xU(e,t){iz[e]||(iz[e]=t)}function QR(){return Iy}function PU(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function lj(e,t){t&&(nm("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function cz(e){fz(e),e.drafts_.forEach(kU),e.drafts_=null}function fz(e){e===Iy&&(Iy=e.parent_)}function uj(e){return Iy=PU(Iy,e)}function kU(e){const t=e[Os];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function dj(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Os].modified_&&(cz(t),lo(4)),Wc(e)&&(e=G3(t,e),t.parent_||L3(t,e)),t.patches_&&nm("Patches").generateReplacementPatches_(n[Os].base_,e,t.patches_,t.inversePatches_)):e=G3(t,n,[]),cz(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==B8?e:void 0}function G3(e,t,n){if(Sw(t))return t;const r=t[Os];if(!r)return y1(t,((a,o)=>pj(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return L3(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let a=t,o=!1;3===r.type_&&(a=new Set(t),t.clear(),o=!0),y1(a,((a,i)=>pj(e,r,t,a,i,n,o))),L3(e,t,!1),n&&e.patches_&&nm("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function pj(e,t,n,r,a,o,i){if(Zc(a)){const i=G3(e,a,o&&t&&3!==t.type_&&!Ly(t.assigned_,r)?o.concat(r):void 0);if(VR(n,r,i),!Zc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Wc(a)&&!Sw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;G3(e,a),(!t||!t.scope_.parent_)&&L3(e,a)}}function L3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&X8(t,n)}function zU(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:QR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=Y8;n&&(a=[r],o=By);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var Y8={get(e,t){if(t===Os)return e;const n=Wh(e);if(!Ly(n,t))return TU(e,n,t);const r=n[t];return e.finalized_||!Wc(r)?r:r===Xx(e.base_,t)?(Yx(e),e.copy_[t]=uz(r,e)):r},has:(e,t)=>t in Wh(e),ownKeys:e=>Reflect.ownKeys(Wh(e)),set(e,t,n){const r=qR(Wh(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Xx(Wh(e),t),a=null==r?void 0:r[Os];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(bU(n,r)&&(void 0!==n||Ly(e.base_,t)))return!0;Yx(e),lz(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Xx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Yx(e),lz(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Wh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){lo(11)},getPrototypeOf:e=>em(e.base_),setPrototypeOf(){lo(12)}},By={};function Xx(e,t){const n=e[Os];return(n?Wh(n):e)[t]}function TU(e,t,n){var r;const a=qR(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function qR(e,t){if(!(t in e))return;let n=em(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=em(n)}}function lz(e){e.modified_||(e.modified_=!0,e.parent_&&lz(e.parent_))}function Yx(e){e.copy_||(e.copy_=sz(e.base_,e.scope_.immer_.useStrictShallowCopy_))}y1(Y8,((e,t)=>{By[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),By.deleteProperty=function(e,t){return By.set.call(this,e,t,void 0)},By.set=function(e,t,n){return Y8.set.call(this,e[0],t,n,e[0])};var OU=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...a){return r.produce(e,(e=>t.call(this,e,...a)))}}let r;if("function"!=typeof t&&lo(6),void 0!==n&&"function"!=typeof n&&lo(7),Wc(e)){const a=uj(this),o=uz(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?cz(a):fz(a)}return lj(a,n),dj(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===B8&&(r=void 0),this.autoFreeze_&&X8(r,!0),n){const t=[],a=[];nm("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}lo(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Wc(e)||lo(8),Zc(e)&&(e=JR(e));const t=uj(this),n=uz(e,void 0);return n[Os].isManual_=!0,fz(t),n}finishDraft(e,t){const n=e&&e[Os];(!n||!n.isManual_)&&lo(9);const{scope_:r}=n;return lj(r,t),dj(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=nm("Patches").applyPatches_;return Zc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function uz(e,t){const n=wv(e)?nm("MapSet").proxyMap_(e,t):xv(e)?nm("MapSet").proxySet_(e,t):zU(e,t);return(t?t.scope_:QR()).drafts_.push(n),n}function JR(e){return Zc(e)||lo(10,e),KR(e)}function KR(e){if(!Wc(e)||Sw(e))return e;const t=e[Os];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=sz(e,t.scope_.immer_.useStrictShallowCopy_)}else n=sz(e,!0);return y1(n,((e,t)=>{VR(n,e,KR(t))})),t&&(t.finalized_=!1),n}function jU(){const e="replace",t="remove";function n(e){if(!Wc(e))return e;if(Array.isArray(e))return e.map(n);if(wv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(xv(e))return new Set(Array.from(e).map(n));const t=Object.create(em(e));for(const r in e)t[r]=n(e[r]);return Ly(e,Py)&&(t[Py]=e[Py]),t}function r(e){return Zc(e)?n(e):e}xU("Patches",{applyPatches_:function(r,a){return a.forEach((a=>{const{path:o,op:i}=a;let s=r;for(let e=0;e<o.length-1;e++){const t=tm(s);let n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&lo(19),"function"==typeof s&&"prototype"===n&&lo(19),s=Bx(s,n),"object"!=typeof s&&lo(18,o.join("/"))}const c=tm(s),l=n(a.value),u=o[o.length-1];switch(i){case e:switch(c){case 2:return s.set(u,l);case 3:lo(16);default:return s[u]=l}case"add":switch(c){case 1:return"-"===u?s.push(l):s.splice(u,0,l);case 2:return s.set(u,l);case 3:return s.add(l);default:return s[u]=l}case t:switch(c){case 1:return s.splice(u,1);case 2:return s.delete(u);case 3:return s.delete(a.value);default:return delete s[u]}default:lo(17,i)}})),r},generatePatches_:function(n,a,o,i){switch(n.type_){case 0:case 2:return function(n,a,o,i){const{base_:s,copy_:c}=n;y1(n.assigned_,((n,l)=>{const u=Bx(s,n),f=Bx(c,n),d=l?Ly(s,n)?e:"add":t;if(u===f&&d===e)return;const p=a.concat(n);o.push(d===t?{op:d,path:p}:{op:d,path:p,value:f}),i.push("add"===d?{op:t,path:p}:d===t?{op:"add",path:p,value:r(u)}:{op:e,path:p,value:r(u)})}))}(n,a,o,i);case 1:return function(n,a,o,i){let{base_:s,assigned_:c}=n,l=n.copy_;l.length<s.length&&([s,l]=[l,s],[o,i]=[i,o]);for(let t=0;t<s.length;t++)if(c[t]&&l[t]!==s[t]){const n=a.concat([t]);o.push({op:e,path:n,value:r(l[t])}),i.push({op:e,path:n,value:r(s[t])})}for(let e=s.length;e<l.length;e++){const t=a.concat([e]);o.push({op:"add",path:t,value:r(l[e])})}for(let e=l.length-1;s.length<=e;--e){const n=a.concat([e]);i.push({op:t,path:n})}}(n,a,o,i);case 3:return function(e,n,r,a){let{base_:o,copy_:i}=e,s=0;o.forEach((e=>{if(!i.has(e)){const o=n.concat([s]);r.push({op:t,path:o,value:e}),a.unshift({op:"add",path:o,value:e})}s++})),s=0,i.forEach((e=>{if(!o.has(e)){const o=n.concat([s]);r.push({op:"add",path:o,value:e}),a.unshift({op:t,path:o,value:e})}s++}))}(n,a,o,i)}},generateReplacementPatches_:function(t,n,r,a){r.push({op:e,path:[],value:n===B8?void 0:n}),a.push({op:e,path:[],value:t})}})}var ri=new OU,Pv=ri.produce,_R=ri.produceWithPatches.bind(ri);ri.setAutoFreeze.bind(ri),ri.setUseStrictShallowCopy.bind(ri);var hj=ri.applyPatches.bind(ri);function NU(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function MU(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function DU(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}ri.createDraft.bind(ri),ri.finishDraft.bind(ri);var mj=e=>Array.isArray(e)?e:[e];function HU(e){const t=Array.isArray(e[0])?e[0]:e;return DU(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function SU(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var AU=class{constructor(e){this.value=e}deref(){return this.value}},EU=typeof WeakRef<"u"?WeakRef:AU,RU=0,gj=1;function Nb(){return{s:RU,v:void 0,o:null,p:null}}function Xy(e,t={}){let n=Nb();const{resultEqualityCheck:r}=t;let a,o=0;function i(){var t;let i=n;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=Nb(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=Nb(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===gj?l=i.v:(l=e.apply(null,arguments),o++),c.s=gj,r){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&r(e,l)&&(l=e,0!==o&&o--),a="object"==typeof l&&null!==l||"function"==typeof l?new EU(l):l}return c.v=l,l}return i.clearCache=()=>{n=Nb(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function $R(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),NU(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=Xy,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=mj(l),h=mj(f),m=HU(e),v=c((function(){return r++,i.apply(null,arguments)}),...p),y=u((function(){a++;const e=SU(m,arguments);return t=v.apply(null,e),t}),...h);return Object.assign(y,{resultFunc:i,memoizedResultFunc:v,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var Ar=$R(Xy),CU=Object.assign(((e,t=Ar)=>{MU(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>CU}),GU=(...e)=>{const t=$R(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Zc(e)?JR(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};GU(Xy);var LU=e=>e&&"function"==typeof e.match;function wr(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(po(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>FR(t)&&t.type===e,n}function yj(e){return Wc(e)?Pv(e,(()=>{})):e}function dz(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(po(10));const r=n.insert(t,e);return e.set(t,r),r}var ly="RTK_autoBatch",Vg=()=>e=>({payload:e,meta:{[ly]:!0}});function eC(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(po(28));if(r in t)throw new Error(po(29));return t[r]=n,a},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function IU(e){return"function"==typeof e}function BU(e,t){let n,[r,a,o]=eC(t);if(IU(e))n=()=>yj(e());else{const t=yj(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,n)=>{if(n){if(Zc(e)){const r=n(e,t);return void 0===r?e:r}if(Wc(e))return Pv(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(po(9))}return r}}return e}),e)}return i.getInitialState=n,i}var XU="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Aw=(e=21)=>{let t="",n=e;for(;n--;)t+=XU[64*Math.random()|0];return t},tC=(e,t)=>LU(e)?e.match(t):e(t);function hp(...e){return t=>e.some((e=>tC(e,t)))}function ky(...e){return t=>e.every((e=>tC(e,t)))}function Ew(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function kv(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Z8(...e){return 0===e.length?e=>Ew(e,["pending"]):kv(e)?t=>hp(...e.map((e=>e.pending)))(t):Z8()(e[0])}function v1(...e){return 0===e.length?e=>Ew(e,["rejected"]):kv(e)?t=>hp(...e.map((e=>e.rejected)))(t):v1()(e[0])}function Rw(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||kv(e)?n=>ky(v1(...e),t)(n):Rw()(e[0])}function mp(...e){return 0===e.length?e=>Ew(e,["fulfilled"]):kv(e)?t=>hp(...e.map((e=>e.fulfilled)))(t):mp()(e[0])}function pz(...e){return 0===e.length?e=>Ew(e,["pending","fulfilled","rejected"]):kv(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return hp(...n)(t)}:pz()(e[0])}var YU=["name","message","stack","code"],Zx=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},vj=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},ZU=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of YU)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},bj=(()=>{function e(e,t,n){const r=wr(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=wr(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=wr(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||ZU)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,c)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):Aw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let v;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(FU(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(l,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.call(n,{requestId:l,arg:e},{getState:s,extra:c}))),v=await Promise.race([y,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Zx(e,t),fulfillWithValue:(e,t)=>new vj(e,t)})).then((t=>{if(t instanceof Zx)throw t;return t instanceof vj?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){v=t instanceof Zx?o(null,l,e,t.payload,t.meta):o(t,l,e)}finally{f&&u.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&o.match(v)&&v.meta.condition||i(v),v}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(WU)})}}),{pending:a,rejected:o,fulfilled:r,settled:hp(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function WU(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function FU(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var UU=Symbol.for("rtk-slice-createasyncthunk");function VU(e,t){return`${e}/${t}`}function QU({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[UU];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(po(11));const a=("function"==typeof e.reducers?e.reducers(JU()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(po(12));if(n in i.sliceCaseReducersByType)throw new Error(po(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?eC(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return BU(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=a[r],i={reducerName:r,type:VU(t,r),createNotation:"function"==typeof e.reducers};_U(o)?eV(i,o,s,n):KU(i,o,s)}));const l=e=>e,u=new Map;let f;function d(e,t){return f||(f=c()),f(e,t)}function p(){return f||(f=c()),f.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function a(t=l){const r=dz(u,n,{insert:()=>new WeakMap});return dz(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=qU(o,t,p,n);return r}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const m={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:d},n),{...m,...h(a,!0)}}};return m}}function qU(e,t,n,r){function a(a,...o){let i=t(a);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return a.unwrapped=e,a}var da=QU();function JU(){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}}function KU({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!$U(r))throw new Error(po(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?wr(e,i):wr(e))}function _U(e){return"asyncThunk"===e._reducerDefinitionType}function $U(e){return"reducerWithPrepare"===e._reducerDefinitionType}function eV({type:e,reducerName:t},n,r,a){if(!a)throw new Error(po(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:c,settled:l,options:u}=n,f=a(e,o,u);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),s&&r.addCase(f.pending,s),c&&r.addCase(f.rejected,c),l&&r.addMatcher(f.settled,l),r.exposeCaseReducer(t,{fulfilled:i||Mb,pending:s||Mb,rejected:c||Mb,settled:l||Mb})}function Mb(){}var tV=(e,t)=>{if("function"!=typeof e)throw new Error(po(32))},W8="listenerMiddleware",nV=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=wr(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(po(21));return tV(o),{predicate:a,type:t,effect:o}},rV=Object.assign((e=>{const{type:t,predicate:n,effect:r}=nV(e);return{id:Aw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(po(22))}}}),{withTypes:()=>rV}),aV=Object.assign(wr(`${W8}/add`),{withTypes:()=>aV});wr(`${W8}/removeAll`);var oV=Object.assign(wr(`${W8}/remove`),{withTypes:()=>oV}),sV=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,iV=e=>e.flatMap((e=>sV(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),F8=Symbol.for("rtk-state-proxy-original"),cV=e=>!!e&&!!e[F8],fV=new WeakMap,lV=(e,t)=>dz(fV,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===F8)return e;const a=Reflect.get(e,n,r);if(typeof a>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:Aw()});if(typeof t>"u")throw new Error(po(24));return t}}return a}})}),uV=e=>{if(!cV(e))throw new Error(po(25));return e[F8]},dV=(e={})=>e;function pV(...e){const t=Object.fromEntries(iV(e)),n=()=>Object.keys(t).length?WR(t):dV;let r=n();function a(e,t){return r(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,n){return function(r,...a){return e(lV(n?n(r,...a):r,t),...a)}}),{original:uV});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,c=t[i];return!o.overrideExisting&&c&&c!==s||(t[i]=s,r=n()),a},selector:o})}function po(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. `}var hV={USER:"teamcity",npm_config_user_agent:"npm/10.9.3 node/v22.18.0 linux x64 workspaces/true",SENTRY_AUTH_TOKEN:"1d93ff28a44e4c3aaaaff854277cd8583c1de670bd8744bc895670dfd9300840",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/auth/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_config_npm_version:"10.9.3",npm_config_cache:"/home/teamcity/.npm",USE_NPM_LIBS:"false",npm_config_ignore_scripts:"true",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/auth/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.9/bin:/home/teamcity/.rvm/gems/ruby-3.3.9@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.9/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.18.0/bin",TURBO_HASH:"0b3408126061dcd1",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/auth",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"vite build",SHELL:"/bin/bash",npm_package_version:"1.0.941",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.18.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/auth",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/auth",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3816",APP_NAME:"@wellesley/auth"},nC=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(nC||{});function mV(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function gV(e){return new RegExp("(^|:)//").test(e)}var yV=e=>e.replace(/\/$/,""),vV=e=>e.replace(/^\//,"");function bV(e,t){if(!e)return t;if(!t)return e;if(gV(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=yV(e)}${n}${t=vV(t)}`}var wj=e=>[].concat(...e);function wV(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function xV(){return typeof document>"u"||"hidden"!==document.visibilityState}var xj=pp;function rC(e,t){if(e===t||!(xj(e)&&xj(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let a=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const r of n)o[r]=rC(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var Pj=(...e)=>fetch(...e),PV=e=>e.status>=200&&e.status<=299,kV=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function kj(e){if(!pp(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function zV({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=Pj,paramsSerializer:r,isJsonContentType:a=kV,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===Pj&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:m,extra:v,endpoint:y,forced:g,type:b}=p;let w,{url:k,headers:x=new Headers(u.headers),params:z,responseHandler:P=c??"json",validateStatus:O=l??PV,timeout:j=s,...T}="string"==typeof d?{url:d}:d,N={...u,signal:h,...T};x=new Headers(kj(x)),N.headers=await t(x,{getState:m,extra:v,endpoint:y,forced:g,type:b})||x;const M=e=>"object"==typeof e&&(pp(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!N.headers.has("content-type")&&M(N.body)&&N.headers.set("content-type",o),M(N.body)&&a(N.headers)&&(N.body=JSON.stringify(N.body,i)),z){const e=~k.indexOf("?")?"&":"?";k+=e+(r?r(z):new URLSearchParams(kj(z)))}k=bV(e,k);const D=new Request(k,N);w={request:new Request(k,N)};let H,A=!1,G=j&&setTimeout((()=>{A=!0,p.abort()}),j);try{H=await n(D)}catch(e){return{error:{status:A?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{G&&clearTimeout(G)}const E=H.clone();w.response=E;let S,R="";try{let e;if(await Promise.all([f(H,P).then((e=>S=e),(t=>e=t)),E.text().then((e=>R=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:H.status,data:R,error:String(e)},meta:w}}return O(H,S)?{data:S,meta:w}:{error:{status:H.status,data:S},meta:w}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var zj=class{constructor(e,t=void 0){this.value=e,this.meta=t}},U8=wr("__rtkq/focused"),aC=wr("__rtkq/unfocused"),V8=wr("__rtkq/online"),oC=wr("__rtkq/offline");function sC(e){return"query"===e.type}function TV(e){return"mutation"===e.type}function Q8(e,t,n,r,a,o){return OV(e)?e(t,n,r,a).map(hz).map(o):Array.isArray(e)?e.map(hz).map(o):[]}function OV(e){return"function"==typeof e}function hz(e){return"string"==typeof e?{type:e}:e}function Tj(e){return null!=e}function c1(e){let t=0;for(const n in e)t++;return t}function jV(e,t){return e.catch(t)}var Yy=Symbol("forceQueryFn"),mz=e=>"function"==typeof e[Yy];function NV({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:c,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,a){const i=(c,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[Yy]:p,...h}={})=>(m,v)=>{var y;const g=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:g,[Yy]:p}),w=r.endpoints[n].select(c),k=m(b),x=w(v()),{requestId:z,abort:P}=k,O=x.requestId!==z,j=null==(y=o.get(m))?void 0:y[g],T=()=>w(v()),N=Object.assign(p?k.then(T):O&&!j?Promise.resolve(x):Promise.all([j,k]).then(T),{arg:c,requestId:z,subscriptionOptions:d,queryCacheKey:g,abort:P,async unwrap(){const e=await N;if(e.isError)throw e.error;return e.data},refetch:()=>m(i(c,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(s({queryCacheKey:g,requestId:z}))},updateSubscriptionOptions(e){N.subscriptionOptions=e,m(l({endpointName:n,requestId:z,queryCacheKey:g,options:e}))}});if(!j&&!O&&!p){const e=o.get(m)||{};e[g]=N,o.set(m,e),N.then((()=>{delete e[g],c1(e)||o.delete(m)}))}return N};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:a}={})=>(o,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:a}),u=o(l),{requestId:f,abort:d,unwrap:p}=u,h=jV(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),m=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(c({requestId:f,fixedCacheKey:a}))}}),v=i.get(o)||{};return i.set(o,v),v[f]=m,m.then((()=>{delete v[f],c1(v)||i.delete(o)})),a&&(v[a]=m,m.then((()=>{v[a]===m&&(delete v[a],c1(v)||i.delete(o))}))),m}},getRunningQueryThunk:function(t,n){return r=>{var i;const s=a.endpointDefinitions[t],c=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(i=o.get(r))?void 0:i[c]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(Tj)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(Tj)}}}function Oj(e){return e}function MV({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o}){const i=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:c,getState:l,extra:u})=>{const f=n[e.endpointName];try{let n,o=Oj;const d={signal:r,abort:a,dispatch:c,getState:l,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[Yy]:void 0;if(p?n=p():f.query?(n=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):n=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&hV.NODE_ENV,n.error)throw new zj(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[ly]:!0})}catch(t){let n=t;if(n instanceof zj){let t=Oj;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[ly]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,a,o;const i=null==(a=null==(r=n[e])?void 0:r.queries)?void 0:a[t.queryCacheKey],s=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,c=null==i?void 0:i.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(c))/1e3>=l)}const c=bj(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[ly]:!0}),condition(t,{getState:r}){var a,o,i;const c=r(),l=null==(o=null==(a=c[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==l?void 0:l.fulfilledTimeStamp,f=t.originalArgs,d=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!mz(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||sC(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=bj(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[ly]:!0})});function u(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:c,mutationThunk:l,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,c=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},l=a.endpoints[e].select(t)(o());if(i)r(c());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(c())}else r(c(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let c,l={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(Wc(s.data)){const[e,t,r]=_R(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),c=e}else c=n(s.data),l.patches.push({op:"replace",path:[],value:c}),l.inversePatches.push({op:"replace",path:[],value:s.data});return o(a.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Yy]:()=>({data:n})})),patchQueryData:(e,t,i,s)=>(c,l)=>{const u=n[e],f=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(l()),p=Q8(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:ky(Z8(e),u(t)),matchFulfilled:ky(mp(e),u(t)),matchRejected:ky(v1(e),u(t))}}}}function iC(e,t,n,r){return Q8(n[e.meta.arg.endpointName][t],mp(e)?e.payload:void 0,Rw(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Db(e,t,n){const r=e[t];r&&n(r)}function Zy(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function jj(e,t,n){const r=e[Zy(t)];r&&n(r)}var Qg={};function DV({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=wr(`${e}/resetApiState`),u=da({name:`${e}/queries`,initialState:Qg,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Vg()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Db(e,t,(e=>{e.data=hj(e.data,n.concat())}))},prepare:Vg()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=mz(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Db(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{Db(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!mz(t.arg))return;const{merge:a}=r[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:s}=t;let c=Pv(e.data,(e=>a(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:s})));e.data=c}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?rC(Zc(e.data)?vU(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{Db(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),f=da({name:`${e}/mutations`,initialState:Qg,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Zy(t);n in e&&delete e[n]},prepare:Vg()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[Zy(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&jj(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&jj(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),d=da({name:`${e}/invalidation`,initialState:Qg,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);o.includes(a)||o.push(a)}},prepare:Vg()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(hp(mp(t),Rw(t)),((e,t)=>{const n=iC(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=da({name:`${e}/subscriptions`,initialState:Qg,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=da({name:`${e}/internalSubscriptions`,initialState:Qg,reducers:{subscriptionsUpdated:{reducer:(e,t)=>hj(e,t.payload),prepare:Vg()}}}),m=da({name:`${e}/config`,initialState:{online:wV(),focused:xV(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(V8,(e=>{e.online=!0})).addCase(oC,(e=>{e.online=!1})).addCase(U8,(e=>{e.focused=!0})).addCase(aC,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),v=WR({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>v(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var Vh=Symbol.for("RTKQ/skipToken"),cC={status:"uninitialized"},Nj=Pv(cC,(()=>{})),Mj=Pv(cC,(()=>{}));function HV({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>Nj,a=e=>Mj;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===Vh?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??Nj},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Zy(e)??Vh:e,n(t===Vh?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??Mj},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(hz)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:wj(Object.values(t)))??[];for(const e of n)a.add(e)}return wj(Array.from(a.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...mV(e.status)}}function i(e){return e[t]}}var X0=WeakMap?new WeakMap:void 0,Dj=({endpointName:e,queryArgs:t})=>{let n="";const r=null==X0?void 0:X0.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>pp(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));pp(t)&&(null==X0||X0.set(t,e)),n=e}return`${e}(${n})`};function SV(...e){return function(t){const n=Xy((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=Dj;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:Dj({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Aw(),extractRehydrationInfo:n,hasRehydrationInfo:Xy((e=>null!=n(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(po(39))}else{a.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function AV(e){for(let t in e)return!1;return!0}var EV=2147482.647,RV=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!AV(t)}const s={};function c(e,t,r,o){const c=n.endpointDefinitions[t],l=(null==c?void 0:c.keepUnusedDataFor)??o.keepUnusedDataFor;if(l===1/0)return;const u=Math.max(0,Math.min(l,EV));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||r.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(r,a,i)=>{var l;if(o.match(r)){const t=a.getState()[e],{queryCacheKey:n}=r.payload;c(n,null==(l=t.queries[n])?void 0:l.endpointName,a,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=a.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))c(e,null==n?void 0:n.endpointName,a,t.config)}}},CV=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:c})=>{const{removeQueryResult:l}=o.internalActions,u=hp(mp(r),Rw(r)),f=hp(mp(r,a),v1(r,a));let d=[];function p(n,r){const a=r.getState(),i=a[e];if(d.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===c1(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(iC(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(Q8(e.payload,void 0,void 0,void 0,void 0,i),t)}},GV=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const o={};function i({queryCacheKey:t},n){const s=n.getState()[e],c=s.queries[t],u=a.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=l(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&n.dispatch(r(c,t)),i({queryCacheKey:t},n)}),f)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=l(s);if(!Number.isFinite(u))return void c(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},n)}function c(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))c(e)}()}},LV=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const s=n.getState()[e],c=s.queries,l=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=c[e],a=l[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===c1(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{U8.match(e)&&i(t,"refetchOnFocus"),V8.match(e)&&i(t,"refetchOnReconnect")}},Hj=new Error("Promise never resolved before cacheEntryRemoved."),IV=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=pz(r),s=pz(a),c=mp(r,a),l={};function u(t,r,a,o,i){const s=n.endpointDefinitions[t],c=null==s?void 0:s.onCacheEntryAdded;if(!c)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw Hj}))]);d.catch((()=>{})),l[a]=u;const p=e.endpoints[t].select("query"===s.type?r:a),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},v=c(r,m);Promise.resolve(v).catch((e=>{if(e!==Hj)throw e}))}return(n,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Zy(t.payload):""}(n);if(r.pending.match(n)){const e=f[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(a.pending.match(n))o.getState()[t].mutations[d]&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(c(n)){const e=l[d];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[d];e&&(delete l[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},BV=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=Z8(n,r),o=v1(n,r),i=mp(n,r),s={};return(n,r)=>{var c,l;if(a(n)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=n.meta,c=t.endpointDefinitions[o],l=null==c?void 0:c.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===c.type?i:a),f=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:f,updateCachedData:"query"===c.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};l(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(c=s[e])||c.resolve({data:n.payload,meta:t}),delete s[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},XV=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},YV=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,c=()=>n.currentSubscriptions,l={getSubscriptions:c,getSubscriptionCount:e=>c1(c()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=c();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(c,u)=>{if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return a=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,l];const f=((n,r)=>{var a,o,c;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(a=null==n?void 0:n[e])&&a[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=n[o=e.queryCacheKey]??(n[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:a}}=r;if(e&&t.subscribe){const e=n[c=t.queryCacheKey]??(n[c]={});e[a]=t.subscriptionOptions??e[a]??{},l=!0}}return l})(n.currentSubscriptions,c);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=_R(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),a=t,o=null}),500));const i="string"==typeof c.type&&!!c.type.startsWith(r),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function ZV(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:wr(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[XV,RV,CV,GV,IV,BV];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=YV(u),p=LV(u);return e=>c=>{if(!FR(c))return e(c);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const l={...n,next:e},u=n.getState(),[h,m]=d(c,l,u);let v;if(v=h?e(c):m,n.getState()[t]&&(p(c,l,u),s(c)||a.hasRehydrationInfo(c)))for(let e of f)e(c,l,u);return v}},actions:i};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function _d(e,...t){return Object.assign(e,...t)}var Sj=Symbol(),WV=({createSelector:e=Ar}={})=>({name:Sj,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){jU();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:V8,onOffline:oC,onFocus:U8,onFocusLost:aC},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:v,upsertQueryData:y,prefetch:g,buildMatchThunkActions:b}=MV({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:w,actions:k}=DV({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});_d(t.util,{patchQueryData:m,updateQueryData:v,upsertQueryData:y,prefetch:g,resetApiState:k.resetApiState}),_d(t.internalActions,k);const{middleware:x,actions:z}=ZV({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});_d(t.util,z),_d(t,{reducer:w,middleware:x});const{buildQuerySelector:P,buildMutationSelector:O,selectInvalidatedBy:j,selectCachedArgsForQuery:T}=HV({serializeQueryArgs:o,reducerPath:a,createSelector:e});_d(t.util,{selectInvalidatedBy:j,selectCachedArgsForQuery:T});const{buildInitiateQuery:N,buildInitiateMutation:M,getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueriesThunk:A,getRunningQueryThunk:G}=NV({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return _d(t.util,{getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueryThunk:G,getRunningQueriesThunk:A}),{name:Sj,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),sC(n)?_d(a.endpoints[e],{name:e,select:P(e,n),initiate:N(e,n)},b(p,e)):TV(n)&&_d(a.endpoints[e],{name:e,select:O(),initiate:M(e)},b(h,e))}}}}),Zi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Aj,Ej,Wx={exports:{}},qt={};
1
+ var dU=Object.defineProperty,pU=(e,t,n)=>t in e?dU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mn=(e,t,n)=>pU(e,"symbol"!=typeof t?t+"":t,n);function hU(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function oz(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 Ix=()=>Math.random().toString(36).substring(7).split("").join("."),mU={INIT:`@@redux/INIT${Ix()}`,REPLACE:`@@redux/REPLACE${Ix()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ix()}`},fj=mU;function pp(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 gU(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:fj.INIT})>"u")throw new Error(oz(12));if(typeof n(void 0,{type:fj.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oz(13))}))}function WR(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}const r=Object.keys(n);let a;try{gU(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<r.length;a++){const s=r[a],c=n[s],l=e[s],u=c(l,t);if(typeof u>"u")throw t&&t.type,new Error(oz(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function FR(e){return pp(e)&&"type"in e&&"string"==typeof e.type}var B8=Symbol.for("immer-nothing"),Py=Symbol.for("immer-draftable"),Os=Symbol.for("immer-state");function lo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var em=Object.getPrototypeOf;function Zc(e){return!!e&&!!e[Os]}function Wc(e){var t;return!!e&&(UR(e)||Array.isArray(e)||!!e[Py]||!(null==(t=e.constructor)||!t[Py])||wv(e)||xv(e))}var yU=Object.prototype.constructor.toString();function UR(e){if(!e||"object"!=typeof e)return!1;const t=em(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===yU}function vU(e){return Zc(e)||lo(15,e),e[Os].base_}function y1(e,t){0===tm(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function tm(e){const t=e[Os];return t?t.type_:Array.isArray(e)?1:wv(e)?2:xv(e)?3:0}function Ly(e,t){return 2===tm(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Bx(e,t){return 2===tm(e)?e.get(t):e[t]}function VR(e,t,n){const r=tm(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function bU(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function wv(e){return e instanceof Map}function xv(e){return e instanceof Set}function Wh(e){return e.copy_||e.base_}function sz(e,t){if(wv(e))return new Map(e);if(xv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&UR(e))return em(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Os];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const a=r[t],o=n[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(em(e),n)}function X8(e,t=!1){return Sw(e)||Zc(e)||!Wc(e)||(tm(e)>1&&(e.set=e.add=e.clear=e.delete=wU),Object.freeze(e),t&&y1(e,((e,t)=>X8(t,!0)))),e}function wU(){lo(2)}function Sw(e){return Object.isFrozen(e)}var Iy,iz={};function nm(e){const t=iz[e];return t||lo(0,e),t}function xU(e,t){iz[e]||(iz[e]=t)}function QR(){return Iy}function PU(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function lj(e,t){t&&(nm("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function cz(e){fz(e),e.drafts_.forEach(kU),e.drafts_=null}function fz(e){e===Iy&&(Iy=e.parent_)}function uj(e){return Iy=PU(Iy,e)}function kU(e){const t=e[Os];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function dj(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Os].modified_&&(cz(t),lo(4)),Wc(e)&&(e=G3(t,e),t.parent_||L3(t,e)),t.patches_&&nm("Patches").generateReplacementPatches_(n[Os].base_,e,t.patches_,t.inversePatches_)):e=G3(t,n,[]),cz(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==B8?e:void 0}function G3(e,t,n){if(Sw(t))return t;const r=t[Os];if(!r)return y1(t,((a,o)=>pj(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return L3(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let a=t,o=!1;3===r.type_&&(a=new Set(t),t.clear(),o=!0),y1(a,((a,i)=>pj(e,r,t,a,i,n,o))),L3(e,t,!1),n&&e.patches_&&nm("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function pj(e,t,n,r,a,o,i){if(Zc(a)){const i=G3(e,a,o&&t&&3!==t.type_&&!Ly(t.assigned_,r)?o.concat(r):void 0);if(VR(n,r,i),!Zc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Wc(a)&&!Sw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;G3(e,a),(!t||!t.scope_.parent_)&&L3(e,a)}}function L3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&X8(t,n)}function zU(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:QR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=Y8;n&&(a=[r],o=By);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var Y8={get(e,t){if(t===Os)return e;const n=Wh(e);if(!Ly(n,t))return TU(e,n,t);const r=n[t];return e.finalized_||!Wc(r)?r:r===Xx(e.base_,t)?(Yx(e),e.copy_[t]=uz(r,e)):r},has:(e,t)=>t in Wh(e),ownKeys:e=>Reflect.ownKeys(Wh(e)),set(e,t,n){const r=qR(Wh(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Xx(Wh(e),t),a=null==r?void 0:r[Os];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(bU(n,r)&&(void 0!==n||Ly(e.base_,t)))return!0;Yx(e),lz(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Xx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Yx(e),lz(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Wh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){lo(11)},getPrototypeOf:e=>em(e.base_),setPrototypeOf(){lo(12)}},By={};function Xx(e,t){const n=e[Os];return(n?Wh(n):e)[t]}function TU(e,t,n){var r;const a=qR(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function qR(e,t){if(!(t in e))return;let n=em(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=em(n)}}function lz(e){e.modified_||(e.modified_=!0,e.parent_&&lz(e.parent_))}function Yx(e){e.copy_||(e.copy_=sz(e.base_,e.scope_.immer_.useStrictShallowCopy_))}y1(Y8,((e,t)=>{By[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),By.deleteProperty=function(e,t){return By.set.call(this,e,t,void 0)},By.set=function(e,t,n){return Y8.set.call(this,e[0],t,n,e[0])};var OU=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...a){return r.produce(e,(e=>t.call(this,e,...a)))}}let r;if("function"!=typeof t&&lo(6),void 0!==n&&"function"!=typeof n&&lo(7),Wc(e)){const a=uj(this),o=uz(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?cz(a):fz(a)}return lj(a,n),dj(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===B8&&(r=void 0),this.autoFreeze_&&X8(r,!0),n){const t=[],a=[];nm("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}lo(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Wc(e)||lo(8),Zc(e)&&(e=JR(e));const t=uj(this),n=uz(e,void 0);return n[Os].isManual_=!0,fz(t),n}finishDraft(e,t){const n=e&&e[Os];(!n||!n.isManual_)&&lo(9);const{scope_:r}=n;return lj(r,t),dj(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=nm("Patches").applyPatches_;return Zc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function uz(e,t){const n=wv(e)?nm("MapSet").proxyMap_(e,t):xv(e)?nm("MapSet").proxySet_(e,t):zU(e,t);return(t?t.scope_:QR()).drafts_.push(n),n}function JR(e){return Zc(e)||lo(10,e),KR(e)}function KR(e){if(!Wc(e)||Sw(e))return e;const t=e[Os];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=sz(e,t.scope_.immer_.useStrictShallowCopy_)}else n=sz(e,!0);return y1(n,((e,t)=>{VR(n,e,KR(t))})),t&&(t.finalized_=!1),n}function jU(){const e="replace",t="remove";function n(e){if(!Wc(e))return e;if(Array.isArray(e))return e.map(n);if(wv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(xv(e))return new Set(Array.from(e).map(n));const t=Object.create(em(e));for(const r in e)t[r]=n(e[r]);return Ly(e,Py)&&(t[Py]=e[Py]),t}function r(e){return Zc(e)?n(e):e}xU("Patches",{applyPatches_:function(r,a){return a.forEach((a=>{const{path:o,op:i}=a;let s=r;for(let e=0;e<o.length-1;e++){const t=tm(s);let n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&lo(19),"function"==typeof s&&"prototype"===n&&lo(19),s=Bx(s,n),"object"!=typeof s&&lo(18,o.join("/"))}const c=tm(s),l=n(a.value),u=o[o.length-1];switch(i){case e:switch(c){case 2:return s.set(u,l);case 3:lo(16);default:return s[u]=l}case"add":switch(c){case 1:return"-"===u?s.push(l):s.splice(u,0,l);case 2:return s.set(u,l);case 3:return s.add(l);default:return s[u]=l}case t:switch(c){case 1:return s.splice(u,1);case 2:return s.delete(u);case 3:return s.delete(a.value);default:return delete s[u]}default:lo(17,i)}})),r},generatePatches_:function(n,a,o,i){switch(n.type_){case 0:case 2:return function(n,a,o,i){const{base_:s,copy_:c}=n;y1(n.assigned_,((n,l)=>{const u=Bx(s,n),f=Bx(c,n),d=l?Ly(s,n)?e:"add":t;if(u===f&&d===e)return;const p=a.concat(n);o.push(d===t?{op:d,path:p}:{op:d,path:p,value:f}),i.push("add"===d?{op:t,path:p}:d===t?{op:"add",path:p,value:r(u)}:{op:e,path:p,value:r(u)})}))}(n,a,o,i);case 1:return function(n,a,o,i){let{base_:s,assigned_:c}=n,l=n.copy_;l.length<s.length&&([s,l]=[l,s],[o,i]=[i,o]);for(let t=0;t<s.length;t++)if(c[t]&&l[t]!==s[t]){const n=a.concat([t]);o.push({op:e,path:n,value:r(l[t])}),i.push({op:e,path:n,value:r(s[t])})}for(let e=s.length;e<l.length;e++){const t=a.concat([e]);o.push({op:"add",path:t,value:r(l[e])})}for(let e=l.length-1;s.length<=e;--e){const n=a.concat([e]);i.push({op:t,path:n})}}(n,a,o,i);case 3:return function(e,n,r,a){let{base_:o,copy_:i}=e,s=0;o.forEach((e=>{if(!i.has(e)){const o=n.concat([s]);r.push({op:t,path:o,value:e}),a.unshift({op:"add",path:o,value:e})}s++})),s=0,i.forEach((e=>{if(!o.has(e)){const o=n.concat([s]);r.push({op:"add",path:o,value:e}),a.unshift({op:t,path:o,value:e})}s++}))}(n,a,o,i)}},generateReplacementPatches_:function(t,n,r,a){r.push({op:e,path:[],value:n===B8?void 0:n}),a.push({op:e,path:[],value:t})}})}var ri=new OU,Pv=ri.produce,_R=ri.produceWithPatches.bind(ri);ri.setAutoFreeze.bind(ri),ri.setUseStrictShallowCopy.bind(ri);var hj=ri.applyPatches.bind(ri);function NU(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function MU(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function DU(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}ri.createDraft.bind(ri),ri.finishDraft.bind(ri);var mj=e=>Array.isArray(e)?e:[e];function HU(e){const t=Array.isArray(e[0])?e[0]:e;return DU(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function SU(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var AU=class{constructor(e){this.value=e}deref(){return this.value}},EU=typeof WeakRef<"u"?WeakRef:AU,RU=0,gj=1;function Nb(){return{s:RU,v:void 0,o:null,p:null}}function Xy(e,t={}){let n=Nb();const{resultEqualityCheck:r}=t;let a,o=0;function i(){var t;let i=n;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=Nb(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=Nb(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===gj?l=i.v:(l=e.apply(null,arguments),o++),c.s=gj,r){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&r(e,l)&&(l=e,0!==o&&o--),a="object"==typeof l&&null!==l||"function"==typeof l?new EU(l):l}return c.v=l,l}return i.clearCache=()=>{n=Nb(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function $R(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),NU(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=Xy,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=mj(l),h=mj(f),m=HU(e),v=c((function(){return r++,i.apply(null,arguments)}),...p),y=u((function(){a++;const e=SU(m,arguments);return t=v.apply(null,e),t}),...h);return Object.assign(y,{resultFunc:i,memoizedResultFunc:v,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var Ar=$R(Xy),CU=Object.assign(((e,t=Ar)=>{MU(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>CU}),GU=(...e)=>{const t=$R(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Zc(e)?JR(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};GU(Xy);var LU=e=>e&&"function"==typeof e.match;function wr(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(po(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>FR(t)&&t.type===e,n}function yj(e){return Wc(e)?Pv(e,(()=>{})):e}function dz(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(po(10));const r=n.insert(t,e);return e.set(t,r),r}var ly="RTK_autoBatch",Vg=()=>e=>({payload:e,meta:{[ly]:!0}});function eC(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(po(28));if(r in t)throw new Error(po(29));return t[r]=n,a},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function IU(e){return"function"==typeof e}function BU(e,t){let n,[r,a,o]=eC(t);if(IU(e))n=()=>yj(e());else{const t=yj(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,n)=>{if(n){if(Zc(e)){const r=n(e,t);return void 0===r?e:r}if(Wc(e))return Pv(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(po(9))}return r}}return e}),e)}return i.getInitialState=n,i}var XU="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Aw=(e=21)=>{let t="",n=e;for(;n--;)t+=XU[64*Math.random()|0];return t},tC=(e,t)=>LU(e)?e.match(t):e(t);function hp(...e){return t=>e.some((e=>tC(e,t)))}function ky(...e){return t=>e.every((e=>tC(e,t)))}function Ew(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function kv(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Z8(...e){return 0===e.length?e=>Ew(e,["pending"]):kv(e)?t=>hp(...e.map((e=>e.pending)))(t):Z8()(e[0])}function v1(...e){return 0===e.length?e=>Ew(e,["rejected"]):kv(e)?t=>hp(...e.map((e=>e.rejected)))(t):v1()(e[0])}function Rw(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||kv(e)?n=>ky(v1(...e),t)(n):Rw()(e[0])}function mp(...e){return 0===e.length?e=>Ew(e,["fulfilled"]):kv(e)?t=>hp(...e.map((e=>e.fulfilled)))(t):mp()(e[0])}function pz(...e){return 0===e.length?e=>Ew(e,["pending","fulfilled","rejected"]):kv(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return hp(...n)(t)}:pz()(e[0])}var YU=["name","message","stack","code"],Zx=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},vj=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},ZU=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of YU)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},bj=(()=>{function e(e,t,n){const r=wr(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=wr(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=wr(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||ZU)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,c)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):Aw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let v;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(FU(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(l,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.call(n,{requestId:l,arg:e},{getState:s,extra:c}))),v=await Promise.race([y,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Zx(e,t),fulfillWithValue:(e,t)=>new vj(e,t)})).then((t=>{if(t instanceof Zx)throw t;return t instanceof vj?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){v=t instanceof Zx?o(null,l,e,t.payload,t.meta):o(t,l,e)}finally{f&&u.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&o.match(v)&&v.meta.condition||i(v),v}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(WU)})}}),{pending:a,rejected:o,fulfilled:r,settled:hp(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function WU(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function FU(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var UU=Symbol.for("rtk-slice-createasyncthunk");function VU(e,t){return`${e}/${t}`}function QU({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[UU];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(po(11));const a=("function"==typeof e.reducers?e.reducers(JU()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(po(12));if(n in i.sliceCaseReducersByType)throw new Error(po(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?eC(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return BU(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=a[r],i={reducerName:r,type:VU(t,r),createNotation:"function"==typeof e.reducers};_U(o)?eV(i,o,s,n):KU(i,o,s)}));const l=e=>e,u=new Map;let f;function d(e,t){return f||(f=c()),f(e,t)}function p(){return f||(f=c()),f.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function a(t=l){const r=dz(u,n,{insert:()=>new WeakMap});return dz(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=qU(o,t,p,n);return r}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const m={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:d},n),{...m,...h(a,!0)}}};return m}}function qU(e,t,n,r){function a(a,...o){let i=t(a);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return a.unwrapped=e,a}var da=QU();function JU(){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}}function KU({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!$U(r))throw new Error(po(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?wr(e,i):wr(e))}function _U(e){return"asyncThunk"===e._reducerDefinitionType}function $U(e){return"reducerWithPrepare"===e._reducerDefinitionType}function eV({type:e,reducerName:t},n,r,a){if(!a)throw new Error(po(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:c,settled:l,options:u}=n,f=a(e,o,u);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),s&&r.addCase(f.pending,s),c&&r.addCase(f.rejected,c),l&&r.addMatcher(f.settled,l),r.exposeCaseReducer(t,{fulfilled:i||Mb,pending:s||Mb,rejected:c||Mb,settled:l||Mb})}function Mb(){}var tV=(e,t)=>{if("function"!=typeof e)throw new Error(po(32))},W8="listenerMiddleware",nV=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=wr(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(po(21));return tV(o),{predicate:a,type:t,effect:o}},rV=Object.assign((e=>{const{type:t,predicate:n,effect:r}=nV(e);return{id:Aw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(po(22))}}}),{withTypes:()=>rV}),aV=Object.assign(wr(`${W8}/add`),{withTypes:()=>aV});wr(`${W8}/removeAll`);var oV=Object.assign(wr(`${W8}/remove`),{withTypes:()=>oV}),sV=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,iV=e=>e.flatMap((e=>sV(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),F8=Symbol.for("rtk-state-proxy-original"),cV=e=>!!e&&!!e[F8],fV=new WeakMap,lV=(e,t)=>dz(fV,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===F8)return e;const a=Reflect.get(e,n,r);if(typeof a>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:Aw()});if(typeof t>"u")throw new Error(po(24));return t}}return a}})}),uV=e=>{if(!cV(e))throw new Error(po(25));return e[F8]},dV=(e={})=>e;function pV(...e){const t=Object.fromEntries(iV(e)),n=()=>Object.keys(t).length?WR(t):dV;let r=n();function a(e,t){return r(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,n){return function(r,...a){return e(lV(n?n(r,...a):r,t),...a)}}),{original:uV});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,c=t[i];return!o.overrideExisting&&c&&c!==s||(t[i]=s,r=n()),a},selector:o})}function po(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. `}var hV={USER:"teamcity",npm_config_user_agent:"npm/10.9.3 node/v22.18.0 linux x64 workspaces/true",SENTRY_AUTH_TOKEN:"1d93ff28a44e4c3aaaaff854277cd8583c1de670bd8744bc895670dfd9300840",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/auth/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_config_npm_version:"10.9.3",npm_config_cache:"/home/teamcity/.npm",USE_NPM_LIBS:"false",npm_config_ignore_scripts:"true",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/auth/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.9/bin:/home/teamcity/.rvm/gems/ruby-3.3.9@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.9/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.18.0/bin",TURBO_HASH:"41fffb35b228a8f4",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/auth",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"vite build",SHELL:"/bin/bash",npm_package_version:"1.0.943",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.18.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/auth",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.18.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.18.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",USE_PACKAGES_FROM_NPM:"false",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/auth",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3822",APP_NAME:"@wellesley/auth"},nC=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(nC||{});function mV(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function gV(e){return new RegExp("(^|:)//").test(e)}var yV=e=>e.replace(/\/$/,""),vV=e=>e.replace(/^\//,"");function bV(e,t){if(!e)return t;if(!t)return e;if(gV(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=yV(e)}${n}${t=vV(t)}`}var wj=e=>[].concat(...e);function wV(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function xV(){return typeof document>"u"||"hidden"!==document.visibilityState}var xj=pp;function rC(e,t){if(e===t||!(xj(e)&&xj(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let a=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const r of n)o[r]=rC(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var Pj=(...e)=>fetch(...e),PV=e=>e.status>=200&&e.status<=299,kV=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function kj(e){if(!pp(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function zV({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=Pj,paramsSerializer:r,isJsonContentType:a=kV,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===Pj&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:m,extra:v,endpoint:y,forced:g,type:b}=p;let w,{url:k,headers:x=new Headers(u.headers),params:z,responseHandler:P=c??"json",validateStatus:O=l??PV,timeout:j=s,...T}="string"==typeof d?{url:d}:d,N={...u,signal:h,...T};x=new Headers(kj(x)),N.headers=await t(x,{getState:m,extra:v,endpoint:y,forced:g,type:b})||x;const M=e=>"object"==typeof e&&(pp(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!N.headers.has("content-type")&&M(N.body)&&N.headers.set("content-type",o),M(N.body)&&a(N.headers)&&(N.body=JSON.stringify(N.body,i)),z){const e=~k.indexOf("?")?"&":"?";k+=e+(r?r(z):new URLSearchParams(kj(z)))}k=bV(e,k);const D=new Request(k,N);w={request:new Request(k,N)};let H,A=!1,G=j&&setTimeout((()=>{A=!0,p.abort()}),j);try{H=await n(D)}catch(e){return{error:{status:A?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{G&&clearTimeout(G)}const E=H.clone();w.response=E;let S,R="";try{let e;if(await Promise.all([f(H,P).then((e=>S=e),(t=>e=t)),E.text().then((e=>R=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:H.status,data:R,error:String(e)},meta:w}}return O(H,S)?{data:S,meta:w}:{error:{status:H.status,data:S},meta:w}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var zj=class{constructor(e,t=void 0){this.value=e,this.meta=t}},U8=wr("__rtkq/focused"),aC=wr("__rtkq/unfocused"),V8=wr("__rtkq/online"),oC=wr("__rtkq/offline");function sC(e){return"query"===e.type}function TV(e){return"mutation"===e.type}function Q8(e,t,n,r,a,o){return OV(e)?e(t,n,r,a).map(hz).map(o):Array.isArray(e)?e.map(hz).map(o):[]}function OV(e){return"function"==typeof e}function hz(e){return"string"==typeof e?{type:e}:e}function Tj(e){return null!=e}function c1(e){let t=0;for(const n in e)t++;return t}function jV(e,t){return e.catch(t)}var Yy=Symbol("forceQueryFn"),mz=e=>"function"==typeof e[Yy];function NV({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:c,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,a){const i=(c,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[Yy]:p,...h}={})=>(m,v)=>{var y;const g=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:g,[Yy]:p}),w=r.endpoints[n].select(c),k=m(b),x=w(v()),{requestId:z,abort:P}=k,O=x.requestId!==z,j=null==(y=o.get(m))?void 0:y[g],T=()=>w(v()),N=Object.assign(p?k.then(T):O&&!j?Promise.resolve(x):Promise.all([j,k]).then(T),{arg:c,requestId:z,subscriptionOptions:d,queryCacheKey:g,abort:P,async unwrap(){const e=await N;if(e.isError)throw e.error;return e.data},refetch:()=>m(i(c,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(s({queryCacheKey:g,requestId:z}))},updateSubscriptionOptions(e){N.subscriptionOptions=e,m(l({endpointName:n,requestId:z,queryCacheKey:g,options:e}))}});if(!j&&!O&&!p){const e=o.get(m)||{};e[g]=N,o.set(m,e),N.then((()=>{delete e[g],c1(e)||o.delete(m)}))}return N};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:a}={})=>(o,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:a}),u=o(l),{requestId:f,abort:d,unwrap:p}=u,h=jV(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),m=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(c({requestId:f,fixedCacheKey:a}))}}),v=i.get(o)||{};return i.set(o,v),v[f]=m,m.then((()=>{delete v[f],c1(v)||i.delete(o)})),a&&(v[a]=m,m.then((()=>{v[a]===m&&(delete v[a],c1(v)||i.delete(o))}))),m}},getRunningQueryThunk:function(t,n){return r=>{var i;const s=a.endpointDefinitions[t],c=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(i=o.get(r))?void 0:i[c]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(Tj)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(Tj)}}}function Oj(e){return e}function MV({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o}){const i=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:c,getState:l,extra:u})=>{const f=n[e.endpointName];try{let n,o=Oj;const d={signal:r,abort:a,dispatch:c,getState:l,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[Yy]:void 0;if(p?n=p():f.query?(n=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):n=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&hV.NODE_ENV,n.error)throw new zj(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[ly]:!0})}catch(t){let n=t;if(n instanceof zj){let t=Oj;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[ly]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,a,o;const i=null==(a=null==(r=n[e])?void 0:r.queries)?void 0:a[t.queryCacheKey],s=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,c=null==i?void 0:i.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(c))/1e3>=l)}const c=bj(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[ly]:!0}),condition(t,{getState:r}){var a,o,i;const c=r(),l=null==(o=null==(a=c[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==l?void 0:l.fulfilledTimeStamp,f=t.originalArgs,d=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!mz(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||sC(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=bj(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[ly]:!0})});function u(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:c,mutationThunk:l,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,c=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},l=a.endpoints[e].select(t)(o());if(i)r(c());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(c())}else r(c(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let c,l={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(Wc(s.data)){const[e,t,r]=_R(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),c=e}else c=n(s.data),l.patches.push({op:"replace",path:[],value:c}),l.inversePatches.push({op:"replace",path:[],value:s.data});return o(a.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Yy]:()=>({data:n})})),patchQueryData:(e,t,i,s)=>(c,l)=>{const u=n[e],f=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(l()),p=Q8(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:ky(Z8(e),u(t)),matchFulfilled:ky(mp(e),u(t)),matchRejected:ky(v1(e),u(t))}}}}function iC(e,t,n,r){return Q8(n[e.meta.arg.endpointName][t],mp(e)?e.payload:void 0,Rw(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Db(e,t,n){const r=e[t];r&&n(r)}function Zy(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function jj(e,t,n){const r=e[Zy(t)];r&&n(r)}var Qg={};function DV({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=wr(`${e}/resetApiState`),u=da({name:`${e}/queries`,initialState:Qg,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Vg()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Db(e,t,(e=>{e.data=hj(e.data,n.concat())}))},prepare:Vg()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=mz(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Db(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{Db(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!mz(t.arg))return;const{merge:a}=r[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:s}=t;let c=Pv(e.data,(e=>a(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:s})));e.data=c}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?rC(Zc(e.data)?vU(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{Db(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),f=da({name:`${e}/mutations`,initialState:Qg,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Zy(t);n in e&&delete e[n]},prepare:Vg()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[Zy(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&jj(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&jj(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),d=da({name:`${e}/invalidation`,initialState:Qg,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);o.includes(a)||o.push(a)}},prepare:Vg()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(hp(mp(t),Rw(t)),((e,t)=>{const n=iC(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=da({name:`${e}/subscriptions`,initialState:Qg,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=da({name:`${e}/internalSubscriptions`,initialState:Qg,reducers:{subscriptionsUpdated:{reducer:(e,t)=>hj(e,t.payload),prepare:Vg()}}}),m=da({name:`${e}/config`,initialState:{online:wV(),focused:xV(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(V8,(e=>{e.online=!0})).addCase(oC,(e=>{e.online=!1})).addCase(U8,(e=>{e.focused=!0})).addCase(aC,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),v=WR({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>v(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var Vh=Symbol.for("RTKQ/skipToken"),cC={status:"uninitialized"},Nj=Pv(cC,(()=>{})),Mj=Pv(cC,(()=>{}));function HV({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>Nj,a=e=>Mj;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===Vh?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??Nj},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Zy(e)??Vh:e,n(t===Vh?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??Mj},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(hz)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:wj(Object.values(t)))??[];for(const e of n)a.add(e)}return wj(Array.from(a.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...mV(e.status)}}function i(e){return e[t]}}var X0=WeakMap?new WeakMap:void 0,Dj=({endpointName:e,queryArgs:t})=>{let n="";const r=null==X0?void 0:X0.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>pp(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));pp(t)&&(null==X0||X0.set(t,e)),n=e}return`${e}(${n})`};function SV(...e){return function(t){const n=Xy((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=Dj;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:Dj({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Aw(),extractRehydrationInfo:n,hasRehydrationInfo:Xy((e=>null!=n(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(po(39))}else{a.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function AV(e){for(let t in e)return!1;return!0}var EV=2147482.647,RV=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!AV(t)}const s={};function c(e,t,r,o){const c=n.endpointDefinitions[t],l=(null==c?void 0:c.keepUnusedDataFor)??o.keepUnusedDataFor;if(l===1/0)return;const u=Math.max(0,Math.min(l,EV));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||r.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(r,a,i)=>{var l;if(o.match(r)){const t=a.getState()[e],{queryCacheKey:n}=r.payload;c(n,null==(l=t.queries[n])?void 0:l.endpointName,a,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=a.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))c(e,null==n?void 0:n.endpointName,a,t.config)}}},CV=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:c})=>{const{removeQueryResult:l}=o.internalActions,u=hp(mp(r),Rw(r)),f=hp(mp(r,a),v1(r,a));let d=[];function p(n,r){const a=r.getState(),i=a[e];if(d.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===c1(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(iC(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(Q8(e.payload,void 0,void 0,void 0,void 0,i),t)}},GV=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const o={};function i({queryCacheKey:t},n){const s=n.getState()[e],c=s.queries[t],u=a.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=l(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&n.dispatch(r(c,t)),i({queryCacheKey:t},n)}),f)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=l(s);if(!Number.isFinite(u))return void c(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},n)}function c(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))c(e)}()}},LV=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const s=n.getState()[e],c=s.queries,l=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=c[e],a=l[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===c1(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{U8.match(e)&&i(t,"refetchOnFocus"),V8.match(e)&&i(t,"refetchOnReconnect")}},Hj=new Error("Promise never resolved before cacheEntryRemoved."),IV=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=pz(r),s=pz(a),c=mp(r,a),l={};function u(t,r,a,o,i){const s=n.endpointDefinitions[t],c=null==s?void 0:s.onCacheEntryAdded;if(!c)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw Hj}))]);d.catch((()=>{})),l[a]=u;const p=e.endpoints[t].select("query"===s.type?r:a),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},v=c(r,m);Promise.resolve(v).catch((e=>{if(e!==Hj)throw e}))}return(n,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Zy(t.payload):""}(n);if(r.pending.match(n)){const e=f[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(a.pending.match(n))o.getState()[t].mutations[d]&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(c(n)){const e=l[d];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[d];e&&(delete l[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},BV=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=Z8(n,r),o=v1(n,r),i=mp(n,r),s={};return(n,r)=>{var c,l;if(a(n)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=n.meta,c=t.endpointDefinitions[o],l=null==c?void 0:c.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===c.type?i:a),f=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:f,updateCachedData:"query"===c.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};l(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(c=s[e])||c.resolve({data:n.payload,meta:t}),delete s[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},XV=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},YV=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,c=()=>n.currentSubscriptions,l={getSubscriptions:c,getSubscriptionCount:e=>c1(c()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=c();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(c,u)=>{if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return a=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,l];const f=((n,r)=>{var a,o,c;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(a=null==n?void 0:n[e])&&a[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=n[o=e.queryCacheKey]??(n[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:a}}=r;if(e&&t.subscribe){const e=n[c=t.queryCacheKey]??(n[c]={});e[a]=t.subscriptionOptions??e[a]??{},l=!0}}return l})(n.currentSubscriptions,c);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=_R(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),a=t,o=null}),500));const i="string"==typeof c.type&&!!c.type.startsWith(r),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function ZV(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:wr(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[XV,RV,CV,GV,IV,BV];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=YV(u),p=LV(u);return e=>c=>{if(!FR(c))return e(c);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const l={...n,next:e},u=n.getState(),[h,m]=d(c,l,u);let v;if(v=h?e(c):m,n.getState()[t]&&(p(c,l,u),s(c)||a.hasRehydrationInfo(c)))for(let e of f)e(c,l,u);return v}},actions:i};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function _d(e,...t){return Object.assign(e,...t)}var Sj=Symbol(),WV=({createSelector:e=Ar}={})=>({name:Sj,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){jU();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:V8,onOffline:oC,onFocus:U8,onFocusLost:aC},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:v,upsertQueryData:y,prefetch:g,buildMatchThunkActions:b}=MV({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:w,actions:k}=DV({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});_d(t.util,{patchQueryData:m,updateQueryData:v,upsertQueryData:y,prefetch:g,resetApiState:k.resetApiState}),_d(t.internalActions,k);const{middleware:x,actions:z}=ZV({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});_d(t.util,z),_d(t,{reducer:w,middleware:x});const{buildQuerySelector:P,buildMutationSelector:O,selectInvalidatedBy:j,selectCachedArgsForQuery:T}=HV({serializeQueryArgs:o,reducerPath:a,createSelector:e});_d(t.util,{selectInvalidatedBy:j,selectCachedArgsForQuery:T});const{buildInitiateQuery:N,buildInitiateMutation:M,getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueriesThunk:A,getRunningQueryThunk:G}=NV({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return _d(t.util,{getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueryThunk:G,getRunningQueriesThunk:A}),{name:Sj,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),sC(n)?_d(a.endpoints[e],{name:e,select:P(e,n),initiate:N(e,n)},b(p,e)):TV(n)&&_d(a.endpoints[e],{name:e,select:O(),initiate:M(e)},b(h,e))}}}}),Zi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Aj,Ej,Wx={exports:{}},qt={};
2
2
  /**
3
3
  * @license React
4
4
  * react.production.min.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wellesley/auth",
3
- "version": "1.0.941",
3
+ "version": "1.0.943",
4
4
  "license": "UNLICENSED",
5
5
  "main": "index.mjs",
6
6
  "files": [