object-fill-missing-keys 11.1.3 → 11.2.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/CHANGELOG.md +18 -2
- package/LICENSE +1 -1
- package/README.md +3 -2
- package/dist/object-fill-missing-keys.esm.js +3 -3
- package/dist/object-fill-missing-keys.umd.js +22 -22
- package/package.json +24 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,11 +3,27 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## 11.
|
|
6
|
+
## 11.2.0 (2026-08-19)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- make validation diagnostics safe ([7b01074](https://github.com/codsen/codsen/commit/7b0107476f12734aeb8e82852ba980b187280110))
|
|
11
|
+
- resolve review findings REV-004 through REV-007 ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
|
|
12
|
+
- retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
|
|
7
13
|
|
|
8
14
|
### Features
|
|
9
15
|
|
|
10
|
-
-
|
|
16
|
+
- add codsen-glob and migrate glob consumers ([5595a2b](https://github.com/codsen/codsen/commit/5595a2b267eaa6cb60072d037aef00b7a28edd42))
|
|
17
|
+
- refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))
|
|
18
|
+
|
|
19
|
+
### Performance Improvements
|
|
20
|
+
|
|
21
|
+
- clone the input once and cache skipped paths ([35327d9](https://github.com/codsen/codsen/commit/35327d909473a2e3327eef291a521b26303722c9))
|
|
22
|
+
|
|
23
|
+
### Reverts
|
|
24
|
+
|
|
25
|
+
- Revert "Merge pull request #128 from codsen/release/npm-32198404552-1" ([5baeeaa](https://github.com/codsen/codsen/commit/5baeeaaa677b86f1eaa6396cadf3aea32b06416e)), closes [#128](https://github.com/codsen/codsen/issues/128)
|
|
26
|
+
- Revert "Merge pull request #127 from codsen/release/npm-32194020886-1" ([5f1e94d](https://github.com/codsen/codsen/commit/5f1e94deef910ce735266b16aeee08a76de7a862)), closes [#127](https://github.com/codsen/codsen/issues/127)
|
|
11
27
|
|
|
12
28
|
## 11.0.0 (2022-12-01)
|
|
13
29
|
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright © 2010-
|
|
3
|
+
Copyright © 2010-2026 Roy Revelt and other contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ npm i object-fill-missing-keys
|
|
|
32
32
|
## Quick Take
|
|
33
33
|
|
|
34
34
|
```js
|
|
35
|
-
import { strict as assert } from "assert";
|
|
35
|
+
import { strict as assert } from "node:assert";
|
|
36
36
|
|
|
37
37
|
import { fillMissing } from "object-fill-missing-keys";
|
|
38
38
|
|
|
@@ -59,6 +59,7 @@ assert.deepEqual(
|
|
|
59
59
|
);
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
+
|
|
62
63
|
## Documentation
|
|
63
64
|
|
|
64
65
|
Please [visit codsen.com](https://codsen.com/os/object-fill-missing-keys/) for a full description of the API. If you’re looking for the **Changelog**, it’s [here](https://github.com/codsen/codsen/blob/main/packages/object-fill-missing-keys/CHANGELOG.md).
|
|
@@ -71,6 +72,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
|
|
|
71
72
|
|
|
72
73
|
MIT License
|
|
73
74
|
|
|
74
|
-
Copyright © 2010-
|
|
75
|
+
Copyright © 2010-2026 Roy Revelt and other contributors
|
|
75
76
|
|
|
76
77
|
<p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name object-fill-missing-keys
|
|
3
3
|
* @fileoverview Add missing keys into plain objects, according to a reference object
|
|
4
|
-
* @version 11.
|
|
4
|
+
* @version 11.2.0
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/object-fill-missing-keys/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import
|
|
11
|
-
${
|
|
10
|
+
import{arrayiffy as h}from"arrayiffy-if-string";import{deepClone as g,existy as f,formatDiagnosticValue as u,isPlainObject as a,isStr as j}from"codsen-utils";import{allEq as d}from"object-all-values-equal-to";import{mergeAdvanced as O}from"object-merge-advanced";var m="11.2.0";var I=m,T={placeholder:!1,doNotFillThesePathsIfTheyContainPlaceholders:[],useNullAsExplicitFalse:!0};function c(r){return a(r)?"plain object":Array.isArray(r)?"array":typeof r}function p(r,s,i,l,n=""){let e=r;if(f(e)||!(n.length&&l.has(n)&&d(e,i.placeholder)))if(a(s)&&a(e))Object.keys(s).forEach(t=>{let o=`${n?`${n}.`:""}${t}`;l.has(o)&&(f(e[t])?d(e[t],i.placeholder)&&(e[t]=i.placeholder):e[t]=i.placeholder),(!f(e[t])||!(l.has(o)&&d(e[t],i.placeholder)))&&(e[t]=p(e[t],s[t],i,l,o))});else if(Array.isArray(s)&&Array.isArray(e)){if(e.length===0)return g(s);if(s.length)for(let t=e.length;t--;){let o=`${n?`${n}.`:""}0`;(a(s[0])||Array.isArray(s[0]))&&(e[t]=p(e[t],s[0],i,l,o))}}else return O(s,e,{useNullAsExplicitFalse:i.useNullAsExplicitFalse,cb:(t,o,y)=>c(t)===c(o)?o:y});return e}function P(r,s,i){if(arguments.length===0)throw new Error("object-fill-missing-keys/fillMissing(): [THROW_ID_01] All arguments are missing!");if(!a(r))throw new Error(`object-fill-missing-keys/fillMissing(): [THROW_ID_02] First argument, input object must be a plain object. Currently it's type is "${c(r)}" and it's equal to: ${u(r,4)}`);if(!a(s))throw new Error(`object-fill-missing-keys/fillMissing(): [THROW_ID_03] Second argument, schema object, must be a plain object. Currently it's type is "${c(s)}" and it's equal to: ${u(s,4)}`);if(i&&!a(i))throw new Error(`object-fill-missing-keys/fillMissing(): [THROW_ID_04] Third argument, schema object, must be a plain object. Currently it's type is "${c(i)}" and it's equal to: ${u(i,4)}`);let l={...T,...i};l.doNotFillThesePathsIfTheyContainPlaceholders=h(l.doNotFillThesePathsIfTheyContainPlaceholders);let n=null,e=null;if(l.doNotFillThesePathsIfTheyContainPlaceholders.length&&!l.doNotFillThesePathsIfTheyContainPlaceholders.every((t,o)=>j(t)?!0:(n=t,e=o,!1)))throw new Error(`object-fill-missing-keys/fillMissing(): [THROW_ID_05] resolvedOpts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "${e}" is not a string! It's ${c(n)}, equal to:
|
|
11
|
+
${u(n,4)}`);return p(g(r),s,l,new Set(l.doNotFillThesePathsIfTheyContainPlaceholders))}export{T as defaults,P as fillMissing,I as version};
|
|
@@ -1,25 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name object-fill-missing-keys
|
|
3
3
|
* @fileoverview Add missing keys into plain objects, according to a reference object
|
|
4
|
-
* @version 11.
|
|
4
|
+
* @version 11.2.0
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/object-fill-missing-keys/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var objectFillMissingKeys=(()=>{var zr=Object.create,qe=Object.freeze,K=Object.defineProperty,Vr=Object.defineProperties,Jr=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertyNames,Ge=Object.getOwnPropertySymbols,Zr=Object.getPrototypeOf,ze=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable;var Ue=(e,t,r)=>t in e?K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t||(t={}))ze.call(t,r)&&Ue(e,r,t[r]);if(Ge)for(var r of Ge(t))Yr.call(t,r)&&Ue(e,r,t[r]);return e},oe=(e,t)=>Vr(e,Qr(t));var eo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),to=(e,t)=>{for(var r in t)K(e,r,{get:t[r],enumerable:!0})},Ve=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Xr(t))!ze.call(e,s)&&s!==r&&K(e,s,{get:()=>t[s],enumerable:!(o=Jr(t,s))||o.enumerable});return e};var Ee=(e,t,r)=>(r=e!=null?zr(Zr(e)):{},Ve(t||!e||!e.__esModule?K(r,"default",{value:e,enumerable:!0}):r,e)),ro=e=>Ve(K({},"__esModule",{value:!0}),e);var ae=(e,t)=>qe(K(e,"raw",{value:qe(t||e.slice())}));var fe=eo((ls,Je)=>{"use strict";Je.exports=oo;function q(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function oo(e){if(e=e||{},e.circles)return ao(e);let t=new Map;if(t.set(Date,f=>new Date(f)),t.set(Map,(f,u)=>new Map(o(Array.from(f),u))),t.set(Set,(f,u)=>new Set(o(Array.from(f),u))),e.constructorHandlers)for(let f of e.constructorHandlers)t.set(f[0],f[1]);let r=null;return e.proto?a:s;function o(f,u){let n=Object.keys(f),p=new Array(n.length);for(let d=0;d<n.length;d++){let l=n[d],i=f[l];typeof i!="object"||i===null?p[l]=i:i.constructor!==Object&&(r=t.get(i.constructor))?p[l]=r(i,u):ArrayBuffer.isView(i)?p[l]=q(i):p[l]=u(i)}return p}function s(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return o(f,s);if(f.constructor!==Object&&(r=t.get(f.constructor)))return r(f,s);let u={};for(let n in f){if(Object.hasOwnProperty.call(f,n)===!1)continue;let p=f[n];typeof p!="object"||p===null?u[n]=p:p.constructor!==Object&&(r=t.get(p.constructor))?u[n]=r(p,s):ArrayBuffer.isView(p)?u[n]=q(p):u[n]=s(p)}return u}function a(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return o(f,a);if(f.constructor!==Object&&(r=t.get(f.constructor)))return r(f,a);let u={};for(let n in f){let p=f[n];typeof p!="object"||p===null?u[n]=p:p.constructor!==Object&&(r=t.get(p.constructor))?u[n]=r(p,a):ArrayBuffer.isView(p)?u[n]=q(p):u[n]=a(p)}return u}}function ao(e){let t=[],r=[],o=new Map;if(o.set(Date,n=>new Date(n)),o.set(Map,(n,p)=>new Map(a(Array.from(n),p))),o.set(Set,(n,p)=>new Set(a(Array.from(n),p))),e.constructorHandlers)for(let n of e.constructorHandlers)o.set(n[0],n[1]);let s=null;return e.proto?u:f;function a(n,p){let d=Object.keys(n),l=new Array(d.length);for(let i=0;i<d.length;i++){let y=d[i],m=n[y];if(typeof m!="object"||m===null)l[y]=m;else if(m.constructor!==Object&&(s=o.get(m.constructor)))l[y]=s(m,p);else if(ArrayBuffer.isView(m))l[y]=q(m);else{let b=t.indexOf(m);b!==-1?l[y]=r[b]:l[y]=p(m)}}return l}function f(n){if(typeof n!="object"||n===null)return n;if(Array.isArray(n))return a(n,f);if(n.constructor!==Object&&(s=o.get(n.constructor)))return s(n,f);let p={};t.push(n),r.push(p);for(let d in n){if(Object.hasOwnProperty.call(n,d)===!1)continue;let l=n[d];if(typeof l!="object"||l===null)p[d]=l;else if(l.constructor!==Object&&(s=o.get(l.constructor)))p[d]=s(l,f);else if(ArrayBuffer.isView(l))p[d]=q(l);else{let i=t.indexOf(l);i!==-1?p[d]=r[i]:p[d]=f(l)}}return t.pop(),r.pop(),p}function u(n){if(typeof n!="object"||n===null)return n;if(Array.isArray(n))return a(n,u);if(n.constructor!==Object&&(s=o.get(n.constructor)))return s(n,u);let p={};t.push(n),r.push(p);for(let d in n){let l=n[d];if(typeof l!="object"||l===null)p[d]=l;else if(l.constructor!==Object&&(s=o.get(l.constructor)))p[d]=s(l,u);else if(ArrayBuffer.isView(l))p[d]=q(l);else{let i=t.indexOf(l);i!==-1?p[d]=r[i]:p[d]=u(l)}}return t.pop(),r.pop(),p}}});var ss={};to(ss,{defaults:()=>Ur,fillMissing:()=>ns,version:()=>fs});var Gr=Ee(fe(),1);var fo=typeof global=="object"&&global&&global.Object===Object&&global,ne=fo;var no=typeof self=="object"&&self&&self.Object===Object&&self,so=ne||no||Function("return this")(),g=so;var io=g.Symbol,T=io;var Qe=Object.prototype,lo=Qe.hasOwnProperty,uo=Qe.toString,Z=T?T.toStringTag:void 0;function po(e){var t=lo.call(e,Z),r=e[Z];try{e[Z]=void 0;var o=!0}catch(a){}var s=uo.call(e);return o&&(t?e[Z]=r:delete e[Z]),s}var Xe=po;var co=Object.prototype,mo=co.toString;function yo(e){return mo.call(e)}var Ze=yo;var xo="[object Null]",ho="[object Undefined]",Ye=T?T.toStringTag:void 0;function go(e){return e==null?e===void 0?ho:xo:Ye&&Ye in Object(e)?Xe(e):Ze(e)}var O=go;function bo(e){return e!=null&&typeof e=="object"}var j=bo;var Ao="[object Symbol]";function vo(e){return typeof e=="symbol"||j(e)&&O(e)==Ao}var et=vo;function Oo(e,t){for(var r=-1,o=e==null?0:e.length,s=Array(o);++r<o;)s[r]=t(e[r],r,e);return s}var tt=Oo;var jo=Array.isArray,S=jo;var _o=/\s/;function wo(e){for(var t=e.length;t--&&_o.test(e.charAt(t)););return t}var rt=wo;var To=/^\s+/;function So(e){return e&&e.slice(0,rt(e)+1).replace(To,"")}var ot=So;function Eo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $=Eo;var at=NaN,Co=/^[-+]0x[0-9a-f]+$/i,Po=/^0b[01]+$/i,ko=/^0o[0-7]+$/i,Io=parseInt;function Do(e){if(typeof e=="number")return e;if(et(e))return at;if($(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ot(e);var r=Po.test(e);return r||ko.test(e)?Io(e.slice(2),r?2:8):Co.test(e)?at:+e}var ft=Do;var nt=1/0,Mo=17976931348623157e292;function No(e){if(!e)return e===0?e:0;if(e=ft(e),e===nt||e===-nt){var t=e<0?-1:1;return t*Mo}return e===e?e:0}var st=No;function Bo(e){var t=st(e),r=t%1;return t===t?r?t-r:t:0}var it=Bo;var Ro="[object AsyncFunction]",Lo="[object Function]",Fo="[object GeneratorFunction]",$o="[object Proxy]";function Wo(e){if(!$(e))return!1;var t=O(e);return t==Lo||t==Fo||t==Ro||t==$o}var se=Wo;var Ho=g["__core-js_shared__"],ie=Ho;var lt=(function(){var e=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ko(e){return!!lt&< in e}var ut=Ko;var qo=Function.prototype,Go=qo.toString;function Uo(e){if(e!=null){try{return Go.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var E=Uo;var zo=/[\\^$.*+?()[\]{}|]/g,Vo=/^\[object .+?Constructor\]$/,Jo=Function.prototype,Qo=Object.prototype,Xo=Jo.toString,Zo=Qo.hasOwnProperty,Yo=RegExp("^"+Xo.call(Zo).replace(zo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ea(e){if(!$(e)||ut(e))return!1;var t=se(e)?Yo:Vo;return t.test(E(e))}var pt=ea;function ta(e,t){return e==null?void 0:e[t]}var ct=ta;function ra(e,t){var r=ct(e,t);return pt(r)?r:void 0}var _=ra;var oa=_(g,"WeakMap"),le=oa;function aa(e,t,r,o){for(var s=e.length,a=r+(o?1:-1);o?a--:++a<s;)if(t(e[a],a,e))return a;return-1}var mt=aa;function fa(e){return e!==e}var dt=fa;function na(e,t,r){for(var o=r-1,s=e.length;++o<s;)if(e[o]===t)return o;return-1}var yt=na;function sa(e,t,r){return t===t?yt(e,t,r):mt(e,dt,r)}var xt=sa;var ia=9007199254740991,la=/^(?:0|[1-9]\d*)$/;function ua(e,t){var r=typeof e;return t=t==null?ia:t,!!t&&(r=="number"||r!="symbol"&&la.test(e))&&e>-1&&e%1==0&&e<t}var ht=ua;function pa(e,t){return e===t||e!==e&&t!==t}var ue=pa;var ca=9007199254740991;function ma(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ca}var pe=ma;function da(e){return e!=null&&pe(e.length)&&!se(e)}var ce=da;var ya=Object.prototype;function xa(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ya;return e===r}var gt=xa;function ha(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var bt=ha;var ga="[object Arguments]";function ba(e){return j(e)&&O(e)==ga}var Ce=ba;var At=Object.prototype,Aa=At.hasOwnProperty,va=At.propertyIsEnumerable,Oa=Ce((function(){return arguments})())?Ce:function(e){return j(e)&&Aa.call(e,"callee")&&!va.call(e,"callee")},vt=Oa;function ja(){return!1}var Ot=ja;var wt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jt=wt&&typeof module=="object"&&module&&!module.nodeType&&module,_a=jt&&jt.exports===wt,_t=_a?g.Buffer:void 0,wa=_t?_t.isBuffer:void 0,Ta=wa||Ot,Y=Ta;var Sa="[object Arguments]",Ea="[object Array]",Ca="[object Boolean]",Pa="[object Date]",ka="[object Error]",Ia="[object Function]",Da="[object Map]",Ma="[object Number]",Na="[object Object]",Ba="[object RegExp]",Ra="[object Set]",La="[object String]",Fa="[object WeakMap]",$a="[object ArrayBuffer]",Wa="[object DataView]",Ha="[object Float32Array]",Ka="[object Float64Array]",qa="[object Int8Array]",Ga="[object Int16Array]",Ua="[object Int32Array]",za="[object Uint8Array]",Va="[object Uint8ClampedArray]",Ja="[object Uint16Array]",Qa="[object Uint32Array]",x={};x[Ha]=x[Ka]=x[qa]=x[Ga]=x[Ua]=x[za]=x[Va]=x[Ja]=x[Qa]=!0;x[Sa]=x[Ea]=x[$a]=x[Ca]=x[Wa]=x[Pa]=x[ka]=x[Ia]=x[Da]=x[Ma]=x[Na]=x[Ba]=x[Ra]=x[La]=x[Fa]=!1;function Xa(e){return j(e)&&pe(e.length)&&!!x[O(e)]}var Tt=Xa;function Za(e){return function(t){return e(t)}}var me=Za;var St=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ee=St&&typeof module=="object"&&module&&!module.nodeType&&module,Ya=ee&&ee.exports===St,Pe=Ya&&ne.process,ef=(function(){try{var e=ee&&ee.require&&ee.require("util").types;return e||Pe&&Pe.binding&&Pe.binding("util")}catch(t){}})(),G=ef;var Et=G&&G.isTypedArray,tf=Et?me(Et):Tt,de=tf;var rf=Object.prototype,of=rf.hasOwnProperty;function af(e,t){var r=S(e),o=!r&&vt(e),s=!r&&!o&&Y(e),a=!r&&!o&&!s&&de(e),f=r||o||s||a,u=f?bt(e.length,String):[],n=u.length;for(var p in e)(t||of.call(e,p))&&!(f&&(p=="length"||s&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||ht(p,n)))&&u.push(p);return u}var Ct=af;function ff(e,t){return function(r){return e(t(r))}}var Pt=ff;var nf=Pt(Object.keys,Object),kt=nf;var sf=Object.prototype,lf=sf.hasOwnProperty;function uf(e){if(!gt(e))return kt(e);var t=[];for(var r in Object(e))lf.call(e,r)&&r!="constructor"&&t.push(r);return t}var It=uf;function pf(e){return ce(e)?Ct(e):It(e)}var ye=pf;var cf=_(Object,"create"),C=cf;function mf(){this.__data__=C?C(null):{},this.size=0}var Dt=mf;function df(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Mt=df;var yf="__lodash_hash_undefined__",xf=Object.prototype,hf=xf.hasOwnProperty;function gf(e){var t=this.__data__;if(C){var r=t[e];return r===yf?void 0:r}return hf.call(t,e)?t[e]:void 0}var Nt=gf;var bf=Object.prototype,Af=bf.hasOwnProperty;function vf(e){var t=this.__data__;return C?t[e]!==void 0:Af.call(t,e)}var Bt=vf;var Of="__lodash_hash_undefined__";function jf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=C&&t===void 0?Of:t,this}var Rt=jf;function U(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])}}U.prototype.clear=Dt;U.prototype.delete=Mt;U.prototype.get=Nt;U.prototype.has=Bt;U.prototype.set=Rt;var ke=U;function _f(){this.__data__=[],this.size=0}var Lt=_f;function wf(e,t){for(var r=e.length;r--;)if(ue(e[r][0],t))return r;return-1}var I=wf;var Tf=Array.prototype,Sf=Tf.splice;function Ef(e){var t=this.__data__,r=I(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Sf.call(t,r,1),--this.size,!0}var Ft=Ef;function Cf(e){var t=this.__data__,r=I(t,e);return r<0?void 0:t[r][1]}var $t=Cf;function Pf(e){return I(this.__data__,e)>-1}var Wt=Pf;function kf(e,t){var r=this.__data__,o=I(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var Ht=kf;function z(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])}}z.prototype.clear=Lt;z.prototype.delete=Ft;z.prototype.get=$t;z.prototype.has=Wt;z.prototype.set=Ht;var D=z;var If=_(g,"Map"),M=If;function Df(){this.size=0,this.__data__={hash:new ke,map:new(M||D),string:new ke}}var Kt=Df;function Mf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qt=Mf;function Nf(e,t){var r=e.__data__;return qt(t)?r[typeof t=="string"?"string":"hash"]:r.map}var N=Nf;function Bf(e){var t=N(this,e).delete(e);return this.size-=t?1:0,t}var Gt=Bf;function Rf(e){return N(this,e).get(e)}var Ut=Rf;function Lf(e){return N(this,e).has(e)}var zt=Lf;function Ff(e,t){var r=N(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var Vt=Ff;function V(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])}}V.prototype.clear=Kt;V.prototype.delete=Gt;V.prototype.get=Ut;V.prototype.has=zt;V.prototype.set=Vt;var xe=V;function $f(e,t){for(var r=-1,o=t.length,s=e.length;++r<o;)e[s+r]=t[r];return e}var Jt=$f;function Wf(){this.__data__=new D,this.size=0}var Qt=Wf;function Hf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Xt=Hf;function Kf(e){return this.__data__.get(e)}var Zt=Kf;function qf(e){return this.__data__.has(e)}var Yt=qf;var Gf=200;function Uf(e,t){var r=this.__data__;if(r instanceof D){var o=r.__data__;if(!M||o.length<Gf-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new xe(o)}return r.set(e,t),this.size=r.size,this}var er=Uf;function J(e){var t=this.__data__=new D(e);this.size=t.size}J.prototype.clear=Qt;J.prototype.delete=Xt;J.prototype.get=Zt;J.prototype.has=Yt;J.prototype.set=er;var he=J;function zf(e,t){for(var r=-1,o=e==null?0:e.length,s=0,a=[];++r<o;){var f=e[r];t(f,r,e)&&(a[s++]=f)}return a}var tr=zf;function Vf(){return[]}var rr=Vf;var Jf=Object.prototype,Qf=Jf.propertyIsEnumerable,or=Object.getOwnPropertySymbols,Xf=or?function(e){return e==null?[]:(e=Object(e),tr(or(e),function(t){return Qf.call(e,t)}))}:rr,ar=Xf;function Zf(e,t,r){var o=t(e);return S(e)?o:Jt(o,r(e))}var fr=Zf;function Yf(e){return fr(e,ye,ar)}var Ie=Yf;var en=_(g,"DataView"),ge=en;var tn=_(g,"Promise"),be=tn;var rn=_(g,"Set"),Ae=rn;var nr="[object Map]",on="[object Object]",sr="[object Promise]",ir="[object Set]",lr="[object WeakMap]",ur="[object DataView]",an=E(ge),fn=E(M),nn=E(be),sn=E(Ae),ln=E(le),W=O;(ge&&W(new ge(new ArrayBuffer(1)))!=ur||M&&W(new M)!=nr||be&&W(be.resolve())!=sr||Ae&&W(new Ae)!=ir||le&&W(new le)!=lr)&&(W=function(e){var t=O(e),r=t==on?e.constructor:void 0,o=r?E(r):"";if(o)switch(o){case an:return ur;case fn:return nr;case nn:return sr;case sn:return ir;case ln:return lr}return t});var De=W;var un=g.Uint8Array,Me=un;var pn="__lodash_hash_undefined__";function cn(e){return this.__data__.set(e,pn),this}var pr=cn;function mn(e){return this.__data__.has(e)}var cr=mn;function ve(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new xe;++t<r;)this.add(e[t])}ve.prototype.add=ve.prototype.push=pr;ve.prototype.has=cr;var mr=ve;function dn(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 dr=dn;function yn(e,t){return e.has(t)}var yr=yn;var xn=1,hn=2;function gn(e,t,r,o,s,a){var f=r&xn,u=e.length,n=t.length;if(u!=n&&!(f&&n>u))return!1;var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var l=-1,i=!0,y=r&hn?new mr:void 0;for(a.set(e,t),a.set(t,e);++l<u;){var m=e[l],b=t[l];if(o)var k=f?o(b,m,l,t,e,a):o(m,b,l,e,t,a);if(k!==void 0){if(k)continue;i=!1;break}if(y){if(!dr(t,function(L,F){if(!yr(y,F)&&(m===L||s(m,L,r,o,a)))return y.push(F)})){i=!1;break}}else if(!(m===b||s(m,b,r,o,a))){i=!1;break}}return a.delete(e),a.delete(t),i}var Oe=gn;function bn(e){var t=-1,r=Array(e.size);return e.forEach(function(o,s){r[++t]=[s,o]}),r}var xr=bn;function An(e){var t=-1,r=Array(e.size);return e.forEach(function(o){r[++t]=o}),r}var hr=An;var vn=1,On=2,jn="[object Boolean]",_n="[object Date]",wn="[object Error]",Tn="[object Map]",Sn="[object Number]",En="[object RegExp]",Cn="[object Set]",Pn="[object String]",kn="[object Symbol]",In="[object ArrayBuffer]",Dn="[object DataView]",gr=T?T.prototype:void 0,Ne=gr?gr.valueOf:void 0;function Mn(e,t,r,o,s,a,f){switch(r){case Dn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case In:return!(e.byteLength!=t.byteLength||!a(new Me(e),new Me(t)));case jn:case _n:case Sn:return ue(+e,+t);case wn:return e.name==t.name&&e.message==t.message;case En:case Pn:return e==t+"";case Tn:var u=xr;case Cn:var n=o&vn;if(u||(u=hr),e.size!=t.size&&!n)return!1;var p=f.get(e);if(p)return p==t;o|=On,f.set(e,t);var d=Oe(u(e),u(t),o,s,a,f);return f.delete(e),d;case kn:if(Ne)return Ne.call(e)==Ne.call(t)}return!1}var br=Mn;var Nn=1,Bn=Object.prototype,Rn=Bn.hasOwnProperty;function Ln(e,t,r,o,s,a){var f=r&Nn,u=Ie(e),n=u.length,p=Ie(t),d=p.length;if(n!=d&&!f)return!1;for(var l=n;l--;){var i=u[l];if(!(f?i in t:Rn.call(t,i)))return!1}var y=a.get(e),m=a.get(t);if(y&&m)return y==t&&m==e;var b=!0;a.set(e,t),a.set(t,e);for(var k=f;++l<n;){i=u[l];var L=e[i],F=t[i];if(o)var Ke=f?o(F,L,i,t,e,a):o(L,F,i,e,t,a);if(!(Ke===void 0?L===F||s(L,F,r,o,a):Ke)){b=!1;break}k||(k=i=="constructor")}if(b&&!k){var te=e.constructor,re=t.constructor;te!=re&&"constructor"in e&&"constructor"in t&&!(typeof te=="function"&&te instanceof te&&typeof re=="function"&&re instanceof re)&&(b=!1)}return a.delete(e),a.delete(t),b}var Ar=Ln;var Fn=1,vr="[object Arguments]",Or="[object Array]",je="[object Object]",$n=Object.prototype,jr=$n.hasOwnProperty;function Wn(e,t,r,o,s,a){var f=S(e),u=S(t),n=f?Or:De(e),p=u?Or:De(t);n=n==vr?je:n,p=p==vr?je:p;var d=n==je,l=p==je,i=n==p;if(i&&Y(e)){if(!Y(t))return!1;f=!0,d=!1}if(i&&!d)return a||(a=new he),f||de(e)?Oe(e,t,r,o,s,a):br(e,t,n,r,o,s,a);if(!(r&Fn)){var y=d&&jr.call(e,"__wrapped__"),m=l&&jr.call(t,"__wrapped__");if(y||m){var b=y?e.value():e,k=m?t.value():t;return a||(a=new he),s(b,k,r,o,a)}}return i?(a||(a=new he),Ar(e,t,r,o,s,a)):!1}var _r=Wn;function wr(e,t,r,o,s){return e===t?!0:e==null||t==null||!j(e)&&!j(t)?e!==e&&t!==t:_r(e,t,r,o,wr,s)}var Tr=wr;var Hn="[object String]";function Kn(e){return typeof e=="string"||!S(e)&&j(e)&&O(e)==Hn}var Sr=Kn;function qn(e,t){return tt(t,function(r){return e[r]})}var Er=qn;function Gn(e){return e==null?[]:Er(e,ye(e))}var Cr=Gn;var Un=Math.max;function zn(e,t,r,o){e=ce(e)?e:Cr(e),r=r&&!o?it(r):0;var s=e.length;return r<0&&(r=Un(s+r,0)),Sr(e)?r<=s&&e.indexOf(t,r)>-1:!!s&&xt(e,t,r)>-1}var Be=zn;var Vn="[object Date]";function Jn(e){return j(e)&&O(e)==Vn}var Pr=Jn;var kr=G&&G.isDate,Qn=kr?me(kr):Pr,Q=Qn;function Xn(e,t){return Tr(e,t)}var _e=Xn;var Ir=Ee(fe(),1);var cc=(0,Ir.default)();function h(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function H(e){return typeof e=="string"}function Dr(e){return Number.isFinite(e)}function we(e){return typeof e=="boolean"}function P(e){return e!=null}function Mr(e,t){return h(e)&&H(t)&&t in e}function Nr(e,t){return e.localeCompare(t)}function w(e){return e==null?!1:Array.isArray(e)||typeof e=="string"?!!e.length:h(e)?!!Object.keys(e).length:typeof e=="number"}var Wr=Ee(fe(),1);function Re(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Le=new Map,Br=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":{e=[e];break}case"undefined":{e=[];break}default:throw new TypeError("Expected '".concat(t,"' to be a string or an array, but got a type of '").concat(typeof e,"'"))}return e.filter(r=>{if(typeof r!="string"){if(r===void 0)return!1;throw new TypeError("Expected '".concat(t,"' to be an array of strings, but found a type of '").concat(typeof r,"' in the array"))}return!0})},Rr,Lr,Fr,Zn=(e,t)=>{t=A({caseSensitive:!1},t);let r="s"+(t.caseSensitive?"":"i"),o=e+"|"+r;if(Le.has(o))return Le.get(o);let s=e[0]==="!";s&&(e=e.slice(1)),e=e.replaceAll(String.raw(Rr||(Rr=ae(["*"],["\\*"]))),"__ESCAPED_STAR__").replaceAll("\\\\","__ESCAPED_BACKSLASH__").replaceAll(/\\(.)/g,"$1"),e=Re(e).replaceAll(String.raw(Lr||(Lr=ae(["*"],["\\*"]))),".*"),e=e.replaceAll("__ESCAPED_STAR__",String.raw(Fr||(Fr=ae(["*"],["\\*"])))).replaceAll("__ESCAPED_BACKSLASH__","\\\\");let a=new RegExp("^".concat(e,"$"),r);return a.negated=s,Le.set(o,a),a},Yn=(e,t,r,o)=>{if(e=Br(e,"inputs"),t=Br(t,"patterns"),t.length===0)return[];t=t.map(n=>Zn(n,r));let s=t.filter(n=>n.negated),a=t.filter(n=>!n.negated),{allPatterns:f}=r||{},u=[];if(f&&o&&s.length>1&&a.length===0){for(let n of e)for(let p of s)if(p.test(n))return[];return e.slice(0,1)}for(let n of e){let p=!1;for(let d of s)if(d.test(n)){p=!0;break}if(!p){if(a.length===0)u.push(n);else if(f){let d=Array.from({length:a.length},()=>!1);for(let[l,i]of a.entries())i.test(n)&&(d[l]=!0);d.every(Boolean)&&u.push(n)}else{let d=!1;for(let l of a)if(l.test(n)){d=!0;break}d&&u.push(n)}if(o&&u.length>0)break}}return u};function Te(e,t,r){return Yn(e,t,r,!0).length>0}var es={arrayVsArrayAllMustBeFound:"any",caseSensitive:!0};function Fe(e,t,r){if(!e.length||!t.length)return!1;let o=A(A({},es),r),s=typeof e=="string"?[e]:Array.from(e);return typeof t=="string"?s.some(a=>Te(a,t,{caseSensitive:o.caseSensitive})):o.arrayVsArrayAllMustBeFound==="any"?t.some(a=>s.some(f=>Te(f,a,{caseSensitive:o.caseSensitive}))):t.every(a=>s.some(f=>Te(f,a,{caseSensitive:o.caseSensitive})))}var c=(0,Wr.default)();var B=Array.isArray;function $r(e){return!!e&&e.some(t=>typeof t=="string")}function ts(e,t){return Object.keys(e).length===0||Object.keys(t).length===0||Object.keys(e).every(r=>Object.keys(t).includes(r))||Object.keys(t).every(r=>Object.keys(e).includes(r))}function v(e){return e===null?"null":Q(e)?"date":h(e)?"object":B(e)?"array":typeof e}var rs={cb:null,mergeObjectsOnlyWhenKeysetMatches:!0,ignoreKeys:[],hardMergeKeys:[],hardArrayConcatKeys:[],mergeArraysContainingStringsToBeEmpty:!1,oneToManyArrayObjectMerge:!1,hardMergeEverything:!1,hardArrayConcat:!1,ignoreEverything:!1,concatInsteadOfMerging:!0,dedupeStringsInArrayValues:!1,mergeBoolsUsingOrNotAnd:!0,useNullAsExplicitFalse:!1};function R(e,t,r,o){var d;let s;if(o.useNullAsExplicitFalse&&(t===null||r===null))return typeof o.cb=="function"?o.cb(t,r,null,{path:e.path,key:e.key,type:e.type}):null;let a=B(t)||h(t)?c(t):t,f=B(r)||h(r)?c(r):r,u;o.ignoreEverything?u=a:o.hardMergeEverything&&(u=f);let n=o.hardMergeEverything||o.ignoreEverything;if(B(a))if(w(a))if(B(f)&&w(f)){if(o.mergeArraysContainingStringsToBeEmpty&&($r(a)||$r(f))){let i=n?u:[];return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:s,key:e.key,type:e.type}):i}if(o.hardArrayConcat){let i=n?u:a.concat(f);return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:s,key:e.key,type:e.type}):i}let l=[];for(let i=0,y=Math.max(a.length,f.length);i<y;i++)s=(d=e.path)!=null&&d.length?"".concat(e.path,".").concat(i):"".concat(i),h(a[i])&&h(f[i])&&(o.mergeObjectsOnlyWhenKeysetMatches&&ts(a[i],f[i])||!o.mergeObjectsOnlyWhenKeysetMatches)?l.push(R({path:s,key:e.key,type:[v(a),v(f)]},a[i],f[i],o)):o.oneToManyArrayObjectMerge&&(a.length===1||f.length===1)?l.push(a.length===1?R({path:s,key:e.key,type:[v(a),v(f)]},a[0],f[i],o):R({path:s,key:e.key,type:[v(a),v(f)]},a[i],f[0],o)):o.concatInsteadOfMerging?(i<a.length&&l.push(a[i]),i<f.length&&l.push(f[i])):(i<a.length&&l.push(a[i]),i<f.length&&!Be(a,f[i])&&l.push(f[i]));o.dedupeStringsInArrayValues&&l.every(i=>H(i))&&(l=[...new Set(l)].sort(Nr)),a=c(l)}else{let l=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),l,{path:s,key:e.key,type:e.type}):l}else{if(w(f)){let i=n?u:f;return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:s,key:e.key,type:e.type}):i}let l=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),l,{path:s,key:e.key,type:e.type}):l}else if(h(a)){if(w(a)){if(B(f)){if(w(f)){let m=n?u:f;return typeof o.cb=="function"?o.cb(c(t),c(r),m,{path:s,key:e.key,type:e.type}):m}let y=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),y,{path:s,key:e.key,type:e.type}):y}if(h(f)){Object.keys(f).forEach(m=>{var b;s=(b=e.path)!=null&&b.length?"".concat(e.path,".").concat(m):"".concat(m),Mr(a,m)?Fe(m,o.ignoreKeys)?a[m]=R({path:s,key:m,type:[v(a),v(f)]},a[m],f[m],oe(A({},o),{ignoreEverything:!0})):Fe(m,o.hardMergeKeys)?a[m]=R({path:s,key:m,type:[v(a),v(f)]},a[m],f[m],oe(A({},o),{hardMergeEverything:!0})):Fe(m,o.hardArrayConcatKeys)?a[m]=R({path:s,key:m,type:[v(a),v(f)]},a[m],f[m],oe(A({},o),{hardArrayConcat:!0})):a[m]=R({path:s,key:m,type:[v(a[m]),v(f[m])]},a[m],f[m],o):a[m]=f[m]});let y=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),y,{path:e.path,key:e.key,type:e.type}):a}let i=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:e.path,key:e.key,type:e.type}):i}if(B(f)||h(f)||w(f)){let i=n?u:f;return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:e.path,key:e.key,type:e.type}):i}let l=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),l,{path:e.path,key:e.key,type:e.type}):l}else if(Q(a)){if(Number.isFinite(+a)){if(Q(f)){if(Number.isFinite(+f)){let m=n?u:a>f?a:f;return typeof o.cb=="function"?o.cb(c(t),c(r),m,{path:e.path,key:e.key,type:e.type}):m}let y=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),y,{path:e.path,key:e.key,type:e.type}):y}let i=n?u:f||a;return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:e.path,key:e.key,type:e.type}):i}if(Q(f)){let i=n?u:f;return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:e.path,key:e.key,type:e.type}):i}let l=n?u:f;return typeof o.cb=="function"?o.cb(c(t),c(r),l,{path:e.path,key:e.key,type:e.type}):l}else if(H(a)){if(w(a)){if((B(f)||h(f)||H(f))&&w(f)){let y=n?u:f;return typeof o.cb=="function"?o.cb(c(t),c(r),y,{path:e.path,key:e.key,type:e.type}):y}let i=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:e.path,key:e.key,type:e.type}):i}if(P(f)&&!we(f)){let i=n?u:f;return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:e.path,key:e.key,type:e.type}):i}let l=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),l,{path:e.path,key:e.key,type:e.type}):l}else if(Dr(a)){if(w(f)){let i=n?u:f;return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:e.path,key:e.key,type:e.type}):i}let l=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),l,{path:e.path,key:e.key,type:e.type}):l}else if(we(a)){if(we(f)){if(o.mergeBoolsUsingOrNotAnd){let y=n?u:a||f;return typeof o.cb=="function"?o.cb(c(t),c(r),y,{path:e.path,key:e.key,type:e.type}):y}let i=n?u:a&&f;return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:e.path,key:e.key,type:e.type}):i}if(P(f)){let i=n?u:f;return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:e.path,key:e.key,type:e.type}):i}let l=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),l,{path:e.path,key:e.key,type:e.type}):l}else if(a===null){if(P(f)){let i=n?u:f;return typeof o.cb=="function"?o.cb(c(t),c(r),i,{path:e.path,key:e.key,type:e.type}):i}let l=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),l,{path:e.path,key:e.key,type:e.type}):l}else{let l=n?u:f;return typeof o.cb=="function"?o.cb(c(t),c(r),l,{path:e.path,key:e.key,type:e.type}):l}let p=n?u:a;return typeof o.cb=="function"?o.cb(c(t),c(r),p,{path:e.path,key:e.key,type:e.type}):p}function Hr(e,t,r){var s,a;if(!arguments.length)throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_01] Both inputs are missing");if(P(r)&&!h(r))throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_02] The optional options object should be a plain object, currently it's ".concat(JSON.stringify(r,null,4)," (type ").concat(typeof r,")"));let o=A(A({},rs),r);return typeof o.ignoreKeys=="string"&&(o.ignoreKeys=[o.ignoreKeys]),typeof o.hardMergeKeys=="string"&&(o.hardMergeKeys=[o.hardMergeKeys]),(s=o==null?void 0:o.hardMergeKeys)!=null&&s.includes("*")&&(o.hardMergeEverything=!0),(a=o==null?void 0:o.ignoreKeys)!=null&&a.includes("*")&&(o.ignoreEverything=!0),R({key:null,path:"",type:[v(e),v(t)]},e,t,o)}function Kr(e){return typeof e!="string"?e:e.length?[e]:[]}var os={arraysMustNotContainPlaceholders:!0};function $e(e,t,r){if(Array.isArray(e)){if(e.length===0)return!0;if(r.arraysMustNotContainPlaceholders&&e.length&&e.some(o=>_e(o,t)))return!1;for(let o=e.length;o--;)if(!$e(e[o],t,r))return!1;return!0}if(h(e)){let o=Object.keys(e);if(o.length===0)return!0;for(let s=o.length;s--;)if(!$e(e[o[s]],t,r))return!1;return!0}return _e(e,t)}function Se(e,t,r){if(e===void 0)throw new Error("object-all-values-equal-to: [THROW_ID_01] The first input is undefined! Please provide the first argument.");if(t===void 0)throw new Error("object-all-values-equal-to: [THROW_ID_02] The second input is undefined! Please provide the second argument.");if(r&&!h(r))throw new Error("object-all-values-equal-to: [THROW_ID_03] The third argument, options object, was given not as a plain object but as a ".concat(typeof r,", equal to:\n").concat(JSON.stringify(r,null,4)));let o=A(A({},os),r);return $e(e,t,o)}var qr="11.1.3";var We=(0,Gr.default)(),fs=qr,Ur={placeholder:!1,doNotFillThesePathsIfTheyContainPlaceholders:[],useNullAsExplicitFalse:!0};function X(e){return h(e)?"plain object":Array.isArray(e)?"array":typeof e}function He(e,t,r,o=""){let s=We(e);if(P(s)||!(o.length&&r.doNotFillThesePathsIfTheyContainPlaceholders.includes(o)&&Se(s,r.placeholder)))if(h(t)&&h(s))Object.keys(t).forEach(a=>{let f="".concat(o?"".concat(o,"."):"").concat(a);r.doNotFillThesePathsIfTheyContainPlaceholders.includes(f)&&(P(s[a])?Se(s[a],r.placeholder)&&(s[a]=r.placeholder):s[a]=r.placeholder),(!P(s[a])||!(r.doNotFillThesePathsIfTheyContainPlaceholders.includes(f)&&Se(s[a],r.placeholder)))&&(s[a]=He(s[a],t[a],r,f))});else if(Array.isArray(t)&&Array.isArray(s)){if(s.length===0)return t;if(t.length)for(let a=s.length;a--;){let f="".concat(o?"".concat(o,"."):"","0");(h(t[0])||Array.isArray(t[0]))&&(s[a]=He(s[a],t[0],r,f))}}else return Hr(t,s,{useNullAsExplicitFalse:r.useNullAsExplicitFalse,cb:(a,f,u)=>X(a)===X(f)?f:u});return s}function ns(e,t,r){if(arguments.length===0)throw new Error("object-fill-missing-keys: [THROW_ID_01] All arguments are missing!");if(!h(e))throw new Error("object-fill-missing-keys: [THROW_ID_02] First argument, input object must be a plain object. Currently it's type is \"".concat(X(e),"\" and it's equal to: ").concat(JSON.stringify(e,null,4)));if(!h(t))throw new Error("object-fill-missing-keys: [THROW_ID_03] Second argument, schema object, must be a plain object. Currently it's type is \"".concat(X(t),"\" and it's equal to: ").concat(JSON.stringify(t,null,4)));if(r&&!h(r))throw new Error("object-fill-missing-keys: [THROW_ID_04] Third argument, schema object, must be a plain object. Currently it's type is \"".concat(X(r),"\" and it's equal to: ").concat(JSON.stringify(r,null,4)));let o=A(A({},Ur),r);o.doNotFillThesePathsIfTheyContainPlaceholders=Kr(o.doNotFillThesePathsIfTheyContainPlaceholders);let s=null,a=null;if(o.doNotFillThesePathsIfTheyContainPlaceholders.length&&!o.doNotFillThesePathsIfTheyContainPlaceholders.every((f,u)=>H(f)?!0:(s=f,a=u,!1)))throw new Error('object-fill-missing-keys: [THROW_ID_06] resolvedOpts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "'.concat(a,"\" is not a string! It's ").concat(X(s),", equal to:\n").concat(JSON.stringify(s,null,4)));return He(We(e),We(t),o)}return ro(ss);})();
|
|
10
|
+
"use strict";var objectFillMissingKeys=(()=>{var ne=Object.defineProperty,Qr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptor,Yr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertyNames,Ve=Object.getOwnPropertySymbols;var Je=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable;var Me=(e,t,r)=>t in e?ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))Je.call(t,r)&&Me(e,r,t[r]);if(Ve)for(var r of Ve(t))eo.call(t,r)&&Me(e,r,t[r]);return e},fe=(e,t)=>Qr(e,Yr(t));var to=(e,t)=>{for(var r in t)ne(e,r,{get:t[r],enumerable:!0})},ro=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let f of Zr(t))!Je.call(e,f)&&f!==r&&ne(e,f,{get:()=>t[f],enumerable:!(o=Xr(t,f))||o.enumerable});return e};var oo=e=>ro(ne({},"__esModule",{value:!0}),e);var te=(e,t,r)=>Me(e,typeof t!="symbol"?t+"":t,r);var vi={};to(vi,{defaults:()=>Jr,fillMissing:()=>bi,version:()=>xi});function Qe(e){return typeof e!="string"?e:e.length?[e]:[]}function ao(){let e=[],t=0,r=!1;return{append(o){return r?!1:t+o.length>1999?(e.push("\u2026"),t+=1,r=!0,!1):(e.push(o),t+=o.length,!0)},result(){return e.join("")},stopped(){return r}}}function no(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function le(e,t){if(e.append('"')){for(let r=0;r<t.length&&!e.stopped();r+=1){let o=t.charCodeAt(r);o===34?e.append('\\"'):o===92?e.append("\\\\"):o===8?e.append("\\b"):o===9?e.append("\\t"):o===10?e.append("\\n"):o===12?e.append("\\f"):o===13?e.append("\\r"):o<32||o===8232||o===8233||o>=55296&&o<=57343?e.append(no(o)):e.append(t[r])}e.append('"')}}function fo(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function Ze(e,t){e.append("Symbol(");let r=String(t);r.length>8&&le(e,r.slice(7,-1)),e.append(")")}function Xe(e,t){typeof t=="symbol"?Ze(e,t):le(e,String(t))}function E(e,t=0){let r=ao(),o=t===4?4:0,f=new WeakSet,a=0;function i(s){o&&r.append(" ".repeat(s*o))}function n(s,h){s&&r.append(","),o&&(r.append("\n"),i(h+1))}function l(s,h,p){o&&h&&(r.append("\n"),i(p)),r.append(s)}function u(s,h){Object.prototype.hasOwnProperty.call(s,"value")?m(s.value,h):r.append(fo(s))}function c(s,h){let p;try{p=Reflect.getOwnPropertyDescriptor(s,"length")}catch(A){r.append("[Uninspectable]");return}let g=p==null?void 0:p.value;if(!Number.isSafeInteger(g)||g<0){r.append("[Uninspectable]");return}r.append("[");let O=!1;for(let A=0;A<g&&!r.stopped();A+=1){if(n(O,h),O=!0,a>=50){r.append("[MaxEntries]");break}a+=1;let I;try{I=Reflect.getOwnPropertyDescriptor(s,String(A))}catch(ee){r.append("[Uninspectable]");continue}I!=null&&I.enumerable?u(I,h+1):r.append("[Empty]")}l("]",O,h)}function v(s,h){let p;try{p=Reflect.ownKeys(s)}catch(O){r.append("[Uninspectable]");return}r.append("{");let g=!1;for(let O of p){if(r.stopped())break;if(a>=50){n(g,h),g=!0,le(r,"\u2026"),r.append(o?": ":":"),r.append("[MaxEntries]");break}a+=1;let A;try{A=Reflect.getOwnPropertyDescriptor(s,O)}catch(I){n(g,h),g=!0,Xe(r,O),r.append(o?": ":":"),r.append("[Uninspectable]");continue}A!=null&&A.enumerable&&(n(g,h),g=!0,Xe(r,O),r.append(o?": ":":"),u(A,h+1))}l("}",g,h)}function y(s,h){if(f.has(s)){r.append("[Circular]");return}if(h>=5){r.append("[MaxDepth]");return}let p;try{p=Array.isArray(s)}catch(g){r.append("[Uninspectable]");return}f.add(s);try{p?c(s,h):v(s,h)}finally{f.delete(s)}}function m(s,h){s===null?r.append("null"):typeof s=="string"?le(r,s):typeof s=="number"?r.append(Object.is(s,-0)?"-0":String(s)):typeof s=="boolean"?r.append(s?"true":"false"):typeof s>"u"?r.append("undefined"):typeof s=="bigint"?r.append("".concat(s,"n")):typeof s=="symbol"?Ze(r,s):typeof s=="function"?r.append("[Function]"):y(s,h)}try{return m(e,0),r.result()}catch(s){return"[Uninspectable]"}}var ji=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]),io=Object.prototype.hasOwnProperty,et=class{constructor(){te(this,"hasRepeatedReferences",!1);te(this,"clones",[]);te(this,"index");te(this,"sources",[])}get(e){if(this.index){let r=this.index.get(e);return r!==void 0&&(this.hasRepeatedReferences=!0),r}let t=this.sources.indexOf(e);if(t!==-1)return this.hasRepeatedReferences=!0,this.clones[t]}set(e,t){if(this.index){this.index.set(e,t);return}if(this.sources.push(e),this.clones.push(t),this.sources.length===32){this.index=new WeakMap;for(let r=0;r<this.sources.length;r++)this.index.set(this.sources[r],this.clones[r]);this.sources=[],this.clones=[]}}};function tt(e,t){let r=t.get(e);if(r!==void 0)return r;let o=e.slice(0);return t.set(e,o),o}function so(e,t){if(typeof Buffer<"u"&&Buffer.isBuffer(e)){let a=Buffer.from(e);return t.set(e,a),a}let r=tt(e.buffer,t);if(e instanceof DataView){let a=new DataView(r,e.byteOffset,e.byteLength);return t.set(e,a),a}let o=e.constructor,f=new o(r,e.byteOffset,e.length);return t.set(e,f),f}function Pe(e,t,r,o){for(let f of r){let a=t[f];e[f]=typeof a!="object"||a===null?a:K(a,o)}}function K(e,t){if(typeof e!="object"||e===null)return e;let r=t.get(e);if(r!==void 0)return r;if(Array.isArray(e)){let a=e.length,i=new Array(a);t.set(e,i);let n=e,l=Object.keys(e);if(l.length===a&&(a===0||l[a-1]==="".concat(a-1)))for(let u=0;u<a;u++){let c=n[u];i[u]=typeof c!="object"||c===null?c:K(c,t)}else Pe(i,n,l,t);return i}let o=Object.getPrototypeOf(e);if(o===Object.prototype||o===null){let a={};return t.set(e,a),Pe(a,e,Object.keys(e),t),a}if(e instanceof Date){let a=new Date(e.getTime());return t.set(e,a),a}if(ArrayBuffer.isView(e))return so(e,t);if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return tt(e,t);if(e instanceof Map){let a=new Map;t.set(e,a);for(let[i,n]of e)a.set(K(i,t),K(n,t));return a}if(e instanceof Set){let a=new Set;t.set(e,a);for(let i of e)a.add(K(i,t));return a}let f={};return t.set(e,f),Pe(f,e,Object.keys(e),t),f}function d(e){return K(e,new et)}function Re(e){let t=new et,r=K(e,t);return{hasRepeatedReferences:t.hasRepeatedReferences,value:r}}function x(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function q(e){return typeof e=="string"}function rt(e){return Number.isFinite(e)}function ue(e){return typeof e=="boolean"}function M(e){return e!=null}function ot(e,t){return x(e)&&q(t)&&io.call(e,t)}function at(e,t){return e.localeCompare(t)}var lo=256,uo=1024,po=1,mo=new Map,co=new Map;function Ne(e){if(e>=97&&e<=122)return e-32;if(e>65535)return e;let t=String.fromCharCode(e).toUpperCase();if(t.length!==1)return e;let r=t.charCodeAt(0);return e>127&&r<128?e:r}function De(e,t,r,o,f,a){for(let i=0;i<f;i++){let n=e.charCodeAt(t+i),l=r.charCodeAt(o+i);if(a||(n>=97&&n<=122&&(n-=32),l>=97&&l<=122&&(l-=32)),n!==l)return!1}return!0}function nt(e,t,r){let o=t.indexOf("\\");if(o===-1&&e===t)return!0;let f=t.indexOf("*");if(o===-1&&f===-1){if(r)return!1;for(let c=0;c<t.length;c++)if(t.charCodeAt(c)>127)return;return e.length===t.length&&De(e,0,t,0,t.length,!1)}if(o!==-1)return;let a=0,i=!1,n=-1;for(let c=0;c<t.length;c++){let v=t.charCodeAt(c);if(v>127)return;if(v===42){if(n=c,!i){if(a++,a>1)return;i=!0}}else i=!1}let l=n+1,u=t.length-l;return e.length<f+u?!1:De(e,0,t,0,f,r)&&De(e,e.length-u,t,l,u,r)}function ho(e){let t=new Uint32Array(e.length),r=0;for(let o=1;o<e.length;o++){for(;r>0&&e[o]!==e[r];)r=t[r-1];e[o]===e[r]&&r++,t[o]=r}return t}function yo(e,t){let r=[[]],o=!0,f=!1,a=!1,i=0;for(let y=0;y<e.length;){let m=e.codePointAt(y);if(m!==92){if(m===42)f=!0,a||(r.push([]),a=!0);else{let A=t?m:Ne(m);r[r.length-1].push(A),o&&(o=A<=127),i++,a=!1}y+=m>65535?2:1;continue}let s=y+1;for(;e.charCodeAt(s)===92;)s++;let h=s-y,p=e.codePointAt(s),g,O=!1;p===42?(O=h%2===0,g=O?h/2:(h-1)/2):p===void 0||p===10||p===13||p===8232||p===8233?g=Math.ceil(h/2):g=Math.floor(h/2);for(let A=0;A<g;A++)r[r.length-1].push(92),i++;if(O){a=!1,y=s;continue}if(p!==void 0){let A=t?p:Ne(p);r[r.length-1].push(A),o&&(o=A<=127),i++,s+=p>65535?2:1}a=!1,y=s}let n=f&&r[0].length===0,l=f&&r[r.length-1].length===0,u=[];for(let y of r)y.length&&u.push({values:y});let c=n?0:1,v=u.length-(l?0:1);for(let y=c;y<v;y++)u[y].values.length>po&&(u[y].failure=ho(u[y].values));return{asciiOnly:o,endsWithWildcard:l,hasWildcard:f,minimumInputLength:i,segments:u,startsWithWildcard:n}}function ft(e,t){let r=t?mo:co,o=e.length<=uo;if(o){let a=r.get(e);if(a)return a}let f=yo(e,t);if(o){if(r.size>=lo){let a=r.keys().next().value;a!==void 0&&r.delete(a)}r.set(e,f)}return f}function it(e,t){if(t){let f=[];for(let a=0;a<e.length;){let i=e.codePointAt(a);f.push(i),a+=i>65535?2:1}return f}let r=new Uint32Array(e.length),o=0;for(let f=0;f<e.length;){let a=e.codePointAt(f);r[o]=Ne(a),o++,f+=a>65535?2:1}return o===r.length?r:r.subarray(0,o)}function ie(e,t,r,o){for(let f=0;f<r.values.length;f++){let a=e.charCodeAt(t+f);if(!o&&a>=97&&a<=122&&(a-=32),a!==r.values[f])return!1}return!0}function go(e,t,r,o,f){let a=o-t.values.length;if(a<r)return-1;if(!t.failure){for(let n=r;n<=a;n++)if(ie(e,n,t,f))return n;return-1}let i=0;for(let n=r;n<o;n++){let l=e.charCodeAt(n);for(!f&&l>=97&&l<=122&&(l-=32);i>0&&l!==t.values[i];)i=t.failure[i-1];if(l===t.values[i]&&(i++,i===t.values.length))return n-i+1}return-1}function st(e,t,r){if(e.length<t.minimumInputLength)return!1;if(!t.hasWildcard)return e.length===t.minimumInputLength&&ie(e,0,t.segments[0],r);let o=0,f=t.segments.length,a=0,i=e.length;if(!t.startsWithWildcard){let n=t.segments[0];if(!ie(e,0,n,r))return!1;a=n.values.length,o++}if(!t.endsWithWildcard){f--;let n=t.segments[f];if(i-=n.values.length,!ie(e,i,n,r))return!1}for(let n=o;n<f;n++){let l=t.segments[n],u=go(e,l,a,i,r);if(u===-1)return!1;a=u+l.values.length}return!0}function se(e,t,r){for(let o=0;o<r.values.length;o++)if(e[t+o]!==r.values[o])return!1;return!0}function xo(e,t,r,o){let f=o-t.values.length;if(f<r)return-1;if(!t.failure){for(let i=r;i<=f;i++)if(se(e,i,t))return i;return-1}let a=0;for(let i=r;i<o;i++){for(;a>0&&e[i]!==t.values[a];)a=t.failure[a-1];if(e[i]===t.values[a]&&(a++,a===t.values.length))return i-a+1}return-1}function lt(e,t){if(e.length<t.minimumInputLength)return!1;if(!t.hasWildcard)return e.length===t.minimumInputLength&&se(e,0,t.segments[0]);let r=0,o=t.segments.length,f=0,a=e.length;if(!t.startsWithWildcard){let i=t.segments[0];if(!se(e,0,i))return!1;f=i.values.length,r++}if(!t.endsWithWildcard){o--;let i=t.segments[o];if(a-=i.values.length,!se(e,a,i))return!1}for(let i=r;i<o;i++){let n=t.segments[i],l=xo(e,n,f,a);if(l===-1)return!1;f=l+n.values.length}return!0}function bo(e,t,r){let o=nt(e,t,r);if(o!==void 0)return o;let f=ft(t,r);return f.asciiOnly?st(e,f,r):lt(it(e,r),f)}function Ye(e,t,r,o){var i;let f=nt(e,t,r);if(f!==void 0)return f;let a=ft(t,r);return a.asciiOnly?st(e,a,r):((i=o.tokens)!=null||(o.tokens=it(e,r)),lt(o.tokens,a))}function pe(e,t,r){if(typeof t!="string"&&!t.length)return!1;let o=r===void 0?!1:r.caseSensitiveMatch===!0;if(typeof t=="string"){let n=t.charCodeAt(0)===33,l=n?t.slice(1):t,u=bo(e,l,o);return n?!u:u}let f={},a=!1,i=!1;for(let n of t){let l=n.charCodeAt(0)===33,u=l?n.slice(1):n;if(l){if(Ye(e,u,o,f))return!1}else a=!0,!i&&Ye(e,u,o,f)&&(i=!0)}return a?i:!0}var vo=typeof global=="object"&&global&&global.Object===Object&&global,de=vo;var Ao=typeof self=="object"&&self&&self.Object===Object&&self,Oo=de||Ao||Function("return this")(),j=Oo;var jo=j.Symbol,P=jo;var ut=Object.prototype,wo=ut.hasOwnProperty,_o=ut.toString,re=P?P.toStringTag:void 0;function To(e){var t=wo.call(e,re),r=e[re];try{e[re]=void 0;var o=!0}catch(a){}var f=_o.call(e);return o&&(t?e[re]=r:delete e[re]),f}var pt=To;var So=Object.prototype,Co=So.toString;function Io(e){return Co.call(e)}var dt=Io;var ko="[object Null]",Eo="[object Undefined]",mt=P?P.toStringTag:void 0;function Mo(e){return e==null?e===void 0?Eo:ko:mt&&mt in Object(e)?pt(e):dt(e)}var _=Mo;function Po(e){return e!=null&&typeof e=="object"}var T=Po;var Do="[object Symbol]";function No(e){return typeof e=="symbol"||T(e)&&_(e)==Do}var ct=No;function Ro(e,t){for(var r=-1,o=e==null?0:e.length,f=Array(o);++r<o;)f[r]=t(e[r],r,e);return f}var ht=Ro;var Bo=Array.isArray,D=Bo;var Lo=/\s/;function Wo(e){for(var t=e.length;t--&&Lo.test(e.charAt(t)););return t}var yt=Wo;var Fo=/^\s+/;function $o(e){return e&&e.slice(0,yt(e)+1).replace(Fo,"")}var gt=$o;function Uo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var H=Uo;var xt=NaN,Ko=/^[-+]0x[0-9a-f]+$/i,qo=/^0b[01]+$/i,Ho=/^0o[0-7]+$/i,Go=parseInt;function zo(e){if(typeof e=="number")return e;if(ct(e))return xt;if(H(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=H(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gt(e);var r=qo.test(e);return r||Ho.test(e)?Go(e.slice(2),r?2:8):Ko.test(e)?xt:+e}var bt=zo;var vt=1/0,Vo=17976931348623157e292;function Jo(e){if(!e)return e===0?e:0;if(e=bt(e),e===vt||e===-vt){var t=e<0?-1:1;return t*Vo}return e===e?e:0}var At=Jo;function Qo(e){var t=At(e),r=t%1;return t===t?r?t-r:t:0}var Ot=Qo;var Xo="[object AsyncFunction]",Yo="[object Function]",Zo="[object GeneratorFunction]",ea="[object Proxy]";function ta(e){if(!H(e))return!1;var t=_(e);return t==Yo||t==Zo||t==Xo||t==ea}var me=ta;var ra=j["__core-js_shared__"],ce=ra;var jt=(function(){var e=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function oa(e){return!!jt&&jt in e}var wt=oa;var aa=Function.prototype,na=aa.toString;function fa(e){if(e!=null){try{return na.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var N=fa;var ia=/[\\^$.*+?()[\]{}|]/g,sa=/^\[object .+?Constructor\]$/,la=Function.prototype,ua=Object.prototype,pa=la.toString,da=ua.hasOwnProperty,ma=RegExp("^"+pa.call(da).replace(ia,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ca(e){if(!H(e)||wt(e))return!1;var t=me(e)?ma:sa;return t.test(N(e))}var _t=ca;function ha(e,t){return e==null?void 0:e[t]}var Tt=ha;function ya(e,t){var r=Tt(e,t);return _t(r)?r:void 0}var C=ya;var ga=C(j,"WeakMap"),he=ga;function xa(e,t,r,o){for(var f=e.length,a=r+(o?1:-1);o?a--:++a<f;)if(t(e[a],a,e))return a;return-1}var St=xa;function ba(e){return e!==e}var Ct=ba;function va(e,t,r){for(var o=r-1,f=e.length;++o<f;)if(e[o]===t)return o;return-1}var It=va;function Aa(e,t,r){return t===t?It(e,t,r):St(e,Ct,r)}var kt=Aa;var Oa=9007199254740991,ja=/^(?:0|[1-9]\d*)$/;function wa(e,t){var r=typeof e;return t=t==null?Oa:t,!!t&&(r=="number"||r!="symbol"&&ja.test(e))&&e>-1&&e%1==0&&e<t}var Et=wa;function _a(e,t){return e===t||e!==e&&t!==t}var ye=_a;var Ta=9007199254740991;function Sa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ta}var ge=Sa;function Ca(e){return e!=null&&ge(e.length)&&!me(e)}var xe=Ca;var Ia=Object.prototype;function ka(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ia;return e===r}var Mt=ka;function Ea(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var Pt=Ea;var Ma="[object Arguments]";function Pa(e){return T(e)&&_(e)==Ma}var Be=Pa;var Dt=Object.prototype,Da=Dt.hasOwnProperty,Na=Dt.propertyIsEnumerable,Ra=Be((function(){return arguments})())?Be:function(e){return T(e)&&Da.call(e,"callee")&&!Na.call(e,"callee")},Nt=Ra;function Ba(){return!1}var Rt=Ba;var Wt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bt=Wt&&typeof module=="object"&&module&&!module.nodeType&&module,La=Bt&&Bt.exports===Wt,Lt=La?j.Buffer:void 0,Wa=Lt?Lt.isBuffer:void 0,Fa=Wa||Rt,oe=Fa;var $a="[object Arguments]",Ua="[object Array]",Ka="[object Boolean]",qa="[object Date]",Ha="[object Error]",Ga="[object Function]",za="[object Map]",Va="[object Number]",Ja="[object Object]",Qa="[object RegExp]",Xa="[object Set]",Ya="[object String]",Za="[object WeakMap]",en="[object ArrayBuffer]",tn="[object DataView]",rn="[object Float32Array]",on="[object Float64Array]",an="[object Int8Array]",nn="[object Int16Array]",fn="[object Int32Array]",sn="[object Uint8Array]",ln="[object Uint8ClampedArray]",un="[object Uint16Array]",pn="[object Uint32Array]",b={};b[rn]=b[on]=b[an]=b[nn]=b[fn]=b[sn]=b[ln]=b[un]=b[pn]=!0;b[$a]=b[Ua]=b[en]=b[Ka]=b[tn]=b[qa]=b[Ha]=b[Ga]=b[za]=b[Va]=b[Ja]=b[Qa]=b[Xa]=b[Ya]=b[Za]=!1;function dn(e){return T(e)&&ge(e.length)&&!!b[_(e)]}var Ft=dn;function mn(e){return function(t){return e(t)}}var be=mn;var $t=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ae=$t&&typeof module=="object"&&module&&!module.nodeType&&module,cn=ae&&ae.exports===$t,Le=cn&&de.process,hn=(function(){try{var e=ae&&ae.require&&ae.require("util").types;return e||Le&&Le.binding&&Le.binding("util")}catch(t){}})(),z=hn;var Ut=z&&z.isTypedArray,yn=Ut?be(Ut):Ft,ve=yn;var gn=Object.prototype,xn=gn.hasOwnProperty;function bn(e,t){var r=D(e),o=!r&&Nt(e),f=!r&&!o&&oe(e),a=!r&&!o&&!f&&ve(e),i=r||o||f||a,n=i?Pt(e.length,String):[],l=n.length;for(var u in e)(t||xn.call(e,u))&&!(i&&(u=="length"||f&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Et(u,l)))&&n.push(u);return n}var Kt=bn;function vn(e,t){return function(r){return e(t(r))}}var qt=vn;var An=qt(Object.keys,Object),Ht=An;var On=Object.prototype,jn=On.hasOwnProperty;function wn(e){if(!Mt(e))return Ht(e);var t=[];for(var r in Object(e))jn.call(e,r)&&r!="constructor"&&t.push(r);return t}var Gt=wn;function _n(e){return xe(e)?Kt(e):Gt(e)}var Ae=_n;var Tn=C(Object,"create"),R=Tn;function Sn(){this.__data__=R?R(null):{},this.size=0}var zt=Sn;function Cn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vt=Cn;var In="__lodash_hash_undefined__",kn=Object.prototype,En=kn.hasOwnProperty;function Mn(e){var t=this.__data__;if(R){var r=t[e];return r===In?void 0:r}return En.call(t,e)?t[e]:void 0}var Jt=Mn;var Pn=Object.prototype,Dn=Pn.hasOwnProperty;function Nn(e){var t=this.__data__;return R?t[e]!==void 0:Dn.call(t,e)}var Qt=Nn;var Rn="__lodash_hash_undefined__";function Bn(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=R&&t===void 0?Rn:t,this}var Xt=Bn;function V(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])}}V.prototype.clear=zt;V.prototype.delete=Vt;V.prototype.get=Jt;V.prototype.has=Qt;V.prototype.set=Xt;var We=V;function Ln(){this.__data__=[],this.size=0}var Yt=Ln;function Wn(e,t){for(var r=e.length;r--;)if(ye(e[r][0],t))return r;return-1}var B=Wn;var Fn=Array.prototype,$n=Fn.splice;function Un(e){var t=this.__data__,r=B(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():$n.call(t,r,1),--this.size,!0}var Zt=Un;function Kn(e){var t=this.__data__,r=B(t,e);return r<0?void 0:t[r][1]}var er=Kn;function qn(e){return B(this.__data__,e)>-1}var tr=qn;function Hn(e,t){var r=this.__data__,o=B(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var rr=Hn;function J(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])}}J.prototype.clear=Yt;J.prototype.delete=Zt;J.prototype.get=er;J.prototype.has=tr;J.prototype.set=rr;var L=J;var Gn=C(j,"Map"),W=Gn;function zn(){this.size=0,this.__data__={hash:new We,map:new(W||L),string:new We}}var or=zn;function Vn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ar=Vn;function Jn(e,t){var r=e.__data__;return ar(t)?r[typeof t=="string"?"string":"hash"]:r.map}var F=Jn;function Qn(e){var t=F(this,e).delete(e);return this.size-=t?1:0,t}var nr=Qn;function Xn(e){return F(this,e).get(e)}var fr=Xn;function Yn(e){return F(this,e).has(e)}var ir=Yn;function Zn(e,t){var r=F(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var sr=Zn;function Q(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])}}Q.prototype.clear=or;Q.prototype.delete=nr;Q.prototype.get=fr;Q.prototype.has=ir;Q.prototype.set=sr;var Oe=Q;function ef(e,t){for(var r=-1,o=t.length,f=e.length;++r<o;)e[f+r]=t[r];return e}var lr=ef;function tf(){this.__data__=new L,this.size=0}var ur=tf;function rf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var pr=rf;function of(e){return this.__data__.get(e)}var dr=of;function af(e){return this.__data__.has(e)}var mr=af;var nf=200;function ff(e,t){var r=this.__data__;if(r instanceof L){var o=r.__data__;if(!W||o.length<nf-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Oe(o)}return r.set(e,t),this.size=r.size,this}var cr=ff;function X(e){var t=this.__data__=new L(e);this.size=t.size}X.prototype.clear=ur;X.prototype.delete=pr;X.prototype.get=dr;X.prototype.has=mr;X.prototype.set=cr;var je=X;function sf(e,t){for(var r=-1,o=e==null?0:e.length,f=0,a=[];++r<o;){var i=e[r];t(i,r,e)&&(a[f++]=i)}return a}var hr=sf;function lf(){return[]}var yr=lf;var uf=Object.prototype,pf=uf.propertyIsEnumerable,gr=Object.getOwnPropertySymbols,df=gr?function(e){return e==null?[]:(e=Object(e),hr(gr(e),function(t){return pf.call(e,t)}))}:yr,xr=df;function mf(e,t,r){var o=t(e);return D(e)?o:lr(o,r(e))}var br=mf;function cf(e){return br(e,Ae,xr)}var Fe=cf;var hf=C(j,"DataView"),we=hf;var yf=C(j,"Promise"),_e=yf;var gf=C(j,"Set"),Te=gf;var vr="[object Map]",xf="[object Object]",Ar="[object Promise]",Or="[object Set]",jr="[object WeakMap]",wr="[object DataView]",bf=N(we),vf=N(W),Af=N(_e),Of=N(Te),jf=N(he),G=_;(we&&G(new we(new ArrayBuffer(1)))!=wr||W&&G(new W)!=vr||_e&&G(_e.resolve())!=Ar||Te&&G(new Te)!=Or||he&&G(new he)!=jr)&&(G=function(e){var t=_(e),r=t==xf?e.constructor:void 0,o=r?N(r):"";if(o)switch(o){case bf:return wr;case vf:return vr;case Af:return Ar;case Of:return Or;case jf:return jr}return t});var $e=G;var wf=j.Uint8Array,Ue=wf;var _f="__lodash_hash_undefined__";function Tf(e){return this.__data__.set(e,_f),this}var _r=Tf;function Sf(e){return this.__data__.has(e)}var Tr=Sf;function Se(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Oe;++t<r;)this.add(e[t])}Se.prototype.add=Se.prototype.push=_r;Se.prototype.has=Tr;var Sr=Se;function Cf(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 Cr=Cf;function If(e,t){return e.has(t)}var Ir=If;var kf=1,Ef=2;function Mf(e,t,r,o,f,a){var i=r&kf,n=e.length,l=t.length;if(n!=l&&!(i&&l>n))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var v=-1,y=!0,m=r&Ef?new Sr:void 0;for(a.set(e,t),a.set(t,e);++v<n;){var s=e[v],h=t[v];if(o)var p=i?o(h,s,v,t,e,a):o(s,h,v,e,t,a);if(p!==void 0){if(p)continue;y=!1;break}if(m){if(!Cr(t,function(g,O){if(!Ir(m,O)&&(s===g||f(s,g,r,o,a)))return m.push(O)})){y=!1;break}}else if(!(s===h||f(s,h,r,o,a))){y=!1;break}}return a.delete(e),a.delete(t),y}var Ce=Mf;function Pf(e){var t=-1,r=Array(e.size);return e.forEach(function(o,f){r[++t]=[f,o]}),r}var kr=Pf;function Df(e){var t=-1,r=Array(e.size);return e.forEach(function(o){r[++t]=o}),r}var Er=Df;var Nf=1,Rf=2,Bf="[object Boolean]",Lf="[object Date]",Wf="[object Error]",Ff="[object Map]",$f="[object Number]",Uf="[object RegExp]",Kf="[object Set]",qf="[object String]",Hf="[object Symbol]",Gf="[object ArrayBuffer]",zf="[object DataView]",Mr=P?P.prototype:void 0,Ke=Mr?Mr.valueOf:void 0;function Vf(e,t,r,o,f,a,i){switch(r){case zf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Gf:return!(e.byteLength!=t.byteLength||!a(new Ue(e),new Ue(t)));case Bf:case Lf:case $f:return ye(+e,+t);case Wf:return e.name==t.name&&e.message==t.message;case Uf:case qf:return e==t+"";case Ff:var n=kr;case Kf:var l=o&Nf;if(n||(n=Er),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;o|=Rf,i.set(e,t);var c=Ce(n(e),n(t),o,f,a,i);return i.delete(e),c;case Hf:if(Ke)return Ke.call(e)==Ke.call(t)}return!1}var Pr=Vf;var Jf=1,Qf=Object.prototype,Xf=Qf.hasOwnProperty;function Yf(e,t,r,o,f,a){var i=r&Jf,n=Fe(e),l=n.length,u=Fe(t),c=u.length;if(l!=c&&!i)return!1;for(var v=l;v--;){var y=n[v];if(!(i?y in t:Xf.call(t,y)))return!1}var m=a.get(e),s=a.get(t);if(m&&s)return m==t&&s==e;var h=!0;a.set(e,t),a.set(t,e);for(var p=i;++v<l;){y=n[v];var g=e[y],O=t[y];if(o)var A=i?o(O,g,y,t,e,a):o(g,O,y,e,t,a);if(!(A===void 0?g===O||f(g,O,r,o,a):A)){h=!1;break}p||(p=y=="constructor")}if(h&&!p){var I=e.constructor,ee=t.constructor;I!=ee&&"constructor"in e&&"constructor"in t&&!(typeof I=="function"&&I instanceof I&&typeof ee=="function"&&ee instanceof ee)&&(h=!1)}return a.delete(e),a.delete(t),h}var Dr=Yf;var Zf=1,Nr="[object Arguments]",Rr="[object Array]",Ie="[object Object]",ei=Object.prototype,Br=ei.hasOwnProperty;function ti(e,t,r,o,f,a){var i=D(e),n=D(t),l=i?Rr:$e(e),u=n?Rr:$e(t);l=l==Nr?Ie:l,u=u==Nr?Ie:u;var c=l==Ie,v=u==Ie,y=l==u;if(y&&oe(e)){if(!oe(t))return!1;i=!0,c=!1}if(y&&!c)return a||(a=new je),i||ve(e)?Ce(e,t,r,o,f,a):Pr(e,t,l,r,o,f,a);if(!(r&Zf)){var m=c&&Br.call(e,"__wrapped__"),s=v&&Br.call(t,"__wrapped__");if(m||s){var h=m?e.value():e,p=s?t.value():t;return a||(a=new je),f(h,p,r,o,a)}}return y?(a||(a=new je),Dr(e,t,r,o,f,a)):!1}var Lr=ti;function Wr(e,t,r,o,f){return e===t?!0:e==null||t==null||!T(e)&&!T(t)?e!==e&&t!==t:Lr(e,t,r,o,Wr,f)}var Fr=Wr;var ri="[object String]";function oi(e){return typeof e=="string"||!D(e)&&T(e)&&_(e)==ri}var $r=oi;function ai(e,t){return ht(t,function(r){return e[r]})}var Ur=ai;function ni(e){return e==null?[]:Ur(e,Ae(e))}var Kr=ni;var fi=Math.max;function ii(e,t,r,o){e=xe(e)?e:Kr(e),r=r&&!o?Ot(r):0;var f=e.length;return r<0&&(r=fi(f+r,0)),$r(e)?r<=f&&e.indexOf(t,r)>-1:!!f&&kt(e,t,r)>-1}var qe=ii;var si="[object Date]";function li(e){return T(e)&&_(e)==si}var qr=li;var Hr=z&&z.isDate,ui=Hr?be(Hr):qr,Y=ui;function pi(e,t){return Fr(e,t)}var ke=pi;var di={arraysMustNotContainPlaceholders:!0};function He(e,t,r){if(Array.isArray(e)){if(e.length===0)return!0;if(r.arraysMustNotContainPlaceholders&&e.length&&e.some(o=>ke(o,t)))return!1;for(let o=e.length;o--;)if(!He(e[o],t,r))return!1;return!0}if(x(e)){let o=Object.keys(e);if(o.length===0)return!0;for(let f=o.length;f--;)if(!He(e[o[f]],t,r))return!1;return!0}return ke(e,t)}function Ee(e,t,r){if(e===void 0)throw new Error("object-all-values-equal-to/allEq(): [THROW_ID_01] The first input is undefined! Please provide the first argument.");if(t===void 0)throw new Error("object-all-values-equal-to/allEq(): [THROW_ID_02] The second input is undefined! Please provide the second argument.");if(r&&!x(r))throw new Error("object-all-values-equal-to/allEq(): [THROW_ID_03] The third argument, options object, was given not as a plain object but as a ".concat(typeof r,", equal to:\n").concat(E(r,4)));let o=S(S({},di),r);return He(e,t,o)}function k(e){return e==null?!1:Array.isArray(e)||typeof e=="string"?!!e.length:x(e)?!!Object.keys(e).length:typeof e=="number"}var mi={arrayVsArrayAllMustBeFound:"any",caseSensitive:!0};function Ge(e,t,r){if(!e.length||!t.length)return!1;let o=S(S({},mi),r),f=typeof e=="string"?[e]:Array.from(e);return typeof t=="string"?f.some(a=>pe(a,t,{caseSensitiveMatch:o.caseSensitive})):o.arrayVsArrayAllMustBeFound==="any"?t.some(a=>f.some(i=>pe(i,a,{caseSensitiveMatch:o.caseSensitive}))):t.every(a=>f.some(i=>pe(i,a,{caseSensitiveMatch:o.caseSensitive})))}var $=Array.isArray,ci=Object.prototype.propertyIsEnumerable;function Gr(e){return!!e&&e.some(t=>typeof t=="string")}function hi(e,t){let r=Object.keys(e),o=Object.keys(t);if(r.length===0||o.length===0)return!0;let f=r.length<=o.length?r:o,a=r.length<=o.length?t:e;for(let i=0;i<f.length;i++)if(!ci.call(a,f[i]))return!1;return!0}function w(e){return e===null?"null":Y(e)?"date":x(e)?"object":$(e)?"array":typeof e}var yi={cb:null,mergeObjectsOnlyWhenKeysetMatches:!0,ignoreKeys:[],hardMergeKeys:[],hardArrayConcatKeys:[],mergeArraysContainingStringsToBeEmpty:!1,oneToManyArrayObjectMerge:!1,hardMergeEverything:!1,hardArrayConcat:!1,ignoreEverything:!1,concatInsteadOfMerging:!0,dedupeStringsInArrayValues:!1,mergeBoolsUsingOrNotAnd:!0,useNullAsExplicitFalse:!1};function U(e,t,r,o,f=!1,a=!1){var y;let i;if(o.useNullAsExplicitFalse&&(t===null||r===null))return typeof o.cb=="function"?o.cb(t,r,null,{path:e.path,key:e.key,type:e.type}):null;let n=t;if(($(t)||x(t))&&!f){let m=Re(t);n=m.value,f=!o.oneToManyArrayObjectMerge&&!m.hasRepeatedReferences}let l=r;if(($(r)||x(r))&&!a){let m=Re(r);l=m.value,a=!o.oneToManyArrayObjectMerge&&!m.hasRepeatedReferences}let u;o.ignoreEverything?u=n:o.hardMergeEverything&&(u=l);let c=o.hardMergeEverything||o.ignoreEverything;if($(n))if(k(n))if($(l)&&k(l)){if(o.mergeArraysContainingStringsToBeEmpty&&(Gr(n)||Gr(l))){let s=c?u:[];return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:i,key:e.key,type:e.type}):s}if(o.hardArrayConcat){let s=c?u:n.concat(l);return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:i,key:e.key,type:e.type}):s}let m=[];for(let s=0,h=Math.max(n.length,l.length);s<h;s++)i=(y=e.path)!=null&&y.length?"".concat(e.path,".").concat(s):"".concat(s),x(n[s])&&x(l[s])&&(o.mergeObjectsOnlyWhenKeysetMatches&&hi(n[s],l[s])||!o.mergeObjectsOnlyWhenKeysetMatches)?m.push(U({path:i,key:e.key,type:[w(n),w(l)]},n[s],l[s],o,f,a)):o.oneToManyArrayObjectMerge&&(n.length===1||l.length===1)?m.push(n.length===1?U({path:i,key:e.key,type:[w(n),w(l)]},n[0],l[s],o,f,a):U({path:i,key:e.key,type:[w(n),w(l)]},n[s],l[0],o,f,a)):o.concatInsteadOfMerging?(s<n.length&&m.push(n[s]),s<l.length&&m.push(l[s])):(s<n.length&&m.push(n[s]),s<l.length&&!qe(n,l[s])&&m.push(l[s]));o.dedupeStringsInArrayValues&&m.every(s=>q(s))&&(m=[...new Set(m)].sort(at)),n=d(m)}else{let m=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),m,{path:i,key:e.key,type:e.type}):m}else{if(k(l)){let s=c?u:l;return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:i,key:e.key,type:e.type}):s}let m=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),m,{path:i,key:e.key,type:e.type}):m}else if(x(n)){if(k(n)){if($(l)){if(k(l)){let p=c?u:l;return typeof o.cb=="function"?o.cb(d(t),d(r),p,{path:i,key:e.key,type:e.type}):p}let h=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),h,{path:i,key:e.key,type:e.type}):h}if(x(l)){Object.keys(l).forEach(p=>{var g;i=(g=e.path)!=null&&g.length?"".concat(e.path,".").concat(p):"".concat(p),ot(n,p)?Ge(p,o.ignoreKeys)?n[p]=U({path:i,key:p,type:[w(n),w(l)]},n[p],l[p],fe(S({},o),{ignoreEverything:!0}),f,a):Ge(p,o.hardMergeKeys)?n[p]=U({path:i,key:p,type:[w(n),w(l)]},n[p],l[p],fe(S({},o),{hardMergeEverything:!0}),f,a):Ge(p,o.hardArrayConcatKeys)?n[p]=U({path:i,key:p,type:[w(n),w(l)]},n[p],l[p],fe(S({},o),{hardArrayConcat:!0}),f,a):n[p]=U({path:i,key:p,type:[w(n[p]),w(l[p])]},n[p],l[p],o,f,a):n[p]=l[p]});let h=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),h,{path:e.path,key:e.key,type:e.type}):n}let s=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:e.path,key:e.key,type:e.type}):s}if($(l)||x(l)||k(l)){let s=c?u:l;return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:e.path,key:e.key,type:e.type}):s}let m=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),m,{path:e.path,key:e.key,type:e.type}):m}else if(Y(n)){if(Number.isFinite(+n)){if(Y(l)){if(Number.isFinite(+l)){let p=c?u:n>l?n:l;return typeof o.cb=="function"?o.cb(d(t),d(r),p,{path:e.path,key:e.key,type:e.type}):p}let h=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),h,{path:e.path,key:e.key,type:e.type}):h}let s=c?u:l||n;return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:e.path,key:e.key,type:e.type}):s}if(Y(l)){let s=c?u:l;return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:e.path,key:e.key,type:e.type}):s}let m=c?u:l;return typeof o.cb=="function"?o.cb(d(t),d(r),m,{path:e.path,key:e.key,type:e.type}):m}else if(q(n)){if(k(n)){if(($(l)||x(l)||q(l))&&k(l)){let h=c?u:l;return typeof o.cb=="function"?o.cb(d(t),d(r),h,{path:e.path,key:e.key,type:e.type}):h}let s=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:e.path,key:e.key,type:e.type}):s}if(M(l)&&!ue(l)){let s=c?u:l;return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:e.path,key:e.key,type:e.type}):s}let m=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),m,{path:e.path,key:e.key,type:e.type}):m}else if(rt(n)){if(k(l)){let s=c?u:l;return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:e.path,key:e.key,type:e.type}):s}let m=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),m,{path:e.path,key:e.key,type:e.type}):m}else if(ue(n)){if(ue(l)){if(o.mergeBoolsUsingOrNotAnd){let h=c?u:n||l;return typeof o.cb=="function"?o.cb(d(t),d(r),h,{path:e.path,key:e.key,type:e.type}):h}let s=c?u:n&&l;return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:e.path,key:e.key,type:e.type}):s}if(M(l)){let s=c?u:l;return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:e.path,key:e.key,type:e.type}):s}let m=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),m,{path:e.path,key:e.key,type:e.type}):m}else if(n===null){if(M(l)){let s=c?u:l;return typeof o.cb=="function"?o.cb(d(t),d(r),s,{path:e.path,key:e.key,type:e.type}):s}let m=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),m,{path:e.path,key:e.key,type:e.type}):m}else{let m=c?u:l;return typeof o.cb=="function"?o.cb(d(t),d(r),m,{path:e.path,key:e.key,type:e.type}):m}let v=c?u:n;return typeof o.cb=="function"?o.cb(d(t),d(r),v,{path:e.path,key:e.key,type:e.type}):v}function zr(e,t,r){var f,a;if(!arguments.length)throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_01] Both inputs are missing");if(M(r)&&!x(r))throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_02] The optional options object should be a plain object, currently it's ".concat(E(r,4)," (type ").concat(typeof r,")"));let o=S(S({},yi),r);return typeof o.ignoreKeys=="string"&&(o.ignoreKeys=[o.ignoreKeys]),typeof o.hardMergeKeys=="string"&&(o.hardMergeKeys=[o.hardMergeKeys]),(f=o==null?void 0:o.hardMergeKeys)!=null&&f.includes("*")&&(o.hardMergeEverything=!0),(a=o==null?void 0:o.ignoreKeys)!=null&&a.includes("*")&&(o.ignoreEverything=!0),U({key:null,path:"",type:[w(e),w(t)]},e,t,o)}var Vr="11.2.0";var xi=Vr,Jr={placeholder:!1,doNotFillThesePathsIfTheyContainPlaceholders:[],useNullAsExplicitFalse:!0};function Z(e){return x(e)?"plain object":Array.isArray(e)?"array":typeof e}function ze(e,t,r,o,f=""){let a=e;if(M(a)||!(f.length&&o.has(f)&&Ee(a,r.placeholder)))if(x(t)&&x(a))Object.keys(t).forEach(i=>{let n="".concat(f?"".concat(f,"."):"").concat(i);o.has(n)&&(M(a[i])?Ee(a[i],r.placeholder)&&(a[i]=r.placeholder):a[i]=r.placeholder),(!M(a[i])||!(o.has(n)&&Ee(a[i],r.placeholder)))&&(a[i]=ze(a[i],t[i],r,o,n))});else if(Array.isArray(t)&&Array.isArray(a)){if(a.length===0)return d(t);if(t.length)for(let i=a.length;i--;){let n="".concat(f?"".concat(f,"."):"","0");(x(t[0])||Array.isArray(t[0]))&&(a[i]=ze(a[i],t[0],r,o,n))}}else return zr(t,a,{useNullAsExplicitFalse:r.useNullAsExplicitFalse,cb:(i,n,l)=>Z(i)===Z(n)?n:l});return a}function bi(e,t,r){if(arguments.length===0)throw new Error("object-fill-missing-keys/fillMissing(): [THROW_ID_01] All arguments are missing!");if(!x(e))throw new Error("object-fill-missing-keys/fillMissing(): [THROW_ID_02] First argument, input object must be a plain object. Currently it's type is \"".concat(Z(e),"\" and it's equal to: ").concat(E(e,4)));if(!x(t))throw new Error("object-fill-missing-keys/fillMissing(): [THROW_ID_03] Second argument, schema object, must be a plain object. Currently it's type is \"".concat(Z(t),"\" and it's equal to: ").concat(E(t,4)));if(r&&!x(r))throw new Error("object-fill-missing-keys/fillMissing(): [THROW_ID_04] Third argument, schema object, must be a plain object. Currently it's type is \"".concat(Z(r),"\" and it's equal to: ").concat(E(r,4)));let o=S(S({},Jr),r);o.doNotFillThesePathsIfTheyContainPlaceholders=Qe(o.doNotFillThesePathsIfTheyContainPlaceholders);let f=null,a=null;if(o.doNotFillThesePathsIfTheyContainPlaceholders.length&&!o.doNotFillThesePathsIfTheyContainPlaceholders.every((i,n)=>q(i)?!0:(f=i,a=n,!1)))throw new Error('object-fill-missing-keys/fillMissing(): [THROW_ID_05] resolvedOpts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "'.concat(a,"\" is not a string! It's ").concat(Z(f),", equal to:\n").concat(E(f,4)));return ze(d(e),t,o,new Set(o.doNotFillThesePathsIfTheyContainPlaceholders))}return oo(vi);})();
|
|
11
|
+
/**
|
|
12
|
+
* @name arrayiffy-if-string
|
|
13
|
+
* @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
|
|
14
|
+
* @version 5.2.0
|
|
15
|
+
* @author Roy Revelt
|
|
16
|
+
* @license MIT
|
|
17
|
+
* {@link https://codsen.com/os/arrayiffy-if-string/}
|
|
18
|
+
*/
|
|
11
19
|
/**
|
|
12
20
|
* @name codsen-utils
|
|
13
21
|
* @fileoverview Various utility functions
|
|
14
|
-
* @version 1.
|
|
22
|
+
* @version 1.8.0
|
|
15
23
|
* @author Roy Revelt
|
|
16
24
|
* @license MIT
|
|
17
25
|
* {@link https://codsen.com/os/codsen-utils/}
|
|
18
26
|
*/
|
|
27
|
+
/**
|
|
28
|
+
* @name object-all-values-equal-to
|
|
29
|
+
* @fileoverview Does the AST/nested-plain-object/array/whatever contain only one kind of value?
|
|
30
|
+
* @version 4.2.0
|
|
31
|
+
* @author Roy Revelt
|
|
32
|
+
* @license MIT
|
|
33
|
+
* {@link https://codsen.com/os/object-all-values-equal-to/}
|
|
34
|
+
*/
|
|
19
35
|
/**
|
|
20
36
|
* @name util-nonempty
|
|
21
37
|
* @fileoverview Is the input (plain object, array, string or whatever) not empty?
|
|
22
|
-
* @version 5.
|
|
38
|
+
* @version 5.2.0
|
|
23
39
|
* @author Roy Revelt
|
|
24
40
|
* @license MIT
|
|
25
41
|
* {@link https://codsen.com/os/util-nonempty/}
|
|
@@ -27,34 +43,18 @@
|
|
|
27
43
|
/**
|
|
28
44
|
* @name object-merge-advanced
|
|
29
45
|
* @fileoverview Deeply merge JSON-like data structures
|
|
30
|
-
* @version 14.
|
|
46
|
+
* @version 14.2.0
|
|
31
47
|
* @author Roy Revelt
|
|
32
48
|
* @license MIT
|
|
33
49
|
* {@link https://codsen.com/os/object-merge-advanced/}
|
|
34
50
|
*/
|
|
35
|
-
/**
|
|
36
|
-
* @name arrayiffy-if-string
|
|
37
|
-
* @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
|
|
38
|
-
* @version 5.1.3
|
|
39
|
-
* @author Roy Revelt
|
|
40
|
-
* @license MIT
|
|
41
|
-
* {@link https://codsen.com/os/arrayiffy-if-string/}
|
|
42
|
-
*/
|
|
43
|
-
/**
|
|
44
|
-
* @name object-all-values-equal-to
|
|
45
|
-
* @fileoverview Does the AST/nested-plain-object/array/whatever contain only one kind of value?
|
|
46
|
-
* @version 4.1.3
|
|
47
|
-
* @author Roy Revelt
|
|
48
|
-
* @license MIT
|
|
49
|
-
* {@link https://codsen.com/os/object-all-values-equal-to/}
|
|
50
|
-
*/
|
|
51
51
|
/*! Bundled license information:
|
|
52
52
|
|
|
53
53
|
lodash-es/lodash.js:
|
|
54
54
|
(**
|
|
55
55
|
* @license
|
|
56
56
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
57
|
-
* Build: `lodash modularize exports="es" -o ./`
|
|
57
|
+
* Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
|
|
58
58
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
59
59
|
* Released under MIT license <https://lodash.com/license>
|
|
60
60
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "object-fill-missing-keys",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Add missing keys into plain objects, according to a reference object",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"add",
|
|
@@ -38,47 +38,45 @@
|
|
|
38
38
|
},
|
|
39
39
|
"types": "types/index.d.ts",
|
|
40
40
|
"scripts": {
|
|
41
|
-
"build": "node
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
|
|
41
|
+
"build": "node ../../ops/scripts/esbuild.js && npm run dts",
|
|
42
|
+
"coverage": "c8 uvu test",
|
|
43
|
+
"dev": "node ../../ops/scripts/esbuild.js --dev && npm run dts",
|
|
45
44
|
"devtest": "c8 npm run unit && npm run examples && npm run lint",
|
|
46
|
-
"dts": "rollup -c &&
|
|
45
|
+
"dts": "rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts",
|
|
47
46
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
48
|
-
"lect": "node '../../ops/lect/lect.js'
|
|
49
|
-
"
|
|
50
|
-
"lint": "
|
|
47
|
+
"lect": "node '../../ops/lect/lect.js'",
|
|
48
|
+
"lect:check": "node '../../ops/lect/lect.js' --check",
|
|
49
|
+
"lint": "biome lint --error-on-warnings . && npm run typecheck",
|
|
50
|
+
"lint:fix": "biome lint --write --error-on-warnings . && npm run typecheck",
|
|
51
51
|
"perf": "node perf/check.js",
|
|
52
52
|
"prep": "echo 'ready'",
|
|
53
|
-
"prettier": "
|
|
54
|
-
"prettier:format": "
|
|
55
|
-
"pretest": "npm run lect && npm run build",
|
|
53
|
+
"prettier": "biome format",
|
|
54
|
+
"prettier:format": "biome format --write .",
|
|
55
|
+
"pretest": "npm run lect:check && npm run build",
|
|
56
56
|
"test": "npm run devtest",
|
|
57
|
+
"typecheck": "tsc --noEmit --pretty false --project tsconfig.json",
|
|
57
58
|
"unit": "uvu test"
|
|
58
59
|
},
|
|
59
|
-
"engines": {
|
|
60
|
-
"node": ">=14.18.0"
|
|
61
|
-
},
|
|
62
60
|
"c8": {
|
|
61
|
+
"all": true,
|
|
63
62
|
"check-coverage": true,
|
|
64
|
-
"exclude": [
|
|
65
|
-
|
|
66
|
-
],
|
|
63
|
+
"exclude": ["**/test/**/*.*"],
|
|
64
|
+
"include": ["dist/*.esm.js"],
|
|
67
65
|
"lines": 100
|
|
68
66
|
},
|
|
69
67
|
"lect": {
|
|
70
68
|
"licence": {
|
|
71
|
-
"extras": [
|
|
72
|
-
""
|
|
73
|
-
]
|
|
69
|
+
"extras": [""]
|
|
74
70
|
}
|
|
75
71
|
},
|
|
76
72
|
"dependencies": {
|
|
77
|
-
"arrayiffy-if-string": "^5.
|
|
78
|
-
"codsen-utils": "^1.
|
|
79
|
-
"object-all-values-equal-to": "^4.
|
|
80
|
-
"object-merge-advanced": "^14.
|
|
81
|
-
|
|
73
|
+
"arrayiffy-if-string": "^5.2.0",
|
|
74
|
+
"codsen-utils": "^1.8.0",
|
|
75
|
+
"object-all-values-equal-to": "^4.2.0",
|
|
76
|
+
"object-merge-advanced": "^14.2.0"
|
|
77
|
+
},
|
|
78
|
+
"engines": {
|
|
79
|
+
"node": ">=18.20.8"
|
|
82
80
|
},
|
|
83
81
|
"publishConfig": {
|
|
84
82
|
"registry": "https://registry.npmjs.org/"
|