@wellesley/notifications 1.0.758 → 1.0.759

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var AH=Object.defineProperty,RH=(e,t,r)=>t in e?AH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,An=(e,t,r)=>RH(e,"symbol"!=typeof t?t+"":t,r);function TH(e,t){for(var r=0;r<t.length;r++){const n=t[r];if("string"!=typeof n&&!Array.isArray(n))for(const t in n)if("default"!==t&&!(t in e)){const r=Object.getOwnPropertyDescriptor(n,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function vC(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 Yx=()=>Math.random().toString(36).substring(7).split("").join("."),PH={INIT:`@@redux/INIT${Yx()}`,REPLACE:`@@redux/REPLACE${Yx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Yx()}`},S9=PH;function hp(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 $H(e){Object.keys(e).forEach((t=>{const r=e[t];if(typeof r(void 0,{type:S9.INIT})>"u")throw new Error(vC(12));if(typeof r(void 0,{type:S9.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(vC(13))}))}function Nj(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const a=t[n];"function"==typeof e[a]&&(r[a]=e[a])}const n=Object.keys(r);let a;try{$H(r)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<n.length;a++){const s=n[a],l=r[s],c=e[s],u=l(c,t);if(typeof u>"u")throw t&&t.type,new Error(vC(14));i[s]=u,o=o||u!==c}return o=o||n.length!==Object.keys(e).length,o?i:e}}function Dj(e){return hp(e)&&"type"in e&&"string"==typeof e.type}var rA=Symbol.for("immer-nothing"),zy=Symbol.for("immer-draftable"),Is=Symbol.for("immer-state");function uo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var om=Object.getPrototypeOf;function qc(e){return!!e&&!!e[Is]}function Wc(e){var t;return!!e&&(jj(e)||Array.isArray(e)||!!e[zy]||!(null==(t=e.constructor)||!t[zy])||zv(e)||Mv(e))}var zH=Object.prototype.constructor.toString();function jj(e){if(!e||"object"!=typeof e)return!1;const t=om(e);if(null===t)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===zH}function MH(e){return qc(e)||uo(15,e),e[Is].base_}function w0(e,t){0===sm(e)?Object.entries(e).forEach((([r,n])=>{t(r,n,e)})):e.forEach(((r,n)=>t(n,r,e)))}function sm(e){const t=e[Is];return t?t.type_:Array.isArray(e)?1:zv(e)?2:Mv(e)?3:0}function Qy(e,t){return 2===sm(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Kx(e,t){return 2===sm(e)?e.get(t):e[t]}function Lj(e,t,r){const n=sm(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function OH(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function zv(e){return e instanceof Map}function Mv(e){return e instanceof Set}function Wh(e){return e.copy_||e.base_}function bC(e,t){if(zv(e))return new Map(e);if(Mv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&jj(e))return om(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[Is];let n=Reflect.ownKeys(r);for(let t=0;t<n.length;t++){const a=n[t],o=r[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(om(e),r)}function aA(e,t=!1){return Xw(e)||qc(e)||!Wc(e)||(sm(e)>1&&(e.set=e.add=e.clear=e.delete=NH),Object.freeze(e),t&&w0(e,((e,t)=>aA(t,!0)))),e}function NH(){uo(2)}function Xw(e){return Object.isFrozen(e)}var Yy,_C={};function im(e){const t=_C[e];return t||uo(0,e),t}function DH(e,t){_C[e]||(_C[e]=t)}function Vj(){return Yy}function jH(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function E9(e,t){t&&(im("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function wC(e){kC(e),e.drafts_.forEach(LH),e.drafts_=null}function kC(e){e===Yy&&(Yy=e.parent_)}function C9(e){return Yy=jH(Yy,e)}function LH(e){const t=e[Is];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function I9(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[Is].modified_&&(wC(t),uo(4)),Wc(e)&&(e=Z_(t,e),t.parent_||J_(t,e)),t.patches_&&im("Patches").generateReplacementPatches_(r[Is].base_,e,t.patches_,t.inversePatches_)):e=Z_(t,r,[]),wC(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rA?e:void 0}function Z_(e,t,r){if(Xw(t))return t;const n=t[Is];if(!n)return w0(t,((a,o)=>A9(e,n,t,a,o,r))),t;if(n.scope_!==e)return t;if(!n.modified_)return J_(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const t=n.copy_;let a=t,o=!1;3===n.type_&&(a=new Set(t),t.clear(),o=!0),w0(a,((a,i)=>A9(e,n,t,a,i,r,o))),J_(e,t,!1),r&&e.patches_&&im("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function A9(e,t,r,n,a,o,i){if(qc(a)){const i=Z_(e,a,o&&t&&3!==t.type_&&!Qy(t.assigned_,n)?o.concat(n):void 0);if(Lj(r,n,i),!qc(i))return;e.canAutoFreeze_=!1}else i&&r.add(a);if(Wc(a)&&!Xw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Z_(e,a),(!t||!t.scope_.parent_)&&J_(e,a)}}function J_(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&aA(t,r)}function VH(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Vj(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=n,o=oA;r&&(a=[n],o=Ky);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return n.draft_=s,n.revoke_=i,s}var oA={get(e,t){if(t===Is)return e;const r=Wh(e);if(!Qy(r,t))return BH(e,r,t);const n=r[t];return e.finalized_||!Wc(n)?n:n===Xx(e.base_,t)?(Zx(e),e.copy_[t]=SC(n,e)):n},has:(e,t)=>t in Wh(e),ownKeys:e=>Reflect.ownKeys(Wh(e)),set(e,t,r){const n=Bj(Wh(e),t);if(null!=n&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=Xx(Wh(e),t),a=null==n?void 0:n[Is];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(OH(r,n)&&(void 0!==r||Qy(e.base_,t)))return!0;Zx(e),xC(e)}return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Xx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Zx(e),xC(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=Wh(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}},defineProperty(){uo(11)},getPrototypeOf:e=>om(e.base_),setPrototypeOf(){uo(12)}},Ky={};function Xx(e,t){const r=e[Is];return(r?Wh(r):e)[t]}function BH(e,t,r){var n;const a=Bj(t,r);return a?"value"in a?a.value:null==(n=a.get)?void 0:n.call(e.draft_):void 0}function Bj(e,t){if(!(t in e))return;let r=om(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=om(r)}}function xC(e){e.modified_||(e.modified_=!0,e.parent_&&xC(e.parent_))}function Zx(e){e.copy_||(e.copy_=bC(e.base_,e.scope_.immer_.useStrictShallowCopy_))}w0(oA,((e,t)=>{Ky[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ky.deleteProperty=function(e,t){return Ky.set.call(this,e,t,void 0)},Ky.set=function(e,t,r){return oA.set.call(this,e[0],t,r,e[0])};var FH=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...a){return n.produce(e,(e=>t.call(this,e,...a)))}}let n;if("function"!=typeof t&&uo(6),void 0!==r&&"function"!=typeof r&&uo(7),Wc(e)){const a=C9(this),o=SC(e,void 0);let i=!0;try{n=t(o),i=!1}finally{i?wC(a):kC(a)}return E9(a,r),I9(n,a)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===rA&&(n=void 0),this.autoFreeze_&&aA(n,!0),r){const t=[],a=[];im("Patches").generateReplacementPatches_(e,n,t,a),r(t,a)}return n}uo(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,(t=>e(t,...r)));let r,n;return[this.produce(e,t,((e,t)=>{r=e,n=t})),r,n]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Wc(e)||uo(8),qc(e)&&(e=Fj(e));const t=C9(this),r=SC(e,void 0);return r[Is].isManual_=!0,kC(t),r}finishDraft(e,t){const r=e&&e[Is];(!r||!r.isManual_)&&uo(9);const{scope_:n}=r;return E9(n,t),I9(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=im("Patches").applyPatches_;return qc(e)?n(e,t):this.produce(e,(e=>n(e,t)))}};function SC(e,t){const r=zv(e)?im("MapSet").proxyMap_(e,t):Mv(e)?im("MapSet").proxySet_(e,t):VH(e,t);return(t?t.scope_:Vj()).drafts_.push(r),r}function Fj(e){return qc(e)||uo(10,e),Uj(e)}function Uj(e){if(!Wc(e)||Xw(e))return e;const t=e[Is];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=bC(e,t.scope_.immer_.useStrictShallowCopy_)}else r=bC(e,!0);return w0(r,((e,t)=>{Lj(r,e,Uj(t))})),t&&(t.finalized_=!1),r}function UH(){const e="replace",t="remove";function r(e){if(!Wc(e))return e;if(Array.isArray(e))return e.map(r);if(zv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(Mv(e))return new Set(Array.from(e).map(r));const t=Object.create(om(e));for(const n in e)t[n]=r(e[n]);return Qy(e,zy)&&(t[zy]=e[zy]),t}function n(e){return qc(e)?r(e):e}DH("Patches",{applyPatches_:function(n,a){return a.forEach((a=>{const{path:o,op:i}=a;let s=n;for(let e=0;e<o.length-1;e++){const t=sm(s);let r=o[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&uo(19),"function"==typeof s&&"prototype"===r&&uo(19),s=Kx(s,r),"object"!=typeof s&&uo(18,o.join("/"))}const l=sm(s),c=r(a.value),u=o[o.length-1];switch(i){case e:switch(l){case 2:return s.set(u,c);case 3:uo(16);default:return s[u]=c}case"add":switch(l){case 1:return"-"===u?s.push(c):s.splice(u,0,c);case 2:return s.set(u,c);case 3:return s.add(c);default:return s[u]=c}case t:switch(l){case 1:return s.splice(u,1);case 2:return s.delete(u);case 3:return s.delete(a.value);default:return delete s[u]}default:uo(17,i)}})),n},generatePatches_:function(r,a,o,i){switch(r.type_){case 0:case 2:return function(r,a,o,i){const{base_:s,copy_:l}=r;w0(r.assigned_,((r,c)=>{const u=Kx(s,r),f=Kx(l,r),d=c?Qy(s,r)?e:"add":t;if(u===f&&d===e)return;const p=a.concat(r);o.push(d===t?{op:d,path:p}:{op:d,path:p,value:f}),i.push("add"===d?{op:t,path:p}:d===t?{op:"add",path:p,value:n(u)}:{op:e,path:p,value:n(u)})}))}(r,a,o,i);case 1:return function(r,a,o,i){let{base_:s,assigned_:l}=r,c=r.copy_;c.length<s.length&&([s,c]=[c,s],[o,i]=[i,o]);for(let t=0;t<s.length;t++)if(l[t]&&c[t]!==s[t]){const r=a.concat([t]);o.push({op:e,path:r,value:n(c[t])}),i.push({op:e,path:r,value:n(s[t])})}for(let e=s.length;e<c.length;e++){const t=a.concat([e]);o.push({op:"add",path:t,value:n(c[e])})}for(let e=c.length-1;s.length<=e;--e){const r=a.concat([e]);i.push({op:t,path:r})}}(r,a,o,i);case 3:return function(e,r,n,a){let{base_:o,copy_:i}=e,s=0;o.forEach((e=>{if(!i.has(e)){const o=r.concat([s]);n.push({op:t,path:o,value:e}),a.unshift({op:"add",path:o,value:e})}s++})),s=0,i.forEach((e=>{if(!o.has(e)){const o=r.concat([s]);n.push({op:"add",path:o,value:e}),a.unshift({op:t,path:o,value:e})}s++}))}(r,a,o,i)}},generateReplacementPatches_:function(t,r,n,a){n.push({op:e,path:[],value:r===rA?void 0:r}),a.push({op:e,path:[],value:t})}})}var oi=new FH,Ov=oi.produce,Gj=oi.produceWithPatches.bind(oi);oi.setAutoFreeze.bind(oi),oi.setUseStrictShallowCopy.bind(oi);var R9=oi.applyPatches.bind(oi);function GH(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function qH(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function WH(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const r=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${r}]`)}}oi.createDraft.bind(oi),oi.finishDraft.bind(oi);var T9=e=>Array.isArray(e)?e:[e];function HH(e){const t=Array.isArray(e[0])?e[0]:e;return WH(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function QH(e,t){const r=[],{length:n}=e;for(let a=0;a<n;a++)r.push(e[a].apply(null,t));return r}var YH=class{constructor(e){this.value=e}deref(){return this.value}},KH=typeof WeakRef<"u"?WeakRef:YH,XH=0,P9=1;function Ub(){return{s:XH,v:void 0,o:null,p:null}}function Xy(e,t={}){let r=Ub();const{resultEqualityCheck:n}=t;let a,o=0;function i(){var t;let i=r;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const r=e.get(t);void 0===r?(i=Ub(),e.set(t,i)):i=r}else{let e=i.p;null===e&&(i.p=e=new Map);const r=e.get(t);void 0===r?(i=Ub(),e.set(t,i)):i=r}}const l=i;let c;if(i.s===P9?c=i.v:(c=e.apply(null,arguments),o++),l.s=P9,n){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&n(e,c)&&(c=e,0!==o&&o--),a="object"==typeof c&&null!==c||"function"==typeof c?new KH(c):c}return l.v=c,c}return i.clearCache=()=>{r=Ub(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function qj(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),GH(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...r,...o},{memoize:l,memoizeOptions:c=[],argsMemoize:u=Xy,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=T9(c),h=T9(f),g=HH(e),m=l((function(){return n++,i.apply(null,arguments)}),...p),y=u((function(){a++;const e=QH(g,arguments);return t=m.apply(null,e),t}),...h);return Object.assign(y,{resultFunc:i,memoizedResultFunc:m,dependencies:g,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:l,argsMemoize:u})};return Object.assign(n,{withTypes:()=>n}),n}var zr=qj(Xy),ZH=Object.assign(((e,t=zr)=>{qH(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map((t=>e[t])),((...e)=>e.reduce(((e,t,n)=>(e[r[n]]=t,e)),{})))}),{withTypes:()=>ZH}),JH=(...e)=>{const t=qj(...e),r=Object.assign(((...e)=>{const r=t(...e),n=(e,...t)=>r(qc(e)?Fj(e):e,...t);return Object.assign(n,r),n}),{withTypes:()=>r});return r};JH(Xy);var eQ=e=>e&&"function"==typeof e.match;function kr(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error(po(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>Dj(t)&&t.type===e,r}function $9(e){return Wc(e)?Ov(e,(()=>{})):e}function EC(e,t,r){if(e.has(t)){let n=e.get(t);return r.update&&(n=r.update(n,t,e),e.set(t,n)),n}if(!r.insert)throw new Error(po(10));const n=r.insert(t,e);return e.set(t,n),n}var _y="RTK_autoBatch",Y1=()=>e=>({payload:e,meta:{[_y]:!0}});function Wj(e){const t={},r=[];let n;const a={addCase(e,r){const n="string"==typeof e?e:e.type;if(!n)throw new Error(po(28));if(n in t)throw new Error(po(29));return t[n]=r,a},addMatcher:(e,t)=>(r.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(n=e,a)};return e(a),[t,r,n]}function tQ(e){return"function"==typeof e}function nQ(e,t){let r,[n,a,o]=Wj(t);if(tQ(e))r=()=>$9(e());else{const t=$9(e);r=()=>t}function i(e=r(),t){let i=[n[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,r)=>{if(r){if(qc(e)){const n=r(e,t);return void 0===n?e:n}if(Wc(e))return Ov(e,(e=>r(e,t)));{const n=r(e,t);if(void 0===n){if(null===e)return e;throw new Error(po(9))}return n}}return e}),e)}return i.getInitialState=r,i}var rQ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Zw=(e=21)=>{let t="",r=e;for(;r--;)t+=rQ[64*Math.random()|0];return t},Hj=(e,t)=>eQ(e)?e.match(t):e(t);function mp(...e){return t=>e.some((e=>Hj(e,t)))}function My(...e){return t=>e.every((e=>Hj(e,t)))}function Jw(e,t){if(!e||!e.meta)return!1;const r="string"==typeof e.meta.requestId,n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function Nv(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function sA(...e){return 0===e.length?e=>Jw(e,["pending"]):Nv(e)?t=>mp(...e.map((e=>e.pending)))(t):sA()(e[0])}function k0(...e){return 0===e.length?e=>Jw(e,["rejected"]):Nv(e)?t=>mp(...e.map((e=>e.rejected)))(t):k0()(e[0])}function e2(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||Nv(e)?r=>My(k0(...e),t)(r):e2()(e[0])}function gp(...e){return 0===e.length?e=>Jw(e,["fulfilled"]):Nv(e)?t=>mp(...e.map((e=>e.fulfilled)))(t):gp()(e[0])}function CC(...e){return 0===e.length?e=>Jw(e,["pending","fulfilled","rejected"]):Nv(e)?t=>{const r=[];for(const t of e)r.push(t.pending,t.rejected,t.fulfilled);return mp(...r)(t)}:CC()(e[0])}var aQ=["name","message","stack","code"],Jx=class{constructor(e,t){An(this,"_type"),this.payload=e,this.meta=t}},z9=class{constructor(e,t){An(this,"_type"),this.payload=e,this.meta=t}},oQ=e=>{if("object"==typeof e&&null!==e){const t={};for(const r of aQ)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}},M9=(()=>{function e(e,t,r){const n=kr(e+"/fulfilled",((e,t,r,n)=>({payload:e,meta:{...n||{},arg:r,requestId:t,requestStatus:"fulfilled"}}))),a=kr(e+"/pending",((e,t,r)=>({payload:void 0,meta:{...r||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=kr(e+"/rejected",((e,t,n,a,o)=>({payload:a,error:(r&&r.serializeError||oQ)(e||"Rejected"),meta:{...o||{},arg:n,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,l)=>{const c=null!=r&&r.idGenerator?r.idGenerator(e):Zw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,g;let m;try{let o=null==(h=null==r?void 0:r.condition)?void 0:h.call(r,e,{getState:s,extra:l});if(iQ(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(c,e,null==(g=null==r?void 0:r.getPendingMeta)?void 0:g.call(r,{requestId:c,arg:e},{getState:s,extra:l}))),m=await Promise.race([y,Promise.resolve(t(e,{dispatch:i,getState:s,extra:l,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Jx(e,t),fulfillWithValue:(e,t)=>new z9(e,t)})).then((t=>{if(t instanceof Jx)throw t;return t instanceof z9?n(t.payload,c,e,t.meta):n(t,c,e)}))])}catch(t){m=t instanceof Jx?o(null,c,e,t.payload,t.meta):o(t,c,e)}finally{f&&u.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&o.match(m)&&m.meta.condition||i(m),m}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(sQ)})}}),{pending:a,rejected:o,fulfilled:n,settled:mp(o,n),typePrefix:e})}return e.withTypes=()=>e,e})();function sQ(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function iQ(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var cQ=Symbol.for("rtk-slice-createasyncthunk");function lQ(e,t){return`${e}/${t}`}function uQ({creators:e}={}){var t;const r=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[cQ];return function(e){const{name:t,reducerPath:n=t}=e;if(!t)throw new Error(po(11));const a=("function"==typeof e.reducers?e.reducers(dQ()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error(po(12));if(r in i.sliceCaseReducersByType)throw new Error(po(13));return i.sliceCaseReducersByType[r]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},r=[],n]="function"==typeof e.extraReducers?Wj(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return nQ(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)}))}o.forEach((n=>{const o=a[n],i={reducerName:n,type:lQ(t,n),createNotation:"function"==typeof e.reducers};hQ(o)?gQ(i,o,s,r):pQ(i,o,s)}));const c=e=>e,u=new Map;let f;function d(e,t){return f||(f=l()),f(e,t)}function p(){return f||(f=l()),f.getInitialState()}function h(t,r=!1){function n(e){let n=e[t];return typeof n>"u"&&r&&(n=p()),n}function a(t=c){const n=EC(u,r,{insert:()=>new WeakMap});return EC(n,t,{insert:()=>{const n={};for(const[a,o]of Object.entries(e.selectors??{}))n[a]=fQ(o,t,p,r);return n}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(n)},selectSlice:n}}const g={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(n),injectInto(e,{reducerPath:t,...r}={}){const a=t??n;return e.inject({reducerPath:a,reducer:d},r),{...g,...h(a,!0)}}};return g}}function fQ(e,t,r,n){function a(a,...o){let i=t(a);return typeof i>"u"&&n&&(i=r()),e(i,...o)}return a.unwrapped=e,a}var ur=uQ();function dQ(){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 pQ({type:e,reducerName:t,createNotation:r},n,a){let o,i;if("reducer"in n){if(r&&!mQ(n))throw new Error(po(17));o=n.reducer,i=n.prepare}else o=n;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?kr(e,i):kr(e))}function hQ(e){return"asyncThunk"===e._reducerDefinitionType}function mQ(e){return"reducerWithPrepare"===e._reducerDefinitionType}function gQ({type:e,reducerName:t},r,n,a){if(!a)throw new Error(po(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:l,settled:c,options:u}=r,f=a(e,o,u);n.exposeAction(t,f),i&&n.addCase(f.fulfilled,i),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:i||Gb,pending:s||Gb,rejected:l||Gb,settled:c||Gb})}function Gb(){}var yQ=(e,t)=>{if("function"!=typeof e)throw new Error(po(32))},iA="listenerMiddleware",vQ=e=>{let{type:t,actionCreator:r,matcher:n,predicate:a,effect:o}=e;if(t)a=kr(t).match;else if(r)t=r.type,a=r.match;else if(n)a=n;else if(!a)throw new Error(po(21));return yQ(o),{predicate:a,type:t,effect:o}},bQ=Object.assign((e=>{const{type:t,predicate:r,effect:n}=vQ(e);return{id:Zw(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(po(22))}}}),{withTypes:()=>bQ}),_Q=Object.assign(kr(`${iA}/add`),{withTypes:()=>_Q});kr(`${iA}/removeAll`);var wQ=Object.assign(kr(`${iA}/remove`),{withTypes:()=>wQ}),kQ=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,xQ=e=>e.flatMap((e=>kQ(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),cA=Symbol.for("rtk-state-proxy-original"),SQ=e=>!!e&&!!e[cA],EQ=new WeakMap,CQ=(e,t)=>EC(EQ,e,{insert:()=>new Proxy(e,{get:(e,r,n)=>{if(r===cA)return e;const a=Reflect.get(e,r,n);if(typeof a>"u"){const e=t[r.toString()];if(e){const t=e(void 0,{type:Zw()});if(typeof t>"u")throw new Error(po(24));return t}}return a}})}),IQ=e=>{if(!SQ(e))throw new Error(po(25));return e[cA]},AQ=(e={})=>e;function RQ(...e){const t=Object.fromEntries(xQ(e)),r=()=>Object.keys(t).length?Nj(t):AQ;let n=r();function a(e,t){return n(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,r){return function(n,...a){return e(CQ(r?r(n,...a):n,t),...a)}}),{original:IQ});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,l=t[i];return!o.overrideExisting&&l&&l!==s||(t[i]=s,n=r()),a},selector:o})}function po(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var TQ={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/notifications/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/notifications/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:"69a5f3e1a4edaa89",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/notifications",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.758",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/notifications",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/notifications",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3784",APP_NAME:"@wellesley/notifications"},Qj=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(Qj||{});function PQ(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function $Q(e){return new RegExp("(^|:)//").test(e)}var zQ=e=>e.replace(/\/$/,""),MQ=e=>e.replace(/^\//,"");function OQ(e,t){if(!e)return t;if(!t)return e;if($Q(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=zQ(e)}${r}${t=MQ(t)}`}var O9=e=>[].concat(...e);function NQ(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function DQ(){return typeof document>"u"||"hidden"!==document.visibilityState}var N9=hp;function Yj(e,t){if(e===t||!(N9(e)&&N9(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let a=r.length===n.length;const o=Array.isArray(t)?[]:{};for(const n of r)o[n]=Yj(e[n],t[n]),a&&(a=e[n]===o[n]);return a?e:o}var D9=(...e)=>fetch(...e),jQ=e=>e.status>=200&&e.status<=299,LQ=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function j9(e){if(!hp(e))return e;const t={...e};for(const[e,r]of Object.entries(t))void 0===r&&delete t[e];return t}function VQ({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:r=D9,paramsSerializer:n,isJsonContentType:a=LQ,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:l,validateStatus:c,...u}={}){return typeof fetch>"u"&&r===D9&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:g,extra:m,endpoint:y,forced:v,type:b}=p;let w,{url:_,headers:k=new Headers(u.headers),params:x,responseHandler:E=l??"json",validateStatus:A=c??jQ,timeout:S=s,...C}="string"==typeof d?{url:d}:d,z={...u,signal:h,...C};k=new Headers(j9(k)),z.headers=await t(k,{getState:g,extra:m,endpoint:y,forced:v,type:b})||k;const I=e=>"object"==typeof e&&(hp(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!z.headers.has("content-type")&&I(z.body)&&z.headers.set("content-type",o),I(z.body)&&a(z.headers)&&(z.body=JSON.stringify(z.body,i)),x){const e=~_.indexOf("?")?"&":"?";_+=e+(n?n(x):new URLSearchParams(j9(x)))}_=OQ(e,_);const j=new Request(_,z);w={request:new Request(_,z)};let P,T=!1,R=S&&setTimeout((()=>{T=!0,p.abort()}),S);try{P=await r(j)}catch(e){return{error:{status:T?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{R&&clearTimeout(R)}const N=P.clone();w.response=N;let O,M="";try{let e;if(await Promise.all([f(P,E).then((e=>O=e),(t=>e=t)),N.text().then((e=>M=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:P.status,data:M,error:String(e)},meta:w}}return A(P,O)?{data:O,meta:w}:{error:{status:P.status,data:O},meta:w}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var L9=class{constructor(e,t=void 0){this.value=e,this.meta=t}},lA=kr("__rtkq/focused"),Kj=kr("__rtkq/unfocused"),uA=kr("__rtkq/online"),Xj=kr("__rtkq/offline");function Zj(e){return"query"===e.type}function BQ(e){return"mutation"===e.type}function fA(e,t,r,n,a,o){return FQ(e)?e(t,r,n,a).map(IC).map(o):Array.isArray(e)?e.map(IC).map(o):[]}function FQ(e){return"function"==typeof e}function IC(e){return"string"==typeof e?{type:e}:e}function V9(e){return null!=e}function p0(e){let t=0;for(const r in e)t++;return t}function UQ(e,t){return e.catch(t)}var Zy=Symbol("forceQueryFn"),AC=e=>"function"==typeof e[Zy];function GQ({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=n.internalActions;return{buildInitiateQuery:function(r,a){const i=(l,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[Zy]:p,...h}={})=>(g,m)=>{var y;const v=e({queryArgs:l,endpointDefinition:a,endpointName:r}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:r,originalArgs:l,queryCacheKey:v,[Zy]:p}),w=n.endpoints[r].select(l),_=g(b),k=w(m()),{requestId:x,abort:E}=_,A=k.requestId!==x,S=null==(y=o.get(g))?void 0:y[v],C=()=>w(m()),z=Object.assign(p?_.then(C):A&&!S?Promise.resolve(k):Promise.all([S,_]).then(C),{arg:l,requestId:x,subscriptionOptions:d,queryCacheKey:v,abort:E,async unwrap(){const e=await z;if(e.isError)throw e.error;return e.data},refetch:()=>g(i(l,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&g(s({queryCacheKey:v,requestId:x}))},updateSubscriptionOptions(e){z.subscriptionOptions=e,g(c({endpointName:r,requestId:x,queryCacheKey:v,options:e}))}});if(!S&&!A&&!p){const e=o.get(g)||{};e[v]=z,o.set(g,e),z.then((()=>{delete e[v],p0(e)||o.delete(g)}))}return z};return i},buildInitiateMutation:function(e){return(t,{track:n=!0,fixedCacheKey:a}={})=>(o,s)=>{const c=r({type:"mutation",endpointName:e,originalArgs:t,track:n,fixedCacheKey:a}),u=o(c),{requestId:f,abort:d,unwrap:p}=u,h=UQ(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),g=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(l({requestId:f,fixedCacheKey:a}))}}),m=i.get(o)||{};return i.set(o,m),m[f]=g,g.then((()=>{delete m[f],p0(m)||i.delete(o)})),a&&(m[a]=g,g.then((()=>{m[a]===g&&(delete m[a],p0(m)||i.delete(o))}))),g}},getRunningQueryThunk:function(t,r){return n=>{var i;const s=a.endpointDefinitions[t],l=e({queryArgs:r,endpointDefinition:s,endpointName:t});return null==(i=o.get(n))?void 0:i[l]}},getRunningMutationThunk:function(e,t){return e=>{var r;return null==(r=i.get(e))?void 0:r[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(V9)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(V9)}}}function B9(e){return e}function qQ({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:a,assertTagType:o}){const i=async(e,{signal:n,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:l,getState:c,extra:u})=>{const f=r[e.endpointName];try{let r,o=B9;const d={signal:n,abort:a,dispatch:l,getState:c,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,c()):void 0},p="query"===e.type?e[Zy]:void 0;if(p?r=p():f.query?(r=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):r=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&TQ.NODE_ENV,r.error)throw new L9(r.error,r.meta);return i(await o(r.data,r.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:r.meta,[_y]:!0})}catch(t){let r=t;if(r instanceof L9){let t=B9;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(r.value,r.meta,e.originalArgs),{baseQueryMeta:r.meta,[_y]:!0})}catch(e){r=e}}throw console.error(r),r}};function s(t,r){var n,a,o;const i=null==(a=null==(n=r[e])?void 0:n.queries)?void 0:a[t.queryCacheKey],s=null==(o=r[e])?void 0:o.config.refetchOnMountOrArgChange,l=null==i?void 0:i.fulfilledTimeStamp,c=t.forceRefetch??(t.subscribe&&s);return!!c&&(!0===c||(Number(new Date)-Number(l))/1e3>=c)}const l=M9(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[_y]:!0}),condition(t,{getState:n}){var a,o,i;const l=n(),c=null==(o=null==(a=l[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==c?void 0:c.fulfilledTimeStamp,f=t.originalArgs,d=null==c?void 0:c.originalArgs,p=r[t.endpointName];return!!AC(t)||"pending"!==(null==c?void 0:c.status)&&(!!(s(t,l)||Zj(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:c,state:l}))||!u)},dispatchConditionRejection:!0}),c=M9(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[_y]:!0})});function u(e){return t=>{var r,n;return(null==(n=null==(r=null==t?void 0:t.meta)?void 0:r.arg)?void 0:n.endpointName)===e}}return{queryThunk:l,mutationThunk:c,prefetch:(e,t,r)=>(n,o)=>{const i=(e=>"force"in e)(r)&&r.force,s=(e=>"ifOlderThan"in e)(r)&&r.ifOlderThan,l=(r=!0)=>{const n={forceRefetch:r,isPrefetch:!0};return a.endpoints[e].initiate(t,n)},c=a.endpoints[e].select(t)(o());if(i)n(l());else if(s){const e=null==c?void 0:c.fulfilledTimeStamp;if(!e)return void n(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&n(l())}else n(l(!1))},updateQueryData:(e,t,r,n=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let l,c={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,c.inversePatches,n))};if("uninitialized"===s.status)return c;if("data"in s)if(Wc(s.data)){const[e,t,n]=Gj(s.data,r);c.patches.push(...t),c.inversePatches.push(...n),l=e}else l=r(s.data),c.patches.push({op:"replace",path:[],value:l}),c.inversePatches.push({op:"replace",path:[],value:s.data});return o(a.util.patchQueryData(e,t,c.patches,n)),c},upsertQueryData:(e,t,r)=>n=>n(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Zy]:()=>({data:r})})),patchQueryData:(e,t,i,s)=>(l,c)=>{const u=r[e],f=n({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(c()),p=fA(u.providesTags,d.data,void 0,t,{},o);l(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:My(sA(e),u(t)),matchFulfilled:My(gp(e),u(t)),matchRejected:My(k0(e),u(t))}}}}function Jj(e,t,r,n){return fA(r[e.meta.arg.endpointName][t],gp(e)?e.payload:void 0,e2(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function qb(e,t,r){const n=e[t];n&&r(n)}function Jy(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function F9(e,t,r){const n=e[Jy(t)];n&&r(n)}var K1={};function WQ({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:l}){const c=kr(`${e}/resetApiState`),u=ur({name:`${e}/queries`,initialState:K1,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Y1()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:r}}){qb(e,t,(e=>{e.data=R9(e.data,r.concat())}))},prepare:Y1()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:r}})=>{var n;const a=AC(r);e[n=r.queryCacheKey]??(e[n]={status:"uninitialized",endpointName:r.endpointName}),qb(e,r.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==r.originalArgs&&(e.originalArgs=r.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:r})=>{qb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!AC(t.arg))return;const{merge:a}=n[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:n,arg:o,baseQueryMeta:i,requestId:s}=t;let l=Ov(e.data,(e=>a(e,r,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:n,requestId:s})));e.data=l}else e.data=r;else e.data=n[t.arg.endpointName].structuralSharing??1?Yj(qc(e.data)?MH(e.data):e.data,r):r;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:r,requestId:n},error:a,payload:o})=>{qb(e,r.queryCacheKey,(e=>{if(!t){if(e.requestId!==n)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:r}=o(t);for(const[t,n]of Object.entries(r))("fulfilled"===(null==n?void 0:n.status)||"rejected"===(null==n?void 0:n.status))&&(e[t]=n)}))}}),f=ur({name:`${e}/mutations`,initialState:K1,reducers:{removeMutationResult:{reducer(e,{payload:t}){const r=Jy(t);r in e&&delete e[r]},prepare:Y1()}},extraReducers(e){e.addCase(r.pending,((e,{meta:t,meta:{requestId:r,arg:n,startedTimeStamp:a}})=>{n.track&&(e[Jy(t)]={requestId:r,status:"pending",endpointName:n.endpointName,startedTimeStamp:a})})).addCase(r.fulfilled,((e,{payload:t,meta:r})=>{r.arg.track&&F9(e,r,(e=>{e.requestId===r.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=r.fulfilledTimeStamp)}))})).addCase(r.rejected,((e,{payload:t,error:r,meta:n})=>{n.arg.track&&F9(e,n,(e=>{e.requestId===n.requestId&&(e.status="rejected",e.error=t??r)}))})).addMatcher(i,((e,t)=>{const{mutations:r}=o(t);for(const[t,n]of Object.entries(r))("fulfilled"===(null==n?void 0:n.status)||"rejected"===(null==n?void 0:n.status))&&t!==(null==n?void 0:n.requestId)&&(e[t]=n)}))}}),d=ur({name:`${e}/invalidation`,initialState:K1,reducers:{updateProvidedBy:{reducer(e,t){var r,n;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(r=e[t]??(e[t]={}))[n=i||"__internal_without_id"]??(r[n]=[]);o.includes(a)||o.push(a)}},prepare:Y1()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const r of Object.values(e))for(const e of Object.values(r)){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}})).addMatcher(i,((e,t)=>{var r,n;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(r=e[t]??(e[t]={}))[n=a||"__internal_without_id"]??(r[n]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(mp(gp(t),e2(t)),((e,t)=>{const r=Jj(t,"providesTags",n,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:r}))}))}}),p=ur({name:`${e}/subscriptions`,initialState:K1,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=ur({name:`${e}/internalSubscriptions`,initialState:K1,reducers:{subscriptionsUpdated:{reducer:(e,t)=>R9(e,t.payload),prepare:Y1()}}}),g=ur({name:`${e}/config`,initialState:{online:NQ(),focused:DQ(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(uA,(e=>{e.online=!0})).addCase(Xj,(e=>{e.online=!1})).addCase(lA,(e=>{e.focused=!0})).addCase(Kj,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),m=Nj({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:g.reducer});return{reducer:(e,t)=>m(c.match(t)?void 0:e,t),actions:{...g.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:c}}}var Xh=Symbol.for("RTKQ/skipToken"),e8={status:"uninitialized"},U9=Ov(e8,(()=>{})),G9=Ov(e8,(()=>{}));function HQ({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=e=>U9,a=e=>G9;return{buildQuerySelector:function(t,a){return s=>{const l=e({queryArgs:s,endpointDefinition:a,endpointName:t});return r(s===Xh?n:e=>{var t,r;return(null==(r=null==(t=i(e))?void 0:t.queries)?void 0:r[l])??U9},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Jy(e)??Xh:e,r(t===Xh?a:e=>{var r,n;return(null==(n=null==(r=i(e))?void 0:r.mutations)?void 0:n[t])??G9},o)}},selectInvalidatedBy:function(e,r){const n=e[t],a=new Set;for(const e of r.map(IC)){const t=n.provided[e.type];if(!t)continue;let r=(void 0!==e.id?t[e.id]:O9(Object.values(t)))??[];for(const e of r)a.add(e)}return O9(Array.from(a.values()).map((e=>{const t=n.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,r){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===r&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...PQ(e.status)}}function i(e){return e[t]}}var Yg=WeakMap?new WeakMap:void 0,q9=({endpointName:e,queryArgs:t})=>{let r="";const n=null==Yg?void 0:Yg.get(t);if("string"==typeof n)r=n;else{const e=JSON.stringify(t,((e,t)=>hp(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t));hp(t)&&(null==Yg||Yg.set(t,e)),r=e}return`${e}(${r})`};function QQ(...e){return function(t){const r=Xy((e=>{var r;return null==(r=t.extractRehydrationInfo)?void 0:r.call(t,e,{reducerPath:t.reducerPath??"api"})})),n={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:r,serializeQueryArgs(e){let r=q9;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;r=e=>{const r=t(e);return"string"==typeof r?r:q9({...e,queryArgs:r})}}else t.serializeQueryArgs&&(r=t.serializeQueryArgs);return r(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Zw(),extractRehydrationInfo:r,hasRehydrationInfo:Xy((e=>null!=r(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[r,n]of Object.entries(t))if(!0!==e.overrideExisting&&r in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(po(39))}else{a.endpointDefinitions[r]=n;for(const e of i)e.injectEndpoint(r,n)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)n.tagTypes.includes(t)||n.tagTypes.push(t);if(t)for(const[e,r]of Object.entries(t))"function"==typeof r?r(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},r);return o}},i=e.map((e=>e.init(o,n,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function YQ(e){for(let t in e)return!1;return!0}var KQ=2147482.647,XQ=({reducerPath:e,api:t,context:r,internalState:n})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=n.currentSubscriptions[e];return!!t&&!YQ(t)}const s={};function l(e,t,n,o){const l=r.endpointDefinitions[t],c=(null==l?void 0:l.keepUnusedDataFor)??o.keepUnusedDataFor;if(c===1/0)return;const u=Math.max(0,Math.min(c,KQ));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||n.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(n,a,i)=>{var c;if(o.match(n)){const t=a.getState()[e],{queryCacheKey:r}=n.payload;l(r,null==(c=t.queries[r])?void 0:c.endpointName,a,t.config)}if(t.util.resetApiState.match(n))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(r.hasRehydrationInfo(n)){const t=a.getState()[e],{queries:o}=r.extractRehydrationInfo(n);for(const[e,r]of Object.entries(o))l(e,null==r?void 0:r.endpointName,a,t.config)}}},ZQ=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:l})=>{const{removeQueryResult:c}=o.internalActions,u=mp(gp(n),e2(n)),f=mp(gp(n,a),k0(n,a));let d=[];function p(r,n){const a=n.getState(),i=a[e];if(d.push(...r),"delayed"===i.config.invalidationBehavior&&function(e){var t,r;for(const r in e.queries)if("pending"===(null==(t=e.queries[r])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(r=e.mutations[t])?void 0:r.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],r=l.currentSubscriptions[t]??{};e&&(0===p0(r)?n.dispatch(c({queryCacheKey:t})):"uninitialized"!==e.status&&n.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(Jj(e,"invalidatesTags",r,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(fA(e.payload,void 0,void 0,void 0,void 0,i),t)}},JQ=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:a})=>{const o={};function i({queryCacheKey:t},r){const s=r.getState()[e],l=s.queries[t],u=a.currentSubscriptions[t];if(!l||"uninitialized"===l.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=c(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&r.dispatch(n(l,t)),i({queryCacheKey:t},r)}),f)}}function s({queryCacheKey:t},r){const n=r.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!n||"uninitialized"===n.status)return;const{lowestPollingInterval:u}=c(s);if(!Number.isFinite(u))return void l(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},r)}function l(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function c(e={}){let t=!1,r=Number.POSITIVE_INFINITY;for(let n in e)e[n].pollingInterval&&(r=Math.min(e[n].pollingInterval,r),t=e[n].skipPollingIfUnfocused||t);return{lowestPollingInterval:r,skipPollingIfUnfocused:t}}return(e,n)=>{(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,n),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,n),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,n),r.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))l(e)}()}},eY=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:a})=>{const{removeQueryResult:o}=r.internalActions;function i(r,i){const s=r.getState()[e],l=s.queries,c=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=l[e],a=c[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===p0(a)?r.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&r.dispatch(n(t,e))))}}))}return(e,t)=>{lA.match(e)&&i(t,"refetchOnFocus"),uA.match(e)&&i(t,"refetchOnReconnect")}},W9=new Error("Promise never resolved before cacheEntryRemoved."),tY=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:a,internalState:o})=>{const i=CC(n),s=CC(a),l=gp(n,a),c={};function u(t,n,a,o,i){const s=r.endpointDefinitions[t],l=null==s?void 0:s.onCacheEntryAdded;if(!l)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw W9}))]);d.catch((()=>{})),c[a]=u;const p=e.endpoints[t].select("query"===s.type?n:a),h=o.dispatch(((e,t,r)=>r)),g={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?r=>o.dispatch(e.util.updateQueryData(t,n,r)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},m=l(n,g);Promise.resolve(m).catch((e=>{if(e!==W9)throw e}))}return(r,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Jy(t.payload):""}(r);if(n.pending.match(r)){const e=f[t].queries[d],n=o.getState()[t].queries[d];!e&&n&&u(r.meta.arg.endpointName,r.meta.arg.originalArgs,d,o,r.meta.requestId)}else if(a.pending.match(r))o.getState()[t].mutations[d]&&u(r.meta.arg.endpointName,r.meta.arg.originalArgs,d,o,r.meta.requestId);else if(l(r)){const e=c[d];null!=e&&e.valueResolved&&(e.valueResolved({data:r.payload,meta:r.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(r)||e.internalActions.removeMutationResult.match(r)){const e=c[d];e&&(delete c[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(r))for(const[e,t]of Object.entries(c))delete c[e],t.cacheEntryRemoved()}},nY=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const a=sA(r,n),o=k0(r,n),i=gp(r,n),s={};return(r,n)=>{var l,c;if(a(r)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=r.meta,l=t.endpointDefinitions[o],c=null==l?void 0:l.onQueryStarted;if(c){const t={},r=new Promise(((e,r)=>{t.resolve=e,t.reject=r}));r.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===l.type?i:a),f=n.dispatch(((e,t,r)=>r)),d={...n,getCacheEntry:()=>u(n.getState()),requestId:a,extra:f,updateCachedData:"query"===l.type?t=>n.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:r};c(i,d)}}else if(i(r)){const{requestId:e,baseQueryMeta:t}=r.meta;null==(l=s[e])||l.resolve({data:r.payload,meta:t}),delete s[e]}else if(o(r)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:n}=r.meta;null==(c=s[e])||c.reject({error:r.payload??r.error,isUnhandledError:!t,meta:n}),delete s[e]}}},rY=({api:e,context:{apiUid:t},reducerPath:r})=>(r,n)=>{e.util.resetApiState.match(r)&&n.dispatch(e.internalActions.middlewareRegistered(t))},aY=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,l=()=>r.currentSubscriptions,c={getSubscriptions:l,getSubscriptionCount:e=>p0(l()[e]??{}),isRequestSubscribed:(e,t)=>{var r;const n=l();return!(null==(r=null==n?void 0:n[e])||!r[t])}};return(l,u)=>{if(a||(a=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(l))return a=r.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(l))return[!1,c];const f=((r,n)=>{var a,o,l;if(i.match(n)){const{queryCacheKey:e,requestId:t,options:o}=n.payload;return null!=(a=null==r?void 0:r[e])&&a[t]&&(r[e][t]=o),!0}if(s.match(n)){const{queryCacheKey:e,requestId:t}=n.payload;return r[e]&&delete r[e][t],!0}if(e.internalActions.removeQueryResult.match(n))return delete r[n.payload.queryCacheKey],!0;if(t.pending.match(n)){const{meta:{arg:e,requestId:t}}=n,a=r[o=e.queryCacheKey]??(r[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let c=!1;if(t.fulfilled.match(n)||t.rejected.match(n)){const e=r[n.meta.arg.queryCacheKey]||{},t=`${n.meta.requestId}_running`;c||(c=!!e[t]),delete e[t]}if(t.rejected.match(n)){const{meta:{condition:e,arg:t,requestId:a}}=n;if(e&&t.subscribe){const e=r[l=t.queryCacheKey]??(r[l]={});e[a]=t.subscriptionOptions??e[a]??{},c=!0}}return c})(r.currentSubscriptions,l);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,n]=Gj(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(n)),a=t,o=null}),500));const i="string"==typeof l.type&&!!l.type.startsWith(n),s=t.rejected.match(l)&&l.meta.condition&&!!l.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function oY(e){const{reducerPath:t,queryThunk:r,api:n,context:a}=e,{apiUid:o}=a,i={invalidateTags:kr(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),l=[rY,XQ,ZQ,JQ,tY,nY];return{middleware:r=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:s},f=l.map((e=>e(u))),d=aY(u),p=eY(u);return e=>l=>{if(!Dj(l))return e(l);i||(i=!0,r.dispatch(n.internalActions.middlewareRegistered(o)));const c={...r,next:e},u=r.getState(),[h,g]=d(l,c,u);let m;if(m=h?e(l):g,r.getState()[t]&&(p(l,c,u),s(l)||a.hasRehydrationInfo(l)))for(let e of f)e(l,c,u);return m}},actions:i};function c(e,t,n={}){return r({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...n})}}function Zd(e,...t){return Object.assign(e,...t)}var H9=Symbol(),sY=({createSelector:e=zr}={})=>({name:H9,init(t,{baseQuery:r,tagTypes:n,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:c,invalidationBehavior:u},f){UH();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:uA,onOffline:Xj,onFocus:lA,onFocusLost:Kj},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:g,updateQueryData:m,upsertQueryData:y,prefetch:v,buildMatchThunkActions:b}=qQ({baseQuery:r,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:w,actions:_}=WQ({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});Zd(t.util,{patchQueryData:g,updateQueryData:m,upsertQueryData:y,prefetch:v,resetApiState:_.resetApiState}),Zd(t.internalActions,_);const{middleware:k,actions:x}=oY({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});Zd(t.util,x),Zd(t,{reducer:w,middleware:k});const{buildQuerySelector:E,buildMutationSelector:A,selectInvalidatedBy:S,selectCachedArgsForQuery:C}=HQ({serializeQueryArgs:o,reducerPath:a,createSelector:e});Zd(t.util,{selectInvalidatedBy:S,selectCachedArgsForQuery:C});const{buildInitiateQuery:z,buildInitiateMutation:I,getRunningMutationThunk:j,getRunningMutationsThunk:P,getRunningQueriesThunk:T,getRunningQueryThunk:R}=GQ({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return Zd(t.util,{getRunningMutationThunk:j,getRunningMutationsThunk:P,getRunningQueryThunk:R,getRunningQueriesThunk:T}),{name:H9,injectEndpoint(e,r){var n;const a=t;(n=a.endpoints)[e]??(n[e]={}),Zj(r)?Zd(a.endpoints[e],{name:e,select:E(e,r),initiate:z(e,r)},b(p,e)):BQ(r)&&Zd(a.endpoints[e],{name:e,select:A(),initiate:I(e)},b(h,e))}}}}),qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q9,Y9,e3={exports:{}},Kt={};
1
+ var AH=Object.defineProperty,RH=(e,t,r)=>t in e?AH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,An=(e,t,r)=>RH(e,"symbol"!=typeof t?t+"":t,r);function TH(e,t){for(var r=0;r<t.length;r++){const n=t[r];if("string"!=typeof n&&!Array.isArray(n))for(const t in n)if("default"!==t&&!(t in e)){const r=Object.getOwnPropertyDescriptor(n,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function vC(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 Yx=()=>Math.random().toString(36).substring(7).split("").join("."),PH={INIT:`@@redux/INIT${Yx()}`,REPLACE:`@@redux/REPLACE${Yx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Yx()}`},S9=PH;function hp(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 $H(e){Object.keys(e).forEach((t=>{const r=e[t];if(typeof r(void 0,{type:S9.INIT})>"u")throw new Error(vC(12));if(typeof r(void 0,{type:S9.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(vC(13))}))}function Nj(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const a=t[n];"function"==typeof e[a]&&(r[a]=e[a])}const n=Object.keys(r);let a;try{$H(r)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<n.length;a++){const s=n[a],l=r[s],c=e[s],u=l(c,t);if(typeof u>"u")throw t&&t.type,new Error(vC(14));i[s]=u,o=o||u!==c}return o=o||n.length!==Object.keys(e).length,o?i:e}}function Dj(e){return hp(e)&&"type"in e&&"string"==typeof e.type}var rA=Symbol.for("immer-nothing"),zy=Symbol.for("immer-draftable"),Is=Symbol.for("immer-state");function uo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var om=Object.getPrototypeOf;function qc(e){return!!e&&!!e[Is]}function Wc(e){var t;return!!e&&(jj(e)||Array.isArray(e)||!!e[zy]||!(null==(t=e.constructor)||!t[zy])||zv(e)||Mv(e))}var zH=Object.prototype.constructor.toString();function jj(e){if(!e||"object"!=typeof e)return!1;const t=om(e);if(null===t)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===zH}function MH(e){return qc(e)||uo(15,e),e[Is].base_}function w0(e,t){0===sm(e)?Object.entries(e).forEach((([r,n])=>{t(r,n,e)})):e.forEach(((r,n)=>t(n,r,e)))}function sm(e){const t=e[Is];return t?t.type_:Array.isArray(e)?1:zv(e)?2:Mv(e)?3:0}function Qy(e,t){return 2===sm(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Kx(e,t){return 2===sm(e)?e.get(t):e[t]}function Lj(e,t,r){const n=sm(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function OH(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function zv(e){return e instanceof Map}function Mv(e){return e instanceof Set}function Wh(e){return e.copy_||e.base_}function bC(e,t){if(zv(e))return new Map(e);if(Mv(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&jj(e))return om(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[Is];let n=Reflect.ownKeys(r);for(let t=0;t<n.length;t++){const a=n[t],o=r[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(om(e),r)}function aA(e,t=!1){return Xw(e)||qc(e)||!Wc(e)||(sm(e)>1&&(e.set=e.add=e.clear=e.delete=NH),Object.freeze(e),t&&w0(e,((e,t)=>aA(t,!0)))),e}function NH(){uo(2)}function Xw(e){return Object.isFrozen(e)}var Yy,_C={};function im(e){const t=_C[e];return t||uo(0,e),t}function DH(e,t){_C[e]||(_C[e]=t)}function Vj(){return Yy}function jH(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function E9(e,t){t&&(im("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function wC(e){kC(e),e.drafts_.forEach(LH),e.drafts_=null}function kC(e){e===Yy&&(Yy=e.parent_)}function C9(e){return Yy=jH(Yy,e)}function LH(e){const t=e[Is];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function I9(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[Is].modified_&&(wC(t),uo(4)),Wc(e)&&(e=Z_(t,e),t.parent_||J_(t,e)),t.patches_&&im("Patches").generateReplacementPatches_(r[Is].base_,e,t.patches_,t.inversePatches_)):e=Z_(t,r,[]),wC(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rA?e:void 0}function Z_(e,t,r){if(Xw(t))return t;const n=t[Is];if(!n)return w0(t,((a,o)=>A9(e,n,t,a,o,r))),t;if(n.scope_!==e)return t;if(!n.modified_)return J_(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const t=n.copy_;let a=t,o=!1;3===n.type_&&(a=new Set(t),t.clear(),o=!0),w0(a,((a,i)=>A9(e,n,t,a,i,r,o))),J_(e,t,!1),r&&e.patches_&&im("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function A9(e,t,r,n,a,o,i){if(qc(a)){const i=Z_(e,a,o&&t&&3!==t.type_&&!Qy(t.assigned_,n)?o.concat(n):void 0);if(Lj(r,n,i),!qc(i))return;e.canAutoFreeze_=!1}else i&&r.add(a);if(Wc(a)&&!Xw(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Z_(e,a),(!t||!t.scope_.parent_)&&J_(e,a)}}function J_(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&aA(t,r)}function VH(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Vj(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=n,o=oA;r&&(a=[n],o=Ky);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return n.draft_=s,n.revoke_=i,s}var oA={get(e,t){if(t===Is)return e;const r=Wh(e);if(!Qy(r,t))return BH(e,r,t);const n=r[t];return e.finalized_||!Wc(n)?n:n===Xx(e.base_,t)?(Zx(e),e.copy_[t]=SC(n,e)):n},has:(e,t)=>t in Wh(e),ownKeys:e=>Reflect.ownKeys(Wh(e)),set(e,t,r){const n=Bj(Wh(e),t);if(null!=n&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=Xx(Wh(e),t),a=null==n?void 0:n[Is];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(OH(r,n)&&(void 0!==r||Qy(e.base_,t)))return!0;Zx(e),xC(e)}return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Xx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Zx(e),xC(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=Wh(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}},defineProperty(){uo(11)},getPrototypeOf:e=>om(e.base_),setPrototypeOf(){uo(12)}},Ky={};function Xx(e,t){const r=e[Is];return(r?Wh(r):e)[t]}function BH(e,t,r){var n;const a=Bj(t,r);return a?"value"in a?a.value:null==(n=a.get)?void 0:n.call(e.draft_):void 0}function Bj(e,t){if(!(t in e))return;let r=om(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=om(r)}}function xC(e){e.modified_||(e.modified_=!0,e.parent_&&xC(e.parent_))}function Zx(e){e.copy_||(e.copy_=bC(e.base_,e.scope_.immer_.useStrictShallowCopy_))}w0(oA,((e,t)=>{Ky[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ky.deleteProperty=function(e,t){return Ky.set.call(this,e,t,void 0)},Ky.set=function(e,t,r){return oA.set.call(this,e[0],t,r,e[0])};var FH=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...a){return n.produce(e,(e=>t.call(this,e,...a)))}}let n;if("function"!=typeof t&&uo(6),void 0!==r&&"function"!=typeof r&&uo(7),Wc(e)){const a=C9(this),o=SC(e,void 0);let i=!0;try{n=t(o),i=!1}finally{i?wC(a):kC(a)}return E9(a,r),I9(n,a)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===rA&&(n=void 0),this.autoFreeze_&&aA(n,!0),r){const t=[],a=[];im("Patches").generateReplacementPatches_(e,n,t,a),r(t,a)}return n}uo(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,(t=>e(t,...r)));let r,n;return[this.produce(e,t,((e,t)=>{r=e,n=t})),r,n]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Wc(e)||uo(8),qc(e)&&(e=Fj(e));const t=C9(this),r=SC(e,void 0);return r[Is].isManual_=!0,kC(t),r}finishDraft(e,t){const r=e&&e[Is];(!r||!r.isManual_)&&uo(9);const{scope_:n}=r;return E9(n,t),I9(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=im("Patches").applyPatches_;return qc(e)?n(e,t):this.produce(e,(e=>n(e,t)))}};function SC(e,t){const r=zv(e)?im("MapSet").proxyMap_(e,t):Mv(e)?im("MapSet").proxySet_(e,t):VH(e,t);return(t?t.scope_:Vj()).drafts_.push(r),r}function Fj(e){return qc(e)||uo(10,e),Uj(e)}function Uj(e){if(!Wc(e)||Xw(e))return e;const t=e[Is];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=bC(e,t.scope_.immer_.useStrictShallowCopy_)}else r=bC(e,!0);return w0(r,((e,t)=>{Lj(r,e,Uj(t))})),t&&(t.finalized_=!1),r}function UH(){const e="replace",t="remove";function r(e){if(!Wc(e))return e;if(Array.isArray(e))return e.map(r);if(zv(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(Mv(e))return new Set(Array.from(e).map(r));const t=Object.create(om(e));for(const n in e)t[n]=r(e[n]);return Qy(e,zy)&&(t[zy]=e[zy]),t}function n(e){return qc(e)?r(e):e}DH("Patches",{applyPatches_:function(n,a){return a.forEach((a=>{const{path:o,op:i}=a;let s=n;for(let e=0;e<o.length-1;e++){const t=sm(s);let r=o[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&uo(19),"function"==typeof s&&"prototype"===r&&uo(19),s=Kx(s,r),"object"!=typeof s&&uo(18,o.join("/"))}const l=sm(s),c=r(a.value),u=o[o.length-1];switch(i){case e:switch(l){case 2:return s.set(u,c);case 3:uo(16);default:return s[u]=c}case"add":switch(l){case 1:return"-"===u?s.push(c):s.splice(u,0,c);case 2:return s.set(u,c);case 3:return s.add(c);default:return s[u]=c}case t:switch(l){case 1:return s.splice(u,1);case 2:return s.delete(u);case 3:return s.delete(a.value);default:return delete s[u]}default:uo(17,i)}})),n},generatePatches_:function(r,a,o,i){switch(r.type_){case 0:case 2:return function(r,a,o,i){const{base_:s,copy_:l}=r;w0(r.assigned_,((r,c)=>{const u=Kx(s,r),f=Kx(l,r),d=c?Qy(s,r)?e:"add":t;if(u===f&&d===e)return;const p=a.concat(r);o.push(d===t?{op:d,path:p}:{op:d,path:p,value:f}),i.push("add"===d?{op:t,path:p}:d===t?{op:"add",path:p,value:n(u)}:{op:e,path:p,value:n(u)})}))}(r,a,o,i);case 1:return function(r,a,o,i){let{base_:s,assigned_:l}=r,c=r.copy_;c.length<s.length&&([s,c]=[c,s],[o,i]=[i,o]);for(let t=0;t<s.length;t++)if(l[t]&&c[t]!==s[t]){const r=a.concat([t]);o.push({op:e,path:r,value:n(c[t])}),i.push({op:e,path:r,value:n(s[t])})}for(let e=s.length;e<c.length;e++){const t=a.concat([e]);o.push({op:"add",path:t,value:n(c[e])})}for(let e=c.length-1;s.length<=e;--e){const r=a.concat([e]);i.push({op:t,path:r})}}(r,a,o,i);case 3:return function(e,r,n,a){let{base_:o,copy_:i}=e,s=0;o.forEach((e=>{if(!i.has(e)){const o=r.concat([s]);n.push({op:t,path:o,value:e}),a.unshift({op:"add",path:o,value:e})}s++})),s=0,i.forEach((e=>{if(!o.has(e)){const o=r.concat([s]);n.push({op:"add",path:o,value:e}),a.unshift({op:t,path:o,value:e})}s++}))}(r,a,o,i)}},generateReplacementPatches_:function(t,r,n,a){n.push({op:e,path:[],value:r===rA?void 0:r}),a.push({op:e,path:[],value:t})}})}var oi=new FH,Ov=oi.produce,Gj=oi.produceWithPatches.bind(oi);oi.setAutoFreeze.bind(oi),oi.setUseStrictShallowCopy.bind(oi);var R9=oi.applyPatches.bind(oi);function GH(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function qH(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function WH(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const r=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${r}]`)}}oi.createDraft.bind(oi),oi.finishDraft.bind(oi);var T9=e=>Array.isArray(e)?e:[e];function HH(e){const t=Array.isArray(e[0])?e[0]:e;return WH(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function QH(e,t){const r=[],{length:n}=e;for(let a=0;a<n;a++)r.push(e[a].apply(null,t));return r}var YH=class{constructor(e){this.value=e}deref(){return this.value}},KH=typeof WeakRef<"u"?WeakRef:YH,XH=0,P9=1;function Ub(){return{s:XH,v:void 0,o:null,p:null}}function Xy(e,t={}){let r=Ub();const{resultEqualityCheck:n}=t;let a,o=0;function i(){var t;let i=r;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const r=e.get(t);void 0===r?(i=Ub(),e.set(t,i)):i=r}else{let e=i.p;null===e&&(i.p=e=new Map);const r=e.get(t);void 0===r?(i=Ub(),e.set(t,i)):i=r}}const l=i;let c;if(i.s===P9?c=i.v:(c=e.apply(null,arguments),o++),l.s=P9,n){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&n(e,c)&&(c=e,0!==o&&o--),a="object"==typeof c&&null!==c||"function"==typeof c?new KH(c):c}return l.v=c,c}return i.clearCache=()=>{r=Ub(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function qj(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),GH(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...r,...o},{memoize:l,memoizeOptions:c=[],argsMemoize:u=Xy,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=T9(c),h=T9(f),g=HH(e),m=l((function(){return n++,i.apply(null,arguments)}),...p),y=u((function(){a++;const e=QH(g,arguments);return t=m.apply(null,e),t}),...h);return Object.assign(y,{resultFunc:i,memoizedResultFunc:m,dependencies:g,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:l,argsMemoize:u})};return Object.assign(n,{withTypes:()=>n}),n}var zr=qj(Xy),ZH=Object.assign(((e,t=zr)=>{qH(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map((t=>e[t])),((...e)=>e.reduce(((e,t,n)=>(e[r[n]]=t,e)),{})))}),{withTypes:()=>ZH}),JH=(...e)=>{const t=qj(...e),r=Object.assign(((...e)=>{const r=t(...e),n=(e,...t)=>r(qc(e)?Fj(e):e,...t);return Object.assign(n,r),n}),{withTypes:()=>r});return r};JH(Xy);var eQ=e=>e&&"function"==typeof e.match;function kr(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error(po(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>Dj(t)&&t.type===e,r}function $9(e){return Wc(e)?Ov(e,(()=>{})):e}function EC(e,t,r){if(e.has(t)){let n=e.get(t);return r.update&&(n=r.update(n,t,e),e.set(t,n)),n}if(!r.insert)throw new Error(po(10));const n=r.insert(t,e);return e.set(t,n),n}var _y="RTK_autoBatch",Y1=()=>e=>({payload:e,meta:{[_y]:!0}});function Wj(e){const t={},r=[];let n;const a={addCase(e,r){const n="string"==typeof e?e:e.type;if(!n)throw new Error(po(28));if(n in t)throw new Error(po(29));return t[n]=r,a},addMatcher:(e,t)=>(r.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(n=e,a)};return e(a),[t,r,n]}function tQ(e){return"function"==typeof e}function nQ(e,t){let r,[n,a,o]=Wj(t);if(tQ(e))r=()=>$9(e());else{const t=$9(e);r=()=>t}function i(e=r(),t){let i=[n[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,r)=>{if(r){if(qc(e)){const n=r(e,t);return void 0===n?e:n}if(Wc(e))return Ov(e,(e=>r(e,t)));{const n=r(e,t);if(void 0===n){if(null===e)return e;throw new Error(po(9))}return n}}return e}),e)}return i.getInitialState=r,i}var rQ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Zw=(e=21)=>{let t="",r=e;for(;r--;)t+=rQ[64*Math.random()|0];return t},Hj=(e,t)=>eQ(e)?e.match(t):e(t);function mp(...e){return t=>e.some((e=>Hj(e,t)))}function My(...e){return t=>e.every((e=>Hj(e,t)))}function Jw(e,t){if(!e||!e.meta)return!1;const r="string"==typeof e.meta.requestId,n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function Nv(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function sA(...e){return 0===e.length?e=>Jw(e,["pending"]):Nv(e)?t=>mp(...e.map((e=>e.pending)))(t):sA()(e[0])}function k0(...e){return 0===e.length?e=>Jw(e,["rejected"]):Nv(e)?t=>mp(...e.map((e=>e.rejected)))(t):k0()(e[0])}function e2(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||Nv(e)?r=>My(k0(...e),t)(r):e2()(e[0])}function gp(...e){return 0===e.length?e=>Jw(e,["fulfilled"]):Nv(e)?t=>mp(...e.map((e=>e.fulfilled)))(t):gp()(e[0])}function CC(...e){return 0===e.length?e=>Jw(e,["pending","fulfilled","rejected"]):Nv(e)?t=>{const r=[];for(const t of e)r.push(t.pending,t.rejected,t.fulfilled);return mp(...r)(t)}:CC()(e[0])}var aQ=["name","message","stack","code"],Jx=class{constructor(e,t){An(this,"_type"),this.payload=e,this.meta=t}},z9=class{constructor(e,t){An(this,"_type"),this.payload=e,this.meta=t}},oQ=e=>{if("object"==typeof e&&null!==e){const t={};for(const r of aQ)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}},M9=(()=>{function e(e,t,r){const n=kr(e+"/fulfilled",((e,t,r,n)=>({payload:e,meta:{...n||{},arg:r,requestId:t,requestStatus:"fulfilled"}}))),a=kr(e+"/pending",((e,t,r)=>({payload:void 0,meta:{...r||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=kr(e+"/rejected",((e,t,n,a,o)=>({payload:a,error:(r&&r.serializeError||oQ)(e||"Rejected"),meta:{...o||{},arg:n,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,l)=>{const c=null!=r&&r.idGenerator?r.idGenerator(e):Zw(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,g;let m;try{let o=null==(h=null==r?void 0:r.condition)?void 0:h.call(r,e,{getState:s,extra:l});if(iQ(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const y=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(c,e,null==(g=null==r?void 0:r.getPendingMeta)?void 0:g.call(r,{requestId:c,arg:e},{getState:s,extra:l}))),m=await Promise.race([y,Promise.resolve(t(e,{dispatch:i,getState:s,extra:l,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new Jx(e,t),fulfillWithValue:(e,t)=>new z9(e,t)})).then((t=>{if(t instanceof Jx)throw t;return t instanceof z9?n(t.payload,c,e,t.meta):n(t,c,e)}))])}catch(t){m=t instanceof Jx?o(null,c,e,t.payload,t.meta):o(t,c,e)}finally{f&&u.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&o.match(m)&&m.meta.condition||i(m),m}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(sQ)})}}),{pending:a,rejected:o,fulfilled:n,settled:mp(o,n),typePrefix:e})}return e.withTypes=()=>e,e})();function sQ(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function iQ(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var cQ=Symbol.for("rtk-slice-createasyncthunk");function lQ(e,t){return`${e}/${t}`}function uQ({creators:e}={}){var t;const r=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[cQ];return function(e){const{name:t,reducerPath:n=t}=e;if(!t)throw new Error(po(11));const a=("function"==typeof e.reducers?e.reducers(dQ()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error(po(12));if(r in i.sliceCaseReducersByType)throw new Error(po(13));return i.sliceCaseReducersByType[r]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},r=[],n]="function"==typeof e.extraReducers?Wj(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return nQ(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)}))}o.forEach((n=>{const o=a[n],i={reducerName:n,type:lQ(t,n),createNotation:"function"==typeof e.reducers};hQ(o)?gQ(i,o,s,r):pQ(i,o,s)}));const c=e=>e,u=new Map;let f;function d(e,t){return f||(f=l()),f(e,t)}function p(){return f||(f=l()),f.getInitialState()}function h(t,r=!1){function n(e){let n=e[t];return typeof n>"u"&&r&&(n=p()),n}function a(t=c){const n=EC(u,r,{insert:()=>new WeakMap});return EC(n,t,{insert:()=>{const n={};for(const[a,o]of Object.entries(e.selectors??{}))n[a]=fQ(o,t,p,r);return n}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(n)},selectSlice:n}}const g={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(n),injectInto(e,{reducerPath:t,...r}={}){const a=t??n;return e.inject({reducerPath:a,reducer:d},r),{...g,...h(a,!0)}}};return g}}function fQ(e,t,r,n){function a(a,...o){let i=t(a);return typeof i>"u"&&n&&(i=r()),e(i,...o)}return a.unwrapped=e,a}var ur=uQ();function dQ(){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 pQ({type:e,reducerName:t,createNotation:r},n,a){let o,i;if("reducer"in n){if(r&&!mQ(n))throw new Error(po(17));o=n.reducer,i=n.prepare}else o=n;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?kr(e,i):kr(e))}function hQ(e){return"asyncThunk"===e._reducerDefinitionType}function mQ(e){return"reducerWithPrepare"===e._reducerDefinitionType}function gQ({type:e,reducerName:t},r,n,a){if(!a)throw new Error(po(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:l,settled:c,options:u}=r,f=a(e,o,u);n.exposeAction(t,f),i&&n.addCase(f.fulfilled,i),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:i||Gb,pending:s||Gb,rejected:l||Gb,settled:c||Gb})}function Gb(){}var yQ=(e,t)=>{if("function"!=typeof e)throw new Error(po(32))},iA="listenerMiddleware",vQ=e=>{let{type:t,actionCreator:r,matcher:n,predicate:a,effect:o}=e;if(t)a=kr(t).match;else if(r)t=r.type,a=r.match;else if(n)a=n;else if(!a)throw new Error(po(21));return yQ(o),{predicate:a,type:t,effect:o}},bQ=Object.assign((e=>{const{type:t,predicate:r,effect:n}=vQ(e);return{id:Zw(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(po(22))}}}),{withTypes:()=>bQ}),_Q=Object.assign(kr(`${iA}/add`),{withTypes:()=>_Q});kr(`${iA}/removeAll`);var wQ=Object.assign(kr(`${iA}/remove`),{withTypes:()=>wQ}),kQ=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,xQ=e=>e.flatMap((e=>kQ(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),cA=Symbol.for("rtk-state-proxy-original"),SQ=e=>!!e&&!!e[cA],EQ=new WeakMap,CQ=(e,t)=>EC(EQ,e,{insert:()=>new Proxy(e,{get:(e,r,n)=>{if(r===cA)return e;const a=Reflect.get(e,r,n);if(typeof a>"u"){const e=t[r.toString()];if(e){const t=e(void 0,{type:Zw()});if(typeof t>"u")throw new Error(po(24));return t}}return a}})}),IQ=e=>{if(!SQ(e))throw new Error(po(25));return e[cA]},AQ=(e={})=>e;function RQ(...e){const t=Object.fromEntries(xQ(e)),r=()=>Object.keys(t).length?Nj(t):AQ;let n=r();function a(e,t){return n(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,r){return function(n,...a){return e(CQ(r?r(n,...a):n,t),...a)}}),{original:IQ});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,l=t[i];return!o.overrideExisting&&l&&l!==s||(t[i]=s,n=r()),a},selector:o})}function po(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var TQ={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/notifications/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/notifications/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:"864a9c0f74478113",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/notifications",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.759",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/notifications",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/notifications",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3785",APP_NAME:"@wellesley/notifications"},Qj=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(Qj||{});function PQ(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function $Q(e){return new RegExp("(^|:)//").test(e)}var zQ=e=>e.replace(/\/$/,""),MQ=e=>e.replace(/^\//,"");function OQ(e,t){if(!e)return t;if(!t)return e;if($Q(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=zQ(e)}${r}${t=MQ(t)}`}var O9=e=>[].concat(...e);function NQ(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function DQ(){return typeof document>"u"||"hidden"!==document.visibilityState}var N9=hp;function Yj(e,t){if(e===t||!(N9(e)&&N9(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let a=r.length===n.length;const o=Array.isArray(t)?[]:{};for(const n of r)o[n]=Yj(e[n],t[n]),a&&(a=e[n]===o[n]);return a?e:o}var D9=(...e)=>fetch(...e),jQ=e=>e.status>=200&&e.status<=299,LQ=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function j9(e){if(!hp(e))return e;const t={...e};for(const[e,r]of Object.entries(t))void 0===r&&delete t[e];return t}function VQ({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:r=D9,paramsSerializer:n,isJsonContentType:a=LQ,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:l,validateStatus:c,...u}={}){return typeof fetch>"u"&&r===D9&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:g,extra:m,endpoint:y,forced:v,type:b}=p;let w,{url:_,headers:k=new Headers(u.headers),params:x,responseHandler:E=l??"json",validateStatus:A=c??jQ,timeout:S=s,...C}="string"==typeof d?{url:d}:d,z={...u,signal:h,...C};k=new Headers(j9(k)),z.headers=await t(k,{getState:g,extra:m,endpoint:y,forced:v,type:b})||k;const I=e=>"object"==typeof e&&(hp(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!z.headers.has("content-type")&&I(z.body)&&z.headers.set("content-type",o),I(z.body)&&a(z.headers)&&(z.body=JSON.stringify(z.body,i)),x){const e=~_.indexOf("?")?"&":"?";_+=e+(n?n(x):new URLSearchParams(j9(x)))}_=OQ(e,_);const j=new Request(_,z);w={request:new Request(_,z)};let P,T=!1,R=S&&setTimeout((()=>{T=!0,p.abort()}),S);try{P=await r(j)}catch(e){return{error:{status:T?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{R&&clearTimeout(R)}const N=P.clone();w.response=N;let O,M="";try{let e;if(await Promise.all([f(P,E).then((e=>O=e),(t=>e=t)),N.text().then((e=>M=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:P.status,data:M,error:String(e)},meta:w}}return A(P,O)?{data:O,meta:w}:{error:{status:P.status,data:O},meta:w}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var L9=class{constructor(e,t=void 0){this.value=e,this.meta=t}},lA=kr("__rtkq/focused"),Kj=kr("__rtkq/unfocused"),uA=kr("__rtkq/online"),Xj=kr("__rtkq/offline");function Zj(e){return"query"===e.type}function BQ(e){return"mutation"===e.type}function fA(e,t,r,n,a,o){return FQ(e)?e(t,r,n,a).map(IC).map(o):Array.isArray(e)?e.map(IC).map(o):[]}function FQ(e){return"function"==typeof e}function IC(e){return"string"==typeof e?{type:e}:e}function V9(e){return null!=e}function p0(e){let t=0;for(const r in e)t++;return t}function UQ(e,t){return e.catch(t)}var Zy=Symbol("forceQueryFn"),AC=e=>"function"==typeof e[Zy];function GQ({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=n.internalActions;return{buildInitiateQuery:function(r,a){const i=(l,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[Zy]:p,...h}={})=>(g,m)=>{var y;const v=e({queryArgs:l,endpointDefinition:a,endpointName:r}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:r,originalArgs:l,queryCacheKey:v,[Zy]:p}),w=n.endpoints[r].select(l),_=g(b),k=w(m()),{requestId:x,abort:E}=_,A=k.requestId!==x,S=null==(y=o.get(g))?void 0:y[v],C=()=>w(m()),z=Object.assign(p?_.then(C):A&&!S?Promise.resolve(k):Promise.all([S,_]).then(C),{arg:l,requestId:x,subscriptionOptions:d,queryCacheKey:v,abort:E,async unwrap(){const e=await z;if(e.isError)throw e.error;return e.data},refetch:()=>g(i(l,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&g(s({queryCacheKey:v,requestId:x}))},updateSubscriptionOptions(e){z.subscriptionOptions=e,g(c({endpointName:r,requestId:x,queryCacheKey:v,options:e}))}});if(!S&&!A&&!p){const e=o.get(g)||{};e[v]=z,o.set(g,e),z.then((()=>{delete e[v],p0(e)||o.delete(g)}))}return z};return i},buildInitiateMutation:function(e){return(t,{track:n=!0,fixedCacheKey:a}={})=>(o,s)=>{const c=r({type:"mutation",endpointName:e,originalArgs:t,track:n,fixedCacheKey:a}),u=o(c),{requestId:f,abort:d,unwrap:p}=u,h=UQ(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),g=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(l({requestId:f,fixedCacheKey:a}))}}),m=i.get(o)||{};return i.set(o,m),m[f]=g,g.then((()=>{delete m[f],p0(m)||i.delete(o)})),a&&(m[a]=g,g.then((()=>{m[a]===g&&(delete m[a],p0(m)||i.delete(o))}))),g}},getRunningQueryThunk:function(t,r){return n=>{var i;const s=a.endpointDefinitions[t],l=e({queryArgs:r,endpointDefinition:s,endpointName:t});return null==(i=o.get(n))?void 0:i[l]}},getRunningMutationThunk:function(e,t){return e=>{var r;return null==(r=i.get(e))?void 0:r[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(V9)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(V9)}}}function B9(e){return e}function qQ({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:a,assertTagType:o}){const i=async(e,{signal:n,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:l,getState:c,extra:u})=>{const f=r[e.endpointName];try{let r,o=B9;const d={signal:n,abort:a,dispatch:l,getState:c,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,c()):void 0},p="query"===e.type?e[Zy]:void 0;if(p?r=p():f.query?(r=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):r=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&TQ.NODE_ENV,r.error)throw new L9(r.error,r.meta);return i(await o(r.data,r.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:r.meta,[_y]:!0})}catch(t){let r=t;if(r instanceof L9){let t=B9;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(r.value,r.meta,e.originalArgs),{baseQueryMeta:r.meta,[_y]:!0})}catch(e){r=e}}throw console.error(r),r}};function s(t,r){var n,a,o;const i=null==(a=null==(n=r[e])?void 0:n.queries)?void 0:a[t.queryCacheKey],s=null==(o=r[e])?void 0:o.config.refetchOnMountOrArgChange,l=null==i?void 0:i.fulfilledTimeStamp,c=t.forceRefetch??(t.subscribe&&s);return!!c&&(!0===c||(Number(new Date)-Number(l))/1e3>=c)}const l=M9(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[_y]:!0}),condition(t,{getState:n}){var a,o,i;const l=n(),c=null==(o=null==(a=l[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==c?void 0:c.fulfilledTimeStamp,f=t.originalArgs,d=null==c?void 0:c.originalArgs,p=r[t.endpointName];return!!AC(t)||"pending"!==(null==c?void 0:c.status)&&(!!(s(t,l)||Zj(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:c,state:l}))||!u)},dispatchConditionRejection:!0}),c=M9(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[_y]:!0})});function u(e){return t=>{var r,n;return(null==(n=null==(r=null==t?void 0:t.meta)?void 0:r.arg)?void 0:n.endpointName)===e}}return{queryThunk:l,mutationThunk:c,prefetch:(e,t,r)=>(n,o)=>{const i=(e=>"force"in e)(r)&&r.force,s=(e=>"ifOlderThan"in e)(r)&&r.ifOlderThan,l=(r=!0)=>{const n={forceRefetch:r,isPrefetch:!0};return a.endpoints[e].initiate(t,n)},c=a.endpoints[e].select(t)(o());if(i)n(l());else if(s){const e=null==c?void 0:c.fulfilledTimeStamp;if(!e)return void n(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&n(l())}else n(l(!1))},updateQueryData:(e,t,r,n=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let l,c={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,c.inversePatches,n))};if("uninitialized"===s.status)return c;if("data"in s)if(Wc(s.data)){const[e,t,n]=Gj(s.data,r);c.patches.push(...t),c.inversePatches.push(...n),l=e}else l=r(s.data),c.patches.push({op:"replace",path:[],value:l}),c.inversePatches.push({op:"replace",path:[],value:s.data});return o(a.util.patchQueryData(e,t,c.patches,n)),c},upsertQueryData:(e,t,r)=>n=>n(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Zy]:()=>({data:r})})),patchQueryData:(e,t,i,s)=>(l,c)=>{const u=r[e],f=n({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(c()),p=fA(u.providesTags,d.data,void 0,t,{},o);l(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:My(sA(e),u(t)),matchFulfilled:My(gp(e),u(t)),matchRejected:My(k0(e),u(t))}}}}function Jj(e,t,r,n){return fA(r[e.meta.arg.endpointName][t],gp(e)?e.payload:void 0,e2(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function qb(e,t,r){const n=e[t];n&&r(n)}function Jy(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function F9(e,t,r){const n=e[Jy(t)];n&&r(n)}var K1={};function WQ({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:l}){const c=kr(`${e}/resetApiState`),u=ur({name:`${e}/queries`,initialState:K1,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Y1()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:r}}){qb(e,t,(e=>{e.data=R9(e.data,r.concat())}))},prepare:Y1()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:r}})=>{var n;const a=AC(r);e[n=r.queryCacheKey]??(e[n]={status:"uninitialized",endpointName:r.endpointName}),qb(e,r.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==r.originalArgs&&(e.originalArgs=r.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:r})=>{qb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!AC(t.arg))return;const{merge:a}=n[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:n,arg:o,baseQueryMeta:i,requestId:s}=t;let l=Ov(e.data,(e=>a(e,r,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:n,requestId:s})));e.data=l}else e.data=r;else e.data=n[t.arg.endpointName].structuralSharing??1?Yj(qc(e.data)?MH(e.data):e.data,r):r;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:r,requestId:n},error:a,payload:o})=>{qb(e,r.queryCacheKey,(e=>{if(!t){if(e.requestId!==n)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:r}=o(t);for(const[t,n]of Object.entries(r))("fulfilled"===(null==n?void 0:n.status)||"rejected"===(null==n?void 0:n.status))&&(e[t]=n)}))}}),f=ur({name:`${e}/mutations`,initialState:K1,reducers:{removeMutationResult:{reducer(e,{payload:t}){const r=Jy(t);r in e&&delete e[r]},prepare:Y1()}},extraReducers(e){e.addCase(r.pending,((e,{meta:t,meta:{requestId:r,arg:n,startedTimeStamp:a}})=>{n.track&&(e[Jy(t)]={requestId:r,status:"pending",endpointName:n.endpointName,startedTimeStamp:a})})).addCase(r.fulfilled,((e,{payload:t,meta:r})=>{r.arg.track&&F9(e,r,(e=>{e.requestId===r.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=r.fulfilledTimeStamp)}))})).addCase(r.rejected,((e,{payload:t,error:r,meta:n})=>{n.arg.track&&F9(e,n,(e=>{e.requestId===n.requestId&&(e.status="rejected",e.error=t??r)}))})).addMatcher(i,((e,t)=>{const{mutations:r}=o(t);for(const[t,n]of Object.entries(r))("fulfilled"===(null==n?void 0:n.status)||"rejected"===(null==n?void 0:n.status))&&t!==(null==n?void 0:n.requestId)&&(e[t]=n)}))}}),d=ur({name:`${e}/invalidation`,initialState:K1,reducers:{updateProvidedBy:{reducer(e,t){var r,n;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(r=e[t]??(e[t]={}))[n=i||"__internal_without_id"]??(r[n]=[]);o.includes(a)||o.push(a)}},prepare:Y1()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const r of Object.values(e))for(const e of Object.values(r)){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}})).addMatcher(i,((e,t)=>{var r,n;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(r=e[t]??(e[t]={}))[n=a||"__internal_without_id"]??(r[n]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(mp(gp(t),e2(t)),((e,t)=>{const r=Jj(t,"providesTags",n,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:r}))}))}}),p=ur({name:`${e}/subscriptions`,initialState:K1,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=ur({name:`${e}/internalSubscriptions`,initialState:K1,reducers:{subscriptionsUpdated:{reducer:(e,t)=>R9(e,t.payload),prepare:Y1()}}}),g=ur({name:`${e}/config`,initialState:{online:NQ(),focused:DQ(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(uA,(e=>{e.online=!0})).addCase(Xj,(e=>{e.online=!1})).addCase(lA,(e=>{e.focused=!0})).addCase(Kj,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),m=Nj({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:g.reducer});return{reducer:(e,t)=>m(c.match(t)?void 0:e,t),actions:{...g.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:c}}}var Xh=Symbol.for("RTKQ/skipToken"),e8={status:"uninitialized"},U9=Ov(e8,(()=>{})),G9=Ov(e8,(()=>{}));function HQ({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=e=>U9,a=e=>G9;return{buildQuerySelector:function(t,a){return s=>{const l=e({queryArgs:s,endpointDefinition:a,endpointName:t});return r(s===Xh?n:e=>{var t,r;return(null==(r=null==(t=i(e))?void 0:t.queries)?void 0:r[l])??U9},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Jy(e)??Xh:e,r(t===Xh?a:e=>{var r,n;return(null==(n=null==(r=i(e))?void 0:r.mutations)?void 0:n[t])??G9},o)}},selectInvalidatedBy:function(e,r){const n=e[t],a=new Set;for(const e of r.map(IC)){const t=n.provided[e.type];if(!t)continue;let r=(void 0!==e.id?t[e.id]:O9(Object.values(t)))??[];for(const e of r)a.add(e)}return O9(Array.from(a.values()).map((e=>{const t=n.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,r){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===r&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...PQ(e.status)}}function i(e){return e[t]}}var Yg=WeakMap?new WeakMap:void 0,q9=({endpointName:e,queryArgs:t})=>{let r="";const n=null==Yg?void 0:Yg.get(t);if("string"==typeof n)r=n;else{const e=JSON.stringify(t,((e,t)=>hp(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t));hp(t)&&(null==Yg||Yg.set(t,e)),r=e}return`${e}(${r})`};function QQ(...e){return function(t){const r=Xy((e=>{var r;return null==(r=t.extractRehydrationInfo)?void 0:r.call(t,e,{reducerPath:t.reducerPath??"api"})})),n={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:r,serializeQueryArgs(e){let r=q9;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;r=e=>{const r=t(e);return"string"==typeof r?r:q9({...e,queryArgs:r})}}else t.serializeQueryArgs&&(r=t.serializeQueryArgs);return r(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:Zw(),extractRehydrationInfo:r,hasRehydrationInfo:Xy((e=>null!=r(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[r,n]of Object.entries(t))if(!0!==e.overrideExisting&&r in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(po(39))}else{a.endpointDefinitions[r]=n;for(const e of i)e.injectEndpoint(r,n)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)n.tagTypes.includes(t)||n.tagTypes.push(t);if(t)for(const[e,r]of Object.entries(t))"function"==typeof r?r(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},r);return o}},i=e.map((e=>e.init(o,n,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function YQ(e){for(let t in e)return!1;return!0}var KQ=2147482.647,XQ=({reducerPath:e,api:t,context:r,internalState:n})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=n.currentSubscriptions[e];return!!t&&!YQ(t)}const s={};function l(e,t,n,o){const l=r.endpointDefinitions[t],c=(null==l?void 0:l.keepUnusedDataFor)??o.keepUnusedDataFor;if(c===1/0)return;const u=Math.max(0,Math.min(c,KQ));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||n.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(n,a,i)=>{var c;if(o.match(n)){const t=a.getState()[e],{queryCacheKey:r}=n.payload;l(r,null==(c=t.queries[r])?void 0:c.endpointName,a,t.config)}if(t.util.resetApiState.match(n))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(r.hasRehydrationInfo(n)){const t=a.getState()[e],{queries:o}=r.extractRehydrationInfo(n);for(const[e,r]of Object.entries(o))l(e,null==r?void 0:r.endpointName,a,t.config)}}},ZQ=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:l})=>{const{removeQueryResult:c}=o.internalActions,u=mp(gp(n),e2(n)),f=mp(gp(n,a),k0(n,a));let d=[];function p(r,n){const a=n.getState(),i=a[e];if(d.push(...r),"delayed"===i.config.invalidationBehavior&&function(e){var t,r;for(const r in e.queries)if("pending"===(null==(t=e.queries[r])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(r=e.mutations[t])?void 0:r.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],r=l.currentSubscriptions[t]??{};e&&(0===p0(r)?n.dispatch(c({queryCacheKey:t})):"uninitialized"!==e.status&&n.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(Jj(e,"invalidatesTags",r,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(fA(e.payload,void 0,void 0,void 0,void 0,i),t)}},JQ=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:a})=>{const o={};function i({queryCacheKey:t},r){const s=r.getState()[e],l=s.queries[t],u=a.currentSubscriptions[t];if(!l||"uninitialized"===l.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=c(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&r.dispatch(n(l,t)),i({queryCacheKey:t},r)}),f)}}function s({queryCacheKey:t},r){const n=r.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!n||"uninitialized"===n.status)return;const{lowestPollingInterval:u}=c(s);if(!Number.isFinite(u))return void l(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},r)}function l(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function c(e={}){let t=!1,r=Number.POSITIVE_INFINITY;for(let n in e)e[n].pollingInterval&&(r=Math.min(e[n].pollingInterval,r),t=e[n].skipPollingIfUnfocused||t);return{lowestPollingInterval:r,skipPollingIfUnfocused:t}}return(e,n)=>{(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,n),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,n),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,n),r.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))l(e)}()}},eY=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:a})=>{const{removeQueryResult:o}=r.internalActions;function i(r,i){const s=r.getState()[e],l=s.queries,c=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=l[e],a=c[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===p0(a)?r.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&r.dispatch(n(t,e))))}}))}return(e,t)=>{lA.match(e)&&i(t,"refetchOnFocus"),uA.match(e)&&i(t,"refetchOnReconnect")}},W9=new Error("Promise never resolved before cacheEntryRemoved."),tY=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:a,internalState:o})=>{const i=CC(n),s=CC(a),l=gp(n,a),c={};function u(t,n,a,o,i){const s=r.endpointDefinitions[t],l=null==s?void 0:s.onCacheEntryAdded;if(!l)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw W9}))]);d.catch((()=>{})),c[a]=u;const p=e.endpoints[t].select("query"===s.type?n:a),h=o.dispatch(((e,t,r)=>r)),g={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?r=>o.dispatch(e.util.updateQueryData(t,n,r)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},m=l(n,g);Promise.resolve(m).catch((e=>{if(e!==W9)throw e}))}return(r,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Jy(t.payload):""}(r);if(n.pending.match(r)){const e=f[t].queries[d],n=o.getState()[t].queries[d];!e&&n&&u(r.meta.arg.endpointName,r.meta.arg.originalArgs,d,o,r.meta.requestId)}else if(a.pending.match(r))o.getState()[t].mutations[d]&&u(r.meta.arg.endpointName,r.meta.arg.originalArgs,d,o,r.meta.requestId);else if(l(r)){const e=c[d];null!=e&&e.valueResolved&&(e.valueResolved({data:r.payload,meta:r.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(r)||e.internalActions.removeMutationResult.match(r)){const e=c[d];e&&(delete c[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(r))for(const[e,t]of Object.entries(c))delete c[e],t.cacheEntryRemoved()}},nY=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const a=sA(r,n),o=k0(r,n),i=gp(r,n),s={};return(r,n)=>{var l,c;if(a(r)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=r.meta,l=t.endpointDefinitions[o],c=null==l?void 0:l.onQueryStarted;if(c){const t={},r=new Promise(((e,r)=>{t.resolve=e,t.reject=r}));r.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===l.type?i:a),f=n.dispatch(((e,t,r)=>r)),d={...n,getCacheEntry:()=>u(n.getState()),requestId:a,extra:f,updateCachedData:"query"===l.type?t=>n.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:r};c(i,d)}}else if(i(r)){const{requestId:e,baseQueryMeta:t}=r.meta;null==(l=s[e])||l.resolve({data:r.payload,meta:t}),delete s[e]}else if(o(r)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:n}=r.meta;null==(c=s[e])||c.reject({error:r.payload??r.error,isUnhandledError:!t,meta:n}),delete s[e]}}},rY=({api:e,context:{apiUid:t},reducerPath:r})=>(r,n)=>{e.util.resetApiState.match(r)&&n.dispatch(e.internalActions.middlewareRegistered(t))},aY=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,l=()=>r.currentSubscriptions,c={getSubscriptions:l,getSubscriptionCount:e=>p0(l()[e]??{}),isRequestSubscribed:(e,t)=>{var r;const n=l();return!(null==(r=null==n?void 0:n[e])||!r[t])}};return(l,u)=>{if(a||(a=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(l))return a=r.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(l))return[!1,c];const f=((r,n)=>{var a,o,l;if(i.match(n)){const{queryCacheKey:e,requestId:t,options:o}=n.payload;return null!=(a=null==r?void 0:r[e])&&a[t]&&(r[e][t]=o),!0}if(s.match(n)){const{queryCacheKey:e,requestId:t}=n.payload;return r[e]&&delete r[e][t],!0}if(e.internalActions.removeQueryResult.match(n))return delete r[n.payload.queryCacheKey],!0;if(t.pending.match(n)){const{meta:{arg:e,requestId:t}}=n,a=r[o=e.queryCacheKey]??(r[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let c=!1;if(t.fulfilled.match(n)||t.rejected.match(n)){const e=r[n.meta.arg.queryCacheKey]||{},t=`${n.meta.requestId}_running`;c||(c=!!e[t]),delete e[t]}if(t.rejected.match(n)){const{meta:{condition:e,arg:t,requestId:a}}=n;if(e&&t.subscribe){const e=r[l=t.queryCacheKey]??(r[l]={});e[a]=t.subscriptionOptions??e[a]??{},c=!0}}return c})(r.currentSubscriptions,l);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,n]=Gj(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(n)),a=t,o=null}),500));const i="string"==typeof l.type&&!!l.type.startsWith(n),s=t.rejected.match(l)&&l.meta.condition&&!!l.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function oY(e){const{reducerPath:t,queryThunk:r,api:n,context:a}=e,{apiUid:o}=a,i={invalidateTags:kr(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),l=[rY,XQ,ZQ,JQ,tY,nY];return{middleware:r=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:s},f=l.map((e=>e(u))),d=aY(u),p=eY(u);return e=>l=>{if(!Dj(l))return e(l);i||(i=!0,r.dispatch(n.internalActions.middlewareRegistered(o)));const c={...r,next:e},u=r.getState(),[h,g]=d(l,c,u);let m;if(m=h?e(l):g,r.getState()[t]&&(p(l,c,u),s(l)||a.hasRehydrationInfo(l)))for(let e of f)e(l,c,u);return m}},actions:i};function c(e,t,n={}){return r({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...n})}}function Zd(e,...t){return Object.assign(e,...t)}var H9=Symbol(),sY=({createSelector:e=zr}={})=>({name:H9,init(t,{baseQuery:r,tagTypes:n,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:c,invalidationBehavior:u},f){UH();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:uA,onOffline:Xj,onFocus:lA,onFocusLost:Kj},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:g,updateQueryData:m,upsertQueryData:y,prefetch:v,buildMatchThunkActions:b}=qQ({baseQuery:r,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:w,actions:_}=WQ({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});Zd(t.util,{patchQueryData:g,updateQueryData:m,upsertQueryData:y,prefetch:v,resetApiState:_.resetApiState}),Zd(t.internalActions,_);const{middleware:k,actions:x}=oY({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});Zd(t.util,x),Zd(t,{reducer:w,middleware:k});const{buildQuerySelector:E,buildMutationSelector:A,selectInvalidatedBy:S,selectCachedArgsForQuery:C}=HQ({serializeQueryArgs:o,reducerPath:a,createSelector:e});Zd(t.util,{selectInvalidatedBy:S,selectCachedArgsForQuery:C});const{buildInitiateQuery:z,buildInitiateMutation:I,getRunningMutationThunk:j,getRunningMutationsThunk:P,getRunningQueriesThunk:T,getRunningQueryThunk:R}=GQ({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return Zd(t.util,{getRunningMutationThunk:j,getRunningMutationsThunk:P,getRunningQueryThunk:R,getRunningQueriesThunk:T}),{name:H9,injectEndpoint(e,r){var n;const a=t;(n=a.endpoints)[e]??(n[e]={}),Zj(r)?Zd(a.endpoints[e],{name:e,select:E(e,r),initiate:z(e,r)},b(p,e)):BQ(r)&&Zd(a.endpoints[e],{name:e,select:A(),initiate:I(e)},b(h,e))}}}}),qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q9,Y9,e3={exports:{}},Kt={};
2
2
  /**
3
3
  * @license React
4
4
  * react.production.min.js
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "!*.map"
9
9
  ],
10
10
  "module": "index.ts",
11
- "version": "1.0.758",
11
+ "version": "1.0.759",
12
12
  "devDependencies": {
13
13
  "eslint-config": "^1.0.0",
14
14
  "prettier-config": "^1.0.0",