@wellesley/auth 1.0.911 → 1.0.913

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 oU=Object.defineProperty,sU=(e,t,n)=>t in e?oU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mn=(e,t,n)=>sU(e,"symbol"!=typeof t?t+"":t,n);function iU(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 nz(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 Cx=()=>Math.random().toString(36).substring(7).split("").join("."),cU={INIT:`@@redux/INIT${Cx()}`,REPLACE:`@@redux/REPLACE${Cx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cx()}`},oj=cU;function lp(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 fU(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:oj.INIT})>"u")throw new Error(nz(12));if(typeof n(void 0,{type:oj.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nz(13))}))}function LR(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{fU(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(nz(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function IR(e){return lp(e)&&"type"in e&&"string"==typeof e.type}var C8=Symbol.for("immer-nothing"),xv=Symbol.for("immer-draftable"),zs=Symbol.for("immer-state");function fo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var _h=Object.getPrototypeOf;function Ic(e){return!!e&&!!e[zs]}function Bc(e){var t;return!!e&&(BR(e)||Array.isArray(e)||!!e[xv]||!(null==(t=e.constructor)||!t[xv])||by(e)||wy(e))}var lU=Object.prototype.constructor.toString();function BR(e){if(!e||"object"!=typeof e)return!1;const t=_h(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)===lU}function uU(e){return Ic(e)||fo(15,e),e[zs].base_}function g1(e,t){0===$h(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function $h(e){const t=e[zs];return t?t.type_:Array.isArray(e)?1:by(e)?2:wy(e)?3:0}function Gv(e,t){return 2===$h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Gx(e,t){return 2===$h(e)?e.get(t):e[t]}function XR(e,t,n){const r=$h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function dU(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function by(e){return e instanceof Map}function wy(e){return e instanceof Set}function Yh(e){return e.copy_||e.base_}function rz(e,t){if(by(e))return new Map(e);if(wy(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&BR(e))return _h(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[zs];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(_h(e),n)}function G8(e,t=!1){return Dw(e)||Ic(e)||!Bc(e)||($h(e)>1&&(e.set=e.add=e.clear=e.delete=pU),Object.freeze(e),t&&g1(e,((e,t)=>G8(t,!0)))),e}function pU(){fo(2)}function Dw(e){return Object.isFrozen(e)}var Lv,az={};function em(e){const t=az[e];return t||fo(0,e),t}function hU(e,t){az[e]||(az[e]=t)}function YR(){return Lv}function mU(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function sj(e,t){t&&(em("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function oz(e){sz(e),e.drafts_.forEach(gU),e.drafts_=null}function sz(e){e===Lv&&(Lv=e.parent_)}function ij(e){return Lv=mU(Lv,e)}function gU(e){const t=e[zs];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function cj(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[zs].modified_&&(oz(t),fo(4)),Bc(e)&&(e=R3(t,e),t.parent_||C3(t,e)),t.patches_&&em("Patches").generateReplacementPatches_(n[zs].base_,e,t.patches_,t.inversePatches_)):e=R3(t,n,[]),oz(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==C8?e:void 0}function R3(e,t,n){if(Dw(t))return t;const r=t[zs];if(!r)return g1(t,((a,o)=>fj(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return C3(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),g1(a,((a,i)=>fj(e,r,t,a,i,n,o))),C3(e,t,!1),n&&e.patches_&&em("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function fj(e,t,n,r,a,o,i){if(Ic(a)){const i=R3(e,a,o&&t&&3!==t.type_&&!Gv(t.assigned_,r)?o.concat(r):void 0);if(XR(n,r,i),!Ic(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Bc(a)&&!Dw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;R3(e,a),(!t||!t.scope_.parent_)&&C3(e,a)}}function C3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&G8(t,n)}function vU(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:YR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=L8;n&&(a=[r],o=Iv);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var L8={get(e,t){if(t===zs)return e;const n=Yh(e);if(!Gv(n,t))return yU(e,n,t);const r=n[t];return e.finalized_||!Bc(r)?r:r===Lx(e.base_,t)?(Ix(e),e.copy_[t]=cz(r,e)):r},has:(e,t)=>t in Yh(e),ownKeys:e=>Reflect.ownKeys(Yh(e)),set(e,t,n){const r=ZR(Yh(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Lx(Yh(e),t),a=null==r?void 0:r[zs];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(dU(n,r)&&(void 0!==n||Gv(e.base_,t)))return!0;Ix(e),iz(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!==Lx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Ix(e),iz(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Yh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){fo(11)},getPrototypeOf:e=>_h(e.base_),setPrototypeOf(){fo(12)}},Iv={};function Lx(e,t){const n=e[zs];return(n?Yh(n):e)[t]}function yU(e,t,n){var r;const a=ZR(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function ZR(e,t){if(!(t in e))return;let n=_h(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=_h(n)}}function iz(e){e.modified_||(e.modified_=!0,e.parent_&&iz(e.parent_))}function Ix(e){e.copy_||(e.copy_=rz(e.base_,e.scope_.immer_.useStrictShallowCopy_))}g1(L8,((e,t)=>{Iv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Iv.deleteProperty=function(e,t){return Iv.set.call(this,e,t,void 0)},Iv.set=function(e,t,n){return L8.set.call(this,e[0],t,n,e[0])};var bU=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&&fo(6),void 0!==n&&"function"!=typeof n&&fo(7),Bc(e)){const a=ij(this),o=cz(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?oz(a):sz(a)}return sj(a,n),cj(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===C8&&(r=void 0),this.autoFreeze_&&G8(r,!0),n){const t=[],a=[];em("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}fo(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){Bc(e)||fo(8),Ic(e)&&(e=WR(e));const t=ij(this),n=cz(e,void 0);return n[zs].isManual_=!0,sz(t),n}finishDraft(e,t){const n=e&&e[zs];(!n||!n.isManual_)&&fo(9);const{scope_:r}=n;return sj(r,t),cj(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=em("Patches").applyPatches_;return Ic(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function cz(e,t){const n=by(e)?em("MapSet").proxyMap_(e,t):wy(e)?em("MapSet").proxySet_(e,t):vU(e,t);return(t?t.scope_:YR()).drafts_.push(n),n}function WR(e){return Ic(e)||fo(10,e),FR(e)}function FR(e){if(!Bc(e)||Dw(e))return e;const t=e[zs];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=rz(e,t.scope_.immer_.useStrictShallowCopy_)}else n=rz(e,!0);return g1(n,((e,t)=>{XR(n,e,FR(t))})),t&&(t.finalized_=!1),n}function wU(){const e="replace",t="remove";function n(e){if(!Bc(e))return e;if(Array.isArray(e))return e.map(n);if(by(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(wy(e))return new Set(Array.from(e).map(n));const t=Object.create(_h(e));for(const r in e)t[r]=n(e[r]);return Gv(e,xv)&&(t[xv]=e[xv]),t}function r(e){return Ic(e)?n(e):e}hU("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=$h(s);let n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&fo(19),"function"==typeof s&&"prototype"===n&&fo(19),s=Gx(s,n),"object"!=typeof s&&fo(18,o.join("/"))}const c=$h(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:fo(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:fo(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;g1(n.assigned_,((n,l)=>{const u=Gx(s,n),f=Gx(c,n),d=l?Gv(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===C8?void 0:n}),a.push({op:e,path:[],value:t})}})}var ti=new bU,xy=ti.produce,UR=ti.produceWithPatches.bind(ti);ti.setAutoFreeze.bind(ti),ti.setUseStrictShallowCopy.bind(ti);var lj=ti.applyPatches.bind(ti);function xU(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function PU(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function kU(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}]`)}}ti.createDraft.bind(ti),ti.finishDraft.bind(ti);var uj=e=>Array.isArray(e)?e:[e];function zU(e){const t=Array.isArray(e[0])?e[0]:e;return kU(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function TU(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var OU=class{constructor(e){this.value=e}deref(){return this.value}},jU=typeof WeakRef<"u"?WeakRef:OU,NU=0,dj=1;function jb(){return{s:NU,v:void 0,o:null,p:null}}function Bv(e,t={}){let n=jb();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=jb(),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=jb(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===dj?l=i.v:(l=e.apply(null,arguments),o++),c.s=dj,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 jU(l):l}return c.v=l,l}return i.clearCache=()=>{n=jb(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function VR(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()),xU(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=Bv,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=uj(l),h=uj(f),m=zU(e),y=c((function(){return r++,i.apply(null,arguments)}),...p),g=u((function(){a++;const e=TU(m,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,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 Sr=VR(Bv),MU=Object.assign(((e,t=Sr)=>{PU(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:()=>MU}),DU=(...e)=>{const t=VR(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Ic(e)?WR(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};DU(Bv);var HU=e=>e&&"function"==typeof e.match;function wr(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(uo(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=>IR(t)&&t.type===e,n}function pj(e){return Bc(e)?xy(e,(()=>{})):e}function fz(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(uo(10));const r=n.insert(t,e);return e.set(t,r),r}var fv="RTK_autoBatch",Ug=()=>e=>({payload:e,meta:{[fv]:!0}});function QR(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(uo(28));if(r in t)throw new Error(uo(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 SU(e){return"function"==typeof e}function EU(e,t){let n,[r,a,o]=QR(t);if(SU(e))n=()=>pj(e());else{const t=pj(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(Ic(e)){const r=n(e,t);return void 0===r?e:r}if(Bc(e))return xy(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(uo(9))}return r}}return e}),e)}return i.getInitialState=n,i}var AU="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hw=(e=21)=>{let t="",n=e;for(;n--;)t+=AU[64*Math.random()|0];return t},qR=(e,t)=>HU(e)?e.match(t):e(t);function up(...e){return t=>e.some((e=>qR(e,t)))}function Pv(...e){return t=>e.every((e=>qR(e,t)))}function Sw(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 Py(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function I8(...e){return 0===e.length?e=>Sw(e,["pending"]):Py(e)?t=>up(...e.map((e=>e.pending)))(t):I8()(e[0])}function v1(...e){return 0===e.length?e=>Sw(e,["rejected"]):Py(e)?t=>up(...e.map((e=>e.rejected)))(t):v1()(e[0])}function Ew(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||Py(e)?n=>Pv(v1(...e),t)(n):Ew()(e[0])}function dp(...e){return 0===e.length?e=>Sw(e,["fulfilled"]):Py(e)?t=>up(...e.map((e=>e.fulfilled)))(t):dp()(e[0])}function lz(...e){return 0===e.length?e=>Sw(e,["pending","fulfilled","rejected"]):Py(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return up(...n)(t)}:lz()(e[0])}var RU=["name","message","stack","code"],Bx=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},hj=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},CU=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of RU)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},mj=(()=>{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||CU)(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):Hw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let y;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(LU(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=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}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Bx(e,t),fulfillWithValue:(e,t)=>new hj(e,t)})).then((t=>{if(t instanceof Bx)throw t;return t instanceof hj?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){y=t instanceof Bx?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(y)&&y.meta.condition||i(y),y}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(GU)})}}),{pending:a,rejected:o,fulfilled:r,settled:up(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function GU(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function LU(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var IU=Symbol.for("rtk-slice-createasyncthunk");function BU(e,t){return`${e}/${t}`}function XU({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[IU];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(uo(11));const a=("function"==typeof e.reducers?e.reducers(ZU()):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(uo(12));if(n in i.sliceCaseReducersByType)throw new Error(uo(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?QR(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return EU(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:BU(t,r),createNotation:"function"==typeof e.reducers};FU(o)?VU(i,o,s,n):WU(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=fz(u,n,{insert:()=>new WeakMap});return fz(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=YU(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 YU(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 ua=XU();function ZU(){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 WU({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!UU(r))throw new Error(uo(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 FU(e){return"asyncThunk"===e._reducerDefinitionType}function UU(e){return"reducerWithPrepare"===e._reducerDefinitionType}function VU({type:e,reducerName:t},n,r,a){if(!a)throw new Error(uo(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||Nb,pending:s||Nb,rejected:c||Nb,settled:l||Nb})}function Nb(){}var QU=(e,t)=>{if("function"!=typeof e)throw new Error(uo(32))},B8="listenerMiddleware",qU=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(uo(21));return QU(o),{predicate:a,type:t,effect:o}},JU=Object.assign((e=>{const{type:t,predicate:n,effect:r}=qU(e);return{id:Hw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(uo(22))}}}),{withTypes:()=>JU}),KU=Object.assign(wr(`${B8}/add`),{withTypes:()=>KU});wr(`${B8}/removeAll`);var _U=Object.assign(wr(`${B8}/remove`),{withTypes:()=>_U}),$U=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,eV=e=>e.flatMap((e=>$U(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),X8=Symbol.for("rtk-state-proxy-original"),tV=e=>!!e&&!!e[X8],nV=new WeakMap,rV=(e,t)=>fz(nV,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===X8)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:Hw()});if(typeof t>"u")throw new Error(uo(24));return t}}return a}})}),aV=e=>{if(!tV(e))throw new Error(uo(25));return e[X8]},oV=(e={})=>e;function sV(...e){const t=Object.fromEntries(eV(e)),n=()=>Object.keys(t).length?LR(t):oV;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(rV(n?n(r,...a):r,t),...a)}}),{original:aV});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 uo(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 iV={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:"2c62a791458255c2",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.911",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:"3780",APP_NAME:"@wellesley/auth"},JR=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(JR||{});function cV(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function fV(e){return new RegExp("(^|:)//").test(e)}var lV=e=>e.replace(/\/$/,""),uV=e=>e.replace(/^\//,"");function dV(e,t){if(!e)return t;if(!t)return e;if(fV(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=lV(e)}${n}${t=uV(t)}`}var gj=e=>[].concat(...e);function pV(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function hV(){return typeof document>"u"||"hidden"!==document.visibilityState}var vj=lp;function KR(e,t){if(e===t||!(vj(e)&&vj(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]=KR(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var yj=(...e)=>fetch(...e),mV=e=>e.status>=200&&e.status<=299,gV=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function bj(e){if(!lp(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function vV({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=yj,paramsSerializer:r,isJsonContentType:a=gV,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===yj&&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:y,endpoint:g,forced:v,type:b}=p;let w,{url:k,headers:x=new Headers(u.headers),params:z,responseHandler:P=c??"json",validateStatus:O=l??mV,timeout:j=s,...T}="string"==typeof d?{url:d}:d,N={...u,signal:h,...T};x=new Headers(bj(x)),N.headers=await t(x,{getState:m,extra:y,endpoint:g,forced:v,type:b})||x;const M=e=>"object"==typeof e&&(lp(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(bj(z)))}k=dV(e,k);const D=new Request(k,N);w={request:new Request(k,N)};let H,A=!1,E=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{E&&clearTimeout(E)}const G=H.clone();w.response=G;let S,R="";try{let e;if(await Promise.all([f(H,P).then((e=>S=e),(t=>e=t)),G.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 wj=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Y8=wr("__rtkq/focused"),_R=wr("__rtkq/unfocused"),Z8=wr("__rtkq/online"),$R=wr("__rtkq/offline");function eC(e){return"query"===e.type}function yV(e){return"mutation"===e.type}function W8(e,t,n,r,a,o){return bV(e)?e(t,n,r,a).map(uz).map(o):Array.isArray(e)?e.map(uz).map(o):[]}function bV(e){return"function"==typeof e}function uz(e){return"string"==typeof e?{type:e}:e}function xj(e){return null!=e}function i1(e){let t=0;for(const n in e)t++;return t}function wV(e,t){return e.catch(t)}var Xv=Symbol("forceQueryFn"),dz=e=>"function"==typeof e[Xv];function xV({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,[Xv]:p,...h}={})=>(m,y)=>{var g;const v=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:v,[Xv]:p}),w=r.endpoints[n].select(c),k=m(b),x=w(y()),{requestId:z,abort:P}=k,O=x.requestId!==z,j=null==(g=o.get(m))?void 0:g[v],T=()=>w(y()),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:v,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:v,requestId:z}))},updateSubscriptionOptions(e){N.subscriptionOptions=e,m(l({endpointName:n,requestId:z,queryCacheKey:v,options:e}))}});if(!j&&!O&&!p){const e=o.get(m)||{};e[v]=N,o.set(m,e),N.then((()=>{delete e[v],i1(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=wV(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}))}}),y=i.get(o)||{};return i.set(o,y),y[f]=m,m.then((()=>{delete y[f],i1(y)||i.delete(o)})),a&&(y[a]=m,m.then((()=>{y[a]===m&&(delete y[a],i1(y)||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(xj)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(xj)}}}function Pj(e){return e}function PV({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=Pj;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[Xv]: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"&&iV.NODE_ENV,n.error)throw new wj(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[fv]:!0})}catch(t){let n=t;if(n instanceof wj){let t=Pj;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[fv]:!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=mj(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[fv]:!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!!dz(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||eC(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=mj(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[fv]:!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(Bc(s.data)){const[e,t,r]=UR(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,[Xv]:()=>({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=W8(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:Pv(I8(e),u(t)),matchFulfilled:Pv(dp(e),u(t)),matchRejected:Pv(v1(e),u(t))}}}}function tC(e,t,n,r){return W8(n[e.meta.arg.endpointName][t],dp(e)?e.payload:void 0,Ew(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Mb(e,t,n){const r=e[t];r&&n(r)}function Yv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function kj(e,t,n){const r=e[Yv(t)];r&&n(r)}var Vg={};function kV({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=ua({name:`${e}/queries`,initialState:Vg,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Ug()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Mb(e,t,(e=>{e.data=lj(e.data,n.concat())}))},prepare:Ug()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=dz(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Mb(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})=>{Mb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!dz(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=xy(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?KR(Ic(e.data)?uU(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})=>{Mb(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=ua({name:`${e}/mutations`,initialState:Vg,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Yv(t);n in e&&delete e[n]},prepare:Ug()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[Yv(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&kj(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&&kj(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=ua({name:`${e}/invalidation`,initialState:Vg,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:Ug()}},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(up(dp(t),Ew(t)),((e,t)=>{const n=tC(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=ua({name:`${e}/subscriptions`,initialState:Vg,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=ua({name:`${e}/internalSubscriptions`,initialState:Vg,reducers:{subscriptionsUpdated:{reducer:(e,t)=>lj(e,t.payload),prepare:Ug()}}}),m=ua({name:`${e}/config`,initialState:{online:pV(),focused:hV(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(Z8,(e=>{e.online=!0})).addCase($R,(e=>{e.online=!1})).addCase(Y8,(e=>{e.focused=!0})).addCase(_R,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=LR({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>y(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var Fh=Symbol.for("RTKQ/skipToken"),nC={status:"uninitialized"},zj=xy(nC,(()=>{})),Tj=xy(nC,(()=>{}));function zV({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>zj,a=e=>Tj;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===Fh?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??zj},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Yv(e)??Fh:e,n(t===Fh?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??Tj},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(uz)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:gj(Object.values(t)))??[];for(const e of n)a.add(e)}return gj(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,...cV(e.status)}}function i(e){return e[t]}}var B0=WeakMap?new WeakMap:void 0,Oj=({endpointName:e,queryArgs:t})=>{let n="";const r=null==B0?void 0:B0.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>lp(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));lp(t)&&(null==B0||B0.set(t,e)),n=e}return`${e}(${n})`};function TV(...e){return function(t){const n=Bv((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=Oj;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:Oj({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Hw(),extractRehydrationInfo:n,hasRehydrationInfo:Bv((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(uo(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 OV(e){for(let t in e)return!1;return!0}var jV=2147482.647,NV=({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&&!OV(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,jV));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)}}},MV=({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=up(dp(r),Ew(r)),f=up(dp(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===i1(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(tC(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(W8(e.payload,void 0,void 0,void 0,void 0,i),t)}},DV=({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)}()}},HV=({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===i1(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{Y8.match(e)&&i(t,"refetchOnFocus"),Z8.match(e)&&i(t,"refetchOnReconnect")}},jj=new Error("Promise never resolved before cacheEntryRemoved."),SV=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=lz(r),s=lz(a),c=dp(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 jj}))]);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},y=c(r,m);Promise.resolve(y).catch((e=>{if(e!==jj)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)?Yv(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()}},EV=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=I8(n,r),o=v1(n,r),i=dp(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]}}},AV=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},RV=({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=>i1(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]=UR(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 CV(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=[AV,NV,MV,DV,SV,EV];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=RV(u),p=HV(u);return e=>c=>{if(!IR(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 y;if(y=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 y}},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 Qd(e,...t){return Object.assign(e,...t)}var Nj=Symbol(),GV=({createSelector:e=Sr}={})=>({name:Nj,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){wU();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:Z8,onOffline:$R,onFocus:Y8,onFocusLost:_R},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:b}=PV({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:w,actions:k}=kV({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});Qd(t.util,{patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:k.resetApiState}),Qd(t.internalActions,k);const{middleware:x,actions:z}=CV({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});Qd(t.util,z),Qd(t,{reducer:w,middleware:x});const{buildQuerySelector:P,buildMutationSelector:O,selectInvalidatedBy:j,selectCachedArgsForQuery:T}=zV({serializeQueryArgs:o,reducerPath:a,createSelector:e});Qd(t.util,{selectInvalidatedBy:j,selectCachedArgsForQuery:T});const{buildInitiateQuery:N,buildInitiateMutation:M,getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueriesThunk:A,getRunningQueryThunk:E}=xV({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return Qd(t.util,{getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueryThunk:E,getRunningQueriesThunk:A}),{name:Nj,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),eC(n)?Qd(a.endpoints[e],{name:e,select:P(e,n),initiate:N(e,n)},b(p,e)):yV(n)&&Qd(a.endpoints[e],{name:e,select:O(),initiate:M(e)},b(h,e))}}}}),Xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mj,Dj,Xx={exports:{}},qt={};
1
+ var oU=Object.defineProperty,sU=(e,t,n)=>t in e?oU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mn=(e,t,n)=>sU(e,"symbol"!=typeof t?t+"":t,n);function iU(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 nz(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 Cx=()=>Math.random().toString(36).substring(7).split("").join("."),cU={INIT:`@@redux/INIT${Cx()}`,REPLACE:`@@redux/REPLACE${Cx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cx()}`},oj=cU;function lp(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 fU(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:oj.INIT})>"u")throw new Error(nz(12));if(typeof n(void 0,{type:oj.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nz(13))}))}function LR(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{fU(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(nz(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function IR(e){return lp(e)&&"type"in e&&"string"==typeof e.type}var C8=Symbol.for("immer-nothing"),xv=Symbol.for("immer-draftable"),zs=Symbol.for("immer-state");function fo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var _h=Object.getPrototypeOf;function Ic(e){return!!e&&!!e[zs]}function Bc(e){var t;return!!e&&(BR(e)||Array.isArray(e)||!!e[xv]||!(null==(t=e.constructor)||!t[xv])||by(e)||wy(e))}var lU=Object.prototype.constructor.toString();function BR(e){if(!e||"object"!=typeof e)return!1;const t=_h(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)===lU}function uU(e){return Ic(e)||fo(15,e),e[zs].base_}function g1(e,t){0===$h(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function $h(e){const t=e[zs];return t?t.type_:Array.isArray(e)?1:by(e)?2:wy(e)?3:0}function Gv(e,t){return 2===$h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Gx(e,t){return 2===$h(e)?e.get(t):e[t]}function XR(e,t,n){const r=$h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function dU(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function by(e){return e instanceof Map}function wy(e){return e instanceof Set}function Yh(e){return e.copy_||e.base_}function rz(e,t){if(by(e))return new Map(e);if(wy(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&BR(e))return _h(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[zs];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(_h(e),n)}function G8(e,t=!1){return Dw(e)||Ic(e)||!Bc(e)||($h(e)>1&&(e.set=e.add=e.clear=e.delete=pU),Object.freeze(e),t&&g1(e,((e,t)=>G8(t,!0)))),e}function pU(){fo(2)}function Dw(e){return Object.isFrozen(e)}var Lv,az={};function em(e){const t=az[e];return t||fo(0,e),t}function hU(e,t){az[e]||(az[e]=t)}function YR(){return Lv}function mU(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function sj(e,t){t&&(em("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function oz(e){sz(e),e.drafts_.forEach(gU),e.drafts_=null}function sz(e){e===Lv&&(Lv=e.parent_)}function ij(e){return Lv=mU(Lv,e)}function gU(e){const t=e[zs];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function cj(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[zs].modified_&&(oz(t),fo(4)),Bc(e)&&(e=R3(t,e),t.parent_||C3(t,e)),t.patches_&&em("Patches").generateReplacementPatches_(n[zs].base_,e,t.patches_,t.inversePatches_)):e=R3(t,n,[]),oz(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==C8?e:void 0}function R3(e,t,n){if(Dw(t))return t;const r=t[zs];if(!r)return g1(t,((a,o)=>fj(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return C3(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),g1(a,((a,i)=>fj(e,r,t,a,i,n,o))),C3(e,t,!1),n&&e.patches_&&em("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function fj(e,t,n,r,a,o,i){if(Ic(a)){const i=R3(e,a,o&&t&&3!==t.type_&&!Gv(t.assigned_,r)?o.concat(r):void 0);if(XR(n,r,i),!Ic(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Bc(a)&&!Dw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;R3(e,a),(!t||!t.scope_.parent_)&&C3(e,a)}}function C3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&G8(t,n)}function vU(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:YR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=L8;n&&(a=[r],o=Iv);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var L8={get(e,t){if(t===zs)return e;const n=Yh(e);if(!Gv(n,t))return yU(e,n,t);const r=n[t];return e.finalized_||!Bc(r)?r:r===Lx(e.base_,t)?(Ix(e),e.copy_[t]=cz(r,e)):r},has:(e,t)=>t in Yh(e),ownKeys:e=>Reflect.ownKeys(Yh(e)),set(e,t,n){const r=ZR(Yh(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Lx(Yh(e),t),a=null==r?void 0:r[zs];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(dU(n,r)&&(void 0!==n||Gv(e.base_,t)))return!0;Ix(e),iz(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!==Lx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Ix(e),iz(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Yh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){fo(11)},getPrototypeOf:e=>_h(e.base_),setPrototypeOf(){fo(12)}},Iv={};function Lx(e,t){const n=e[zs];return(n?Yh(n):e)[t]}function yU(e,t,n){var r;const a=ZR(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function ZR(e,t){if(!(t in e))return;let n=_h(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=_h(n)}}function iz(e){e.modified_||(e.modified_=!0,e.parent_&&iz(e.parent_))}function Ix(e){e.copy_||(e.copy_=rz(e.base_,e.scope_.immer_.useStrictShallowCopy_))}g1(L8,((e,t)=>{Iv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Iv.deleteProperty=function(e,t){return Iv.set.call(this,e,t,void 0)},Iv.set=function(e,t,n){return L8.set.call(this,e[0],t,n,e[0])};var bU=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&&fo(6),void 0!==n&&"function"!=typeof n&&fo(7),Bc(e)){const a=ij(this),o=cz(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?oz(a):sz(a)}return sj(a,n),cj(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===C8&&(r=void 0),this.autoFreeze_&&G8(r,!0),n){const t=[],a=[];em("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}fo(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){Bc(e)||fo(8),Ic(e)&&(e=WR(e));const t=ij(this),n=cz(e,void 0);return n[zs].isManual_=!0,sz(t),n}finishDraft(e,t){const n=e&&e[zs];(!n||!n.isManual_)&&fo(9);const{scope_:r}=n;return sj(r,t),cj(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=em("Patches").applyPatches_;return Ic(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function cz(e,t){const n=by(e)?em("MapSet").proxyMap_(e,t):wy(e)?em("MapSet").proxySet_(e,t):vU(e,t);return(t?t.scope_:YR()).drafts_.push(n),n}function WR(e){return Ic(e)||fo(10,e),FR(e)}function FR(e){if(!Bc(e)||Dw(e))return e;const t=e[zs];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=rz(e,t.scope_.immer_.useStrictShallowCopy_)}else n=rz(e,!0);return g1(n,((e,t)=>{XR(n,e,FR(t))})),t&&(t.finalized_=!1),n}function wU(){const e="replace",t="remove";function n(e){if(!Bc(e))return e;if(Array.isArray(e))return e.map(n);if(by(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(wy(e))return new Set(Array.from(e).map(n));const t=Object.create(_h(e));for(const r in e)t[r]=n(e[r]);return Gv(e,xv)&&(t[xv]=e[xv]),t}function r(e){return Ic(e)?n(e):e}hU("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=$h(s);let n=o[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&fo(19),"function"==typeof s&&"prototype"===n&&fo(19),s=Gx(s,n),"object"!=typeof s&&fo(18,o.join("/"))}const c=$h(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:fo(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:fo(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;g1(n.assigned_,((n,l)=>{const u=Gx(s,n),f=Gx(c,n),d=l?Gv(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===C8?void 0:n}),a.push({op:e,path:[],value:t})}})}var ti=new bU,xy=ti.produce,UR=ti.produceWithPatches.bind(ti);ti.setAutoFreeze.bind(ti),ti.setUseStrictShallowCopy.bind(ti);var lj=ti.applyPatches.bind(ti);function xU(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function PU(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function kU(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}]`)}}ti.createDraft.bind(ti),ti.finishDraft.bind(ti);var uj=e=>Array.isArray(e)?e:[e];function zU(e){const t=Array.isArray(e[0])?e[0]:e;return kU(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function TU(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var OU=class{constructor(e){this.value=e}deref(){return this.value}},jU=typeof WeakRef<"u"?WeakRef:OU,NU=0,dj=1;function jb(){return{s:NU,v:void 0,o:null,p:null}}function Bv(e,t={}){let n=jb();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=jb(),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=jb(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===dj?l=i.v:(l=e.apply(null,arguments),o++),c.s=dj,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 jU(l):l}return c.v=l,l}return i.clearCache=()=>{n=jb(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function VR(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()),xU(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=Bv,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=uj(l),h=uj(f),m=zU(e),y=c((function(){return r++,i.apply(null,arguments)}),...p),g=u((function(){a++;const e=TU(m,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,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 Sr=VR(Bv),MU=Object.assign(((e,t=Sr)=>{PU(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:()=>MU}),DU=(...e)=>{const t=VR(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Ic(e)?WR(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};DU(Bv);var HU=e=>e&&"function"==typeof e.match;function wr(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(uo(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=>IR(t)&&t.type===e,n}function pj(e){return Bc(e)?xy(e,(()=>{})):e}function fz(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(uo(10));const r=n.insert(t,e);return e.set(t,r),r}var fv="RTK_autoBatch",Ug=()=>e=>({payload:e,meta:{[fv]:!0}});function QR(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(uo(28));if(r in t)throw new Error(uo(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 SU(e){return"function"==typeof e}function EU(e,t){let n,[r,a,o]=QR(t);if(SU(e))n=()=>pj(e());else{const t=pj(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(Ic(e)){const r=n(e,t);return void 0===r?e:r}if(Bc(e))return xy(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(uo(9))}return r}}return e}),e)}return i.getInitialState=n,i}var AU="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hw=(e=21)=>{let t="",n=e;for(;n--;)t+=AU[64*Math.random()|0];return t},qR=(e,t)=>HU(e)?e.match(t):e(t);function up(...e){return t=>e.some((e=>qR(e,t)))}function Pv(...e){return t=>e.every((e=>qR(e,t)))}function Sw(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 Py(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function I8(...e){return 0===e.length?e=>Sw(e,["pending"]):Py(e)?t=>up(...e.map((e=>e.pending)))(t):I8()(e[0])}function v1(...e){return 0===e.length?e=>Sw(e,["rejected"]):Py(e)?t=>up(...e.map((e=>e.rejected)))(t):v1()(e[0])}function Ew(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||Py(e)?n=>Pv(v1(...e),t)(n):Ew()(e[0])}function dp(...e){return 0===e.length?e=>Sw(e,["fulfilled"]):Py(e)?t=>up(...e.map((e=>e.fulfilled)))(t):dp()(e[0])}function lz(...e){return 0===e.length?e=>Sw(e,["pending","fulfilled","rejected"]):Py(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return up(...n)(t)}:lz()(e[0])}var RU=["name","message","stack","code"],Bx=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},hj=class{constructor(e,t){Mn(this,"_type"),this.payload=e,this.meta=t}},CU=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of RU)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},mj=(()=>{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||CU)(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):Hw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let y;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if(LU(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=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}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Bx(e,t),fulfillWithValue:(e,t)=>new hj(e,t)})).then((t=>{if(t instanceof Bx)throw t;return t instanceof hj?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){y=t instanceof Bx?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(y)&&y.meta.condition||i(y),y}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(GU)})}}),{pending:a,rejected:o,fulfilled:r,settled:up(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function GU(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function LU(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var IU=Symbol.for("rtk-slice-createasyncthunk");function BU(e,t){return`${e}/${t}`}function XU({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[IU];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(uo(11));const a=("function"==typeof e.reducers?e.reducers(ZU()):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(uo(12));if(n in i.sliceCaseReducersByType)throw new Error(uo(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?QR(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return EU(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:BU(t,r),createNotation:"function"==typeof e.reducers};FU(o)?VU(i,o,s,n):WU(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=fz(u,n,{insert:()=>new WeakMap});return fz(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=YU(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 YU(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 ua=XU();function ZU(){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 WU({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!UU(r))throw new Error(uo(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 FU(e){return"asyncThunk"===e._reducerDefinitionType}function UU(e){return"reducerWithPrepare"===e._reducerDefinitionType}function VU({type:e,reducerName:t},n,r,a){if(!a)throw new Error(uo(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||Nb,pending:s||Nb,rejected:c||Nb,settled:l||Nb})}function Nb(){}var QU=(e,t)=>{if("function"!=typeof e)throw new Error(uo(32))},B8="listenerMiddleware",qU=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(uo(21));return QU(o),{predicate:a,type:t,effect:o}},JU=Object.assign((e=>{const{type:t,predicate:n,effect:r}=qU(e);return{id:Hw(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(uo(22))}}}),{withTypes:()=>JU}),KU=Object.assign(wr(`${B8}/add`),{withTypes:()=>KU});wr(`${B8}/removeAll`);var _U=Object.assign(wr(`${B8}/remove`),{withTypes:()=>_U}),$U=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,eV=e=>e.flatMap((e=>$U(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),X8=Symbol.for("rtk-state-proxy-original"),tV=e=>!!e&&!!e[X8],nV=new WeakMap,rV=(e,t)=>fz(nV,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===X8)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:Hw()});if(typeof t>"u")throw new Error(uo(24));return t}}return a}})}),aV=e=>{if(!tV(e))throw new Error(uo(25));return e[X8]},oV=(e={})=>e;function sV(...e){const t=Object.fromEntries(eV(e)),n=()=>Object.keys(t).length?LR(t):oV;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(rV(n?n(r,...a):r,t),...a)}}),{original:aV});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 uo(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 iV={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:"521a23575e26e5b7",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.913",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:"3782",APP_NAME:"@wellesley/auth"},JR=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(JR||{});function cV(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function fV(e){return new RegExp("(^|:)//").test(e)}var lV=e=>e.replace(/\/$/,""),uV=e=>e.replace(/^\//,"");function dV(e,t){if(!e)return t;if(!t)return e;if(fV(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=lV(e)}${n}${t=uV(t)}`}var gj=e=>[].concat(...e);function pV(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function hV(){return typeof document>"u"||"hidden"!==document.visibilityState}var vj=lp;function KR(e,t){if(e===t||!(vj(e)&&vj(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]=KR(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var yj=(...e)=>fetch(...e),mV=e=>e.status>=200&&e.status<=299,gV=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function bj(e){if(!lp(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function vV({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=yj,paramsSerializer:r,isJsonContentType:a=gV,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===yj&&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:y,endpoint:g,forced:v,type:b}=p;let w,{url:k,headers:x=new Headers(u.headers),params:z,responseHandler:P=c??"json",validateStatus:O=l??mV,timeout:j=s,...T}="string"==typeof d?{url:d}:d,N={...u,signal:h,...T};x=new Headers(bj(x)),N.headers=await t(x,{getState:m,extra:y,endpoint:g,forced:v,type:b})||x;const M=e=>"object"==typeof e&&(lp(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(bj(z)))}k=dV(e,k);const D=new Request(k,N);w={request:new Request(k,N)};let H,A=!1,E=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{E&&clearTimeout(E)}const G=H.clone();w.response=G;let S,R="";try{let e;if(await Promise.all([f(H,P).then((e=>S=e),(t=>e=t)),G.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 wj=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Y8=wr("__rtkq/focused"),_R=wr("__rtkq/unfocused"),Z8=wr("__rtkq/online"),$R=wr("__rtkq/offline");function eC(e){return"query"===e.type}function yV(e){return"mutation"===e.type}function W8(e,t,n,r,a,o){return bV(e)?e(t,n,r,a).map(uz).map(o):Array.isArray(e)?e.map(uz).map(o):[]}function bV(e){return"function"==typeof e}function uz(e){return"string"==typeof e?{type:e}:e}function xj(e){return null!=e}function i1(e){let t=0;for(const n in e)t++;return t}function wV(e,t){return e.catch(t)}var Xv=Symbol("forceQueryFn"),dz=e=>"function"==typeof e[Xv];function xV({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,[Xv]:p,...h}={})=>(m,y)=>{var g;const v=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:v,[Xv]:p}),w=r.endpoints[n].select(c),k=m(b),x=w(y()),{requestId:z,abort:P}=k,O=x.requestId!==z,j=null==(g=o.get(m))?void 0:g[v],T=()=>w(y()),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:v,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:v,requestId:z}))},updateSubscriptionOptions(e){N.subscriptionOptions=e,m(l({endpointName:n,requestId:z,queryCacheKey:v,options:e}))}});if(!j&&!O&&!p){const e=o.get(m)||{};e[v]=N,o.set(m,e),N.then((()=>{delete e[v],i1(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=wV(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}))}}),y=i.get(o)||{};return i.set(o,y),y[f]=m,m.then((()=>{delete y[f],i1(y)||i.delete(o)})),a&&(y[a]=m,m.then((()=>{y[a]===m&&(delete y[a],i1(y)||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(xj)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(xj)}}}function Pj(e){return e}function PV({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=Pj;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[Xv]: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"&&iV.NODE_ENV,n.error)throw new wj(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[fv]:!0})}catch(t){let n=t;if(n instanceof wj){let t=Pj;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[fv]:!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=mj(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[fv]:!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!!dz(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||eC(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=mj(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[fv]:!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(Bc(s.data)){const[e,t,r]=UR(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,[Xv]:()=>({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=W8(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:Pv(I8(e),u(t)),matchFulfilled:Pv(dp(e),u(t)),matchRejected:Pv(v1(e),u(t))}}}}function tC(e,t,n,r){return W8(n[e.meta.arg.endpointName][t],dp(e)?e.payload:void 0,Ew(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Mb(e,t,n){const r=e[t];r&&n(r)}function Yv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function kj(e,t,n){const r=e[Yv(t)];r&&n(r)}var Vg={};function kV({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=ua({name:`${e}/queries`,initialState:Vg,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Ug()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Mb(e,t,(e=>{e.data=lj(e.data,n.concat())}))},prepare:Ug()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=dz(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Mb(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})=>{Mb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!dz(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=xy(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?KR(Ic(e.data)?uU(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})=>{Mb(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=ua({name:`${e}/mutations`,initialState:Vg,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Yv(t);n in e&&delete e[n]},prepare:Ug()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[Yv(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&kj(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&&kj(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=ua({name:`${e}/invalidation`,initialState:Vg,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:Ug()}},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(up(dp(t),Ew(t)),((e,t)=>{const n=tC(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=ua({name:`${e}/subscriptions`,initialState:Vg,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=ua({name:`${e}/internalSubscriptions`,initialState:Vg,reducers:{subscriptionsUpdated:{reducer:(e,t)=>lj(e,t.payload),prepare:Ug()}}}),m=ua({name:`${e}/config`,initialState:{online:pV(),focused:hV(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(Z8,(e=>{e.online=!0})).addCase($R,(e=>{e.online=!1})).addCase(Y8,(e=>{e.focused=!0})).addCase(_R,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=LR({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>y(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var Fh=Symbol.for("RTKQ/skipToken"),nC={status:"uninitialized"},zj=xy(nC,(()=>{})),Tj=xy(nC,(()=>{}));function zV({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>zj,a=e=>Tj;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===Fh?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??zj},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Yv(e)??Fh:e,n(t===Fh?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??Tj},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(uz)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:gj(Object.values(t)))??[];for(const e of n)a.add(e)}return gj(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,...cV(e.status)}}function i(e){return e[t]}}var B0=WeakMap?new WeakMap:void 0,Oj=({endpointName:e,queryArgs:t})=>{let n="";const r=null==B0?void 0:B0.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>lp(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));lp(t)&&(null==B0||B0.set(t,e)),n=e}return`${e}(${n})`};function TV(...e){return function(t){const n=Bv((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=Oj;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:Oj({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Hw(),extractRehydrationInfo:n,hasRehydrationInfo:Bv((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(uo(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 OV(e){for(let t in e)return!1;return!0}var jV=2147482.647,NV=({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&&!OV(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,jV));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)}}},MV=({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=up(dp(r),Ew(r)),f=up(dp(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===i1(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(tC(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(W8(e.payload,void 0,void 0,void 0,void 0,i),t)}},DV=({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)}()}},HV=({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===i1(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{Y8.match(e)&&i(t,"refetchOnFocus"),Z8.match(e)&&i(t,"refetchOnReconnect")}},jj=new Error("Promise never resolved before cacheEntryRemoved."),SV=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=lz(r),s=lz(a),c=dp(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 jj}))]);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},y=c(r,m);Promise.resolve(y).catch((e=>{if(e!==jj)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)?Yv(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()}},EV=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=I8(n,r),o=v1(n,r),i=dp(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]}}},AV=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},RV=({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=>i1(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]=UR(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 CV(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=[AV,NV,MV,DV,SV,EV];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=RV(u),p=HV(u);return e=>c=>{if(!IR(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 y;if(y=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 y}},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 Qd(e,...t){return Object.assign(e,...t)}var Nj=Symbol(),GV=({createSelector:e=Sr}={})=>({name:Nj,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){wU();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:Z8,onOffline:$R,onFocus:Y8,onFocusLost:_R},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:b}=PV({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:w,actions:k}=kV({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});Qd(t.util,{patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:k.resetApiState}),Qd(t.internalActions,k);const{middleware:x,actions:z}=CV({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});Qd(t.util,z),Qd(t,{reducer:w,middleware:x});const{buildQuerySelector:P,buildMutationSelector:O,selectInvalidatedBy:j,selectCachedArgsForQuery:T}=zV({serializeQueryArgs:o,reducerPath:a,createSelector:e});Qd(t.util,{selectInvalidatedBy:j,selectCachedArgsForQuery:T});const{buildInitiateQuery:N,buildInitiateMutation:M,getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueriesThunk:A,getRunningQueryThunk:E}=xV({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return Qd(t.util,{getRunningMutationThunk:D,getRunningMutationsThunk:H,getRunningQueryThunk:E,getRunningQueriesThunk:A}),{name:Nj,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),eC(n)?Qd(a.endpoints[e],{name:e,select:P(e,n),initiate:N(e,n)},b(p,e)):yV(n)&&Qd(a.endpoints[e],{name:e,select:O(),initiate:M(e)},b(h,e))}}}}),Xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mj,Dj,Xx={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.911",
3
+ "version": "1.0.913",
4
4
  "license": "UNLICENSED",
5
5
  "main": "index.mjs",
6
6
  "files": [