object-fill-missing-keys 11.2.1 → 11.2.3

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 CHANGED
@@ -3,12 +3,18 @@
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.2.2 (2026-08-22)
7
+
8
+ ### Performance Improvements
9
+
10
+ - optimise package hot paths and JSON editing ([f3112bd](https://github.com/codsen/codsen/commit/f3112bd7fc0d7c9bc09312d3744c950691d72ca5))
11
+
6
12
  ## 11.2.0 (2026-08-19)
7
13
 
8
14
  ### Bug Fixes
9
15
 
10
16
  - 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))
17
+ - resolve various review findings ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
12
18
  - retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
13
19
 
14
20
  ### Features
@@ -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.2.1
4
+ * @version 11.2.3
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{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.1";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:
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.3";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
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,33 @@
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.2.1
4
+ * @version 11.2.3
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 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.1";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);})();
10
+ "use strict";var objectFillMissingKeys=(()=>{var K=Object.defineProperty,Xe=Object.defineProperties,Ye=Object.getOwnPropertyDescriptor,et=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertyNames,Oe=Object.getOwnPropertySymbols;var je=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable;var te=(e,t,r)=>t in e?K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t||(t={}))je.call(t,r)&&te(e,r,t[r]);if(Oe)for(var r of Oe(t))rt.call(t,r)&&te(e,r,t[r]);return e},q=(e,t)=>Xe(e,et(t));var nt=(e,t)=>{for(var r in t)K(e,r,{get:t[r],enumerable:!0})},_t=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let _ of tt(t))!je.call(e,_)&&_!==r&&K(e,_,{get:()=>t[_],enumerable:!(n=Ye(t,_))||n.enumerable});return e};var it=e=>_t(K({},"__esModule",{value:!0}),e);var V=(e,t,r)=>te(e,typeof t!="symbol"?t+"":t,r);var Lt={};nt(Lt,{defaults:()=>Ze,fillMissing:()=>Ut,version:()=>qt});function we(e){return typeof e!="string"?e:e.length?[e]:[]}function ot(){let e=[],t=0,r=!1;return{append(n){return r?!1:t+n.length>1999?(e.push("\u2026"),t+=1,r=!0,!1):(e.push(n),t+=n.length,!0)},result(){return e.join("")},stopped(){return r}}}function lt(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function U(e,t){if(e.append('"')){for(let r=0;r<t.length&&!e.stopped();r+=1){let n=t.charCodeAt(r);n===34?e.append('\\"'):n===92?e.append("\\\\"):n===8?e.append("\\b"):n===9?e.append("\\t"):n===10?e.append("\\n"):n===12?e.append("\\f"):n===13?e.append("\\r"):n<32||n===8232||n===8233||n>=55296&&n<=57343?e.append(lt(n)):e.append(t[r])}e.append('"')}}function st(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function Te(e,t){e.append("Symbol(");let r=String(t);r.length>8&&U(e,r.slice(7,-1)),e.append(")")}function Ae(e,t){typeof t=="symbol"?Te(e,t):U(e,String(t))}function O(e,t=0){let r=ot(),n=t===4?4:0,_=new WeakSet,i=0;function o(a){n&&r.append(" ".repeat(a*n))}function g(a,h){a&&r.append(","),n&&(r.append("\n"),o(h+1))}function s(a,h,m){n&&h&&(r.append("\n"),o(m)),r.append(a)}function d(a,h){Object.prototype.hasOwnProperty.call(a,"value")?j(a.value,h):r.append(st(a))}function w(a,h){let m;try{m=Reflect.getOwnPropertyDescriptor(a,"length")}catch(c){r.append("[Uninspectable]");return}let p=m==null?void 0:m.value;if(!Number.isSafeInteger(p)||p<0){r.append("[Uninspectable]");return}r.append("[");let y=!1;for(let c=0;c<p&&!r.stopped();c+=1){if(g(y,h),y=!0,i>=50){r.append("[MaxEntries]");break}i+=1;let b;try{b=Reflect.getOwnPropertyDescriptor(a,String(c))}catch(T){r.append("[Uninspectable]");continue}b!=null&&b.enumerable?d(b,h+1):r.append("[Empty]")}s("]",y,h)}function u(a,h){let m;try{m=Reflect.ownKeys(a)}catch(y){r.append("[Uninspectable]");return}r.append("{");let p=!1;for(let y of m){if(r.stopped())break;if(i>=50){g(p,h),p=!0,U(r,"\u2026"),r.append(n?": ":":"),r.append("[MaxEntries]");break}i+=1;let c;try{c=Reflect.getOwnPropertyDescriptor(a,y)}catch(b){g(p,h),p=!0,Ae(r,y),r.append(n?": ":":"),r.append("[Uninspectable]");continue}c!=null&&c.enumerable&&(g(p,h),p=!0,Ae(r,y),r.append(n?": ":":"),d(c,h+1))}s("}",p,h)}function l(a,h){if(_.has(a)){r.append("[Circular]");return}if(h>=5){r.append("[MaxDepth]");return}let m;try{m=Array.isArray(a)}catch(p){r.append("[Uninspectable]");return}_.add(a);try{m?w(a,h):u(a,h)}finally{_.delete(a)}}function j(a,h){a===null?r.append("null"):typeof a=="string"?U(r,a):typeof a=="number"?r.append(Object.is(a,-0)?"-0":String(a)):typeof a=="boolean"?r.append(a?"true":"false"):typeof a>"u"?r.append("undefined"):typeof a=="bigint"?r.append("".concat(a,"n")):typeof a=="symbol"?Te(r,a):typeof a=="function"?r.append("[Function]"):l(a,h)}try{return j(e,0),r.result()}catch(a){return"[Uninspectable]"}}var at=["_16_0_a_0_4_0_5_m_1_u_1_cp_4_b_e_4_7_0_1_0_3l_4_1_1_2_3_1_0_6_0_1_2_1_0_1_j_1_2a_1_3u_8_4l_1_11_2_0_","6_14_1z_q_4_3_19_16_z_1_1_2q_1_0_f_1_7_1_a_2_2_0_g_0_1_t_t_2g_b_0_o_w_9_1_4_0_5_l_4_0_9_0_3_0_n_o_7_","a_5_n_1_6_g_15_1m_1h_3_0_i_0_7_9_f_f_4_7_2_1_2_l_1_6_1_0_3_3_3_0_g_0_d_1_1_2_e_1_a_0_8_5_4_1_2_l_1_6","_1_1_1_1_1_1_v_3_1_0_j_2_g_8_1_2_1_l_1_6_1_1_1_4_3_0_i_0_f_1_n_0_b_7_2_1_2_l_1_6_1_1_1_4_3_0_u_1_1_2","_f_0_h_0_1_5_3_2_1_3_3_1_1_0_1_1_3_1_3_2_3_b_m_0_1g_7_1_2_1_m_1_f_3_0_q_2_1_1_2_1_u_0_4_7_1_2_1_m_1_","9_1_4_3_0_u_2_1_1_f_1_h_8_1_2_1_14_2_0_g_0_5_2_8_2_o_5_5_h_3_n_1_8_1_0_2_6_1m_1b_1_1_c_6_1m_1_1_0_1_","4_1_n_1_0_1_9_1_1_9_0_2_4_1_0_l_3_w_0_1r_7_1_z_r_4_37_16_k_0_g_5_4_3_3_0_3_1_7_2_4_c_c_0_h_11_1_0_5_","0_2_16_1_98_1_3_2_6_1_0_1_3_2_14_1_3_2_w_1_3_2_6_1_0_1_3_2_e_1_1k_1_3_2_1u_11_f_g_2d_2_5_3_h7_2_g_1_","p_5_22_6_7_7_h_d_i_e_h_e_c_1_2_f_1f_z_0_4_0_1v_2g_7_4_2_x_1_0_5_1x_a_u_1d_t_2_4_b_17_4_p_1i_m_9_1g_2","a_0_2l_1a_h_7_1i_t_d_1_a_17_q_z_15_2_a_z_2_a_5_16_2_2_15_3_1_5_1_1_3_0_5_5b_1s_7p_2_5_2_11_2_5_2_7_1","_0_1_0_1_0_1_u_2_1g_1_6_1_0_3_2_1_6_3_3_2_5_4_c_5_2_1_6_38_0_d_0_g_c_2t_0_4_0_2_9_1_0_3_4_6_0_1_0_1_","0_1_3_1_a_2_3_5_4_4_0_1g_1_22j_6c_6_3_3_1_c_11_1_0_5_0_2_1j_7_0_g_m_9_6_1_6_1_6_1_6_1_6_1_6_1_6_1_6_","28_0_d1_1_16_4_5_1_4_2d_6_2_1_2h_1_3_5_16_1_2l_h_v_1c_f_e8_533_1s_h3g_1v_19_2_7g_3_f_a_1_k_1a_g_u_2_","1x_1d_8_2_2u_2_29_k_g_1_2_1_3_1_m_t_1f_e_1d_1q_5_3_0_1_1_b_r_a_m_p_s_7_1a_s_0_g_4_1_9_a_4_1_14_n_2_1","_7_k_m_3_0_3_1d_1_0_3_1_2_4_2_0_1_0_o_2_2_a_7_2_c_5_2_5_2_5_9_6_1_6_1_16_1_d_6_36_t_8mb_c_m_4_1c_6is","_a5_2_2x_12_6_c_4_5_0_1_9_1_c_1_4_1_0_1_1_1_1_1_2z_x_a2_i_1r_2_1h_14_b_38_4_1_3q_10_p_6_p_b_2g_3_5_2","_5_2_5_2_2_z_b_1_p_1_i_1_1_1_e_2_d_y_3e_at_s_3_1c_1b_v_d_j_1_7_6_11_a_t_2_z_4_7_1c_4d_i_z_4_z_4_13_8","_1f_c_a_1_e_1_6_1_1_1_a_1_e_1_6_1_1_3_1f_c_8m_9_l_a_7_o_5_1_15_1_8_1x_5_2_0_1_17_1_1_3_0_2_m_a_m_9_u","_1t_i_1_1_a_l_a_p_6_p_12_1j_6_1_1s_0_f_3_1_2_1_s_16_s_3_s_z_7_1_r_r_1h_a_l_a_i_d_h_32_20_1j_1e_d_1e_","d_z_12_r_9_m_6y_15_6_1_g_5_1k_s_a_0_8_l_16_h_1a_k_r_m_c_1g_1l_1_2_0_d_18_w_o_q_z_t_0_2_0_8_y_3_0_c_1","b_e_3_l_0_1_0_z_h_1_o_j_1_1r_6_1_0_1_3_1_e_1_9_7_1a_12_7_2_1_2_l_1_6_1_1_1_4_3_0_i_0_c_4_u_9_1_0_2_0","_1_11_1_0_p_0_1_0_18_1g_i_3_k_2_u_1b_k_1_1_0_54_1a_15_3_10_1b_k_0_1n_16_d_0_1z_q_11_6_55_17_38_1r_v_","7_2_0_2_7_1_1_1_n_f_0_1_0_2m_7_2_12_g_0_1_0_s_0_a_13_7_0_l_0_b_19_j_0_i_20_5j_w_v_8_1_10_h_0_1d_t_34","_6_1_1_1_11_l_0_p_5_1_1_1_v_e_0_n_17_78_i_f_0_1_c_1_x_3g_0_27_pl_6e_5f_218_2o_f_tr_h_5_p_32y_5_g6_5a","1_t_1cy_fs_7_u_h_26_h_t_i_1b_g_3_v_k_5_i_c0_18_5v_1r_w_o_2_o_18_22_5_0_1u_c_1s_1_1_0_e_1_c_5p1_15_v_","2p_36_6pp_3_1_6_1_1_1_82_f_0_t_2_2_0_e_3_8_az_1s4_2y_5_c_3_8_7_9_4me_2c_1_1y_1_1_2_0_2_1_2_3_1_b_1_0","_1_6_1_1s_1_3_2_7_1_6_1_r_1_3_1_4_1_0_3_6_1_9f_2_o_1_o_1_u_1_o_1_u_1_o_1_u_1_o_1_u_1_o_1_7_1f8_u_6_5","_79_1p_42_18_a_6_g_0_8x_t_i_17_dg_r_6c_t_2_0_5r_u_1_2_1_1_1_6_2_4_9_1_68_6_1_3_1_1_1_e_1_5g_1n_1v_7_","0_xg_3_1_q_1_1_1_0_2_0_1_9_1_3_1_0_1_0_6_0_4_0_1_0_1_0_1_2_1_1_1_0_2_0_1_0_1_0_1_0_1_0_1_1_1_0_2_3_1","_6_1_3_1_3_1_0_1_9_1_g_5_2_1_4_1_g_3es_wyn_w_3dp_2_4gd_2_5rk_f_h9_1wi_f1_15u_3t6_5_6jt"].join(""),re=at.slice(1).split("_"),ut=[],Ce=127;for(let e=0;e<re.length;e+=2){let t=Ce+1+Number.parseInt(re[e],36),r=t+Number.parseInt(re[e+1],36);ut.push([t,r]),Ce=r}var Xt=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"]),ct=Object.prototype.hasOwnProperty,De=Function.prototype.toString,ft=De.call(Object),Ie=class{constructor(){V(this,"hasRepeatedReferences",!1);V(this,"clones",[]);V(this,"index");V(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 Se(e,t){let r=t.get(e);if(r!==void 0)return r;let n=e.slice(0);return t.set(e,n),n}function pt(e,t){if(typeof Buffer<"u"&&Buffer.isBuffer(e)){let i=Buffer.from(e);return t.set(e,i),i}let r=Se(e.buffer,t);if(e instanceof DataView||Object.prototype.toString.call(e)==="[object DataView]"){let i=new DataView(r,e.byteOffset,e.byteLength);return t.set(e,i),i}let n=e.constructor,_=new n(r,e.byteOffset,e.length);return t.set(e,_),_}function gt(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0})}function L(e,t,r,n){for(let _ of r){let i=t[_],o=typeof i!="object"||i===null?i:P(i,n);_==="__proto__"?gt(e,_,o):e[_]=o}}function F(e,t,r,n){for(let _ of r){let i=Object.getOwnPropertyDescriptor(t,_);if(i){if("value"in i){let o=i.value;i.value=typeof o!="object"||o===null?o:P(o,n)}Object.defineProperty(e,_,i)}}}var ht=Map.prototype.entries,yt=Set.prototype.values,oe=Object.prototype.toString,Ee,dt=(Ee=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength"))==null?void 0:Ee.get,ke,bt=(ke=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))==null?void 0:ke.get,Me,Yt=(Me=Object.getOwnPropertyDescriptor(RegExp.prototype,"global"))==null?void 0:Me.get,xe,Pe=(xe=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:xe.get,er=RegExp.prototype.test,ne;function mt(e){if(e instanceof ArrayBuffer)return!0;try{return dt.call(e),!0}catch(t){return!1}}function vt(e){try{return ht.call(e)}catch(t){return null}}function Ot(e){try{return yt.call(e)}catch(t){return null}}function jt(e){var t;try{return ne||(ne=(t=Object.getOwnPropertyDescriptor(URL.prototype,"href"))==null?void 0:t.get),ne.call(e)}catch(r){return null}}function P(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 s=e.length,d=new Array(s);t.set(e,d);let w=e,u=Object.keys(e);if(u.length===s&&(s===0||u[s-1]==="".concat(s-1)))for(let l=0;l<s;l++){let j=w[l];d[l]=typeof j!="object"||j===null?j:P(j,t)}else L(d,w,u,t);return d}let n=Object.getPrototypeOf(e);if(n===Object.prototype){let s={};return t.set(e,s),L(s,e,Object.keys(e),t),s}if(n===null){let s=Object.create(null);return t.set(e,s),L(s,e,Object.keys(e),t),s}if(M(e)){let s=new Date(Re.call(e));return t.set(e,s),F(s,e,Object.keys(e),t),s}if(ArrayBuffer.isView(e))return pt(e,t);if(mt(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return Se(e,t);let _=vt(e);if(_){let s=new Map;t.set(e,s);for(let[d,w]of _)s.set(P(d,t),P(w,t));return F(s,e,Object.keys(e),t),s}let i=Ot(e);if(i){let s=new Set;t.set(e,s);for(let d of i)s.add(P(d,t));return F(s,e,Object.keys(e),t),s}if(B(e)&&e!==RegExp.prototype){let s=new RegExp(Pe.call(e),bt.call(e));return s.lastIndex=e.lastIndex,t.set(e,s),F(s,e,Object.keys(e),t),s}let o=jt(e);if(o!==null){let s=new URL(o);return t.set(e,s),F(s,e,Object.keys(e),t),s}if(e instanceof Error||oe.call(e)==="[object Error]"){let s=Object.create(Object.getPrototypeOf(e));return t.set(e,s),F(s,e,Reflect.ownKeys(e),t),s}let g=Object.create(n);return t.set(e,g),L(g,e,Object.keys(e),t),g}function f(e){return P(e,new Ie)}function le(e){let t=new Ie,r=P(e,t);return{hasRepeatedReferences:t.hasRepeatedReferences,value:r}}function v(e){var n;if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;let r=Object.getOwnPropertyDescriptor(t,"constructor");return!r||!("value"in r)||typeof r.value!="function"?!1:((n=Object.getOwnPropertyDescriptor(r.value,"prototype"))==null?void 0:n.value)===t&&De.call(r.value)===ft}function N(e){return typeof e=="string"}function We(e){return Number.isFinite(e)}function Q(e){return typeof e=="boolean"}function B(e){if(e===null||typeof e!="object")return!1;try{return e instanceof RegExp?(e.source,!0):oe.call(e)!=="[object RegExp]"?!1:(Pe.call(e),!0)}catch(t){return!1}}var Re=Date.prototype.getTime;function M(e){if(e instanceof Date)return!0;if(e===null||typeof e!="object"||oe.call(e)!=="[object Date]")return!1;try{return Re.call(e),!0}catch(t){return!1}}function S(e){return e!=null}function Z(e,t){return e!=null&&ct.call(e,t)}function $e(e,t){return e.localeCompare(t)}var wt=256,At=1024,Tt=1,Ct=new Map,Et=new Map;function ie(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 kt(e){let t=new Uint32Array(e.length),r=0;for(let n=1;n<e.length;n++){for(;r>0&&e[n]!==e[r];)r=t[r-1];e[n]===e[r]&&r++,t[n]=r}return t}function Mt(e,t){let r=[[]],n=!0,_=!1,i=!1,o=0;for(let l=0;l<e.length;){let j=e.codePointAt(l);if(j!==92){if(j===42)_=!0,i||(r.push([]),i=!0);else{let c=t?j:ie(j);r[r.length-1].push(c),n&&(n=c<=127),o++,i=!1}l+=j>65535?2:1;continue}let a=l+1;for(;e.charCodeAt(a)===92;)a++;let h=a-l,m=e.codePointAt(a),p,y=!1;m===42?(y=h%2===0,p=y?h/2:(h-1)/2):m===void 0||m===10||m===13||m===8232||m===8233?p=Math.ceil(h/2):p=Math.floor(h/2);for(let c=0;c<p;c++)r[r.length-1].push(92),o++;if(y){i=!1,l=a;continue}if(m!==void 0){let c=t?m:ie(m);r[r.length-1].push(c),n&&(n=c<=127),o++,a+=m>65535?2:1}i=!1,l=a}let g=_&&r[0].length===0,s=_&&r[r.length-1].length===0,d=[];for(let l of r)l.length&&d.push({values:l});let w=g?0:1,u=d.length-(s?0:1);for(let l=w;l<u;l++)d[l].values.length>Tt&&(d[l].failure=kt(d[l].values));return{asciiOnly:n,endsWithWildcard:s,hasWildcard:_,minimumInputLength:o,segments:d,startsWithWildcard:g}}function xt(e,t){let r=t?Ct:Et,n=e.length<=At;if(n){let i=r.get(e);if(i)return i}let _=Mt(e,t);if(n){if(r.size>=wt){let i=r.keys().next().value;i!==void 0&&r.delete(i)}r.set(e,_)}return _}function Dt(e,t){if(t){let _=[];for(let i=0;i<e.length;){let o=e.codePointAt(i);_.push(o),i+=o>65535?2:1}return _}let r=new Uint32Array(e.length),n=0;for(let _=0;_<e.length;){let i=e.codePointAt(_);r[n]=ie(i),n++,_+=i>65535?2:1}return n===r.length?r:r.subarray(0,n)}function G(e,t,r,n){for(let _=0;_<r.values.length;_++){let i=e.charCodeAt(t+_);if(!n&&i>=97&&i<=122&&(i-=32),i!==r.values[_])return!1}return!0}function It(e,t,r,n,_){let i=n-t.values.length;if(i<r)return-1;if(!t.failure){for(let g=r;g<=i;g++)if(G(e,g,t,_))return g;return-1}let o=0;for(let g=r;g<n;g++){let s=e.charCodeAt(g);for(!_&&s>=97&&s<=122&&(s-=32);o>0&&s!==t.values[o];)o=t.failure[o-1];if(s===t.values[o]&&(o++,o===t.values.length))return g-o+1}return-1}function St(e,t,r){if(e.length<t.minimumInputLength)return!1;if(!t.hasWildcard)return e.length===t.minimumInputLength&&G(e,0,t.segments[0],r);let n=0,_=t.segments.length,i=0,o=e.length;if(!t.startsWithWildcard){let g=t.segments[0];if(!G(e,0,g,r))return!1;i=g.values.length,n++}if(!t.endsWithWildcard){_--;let g=t.segments[_];if(o-=g.values.length,!G(e,o,g,r))return!1}for(let g=n;g<_;g++){let s=t.segments[g],d=It(e,s,i,o,r);if(d===-1)return!1;i=d+s.values.length}return!0}function J(e,t,r){for(let n=0;n<r.values.length;n++)if(e[t+n]!==r.values[n])return!1;return!0}function Pt(e,t,r,n){let _=n-t.values.length;if(_<r)return-1;if(!t.failure){for(let o=r;o<=_;o++)if(J(e,o,t))return o;return-1}let i=0;for(let o=r;o<n;o++){for(;i>0&&e[o]!==t.values[i];)i=t.failure[i-1];if(e[o]===t.values[i]&&(i++,i===t.values.length))return o-i+1}return-1}function Wt(e,t){if(e.length<t.minimumInputLength)return!1;if(!t.hasWildcard)return e.length===t.minimumInputLength&&J(e,0,t.segments[0]);let r=0,n=t.segments.length,_=0,i=e.length;if(!t.startsWithWildcard){let o=t.segments[0];if(!J(e,0,o))return!1;_=o.values.length,r++}if(!t.endsWithWildcard){n--;let o=t.segments[n];if(i-=o.values.length,!J(e,i,o))return!1}for(let o=r;o<n;o++){let g=t.segments[o],s=Pt(e,g,_,i);if(s===-1)return!1;_=s+g.values.length}return!0}function Rt(e,t){let r=e.charCodeAt(0)===33,n=r?e.slice(1):e;return{compiled:n.length===0?void 0:xt(n,t),negative:r}}function _e(e,t,r,n){var i;let _;return t.compiled?t.compiled.asciiOnly?_=St(e,t.compiled,r):((i=n.tokens)!=null||(n.tokens=Dt(e,r)),_=Wt(n.tokens,t.compiled)):_=e.length===0,t.negative?!_:_}function Fe(e,t){let r=(t==null?void 0:t.caseSensitiveMatch)===!0,n=typeof e=="string"?[e]:Array.from(new Set(e));if(n.length===0)return()=>!1;let _=n.map(i=>Rt(i,r));if(typeof e=="string"){let i=_[0];return o=>_e(o,i,r,{})}return i=>{let o={},g=!1,s=!1;for(let d of _)if(d.negative){if(!_e(i,d,r,o))return!1}else g=!0,!s&&_e(i,d,r,o)&&(s=!0);return g?s:!0}}var $t={arraysMustNotContainPlaceholders:!0},Ft=Object.prototype.hasOwnProperty,Ne=Date.prototype.getTime,Ve,Be=(Ve=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:Ve.get,ze,He=(ze=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))==null?void 0:ze.get;function X(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!="object"||typeof t!="object")return Number.isNaN(e)&&Number.isNaN(t);if(M(e)||M(t)){if(!M(e)||!M(t))return!1;let _=Ne.call(e),i=Ne.call(t);return _===i||Number.isNaN(_)&&Number.isNaN(i)}if(B(e)||B(t))return B(e)&&B(t)&&Be.call(e)===Be.call(t)&&He.call(e)===He.call(t);if(Array.isArray(e)||Array.isArray(t)){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let _=e.length;_--;)if(!X(e[_],t[_]))return!1;return!0}if(!v(e)||!v(t))return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let _=r.length;_--;){let i=r[_];if(!Ft.call(t,i)||!X(e[i],t[i]))return!1}return!0}function se(e,t,r){if(Array.isArray(e)){if(e.length===0)return!0;if(r.arraysMustNotContainPlaceholders&&e.length&&e.some(n=>X(n,t)))return!1;for(let n=e.length;n--;)if(!se(e[n],t,r))return!1;return!0}if(v(e)){let n=Object.keys(e);if(n.length===0)return!0;for(let _=n.length;_--;)if(!se(e[n[_]],t,r))return!1;return!0}return X(e,t)}function Y(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&&!v(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(O(r,4)));let n=E(E({},$t),r);return se(e,t,n)}var R={arrayVsArrayAllMustBeFound:"any",caseSensitive:!0,reportCompletionFunc:null,reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100},sr=Object.freeze(E({},R));function ee(e,t,r){var ge,he,ye,de,be,me;if(typeof e!="string"&&!Array.isArray(e))throw new TypeError("array-includes-with-glob/includesWithGlob(): [THROW_ID_01] The first argument must be a string or an array; received ".concat(O(e,4),"."));if(typeof t!="string"&&!Array.isArray(t))throw new TypeError("array-includes-with-glob/includesWithGlob(): [THROW_ID_02] The second argument must be a string or an array of strings; received ".concat(O(t,4),"."));if(r!=null&&(typeof r!="object"||Array.isArray(r)))throw new TypeError("array-includes-with-glob/includesWithGlob(): [THROW_ID_03] The third argument must be an options object, null, or undefined; received ".concat(O(r,4),"."));let n=(ge=r==null?void 0:r.arrayVsArrayAllMustBeFound)!=null?ge:R.arrayVsArrayAllMustBeFound;if(n!=="any"&&n!=="all")throw new TypeError('array-includes-with-glob/includesWithGlob(): [THROW_ID_04] opts.arrayVsArrayAllMustBeFound must be "any", "all", null, or undefined; received '.concat(O(n,4),"."));let _=(he=r==null?void 0:r.caseSensitive)!=null?he:R.caseSensitive;if(typeof _!="boolean")throw new TypeError("array-includes-with-glob/includesWithGlob(): [THROW_ID_05] opts.caseSensitive must be a Boolean, null, or undefined; received ".concat(O(_,4),"."));let i=(ye=r==null?void 0:r.reportProgressFunc)!=null?ye:R.reportProgressFunc;if(i!==null&&typeof i!="function")throw new TypeError("array-includes-with-glob/includesWithGlob(): [THROW_ID_06] opts.reportProgressFunc must be a function, null, or undefined; received ".concat(O(i,4),"."));let o=(de=r==null?void 0:r.reportProgressFuncFrom)!=null?de:R.reportProgressFuncFrom;if(!Number.isFinite(o))throw new TypeError("array-includes-with-glob/includesWithGlob(): [THROW_ID_07] opts.reportProgressFuncFrom must be a finite number, null, or undefined; received ".concat(O(o,4),"."));let g=(be=r==null?void 0:r.reportProgressFuncTo)!=null?be:R.reportProgressFuncTo;if(!Number.isFinite(g))throw new TypeError("array-includes-with-glob/includesWithGlob(): [THROW_ID_08] opts.reportProgressFuncTo must be a finite number, null, or undefined; received ".concat(O(g,4),"."));if(o>g)throw new TypeError("array-includes-with-glob/includesWithGlob(): [THROW_ID_09] opts.reportProgressFuncFrom cannot exceed opts.reportProgressFuncTo; received ".concat(o," and ").concat(g,"."));let s=(me=r==null?void 0:r.reportCompletionFunc)!=null?me:R.reportCompletionFunc;if(s!==null&&typeof s!="function")throw new TypeError("array-includes-with-glob/includesWithGlob(): [THROW_ID_10] opts.reportCompletionFunc must be a function, null, or undefined; received ".concat(O(s,4),"."));let d=typeof t=="string"?[t]:Array.from(t);for(let A of d)if(typeof A!="string")throw new TypeError("array-includes-with-glob/includesWithGlob(): [THROW_ID_11] The second argument's array must contain only strings and no holes; received ".concat(O(A,4),"."));let w=s?Date.now():0,u=typeof e=="string"?1:e.length,l,j=0,a=0;function h(A){i&&A!==l&&(l=A,i(A))}function m(A){return h(g),s==null||s({patternComparisons:j,sourceItemsVisited:a,timeTakenInMilliseconds:Date.now()-w}),A}h(o);let p=Array.from(new Set(d));if(u===0||p.length===0)return m(!1);let y={caseSensitiveMatch:_},c=p.map(A=>({matches:Fe(A,y),negative:A.charCodeAt(0)===33})),b=c.filter(A=>A.negative),T=c.filter(A=>!A.negative),k=new Uint8Array(T.length),pe=T.length;for(let A=0;A<u;A++){let z=typeof e=="string"?e:e[A];if(a++,typeof z=="string"){let ve=!0;for(let I of b)if(j++,!I.matches(z)){ve=!1;break}if(ve){if(T.length===0)return m(!0);if(n==="any"){for(let I of T)if(j++,I.matches(z))return m(!0)}else{for(let I=0;I<T.length;I++)k[I]||(j++,T[I].matches(z)&&(k[I]=1,pe--));if(pe===0)return m(!0)}}}h(o+Math.floor((A+1)/u*(g-o)))}return m(!1)}var Ke=Function.prototype.toString,Nt=Ke.call(Object);function Bt(e){var n;if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;let r=Object.getOwnPropertyDescriptor(t,"constructor");return!r||!("value"in r)||typeof r.value!="function"?!1:((n=Object.getOwnPropertyDescriptor(r.value,"prototype"))==null?void 0:n.value)===t&&Ke.call(r.value)===Nt}function x(e){return e==null?!1:Array.isArray(e)||typeof e=="string"?!!e.length:Bt(e)?!!Object.keys(e).length:typeof e=="number"}var D=Array.isArray,Ht=Object.prototype.propertyIsEnumerable;function qe(e){return!!e&&e.some(t=>typeof t=="string")}function Vt(e,t){let r=Object.keys(e),n=Object.keys(t);if(r.length===0||n.length===0)return!0;let _=r.length<=n.length?r:n,i=r.length<=n.length?t:e;for(let o=0;o<_.length;o++)if(!Ht.call(i,_[o]))return!1;return!0}function C(e){return e===null?"null":M(e)?"date":v(e)?"object":D(e)?"array":typeof e}var ae=Object.freeze([]),ue=Object.freeze({cb:null,mergeObjectsOnlyWhenKeysetMatches:!0,ignoreKeys:ae,hardMergeKeys:ae,hardArrayConcatKeys:ae,mergeArraysContainingStringsToBeEmpty:!1,oneToManyArrayObjectMerge:!1,hardMergeEverything:!1,hardArrayConcat:!1,ignoreEverything:!1,concatInsteadOfMerging:!0,dedupeStringsInArrayValues:!1,mergeBoolsUsingOrNotAnd:!0,useNullAsExplicitFalse:!1,reuseInputs:!1});function Ge(e){return(e.ignoreEverything?1:0)|(e.hardMergeEverything?2:0)|(e.hardArrayConcat?4:0)}function zt(e,t,r,n){var _,i,o;return(o=(i=(_=e.pairs)==null?void 0:_.get(t))==null?void 0:i.get(r))==null?void 0:o.get(Ge(n))}function Ue(e,t,r,n,_){e.pairs||(e.pairs=new WeakMap);let i=e.pairs.get(t);i||(i=new WeakMap,e.pairs.set(t,i));let o=i.get(r);o||(o=new Map,i.set(r,o)),o.set(Ge(n),_)}function $(e,t,r,n=!1){if(!n&&t!=="__proto__"){e[t]=r;return}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0})}function Le(e){if(D(e)){let r=[];r.length=e.length;for(let n of Object.keys(e))$(r,n,e[n],!0);return r}let t=Object.create(Object.getPrototypeOf(e));for(let r of Object.keys(e))$(t,r,e[r],!0);return t}function W(e,t,r,n,_,i=!1,o=!1,g=!1){let s=e.path,d=e.pathSegments,w=_.memoizePairs&&v(t)&&v(r)?zt(_,t,r,n):void 0;if(w!=null&&w.active)return typeof n.cb=="function"?n.cb(f(w.pristine1),f(w.pristine2),w.result,e):w.result;if(w&&typeof n.cb!="function")return w.result;if(n.useNullAsExplicitFalse&&(t===null||r===null))return typeof n.cb=="function"?n.cb(f(t),f(r),null,e):null;let u=t;if((D(t)||v(t))&&!i)if(g){let p=le(t);u=p.value,_.memoizePairs||(_.memoizePairs=p.hasRepeatedReferences),i=typeof n.cb!="function"&&!n.oneToManyArrayObjectMerge&&!p.hasRepeatedReferences}else u=Le(t);let l=r;if((D(r)||v(r))&&!o)if(g){let p=le(r);l=p.value,_.memoizePairs||(_.memoizePairs=p.hasRepeatedReferences),o=typeof n.cb!="function"&&!n.oneToManyArrayObjectMerge&&!p.hasRepeatedReferences}else l=Le(r);let j;_.memoizePairs&&v(u)&&x(u)&&v(l)&&(j={active:!0,pristine1:t,pristine2:r,result:u},Ue(_,t,r,n,j),(t!==u||r!==l)&&Ue(_,u,l,n,j));let a;n.ignoreEverything?a=u:n.hardMergeEverything&&(a=l);let h=n.hardMergeEverything||n.ignoreEverything;if(D(u))if(x(u))if(D(l)&&x(l)){if(n.mergeArraysContainingStringsToBeEmpty&&(qe(u)||qe(l))){let c=h?a:[];return typeof n.cb=="function"?n.cb(f(t),f(r),c,e):c}if(n.hardArrayConcat){let c=h?a:u.concat(l);return typeof n.cb=="function"?n.cb(f(t),f(r),c,e):c}let p=[],y=n.concatInsteadOfMerging?void 0:new Set(u);for(let c=0,b=Math.max(u.length,l.length);c<b;c++)_.reportMetadata&&(s=e.path.length?"".concat(e.path,".").concat(c):"".concat(c),d=[...e.pathSegments,c]),v(u[c])&&v(l[c])&&(n.mergeObjectsOnlyWhenKeysetMatches&&Vt(u[c],l[c])||!n.mergeObjectsOnlyWhenKeysetMatches)?p.push(W(_.reportMetadata?{path:s,pathSegments:d,key:e.key,type:[C(u[c]),C(l[c])]}:e,u[c],l[c],n,_,i,o)):n.oneToManyArrayObjectMerge&&(u.length===1||l.length===1)?p.push(u.length===1?W(_.reportMetadata?{path:s,pathSegments:d,key:e.key,type:[C(u[0]),C(l[c])]}:e,u[0],l[c],n,_,i,o):W(_.reportMetadata?{path:s,pathSegments:d,key:e.key,type:[C(u[c]),C(l[0])]}:e,u[c],l[0],n,_,i,o)):n.concatInsteadOfMerging?(c<u.length&&p.push(u[c]),c<l.length&&p.push(l[c])):(c<u.length&&p.push(u[c]),c<l.length&&!(y!=null&&y.has(l[c]))&&p.push(l[c]));n.dedupeStringsInArrayValues&&p.every(c=>N(c))&&(p=[...new Set(p)].sort($e)),u=f(p)}else{let p=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),p,e):p}else{if(x(l)){let y=h?a:l;return typeof n.cb=="function"?n.cb(f(t),f(r),y,e):y}let p=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),p,e):p}else if(v(u)){if(x(u)){if(D(l)){if(x(l)){let b=h?a:l;return typeof n.cb=="function"?n.cb(f(t),f(r),b,e):b}let c=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),c,e):c}if(v(l)){Object.keys(l).forEach(b=>{if(_.reportMetadata&&(s=e.path.length?"".concat(e.path,".").concat(b):"".concat(b),d=[...e.pathSegments,b]),Z(u,b)){let T=u[b],k=l[b];n.ignoreKeys.length>0&&ee(b,n.ignoreKeys)?$(u,b,W(_.reportMetadata?{path:s,pathSegments:d,key:b,type:[C(T),C(k)]}:e,T,k,q(E({},n),{ignoreEverything:!0}),_,i,o),_.reuseCallerInputs):n.hardMergeKeys.length>0&&ee(b,n.hardMergeKeys)?$(u,b,W(_.reportMetadata?{path:s,pathSegments:d,key:b,type:[C(T),C(k)]}:e,T,k,q(E({},n),{hardMergeEverything:!0}),_,i,o),_.reuseCallerInputs):n.hardArrayConcatKeys.length>0&&ee(b,n.hardArrayConcatKeys)?$(u,b,W(_.reportMetadata?{path:s,pathSegments:d,key:b,type:[C(T),C(k)]}:e,T,k,q(E({},n),{hardArrayConcat:!0}),_,i,o),_.reuseCallerInputs):$(u,b,W({path:s,pathSegments:d,key:b,type:[C(T),C(k)]},T,k,n,_,i,o),_.reuseCallerInputs)}else $(u,b,l[b],!0)});let c=u;return j&&(j.active=!1,j.result=c),typeof n.cb=="function"?n.cb(f(t),f(r),c,e):u}let y=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),y,e):y}if(D(l)||v(l)||x(l)){let y=h?a:l;return typeof n.cb=="function"?n.cb(f(t),f(r),y,e):y}let p=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),p,e):p}else if(M(u)){if(Number.isFinite(+u)){if(M(l)){if(Number.isFinite(+l)){let b=h?a:u>l?u:l;return typeof n.cb=="function"?n.cb(f(t),f(r),b,e):b}let c=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),c,e):c}let y=h?a:l||u;return typeof n.cb=="function"?n.cb(f(t),f(r),y,e):y}if(M(l)){let y=h?a:l;return typeof n.cb=="function"?n.cb(f(t),f(r),y,e):y}let p=h?a:l;return typeof n.cb=="function"?n.cb(f(t),f(r),p,e):p}else if(N(u)){if(x(u)){if((D(l)||v(l)||N(l))&&x(l)){let c=h?a:l;return typeof n.cb=="function"?n.cb(f(t),f(r),c,e):c}let y=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),y,e):y}if(S(l)&&!Q(l)){let y=h?a:l;return typeof n.cb=="function"?n.cb(f(t),f(r),y,e):y}let p=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),p,e):p}else if(We(u)){if(x(l)){let y=h?a:l;return typeof n.cb=="function"?n.cb(f(t),f(r),y,e):y}let p=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),p,e):p}else if(Q(u)){if(Q(l)){if(n.mergeBoolsUsingOrNotAnd){let c=h?a:u||l;return typeof n.cb=="function"?n.cb(f(t),f(r),c,e):c}let y=h?a:u&&l;return typeof n.cb=="function"?n.cb(f(t),f(r),y,e):y}if(S(l)){let y=h?a:l;return typeof n.cb=="function"?n.cb(f(t),f(r),y,e):y}let p=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),p,e):p}else if(u===null){if(S(l)){let y=h?a:l;return typeof n.cb=="function"?n.cb(f(t),f(r),y,e):y}let p=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),p,e):p}else{let p=h?a:l===void 0?u:l;return typeof n.cb=="function"?n.cb(f(t),f(r),p,e):p}let m=h?a:u;return typeof n.cb=="function"?n.cb(f(t),f(r),m,e):m}function ce(e){if(typeof e=="string")return!0;if(!D(e))return!1;for(let t=0;t<e.length;t++)if(!Z(e,t)||typeof e[t]!="string")return!1;return!0}function Je(e,t,r){if(!arguments.length)throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_01] Both inputs are missing");if(S(r)&&!v(r))throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_02] The optional options object should be a plain object, currently it's ".concat(O(r,4)," (type ").concat(typeof r,")"));let n=r?E({},ue):ue;if(r){for(let o of Object.keys(ue))if(Z(r,o)){let g=r[o];g!==void 0&&(n[o]=g)}if(n.cb!==null&&typeof n.cb!="function")throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_03] opts.cb must be a function, null, or undefined; received ".concat(O(n.cb,4),"."));if(!ce(n.ignoreKeys))throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_04] opts.ignoreKeys must be a string or an array of strings without holes; received ".concat(O(n.ignoreKeys,4),"."));if(!ce(n.hardMergeKeys))throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_05] opts.hardMergeKeys must be a string or an array of strings without holes; received ".concat(O(n.hardMergeKeys,4),"."));if(!ce(n.hardArrayConcatKeys))throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_06] opts.hardArrayConcatKeys must be a string or an array of strings without holes; received ".concat(O(n.hardArrayConcatKeys,4),"."));let i=["mergeObjectsOnlyWhenKeysetMatches","mergeArraysContainingStringsToBeEmpty","oneToManyArrayObjectMerge","hardMergeEverything","hardArrayConcat","ignoreEverything","concatInsteadOfMerging","dedupeStringsInArrayValues","mergeBoolsUsingOrNotAnd","useNullAsExplicitFalse","reuseInputs"];for(let o of i)if(typeof n[o]!="boolean")throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_07] opts.".concat(o," must be a Boolean; received ").concat(O(n[o],4),"."))}let _=n.reuseInputs&&!n.oneToManyArrayObjectMerge&&typeof n.cb!="function";return W({key:null,path:"",pathSegments:[],type:[C(e),C(t)]},e,t,n,{memoizePairs:_,reuseCallerInputs:_,reportMetadata:typeof n.cb=="function"},_,_,!0)}var Qe="11.2.3";var qt=Qe,Ze={placeholder:!1,doNotFillThesePathsIfTheyContainPlaceholders:[],useNullAsExplicitFalse:!0};function H(e){return v(e)?"plain object":Array.isArray(e)?"array":typeof e}function fe(e,t,r,n,_=""){let i=e;if(S(i)||!(_.length&&n.has(_)&&Y(i,r.placeholder)))if(v(t)&&v(i))Object.keys(t).forEach(o=>{let g="".concat(_?"".concat(_,"."):"").concat(o);n.has(g)&&(S(i[o])?Y(i[o],r.placeholder)&&(i[o]=r.placeholder):i[o]=r.placeholder),(!S(i[o])||!(n.has(g)&&Y(i[o],r.placeholder)))&&(i[o]=fe(i[o],t[o],r,n,g))});else if(Array.isArray(t)&&Array.isArray(i)){if(i.length===0)return f(t);if(t.length)for(let o=i.length;o--;){let g="".concat(_?"".concat(_,"."):"","0");(v(t[0])||Array.isArray(t[0]))&&(i[o]=fe(i[o],t[0],r,n,g))}}else return Je(t,i,{useNullAsExplicitFalse:r.useNullAsExplicitFalse,cb:(o,g,s)=>H(o)===H(g)?g:s});return i}function Ut(e,t,r){if(arguments.length===0)throw new Error("object-fill-missing-keys/fillMissing(): [THROW_ID_01] All arguments are missing!");if(!v(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(H(e),"\" and it's equal to: ").concat(O(e,4)));if(!v(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(H(t),"\" and it's equal to: ").concat(O(t,4)));if(r&&!v(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(H(r),"\" and it's equal to: ").concat(O(r,4)));let n=E(E({},Ze),r);n.doNotFillThesePathsIfTheyContainPlaceholders=we(n.doNotFillThesePathsIfTheyContainPlaceholders);let _=null,i=null;if(n.doNotFillThesePathsIfTheyContainPlaceholders.length&&!n.doNotFillThesePathsIfTheyContainPlaceholders.every((o,g)=>N(o)?!0:(_=o,i=g,!1)))throw new Error('object-fill-missing-keys/fillMissing(): [THROW_ID_05] resolvedOpts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "'.concat(i,"\" is not a string! It's ").concat(H(_),", equal to:\n").concat(O(_,4)));return fe(f(e),t,n,new Set(n.doNotFillThesePathsIfTheyContainPlaceholders))}return it(Lt);})();
11
11
  /**
12
12
  * @name arrayiffy-if-string
13
13
  * @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
14
- * @version 5.2.1
14
+ * @version 5.2.2
15
15
  * @author Roy Revelt
16
16
  * @license MIT
17
17
  * {@link https://codsen.com/os/arrayiffy-if-string/}
18
18
  */
