@wellesley/media-playback 1.0.578 → 1.0.580

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 jo=Object.defineProperty,xo=(e,t,r)=>t in e?jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ut=(e,t,r)=>xo(e,"symbol"!=typeof t?t+"":t,r);function zo(e,t){for(var r=0;r<t.length;r++){const o=t[r];if("string"!=typeof o&&!Array.isArray(o))for(const t in o)if("default"!==t&&!(t in e)){const r=Object.getOwnPropertyDescriptor(o,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>o[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function _t(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ct=()=>Math.random().toString(36).substring(7).split("").join("."),Qo={INIT:`@@redux/INIT${ct()}`,REPLACE:`@@redux/REPLACE${ct()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ct()}`},ss=Qo;function ae(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 qo(e){Object.keys(e).forEach((t=>{const r=e[t];if(typeof r(void 0,{type:ss.INIT})>"u")throw new Error(_t(12));if(typeof r(void 0,{type:ss.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_t(13))}))}function Ks(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const s=t[o];"function"==typeof e[s]&&(r[s]=e[s])}const o=Object.keys(r);let s;try{qo(r)}catch(e){s=e}return function(e={},t){if(s)throw s;let n=!1;const i={};for(let s=0;s<o.length;s++){const a=o[s],u=r[a],d=e[a],l=u(d,t);if(typeof l>"u")throw t&&t.type,new Error(_t(14));i[a]=l,n=n||l!==d}return n=n||o.length!==Object.keys(e).length,n?i:e}}function Js(e){return ae(e)&&"type"in e&&"string"==typeof e.type}var bt=Symbol.for("immer-nothing"),Be=Symbol.for("immer-draftable"),Z=Symbol.for("immer-state");function J(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var de=Object.getPrototypeOf;function se(e){return!!e&&!!e[Z]}function oe(e){var t;return!!e&&(Ys(e)||Array.isArray(e)||!!e[Be]||!(null==(t=e.constructor)||!t[Be])||Ne(e)||je(e))}var Wo=Object.prototype.constructor.toString();function Ys(e){if(!e||"object"!=typeof e)return!1;const t=de(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)===Wo}function Ho(e){return se(e)||J(15,e),e[Z].base_}function we(e,t){0===me(e)?Object.entries(e).forEach((([r,o])=>{t(r,o,e)})):e.forEach(((r,o)=>t(o,r,e)))}function me(e){const t=e[Z];return t?t.type_:Array.isArray(e)?1:Ne(e)?2:je(e)?3:0}function Ue(e,t){return 2===me(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function pt(e,t){return 2===me(e)?e.get(t):e[t]}function Xs(e,t,r){const o=me(e);2===o?e.set(t,r):3===o?e.add(r):e[t]=r}function Ko(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Ne(e){return e instanceof Map}function je(e){return e instanceof Set}function pe(e){return e.copy_||e.base_}function Pt(e,t){if(Ne(e))return new Map(e);if(je(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Ys(e))return de(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[Z];let o=Reflect.ownKeys(r);for(let t=0;t<o.length;t++){const s=o[t],n=r[s];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(r[s]={configurable:!0,writable:!0,enumerable:n.enumerable,value:e[s]})}return Object.create(de(e),r)}function Mt(e,t=!1){return tt(e)||se(e)||!oe(e)||(me(e)>1&&(e.set=e.add=e.clear=e.delete=Jo),Object.freeze(e),t&&we(e,((e,t)=>Mt(t,!0)))),e}function Jo(){J(2)}function tt(e){return Object.isFrozen(e)}var be,Et={};function fe(e){const t=Et[e];return t||J(0,e),t}function Yo(e,t){Et[e]||(Et[e]=t)}function Zs(){return be}function Xo(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function os(e,t){t&&(fe("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Tt(e){Ot(e),e.drafts_.forEach(Zo),e.drafts_=null}function Ot(e){e===be&&(be=e.parent_)}function ns(e){return be=Xo(be,e)}function Zo(e){const t=e[Z];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function rs(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[Z].modified_&&(Tt(t),J(4)),oe(e)&&(e=Ze(t,e),t.parent_||et(t,e)),t.patches_&&fe("Patches").generateReplacementPatches_(r[Z].base_,e,t.patches_,t.inversePatches_)):e=Ze(t,r,[]),Tt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==bt?e:void 0}function Ze(e,t,r){if(tt(t))return t;const o=t[Z];if(!o)return we(t,((s,n)=>is(e,o,t,s,n,r))),t;if(o.scope_!==e)return t;if(!o.modified_)return et(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const t=o.copy_;let s=t,n=!1;3===o.type_&&(s=new Set(t),t.clear(),n=!0),we(s,((s,i)=>is(e,o,t,s,i,r,n))),et(e,t,!1),r&&e.patches_&&fe("Patches").generatePatches_(o,r,e.patches_,e.inversePatches_)}return o.copy_}function is(e,t,r,o,s,n,i){if(se(s)){const i=Ze(e,s,n&&t&&3!==t.type_&&!Ue(t.assigned_,o)?n.concat(o):void 0);if(Xs(r,o,i),!se(i))return;e.canAutoFreeze_=!1}else i&&r.add(s);if(oe(s)&&!tt(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ze(e,s),(!t||!t.scope_.parent_)&&et(e,s)}}function et(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Mt(t,r)}function en(e,t){const r=Array.isArray(e),o={type_:r?1:0,scope_:t?t.scope_:Zs(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=o,n=Lt;r&&(s=[o],n=Me);const{revoke:i,proxy:a}=Proxy.revocable(s,n);return o.draft_=a,o.revoke_=i,a}var Lt={get(e,t){if(t===Z)return e;const r=pe(e);if(!Ue(r,t))return tn(e,r,t);const o=r[t];return e.finalized_||!oe(o)?o:o===lt(e.base_,t)?(dt(e),e.copy_[t]=Ct(o,e)):o},has:(e,t)=>t in pe(e),ownKeys:e=>Reflect.ownKeys(pe(e)),set(e,t,r){const o=eo(pe(e),t);if(null!=o&&o.set)return o.set.call(e.draft_,r),!0;if(!e.modified_){const o=lt(pe(e),t),s=null==o?void 0:o[Z];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Ko(r,o)&&(void 0!==r||Ue(e.base_,t)))return!0;dt(e),Vt(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!==lt(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,dt(e),Vt(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=pe(e),o=Reflect.getOwnPropertyDescriptor(r,t);return o&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:o.enumerable,value:r[t]}},defineProperty(){J(11)},getPrototypeOf:e=>de(e.base_),setPrototypeOf(){J(12)}},Me={};function lt(e,t){const r=e[Z];return(r?pe(r):e)[t]}function tn(e,t,r){var o;const s=eo(t,r);return s?"value"in s?s.value:null==(o=s.get)?void 0:o.call(e.draft_):void 0}function eo(e,t){if(!(t in e))return;let r=de(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=de(r)}}function Vt(e){e.modified_||(e.modified_=!0,e.parent_&&Vt(e.parent_))}function dt(e){e.copy_||(e.copy_=Pt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}we(Lt,((e,t)=>{Me[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Me.deleteProperty=function(e,t){return Me.set.call(this,e,t,void 0)},Me.set=function(e,t,r){return Lt.set.call(this,e[0],t,r,e[0])};var sn=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 o=this;return function(e=r,...s){return o.produce(e,(e=>t.call(this,e,...s)))}}let o;if("function"!=typeof t&&J(6),void 0!==r&&"function"!=typeof r&&J(7),oe(e)){const s=ns(this),n=Ct(e,void 0);let i=!0;try{o=t(n),i=!1}finally{i?Tt(s):Ot(s)}return os(s,r),rs(o,s)}if(!e||"object"!=typeof e){if(o=t(e),void 0===o&&(o=e),o===bt&&(o=void 0),this.autoFreeze_&&Mt(o,!0),r){const t=[],s=[];fe("Patches").generateReplacementPatches_(e,o,t,s),r(t,s)}return o}J(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,(t=>e(t,...r)));let r,o;return[this.produce(e,t,((e,t)=>{r=e,o=t})),r,o]},"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){oe(e)||J(8),se(e)&&(e=to(e));const t=ns(this),r=Ct(e,void 0);return r[Z].isManual_=!0,Ot(t),r}finishDraft(e,t){const r=e&&e[Z];(!r||!r.isManual_)&&J(9);const{scope_:o}=r;return os(o,t),rs(void 0,o)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}r>-1&&(t=t.slice(r+1));const o=fe("Patches").applyPatches_;return se(e)?o(e,t):this.produce(e,(e=>o(e,t)))}};function Ct(e,t){const r=Ne(e)?fe("MapSet").proxyMap_(e,t):je(e)?fe("MapSet").proxySet_(e,t):en(e,t);return(t?t.scope_:Zs()).drafts_.push(r),r}function to(e){return se(e)||J(10,e),so(e)}function so(e){if(!oe(e)||tt(e))return e;const t=e[Z];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Pt(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Pt(e,!0);return we(r,((e,t)=>{Xs(r,e,so(t))})),t&&(t.finalized_=!1),r}function on(){const e="replace",t="remove";function r(e){if(!oe(e))return e;if(Array.isArray(e))return e.map(r);if(Ne(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(je(e))return new Set(Array.from(e).map(r));const t=Object.create(de(e));for(const o in e)t[o]=r(e[o]);return Ue(e,Be)&&(t[Be]=e[Be]),t}function o(e){return se(e)?r(e):e}Yo("Patches",{applyPatches_:function(o,s){return s.forEach((s=>{const{path:n,op:i}=s;let a=o;for(let e=0;e<n.length-1;e++){const t=me(a);let r=n[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&J(19),"function"==typeof a&&"prototype"===r&&J(19),a=pt(a,r),"object"!=typeof a&&J(18,n.join("/"))}const u=me(a),d=r(s.value),l=n[n.length-1];switch(i){case e:switch(u){case 2:return a.set(l,d);case 3:J(16);default:return a[l]=d}case"add":switch(u){case 1:return"-"===l?a.push(d):a.splice(l,0,d);case 2:return a.set(l,d);case 3:return a.add(d);default:return a[l]=d}case t:switch(u){case 1:return a.splice(l,1);case 2:return a.delete(l);case 3:return a.delete(s.value);default:return delete a[l]}default:J(17,i)}})),o},generatePatches_:function(r,s,n,i){switch(r.type_){case 0:case 2:return function(r,s,n,i){const{base_:a,copy_:u}=r;we(r.assigned_,((r,d)=>{const l=pt(a,r),p=pt(u,r),c=d?Ue(a,r)?e:"add":t;if(l===p&&c===e)return;const m=s.concat(r);n.push(c===t?{op:c,path:m}:{op:c,path:m,value:p}),i.push("add"===c?{op:t,path:m}:c===t?{op:"add",path:m,value:o(l)}:{op:e,path:m,value:o(l)})}))}(r,s,n,i);case 1:return function(r,s,n,i){let{base_:a,assigned_:u}=r,d=r.copy_;d.length<a.length&&([a,d]=[d,a],[n,i]=[i,n]);for(let t=0;t<a.length;t++)if(u[t]&&d[t]!==a[t]){const r=s.concat([t]);n.push({op:e,path:r,value:o(d[t])}),i.push({op:e,path:r,value:o(a[t])})}for(let e=a.length;e<d.length;e++){const t=s.concat([e]);n.push({op:"add",path:t,value:o(d[e])})}for(let e=d.length-1;a.length<=e;--e){const r=s.concat([e]);i.push({op:t,path:r})}}(r,s,n,i);case 3:return function(e,r,o,s){let{base_:n,copy_:i}=e,a=0;n.forEach((e=>{if(!i.has(e)){const n=r.concat([a]);o.push({op:t,path:n,value:e}),s.unshift({op:"add",path:n,value:e})}a++})),a=0,i.forEach((e=>{if(!n.has(e)){const n=r.concat([a]);o.push({op:"add",path:n,value:e}),s.unshift({op:t,path:n,value:e})}a++}))}(r,s,n,i)}},generateReplacementPatches_:function(t,r,o,s){o.push({op:e,path:[],value:r===bt?void 0:r}),s.push({op:e,path:[],value:t})}})}var ee=new sn,xe=ee.produce,oo=ee.produceWithPatches.bind(ee);ee.setAutoFreeze.bind(ee),ee.setUseStrictShallowCopy.bind(ee);var as=ee.applyPatches.bind(ee);function nn(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function rn(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function an(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}]`)}}ee.createDraft.bind(ee),ee.finishDraft.bind(ee);var us=e=>Array.isArray(e)?e:[e];function un(e){const t=Array.isArray(e[0])?e[0]:e;return an(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function cn(e,t){const r=[],{length:o}=e;for(let s=0;s<o;s++)r.push(e[s].apply(null,t));return r}var pn=class{constructor(e){this.value=e}deref(){return this.value}},ln=typeof WeakRef<"u"?WeakRef:pn,dn=0,cs=1;function Qe(){return{s:dn,v:void 0,o:null,p:null}}function Le(e,t={}){let r=Qe();const{resultEqualityCheck:o}=t;let s,n=0;function i(){var t;let i=r;const{length:a}=arguments;for(let e=0,t=a;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=Qe(),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=Qe(),e.set(t,i)):i=r}}const u=i;let d;if(i.s===cs?d=i.v:(d=e.apply(null,arguments),n++),u.s=cs,o){const e=(null==(t=null==s?void 0:s.deref)?void 0:t.call(s))??s;null!=e&&o(e,d)&&(d=e,0!==n&&n--),s="object"==typeof d&&null!==d||"function"==typeof d?new ln(d):d}return u.v=d,d}return i.clearCache=()=>{r=Qe(),i.resetResultsCount()},i.resultsCount=()=>n,i.resetResultsCount=()=>{n=0},i}function no(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,o=(...e)=>{let t,o=0,s=0,n={},i=e.pop();"object"==typeof i&&(n=i,i=e.pop()),nn(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const a={...r,...n},{memoize:u,memoizeOptions:d=[],argsMemoize:l=Le,argsMemoizeOptions:p=[],devModeChecks:c={}}=a,m=us(d),y=us(p),f=un(e),h=u((function(){return o++,i.apply(null,arguments)}),...m),g=l((function(){s++;const e=cn(f,arguments);return t=h.apply(null,e),t}),...y);return Object.assign(g,{resultFunc:i,memoizedResultFunc:h,dependencies:f,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:u,argsMemoize:l})};return Object.assign(o,{withTypes:()=>o}),o}var z=no(Le),mn=Object.assign(((e,t=z)=>{rn(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,o)=>(e[r[o]]=t,e)),{})))}),{withTypes:()=>mn}),fn=(...e)=>{const t=no(...e),r=Object.assign(((...e)=>{const r=t(...e),o=(e,...t)=>r(se(e)?to(e):e,...t);return Object.assign(o,r),o}),{withTypes:()=>r});return r};fn(Le);var hn=e=>e&&"function"==typeof e.match;function K(e,t){function r(...r){if(t){let o=t(...r);if(!o)throw new Error(Y(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>Js(t)&&t.type===e,r}function ps(e){return oe(e)?xe(e,(()=>{})):e}function Rt(e,t,r){if(e.has(t)){let o=e.get(t);return r.update&&(o=r.update(o,t,e),e.set(t,o)),o}if(!r.insert)throw new Error(Y(10));const o=r.insert(t,e);return e.set(t,o),o}var Ce="RTK_autoBatch",Te=()=>e=>({payload:e,meta:{[Ce]:!0}});function ro(e){const t={},r=[];let o;const s={addCase(e,r){const o="string"==typeof e?e:e.type;if(!o)throw new Error(Y(28));if(o in t)throw new Error(Y(29));return t[o]=r,s},addMatcher:(e,t)=>(r.push({matcher:e,reducer:t}),s),addDefaultCase:e=>(o=e,s)};return e(s),[t,r,o]}function yn(e){return"function"==typeof e}function vn(e,t){let r,[o,s,n]=ro(t);if(yn(e))r=()=>ps(e());else{const t=ps(e);r=()=>t}function i(e=r(),t){let i=[o[t.type],...s.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[n]),i.reduce(((e,r)=>{if(r){if(se(e)){const o=r(e,t);return void 0===o?e:o}if(oe(e))return xe(e,(e=>r(e,t)));{const o=r(e,t);if(void 0===o){if(null===e)return e;throw new Error(Y(9))}return o}}return e}),e)}return i.getInitialState=r,i}var In="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",st=(e=21)=>{let t="",r=e;for(;r--;)t+=In[64*Math.random()|0];return t},io=(e,t)=>hn(e)?e.match(t):e(t);function ue(...e){return t=>e.some((e=>io(e,t)))}function ke(...e){return t=>e.every((e=>io(e,t)))}function ot(e,t){if(!e||!e.meta)return!1;const r="string"==typeof e.meta.requestId,o=t.indexOf(e.meta.requestStatus)>-1;return r&&o}function ze(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Ft(...e){return 0===e.length?e=>ot(e,["pending"]):ze(e)?t=>ue(...e.map((e=>e.pending)))(t):Ft()(e[0])}function _e(...e){return 0===e.length?e=>ot(e,["rejected"]):ze(e)?t=>ue(...e.map((e=>e.rejected)))(t):_e()(e[0])}function nt(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||ze(e)?r=>ke(_e(...e),t)(r):nt()(e[0])}function ce(...e){return 0===e.length?e=>ot(e,["fulfilled"]):ze(e)?t=>ue(...e.map((e=>e.fulfilled)))(t):ce()(e[0])}function Bt(...e){return 0===e.length?e=>ot(e,["pending","fulfilled","rejected"]):ze(e)?t=>{const r=[];for(const t of e)r.push(t.pending,t.rejected,t.fulfilled);return ue(...r)(t)}:Bt()(e[0])}var Sn=["name","message","stack","code"],mt=class{constructor(e,t){ut(this,"_type"),this.payload=e,this.meta=t}},ls=class{constructor(e,t){ut(this,"_type"),this.payload=e,this.meta=t}},gn=e=>{if("object"==typeof e&&null!==e){const t={};for(const r of Sn)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}},ds=(()=>{function e(e,t,r){const o=K(e+"/fulfilled",((e,t,r,o)=>({payload:e,meta:{...o||{},arg:r,requestId:t,requestStatus:"fulfilled"}}))),s=K(e+"/pending",((e,t,r)=>({payload:void 0,meta:{...r||{},arg:t,requestId:e,requestStatus:"pending"}}))),n=K(e+"/rejected",((e,t,o,s,n)=>({payload:s,error:(r&&r.serializeError||gn)(e||"Rejected"),meta:{...n||{},arg:o,requestId:t,rejectedWithValue:!!s,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,a,u)=>{const d=null!=r&&r.idGenerator?r.idGenerator(e):st(),l=new AbortController;let p,c;function m(e){c=e,l.abort()}const y=async function(){var y,f;let h;try{let n=null==(y=null==r?void 0:r.condition)?void 0:y.call(r,e,{getState:a,extra:u});if(_n(n)&&(n=await n),!1===n||l.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{p=()=>{t({name:"AbortError",message:c||"Aborted"})},l.signal.addEventListener("abort",p)}));i(s(d,e,null==(f=null==r?void 0:r.getPendingMeta)?void 0:f.call(r,{requestId:d,arg:e},{getState:a,extra:u}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:a,extra:u,requestId:d,signal:l.signal,abort:m,rejectWithValue:(e,t)=>new mt(e,t),fulfillWithValue:(e,t)=>new ls(e,t)})).then((t=>{if(t instanceof mt)throw t;return t instanceof ls?o(t.payload,d,e,t.meta):o(t,d,e)}))])}catch(t){h=t instanceof mt?n(null,d,e,t.payload,t.meta):n(t,d,e)}finally{p&&l.signal.removeEventListener("abort",p)}return r&&!r.dispatchConditionRejection&&n.match(h)&&h.meta.condition||i(h),h}();return Object.assign(y,{abort:m,requestId:d,arg:e,unwrap:()=>y.then(wn)})}}),{pending:s,rejected:n,fulfilled:o,settled:ue(n,o),typePrefix:e})}return e.withTypes=()=>e,e})();function wn(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function _n(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var Pn=Symbol.for("rtk-slice-createasyncthunk");function En(e,t){return`${e}/${t}`}function Tn({creators:e}={}){var t;const r=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[Pn];return function(e){const{name:t,reducerPath:o=t}=e;if(!t)throw new Error(Y(11));const s=("function"==typeof e.reducers?e.reducers(Vn()):e.reducers)||{},n=Object.keys(s),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Y(12));if(r in i.sliceCaseReducersByType)throw new Error(Y(13));return i.sliceCaseReducersByType[r]=t,a},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),a),exposeAction:(e,t)=>(i.actionCreators[e]=t,a),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,a)};function u(){const[t={},r=[],o]="function"==typeof e.extraReducers?ro(e.extraReducers):[e.extraReducers],s={...t,...i.sliceCaseReducersByType};return vn(e.initialState,(e=>{for(let t in s)e.addCase(t,s[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);o&&e.addDefaultCase(o)}))}n.forEach((o=>{const n=s[o],i={reducerName:o,type:En(t,o),createNotation:"function"==typeof e.reducers};Rn(n)?kn(i,n,a,r):Cn(i,n,a)}));const d=e=>e,l=new Map;let p;function c(e,t){return p||(p=u()),p(e,t)}function m(){return p||(p=u()),p.getInitialState()}function y(t,r=!1){function o(e){let o=e[t];return typeof o>"u"&&r&&(o=m()),o}function s(t=d){const o=Rt(l,r,{insert:()=>new WeakMap});return Rt(o,t,{insert:()=>{const o={};for(const[s,n]of Object.entries(e.selectors??{}))o[s]=On(n,t,m,r);return o}})}return{reducerPath:t,getSelectors:s,get selectors(){return s(o)},selectSlice:o}}const f={name:t,reducer:c,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:m,...y(o),injectInto(e,{reducerPath:t,...r}={}){const s=t??o;return e.inject({reducerPath:s,reducer:c},r),{...f,...y(s,!0)}}};return f}}function On(e,t,r,o){function s(s,...n){let i=t(s);return typeof i>"u"&&o&&(i=r()),e(i,...n)}return s.unwrapped=e,s}var X=Tn();function Vn(){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 Cn({type:e,reducerName:t,createNotation:r},o,s){let n,i;if("reducer"in o){if(r&&!Bn(o))throw new Error(Y(17));n=o.reducer,i=o.prepare}else n=o;s.addCase(e,n).exposeCaseReducer(t,n).exposeAction(t,i?K(e,i):K(e))}function Rn(e){return"asyncThunk"===e._reducerDefinitionType}function Bn(e){return"reducerWithPrepare"===e._reducerDefinitionType}function kn({type:e,reducerName:t},r,o,s){if(!s)throw new Error(Y(18));const{payloadCreator:n,fulfilled:i,pending:a,rejected:u,settled:d,options:l}=r,p=s(e,n,l);o.exposeAction(t,p),i&&o.addCase(p.fulfilled,i),a&&o.addCase(p.pending,a),u&&o.addCase(p.rejected,u),d&&o.addMatcher(p.settled,d),o.exposeCaseReducer(t,{fulfilled:i||qe,pending:a||qe,rejected:u||qe,settled:d||qe})}function qe(){}var $n=(e,t)=>{if("function"!=typeof e)throw new Error(Y(32))},Gt="listenerMiddleware",Dn=e=>{let{type:t,actionCreator:r,matcher:o,predicate:s,effect:n}=e;if(t)s=K(t).match;else if(r)t=r.type,s=r.match;else if(o)s=o;else if(!s)throw new Error(Y(21));return $n(n),{predicate:s,type:t,effect:n}},Un=Object.assign((e=>{const{type:t,predicate:r,effect:o}=Dn(e);return{id:st(),effect:o,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Y(22))}}}),{withTypes:()=>Un}),bn=Object.assign(K(`${Gt}/add`),{withTypes:()=>bn});K(`${Gt}/removeAll`);var Mn=Object.assign(K(`${Gt}/remove`),{withTypes:()=>Mn}),Ln=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,Fn=e=>e.flatMap((e=>Ln(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),At=Symbol.for("rtk-state-proxy-original"),Gn=e=>!!e&&!!e[At],An=new WeakMap,Nn=(e,t)=>Rt(An,e,{insert:()=>new Proxy(e,{get:(e,r,o)=>{if(r===At)return e;const s=Reflect.get(e,r,o);if(typeof s>"u"){const e=t[r.toString()];if(e){const t=e(void 0,{type:st()});if(typeof t>"u")throw new Error(Y(24));return t}}return s}})}),jn=e=>{if(!Gn(e))throw new Error(Y(25));return e[At]},xn=(e={})=>e;function zn(...e){const t=Object.fromEntries(Fn(e)),r=()=>Object.keys(t).length?Ks(t):xn;let o=r();function s(e,t){return o(e,t)}s.withLazyLoadedSlices=()=>s;const n=Object.assign((function(e,r){return function(o,...s){return e(Nn(r?r(o,...s):o,t),...s)}}),{original:jn});return Object.assign(s,{inject:(e,n={})=>{const{reducerPath:i,reducer:a}=e,u=t[i];return!n.overrideExisting&&u&&u!==a||(t[i]=a,o=r()),s},selector:n})}function Y(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 Qn={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/media-playback/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",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/media-playback/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:"39f14231777d3bf3",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/media-playback",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.578",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/media-playback",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/media-playback",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3757",APP_NAME:"@wellesley/media-playback"},ao=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(ao||{});function qn(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function Wn(e){return new RegExp("(^|:)//").test(e)}var Hn=e=>e.replace(/\/$/,""),Kn=e=>e.replace(/^\//,"");function Jn(e,t){if(!e)return t;if(!t)return e;if(Wn(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=Hn(e)}${r}${t=Kn(t)}`}var ms=e=>[].concat(...e);function Yn(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function Xn(){return typeof document>"u"||"hidden"!==document.visibilityState}var fs=ae;function uo(e,t){if(e===t||!(fs(e)&&fs(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),o=Object.keys(e);let s=r.length===o.length;const n=Array.isArray(t)?[]:{};for(const o of r)n[o]=uo(e[o],t[o]),s&&(s=e[o]===n[o]);return s?e:n}var hs=(...e)=>fetch(...e),Zn=e=>e.status>=200&&e.status<=299,er=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function ys(e){if(!ae(e))return e;const t={...e};for(const[e,r]of Object.entries(t))void 0===r&&delete t[e];return t}function tr({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:r=hs,paramsSerializer:o,isJsonContentType:s=er,jsonContentType:n="application/json",jsonReplacer:i,timeout:a,responseHandler:u,validateStatus:d,...l}={}){return typeof fetch>"u"&&r===hs&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(c,m)=>{const{signal:y,getState:f,extra:h,endpoint:g,forced:v,type:I}=m;let A,{url:q,headers:b=new Headers(l.headers),params:S,responseHandler:w=u??"json",validateStatus:P=d??Zn,timeout:_=a,...T}="string"==typeof c?{url:c}:c,O={...l,signal:y,...T};b=new Headers(ys(b)),O.headers=await t(b,{getState:f,extra:h,endpoint:g,forced:v,type:I})||b;const E=e=>"object"==typeof e&&(ae(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!O.headers.has("content-type")&&E(O.body)&&O.headers.set("content-type",n),E(O.body)&&s(O.headers)&&(O.body=JSON.stringify(O.body,i)),S){const e=~q.indexOf("?")?"&":"?";q+=e+(o?o(S):new URLSearchParams(ys(S)))}q=Jn(e,q);const V=new Request(q,O);A={request:new Request(q,O)};let C,B=!1,R=_&&setTimeout((()=>{B=!0,m.abort()}),_);try{C=await r(V)}catch(e){return{error:{status:B?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:A}}finally{R&&clearTimeout(R)}const k=C.clone();A.response=k;let $,U="";try{let e;if(await Promise.all([p(C,w).then((e=>$=e),(t=>e=t)),k.text().then((e=>U=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:C.status,data:U,error:String(e)},meta:A}}return P(C,$)?{data:$,meta:A}:{error:{status:C.status,data:$},meta:A}};async function p(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=s(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var vs=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Nt=K("__rtkq/focused"),co=K("__rtkq/unfocused"),jt=K("__rtkq/online"),po=K("__rtkq/offline");function lo(e){return"query"===e.type}function sr(e){return"mutation"===e.type}function xt(e,t,r,o,s,n){return or(e)?e(t,r,o,s).map(kt).map(n):Array.isArray(e)?e.map(kt).map(n):[]}function or(e){return"function"==typeof e}function kt(e){return"string"==typeof e?{type:e}:e}function Is(e){return null!=e}function Se(e){let t=0;for(const r in e)t++;return t}function nr(e,t){return e.catch(t)}var Fe=Symbol("forceQueryFn"),$t=e=>"function"==typeof e[Fe];function rr({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:o,context:s}){const n=new Map,i=new Map,{unsubscribeQueryResult:a,removeMutationResult:u,updateSubscriptionOptions:d}=o.internalActions;return{buildInitiateQuery:function(r,s){const i=(u,{subscribe:l=!0,forceRefetch:p,subscriptionOptions:c,[Fe]:m,...y}={})=>(f,h)=>{var g;const v=e({queryArgs:u,endpointDefinition:s,endpointName:r}),I=t({...y,type:"query",subscribe:l,forceRefetch:p,subscriptionOptions:c,endpointName:r,originalArgs:u,queryCacheKey:v,[Fe]:m}),A=o.endpoints[r].select(u),q=f(I),b=A(h()),{requestId:S,abort:w}=q,P=b.requestId!==S,_=null==(g=n.get(f))?void 0:g[v],T=()=>A(h()),O=Object.assign(m?q.then(T):P&&!_?Promise.resolve(b):Promise.all([_,q]).then(T),{arg:u,requestId:S,subscriptionOptions:c,queryCacheKey:v,abort:w,async unwrap(){const e=await O;if(e.isError)throw e.error;return e.data},refetch:()=>f(i(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){l&&f(a({queryCacheKey:v,requestId:S}))},updateSubscriptionOptions(e){O.subscriptionOptions=e,f(d({endpointName:r,requestId:S,queryCacheKey:v,options:e}))}});if(!_&&!P&&!m){const e=n.get(f)||{};e[v]=O,n.set(f,e),O.then((()=>{delete e[v],Se(e)||n.delete(f)}))}return O};return i},buildInitiateMutation:function(e){return(t,{track:o=!0,fixedCacheKey:s}={})=>(n,a)=>{const d=r({type:"mutation",endpointName:e,originalArgs:t,track:o,fixedCacheKey:s}),l=n(d),{requestId:p,abort:c,unwrap:m}=l,y=nr(l.unwrap().then((e=>({data:e}))),(e=>({error:e}))),f=Object.assign(y,{arg:l.arg,requestId:p,abort:c,unwrap:m,reset:()=>{n(u({requestId:p,fixedCacheKey:s}))}}),h=i.get(n)||{};return i.set(n,h),h[p]=f,f.then((()=>{delete h[p],Se(h)||i.delete(n)})),s&&(h[s]=f,f.then((()=>{h[s]===f&&(delete h[s],Se(h)||i.delete(n))}))),f}},getRunningQueryThunk:function(t,r){return o=>{var i;const a=s.endpointDefinitions[t],u=e({queryArgs:r,endpointDefinition:a,endpointName:t});return null==(i=n.get(o))?void 0:i[u]}},getRunningMutationThunk:function(e,t){return e=>{var r;return null==(r=i.get(e))?void 0:r[t]}},getRunningQueriesThunk:function(){return e=>Object.values(n.get(e)||{}).filter(Is)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(Is)}}}function Ss(e){return e}function ir({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:o,api:s,assertTagType:n}){const i=async(e,{signal:o,abort:s,rejectWithValue:n,fulfillWithValue:i,dispatch:u,getState:d,extra:l})=>{const p=r[e.endpointName];try{let r,n=Ss;const c={signal:o,abort:s,dispatch:u,getState:d,extra:l,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?a(e,d()):void 0},m="query"===e.type?e[Fe]:void 0;if(m?r=m():p.query?(r=await t(p.query(e.originalArgs),c,p.extraOptions),p.transformResponse&&(n=p.transformResponse)):r=await p.queryFn(e.originalArgs,c,p.extraOptions,(e=>t(e,c,p.extraOptions))),typeof process<"u"&&Qn.NODE_ENV,r.error)throw new vs(r.error,r.meta);return i(await n(r.data,r.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:r.meta,[Ce]:!0})}catch(t){let r=t;if(r instanceof vs){let t=Ss;p.query&&p.transformErrorResponse&&(t=p.transformErrorResponse);try{return n(await t(r.value,r.meta,e.originalArgs),{baseQueryMeta:r.meta,[Ce]:!0})}catch(e){r=e}}throw console.error(r),r}};function a(t,r){var o,s,n;const i=null==(s=null==(o=r[e])?void 0:o.queries)?void 0:s[t.queryCacheKey],a=null==(n=r[e])?void 0:n.config.refetchOnMountOrArgChange,u=null==i?void 0:i.fulfilledTimeStamp,d=t.forceRefetch??(t.subscribe&&a);return!!d&&(!0===d||(Number(new Date)-Number(u))/1e3>=d)}const u=ds(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Ce]:!0}),condition(t,{getState:o}){var s,n,i;const u=o(),d=null==(n=null==(s=u[e])?void 0:s.queries)?void 0:n[t.queryCacheKey],l=null==d?void 0:d.fulfilledTimeStamp,p=t.originalArgs,c=null==d?void 0:d.originalArgs,m=r[t.endpointName];return!!$t(t)||"pending"!==(null==d?void 0:d.status)&&(!!(a(t,u)||lo(m)&&null!=(i=null==m?void 0:m.forceRefetch)&&i.call(m,{currentArg:p,previousArg:c,endpointState:d,state:u}))||!l)},dispatchConditionRejection:!0}),d=ds(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Ce]:!0})});function l(e){return t=>{var r,o;return(null==(o=null==(r=null==t?void 0:t.meta)?void 0:r.arg)?void 0:o.endpointName)===e}}return{queryThunk:u,mutationThunk:d,prefetch:(e,t,r)=>(o,n)=>{const i=(e=>"force"in e)(r)&&r.force,a=(e=>"ifOlderThan"in e)(r)&&r.ifOlderThan,u=(r=!0)=>{const o={forceRefetch:r,isPrefetch:!0};return s.endpoints[e].initiate(t,o)},d=s.endpoints[e].select(t)(n());if(i)o(u());else if(a){const e=null==d?void 0:d.fulfilledTimeStamp;if(!e)return void o(u());(Number(new Date)-Number(new Date(e)))/1e3>=a&&o(u())}else o(u(!1))},updateQueryData:(e,t,r,o=!0)=>(n,i)=>{const a=s.endpoints[e].select(t)(i());let u,d={patches:[],inversePatches:[],undo:()=>n(s.util.patchQueryData(e,t,d.inversePatches,o))};if("uninitialized"===a.status)return d;if("data"in a)if(oe(a.data)){const[e,t,o]=oo(a.data,r);d.patches.push(...t),d.inversePatches.push(...o),u=e}else u=r(a.data),d.patches.push({op:"replace",path:[],value:u}),d.inversePatches.push({op:"replace",path:[],value:a.data});return n(s.util.patchQueryData(e,t,d.patches,o)),d},upsertQueryData:(e,t,r)=>o=>o(s.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Fe]:()=>({data:r})})),patchQueryData:(e,t,i,a)=>(u,d)=>{const l=r[e],p=o({queryArgs:t,endpointDefinition:l,endpointName:e});if(u(s.internalActions.queryResultPatched({queryCacheKey:p,patches:i})),!a)return;const c=s.endpoints[e].select(t)(d()),m=xt(l.providesTags,c.data,void 0,t,{},n);u(s.internalActions.updateProvidedBy({queryCacheKey:p,providedTags:m}))},buildMatchThunkActions:function(e,t){return{matchPending:ke(Ft(e),l(t)),matchFulfilled:ke(ce(e),l(t)),matchRejected:ke(_e(e),l(t))}}}}function mo(e,t,r,o){return xt(r[e.meta.arg.endpointName][t],ce(e)?e.payload:void 0,nt(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,o)}function We(e,t,r){const o=e[t];o&&r(o)}function Ge(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function gs(e,t,r){const o=e[Ge(t)];o&&r(o)}var Oe={};function ar({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:o,apiUid:s,extractRehydrationInfo:n,hasRehydrationInfo:i},assertTagType:a,config:u}){const d=K(`${e}/resetApiState`),l=X({name:`${e}/queries`,initialState:Oe,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Te()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:r}}){We(e,t,(e=>{e.data=as(e.data,r.concat())}))},prepare:Te()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:r}})=>{var o;const s=$t(r);e[o=r.queryCacheKey]??(e[o]={status:"uninitialized",endpointName:r.endpointName}),We(e,r.queryCacheKey,(e=>{e.status="pending",e.requestId=s&&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})=>{We(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!$t(t.arg))return;const{merge:s}=o[t.arg.endpointName];if(e.status="fulfilled",s)if(void 0!==e.data){const{fulfilledTimeStamp:o,arg:n,baseQueryMeta:i,requestId:a}=t;let u=xe(e.data,(e=>s(e,r,{arg:n.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:o,requestId:a})));e.data=u}else e.data=r;else e.data=o[t.arg.endpointName].structuralSharing??1?uo(se(e.data)?Ho(e.data):e.data,r):r;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:r,requestId:o},error:s,payload:n})=>{We(e,r.queryCacheKey,(e=>{if(!t){if(e.requestId!==o)return;e.status="rejected",e.error=n??s}}))})).addMatcher(i,((e,t)=>{const{queries:r}=n(t);for(const[t,o]of Object.entries(r))("fulfilled"===(null==o?void 0:o.status)||"rejected"===(null==o?void 0:o.status))&&(e[t]=o)}))}}),p=X({name:`${e}/mutations`,initialState:Oe,reducers:{removeMutationResult:{reducer(e,{payload:t}){const r=Ge(t);r in e&&delete e[r]},prepare:Te()}},extraReducers(e){e.addCase(r.pending,((e,{meta:t,meta:{requestId:r,arg:o,startedTimeStamp:s}})=>{o.track&&(e[Ge(t)]={requestId:r,status:"pending",endpointName:o.endpointName,startedTimeStamp:s})})).addCase(r.fulfilled,((e,{payload:t,meta:r})=>{r.arg.track&&gs(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:o})=>{o.arg.track&&gs(e,o,(e=>{e.requestId===o.requestId&&(e.status="rejected",e.error=t??r)}))})).addMatcher(i,((e,t)=>{const{mutations:r}=n(t);for(const[t,o]of Object.entries(r))("fulfilled"===(null==o?void 0:o.status)||"rejected"===(null==o?void 0:o.status))&&t!==(null==o?void 0:o.requestId)&&(e[t]=o)}))}}),c=X({name:`${e}/invalidation`,initialState:Oe,reducers:{updateProvidedBy:{reducer(e,t){var r,o;const{queryCacheKey:s,providedTags:n}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(s);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of n){const n=(r=e[t]??(e[t]={}))[o=i||"__internal_without_id"]??(r[o]=[]);n.includes(s)||n.push(s)}},prepare:Te()}},extraReducers(e){e.addCase(l.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,o;const{provided:s}=n(t);for(const[t,n]of Object.entries(s))for(const[s,i]of Object.entries(n)){const n=(r=e[t]??(e[t]={}))[o=s||"__internal_without_id"]??(r[o]=[]);for(const e of i)n.includes(e)||n.push(e)}})).addMatcher(ue(ce(t),nt(t)),((e,t)=>{const r=mo(t,"providesTags",o,a),{queryCacheKey:s}=t.meta.arg;c.caseReducers.updateProvidedBy(e,c.actions.updateProvidedBy({queryCacheKey:s,providedTags:r}))}))}}),m=X({name:`${e}/subscriptions`,initialState:Oe,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),y=X({name:`${e}/internalSubscriptions`,initialState:Oe,reducers:{subscriptionsUpdated:{reducer:(e,t)=>as(e,t.payload),prepare:Te()}}}),f=X({name:`${e}/config`,initialState:{online:Yn(),focused:Xn(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&s===t||"conflict"}},extraReducers:e=>{e.addCase(jt,(e=>{e.online=!0})).addCase(po,(e=>{e.online=!1})).addCase(Nt,(e=>{e.focused=!0})).addCase(co,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),h=Ks({queries:l.reducer,mutations:p.reducer,provided:c.reducer,subscriptions:y.reducer,config:f.reducer});return{reducer:(e,t)=>h(d.match(t)?void 0:e,t),actions:{...f.actions,...l.actions,...m.actions,...y.actions,...p.actions,...c.actions,resetApiState:d}}}var le=Symbol.for("RTKQ/skipToken"),fo={status:"uninitialized"},ws=xe(fo,(()=>{})),_s=xe(fo,(()=>{}));function ur({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const o=e=>ws,s=e=>_s;return{buildQuerySelector:function(t,s){return a=>{const u=e({queryArgs:a,endpointDefinition:s,endpointName:t});return r(a===le?o:e=>{var t,r;return(null==(r=null==(t=i(e))?void 0:t.queries)?void 0:r[u])??ws},n)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Ge(e)??le:e,r(t===le?s:e=>{var r,o;return(null==(o=null==(r=i(e))?void 0:r.mutations)?void 0:o[t])??_s},n)}},selectInvalidatedBy:function(e,r){const o=e[t],s=new Set;for(const e of r.map(kt)){const t=o.provided[e.type];if(!t)continue;let r=(void 0!==e.id?t[e.id]:ms(Object.values(t)))??[];for(const e of r)s.add(e)}return ms(Array.from(s.values()).map((e=>{const t=o.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 n(e){return{...e,...qn(e.status)}}function i(e){return e[t]}}var ve=WeakMap?new WeakMap:void 0,Ps=({endpointName:e,queryArgs:t})=>{let r="";const o=null==ve?void 0:ve.get(t);if("string"==typeof o)r=o;else{const e=JSON.stringify(t,((e,t)=>ae(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t));ae(t)&&(null==ve||ve.set(t,e)),r=e}return`${e}(${r})`};function cr(...e){return function(t){const r=Le((e=>{var r;return null==(r=t.extractRehydrationInfo)?void 0:r.call(t,e,{reducerPath:t.reducerPath??"api"})})),o={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:r,serializeQueryArgs(e){let r=Ps;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;r=e=>{const r=t(e);return"string"==typeof r?r:Ps({...e,queryArgs:r})}}else t.serializeQueryArgs&&(r=t.serializeQueryArgs);return r(e)},tagTypes:[...t.tagTypes||[]]},s={endpointDefinitions:{},batch(e){e()},apiUid:st(),extractRehydrationInfo:r,hasRehydrationInfo:Le((e=>null!=r(e)))},n={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[r,o]of Object.entries(t))if(!0!==e.overrideExisting&&r in s.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Y(39))}else{s.endpointDefinitions[r]=o;for(const e of i)e.injectEndpoint(r,o)}return n},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)o.tagTypes.includes(t)||o.tagTypes.push(t);if(t)for(const[e,r]of Object.entries(t))"function"==typeof r?r(s.endpointDefinitions[e]):Object.assign(s.endpointDefinitions[e]||{},r);return n}},i=e.map((e=>e.init(n,o,s)));return n.injectEndpoints({endpoints:t.endpoints})}}function pr(e){for(let t in e)return!1;return!0}var lr=2147482.647,dr=({reducerPath:e,api:t,context:r,internalState:o})=>{const{removeQueryResult:s,unsubscribeQueryResult:n}=t.internalActions;function i(e){const t=o.currentSubscriptions[e];return!!t&&!pr(t)}const a={};function u(e,t,o,n){const u=r.endpointDefinitions[t],d=(null==u?void 0:u.keepUnusedDataFor)??n.keepUnusedDataFor;if(d===1/0)return;const l=Math.max(0,Math.min(d,lr));if(!i(e)){const t=a[e];t&&clearTimeout(t),a[e]=setTimeout((()=>{i(e)||o.dispatch(s({queryCacheKey:e})),delete a[e]}),1e3*l)}}return(o,s,i)=>{var d;if(n.match(o)){const t=s.getState()[e],{queryCacheKey:r}=o.payload;u(r,null==(d=t.queries[r])?void 0:d.endpointName,s,t.config)}if(t.util.resetApiState.match(o))for(const[e,t]of Object.entries(a))t&&clearTimeout(t),delete a[e];if(r.hasRehydrationInfo(o)){const t=s.getState()[e],{queries:n}=r.extractRehydrationInfo(o);for(const[e,r]of Object.entries(n))u(e,null==r?void 0:r.endpointName,s,t.config)}}},mr=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:o,queryThunk:s,api:n,assertTagType:i,refetchQuery:a,internalState:u})=>{const{removeQueryResult:d}=n.internalActions,l=ue(ce(o),nt(o)),p=ue(ce(o,s),_e(o,s));let c=[];function m(r,o){const s=o.getState(),i=s[e];if(c.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 l=c;if(c=[],0===l.length)return;const p=n.util.selectInvalidatedBy(s,l);t.batch((()=>{const e=Array.from(p.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],r=u.currentSubscriptions[t]??{};e&&(0===Se(r)?o.dispatch(d({queryCacheKey:t})):"uninitialized"!==e.status&&o.dispatch(a(e,t)))}}))}return(e,t)=>{l(e)?m(mo(e,"invalidatesTags",r,i),t):p(e)?m([],t):n.util.invalidateTags.match(e)&&m(xt(e.payload,void 0,void 0,void 0,void 0,i),t)}},fr=({reducerPath:e,queryThunk:t,api:r,refetchQuery:o,internalState:s})=>{const n={};function i({queryCacheKey:t},r){const a=r.getState()[e],u=a.queries[t],l=s.currentSubscriptions[t];if(!u||"uninitialized"===u.status)return;const{lowestPollingInterval:p,skipPollingIfUnfocused:c}=d(l);if(!Number.isFinite(p))return;const m=n[t];null!=m&&m.timeout&&(clearTimeout(m.timeout),m.timeout=void 0);const y=Date.now()+p;n[t]={nextPollTimestamp:y,pollingInterval:p,timeout:setTimeout((()=>{(a.config.focused||!c)&&r.dispatch(o(u,t)),i({queryCacheKey:t},r)}),p)}}function a({queryCacheKey:t},r){const o=r.getState()[e].queries[t],a=s.currentSubscriptions[t];if(!o||"uninitialized"===o.status)return;const{lowestPollingInterval:l}=d(a);if(!Number.isFinite(l))return void u(t);const p=n[t],c=Date.now()+l;(!p||c<p.nextPollTimestamp)&&i({queryCacheKey:t},r)}function u(e){const t=n[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete n[e]}function d(e={}){let t=!1,r=Number.POSITIVE_INFINITY;for(let o in e)e[o].pollingInterval&&(r=Math.min(e[o].pollingInterval,r),t=e[o].skipPollingIfUnfocused||t);return{lowestPollingInterval:r,skipPollingIfUnfocused:t}}return(e,o)=>{(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&a(e.payload,o),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&a(e.meta.arg,o),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,o),r.util.resetApiState.match(e)&&function(){for(const e of Object.keys(n))u(e)}()}},hr=({reducerPath:e,context:t,api:r,refetchQuery:o,internalState:s})=>{const{removeQueryResult:n}=r.internalActions;function i(r,i){const a=r.getState()[e],u=a.queries,d=s.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(d)){const t=u[e],s=d[e];s&&t&&((Object.values(s).some((e=>!0===e[i]))||Object.values(s).every((e=>void 0===e[i]))&&a.config[i])&&(0===Se(s)?r.dispatch(n({queryCacheKey:e})):"uninitialized"!==t.status&&r.dispatch(o(t,e))))}}))}return(e,t)=>{Nt.match(e)&&i(t,"refetchOnFocus"),jt.match(e)&&i(t,"refetchOnReconnect")}},Es=new Error("Promise never resolved before cacheEntryRemoved."),yr=({api:e,reducerPath:t,context:r,queryThunk:o,mutationThunk:s,internalState:n})=>{const i=Bt(o),a=Bt(s),u=ce(o,s),d={};function l(t,o,s,n,i){const a=r.endpointDefinitions[t],u=null==a?void 0:a.onCacheEntryAdded;if(!u)return;let l={};const p=new Promise((e=>{l.cacheEntryRemoved=e})),c=Promise.race([new Promise((e=>{l.valueResolved=e})),p.then((()=>{throw Es}))]);c.catch((()=>{})),d[s]=l;const m=e.endpoints[t].select("query"===a.type?o:s),y=n.dispatch(((e,t,r)=>r)),f={...n,getCacheEntry:()=>m(n.getState()),requestId:i,extra:y,updateCachedData:"query"===a.type?r=>n.dispatch(e.util.updateQueryData(t,o,r)):void 0,cacheDataLoaded:c,cacheEntryRemoved:p},h=u(o,f);Promise.resolve(h).catch((e=>{if(e!==Es)throw e}))}return(r,n,p)=>{const c=function(t){return i(t)?t.meta.arg.queryCacheKey:a(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Ge(t.payload):""}(r);if(o.pending.match(r)){const e=p[t].queries[c],o=n.getState()[t].queries[c];!e&&o&&l(r.meta.arg.endpointName,r.meta.arg.originalArgs,c,n,r.meta.requestId)}else if(s.pending.match(r))n.getState()[t].mutations[c]&&l(r.meta.arg.endpointName,r.meta.arg.originalArgs,c,n,r.meta.requestId);else if(u(r)){const e=d[c];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=d[c];e&&(delete d[c],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(r))for(const[e,t]of Object.entries(d))delete d[e],t.cacheEntryRemoved()}},vr=({api:e,context:t,queryThunk:r,mutationThunk:o})=>{const s=Ft(r,o),n=_e(r,o),i=ce(r,o),a={};return(r,o)=>{var u,d;if(s(r)){const{requestId:s,arg:{endpointName:n,originalArgs:i}}=r.meta,u=t.endpointDefinitions[n],d=null==u?void 0:u.onQueryStarted;if(d){const t={},r=new Promise(((e,r)=>{t.resolve=e,t.reject=r}));r.catch((()=>{})),a[s]=t;const l=e.endpoints[n].select("query"===u.type?i:s),p=o.dispatch(((e,t,r)=>r)),c={...o,getCacheEntry:()=>l(o.getState()),requestId:s,extra:p,updateCachedData:"query"===u.type?t=>o.dispatch(e.util.updateQueryData(n,i,t)):void 0,queryFulfilled:r};d(i,c)}}else if(i(r)){const{requestId:e,baseQueryMeta:t}=r.meta;null==(u=a[e])||u.resolve({data:r.payload,meta:t}),delete a[e]}else if(n(r)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:o}=r.meta;null==(d=a[e])||d.reject({error:r.payload??r.error,isUnhandledError:!t,meta:o}),delete a[e]}}},Ir=({api:e,context:{apiUid:t},reducerPath:r})=>(r,o)=>{e.util.resetApiState.match(r)&&o.dispatch(e.internalActions.middlewareRegistered(t))},Sr=({api:e,queryThunk:t,internalState:r})=>{const o=`${e.reducerPath}/subscriptions`;let s=null,n=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:a}=e.internalActions,u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:e=>Se(u()[e]??{}),isRequestSubscribed:(e,t)=>{var r;const o=u();return!(null==(r=null==o?void 0:o[e])||!r[t])}};return(u,l)=>{if(s||(s=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(u))return s=r.currentSubscriptions={},n=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,d];const p=((r,o)=>{var s,n,u;if(i.match(o)){const{queryCacheKey:e,requestId:t,options:n}=o.payload;return null!=(s=null==r?void 0:r[e])&&s[t]&&(r[e][t]=n),!0}if(a.match(o)){const{queryCacheKey:e,requestId:t}=o.payload;return r[e]&&delete r[e][t],!0}if(e.internalActions.removeQueryResult.match(o))return delete r[o.payload.queryCacheKey],!0;if(t.pending.match(o)){const{meta:{arg:e,requestId:t}}=o,s=r[n=e.queryCacheKey]??(r[n]={});return s[`${t}_running`]={},e.subscribe&&(s[t]=e.subscriptionOptions??s[t]??{}),!0}let d=!1;if(t.fulfilled.match(o)||t.rejected.match(o)){const e=r[o.meta.arg.queryCacheKey]||{},t=`${o.meta.requestId}_running`;d||(d=!!e[t]),delete e[t]}if(t.rejected.match(o)){const{meta:{condition:e,arg:t,requestId:s}}=o;if(e&&t.subscribe){const e=r[u=t.queryCacheKey]??(r[u]={});e[s]=t.subscriptionOptions??e[s]??{},d=!0}}return d})(r.currentSubscriptions,u);let c=!0;if(p){n||(n=setTimeout((()=>{const t=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,o]=oo(s,(()=>t));l.next(e.internalActions.subscriptionsUpdated(o)),s=t,n=null}),500));const i="string"==typeof u.type&&!!u.type.startsWith(o),a=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;c=!i&&!a}return[c,!1]}};function gr(e){const{reducerPath:t,queryThunk:r,api:o,context:s}=e,{apiUid:n}=s,i={invalidateTags:K(`${t}/invalidateTags`)},a=e=>e.type.startsWith(`${t}/`),u=[Ir,dr,mr,fr,yr,vr];return{middleware:r=>{let i=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:d,isThisApiSliceAction:a},p=u.map((e=>e(l))),c=Sr(l),m=hr(l);return e=>u=>{if(!Js(u))return e(u);i||(i=!0,r.dispatch(o.internalActions.middlewareRegistered(n)));const d={...r,next:e},l=r.getState(),[y,f]=c(u,d,l);let h;if(h=y?e(u):f,r.getState()[t]&&(m(u,d,l),a(u)||s.hasRehydrationInfo(u)))for(let e of p)e(u,d,l);return h}},actions:i};function d(e,t,o={}){return r({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...o})}}function ie(e,...t){return Object.assign(e,...t)}var Ts=Symbol(),wr=({createSelector:e=z}={})=>({name:Ts,init(t,{baseQuery:r,tagTypes:o,reducerPath:s,serializeQueryArgs:n,keepUnusedDataFor:i,refetchOnMountOrArgChange:a,refetchOnFocus:u,refetchOnReconnect:d,invalidationBehavior:l},p){on();const c=e=>e;Object.assign(t,{reducerPath:s,endpoints:{},internalActions:{onOnline:jt,onOffline:po,onFocus:Nt,onFocusLost:co},util:{}});const{queryThunk:m,mutationThunk:y,patchQueryData:f,updateQueryData:h,upsertQueryData:g,prefetch:v,buildMatchThunkActions:I}=ir({baseQuery:r,reducerPath:s,context:p,api:t,serializeQueryArgs:n,assertTagType:c}),{reducer:A,actions:q}=ar({context:p,queryThunk:m,mutationThunk:y,reducerPath:s,assertTagType:c,config:{refetchOnFocus:u,refetchOnReconnect:d,refetchOnMountOrArgChange:a,keepUnusedDataFor:i,reducerPath:s,invalidationBehavior:l}});ie(t.util,{patchQueryData:f,updateQueryData:h,upsertQueryData:g,prefetch:v,resetApiState:q.resetApiState}),ie(t.internalActions,q);const{middleware:b,actions:S}=gr({reducerPath:s,context:p,queryThunk:m,mutationThunk:y,api:t,assertTagType:c});ie(t.util,S),ie(t,{reducer:A,middleware:b});const{buildQuerySelector:w,buildMutationSelector:P,selectInvalidatedBy:_,selectCachedArgsForQuery:T}=ur({serializeQueryArgs:n,reducerPath:s,createSelector:e});ie(t.util,{selectInvalidatedBy:_,selectCachedArgsForQuery:T});const{buildInitiateQuery:O,buildInitiateMutation:E,getRunningMutationThunk:V,getRunningMutationsThunk:C,getRunningQueriesThunk:B,getRunningQueryThunk:R}=rr({queryThunk:m,mutationThunk:y,api:t,serializeQueryArgs:n,context:p});return ie(t.util,{getRunningMutationThunk:V,getRunningMutationsThunk:C,getRunningQueryThunk:R,getRunningQueriesThunk:B}),{name:Ts,injectEndpoint(e,r){var o;const s=t;(o=s.endpoints)[e]??(o[e]={}),lo(r)?ie(s.endpoints[e],{name:e,select:w(e,r),initiate:O(e,r)},I(m,e)):sr(r)&&ie(s.endpoints[e],{name:e,select:P(),initiate:E(e)},I(y,e))}}}});function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Os,Vs,ft={exports:{}},L={};
1
+ var jo=Object.defineProperty,xo=(e,t,r)=>t in e?jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ut=(e,t,r)=>xo(e,"symbol"!=typeof t?t+"":t,r);function zo(e,t){for(var r=0;r<t.length;r++){const o=t[r];if("string"!=typeof o&&!Array.isArray(o))for(const t in o)if("default"!==t&&!(t in e)){const r=Object.getOwnPropertyDescriptor(o,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>o[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function _t(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ct=()=>Math.random().toString(36).substring(7).split("").join("."),Qo={INIT:`@@redux/INIT${ct()}`,REPLACE:`@@redux/REPLACE${ct()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ct()}`},ss=Qo;function ae(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 qo(e){Object.keys(e).forEach((t=>{const r=e[t];if(typeof r(void 0,{type:ss.INIT})>"u")throw new Error(_t(12));if(typeof r(void 0,{type:ss.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_t(13))}))}function Ks(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const s=t[o];"function"==typeof e[s]&&(r[s]=e[s])}const o=Object.keys(r);let s;try{qo(r)}catch(e){s=e}return function(e={},t){if(s)throw s;let n=!1;const i={};for(let s=0;s<o.length;s++){const a=o[s],u=r[a],d=e[a],l=u(d,t);if(typeof l>"u")throw t&&t.type,new Error(_t(14));i[a]=l,n=n||l!==d}return n=n||o.length!==Object.keys(e).length,n?i:e}}function Js(e){return ae(e)&&"type"in e&&"string"==typeof e.type}var bt=Symbol.for("immer-nothing"),Be=Symbol.for("immer-draftable"),Z=Symbol.for("immer-state");function J(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var de=Object.getPrototypeOf;function se(e){return!!e&&!!e[Z]}function oe(e){var t;return!!e&&(Ys(e)||Array.isArray(e)||!!e[Be]||!(null==(t=e.constructor)||!t[Be])||Ne(e)||je(e))}var Wo=Object.prototype.constructor.toString();function Ys(e){if(!e||"object"!=typeof e)return!1;const t=de(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)===Wo}function Ho(e){return se(e)||J(15,e),e[Z].base_}function we(e,t){0===me(e)?Object.entries(e).forEach((([r,o])=>{t(r,o,e)})):e.forEach(((r,o)=>t(o,r,e)))}function me(e){const t=e[Z];return t?t.type_:Array.isArray(e)?1:Ne(e)?2:je(e)?3:0}function Ue(e,t){return 2===me(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function pt(e,t){return 2===me(e)?e.get(t):e[t]}function Xs(e,t,r){const o=me(e);2===o?e.set(t,r):3===o?e.add(r):e[t]=r}function Ko(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Ne(e){return e instanceof Map}function je(e){return e instanceof Set}function pe(e){return e.copy_||e.base_}function Pt(e,t){if(Ne(e))return new Map(e);if(je(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Ys(e))return de(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[Z];let o=Reflect.ownKeys(r);for(let t=0;t<o.length;t++){const s=o[t],n=r[s];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(r[s]={configurable:!0,writable:!0,enumerable:n.enumerable,value:e[s]})}return Object.create(de(e),r)}function Mt(e,t=!1){return tt(e)||se(e)||!oe(e)||(me(e)>1&&(e.set=e.add=e.clear=e.delete=Jo),Object.freeze(e),t&&we(e,((e,t)=>Mt(t,!0)))),e}function Jo(){J(2)}function tt(e){return Object.isFrozen(e)}var be,Et={};function fe(e){const t=Et[e];return t||J(0,e),t}function Yo(e,t){Et[e]||(Et[e]=t)}function Zs(){return be}function Xo(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function os(e,t){t&&(fe("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Tt(e){Ot(e),e.drafts_.forEach(Zo),e.drafts_=null}function Ot(e){e===be&&(be=e.parent_)}function ns(e){return be=Xo(be,e)}function Zo(e){const t=e[Z];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function rs(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[Z].modified_&&(Tt(t),J(4)),oe(e)&&(e=Ze(t,e),t.parent_||et(t,e)),t.patches_&&fe("Patches").generateReplacementPatches_(r[Z].base_,e,t.patches_,t.inversePatches_)):e=Ze(t,r,[]),Tt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==bt?e:void 0}function Ze(e,t,r){if(tt(t))return t;const o=t[Z];if(!o)return we(t,((s,n)=>is(e,o,t,s,n,r))),t;if(o.scope_!==e)return t;if(!o.modified_)return et(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const t=o.copy_;let s=t,n=!1;3===o.type_&&(s=new Set(t),t.clear(),n=!0),we(s,((s,i)=>is(e,o,t,s,i,r,n))),et(e,t,!1),r&&e.patches_&&fe("Patches").generatePatches_(o,r,e.patches_,e.inversePatches_)}return o.copy_}function is(e,t,r,o,s,n,i){if(se(s)){const i=Ze(e,s,n&&t&&3!==t.type_&&!Ue(t.assigned_,o)?n.concat(o):void 0);if(Xs(r,o,i),!se(i))return;e.canAutoFreeze_=!1}else i&&r.add(s);if(oe(s)&&!tt(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ze(e,s),(!t||!t.scope_.parent_)&&et(e,s)}}function et(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Mt(t,r)}function en(e,t){const r=Array.isArray(e),o={type_:r?1:0,scope_:t?t.scope_:Zs(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=o,n=Lt;r&&(s=[o],n=Me);const{revoke:i,proxy:a}=Proxy.revocable(s,n);return o.draft_=a,o.revoke_=i,a}var Lt={get(e,t){if(t===Z)return e;const r=pe(e);if(!Ue(r,t))return tn(e,r,t);const o=r[t];return e.finalized_||!oe(o)?o:o===lt(e.base_,t)?(dt(e),e.copy_[t]=Ct(o,e)):o},has:(e,t)=>t in pe(e),ownKeys:e=>Reflect.ownKeys(pe(e)),set(e,t,r){const o=eo(pe(e),t);if(null!=o&&o.set)return o.set.call(e.draft_,r),!0;if(!e.modified_){const o=lt(pe(e),t),s=null==o?void 0:o[Z];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Ko(r,o)&&(void 0!==r||Ue(e.base_,t)))return!0;dt(e),Vt(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!==lt(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,dt(e),Vt(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=pe(e),o=Reflect.getOwnPropertyDescriptor(r,t);return o&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:o.enumerable,value:r[t]}},defineProperty(){J(11)},getPrototypeOf:e=>de(e.base_),setPrototypeOf(){J(12)}},Me={};function lt(e,t){const r=e[Z];return(r?pe(r):e)[t]}function tn(e,t,r){var o;const s=eo(t,r);return s?"value"in s?s.value:null==(o=s.get)?void 0:o.call(e.draft_):void 0}function eo(e,t){if(!(t in e))return;let r=de(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=de(r)}}function Vt(e){e.modified_||(e.modified_=!0,e.parent_&&Vt(e.parent_))}function dt(e){e.copy_||(e.copy_=Pt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}we(Lt,((e,t)=>{Me[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Me.deleteProperty=function(e,t){return Me.set.call(this,e,t,void 0)},Me.set=function(e,t,r){return Lt.set.call(this,e[0],t,r,e[0])};var sn=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 o=this;return function(e=r,...s){return o.produce(e,(e=>t.call(this,e,...s)))}}let o;if("function"!=typeof t&&J(6),void 0!==r&&"function"!=typeof r&&J(7),oe(e)){const s=ns(this),n=Ct(e,void 0);let i=!0;try{o=t(n),i=!1}finally{i?Tt(s):Ot(s)}return os(s,r),rs(o,s)}if(!e||"object"!=typeof e){if(o=t(e),void 0===o&&(o=e),o===bt&&(o=void 0),this.autoFreeze_&&Mt(o,!0),r){const t=[],s=[];fe("Patches").generateReplacementPatches_(e,o,t,s),r(t,s)}return o}J(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,(t=>e(t,...r)));let r,o;return[this.produce(e,t,((e,t)=>{r=e,o=t})),r,o]},"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){oe(e)||J(8),se(e)&&(e=to(e));const t=ns(this),r=Ct(e,void 0);return r[Z].isManual_=!0,Ot(t),r}finishDraft(e,t){const r=e&&e[Z];(!r||!r.isManual_)&&J(9);const{scope_:o}=r;return os(o,t),rs(void 0,o)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}r>-1&&(t=t.slice(r+1));const o=fe("Patches").applyPatches_;return se(e)?o(e,t):this.produce(e,(e=>o(e,t)))}};function Ct(e,t){const r=Ne(e)?fe("MapSet").proxyMap_(e,t):je(e)?fe("MapSet").proxySet_(e,t):en(e,t);return(t?t.scope_:Zs()).drafts_.push(r),r}function to(e){return se(e)||J(10,e),so(e)}function so(e){if(!oe(e)||tt(e))return e;const t=e[Z];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Pt(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Pt(e,!0);return we(r,((e,t)=>{Xs(r,e,so(t))})),t&&(t.finalized_=!1),r}function on(){const e="replace",t="remove";function r(e){if(!oe(e))return e;if(Array.isArray(e))return e.map(r);if(Ne(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(je(e))return new Set(Array.from(e).map(r));const t=Object.create(de(e));for(const o in e)t[o]=r(e[o]);return Ue(e,Be)&&(t[Be]=e[Be]),t}function o(e){return se(e)?r(e):e}Yo("Patches",{applyPatches_:function(o,s){return s.forEach((s=>{const{path:n,op:i}=s;let a=o;for(let e=0;e<n.length-1;e++){const t=me(a);let r=n[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&J(19),"function"==typeof a&&"prototype"===r&&J(19),a=pt(a,r),"object"!=typeof a&&J(18,n.join("/"))}const u=me(a),d=r(s.value),l=n[n.length-1];switch(i){case e:switch(u){case 2:return a.set(l,d);case 3:J(16);default:return a[l]=d}case"add":switch(u){case 1:return"-"===l?a.push(d):a.splice(l,0,d);case 2:return a.set(l,d);case 3:return a.add(d);default:return a[l]=d}case t:switch(u){case 1:return a.splice(l,1);case 2:return a.delete(l);case 3:return a.delete(s.value);default:return delete a[l]}default:J(17,i)}})),o},generatePatches_:function(r,s,n,i){switch(r.type_){case 0:case 2:return function(r,s,n,i){const{base_:a,copy_:u}=r;we(r.assigned_,((r,d)=>{const l=pt(a,r),p=pt(u,r),c=d?Ue(a,r)?e:"add":t;if(l===p&&c===e)return;const m=s.concat(r);n.push(c===t?{op:c,path:m}:{op:c,path:m,value:p}),i.push("add"===c?{op:t,path:m}:c===t?{op:"add",path:m,value:o(l)}:{op:e,path:m,value:o(l)})}))}(r,s,n,i);case 1:return function(r,s,n,i){let{base_:a,assigned_:u}=r,d=r.copy_;d.length<a.length&&([a,d]=[d,a],[n,i]=[i,n]);for(let t=0;t<a.length;t++)if(u[t]&&d[t]!==a[t]){const r=s.concat([t]);n.push({op:e,path:r,value:o(d[t])}),i.push({op:e,path:r,value:o(a[t])})}for(let e=a.length;e<d.length;e++){const t=s.concat([e]);n.push({op:"add",path:t,value:o(d[e])})}for(let e=d.length-1;a.length<=e;--e){const r=s.concat([e]);i.push({op:t,path:r})}}(r,s,n,i);case 3:return function(e,r,o,s){let{base_:n,copy_:i}=e,a=0;n.forEach((e=>{if(!i.has(e)){const n=r.concat([a]);o.push({op:t,path:n,value:e}),s.unshift({op:"add",path:n,value:e})}a++})),a=0,i.forEach((e=>{if(!n.has(e)){const n=r.concat([a]);o.push({op:"add",path:n,value:e}),s.unshift({op:t,path:n,value:e})}a++}))}(r,s,n,i)}},generateReplacementPatches_:function(t,r,o,s){o.push({op:e,path:[],value:r===bt?void 0:r}),s.push({op:e,path:[],value:t})}})}var ee=new sn,xe=ee.produce,oo=ee.produceWithPatches.bind(ee);ee.setAutoFreeze.bind(ee),ee.setUseStrictShallowCopy.bind(ee);var as=ee.applyPatches.bind(ee);function nn(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function rn(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function an(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}]`)}}ee.createDraft.bind(ee),ee.finishDraft.bind(ee);var us=e=>Array.isArray(e)?e:[e];function un(e){const t=Array.isArray(e[0])?e[0]:e;return an(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function cn(e,t){const r=[],{length:o}=e;for(let s=0;s<o;s++)r.push(e[s].apply(null,t));return r}var pn=class{constructor(e){this.value=e}deref(){return this.value}},ln=typeof WeakRef<"u"?WeakRef:pn,dn=0,cs=1;function Qe(){return{s:dn,v:void 0,o:null,p:null}}function Le(e,t={}){let r=Qe();const{resultEqualityCheck:o}=t;let s,n=0;function i(){var t;let i=r;const{length:a}=arguments;for(let e=0,t=a;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=Qe(),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=Qe(),e.set(t,i)):i=r}}const u=i;let d;if(i.s===cs?d=i.v:(d=e.apply(null,arguments),n++),u.s=cs,o){const e=(null==(t=null==s?void 0:s.deref)?void 0:t.call(s))??s;null!=e&&o(e,d)&&(d=e,0!==n&&n--),s="object"==typeof d&&null!==d||"function"==typeof d?new ln(d):d}return u.v=d,d}return i.clearCache=()=>{r=Qe(),i.resetResultsCount()},i.resultsCount=()=>n,i.resetResultsCount=()=>{n=0},i}function no(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,o=(...e)=>{let t,o=0,s=0,n={},i=e.pop();"object"==typeof i&&(n=i,i=e.pop()),nn(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const a={...r,...n},{memoize:u,memoizeOptions:d=[],argsMemoize:l=Le,argsMemoizeOptions:p=[],devModeChecks:c={}}=a,m=us(d),y=us(p),f=un(e),h=u((function(){return o++,i.apply(null,arguments)}),...m),g=l((function(){s++;const e=cn(f,arguments);return t=h.apply(null,e),t}),...y);return Object.assign(g,{resultFunc:i,memoizedResultFunc:h,dependencies:f,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:u,argsMemoize:l})};return Object.assign(o,{withTypes:()=>o}),o}var z=no(Le),mn=Object.assign(((e,t=z)=>{rn(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,o)=>(e[r[o]]=t,e)),{})))}),{withTypes:()=>mn}),fn=(...e)=>{const t=no(...e),r=Object.assign(((...e)=>{const r=t(...e),o=(e,...t)=>r(se(e)?to(e):e,...t);return Object.assign(o,r),o}),{withTypes:()=>r});return r};fn(Le);var hn=e=>e&&"function"==typeof e.match;function K(e,t){function r(...r){if(t){let o=t(...r);if(!o)throw new Error(Y(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>Js(t)&&t.type===e,r}function ps(e){return oe(e)?xe(e,(()=>{})):e}function Rt(e,t,r){if(e.has(t)){let o=e.get(t);return r.update&&(o=r.update(o,t,e),e.set(t,o)),o}if(!r.insert)throw new Error(Y(10));const o=r.insert(t,e);return e.set(t,o),o}var Ce="RTK_autoBatch",Te=()=>e=>({payload:e,meta:{[Ce]:!0}});function ro(e){const t={},r=[];let o;const s={addCase(e,r){const o="string"==typeof e?e:e.type;if(!o)throw new Error(Y(28));if(o in t)throw new Error(Y(29));return t[o]=r,s},addMatcher:(e,t)=>(r.push({matcher:e,reducer:t}),s),addDefaultCase:e=>(o=e,s)};return e(s),[t,r,o]}function yn(e){return"function"==typeof e}function vn(e,t){let r,[o,s,n]=ro(t);if(yn(e))r=()=>ps(e());else{const t=ps(e);r=()=>t}function i(e=r(),t){let i=[o[t.type],...s.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[n]),i.reduce(((e,r)=>{if(r){if(se(e)){const o=r(e,t);return void 0===o?e:o}if(oe(e))return xe(e,(e=>r(e,t)));{const o=r(e,t);if(void 0===o){if(null===e)return e;throw new Error(Y(9))}return o}}return e}),e)}return i.getInitialState=r,i}var In="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",st=(e=21)=>{let t="",r=e;for(;r--;)t+=In[64*Math.random()|0];return t},io=(e,t)=>hn(e)?e.match(t):e(t);function ue(...e){return t=>e.some((e=>io(e,t)))}function ke(...e){return t=>e.every((e=>io(e,t)))}function ot(e,t){if(!e||!e.meta)return!1;const r="string"==typeof e.meta.requestId,o=t.indexOf(e.meta.requestStatus)>-1;return r&&o}function ze(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Ft(...e){return 0===e.length?e=>ot(e,["pending"]):ze(e)?t=>ue(...e.map((e=>e.pending)))(t):Ft()(e[0])}function _e(...e){return 0===e.length?e=>ot(e,["rejected"]):ze(e)?t=>ue(...e.map((e=>e.rejected)))(t):_e()(e[0])}function nt(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||ze(e)?r=>ke(_e(...e),t)(r):nt()(e[0])}function ce(...e){return 0===e.length?e=>ot(e,["fulfilled"]):ze(e)?t=>ue(...e.map((e=>e.fulfilled)))(t):ce()(e[0])}function Bt(...e){return 0===e.length?e=>ot(e,["pending","fulfilled","rejected"]):ze(e)?t=>{const r=[];for(const t of e)r.push(t.pending,t.rejected,t.fulfilled);return ue(...r)(t)}:Bt()(e[0])}var Sn=["name","message","stack","code"],mt=class{constructor(e,t){ut(this,"_type"),this.payload=e,this.meta=t}},ls=class{constructor(e,t){ut(this,"_type"),this.payload=e,this.meta=t}},gn=e=>{if("object"==typeof e&&null!==e){const t={};for(const r of Sn)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}},ds=(()=>{function e(e,t,r){const o=K(e+"/fulfilled",((e,t,r,o)=>({payload:e,meta:{...o||{},arg:r,requestId:t,requestStatus:"fulfilled"}}))),s=K(e+"/pending",((e,t,r)=>({payload:void 0,meta:{...r||{},arg:t,requestId:e,requestStatus:"pending"}}))),n=K(e+"/rejected",((e,t,o,s,n)=>({payload:s,error:(r&&r.serializeError||gn)(e||"Rejected"),meta:{...n||{},arg:o,requestId:t,rejectedWithValue:!!s,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,a,u)=>{const d=null!=r&&r.idGenerator?r.idGenerator(e):st(),l=new AbortController;let p,c;function m(e){c=e,l.abort()}const y=async function(){var y,f;let h;try{let n=null==(y=null==r?void 0:r.condition)?void 0:y.call(r,e,{getState:a,extra:u});if(_n(n)&&(n=await n),!1===n||l.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{p=()=>{t({name:"AbortError",message:c||"Aborted"})},l.signal.addEventListener("abort",p)}));i(s(d,e,null==(f=null==r?void 0:r.getPendingMeta)?void 0:f.call(r,{requestId:d,arg:e},{getState:a,extra:u}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:a,extra:u,requestId:d,signal:l.signal,abort:m,rejectWithValue:(e,t)=>new mt(e,t),fulfillWithValue:(e,t)=>new ls(e,t)})).then((t=>{if(t instanceof mt)throw t;return t instanceof ls?o(t.payload,d,e,t.meta):o(t,d,e)}))])}catch(t){h=t instanceof mt?n(null,d,e,t.payload,t.meta):n(t,d,e)}finally{p&&l.signal.removeEventListener("abort",p)}return r&&!r.dispatchConditionRejection&&n.match(h)&&h.meta.condition||i(h),h}();return Object.assign(y,{abort:m,requestId:d,arg:e,unwrap:()=>y.then(wn)})}}),{pending:s,rejected:n,fulfilled:o,settled:ue(n,o),typePrefix:e})}return e.withTypes=()=>e,e})();function wn(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function _n(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var Pn=Symbol.for("rtk-slice-createasyncthunk");function En(e,t){return`${e}/${t}`}function Tn({creators:e}={}){var t;const r=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[Pn];return function(e){const{name:t,reducerPath:o=t}=e;if(!t)throw new Error(Y(11));const s=("function"==typeof e.reducers?e.reducers(Vn()):e.reducers)||{},n=Object.keys(s),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Y(12));if(r in i.sliceCaseReducersByType)throw new Error(Y(13));return i.sliceCaseReducersByType[r]=t,a},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),a),exposeAction:(e,t)=>(i.actionCreators[e]=t,a),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,a)};function u(){const[t={},r=[],o]="function"==typeof e.extraReducers?ro(e.extraReducers):[e.extraReducers],s={...t,...i.sliceCaseReducersByType};return vn(e.initialState,(e=>{for(let t in s)e.addCase(t,s[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);o&&e.addDefaultCase(o)}))}n.forEach((o=>{const n=s[o],i={reducerName:o,type:En(t,o),createNotation:"function"==typeof e.reducers};Rn(n)?kn(i,n,a,r):Cn(i,n,a)}));const d=e=>e,l=new Map;let p;function c(e,t){return p||(p=u()),p(e,t)}function m(){return p||(p=u()),p.getInitialState()}function y(t,r=!1){function o(e){let o=e[t];return typeof o>"u"&&r&&(o=m()),o}function s(t=d){const o=Rt(l,r,{insert:()=>new WeakMap});return Rt(o,t,{insert:()=>{const o={};for(const[s,n]of Object.entries(e.selectors??{}))o[s]=On(n,t,m,r);return o}})}return{reducerPath:t,getSelectors:s,get selectors(){return s(o)},selectSlice:o}}const f={name:t,reducer:c,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:m,...y(o),injectInto(e,{reducerPath:t,...r}={}){const s=t??o;return e.inject({reducerPath:s,reducer:c},r),{...f,...y(s,!0)}}};return f}}function On(e,t,r,o){function s(s,...n){let i=t(s);return typeof i>"u"&&o&&(i=r()),e(i,...n)}return s.unwrapped=e,s}var X=Tn();function Vn(){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 Cn({type:e,reducerName:t,createNotation:r},o,s){let n,i;if("reducer"in o){if(r&&!Bn(o))throw new Error(Y(17));n=o.reducer,i=o.prepare}else n=o;s.addCase(e,n).exposeCaseReducer(t,n).exposeAction(t,i?K(e,i):K(e))}function Rn(e){return"asyncThunk"===e._reducerDefinitionType}function Bn(e){return"reducerWithPrepare"===e._reducerDefinitionType}function kn({type:e,reducerName:t},r,o,s){if(!s)throw new Error(Y(18));const{payloadCreator:n,fulfilled:i,pending:a,rejected:u,settled:d,options:l}=r,p=s(e,n,l);o.exposeAction(t,p),i&&o.addCase(p.fulfilled,i),a&&o.addCase(p.pending,a),u&&o.addCase(p.rejected,u),d&&o.addMatcher(p.settled,d),o.exposeCaseReducer(t,{fulfilled:i||qe,pending:a||qe,rejected:u||qe,settled:d||qe})}function qe(){}var $n=(e,t)=>{if("function"!=typeof e)throw new Error(Y(32))},Gt="listenerMiddleware",Dn=e=>{let{type:t,actionCreator:r,matcher:o,predicate:s,effect:n}=e;if(t)s=K(t).match;else if(r)t=r.type,s=r.match;else if(o)s=o;else if(!s)throw new Error(Y(21));return $n(n),{predicate:s,type:t,effect:n}},Un=Object.assign((e=>{const{type:t,predicate:r,effect:o}=Dn(e);return{id:st(),effect:o,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Y(22))}}}),{withTypes:()=>Un}),bn=Object.assign(K(`${Gt}/add`),{withTypes:()=>bn});K(`${Gt}/removeAll`);var Mn=Object.assign(K(`${Gt}/remove`),{withTypes:()=>Mn}),Ln=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,Fn=e=>e.flatMap((e=>Ln(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),At=Symbol.for("rtk-state-proxy-original"),Gn=e=>!!e&&!!e[At],An=new WeakMap,Nn=(e,t)=>Rt(An,e,{insert:()=>new Proxy(e,{get:(e,r,o)=>{if(r===At)return e;const s=Reflect.get(e,r,o);if(typeof s>"u"){const e=t[r.toString()];if(e){const t=e(void 0,{type:st()});if(typeof t>"u")throw new Error(Y(24));return t}}return s}})}),jn=e=>{if(!Gn(e))throw new Error(Y(25));return e[At]},xn=(e={})=>e;function zn(...e){const t=Object.fromEntries(Fn(e)),r=()=>Object.keys(t).length?Ks(t):xn;let o=r();function s(e,t){return o(e,t)}s.withLazyLoadedSlices=()=>s;const n=Object.assign((function(e,r){return function(o,...s){return e(Nn(r?r(o,...s):o,t),...s)}}),{original:jn});return Object.assign(s,{inject:(e,n={})=>{const{reducerPath:i,reducer:a}=e,u=t[i];return!n.overrideExisting&&u&&u!==a||(t[i]=a,o=r()),s},selector:n})}function Y(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 Qn={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/media-playback/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",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/media-playback/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:"fda0791f1cc9011c",NODE:"/home/teamcity/.nvm/versions/node/v22.18.0/bin/node",npm_package_name:"@wellesley/media-playback",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.580",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/media-playback",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/media-playback",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"3759",APP_NAME:"@wellesley/media-playback"},ao=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(ao||{});function qn(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function Wn(e){return new RegExp("(^|:)//").test(e)}var Hn=e=>e.replace(/\/$/,""),Kn=e=>e.replace(/^\//,"");function Jn(e,t){if(!e)return t;if(!t)return e;if(Wn(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=Hn(e)}${r}${t=Kn(t)}`}var ms=e=>[].concat(...e);function Yn(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function Xn(){return typeof document>"u"||"hidden"!==document.visibilityState}var fs=ae;function uo(e,t){if(e===t||!(fs(e)&&fs(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),o=Object.keys(e);let s=r.length===o.length;const n=Array.isArray(t)?[]:{};for(const o of r)n[o]=uo(e[o],t[o]),s&&(s=e[o]===n[o]);return s?e:n}var hs=(...e)=>fetch(...e),Zn=e=>e.status>=200&&e.status<=299,er=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function ys(e){if(!ae(e))return e;const t={...e};for(const[e,r]of Object.entries(t))void 0===r&&delete t[e];return t}function tr({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:r=hs,paramsSerializer:o,isJsonContentType:s=er,jsonContentType:n="application/json",jsonReplacer:i,timeout:a,responseHandler:u,validateStatus:d,...l}={}){return typeof fetch>"u"&&r===hs&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(c,m)=>{const{signal:y,getState:f,extra:h,endpoint:g,forced:v,type:I}=m;let A,{url:q,headers:b=new Headers(l.headers),params:S,responseHandler:w=u??"json",validateStatus:P=d??Zn,timeout:_=a,...T}="string"==typeof c?{url:c}:c,O={...l,signal:y,...T};b=new Headers(ys(b)),O.headers=await t(b,{getState:f,extra:h,endpoint:g,forced:v,type:I})||b;const E=e=>"object"==typeof e&&(ae(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!O.headers.has("content-type")&&E(O.body)&&O.headers.set("content-type",n),E(O.body)&&s(O.headers)&&(O.body=JSON.stringify(O.body,i)),S){const e=~q.indexOf("?")?"&":"?";q+=e+(o?o(S):new URLSearchParams(ys(S)))}q=Jn(e,q);const V=new Request(q,O);A={request:new Request(q,O)};let C,B=!1,R=_&&setTimeout((()=>{B=!0,m.abort()}),_);try{C=await r(V)}catch(e){return{error:{status:B?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:A}}finally{R&&clearTimeout(R)}const k=C.clone();A.response=k;let $,U="";try{let e;if(await Promise.all([p(C,w).then((e=>$=e),(t=>e=t)),k.text().then((e=>U=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:C.status,data:U,error:String(e)},meta:A}}return P(C,$)?{data:$,meta:A}:{error:{status:C.status,data:$},meta:A}};async function p(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=s(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var vs=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Nt=K("__rtkq/focused"),co=K("__rtkq/unfocused"),jt=K("__rtkq/online"),po=K("__rtkq/offline");function lo(e){return"query"===e.type}function sr(e){return"mutation"===e.type}function xt(e,t,r,o,s,n){return or(e)?e(t,r,o,s).map(kt).map(n):Array.isArray(e)?e.map(kt).map(n):[]}function or(e){return"function"==typeof e}function kt(e){return"string"==typeof e?{type:e}:e}function Is(e){return null!=e}function Se(e){let t=0;for(const r in e)t++;return t}function nr(e,t){return e.catch(t)}var Fe=Symbol("forceQueryFn"),$t=e=>"function"==typeof e[Fe];function rr({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:o,context:s}){const n=new Map,i=new Map,{unsubscribeQueryResult:a,removeMutationResult:u,updateSubscriptionOptions:d}=o.internalActions;return{buildInitiateQuery:function(r,s){const i=(u,{subscribe:l=!0,forceRefetch:p,subscriptionOptions:c,[Fe]:m,...y}={})=>(f,h)=>{var g;const v=e({queryArgs:u,endpointDefinition:s,endpointName:r}),I=t({...y,type:"query",subscribe:l,forceRefetch:p,subscriptionOptions:c,endpointName:r,originalArgs:u,queryCacheKey:v,[Fe]:m}),A=o.endpoints[r].select(u),q=f(I),b=A(h()),{requestId:S,abort:w}=q,P=b.requestId!==S,_=null==(g=n.get(f))?void 0:g[v],T=()=>A(h()),O=Object.assign(m?q.then(T):P&&!_?Promise.resolve(b):Promise.all([_,q]).then(T),{arg:u,requestId:S,subscriptionOptions:c,queryCacheKey:v,abort:w,async unwrap(){const e=await O;if(e.isError)throw e.error;return e.data},refetch:()=>f(i(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){l&&f(a({queryCacheKey:v,requestId:S}))},updateSubscriptionOptions(e){O.subscriptionOptions=e,f(d({endpointName:r,requestId:S,queryCacheKey:v,options:e}))}});if(!_&&!P&&!m){const e=n.get(f)||{};e[v]=O,n.set(f,e),O.then((()=>{delete e[v],Se(e)||n.delete(f)}))}return O};return i},buildInitiateMutation:function(e){return(t,{track:o=!0,fixedCacheKey:s}={})=>(n,a)=>{const d=r({type:"mutation",endpointName:e,originalArgs:t,track:o,fixedCacheKey:s}),l=n(d),{requestId:p,abort:c,unwrap:m}=l,y=nr(l.unwrap().then((e=>({data:e}))),(e=>({error:e}))),f=Object.assign(y,{arg:l.arg,requestId:p,abort:c,unwrap:m,reset:()=>{n(u({requestId:p,fixedCacheKey:s}))}}),h=i.get(n)||{};return i.set(n,h),h[p]=f,f.then((()=>{delete h[p],Se(h)||i.delete(n)})),s&&(h[s]=f,f.then((()=>{h[s]===f&&(delete h[s],Se(h)||i.delete(n))}))),f}},getRunningQueryThunk:function(t,r){return o=>{var i;const a=s.endpointDefinitions[t],u=e({queryArgs:r,endpointDefinition:a,endpointName:t});return null==(i=n.get(o))?void 0:i[u]}},getRunningMutationThunk:function(e,t){return e=>{var r;return null==(r=i.get(e))?void 0:r[t]}},getRunningQueriesThunk:function(){return e=>Object.values(n.get(e)||{}).filter(Is)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(Is)}}}function Ss(e){return e}function ir({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:o,api:s,assertTagType:n}){const i=async(e,{signal:o,abort:s,rejectWithValue:n,fulfillWithValue:i,dispatch:u,getState:d,extra:l})=>{const p=r[e.endpointName];try{let r,n=Ss;const c={signal:o,abort:s,dispatch:u,getState:d,extra:l,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?a(e,d()):void 0},m="query"===e.type?e[Fe]:void 0;if(m?r=m():p.query?(r=await t(p.query(e.originalArgs),c,p.extraOptions),p.transformResponse&&(n=p.transformResponse)):r=await p.queryFn(e.originalArgs,c,p.extraOptions,(e=>t(e,c,p.extraOptions))),typeof process<"u"&&Qn.NODE_ENV,r.error)throw new vs(r.error,r.meta);return i(await n(r.data,r.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:r.meta,[Ce]:!0})}catch(t){let r=t;if(r instanceof vs){let t=Ss;p.query&&p.transformErrorResponse&&(t=p.transformErrorResponse);try{return n(await t(r.value,r.meta,e.originalArgs),{baseQueryMeta:r.meta,[Ce]:!0})}catch(e){r=e}}throw console.error(r),r}};function a(t,r){var o,s,n;const i=null==(s=null==(o=r[e])?void 0:o.queries)?void 0:s[t.queryCacheKey],a=null==(n=r[e])?void 0:n.config.refetchOnMountOrArgChange,u=null==i?void 0:i.fulfilledTimeStamp,d=t.forceRefetch??(t.subscribe&&a);return!!d&&(!0===d||(Number(new Date)-Number(u))/1e3>=d)}const u=ds(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Ce]:!0}),condition(t,{getState:o}){var s,n,i;const u=o(),d=null==(n=null==(s=u[e])?void 0:s.queries)?void 0:n[t.queryCacheKey],l=null==d?void 0:d.fulfilledTimeStamp,p=t.originalArgs,c=null==d?void 0:d.originalArgs,m=r[t.endpointName];return!!$t(t)||"pending"!==(null==d?void 0:d.status)&&(!!(a(t,u)||lo(m)&&null!=(i=null==m?void 0:m.forceRefetch)&&i.call(m,{currentArg:p,previousArg:c,endpointState:d,state:u}))||!l)},dispatchConditionRejection:!0}),d=ds(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[Ce]:!0})});function l(e){return t=>{var r,o;return(null==(o=null==(r=null==t?void 0:t.meta)?void 0:r.arg)?void 0:o.endpointName)===e}}return{queryThunk:u,mutationThunk:d,prefetch:(e,t,r)=>(o,n)=>{const i=(e=>"force"in e)(r)&&r.force,a=(e=>"ifOlderThan"in e)(r)&&r.ifOlderThan,u=(r=!0)=>{const o={forceRefetch:r,isPrefetch:!0};return s.endpoints[e].initiate(t,o)},d=s.endpoints[e].select(t)(n());if(i)o(u());else if(a){const e=null==d?void 0:d.fulfilledTimeStamp;if(!e)return void o(u());(Number(new Date)-Number(new Date(e)))/1e3>=a&&o(u())}else o(u(!1))},updateQueryData:(e,t,r,o=!0)=>(n,i)=>{const a=s.endpoints[e].select(t)(i());let u,d={patches:[],inversePatches:[],undo:()=>n(s.util.patchQueryData(e,t,d.inversePatches,o))};if("uninitialized"===a.status)return d;if("data"in a)if(oe(a.data)){const[e,t,o]=oo(a.data,r);d.patches.push(...t),d.inversePatches.push(...o),u=e}else u=r(a.data),d.patches.push({op:"replace",path:[],value:u}),d.inversePatches.push({op:"replace",path:[],value:a.data});return n(s.util.patchQueryData(e,t,d.patches,o)),d},upsertQueryData:(e,t,r)=>o=>o(s.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Fe]:()=>({data:r})})),patchQueryData:(e,t,i,a)=>(u,d)=>{const l=r[e],p=o({queryArgs:t,endpointDefinition:l,endpointName:e});if(u(s.internalActions.queryResultPatched({queryCacheKey:p,patches:i})),!a)return;const c=s.endpoints[e].select(t)(d()),m=xt(l.providesTags,c.data,void 0,t,{},n);u(s.internalActions.updateProvidedBy({queryCacheKey:p,providedTags:m}))},buildMatchThunkActions:function(e,t){return{matchPending:ke(Ft(e),l(t)),matchFulfilled:ke(ce(e),l(t)),matchRejected:ke(_e(e),l(t))}}}}function mo(e,t,r,o){return xt(r[e.meta.arg.endpointName][t],ce(e)?e.payload:void 0,nt(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,o)}function We(e,t,r){const o=e[t];o&&r(o)}function Ge(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function gs(e,t,r){const o=e[Ge(t)];o&&r(o)}var Oe={};function ar({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:o,apiUid:s,extractRehydrationInfo:n,hasRehydrationInfo:i},assertTagType:a,config:u}){const d=K(`${e}/resetApiState`),l=X({name:`${e}/queries`,initialState:Oe,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Te()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:r}}){We(e,t,(e=>{e.data=as(e.data,r.concat())}))},prepare:Te()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:r}})=>{var o;const s=$t(r);e[o=r.queryCacheKey]??(e[o]={status:"uninitialized",endpointName:r.endpointName}),We(e,r.queryCacheKey,(e=>{e.status="pending",e.requestId=s&&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})=>{We(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!$t(t.arg))return;const{merge:s}=o[t.arg.endpointName];if(e.status="fulfilled",s)if(void 0!==e.data){const{fulfilledTimeStamp:o,arg:n,baseQueryMeta:i,requestId:a}=t;let u=xe(e.data,(e=>s(e,r,{arg:n.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:o,requestId:a})));e.data=u}else e.data=r;else e.data=o[t.arg.endpointName].structuralSharing??1?uo(se(e.data)?Ho(e.data):e.data,r):r;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:r,requestId:o},error:s,payload:n})=>{We(e,r.queryCacheKey,(e=>{if(!t){if(e.requestId!==o)return;e.status="rejected",e.error=n??s}}))})).addMatcher(i,((e,t)=>{const{queries:r}=n(t);for(const[t,o]of Object.entries(r))("fulfilled"===(null==o?void 0:o.status)||"rejected"===(null==o?void 0:o.status))&&(e[t]=o)}))}}),p=X({name:`${e}/mutations`,initialState:Oe,reducers:{removeMutationResult:{reducer(e,{payload:t}){const r=Ge(t);r in e&&delete e[r]},prepare:Te()}},extraReducers(e){e.addCase(r.pending,((e,{meta:t,meta:{requestId:r,arg:o,startedTimeStamp:s}})=>{o.track&&(e[Ge(t)]={requestId:r,status:"pending",endpointName:o.endpointName,startedTimeStamp:s})})).addCase(r.fulfilled,((e,{payload:t,meta:r})=>{r.arg.track&&gs(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:o})=>{o.arg.track&&gs(e,o,(e=>{e.requestId===o.requestId&&(e.status="rejected",e.error=t??r)}))})).addMatcher(i,((e,t)=>{const{mutations:r}=n(t);for(const[t,o]of Object.entries(r))("fulfilled"===(null==o?void 0:o.status)||"rejected"===(null==o?void 0:o.status))&&t!==(null==o?void 0:o.requestId)&&(e[t]=o)}))}}),c=X({name:`${e}/invalidation`,initialState:Oe,reducers:{updateProvidedBy:{reducer(e,t){var r,o;const{queryCacheKey:s,providedTags:n}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(s);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of n){const n=(r=e[t]??(e[t]={}))[o=i||"__internal_without_id"]??(r[o]=[]);n.includes(s)||n.push(s)}},prepare:Te()}},extraReducers(e){e.addCase(l.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,o;const{provided:s}=n(t);for(const[t,n]of Object.entries(s))for(const[s,i]of Object.entries(n)){const n=(r=e[t]??(e[t]={}))[o=s||"__internal_without_id"]??(r[o]=[]);for(const e of i)n.includes(e)||n.push(e)}})).addMatcher(ue(ce(t),nt(t)),((e,t)=>{const r=mo(t,"providesTags",o,a),{queryCacheKey:s}=t.meta.arg;c.caseReducers.updateProvidedBy(e,c.actions.updateProvidedBy({queryCacheKey:s,providedTags:r}))}))}}),m=X({name:`${e}/subscriptions`,initialState:Oe,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),y=X({name:`${e}/internalSubscriptions`,initialState:Oe,reducers:{subscriptionsUpdated:{reducer:(e,t)=>as(e,t.payload),prepare:Te()}}}),f=X({name:`${e}/config`,initialState:{online:Yn(),focused:Xn(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&s===t||"conflict"}},extraReducers:e=>{e.addCase(jt,(e=>{e.online=!0})).addCase(po,(e=>{e.online=!1})).addCase(Nt,(e=>{e.focused=!0})).addCase(co,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),h=Ks({queries:l.reducer,mutations:p.reducer,provided:c.reducer,subscriptions:y.reducer,config:f.reducer});return{reducer:(e,t)=>h(d.match(t)?void 0:e,t),actions:{...f.actions,...l.actions,...m.actions,...y.actions,...p.actions,...c.actions,resetApiState:d}}}var le=Symbol.for("RTKQ/skipToken"),fo={status:"uninitialized"},ws=xe(fo,(()=>{})),_s=xe(fo,(()=>{}));function ur({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const o=e=>ws,s=e=>_s;return{buildQuerySelector:function(t,s){return a=>{const u=e({queryArgs:a,endpointDefinition:s,endpointName:t});return r(a===le?o:e=>{var t,r;return(null==(r=null==(t=i(e))?void 0:t.queries)?void 0:r[u])??ws},n)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Ge(e)??le:e,r(t===le?s:e=>{var r,o;return(null==(o=null==(r=i(e))?void 0:r.mutations)?void 0:o[t])??_s},n)}},selectInvalidatedBy:function(e,r){const o=e[t],s=new Set;for(const e of r.map(kt)){const t=o.provided[e.type];if(!t)continue;let r=(void 0!==e.id?t[e.id]:ms(Object.values(t)))??[];for(const e of r)s.add(e)}return ms(Array.from(s.values()).map((e=>{const t=o.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 n(e){return{...e,...qn(e.status)}}function i(e){return e[t]}}var ve=WeakMap?new WeakMap:void 0,Ps=({endpointName:e,queryArgs:t})=>{let r="";const o=null==ve?void 0:ve.get(t);if("string"==typeof o)r=o;else{const e=JSON.stringify(t,((e,t)=>ae(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t));ae(t)&&(null==ve||ve.set(t,e)),r=e}return`${e}(${r})`};function cr(...e){return function(t){const r=Le((e=>{var r;return null==(r=t.extractRehydrationInfo)?void 0:r.call(t,e,{reducerPath:t.reducerPath??"api"})})),o={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:r,serializeQueryArgs(e){let r=Ps;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;r=e=>{const r=t(e);return"string"==typeof r?r:Ps({...e,queryArgs:r})}}else t.serializeQueryArgs&&(r=t.serializeQueryArgs);return r(e)},tagTypes:[...t.tagTypes||[]]},s={endpointDefinitions:{},batch(e){e()},apiUid:st(),extractRehydrationInfo:r,hasRehydrationInfo:Le((e=>null!=r(e)))},n={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[r,o]of Object.entries(t))if(!0!==e.overrideExisting&&r in s.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Y(39))}else{s.endpointDefinitions[r]=o;for(const e of i)e.injectEndpoint(r,o)}return n},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)o.tagTypes.includes(t)||o.tagTypes.push(t);if(t)for(const[e,r]of Object.entries(t))"function"==typeof r?r(s.endpointDefinitions[e]):Object.assign(s.endpointDefinitions[e]||{},r);return n}},i=e.map((e=>e.init(n,o,s)));return n.injectEndpoints({endpoints:t.endpoints})}}function pr(e){for(let t in e)return!1;return!0}var lr=2147482.647,dr=({reducerPath:e,api:t,context:r,internalState:o})=>{const{removeQueryResult:s,unsubscribeQueryResult:n}=t.internalActions;function i(e){const t=o.currentSubscriptions[e];return!!t&&!pr(t)}const a={};function u(e,t,o,n){const u=r.endpointDefinitions[t],d=(null==u?void 0:u.keepUnusedDataFor)??n.keepUnusedDataFor;if(d===1/0)return;const l=Math.max(0,Math.min(d,lr));if(!i(e)){const t=a[e];t&&clearTimeout(t),a[e]=setTimeout((()=>{i(e)||o.dispatch(s({queryCacheKey:e})),delete a[e]}),1e3*l)}}return(o,s,i)=>{var d;if(n.match(o)){const t=s.getState()[e],{queryCacheKey:r}=o.payload;u(r,null==(d=t.queries[r])?void 0:d.endpointName,s,t.config)}if(t.util.resetApiState.match(o))for(const[e,t]of Object.entries(a))t&&clearTimeout(t),delete a[e];if(r.hasRehydrationInfo(o)){const t=s.getState()[e],{queries:n}=r.extractRehydrationInfo(o);for(const[e,r]of Object.entries(n))u(e,null==r?void 0:r.endpointName,s,t.config)}}},mr=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:o,queryThunk:s,api:n,assertTagType:i,refetchQuery:a,internalState:u})=>{const{removeQueryResult:d}=n.internalActions,l=ue(ce(o),nt(o)),p=ue(ce(o,s),_e(o,s));let c=[];function m(r,o){const s=o.getState(),i=s[e];if(c.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 l=c;if(c=[],0===l.length)return;const p=n.util.selectInvalidatedBy(s,l);t.batch((()=>{const e=Array.from(p.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],r=u.currentSubscriptions[t]??{};e&&(0===Se(r)?o.dispatch(d({queryCacheKey:t})):"uninitialized"!==e.status&&o.dispatch(a(e,t)))}}))}return(e,t)=>{l(e)?m(mo(e,"invalidatesTags",r,i),t):p(e)?m([],t):n.util.invalidateTags.match(e)&&m(xt(e.payload,void 0,void 0,void 0,void 0,i),t)}},fr=({reducerPath:e,queryThunk:t,api:r,refetchQuery:o,internalState:s})=>{const n={};function i({queryCacheKey:t},r){const a=r.getState()[e],u=a.queries[t],l=s.currentSubscriptions[t];if(!u||"uninitialized"===u.status)return;const{lowestPollingInterval:p,skipPollingIfUnfocused:c}=d(l);if(!Number.isFinite(p))return;const m=n[t];null!=m&&m.timeout&&(clearTimeout(m.timeout),m.timeout=void 0);const y=Date.now()+p;n[t]={nextPollTimestamp:y,pollingInterval:p,timeout:setTimeout((()=>{(a.config.focused||!c)&&r.dispatch(o(u,t)),i({queryCacheKey:t},r)}),p)}}function a({queryCacheKey:t},r){const o=r.getState()[e].queries[t],a=s.currentSubscriptions[t];if(!o||"uninitialized"===o.status)return;const{lowestPollingInterval:l}=d(a);if(!Number.isFinite(l))return void u(t);const p=n[t],c=Date.now()+l;(!p||c<p.nextPollTimestamp)&&i({queryCacheKey:t},r)}function u(e){const t=n[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete n[e]}function d(e={}){let t=!1,r=Number.POSITIVE_INFINITY;for(let o in e)e[o].pollingInterval&&(r=Math.min(e[o].pollingInterval,r),t=e[o].skipPollingIfUnfocused||t);return{lowestPollingInterval:r,skipPollingIfUnfocused:t}}return(e,o)=>{(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&a(e.payload,o),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&a(e.meta.arg,o),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,o),r.util.resetApiState.match(e)&&function(){for(const e of Object.keys(n))u(e)}()}},hr=({reducerPath:e,context:t,api:r,refetchQuery:o,internalState:s})=>{const{removeQueryResult:n}=r.internalActions;function i(r,i){const a=r.getState()[e],u=a.queries,d=s.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(d)){const t=u[e],s=d[e];s&&t&&((Object.values(s).some((e=>!0===e[i]))||Object.values(s).every((e=>void 0===e[i]))&&a.config[i])&&(0===Se(s)?r.dispatch(n({queryCacheKey:e})):"uninitialized"!==t.status&&r.dispatch(o(t,e))))}}))}return(e,t)=>{Nt.match(e)&&i(t,"refetchOnFocus"),jt.match(e)&&i(t,"refetchOnReconnect")}},Es=new Error("Promise never resolved before cacheEntryRemoved."),yr=({api:e,reducerPath:t,context:r,queryThunk:o,mutationThunk:s,internalState:n})=>{const i=Bt(o),a=Bt(s),u=ce(o,s),d={};function l(t,o,s,n,i){const a=r.endpointDefinitions[t],u=null==a?void 0:a.onCacheEntryAdded;if(!u)return;let l={};const p=new Promise((e=>{l.cacheEntryRemoved=e})),c=Promise.race([new Promise((e=>{l.valueResolved=e})),p.then((()=>{throw Es}))]);c.catch((()=>{})),d[s]=l;const m=e.endpoints[t].select("query"===a.type?o:s),y=n.dispatch(((e,t,r)=>r)),f={...n,getCacheEntry:()=>m(n.getState()),requestId:i,extra:y,updateCachedData:"query"===a.type?r=>n.dispatch(e.util.updateQueryData(t,o,r)):void 0,cacheDataLoaded:c,cacheEntryRemoved:p},h=u(o,f);Promise.resolve(h).catch((e=>{if(e!==Es)throw e}))}return(r,n,p)=>{const c=function(t){return i(t)?t.meta.arg.queryCacheKey:a(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Ge(t.payload):""}(r);if(o.pending.match(r)){const e=p[t].queries[c],o=n.getState()[t].queries[c];!e&&o&&l(r.meta.arg.endpointName,r.meta.arg.originalArgs,c,n,r.meta.requestId)}else if(s.pending.match(r))n.getState()[t].mutations[c]&&l(r.meta.arg.endpointName,r.meta.arg.originalArgs,c,n,r.meta.requestId);else if(u(r)){const e=d[c];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=d[c];e&&(delete d[c],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(r))for(const[e,t]of Object.entries(d))delete d[e],t.cacheEntryRemoved()}},vr=({api:e,context:t,queryThunk:r,mutationThunk:o})=>{const s=Ft(r,o),n=_e(r,o),i=ce(r,o),a={};return(r,o)=>{var u,d;if(s(r)){const{requestId:s,arg:{endpointName:n,originalArgs:i}}=r.meta,u=t.endpointDefinitions[n],d=null==u?void 0:u.onQueryStarted;if(d){const t={},r=new Promise(((e,r)=>{t.resolve=e,t.reject=r}));r.catch((()=>{})),a[s]=t;const l=e.endpoints[n].select("query"===u.type?i:s),p=o.dispatch(((e,t,r)=>r)),c={...o,getCacheEntry:()=>l(o.getState()),requestId:s,extra:p,updateCachedData:"query"===u.type?t=>o.dispatch(e.util.updateQueryData(n,i,t)):void 0,queryFulfilled:r};d(i,c)}}else if(i(r)){const{requestId:e,baseQueryMeta:t}=r.meta;null==(u=a[e])||u.resolve({data:r.payload,meta:t}),delete a[e]}else if(n(r)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:o}=r.meta;null==(d=a[e])||d.reject({error:r.payload??r.error,isUnhandledError:!t,meta:o}),delete a[e]}}},Ir=({api:e,context:{apiUid:t},reducerPath:r})=>(r,o)=>{e.util.resetApiState.match(r)&&o.dispatch(e.internalActions.middlewareRegistered(t))},Sr=({api:e,queryThunk:t,internalState:r})=>{const o=`${e.reducerPath}/subscriptions`;let s=null,n=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:a}=e.internalActions,u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:e=>Se(u()[e]??{}),isRequestSubscribed:(e,t)=>{var r;const o=u();return!(null==(r=null==o?void 0:o[e])||!r[t])}};return(u,l)=>{if(s||(s=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(u))return s=r.currentSubscriptions={},n=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,d];const p=((r,o)=>{var s,n,u;if(i.match(o)){const{queryCacheKey:e,requestId:t,options:n}=o.payload;return null!=(s=null==r?void 0:r[e])&&s[t]&&(r[e][t]=n),!0}if(a.match(o)){const{queryCacheKey:e,requestId:t}=o.payload;return r[e]&&delete r[e][t],!0}if(e.internalActions.removeQueryResult.match(o))return delete r[o.payload.queryCacheKey],!0;if(t.pending.match(o)){const{meta:{arg:e,requestId:t}}=o,s=r[n=e.queryCacheKey]??(r[n]={});return s[`${t}_running`]={},e.subscribe&&(s[t]=e.subscriptionOptions??s[t]??{}),!0}let d=!1;if(t.fulfilled.match(o)||t.rejected.match(o)){const e=r[o.meta.arg.queryCacheKey]||{},t=`${o.meta.requestId}_running`;d||(d=!!e[t]),delete e[t]}if(t.rejected.match(o)){const{meta:{condition:e,arg:t,requestId:s}}=o;if(e&&t.subscribe){const e=r[u=t.queryCacheKey]??(r[u]={});e[s]=t.subscriptionOptions??e[s]??{},d=!0}}return d})(r.currentSubscriptions,u);let c=!0;if(p){n||(n=setTimeout((()=>{const t=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,o]=oo(s,(()=>t));l.next(e.internalActions.subscriptionsUpdated(o)),s=t,n=null}),500));const i="string"==typeof u.type&&!!u.type.startsWith(o),a=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;c=!i&&!a}return[c,!1]}};function gr(e){const{reducerPath:t,queryThunk:r,api:o,context:s}=e,{apiUid:n}=s,i={invalidateTags:K(`${t}/invalidateTags`)},a=e=>e.type.startsWith(`${t}/`),u=[Ir,dr,mr,fr,yr,vr];return{middleware:r=>{let i=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:d,isThisApiSliceAction:a},p=u.map((e=>e(l))),c=Sr(l),m=hr(l);return e=>u=>{if(!Js(u))return e(u);i||(i=!0,r.dispatch(o.internalActions.middlewareRegistered(n)));const d={...r,next:e},l=r.getState(),[y,f]=c(u,d,l);let h;if(h=y?e(u):f,r.getState()[t]&&(m(u,d,l),a(u)||s.hasRehydrationInfo(u)))for(let e of p)e(u,d,l);return h}},actions:i};function d(e,t,o={}){return r({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...o})}}function ie(e,...t){return Object.assign(e,...t)}var Ts=Symbol(),wr=({createSelector:e=z}={})=>({name:Ts,init(t,{baseQuery:r,tagTypes:o,reducerPath:s,serializeQueryArgs:n,keepUnusedDataFor:i,refetchOnMountOrArgChange:a,refetchOnFocus:u,refetchOnReconnect:d,invalidationBehavior:l},p){on();const c=e=>e;Object.assign(t,{reducerPath:s,endpoints:{},internalActions:{onOnline:jt,onOffline:po,onFocus:Nt,onFocusLost:co},util:{}});const{queryThunk:m,mutationThunk:y,patchQueryData:f,updateQueryData:h,upsertQueryData:g,prefetch:v,buildMatchThunkActions:I}=ir({baseQuery:r,reducerPath:s,context:p,api:t,serializeQueryArgs:n,assertTagType:c}),{reducer:A,actions:q}=ar({context:p,queryThunk:m,mutationThunk:y,reducerPath:s,assertTagType:c,config:{refetchOnFocus:u,refetchOnReconnect:d,refetchOnMountOrArgChange:a,keepUnusedDataFor:i,reducerPath:s,invalidationBehavior:l}});ie(t.util,{patchQueryData:f,updateQueryData:h,upsertQueryData:g,prefetch:v,resetApiState:q.resetApiState}),ie(t.internalActions,q);const{middleware:b,actions:S}=gr({reducerPath:s,context:p,queryThunk:m,mutationThunk:y,api:t,assertTagType:c});ie(t.util,S),ie(t,{reducer:A,middleware:b});const{buildQuerySelector:w,buildMutationSelector:P,selectInvalidatedBy:_,selectCachedArgsForQuery:T}=ur({serializeQueryArgs:n,reducerPath:s,createSelector:e});ie(t.util,{selectInvalidatedBy:_,selectCachedArgsForQuery:T});const{buildInitiateQuery:O,buildInitiateMutation:E,getRunningMutationThunk:V,getRunningMutationsThunk:C,getRunningQueriesThunk:B,getRunningQueryThunk:R}=rr({queryThunk:m,mutationThunk:y,api:t,serializeQueryArgs:n,context:p});return ie(t.util,{getRunningMutationThunk:V,getRunningMutationsThunk:C,getRunningQueryThunk:R,getRunningQueriesThunk:B}),{name:Ts,injectEndpoint(e,r){var o;const s=t;(o=s.endpoints)[e]??(o[e]={}),lo(r)?ie(s.endpoints[e],{name:e,select:w(e,r),initiate:O(e,r)},I(m,e)):sr(r)&&ie(s.endpoints[e],{name:e,select:P(),initiate:E(e)},I(y,e))}}}});function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Os,Vs,ft={exports:{}},L={};
2
2
  /**
3
3
  * @license React
4
4
  * react.production.min.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wellesley/media-playback",
3
- "version": "1.0.578",
3
+ "version": "1.0.580",
4
4
  "license": "UNLICENSED",
5
5
  "main": "index.mjs",
6
6
  "files": [