1 line
31 KiB
JavaScript
1 line
31 KiB
JavaScript
"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["5440"],{3262:function(){let t=new WeakMap;function e(e,n){return t.get(e)&&t.get(e).get(n)}function n(t,n,r){if(void 0===n)throw TypeError();let o=e(n,r);return o&&o.get(t)}function r(n,r,o,i){if(i&&!["string","symbol"].includes(typeof i))throw TypeError();(e(o,i)||function(e,n){let r=t.get(e)||new Map;t.set(e,r);let o=r.get(n)||new Map;return r.set(n,o),o}(o,i)).set(n,r)}function o(t,e,r){return n(t,e,r)?n(t,e,r):Object.getPrototypeOf(e)?o(t,Object.getPrototypeOf(e),r):void 0}Object.assign(Reflect,{decorate:function(t,e,n,r){var o,i;if(!Array.isArray(t)||0===t.length)throw TypeError();return void 0!==n?(o=r,t.reverse().forEach(t=>{o=t(e,n,o)||o}),o):"function"==typeof e?(i=e,t.reverse().forEach(t=>{let e=t(i);e&&(i=e)}),i):void 0},defineMetadata:function(t,e,n,o){r(t,e,n,o)},getMetadata:function(t,e,n){return o(t,e,n)},getOwnMetadata:function(t,e,r){return n(t,e,r)},hasMetadata:function(t,e,n){return!!o(t,e,n)},hasOwnMetadata:function(t,e,r){return!!n(t,e,r)},metadata:function(t,e){return function(n,o){r(t,e,n,o)}}})},82379:function(t,e,n){n.d(e,{HI:function(){return c},Mj:function(){return a},h5:function(){return u},uk:function(){return i}});var r=n(72516),o=n(23628),i=(0,o.oh)("DefineAction"),u=(0,o.oh)("ImmerReducer"),c=(0,o.oh)("Reducer"),a=function(t){var e=(0,o.oh)("Effect");if(t&&(t.ssr||t.payloadGetter)){var n=(0,r.__assign)({payloadGetter:void 0,skipFirstClientDispatch:!0},t),i=n.payloadGetter,u=n.skipFirstClientDispatch;return function(t,e,n){return(0,o.Ax)(t,{action:e,payloadGetter:i}),u&&(0,o._6)(t,e),a()(t,e,n)}}return e()}},24106:function(t,e,n){n.d(e,{Z:function(){return r},z:function(){return o}});var r,o=!1},98417:function(t,e,n){n.r(e),n.d(e,{ACTION_TO_SKIP_SYMBOL:function(){return c.yf},DEFINE_ACTION_DECORATOR_SYMBOL:function(){return c.UV},DefineAction:function(){return o.uk},EFFECT_DECORATOR_SYMBOL:function(){return c.Li},Effect:function(){return o.Mj},EffectModule:function(){return r.E},GLOBAL_KEY_SYMBOL:function(){return c.H2},IMMER_REDUCER_DECORATOR_SYMBOL:function(){return c.zp},INIT_ACTION_TYPE_SYMBOL:function(){return c.Az},ImmerReducer:function(){return o.h5},Module:function(){return i.n},NOOP_ACTION_TYPE_SYMBOL:function(){return c.oi},REDUCER_DECORATOR_SYMBOL:function(){return c.Sb},RESET_ACTION_TYPE_SYMBOL:function(){return c.$5},RETRY_ACTION_TYPE_SYMBOL:function(){return c.gQ},RETRY_KEY_SYMBOL:function(){return c.YM},Reducer:function(){return o.HI},SSR_ACTION_META_SYMBOL:function(){return c.LI},TERMINATE_ACTION_TYPE_SYMBOL:function(){return c.p8},addActionToSkip:function(){return a._6},addSSREffectMeta:function(){return a.Ax},createActionDecorator:function(){return a.oh},getActionsToSkip:function(){return a.yg},getDecoratedActions:function(){return a.l1},getSSREffectMeta:function(){return a.Dn},logStoreAction:function(){return u.m},replaceLogger:function(){return u.T}});var r=n(78990),o=n(82379),i=n(69446),u=n(7249),c=n(27112),a=n(23628)},7249:function(t,e,n){n.d(e,{T:function(){return o},m:function(){return r}});var r=function(t){},o=function(t){return r=t}},23628:function(t,e,n){n.d(e,{Ax:function(){return l},Dn:function(){return f},_6:function(){return p},l1:function(){return a},oh:function(){return s},yg:function(){return d}});var r,o,i=n(27112),u={DefineAction:i.UV,Reducer:i.Sb,ImmerReducer:i.zp,Effect:i.Li},c=function(t){var e=function(e,n){var r=Reflect.getMetadata(t,e);return r&&Array.isArray(r)?r:n};return{get:e,add:function(n,r){var o=e(n);o?o.push(r):Reflect.defineMetadata(t,[r],n)}}};function a(t,e,n){return(0,c(u[e]).get)(t,n)}function s(t){return function(){return function(e,n,r){if("function"==typeof e||!n)throw Error(t+" can only be used to decorate properties.");return(0,c(u[t]).add)(e,n),r}}}var f=(r=c(i.LI)).get,l=r.add,d=(o=c(i.yf)).get,p=o.add},69446:function(t,e,n){n.d(e,{n:function(){return u}});var r=n(63599),o=n(24106),i=new Set,u=function(t){if("string"!=typeof t)throw TypeError("Module name should be string");if(i.has(t))if(o.z)console.warn("Duplicated Module name found: `"+t+"`. this warning may caused by two reasons:\n 1. You defined two modules with the same name passed. If so, you should check your definitions and avoid it.\n 2. We detected your code is running with HMR environment. If so, you can safely ignore this warning.");else throw Error("Duplicated Module name: "+t);else i.add(t);return function(e){return e.prototype.moduleName=t,(0,r._)()(e)}};o.z&&(u.removeModule=function(t,e){i.delete(t),o.Z.set(t,e)})},78990:function(t,e,n){n.d(e,{E:function(){return w}});var r=n(72516),o=n(61157),i=n(63700),u=n(17354),c=n(62564),a=n(96627),s=n(24106),f=n(23628),l=n(28103),d=n(59297),p=n(32907),h=n(35877),y=n(87662),v=n(76569),m=n(76435),g=n(26618),_=n(72916),b=n(7249),S=n(27112),P=function(){function t(t,e,n){void 0===e&&(e=l.D),void 0===n&&(n=l.D),this.state$=new d.m(1),this.action$=new p.B,this.isReady=!1,this.actionSub=new h.yU,this.initAction={type:S.Az,payload:null,store:this},this.name=t,this.reducer=e,this.epic$=new y.t(n)}return Object.defineProperty(t.prototype,"state",{get:function(){return this.internalState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ready",{get:function(){return this.isReady},enumerable:!1,configurable:!0}),t.prototype.setup=function(t){this.internalState=t,this.state$.next(t),this.subscribeAction(),this.log(this.initAction),this.isReady=!0},t.prototype.addEpic=function(t){var e=this,n=this.epic$,r=n.getValue();return n.next(t(function(t){return(t instanceof p.B?r(t):r(t.pipe((0,v.u)()))).pipe((0,m.Q)(e.action$.pipe((0,g.H)(null,null))))})),function(){e.epic$.next(r)}},t.prototype.dispatch=function(t){if(t.type!==S.oi){if(t.store!==this)return void t.store.dispatch(t);var e=this.internalState,n=this.reducer(e,t);n!==e&&(this.internalState=n,this.state$.next(n)),this.log(t),this.action$.next(t)}},t.prototype.log=function(t){t.type!==S.p8&&(0,b.m)(t)},t.prototype.dispose=function(){this.actionSub.unsubscribe(),this.action$.complete(),this.state$.complete(),this.epic$.complete(),this.action$.unsubscribe(),this.epic$.unsubscribe()},t.prototype.subscribeAction=function(){var t=this;this.actionSub=this.epic$.pipe((0,_.n)(function(e){return e(t.action$).pipe((0,m.Q)(t.action$.pipe((0,g.H)(null,null))))})).subscribe({next:function(e){try{t.dispatch(e)}catch(e){console.error(e),t.action$.error(e)}},error:function(e){t.action$.closed||t.action$.error(e)}})},t}(),O="undefined"==typeof globalThis?"undefined"==typeof window?n.g:window:globalThis,R="defaultState",w=function(){function t(){var t,e,n,o,i=this;this.actionStreams={},this.retryActionsCreator={},this.actionNames=[],this.restoredFromSSR=!1,this.createNoopAction=function(){return i.noop()},this.terminate=function(){return{type:S.p8,payload:null,store:i.store}},this.reset=function(){return{type:S.$5,payload:null,store:i.store}};var a=this.combineReducers(),s=this.combineDefineActions(),l=this.combineEffects();this.store=new P(this.moduleName,a,l);var d=function(t){p[t]=p.store.action$.pipe((0,u.p)(function(e){return e.type===t}),(0,c.T)(function(t){return t.payload}))},p=this;try{for(var h=(0,r.__values)(s),y=h.next();!y.done;y=h.next()){var v=y.value;d(v)}}catch(e){t={error:e}}finally{try{y&&!y.done&&(e=h.return)&&e.call(h)}finally{if(t)throw t.error}}this.actions={reset:this.reset,terminate:this.terminate,noop:this.noop},this.dispatchers={reset:function(){i.store.dispatch(i.reset())},terminate:function(){i.store.dispatch(i.terminate())},noop:function(){i.store.dispatch(i.noop())}};var m=function(t){var e=function(e){return{type:t,payload:e,store:i.store}};g.actions[t]=e,g.dispatchers[t]=function(t){i.store.dispatch(e(t))},g.actionStreams[t]=g.store.action$.pipe((0,u.p)(function(e){return e.type===t}),(0,c.T)(function(t){return t.payload}))},g=this;try{for(var _=(0,r.__values)(this.actionNames),b=_.next();!b.done;b=_.next()){var w=b.value;m(w)}}catch(t){n={error:t}}finally{try{b&&!b.done&&(o=_.return)&&o.call(_)}finally{if(n)throw n.error}}if("undefined"!=typeof Proxy){var A=this;return new Proxy(this,{defineProperty:function(t,e,n){var r;if(e===R)if(n.set){var o=n.set;n.set=function(t){var e;return A.internalDefaultState=t,A.store.ready||(A.store.setup(A.getDefaultState()),A.actionsToRetry=new Set((null==(e=O[S.YM])?void 0:e[this.moduleName])||[]),A.actionsToSkip=new Set(A.restoredFromSSR&&(0,f.yg)(A.constructor.prototype)||[])),o.call(this,t)}}else"value"in n&&(A.internalDefaultState=n.value,A.store.ready||(A.store.setup(A.getDefaultState()),A.actionsToRetry=new Set((null==(r=O[S.YM])?void 0:r[A.moduleName])||[]),A.actionsToSkip=new Set(A.restoredFromSSR&&(0,f.yg)(A.constructor.prototype)||[])));return Reflect.defineProperty(t,e,n)},set:function(t,e,n,r){var o;return e===R&&(A.internalDefaultState=n,A.store.ready||(A.store.setup(A.getDefaultState()),A.actionsToRetry=new Set((null==(o=O[S.YM])?void 0:o[A.moduleName])||[]),A.actionsToSkip=new Set(A.restoredFromSSR&&(0,f.yg)(A.constructor.prototype)||[]))),Reflect.set(t,e,n,r)}})}Object.defineProperty(this,R,{set:function(t){var e;i.internalDefaultState=t,i.store.ready||(i.store.setup(i.getDefaultState()),i.actionsToRetry=new Set((null==(e=O[S.YM])?void 0:e[i.moduleName])||[]),i.actionsToSkip=new Set(i.restoredFromSSR&&(0,f.yg)(i.constructor.prototype)||[]))},get:function(){return i.getDefaultState()}})}return Object.defineProperty(t.prototype,"state$",{get:function(){return this.store.state$},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"action$",{get:function(){return this.store.action$},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.store.state},enumerable:!1,configurable:!0}),t.prototype.getActions=function(){return this.actions},t.prototype.getAction$=function(){return this.actionStreams},t.prototype.retryOnClient=function(){return this.retryActionsCreator},t.prototype.noop=function(){return{type:S.oi,payload:null,store:this.store}},t.prototype.getDefaultState=function(){var t,e;return null!=(e=null!=(t=this.tryReadHmrState())?t:this.tryReadSSRState())?e:this.internalDefaultState},t.prototype.tryReadSSRState=function(){var t=O[S.H2];if(null==t?void 0:t[this.moduleName])return this.restoredFromSSR=!0,t[this.moduleName]},t.prototype.tryReadHmrState=function(){if(s.z){var t=s.Z.get(this.moduleName);if(t){var e=t.state;return t.dispose(),e}}},t.prototype.combineEffects=function(){var t,e=this,n=(0,f.l1)(this.constructor.prototype,"Effect");return n&&0!==n.length?((t=this.actionNames).push.apply(t,(0,r.__spreadArray)([],(0,r.__read)(n),!1)),function(t){return i.h.apply(void 0,(0,r.__spreadArray)([],(0,r.__read)(n.map(function(n){var r=e[n],o=t.pipe((0,u.p)(function(t){return t.type===n}),(0,u.p)(function(t,r){var o;return(!e.actionsToRetry.has(n)&&(null==(o=e.actionsToSkip)?void 0:o.has(n))?1:0)<=r}),(0,c.T)(function(t){return t.payload}));return e.retryActionsCreator[n]=function(){return{type:S.gQ,payload:{module:e,name:n},store:e.store}},r.call(e,o)})),!1))}):function(t){return t.pipe((0,a.w)())}},t.prototype.combineReducers=function(){var t,e=this,n=(0,f.l1)(this.constructor.prototype,"Reducer",[]),i=(0,f.l1)(this.constructor.prototype,"ImmerReducer",[]);(t=this.actionNames).push.apply(t,(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(n),!1),(0,r.__read)(i),!1));var u=i.reduce(function(t,n){return t[n]=e[n].bind(e),t},{}),c=n.reduce(function(t,n){return t[n]=e[n].bind(e),t},{});return function(t,n){var r=n.type;return r===S.$5?e.defaultState:c[r]?c[r](t,n.payload):u[r]?(0,o.Ay)(t,function(t){return u[r](t,n.payload)}):t}},t.prototype.combineDefineActions=function(){var t,e=(0,f.l1)(this.constructor.prototype,"DefineAction",[]);return(t=this.actionNames).push.apply(t,(0,r.__spreadArray)([],(0,r.__read)(e),!1)),e},t}()},27112:function(t,e,n){n.d(e,{$5:function(){return f},Az:function(){return c},H2:function(){return h},LI:function(){return d},Li:function(){return r},Sb:function(){return o},UV:function(){return u},YM:function(){return y},gQ:function(){return l},oi:function(){return a},p8:function(){return s},yf:function(){return p},zp:function(){return i}});var r="E",o="R",i="IR",u="D",c="IA",a="N",s="T",f="RST",l="RT",d="SA",p="RS",h="SIGI_STATE",y="SIGI_RETRY"},34153:function(t,e,n){n.r(e),n.d(e,{Inject:function(){return u.y},rootInjector:function(){return o.l},Test:function(){return s},Injectable:function(){return r._},AbstractTestModule:function(){return l},MockProvider:function(){return f},InjectionToken:function(){return i.n},Injector:function(){return c.z},RootInjector:function(){return o.J},TestModule:function(){return d}});var r=n(63599),o=n(21987),i=n(43274),u=n(2999),c=n(41423),a=n(72516),s=function(){function t(t,e){this.TestModule=e,this.providersMap=new Map;try{for(var n,r,o,i=(0,a.__values)(t),u=i.next();!u.done;u=i.next()){var c=u.value;this.providersMap.set(null!=(o=c.provide)?o:c,c)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}return t.createTestingModule=function(e){return new t((null==e?void 0:e.providers)?e.providers:[],(null==e?void 0:e.TestModule)?e.TestModule:d)},t.prototype.overrideProvider=function(t){return new f(this,t)},t.prototype.compile=function(){var t=o.l.createChild(Array.from(this.providersMap.values()));return new this.TestModule(t)},t}(),f=function(){function t(t,e){this.test=t,this.token=e}return t.prototype.useClass=function(t){return this.test.providersMap.set(this.token,{provide:this.token,useClass:t}),this.test},t.prototype.useValue=function(t){return this.test.providersMap.set(this.token,{provide:this.token,useValue:t}),this.test},t.prototype.useFactory=function(t){return this.test.providersMap.set(this.token,{provide:this.token,useFactory:t}),this.test},t}(),l=function(){},d=function(){function t(t){this.injector=t}return t.prototype.getInstance=function(t){return this.injector.getInstance(t)},t}()},2999:function(t,e,n){n.d(e,{y:function(){return r}});function r(t){return function(e,n,r){Reflect.getMetadata("design:paramtypes",e)[r]=t}}},63599:function(t,e,n){n.d(e,{_:function(){return i}});var r=n(72516),o=n(21987);function i(t){return function(e){o.l.addProvider({useClass:e,provide:e});try{for(var n,i,u,c=(0,r.__values)(null!=(u=null==t?void 0:t.providers)?u:[]),a=c.next();!a.done;a=c.next()){var s=a.value;o.l.addProvider(s)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return e}}},41423:function(t,e,n){n.d(e,{z:function(){return c}});var r=n(72516),o=n(43274),i=function(){function t(t){this.provider=t,"function"==typeof t?(this.name=t.name,this.token=t):(this.name=t.provide instanceof o.n?t.provide.toString():t.provide.name,this.token=t.provide)}return t.prototype.toString=function(){return this.name},t}(),u=n(28319),c=function(){function t(t){void 0===t&&(t=null),this.parent=t,this.provider=new u.V,this.resolvedProviders=new Map,this.providersCache=new Map}return t.prototype.addProvider=function(t){return this.provider.addProvider(t)},t.prototype.addProviders=function(t){var e,n;try{for(var o=(0,r.__values)(t),i=o.next();!i.done;i=o.next()){var u=i.value;this.provider.addProvider(u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return this},t.prototype.getInstance=function(t){return this.getInstanceInternal(t,!0)},t.prototype.resolveAndInstantiate=function(t){return this.getInstanceInternal(t,!1)},t.prototype.createChild=function(e){var n=new t(this);return n.addProviders(e),n},t.prototype.resolveReflectiveProvider=function(t){var e,n=null;if(this.provider.findProviderByToken(null!=(e=t.provide)?e:t)){if(this.providersCache.has(t))return this.providersCache.get(t);n=new i(t),this.providersCache.set(t,n)}return n},t.prototype.getInstanceInternal=function(t,e){for(var n=this,r=null,o=null,u=this.findDeps(t);n;){if(!(o=n.resolveReflectiveProvider(t))){n=n.parent;continue}if(n.resolvedProviders.has(o)){u?e&&(n===this||this.checkDependenciesClean(n,u))?r=n.resolvedProviders.get(o):(r=this.resolveByReflectiveProvider(o,e,this),e&&(this.provider.addProvider(t),this.providersCache.set(t,o),this.resolvedProviders.set(o,r))):r=e?n.resolvedProviders.get(o):this.resolveByReflectiveProvider(o,!1,this);break}if(r=n.resolveByReflectiveProvider(o,e,this)){e&&(this.provider.addProvider(t),this.providersCache.set(t,o),this.resolvedProviders.set(o,r));break}n=n.parent}if(!r)throw TypeError("No provider for "+(o=new i(t)).name+"!");return r},t.prototype.resolveByReflectiveProvider=function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=this);var o,i=null,u=t.provider,c=t.name;if("function"==typeof u){var a=null!=(o=Reflect.getMetadata("design:paramtypes",u))?o:[],s=a.map(function(t){return n.getInstanceInternal(n.findExisting(t),e)});i=new(u.bind.apply(u,(0,r.__spreadArray)([void 0],(0,r.__read)(s),!1)))}else if("useValue"in u)i=u.useValue;else if("useClass"in u)i=n.getInstanceInternal(u.useClass,e);else if("useFactory"in u){var a=[];u.deps&&(a=u.deps.map(function(t){return n.getInstanceInternal(n.findExisting(t),e)})),i=u.useFactory.apply(u,(0,r.__spreadArray)([],(0,r.__read)(a),!1))}else"useExisting"in u&&(i=n.getInstanceInternal(this.findExisting(u.useExisting),e));if(!i)throw TypeError("Can not resolve "+c+", it's not a valid provider");return i},t.prototype.findExisting=function(t){for(var e,n=null,r=this;r&&!(n=r.provider.findProviderByToken(t));)r=r.parent;if(!n)throw TypeError("No provider for "+(null!=(e=t.name)?e:t.toString()));return n},t.prototype.findDeps=function(t){return"function"==typeof t?Reflect.getMetadata("design:paramtypes",t):t.useClass?Reflect.getMetadata("design:paramtypes",t.useClass):t.deps?t.deps:null},t.prototype.checkDependenciesClean=function(t,e){var n=this;return e.every(function(e){var r=t.findExisting(e),o=r===n.findExisting(e),i=n.findDeps(r);return i?n.checkDependenciesClean(t,i)&&o:o})},t}()},28319:function(t,e,n){n.d(e,{V:function(){return r}});var r=function(){function t(){this.providersMap=new Map}return t.prototype.addProvider=function(t){var e;return this.providersMap.set(null!=(e=t.provide)?e:t,t),t},t.prototype.findProviderByToken=function(t){return this.providersMap.has(t)?this.providersMap.get(t):null},t}()},21987:function(t,e,n){n.d(e,{J:function(){return u},l:function(){return c}});var r=n(72516),o=n(41423),i=n(28319),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.provider=new i.V,e}return(0,r.__extends)(e,t),e.prototype.reset=function(){this.provider=new i.V,this.providersCache.clear(),this.resolvedProviders.clear()},e}(o.z),c=new u},43274:function(t,e,n){n.d(e,{n:function(){return r}});var r=function(){function t(t){this.desc=t}return t.prototype.toString=function(){return this.desc},t}()},74463:function(t,e,n){n.d(e,{iI:function(){return h},k9:function(){return d},xG:function(){return p}});var r=n(72516),o=n(78990),i=n(82379),u=n(69446),c=n(43274),a=n(2999),s=n(19293),f=n(95719),l=n(62564);let d={provide:new c.n("History"),useValue:null},p={provide:new c.n("Router$"),useValue:null},h=class extends o.E{constructor(t,e){super(),this.history=t,this.router$=e,this.defaultState=null}push(t,e){return this.getActions()._callHistory({method:"push",payloads:[t,e]})}go(t){return this.getActions()._callHistory({method:"go",payloads:[t]})}goBack(){return this.getActions()._callHistory({method:"goBack",payloads:[]})}goForward(){return this.getActions()._callHistory({method:"goForward",payloads:[]})}replace(t,e){return this.getActions()._callHistory({method:"replace",payloads:[t,e]})}_callHistory(t){return t.pipe((0,f.M)(({method:t,payloads:e})=>{this.history[t].apply(this.history,e)}),(0,l.T)(()=>this.noop()))}};(0,r.__decorate)([(0,i.Mj)(),(0,r.__metadata)("design:type",Function),(0,r.__metadata)("design:paramtypes",[s.c]),(0,r.__metadata)("design:returntype",void 0)],h.prototype,"_callHistory",null),h=(0,r.__decorate)([(0,u.n)("@@Router"),(0,r.__param)(0,(0,a.y)(d.provide)),(0,r.__param)(1,(0,a.y)(p.provide)),(0,r.__metadata)("design:paramtypes",[Object,s.c])],h)},65679:function(t,e,n){n.r(e),n.d(e,{HistoryProvide:function(){return o.k9},Router$Provide:function(){return o.xG},RouterModule:function(){return o.iI},SigiRouterProvider:function(){return r.j}});var r=n(22980),o=n(74463)},22980:function(t,e,n){n.d(e,{j:function(){return a}});var r=n(24643),o=n(73580),i=n(40099),u=n(32907),c=n(74463);let a=(0,i.memo)(({history:t,children:e})=>{let n=(0,i.useMemo)(()=>new u.B,[t]),a=(0,i.useMemo)(()=>[{provide:c.k9.provide,useValue:t},{provide:c.xG.provide,useValue:n}],[t,n]);return(0,i.useEffect)(()=>t.listen((t,e)=>{n.next({location:t,action:e})}),[t,n]),(0,r.jsx)(o.N1,Object.assign({providers:a},{children:e}),void 0)})},6491:function(t,e,n){n.r(e),n.d(e,{useModuleState:function(){return d},InjectionProvidersContext:function(){return c.N1},useDispatchers:function(){return f},useInstance:function(){return c.Nj},SSRContext:function(){return s},useModule:function(){return p},_InjectableContext:function(){return c._H},useServerInstance:function(){return c.CW}});var r=n(40099),o=n(28103),i=n(1475),u=n(95719),c=n(73580);function a(t,e){if(t===e)return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;let o=Object.prototype.hasOwnProperty;for(let r of n)if(!o.call(e,r)||t[r]!==e[r])return!1;return!0}let s=c._H.Provider;function f(t){return(0,c.Nj)(t).dispatchers}function l(t,e,n,c=a){n=n||[];let s=(0,r.useRef)(),f=(0,r.useRef)(),d=(0,r.useRef)();c(f.current,n)||(d.current=null!=e?e:o.D,s.current=d.current(t.state)),f.current=n;let p=function(){let[,t]=(0,r.useReducer)(t=>t+1,0);return t}(),h=(0,r.useCallback)(t=>{let e=d.current(t);c(s.current,e)||(s.current=e,p())},[]),y=(0,r.useCallback)(()=>t.state$.pipe((0,i.i)(1),(0,u.M)(h)).subscribe(),[t,h]),v=(0,r.useMemo)(()=>y(),[y]);return(0,r.useEffect)(()=>{let t=v.closed?y():v;return()=>{t.unsubscribe()}},[v,y]),s.current}function d(t,e){let{store:n}=(0,c.Nj)(t);return l(n,null==e?void 0:e.selector,null==e?void 0:e.dependencies,null==e?void 0:e.equalFn)}function p(t,e){let n=(0,c.Nj)(t),{store:r}=n;return[l(r,null==e?void 0:e.selector,null==e?void 0:e.dependencies,null==e?void 0:e.equalFn),n.dispatchers]}},73580:function(t,e,n){n.d(e,{CW:function(){return s},N1:function(){return c},Nj:function(){return a},_H:function(){return u}});var r=n(24643),o=n(21987),i=n(40099);let u=(0,i.createContext)(o.l),c=(0,i.memo)(({providers:t=[],children:e})=>{let n=(0,i.useContext)(u),o=(0,i.useMemo)(()=>n.createChild(t),[n,...t]);return(0,r.jsx)(u.Provider,Object.assign({value:o},{children:e}),void 0)});function a(t){return(0,i.useContext)(u).getInstance(t)}function s(t){var e;let n=(0,i.useContext)(u);return(null==(e=n.serverCache)?void 0:e.get(t))||n.getInstance(t)}},20146:function(t,e,n){n.d(e,{a:function(){return o}});var r=n(27112);function o(){var t,e;let n=null==(t=document.getElementById(r.H2))?void 0:t.textContent,o=null==(e=document.getElementById(r.YM))?void 0:e.textContent;n&&(window[r.H2]=JSON.parse(n)),o&&(window[r.YM]=JSON.parse(o))}},81284:function(t,e,n){n.d(e,{Y:function(){return i}});var r=n(72828);let o=Symbol("skip-symbol");function i(t,e){return n=>function(i,u){let c=e(i);return c&&t.some(t=>(0,r.match)(t)(c))?n(i,u):o}}},61157:function(t,e){function n(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(t){return"'"+t+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(t){return!!t&&!!t[F]}function o(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===L}(t)||Array.isArray(t)||!!t[B]||!!(null==(e=t.constructor)?void 0:e[B])||s(t)||f(t))}function i(t,e,n){void 0===n&&(n=!1),0===u(t)?(n?Object.keys:H)(t).forEach(function(r){n&&"symbol"==typeof r||e(r,t[r],t)}):t.forEach(function(n,r){return e(r,n,t)})}function u(t){var e=t[F];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:s(t)?2:3*!!f(t)}function c(t,e){return 2===u(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function a(t,e,n){var r=u(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function s(t){return N&&t instanceof Map}function f(t){return k&&t instanceof Set}function l(t){return t.o||t.t}function d(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=z(t);delete e[F];for(var n=H(e),r=0;r<n.length;r++){var o=n[r],i=e[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function p(t,e){return void 0===e&&(e=!1),y(t)||r(t)||!o(t)||(u(t)>1&&(t.set=t.add=t.clear=t.delete=h),Object.freeze(t),e&&i(t,function(t,e){return p(e,!0)},!0)),t}function h(){n(2)}function y(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function v(t){var e=V[t];return e||n(18,t),e}function m(t,e){e&&(v("Patches"),t.u=[],t.s=[],t.v=e)}function g(t){_(t),t.p.forEach(S),t.p=null}function _(t){t===C&&(C=t.l)}function b(t){return C={p:[],l:C,h:t,m:!0,_:0}}function S(t){var e=t[F];0===e.i||1===e.i?e.j():e.g=!0}function P(t,e){e._=e.p.length;var r=e.p[0],i=void 0!==t&&t!==r;return e.h.O||v("ES5").S(e,t,i),i?(r[F].P&&(g(e),n(4)),o(t)&&(t=O(e,t),e.l||w(e,t)),e.u&&v("Patches").M(r[F].t,t,e.u,e.s)):t=O(e,r,[]),g(e),e.u&&e.v(e.u,e.s),t!==Y?t:void 0}function O(t,e,n){if(y(e))return e;var r=e[F];if(!r)return i(e,function(o,i){return R(t,r,e,o,i,n)},!0),e;if(r.A!==t)return e;if(!r.P)return w(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=d(r.k):r.o,u=o,c=!1;3===r.i&&(u=new Set(o),o.clear(),c=!0),i(u,function(e,i){return R(t,r,o,e,i,n,c)}),w(t,o,!1),n&&t.u&&v("Patches").N(r,n,t.u,t.s)}return r.o}function R(t,e,n,i,u,s,f){if(r(u)){var l=O(t,u,s&&e&&3!==e.i&&!c(e.R,i)?s.concat(i):void 0);if(a(n,i,l),!r(l))return;t.m=!1}else f&&n.add(u);if(o(u)&&!y(u)){if(!t.h.D&&t._<1)return;O(t,u),e&&e.A.l||w(t,u)}}function w(t,e,n){void 0===n&&(n=!1),!t.l&&t.h.D&&t.m&&p(e,n)}function A(t,e){var n=t[F];return(n?l(n):t)[e]}function M(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function E(t){t.P||(t.P=!0,t.l&&E(t.l))}function I(t){t.o||(t.o=d(t.t))}function T(t,e,n){var r,o,i,u,c,a,l,d=s(e)?v("MapSet").F(e,n):f(e)?v("MapSet").T(e,n):t.O?(i=o={i:+!!(r=Array.isArray(e)),A:n?n.A:C,P:!1,I:!1,R:{},l:n,t:e,k:null,o:null,j:null,C:!1},u=K,r&&(i=[o],u=U),a=(c=Proxy.revocable(i,u)).revoke,o.k=l=c.proxy,o.j=a,l):v("ES5").J(e,n);return(n?n.A:C).p.push(d),d}function j(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return d(t)}var D,C,x="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),N="undefined"!=typeof Map,k="undefined"!=typeof Set,$="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Y=x?Symbol.for("immer-nothing"):((D={})["immer-nothing"]=!0,D),B=x?Symbol.for("immer-draftable"):"__$immer_draftable",F=x?Symbol.for("immer-state"):"__$immer_state",L=""+Object.prototype.constructor,H="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,z=Object.getOwnPropertyDescriptors||function(t){var e={};return H(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},V={},K={get:function(t,e){if(e===F)return t;var n,r,i=l(t);if(!c(i,e))return(r=M(i,e))?"value"in r?r.value:null==(n=r.get)?void 0:n.call(t.k):void 0;var u=i[e];return t.I||!o(u)?u:u===A(t.t,e)?(I(t),t.o[e]=T(t.A.h,u,t)):u},has:function(t,e){return e in l(t)},ownKeys:function(t){return Reflect.ownKeys(l(t))},set:function(t,e,n){var r=M(l(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=A(l(t),e),i=null==o?void 0:o[F];if(i&&i.t===n)return t.o[e]=n,t.R[e]=!1,!0;if((n===o?0!==n||1/n==1/o:n!=n&&o!=o)&&(void 0!==n||c(t.t,e)))return!0;I(t),E(t)}return t.o[e]===n&&(void 0!==n||e in t.o)||Number.isNaN(n)&&Number.isNaN(t.o[e])||(t.o[e]=n,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==A(t.t,e)||e in t.t?(t.R[e]=!1,I(t),E(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=l(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){n(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){n(12)}},U={};i(K,function(t,e){U[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),U.deleteProperty=function(t,e){return U.set.call(this,t,e,void 0)},U.set=function(t,e,n){return K.set.call(this,t[0],e,n,t[0])};var G=new(function(){function t(t){var e=this;this.O=$,this.D=!0,this.produce=function(t,r,i){if("function"==typeof t&&"function"!=typeof r){var u,c=r;return r=t,function(t){var n=this;void 0===t&&(t=c);for(var o=arguments.length,i=Array(o>1?o-1:0),u=1;u<o;u++)i[u-1]=arguments[u];return e.produce(t,function(t){var e;return(e=r).call.apply(e,[n,t].concat(i))})}}if("function"!=typeof r&&n(6),void 0!==i&&"function"!=typeof i&&n(7),o(t)){var a=b(e),s=T(e,t,void 0),f=!0;try{u=r(s),f=!1}finally{f?g(a):_(a)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then(function(t){return m(a,i),P(t,a)},function(t){throw g(a),t}):(m(a,i),P(u,a))}if(!t||"object"!=typeof t){if(void 0===(u=r(t))&&(u=t),u===Y&&(u=void 0),e.D&&p(u,!0),i){var l=[],d=[];v("Patches").M(t,u,l,d),i(l,d)}return u}n(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.produceWithPatches(n,function(e){return t.apply(void 0,[e].concat(o))})};var r,o,i=e.produce(t,n,function(t,e){r=t,o=e});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(t){return[t,r,o]}):[i,r,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){o(t)||n(8),r(t)&&(r(e=t)||n(22,e),t=function t(e){if(!o(e))return e;var n,r=e[F],c=u(e);if(r){if(!r.P&&(r.i<4||!v("ES5").K(r)))return r.t;r.I=!0,n=j(e,c),r.I=!1}else n=j(e,c);return i(n,function(e,o){var i;r&&(i=r.t,(2===u(i)?i.get(e):i[e])===o)||a(n,e,t(o))}),3===c?new Set(n):n}(e));var e,c=b(this),s=T(this,t,void 0);return s[F].C=!0,_(c),s},e.finishDraft=function(t,e){var n=(t&&t[F]).A;return m(n,e),P(void 0,n)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!$&&n(20),this.O=t},e.applyPatches=function(t,e){for(n=e.length-1;n>=0;n--){var n,o=e[n];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}n>-1&&(e=e.slice(n+1));var i=v("Patches").$;return r(t)?i(t,e):this.produce(t,function(t){return i(t,e)})},t}()),W=G.produce;G.produceWithPatches.bind(G),G.setAutoFreeze.bind(G),G.setUseProxies.bind(G),G.applyPatches.bind(G),G.createDraft.bind(G),G.finishDraft.bind(G),e.Ay=W}}]); |