try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`0e60018c-82ff-4736-92c6-dce8835b0cf9`,e._sentryDebugIdIdentifier=`sentry-dbid-0e60018c-82ff-4736-92c6-dce8835b0cf9`)}catch{}import{Ji as e,Ri as t,Ui as n,Zi as r,pg as i,qi as a}from"./entry.client-dr7r6s9a.js";n(),t();var o=new i(`XboxReduxModulesAdaptor/redux/createChannelBasedSagaMiddleware`),s=`pluginMap`;function c(t){let n,i=new Map,c=e=>(n=e,e=>t=>{let n=e(t);return i.forEach(e=>e.put(t)),n});function l(e,r,c){let l=i.get(e);if(!l){let t=`Attempted to run saga with plugin: ${e}, but channel does not exist`;throw o.error(t),Error(t)}return a({channel:l,getState:n.getState.bind(n),dispatch:n.dispatch.bind(n),effectMiddlewares:c,context:{[s]:t}},r)}function u(t,n,a){if(i.get(t)){let e=`Attempting to register saga for plugin ${t}, but there is already a saga registered. Skipping...`;throw o.error(e),Error(e)}let s=e();return i.set(t,s),l(t,function*(){try{yield r(n)}finally{i.delete(t)}},a)}function d(e,t){let n=i.get(e);if(!n){o.warn(`Attempted to dispatch action: ${t.type} to plugin: ${e}, but channel does not exist`);return}n?.put(t)}return{reduxMiddleware:c,registerSaga:u,dispatchActionToPlugin:d,run:l}}export{c as n,s as t};