statezero 0.7.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018
3
+ Copyright (c) 2026 andornaut
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # statezero
2
2
 
3
+ [![npm version](https://badge.fury.io/js/statezero.svg)](https://www.npmjs.com/package/statezero)
4
+ [![CI](https://github.com/andornaut/statezero/workflows/CI/badge.svg)](https://github.com/andornaut/statezero/actions)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+
3
7
  Small, simple, functional JavaScript library for managing immutable state.
4
8
 
5
9
  Statezero is used by [Jetstart - a library for building web interfaces](https://github.com/andornaut/jetstart).
@@ -15,8 +19,7 @@ Install from [npm](https://www.npmjs.com/package/statezero).
15
19
  npm install statezero --save
16
20
  ```
17
21
 
18
- Statezero is packaged using the [Universal Module Definition](https://github.com/umdjs/umd) pattern, so it can be loaded
19
- in various environments:
22
+ Statezero is packaged as both ESM and UMD bundles, so it can be loaded in various environments:
20
23
 
21
24
  ### Browser Global
22
25
 
@@ -27,23 +30,31 @@ in various environments:
27
30
  </script>
28
31
  ```
29
32
 
30
- ### ES6 Module
33
+ ### ES6 Module (Recommended)
34
+
35
+ The default ESM import is tree-shakeable. Dependencies (lodash, deep-diff, simple-deep-freeze) are external, so modern bundlers will tree-shake everything automatically.
31
36
 
32
37
  ```javascript
33
- import { action, subscribe } from 'statezero';
38
+ import { action, subscribe } from "statezero";
34
39
  ```
35
40
 
36
- ### ES6 Module with tree shaking (not transpiled)
41
+ Bundle size: **~3.6KB minified** (statezero code only, external dependencies resolved by your bundler)
42
+
43
+ ### ES6 Module from Source
44
+
45
+ Import directly from unbundled source files for maximum flexibility:
37
46
 
38
47
  ```javascript
39
48
  // Note that the import path ends with '/src'
40
- import { action, subscribe } from 'statezero/src';
49
+ import { action, subscribe } from "statezero/src";
41
50
  ```
42
51
 
52
+ This gives your bundler complete control over transpilation and tree-shaking.
53
+
43
54
  ### Node
44
55
 
45
56
  ```javascript
46
- const { action, subscribe } = require('statezero');
57
+ const { action, subscribe } = require("statezero");
47
58
  ```
48
59
 
49
60
  ## Usage
@@ -82,9 +93,9 @@ const setCount = action(({ commit, state }, count) => {
82
93
  setCount(1);
83
94
 
84
95
  getState(); // returns { count: 1 }
85
- getState('count');
96
+ getState("count");
86
97
  returns; // 1
87
- getState(['count', 'countTimesTwo']);
98
+ getState(["count", "countTimesTwo"]);
88
99
  // returns [1, 2]
89
100
  ```
90
101
 
@@ -113,7 +124,7 @@ const incrementCount = action(({ commit, state }) => {
113
124
  commit(state);
114
125
  });
115
126
 
116
- const setCount = (count) => setState('count', count);
127
+ const setCount = (count) => setState("count", count);
117
128
 
118
129
  setCount(1);
119
130
  // getState().count is 1
@@ -141,12 +152,12 @@ When the state changes, statezero will call your "fn" function with two argument
141
152
 
142
153
  ```javascript
143
154
  const fn = (nextState, prevState, nextRootState) => {
144
- console.log('From', JSON.stringify(prevState));
145
- console.log('To', JSON.stringify(nextState));
146
- console.log('Root state', JSON.stringify(nextRootState));
155
+ console.log("From", JSON.stringify(prevState));
156
+ console.log("To", JSON.stringify(nextState));
157
+ console.log("Root state", JSON.stringify(nextRootState));
147
158
  };
148
- subscribe(fn, 'a.b.c'); // String "selector" path in dot notation
149
- subscribe(fn, ['a.b.c', 'd.e.f']); // Array "selector" paths, each in dot notation
159
+ subscribe(fn, "a.b.c"); // String "selector" path in dot notation
160
+ subscribe(fn, ["a.b.c", "d.e.f"]); // Array "selector" paths, each in dot notation
150
161
  subscribe(fn, (state) => state.a.b.c); // Function "selector"
151
162
  subscribe(fn); // Undefined "selector" - subscribe to every state change
152
163
  ```
@@ -165,7 +176,7 @@ If you supplied a `String`, `Array` or `Function` "selector" argument to `subscr
165
176
  passing the return value from `subscribe()` to `unsubscribe()`.
166
177
 
167
178
  ```javascript
168
- const subscription = subscribe(console.log, 'a');
179
+ const subscription = subscribe(console.log, "a");
169
180
 
170
181
  unsubscribe(subscription);
171
182
  ```
@@ -207,9 +218,9 @@ return value of `getState()`.
207
218
  You can subscribe to state change notifications on getters using "selectors" as with any other property of the state.
208
219
 
209
220
  ```javascript
210
- defineGetter('countTimesTwo', (parent) => parent.count * 2);
221
+ defineGetter("countTimesTwo", (parent) => parent.count * 2);
211
222
 
212
- subscribe(console.log, 'countTimesTwo');
223
+ subscribe(console.log, "countTimesTwo");
213
224
 
214
225
  // If `state.count` is changed to 1 to 2, then this prints "4 2"
215
226
  ```
@@ -217,9 +228,9 @@ subscribe(console.log, 'countTimesTwo');
217
228
  You can also define nested getters.
218
229
 
219
230
  ```javascript
220
- defineGetter('nested.countTimesTwo', (parent) => parent.count * 2);
231
+ defineGetter("nested.countTimesTwo", (parent) => parent.count * 2);
221
232
 
222
- subscribe(console.log, 'nested.countTimesTwo');
233
+ subscribe(console.log, "nested.countTimesTwo");
223
234
 
224
235
  // If `state.nested.count` is changed from 2 to 3, then this prints "6 4"
225
236
  ```
@@ -227,9 +238,9 @@ subscribe(console.log, 'nested.countTimesTwo');
227
238
  Getter functions are called with the root state as the second argument.
228
239
 
229
240
  ```javascript
230
- defineGetter('nested.countTimesTwoTimesRootCount', (parent, root) => parent.count * 2 * root.count);
241
+ defineGetter("nested.countTimesTwoTimesRootCount", (parent, root) => parent.count * 2 * root.count);
231
242
 
232
- subscribe(console.log, 'nested.countTimesTwoTimesRootCount');
243
+ subscribe(console.log, "nested.countTimesTwoTimesRootCount");
233
244
 
234
245
  // If `state.count` is changed to 1 to 2 and `state.nested.count` is changed from 2 to 3, then this prints "12 4"
235
246
  ```
@@ -237,13 +248,13 @@ subscribe(console.log, 'nested.countTimesTwoTimesRootCount');
237
248
  Getters can be
238
249
  [enumerable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties).
239
250
 
240
- ```
241
- // The last argument defaults to `false`
242
- defineGetter('nested.property', () => null, true);
243
- const { enumerable } = Object.getOwnPropertyDescriptor(getState().nested, 'property');
244
- console.log(enumerable);
251
+ ```javascript
252
+ // The last argument defaults to `false`
253
+ defineGetter("nested.property", () => null, true);
254
+ const { enumerable } = Object.getOwnPropertyDescriptor(getState().nested, "property");
255
+ console.log(enumerable);
245
256
 
246
- // Prints "true"
257
+ // Prints "true"
247
258
  ```
248
259
 
249
260
  See [./test](./test) for more examples.
@@ -251,7 +262,7 @@ See [./test](./test) for more examples.
251
262
  ### Logging
252
263
 
253
264
  ```javascript
254
- import { startLogging, stopLogging } from 'statezero';
265
+ import { startLogging, stopLogging } from "statezero";
255
266
 
256
267
  startLogging();
257
268
 
@@ -266,8 +277,11 @@ are logged; if not specified then all changes are logged. `logger` can be used t
266
277
 
267
278
  ## Developing
268
279
 
269
- ```
280
+ ```bash
270
281
  npm install
271
- npm run build
272
- npm run test
282
+ npm run build # Development build (UMD + ESM)
283
+ npm run format # Format code with prettier-eslint
284
+ npm run lint # ESLint with zero-warning policy
285
+ npm run test # Run tests with Jest
286
+ npm run test:watch # Run tests in watch mode
273
287
  ```
@@ -0,0 +1,125 @@
1
+ // TypeScript definitions for statezero
2
+
3
+ export type Selector<T = any> = string | string[] | ((state: any) => T) | undefined;
4
+
5
+ export interface ActionContext {
6
+ commit: (nextState: Record<string, any>) => void;
7
+ state: Record<string, any>;
8
+ }
9
+
10
+ export type ActionFunction<TArgs extends any[] = any[], TReturn = void> = (
11
+ context: ActionContext,
12
+ ...args: TArgs
13
+ ) => TReturn;
14
+
15
+ export type Action<TArgs extends any[] = any[], TReturn = void> = (...args: TArgs) => TReturn;
16
+
17
+ export type SubscriberCallback<T = any> = (
18
+ nextState: T,
19
+ prevState: T,
20
+ nextRootState: any
21
+ ) => void;
22
+
23
+ export type Subscription = SubscriberCallback;
24
+
25
+ export type GetterFunction = (parent: any, root: any) => any;
26
+
27
+ /**
28
+ * Create an action that can modify state
29
+ */
30
+ export function action<TArgs extends any[] = any[], TReturn = void>(
31
+ fn: ActionFunction<TArgs, TReturn>
32
+ ): Action<TArgs, TReturn>;
33
+
34
+ /**
35
+ * Get the current state or a subset of it
36
+ */
37
+ export function getState(): any;
38
+ export function getState<T = any>(selector: string): T;
39
+ export function getState<T = any>(selector: string[]): T[];
40
+ export function getState<T = any>(selector: (state: any) => T): T;
41
+
42
+ /**
43
+ * Set state at the given selector path
44
+ */
45
+ export const setState: Action<[selector: string | undefined | null, value: any], void>;
46
+
47
+ /**
48
+ * Set immutable state at the given selector path
49
+ */
50
+ export function setImmutableState(selector: string, obj: Record<string, any>): void;
51
+
52
+ /**
53
+ * Subscribe to state changes
54
+ */
55
+ export function subscribe<T = any>(
56
+ callback: SubscriberCallback<T>,
57
+ selector?: Selector<T>,
58
+ isSync?: boolean
59
+ ): Subscription;
60
+
61
+ /**
62
+ * Subscribe to state changes synchronously
63
+ */
64
+ export function subscribeSync<T = any>(
65
+ callback: SubscriberCallback<T>,
66
+ selector?: Selector<T>
67
+ ): Subscription;
68
+
69
+ /**
70
+ * Subscribe to a single state change
71
+ */
72
+ export function subscribeOnce<T = any>(
73
+ callback: SubscriberCallback<T>,
74
+ selector?: Selector<T>,
75
+ isSync?: boolean
76
+ ): Subscription;
77
+
78
+ /**
79
+ * Subscribe to a single state change synchronously
80
+ */
81
+ export function subscribeOnceSync<T = any>(
82
+ callback: SubscriberCallback<T>,
83
+ selector?: Selector<T>
84
+ ): Subscription;
85
+
86
+ /**
87
+ * Unsubscribe from state changes
88
+ */
89
+ export function unsubscribe(subscription: Subscription): void;
90
+
91
+ /**
92
+ * Unsubscribe all subscribers
93
+ */
94
+ export function unsubscribeAll(): void;
95
+
96
+ /**
97
+ * Define a getter (computed property) on the state
98
+ */
99
+ export const defineGetter: Action<
100
+ [path: string | string[], fn: GetterFunction, enumerable?: boolean],
101
+ void
102
+ >;
103
+
104
+ /**
105
+ * Start logging state changes
106
+ */
107
+ export function startLogging(
108
+ selector?: Selector,
109
+ logger?: (properties: any, columns: string[]) => void
110
+ ): void;
111
+
112
+ /**
113
+ * Stop logging state changes
114
+ */
115
+ export function stopLogging(): void;
116
+
117
+ /**
118
+ * Async subscribers set
119
+ */
120
+ export const subscribersAsync: Set<SubscriberCallback>;
121
+
122
+ /**
123
+ * Sync subscribers set
124
+ */
125
+ export const subscribersSync: Set<SubscriberCallback>;
@@ -0,0 +1 @@
1
+ import{get as H,set as U}from"lodash-es";var x="__statezero__root";function b(t){return t?t[x]:void 0}function d(t,e){Object.defineProperty(t,x,{enumerable:!1,value:e})}import{get as P,isPlainObject as _,set as J}from"lodash-es";import I from"simple-deep-freeze";import{cloneDeepWith as z,isPlainObject as R}from"lodash-es";var A="__statezero_immutable";function y(t){return t&&t[A]===!0}function O(t){Object.defineProperty(t,A,{enumerable:!1,value:!0})}var j=(t,e)=>typeof e=="object"?z(e,t):e,E=t=>{let e=new WeakMap,r,i=n=>{if(n instanceof Element||typeof n=="function"||y(n))return n;if(!R(n))return;let o=e.get(n);if(o)return o;if(o={},e.set(n,o),r||(r=o),!b(n)){for(let s of Object.getOwnPropertyNames(n))s.startsWith("__statezero")||s.startsWith("$jscomp")||(o[s]=j(i,n[s]));return o}d(o,r);for(let[s,c]of Object.entries(Object.getOwnPropertyDescriptors(n)))if(!(s.startsWith("__statezero")||s.startsWith("$jscomp"))){if(c.get){Object.defineProperty(o,s,c);continue}c.enumerable&&(o[s]=j(i,c.value))}return o};return z(t,i)};import{get as N,isEqualWith as D}from"lodash-es";var p=new Set,m=new Set,W=(t,e)=>y(t)?t===e:void 0,$=(t,e)=>(r,i)=>{let n=e(r),o=e(i);D(n,o,W)||t(n,o,r)},T=t=>(e,r)=>{t(e,r,e)},F=t=>e=>t.map(r=>N(e,r)),L=t=>e=>N(e,t),g=(t,e,r=!1)=>{if(typeof e=="string"?e=L(e):Array.isArray(e)&&(e=F(e)),typeof e=="function")t=$(t,e);else if(e===void 0)t=T(t);else{let i=typeof e=="object"?JSON.stringify(e):e;throw new Error(`statezero: subscribe() must be called with an Array/Function/String/undefined selector; not ${i}`)}return r?m.add(t):p.add(t),t},ot=(t,e)=>g(t,e,!0),C=(t,e,r=!1)=>{let n=g((...o)=>{t(...o),h(n)},e,r);return n},nt=(t,e)=>C(t,e,!0),h=t=>{p.delete(t),m.delete(t)},it=()=>{p.clear(),m.clear()};var f=I({}),l,M=t=>{l===void 0&&(l=t,setTimeout(()=>{let e=l;l=void 0;for(let r of p)r(f,e)}))},q=t=>{for(let e of m)e(f,t)},G=t=>{if(!_(t))throw new Error(`statezero: commit() must be called with a plain object "nextState" argument; not: ${t}`);let e=f;f=I(t),M(e),q(e)},w=t=>(...e)=>t({commit:G,state:E(f)},...e),at=t=>{if(t===void 0)return f;if(typeof t=="string")return P(f,t);if(Array.isArray(t))return t.map(r=>P(f,r));if(typeof t=="function")return t(f);let e=typeof t=="object"?JSON.stringify(t):t;throw new Error(`statezero: getState() must be called with an Array/Function/String/undefined selector; not ${e}`)},B=w(({commit:t,state:e},r,i)=>{if(r==null||r==="")e=i;else if(typeof r=="string")J(e,r,i);else{let n=typeof r=="object"?JSON.stringify(r):r;throw new Error(`statezero: setState() must be called with an String/undefined "selector" argument; not ${n}`)}t(e)}),bt=(t,e)=>{if(!t)throw new Error('statezero: setImmutableState() must be called with a non-empty String "selector" argument');if(!_(e))throw new Error(`statezero: setImmutableState() must be called with a plain object "obj" argument; not: ${e}`);O(e),B(t,e)};var St=w(({commit:t,state:e},r,i,n=!1)=>{let o=Array.isArray(r)?r:r.split("."),s=o.length-1,c=o[s],S=o.slice(0,s),a=e;S.length&&(a=H(e,S,{}),U(e,S,a)),Object.defineProperty(a,c,{get(){return i.call(this,this,b(this))},enumerable:n}),d(a,e),t(e)});import Y from"deep-diff";var u,K={A:"Array changed",D:"Deleted",E:"Changed",N:"New"},Q=t=>(e,r)=>{let i={},n=Y(r,e);if(n!==void 0){for(let o of n){let{path:s}=o;i[s]={changeType:K[o.kind],from:o.lhs,to:o.rhs}}t(i,["changeType","from","to"])}},At=(t,e)=>{u||(u=g(Q(e||console.table),t))},Ot=()=>{u&&(h(u),u=null)};export{w as action,St as defineGetter,at as getState,bt as setImmutableState,B as setState,At as startLogging,Ot as stopLogging,g as subscribe,C as subscribeOnce,nt as subscribeOnceSync,ot as subscribeSync,p as subscribersAsync,m as subscribersSync,h as unsubscribe,it as unsubscribeAll};
package/dist/statezero.js CHANGED
@@ -1 +1,14 @@
1
- !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.statezero=r():t.statezero=r()}("undefined"!=typeof self?self:this,(function(){return function(){var t={2621:function(t,r,e){var n,o;o=function(t){var r=["N","E","A","D"];function e(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}function n(t,r){Object.defineProperty(this,"kind",{value:t,enumerable:!0}),r&&r.length&&Object.defineProperty(this,"path",{value:r,enumerable:!0})}function o(t,r,e){o.super_.call(this,"E",t),Object.defineProperty(this,"lhs",{value:r,enumerable:!0}),Object.defineProperty(this,"rhs",{value:e,enumerable:!0})}function i(t,r){i.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}function u(t,r){u.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:r,enumerable:!0})}function c(t,r,e){c.super_.call(this,"A",t),Object.defineProperty(this,"index",{value:r,enumerable:!0}),Object.defineProperty(this,"item",{value:e,enumerable:!0})}function s(t,r,e){var n=t.slice((e||r)+1||t.length);return t.length=r<0?t.length+r:r,t.push.apply(t,n),t}function a(t){var r=typeof t;return"object"!==r?r:t===Math?"math":null===t?"null":Array.isArray(t)?"array":"[object Date]"===Object.prototype.toString.call(t)?"date":"function"==typeof t.toString&&/^\/.*\//.test(t.toString())?"regexp":"object"}function f(t){var r=0;if(0===t.length)return r;for(var e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return r}function p(t){var r=0,e=a(t);if("array"===e)return t.forEach((function(t){r+=p(t)})),r+f("[type: array, hash: "+r+"]");if("object"===e){for(var n in t)if(t.hasOwnProperty(n)){var o="[ type: object, key: "+n+", value hash: "+p(t[n])+"]";r+=f(o)}return r}return r+f("[ type: "+e+" ; value: "+t+"]")}function l(t,r,e,n,s,f,v,h){e=e||[],v=v||[];var y=(s=s||[]).slice(0);if(null!=f){if(n){if("function"==typeof n&&n(y,f))return;if("object"==typeof n){if(n.prefilter&&n.prefilter(y,f))return;if(n.normalize){var d=n.normalize(y,f,t,r);d&&(t=d[0],r=d[1])}}}y.push(f)}"regexp"===a(t)&&"regexp"===a(r)&&(t=t.toString(),r=r.toString());var b,g,x,m,j=typeof t,w=typeof r,O="undefined"!==j||v&&v.length>0&&v[v.length-1].lhs&&Object.getOwnPropertyDescriptor(v[v.length-1].lhs,f),S="undefined"!==w||v&&v.length>0&&v[v.length-1].rhs&&Object.getOwnPropertyDescriptor(v[v.length-1].rhs,f);if(!O&&S)e.push(new i(y,r));else if(!S&&O)e.push(new u(y,t));else if(a(t)!==a(r))e.push(new o(y,t,r));else if("date"===a(t)&&t-r!=0)e.push(new o(y,t,r));else if("object"===j&&null!==t&&null!==r){for(b=v.length-1;b>-1;--b)if(v[b].lhs===t){m=!0;break}if(m)t!==r&&e.push(new o(y,t,r));else{if(v.push({lhs:t,rhs:r}),Array.isArray(t)){for(h&&(t.sort((function(t,r){return p(t)-p(r)})),r.sort((function(t,r){return p(t)-p(r)}))),b=r.length-1,g=t.length-1;b>g;)e.push(new c(y,b,new i(void 0,r[b--])));for(;g>b;)e.push(new c(y,g,new u(void 0,t[g--])));for(;b>=0;--b)l(t[b],r[b],e,n,y,b,v,h)}else{var _=Object.keys(t),A=Object.keys(r);for(b=0;b<_.length;++b)x=_[b],(m=A.indexOf(x))>=0?(l(t[x],r[x],e,n,y,x,v,h),A[m]=null):l(t[x],void 0,e,n,y,x,v,h);for(b=0;b<A.length;++b)(x=A[b])&&l(void 0,r[x],e,n,y,x,v,h)}v.length=v.length-1}}else t!==r&&("number"===j&&isNaN(t)&&isNaN(r)||e.push(new o(y,t,r)))}function v(t,r,e,n,o){var i=[];if(l(t,r,i,n,null,null,null,o),e)for(var u=0;u<i.length;++u)e(i[u]);return i}function h(t,r,e,n){var o=v(t,r,n?function(t){t&&n.push(t)}:void 0,e);return n||(o.length?o:void 0)}function y(t,r,e){if(e.path&&e.path.length){var n,o=t[r],i=e.path.length-1;for(n=0;n<i;n++)o=o[e.path[n]];switch(e.kind){case"A":y(o[e.path[n]],e.index,e.item);break;case"D":delete o[e.path[n]];break;case"E":case"N":o[e.path[n]]=e.rhs}}else switch(e.kind){case"A":y(t[r],e.index,e.item);break;case"D":t=s(t,r);break;case"E":case"N":t[r]=e.rhs}return t}function d(t,e,n){if(void 0===n&&e&&~r.indexOf(e.kind)&&(n=e),t&&n&&n.kind){for(var o=t,i=-1,u=n.path?n.path.length-1:0;++i<u;)void 0===o[n.path[i]]&&(o[n.path[i]]=void 0!==n.path[i+1]&&"number"==typeof n.path[i+1]?[]:{}),o=o[n.path[i]];switch(n.kind){case"A":n.path&&void 0===o[n.path[i]]&&(o[n.path[i]]=[]),y(n.path?o[n.path[i]]:o,n.index,n.item);break;case"D":delete o[n.path[i]];break;case"E":case"N":o[n.path[i]]=n.rhs}}}function b(t,r,e){if(e.path&&e.path.length){var n,o=t[r],i=e.path.length-1;for(n=0;n<i;n++)o=o[e.path[n]];switch(e.kind){case"A":b(o[e.path[n]],e.index,e.item);break;case"D":case"E":o[e.path[n]]=e.lhs;break;case"N":delete o[e.path[n]]}}else switch(e.kind){case"A":b(t[r],e.index,e.item);break;case"D":case"E":t[r]=e.lhs;break;case"N":t=s(t,r)}return t}return e(o,n),e(i,n),e(u,n),e(c,n),Object.defineProperties(h,{diff:{value:h,enumerable:!0},orderIndependentDiff:{value:function(t,r,e,n){var o=v(t,r,n?function(t){t&&n.push(t)}:void 0,e,!0);return n||(o.length?o:void 0)},enumerable:!0},observableDiff:{value:v,enumerable:!0},orderIndependentObservableDiff:{value:function(t,r,e,n,o,i,u){return l(t,r,e,n,o,i,u,!0)},enumerable:!0},orderIndepHash:{value:p,enumerable:!0},applyDiff:{value:function(t,r,e){t&&r&&v(t,r,(function(n){e&&!e(t,r,n)||d(t,r,n)}))},enumerable:!0},applyChange:{value:d,enumerable:!0},revertChange:{value:function(t,r,e){if(t&&r&&e&&e.kind){var n,o,i=t;for(o=e.path.length-1,n=0;n<o;n++)void 0===i[e.path[n]]&&(i[e.path[n]]={}),i=i[e.path[n]];switch(e.kind){case"A":b(i[e.path[n]],e.index,e.item);break;case"D":case"E":i[e.path[n]]=e.lhs;break;case"N":delete i[e.path[n]]}}},enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof $conflict},enumerable:!0}}),h.DeepDiff=h,t&&(t.DeepDiff=h),h}(this),void 0===(n=function(){return o}.call(r,e,r,t))||(t.exports=n)},5580:function(t,r,e){var n=e(6110)(e(9325),"DataView");t.exports=n},1549:function(t,r,e){var n=e(2032),o=e(3862),i=e(6721),u=e(2749),c=e(5749);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=c,t.exports=s},79:function(t,r,e){var n=e(3702),o=e(80),i=e(4739),u=e(8655),c=e(3556);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=c,t.exports=s},8223:function(t,r,e){var n=e(6110)(e(9325),"Map");t.exports=n},3661:function(t,r,e){var n=e(3040),o=e(7670),i=e(289),u=e(4509),c=e(2949);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=c,t.exports=s},2804:function(t,r,e){var n=e(6110)(e(9325),"Promise");t.exports=n},6545:function(t,r,e){var n=e(6110)(e(9325),"Set");t.exports=n},8859:function(t,r,e){var n=e(3661),o=e(1380),i=e(1459);function u(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new n;++r<e;)this.add(t[r])}u.prototype.add=u.prototype.push=o,u.prototype.has=i,t.exports=u},7217:function(t,r,e){var n=e(79),o=e(1420),i=e(938),u=e(3605),c=e(9817),s=e(945);function a(t){var r=this.__data__=new n(t);this.size=r.size}a.prototype.clear=o,a.prototype.delete=i,a.prototype.get=u,a.prototype.has=c,a.prototype.set=s,t.exports=a},1873:function(t,r,e){var n=e(9325).Symbol;t.exports=n},7828:function(t,r,e){var n=e(9325).Uint8Array;t.exports=n},8303:function(t,r,e){var n=e(6110)(e(9325),"WeakMap");t.exports=n},3729:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}},9770:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var u=t[e];r(u,e,t)&&(i[o++]=u)}return i}},695:function(t,r,e){var n=e(8096),o=e(2428),i=e(6449),u=e(3656),c=e(361),s=e(7167),a=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=i(t),f=!e&&o(t),p=!e&&!f&&u(t),l=!e&&!f&&!p&&s(t),v=e||f||p||l,h=v?n(t.length,String):[],y=h.length;for(var d in t)!r&&!a.call(t,d)||v&&("length"==d||p&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||c(d,y))||h.push(d);return h}},4932:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}},4528:function(t){t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},4248:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},6547:function(t,r,e){var n=e(3360),o=e(5288),i=Object.prototype.hasOwnProperty;t.exports=function(t,r,e){var u=t[r];i.call(t,r)&&o(u,e)&&(void 0!==e||r in t)||n(t,r,e)}},6025:function(t,r,e){var n=e(5288);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},4733:function(t,r,e){var n=e(1791),o=e(5950);t.exports=function(t,r){return t&&n(r,o(r),t)}},3838:function(t,r,e){var n=e(1791),o=e(7241);t.exports=function(t,r){return t&&n(r,o(r),t)}},3360:function(t,r,e){var n=e(3243);t.exports=function(t,r,e){"__proto__"==r&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}},9999:function(t,r,e){var n=e(7217),o=e(3729),i=e(6547),u=e(4733),c=e(3838),s=e(3290),a=e(3007),f=e(2271),p=e(8948),l=e(2),v=e(3349),h=e(5861),y=e(6189),d=e(7199),b=e(5529),g=e(6449),x=e(3656),m=e(7730),j=e(3805),w=e(8440),O=e(5950),S=e(7241),_="[object Arguments]",A="[object Function]",E="[object Object]",P={};P[_]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[E]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[A]=P["[object WeakMap]"]=!1,t.exports=function t(r,e,z,k,I,T){var D,F=1&e,M=2&e,N=4&e;if(z&&(D=I?z(r,k,I,T):z(r)),void 0!==D)return D;if(!j(r))return r;var C=g(r);if(C){if(D=y(r),!F)return a(r,D)}else{var R=h(r),L=R==A||"[object GeneratorFunction]"==R;if(x(r))return s(r,F);if(R==E||R==_||L&&!I){if(D=M||L?{}:b(r),!F)return M?p(r,c(D,r)):f(r,u(D,r))}else{if(!P[R])return I?r:{};D=d(r,R,F)}}T||(T=new n);var U=T.get(r);if(U)return U;T.set(r,D),w(r)?r.forEach((function(n){D.add(t(n,e,z,n,r,T))})):m(r)&&r.forEach((function(n,o){D.set(o,t(n,e,z,o,r,T))}));var W=C?void 0:(N?M?v:l:M?S:O)(r);return o(W||r,(function(n,o){W&&(n=r[o=n]),i(D,o,t(n,e,z,o,r,T))})),D}},9344:function(t,r,e){var n=e(3805),o=Object.create,i=function(){function t(){}return function(r){if(!n(r))return{};if(o)return o(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();t.exports=i},7422:function(t,r,e){var n=e(1769),o=e(7797);t.exports=function(t,r){for(var e=0,i=(r=n(r,t)).length;null!=t&&e<i;)t=t[o(r[e++])];return e&&e==i?t:void 0}},2199:function(t,r,e){var n=e(4528),o=e(6449);t.exports=function(t,r,e){var i=r(t);return o(t)?i:n(i,e(t))}},2552:function(t,r,e){var n=e(1873),o=e(659),i=e(9350),u=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?o(t):i(t)}},7534:function(t,r,e){var n=e(2552),o=e(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},270:function(t,r,e){var n=e(7068),o=e(346);t.exports=function t(r,e,i,u,c){return r===e||(null==r||null==e||!o(r)&&!o(e)?r!=r&&e!=e:n(r,e,i,u,t,c))}},7068:function(t,r,e){var n=e(7217),o=e(5911),i=e(1986),u=e(689),c=e(5861),s=e(6449),a=e(3656),f=e(7167),p="[object Arguments]",l="[object Array]",v="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,y,d,b){var g=s(t),x=s(r),m=g?l:c(t),j=x?l:c(r),w=(m=m==p?v:m)==v,O=(j=j==p?v:j)==v,S=m==j;if(S&&a(t)){if(!a(r))return!1;g=!0,w=!1}if(S&&!w)return b||(b=new n),g||f(t)?o(t,r,e,y,d,b):i(t,r,m,e,y,d,b);if(!(1&e)){var _=w&&h.call(t,"__wrapped__"),A=O&&h.call(r,"__wrapped__");if(_||A){var E=_?t.value():t,P=A?r.value():r;return b||(b=new n),d(E,P,e,y,b)}}return!!S&&(b||(b=new n),u(t,r,e,y,d,b))}},9172:function(t,r,e){var n=e(5861),o=e(346);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},5083:function(t,r,e){var n=e(1882),o=e(7296),i=e(3805),u=e(7473),c=/^\[object .+?Constructor\]$/,s=Function.prototype,a=Object.prototype,f=s.toString,p=a.hasOwnProperty,l=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?l:c).test(u(t))}},6038:function(t,r,e){var n=e(5861),o=e(346);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},4901:function(t,r,e){var n=e(2552),o=e(294),i=e(346),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!u[n(t)]}},8984:function(t,r,e){var n=e(5527),o=e(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var r=[];for(var e in Object(t))i.call(t,e)&&"constructor"!=e&&r.push(e);return r}},2903:function(t,r,e){var n=e(3805),o=e(5527),i=e(181),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var r=o(t),e=[];for(var c in t)("constructor"!=c||!r&&u.call(t,c))&&e.push(c);return e}},3170:function(t,r,e){var n=e(6547),o=e(1769),i=e(361),u=e(3805),c=e(7797);t.exports=function(t,r,e,s){if(!u(t))return t;for(var a=-1,f=(r=o(r,t)).length,p=f-1,l=t;null!=l&&++a<f;){var v=c(r[a]),h=e;if("__proto__"===v||"constructor"===v||"prototype"===v)return t;if(a!=p){var y=l[v];void 0===(h=s?s(y,v,l):void 0)&&(h=u(y)?y:i(r[a+1])?[]:{})}n(l,v,h),l=l[v]}return t}},8096:function(t){t.exports=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}},7556:function(t,r,e){var n=e(1873),o=e(4932),i=e(6449),u=e(4394),c=n?n.prototype:void 0,s=c?c.toString:void 0;t.exports=function t(r){if("string"==typeof r)return r;if(i(r))return o(r,t)+"";if(u(r))return s?s.call(r):"";var e=r+"";return"0"==e&&1/r==-1/0?"-0":e}},7301:function(t){t.exports=function(t){return function(r){return t(r)}}},9219:function(t){t.exports=function(t,r){return t.has(r)}},1769:function(t,r,e){var n=e(6449),o=e(8586),i=e(1802),u=e(3222);t.exports=function(t,r){return n(t)?t:o(t,r)?[t]:i(u(t))}},9653:function(t,r,e){var n=e(7828);t.exports=function(t){var r=new t.constructor(t.byteLength);return new n(r).set(new n(t)),r}},3290:function(t,r,e){t=e.nmd(t);var n=e(9325),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o?n.Buffer:void 0,c=u?u.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,n=c?c(e):new t.constructor(e);return t.copy(n),n}},6169:function(t,r,e){var n=e(9653);t.exports=function(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}},3201:function(t){var r=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}},3736:function(t,r,e){var n=e(1873),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},1961:function(t,r,e){var n=e(9653);t.exports=function(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},3007:function(t){t.exports=function(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r}},1791:function(t,r,e){var n=e(6547),o=e(3360);t.exports=function(t,r,e,i){var u=!e;e||(e={});for(var c=-1,s=r.length;++c<s;){var a=r[c],f=i?i(e[a],t[a],a,e,t):void 0;void 0===f&&(f=t[a]),u?o(e,a,f):n(e,a,f)}return e}},2271:function(t,r,e){var n=e(1791),o=e(2283);t.exports=function(t,r){return n(t,o(t),r)}},8948:function(t,r,e){var n=e(1791),o=e(8756);t.exports=function(t,r){return n(t,o(t),r)}},5481:function(t,r,e){var n=e(9325)["__core-js_shared__"];t.exports=n},3243:function(t,r,e){var n=e(6110),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},5911:function(t,r,e){var n=e(8859),o=e(4248),i=e(9219);t.exports=function(t,r,e,u,c,s){var a=1&e,f=t.length,p=r.length;if(f!=p&&!(a&&p>f))return!1;var l=s.get(t),v=s.get(r);if(l&&v)return l==r&&v==t;var h=-1,y=!0,d=2&e?new n:void 0;for(s.set(t,r),s.set(r,t);++h<f;){var b=t[h],g=r[h];if(u)var x=a?u(g,b,h,r,t,s):u(b,g,h,t,r,s);if(void 0!==x){if(x)continue;y=!1;break}if(d){if(!o(r,(function(t,r){if(!i(d,r)&&(b===t||c(b,t,e,u,s)))return d.push(r)}))){y=!1;break}}else if(b!==g&&!c(b,g,e,u,s)){y=!1;break}}return s.delete(t),s.delete(r),y}},1986:function(t,r,e){var n=e(1873),o=e(7828),i=e(5288),u=e(5911),c=e(317),s=e(4247),a=n?n.prototype:void 0,f=a?a.valueOf:void 0;t.exports=function(t,r,e,n,a,p,l){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!p(new o(t),new o(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var v=c;case"[object Set]":var h=1&n;if(v||(v=s),t.size!=r.size&&!h)return!1;var y=l.get(t);if(y)return y==r;n|=2,l.set(t,r);var d=u(v(t),v(r),n,a,p,l);return l.delete(t),d;case"[object Symbol]":if(f)return f.call(t)==f.call(r)}return!1}},689:function(t,r,e){var n=e(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,i,u,c){var s=1&e,a=n(t),f=a.length;if(f!=n(r).length&&!s)return!1;for(var p=f;p--;){var l=a[p];if(!(s?l in r:o.call(r,l)))return!1}var v=c.get(t),h=c.get(r);if(v&&h)return v==r&&h==t;var y=!0;c.set(t,r),c.set(r,t);for(var d=s;++p<f;){var b=t[l=a[p]],g=r[l];if(i)var x=s?i(g,b,l,r,t,c):i(b,g,l,t,r,c);if(!(void 0===x?b===g||u(b,g,e,i,c):x)){y=!1;break}d||(d="constructor"==l)}if(y&&!d){var m=t.constructor,j=r.constructor;m==j||!("constructor"in t)||!("constructor"in r)||"function"==typeof m&&m instanceof m&&"function"==typeof j&&j instanceof j||(y=!1)}return c.delete(t),c.delete(r),y}},4840:function(t,r,e){var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},2:function(t,r,e){var n=e(2199),o=e(2283),i=e(5950);t.exports=function(t){return n(t,i,o)}},3349:function(t,r,e){var n=e(2199),o=e(8756),i=e(7241);t.exports=function(t){return n(t,i,o)}},2651:function(t,r,e){var n=e(4218);t.exports=function(t,r){var e=t.__data__;return n(r)?e["string"==typeof r?"string":"hash"]:e.map}},6110:function(t,r,e){var n=e(5083),o=e(392);t.exports=function(t,r){var e=o(t,r);return n(e)?e:void 0}},8879:function(t,r,e){var n=e(4335)(Object.getPrototypeOf,Object);t.exports=n},659:function(t,r,e){var n=e(1873),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var r=i.call(t,c),e=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=u.call(t);return n&&(r?t[c]=e:delete t[c]),o}},2283:function(t,r,e){var n=e(9770),o=e(3345),i=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,c=u?function(t){return null==t?[]:(t=Object(t),n(u(t),(function(r){return i.call(t,r)})))}:o;t.exports=c},8756:function(t,r,e){var n=e(4528),o=e(8879),i=e(2283),u=e(3345),c=Object.getOwnPropertySymbols?function(t){for(var r=[];t;)n(r,i(t)),t=o(t);return r}:u;t.exports=c},5861:function(t,r,e){var n=e(5580),o=e(8223),i=e(2804),u=e(6545),c=e(8303),s=e(2552),a=e(7473),f="[object Map]",p="[object Promise]",l="[object Set]",v="[object WeakMap]",h="[object DataView]",y=a(n),d=a(o),b=a(i),g=a(u),x=a(c),m=s;(n&&m(new n(new ArrayBuffer(1)))!=h||o&&m(new o)!=f||i&&m(i.resolve())!=p||u&&m(new u)!=l||c&&m(new c)!=v)&&(m=function(t){var r=s(t),e="[object Object]"==r?t.constructor:void 0,n=e?a(e):"";if(n)switch(n){case y:return h;case d:return f;case b:return p;case g:return l;case x:return v}return r}),t.exports=m},392:function(t){t.exports=function(t,r){return null==t?void 0:t[r]}},2032:function(t,r,e){var n=e(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862:function(t){t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}},6721:function(t,r,e){var n=e(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(n){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return o.call(r,t)?r[t]:void 0}},2749:function(t,r,e){var n=e(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return n?void 0!==r[t]:o.call(r,t)}},5749:function(t,r,e){var n=e(1042);t.exports=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},6189:function(t){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},7199:function(t,r,e){var n=e(9653),o=e(6169),i=e(3201),u=e(3736),c=e(1961);t.exports=function(t,r,e){var s=t.constructor;switch(r){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new s(+t);case"[object DataView]":return o(t,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(t,e);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(t);case"[object RegExp]":return i(t);case"[object Symbol]":return u(t)}}},5529:function(t,r,e){var n=e(9344),o=e(8879),i=e(5527);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},361:function(t){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},8586:function(t,r,e){var n=e(6449),o=e(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,r){if(n(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||u.test(t)||!i.test(t)||null!=r&&t in Object(r)}},4218:function(t){t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},7296:function(t,r,e){var n,o=e(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5527:function(t){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},3702:function(t){t.exports=function(){this.__data__=[],this.size=0}},80:function(t,r,e){var n=e(6025),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0||(e==r.length-1?r.pop():o.call(r,e,1),--this.size,0))}},4739:function(t,r,e){var n=e(6025);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},8655:function(t,r,e){var n=e(6025);t.exports=function(t){return n(this.__data__,t)>-1}},3556:function(t,r,e){var n=e(6025);t.exports=function(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this}},3040:function(t,r,e){var n=e(1549),o=e(79),i=e(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670:function(t,r,e){var n=e(2651);t.exports=function(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r}},289:function(t,r,e){var n=e(2651);t.exports=function(t){return n(this,t).get(t)}},4509:function(t,r,e){var n=e(2651);t.exports=function(t){return n(this,t).has(t)}},2949:function(t,r,e){var n=e(2651);t.exports=function(t,r){var e=n(this,t),o=e.size;return e.set(t,r),this.size+=e.size==o?0:1,this}},317:function(t){t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}},2224:function(t,r,e){var n=e(104);t.exports=function(t){var r=n(t,(function(t){return 500===e.size&&e.clear(),t})),e=r.cache;return r}},1042:function(t,r,e){var n=e(6110)(Object,"create");t.exports=n},3650:function(t,r,e){var n=e(4335)(Object.keys,Object);t.exports=n},181:function(t){t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},6009:function(t,r,e){t=e.nmd(t);var n=e(4840),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o&&n.process,c=function(){try{return i&&i.require&&i.require("util").types||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=c},9350:function(t){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},4335:function(t){t.exports=function(t,r){return function(e){return t(r(e))}}},9325:function(t,r,e){var n=e(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},1380:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1459:function(t){t.exports=function(t){return this.__data__.has(t)}},4247:function(t){t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}},1420:function(t,r,e){var n=e(79);t.exports=function(){this.__data__=new n,this.size=0}},938:function(t){t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},3605:function(t){t.exports=function(t){return this.__data__.get(t)}},9817:function(t){t.exports=function(t){return this.__data__.has(t)}},945:function(t,r,e){var n=e(79),o=e(8223),i=e(3661);t.exports=function(t,r){var e=this.__data__;if(e instanceof n){var u=e.__data__;if(!o||u.length<199)return u.push([t,r]),this.size=++e.size,this;e=this.__data__=new i(u)}return e.set(t,r),this.size=e.size,this}},1802:function(t,r,e){var n=e(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=n((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(o,(function(t,e,n,o){r.push(n?o.replace(i,"$1"):e||t)})),r}));t.exports=u},7797:function(t,r,e){var n=e(4394);t.exports=function(t){if("string"==typeof t||n(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},7473:function(t){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},9647:function(t,r,e){var n=e(9999);t.exports=function(t,r){return n(t,5,r="function"==typeof r?r:void 0)}},5288:function(t){t.exports=function(t,r){return t===r||t!=t&&r!=r}},8156:function(t,r,e){var n=e(7422);t.exports=function(t,r,e){var o=null==t?void 0:n(t,r);return void 0===o?e:o}},2428:function(t,r,e){var n=e(7534),o=e(346),i=Object.prototype,u=i.hasOwnProperty,c=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&u.call(t,"callee")&&!c.call(t,"callee")};t.exports=s},6449:function(t){var r=Array.isArray;t.exports=r},4894:function(t,r,e){var n=e(1882),o=e(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},3656:function(t,r,e){t=e.nmd(t);var n=e(9325),o=e(9935),i=r&&!r.nodeType&&r,u=i&&t&&!t.nodeType&&t,c=u&&u.exports===i?n.Buffer:void 0,s=(c?c.isBuffer:void 0)||o;t.exports=s},1900:function(t,r,e){var n=e(346),o=e(1331);t.exports=function(t){return n(t)&&1===t.nodeType&&!o(t)}},9132:function(t,r,e){var n=e(270);t.exports=function(t,r,e){var o=(e="function"==typeof e?e:void 0)?e(t,r):void 0;return void 0===o?n(t,r,void 0,e):!!o}},1882:function(t,r,e){var n=e(2552),o=e(3805);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},294:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7730:function(t,r,e){var n=e(9172),o=e(7301),i=e(6009),u=i&&i.isMap,c=u?o(u):n;t.exports=c},3805:function(t){t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},346:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},1331:function(t,r,e){var n=e(2552),o=e(8879),i=e(346),u=Function.prototype,c=Object.prototype,s=u.toString,a=c.hasOwnProperty,f=s.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var r=o(t);if(null===r)return!0;var e=a.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&s.call(e)==f}},8440:function(t,r,e){var n=e(6038),o=e(7301),i=e(6009),u=i&&i.isSet,c=u?o(u):n;t.exports=c},5015:function(t,r,e){var n=e(2552),o=e(6449),i=e(346);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},4394:function(t,r,e){var n=e(2552),o=e(346);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},7167:function(t,r,e){var n=e(4901),o=e(7301),i=e(6009),u=i&&i.isTypedArray,c=u?o(u):n;t.exports=c},5950:function(t,r,e){var n=e(695),o=e(8984),i=e(4894);t.exports=function(t){return i(t)?n(t):o(t)}},7241:function(t,r,e){var n=e(695),o=e(2903),i=e(4894);t.exports=function(t){return i(t)?n(t,!0):o(t)}},104:function(t,r,e){var n=e(3661);function o(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],i=e.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return e.cache=i.set(o,u)||i,u};return e.cache=new(o.Cache||n),e}o.Cache=n,t.exports=o},3560:function(t,r,e){var n=e(3170);t.exports=function(t,r,e){return null==t?t:n(t,r,e)}},3345:function(t){t.exports=function(){return[]}},9935:function(t){t.exports=function(){return!1}},3222:function(t,r,e){var n=e(7556);t.exports=function(t){return null==t?"":n(t)}},8572:function(t){"use strict";t.exports=function t(r){try{return r}catch(t){}if(Object.isFrozen(r))return r;if(!Array.isArray(r)&&Object.getPrototypeOf(r)!==Object.getPrototypeOf({}))throw new Error("simpleDeepFreeze only supports plain objects, arrays, and primitives");return Object.freeze(r),Object.keys(r).forEach((function(e){t(r[e])})),r}},9763:function(t,r,e){t.exports=e(6450)},1393:function(t,r,e){t.exports=e(530)},8079:function(t,r,e){t.exports=e(8894)},8979:function(t,r,e){t.exports=e(6686)},165:function(t,r,e){t.exports=e(2268)},8573:function(t,r,e){t.exports=e(4532)},6751:function(t,r,e){t.exports=e(3220)},9493:function(t,r,e){t.exports=e(2102)},9261:function(t,r,e){t.exports=e(9157)},6781:function(t,r,e){t.exports=e(4139)},7842:function(t,r,e){t.exports=e(9428)},2222:function(t,r,e){t.exports=e(1519)},7985:function(t,r,e){"use strict";var n=e(6450);t.exports=n},7725:function(t,r,e){"use strict";var n=e(8402);t.exports=n},8690:function(t,r,e){"use strict";var n=e(3067);t.exports=n},5779:function(t,r,e){"use strict";var n=e(3266);t.exports=n},6221:function(t,r,e){"use strict";var n=e(6686);t.exports=n},7264:function(t,r,e){"use strict";var n=e(4139);e(768),e(8549),e(7152),e(1372),t.exports=n},9692:function(t,r,e){"use strict";var n=e(7045);t.exports=n},3607:function(t,r,e){"use strict";e(7057),e(7277);var n=e(2046);t.exports=n.Array.from},3531:function(t,r,e){"use strict";e(2425);var n=e(2046);t.exports=n.Array.isArray},6275:function(t,r,e){"use strict";e(8545);var n=e(1747);t.exports=n("Array","concat")},8253:function(t,r,e){"use strict";e(6687);var n=e(1747);t.exports=n("Array","map")},1127:function(t,r,e){"use strict";e(5745);var n=e(1747);t.exports=n("Array","push")},5265:function(t,r,e){"use strict";e(2099);var n=e(1747);t.exports=n("Array","slice")},4712:function(t,r,e){"use strict";e(9363),e(7057);var n=e(3448);t.exports=n},5837:function(t,r,e){"use strict";var n=e(8280),o=e(6275),i=Array.prototype;t.exports=function(t){var r=t.concat;return t===i||n(i,t)&&r===i.concat?o:r}},9299:function(t,r,e){"use strict";var n=e(8280),o=e(8253),i=Array.prototype;t.exports=function(t){var r=t.map;return t===i||n(i,t)&&r===i.map?o:r}},8685:function(t,r,e){"use strict";var n=e(8280),o=e(1127),i=Array.prototype;t.exports=function(t){var r=t.push;return t===i||n(i,t)&&r===i.push?o:r}},303:function(t,r,e){"use strict";var n=e(8280),o=e(5265),i=Array.prototype;t.exports=function(t){var r=t.slice;return t===i||n(i,t)&&r===i.slice?o:r}},7961:function(t,r,e){"use strict";var n=e(8280),o=e(4491),i=String.prototype;t.exports=function(t){var r=t.startsWith;return"string"==typeof t||t===i||n(i,t)&&r===i.startsWith?o:r}},7649:function(t,r,e){"use strict";e(4729);var n=e(2046);t.exports=n.Object.entries},9147:function(t,r,e){"use strict";e(179);var n=e(2046);t.exports=n.Object.getOwnPropertyDescriptors},4137:function(t,r,e){"use strict";e(8833);var n=e(2046).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},9378:function(t,r,e){"use strict";e(9363),e(3643),e(1542),e(6951),e(5905),e(1852),e(7809),e(106),e(2657),e(3709),e(7057);var n=e(2046);t.exports=n.Set},4491:function(t,r,e){"use strict";e(2395);var n=e(1747);t.exports=n("String","startsWith")},3842:function(t,r,e){"use strict";e(8545),e(3643),e(4452),e(3997),e(5084),e(2596),e(5721),e(4954),e(4123),e(3377),e(2230),e(5344),e(1660),e(4610),e(3669),e(4810),e(3325),e(7024),e(8172),e(5205);var n=e(2046);t.exports=n.Symbol},1730:function(t,r,e){"use strict";e(9363),e(3643),e(7057),e(4954);var n=e(560);t.exports=n.f("iterator")},7173:function(t,r,e){"use strict";e(9363),e(3643),e(6571);var n=e(2046);t.exports=n.WeakMap},1519:function(t,r,e){"use strict";t.exports=e(9029)},8980:function(t,r,e){"use strict";var n=e(7985);t.exports=n},1564:function(t,r,e){"use strict";var n=e(7725);t.exports=n},9029:function(t,r,e){"use strict";var n=e(8690);t.exports=n},3520:function(t,r,e){"use strict";var n=e(5779);t.exports=n},4908:function(t,r,e){"use strict";var n=e(6221);t.exports=n},2321:function(t,r,e){"use strict";var n=e(7264);e(3939),e(1785),e(1697),e(4664),e(3422),e(36),e(8703),e(6878),e(9671),e(359),t.exports=n},2231:function(t,r,e){"use strict";var n=e(9692);t.exports=n},2159:function(t,r,e){"use strict";var n=e(2250),o=e(4640),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},43:function(t,r,e){"use strict";var n=e(4018),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},2911:function(t,r,e){"use strict";var n=e(4640),o=TypeError;t.exports=function(t){if("object"==typeof t&&"size"in t&&"has"in t&&"add"in t&&"delete"in t&&"keys"in t)return t;throw new o(n(t)+" is not a set")}},2156:function(t){"use strict";t.exports=function(){}},9596:function(t,r,e){"use strict";var n=e(8280),o=TypeError;t.exports=function(t,r){if(n(r,t))return t;throw new o("Incorrect invocation")}},6624:function(t,r,e){"use strict";var n=e(6285),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},6375:function(t,r,e){"use strict";var n=e(8828);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},1229:function(t,r,e){"use strict";var n=e(8311),o=e(3930),i=e(9298),u=e(6818),c=e(7812),s=e(5468),a=e(575),f=e(5543),p=e(300),l=e(3448),v=Array;t.exports=function(t){var r=i(t),e=s(this),h=arguments.length,y=h>1?arguments[1]:void 0,d=void 0!==y;d&&(y=n(y,h>2?arguments[2]:void 0));var b,g,x,m,j,w,O=l(r),S=0;if(!O||this===v&&c(O))for(b=a(r),g=e?new this(b):v(b);b>S;S++)w=d?y(r[S],S):r[S],f(g,S,w);else for(g=e?new this:[],j=(m=p(r,O)).next;!(x=o(j,m)).done;S++)w=d?u(m,y,[x.value,S],!0):x.value,f(g,S,w);return g.length=S,g}},4436:function(t,r,e){"use strict";var n=e(7374),o=e(4849),i=e(575),u=function(t){return function(r,e,u){var c=n(r),s=i(c);if(0===s)return!t&&-1;var a,f=o(u,s);if(t&&e!=e){for(;s>f;)if((a=c[f++])!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},726:function(t,r,e){"use strict";var n=e(8311),o=e(1907),i=e(6946),u=e(9298),c=e(575),s=e(6968),a=o([].push),f=function(t){var r=1===t,e=2===t,o=3===t,f=4===t,p=6===t,l=7===t,v=5===t||p;return function(h,y,d,b){for(var g,x,m=u(h),j=i(m),w=c(j),O=n(y,d),S=0,_=b||s,A=r?_(h,w):e||l?_(h,0):void 0;w>S;S++)if((v||S in j)&&(x=O(g=j[S],S,m),t))if(r)A[S]=x;else if(x)switch(t){case 3:return!0;case 5:return g;case 6:return S;case 2:a(A,g)}else switch(t){case 4:return!1;case 7:a(A,g)}return p?-1:o||f?f:A}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},7171:function(t,r,e){"use strict";var n=e(8828),o=e(6264),i=e(5683),u=o("species");t.exports=function(t){return i>=51||!n((function(){var r=[];return(r.constructor={})[u]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},3130:function(t,r,e){"use strict";var n=e(9447),o=e(1793),i=TypeError,u=Object.getOwnPropertyDescriptor,c=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=c?function(t,r){if(o(t)&&!u(t,"length").writable)throw new i("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r}},3427:function(t,r,e){"use strict";var n=e(1907);t.exports=n([].slice)},4010:function(t,r,e){"use strict";var n=e(1793),o=e(5468),i=e(6285),u=e(6264)("species"),c=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(o(r)&&(r===c||n(r.prototype))||i(r)&&null===(r=r[u]))&&(r=void 0)),void 0===r?c:r}},6968:function(t,r,e){"use strict";var n=e(4010);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},6818:function(t,r,e){"use strict";var n=e(6624),o=e(154);t.exports=function(t,r,e,i){try{return i?r(n(e)[0],e[1]):r(e)}catch(r){o(t,"throw",r)}}},9841:function(t){"use strict";t.exports=function(t,r){return 1===r?function(r,e){return r[t](e)}:function(r,e,n){return r[t](e,n)}}},473:function(t,r,e){"use strict";var n=e(6264)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,r){try{if(!r&&!o)return!1}catch(t){return!1}var e=!1;try{var i={};i[n]=function(){return{next:function(){return{done:e=!0}}}},t(i)}catch(t){}return e}},5807:function(t,r,e){"use strict";var n=e(1907),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},3948:function(t,r,e){"use strict";var n=e(2623),o=e(2250),i=e(5807),u=e(6264)("toStringTag"),c=Object,s="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=c(t),u))?e:s?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},217:function(t,r,e){"use strict";var n=e(8075),o=e(9251),i=e(2802),u=e(8311),c=e(9596),s=e(7136),a=e(4823),f=e(183),p=e(9550),l=e(7118),v=e(9447),h=e(1548).fastKey,y=e(2551),d=y.set,b=y.getterFor;t.exports={getConstructor:function(t,r,e,f){var p=t((function(t,o){c(t,l),d(t,{type:r,index:n(null),first:void 0,last:void 0,size:0}),v||(t.size=0),s(o)||a(o,t[f],{that:t,AS_ENTRIES:e})})),l=p.prototype,y=b(r),g=function(t,r,e){var n,o,i=y(t),u=x(t,r);return u?u.value=e:(i.last=u={index:o=h(r,!0),key:r,value:e,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),v?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},x=function(t,r){var e,n=y(t),o=h(r);if("F"!==o)return n.index[o];for(e=n.first;e;e=e.next)if(e.key===r)return e};return i(l,{clear:function(){for(var t=y(this),r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),r=r.next;t.first=t.last=void 0,t.index=n(null),v?t.size=0:this.size=0},delete:function(t){var r=this,e=y(r),n=x(r,t);if(n){var o=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),e.first===n&&(e.first=o),e.last===n&&(e.last=i),v?e.size--:r.size--}return!!n},forEach:function(t){for(var r,e=y(this),n=u(t,arguments.length>1?arguments[1]:void 0);r=r?r.next:e.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!x(this,t)}}),i(l,e?{get:function(t){var r=x(this,t);return r&&r.value},set:function(t,r){return g(this,0===t?0:t,r)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),v&&o(l,"size",{configurable:!0,get:function(){return y(this).size}}),p},setStrong:function(t,r,e){var n=r+" Iterator",o=b(r),i=b(n);f(t,r,(function(t,r){d(this,{type:n,target:t,state:o(t),kind:r,last:void 0})}),(function(){for(var t=i(this),r=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?p("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,p(void 0,!0))}),e?"entries":"values",!e,!0),l(r)}}},1182:function(t,r,e){"use strict";var n=e(1907),o=e(2802),i=e(1548).getWeakData,u=e(9596),c=e(6624),s=e(7136),a=e(6285),f=e(4823),p=e(726),l=e(9724),v=e(2551),h=v.set,y=v.getterFor,d=p.find,b=p.findIndex,g=n([].splice),x=0,m=function(t){return t.frozen||(t.frozen=new j)},j=function(){this.entries=[]},w=function(t,r){return d(t.entries,(function(t){return t[0]===r}))};j.prototype={get:function(t){var r=w(this,t);if(r)return r[1]},has:function(t){return!!w(this,t)},set:function(t,r){var e=w(this,t);e?e[1]=r:this.entries.push([t,r])},delete:function(t){var r=b(this.entries,(function(r){return r[0]===t}));return~r&&g(this.entries,r,1),!!~r}},t.exports={getConstructor:function(t,r,e,n){var p=t((function(t,o){u(t,v),h(t,{type:r,id:x++,frozen:void 0}),s(o)||f(o,t[n],{that:t,AS_ENTRIES:e})})),v=p.prototype,d=y(r),b=function(t,r,e){var n=d(t),o=i(c(r),!0);return!0===o?m(n).set(r,e):o[n.id]=e,t};return o(v,{delete:function(t){var r=d(this);if(!a(t))return!1;var e=i(t);return!0===e?m(r).delete(t):e&&l(e,r.id)&&delete e[r.id]},has:function(t){var r=d(this);if(!a(t))return!1;var e=i(t);return!0===e?m(r).has(t):e&&l(e,r.id)}}),o(v,e?{get:function(t){var r=d(this);if(a(t)){var e=i(t);return!0===e?m(r).get(t):e?e[r.id]:void 0}},set:function(t,r){return b(this,t,r)}}:{add:function(t){return b(this,t,!0)}}),p}}},7081:function(t,r,e){"use strict";var n=e(1091),o=e(1010),i=e(1548),u=e(8828),c=e(1626),s=e(4823),a=e(9596),f=e(2250),p=e(6285),l=e(7136),v=e(2459),h=e(4284).f,y=e(726).forEach,d=e(9447),b=e(2551),g=b.set,x=b.getterFor;t.exports=function(t,r,e){var b,m=-1!==t.indexOf("Map"),j=-1!==t.indexOf("Weak"),w=m?"set":"add",O=o[t],S=O&&O.prototype,_={};if(d&&f(O)&&(j||S.forEach&&!u((function(){(new O).entries().next()})))){var A=(b=r((function(r,e){g(a(r,A),{type:t,collection:new O}),l(e)||s(e,r[w],{that:r,AS_ENTRIES:m})}))).prototype,E=x(t);y(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var r="add"===t||"set"===t;!(t in S)||j&&"clear"===t||c(A,t,(function(e,n){var o=E(this).collection;if(!r&&j&&!p(e))return"get"===t&&void 0;var i=o[t](0===e?0:e,n);return r?this:i}))})),j||h(A,"size",{configurable:!0,get:function(){return E(this).collection.size}})}else b=e.getConstructor(r,t,m,w),i.enable();return v(b,t,!1,!0),_[t]=b,n({global:!0,forced:!0},_),j||e.setStrong(b,t,m),b}},5735:function(t,r,e){"use strict";var n=e(6264)("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[n]=!1,"/./"[t](r)}catch(t){}}return!1}},7382:function(t,r,e){"use strict";var n=e(8828);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},9550:function(t){"use strict";t.exports=function(t,r){return{value:t,done:r}}},1626:function(t,r,e){"use strict";var n=e(9447),o=e(4284),i=e(5817);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},5817:function(t){"use strict";t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},5543:function(t,r,e){"use strict";var n=e(9447),o=e(4284),i=e(5817);t.exports=function(t,r,e){n?o.f(t,r,i(0,e)):t[r]=e}},9251:function(t,r,e){"use strict";var n=e(4284);t.exports=function(t,r,e){return n.f(t,r,e)}},8055:function(t,r,e){"use strict";var n=e(1626);t.exports=function(t,r,e,o){return o&&o.enumerable?t[r]=e:n(t,r,e),t}},2802:function(t,r,e){"use strict";var n=e(8055);t.exports=function(t,r,e){for(var o in r)e&&e.unsafe&&t[o]?t[o]=r[o]:n(t,o,r[o],e);return t}},2532:function(t,r,e){"use strict";var n=e(1010),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},9447:function(t,r,e){"use strict";var n=e(8828);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:function(t,r,e){"use strict";var n=e(1010),o=e(6285),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},8024:function(t){"use strict";var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},9287:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},4723:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},5683:function(t,r,e){"use strict";var n,o,i=e(1010),u=e(4723),c=i.process,s=i.Deno,a=c&&c.versions||s&&s.version,f=a&&a.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},376:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1091:function(t,r,e){"use strict";var n=e(1010),o=e(6024),i=e(2361),u=e(2250),c=e(3846).f,s=e(7463),a=e(2046),f=e(8311),p=e(1626),l=e(9724);e(6128);var v=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return o(t,this,arguments)};return r.prototype=t.prototype,r};t.exports=function(t,r){var e,o,h,y,d,b,g,x,m,j=t.target,w=t.global,O=t.stat,S=t.proto,_=w?n:O?n[j]:n[j]&&n[j].prototype,A=w?a:a[j]||p(a,j,{})[j],E=A.prototype;for(y in r)o=!(e=s(w?y:j+(O?".":"#")+y,t.forced))&&_&&l(_,y),b=A[y],o&&(g=t.dontCallGetSet?(m=c(_,y))&&m.value:_[y]),d=o&&g?g:r[y],(e||S||typeof b!=typeof d)&&(x=t.bind&&o?f(d,n):t.wrap&&o?v(d):S&&u(d)?i(d):d,(t.sham||d&&d.sham||b&&b.sham)&&p(x,"sham",!0),p(A,y,x),S&&(l(a,h=j+"Prototype")||p(a,h,{}),p(a[h],y,d),t.real&&E&&(e||!E[y])&&p(E,y,d)))}},8828:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},5681:function(t,r,e){"use strict";var n=e(8828);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},6024:function(t,r,e){"use strict";var n=e(1505),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?u.bind(i):function(){return u.apply(i,arguments)})},8311:function(t,r,e){"use strict";var n=e(2361),o=e(2159),i=e(1505),u=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments)}}},1505:function(t,r,e){"use strict";var n=e(8828);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},3930:function(t,r,e){"use strict";var n=e(1505),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},6833:function(t,r,e){"use strict";var n=e(9447),o=e(9724),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),s=c&&"something"===function(){}.name,a=c&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:s,CONFIGURABLE:a}},1871:function(t,r,e){"use strict";var n=e(1907),o=e(2159);t.exports=function(t,r,e){try{return n(o(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}}},2361:function(t,r,e){"use strict";var n=e(5807),o=e(1907);t.exports=function(t){if("Function"===n(t))return o(t)}},1907:function(t,r,e){"use strict";var n=e(1505),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},1747:function(t,r,e){"use strict";var n=e(1010),o=e(2046);t.exports=function(t,r){var e=o[t+"Prototype"],i=e&&e[r];if(i)return i;var u=n[t],c=u&&u.prototype;return c&&c[r]}},5582:function(t,r,e){"use strict";var n=e(2046),o=e(1010),i=e(2250),u=function(t){return i(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?u(n[t])||u(o[t]):n[t]&&n[t][r]||o[t]&&o[t][r]}},3316:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},3448:function(t,r,e){"use strict";var n=e(3948),o=e(9367),i=e(7136),u=e(3742),c=e(6264)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||u[n(t)]}},300:function(t,r,e){"use strict";var n=e(3930),o=e(2159),i=e(6624),u=e(4640),c=e(3448),s=TypeError;t.exports=function(t,r){var e=arguments.length<2?c(t):r;if(o(e))return i(n(e,t));throw new s(u(t)+" is not iterable")}},6656:function(t,r,e){"use strict";var n=e(1907),o=e(1793),i=e(2250),u=e(5807),c=e(160),s=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var r=t.length,e=[],n=0;n<r;n++){var a=t[n];"string"==typeof a?s(e,a):"number"!=typeof a&&"Number"!==u(a)&&"String"!==u(a)||s(e,c(a))}var f=e.length,p=!0;return function(t,r){if(p)return p=!1,r;if(o(this))return r;for(var n=0;n<f;n++)if(e[n]===t)return r}}}},9367:function(t,r,e){"use strict";var n=e(2159),o=e(7136);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},2332:function(t,r,e){"use strict";var n=e(2159),o=e(6624),i=e(3930),u=e(5482),c=e(3316),s="Invalid size",a=RangeError,f=TypeError,p=Math.max,l=function(t,r){this.set=t,this.size=p(r,0),this.has=n(t.has),this.keys=n(t.keys)};l.prototype={getIterator:function(){return c(o(i(this.keys,this.set)))},includes:function(t){return i(this.has,this.set,t)}},t.exports=function(t){o(t);var r=+t.size;if(r!=r)throw new f(s);var e=u(r);if(e<0)throw new a(s);return new l(t,e)}},1010:function(t,r,e){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9724:function(t,r,e){"use strict";var n=e(1907),o=e(9298),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},8530:function(t){"use strict";t.exports={}},2416:function(t,r,e){"use strict";var n=e(5582);t.exports=n("document","documentElement")},3648:function(t,r,e){"use strict";var n=e(9447),o=e(8828),i=e(9552);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6946:function(t,r,e){"use strict";var n=e(1907),o=e(8828),i=e(5807),u=Object,c=n("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):u(t)}:u},2647:function(t,r,e){"use strict";var n=e(1907),o=e(2250),i=e(6128),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},1548:function(t,r,e){"use strict";var n=e(1091),o=e(1907),i=e(8530),u=e(6285),c=e(9724),s=e(4284).f,a=e(4443),f=e(5407),p=e(7005),l=e(6499),v=e(5681),h=!1,y=l("meta"),d=0,b=function(t){s(t,y,{value:{objectID:"O"+d++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},h=!0;var t=a.f,r=o([].splice),e={};e[y]=1,t(e).length&&(a.f=function(e){for(var n=t(e),o=0,i=n.length;o<i;o++)if(n[o]===y){r(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,r){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,y)){if(!p(t))return"F";if(!r)return"E";b(t)}return t[y].objectID},getWeakData:function(t,r){if(!c(t,y)){if(!p(t))return!0;if(!r)return!1;b(t)}return t[y].weakData},onFreeze:function(t){return v&&h&&p(t)&&!c(t,y)&&b(t),t}};i[y]=!0},2551:function(t,r,e){"use strict";var n,o,i,u=e(551),c=e(1010),s=e(6285),a=e(1626),f=e(9724),p=e(6128),l=e(2522),v=e(8530),h="Object already initialized",y=c.TypeError,d=c.WeakMap;if(u||p.state){var b=p.state||(p.state=new d);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,r){if(b.has(t))throw new y(h);return r.facade=t,b.set(t,r),r},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var g=l("state");v[g]=!0,n=function(t,r){if(f(t,g))throw new y(h);return r.facade=t,a(t,g,r),r},o=function(t){return f(t,g)?t[g]:{}},i=function(t){return f(t,g)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!s(r)||(e=o(r)).type!==t)throw new y("Incompatible receiver, "+t+" required");return e}}}},7812:function(t,r,e){"use strict";var n=e(6264),o=e(3742),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},1793:function(t,r,e){"use strict";var n=e(5807);t.exports=Array.isArray||function(t){return"Array"===n(t)}},2250:function(t){"use strict";var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},5468:function(t,r,e){"use strict";var n=e(1907),o=e(8828),i=e(2250),u=e(3948),c=e(5582),s=e(2647),a=function(){},f=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,l=n(p.exec),v=!p.test(a),h=function(t){if(!i(t))return!1;try{return f(a,[],t),!0}catch(t){return!1}},y=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!l(p,s(t))}catch(t){return!0}};y.sham=!0,t.exports=!f||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?y:h},7463:function(t,r,e){"use strict";var n=e(8828),o=e(2250),i=/#|\.prototype\./,u=function(t,r){var e=s[c(t)];return e===f||e!==a&&(o(r)?n(r):!!r)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=u.data={},a=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},7136:function(t){"use strict";t.exports=function(t){return null==t}},6285:function(t,r,e){"use strict";var n=e(2250);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},4018:function(t,r,e){"use strict";var n=e(6285);t.exports=function(t){return n(t)||null===t}},7376:function(t){"use strict";t.exports=!0},2087:function(t,r,e){"use strict";var n=e(6285),o=e(5807),i=e(6264)("match");t.exports=function(t){var r;return n(t)&&(void 0!==(r=t[i])?!!r:"RegExp"===o(t))}},5594:function(t,r,e){"use strict";var n=e(5582),o=e(2250),i=e(8280),u=e(1175),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,c(t))}},2190:function(t,r,e){"use strict";var n=e(3930);t.exports=function(t,r,e){for(var o,i,u=e?t:t.iterator,c=t.next;!(o=n(c,u)).done;)if(void 0!==(i=r(o.value)))return i}},4823:function(t,r,e){"use strict";var n=e(8311),o=e(3930),i=e(6624),u=e(4640),c=e(7812),s=e(575),a=e(8280),f=e(300),p=e(3448),l=e(154),v=TypeError,h=function(t,r){this.stopped=t,this.result=r},y=h.prototype;t.exports=function(t,r,e){var d,b,g,x,m,j,w,O=e&&e.that,S=!(!e||!e.AS_ENTRIES),_=!(!e||!e.IS_RECORD),A=!(!e||!e.IS_ITERATOR),E=!(!e||!e.INTERRUPTED),P=n(r,O),z=function(t){return d&&l(d,"normal",t),new h(!0,t)},k=function(t){return S?(i(t),E?P(t[0],t[1],z):P(t[0],t[1])):E?P(t,z):P(t)};if(_)d=t.iterator;else if(A)d=t;else{if(!(b=p(t)))throw new v(u(t)+" is not iterable");if(c(b)){for(g=0,x=s(t);x>g;g++)if((m=k(t[g]))&&a(y,m))return m;return new h(!1)}d=f(t,b)}for(j=_?t.next:d.next;!(w=o(j,d)).done;){try{m=k(w.value)}catch(t){l(d,"throw",t)}if("object"==typeof m&&m&&a(y,m))return m}return new h(!1)}},154:function(t,r,e){"use strict";var n=e(3930),o=e(6624),i=e(9367);t.exports=function(t,r,e){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===r)throw e;return e}u=n(u,t)}catch(t){c=!0,u=t}if("throw"===r)throw e;if(c)throw u;return o(u),e}},7181:function(t,r,e){"use strict";var n=e(5116).IteratorPrototype,o=e(8075),i=e(5817),u=e(2459),c=e(3742),s=function(){return this};t.exports=function(t,r,e,a){var f=r+" Iterator";return t.prototype=o(n,{next:i(+!a,e)}),u(t,f,!1,!0),c[f]=s,t}},183:function(t,r,e){"use strict";var n=e(1091),o=e(3930),i=e(7376),u=e(6833),c=e(2250),s=e(7181),a=e(5972),f=e(9192),p=e(2459),l=e(1626),v=e(8055),h=e(6264),y=e(3742),d=e(5116),b=u.PROPER,g=u.CONFIGURABLE,x=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,j=h("iterator"),w="keys",O="values",S="entries",_=function(){return this};t.exports=function(t,r,e,u,h,d,A){s(e,r,u);var E,P,z,k=function(t){if(t===h&&M)return M;if(!m&&t&&t in D)return D[t];switch(t){case w:case O:case S:return function(){return new e(this,t)}}return function(){return new e(this)}},I=r+" Iterator",T=!1,D=t.prototype,F=D[j]||D["@@iterator"]||h&&D[h],M=!m&&F||k(h),N="Array"===r&&D.entries||F;if(N&&(E=a(N.call(new t)))!==Object.prototype&&E.next&&(i||a(E)===x||(f?f(E,x):c(E[j])||v(E,j,_)),p(E,I,!0,!0),i&&(y[I]=_)),b&&h===O&&F&&F.name!==O&&(!i&&g?l(D,"name",O):(T=!0,M=function(){return o(F,this)})),h)if(P={values:k(O),keys:d?M:k(w),entries:k(S)},A)for(z in P)(m||T||!(z in D))&&v(D,z,P[z]);else n({target:r,proto:!0,forced:m||T},P);return i&&!A||D[j]===M||v(D,j,M,{name:h}),y[r]=M,P}},5116:function(t,r,e){"use strict";var n,o,i,u=e(8828),c=e(2250),s=e(6285),a=e(8075),f=e(5972),p=e(8055),l=e(6264),v=e(7376),h=l("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):y=!0),!s(n)||u((function(){var t={};return n[h].call(t)!==t}))?n={}:v&&(n=a(n)),c(n[h])||p(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},3742:function(t){"use strict";t.exports={}},575:function(t,r,e){"use strict";var n=e(3121);t.exports=function(t){return n(t.length)}},1176:function(t){"use strict";var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},2074:function(t,r,e){"use strict";var n=e(2087),o=TypeError;t.exports=function(t){if(n(t))throw new o("The method doesn't accept regular expressions");return t}},8075:function(t,r,e){"use strict";var n,o=e(6624),i=e(2220),u=e(376),c=e(8530),s=e(2416),a=e(9552),f=e(2522),p="prototype",l="script",v=f("IE_PROTO"),h=function(){},y=function(t){return"<"+l+">"+t+"</"+l+">"},d=function(t){t.write(y("")),t.close();var r=t.parentWindow.Object;return t=null,r},b=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;b="undefined"!=typeof document?document.domain&&n?d(n):(r=a("iframe"),e="java"+l+":",r.style.display="none",s.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F):d(n);for(var o=u.length;o--;)delete b[p][u[o]];return b()};c[v]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(h[p]=o(t),e=new h,h[p]=null,e[v]=t):e=b(),void 0===r?e:i.f(e,r)}},2220:function(t,r,e){"use strict";var n=e(9447),o=e(8661),i=e(4284),u=e(6624),c=e(7374),s=e(2875);r.f=n&&!o?Object.defineProperties:function(t,r){u(t);for(var e,n=c(r),o=s(r),a=o.length,f=0;a>f;)i.f(t,e=o[f++],n[e]);return t}},4284:function(t,r,e){"use strict";var n=e(9447),o=e(3648),i=e(8661),u=e(6624),c=e(470),s=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(u(t),r=c(r),u(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=f(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:p in e?e[p]:n[p],writable:!1})}return a(t,r,e)}:a:function(t,r,e){if(u(t),r=c(r),u(e),o)try{return a(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new s("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},3846:function(t,r,e){"use strict";var n=e(9447),o=e(3930),i=e(2574),u=e(5817),c=e(7374),s=e(470),a=e(9724),f=e(3648),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(t,r){if(t=c(t),r=s(r),f)try{return p(t,r)}catch(t){}if(a(t,r))return u(!o(i.f,t,r),t[r])}},5407:function(t,r,e){"use strict";var n=e(5807),o=e(7374),i=e(4443).f,u=e(3427),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"===n(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},4443:function(t,r,e){"use strict";var n=e(3045),o=e(376).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},7170:function(t,r){"use strict";r.f=Object.getOwnPropertySymbols},5972:function(t,r,e){"use strict";var n=e(9724),o=e(2250),i=e(9298),u=e(2522),c=e(7382),s=u("IE_PROTO"),a=Object,f=a.prototype;t.exports=c?a.getPrototypeOf:function(t){var r=i(t);if(n(r,s))return r[s];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof a?f:null}},7005:function(t,r,e){"use strict";var n=e(8828),o=e(6285),i=e(5807),u=e(6375),c=Object.isExtensible,s=n((function(){c(1)}));t.exports=s||u?function(t){return!!o(t)&&(!u||"ArrayBuffer"!==i(t))&&(!c||c(t))}:c},8280:function(t,r,e){"use strict";var n=e(1907);t.exports=n({}.isPrototypeOf)},3045:function(t,r,e){"use strict";var n=e(1907),o=e(9724),i=e(7374),u=e(4436).indexOf,c=e(8530),s=n([].push);t.exports=function(t,r){var e,n=i(t),a=0,f=[];for(e in n)!o(c,e)&&o(n,e)&&s(f,e);for(;r.length>a;)o(n,e=r[a++])&&(~u(f,e)||s(f,e));return f}},2875:function(t,r,e){"use strict";var n=e(3045),o=e(376);t.exports=Object.keys||function(t){return n(t,o)}},2574:function(t,r){"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},9192:function(t,r,e){"use strict";var n=e(1871),o=e(6285),i=e(4239),u=e(43);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=n(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return i(e),u(n),o(e)?(r?t(e,n):e.__proto__=n,e):e}}():void 0)},4298:function(t,r,e){"use strict";var n=e(9447),o=e(8828),i=e(1907),u=e(5972),c=e(2875),s=e(7374),a=i(e(2574).f),f=i([].push),p=n&&o((function(){var t=Object.create(null);return t[2]=2,!a(t,2)})),l=function(t){return function(r){for(var e,o=s(r),i=c(o),l=p&&null===u(o),v=i.length,h=0,y=[];v>h;)e=i[h++],n&&!(l?e in o:a(o,e))||f(y,t?[e,o[e]]:o[e]);return y}};t.exports={entries:l(!0),values:l(!1)}},4878:function(t,r,e){"use strict";var n=e(2623),o=e(3948);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},581:function(t,r,e){"use strict";var n=e(3930),o=e(2250),i=e(6285),u=TypeError;t.exports=function(t,r){var e,c;if("string"===r&&o(e=t.toString)&&!i(c=n(e,t)))return c;if(o(e=t.valueOf)&&!i(c=n(e,t)))return c;if("string"!==r&&o(e=t.toString)&&!i(c=n(e,t)))return c;throw new u("Can't convert object to primitive value")}},5804:function(t,r,e){"use strict";var n=e(5582),o=e(1907),i=e(4443),u=e(7170),c=e(6624),s=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(c(t)),e=u.f;return e?s(r,e(t)):r}},2046:function(t){"use strict";t.exports={}},4239:function(t,r,e){"use strict";var n=e(7136),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},6913:function(t,r,e){"use strict";var n=e(3881),o=e(1330),i=n.Set,u=n.add;t.exports=function(t){var r=new i;return o(t,(function(t){u(r,t)})),r}},5953:function(t,r,e){"use strict";var n=e(2911),o=e(3881),i=e(6913),u=e(5743),c=e(2332),s=e(1330),a=e(2190),f=o.has,p=o.remove;t.exports=function(t){var r=n(this),e=c(t),o=i(r);return u(r)<=e.size?s(r,(function(t){e.includes(t)&&p(o,t)})):a(e.getIterator(),(function(t){f(r,t)&&p(o,t)})),o}},3881:function(t,r,e){"use strict";var n=e(5582),o=e(9841),i=n("Set"),u=i.prototype;t.exports={Set:i,add:o("add",1),has:o("has",1),remove:o("delete",1),proto:u}},5331:function(t,r,e){"use strict";var n=e(2911),o=e(3881),i=e(5743),u=e(2332),c=e(1330),s=e(2190),a=o.Set,f=o.add,p=o.has;t.exports=function(t){var r=n(this),e=u(t),o=new a;return i(r)>e.size?s(e.getIterator(),(function(t){p(r,t)&&f(o,t)})):c(r,(function(t){e.includes(t)&&f(o,t)})),o}},1732:function(t,r,e){"use strict";var n=e(2911),o=e(3881).has,i=e(5743),u=e(2332),c=e(1330),s=e(2190),a=e(154);t.exports=function(t){var r=n(this),e=u(t);if(i(r)<=e.size)return!1!==c(r,(function(t){if(e.includes(t))return!1}),!0);var f=e.getIterator();return!1!==s(f,(function(t){if(o(r,t))return a(f,"normal",!1)}))}},7491:function(t,r,e){"use strict";var n=e(2911),o=e(5743),i=e(1330),u=e(2332);t.exports=function(t){var r=n(this),e=u(t);return!(o(r)>e.size)&&!1!==i(r,(function(t){if(!e.includes(t))return!1}),!0)}},4002:function(t,r,e){"use strict";var n=e(2911),o=e(3881).has,i=e(5743),u=e(2332),c=e(2190),s=e(154);t.exports=function(t){var r=n(this),e=u(t);if(i(r)<e.size)return!1;var a=e.getIterator();return!1!==c(a,(function(t){if(!o(r,t))return s(a,"normal",!1)}))}},1330:function(t,r,e){"use strict";var n=e(2190);t.exports=function(t,r,e){return e?n(t.keys(),r,!0):t.forEach(r)}},3269:function(t){"use strict";t.exports=function(){return!1}},5743:function(t){"use strict";t.exports=function(t){return t.size}},7118:function(t,r,e){"use strict";var n=e(5582),o=e(9251),i=e(6264),u=e(9447),c=i("species");t.exports=function(t){var r=n(t);u&&r&&!r[c]&&o(r,c,{configurable:!0,get:function(){return this}})}},3763:function(t,r,e){"use strict";var n=e(2911),o=e(3881),i=e(6913),u=e(2332),c=e(2190),s=o.add,a=o.has,f=o.remove;t.exports=function(t){var r=n(this),e=u(t).getIterator(),o=i(r);return c(e,(function(t){a(r,t)?f(o,t):s(o,t)})),o}},2459:function(t,r,e){"use strict";var n=e(2623),o=e(4284).f,i=e(1626),u=e(9724),c=e(4878),s=e(6264)("toStringTag");t.exports=function(t,r,e,a){var f=e?t:t&&t.prototype;f&&(u(f,s)||o(f,s,{configurable:!0,value:r}),a&&!n&&i(f,"toString",c))}},1655:function(t,r,e){"use strict";var n=e(2911),o=e(3881).add,i=e(6913),u=e(2332),c=e(2190);t.exports=function(t){var r=n(this),e=u(t).getIterator(),s=i(r);return c(e,(function(t){o(s,t)})),s}},2522:function(t,r,e){"use strict";var n=e(5816),o=e(6499),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},6128:function(t,r,e){"use strict";var n=e(7376),o=e(1010),i=e(2532),u="__core-js_shared__",c=t.exports=o[u]||i(u,{});(c.versions||(c.versions=[])).push({version:"3.37.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5816:function(t,r,e){"use strict";var n=e(6128);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},1470:function(t,r,e){"use strict";var n=e(1907),o=e(5482),i=e(160),u=e(4239),c=n("".charAt),s=n("".charCodeAt),a=n("".slice),f=function(t){return function(r,e){var n,f,p=i(u(r)),l=o(e),v=p.length;return l<0||l>=v?t?"":void 0:(n=s(p,l))<55296||n>56319||l+1===v||(f=s(p,l+1))<56320||f>57343?t?c(p,l):n:t?a(p,l,l+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},9846:function(t,r,e){"use strict";var n=e(5683),o=e(8828),i=e(1010).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3467:function(t,r,e){"use strict";var n=e(3930),o=e(5582),i=e(6264),u=e(8055);t.exports=function(){var t=o("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,c=i("toPrimitive");r&&!r[c]&&u(r,c,(function(t){return n(e,this)}),{arity:1})}},2595:function(t,r,e){"use strict";var n=e(5582),o=e(1907),i=n("Symbol"),u=i.keyFor,c=o(i.prototype.valueOf);t.exports=i.isRegisteredSymbol||function(t){try{return void 0!==u(c(t))}catch(t){return!1}}},9197:function(t,r,e){"use strict";for(var n=e(5816),o=e(5582),i=e(1907),u=e(5594),c=e(6264),s=o("Symbol"),a=s.isWellKnownSymbol,f=o("Object","getOwnPropertyNames"),p=i(s.prototype.valueOf),l=n("wks"),v=0,h=f(s),y=h.length;v<y;v++)try{var d=h[v];u(s[d])&&c(d)}catch(t){}t.exports=function(t){if(a&&a(t))return!0;try{for(var r=p(t),e=0,n=f(l),o=n.length;e<o;e++)if(l[n[e]]==r)return!0}catch(t){}return!1}},4411:function(t,r,e){"use strict";var n=e(9846);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},4849:function(t,r,e){"use strict";var n=e(5482),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},7374:function(t,r,e){"use strict";var n=e(6946),o=e(4239);t.exports=function(t){return n(o(t))}},5482:function(t,r,e){"use strict";var n=e(1176);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},3121:function(t,r,e){"use strict";var n=e(5482),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},9298:function(t,r,e){"use strict";var n=e(4239),o=Object;t.exports=function(t){return o(n(t))}},6028:function(t,r,e){"use strict";var n=e(3930),o=e(6285),i=e(5594),u=e(9367),c=e(581),s=e(6264),a=TypeError,f=s("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,s=u(t,f);if(s){if(void 0===r&&(r="default"),e=n(s,t,r),!o(e)||i(e))return e;throw new a("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(t,r)}},470:function(t,r,e){"use strict";var n=e(6028),o=e(5594);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},2623:function(t,r,e){"use strict";var n={};n[e(6264)("toStringTag")]="z",t.exports="[object z]"===String(n)},160:function(t,r,e){"use strict";var n=e(3948),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},4640:function(t){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},6499:function(t,r,e){"use strict";var n=e(1907),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},1175:function(t,r,e){"use strict";var n=e(9846);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8661:function(t,r,e){"use strict";var n=e(9447),o=e(8828);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},551:function(t,r,e){"use strict";var n=e(1010),o=e(2250),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},366:function(t,r,e){"use strict";var n=e(2046),o=e(9724),i=e(560),u=e(4284).f;t.exports=function(t){var r=n.Symbol||(n.Symbol={});o(r,t)||u(r,t,{value:i.f(t)})}},560:function(t,r,e){"use strict";var n=e(6264);r.f=n},6264:function(t,r,e){"use strict";var n=e(1010),o=e(5816),i=e(9724),u=e(6499),c=e(9846),s=e(1175),a=n.Symbol,f=o("wks"),p=s?a.for||a:a&&a.withoutSetter||u;t.exports=function(t){return i(f,t)||(f[t]=c&&i(a,t)?a[t]:p("Symbol."+t)),f[t]}},8545:function(t,r,e){"use strict";var n=e(1091),o=e(8828),i=e(1793),u=e(6285),c=e(9298),s=e(575),a=e(8024),f=e(5543),p=e(6968),l=e(7171),v=e(6264),h=e(5683),y=v("isConcatSpreadable"),d=h>=51||!o((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),b=function(t){if(!u(t))return!1;var r=t[y];return void 0!==r?!!r:i(t)};n({target:"Array",proto:!0,arity:1,forced:!d||!l("concat")},{concat:function(t){var r,e,n,o,i,u=c(this),l=p(u,0),v=0;for(r=-1,n=arguments.length;r<n;r++)if(b(i=-1===r?u:arguments[r]))for(o=s(i),a(v+o),e=0;e<o;e++,v++)e in i&&f(l,v,i[e]);else a(v+1),f(l,v++,i);return l.length=v,l}})},7277:function(t,r,e){"use strict";var n=e(1091),o=e(1229);n({target:"Array",stat:!0,forced:!e(473)((function(t){Array.from(t)}))},{from:o})},2425:function(t,r,e){"use strict";e(1091)({target:"Array",stat:!0},{isArray:e(1793)})},9363:function(t,r,e){"use strict";var n=e(7374),o=e(2156),i=e(3742),u=e(2551),c=e(4284).f,s=e(183),a=e(9550),f=e(7376),p=e(9447),l="Array Iterator",v=u.set,h=u.getterFor(l);t.exports=s(Array,"Array",(function(t,r){v(this,{type:l,target:n(t),index:0,kind:r})}),(function(){var t=h(this),r=t.target,e=t.index++;if(!r||e>=r.length)return t.target=void 0,a(void 0,!0);switch(t.kind){case"keys":return a(e,!1);case"values":return a(r[e],!1)}return a([e,r[e]],!1)}),"values");var y=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&p&&"values"!==y.name)try{c(y,"name",{value:"values"})}catch(t){}},6687:function(t,r,e){"use strict";var n=e(1091),o=e(726).map;n({target:"Array",proto:!0,forced:!e(7171)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},5745:function(t,r,e){"use strict";var n=e(1091),o=e(9298),i=e(575),u=e(3130),c=e(8024);n({target:"Array",proto:!0,arity:1,forced:e(8828)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var r=o(this),e=i(r),n=arguments.length;c(e+n);for(var s=0;s<n;s++)r[e]=arguments[s],e++;return u(r,e),e}})},2099:function(t,r,e){"use strict";var n=e(1091),o=e(1793),i=e(5468),u=e(6285),c=e(4849),s=e(575),a=e(7374),f=e(5543),p=e(6264),l=e(7171),v=e(3427),h=l("slice"),y=p("species"),d=Array,b=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(t,r){var e,n,p,l=a(this),h=s(l),g=c(t,h),x=c(void 0===r?h:r,h);if(o(l)&&(e=l.constructor,(i(e)&&(e===d||o(e.prototype))||u(e)&&null===(e=e[y]))&&(e=void 0),e===d||void 0===e))return v(l,g,x);for(n=new(void 0===e?d:e)(b(x-g,0)),p=0;g<x;g++,p++)g in l&&f(n,p,l[g]);return n.length=p,n}})},9721:function(t,r,e){"use strict";var n=e(1091),o=e(5582),i=e(6024),u=e(3930),c=e(1907),s=e(8828),a=e(2250),f=e(5594),p=e(3427),l=e(6656),v=e(9846),h=String,y=o("JSON","stringify"),d=c(/./.exec),b=c("".charAt),g=c("".charCodeAt),x=c("".replace),m=c(1..toString),j=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,S=!v||s((function(){var t=o("Symbol")("stringify detection");return"[null]"!==y([t])||"{}"!==y({a:t})||"{}"!==y(Object(t))})),_=s((function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")})),A=function(t,r){var e=p(arguments),n=l(r);if(a(n)||void 0!==t&&!f(t))return e[1]=function(t,r){if(a(n)&&(r=u(n,this,h(t),r)),!f(r))return r},i(y,null,e)},E=function(t,r,e){var n=b(e,r-1),o=b(e,r+1);return d(w,t)&&!d(O,o)||d(O,t)&&!d(w,n)?"\\u"+m(g(t,0),16):t};y&&n({target:"JSON",stat:!0,arity:3,forced:S||_},{stringify:function(t,r,e){var n=p(arguments),o=i(S?A:y,null,n);return _&&"string"==typeof o?x(o,j,E):o}})},7024:function(t,r,e){"use strict";var n=e(1010);e(2459)(n.JSON,"JSON",!0)},8172:function(){},4729:function(t,r,e){"use strict";var n=e(1091),o=e(4298).entries;n({target:"Object",stat:!0},{entries:function(t){return o(t)}})},179:function(t,r,e){"use strict";var n=e(1091),o=e(9447),i=e(5804),u=e(7374),c=e(3846),s=e(5543);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var r,e,n=u(t),o=c.f,a=i(n),f={},p=0;a.length>p;)void 0!==(e=o(n,r=a[p++]))&&s(f,r,e);return f}})},8833:function(t,r,e){"use strict";var n=e(1091),o=e(8828),i=e(5407).f;n({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},5264:function(t,r,e){"use strict";var n=e(1091),o=e(9846),i=e(8828),u=e(7170),c=e(9298);n({target:"Object",stat:!0,forced:!o||i((function(){u.f(1)}))},{getOwnPropertySymbols:function(t){var r=u.f;return r?r(c(t)):[]}})},3643:function(){},5205:function(){},16:function(t,r,e){"use strict";e(7081)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),e(217))},6951:function(t,r,e){"use strict";var n=e(1091),o=e(5953);n({target:"Set",proto:!0,real:!0,forced:!e(3269)("difference")},{difference:o})},5905:function(t,r,e){"use strict";var n=e(1091),o=e(8828),i=e(5331);n({target:"Set",proto:!0,real:!0,forced:!e(3269)("intersection")||o((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:i})},1852:function(t,r,e){"use strict";var n=e(1091),o=e(1732);n({target:"Set",proto:!0,real:!0,forced:!e(3269)("isDisjointFrom")},{isDisjointFrom:o})},7809:function(t,r,e){"use strict";var n=e(1091),o=e(7491);n({target:"Set",proto:!0,real:!0,forced:!e(3269)("isSubsetOf")},{isSubsetOf:o})},106:function(t,r,e){"use strict";var n=e(1091),o=e(4002);n({target:"Set",proto:!0,real:!0,forced:!e(3269)("isSupersetOf")},{isSupersetOf:o})},1542:function(t,r,e){"use strict";e(16)},2657:function(t,r,e){"use strict";var n=e(1091),o=e(3763);n({target:"Set",proto:!0,real:!0,forced:!e(3269)("symmetricDifference")},{symmetricDifference:o})},3709:function(t,r,e){"use strict";var n=e(1091),o=e(1655);n({target:"Set",proto:!0,real:!0,forced:!e(3269)("union")},{union:o})},7057:function(t,r,e){"use strict";var n=e(1470).charAt,o=e(160),i=e(2551),u=e(183),c=e(9550),s="String Iterator",a=i.set,f=i.getterFor(s);u(String,"String",(function(t){a(this,{type:s,string:o(t),index:0})}),(function(){var t,r=f(this),e=r.string,o=r.index;return o>=e.length?c(void 0,!0):(t=n(e,o),r.index+=t.length,c(t,!1))}))},2395:function(t,r,e){"use strict";var n,o=e(1091),i=e(2361),u=e(3846).f,c=e(3121),s=e(160),a=e(2074),f=e(4239),p=e(5735),l=e(7376),v=i("".slice),h=Math.min,y=p("startsWith");o({target:"String",proto:!0,forced:!(!l&&!y&&(n=u(String.prototype,"startsWith"),n&&!n.writable)||y)},{startsWith:function(t){var r=s(f(this));a(t);var e=c(h(arguments.length>1?arguments[1]:void 0,r.length)),n=s(t);return v(r,e,e+n.length)===n}})},3997:function(t,r,e){"use strict";e(366)("asyncIterator")},3674:function(t,r,e){"use strict";var n=e(1091),o=e(1010),i=e(3930),u=e(1907),c=e(7376),s=e(9447),a=e(9846),f=e(8828),p=e(9724),l=e(8280),v=e(6624),h=e(7374),y=e(470),d=e(160),b=e(5817),g=e(8075),x=e(2875),m=e(4443),j=e(5407),w=e(7170),O=e(3846),S=e(4284),_=e(2220),A=e(2574),E=e(8055),P=e(9251),z=e(5816),k=e(2522),I=e(8530),T=e(6499),D=e(6264),F=e(560),M=e(366),N=e(3467),C=e(2459),R=e(2551),L=e(726).forEach,U=k("hidden"),W="Symbol",B="prototype",$=R.set,G=R.getterFor(W),V=Object[B],K=o.Symbol,H=K&&K[B],q=o.RangeError,J=o.TypeError,X=o.QObject,Y=O.f,Q=S.f,Z=j.f,tt=A.f,rt=u([].push),et=z("symbols"),nt=z("op-symbols"),ot=z("wks"),it=!X||!X[B]||!X[B].findChild,ut=function(t,r,e){var n=Y(V,r);n&&delete V[r],Q(t,r,e),n&&t!==V&&Q(V,r,n)},ct=s&&f((function(){return 7!==g(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?ut:Q,st=function(t,r){var e=et[t]=g(H);return $(e,{type:W,tag:t,description:r}),s||(e.description=r),e},at=function(t,r,e){t===V&&at(nt,r,e),v(t);var n=y(r);return v(e),p(et,n)?(e.enumerable?(p(t,U)&&t[U][n]&&(t[U][n]=!1),e=g(e,{enumerable:b(0,!1)})):(p(t,U)||Q(t,U,b(1,g(null))),t[U][n]=!0),ct(t,n,e)):Q(t,n,e)},ft=function(t,r){v(t);var e=h(r),n=x(e).concat(ht(e));return L(n,(function(r){s&&!i(pt,e,r)||at(t,r,e[r])})),t},pt=function(t){var r=y(t),e=i(tt,this,r);return!(this===V&&p(et,r)&&!p(nt,r))&&(!(e||!p(this,r)||!p(et,r)||p(this,U)&&this[U][r])||e)},lt=function(t,r){var e=h(t),n=y(r);if(e!==V||!p(et,n)||p(nt,n)){var o=Y(e,n);return!o||!p(et,n)||p(e,U)&&e[U][n]||(o.enumerable=!0),o}},vt=function(t){var r=Z(h(t)),e=[];return L(r,(function(t){p(et,t)||p(I,t)||rt(e,t)})),e},ht=function(t){var r=t===V,e=Z(r?nt:h(t)),n=[];return L(e,(function(t){!p(et,t)||r&&!p(V,t)||rt(n,et[t])})),n};a||(K=function(){if(l(H,this))throw new J("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?d(arguments[0]):void 0,r=T(t),e=function(t){var n=void 0===this?o:this;n===V&&i(e,nt,t),p(n,U)&&p(n[U],r)&&(n[U][r]=!1);var u=b(1,t);try{ct(n,r,u)}catch(t){if(!(t instanceof q))throw t;ut(n,r,u)}};return s&&it&&ct(V,r,{configurable:!0,set:e}),st(r,t)},E(H=K[B],"toString",(function(){return G(this).tag})),E(K,"withoutSetter",(function(t){return st(T(t),t)})),A.f=pt,S.f=at,_.f=ft,O.f=lt,m.f=j.f=vt,w.f=ht,F.f=function(t){return st(D(t),t)},s&&(P(H,"description",{configurable:!0,get:function(){return G(this).description}}),c||E(V,"propertyIsEnumerable",pt,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:K}),L(x(ot),(function(t){M(t)})),n({target:W,stat:!0,forced:!a},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),n({target:"Object",stat:!0,forced:!a,sham:!s},{create:function(t,r){return void 0===r?g(t):ft(g(t),r)},defineProperty:at,defineProperties:ft,getOwnPropertyDescriptor:lt}),n({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:vt}),N(),C(K,W),I[U]=!0},5084:function(){},3313:function(t,r,e){"use strict";var n=e(1091),o=e(5582),i=e(9724),u=e(160),c=e(5816),s=e(4411),a=c("string-to-symbol-registry"),f=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!s},{for:function(t){var r=u(t);if(i(a,r))return a[r];var e=o("Symbol")(r);return a[r]=e,f[e]=r,e}})},2596:function(t,r,e){"use strict";e(366)("hasInstance")},5721:function(t,r,e){"use strict";e(366)("isConcatSpreadable")},4954:function(t,r,e){"use strict";e(366)("iterator")},4452:function(t,r,e){"use strict";e(3674),e(3313),e(751),e(9721),e(5264)},751:function(t,r,e){"use strict";var n=e(1091),o=e(9724),i=e(5594),u=e(4640),c=e(5816),s=e(4411),a=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!i(t))throw new TypeError(u(t)+" is not a symbol");if(o(a,t))return a[t]}})},3377:function(t,r,e){"use strict";e(366)("matchAll")},4123:function(t,r,e){"use strict";e(366)("match")},2230:function(t,r,e){"use strict";e(366)("replace")},5344:function(t,r,e){"use strict";e(366)("search")},1660:function(t,r,e){"use strict";e(366)("species")},4610:function(t,r,e){"use strict";e(366)("split")},3669:function(t,r,e){"use strict";var n=e(366),o=e(3467);n("toPrimitive"),o()},4810:function(t,r,e){"use strict";var n=e(5582),o=e(366),i=e(2459);o("toStringTag"),i(n("Symbol"),"Symbol")},3325:function(t,r,e){"use strict";e(366)("unscopables")},7249:function(t,r,e){"use strict";var n,o=e(5681),i=e(1010),u=e(1907),c=e(2802),s=e(1548),a=e(7081),f=e(1182),p=e(6285),l=e(2551).enforce,v=e(8828),h=e(551),y=Object,d=Array.isArray,b=y.isExtensible,g=y.isFrozen,x=y.isSealed,m=y.freeze,j=y.seal,w=!i.ActiveXObject&&"ActiveXObject"in i,O=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},S=a("WeakMap",O,f),_=S.prototype,A=u(_.set);if(h)if(w){n=f.getConstructor(O,"WeakMap",!0),s.enable();var E=u(_.delete),P=u(_.has),z=u(_.get);c(_,{delete:function(t){if(p(t)&&!b(t)){var r=l(this);return r.frozen||(r.frozen=new n),E(this,t)||r.frozen.delete(t)}return E(this,t)},has:function(t){if(p(t)&&!b(t)){var r=l(this);return r.frozen||(r.frozen=new n),P(this,t)||r.frozen.has(t)}return P(this,t)},get:function(t){if(p(t)&&!b(t)){var r=l(this);return r.frozen||(r.frozen=new n),P(this,t)?z(this,t):r.frozen.get(t)}return z(this,t)},set:function(t,r){if(p(t)&&!b(t)){var e=l(this);e.frozen||(e.frozen=new n),P(this,t)?A(this,t,r):e.frozen.set(t,r)}else A(this,t,r);return this}})}else o&&v((function(){var t=m([]);return A(new S,t,1),!g(t)}))&&c(_,{set:function(t,r){var e;return d(t)&&(g(t)?e=m:x(t)&&(e=j)),A(this,t,r),e&&e(t),this}})},6571:function(t,r,e){"use strict";e(7249)},768:function(t,r,e){"use strict";var n=e(6264),o=e(4284).f,i=n("metadata"),u=Function.prototype;void 0===u[i]&&o(u,i,{value:null})},8549:function(t,r,e){"use strict";e(366)("asyncDispose")},1697:function(t,r,e){"use strict";e(366)("customMatcher")},7152:function(t,r,e){"use strict";e(366)("dispose")},3939:function(t,r,e){"use strict";e(1091)({target:"Symbol",stat:!0},{isRegisteredSymbol:e(2595)})},3422:function(t,r,e){"use strict";e(1091)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:e(2595)})},1785:function(t,r,e){"use strict";e(1091)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:e(9197)})},36:function(t,r,e){"use strict";e(1091)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:e(9197)})},8703:function(t,r,e){"use strict";e(366)("matcher")},6878:function(t,r,e){"use strict";e(366)("metadataKey")},1372:function(t,r,e){"use strict";e(366)("metadata")},4664:function(t,r,e){"use strict";e(366)("observable")},9671:function(t,r,e){"use strict";e(366)("patternMatch")},359:function(t,r,e){"use strict";e(366)("replaceAll")},2560:function(t,r,e){"use strict";e(9363);var n=e(9287),o=e(1010),i=e(2459),u=e(3742);for(var c in n)i(o[c],c),u[c]=u.Array},6450:function(t,r,e){"use strict";var n=e(3607);t.exports=n},8402:function(t,r,e){"use strict";var n=e(3531);t.exports=n},3067:function(t,r,e){"use strict";var n=e(4712);e(2560),t.exports=n},530:function(t,r,e){"use strict";var n=e(5837);t.exports=n},8894:function(t,r,e){"use strict";var n=e(9299);t.exports=n},3266:function(t,r,e){"use strict";var n=e(8685);t.exports=n},6686:function(t,r,e){"use strict";var n=e(303);t.exports=n},2268:function(t,r,e){"use strict";var n=e(7961);t.exports=n},4532:function(t,r,e){"use strict";var n=e(7649);t.exports=n},3220:function(t,r,e){"use strict";var n=e(9147);t.exports=n},2102:function(t,r,e){"use strict";var n=e(4137);t.exports=n},9157:function(t,r,e){"use strict";var n=e(9378);e(2560),t.exports=n},4139:function(t,r,e){"use strict";var n=e(3842);e(2560),t.exports=n},7045:function(t,r,e){"use strict";var n=e(1730);e(2560),t.exports=n},9428:function(t,r,e){"use strict";var n=e(7173);e(2560),t.exports=n}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},e.d=function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var n={};return function(){"use strict";e.r(n),e.d(n,{action:function(){return Ot},defineGetter:function(){return Et},getState:function(){return St},setImmutableState:function(){return At},setState:function(){return _t},startLogging:function(){return Dt},stopLogging:function(){return Ft},subscribe:function(){return pt},subscribeOnce:function(){return vt},subscribeOnceSync:function(){return ht},subscribeSync:function(){return lt},subscribersAsync:function(){return st},subscribersSync:function(){return at},unsubscribe:function(){return yt},unsubscribeAll:function(){return dt}});var t=e(8979),r=e.n(t),o=e(8156),i=e.n(o),u=e(6449),c=e.n(u),s=e(3560),a=e.n(s),f="__statezero__root";function p(t){return t?t[f]:void 0}function l(t,r){Object.defineProperty(t,f,{enumerable:!1,value:r})}var v=e(1393),h=e.n(v),y=e(8079),d=e.n(y),b=e(9763),g=e.n(b),x=e(6781),m=e.n(x),j=e(2222),w=e.n(j),O=e(1882),S=e.n(O),_=e(1331),A=e.n(_),E=e(5015),P=e.n(E),z=e(8572),k=e.n(z),I=e(1564),T=e(2321),D=e(9029),F=e(3520),M=e(4908),N=e(8980);function C(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}var R=e(2231);function L(t){return L="function"==typeof T&&"symbol"==typeof R?function(t){return typeof t}:function(t){return t&&"function"==typeof T&&t.constructor===T&&t!==T.prototype?"symbol":typeof t},L(t)}var U=e(7842),W=e.n(U),B=e(9493),$=e.n(B),G=e(165),V=e.n(G),K=e(8573),H=e.n(K),q=e(6751),J=e.n(q),X=e(9647),Y=e.n(X),Q=e(1900),Z=e.n(Q),tt="__statezero_immutable";function rt(t){return t&&!0===t[tt]}function et(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}var nt=function(t,r){return"object"===L(r)?Y()(r,t):r},ot=e(9261),it=e.n(ot),ut=e(9132),ct=e.n(ut),st=new(it()),at=new(it()),ft=function(t,r){return rt(t)?t===r:void 0},pt=function(t,r){var e,n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(P()(r)?(n=r,r=function(t){return i()(t,n)}):c()(r)&&(e=r,r=function(t){return d()(e).call(e,(function(r){return i()(t,r)}))}),S()(r))t=function(t,r){return function(e,n){var o=r(e),i=r(n);ct()(o,i,ft)||t(o,i,e)}}(t,r);else{if(void 0!==r)throw new Error('statezero: subscribe() must be called with an Array/Function/String/undefined "selector" argument; not '.concat(r));t=function(t){return function(r,e){t(r,e,r)}}(t)}return o?at.add(t):st.add(t),t},lt=function(t,r){return pt(t,r,!0)},vt=function(t,r){var e=pt((function(){t.apply(void 0,arguments),yt(e)}),r,arguments.length>2&&void 0!==arguments[2]&&arguments[2]);return e},ht=function(t,r){return vt(t,r,!0)},yt=function(t){st.delete(t),at.delete(t)},dt=function(){st.clear(),at.clear()};function bt(t,e){var n=void 0!==m()&&w()(t)||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return gt(t,e);var o=r()(n={}.toString.call(t)).call(n,8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?g()(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?gt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,u=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw u}}}}function gt(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}var xt,mt,jt=k()({}),wt=function(t){if(!A()(t))throw new Error('statezero: commit() must be called with a plain object "nextState" argument; not: '.concat(t));var r=jt;jt=k()(t),function(t){void 0===xt&&(xt=t,setTimeout((function(){var t=xt;xt=void 0;var r,e=bt(st);try{for(e.s();!(r=e.n()).done;)(0,r.value)(jt,t)}catch(t){e.e(t)}finally{e.f()}})))}(r),function(t){var r,e=bt(at);try{for(e.s();!(r=e.n()).done;)(0,r.value)(jt,t)}catch(t){e.e(t)}finally{e.f()}}(r)},Ot=function(t){return function(){for(var e,n,o,i,u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];return t.apply(void 0,h()(e=[{commit:wt,state:(n=jt,i=new(W()),Y()(n,(function t(e){if(Z()(e)||S()(e)||rt(e))return e;if(A()(e)){var n=i.get(e);if(n)return n;if(n={},i.set(e,n),o||(o=n),!p(e)){var u,c=function(t,e){var n=void 0!==m()&&w()(t)||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return et(t,e);var o=r()(n={}.toString.call(t)).call(n,8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?g()(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?et(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,u=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw u}}}}($()(e));try{for(c.s();!(u=c.n()).done;){var s=u.value;V()(s).call(s,"__statezero")||V()(s).call(s,"$jscomp")||(n[s]=nt(t,e[s]))}}catch(t){c.e(t)}finally{c.f()}return n}l(n,o);for(var a=0,f=H()(J()(e));a<f.length;a++){var v=(d=f[a],b=2,function(t){if(I(t))return t}(d)||function(t,r){var e=null==t?null:void 0!==T&&D(t)||t["@@iterator"];if(null!=e){var n,o,i,u,c=[],s=!0,a=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;s=!1}else for(;!(s=(n=i.call(e)).done)&&(F(c).call(c,n.value),c.length!==r);s=!0);}catch(t){a=!0,o=t}finally{try{if(!s&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(a)throw o}}return c}}(d,b)||function(t,r){if(t){var e;if("string"==typeof t)return C(t,r);var n=M(e={}.toString.call(t)).call(e,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?N(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,r):void 0}}(d,b)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=v[0],y=v[1];V()(h).call(h,"__statezero")||V()(h).call(h,"$jscomp")||(y.get?Object.defineProperty(n,h,y):y.enumerable&&(n[h]=nt(t,y.value)))}return n}var d,b})))}]).call(e,c))}},St=function(t){if(void 0===t)return jt;if(P()(t))return i()(jt,t);if(c()(t))return d()(t).call(t,(function(t){return i()(jt,t)}));if(S()(t))return t(jt);throw new Error('statezero: getState() must be called with an Array/Function/String/undefined "selector" argument; not '.concat(t))},_t=Ot((function(t,r,e){var n=t.commit,o=t.state;if(null==r||""===r)o=e;else{if(!P()(r))throw new Error('statezero: setState() must be called with an String/undefined "selector" argument; not '.concat(r));a()(o,r,e)}n(o)})),At=function(t,r){if(!t)throw new Error('statezero: setImmutableState() must be called with a non-empty String "selector" argument');if(!A()(r))throw new Error('statezero: setImmutableState() must be called with a plain object "obj" argument; not: '.concat(r));!function(t){Object.defineProperty(t,tt,{enumerable:!1,value:!0})}(r),_t(t,r)},Et=Ot((function(t,e,n){var o=t.commit,u=t.state,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],f=c()(e)?e:e.split("."),v=f.length-1,h=f[v],y=r()(f).call(f,0,v),d=u;y.length&&(d=i()(u,y,{}),a()(u,y,d)),Object.defineProperty(d,h,{get:function(){return n.call(this,this,p(this))},enumerable:s}),l(d,u),o(u)})),Pt=e(2621),zt=e.n(Pt);function kt(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}var It={N:"New",D:"Deleted",E:"Changed",A:"Array changed"},Tt=function(t,r){console.log("state changed from",r,"to",t)},Dt=function(t,e){mt||(e=console.table?function(t){return function(e,n){var o={},i=zt()(n,e);if(void 0!==i){var u,c=function(t,e){var n=void 0!==m()&&w()(t)||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return kt(t,e);var o=r()(n={}.toString.call(t)).call(n,8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?g()(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?kt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,u=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw u}}}}(i);try{for(c.s();!(u=c.n()).done;){var s=u.value;o[s.path]={changeType:It[s.kind],from:s.lhs,to:s.rhs}}}catch(t){c.e(t)}finally{c.f()}t(o,["changeType","from","to"])}}}(e||console.table):Tt,mt=pt(e,t))},Ft=function(){yt(mt),mt=null}}(),n}()}));
1
+ var statezero=(()=>{var qo=Object.create;var Ee=Object.defineProperty;var $o=Object.getOwnPropertyDescriptor;var Jo=Object.getOwnPropertyNames;var Yo=Object.getPrototypeOf,Xo=Object.prototype.hasOwnProperty;var _t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zo=(e,t)=>{for(var r in t)Ee(e,r,{get:t[r],enumerable:!0})},wt=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of Jo(t))!Xo.call(e,p)&&p!==r&&Ee(e,p,{get:()=>t[p],enumerable:!(o=$o(t,p))||o.enumerable});return e};var St=(e,t,r)=>(r=e!=null?qo(Yo(e)):{},wt(t||!e||!e.__esModule?Ee(r,"default",{value:e,enumerable:!0}):r,e)),Vo=e=>wt(Ee({},"__esModule",{value:!0}),e);var No=_t((Yy,Lo)=>{"use strict";Lo.exports=function e(t){try{return t}catch{}if(Object.isFrozen(t))return t;if(!Array.isArray(t)&&Object.getPrototypeOf(t)!==Object.getPrototypeOf({}))throw new Error("simpleDeepFreeze only supports plain objects, arrays, and primitives");return Object.freeze(t),Object.keys(t).forEach(function(r){e(t[r])}),t}});var zo=_t((vt,Wo)=>{(function(e,t){var r=t(e);if(typeof define=="function"&&define.amd)define("DeepDiff",function(){return r});else if(typeof vt=="object"||typeof navigator=="object"&&navigator.product.match(/ReactNative/i))Wo.exports=r;else{var o=e.DeepDiff;r.noConflict=function(){return e.DeepDiff===r&&(e.DeepDiff=o),r},e.DeepDiff=r}})(vt,function(e){var t=["N","E","A","D"];function r(f,i){f.super_=i,f.prototype=Object.create(i.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}})}function o(f,i){Object.defineProperty(this,"kind",{value:f,enumerable:!0}),i&&i.length&&Object.defineProperty(this,"path",{value:i,enumerable:!0})}function p(f,i,a){p.super_.call(this,"E",f),Object.defineProperty(this,"lhs",{value:i,enumerable:!0}),Object.defineProperty(this,"rhs",{value:a,enumerable:!0})}r(p,o);function n(f,i){n.super_.call(this,"N",f),Object.defineProperty(this,"rhs",{value:i,enumerable:!0})}r(n,o);function u(f,i){u.super_.call(this,"D",f),Object.defineProperty(this,"lhs",{value:i,enumerable:!0})}r(u,o);function m(f,i,a){m.super_.call(this,"A",f),Object.defineProperty(this,"index",{value:i,enumerable:!0}),Object.defineProperty(this,"item",{value:a,enumerable:!0})}r(m,o);function d(f,i,a){var s=f.slice((a||i)+1||f.length);return f.length=i<0?f.length+i:i,f.push.apply(f,s),f}function c(f){var i=typeof f;return i!=="object"?i:f===Math?"math":f===null?"null":Array.isArray(f)?"array":Object.prototype.toString.call(f)==="[object Date]"?"date":typeof f.toString=="function"&&/^\/.*\//.test(f.toString())?"regexp":"object"}function O(f){var i=0;if(f.length===0)return i;for(var a=0;a<f.length;a++){var s=f.charCodeAt(a);i=(i<<5)-i+s,i=i&i}return i}function b(f){var i=0,a=c(f);if(a==="array"){f.forEach(function(X){i+=b(X)});var s="[type: array, hash: "+i+"]";return i+O(s)}if(a==="object"){for(var l in f)if(f.hasOwnProperty(l)){var y="[ type: object, key: "+l+", value hash: "+b(f[l])+"]";i+=O(y)}return i}var x="[ type: "+a+" ; value: "+f+"]";return i+O(x)}function g(f,i,a,s,l,y,x,X){a=a||[],l=l||[],x=x||[];var E=l.slice(0);if(typeof y<"u"&&y!==null){if(s){if(typeof s=="function"&&s(E,y))return;if(typeof s=="object"){if(s.prefilter&&s.prefilter(E,y))return;if(s.normalize){var pt=s.normalize(E,y,f,i);pt&&(f=pt[0],i=pt[1])}}}E.push(y)}c(f)==="regexp"&&c(i)==="regexp"&&(f=f.toString(),i=i.toString());var st=typeof f,Ho=typeof i,A,Ae,R,Oe,At=st!=="undefined"||x&&x.length>0&&x[x.length-1].lhs&&Object.getOwnPropertyDescriptor(x[x.length-1].lhs,y),Ot=Ho!=="undefined"||x&&x.length>0&&x[x.length-1].rhs&&Object.getOwnPropertyDescriptor(x[x.length-1].rhs,y);if(!At&&Ot)a.push(new n(E,i));else if(!Ot&&At)a.push(new u(E,f));else if(c(f)!==c(i))a.push(new p(E,f,i));else if(c(f)==="date"&&f-i!==0)a.push(new p(E,f,i));else if(st==="object"&&f!==null&&i!==null){for(A=x.length-1;A>-1;--A)if(x[A].lhs===f){Oe=!0;break}if(Oe)f!==i&&a.push(new p(E,f,i));else{if(x.push({lhs:f,rhs:i}),Array.isArray(f)){for(X&&(f.sort(function(ut,lt){return b(ut)-b(lt)}),i.sort(function(ut,lt){return b(ut)-b(lt)})),A=i.length-1,Ae=f.length-1;A>Ae;)a.push(new m(E,A,new n(void 0,i[A--])));for(;Ae>A;)a.push(new m(E,Ae,new u(void 0,f[Ae--])));for(;A>=0;--A)g(f[A],i[A],a,s,E,A,x,X)}else{var Tt=Object.keys(f),Ie=Object.keys(i);for(A=0;A<Tt.length;++A)R=Tt[A],Oe=Ie.indexOf(R),Oe>=0?(g(f[R],i[R],a,s,E,R,x,X),Ie[Oe]=null):g(f[R],void 0,a,s,E,R,x,X);for(A=0;A<Ie.length;++A)R=Ie[A],R&&g(void 0,i[R],a,s,E,R,x,X)}x.length=x.length-1}}else f!==i&&(st==="number"&&isNaN(f)&&isNaN(i)||a.push(new p(E,f,i)))}function j(f,i,a,s,l){var y=[];if(g(f,i,y,s,null,null,null,l),a)for(var x=0;x<y.length;++x)a(y[x]);return y}function I(f,i,a,s,l,y,x){return g(f,i,a,s,l,y,x,!0)}function T(f,i,a,s){var l=s?function(x){x&&s.push(x)}:void 0,y=j(f,i,l,a);return s||(y.length?y:void 0)}function w(f,i,a,s){var l=s?function(x){x&&s.push(x)}:void 0,y=j(f,i,l,a,!0);return s||(y.length?y:void 0)}function S(f,i,a){if(a.path&&a.path.length){var s=f[i],l,y=a.path.length-1;for(l=0;l<y;l++)s=s[a.path[l]];switch(a.kind){case"A":S(s[a.path[l]],a.index,a.item);break;case"D":delete s[a.path[l]];break;case"E":case"N":s[a.path[l]]=a.rhs;break}}else switch(a.kind){case"A":S(f[i],a.index,a.item);break;case"D":f=d(f,i);break;case"E":case"N":f[i]=a.rhs;break}return f}function B(f,i,a){if(typeof a>"u"&&i&&~t.indexOf(i.kind)&&(a=i),f&&a&&a.kind){for(var s=f,l=-1,y=a.path?a.path.length-1:0;++l<y;)typeof s[a.path[l]]>"u"&&(s[a.path[l]]=typeof a.path[l+1]<"u"&&typeof a.path[l+1]=="number"?[]:{}),s=s[a.path[l]];switch(a.kind){case"A":a.path&&typeof s[a.path[l]]>"u"&&(s[a.path[l]]=[]),S(a.path?s[a.path[l]]:s,a.index,a.item);break;case"D":delete s[a.path[l]];break;case"E":case"N":s[a.path[l]]=a.rhs;break}}}function k(f,i,a){if(a.path&&a.path.length){var s=f[i],l,y=a.path.length-1;for(l=0;l<y;l++)s=s[a.path[l]];switch(a.kind){case"A":k(s[a.path[l]],a.index,a.item);break;case"D":s[a.path[l]]=a.lhs;break;case"E":s[a.path[l]]=a.lhs;break;case"N":delete s[a.path[l]];break}}else switch(a.kind){case"A":k(f[i],a.index,a.item);break;case"D":f[i]=a.lhs;break;case"E":f[i]=a.lhs;break;case"N":f=d(f,i);break}return f}function ee(f,i,a){if(f&&i&&a&&a.kind){var s=f,l,y;for(y=a.path.length-1,l=0;l<y;l++)typeof s[a.path[l]]>"u"&&(s[a.path[l]]={}),s=s[a.path[l]];switch(a.kind){case"A":k(s[a.path[l]],a.index,a.item);break;case"D":s[a.path[l]]=a.lhs;break;case"E":s[a.path[l]]=a.lhs;break;case"N":delete s[a.path[l]];break}}}function te(f,i,a){if(f&&i){var s=function(l){(!a||a(f,i,l))&&B(f,i,l)};j(f,i,s)}}return Object.defineProperties(T,{diff:{value:T,enumerable:!0},orderIndependentDiff:{value:w,enumerable:!0},observableDiff:{value:j,enumerable:!0},orderIndependentObservableDiff:{value:I,enumerable:!0},orderIndepHash:{value:b,enumerable:!0},applyDiff:{value:te,enumerable:!0},applyChange:{value:B,enumerable:!0},revertChange:{value:ee,enumerable:!0},isConflict:{value:function(){return typeof $conflict<"u"},enumerable:!0}}),T.DeepDiff=T,e&&(e.DeepDiff=T),T})});var zs={};Zo(zs,{action:()=>it,defineGetter:()=>Bs,getState:()=>Ms,setImmutableState:()=>Rs,setState:()=>Uo,startLogging:()=>Us,stopLogging:()=>Ws,subscribe:()=>je,subscribeOnce:()=>Go,subscribeOnceSync:()=>Es,subscribeSync:()=>Is,subscribersAsync:()=>he,subscribersSync:()=>ve,unsubscribe:()=>ft,unsubscribeAll:()=>Cs});var Qo=typeof global=="object"&&global&&global.Object===Object&&global,Ce=Qo;var ko=typeof self=="object"&&self&&self.Object===Object&&self,ea=Ce||ko||Function("return this")(),_=ea;var ta=_.Symbol,C=ta;var jt=Object.prototype,ra=jt.hasOwnProperty,oa=jt.toString,Te=C?C.toStringTag:void 0;function aa(e){var t=ra.call(e,Te),r=e[Te];try{e[Te]=void 0;var o=!0}catch{}var p=oa.call(e);return o&&(t?e[Te]=r:delete e[Te]),p}var Pt=aa;var fa=Object.prototype,na=fa.toString;function ia(e){return na.call(e)}var It=ia;var pa="[object Null]",sa="[object Undefined]",Et=C?C.toStringTag:void 0;function ua(e){return e==null?e===void 0?sa:pa:Et&&Et in Object(e)?Pt(e):It(e)}var N=ua;function la(e){return e!=null&&typeof e=="object"}var P=la;var ma="[object Symbol]";function da(e){return typeof e=="symbol"||P(e)&&N(e)==ma}var re=da;function ca(e,t){for(var r=-1,o=e==null?0:e.length,p=Array(o);++r<o;)p[r]=t(e[r],r,e);return p}var Ct=ca;var xa=Array.isArray,D=xa;var ya=1/0,Dt=C?C.prototype:void 0,Lt=Dt?Dt.toString:void 0;function Nt(e){if(typeof e=="string")return e;if(D(e))return Ct(e,Nt)+"";if(re(e))return Lt?Lt.call(e):"";var t=e+"";return t=="0"&&1/e==-ya?"-0":t}var Mt=Nt;function ba(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var M=ba;var ga="[object AsyncFunction]",ha="[object Function]",va="[object GeneratorFunction]",Aa="[object Proxy]";function Oa(e){if(!M(e))return!1;var t=N(e);return t==ha||t==va||t==ga||t==Aa}var De=Oa;var Ta=_["__core-js_shared__"],Le=Ta;var Rt=(function(){var e=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function _a(e){return!!Rt&&Rt in e}var Bt=_a;var wa=Function.prototype,Sa=wa.toString;function ja(e){if(e!=null){try{return Sa.call(e)}catch{}try{return e+""}catch{}}return""}var F=ja;var Pa=/[\\^$.*+?()[\]{}|]/g,Ia=/^\[object .+?Constructor\]$/,Ea=Function.prototype,Ca=Object.prototype,Da=Ea.toString,La=Ca.hasOwnProperty,Na=RegExp("^"+Da.call(La).replace(Pa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ma(e){if(!M(e)||Bt(e))return!1;var t=De(e)?Na:Ia;return t.test(F(e))}var Ft=Ma;function Ra(e,t){return e?.[t]}var Gt=Ra;function Ba(e,t){var r=Gt(e,t);return Ft(r)?r:void 0}var L=Ba;var Fa=L(_,"WeakMap"),Ne=Fa;var Ut=Object.create,Ga=(function(){function e(){}return function(t){if(!M(t))return{};if(Ut)return Ut(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})(),Wt=Ga;function Ua(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}var zt=Ua;var Wa=(function(){try{var e=L(Object,"defineProperty");return e({},"",{}),e}catch{}})(),mt=Wa;function za(e,t){for(var r=-1,o=e==null?0:e.length;++r<o&&t(e[r],r,e)!==!1;);return e}var Kt=za;var Ka=9007199254740991,Ha=/^(?:0|[1-9]\d*)$/;function qa(e,t){var r=typeof e;return t=t??Ka,!!t&&(r=="number"||r!="symbol"&&Ha.test(e))&&e>-1&&e%1==0&&e<t}var Me=qa;function $a(e,t,r){t=="__proto__"&&mt?mt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Re=$a;function Ja(e,t){return e===t||e!==e&&t!==t}var oe=Ja;var Ya=Object.prototype,Xa=Ya.hasOwnProperty;function Za(e,t,r){var o=e[t];(!(Xa.call(e,t)&&oe(o,r))||r===void 0&&!(t in e))&&Re(e,t,r)}var ae=Za;function Va(e,t,r,o){var p=!r;r||(r={});for(var n=-1,u=t.length;++n<u;){var m=t[n],d=o?o(r[m],e[m],m,r,e):void 0;d===void 0&&(d=e[m]),p?Re(r,m,d):ae(r,m,d)}return r}var H=Va;var Qa=9007199254740991;function ka(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Qa}var Be=ka;function ef(e){return e!=null&&Be(e.length)&&!De(e)}var Fe=ef;var tf=Object.prototype;function rf(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||tf;return e===r}var fe=rf;function of(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var Ht=of;var af="[object Arguments]";function ff(e){return P(e)&&N(e)==af}var dt=ff;var qt=Object.prototype,nf=qt.hasOwnProperty,pf=qt.propertyIsEnumerable,sf=dt((function(){return arguments})())?dt:function(e){return P(e)&&nf.call(e,"callee")&&!pf.call(e,"callee")},$t=sf;function uf(){return!1}var Jt=uf;var Zt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yt=Zt&&typeof module=="object"&&module&&!module.nodeType&&module,lf=Yt&&Yt.exports===Zt,Xt=lf?_.Buffer:void 0,mf=Xt?Xt.isBuffer:void 0,df=mf||Jt,Z=df;var cf="[object Arguments]",xf="[object Array]",yf="[object Boolean]",bf="[object Date]",gf="[object Error]",hf="[object Function]",vf="[object Map]",Af="[object Number]",Of="[object Object]",Tf="[object RegExp]",_f="[object Set]",wf="[object String]",Sf="[object WeakMap]",jf="[object ArrayBuffer]",Pf="[object DataView]",If="[object Float32Array]",Ef="[object Float64Array]",Cf="[object Int8Array]",Df="[object Int16Array]",Lf="[object Int32Array]",Nf="[object Uint8Array]",Mf="[object Uint8ClampedArray]",Rf="[object Uint16Array]",Bf="[object Uint32Array]",v={};v[If]=v[Ef]=v[Cf]=v[Df]=v[Lf]=v[Nf]=v[Mf]=v[Rf]=v[Bf]=!0;v[cf]=v[xf]=v[jf]=v[yf]=v[Pf]=v[bf]=v[gf]=v[hf]=v[vf]=v[Af]=v[Of]=v[Tf]=v[_f]=v[wf]=v[Sf]=!1;function Ff(e){return P(e)&&Be(e.length)&&!!v[N(e)]}var Vt=Ff;function Gf(e){return function(t){return e(t)}}var ne=Gf;var Qt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_e=Qt&&typeof module=="object"&&module&&!module.nodeType&&module,Uf=_e&&_e.exports===Qt,ct=Uf&&Ce.process,Wf=(function(){try{var e=_e&&_e.require&&_e.require("util").types;return e||ct&&ct.binding&&ct.binding("util")}catch{}})(),G=Wf;var kt=G&&G.isTypedArray,zf=kt?ne(kt):Vt,Ge=zf;var Kf=Object.prototype,Hf=Kf.hasOwnProperty;function qf(e,t){var r=D(e),o=!r&&$t(e),p=!r&&!o&&Z(e),n=!r&&!o&&!p&&Ge(e),u=r||o||p||n,m=u?Ht(e.length,String):[],d=m.length;for(var c in e)(t||Hf.call(e,c))&&!(u&&(c=="length"||p&&(c=="offset"||c=="parent")||n&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Me(c,d)))&&m.push(c);return m}var Ue=qf;function $f(e,t){return function(r){return e(t(r))}}var We=$f;var Jf=We(Object.keys,Object),er=Jf;var Yf=Object.prototype,Xf=Yf.hasOwnProperty;function Zf(e){if(!fe(e))return er(e);var t=[];for(var r in Object(e))Xf.call(e,r)&&r!="constructor"&&t.push(r);return t}var tr=Zf;function Vf(e){return Fe(e)?Ue(e):tr(e)}var ie=Vf;function Qf(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var rr=Qf;var kf=Object.prototype,en=kf.hasOwnProperty;function tn(e){if(!M(e))return rr(e);var t=fe(e),r=[];for(var o in e)o=="constructor"&&(t||!en.call(e,o))||r.push(o);return r}var or=tn;function rn(e){return Fe(e)?Ue(e,!0):or(e)}var pe=rn;var on=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,an=/^\w*$/;function fn(e,t){if(D(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||re(e)?!0:an.test(e)||!on.test(e)||t!=null&&e in Object(t)}var ar=fn;var nn=L(Object,"create"),U=nn;function pn(){this.__data__=U?U(null):{},this.size=0}var fr=pn;function sn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nr=sn;var un="__lodash_hash_undefined__",ln=Object.prototype,mn=ln.hasOwnProperty;function dn(e){var t=this.__data__;if(U){var r=t[e];return r===un?void 0:r}return mn.call(t,e)?t[e]:void 0}var ir=dn;var cn=Object.prototype,xn=cn.hasOwnProperty;function yn(e){var t=this.__data__;return U?t[e]!==void 0:xn.call(t,e)}var pr=yn;var bn="__lodash_hash_undefined__";function gn(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=U&&t===void 0?bn:t,this}var sr=gn;function se(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}se.prototype.clear=fr;se.prototype.delete=nr;se.prototype.get=ir;se.prototype.has=pr;se.prototype.set=sr;var xt=se;function hn(){this.__data__=[],this.size=0}var ur=hn;function vn(e,t){for(var r=e.length;r--;)if(oe(e[r][0],t))return r;return-1}var q=vn;var An=Array.prototype,On=An.splice;function Tn(e){var t=this.__data__,r=q(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():On.call(t,r,1),--this.size,!0}var lr=Tn;function _n(e){var t=this.__data__,r=q(t,e);return r<0?void 0:t[r][1]}var mr=_n;function wn(e){return q(this.__data__,e)>-1}var dr=wn;function Sn(e,t){var r=this.__data__,o=q(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var cr=Sn;function ue(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}ue.prototype.clear=ur;ue.prototype.delete=lr;ue.prototype.get=mr;ue.prototype.has=dr;ue.prototype.set=cr;var $=ue;var jn=L(_,"Map"),J=jn;function Pn(){this.size=0,this.__data__={hash:new xt,map:new(J||$),string:new xt}}var xr=Pn;function In(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var yr=In;function En(e,t){var r=e.__data__;return yr(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Y=En;function Cn(e){var t=Y(this,e).delete(e);return this.size-=t?1:0,t}var br=Cn;function Dn(e){return Y(this,e).get(e)}var gr=Dn;function Ln(e){return Y(this,e).has(e)}var hr=Ln;function Nn(e,t){var r=Y(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var vr=Nn;function le(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}le.prototype.clear=xr;le.prototype.delete=br;le.prototype.get=gr;le.prototype.has=hr;le.prototype.set=vr;var V=le;var Mn="Expected a function";function yt(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Mn);var r=function(){var o=arguments,p=t?t.apply(this,o):o[0],n=r.cache;if(n.has(p))return n.get(p);var u=e.apply(this,o);return r.cache=n.set(p,u)||n,u};return r.cache=new(yt.Cache||V),r}yt.Cache=V;var Ar=yt;var Rn=500;function Bn(e){var t=Ar(e,function(o){return r.size===Rn&&r.clear(),o}),r=t.cache;return t}var Or=Bn;var Fn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gn=/\\(\\)?/g,Un=Or(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Fn,function(r,o,p,n){t.push(p?n.replace(Gn,"$1"):o||r)}),t}),Tr=Un;function Wn(e){return e==null?"":Mt(e)}var _r=Wn;function zn(e,t){return D(e)?e:ar(e,t)?[e]:Tr(_r(e))}var ze=zn;var Kn=1/0;function Hn(e){if(typeof e=="string"||re(e))return e;var t=e+"";return t=="0"&&1/e==-Kn?"-0":t}var Ke=Hn;function qn(e,t){t=ze(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[Ke(t[r++])];return r&&r==o?e:void 0}var wr=qn;function $n(e,t,r){var o=e==null?void 0:wr(e,t);return o===void 0?r:o}var W=$n;function Jn(e,t){for(var r=-1,o=t.length,p=e.length;++r<o;)e[p+r]=t[r];return e}var He=Jn;var Yn=We(Object.getPrototypeOf,Object),me=Yn;var Xn="[object Object]",Zn=Function.prototype,Vn=Object.prototype,Sr=Zn.toString,Qn=Vn.hasOwnProperty,kn=Sr.call(Object);function ei(e){if(!P(e)||N(e)!=Xn)return!1;var t=me(e);if(t===null)return!0;var r=Qn.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Sr.call(r)==kn}var de=ei;function ti(){this.__data__=new $,this.size=0}var jr=ti;function ri(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Pr=ri;function oi(e){return this.__data__.get(e)}var Ir=oi;function ai(e){return this.__data__.has(e)}var Er=ai;var fi=200;function ni(e,t){var r=this.__data__;if(r instanceof $){var o=r.__data__;if(!J||o.length<fi-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new V(o)}return r.set(e,t),this.size=r.size,this}var Cr=ni;function ce(e){var t=this.__data__=new $(e);this.size=t.size}ce.prototype.clear=jr;ce.prototype.delete=Pr;ce.prototype.get=Ir;ce.prototype.has=Er;ce.prototype.set=Cr;var xe=ce;function ii(e,t){return e&&H(t,ie(t),e)}var Dr=ii;function pi(e,t){return e&&H(t,pe(t),e)}var Lr=pi;var Br=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nr=Br&&typeof module=="object"&&module&&!module.nodeType&&module,si=Nr&&Nr.exports===Br,Mr=si?_.Buffer:void 0,Rr=Mr?Mr.allocUnsafe:void 0;function ui(e,t){if(t)return e.slice();var r=e.length,o=Rr?Rr(r):new e.constructor(r);return e.copy(o),o}var Fr=ui;function li(e,t){for(var r=-1,o=e==null?0:e.length,p=0,n=[];++r<o;){var u=e[r];t(u,r,e)&&(n[p++]=u)}return n}var Gr=li;function mi(){return[]}var qe=mi;var di=Object.prototype,ci=di.propertyIsEnumerable,Ur=Object.getOwnPropertySymbols,xi=Ur?function(e){return e==null?[]:(e=Object(e),Gr(Ur(e),function(t){return ci.call(e,t)}))}:qe,ye=xi;function yi(e,t){return H(e,ye(e),t)}var Wr=yi;var bi=Object.getOwnPropertySymbols,gi=bi?function(e){for(var t=[];e;)He(t,ye(e)),e=me(e);return t}:qe,$e=gi;function hi(e,t){return H(e,$e(e),t)}var zr=hi;function vi(e,t,r){var o=t(e);return D(e)?o:He(o,r(e))}var Je=vi;function Ai(e){return Je(e,ie,ye)}var we=Ai;function Oi(e){return Je(e,pe,$e)}var Kr=Oi;var Ti=L(_,"DataView"),Ye=Ti;var _i=L(_,"Promise"),Xe=_i;var wi=L(_,"Set"),Ze=wi;var Hr="[object Map]",Si="[object Object]",qr="[object Promise]",$r="[object Set]",Jr="[object WeakMap]",Yr="[object DataView]",ji=F(Ye),Pi=F(J),Ii=F(Xe),Ei=F(Ze),Ci=F(Ne),Q=N;(Ye&&Q(new Ye(new ArrayBuffer(1)))!=Yr||J&&Q(new J)!=Hr||Xe&&Q(Xe.resolve())!=qr||Ze&&Q(new Ze)!=$r||Ne&&Q(new Ne)!=Jr)&&(Q=function(e){var t=N(e),r=t==Si?e.constructor:void 0,o=r?F(r):"";if(o)switch(o){case ji:return Yr;case Pi:return Hr;case Ii:return qr;case Ei:return $r;case Ci:return Jr}return t});var z=Q;var Di=Object.prototype,Li=Di.hasOwnProperty;function Ni(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Li.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Xr=Ni;var Mi=_.Uint8Array,be=Mi;function Ri(e){var t=new e.constructor(e.byteLength);return new be(t).set(new be(e)),t}var ge=Ri;function Bi(e,t){var r=t?ge(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Zr=Bi;var Fi=/\w*$/;function Gi(e){var t=new e.constructor(e.source,Fi.exec(e));return t.lastIndex=e.lastIndex,t}var Vr=Gi;var Qr=C?C.prototype:void 0,kr=Qr?Qr.valueOf:void 0;function Ui(e){return kr?Object(kr.call(e)):{}}var eo=Ui;function Wi(e,t){var r=t?ge(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var to=Wi;var zi="[object Boolean]",Ki="[object Date]",Hi="[object Map]",qi="[object Number]",$i="[object RegExp]",Ji="[object Set]",Yi="[object String]",Xi="[object Symbol]",Zi="[object ArrayBuffer]",Vi="[object DataView]",Qi="[object Float32Array]",ki="[object Float64Array]",ep="[object Int8Array]",tp="[object Int16Array]",rp="[object Int32Array]",op="[object Uint8Array]",ap="[object Uint8ClampedArray]",fp="[object Uint16Array]",np="[object Uint32Array]";function ip(e,t,r){var o=e.constructor;switch(t){case Zi:return ge(e);case zi:case Ki:return new o(+e);case Vi:return Zr(e,r);case Qi:case ki:case ep:case tp:case rp:case op:case ap:case fp:case np:return to(e,r);case Hi:return new o;case qi:case Yi:return new o(e);case $i:return Vr(e);case Ji:return new o;case Xi:return eo(e)}}var ro=ip;function pp(e){return typeof e.constructor=="function"&&!fe(e)?Wt(me(e)):{}}var oo=pp;var sp="[object Map]";function up(e){return P(e)&&z(e)==sp}var ao=up;var fo=G&&G.isMap,lp=fo?ne(fo):ao,no=lp;var mp="[object Set]";function dp(e){return P(e)&&z(e)==mp}var io=dp;var po=G&&G.isSet,cp=po?ne(po):io,so=cp;var xp=1,yp=2,bp=4,uo="[object Arguments]",gp="[object Array]",hp="[object Boolean]",vp="[object Date]",Ap="[object Error]",lo="[object Function]",Op="[object GeneratorFunction]",Tp="[object Map]",_p="[object Number]",mo="[object Object]",wp="[object RegExp]",Sp="[object Set]",jp="[object String]",Pp="[object Symbol]",Ip="[object WeakMap]",Ep="[object ArrayBuffer]",Cp="[object DataView]",Dp="[object Float32Array]",Lp="[object Float64Array]",Np="[object Int8Array]",Mp="[object Int16Array]",Rp="[object Int32Array]",Bp="[object Uint8Array]",Fp="[object Uint8ClampedArray]",Gp="[object Uint16Array]",Up="[object Uint32Array]",h={};h[uo]=h[gp]=h[Ep]=h[Cp]=h[hp]=h[vp]=h[Dp]=h[Lp]=h[Np]=h[Mp]=h[Rp]=h[Tp]=h[_p]=h[mo]=h[wp]=h[Sp]=h[jp]=h[Pp]=h[Bp]=h[Fp]=h[Gp]=h[Up]=!0;h[Ap]=h[lo]=h[Ip]=!1;function Ve(e,t,r,o,p,n){var u,m=t&xp,d=t&yp,c=t&bp;if(r&&(u=p?r(e,o,p,n):r(e)),u!==void 0)return u;if(!M(e))return e;var O=D(e);if(O){if(u=Xr(e),!m)return zt(e,u)}else{var b=z(e),g=b==lo||b==Op;if(Z(e))return Fr(e,m);if(b==mo||b==uo||g&&!p){if(u=d||g?{}:oo(e),!m)return d?zr(e,Lr(u,e)):Wr(e,Dr(u,e))}else{if(!h[b])return p?e:{};u=ro(e,b,m)}}n||(n=new xe);var j=n.get(e);if(j)return j;n.set(e,u),so(e)?e.forEach(function(w){u.add(Ve(w,t,r,w,e,n))}):no(e)&&e.forEach(function(w,S){u.set(S,Ve(w,t,r,S,e,n))});var I=c?d?Kr:we:d?pe:ie,T=O?void 0:I(e);return Kt(T||e,function(w,S){T&&(S=w,w=e[S]),ae(u,S,Ve(w,t,r,S,e,n))}),u}var co=Ve;var Wp=1,zp=4;function Kp(e,t){return t=typeof t=="function"?t:void 0,co(e,Wp|zp,t)}var Qe=Kp;var Hp="__lodash_hash_undefined__";function qp(e){return this.__data__.set(e,Hp),this}var xo=qp;function $p(e){return this.__data__.has(e)}var yo=$p;function ke(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new V;++t<r;)this.add(e[t])}ke.prototype.add=ke.prototype.push=xo;ke.prototype.has=yo;var bo=ke;function Jp(e,t){for(var r=-1,o=e==null?0:e.length;++r<o;)if(t(e[r],r,e))return!0;return!1}var go=Jp;function Yp(e,t){return e.has(t)}var ho=Yp;var Xp=1,Zp=2;function Vp(e,t,r,o,p,n){var u=r&Xp,m=e.length,d=t.length;if(m!=d&&!(u&&d>m))return!1;var c=n.get(e),O=n.get(t);if(c&&O)return c==t&&O==e;var b=-1,g=!0,j=r&Zp?new bo:void 0;for(n.set(e,t),n.set(t,e);++b<m;){var I=e[b],T=t[b];if(o)var w=u?o(T,I,b,t,e,n):o(I,T,b,e,t,n);if(w!==void 0){if(w)continue;g=!1;break}if(j){if(!go(t,function(S,B){if(!ho(j,B)&&(I===S||p(I,S,r,o,n)))return j.push(B)})){g=!1;break}}else if(!(I===T||p(I,T,r,o,n))){g=!1;break}}return n.delete(e),n.delete(t),g}var et=Vp;function Qp(e){var t=-1,r=Array(e.size);return e.forEach(function(o,p){r[++t]=[p,o]}),r}var vo=Qp;function kp(e){var t=-1,r=Array(e.size);return e.forEach(function(o){r[++t]=o}),r}var Ao=kp;var es=1,ts=2,rs="[object Boolean]",os="[object Date]",as="[object Error]",fs="[object Map]",ns="[object Number]",is="[object RegExp]",ps="[object Set]",ss="[object String]",us="[object Symbol]",ls="[object ArrayBuffer]",ms="[object DataView]",Oo=C?C.prototype:void 0,bt=Oo?Oo.valueOf:void 0;function ds(e,t,r,o,p,n,u){switch(r){case ms:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ls:return!(e.byteLength!=t.byteLength||!n(new be(e),new be(t)));case rs:case os:case ns:return oe(+e,+t);case as:return e.name==t.name&&e.message==t.message;case is:case ss:return e==t+"";case fs:var m=vo;case ps:var d=o&es;if(m||(m=Ao),e.size!=t.size&&!d)return!1;var c=u.get(e);if(c)return c==t;o|=ts,u.set(e,t);var O=et(m(e),m(t),o,p,n,u);return u.delete(e),O;case us:if(bt)return bt.call(e)==bt.call(t)}return!1}var To=ds;var cs=1,xs=Object.prototype,ys=xs.hasOwnProperty;function bs(e,t,r,o,p,n){var u=r&cs,m=we(e),d=m.length,c=we(t),O=c.length;if(d!=O&&!u)return!1;for(var b=d;b--;){var g=m[b];if(!(u?g in t:ys.call(t,g)))return!1}var j=n.get(e),I=n.get(t);if(j&&I)return j==t&&I==e;var T=!0;n.set(e,t),n.set(t,e);for(var w=u;++b<d;){g=m[b];var S=e[g],B=t[g];if(o)var k=u?o(B,S,g,t,e,n):o(S,B,g,e,t,n);if(!(k===void 0?S===B||p(S,B,r,o,n):k)){T=!1;break}w||(w=g=="constructor")}if(T&&!w){var ee=e.constructor,te=t.constructor;ee!=te&&"constructor"in e&&"constructor"in t&&!(typeof ee=="function"&&ee instanceof ee&&typeof te=="function"&&te instanceof te)&&(T=!1)}return n.delete(e),n.delete(t),T}var _o=bs;var gs=1,wo="[object Arguments]",So="[object Array]",tt="[object Object]",hs=Object.prototype,jo=hs.hasOwnProperty;function vs(e,t,r,o,p,n){var u=D(e),m=D(t),d=u?So:z(e),c=m?So:z(t);d=d==wo?tt:d,c=c==wo?tt:c;var O=d==tt,b=c==tt,g=d==c;if(g&&Z(e)){if(!Z(t))return!1;u=!0,O=!1}if(g&&!O)return n||(n=new xe),u||Ge(e)?et(e,t,r,o,p,n):To(e,t,d,r,o,p,n);if(!(r&gs)){var j=O&&jo.call(e,"__wrapped__"),I=b&&jo.call(t,"__wrapped__");if(j||I){var T=j?e.value():e,w=I?t.value():t;return n||(n=new xe),p(T,w,r,o,n)}}return g?(n||(n=new xe),_o(e,t,r,o,p,n)):!1}var Po=vs;function Io(e,t,r,o,p){return e===t?!0:e==null||t==null||!P(e)&&!P(t)?e!==e&&t!==t:Po(e,t,r,o,Io,p)}var Eo=Io;function As(e,t,r){r=typeof r=="function"?r:void 0;var o=r?r(e,t):void 0;return o===void 0?Eo(e,t,void 0,r):!!o}var gt=As;function Os(e,t,r,o){if(!M(e))return e;t=ze(t,e);for(var p=-1,n=t.length,u=n-1,m=e;m!=null&&++p<n;){var d=Ke(t[p]),c=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(p!=u){var O=m[d];c=o?o(O,d,m):void 0,c===void 0&&(c=M(O)?O:Me(t[p+1])?[]:{})}ae(m,d,c),m=m[d]}return e}var Co=Os;function Ts(e,t,r){return e==null?e:Co(e,t,r)}var Se=Ts;var Do="__statezero__root";function rt(e){return e?e[Do]:void 0}function ot(e,t){Object.defineProperty(e,Do,{enumerable:!1,value:t})}var ht=St(No());var Mo="__statezero_immutable";function at(e){return e&&e[Mo]===!0}function Ro(e){Object.defineProperty(e,Mo,{enumerable:!1,value:!0})}var Bo=(e,t)=>typeof t=="object"?Qe(t,e):t,Fo=e=>{let t=new WeakMap,r,o=p=>{if(p instanceof Element||typeof p=="function"||at(p))return p;if(!de(p))return;let n=t.get(p);if(n)return n;if(n={},t.set(p,n),r||(r=n),!rt(p)){for(let u of Object.getOwnPropertyNames(p))u.startsWith("__statezero")||u.startsWith("$jscomp")||(n[u]=Bo(o,p[u]));return n}ot(n,r);for(let[u,m]of Object.entries(Object.getOwnPropertyDescriptors(p)))if(!(u.startsWith("__statezero")||u.startsWith("$jscomp"))){if(m.get){Object.defineProperty(n,u,m);continue}m.enumerable&&(n[u]=Bo(o,m.value))}return n};return Qe(e,o)};var he=new Set,ve=new Set,_s=(e,t)=>at(e)?e===t:void 0,ws=(e,t)=>(r,o)=>{let p=t(r),n=t(o);gt(p,n,_s)||e(p,n,r)},Ss=e=>(t,r)=>{e(t,r,t)},js=e=>t=>e.map(r=>W(t,r)),Ps=e=>t=>W(t,e),je=(e,t,r=!1)=>{if(typeof t=="string"?t=Ps(t):Array.isArray(t)&&(t=js(t)),typeof t=="function")e=ws(e,t);else if(t===void 0)e=Ss(e);else{let o=typeof t=="object"?JSON.stringify(t):t;throw new Error(`statezero: subscribe() must be called with an Array/Function/String/undefined selector; not ${o}`)}return r?ve.add(e):he.add(e),e},Is=(e,t)=>je(e,t,!0),Go=(e,t,r=!1)=>{let p=je((...n)=>{e(...n),ft(p)},t,r);return p},Es=(e,t)=>Go(e,t,!0),ft=e=>{he.delete(e),ve.delete(e)},Cs=()=>{he.clear(),ve.clear()};var K=(0,ht.default)({}),nt,Ds=e=>{nt===void 0&&(nt=e,setTimeout(()=>{let t=nt;nt=void 0;for(let r of he)r(K,t)}))},Ls=e=>{for(let t of ve)t(K,e)},Ns=e=>{if(!de(e))throw new Error(`statezero: commit() must be called with a plain object "nextState" argument; not: ${e}`);let t=K;K=(0,ht.default)(e),Ds(t),Ls(t)},it=e=>(...t)=>e({commit:Ns,state:Fo(K)},...t),Ms=e=>{if(e===void 0)return K;if(typeof e=="string")return W(K,e);if(Array.isArray(e))return e.map(r=>W(K,r));if(typeof e=="function")return e(K);let t=typeof e=="object"?JSON.stringify(e):e;throw new Error(`statezero: getState() must be called with an Array/Function/String/undefined selector; not ${t}`)},Uo=it(({commit:e,state:t},r,o)=>{if(r==null||r==="")t=o;else if(typeof r=="string")Se(t,r,o);else{let p=typeof r=="object"?JSON.stringify(r):r;throw new Error(`statezero: setState() must be called with an String/undefined "selector" argument; not ${p}`)}e(t)}),Rs=(e,t)=>{if(!e)throw new Error('statezero: setImmutableState() must be called with a non-empty String "selector" argument');if(!de(t))throw new Error(`statezero: setImmutableState() must be called with a plain object "obj" argument; not: ${t}`);Ro(t),Uo(e,t)};var Bs=it(({commit:e,state:t},r,o,p=!1)=>{let n=Array.isArray(r)?r:r.split("."),u=n.length-1,m=n[u],d=n.slice(0,u),c=t;d.length&&(c=W(t,d,{}),Se(t,d,c)),Object.defineProperty(c,m,{get(){return o.call(this,this,rt(this))},enumerable:p}),ot(c,t),e(t)});var Ko=St(zo());var Pe,Fs={A:"Array changed",D:"Deleted",E:"Changed",N:"New"},Gs=e=>(t,r)=>{let o={},p=(0,Ko.default)(r,t);if(p!==void 0){for(let n of p){let{path:u}=n;o[u]={changeType:Fs[n.kind],from:n.lhs,to:n.rhs}}e(o,["changeType","from","to"])}},Us=(e,t)=>{Pe||(Pe=je(Gs(t||console.table),e))},Ws=()=>{Pe&&(ft(Pe),Pe=null)};return Vo(zs);})();
2
+ /*! Bundled license information:
3
+
4
+ lodash-es/lodash.js:
5
+ (**
6
+ * @license
7
+ * Lodash (Custom Build) <https://lodash.com/>
8
+ * Build: `lodash modularize exports="es" -o ./`
9
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
10
+ * Released under MIT license <https://lodash.com/license>
11
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
12
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
13
+ *)
14
+ */
package/package.json CHANGED
@@ -1,70 +1,82 @@
1
1
  {
2
2
  "name": "statezero",
3
- "version": "0.7.2",
3
+ "version": "0.9.0",
4
4
  "author": "andornaut",
5
5
  "description": "Small, simple, functional JavaScript library for managing immutable state",
6
6
  "keywords": [
7
+ "flux",
7
8
  "functional",
8
9
  "immutable",
9
- "state"
10
+ "minimal",
11
+ "observable",
12
+ "observer",
13
+ "pubsub",
14
+ "reactive",
15
+ "redux-alternative",
16
+ "state",
17
+ "state-management",
18
+ "store"
10
19
  ],
11
20
  "license": "MIT",
12
21
  "main": "dist/statezero.js",
13
- "bugs": {
14
- "url": "https://github.com/andornaut/statezero/issues"
22
+ "module": "dist/statezero.esm.js",
23
+ "browser": "./dist/statezero.js",
24
+ "types": "dist/index.d.ts",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/statezero.esm.js",
29
+ "require": "./dist/statezero.js"
30
+ },
31
+ "./src": {
32
+ "import": "./src/index.js"
33
+ }
34
+ },
35
+ "sideEffects": false,
36
+ "files": [
37
+ "dist",
38
+ "src"
39
+ ],
40
+ "engines": {
41
+ "node": ">=18"
15
42
  },
16
- "homepage": "https://github.com/andornaut/statezero#readme",
17
43
  "repository": {
18
44
  "type": "git",
19
45
  "url": "https://github.com/andornaut/statezero.git"
20
46
  },
47
+ "homepage": "https://github.com/andornaut/statezero#readme",
48
+ "bugs": "https://github.com/andornaut/statezero/issues",
21
49
  "dependencies": {
22
- "@babel/runtime": "^7.17.9",
23
50
  "deep-diff": "^1.0.2",
24
- "lodash": "^4.17.21",
51
+ "lodash-es": "^4.17.23",
25
52
  "simple-deep-freeze": "^0.0.2"
26
53
  },
27
54
  "devDependencies": {
28
- "@babel/cli": "~7.24.8",
29
- "@babel/core": "~7.24.9",
30
- "@babel/plugin-transform-runtime": "~7.24.7",
31
- "@babel/preset-env": "~7.24.8",
32
- "@babel/runtime-corejs3": "~7.24.8",
33
- "babel-loader": "~9.1.3",
34
- "babel-plugin-transform-async-to-promises": "~0.8.15",
35
- "chai": "~4.3.6",
36
- "clean-webpack-plugin": "~4.0.0",
37
- "eslint": "~7.32.0",
38
- "eslint-config-airbnb-base": "~15.0.0",
39
- "eslint-loader": "~4.0.2",
40
- "eslint-plugin-chai-friendly": "~1.0.0",
41
- "eslint-plugin-html": "~6.2.0",
42
- "eslint-plugin-import": "~2.29.1",
43
- "eslint-plugin-import-order-alphabetical": "~1.0.1",
44
- "husky": "~7.0.4",
45
- "karma": "~6.4.3",
46
- "karma-chrome-launcher": "~3.2.0",
47
- "karma-mocha": "~2.0.1",
48
- "karma-mocha-reporter": "~2.2.5",
49
- "karma-sinon-chai": "~2.0.2",
50
- "karma-webpack": "~5.0.1",
51
- "lint-staged": "~15.2.7",
52
- "mocha": "~9.2.2",
53
- "prettier-eslint": "~13.0.0",
54
- "prettier-eslint-cli": "~5.0.0",
55
- "sinon": "^13.0.1",
56
- "sinon-chai": "^3.5.0",
57
- "webpack": "~5.93.0",
58
- "webpack-cli": "~5.1.4"
55
+ "@babel/core": "^7.29.0",
56
+ "@babel/preset-env": "^7.29.0",
57
+ "esbuild": "^0.27.3",
58
+ "eslint": "^8.57.1",
59
+ "eslint-plugin-simple-import-sort": "^12.1.1",
60
+ "eslint-plugin-sort-destructure-keys": "^3.0.0",
61
+ "husky": "^9.1.7",
62
+ "jest": "^30.0.2",
63
+ "jest-environment-jsdom": "^30.0.2",
64
+ "lint-staged": "^16.2.7",
65
+ "prettier-eslint-cli": "^8.0.1",
66
+ "@size-limit/preset-small-lib": "^11.1.7",
67
+ "size-limit": "^11.1.7"
59
68
  },
60
69
  "scripts": {
61
- "build": "webpack --mode=development",
62
- "build-production": "webpack --mode=production",
70
+ "build": "npm run build:esm && npm run build:umd",
71
+ "build:esm": "esbuild src/index.js --bundle --format=esm --packages=external --outfile=dist/statezero.esm.js",
72
+ "build:production": "npm run build:esm -- --minify && npm run build:umd -- --minify",
73
+ "build:umd": "esbuild src/index.js --bundle --format=iife --global-name=statezero --outfile=dist/statezero.js",
63
74
  "format": "prettier-eslint --write \"${PWD}/{src/**,/test/**/,./}*.{css,js,json,jsx,md}\"",
64
- "prepublishOnly": "npm run test && npm run build-production",
65
- "static-analysis": "eslint --max-warnings 0 {src,test}/**/*.js",
66
- "test": "karma start",
67
- "test-watch": "karma start --WATCH",
68
- "prepare": "husky install"
75
+ "lint": "eslint --max-warnings 0 {src,test}/**/*.js",
76
+ "prepare": "husky",
77
+ "prepublishOnly": "npm run test && npm run build:production",
78
+ "size": "size-limit",
79
+ "test": "jest",
80
+ "test:watch": "jest --watch"
69
81
  }
70
82
  }
package/src/clone.js CHANGED
@@ -1,12 +1,9 @@
1
- import cloneDeepWith from 'lodash/cloneDeepWith';
2
- import isElement from 'lodash/isElement';
3
- import isFunction from 'lodash/isFunction';
4
- import isPlainObject from 'lodash/isPlainObject';
1
+ import { cloneDeepWith, isPlainObject } from "lodash-es";
5
2
 
6
- import { isImmutable } from './immutable';
7
- import { getRoot, setRoot } from './root';
3
+ import { isImmutable } from "./immutable";
4
+ import { getRoot, setRoot } from "./root";
8
5
 
9
- const cloneProp = (customizer, value) => (typeof value === 'object' ? cloneDeepWith(value, customizer) : value);
6
+ const cloneProp = (customizer, value) => (typeof value === "object" ? cloneDeepWith(value, customizer) : value);
10
7
 
11
8
  /* Deep clone the given object.
12
9
  *
@@ -23,7 +20,7 @@ export const clone = (obj) => {
23
20
  let root;
24
21
 
25
22
  const customizer = (value) => {
26
- if (isElement(value) || isFunction(value) || isImmutable(value)) {
23
+ if (value instanceof Element || typeof value === "function" || isImmutable(value)) {
27
24
  // Do not attempt to clone DOM nodes, immutable objects, or Function, but don't replace them with {} either, which
28
25
  // is what lodash would usually do. Leave them as is instead.
29
26
  return value;
@@ -51,7 +48,7 @@ export const clone = (obj) => {
51
48
  // We know that there are no getters if there is no ROOT, b/c defineGetters sets ROOT.
52
49
  // Even `cloned[ROOT] = root;` is costly, so we avoid that here too.
53
50
  for (const propName of Object.getOwnPropertyNames(value)) {
54
- if (propName.startsWith('__statezero') || propName.startsWith('$jscomp')) {
51
+ if (propName.startsWith("__statezero") || propName.startsWith("$jscomp")) {
55
52
  continue;
56
53
  }
57
54
  cloned[propName] = cloneProp(customizer, value[propName]);
@@ -62,7 +59,7 @@ export const clone = (obj) => {
62
59
  setRoot(cloned, root);
63
60
 
64
61
  for (const [propName, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(value))) {
65
- if (propName.startsWith('__statezero') || propName.startsWith('$jscomp')) {
62
+ if (propName.startsWith("__statezero") || propName.startsWith("$jscomp")) {
66
63
  continue;
67
64
  }
68
65
  if (descriptor.get) {
package/src/getters.js CHANGED
@@ -1,9 +1,7 @@
1
- import get from 'lodash/get';
2
- import isArray from 'lodash/isArray';
3
- import set from 'lodash/set';
1
+ import { get, set } from "lodash-es";
4
2
 
5
- import { getRoot, setRoot } from './root';
6
- import { action } from './state';
3
+ import { getRoot, setRoot } from "./root";
4
+ import { action } from "./state";
7
5
 
8
6
  /**
9
7
  * Define a getter (computed property) on the state.
@@ -14,7 +12,7 @@ import { action } from './state';
14
12
  * @param enumerable: A boolean which determine whether this property shows up during enumeration.
15
13
  */
16
14
  export const defineGetter = action(({ commit, state }, path, fn, enumerable = false) => {
17
- const pathArray = isArray(path) ? path : path.split('.');
15
+ const pathArray = Array.isArray(path) ? path : path.split(".");
18
16
  const lastIdx = pathArray.length - 1;
19
17
  const propName = pathArray[lastIdx];
20
18
  const parentPath = pathArray.slice(0, lastIdx);
package/src/immutable.js CHANGED
@@ -1,4 +1,4 @@
1
- const IMMUTABLE = '__statezero_immutable';
1
+ const IMMUTABLE = "__statezero_immutable";
2
2
 
3
3
  export function isImmutable(obj) {
4
4
  return obj && obj[IMMUTABLE] === true;
package/src/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from './getters';
2
- export * from './logger';
3
- export * from './state';
4
- export * from './subscriptions';
1
+ export * from "./getters";
2
+ export * from "./logger";
3
+ export * from "./state";
4
+ export * from "./subscriptions";
package/src/logger.js CHANGED
@@ -1,14 +1,14 @@
1
- import deepDiff from 'deep-diff';
1
+ import deepDiff from "deep-diff";
2
2
 
3
- import { subscribe, unsubscribe } from './subscriptions';
3
+ import { subscribe, unsubscribe } from "./subscriptions";
4
4
 
5
5
  let subscription;
6
6
 
7
7
  const CHANGE_TYPES = {
8
- N: 'New',
9
- D: 'Deleted',
10
- E: 'Changed',
11
- A: 'Array changed',
8
+ A: "Array changed",
9
+ D: "Deleted",
10
+ E: "Changed",
11
+ N: "New",
12
12
  };
13
13
 
14
14
  const createDiffLogger = (logger) => (state, prevState) => {
@@ -25,12 +25,7 @@ const createDiffLogger = (logger) => (state, prevState) => {
25
25
  to: difference.rhs,
26
26
  };
27
27
  }
28
- logger(properties, ['changeType', 'from', 'to']);
29
- };
30
-
31
- const simpleLogger = (state, prevState) => {
32
- // eslint-disable-next-line no-console
33
- console.log('state changed from', prevState, 'to', state);
28
+ logger(properties, ["changeType", "from", "to"]);
34
29
  };
35
30
 
36
31
  export const startLogging = (selector, logger) => {
@@ -40,11 +35,13 @@ export const startLogging = (selector, logger) => {
40
35
  }
41
36
 
42
37
  // eslint-disable-next-line no-console
43
- logger = console.table ? createDiffLogger(logger || console.table) : simpleLogger;
44
- subscription = subscribe(logger, selector);
38
+ subscription = subscribe(createDiffLogger(logger || console.table), selector);
45
39
  };
46
40
 
47
41
  export const stopLogging = () => {
42
+ if (!subscription) {
43
+ return;
44
+ }
48
45
  unsubscribe(subscription);
49
46
  subscription = null;
50
47
  };
package/src/root.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Keep track of the top-level state object during cloning so that getters can access it later
2
- const ROOT = '__statezero__root';
2
+ const ROOT = "__statezero__root";
3
3
 
4
4
  export function getRoot(obj) {
5
5
  return obj ? obj[ROOT] : undefined;
package/src/state.js CHANGED
@@ -1,14 +1,9 @@
1
- import get from 'lodash/get';
2
- import isArray from 'lodash/isArray';
3
- import isFunction from 'lodash/isFunction';
4
- import isPlainObject from 'lodash/isPlainObject';
5
- import isString from 'lodash/isString';
6
- import set from 'lodash/set';
7
- import simpleDeepFreeze from 'simple-deep-freeze';
1
+ import { get, isPlainObject, set } from "lodash-es";
2
+ import simpleDeepFreeze from "simple-deep-freeze";
8
3
 
9
- import { clone } from './clone';
10
- import { markImmutable } from './immutable';
11
- import { subscribersAsync, subscribersSync } from './subscriptions';
4
+ import { clone } from "./clone";
5
+ import { markImmutable } from "./immutable";
6
+ import { subscribersAsync, subscribersSync } from "./subscriptions";
12
7
 
13
8
  let state = simpleDeepFreeze({});
14
9
  let prevStateForNotify;
@@ -45,7 +40,8 @@ const commit = (nextState) => {
45
40
  notifySync(prevState);
46
41
  };
47
42
 
48
- export const action = (fn) =>
43
+ export const action =
44
+ (fn) =>
49
45
  (...args) =>
50
46
  fn({ commit, state: clone(state) }, ...args);
51
47
 
@@ -53,29 +49,31 @@ export const getState = (selector) => {
53
49
  if (selector === undefined) {
54
50
  return state;
55
51
  }
56
- if (isString(selector)) {
52
+ if (typeof selector === "string") {
57
53
  return get(state, selector);
58
54
  }
59
- if (isArray(selector)) {
55
+ if (Array.isArray(selector)) {
60
56
  return selector.map((path) => get(state, path));
61
57
  }
62
- if (isFunction(selector)) {
58
+ if (typeof selector === "function") {
63
59
  return selector(state);
64
60
  }
61
+ const selectorStr = typeof selector === "object" ? JSON.stringify(selector) : selector;
65
62
  throw new Error(
66
- `statezero: getState() must be called with an Array/Function/String/undefined "selector" argument; not ${selector}`,
63
+ `statezero: getState() must be called with an Array/Function/String/undefined selector; not ${selectorStr}`,
67
64
  );
68
65
  };
69
66
 
70
67
  // eslint-disable-next-line no-shadow
71
68
  export const setState = action(({ commit, state }, selector, value) => {
72
- if (selector === undefined || selector === null || selector === '') {
69
+ if (selector === undefined || selector === null || selector === "") {
73
70
  state = value;
74
- } else if (isString(selector)) {
71
+ } else if (typeof selector === "string") {
75
72
  set(state, selector, value);
76
73
  } else {
74
+ const selectorStr = typeof selector === "object" ? JSON.stringify(selector) : selector;
77
75
  throw new Error(
78
- `statezero: setState() must be called with an String/undefined "selector" argument; not ${selector}`,
76
+ `statezero: setState() must be called with an String/undefined "selector" argument; not ${selectorStr}`,
79
77
  );
80
78
  }
81
79
  commit(state);
@@ -1,10 +1,6 @@
1
- import get from 'lodash/get';
2
- import isArray from 'lodash/isArray';
3
- import isEqualWith from 'lodash/isEqualWith';
4
- import isFunction from 'lodash/isFunction';
5
- import isString from 'lodash/isString';
1
+ import { get, isEqualWith } from "lodash-es";
6
2
 
7
- import { isImmutable } from './immutable';
3
+ import { isImmutable } from "./immutable";
8
4
 
9
5
  export const subscribersAsync = new Set();
10
6
  export const subscribersSync = new Set();
@@ -42,20 +38,20 @@ const createStringSelector = (path) => (_state) => get(_state, path);
42
38
  */
43
39
  export const subscribe = (callback, selector, isSync = false) => {
44
40
  // Convert an array or string selector into a function.
45
- if (isString(selector)) {
41
+ if (typeof selector === "string") {
46
42
  selector = createStringSelector(selector);
47
- } else if (isArray(selector)) {
43
+ } else if (Array.isArray(selector)) {
48
44
  selector = createArraySelector(selector);
49
45
  }
50
46
 
51
- if (isFunction(selector)) {
47
+ if (typeof selector === "function") {
52
48
  callback = applySelector(callback, selector);
53
49
  } else if (selector === undefined) {
54
50
  callback = applyRootState(callback);
55
51
  } else {
52
+ const selectorStr = typeof selector === "object" ? JSON.stringify(selector) : selector;
56
53
  throw new Error(
57
- `statezero: subscribe() must be called with an Array/Function/String/undefined "selector" argument; not\
58
- ${selector}`,
54
+ `statezero: subscribe() must be called with an Array/Function/String/undefined selector; not ${selectorStr}`,
59
55
  );
60
56
  }
61
57
 
package/babel.config.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "presets": ["@babel/preset-env"],
3
- "plugins": [
4
- "babel-plugin-transform-async-to-promises",
5
- [
6
- "@babel/plugin-transform-runtime",
7
- {
8
- "absoluteRuntime": true,
9
- "corejs": 3,
10
- "helpers": true,
11
- "useESModules": true
12
- }
13
- ]
14
- ]
15
- }
package/karma.conf.js DELETED
@@ -1,20 +0,0 @@
1
- const webpackConfig = require('./webpack.config')({}, { mode: 'development' });
2
-
3
- const TEST_FILES = 'test/test_*.js';
4
-
5
- module.exports = (config) => {
6
- const autoWatch = !!config.WATCH;
7
- config.set({
8
- autoWatch,
9
- browsers: [autoWatch ? 'Chrome' : 'ChromeHeadless'],
10
- files: [TEST_FILES],
11
- frameworks: ['mocha', 'sinon-chai'],
12
- preprocessors: {
13
- [TEST_FILES]: ['webpack'],
14
- },
15
- reporters: ['mocha'],
16
- singleRun: !autoWatch,
17
- webpack: webpackConfig,
18
- webpackMiddleware: { stats: 'errors-only' },
19
- });
20
- };