1var e=Symbol.for("immer-nothing"),t=Symbol.for("immer-draftable"),r=Symbol.for("immer-state");function n(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var o=Object.getPrototypeOf;function i(e){return!!e&&!!e[r]}function c(e){return!!e&&(a(e)||Array.isArray(e)||!!e[t]||!!e.constructor?.[t]||p(e)||y(e))}var s=Object.prototype.constructor.toString();function a(e){if(!e||"object"!=typeof e)return!1;const t=o(e);if(null===t)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===s}function u(e,t){0===f(e)?Reflect.ownKeys(e).forEach((r=>{t(r,e[r],e)})):e.forEach(((r,n)=>t(n,r,e)))}function f(e){const t=e[r];return t?t.type_:Array.isArray(e)?1:p(e)?2:y(e)?3:0}function l(e,t){return 2===f(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _(e,t,r){const n=f(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function p(e){return e instanceof Map}function y(e){return e instanceof Set}function d(e){return e.copy_||e.base_}function h(e,t){if(p(e))return new Map(e);if(y(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=a(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[r];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(o(e),t)}{const t=o(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function b(e,t=!1){return v(e)||i(e)||!c(e)||(f(e)>1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>b(t,!0)))),e}function m(){n(2)}function v(e){return Object.isFrozen(e)}var P,g={};function w(e){const t=g[e];return t||n(0),t}function S(){return P}function z(e,t){t&&(w("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function O(e){j(e),e.drafts_.forEach(A),e.drafts_=null}function j(e){e===P&&(P=e.parent_)}function F(e){return P={drafts_:[],parent_:P,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function A(e){const t=e[r];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function D(t,o){o.unfinalizedDrafts_=o.drafts_.length;const i=o.drafts_[0];return void 0!==t&&t!==i?(i[r].modified_&&(O(o),n(4)),c(t)&&(t=C(o,t),o.parent_||E(o,t)),o.patches_&&w("Patches").generateReplacementPatches_(i[r].base_,t,o.patches_,o.inversePatches_)):t=C(o,i,[]),O(o),o.patches_&&o.patchListener_(o.patches_,o.inversePatches_),t!==e?t:void 0}function C(e,t,n){if(v(t))return t;const o=t[r];if(!o)return u(t,((r,i)=>M(e,o,t,r,i,n))),t;if(o.scope_!==e)return t;if(!o.modified_)return E(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const t=o.copy_;let r=t,i=!1;3===o.type_&&(r=new Set(t),t.clear(),i=!0),u(r,((r,c)=>M(e,o,t,r,c,n,i))),E(e,t,!1),n&&e.patches_&&w("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function M(e,t,r,n,o,s,a){if(i(o)){const c=C(e,o,s&&t&&3!==t.type_&&!l(t.assigned_,n)?s.concat(n):void 0);if(_(r,n,c),!i(c))return;e.canAutoFreeze_=!1}else a&&r.add(o);if(c(o)&&!v(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;C(e,o),t&&t.scope_.parent_||"symbol"==typeof n||!Object.prototype.propertyIsEnumerable.call(r,n)||E(e,o)}}function E(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&b(t,r)}var k={get(e,t){if(t===r)return e;const n=d(e);if(!l(n,t))return function(e,t,r){const n=x(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,n,t);const o=n[t];return e.finalized_||!c(o)?o:o===R(e.base_,t)?(W(e),e.copy_[t]=U(o,e)):o},has:(e,t)=>t in d(e),ownKeys:e=>Reflect.ownKeys(d(e)),set(e,t,n){const o=x(d(e),t);if(o?.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const o=R(d(e),t),s=o?.[r];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(c=o)?0!==i||1/i==1/c:i!=i&&c!=c)&&(void 0!==n||l(e.base_,t)))return!0;W(e),K(e)}var i,c;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==R(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,W(e),K(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=d(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){n(11)},getPrototypeOf:e=>o(e.base_),setPrototypeOf(){n(12)}},N={};function R(e,t){const n=e[r];return(n?d(n):e)[t]}function x(e,t){if(!(t in e))return;let r=o(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=o(r)}}function K(e){e.modified_||(e.modified_=!0,e.parent_&&K(e.parent_))}function W(e){e.copy_||(e.copy_=h(e.base_,e.scope_.immer_.useStrictShallowCopy_))}u(k,((e,t)=>{N[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),N.deleteProperty=function(e,t){return N.set.call(this,e,t,void 0)},N.set=function(e,t,r){return k.set.call(this,e[0],t,r,e[0])};function U(e,t){const r=p(e)?w("MapSet").proxyMap_(e,t):y(e)?w("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:S(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=k;r&&(o=[n],i=N);const{revoke:c,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=c,s}(e,t);return(t?t.scope_:S()).drafts_.push(r),r}function I(e){if(!c(e)||v(e))return e;const t=e[r];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=h(e,t.scope_.immer_.useStrictShallowCopy_)}else n=h(e,!0);return u(n,((e,t)=>{_(n,e,I(t))})),t&&(t.finalized_=!1),n}var L=new class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,o)=>{if("function"==typeof t&&"function"!=typeof r){const e=r;r=t;const n=this;return function(t=e,...o){return n.produce(t,(e=>r.call(this,e,...o)))}}let i;if("function"!=typeof r&&n(6),void 0!==o&&"function"!=typeof o&&n(7),c(t)){const e=F(this),n=U(t,void 0);let c=!0;try{i=r(n),c=!1}finally{c?O(e):j(e)}return z(e,o),D(i,e)}if(!t||"object"!=typeof t){if(i=r(t),void 0===i&&(i=t),i===e&&(i=void 0),this.autoFreeze_&&b(i,!0),o){const e=[],r=[];w("Patches").generateReplacementPatches_(t,i,e,r),o(e,r)}return i}n(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,(t=>e(t,...r)));let r,n;return[this.produce(e,t,((e,t)=>
1{r=e,n=t})),r,n]},"boolean"==typeof t?.autoFreeze&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof t?.useStrictShallowCopy&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(e){c(e)||n(8),i(e)&&(e=function(e){i(e)||n(10);return I(e)}(e));const t=F(this),o=U(e,void 0);return o[r].isManual_=!0,j(t),o}finishDraft(e,t){const o=e&&e[r];o&&o.isManual_||n(9);const{scope_:i}=o;return z(i,t),D(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=w("Patches").applyPatches_;return i(e)?n(e,t):this.produce(e,(e=>n(e,t)))}},X=L.produce;L.produceWithPatches.bind(L),L.setAutoFreeze.bind(L),L.setUseStrictShallowCopy.bind(L),L.applyPatches.bind(L),L.createDraft.bind(L),L.finishDraft.bind(L);export{X as produce};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.