_setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...r)}}return f.subscribe(e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload)return void console.error("[zustand devtools middleware] Unsupported action format");return n(e.payload,e=>{if("__setState"===e.type){if(void 0===d)return void g(e.state);1!==Object.keys(e.state).length&&console.error(`
                    [zustand devtools middleware] Unsupported __setState action format.
                    When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
                    `);let t=e.state[d];return void(null==t||JSON.stringify(o.getState())!==JSON.stringify(t)&&g(t))}o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":if(g(v),void 0===d)return null==f?void 0:f.init(o.getState());return null==f?void 0:f.init(a(h.name));case"COMMIT":if(void 0===d){null==f||f.init(o.getState());break}return null==f?void 0:f.init(a(h.name));case"ROLLBACK":return n(e.state,e=>{if(void 0===d){g(e),null==f||f.init(o.getState());return}g(e[d]),null==f||f.init(a(h.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return n(e.state,e=>{void 0===d?g(e):JSON.stringify(o.getState())!==JSON.stringify(e[d])&&g(e[d])});case"IMPORT_STATE":{let{nextLiftedState:r}=e.payload,i=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!i)return;void 0===d?g(i):g(i[d]),null==f||f.send(null,r);break}case"PAUSE_RECORDING":return m=!m}return}}),v},n=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)}},71323(e,t,r){"use strict";r.d(t,{P:()=>s});var i=r(96540);let a=e=>e;function s(e,t=a){let r=i.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return i.useDebugValue(r),r}},59914(e,t,r){"use strict";r.d(t,{k:()=>s});var i=r(96540),a=r(70466);function s(e){let t=i.useRef(void 0);return r=>{let i=e(r);return(0,a.x)(t.current,i)?t.current:t.current=i}}},97283(e,t,r){"use strict";r.d(t,{y:()=>a});let i=e=>{let t,r=new Set,i=(e,i)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=i?i:"object"!=typeof a||null===a)?a:Object.assign({},t,a),r.forEach(r=>r(t,e))}},a=()=>t,s={setState:i,getState:a,getInitialState:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e))},n=t=e(i,a,s);return s},a=e=>e?i(e):i},70466(e,t,r){"use strict";r.d(t,{x:()=>a});let i=(e,t)=>{let r=e instanceof Map?e:new Map(e.entries()),i=t instanceof Map?t:new Map(t.entries());if(r.size!==i.size)return!1;for(let[e,t]of r)if(!Object.is(t,i.get(e)))return!1;return!0};function a(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(!(Symbol.iterator in e)||!(Symbol.iterator in t))return i({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)});if("entries"in e&&"entries"in t)return i(e,t);let r=e[Symbol.iterator](),a=t[Symbol.iterator](),s=r.next(),n=a.next();for(;!s.done&&!n.done;){if(!Object.is(s.value,n.value))return!1;s=r.next(),n=a.next()}return!!s.done&&!!n.done}}}]);
//# sourceMappingURL=72891-ff4706065eb541f9-7956e27c8908e43f.js.mapӘ