19
+ /**
20
+ * @name codsen-format-diagnostic-value
21
+ * @fileoverview Safely format untrusted JavaScript values for diagnostics
22
+ * @version 1.1.0
23
+ * @author Roy Revelt
24
+ * @license MIT
25
+ * {@link https://codsen.com/os/codsen-format-diagnostic-value/}
26
+ */
19
27
  /**
20
28
  * @name codsen-utils
21
29
  * @fileoverview Various utility functions
22
- * @version 1.8.0
30
+ * @version 1.10.0
23
31
  * @author Roy Revelt
24
32
  * @license MIT
25
33
  * {@link https://codsen.com/os/codsen-utils/}
@@ -27,15 +35,23 @@
27
35
  /**
28
36
  * @name object-all-values-equal-to
29
37
  * @fileoverview Does the AST/nested-plain-object/array/whatever contain only one kind of value?
30
- * @version 4.2.0
38
+ * @version 4.2.2
31
39
  * @author Roy Revelt
32
40
  * @license MIT
33
41
  * {@link https://codsen.com/os/object-all-values-equal-to/}
34
42
  */
43
+ /**
44
+ * @name array-includes-with-glob
45
+ * @fileoverview Check strings against whole-string wildcard patterns
46
+ * @version 5.2.2
47
+ * @author Roy Revelt
48
+ * @license MIT
49
+ * {@link https://codsen.com/os/array-includes-with-glob/}
50
+ */
35
51
  /**
36
52
  * @name util-nonempty
37
53
  * @fileoverview Is the input (plain object, array, string or whatever) not empty?
38
- * @version 5.2.0
54
+ * @version 5.2.2
39
55
  * @author Roy Revelt
40
56
  * @license MIT
41
57
  * {@link https://codsen.com/os/util-nonempty/}
@@ -43,21 +59,8 @@
43
59
  /**
44
60
  * @name object-merge-advanced
45
61
  * @fileoverview Deeply merge JSON-like data structures
46
- * @version 14.2.0
62
+ * @version 14.2.2
47
63
  * @author Roy Revelt
48
64
  * @license MIT
49
65
  * {@link https://codsen.com/os/object-merge-advanced/}
50
66
  */
51
- /*! Bundled license information:
52
-
53
- lodash-es/lodash.js:
54
- (**
55
- * @license
56
- * Lodash (Custom Build) <https://lodash.com/>
57
- * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
58
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
59
- * Released under MIT license <https://lodash.com/license>
60
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
61
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
62
- *)
63
- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "object-fill-missing-keys",
3
- "version": "11.2.1",
3
+ "version": "11.2.3",
4
4
  "description": "Add missing keys into plain objects, according to a reference object",
5
5
  "keywords": [
6
6
  "add",
@@ -70,10 +70,10 @@
70
70
  }
71
71
  },
72
72
  "dependencies": {
73
- "arrayiffy-if-string": "^5.2.1",
74
- "codsen-utils": "^1.8.0",
75
- "object-all-values-equal-to": "^4.2.0",
76
- "object-merge-advanced": "^14.2.0"
73
+ "arrayiffy-if-string": "^5.2.2",
74
+ "codsen-utils": "^1.10.0",
75
+ "object-all-values-equal-to": "^4.2.2",
76
+ "object-merge-advanced": "^14.2.2"
77
77
  },
78
78
  "engines": {
79
79
  "node": ">=18.20.8"