Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@umijs/deps

Package Overview
Dependencies
Maintainers
14
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@umijs/deps - npm Package Compare versions

Comparing version 0.2.18 to 0.2.19

compiled/@pmmmwh/react-refresh-webpack-plugin/ErrorOverlayEntry.js

2

compiled/immer/index.js

@@ -1,1 +0,1 @@

module.exports=(()=>{var e={942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;var n=typeof Symbol!=="undefined"&&typeof Symbol("x")==="symbol";var a=typeof Map!=="undefined";var i=typeof Set!=="undefined";var o=typeof Proxy!=="undefined"&&typeof Proxy.revocable!=="undefined"&&typeof Reflect!=="undefined";var u=n?Symbol("immer-nothing"):(r={},r["immer-nothing"]=true,r);var f=n?Symbol("immer-draftable"):"__$immer_draftable";var c=n?Symbol("immer-state"):"__$immer_state";var s=typeof Symbol!="undefined"&&Symbol.iterator||"@@iterator";var l={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function _(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function _(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function _(e){return"Unsupported patch operation: "+e},18:function _(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},19:"plugin not loaded",20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function _(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function _(e){return"'current' expects a draft, got: "+e},23:function _(e){return"'original' expects a draft, got: "+e}};function die(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}{var a=l[e];var i=!a?"unknown error nr: "+e:typeof a==="function"?a.apply(null,r):a;throw new Error("[Immer] "+i)}}var p=0;var h=1;var v=2;var d=3;var y=0;var g=1;var _=4;var b=5;var P=2;var m=3;function isDraft(e){return!!e&&!!e[c]}function isDraftable(e){if(!e)return false;return isPlainObject(e)||Array.isArray(e)||!!e[f]||!!e.constructor[f]||isMap(e)||isSet(e)}function isPlainObject(e){if(!e||typeof e!=="object")return false;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}function original(e){if(!isDraft(e))die(23,e);return e[c].base_}var S=typeof Reflect!=="undefined"&&Reflect.ownKeys?Reflect.ownKeys:typeof Object.getOwnPropertySymbols!=="undefined"?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;var w=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(e){var t={};S(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)});return t};function each(e,t,r){if(r===void 0){r=false}if(getArchtype(e)===p){(r?Object.keys:S)(e).forEach(function(n){if(!r||typeof n!=="symbol")t(n,e[n],e)})}else{e.forEach(function(r,n){return t(n,r,e)})}}function getArchtype(e){var t=e[c];return t?t.type_>3?t.type_-4:t.type_:Array.isArray(e)?h:isMap(e)?v:isSet(e)?d:p}function has(e,t){return getArchtype(e)===v?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function get(e,t){return getArchtype(e)===v?e.get(t):e[t]}function set(e,t,r){var n=getArchtype(e);if(n===v)e.set(t,r);else if(n===d){e.delete(t);e.add(r)}else e[t]=r}function is(e,t){if(e===t){return e!==0||1/e===1/t}else{return e!==e&&t!==t}}function isMap(e){return a&&e instanceof Map}function isSet(e){return i&&e instanceof Set}function latest(e){return e.copy_||e.base_}function shallowCopy(e){if(Array.isArray(e))return e.slice();var t=w(e);delete t[c];var r=S(t);for(var n=0;n<r.length;n++){var a=r[n];var i=t[a];if(i.writable===false){i.writable=true;i.configurable=true}if(i.get||i.set)t[a]={configurable:true,writable:true,enumerable:i.enumerable,value:e[a]}}return Object.create(Object.getPrototypeOf(e),t)}function freeze(e,t){if(isFrozen(e)||isDraft(e)||!isDraftable(e))return;if(getArchtype(e)>1){e.set=e.add=e.clear=e.delete=dontMutateFrozenCollections}Object.freeze(e);if(t)each(e,function(e,t){return freeze(t,true)},true)}function dontMutateFrozenCollections(){die(2)}function isFrozen(e){if(e==null||typeof e!=="object")return true;return Object.isFrozen(e)}var O={};function getPlugin(e){var t=O[e];if(!t){die(18,e)}return t}function loadPlugin(e,t){O[e]=t}var z;function getCurrentScope(){if(!z)die(0);return z}function createScope(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:true,unfinalizedDrafts_:0}}function usePatchesInScope(e,t){if(t){getPlugin("Patches");e.patches_=[];e.inversePatches_=[];e.patchListener_=t}}function revokeScope(e){leaveScope(e);e.drafts_.forEach(revokeDraft);e.drafts_=null}function leaveScope(e){if(e===z){z=e.parent_}}function enterScope(e){return z=createScope(z,e)}function revokeDraft(e){var t=e[c];if(t.type_===y||t.type_===g)t.revoke_();else t.revoked_=true}function processResult(e,t){t.unfinalizedDrafts_=t.drafts_.length;var r=t.drafts_[0];var n=e!==undefined&&e!==r;if(!t.immer_.useProxies_)getPlugin("ES5").willFinalizeES5_(t,e,n);if(n){if(r[c].modified_){revokeScope(t);die(4)}if(isDraftable(e)){e=finalize(t,e);if(!t.parent_)maybeFreeze(t,e)}if(t.patches_){getPlugin("Patches").generateReplacementPatches_(r[c],e,t.patches_,t.inversePatches_)}}else{e=finalize(t,r,[])}revokeScope(t);if(t.patches_){t.patchListener_(t.patches_,t.inversePatches_)}return e!==u?e:undefined}function finalize(e,t,r){if(isFrozen(t))return t;var n=t[c];if(!n){each(t,function(a,i){return finalizeProperty(e,n,t,a,i,r)},true);return t}if(n.scope_!==e)return t;if(!n.modified_){maybeFreeze(e,n.base_,true);return n.base_}if(!n.finalized_){n.finalized_=true;n.scope_.unfinalizedDrafts_--;var a=n.type_===_||n.type_===b?n.copy_=shallowCopy(n.draft_):n.copy_;each(a,function(t,i){return finalizeProperty(e,n,a,t,i,r)});maybeFreeze(e,a,false);if(r&&e.patches_){getPlugin("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}}return n.copy_}function finalizeProperty(e,t,r,n,a,i){if(a===r)die(5);if(isDraft(a)){var o=i&&t&&t.type_!==m&&!has(t.assigned_,n)?i.concat(n):undefined;var u=finalize(e,a,o);set(r,n,u);if(isDraft(u)){e.canAutoFreeze_=false}else return}if(isDraftable(a)&&!isFrozen(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1){return}finalize(e,a);if(!t||!t.scope_.parent_)maybeFreeze(e,a)}}function maybeFreeze(e,t,r){if(r===void 0){r=false}if(e.immer_.autoFreeze_&&e.canAutoFreeze_){freeze(t,r)}}function createProxyProxy(e,t){var r=Array.isArray(e);var n={type_:r?g:y,scope_:t?t.scope_:getCurrentScope(),modified_:false,finalized_:false,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:false};var a=n;var i=D;if(r){a=[n];i=j}var o=Proxy.revocable(a,i),u=o.revoke,f=o.proxy;n.draft_=f;n.revoke_=u;return f}var D={get:function get(e,t){if(t===c)return e;var r=latest(e);if(!has(r,t)){return readPropFromProto(e,r,t)}var n=r[t];if(e.finalized_||!isDraftable(n)){return n}if(n===peek(e.base_,t)){prepareCopy(e);return e.copy_[t]=createProxy(e.scope_.immer_,n,e)}return n},has:function has(e,t){return t in latest(e)},ownKeys:function ownKeys(e){return Reflect.ownKeys(latest(e))},set:function set(e,t,r){e.assigned_[t]=true;if(!e.modified_){if(is(r,peek(latest(e),t))&&r!==undefined)return true;prepareCopy(e);markChanged(e)}e.copy_[t]=r;return true},deleteProperty:function deleteProperty(e,t){if(peek(e.base_,t)!==undefined||t in e.base_){e.assigned_[t]=false;prepareCopy(e);markChanged(e)}else{delete e.assigned_[t]}if(e.copy_)delete e.copy_[t];return true},getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){var r=latest(e);var n=Reflect.getOwnPropertyDescriptor(r,t);if(!n)return n;return{writable:true,configurable:e.type_!==g||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function defineProperty(){die(11)},getPrototypeOf:function getPrototypeOf(e){return Object.getPrototypeOf(e.base_)},setPrototypeOf:function setPrototypeOf(){die(12)}};var j={};each(D,function(e,t){j[e]=function(){arguments[0]=arguments[0][0];return t.apply(this,arguments)}});j.deleteProperty=function(e,t){if(isNaN(parseInt(t)))die(13);return D.deleteProperty.call(this,e[0],t)};j.set=function(e,t,r){if(t!=="length"&&isNaN(parseInt(t)))die(14);return D.set.call(this,e[0],t,r,e[0])};function peek(e,t){var r=e[c];var n=r?latest(r):e;return n[t]}function readPropFromProto(e,t,r){if(!(r in t))return undefined;var n=Object.getPrototypeOf(t);while(n){var a;var i=Object.getOwnPropertyDescriptor(n,r);if(i)return"value"in i?i.value:(a=i.get)===null||a===void 0?void 0:a.call(e.draft_);n=Object.getPrototypeOf(n)}return undefined}function markChanged(e){if(!e.modified_){e.modified_=true;if(e.parent_){markChanged(e.parent_)}}}function prepareCopy(e){if(!e.copy_){e.copy_=shallowCopy(e.base_)}}var A=function(){function Immer(e){this.useProxies_=o;this.autoFreeze_=true;if(typeof(e===null||e===void 0?void 0:e.useProxies)==="boolean")this.setUseProxies(e.useProxies);if(typeof(e===null||e===void 0?void 0:e.autoFreeze)==="boolean")this.setAutoFreeze(e.autoFreeze);this.produce=this.produce.bind(this);this.produceWithPatches=this.produceWithPatches.bind(this)}var e=Immer.prototype;e.produce=function produce(e,t,r){if(typeof e==="function"&&typeof t!=="function"){var n=t;t=e;var a=this;return function curriedProduce(e){var r=this;if(e===void 0){e=n}for(var i=arguments.length,o=new Array(i>1?i-1:0),u=1;u<i;u++){o[u-1]=arguments[u]}return a.produce(e,function(e){var n;return(n=t).call.apply(n,[r,e].concat(o))})}}if(typeof t!=="function")die(6);if(r!==undefined&&typeof r!=="function")die(7);var i;if(isDraftable(e)){var o=enterScope(this);var f=createProxy(this,e,undefined);var c=true;try{i=t(f);c=false}finally{if(c)revokeScope(o);else leaveScope(o)}if(typeof Promise!=="undefined"&&i instanceof Promise){return i.then(function(e){usePatchesInScope(o,r);return processResult(e,o)},function(e){revokeScope(o);throw e})}usePatchesInScope(o,r);return processResult(i,o)}else if(!e||typeof e!=="object"){i=t(e);if(i===u)return undefined;if(i===undefined)i=e;if(this.autoFreeze_)freeze(i,true);return i}else die(21,e)};e.produceWithPatches=function produceWithPatches(e,t,r){var n=this;if(typeof e==="function"){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++){a[i-1]=arguments[i]}return n.produceWithPatches(t,function(t){return e.apply(void 0,[t].concat(a))})}}var a,i;var o=this.produce(e,t,function(e,t){a=e;i=t});return[o,a,i]};e.createDraft=function createDraft(e){if(!isDraftable(e))die(8);if(isDraft(e))e=current(e);var t=enterScope(this);var r=createProxy(this,e,undefined);r[c].isManual_=true;leaveScope(t);return r};e.finishDraft=function finishDraft(e,t){var r=e&&e[c];{if(!r||!r.isManual_)die(9);if(r.finalized_)die(10)}var n=r.scope_;usePatchesInScope(n,t);return processResult(undefined,n)};e.setAutoFreeze=function setAutoFreeze(e){this.autoFreeze_=e};e.setUseProxies=function setUseProxies(e){if(e&&!o){die(20)}this.useProxies_=e};e.applyPatches=function applyPatches(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(n.path.length===0&&n.op==="replace"){e=n.value;break}}var a=getPlugin("Patches").applyPatches_;if(isDraft(e)){return a(e,t)}return this.produce(e,function(e){return a(e,t.slice(r+1))})};return Immer}();function createProxy(e,t,r){var n=isMap(t)?getPlugin("MapSet").proxyMap_(t,r):isSet(t)?getPlugin("MapSet").proxySet_(t,r):e.useProxies_?createProxyProxy(t,r):getPlugin("ES5").createES5Proxy_(t,r);var a=r?r.scope_:getCurrentScope();a.drafts_.push(n);return n}function current(e){if(!isDraft(e))die(22,e);return currentImpl(e)}function currentImpl(e){if(!isDraftable(e))return e;var t=e[c];var r;var n=getArchtype(e);if(t){if(!t.modified_&&(t.type_<4||!getPlugin("ES5").hasChanges_(t)))return t.base_;t.finalized_=true;r=copyHelper(e,n);t.finalized_=false}else{r=copyHelper(e,n)}each(r,function(e,n){if(t&&get(t.base_,e)===n)return;set(r,e,currentImpl(n))});return n===d?new Set(r):r}function copyHelper(e,t){switch(t){case v:return new Map(e);case d:return Array.from(e)}return shallowCopy(e)}function enableES5(){function willFinalizeES5_(e,t,r){if(!r){if(e.patches_){markChangesRecursively(e.drafts_[0])}markChangesSweep(e.drafts_)}else if(isDraft(t)&&t[c].scope_===e){markChangesSweep(e.drafts_)}}function createES5Draft(e,t){var r=w(t);if(e)delete r.length;delete r[c];var n=S(r);for(var a=0;a<n.length;a++){var i=n[a];r[i]=proxyProperty(i,e||!!r[i].enumerable)}if(e){var o=new Array(t.length);Object.defineProperties(o,r);return o}else{return Object.create(Object.getPrototypeOf(t),r)}}function createES5Proxy_(e,t){var r=Array.isArray(e);var n=createES5Draft(r,e);var a={type_:r?b:_,scope_:t?t.scope_:getCurrentScope(),modified_:false,finalized_:false,assigned_:{},parent_:t,base_:e,draft_:n,copy_:null,revoked_:false,isManual_:false};Object.defineProperty(n,c,{value:a,writable:true});return n}var e={};function proxyProperty(t,r){var n=e[t];if(n){n.enumerable=r}else{e[t]=n={configurable:true,enumerable:r,get:function get(){var e=this[c];assertUnrevoked(e);return D.get(e,t)},set:function set(e){var r=this[c];assertUnrevoked(r);D.set(r,t,e)}}}return n}function markChangesSweep(e){for(var t=e.length-1;t>=0;t--){var r=e[t][c];if(!r.modified_){switch(r.type_){case b:if(hasArrayChanges(r))markChanged(r);break;case _:if(hasObjectChanges(r))markChanged(r);break}}}}function markChangesRecursively(e){if(!e||typeof e!=="object")return;var t=e[c];if(!t)return;var r=t.base_,n=t.draft_,a=t.assigned_,i=t.type_;if(i===_){each(n,function(e){if(e===c)return;if(r[e]===undefined&&!has(r,e)){a[e]=true;markChanged(t)}else if(!a[e]){markChangesRecursively(n[e])}});each(r,function(e){if(n[e]===undefined&&!has(n,e)){a[e]=false;markChanged(t)}})}else if(i===b){if(hasArrayChanges(t)){markChanged(t);a.length=true}if(n.length<r.length){for(var o=n.length;o<r.length;o++){a[o]=false}}else{for(var u=r.length;u<n.length;u++){a[u]=true}}var f=Math.min(n.length,r.length);for(var s=0;s<f;s++){if(a[s]===undefined)markChangesRecursively(n[s])}}}function hasObjectChanges(e){var t=e.base_,r=e.draft_;var n=S(r);for(var a=n.length-1;a>=0;a--){var i=n[a];if(i===c)continue;var o=t[i];if(o===undefined&&!has(t,i)){return true}else{var u=r[i];var f=u&&u[c];if(f?f.base_!==o:!is(u,o)){return true}}}var s=!!t[c];return n.length!==S(t).length+(s?0:1)}function hasArrayChanges(e){var t=e.draft_;if(t.length!==e.base_.length)return true;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return true;return false}function hasChanges_(e){return e.type_===_?hasObjectChanges(e):hasArrayChanges(e)}function assertUnrevoked(e){if(e.revoked_)die(3,JSON.stringify(latest(e)))}loadPlugin("ES5",{createES5Proxy_:createES5Proxy_,willFinalizeES5_:willFinalizeES5_,hasChanges_:hasChanges_})}function enablePatches(){var e="replace";var t="add";var r="remove";function generatePatches_(e,t,r,n){switch(e.type_){case y:case _:case P:return generatePatchesFromAssigned(e,t,r,n);case b:case g:return generateArrayPatches(e,t,r,n);case m:return generateSetPatches(e,t,r,n)}}function generateArrayPatches(r,n,a,i){var o=r.base_,u=r.assigned_;var f=r.copy_;if(f.length<o.length){var c=[f,o];o=c[0];f=c[1];var s=[i,a];a=s[0];i=s[1]}for(var l=0;l<o.length;l++){if(u[l]&&f[l]!==o[l]){var p=n.concat([l]);a.push({op:e,path:p,value:clonePatchValueIfNeeded(f[l])});i.push({op:e,path:p,value:clonePatchValueIfNeeded(o[l])})}}for(var h=o.length;h<f.length;h++){var v=n.concat([h]);a.push({op:t,path:v,value:clonePatchValueIfNeeded(f[h])})}if(o.length<f.length){i.push({op:e,path:n.concat(["length"]),value:o.length})}}function generatePatchesFromAssigned(n,a,i,o){var u=n.base_,f=n.copy_;each(n.assigned_,function(n,c){var s=get(u,n);var l=get(f,n);var p=!c?r:has(u,n)?e:t;if(s===l&&p===e)return;var h=a.concat(n);i.push(p===r?{op:p,path:h}:{op:p,path:h,value:l});o.push(p===t?{op:r,path:h}:p===r?{op:t,path:h,value:clonePatchValueIfNeeded(s)}:{op:e,path:h,value:clonePatchValueIfNeeded(s)})})}function generateSetPatches(e,n,a,i){var o=e.base_,u=e.copy_;var f=0;o.forEach(function(e){if(!u.has(e)){var o=n.concat([f]);a.push({op:r,path:o,value:e});i.unshift({op:t,path:o,value:e})}f++});f=0;u.forEach(function(e){if(!o.has(e)){var u=n.concat([f]);a.push({op:t,path:u,value:e});i.unshift({op:r,path:u,value:e})}f++})}function generateReplacementPatches_(t,r,n,a){n.push({op:e,path:[],value:r});a.push({op:e,path:[],value:t.base_})}function applyPatches_(n,a){a.forEach(function(a){var i=a.path,o=a.op;var u=n;for(var f=0;f<i.length-1;f++){u=get(u,i[f]);if(typeof u!=="object")die(15,i.join("/"))}var c=getArchtype(u);var s=deepClonePatchValue(a.value);var l=i[i.length-1];switch(o){case e:switch(c){case v:return u.set(l,s);case d:die(16);default:return u[l]=s}case t:switch(c){case h:return u.splice(l,0,s);case v:return u.set(l,s);case d:return u.add(s);default:return u[l]=s}case r:switch(c){case h:return u.splice(l,1);case v:return u.delete(l);case d:return u.delete(a.value);default:return delete u[l]}default:die(17,o)}});return n}function deepClonePatchValue(e){if(!e||typeof e!=="object")return e;if(Array.isArray(e))return e.map(deepClonePatchValue);if(isMap(e))return new Map(Array.from(e.entries()).map(function(e){var t=e[0],r=e[1];return[t,deepClonePatchValue(r)]}));if(isSet(e))return new Set(Array.from(e).map(deepClonePatchValue));var t=Object.create(Object.getPrototypeOf(e));for(var r in e){t[r]=deepClonePatchValue(e[r])}return t}function clonePatchValueIfNeeded(e){if(isDraft(e)){return deepClonePatchValue(e)}else return e}loadPlugin("Patches",{applyPatches_:applyPatches_,generatePatches_:generatePatches_,generateReplacementPatches_:generateReplacementPatches_})}function enableMapSet(){var e=function extendStatics(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t){if(t.hasOwnProperty(r))e[r]=t[r]}};return e(t,r)};function __extends(t,r){e(t,r);function __(){this.constructor=t}t.prototype=(__.prototype=r.prototype,new __)}var t=function(e){__extends(DraftMap,e);function DraftMap(e,t){this[c]={type_:P,parent_:t,scope_:t?t.scope_:getCurrentScope(),modified_:false,finalized_:false,copy_:undefined,assigned_:undefined,base_:e,draft_:this,isManual_:false,revoked_:false};return this}var t=DraftMap.prototype;Object.defineProperty(t,"size",{get:function get(){return latest(this[c]).size}});t.has=function(e){return latest(this[c]).has(e)};t.set=function(e,t){var r=this[c];assertUnrevoked(r);if(!latest(r).has(e)||latest(r).get(e)!==t){prepareMapCopy(r);markChanged(r);r.assigned_.set(e,true);r.copy_.set(e,t);r.assigned_.set(e,true)}return this};t.delete=function(e){if(!this.has(e)){return false}var t=this[c];assertUnrevoked(t);prepareMapCopy(t);markChanged(t);t.assigned_.set(e,false);t.copy_.delete(e);return true};t.clear=function(){var e=this[c];assertUnrevoked(e);prepareMapCopy(e);markChanged(e);e.assigned_=new Map;return e.copy_.clear()};t.forEach=function(e,t){var r=this;var n=this[c];latest(n).forEach(function(n,a,i){e.call(t,r.get(a),a,r)})};t.get=function(e){var t=this[c];assertUnrevoked(t);var r=latest(t).get(e);if(t.finalized_||!isDraftable(r)){return r}if(r!==t.base_.get(e)){return r}var n=createProxy(t.scope_.immer_,r,t);prepareMapCopy(t);t.copy_.set(e,n);return n};t.keys=function(){return latest(this[c]).keys()};t.values=function(){var e=this,t;var r=this.keys();return t={},t[s]=function(){return e.values()},t.next=function next(){var t=r.next();if(t.done)return t;var n=e.get(t.value);return{done:false,value:n}},t};t.entries=function(){var e=this,t;var r=this.keys();return t={},t[s]=function(){return e.entries()},t.next=function next(){var t=r.next();if(t.done)return t;var n=e.get(t.value);return{done:false,value:[t.value,n]}},t};t[s]=function(){return this.entries()};return DraftMap}(Map);function proxyMap_(e,r){return new t(e,r)}function prepareMapCopy(e){if(!e.copy_){e.assigned_=new Map;e.copy_=new Map(e.base_)}}var r=function(e){__extends(DraftSet,e);function DraftSet(e,t){this[c]={type_:m,parent_:t,scope_:t?t.scope_:getCurrentScope(),modified_:false,finalized_:false,copy_:undefined,base_:e,draft_:this,drafts_:new Map,revoked_:false,isManual_:false};return this}var t=DraftSet.prototype;Object.defineProperty(t,"size",{get:function get(){return latest(this[c]).size}});t.has=function(e){var t=this[c];assertUnrevoked(t);if(!t.copy_){return t.base_.has(e)}if(t.copy_.has(e))return true;if(t.drafts_.has(e)&&t.copy_.has(t.drafts_.get(e)))return true;return false};t.add=function(e){var t=this[c];assertUnrevoked(t);if(!this.has(e)){prepareSetCopy(t);markChanged(t);t.copy_.add(e)}return this};t.delete=function(e){if(!this.has(e)){return false}var t=this[c];assertUnrevoked(t);prepareSetCopy(t);markChanged(t);return t.copy_.delete(e)||(t.drafts_.has(e)?t.copy_.delete(t.drafts_.get(e)):false)};t.clear=function(){var e=this[c];assertUnrevoked(e);prepareSetCopy(e);markChanged(e);return e.copy_.clear()};t.values=function(){var e=this[c];assertUnrevoked(e);prepareSetCopy(e);return e.copy_.values()};t.entries=function entries(){var e=this[c];assertUnrevoked(e);prepareSetCopy(e);return e.copy_.entries()};t.keys=function(){return this.values()};t[s]=function(){return this.values()};t.forEach=function forEach(e,t){var r=this.values();var n=r.next();while(!n.done){e.call(t,n.value,n.value,this);n=r.next()}};return DraftSet}(Set);function proxySet_(e,t){return new r(e,t)}function prepareSetCopy(e){if(!e.copy_){e.copy_=new Set;e.base_.forEach(function(t){if(isDraftable(t)){var r=createProxy(e.scope_.immer_,t,e);e.drafts_.set(t,r);e.copy_.add(r)}else{e.copy_.add(t)}})}}function assertUnrevoked(e){if(e.revoked_)die(3,JSON.stringify(latest(e)))}loadPlugin("MapSet",{proxyMap_:proxyMap_,proxySet_:proxySet_})}function enableAllPlugins(){enableES5();enableMapSet();enablePatches()}var x=new A;var C=x.produce;var M=x.produceWithPatches.bind(x);var k=x.setAutoFreeze.bind(x);var E=x.setUseProxies.bind(x);var F=x.applyPatches.bind(x);var I=x.createDraft.bind(x);var R=x.finishDraft.bind(x);function castDraft(e){return e}function castImmutable(e){return e}t.Immer=A;t.applyPatches=F;t.castDraft=castDraft;t.castImmutable=castImmutable;t.createDraft=I;t.current=current;t.default=C;t.enableAllPlugins=enableAllPlugins;t.enableES5=enableES5;t.enableMapSet=enableMapSet;t.enablePatches=enablePatches;t.finishDraft=R;t.immerable=f;t.isDraft=isDraft;t.isDraftable=isDraftable;t.nothing=u;t.original=original;t.produce=C;t.produceWithPatches=M;t.setAutoFreeze=k;t.setUseProxies=E},931:(C,I)=>{function t(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function n(e){return!!e&&!!e[B]}function r(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(e)||Array.isArray(e)||!!e[X]||!!e.constructor[X]||c(e)||s(e))}function e(e,t,r){void 0===r&&(r=!1),0===i(e)?(r?Object.keys:Y)(e).forEach(function(n){r&&"symbol"==typeof n||t(n,e[n],e)}):e.forEach(function(r,n){return t(n,r,e)})}function i(e){var t=e[B];return t?t.t>3?t.t-4:t.t:Array.isArray(e)?1:c(e)?2:s(e)?3:0}function u(e,t){return 2===i(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function o(e,t){return 2===i(e)?e.get(t):e[t]}function f(e,t,r){var n=i(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function a(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function c(e){return V&&e instanceof Map}function s(e){return J&&e instanceof Set}function v(e){return e.i||e.u}function p(e){if(Array.isArray(e))return e.slice();var t=Z(e);delete t[B];for(var r=Y(t),n=0;n<r.length;n++){var a=r[n],i=t[a];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function l(t,a){d(t)||n(t)||!r(t)||(i(t)>1&&(t.set=t.add=t.clear=t.delete=h),Object.freeze(t),a&&e(t,function(e,t){return l(t,!0)},!0))}function h(){t(2)}function d(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var r=L[e];return r||t(19,e),r}function _(e,t){L[e]=t}function b(){return N}function m(e,t){t&&(y("Patches"),e.o=[],e.s=[],e.v=t)}function j(e){O(e),e.p.forEach(w),e.p=null}function O(e){e===N&&(N=e.l)}function x(e){return N={p:[],l:N,h:e,_:!0,m:0}}function w(e){var t=e[B];0===t.t||1===t.t?t.j():t.O=!0}function S(e,n){n.m=n.p.length;var a=n.p[0],i=void 0!==e&&e!==a;return n.h.S||y("ES5").M(n,e,i),i?(a[B].P&&(j(n),t(4)),r(e)&&(e=M(n,e),n.l||g(n,e)),n.o&&y("Patches").g(a[B],e,n.o,n.s)):e=M(n,a,[]),j(n),n.o&&n.v(n.o,n.s),e!==H?e:void 0}function M(t,r,n){if(d(r))return r;var a=r[B];if(!a)return e(r,function(e,i){return P(t,a,r,e,i,n)},!0),r;if(a.A!==t)return r;if(!a.P)return g(t,a.u,!0),a.u;if(!a.R){a.R=!0,a.A.m--;var i=4===a.t||5===a.t?a.i=p(a.k):a.i;e(i,function(e,r){return P(t,a,i,e,r,n)}),g(t,i,!1),n&&t.o&&y("Patches").F(a,n,t.o,t.s)}return a.i}function P(e,t,a,i,o,c){if(n(o)){var s=M(e,o,c&&t&&3!==t.t&&!u(t.D,i)?c.concat(i):void 0);if(f(a,i,s),!n(s))return;e._=!1}if(r(o)&&!d(o)){if(!e.h.K&&e.m<1)return;M(e,o),t&&t.A.l||g(e,o)}}function g(e,t,r){void 0===r&&(r=!1),e.h.K&&e._&&l(t,r)}function A(e,t){var r=e[B];return(r?v(r):e)[t]}function z(e){e.P||(e.P=!0,e.l&&z(e.l))}function E(e){e.i||(e.i=p(e.u))}function R(e,t,r){var n=c(t)?y("MapSet").$(t,r):s(t)?y("MapSet").C(t,r):e.S?function(e,t){var r=Array.isArray(e),n={t:r?1:0,A:t?t.A:b(),P:!1,R:!1,D:{},l:t,u:e,k:null,i:null,j:null,I:!1},a=n,i=G;r&&(a=[n],i=T);var o=Proxy.revocable(a,i),u=o.revoke,f=o.proxy;return n.k=f,n.j=u,f}(t,r):y("ES5").J(t,r);return(r?r.A:b()).p.push(n),n}function k(a){return n(a)||t(22,a),function t(n){if(!r(n))return n;var a,u=n[B],c=i(n);if(u){if(!u.P&&(u.t<4||!y("ES5").N(u)))return u.u;u.R=!0,a=F(n,c),u.R=!1}else a=F(n,c);return e(a,function(e,r){u&&o(u.u,e)===r||f(a,e,t(r))}),3===c?new Set(a):a}(a)}function F(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p(e)}function D(){function t(e,t){var r=f[e];return r?r.enumerable=t:f[e]=r={configurable:!0,enumerable:t,get:function(){return G.get(this[B],e)},set:function(t){G.set(this[B],e,t)}},r}function r(e){for(var t=e.length-1;t>=0;t--){var r=e[t][B];if(!r.P)switch(r.t){case 5:o(r)&&z(r);break;case 4:i(r)&&z(r)}}}function i(e){for(var t=e.u,r=e.k,n=Y(r),i=n.length-1;i>=0;i--){var o=n[i];if(o!==B){var f=t[o];if(void 0===f&&!u(t,o))return!0;var c=r[o],s=c&&c[B];if(s?s.u!==f:!a(c,f))return!0}}var l=!!t[B];return n.length!==Y(t).length+(l?0:1)}function o(e){var t=e.k;if(t.length!==e.u.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}var f={};_("ES5",{J:function(e,r){var n=Array.isArray(e),a=function(e,r){var n=Z(r);e&&delete n.length,delete n[B];for(var a=Y(n),i=0;i<a.length;i++){var o=a[i];n[o]=t(o,e||!!n[o].enumerable)}if(e){var u=Array(r.length);return Object.defineProperties(u,n),u}return Object.create(Object.getPrototypeOf(r),n)}(n,e),i={t:n?5:4,A:r?r.A:b(),P:!1,R:!1,D:{},l:r,u:e,k:a,i:null,O:!1,I:!1};return Object.defineProperty(a,B,{value:i,writable:!0}),a},M:function(t,a,i){i?n(a)&&a[B].A===t&&r(t.p):(t.o&&function t(r){if(r&&"object"==typeof r){var n=r[B];if(n){var a=n.u,i=n.k,f=n.D,c=n.t;if(4===c)e(i,function(e){e!==B&&(void 0!==a[e]||u(a,e)?f[e]||t(i[e]):(f[e]=!0,z(n)))}),e(a,function(e){void 0!==i[e]||u(i,e)||(f[e]=!1,z(n))});else if(5===c){if(o(n)&&(z(n),f.length=!0),i.length<a.length)for(var s=i.length;s<a.length;s++)f[s]=!1;else for(var l=a.length;l<i.length;l++)f[l]=!0;for(var p=Math.min(i.length,a.length),h=0;h<p;h++)void 0===f[h]&&t(i[h])}}}}(t.p[0]),r(t.p))},N:function(e){return 4===e.t?i(e):o(e)}})}function K(){function r(e){if(!e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(r);if(c(e))return new Map(Array.from(e.entries()).map(function(e){return[e[0],r(e[1])]}));if(s(e))return new Set(Array.from(e).map(r));var t=Object.create(Object.getPrototypeOf(e));for(var n in e)t[n]=r(e[n]);return t}function f(e){return n(e)?r(e):e}var a="add";_("Patches",{W:function(e,n){return n.forEach(function(n){for(var u=n.path,f=n.op,c=e,s=0;s<u.length-1;s++)"object"!=typeof(c=o(c,u[s]))&&t(15,u.join("/"));var l=i(c),p=r(n.value),h=u[u.length-1];switch(f){case"replace":switch(l){case 2:return c.set(h,p);case 3:t(16);default:return c[h]=p}case a:switch(l){case 1:return c.splice(h,0,p);case 2:return c.set(h,p);case 3:return c.add(p);default:return c[h]=p}case"remove":switch(l){case 1:return c.splice(h,1);case 2:return c.delete(h);case 3:return c.delete(n.value);default:return delete c[h]}default:t(17,f)}}),e},F:function(t,r,n,i){switch(t.t){case 0:case 4:case 2:return function(t,r,n,i){var c=t.u,s=t.i;e(t.D,function(e,t){var l=o(c,e),p=o(s,e),h=t?u(c,e)?"replace":a:"remove";if(l!==p||"replace"!==h){var v=r.concat(e);n.push("remove"===h?{op:h,path:v}:{op:h,path:v,value:p}),i.push(h===a?{op:"remove",path:v}:"remove"===h?{op:a,path:v,value:f(l)}:{op:"replace",path:v,value:f(l)})}})}(t,r,n,i);case 5:case 1:return function(e,t,r,n){var i=e.u,o=e.D,u=e.i;if(u.length<i.length){var c=[u,i];i=c[0],u=c[1];var s=[n,r];r=s[0],n=s[1]}for(var l=0;l<i.length;l++)if(o[l]&&u[l]!==i[l]){var p=t.concat([l]);r.push({op:"replace",path:p,value:f(u[l])}),n.push({op:"replace",path:p,value:f(i[l])})}for(var h=i.length;h<u.length;h++){var v=t.concat([h]);r.push({op:a,path:v,value:f(u[h])})}i.length<u.length&&n.push({op:"replace",path:t.concat(["length"]),value:i.length})}(t,r,n,i);case 3:return function(e,t,r,n){var i=e.u,o=e.i,u=0;i.forEach(function(e){if(!o.has(e)){var i=t.concat([u]);r.push({op:"remove",path:i,value:e}),n.unshift({op:a,path:i,value:e})}u++}),u=0,o.forEach(function(e){if(!i.has(e)){var o=t.concat([u]);r.push({op:a,path:o,value:e}),n.unshift({op:"remove",path:o,value:e})}u++})}(t,r,n,i)}},g:function(e,t,r,n){r.push({op:"replace",path:[],value:t}),n.push({op:"replace",path:[],value:e.u})}})}function $(){function n(e,t){function r(){this.constructor=e}a(e,t),e.prototype=(r.prototype=t.prototype,new r)}function e(e){e.i||(e.D=new Map,e.i=new Map(e.u))}function i(e){e.i||(e.i=new Set,e.u.forEach(function(t){if(r(t)){var n=R(e.A.h,t,e);e.p.set(t,n),e.i.add(n)}else e.i.add(t)}))}function u(e){e.O&&t(3,JSON.stringify(v(e)))}var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},o=function(){function t(e,t){return this[B]={t:2,l:t,A:t?t.A:b(),P:!1,R:!1,i:void 0,D:void 0,u:e,k:this,I:!1,O:!1},this}n(t,Map);var a=t.prototype;return Object.defineProperty(a,"size",{get:function(){return v(this[B]).size}}),a.has=function(e){return v(this[B]).has(e)},a.set=function(t,r){var n=this[B];return u(n),v(n).has(t)&&v(n).get(t)===r||(e(n),z(n),n.D.set(t,!0),n.i.set(t,r),n.D.set(t,!0)),this},a.delete=function(t){if(!this.has(t))return!1;var r=this[B];return u(r),e(r),z(r),r.D.set(t,!1),r.i.delete(t),!0},a.clear=function(){var t=this[B];return u(t),e(t),z(t),t.D=new Map,t.i.clear()},a.forEach=function(e,t){var r=this;v(this[B]).forEach(function(n,a){e.call(t,r.get(a),a,r)})},a.get=function(t){var n=this[B];u(n);var a=v(n).get(t);if(n.R||!r(a))return a;if(a!==n.u.get(t))return a;var i=R(n.A.h,a,n);return e(n),n.i.set(t,i),i},a.keys=function(){return v(this[B]).keys()},a.values=function(){var e,t=this,r=this.keys();return(e={})[Q]=function(){return t.values()},e.next=function(){var e=r.next();return e.done?e:{done:!1,value:t.get(e.value)}},e},a.entries=function(){var e,t=this,r=this.keys();return(e={})[Q]=function(){return t.entries()},e.next=function(){var e=r.next();if(e.done)return e;var n=t.get(e.value);return{done:!1,value:[e.value,n]}},e},a[Q]=function(){return this.entries()},t}(),f=function(){function t(e,t){return this[B]={t:3,l:t,A:t?t.A:b(),P:!1,R:!1,i:void 0,u:e,k:this,p:new Map,O:!1,I:!1},this}n(t,Set);var e=t.prototype;return Object.defineProperty(e,"size",{get:function(){return v(this[B]).size}}),e.has=function(e){var t=this[B];return u(t),t.i?!!t.i.has(e)||!(!t.p.has(e)||!t.i.has(t.p.get(e))):t.u.has(e)},e.add=function(e){var t=this[B];return u(t),this.has(e)||(i(t),z(t),t.i.add(e)),this},e.delete=function(e){if(!this.has(e))return!1;var t=this[B];return u(t),i(t),z(t),t.i.delete(e)||!!t.p.has(e)&&t.i.delete(t.p.get(e))},e.clear=function(){var e=this[B];return u(e),i(e),z(e),e.i.clear()},e.values=function(){var e=this[B];return u(e),i(e),e.i.values()},e.entries=function(){var e=this[B];return u(e),i(e),e.i.entries()},e.keys=function(){return this.values()},e[Q]=function(){return this.values()},e.forEach=function(e,t){for(var r=this.values(),n=r.next();!n.done;)e.call(t,n.value,n.value,this),n=r.next()},t}();_("MapSet",{$:function(e,t){return new o(e,t)},C:function(e,t){return new f(e,t)}})}var U;Object.defineProperty(I,"__esModule",{value:!0});var N,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),V="undefined"!=typeof Map,J="undefined"!=typeof Set,q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol("immer-nothing"):((U={})["immer-nothing"]=!0,U),X=W?Symbol("immer-draftable"):"__$immer_draftable",B=W?Symbol("immer-state"):"__$immer_state",Q="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Z=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},L={},G={get:function(e,t){if(t===B)return e;var n=v(e);if(!u(n,t))return function(e,t,r){if(r in t)for(var n=Object.getPrototypeOf(t);n;){var a,i=Object.getOwnPropertyDescriptor(n,r);if(i)return"value"in i?i.value:null===(a=i.get)||void 0===a?void 0:a.call(e.k);n=Object.getPrototypeOf(n)}}(e,n,t);var a=n[t];return e.R||!r(a)?a:a===A(e.u,t)?(E(e),e.i[t]=R(e.A.h,a,e)):a},has:function(e,t){return t in v(e)},ownKeys:function(e){return Reflect.ownKeys(v(e))},set:function(e,t,r){if(e.D[t]=!0,!e.P){if(a(r,A(v(e),t))&&void 0!==r)return!0;E(e),z(e)}return e.i[t]=r,!0},deleteProperty:function(e,t){return void 0!==A(e.u,t)||t in e.u?(e.D[t]=!1,E(e),z(e)):delete e.D[t],e.i&&delete e.i[t],!0},getOwnPropertyDescriptor:function(e,t){var r=v(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.t||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){t(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.u)},setPrototypeOf:function(){t(12)}},T={};e(G,function(e,t){T[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),T.deleteProperty=function(e,t){return G.deleteProperty.call(this,e[0],t)},T.set=function(e,t,r){return G.set.call(this,e[0],t,r,e[0])};var ee=function(){function e(e){this.S=q,this.K=!1,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var a=e.prototype;return a.produce=function(e,n,a){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var o=this;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return o.produce(e,function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))})}}var u;if("function"!=typeof n&&t(6),void 0!==a&&"function"!=typeof a&&t(7),r(e)){var f=x(this),c=R(this,e,void 0),s=!0;try{u=n(c),s=!1}finally{s?j(f):O(f)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then(function(e){return m(f,a),S(e,f)},function(e){throw j(f),e}):(m(f,a),S(u,f))}if(!e||"object"!=typeof e){if((u=n(e))===H)return;return void 0===u&&(u=e),this.K&&l(u,!0),u}t(21,e)},a.produceWithPatches=function(e,t){var r,n,a=this;return"function"==typeof e?function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return a.produceWithPatches(t,function(t){return e.apply(void 0,[t].concat(n))})}:[this.produce(e,t,function(e,t){r=e,n=t}),r,n]},a.createDraft=function(e){r(e)||t(8),n(e)&&(e=k(e));var a=x(this),i=R(this,e,void 0);return i[B].I=!0,O(a),i},a.finishDraft=function(e,t){var r=(e&&e[B]).A;return m(r,t),S(void 0,r)},a.setAutoFreeze=function(e){this.K=e},a.setUseProxies=function(e){e&&!q&&t(20),this.S=e},a.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var a=t[r];if(0===a.path.length&&"replace"===a.op){e=a.value;break}}var i=y("Patches").W;return n(e)?i(e,t):this.produce(e,function(e){return i(e,t.slice(r+1))})},e}(),te=new ee,re=te.produce,ne=te.produceWithPatches.bind(te),ae=te.setAutoFreeze.bind(te),ie=te.setUseProxies.bind(te),oe=te.applyPatches.bind(te),ue=te.createDraft.bind(te),fe=te.finishDraft.bind(te);I.Immer=ee,I.applyPatches=oe,I.castDraft=function(e){return e},I.castImmutable=function(e){return e},I.createDraft=ue,I.current=k,I.default=re,I.enableAllPlugins=function(){D(),$(),K()},I.enableES5=D,I.enableMapSet=$,I.enablePatches=K,I.finishDraft=fe,I.immerable=X,I.isDraft=n,I.isDraftable=r,I.nothing=H,I.original=function(e){return n(e)||t(23,e),e[B].u},I.produce=re,I.produceWithPatches=ne,I.setAutoFreeze=ae,I.setUseProxies=ie},593:(e,t,r)=>{"use strict";if(process.env.NODE_ENV==="production"){e.exports=r(931)}else{e.exports=r(942)}}};var t={};function __nccwpck_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var a=true;try{e[r](n,n.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(593)})();
module.exports=(()=>{var e={942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;var n=typeof Symbol!=="undefined"&&typeof Symbol("x")==="symbol";var a=typeof Map!=="undefined";var i=typeof Set!=="undefined";var o=typeof Proxy!=="undefined"&&typeof Proxy.revocable!=="undefined"&&typeof Reflect!=="undefined";var u=n?Symbol.for("immer-nothing"):(r={},r["immer-nothing"]=true,r);var f=n?Symbol.for("immer-draftable"):"__$immer_draftable";var c=n?Symbol.for("immer-state"):"__$immer_state";var s=typeof Symbol!="undefined"&&Symbol.iterator||"@@iterator";var l={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function _(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function _(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function _(e){return"Unsupported patch operation: "+e},18:function _(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function _(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function _(e){return"'current' expects a draft, got: "+e},23:function _(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"};function die(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}{var a=l[e];var i=!a?"unknown error nr: "+e:typeof a==="function"?a.apply(null,r):a;throw new Error("[Immer] "+i)}}var p=0;var h=1;var v=2;var d=3;var y=0;var _=1;var g=4;var b=5;var P=2;var m=3;function isDraft(e){return!!e&&!!e[c]}function isDraftable(e){if(!e)return false;return isPlainObject(e)||Array.isArray(e)||!!e[f]||!!e.constructor[f]||isMap(e)||isSet(e)}function isPlainObject(e){if(!e||typeof e!=="object")return false;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}function original(e){if(!isDraft(e))die(23,e);return e[c].base_}var S=typeof Reflect!=="undefined"&&Reflect.ownKeys?Reflect.ownKeys:typeof Object.getOwnPropertySymbols!=="undefined"?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;var w=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(e){var t={};S(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)});return t};function each(e,t,r){if(r===void 0){r=false}if(getArchtype(e)===p){(r?Object.keys:S)(e).forEach(function(n){if(!r||typeof n!=="symbol")t(n,e[n],e)})}else{e.forEach(function(r,n){return t(n,r,e)})}}function getArchtype(e){var t=e[c];return t?t.type_>3?t.type_-4:t.type_:Array.isArray(e)?h:isMap(e)?v:isSet(e)?d:p}function has(e,t){return getArchtype(e)===v?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function get(e,t){return getArchtype(e)===v?e.get(t):e[t]}function set(e,t,r){var n=getArchtype(e);if(n===v)e.set(t,r);else if(n===d){e.delete(t);e.add(r)}else e[t]=r}function is(e,t){if(e===t){return e!==0||1/e===1/t}else{return e!==e&&t!==t}}function isMap(e){return a&&e instanceof Map}function isSet(e){return i&&e instanceof Set}function latest(e){return e.copy_||e.base_}function shallowCopy(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=w(e);delete t[c];var r=S(t);for(var n=0;n<r.length;n++){var a=r[n];var i=t[a];if(i.writable===false){i.writable=true;i.configurable=true}if(i.get||i.set)t[a]={configurable:true,writable:true,enumerable:i.enumerable,value:e[a]}}return Object.create(Object.getPrototypeOf(e),t)}function freeze(e,t){if(t===void 0){t=false}if(isFrozen(e)||isDraft(e)||!isDraftable(e))return e;if(getArchtype(e)>1){e.set=e.add=e.clear=e.delete=dontMutateFrozenCollections}Object.freeze(e);if(t)each(e,function(e,t){return freeze(t,true)},true);return e}function dontMutateFrozenCollections(){die(2)}function isFrozen(e){if(e==null||typeof e!=="object")return true;return Object.isFrozen(e)}var O={};function getPlugin(e){var t=O[e];if(!t){die(18,e)}return t}function loadPlugin(e,t){if(!O[e])O[e]=t}var D;function getCurrentScope(){if(!D)die(0);return D}function createScope(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:true,unfinalizedDrafts_:0}}function usePatchesInScope(e,t){if(t){getPlugin("Patches");e.patches_=[];e.inversePatches_=[];e.patchListener_=t}}function revokeScope(e){leaveScope(e);e.drafts_.forEach(revokeDraft);e.drafts_=null}function leaveScope(e){if(e===D){D=e.parent_}}function enterScope(e){return D=createScope(D,e)}function revokeDraft(e){var t=e[c];if(t.type_===y||t.type_===_)t.revoke_();else t.revoked_=true}function processResult(e,t){t.unfinalizedDrafts_=t.drafts_.length;var r=t.drafts_[0];var n=e!==undefined&&e!==r;if(!t.immer_.useProxies_)getPlugin("ES5").willFinalizeES5_(t,e,n);if(n){if(r[c].modified_){revokeScope(t);die(4)}if(isDraftable(e)){e=finalize(t,e);if(!t.parent_)maybeFreeze(t,e)}if(t.patches_){getPlugin("Patches").generateReplacementPatches_(r[c],e,t.patches_,t.inversePatches_)}}else{e=finalize(t,r,[])}revokeScope(t);if(t.patches_){t.patchListener_(t.patches_,t.inversePatches_)}return e!==u?e:undefined}function finalize(e,t,r){if(isFrozen(t))return t;var n=t[c];if(!n){each(t,function(a,i){return finalizeProperty(e,n,t,a,i,r)},true);return t}if(n.scope_!==e)return t;if(!n.modified_){maybeFreeze(e,n.base_,true);return n.base_}if(!n.finalized_){n.finalized_=true;n.scope_.unfinalizedDrafts_--;var a=n.type_===g||n.type_===b?n.copy_=shallowCopy(n.draft_):n.copy_;each(n.type_===m?new Set(a):a,function(t,i){return finalizeProperty(e,n,a,t,i,r)});maybeFreeze(e,a,false);if(r&&e.patches_){getPlugin("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}}return n.copy_}function finalizeProperty(e,t,r,n,a,i){if(a===r)die(5);if(isDraft(a)){var o=i&&t&&t.type_!==m&&!has(t.assigned_,n)?i.concat(n):undefined;var u=finalize(e,a,o);set(r,n,u);if(isDraft(u)){e.canAutoFreeze_=false}else return}if(isDraftable(a)&&!isFrozen(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1){return}finalize(e,a);if(!t||!t.scope_.parent_)maybeFreeze(e,a)}}function maybeFreeze(e,t,r){if(r===void 0){r=false}if(e.immer_.autoFreeze_&&e.canAutoFreeze_){freeze(t,r)}}function createProxyProxy(e,t){var r=Array.isArray(e);var n={type_:r?_:y,scope_:t?t.scope_:getCurrentScope(),modified_:false,finalized_:false,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:false};var a=n;var i=z;if(r){a=[n];i=A}var o=Proxy.revocable(a,i),u=o.revoke,f=o.proxy;n.draft_=f;n.revoke_=u;return f}var z={get:function get(e,t){if(t===c)return e;var r=latest(e);if(!has(r,t)){return readPropFromProto(e,r,t)}var n=r[t];if(e.finalized_||!isDraftable(n)){return n}if(n===peek(e.base_,t)){prepareCopy(e);return e.copy_[t]=createProxy(e.scope_.immer_,n,e)}return n},has:function has(e,t){return t in latest(e)},ownKeys:function ownKeys(e){return Reflect.ownKeys(latest(e))},set:function set(e,t,r){var n=getDescriptorFromProto(latest(e),t);if(n===null||n===void 0?void 0:n.set){n.set.call(e.draft_,r);return true}if(!e.modified_){var a=peek(latest(e),t);var i=a===null||a===void 0?void 0:a[c];if(i&&i.base_===r){e.copy_[t]=r;e.assigned_[t]=false;return true}if(is(r,a)&&(r!==undefined||has(e.base_,t)))return true;prepareCopy(e);markChanged(e)}e.copy_[t]=r;e.assigned_[t]=true;return true},deleteProperty:function deleteProperty(e,t){if(peek(e.base_,t)!==undefined||t in e.base_){e.assigned_[t]=false;prepareCopy(e);markChanged(e)}else{delete e.assigned_[t]}if(e.copy_)delete e.copy_[t];return true},getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){var r=latest(e);var n=Reflect.getOwnPropertyDescriptor(r,t);if(!n)return n;return{writable:true,configurable:e.type_!==_||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function defineProperty(){die(11)},getPrototypeOf:function getPrototypeOf(e){return Object.getPrototypeOf(e.base_)},setPrototypeOf:function setPrototypeOf(){die(12)}};var A={};each(z,function(e,t){A[e]=function(){arguments[0]=arguments[0][0];return t.apply(this,arguments)}});A.deleteProperty=function(e,t){if(isNaN(parseInt(t)))die(13);return z.deleteProperty.call(this,e[0],t)};A.set=function(e,t,r){if(t!=="length"&&isNaN(parseInt(t)))die(14);return z.set.call(this,e[0],t,r,e[0])};function peek(e,t){var r=e[c];var n=r?latest(r):e;return n[t]}function readPropFromProto(e,t,r){var n;var a=getDescriptorFromProto(t,r);return a?"value"in a?a.value:(n=a.get)===null||n===void 0?void 0:n.call(e.draft_):undefined}function getDescriptorFromProto(e,t){if(!(t in e))return undefined;var r=Object.getPrototypeOf(e);while(r){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}return undefined}function markChanged(e){if(!e.modified_){e.modified_=true;if(e.parent_){markChanged(e.parent_)}}}function prepareCopy(e){if(!e.copy_){e.copy_=shallowCopy(e.base_)}}var j=function(){function Immer(e){this.useProxies_=o;this.autoFreeze_=true;if(typeof(e===null||e===void 0?void 0:e.useProxies)==="boolean")this.setUseProxies(e.useProxies);if(typeof(e===null||e===void 0?void 0:e.autoFreeze)==="boolean")this.setAutoFreeze(e.autoFreeze);this.produce=this.produce.bind(this);this.produceWithPatches=this.produceWithPatches.bind(this)}var e=Immer.prototype;e.produce=function produce(e,t,r){if(typeof e==="function"&&typeof t!=="function"){var n=t;t=e;var a=this;return function curriedProduce(e){var r=this;if(e===void 0){e=n}for(var i=arguments.length,o=new Array(i>1?i-1:0),u=1;u<i;u++){o[u-1]=arguments[u]}return a.produce(e,function(e){var n;return(n=t).call.apply(n,[r,e].concat(o))})}}if(typeof t!=="function")die(6);if(r!==undefined&&typeof r!=="function")die(7);var i;if(isDraftable(e)){var o=enterScope(this);var f=createProxy(this,e,undefined);var c=true;try{i=t(f);c=false}finally{if(c)revokeScope(o);else leaveScope(o)}if(typeof Promise!=="undefined"&&i instanceof Promise){return i.then(function(e){usePatchesInScope(o,r);return processResult(e,o)},function(e){revokeScope(o);throw e})}usePatchesInScope(o,r);return processResult(i,o)}else if(!e||typeof e!=="object"){i=t(e);if(i===u)return undefined;if(i===undefined)i=e;if(this.autoFreeze_)freeze(i,true);return i}else die(21,e)};e.produceWithPatches=function produceWithPatches(e,t,r){var n=this;if(typeof e==="function"){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++){a[i-1]=arguments[i]}return n.produceWithPatches(t,function(t){return e.apply(void 0,[t].concat(a))})}}var a,i;var o=this.produce(e,t,function(e,t){a=e;i=t});return[o,a,i]};e.createDraft=function createDraft(e){if(!isDraftable(e))die(8);if(isDraft(e))e=current(e);var t=enterScope(this);var r=createProxy(this,e,undefined);r[c].isManual_=true;leaveScope(t);return r};e.finishDraft=function finishDraft(e,t){var r=e&&e[c];{if(!r||!r.isManual_)die(9);if(r.finalized_)die(10)}var n=r.scope_;usePatchesInScope(n,t);return processResult(undefined,n)};e.setAutoFreeze=function setAutoFreeze(e){this.autoFreeze_=e};e.setUseProxies=function setUseProxies(e){if(e&&!o){die(20)}this.useProxies_=e};e.applyPatches=function applyPatches(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(n.path.length===0&&n.op==="replace"){e=n.value;break}}var a=getPlugin("Patches").applyPatches_;if(isDraft(e)){return a(e,t)}return this.produce(e,function(e){return a(e,t.slice(r+1))})};return Immer}();function createProxy(e,t,r){var n=isMap(t)?getPlugin("MapSet").proxyMap_(t,r):isSet(t)?getPlugin("MapSet").proxySet_(t,r):e.useProxies_?createProxyProxy(t,r):getPlugin("ES5").createES5Proxy_(t,r);var a=r?r.scope_:getCurrentScope();a.drafts_.push(n);return n}function current(e){if(!isDraft(e))die(22,e);return currentImpl(e)}function currentImpl(e){if(!isDraftable(e))return e;var t=e[c];var r;var n=getArchtype(e);if(t){if(!t.modified_&&(t.type_<4||!getPlugin("ES5").hasChanges_(t)))return t.base_;t.finalized_=true;r=copyHelper(e,n);t.finalized_=false}else{r=copyHelper(e,n)}each(r,function(e,n){if(t&&get(t.base_,e)===n)return;set(r,e,currentImpl(n))});return n===d?new Set(r):r}function copyHelper(e,t){switch(t){case v:return new Map(e);case d:return Array.from(e)}return shallowCopy(e)}function enableES5(){function willFinalizeES5_(e,t,r){if(!r){if(e.patches_){markChangesRecursively(e.drafts_[0])}markChangesSweep(e.drafts_)}else if(isDraft(t)&&t[c].scope_===e){markChangesSweep(e.drafts_)}}function createES5Draft(e,t){if(e){var r=new Array(t.length);for(var n=0;n<t.length;n++){Object.defineProperty(r,""+n,proxyProperty(n,true))}return r}else{var a=w(t);delete a[c];var i=S(a);for(var o=0;o<i.length;o++){var u=i[o];a[u]=proxyProperty(u,e||!!a[u].enumerable)}return Object.create(Object.getPrototypeOf(t),a)}}function createES5Proxy_(e,t){var r=Array.isArray(e);var n=createES5Draft(r,e);var a={type_:r?b:g,scope_:t?t.scope_:getCurrentScope(),modified_:false,finalized_:false,assigned_:{},parent_:t,base_:e,draft_:n,copy_:null,revoked_:false,isManual_:false};Object.defineProperty(n,c,{value:a,writable:true});return n}var e={};function proxyProperty(t,r){var n=e[t];if(n){n.enumerable=r}else{e[t]=n={configurable:true,enumerable:r,get:function get(){var e=this[c];assertUnrevoked(e);return z.get(e,t)},set:function set(e){var r=this[c];assertUnrevoked(r);z.set(r,t,e)}}}return n}function markChangesSweep(e){for(var t=e.length-1;t>=0;t--){var r=e[t][c];if(!r.modified_){switch(r.type_){case b:if(hasArrayChanges(r))markChanged(r);break;case g:if(hasObjectChanges(r))markChanged(r);break}}}}function markChangesRecursively(e){if(!e||typeof e!=="object")return;var t=e[c];if(!t)return;var r=t.base_,n=t.draft_,a=t.assigned_,i=t.type_;if(i===g){each(n,function(e){if(e===c)return;if(r[e]===undefined&&!has(r,e)){a[e]=true;markChanged(t)}else if(!a[e]){markChangesRecursively(n[e])}});each(r,function(e){if(n[e]===undefined&&!has(n,e)){a[e]=false;markChanged(t)}})}else if(i===b){if(hasArrayChanges(t)){markChanged(t);a.length=true}if(n.length<r.length){for(var o=n.length;o<r.length;o++){a[o]=false}}else{for(var u=r.length;u<n.length;u++){a[u]=true}}var f=Math.min(n.length,r.length);for(var s=0;s<f;s++){if(a[s]===undefined)markChangesRecursively(n[s])}}}function hasObjectChanges(e){var t=e.base_,r=e.draft_;var n=S(r);for(var a=n.length-1;a>=0;a--){var i=n[a];if(i===c)continue;var o=t[i];if(o===undefined&&!has(t,i)){return true}else{var u=r[i];var f=u&&u[c];if(f?f.base_!==o:!is(u,o)){return true}}}var s=!!t[c];return n.length!==S(t).length+(s?0:1)}function hasArrayChanges(e){var t=e.draft_;if(t.length!==e.base_.length)return true;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return true;return false}function hasChanges_(e){return e.type_===g?hasObjectChanges(e):hasArrayChanges(e)}function assertUnrevoked(e){if(e.revoked_)die(3,JSON.stringify(latest(e)))}loadPlugin("ES5",{createES5Proxy_:createES5Proxy_,willFinalizeES5_:willFinalizeES5_,hasChanges_:hasChanges_})}function enablePatches(){var e="replace";var t="add";var r="remove";function generatePatches_(e,t,r,n){switch(e.type_){case y:case g:case P:return generatePatchesFromAssigned(e,t,r,n);case b:case _:return generateArrayPatches(e,t,r,n);case m:return generateSetPatches(e,t,r,n)}}function generateArrayPatches(r,n,a,i){var o=r.base_,u=r.assigned_;var f=r.copy_;if(f.length<o.length){var c=[f,o];o=c[0];f=c[1];var s=[i,a];a=s[0];i=s[1]}for(var l=0;l<o.length;l++){if(u[l]&&f[l]!==o[l]){var p=n.concat([l]);a.push({op:e,path:p,value:clonePatchValueIfNeeded(f[l])});i.push({op:e,path:p,value:clonePatchValueIfNeeded(o[l])})}}for(var h=o.length;h<f.length;h++){var v=n.concat([h]);a.push({op:t,path:v,value:clonePatchValueIfNeeded(f[h])})}if(o.length<f.length){i.push({op:e,path:n.concat(["length"]),value:o.length})}}function generatePatchesFromAssigned(n,a,i,o){var u=n.base_,f=n.copy_;each(n.assigned_,function(n,c){var s=get(u,n);var l=get(f,n);var p=!c?r:has(u,n)?e:t;if(s===l&&p===e)return;var h=a.concat(n);i.push(p===r?{op:p,path:h}:{op:p,path:h,value:l});o.push(p===t?{op:r,path:h}:p===r?{op:t,path:h,value:clonePatchValueIfNeeded(s)}:{op:e,path:h,value:clonePatchValueIfNeeded(s)})})}function generateSetPatches(e,n,a,i){var o=e.base_,u=e.copy_;var f=0;o.forEach(function(e){if(!u.has(e)){var o=n.concat([f]);a.push({op:r,path:o,value:e});i.unshift({op:t,path:o,value:e})}f++});f=0;u.forEach(function(e){if(!o.has(e)){var u=n.concat([f]);a.push({op:t,path:u,value:e});i.unshift({op:r,path:u,value:e})}f++})}function generateReplacementPatches_(t,r,n,a){n.push({op:e,path:[],value:r});a.push({op:e,path:[],value:t.base_})}function applyPatches_(n,a){a.forEach(function(a){var i=a.path,o=a.op;var u=n;for(var f=0;f<i.length-1;f++){var c=getArchtype(u);var s=i[f];if((c===p||c===h)&&(s==="__proto__"||s==="constructor"))die(24);if(typeof u==="function"&&s==="prototype")die(24);u=get(u,s);if(typeof u!=="object")die(15,i.join("/"))}var l=getArchtype(u);var y=deepClonePatchValue(a.value);var _=i[i.length-1];switch(o){case e:switch(l){case v:return u.set(_,y);case d:die(16);default:return u[_]=y}case t:switch(l){case h:return u.splice(_,0,y);case v:return u.set(_,y);case d:return u.add(y);default:return u[_]=y}case r:switch(l){case h:return u.splice(_,1);case v:return u.delete(_);case d:return u.delete(a.value);default:return delete u[_]}default:die(17,o)}});return n}function deepClonePatchValue(e){if(!isDraftable(e))return e;if(Array.isArray(e))return e.map(deepClonePatchValue);if(isMap(e))return new Map(Array.from(e.entries()).map(function(e){var t=e[0],r=e[1];return[t,deepClonePatchValue(r)]}));if(isSet(e))return new Set(Array.from(e).map(deepClonePatchValue));var t=Object.create(Object.getPrototypeOf(e));for(var r in e){t[r]=deepClonePatchValue(e[r])}return t}function clonePatchValueIfNeeded(e){if(isDraft(e)){return deepClonePatchValue(e)}else return e}loadPlugin("Patches",{applyPatches_:applyPatches_,generatePatches_:generatePatches_,generateReplacementPatches_:generateReplacementPatches_})}function enableMapSet(){var e=function extendStatics(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t){if(t.hasOwnProperty(r))e[r]=t[r]}};return e(t,r)};function __extends(t,r){e(t,r);function __(){this.constructor=t}t.prototype=(__.prototype=r.prototype,new __)}var t=function(e){__extends(DraftMap,e);function DraftMap(e,t){this[c]={type_:P,parent_:t,scope_:t?t.scope_:getCurrentScope(),modified_:false,finalized_:false,copy_:undefined,assigned_:undefined,base_:e,draft_:this,isManual_:false,revoked_:false};return this}var t=DraftMap.prototype;Object.defineProperty(t,"size",{get:function get(){return latest(this[c]).size}});t.has=function(e){return latest(this[c]).has(e)};t.set=function(e,t){var r=this[c];assertUnrevoked(r);if(!latest(r).has(e)||latest(r).get(e)!==t){prepareMapCopy(r);markChanged(r);r.assigned_.set(e,true);r.copy_.set(e,t);r.assigned_.set(e,true)}return this};t.delete=function(e){if(!this.has(e)){return false}var t=this[c];assertUnrevoked(t);prepareMapCopy(t);markChanged(t);t.assigned_.set(e,false);t.copy_.delete(e);return true};t.clear=function(){var e=this[c];assertUnrevoked(e);if(latest(e).size){prepareMapCopy(e);markChanged(e);e.assigned_=new Map;each(e.base_,function(t){e.assigned_.set(t,false)});e.copy_.clear()}};t.forEach=function(e,t){var r=this;var n=this[c];latest(n).forEach(function(n,a,i){e.call(t,r.get(a),a,r)})};t.get=function(e){var t=this[c];assertUnrevoked(t);var r=latest(t).get(e);if(t.finalized_||!isDraftable(r)){return r}if(r!==t.base_.get(e)){return r}var n=createProxy(t.scope_.immer_,r,t);prepareMapCopy(t);t.copy_.set(e,n);return n};t.keys=function(){return latest(this[c]).keys()};t.values=function(){var e=this,t;var r=this.keys();return t={},t[s]=function(){return e.values()},t.next=function next(){var t=r.next();if(t.done)return t;var n=e.get(t.value);return{done:false,value:n}},t};t.entries=function(){var e=this,t;var r=this.keys();return t={},t[s]=function(){return e.entries()},t.next=function next(){var t=r.next();if(t.done)return t;var n=e.get(t.value);return{done:false,value:[t.value,n]}},t};t[s]=function(){return this.entries()};return DraftMap}(Map);function proxyMap_(e,r){return new t(e,r)}function prepareMapCopy(e){if(!e.copy_){e.assigned_=new Map;e.copy_=new Map(e.base_)}}var r=function(e){__extends(DraftSet,e);function DraftSet(e,t){this[c]={type_:m,parent_:t,scope_:t?t.scope_:getCurrentScope(),modified_:false,finalized_:false,copy_:undefined,base_:e,draft_:this,drafts_:new Map,revoked_:false,isManual_:false};return this}var t=DraftSet.prototype;Object.defineProperty(t,"size",{get:function get(){return latest(this[c]).size}});t.has=function(e){var t=this[c];assertUnrevoked(t);if(!t.copy_){return t.base_.has(e)}if(t.copy_.has(e))return true;if(t.drafts_.has(e)&&t.copy_.has(t.drafts_.get(e)))return true;return false};t.add=function(e){var t=this[c];assertUnrevoked(t);if(!this.has(e)){prepareSetCopy(t);markChanged(t);t.copy_.add(e)}return this};t.delete=function(e){if(!this.has(e)){return false}var t=this[c];assertUnrevoked(t);prepareSetCopy(t);markChanged(t);return t.copy_.delete(e)||(t.drafts_.has(e)?t.copy_.delete(t.drafts_.get(e)):false)};t.clear=function(){var e=this[c];assertUnrevoked(e);if(latest(e).size){prepareSetCopy(e);markChanged(e);e.copy_.clear()}};t.values=function(){var e=this[c];assertUnrevoked(e);prepareSetCopy(e);return e.copy_.values()};t.entries=function entries(){var e=this[c];assertUnrevoked(e);prepareSetCopy(e);return e.copy_.entries()};t.keys=function(){return this.values()};t[s]=function(){return this.values()};t.forEach=function forEach(e,t){var r=this.values();var n=r.next();while(!n.done){e.call(t,n.value,n.value,this);n=r.next()}};return DraftSet}(Set);function proxySet_(e,t){return new r(e,t)}function prepareSetCopy(e){if(!e.copy_){e.copy_=new Set;e.base_.forEach(function(t){if(isDraftable(t)){var r=createProxy(e.scope_.immer_,t,e);e.drafts_.set(t,r);e.copy_.add(r)}else{e.copy_.add(t)}})}}function assertUnrevoked(e){if(e.revoked_)die(3,JSON.stringify(latest(e)))}loadPlugin("MapSet",{proxyMap_:proxyMap_,proxySet_:proxySet_})}function enableAllPlugins(){enableES5();enableMapSet();enablePatches()}var x=new j;var C=x.produce;var M=x.produceWithPatches.bind(x);var k=x.setAutoFreeze.bind(x);var E=x.setUseProxies.bind(x);var F=x.applyPatches.bind(x);var I=x.createDraft.bind(x);var R=x.finishDraft.bind(x);function castDraft(e){return e}function castImmutable(e){return e}t.Immer=j;t.applyPatches=F;t.castDraft=castDraft;t.castImmutable=castImmutable;t.createDraft=I;t.current=current;t.default=C;t.enableAllPlugins=enableAllPlugins;t.enableES5=enableES5;t.enableMapSet=enableMapSet;t.enablePatches=enablePatches;t.finishDraft=R;t.freeze=freeze;t.immerable=f;t.isDraft=isDraft;t.isDraftable=isDraftable;t.nothing=u;t.original=original;t.produce=C;t.produceWithPatches=M;t.setAutoFreeze=k;t.setUseProxies=E},931:(I,U)=>{function t(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function n(e){return!!e&&!!e[Y]}function r(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(e)||Array.isArray(e)||!!e[Q]||!!e.constructor[Q]||c(e)||s(e))}function e(e,t,r){void 0===r&&(r=!1),0===i(e)?(r?Object.keys:G)(e).forEach(function(n){r&&"symbol"==typeof n||t(n,e[n],e)}):e.forEach(function(r,n){return t(n,r,e)})}function i(e){var t=e[Y];return t?t.t>3?t.t-4:t.t:Array.isArray(e)?1:c(e)?2:s(e)?3:0}function u(e,t){return 2===i(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function o(e,t){return 2===i(e)?e.get(t):e[t]}function f(e,t,r){var n=i(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function a(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function c(e){return J&&e instanceof Map}function s(e){return q&&e instanceof Set}function v(e){return e.i||e.u}function p(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=H(e);delete t[Y];for(var r=G(t),n=0;n<r.length;n++){var a=r[n],i=t[a];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function l(t,a){return void 0===a&&(a=!1),d(t)||n(t)||!r(t)?t:(i(t)>1&&(t.set=t.add=t.clear=t.delete=h),Object.freeze(t),a&&e(t,function(e,t){return l(t,!0)},!0),t)}function h(){t(2)}function d(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function _(e){var r=L[e];return r||t(18,e),r}function y(e,t){L[e]||(L[e]=t)}function b(){return W}function m(e,t){t&&(_("Patches"),e.o=[],e.s=[],e.v=t)}function j(e){O(e),e.p.forEach(w),e.p=null}function O(e){e===W&&(W=e.l)}function x(e){return W={p:[],l:W,h:e,_:!0,m:0}}function w(e){var t=e[Y];0===t.t||1===t.t?t.j():t.O=!0}function S(e,n){n.m=n.p.length;var a=n.p[0],i=void 0!==e&&e!==a;return n.h.S||_("ES5").M(n,e,i),i?(a[Y].P&&(j(n),t(4)),r(e)&&(e=M(n,e),n.l||g(n,e)),n.o&&_("Patches").g(a[Y],e,n.o,n.s)):e=M(n,a,[]),j(n),n.o&&n.v(n.o,n.s),e!==B?e:void 0}function M(t,r,n){if(d(r))return r;var a=r[Y];if(!a)return e(r,function(e,i){return P(t,a,r,e,i,n)},!0),r;if(a.A!==t)return r;if(!a.P)return g(t,a.u,!0),a.u;if(!a.R){a.R=!0,a.A.m--;var i=4===a.t||5===a.t?a.i=p(a.k):a.i;e(3===a.t?new Set(i):i,function(e,r){return P(t,a,i,e,r,n)}),g(t,i,!1),n&&t.o&&_("Patches").F(a,n,t.o,t.s)}return a.i}function P(e,t,a,i,o,c){if(n(o)){var s=M(e,o,c&&t&&3!==t.t&&!u(t.D,i)?c.concat(i):void 0);if(f(a,i,s),!n(s))return;e._=!1}if(r(o)&&!d(o)){if(!e.h.K&&e.m<1)return;M(e,o),t&&t.A.l||g(e,o)}}function g(e,t,r){void 0===r&&(r=!1),e.h.K&&e._&&l(t,r)}function A(e,t){var r=e[Y];return(r?v(r):e)[t]}function z(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function E(e){e.P||(e.P=!0,e.l&&E(e.l))}function R(e){e.i||(e.i=p(e.u))}function k(e,t,r){var n=c(t)?_("MapSet").$(t,r):s(t)?_("MapSet").C(t,r):e.S?function(e,t){var r=Array.isArray(e),n={t:r?1:0,A:t?t.A:b(),P:!1,R:!1,D:{},l:t,u:e,k:null,i:null,j:null,I:!1},a=n,i=T;r&&(a=[n],i=ee);var o=Proxy.revocable(a,i),u=o.revoke,f=o.proxy;return n.k=f,n.j=u,f}(t,r):_("ES5").J(t,r);return(r?r.A:b()).p.push(n),n}function F(a){return n(a)||t(22,a),function t(n){if(!r(n))return n;var a,u=n[Y],c=i(n);if(u){if(!u.P&&(u.t<4||!_("ES5").N(u)))return u.u;u.R=!0,a=D(n,c),u.R=!1}else a=D(n,c);return e(a,function(e,r){u&&o(u.u,e)===r||f(a,e,t(r))}),3===c?new Set(a):a}(a)}function D(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p(e)}function K(){function t(e,t){var r=f[e];return r?r.enumerable=t:f[e]=r={configurable:!0,enumerable:t,get:function(){return T.get(this[Y],e)},set:function(t){T.set(this[Y],e,t)}},r}function r(e){for(var t=e.length-1;t>=0;t--){var r=e[t][Y];if(!r.P)switch(r.t){case 5:o(r)&&E(r);break;case 4:i(r)&&E(r)}}}function i(e){for(var t=e.u,r=e.k,n=G(r),i=n.length-1;i>=0;i--){var o=n[i];if(o!==Y){var f=t[o];if(void 0===f&&!u(t,o))return!0;var c=r[o],s=c&&c[Y];if(s?s.u!==f:!a(c,f))return!0}}var l=!!t[Y];return n.length!==G(t).length+(l?0:1)}function o(e){var t=e.k;if(t.length!==e.u.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}var f={};y("ES5",{J:function(e,r){var n=Array.isArray(e),a=function(e,r){if(e){for(var n=Array(r.length),a=0;a<r.length;a++)Object.defineProperty(n,""+a,t(a,!0));return n}var i=H(r);delete i[Y];for(var o=G(i),u=0;u<o.length;u++){var f=o[u];i[f]=t(f,e||!!i[f].enumerable)}return Object.create(Object.getPrototypeOf(r),i)}(n,e),i={t:n?5:4,A:r?r.A:b(),P:!1,R:!1,D:{},l:r,u:e,k:a,i:null,O:!1,I:!1};return Object.defineProperty(a,Y,{value:i,writable:!0}),a},M:function(t,a,i){i?n(a)&&a[Y].A===t&&r(t.p):(t.o&&function t(r){if(r&&"object"==typeof r){var n=r[Y];if(n){var a=n.u,i=n.k,f=n.D,c=n.t;if(4===c)e(i,function(e){e!==Y&&(void 0!==a[e]||u(a,e)?f[e]||t(i[e]):(f[e]=!0,E(n)))}),e(a,function(e){void 0!==i[e]||u(i,e)||(f[e]=!1,E(n))});else if(5===c){if(o(n)&&(E(n),f.length=!0),i.length<a.length)for(var s=i.length;s<a.length;s++)f[s]=!1;else for(var l=a.length;l<i.length;l++)f[l]=!0;for(var p=Math.min(i.length,a.length),h=0;h<p;h++)void 0===f[h]&&t(i[h])}}}}(t.p[0]),r(t.p))},N:function(e){return 4===e.t?i(e):o(e)}})}function $(){function f(e){if(!r(e))return e;if(Array.isArray(e))return e.map(f);if(c(e))return new Map(Array.from(e.entries()).map(function(e){return[e[0],f(e[1])]}));if(s(e))return new Set(Array.from(e).map(f));var t=Object.create(Object.getPrototypeOf(e));for(var n in e)t[n]=f(e[n]);return t}function a(e){return n(e)?f(e):e}var l="add";y("Patches",{W:function(e,r){return r.forEach(function(r){for(var n=r.path,a=r.op,u=e,c=0;c<n.length-1;c++){var s=i(u),p=n[c];0!==s&&1!==s||"__proto__"!==p&&"constructor"!==p||t(24),"function"==typeof u&&"prototype"===p&&t(24),"object"!=typeof(u=o(u,p))&&t(15,n.join("/"))}var h=i(u),v=f(r.value),d=n[n.length-1];switch(a){case"replace":switch(h){case 2:return u.set(d,v);case 3:t(16);default:return u[d]=v}case l:switch(h){case 1:return u.splice(d,0,v);case 2:return u.set(d,v);case 3:return u.add(v);default:return u[d]=v}case"remove":switch(h){case 1:return u.splice(d,1);case 2:return u.delete(d);case 3:return u.delete(r.value);default:return delete u[d]}default:t(17,a)}}),e},F:function(t,r,n,i){switch(t.t){case 0:case 4:case 2:return function(t,r,n,i){var f=t.u,c=t.i;e(t.D,function(e,t){var s=o(f,e),p=o(c,e),h=t?u(f,e)?"replace":l:"remove";if(s!==p||"replace"!==h){var v=r.concat(e);n.push("remove"===h?{op:h,path:v}:{op:h,path:v,value:p}),i.push(h===l?{op:"remove",path:v}:"remove"===h?{op:l,path:v,value:a(s)}:{op:"replace",path:v,value:a(s)})}})}(t,r,n,i);case 5:case 1:return function(e,t,r,n){var i=e.u,o=e.D,u=e.i;if(u.length<i.length){var f=[u,i];i=f[0],u=f[1];var c=[n,r];r=c[0],n=c[1]}for(var s=0;s<i.length;s++)if(o[s]&&u[s]!==i[s]){var p=t.concat([s]);r.push({op:"replace",path:p,value:a(u[s])}),n.push({op:"replace",path:p,value:a(i[s])})}for(var h=i.length;h<u.length;h++){var v=t.concat([h]);r.push({op:l,path:v,value:a(u[h])})}i.length<u.length&&n.push({op:"replace",path:t.concat(["length"]),value:i.length})}(t,r,n,i);case 3:return function(e,t,r,n){var a=e.u,i=e.i,o=0;a.forEach(function(e){if(!i.has(e)){var a=t.concat([o]);r.push({op:"remove",path:a,value:e}),n.unshift({op:l,path:a,value:e})}o++}),o=0,i.forEach(function(e){if(!a.has(e)){var i=t.concat([o]);r.push({op:l,path:i,value:e}),n.unshift({op:"remove",path:i,value:e})}o++})}(t,r,n,i)}},g:function(e,t,r,n){r.push({op:"replace",path:[],value:t}),n.push({op:"replace",path:[],value:e.u})}})}function C(){function n(e,t){function r(){this.constructor=e}a(e,t),e.prototype=(r.prototype=t.prototype,new r)}function i(e){e.i||(e.D=new Map,e.i=new Map(e.u))}function u(e){e.i||(e.i=new Set,e.u.forEach(function(t){if(r(t)){var n=k(e.A.h,t,e);e.p.set(t,n),e.i.add(n)}else e.i.add(t)}))}function o(e){e.O&&t(3,JSON.stringify(v(e)))}var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},f=function(){function t(e,t){return this[Y]={t:2,l:t,A:t?t.A:b(),P:!1,R:!1,i:void 0,D:void 0,u:e,k:this,I:!1,O:!1},this}n(t,Map);var a=t.prototype;return Object.defineProperty(a,"size",{get:function(){return v(this[Y]).size}}),a.has=function(e){return v(this[Y]).has(e)},a.set=function(e,t){var r=this[Y];return o(r),v(r).has(e)&&v(r).get(e)===t||(i(r),E(r),r.D.set(e,!0),r.i.set(e,t),r.D.set(e,!0)),this},a.delete=function(e){if(!this.has(e))return!1;var t=this[Y];return o(t),i(t),E(t),t.D.set(e,!1),t.i.delete(e),!0},a.clear=function(){var t=this[Y];o(t),v(t).size&&(i(t),E(t),t.D=new Map,e(t.u,function(e){t.D.set(e,!1)}),t.i.clear())},a.forEach=function(e,t){var r=this;v(this[Y]).forEach(function(n,a){e.call(t,r.get(a),a,r)})},a.get=function(e){var t=this[Y];o(t);var n=v(t).get(e);if(t.R||!r(n))return n;if(n!==t.u.get(e))return n;var a=k(t.A.h,n,t);return i(t),t.i.set(e,a),a},a.keys=function(){return v(this[Y]).keys()},a.values=function(){var e,t=this,r=this.keys();return(e={})[Z]=function(){return t.values()},e.next=function(){var e=r.next();return e.done?e:{done:!1,value:t.get(e.value)}},e},a.entries=function(){var e,t=this,r=this.keys();return(e={})[Z]=function(){return t.entries()},e.next=function(){var e=r.next();if(e.done)return e;var n=t.get(e.value);return{done:!1,value:[e.value,n]}},e},a[Z]=function(){return this.entries()},t}(),c=function(){function t(e,t){return this[Y]={t:3,l:t,A:t?t.A:b(),P:!1,R:!1,i:void 0,u:e,k:this,p:new Map,O:!1,I:!1},this}n(t,Set);var e=t.prototype;return Object.defineProperty(e,"size",{get:function(){return v(this[Y]).size}}),e.has=function(e){var t=this[Y];return o(t),t.i?!!t.i.has(e)||!(!t.p.has(e)||!t.i.has(t.p.get(e))):t.u.has(e)},e.add=function(e){var t=this[Y];return o(t),this.has(e)||(u(t),E(t),t.i.add(e)),this},e.delete=function(e){if(!this.has(e))return!1;var t=this[Y];return o(t),u(t),E(t),t.i.delete(e)||!!t.p.has(e)&&t.i.delete(t.p.get(e))},e.clear=function(){var e=this[Y];o(e),v(e).size&&(u(e),E(e),e.i.clear())},e.values=function(){var e=this[Y];return o(e),u(e),e.i.values()},e.entries=function(){var e=this[Y];return o(e),u(e),e.i.entries()},e.keys=function(){return this.values()},e[Z]=function(){return this.values()},e.forEach=function(e,t){for(var r=this.values(),n=r.next();!n.done;)e.call(t,n.value,n.value,this),n=r.next()},t}();y("MapSet",{$:function(e,t){return new f(e,t)},C:function(e,t){return new c(e,t)}})}var N;Object.defineProperty(U,"__esModule",{value:!0});var W,V="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),J="undefined"!=typeof Map,q="undefined"!=typeof Set,X="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,B=V?Symbol.for("immer-nothing"):((N={})["immer-nothing"]=!0,N),Q=V?Symbol.for("immer-draftable"):"__$immer_draftable",Y=V?Symbol.for("immer-state"):"__$immer_state",Z="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",G="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,H=Object.getOwnPropertyDescriptors||function(e){var t={};return G(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},L={},T={get:function(e,t){if(t===Y)return e;var n=v(e);if(!u(n,t))return function(e,t,r){var n,a=z(t,r);return a?"value"in a?a.value:null===(n=a.get)||void 0===n?void 0:n.call(e.k):void 0}(e,n,t);var a=n[t];return e.R||!r(a)?a:a===A(e.u,t)?(R(e),e.i[t]=k(e.A.h,a,e)):a},has:function(e,t){return t in v(e)},ownKeys:function(e){return Reflect.ownKeys(v(e))},set:function(e,t,r){var n=z(v(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=A(v(e),t),o=null==i?void 0:i[Y];if(o&&o.u===r)return e.i[t]=r,e.D[t]=!1,!0;if(a(r,i)&&(void 0!==r||u(e.u,t)))return!0;R(e),E(e)}return e.i[t]=r,e.D[t]=!0,!0},deleteProperty:function(e,t){return void 0!==A(e.u,t)||t in e.u?(e.D[t]=!1,R(e),E(e)):delete e.D[t],e.i&&delete e.i[t],!0},getOwnPropertyDescriptor:function(e,t){var r=v(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.t||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){t(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.u)},setPrototypeOf:function(){t(12)}},ee={};e(T,function(e,t){ee[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ee.deleteProperty=function(e,t){return T.deleteProperty.call(this,e[0],t)},ee.set=function(e,t,r){return T.set.call(this,e[0],t,r,e[0])};var te=function(){function e(e){this.S=X,this.K=!0,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var a=e.prototype;return a.produce=function(e,n,a){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var o=this;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return o.produce(e,function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))})}}var u;if("function"!=typeof n&&t(6),void 0!==a&&"function"!=typeof a&&t(7),r(e)){var f=x(this),c=k(this,e,void 0),s=!0;try{u=n(c),s=!1}finally{s?j(f):O(f)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then(function(e){return m(f,a),S(e,f)},function(e){throw j(f),e}):(m(f,a),S(u,f))}if(!e||"object"!=typeof e){if((u=n(e))===B)return;return void 0===u&&(u=e),this.K&&l(u,!0),u}t(21,e)},a.produceWithPatches=function(e,t){var r,n,a=this;return"function"==typeof e?function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return a.produceWithPatches(t,function(t){return e.apply(void 0,[t].concat(n))})}:[this.produce(e,t,function(e,t){r=e,n=t}),r,n]},a.createDraft=function(e){r(e)||t(8),n(e)&&(e=F(e));var a=x(this),i=k(this,e,void 0);return i[Y].I=!0,O(a),i},a.finishDraft=function(e,t){var r=(e&&e[Y]).A;return m(r,t),S(void 0,r)},a.setAutoFreeze=function(e){this.K=e},a.setUseProxies=function(e){e&&!X&&t(20),this.S=e},a.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var a=t[r];if(0===a.path.length&&"replace"===a.op){e=a.value;break}}var i=_("Patches").W;return n(e)?i(e,t):this.produce(e,function(e){return i(e,t.slice(r+1))})},e}(),re=new te,ne=re.produce,ae=re.produceWithPatches.bind(re),ie=re.setAutoFreeze.bind(re),oe=re.setUseProxies.bind(re),ue=re.applyPatches.bind(re),fe=re.createDraft.bind(re),ce=re.finishDraft.bind(re);U.Immer=te,U.applyPatches=ue,U.castDraft=function(e){return e},U.castImmutable=function(e){return e},U.createDraft=fe,U.current=F,U.default=ne,U.enableAllPlugins=function(){K(),C(),$()},U.enableES5=K,U.enableMapSet=C,U.enablePatches=$,U.finishDraft=ce,U.freeze=l,U.immerable=Q,U.isDraft=n,U.isDraftable=r,U.nothing=B,U.original=function(e){return n(e)||t(23,e),e[Y].u},U.produce=ne,U.produceWithPatches=ae,U.setAutoFreeze=ie,U.setUseProxies=oe},593:(e,t,r)=>{"use strict";if(process.env.NODE_ENV==="production"){e.exports=r(931)}else{e.exports=r(942)}}};var t={};function __nccwpck_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var a=true;try{e[r](n,n.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(593)})();
{
"name": "@umijs/deps",
"version": "0.2.18",
"version": "0.2.19",
"publishConfig": {

@@ -14,4 +14,5 @@ "access": "public"

"scripts": {
"dts": "node ./scripts/dts.js",
"dts": "node ./scripts/dts",
"ncc-compiled": "ncc cache clean && taskr ncc",
"printWebpackInner": "node ./scripts/printWebpackInner",
"prepublishOnly": "np --yolo --no-publish"

@@ -58,2 +59,3 @@ },

"@hapi/joi": "16.1.8",
"@pmmmwh/react-refresh-webpack-plugin": "0.4.3",
"@svgr/webpack": "4.3.3",

@@ -130,3 +132,3 @@ "@taskr/clear": "1.1.0",

"http-proxy-middleware": "1.0.6",
"immer": "7.0.5",
"immer": "8.0.1",
"joi2types": "1.1.0",

@@ -133,0 +135,0 @@ "less": "3.12.2",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc