@wellesley/uploads 1.0.731 → 1.0.733
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.
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var CL=Object.defineProperty,EL=(e,t,n)=>t in e?CL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z1=(e,t,n)=>EL(e,"symbol"!=typeof t?t+"":t,n);function PL(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 OS(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 U1=()=>Math.random().toString(36).substring(7).split("").join("."),RL={INIT:`@@redux/INIT${U1()}`,REPLACE:`@@redux/REPLACE${U1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${U1()}`},_C=RL;function gd(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 TL(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:_C.INIT})>"u")throw new Error(OS(12));if(typeof n(void 0,{type:_C.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(OS(13))}))}function iO(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{TL(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const s=r[o],u=n[s],l=e[s],c=u(l,t);if(typeof c>"u")throw t&&t.type,new Error(OS(14));a[s]=c,i=i||c!==l}return i=i||r.length!==Object.keys(e).length,i?a:e}}function aO(e){return gd(e)&&"type"in e&&"string"==typeof e.type}var S_=Symbol.for("immer-nothing"),cv=Symbol.for("immer-draftable"),Si=Symbol.for("immer-state");function _o(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Qf=Object.getPrototypeOf;function ws(e){return!!e&&!!e[Si]}function bs(e){var t;return!!e&&(sO(e)||Array.isArray(e)||!!e[cv]||!(null==(t=e.constructor)||!t[cv])||Vv(e)||jv(e))}var ML=Object.prototype.constructor.toString();function sO(e){if(!e||"object"!=typeof e)return!1;const t=Qf(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)===ML}function OL(e){return ws(e)||_o(15,e),e[Si].base_}function jh(e,t){0===Kf(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function Kf(e){const t=e[Si];return t?t.type_:Array.isArray(e)?1:Vv(e)?2:jv(e)?3:0}function wv(e,t){return 2===Kf(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function G1(e,t){return 2===Kf(e)?e.get(t):e[t]}function uO(e,t,n){const r=Kf(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function DL(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Vv(e){return e instanceof Map}function jv(e){return e instanceof Set}function Ff(e){return e.copy_||e.base_}function DS(e,t){if(Vv(e))return new Map(e);if(jv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&sO(e))return Qf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Si];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Qf(e),n)}function __(e,t=!1){return _y(e)||ws(e)||!bs(e)||(Kf(e)>1&&(e.set=e.add=e.clear=e.delete=$L),Object.freeze(e),t&&jh(e,((e,t)=>__(t,!0)))),e}function $L(){_o(2)}function _y(e){return Object.isFrozen(e)}var bv,$S={};function Yf(e){const t=$S[e];return t||_o(0,e),t}function NL(e,t){$S[e]||($S[e]=t)}function lO(){return bv}function kL(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function IC(e,t){t&&(Yf("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function NS(e){kS(e),e.drafts_.forEach(LL),e.drafts_=null}function kS(e){e===bv&&(bv=e.parent_)}function CC(e){return bv=kL(bv,e)}function LL(e){const t=e[Si];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function EC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Si].modified_&&(NS(t),_o(4)),bs(e)&&(e=ay(t,e),t.parent_||sy(t,e)),t.patches_&&Yf("Patches").generateReplacementPatches_(n[Si].base_,e,t.patches_,t.inversePatches_)):e=ay(t,n,[]),NS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==S_?e:void 0}function ay(e,t,n){if(_y(t))return t;const r=t[Si];if(!r)return jh(t,((o,i)=>PC(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return sy(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),jh(o,((o,a)=>PC(e,r,t,o,a,n,i))),sy(e,t,!1),n&&e.patches_&&Yf("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function PC(e,t,n,r,o,i,a){if(ws(o)){const a=ay(e,o,i&&t&&3!==t.type_&&!wv(t.assigned_,r)?i.concat(r):void 0);if(uO(n,r,a),!ws(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(bs(o)&&!_y(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ay(e,o),(!t||!t.scope_.parent_)&&sy(e,o)}}function sy(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&__(t,n)}function BL(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:lO(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=I_;n&&(o=[r],i=xv);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var I_={get(e,t){if(t===Si)return e;const n=Ff(e);if(!wv(n,t))return VL(e,n,t);const r=n[t];return e.finalized_||!bs(r)?r:r===W1(e.base_,t)?(H1(e),e.copy_[t]=BS(r,e)):r},has:(e,t)=>t in Ff(e),ownKeys:e=>Reflect.ownKeys(Ff(e)),set(e,t,n){const r=cO(Ff(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=W1(Ff(e),t),o=null==r?void 0:r[Si];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(DL(n,r)&&(void 0!==n||wv(e.base_,t)))return!0;H1(e),LS(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!==W1(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,H1(e),LS(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Ff(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){_o(11)},getPrototypeOf:e=>Qf(e.base_),setPrototypeOf(){_o(12)}},xv={};function W1(e,t){const n=e[Si];return(n?Ff(n):e)[t]}function VL(e,t,n){var r;const o=cO(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function cO(e,t){if(!(t in e))return;let n=Qf(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Qf(n)}}function LS(e){e.modified_||(e.modified_=!0,e.parent_&&LS(e.parent_))}function H1(e){e.copy_||(e.copy_=DS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}jh(I_,((e,t)=>{xv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xv.deleteProperty=function(e,t){return xv.set.call(this,e,t,void 0)},xv.set=function(e,t,n){return I_.set.call(this,e[0],t,n,e[0])};var jL=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,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&_o(6),void 0!==n&&"function"!=typeof n&&_o(7),bs(e)){const o=CC(this),i=BS(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?NS(o):kS(o)}return IC(o,n),EC(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===S_&&(r=void 0),this.autoFreeze_&&__(r,!0),n){const t=[],o=[];Yf("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}_o(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){bs(e)||_o(8),ws(e)&&(e=dO(e));const t=CC(this),n=BS(e,void 0);return n[Si].isManual_=!0,kS(t),n}finishDraft(e,t){const n=e&&e[Si];(!n||!n.isManual_)&&_o(9);const{scope_:r}=n;return IC(r,t),EC(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=Yf("Patches").applyPatches_;return ws(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function BS(e,t){const n=Vv(e)?Yf("MapSet").proxyMap_(e,t):jv(e)?Yf("MapSet").proxySet_(e,t):BL(e,t);return(t?t.scope_:lO()).drafts_.push(n),n}function dO(e){return ws(e)||_o(10,e),fO(e)}function fO(e){if(!bs(e)||_y(e))return e;const t=e[Si];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=DS(e,t.scope_.immer_.useStrictShallowCopy_)}else n=DS(e,!0);return jh(n,((e,t)=>{uO(n,e,fO(t))})),t&&(t.finalized_=!1),n}function FL(){const e="replace",t="remove";function n(e){if(!bs(e))return e;if(Array.isArray(e))return e.map(n);if(Vv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(jv(e))return new Set(Array.from(e).map(n));const t=Object.create(Qf(e));for(const r in e)t[r]=n(e[r]);return wv(e,cv)&&(t[cv]=e[cv]),t}function r(e){return ws(e)?n(e):e}NL("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:i,op:a}=o;let s=r;for(let e=0;e<i.length-1;e++){const t=Kf(s);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&_o(19),"function"==typeof s&&"prototype"===n&&_o(19),s=G1(s,n),"object"!=typeof s&&_o(18,i.join("/"))}const u=Kf(s),l=n(o.value),c=i[i.length-1];switch(a){case e:switch(u){case 2:return s.set(c,l);case 3:_o(16);default:return s[c]=l}case"add":switch(u){case 1:return"-"===c?s.push(l):s.splice(c,0,l);case 2:return s.set(c,l);case 3:return s.add(l);default:return s[c]=l}case t:switch(u){case 1:return s.splice(c,1);case 2:return s.delete(c);case 3:return s.delete(o.value);default:return delete s[c]}default:_o(17,a)}})),r},generatePatches_:function(n,o,i,a){switch(n.type_){case 0:case 2:return function(n,o,i,a){const{base_:s,copy_:u}=n;jh(n.assigned_,((n,l)=>{const c=G1(s,n),d=G1(u,n),f=l?wv(s,n)?e:"add":t;if(c===d&&f===e)return;const p=o.concat(n);i.push(f===t?{op:f,path:p}:{op:f,path:p,value:d}),a.push("add"===f?{op:t,path:p}:f===t?{op:"add",path:p,value:r(c)}:{op:e,path:p,value:r(c)})}))}(n,o,i,a);case 1:return function(n,o,i,a){let{base_:s,assigned_:u}=n,l=n.copy_;l.length<s.length&&([s,l]=[l,s],[i,a]=[a,i]);for(let t=0;t<s.length;t++)if(u[t]&&l[t]!==s[t]){const n=o.concat([t]);i.push({op:e,path:n,value:r(l[t])}),a.push({op:e,path:n,value:r(s[t])})}for(let e=s.length;e<l.length;e++){const t=o.concat([e]);i.push({op:"add",path:t,value:r(l[e])})}for(let e=l.length-1;s.length<=e;--e){const n=o.concat([e]);a.push({op:t,path:n})}}(n,o,i,a);case 3:return function(e,n,r,o){let{base_:i,copy_:a}=e,s=0;i.forEach((e=>{if(!a.has(e)){const i=n.concat([s]);r.push({op:t,path:i,value:e}),o.unshift({op:"add",path:i,value:e})}s++})),s=0,a.forEach((e=>{if(!i.has(e)){const i=n.concat([s]);r.push({op:"add",path:i,value:e}),o.unshift({op:t,path:i,value:e})}s++}))}(n,o,i,a)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===S_?void 0:n}),o.push({op:e,path:[],value:t})}})}var Zi=new jL,Fv=Zi.produce,pO=Zi.produceWithPatches.bind(Zi);Zi.setAutoFreeze.bind(Zi),Zi.setUseStrictShallowCopy.bind(Zi);var RC=Zi.applyPatches.bind(Zi);function zL(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function UL(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function GL(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}]`)}}Zi.createDraft.bind(Zi),Zi.finishDraft.bind(Zi);var TC=e=>Array.isArray(e)?e:[e];function WL(e){const t=Array.isArray(e[0])?e[0]:e;return GL(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function HL(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var qL=class{constructor(e){this.value=e}deref(){return this.value}},XL=typeof WeakRef<"u"?WeakRef:qL,QL=0,MC=1;function Tg(){return{s:QL,v:void 0,o:null,p:null}}function Av(e,t={}){let n=Tg();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var t;let a=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=a.o;null===e&&(a.o=e=new WeakMap);const n=e.get(t);void 0===n?(a=Tg(),e.set(t,a)):a=n}else{let e=a.p;null===e&&(a.p=e=new Map);const n=e.get(t);void 0===n?(a=Tg(),e.set(t,a)):a=n}}const u=a;let l;if(a.s===MC?l=a.v:(l=e.apply(null,arguments),i++),u.s=MC,r){const e=(null==(t=null==o?void 0:o.deref)?void 0:t.call(o))??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--),o="object"==typeof l&&null!==l||"function"==typeof l?new XL(l):l}return u.v=l,l}return a.clearCache=()=>{n=Tg(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function hO(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),zL(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...n,...i},{memoize:u,memoizeOptions:l=[],argsMemoize:c=Av,argsMemoizeOptions:d=[],devModeChecks:f={}}=s,p=TC(l),m=TC(d),v=WL(e),h=u((function(){return r++,a.apply(null,arguments)}),...p),y=c((function(){o++;const e=HL(v,arguments);return t=h.apply(null,e),t}),...m);return Object.assign(y,{resultFunc:a,memoizedResultFunc:h,dependencies:v,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var Jn=hO(Av),KL=Object.assign(((e,t=Jn)=>{UL(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:()=>KL}),YL=(...e)=>{const t=hO(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(ws(e)?dO(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};YL(Av);var JL=e=>e&&"function"==typeof e.match;function oo(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Io(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=>aO(t)&&t.type===e,n}function OC(e){return bs(e)?Fv(e,(()=>{})):e}function VS(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(Io(10));const r=n.insert(t,e);return e.set(t,r),r}var ov="RTK_autoBatch",Qm=()=>e=>({payload:e,meta:{[ov]:!0}});function mO(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Io(28));if(r in t)throw new Error(Io(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}function ZL(e){return"function"==typeof e}function e5(e,t){let n,[r,o,i]=mO(t);if(ZL(e))n=()=>OC(e());else{const t=OC(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[i]),a.reduce(((e,n)=>{if(n){if(ws(e)){const r=n(e,t);return void 0===r?e:r}if(bs(e))return Fv(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(Io(9))}return r}}return e}),e)}return a.getInitialState=n,a}var t5="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Iy=(e=21)=>{let t="",n=e;for(;n--;)t+=t5[64*Math.random()|0];return t},vO=(e,t)=>JL(e)?e.match(t):e(t);function yd(...e){return t=>e.some((e=>vO(e,t)))}function dv(...e){return t=>e.every((e=>vO(e,t)))}function Cy(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 zv(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function C_(...e){return 0===e.length?e=>Cy(e,["pending"]):zv(e)?t=>yd(...e.map((e=>e.pending)))(t):C_()(e[0])}function Fh(...e){return 0===e.length?e=>Cy(e,["rejected"]):zv(e)?t=>yd(...e.map((e=>e.rejected)))(t):Fh()(e[0])}function Ey(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||zv(e)?n=>dv(Fh(...e),t)(n):Ey()(e[0])}function wd(...e){return 0===e.length?e=>Cy(e,["fulfilled"]):zv(e)?t=>yd(...e.map((e=>e.fulfilled)))(t):wd()(e[0])}function jS(...e){return 0===e.length?e=>Cy(e,["pending","fulfilled","rejected"]):zv(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return yd(...n)(t)}:jS()(e[0])}var n5=["name","message","stack","code"],q1=class{constructor(e,t){z1(this,"_type"),this.payload=e,this.meta=t}},DC=class{constructor(e,t){z1(this,"_type"),this.payload=e,this.meta=t}},r5=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of n5)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},$C=(()=>{function e(e,t,n){const r=oo(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=oo(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),i=oo(e+"/rejected",((e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||r5)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(a,s,u)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):Iy(),c=new AbortController;let d,f;function p(e){f=e,c.abort()}const m=async function(){var m,v;let h;try{let i=null==(m=null==n?void 0:n.condition)?void 0:m.call(n,e,{getState:s,extra:u});if(i5(i)&&(i=await i),!1===i||c.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},c.signal.addEventListener("abort",d)}));a(o(l,e,null==(v=null==n?void 0:n.getPendingMeta)?void 0:v.call(n,{requestId:l,arg:e},{getState:s,extra:u}))),h=await Promise.race([y,Promise.resolve(t(e,{dispatch:a,getState:s,extra:u,requestId:l,signal:c.signal,abort:p,rejectWithValue:(e,t)=>new q1(e,t),fulfillWithValue:(e,t)=>new DC(e,t)})).then((t=>{if(t instanceof q1)throw t;return t instanceof DC?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){h=t instanceof q1?i(null,l,e,t.payload,t.meta):i(t,l,e)}finally{d&&c.signal.removeEventListener("abort",d)}return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||a(h),h}();return Object.assign(m,{abort:p,requestId:l,arg:e,unwrap:()=>m.then(o5)})}}),{pending:o,rejected:i,fulfilled:r,settled:yd(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function o5(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function i5(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var a5=Symbol.for("rtk-slice-createasyncthunk");function s5(e,t){return`${e}/${t}`}function u5({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[a5];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(Io(11));const o=("function"==typeof e.reducers?e.reducers(c5()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Io(12));if(n in a.sliceCaseReducersByType)throw new Error(Io(13));return a.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function u(){const[t={},n=[],r]="function"==typeof e.extraReducers?mO(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return e5(e.initialState,(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}i.forEach((r=>{const i=o[r],a={reducerName:r,type:s5(t,r),createNotation:"function"==typeof e.reducers};f5(i)?h5(a,i,s,n):d5(a,i,s)}));const l=e=>e,c=new Map;let d;function f(e,t){return d||(d=u()),d(e,t)}function p(){return d||(d=u()),d.getInitialState()}function m(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function o(t=l){const r=VS(c,n,{insert:()=>new WeakMap});return VS(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=l5(i,t,p,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const v={name:t,reducer:f,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:p,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:f},n),{...v,...m(o,!0)}}};return v}}function l5(e,t,n,r){function o(o,...i){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var ro=u5();function c5(){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 d5({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!p5(r))throw new Error(Io(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?oo(e,a):oo(e))}function f5(e){return"asyncThunk"===e._reducerDefinitionType}function p5(e){return"reducerWithPrepare"===e._reducerDefinitionType}function h5({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Io(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:u,settled:l,options:c}=n,d=o(e,i,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),u&&r.addCase(d.rejected,u),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:a||Mg,pending:s||Mg,rejected:u||Mg,settled:l||Mg})}function Mg(){}var m5=(e,t)=>{if("function"!=typeof e)throw new Error(Io(32))},E_="listenerMiddleware",v5=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=oo(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Io(21));return m5(i),{predicate:o,type:t,effect:i}},g5=Object.assign((e=>{const{type:t,predicate:n,effect:r}=v5(e);return{id:Iy(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Io(22))}}}),{withTypes:()=>g5}),y5=Object.assign(oo(`${E_}/add`),{withTypes:()=>y5});oo(`${E_}/removeAll`);var w5=Object.assign(oo(`${E_}/remove`),{withTypes:()=>w5}),b5=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,x5=e=>e.flatMap((e=>b5(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),P_=Symbol.for("rtk-state-proxy-original"),A5=e=>!!e&&!!e[P_],S5=new WeakMap,_5=(e,t)=>VS(S5,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===P_)return e;const o=Reflect.get(e,n,r);if(typeof o>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:Iy()});if(typeof t>"u")throw new Error(Io(24));return t}}return o}})}),I5=e=>{if(!A5(e))throw new Error(Io(25));return e[P_]},C5=(e={})=>e;function E5(...e){const t=Object.fromEntries(x5(e)),n=()=>Object.keys(t).length?iO(t):C5;let r=n();function o(e,t){return r(e,t)}o.withLazyLoadedSlices=()=>o;const i=Object.assign((function(e,n){return function(r,...o){return e(_5(n?n(r,...o):r,t),...o)}}),{original:I5});return Object.assign(o,{inject:(e,i={})=>{const{reducerPath:a,reducer:s}=e,u=t[a];return!i.overrideExisting&&u&&u!==s||(t[a]=s,r=n()),o},selector:i})}function Io(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 P5={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/uploads/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/uploads/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:"f961a438d56fd582",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/uploads",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.731",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/uploads",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/uploads",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3769",APP_NAME:"@wellesley/uploads"},gO=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(gO||{});function R5(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function T5(e){return new RegExp("(^|:)//").test(e)}var M5=e=>e.replace(/\/$/,""),O5=e=>e.replace(/^\//,"");function D5(e,t){if(!e)return t;if(!t)return e;if(T5(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=M5(e)}${n}${t=O5(t)}`}var NC=e=>[].concat(...e);function $5(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function N5(){return typeof document>"u"||"hidden"!==document.visibilityState}var kC=gd;function yO(e,t){if(e===t||!(kC(e)&&kC(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const r of n)i[r]=yO(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}var LC=(...e)=>fetch(...e),k5=e=>e.status>=200&&e.status<=299,L5=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function BC(e){if(!gd(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function B5({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=LC,paramsSerializer:r,isJsonContentType:o=L5,jsonContentType:i="application/json",jsonReplacer:a,timeout:s,responseHandler:u,validateStatus:l,...c}={}){return typeof fetch>"u"&&n===LC&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p)=>{const{signal:m,getState:v,extra:h,endpoint:y,forced:g,type:b}=p;let w,{url:A,headers:x=new Headers(c.headers),params:S,responseHandler:I=u??"json",validateStatus:E=l??k5,timeout:P=s,...C}="string"==typeof f?{url:f}:f,k={...c,signal:m,...C};x=new Headers(BC(x)),k.headers=await t(x,{getState:v,extra:h,endpoint:y,forced:g,type:b})||x;const _=e=>"object"==typeof e&&(gd(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!k.headers.has("content-type")&&_(k.body)&&k.headers.set("content-type",i),_(k.body)&&o(k.headers)&&(k.body=JSON.stringify(k.body,a)),S){const e=~A.indexOf("?")?"&":"?";A+=e+(r?r(S):new URLSearchParams(BC(S)))}A=D5(e,A);const R=new Request(A,k);w={request:new Request(A,k)};let M,T=!1,O=P&&setTimeout((()=>{T=!0,p.abort()}),P);try{M=await n(R)}catch(e){return{error:{status:T?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{O&&clearTimeout(O)}const N=M.clone();w.response=N;let z,D="";try{let e;if(await Promise.all([d(M,I).then((e=>z=e),(t=>e=t)),N.text().then((e=>D=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:M.status,data:D,error:String(e)},meta:w}}return E(M,z)?{data:z,meta:w}:{error:{status:M.status,data:z},meta:w}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var VC=class{constructor(e,t=void 0){this.value=e,this.meta=t}},R_=oo("__rtkq/focused"),wO=oo("__rtkq/unfocused"),T_=oo("__rtkq/online"),bO=oo("__rtkq/offline");function xO(e){return"query"===e.type}function V5(e){return"mutation"===e.type}function M_(e,t,n,r,o,i){return j5(e)?e(t,n,r,o).map(FS).map(i):Array.isArray(e)?e.map(FS).map(i):[]}function j5(e){return"function"==typeof e}function FS(e){return"string"==typeof e?{type:e}:e}function jC(e){return null!=e}function kh(e){let t=0;for(const n in e)t++;return t}function F5(e,t){return e.catch(t)}var Sv=Symbol("forceQueryFn"),zS=e=>"function"==typeof e[Sv];function z5({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:u,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(u,{subscribe:c=!0,forceRefetch:d,subscriptionOptions:f,[Sv]:p,...m}={})=>(v,h)=>{var y;const g=e({queryArgs:u,endpointDefinition:o,endpointName:n}),b=t({...m,type:"query",subscribe:c,forceRefetch:d,subscriptionOptions:f,endpointName:n,originalArgs:u,queryCacheKey:g,[Sv]:p}),w=r.endpoints[n].select(u),A=v(b),x=w(h()),{requestId:S,abort:I}=A,E=x.requestId!==S,P=null==(y=i.get(v))?void 0:y[g],C=()=>w(h()),k=Object.assign(p?A.then(C):E&&!P?Promise.resolve(x):Promise.all([P,A]).then(C),{arg:u,requestId:S,subscriptionOptions:f,queryCacheKey:g,abort:I,async unwrap(){const e=await k;if(e.isError)throw e.error;return e.data},refetch:()=>v(a(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){c&&v(s({queryCacheKey:g,requestId:S}))},updateSubscriptionOptions(e){k.subscriptionOptions=e,v(l({endpointName:n,requestId:S,queryCacheKey:g,options:e}))}});if(!P&&!E&&!p){const e=i.get(v)||{};e[g]=k,i.set(v,e),k.then((()=>{delete e[g],kh(e)||i.delete(v)}))}return k};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),c=i(l),{requestId:d,abort:f,unwrap:p}=c,m=F5(c.unwrap().then((e=>({data:e}))),(e=>({error:e}))),v=Object.assign(m,{arg:c.arg,requestId:d,abort:f,unwrap:p,reset:()=>{i(u({requestId:d,fixedCacheKey:o}))}}),h=a.get(i)||{};return a.set(i,h),h[d]=v,v.then((()=>{delete h[d],kh(h)||a.delete(i)})),o&&(h[o]=v,v.then((()=>{h[o]===v&&(delete h[o],kh(h)||a.delete(i))}))),v}},getRunningQueryThunk:function(t,n){return r=>{var a;const s=o.endpointDefinitions[t],u=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(a=i.get(r))?void 0:a[u]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=a.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(jC)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(jC)}}}function FC(e){return e}function U5({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:i}){const a=async(e,{signal:r,abort:o,rejectWithValue:i,fulfillWithValue:a,dispatch:u,getState:l,extra:c})=>{const d=n[e.endpointName];try{let n,i=FC;const f={signal:r,abort:o,dispatch:u,getState:l,extra:c,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[Sv]:void 0;if(p?n=p():d.query?(n=await t(d.query(e.originalArgs),f,d.extraOptions),d.transformResponse&&(i=d.transformResponse)):n=await d.queryFn(e.originalArgs,f,d.extraOptions,(e=>t(e,f,d.extraOptions))),typeof process<"u"&&P5.NODE_ENV,n.error)throw new VC(n.error,n.meta);return a(await i(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[ov]:!0})}catch(t){let n=t;if(n instanceof VC){let t=FC;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return i(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[ov]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,o,i;const a=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],s=null==(i=n[e])?void 0:i.config.refetchOnMountOrArgChange,u=null==a?void 0:a.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(u))/1e3>=l)}const u=$C(`${e}/executeQuery`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[ov]:!0}),condition(t,{getState:r}){var o,i,a;const u=r(),l=null==(i=null==(o=u[e])?void 0:o.queries)?void 0:i[t.queryCacheKey],c=null==l?void 0:l.fulfilledTimeStamp,d=t.originalArgs,f=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!zS(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,u)||xO(p)&&null!=(a=null==p?void 0:p.forceRefetch)&&a.call(p,{currentArg:d,previousArg:f,endpointState:l,state:u}))||!c)},dispatchConditionRejection:!0}),l=$C(`${e}/executeMutation`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[ov]:!0})});function c(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:u,mutationThunk:l,prefetch:(e,t,n)=>(r,i)=>{const a=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,u=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return o.endpoints[e].initiate(t,r)},l=o.endpoints[e].select(t)(i());if(a)r(u());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(u());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(u())}else r(u(!1))},updateQueryData:(e,t,n,r=!0)=>(i,a)=>{const s=o.endpoints[e].select(t)(a());let u,l={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(bs(s.data)){const[e,t,r]=pO(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),u=e}else u=n(s.data),l.patches.push({op:"replace",path:[],value:u}),l.inversePatches.push({op:"replace",path:[],value:s.data});return i(o.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Sv]:()=>({data:n})})),patchQueryData:(e,t,a,s)=>(u,l)=>{const c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(u(o.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!s)return;const f=o.endpoints[e].select(t)(l()),p=M_(c.providesTags,f.data,void 0,t,{},i);u(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:dv(C_(e),c(t)),matchFulfilled:dv(wd(e),c(t)),matchRejected:dv(Fh(e),c(t))}}}}function AO(e,t,n,r){return M_(n[e.meta.arg.endpointName][t],wd(e)?e.payload:void 0,Ey(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Og(e,t,n){const r=e[t];r&&n(r)}function _v(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function zC(e,t,n){const r=e[_v(t)];r&&n(r)}var Km={};function G5({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:i,hasRehydrationInfo:a},assertTagType:s,config:u}){const l=oo(`${e}/resetApiState`),c=ro({name:`${e}/queries`,initialState:Km,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Qm()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Og(e,t,(e=>{e.data=RC(e.data,n.concat())}))},prepare:Qm()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const o=zS(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Og(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=o&&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})=>{Og(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!zS(t.arg))return;const{merge:o}=r[t.arg.endpointName];if(e.status="fulfilled",o)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:i,baseQueryMeta:a,requestId:s}=t;let u=Fv(e.data,(e=>o(e,n,{arg:i.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:r,requestId:s})));e.data=u}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?yO(ws(e.data)?OL(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:o,payload:i})=>{Og(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=i??o}}))})).addMatcher(a,((e,t)=>{const{queries:n}=i(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)}))}}),d=ro({name:`${e}/mutations`,initialState:Km,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=_v(t);n in e&&delete e[n]},prepare:Qm()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[_v(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&zC(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&&zC(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(a,((e,t)=>{const{mutations:n}=i(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)}))}}),f=ro({name:`${e}/invalidation`,initialState:Km,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:o,providedTags:i}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(o);-1!==t&&e.splice(t,1)}for(const{type:t,id:a}of i){const i=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);i.includes(o)||i.push(o)}},prepare:Qm()}},extraReducers(e){e.addCase(c.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(a,((e,t)=>{var n,r;const{provided:o}=i(t);for(const[t,i]of Object.entries(o))for(const[o,a]of Object.entries(i)){const i=(n=e[t]??(e[t]={}))[r=o||"__internal_without_id"]??(n[r]=[]);for(const e of a)i.includes(e)||i.push(e)}})).addMatcher(yd(wd(t),Ey(t)),((e,t)=>{const n=AO(t,"providesTags",r,s),{queryCacheKey:o}=t.meta.arg;f.caseReducers.updateProvidedBy(e,f.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),p=ro({name:`${e}/subscriptions`,initialState:Km,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),m=ro({name:`${e}/internalSubscriptions`,initialState:Km,reducers:{subscriptionsUpdated:{reducer:(e,t)=>RC(e,t.payload),prepare:Qm()}}}),v=ro({name:`${e}/config`,initialState:{online:$5(),focused:N5(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(T_,(e=>{e.online=!0})).addCase(bO,(e=>{e.online=!1})).addCase(R_,(e=>{e.focused=!0})).addCase(wO,(e=>{e.focused=!1})).addMatcher(a,(e=>({...e})))}}),h=iO({queries:c.reducer,mutations:d.reducer,provided:f.reducer,subscriptions:m.reducer,config:v.reducer});return{reducer:(e,t)=>h(l.match(t)?void 0:e,t),actions:{...v.actions,...c.actions,...p.actions,...m.actions,...d.actions,...f.actions,resetApiState:l}}}var Gf=Symbol.for("RTKQ/skipToken"),SO={status:"uninitialized"},UC=Fv(SO,(()=>{})),GC=Fv(SO,(()=>{}));function W5({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>UC,o=e=>GC;return{buildQuerySelector:function(t,o){return s=>{const u=e({queryArgs:s,endpointDefinition:o,endpointName:t});return n(s===Gf?r:e=>{var t,n;return(null==(n=null==(t=a(e))?void 0:t.queries)?void 0:n[u])??UC},i)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?_v(e)??Gf:e,n(t===Gf?o:e=>{var n,r;return(null==(r=null==(n=a(e))?void 0:n.mutations)?void 0:r[t])??GC},i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(FS)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:NC(Object.values(t)))??[];for(const e of n)o.add(e)}return NC(Array.from(o.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 i(e){return{...e,...R5(e.status)}}function a(e){return e[t]}}var Ih=WeakMap?new WeakMap:void 0,WC=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Ih?void 0:Ih.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>gd(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));gd(t)&&(null==Ih||Ih.set(t,e)),n=e}return`${e}(${n})`};function H5(...e){return function(t){const n=Av((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=WC;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:WC({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:Iy(),extractRehydrationInfo:n,hasRehydrationInfo:Av((e=>null!=n(e)))},i={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 o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Io(39))}else{o.endpointDefinitions[n]=r;for(const e of a)e.injectEndpoint(n,r)}return i},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(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return i}},a=e.map((e=>e.init(i,r,o)));return i.injectEndpoints({endpoints:t.endpoints})}}function q5(e){for(let t in e)return!1;return!0}var X5=2147482.647,Q5=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:i}=t.internalActions;function a(e){const t=r.currentSubscriptions[e];return!!t&&!q5(t)}const s={};function u(e,t,r,i){const u=n.endpointDefinitions[t],l=(null==u?void 0:u.keepUnusedDataFor)??i.keepUnusedDataFor;if(l===1/0)return;const c=Math.max(0,Math.min(l,X5));if(!a(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{a(e)||r.dispatch(o({queryCacheKey:e})),delete s[e]}),1e3*c)}}return(r,o,a)=>{var l;if(i.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;u(n,null==(l=t.queries[n])?void 0:l.endpointName,o,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=o.getState()[e],{queries:i}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(i))u(e,null==n?void 0:n.endpointName,o,t.config)}}},K5=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:a,refetchQuery:s,internalState:u})=>{const{removeQueryResult:l}=i.internalActions,c=yd(wd(r),Ey(r)),d=yd(wd(r,o),Fh(r,o));let f=[];function p(n,r){const o=r.getState(),a=o[e];if(f.push(...n),"delayed"===a.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}(a))return;const c=f;if(f=[],0===c.length)return;const d=i.util.selectInvalidatedBy(o,c);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=a.queries[t],n=u.currentSubscriptions[t]??{};e&&(0===kh(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{c(e)?p(AO(e,"invalidatesTags",n,a),t):d(e)?p([],t):i.util.invalidateTags.match(e)&&p(M_(e.payload,void 0,void 0,void 0,void 0,a),t)}},Y5=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const s=n.getState()[e],u=s.queries[t],c=o.currentSubscriptions[t];if(!u||"uninitialized"===u.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=l(c);if(!Number.isFinite(d))return;const p=i[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const m=Date.now()+d;i[t]={nextPollTimestamp:m,pollingInterval:d,timeout:setTimeout((()=>{(s.config.focused||!f)&&n.dispatch(r(u,t)),a({queryCacheKey:t},n)}),d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:c}=l(s);if(!Number.isFinite(c))return void u(t);const d=i[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function u(e){const t=i[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete i[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)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))u(e)}()}},J5=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const s=n.getState()[e],u=s.queries,l=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=u[e],o=l[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&s.config[a])&&(0===kh(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{R_.match(e)&&a(t,"refetchOnFocus"),T_.match(e)&&a(t,"refetchOnReconnect")}},HC=new Error("Promise never resolved before cacheEntryRemoved."),Z5=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const a=jS(r),s=jS(o),u=wd(r,o),l={};function c(t,r,o,i,a){const s=n.endpointDefinitions[t],u=null==s?void 0:s.onCacheEntryAdded;if(!u)return;let c={};const d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw HC}))]);f.catch((()=>{})),l[o]=c;const p=e.endpoints[t].select("query"===s.type?r:o),m=i.dispatch(((e,t,n)=>n)),v={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:m,updateCachedData:"query"===s.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},h=u(r,v);Promise.resolve(h).catch((e=>{if(e!==HC)throw e}))}return(n,i,d)=>{const f=function(t){return a(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)?_v(t.payload):""}(n);if(r.pending.match(n)){const e=d[t].queries[f],r=i.getState()[t].queries[f];!e&&r&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId)}else if(o.pending.match(n))i.getState()[t].mutations[f]&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId);else if(u(n)){const e=l[f];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[f];e&&(delete l[f],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},e6=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=C_(n,r),i=Fh(n,r),a=wd(n,r),s={};return(n,r)=>{var u,l;if(o(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,u=t.endpointDefinitions[i],l=null==u?void 0:u.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[o]=t;const c=e.endpoints[i].select("query"===u.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>c(r.getState()),requestId:o,extra:d,updateCachedData:"query"===u.type?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};l(a,f)}}else if(a(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(u=s[e])||u.resolve({data:n.payload,meta:t}),delete s[e]}else if(i(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]}}},t6=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},n6=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,u=()=>n.currentSubscriptions,l={getSubscriptions:u,getSubscriptionCount:e=>kh(u()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=u();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(u,c)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(u))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,l];const d=((n,r)=>{var o,i,u;if(a.match(r)){const{queryCacheKey:e,requestId:t,options:i}=r.payload;return null!=(o=null==n?void 0:n[e])&&o[t]&&(n[e][t]=i),!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,o=n[i=e.queryCacheKey]??(n[i]={});return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[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:o}}=r;if(e&&t.subscribe){const e=n[u=t.queryCacheKey]??(n[u]={});e[o]=t.subscriptionOptions??e[o]??{},l=!0}}return l})(n.currentSubscriptions,u);let f=!0;if(d){i||(i=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=pO(o,(()=>t));c.next(e.internalActions.subscriptionsUpdated(r)),o=t,i=null}),500));const a="string"==typeof u.type&&!!u.type.startsWith(r),s=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;f=!a&&!s}return[f,!1]}};function r6(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,a={invalidateTags:oo(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),u=[t6,Q5,K5,Y5,Z5,e6];return{middleware:n=>{let a=!1;const c={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},d=u.map((e=>e(c))),f=n6(c),p=J5(c);return e=>u=>{if(!aO(u))return e(u);a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));const l={...n,next:e},c=n.getState(),[m,v]=f(u,l,c);let h;if(h=m?e(u):v,n.getState()[t]&&(p(u,l,c),s(u)||o.hasRehydrationInfo(u)))for(let e of d)e(u,l,c);return h}},actions:a};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function ad(e,...t){return Object.assign(e,...t)}var qC=Symbol(),o6=({createSelector:e=Jn}={})=>({name:qC,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:u,refetchOnReconnect:l,invalidationBehavior:c},d){FL();const f=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:T_,onOffline:bO,onFocus:R_,onFocusLost:wO},util:{}});const{queryThunk:p,mutationThunk:m,patchQueryData:v,updateQueryData:h,upsertQueryData:y,prefetch:g,buildMatchThunkActions:b}=U5({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:i,assertTagType:f}),{reducer:w,actions:A}=G5({context:d,queryThunk:p,mutationThunk:m,reducerPath:o,assertTagType:f,config:{refetchOnFocus:u,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:c}});ad(t.util,{patchQueryData:v,updateQueryData:h,upsertQueryData:y,prefetch:g,resetApiState:A.resetApiState}),ad(t.internalActions,A);const{middleware:x,actions:S}=r6({reducerPath:o,context:d,queryThunk:p,mutationThunk:m,api:t,assertTagType:f});ad(t.util,S),ad(t,{reducer:w,middleware:x});const{buildQuerySelector:I,buildMutationSelector:E,selectInvalidatedBy:P,selectCachedArgsForQuery:C}=W5({serializeQueryArgs:i,reducerPath:o,createSelector:e});ad(t.util,{selectInvalidatedBy:P,selectCachedArgsForQuery:C});const{buildInitiateQuery:k,buildInitiateMutation:_,getRunningMutationThunk:R,getRunningMutationsThunk:M,getRunningQueriesThunk:T,getRunningQueryThunk:O}=z5({queryThunk:p,mutationThunk:m,api:t,serializeQueryArgs:i,context:d});return ad(t.util,{getRunningMutationThunk:R,getRunningMutationsThunk:M,getRunningQueryThunk:O,getRunningQueriesThunk:T}),{name:qC,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),xO(n)?ad(o.endpoints[e],{name:e,select:I(e,n),initiate:k(e,n)},b(p,e)):V5(n)&&ad(o.endpoints[e],{name:e,select:E(),initiate:_(e)},b(m,e))}}}}),$a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Py(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var XC,QC,X1={exports:{}},Tt={};
|
|
1
|
+
var CL=Object.defineProperty,EL=(e,t,n)=>t in e?CL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z1=(e,t,n)=>EL(e,"symbol"!=typeof t?t+"":t,n);function PL(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 OS(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 U1=()=>Math.random().toString(36).substring(7).split("").join("."),RL={INIT:`@@redux/INIT${U1()}`,REPLACE:`@@redux/REPLACE${U1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${U1()}`},_C=RL;function gd(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 TL(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:_C.INIT})>"u")throw new Error(OS(12));if(typeof n(void 0,{type:_C.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(OS(13))}))}function iO(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{TL(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const s=r[o],u=n[s],l=e[s],c=u(l,t);if(typeof c>"u")throw t&&t.type,new Error(OS(14));a[s]=c,i=i||c!==l}return i=i||r.length!==Object.keys(e).length,i?a:e}}function aO(e){return gd(e)&&"type"in e&&"string"==typeof e.type}var S_=Symbol.for("immer-nothing"),cv=Symbol.for("immer-draftable"),Si=Symbol.for("immer-state");function _o(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Qf=Object.getPrototypeOf;function ws(e){return!!e&&!!e[Si]}function bs(e){var t;return!!e&&(sO(e)||Array.isArray(e)||!!e[cv]||!(null==(t=e.constructor)||!t[cv])||Vv(e)||jv(e))}var ML=Object.prototype.constructor.toString();function sO(e){if(!e||"object"!=typeof e)return!1;const t=Qf(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)===ML}function OL(e){return ws(e)||_o(15,e),e[Si].base_}function jh(e,t){0===Kf(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function Kf(e){const t=e[Si];return t?t.type_:Array.isArray(e)?1:Vv(e)?2:jv(e)?3:0}function wv(e,t){return 2===Kf(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function G1(e,t){return 2===Kf(e)?e.get(t):e[t]}function uO(e,t,n){const r=Kf(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function DL(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Vv(e){return e instanceof Map}function jv(e){return e instanceof Set}function Ff(e){return e.copy_||e.base_}function DS(e,t){if(Vv(e))return new Map(e);if(jv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&sO(e))return Qf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Si];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Qf(e),n)}function __(e,t=!1){return _y(e)||ws(e)||!bs(e)||(Kf(e)>1&&(e.set=e.add=e.clear=e.delete=$L),Object.freeze(e),t&&jh(e,((e,t)=>__(t,!0)))),e}function $L(){_o(2)}function _y(e){return Object.isFrozen(e)}var bv,$S={};function Yf(e){const t=$S[e];return t||_o(0,e),t}function NL(e,t){$S[e]||($S[e]=t)}function lO(){return bv}function kL(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function IC(e,t){t&&(Yf("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function NS(e){kS(e),e.drafts_.forEach(LL),e.drafts_=null}function kS(e){e===bv&&(bv=e.parent_)}function CC(e){return bv=kL(bv,e)}function LL(e){const t=e[Si];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function EC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Si].modified_&&(NS(t),_o(4)),bs(e)&&(e=ay(t,e),t.parent_||sy(t,e)),t.patches_&&Yf("Patches").generateReplacementPatches_(n[Si].base_,e,t.patches_,t.inversePatches_)):e=ay(t,n,[]),NS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==S_?e:void 0}function ay(e,t,n){if(_y(t))return t;const r=t[Si];if(!r)return jh(t,((o,i)=>PC(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return sy(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),jh(o,((o,a)=>PC(e,r,t,o,a,n,i))),sy(e,t,!1),n&&e.patches_&&Yf("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function PC(e,t,n,r,o,i,a){if(ws(o)){const a=ay(e,o,i&&t&&3!==t.type_&&!wv(t.assigned_,r)?i.concat(r):void 0);if(uO(n,r,a),!ws(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(bs(o)&&!_y(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ay(e,o),(!t||!t.scope_.parent_)&&sy(e,o)}}function sy(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&__(t,n)}function BL(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:lO(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=I_;n&&(o=[r],i=xv);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var I_={get(e,t){if(t===Si)return e;const n=Ff(e);if(!wv(n,t))return VL(e,n,t);const r=n[t];return e.finalized_||!bs(r)?r:r===W1(e.base_,t)?(H1(e),e.copy_[t]=BS(r,e)):r},has:(e,t)=>t in Ff(e),ownKeys:e=>Reflect.ownKeys(Ff(e)),set(e,t,n){const r=cO(Ff(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=W1(Ff(e),t),o=null==r?void 0:r[Si];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(DL(n,r)&&(void 0!==n||wv(e.base_,t)))return!0;H1(e),LS(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!==W1(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,H1(e),LS(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Ff(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){_o(11)},getPrototypeOf:e=>Qf(e.base_),setPrototypeOf(){_o(12)}},xv={};function W1(e,t){const n=e[Si];return(n?Ff(n):e)[t]}function VL(e,t,n){var r;const o=cO(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function cO(e,t){if(!(t in e))return;let n=Qf(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Qf(n)}}function LS(e){e.modified_||(e.modified_=!0,e.parent_&&LS(e.parent_))}function H1(e){e.copy_||(e.copy_=DS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}jh(I_,((e,t)=>{xv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xv.deleteProperty=function(e,t){return xv.set.call(this,e,t,void 0)},xv.set=function(e,t,n){return I_.set.call(this,e[0],t,n,e[0])};var jL=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,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&_o(6),void 0!==n&&"function"!=typeof n&&_o(7),bs(e)){const o=CC(this),i=BS(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?NS(o):kS(o)}return IC(o,n),EC(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===S_&&(r=void 0),this.autoFreeze_&&__(r,!0),n){const t=[],o=[];Yf("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}_o(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){bs(e)||_o(8),ws(e)&&(e=dO(e));const t=CC(this),n=BS(e,void 0);return n[Si].isManual_=!0,kS(t),n}finishDraft(e,t){const n=e&&e[Si];(!n||!n.isManual_)&&_o(9);const{scope_:r}=n;return IC(r,t),EC(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=Yf("Patches").applyPatches_;return ws(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function BS(e,t){const n=Vv(e)?Yf("MapSet").proxyMap_(e,t):jv(e)?Yf("MapSet").proxySet_(e,t):BL(e,t);return(t?t.scope_:lO()).drafts_.push(n),n}function dO(e){return ws(e)||_o(10,e),fO(e)}function fO(e){if(!bs(e)||_y(e))return e;const t=e[Si];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=DS(e,t.scope_.immer_.useStrictShallowCopy_)}else n=DS(e,!0);return jh(n,((e,t)=>{uO(n,e,fO(t))})),t&&(t.finalized_=!1),n}function FL(){const e="replace",t="remove";function n(e){if(!bs(e))return e;if(Array.isArray(e))return e.map(n);if(Vv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,n(t)])));if(jv(e))return new Set(Array.from(e).map(n));const t=Object.create(Qf(e));for(const r in e)t[r]=n(e[r]);return wv(e,cv)&&(t[cv]=e[cv]),t}function r(e){return ws(e)?n(e):e}NL("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:i,op:a}=o;let s=r;for(let e=0;e<i.length-1;e++){const t=Kf(s);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&_o(19),"function"==typeof s&&"prototype"===n&&_o(19),s=G1(s,n),"object"!=typeof s&&_o(18,i.join("/"))}const u=Kf(s),l=n(o.value),c=i[i.length-1];switch(a){case e:switch(u){case 2:return s.set(c,l);case 3:_o(16);default:return s[c]=l}case"add":switch(u){case 1:return"-"===c?s.push(l):s.splice(c,0,l);case 2:return s.set(c,l);case 3:return s.add(l);default:return s[c]=l}case t:switch(u){case 1:return s.splice(c,1);case 2:return s.delete(c);case 3:return s.delete(o.value);default:return delete s[c]}default:_o(17,a)}})),r},generatePatches_:function(n,o,i,a){switch(n.type_){case 0:case 2:return function(n,o,i,a){const{base_:s,copy_:u}=n;jh(n.assigned_,((n,l)=>{const c=G1(s,n),d=G1(u,n),f=l?wv(s,n)?e:"add":t;if(c===d&&f===e)return;const p=o.concat(n);i.push(f===t?{op:f,path:p}:{op:f,path:p,value:d}),a.push("add"===f?{op:t,path:p}:f===t?{op:"add",path:p,value:r(c)}:{op:e,path:p,value:r(c)})}))}(n,o,i,a);case 1:return function(n,o,i,a){let{base_:s,assigned_:u}=n,l=n.copy_;l.length<s.length&&([s,l]=[l,s],[i,a]=[a,i]);for(let t=0;t<s.length;t++)if(u[t]&&l[t]!==s[t]){const n=o.concat([t]);i.push({op:e,path:n,value:r(l[t])}),a.push({op:e,path:n,value:r(s[t])})}for(let e=s.length;e<l.length;e++){const t=o.concat([e]);i.push({op:"add",path:t,value:r(l[e])})}for(let e=l.length-1;s.length<=e;--e){const n=o.concat([e]);a.push({op:t,path:n})}}(n,o,i,a);case 3:return function(e,n,r,o){let{base_:i,copy_:a}=e,s=0;i.forEach((e=>{if(!a.has(e)){const i=n.concat([s]);r.push({op:t,path:i,value:e}),o.unshift({op:"add",path:i,value:e})}s++})),s=0,a.forEach((e=>{if(!i.has(e)){const i=n.concat([s]);r.push({op:"add",path:i,value:e}),o.unshift({op:t,path:i,value:e})}s++}))}(n,o,i,a)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===S_?void 0:n}),o.push({op:e,path:[],value:t})}})}var Zi=new jL,Fv=Zi.produce,pO=Zi.produceWithPatches.bind(Zi);Zi.setAutoFreeze.bind(Zi),Zi.setUseStrictShallowCopy.bind(Zi);var RC=Zi.applyPatches.bind(Zi);function zL(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function UL(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function GL(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}]`)}}Zi.createDraft.bind(Zi),Zi.finishDraft.bind(Zi);var TC=e=>Array.isArray(e)?e:[e];function WL(e){const t=Array.isArray(e[0])?e[0]:e;return GL(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function HL(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var qL=class{constructor(e){this.value=e}deref(){return this.value}},XL=typeof WeakRef<"u"?WeakRef:qL,QL=0,MC=1;function Tg(){return{s:QL,v:void 0,o:null,p:null}}function Av(e,t={}){let n=Tg();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var t;let a=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=a.o;null===e&&(a.o=e=new WeakMap);const n=e.get(t);void 0===n?(a=Tg(),e.set(t,a)):a=n}else{let e=a.p;null===e&&(a.p=e=new Map);const n=e.get(t);void 0===n?(a=Tg(),e.set(t,a)):a=n}}const u=a;let l;if(a.s===MC?l=a.v:(l=e.apply(null,arguments),i++),u.s=MC,r){const e=(null==(t=null==o?void 0:o.deref)?void 0:t.call(o))??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--),o="object"==typeof l&&null!==l||"function"==typeof l?new XL(l):l}return u.v=l,l}return a.clearCache=()=>{n=Tg(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function hO(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),zL(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...n,...i},{memoize:u,memoizeOptions:l=[],argsMemoize:c=Av,argsMemoizeOptions:d=[],devModeChecks:f={}}=s,p=TC(l),m=TC(d),v=WL(e),h=u((function(){return r++,a.apply(null,arguments)}),...p),y=c((function(){o++;const e=HL(v,arguments);return t=h.apply(null,e),t}),...m);return Object.assign(y,{resultFunc:a,memoizedResultFunc:h,dependencies:v,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var Jn=hO(Av),KL=Object.assign(((e,t=Jn)=>{UL(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:()=>KL}),YL=(...e)=>{const t=hO(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(ws(e)?dO(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};YL(Av);var JL=e=>e&&"function"==typeof e.match;function oo(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Io(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=>aO(t)&&t.type===e,n}function OC(e){return bs(e)?Fv(e,(()=>{})):e}function VS(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(Io(10));const r=n.insert(t,e);return e.set(t,r),r}var ov="RTK_autoBatch",Qm=()=>e=>({payload:e,meta:{[ov]:!0}});function mO(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Io(28));if(r in t)throw new Error(Io(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}function ZL(e){return"function"==typeof e}function e5(e,t){let n,[r,o,i]=mO(t);if(ZL(e))n=()=>OC(e());else{const t=OC(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[i]),a.reduce(((e,n)=>{if(n){if(ws(e)){const r=n(e,t);return void 0===r?e:r}if(bs(e))return Fv(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(Io(9))}return r}}return e}),e)}return a.getInitialState=n,a}var t5="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Iy=(e=21)=>{let t="",n=e;for(;n--;)t+=t5[64*Math.random()|0];return t},vO=(e,t)=>JL(e)?e.match(t):e(t);function yd(...e){return t=>e.some((e=>vO(e,t)))}function dv(...e){return t=>e.every((e=>vO(e,t)))}function Cy(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 zv(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function C_(...e){return 0===e.length?e=>Cy(e,["pending"]):zv(e)?t=>yd(...e.map((e=>e.pending)))(t):C_()(e[0])}function Fh(...e){return 0===e.length?e=>Cy(e,["rejected"]):zv(e)?t=>yd(...e.map((e=>e.rejected)))(t):Fh()(e[0])}function Ey(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||zv(e)?n=>dv(Fh(...e),t)(n):Ey()(e[0])}function wd(...e){return 0===e.length?e=>Cy(e,["fulfilled"]):zv(e)?t=>yd(...e.map((e=>e.fulfilled)))(t):wd()(e[0])}function jS(...e){return 0===e.length?e=>Cy(e,["pending","fulfilled","rejected"]):zv(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return yd(...n)(t)}:jS()(e[0])}var n5=["name","message","stack","code"],q1=class{constructor(e,t){z1(this,"_type"),this.payload=e,this.meta=t}},DC=class{constructor(e,t){z1(this,"_type"),this.payload=e,this.meta=t}},r5=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of n5)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},$C=(()=>{function e(e,t,n){const r=oo(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=oo(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),i=oo(e+"/rejected",((e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||r5)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(a,s,u)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):Iy(),c=new AbortController;let d,f;function p(e){f=e,c.abort()}const m=async function(){var m,v;let h;try{let i=null==(m=null==n?void 0:n.condition)?void 0:m.call(n,e,{getState:s,extra:u});if(i5(i)&&(i=await i),!1===i||c.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},c.signal.addEventListener("abort",d)}));a(o(l,e,null==(v=null==n?void 0:n.getPendingMeta)?void 0:v.call(n,{requestId:l,arg:e},{getState:s,extra:u}))),h=await Promise.race([y,Promise.resolve(t(e,{dispatch:a,getState:s,extra:u,requestId:l,signal:c.signal,abort:p,rejectWithValue:(e,t)=>new q1(e,t),fulfillWithValue:(e,t)=>new DC(e,t)})).then((t=>{if(t instanceof q1)throw t;return t instanceof DC?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){h=t instanceof q1?i(null,l,e,t.payload,t.meta):i(t,l,e)}finally{d&&c.signal.removeEventListener("abort",d)}return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||a(h),h}();return Object.assign(m,{abort:p,requestId:l,arg:e,unwrap:()=>m.then(o5)})}}),{pending:o,rejected:i,fulfilled:r,settled:yd(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function o5(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function i5(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var a5=Symbol.for("rtk-slice-createasyncthunk");function s5(e,t){return`${e}/${t}`}function u5({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[a5];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(Io(11));const o=("function"==typeof e.reducers?e.reducers(c5()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Io(12));if(n in a.sliceCaseReducersByType)throw new Error(Io(13));return a.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function u(){const[t={},n=[],r]="function"==typeof e.extraReducers?mO(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return e5(e.initialState,(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}i.forEach((r=>{const i=o[r],a={reducerName:r,type:s5(t,r),createNotation:"function"==typeof e.reducers};f5(i)?h5(a,i,s,n):d5(a,i,s)}));const l=e=>e,c=new Map;let d;function f(e,t){return d||(d=u()),d(e,t)}function p(){return d||(d=u()),d.getInitialState()}function m(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function o(t=l){const r=VS(c,n,{insert:()=>new WeakMap});return VS(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=l5(i,t,p,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const v={name:t,reducer:f,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:p,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:f},n),{...v,...m(o,!0)}}};return v}}function l5(e,t,n,r){function o(o,...i){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var ro=u5();function c5(){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 d5({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!p5(r))throw new Error(Io(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?oo(e,a):oo(e))}function f5(e){return"asyncThunk"===e._reducerDefinitionType}function p5(e){return"reducerWithPrepare"===e._reducerDefinitionType}function h5({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Io(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:u,settled:l,options:c}=n,d=o(e,i,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),u&&r.addCase(d.rejected,u),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:a||Mg,pending:s||Mg,rejected:u||Mg,settled:l||Mg})}function Mg(){}var m5=(e,t)=>{if("function"!=typeof e)throw new Error(Io(32))},E_="listenerMiddleware",v5=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=oo(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Io(21));return m5(i),{predicate:o,type:t,effect:i}},g5=Object.assign((e=>{const{type:t,predicate:n,effect:r}=v5(e);return{id:Iy(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Io(22))}}}),{withTypes:()=>g5}),y5=Object.assign(oo(`${E_}/add`),{withTypes:()=>y5});oo(`${E_}/removeAll`);var w5=Object.assign(oo(`${E_}/remove`),{withTypes:()=>w5}),b5=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,x5=e=>e.flatMap((e=>b5(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),P_=Symbol.for("rtk-state-proxy-original"),A5=e=>!!e&&!!e[P_],S5=new WeakMap,_5=(e,t)=>VS(S5,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===P_)return e;const o=Reflect.get(e,n,r);if(typeof o>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:Iy()});if(typeof t>"u")throw new Error(Io(24));return t}}return o}})}),I5=e=>{if(!A5(e))throw new Error(Io(25));return e[P_]},C5=(e={})=>e;function E5(...e){const t=Object.fromEntries(x5(e)),n=()=>Object.keys(t).length?iO(t):C5;let r=n();function o(e,t){return r(e,t)}o.withLazyLoadedSlices=()=>o;const i=Object.assign((function(e,n){return function(r,...o){return e(_5(n?n(r,...o):r,t),...o)}}),{original:I5});return Object.assign(o,{inject:(e,i={})=>{const{reducerPath:a,reducer:s}=e,u=t[a];return!i.overrideExisting&&u&&u!==s||(t[a]=s,r=n()),o},selector:i})}function Io(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 P5={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/uploads/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/uploads/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:"f843f4e8c16fbd4a",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/uploads",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.733",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/uploads",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/uploads",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3771",APP_NAME:"@wellesley/uploads"},gO=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(gO||{});function R5(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function T5(e){return new RegExp("(^|:)//").test(e)}var M5=e=>e.replace(/\/$/,""),O5=e=>e.replace(/^\//,"");function D5(e,t){if(!e)return t;if(!t)return e;if(T5(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=M5(e)}${n}${t=O5(t)}`}var NC=e=>[].concat(...e);function $5(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function N5(){return typeof document>"u"||"hidden"!==document.visibilityState}var kC=gd;function yO(e,t){if(e===t||!(kC(e)&&kC(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const r of n)i[r]=yO(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}var LC=(...e)=>fetch(...e),k5=e=>e.status>=200&&e.status<=299,L5=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function BC(e){if(!gd(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function B5({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=LC,paramsSerializer:r,isJsonContentType:o=L5,jsonContentType:i="application/json",jsonReplacer:a,timeout:s,responseHandler:u,validateStatus:l,...c}={}){return typeof fetch>"u"&&n===LC&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p)=>{const{signal:m,getState:v,extra:h,endpoint:y,forced:g,type:b}=p;let w,{url:A,headers:x=new Headers(c.headers),params:S,responseHandler:I=u??"json",validateStatus:E=l??k5,timeout:P=s,...C}="string"==typeof f?{url:f}:f,k={...c,signal:m,...C};x=new Headers(BC(x)),k.headers=await t(x,{getState:v,extra:h,endpoint:y,forced:g,type:b})||x;const _=e=>"object"==typeof e&&(gd(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!k.headers.has("content-type")&&_(k.body)&&k.headers.set("content-type",i),_(k.body)&&o(k.headers)&&(k.body=JSON.stringify(k.body,a)),S){const e=~A.indexOf("?")?"&":"?";A+=e+(r?r(S):new URLSearchParams(BC(S)))}A=D5(e,A);const R=new Request(A,k);w={request:new Request(A,k)};let M,T=!1,O=P&&setTimeout((()=>{T=!0,p.abort()}),P);try{M=await n(R)}catch(e){return{error:{status:T?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{O&&clearTimeout(O)}const N=M.clone();w.response=N;let z,D="";try{let e;if(await Promise.all([d(M,I).then((e=>z=e),(t=>e=t)),N.text().then((e=>D=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:M.status,data:D,error:String(e)},meta:w}}return E(M,z)?{data:z,meta:w}:{error:{status:M.status,data:z},meta:w}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var VC=class{constructor(e,t=void 0){this.value=e,this.meta=t}},R_=oo("__rtkq/focused"),wO=oo("__rtkq/unfocused"),T_=oo("__rtkq/online"),bO=oo("__rtkq/offline");function xO(e){return"query"===e.type}function V5(e){return"mutation"===e.type}function M_(e,t,n,r,o,i){return j5(e)?e(t,n,r,o).map(FS).map(i):Array.isArray(e)?e.map(FS).map(i):[]}function j5(e){return"function"==typeof e}function FS(e){return"string"==typeof e?{type:e}:e}function jC(e){return null!=e}function kh(e){let t=0;for(const n in e)t++;return t}function F5(e,t){return e.catch(t)}var Sv=Symbol("forceQueryFn"),zS=e=>"function"==typeof e[Sv];function z5({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:u,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(u,{subscribe:c=!0,forceRefetch:d,subscriptionOptions:f,[Sv]:p,...m}={})=>(v,h)=>{var y;const g=e({queryArgs:u,endpointDefinition:o,endpointName:n}),b=t({...m,type:"query",subscribe:c,forceRefetch:d,subscriptionOptions:f,endpointName:n,originalArgs:u,queryCacheKey:g,[Sv]:p}),w=r.endpoints[n].select(u),A=v(b),x=w(h()),{requestId:S,abort:I}=A,E=x.requestId!==S,P=null==(y=i.get(v))?void 0:y[g],C=()=>w(h()),k=Object.assign(p?A.then(C):E&&!P?Promise.resolve(x):Promise.all([P,A]).then(C),{arg:u,requestId:S,subscriptionOptions:f,queryCacheKey:g,abort:I,async unwrap(){const e=await k;if(e.isError)throw e.error;return e.data},refetch:()=>v(a(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){c&&v(s({queryCacheKey:g,requestId:S}))},updateSubscriptionOptions(e){k.subscriptionOptions=e,v(l({endpointName:n,requestId:S,queryCacheKey:g,options:e}))}});if(!P&&!E&&!p){const e=i.get(v)||{};e[g]=k,i.set(v,e),k.then((()=>{delete e[g],kh(e)||i.delete(v)}))}return k};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),c=i(l),{requestId:d,abort:f,unwrap:p}=c,m=F5(c.unwrap().then((e=>({data:e}))),(e=>({error:e}))),v=Object.assign(m,{arg:c.arg,requestId:d,abort:f,unwrap:p,reset:()=>{i(u({requestId:d,fixedCacheKey:o}))}}),h=a.get(i)||{};return a.set(i,h),h[d]=v,v.then((()=>{delete h[d],kh(h)||a.delete(i)})),o&&(h[o]=v,v.then((()=>{h[o]===v&&(delete h[o],kh(h)||a.delete(i))}))),v}},getRunningQueryThunk:function(t,n){return r=>{var a;const s=o.endpointDefinitions[t],u=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(a=i.get(r))?void 0:a[u]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=a.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(jC)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(jC)}}}function FC(e){return e}function U5({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:i}){const a=async(e,{signal:r,abort:o,rejectWithValue:i,fulfillWithValue:a,dispatch:u,getState:l,extra:c})=>{const d=n[e.endpointName];try{let n,i=FC;const f={signal:r,abort:o,dispatch:u,getState:l,extra:c,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[Sv]:void 0;if(p?n=p():d.query?(n=await t(d.query(e.originalArgs),f,d.extraOptions),d.transformResponse&&(i=d.transformResponse)):n=await d.queryFn(e.originalArgs,f,d.extraOptions,(e=>t(e,f,d.extraOptions))),typeof process<"u"&&P5.NODE_ENV,n.error)throw new VC(n.error,n.meta);return a(await i(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[ov]:!0})}catch(t){let n=t;if(n instanceof VC){let t=FC;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return i(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[ov]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,o,i;const a=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],s=null==(i=n[e])?void 0:i.config.refetchOnMountOrArgChange,u=null==a?void 0:a.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(u))/1e3>=l)}const u=$C(`${e}/executeQuery`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[ov]:!0}),condition(t,{getState:r}){var o,i,a;const u=r(),l=null==(i=null==(o=u[e])?void 0:o.queries)?void 0:i[t.queryCacheKey],c=null==l?void 0:l.fulfilledTimeStamp,d=t.originalArgs,f=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!zS(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,u)||xO(p)&&null!=(a=null==p?void 0:p.forceRefetch)&&a.call(p,{currentArg:d,previousArg:f,endpointState:l,state:u}))||!c)},dispatchConditionRejection:!0}),l=$C(`${e}/executeMutation`,a,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[ov]:!0})});function c(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:u,mutationThunk:l,prefetch:(e,t,n)=>(r,i)=>{const a=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,u=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return o.endpoints[e].initiate(t,r)},l=o.endpoints[e].select(t)(i());if(a)r(u());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(u());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(u())}else r(u(!1))},updateQueryData:(e,t,n,r=!0)=>(i,a)=>{const s=o.endpoints[e].select(t)(a());let u,l={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(bs(s.data)){const[e,t,r]=pO(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),u=e}else u=n(s.data),l.patches.push({op:"replace",path:[],value:u}),l.inversePatches.push({op:"replace",path:[],value:s.data});return i(o.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Sv]:()=>({data:n})})),patchQueryData:(e,t,a,s)=>(u,l)=>{const c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(u(o.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!s)return;const f=o.endpoints[e].select(t)(l()),p=M_(c.providesTags,f.data,void 0,t,{},i);u(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:dv(C_(e),c(t)),matchFulfilled:dv(wd(e),c(t)),matchRejected:dv(Fh(e),c(t))}}}}function AO(e,t,n,r){return M_(n[e.meta.arg.endpointName][t],wd(e)?e.payload:void 0,Ey(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Og(e,t,n){const r=e[t];r&&n(r)}function _v(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function zC(e,t,n){const r=e[_v(t)];r&&n(r)}var Km={};function G5({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:i,hasRehydrationInfo:a},assertTagType:s,config:u}){const l=oo(`${e}/resetApiState`),c=ro({name:`${e}/queries`,initialState:Km,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Qm()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Og(e,t,(e=>{e.data=RC(e.data,n.concat())}))},prepare:Qm()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const o=zS(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Og(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=o&&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})=>{Og(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!zS(t.arg))return;const{merge:o}=r[t.arg.endpointName];if(e.status="fulfilled",o)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:i,baseQueryMeta:a,requestId:s}=t;let u=Fv(e.data,(e=>o(e,n,{arg:i.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:r,requestId:s})));e.data=u}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?yO(ws(e.data)?OL(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:o,payload:i})=>{Og(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=i??o}}))})).addMatcher(a,((e,t)=>{const{queries:n}=i(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)}))}}),d=ro({name:`${e}/mutations`,initialState:Km,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=_v(t);n in e&&delete e[n]},prepare:Qm()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[_v(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&zC(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&&zC(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(a,((e,t)=>{const{mutations:n}=i(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)}))}}),f=ro({name:`${e}/invalidation`,initialState:Km,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:o,providedTags:i}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(o);-1!==t&&e.splice(t,1)}for(const{type:t,id:a}of i){const i=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);i.includes(o)||i.push(o)}},prepare:Qm()}},extraReducers(e){e.addCase(c.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(a,((e,t)=>{var n,r;const{provided:o}=i(t);for(const[t,i]of Object.entries(o))for(const[o,a]of Object.entries(i)){const i=(n=e[t]??(e[t]={}))[r=o||"__internal_without_id"]??(n[r]=[]);for(const e of a)i.includes(e)||i.push(e)}})).addMatcher(yd(wd(t),Ey(t)),((e,t)=>{const n=AO(t,"providesTags",r,s),{queryCacheKey:o}=t.meta.arg;f.caseReducers.updateProvidedBy(e,f.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),p=ro({name:`${e}/subscriptions`,initialState:Km,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),m=ro({name:`${e}/internalSubscriptions`,initialState:Km,reducers:{subscriptionsUpdated:{reducer:(e,t)=>RC(e,t.payload),prepare:Qm()}}}),v=ro({name:`${e}/config`,initialState:{online:$5(),focused:N5(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(T_,(e=>{e.online=!0})).addCase(bO,(e=>{e.online=!1})).addCase(R_,(e=>{e.focused=!0})).addCase(wO,(e=>{e.focused=!1})).addMatcher(a,(e=>({...e})))}}),h=iO({queries:c.reducer,mutations:d.reducer,provided:f.reducer,subscriptions:m.reducer,config:v.reducer});return{reducer:(e,t)=>h(l.match(t)?void 0:e,t),actions:{...v.actions,...c.actions,...p.actions,...m.actions,...d.actions,...f.actions,resetApiState:l}}}var Gf=Symbol.for("RTKQ/skipToken"),SO={status:"uninitialized"},UC=Fv(SO,(()=>{})),GC=Fv(SO,(()=>{}));function W5({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>UC,o=e=>GC;return{buildQuerySelector:function(t,o){return s=>{const u=e({queryArgs:s,endpointDefinition:o,endpointName:t});return n(s===Gf?r:e=>{var t,n;return(null==(n=null==(t=a(e))?void 0:t.queries)?void 0:n[u])??UC},i)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?_v(e)??Gf:e,n(t===Gf?o:e=>{var n,r;return(null==(r=null==(n=a(e))?void 0:n.mutations)?void 0:r[t])??GC},i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(FS)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:NC(Object.values(t)))??[];for(const e of n)o.add(e)}return NC(Array.from(o.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 i(e){return{...e,...R5(e.status)}}function a(e){return e[t]}}var Ih=WeakMap?new WeakMap:void 0,WC=({endpointName:e,queryArgs:t})=>{let n="";const r=null==Ih?void 0:Ih.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>gd(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));gd(t)&&(null==Ih||Ih.set(t,e)),n=e}return`${e}(${n})`};function H5(...e){return function(t){const n=Av((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=WC;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:WC({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:Iy(),extractRehydrationInfo:n,hasRehydrationInfo:Av((e=>null!=n(e)))},i={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 o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Io(39))}else{o.endpointDefinitions[n]=r;for(const e of a)e.injectEndpoint(n,r)}return i},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(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return i}},a=e.map((e=>e.init(i,r,o)));return i.injectEndpoints({endpoints:t.endpoints})}}function q5(e){for(let t in e)return!1;return!0}var X5=2147482.647,Q5=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:i}=t.internalActions;function a(e){const t=r.currentSubscriptions[e];return!!t&&!q5(t)}const s={};function u(e,t,r,i){const u=n.endpointDefinitions[t],l=(null==u?void 0:u.keepUnusedDataFor)??i.keepUnusedDataFor;if(l===1/0)return;const c=Math.max(0,Math.min(l,X5));if(!a(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{a(e)||r.dispatch(o({queryCacheKey:e})),delete s[e]}),1e3*c)}}return(r,o,a)=>{var l;if(i.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;u(n,null==(l=t.queries[n])?void 0:l.endpointName,o,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=o.getState()[e],{queries:i}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(i))u(e,null==n?void 0:n.endpointName,o,t.config)}}},K5=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:a,refetchQuery:s,internalState:u})=>{const{removeQueryResult:l}=i.internalActions,c=yd(wd(r),Ey(r)),d=yd(wd(r,o),Fh(r,o));let f=[];function p(n,r){const o=r.getState(),a=o[e];if(f.push(...n),"delayed"===a.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}(a))return;const c=f;if(f=[],0===c.length)return;const d=i.util.selectInvalidatedBy(o,c);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=a.queries[t],n=u.currentSubscriptions[t]??{};e&&(0===kh(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{c(e)?p(AO(e,"invalidatesTags",n,a),t):d(e)?p([],t):i.util.invalidateTags.match(e)&&p(M_(e.payload,void 0,void 0,void 0,void 0,a),t)}},Y5=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const s=n.getState()[e],u=s.queries[t],c=o.currentSubscriptions[t];if(!u||"uninitialized"===u.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=l(c);if(!Number.isFinite(d))return;const p=i[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const m=Date.now()+d;i[t]={nextPollTimestamp:m,pollingInterval:d,timeout:setTimeout((()=>{(s.config.focused||!f)&&n.dispatch(r(u,t)),a({queryCacheKey:t},n)}),d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:c}=l(s);if(!Number.isFinite(c))return void u(t);const d=i[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function u(e){const t=i[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete i[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)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))u(e)}()}},J5=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const s=n.getState()[e],u=s.queries,l=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=u[e],o=l[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&s.config[a])&&(0===kh(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{R_.match(e)&&a(t,"refetchOnFocus"),T_.match(e)&&a(t,"refetchOnReconnect")}},HC=new Error("Promise never resolved before cacheEntryRemoved."),Z5=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i})=>{const a=jS(r),s=jS(o),u=wd(r,o),l={};function c(t,r,o,i,a){const s=n.endpointDefinitions[t],u=null==s?void 0:s.onCacheEntryAdded;if(!u)return;let c={};const d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw HC}))]);f.catch((()=>{})),l[o]=c;const p=e.endpoints[t].select("query"===s.type?r:o),m=i.dispatch(((e,t,n)=>n)),v={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:m,updateCachedData:"query"===s.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},h=u(r,v);Promise.resolve(h).catch((e=>{if(e!==HC)throw e}))}return(n,i,d)=>{const f=function(t){return a(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)?_v(t.payload):""}(n);if(r.pending.match(n)){const e=d[t].queries[f],r=i.getState()[t].queries[f];!e&&r&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId)}else if(o.pending.match(n))i.getState()[t].mutations[f]&&c(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId);else if(u(n)){const e=l[f];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[f];e&&(delete l[f],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},e6=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=C_(n,r),i=Fh(n,r),a=wd(n,r),s={};return(n,r)=>{var u,l;if(o(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,u=t.endpointDefinitions[i],l=null==u?void 0:u.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[o]=t;const c=e.endpoints[i].select("query"===u.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>c(r.getState()),requestId:o,extra:d,updateCachedData:"query"===u.type?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};l(a,f)}}else if(a(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(u=s[e])||u.resolve({data:n.payload,meta:t}),delete s[e]}else if(i(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]}}},t6=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},n6=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,u=()=>n.currentSubscriptions,l={getSubscriptions:u,getSubscriptionCount:e=>kh(u()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=u();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(u,c)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(u))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,l];const d=((n,r)=>{var o,i,u;if(a.match(r)){const{queryCacheKey:e,requestId:t,options:i}=r.payload;return null!=(o=null==n?void 0:n[e])&&o[t]&&(n[e][t]=i),!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,o=n[i=e.queryCacheKey]??(n[i]={});return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[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:o}}=r;if(e&&t.subscribe){const e=n[u=t.queryCacheKey]??(n[u]={});e[o]=t.subscriptionOptions??e[o]??{},l=!0}}return l})(n.currentSubscriptions,u);let f=!0;if(d){i||(i=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=pO(o,(()=>t));c.next(e.internalActions.subscriptionsUpdated(r)),o=t,i=null}),500));const a="string"==typeof u.type&&!!u.type.startsWith(r),s=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;f=!a&&!s}return[f,!1]}};function r6(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,a={invalidateTags:oo(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),u=[t6,Q5,K5,Y5,Z5,e6];return{middleware:n=>{let a=!1;const c={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},d=u.map((e=>e(c))),f=n6(c),p=J5(c);return e=>u=>{if(!aO(u))return e(u);a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));const l={...n,next:e},c=n.getState(),[m,v]=f(u,l,c);let h;if(h=m?e(u):v,n.getState()[t]&&(p(u,l,c),s(u)||o.hasRehydrationInfo(u)))for(let e of d)e(u,l,c);return h}},actions:a};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function ad(e,...t){return Object.assign(e,...t)}var qC=Symbol(),o6=({createSelector:e=Jn}={})=>({name:qC,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:u,refetchOnReconnect:l,invalidationBehavior:c},d){FL();const f=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:T_,onOffline:bO,onFocus:R_,onFocusLost:wO},util:{}});const{queryThunk:p,mutationThunk:m,patchQueryData:v,updateQueryData:h,upsertQueryData:y,prefetch:g,buildMatchThunkActions:b}=U5({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:i,assertTagType:f}),{reducer:w,actions:A}=G5({context:d,queryThunk:p,mutationThunk:m,reducerPath:o,assertTagType:f,config:{refetchOnFocus:u,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:c}});ad(t.util,{patchQueryData:v,updateQueryData:h,upsertQueryData:y,prefetch:g,resetApiState:A.resetApiState}),ad(t.internalActions,A);const{middleware:x,actions:S}=r6({reducerPath:o,context:d,queryThunk:p,mutationThunk:m,api:t,assertTagType:f});ad(t.util,S),ad(t,{reducer:w,middleware:x});const{buildQuerySelector:I,buildMutationSelector:E,selectInvalidatedBy:P,selectCachedArgsForQuery:C}=W5({serializeQueryArgs:i,reducerPath:o,createSelector:e});ad(t.util,{selectInvalidatedBy:P,selectCachedArgsForQuery:C});const{buildInitiateQuery:k,buildInitiateMutation:_,getRunningMutationThunk:R,getRunningMutationsThunk:M,getRunningQueriesThunk:T,getRunningQueryThunk:O}=z5({queryThunk:p,mutationThunk:m,api:t,serializeQueryArgs:i,context:d});return ad(t.util,{getRunningMutationThunk:R,getRunningMutationsThunk:M,getRunningQueryThunk:O,getRunningQueriesThunk:T}),{name:qC,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),xO(n)?ad(o.endpoints[e],{name:e,select:I(e,n),initiate:k(e,n)},b(p,e)):V5(n)&&ad(o.endpoints[e],{name:e,select:E(),initiate:_(e)},b(m,e))}}}}),$a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Py(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var XC,QC,X1={exports:{}},Tt={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|