ast-deep-contains 5.0.20 → 5.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2010-2024 Roy Revelt and other contributors
3
+ Copyright (c) 2010-2025 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
@@ -90,6 +90,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
90
90
 
91
91
  MIT License.
92
92
 
93
- Copyright © 2010-2024 Roy Revelt and other contributors.
93
+ Copyright © 2010-2025 Roy Revelt and other contributors.
94
94
 
95
95
  <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,15 +1,15 @@
1
1
  /**
2
2
  * @name ast-deep-contains
3
3
  * @fileoverview Like t.same assert on array of objects, where element order doesn't matter.
4
- * @version 5.0.20
4
+ * @version 5.0.23
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/ast-deep-contains/}
8
8
  */
9
9
 
10
- import h from"object-path";import{traverse as J}from"ast-monkey-traverse";import l from"@sindresorhus/is";var V="5.0.20";var F=V;function j(n){if(n.includes(".")){for(let s=n.length;s--;)if(n[s]===".")return n.slice(0,s)}return n}function x(n,s){return Array.from(n).filter((b,c)=>c!==s)}var k={skipContainers:!0,arrayStrictComparison:!1};function w(n,s,b,c,O){let f={...k,...O};l(n)!==l(s)?c(`the first input arg is of a type ${l(n).toLowerCase()} but the second is ${l(s).toLowerCase()}. Values are - 1st:
10
+ import h from"object-path";import{traverse as J}from"ast-monkey-traverse";import l from"@sindresorhus/is";var V="5.0.23";var F=V;function j(n){if(n.includes(".")){for(let s=n.length;s--;)if(n[s]===".")return n.slice(0,s)}return n}function k(n,s){return Array.from(n).filter((b,c)=>c!==s)}var x={skipContainers:!0,arrayStrictComparison:!1};function w(n,s,b,c,O){let f={...x,...O};l(n)!==l(s)?c(`the first input arg is of a type ${l(n).toLowerCase()} but the second is ${l(s).toLowerCase()}. Values are - 1st:
11
11
  ${JSON.stringify(n,null,4)}
12
12
  2nd:
13
13
  ${JSON.stringify(s,null,4)}`):J(s,(D,E,a,v)=>{let d=E!==void 0?E:D,{path:$}=a;if(h.has(n,$))if(!f.arrayStrictComparison&&l.plainObject(d)&&a.parentType==="array"&&a.parent.length>1){v.now=!0;let o=Array.from(a.path.includes(".")?h.get(n,j($)):n);if(o.length<a.parent.length)c(`the first array: ${JSON.stringify(o,null,4)}
14
- has less objects than array we're matching against, ${JSON.stringify(a.parent,null,4)}`);else{let m=a.parent,g=o.map((e,r)=>r),A=m.map((e,r)=>r),S=[];for(let e=0,r=g.length;e<r;e++){let t=[],i=g[e],p=x(g,e);t.push(i),p.forEach(N=>{S.push(Array.from(t).concat(N))})}let u=S.map(e=>e.map((r,t)=>[t,r])),y=0;for(let e=0,r=u.length;e<r;e++){let t=0;u[e].forEach(i=>{l.plainObject(m[i[0]])&&l.plainObject(o[i[1]])&&Object.keys(m[i[0]]).forEach(p=>{Object.keys(o[i[1]]).includes(p)&&(t+=1,o[i[1]][p]===m[i[0]][p]&&(t+=5))})}),u[e].push(t),t>y&&(y=t)}for(let e=0,r=u.length;e<r;e++)if(u[e][2]===y){u[e].forEach((t,i)=>{i<u[e].length-1&&w(o[t[1]],m[t[0]],b,c,f)});break}}}else{let o=h.get(n,$);(!f.skipContainers||!l.plainObject(o)&&!Array.isArray(o))&&b(o,d,$)}else c(`the first input: ${JSON.stringify(n,null,4)}
15
- does not have the path "${$}", we were looking, would it contain a value ${JSON.stringify(d,null,0)}.`);return d})}export{w as deepContains,k as defaults,F as version};
14
+ has less objects than array we're matching against, ${JSON.stringify(a.parent,null,4)}`);else{let m=a.parent,g=o.map((e,r)=>r),A=m.map((e,r)=>r),S=[];for(let e=0,r=g.length;e<r;e++){let t=[],i=g[e],p=k(g,e);t.push(i),p.forEach(N=>{S.push(Array.from(t).concat(N))})}let u=S.map(e=>e.map((r,t)=>[t,r])),y=0;for(let e=0,r=u.length;e<r;e++){let t=0;u[e].forEach(i=>{l.plainObject(m[i[0]])&&l.plainObject(o[i[1]])&&Object.keys(m[i[0]]).forEach(p=>{Object.keys(o[i[1]]).includes(p)&&(t+=1,o[i[1]][p]===m[i[0]][p]&&(t+=5))})}),u[e].push(t),t>y&&(y=t)}for(let e=0,r=u.length;e<r;e++)if(u[e][2]===y){u[e].forEach((t,i)=>{i<u[e].length-1&&w(o[t[1]],m[t[0]],b,c,f)});break}}}else{let o=h.get(n,$);(!f.skipContainers||!l.plainObject(o)&&!Array.isArray(o))&&b(o,d,$)}else c(`the first input: ${JSON.stringify(n,null,4)}
15
+ does not have the path "${$}", we were looking, would it contain a value ${JSON.stringify(d,null,0)}.`);return d})}export{w as deepContains,x as defaults,F as version};
@@ -1,22 +1,22 @@
1
1
  /**
2
2
  * @name ast-deep-contains
3
3
  * @fileoverview Like t.same assert on array of objects, where element order doesn't matter.
4
- * @version 5.0.20
4
+ * @version 5.0.23
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/ast-deep-contains/}
8
8
  */
9
9
 
10
- "use strict";var astDeepContains=(()=>{var Cr=Object.create;var P=Object.defineProperty,Ur=Object.defineProperties,jr=Object.getOwnPropertyDescriptor,Mr=Object.getOwnPropertyDescriptors,Vr=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,Rr=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable;var q=(r,t,f)=>t in r?P(r,t,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[t]=f,T=(r,t)=>{for(var f in t||(t={}))z.call(t,f)&&q(r,f,t[f]);if(Q)for(var f of Q(t))Lr.call(t,f)&&q(r,f,t[f]);return r},C=(r,t)=>Ur(r,Mr(t));var Y=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),kr=(r,t)=>{for(var f in t)P(r,f,{get:t[f],enumerable:!0})},Z=(r,t,f,d)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Vr(t))!z.call(r,s)&&s!==f&&P(r,s,{get:()=>t[s],enumerable:!(d=jr(t,s))||d.enumerable});return r};var W=(r,t,f)=>(f=r!=null?Cr(Rr(r)):{},Z(t||!r||!r.__esModule?P(f,"default",{value:r,enumerable:!0}):f,r)),Wr=r=>Z(P({},"__esModule",{value:!0}),r);var v=Y((X,L)=>{(function(r,t){"use strict";typeof L=="object"&&typeof L.exports=="object"?L.exports=t():typeof define=="function"&&define.amd?define([],t):r.objectPath=t()})(X,function(){"use strict";var r=Object.prototype.toString;function t(e,i){return e==null?!1:Object.prototype.hasOwnProperty.call(e,i)}function f(e){if(!e||b(e)&&e.length===0)return!0;if(typeof e!="string"){for(var i in e)if(t(e,i))return!1;return!0}return!1}function d(e){return r.call(e)}function s(e){return typeof e=="object"&&d(e)==="[object Object]"}var b=Array.isArray||function(e){return r.call(e)==="[object Array]"};function u(e){return typeof e=="boolean"||d(e)==="[object Boolean]"}function o(e){var i=parseInt(e);return i.toString()===e?i:e}function a(e){e=e||{};var i=function(c){return Object.keys(i).reduce(function(n,p){return p==="create"||typeof i[p]=="function"&&(n[p]=i[p].bind(i,c)),n},{})},w;e.includeInheritedProps?w=function(){return!0}:w=function(c,n){return typeof n=="number"&&Array.isArray(c)||t(c,n)};function S(c,n){if(w(c,n))return c[n]}var m;e.includeInheritedProps?m=function(c,n){typeof n!="string"&&typeof n!="number"&&(n=String(n));var p=S(c,n);if(n==="__proto__"||n==="prototype"||n==="constructor"&&typeof p=="function")throw new Error("For security reasons, object's magic properties cannot be set");return p}:m=function(c,n){return S(c,n)};function F(c,n,p,l){if(typeof n=="number"&&(n=[n]),!n||n.length===0)return c;if(typeof n=="string")return F(c,n.split(".").map(o),p,l);var A=n[0],E=m(c,A);return n.length===1?((E===void 0||!l)&&(c[A]=p),E):(E===void 0&&(typeof n[1]=="number"?c[A]=[]:c[A]={}),F(c[A],n.slice(1),p,l))}return i.has=function(c,n){if(typeof n=="number"?n=[n]:typeof n=="string"&&(n=n.split(".")),!n||n.length===0)return!!c;for(var p=0;p<n.length;p++){var l=o(n[p]);if(typeof l=="number"&&b(c)&&l<c.length||(e.includeInheritedProps?l in Object(c):t(c,l)))c=c[l];else return!1}return!0},i.ensureExists=function(c,n,p){return F(c,n,p,!0)},i.set=function(c,n,p,l){return F(c,n,p,l)},i.insert=function(c,n,p,l){var A=i.get(c,n);l=~~l,b(A)||(A=[],i.set(c,n,A)),A.splice(l,0,p)},i.empty=function(c,n){if(!f(n)&&c!=null){var p,l;if(p=i.get(c,n)){if(typeof p=="string")return i.set(c,n,"");if(u(p))return i.set(c,n,!1);if(typeof p=="number")return i.set(c,n,0);if(b(p))p.length=0;else if(s(p))for(l in p)w(p,l)&&delete p[l];else return i.set(c,n,null)}}},i.push=function(c,n){var p=i.get(c,n);b(p)||(p=[],i.set(c,n,p)),p.push.apply(p,Array.prototype.slice.call(arguments,2))},i.coalesce=function(c,n,p){for(var l,A=0,E=n.length;A<E;A++)if((l=i.get(c,n[A]))!==void 0)return l;return p},i.get=function(c,n,p){if(typeof n=="number"&&(n=[n]),!n||n.length===0)return c;if(c==null)return p;if(typeof n=="string")return i.get(c,n.split("."),p);var l=o(n[0]),A=m(c,l);return A===void 0?p:n.length===1?A:i.get(c[l],n.slice(1),p)},i.del=function(n,p){if(typeof p=="number"&&(p=[p]),n==null||f(p))return n;if(typeof p=="string")return i.del(n,p.split("."));var l=o(p[0]);if(m(n,l),!w(n,l))return n;if(p.length===1)b(n)?n.splice(l,1):delete n[l];else return i.del(n[l],p.slice(1));return n},i}var y=a();return y.create=a,y.withInheritedProps=a({includeInheritedProps:!0}),y})});var G=Y((dn,rr)=>{"use strict";rr.exports=Gr;function D(r){return r instanceof Buffer?Buffer.from(r):new r.constructor(r.buffer.slice(),r.byteOffset,r.length)}function Gr(r){if(r=r||{},r.circles)return Jr(r);return r.proto?d:f;function t(s,b){for(var u=Object.keys(s),o=new Array(u.length),a=0;a<u.length;a++){var y=u[a],e=s[y];typeof e!="object"||e===null?o[y]=e:e instanceof Date?o[y]=new Date(e):ArrayBuffer.isView(e)?o[y]=D(e):o[y]=b(e)}return o}function f(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return t(s,f);if(s instanceof Map)return new Map(t(Array.from(s),f));if(s instanceof Set)return new Set(t(Array.from(s),f));var b={};for(var u in s)if(Object.hasOwnProperty.call(s,u)!==!1){var o=s[u];typeof o!="object"||o===null?b[u]=o:o instanceof Date?b[u]=new Date(o):o instanceof Map?b[u]=new Map(t(Array.from(o),f)):o instanceof Set?b[u]=new Set(t(Array.from(o),f)):ArrayBuffer.isView(o)?b[u]=D(o):b[u]=f(o)}return b}function d(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return t(s,d);if(s instanceof Map)return new Map(t(Array.from(s),d));if(s instanceof Set)return new Set(t(Array.from(s),d));var b={};for(var u in s){var o=s[u];typeof o!="object"||o===null?b[u]=o:o instanceof Date?b[u]=new Date(o):o instanceof Map?b[u]=new Map(t(Array.from(o),d)):o instanceof Set?b[u]=new Set(t(Array.from(o),d)):ArrayBuffer.isView(o)?b[u]=D(o):b[u]=d(o)}return b}}function Jr(r){var t=[],f=[];return r.proto?b:s;function d(u,o){for(var a=Object.keys(u),y=new Array(a.length),e=0;e<a.length;e++){var i=a[e],w=u[i];if(typeof w!="object"||w===null)y[i]=w;else if(w instanceof Date)y[i]=new Date(w);else if(ArrayBuffer.isView(w))y[i]=D(w);else{var S=t.indexOf(w);S!==-1?y[i]=f[S]:y[i]=o(w)}}return y}function s(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return d(u,s);if(u instanceof Map)return new Map(d(Array.from(u),s));if(u instanceof Set)return new Set(d(Array.from(u),s));var o={};t.push(u),f.push(o);for(var a in u)if(Object.hasOwnProperty.call(u,a)!==!1){var y=u[a];if(typeof y!="object"||y===null)o[a]=y;else if(y instanceof Date)o[a]=new Date(y);else if(y instanceof Map)o[a]=new Map(d(Array.from(y),s));else if(y instanceof Set)o[a]=new Set(d(Array.from(y),s));else if(ArrayBuffer.isView(y))o[a]=D(y);else{var e=t.indexOf(y);e!==-1?o[a]=f[e]:o[a]=s(y)}}return t.pop(),f.pop(),o}function b(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return d(u,b);if(u instanceof Map)return new Map(d(Array.from(u),b));if(u instanceof Set)return new Set(d(Array.from(u),b));var o={};t.push(u),f.push(o);for(var a in u){var y=u[a];if(typeof y!="object"||y===null)o[a]=y;else if(y instanceof Date)o[a]=new Date(y);else if(y instanceof Map)o[a]=new Map(d(Array.from(y),b));else if(y instanceof Set)o[a]=new Set(d(Array.from(y),b));else if(ArrayBuffer.isView(y))o[a]=D(y);else{var e=t.indexOf(y);e!==-1?o[a]=f[e]:o[a]=b(y)}}return t.pop(),f.pop(),o}}});var ln={};kr(ln,{deepContains:()=>Br,defaults:()=>Fr,version:()=>cn});var k=W(v(),1);var er=W(G(),1);var tr=W(G(),1);var bn=(0,tr.default)();function nr(r){if(r==null||typeof r!="object")return!1;let t=Object.getPrototypeOf(r);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in r)&&!(Symbol.toStringTag in r)}function _r(r){if(r.includes(".")){let t=r.lastIndexOf(".");if(!r.slice(0,t).includes("."))return r.slice(0,t);for(let f=t-1;f--;)if(r[f]===".")return r.slice(f+1,t)}return null}var J=_r;var _=(0,er.default)();function ir(r,t){let f={now:!1};function d(s,b,u,o){let a=_(s),y,e=T({depth:-1,path:""},u);if(e.depth+=1,Array.isArray(a))for(let i=0,w=a.length;i<w&&!o.now;i++){let S=e.path?`${e.path}.${i}`:`${i}`;a[i]!==void 0?(e.parent=_(a),e.parentType="array",e.parentKey=J(S),y=d(b(a[i],void 0,C(T({},e),{path:S}),o),b,C(T({},e),{path:S}),o),Number.isNaN(y)&&i<a.length?(a.splice(i,1),i-=1):a[i]=y):a.splice(i,1)}else if(nr(a))for(let i in a){if(o.now&&i!=null)break;let w=e.path?`${e.path}.${i}`:i;e.depth===0&&i!=null&&(e.topmostKey=i),e.parent=_(a),e.parentType="object",e.parentKey=J(w),y=d(b(i,a[i],C(T({},e),{path:w}),o),b,C(T({},e),{path:w}),o),Number.isNaN(y)?delete a[i]:a[i]=y}return a}return d(r,t,{},f)}var ur=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function Hr(r){return ur.includes(r)}var pr=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","WeakRef","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement","NaN",...ur];function Kr(r){return pr.includes(r)}var cr=["null","undefined","string","number","bigint","boolean","symbol"];function gr(r){return cr.includes(r)}var $n=["positive number","negative number","Class","string with a number","null or undefined","Iterable","AsyncIterable","native Promise","EnumCase","string with a URL","truthy","falsy","primitive","integer","plain object","TypedArray","array-like","tuple-like","Node.js Stream","infinite number","empty array","non-empty array","empty string","empty string or whitespace","non-empty string","non-empty string and not whitespace","empty object","non-empty object","empty set","non-empty set","empty map","non-empty map","PropertyKey","even integer","odd integer","T","in range","predicate returns truthy for any value","predicate returns truthy for all values","valid Date","valid length","whitespace string",...pr,...cr],h=r=>{let t=Object.prototype.toString.call(r).slice(8,-1);if(/HTML\w+Element/.test(t)&&H(r))return"HTMLElement";if(Kr(t))return t};function or(r){if(r===null)return"null";switch(typeof r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(r)?"NaN":"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(g(r))return"Observable";if(I(r))return"Array";if(sr(r))return"Buffer";let t=h(r);if(t)return t;if(r instanceof String||r instanceof Boolean||r instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}function Qr(r){return x(r==null?void 0:r.then)&&x(r==null?void 0:r.catch)}var qr=Object.assign(or,{all:zr,any:yr,array:I,arrayBuffer:Yr,arrayLike:Zr,asyncFunction:Xr,asyncGenerator:vr,asyncGeneratorFunction:rt,asyncIterable:lr,bigint:tt,bigInt64Array:nt,bigUint64Array:et,blob:it,boolean:ot,boundFunction:ft,buffer:sr,class:fr,class_:fr,dataView:ut,date:dr,detect:or,directInstanceOf:pt,domElement:H,emptyArray:ct,emptyMap:at,emptyObject:yt,emptySet:lt,emptyString:br,emptyStringOrWhitespace:K,enumCase:st,error:dt,evenInteger:bt,falsy:wt,float32Array:ht,float64Array:At,formData:Et,function:x,function_:x,generator:xt,generatorFunction:St,htmlElement:H,infinite:Tt,inRange:Ot,int16Array:Nt,int32Array:It,int8Array:Dt,integer:wr,iterable:hr,map:j,nan:Ar,nativePromise:Er,negativeNumber:Ft,nodeStream:Bt,nonEmptyArray:Pt,nonEmptyMap:Ct,nonEmptyObject:Ut,nonEmptySet:jt,nonEmptyString:Mt,nonEmptyStringAndNotWhitespace:Vt,null:U,null_:U,nullOrUndefined:xr,number:M,numericString:Rt,object:V,observable:g,oddInteger:Lt,plainObject:Sr,positiveNumber:kt,primitive:Wt,promise:Gt,propertyKey:Jt,regExp:_t,safeInteger:$r,set:R,sharedArrayBuffer:Ht,string:O,symbol:mr,truthy:Kt,tupleLike:gt,typedArray:Qt,uint16Array:qt,uint32Array:zt,uint8Array:Yt,uint8ClampedArray:Zt,undefined:Tr,urlInstance:Xt,urlSearchParams:vt,urlString:rn,validDate:tn,validLength:Or,weakMap:nn,weakRef:en,weakSet:on,whitespaceString:Nr});function ar(r){return t=>wr(t)&&Math.abs(t%2)===r}function zr(r,...t){return Ir(Array.prototype.every,r,t)}function yr(r,...t){return(I(r)?r:[r]).some(d=>Ir(Array.prototype.some,d,t))}function I(r,t){return Array.isArray(r)?x(t)?r.every(f=>t(f)):!0:!1}function Yr(r){return h(r)==="ArrayBuffer"}function Zr(r){return!xr(r)&&!x(r)&&Or(r.length)}function Xr(r){return h(r)==="AsyncFunction"}function vr(r){return lr(r)&&x(r.next)&&x(r.throw)}function rt(r){return h(r)==="AsyncGeneratorFunction"}function lr(r){return x(r==null?void 0:r[Symbol.asyncIterator])}function tt(r){return typeof r=="bigint"}function nt(r){return h(r)==="BigInt64Array"}function et(r){return h(r)==="BigUint64Array"}function it(r){return h(r)==="Blob"}function ot(r){return r===!0||r===!1}function ft(r){return x(r)&&!Object.prototype.hasOwnProperty.call(r,"prototype")}function sr(r){var t,f,d;return(d=(f=(t=r==null?void 0:r.constructor)==null?void 0:t.isBuffer)==null?void 0:f.call(t,r))!=null?d:!1}function fr(r){return x(r)&&r.toString().startsWith("class ")}function ut(r){return h(r)==="DataView"}function dr(r){return h(r)==="Date"}function pt(r,t){return r==null?!1:Object.getPrototypeOf(r)===t.prototype}function ct(r){return I(r)&&r.length===0}function at(r){return j(r)&&r.size===0}function yt(r){return V(r)&&!j(r)&&!R(r)&&Object.keys(r).length===0}function lt(r){return R(r)&&r.size===0}function br(r){return O(r)&&r.length===0}function K(r){return br(r)||Nr(r)}function st(r,t){return Object.values(t).includes(r)}function dt(r){return h(r)==="Error"}function bt(r){return ar(0)(r)}function wt(r){return!r}function ht(r){return h(r)==="Float32Array"}function At(r){return h(r)==="Float64Array"}function Et(r){return h(r)==="FormData"}function x(r){return typeof r=="function"}function xt(r){return hr(r)&&x(r==null?void 0:r.next)&&x(r==null?void 0:r.throw)}function St(r){return h(r)==="GeneratorFunction"}var $t=1,mt=["innerHTML","ownerDocument","style","attributes","nodeValue"];function H(r){return V(r)&&r.nodeType===$t&&O(r.nodeName)&&!Sr(r)&&mt.every(t=>t in r)}function Tt(r){return r===Number.POSITIVE_INFINITY||r===Number.NEGATIVE_INFINITY}function Ot(r,t){if(M(t))return r>=Math.min(0,t)&&r<=Math.max(t,0);if(I(t)&&t.length===2)return r>=Math.min(...t)&&r<=Math.max(...t);throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)}function Nt(r){return h(r)==="Int16Array"}function It(r){return h(r)==="Int32Array"}function Dt(r){return h(r)==="Int8Array"}function wr(r){return Number.isInteger(r)}function hr(r){return x(r==null?void 0:r[Symbol.iterator])}function j(r){return h(r)==="Map"}function Ar(r){return Number.isNaN(r)}function Er(r){return h(r)==="Promise"}function Ft(r){return M(r)&&r<0}function Bt(r){return V(r)&&x(r.pipe)&&!g(r)}function Pt(r){return I(r)&&r.length>0}function Ct(r){return j(r)&&r.size>0}function Ut(r){return V(r)&&!j(r)&&!R(r)&&Object.keys(r).length>0}function jt(r){return R(r)&&r.size>0}function Mt(r){return O(r)&&r.length>0}function Vt(r){return O(r)&&!K(r)}function U(r){return r===null}function xr(r){return U(r)||Tr(r)}function M(r){return typeof r=="number"&&!Number.isNaN(r)}function Rt(r){return O(r)&&!K(r)&&!Number.isNaN(Number(r))}function V(r){return!U(r)&&(typeof r=="object"||x(r))}function g(r){var t,f;return r?r===((t=r[Symbol.observable])==null?void 0:t.call(r))||r===((f=r["@@observable"])==null?void 0:f.call(r)):!1}function Lt(r){return ar(1)(r)}function Sr(r){if(typeof r!="object"||r===null)return!1;let t=Object.getPrototypeOf(r);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}function kt(r){return M(r)&&r>0}function Wt(r){return U(r)||gr(typeof r)}function Gt(r){return Er(r)||Qr(r)}function Jt(r){return yr([O,M,mr],r)}function _t(r){return h(r)==="RegExp"}function $r(r){return Number.isSafeInteger(r)}function R(r){return h(r)==="Set"}function Ht(r){return h(r)==="SharedArrayBuffer"}function O(r){return typeof r=="string"}function mr(r){return typeof r=="symbol"}function Kt(r){return!!r}function gt(r,t){return I(t)&&I(r)&&t.length===r.length?t.every((f,d)=>f(r[d])):!1}function Qt(r){return Hr(h(r))}function qt(r){return h(r)==="Uint16Array"}function zt(r){return h(r)==="Uint32Array"}function Yt(r){return h(r)==="Uint8Array"}function Zt(r){return h(r)==="Uint8ClampedArray"}function Tr(r){return r===void 0}function Xt(r){return h(r)==="URL"}function vt(r){return h(r)==="URLSearchParams"}function rn(r){if(!O(r))return!1;try{return new URL(r),!0}catch(t){return!1}}function tn(r){return dr(r)&&!Ar(Number(r))}function Or(r){return $r(r)&&r>=0}function nn(r){return h(r)==="WeakMap"}function en(r){return h(r)==="WeakRef"}function on(r){return h(r)==="WeakSet"}function Nr(r){return O(r)&&/^\s+$/.test(r)}function Ir(r,t,f){if(!x(t))throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`);if(f.length===0)throw new TypeError("Invalid number of values");return r.call(f,t)}var mn=new Intl.ListFormat("en",{style:"long",type:"conjunction"}),Tn=new Intl.ListFormat("en",{style:"long",type:"disjunction"});var fn={isArray:"Array",isArrayBuffer:"ArrayBuffer",isArrayLike:"array-like",isAsyncFunction:"AsyncFunction",isAsyncGenerator:"AsyncGenerator",isAsyncGeneratorFunction:"AsyncGeneratorFunction",isAsyncIterable:"AsyncIterable",isBigint:"bigint",isBigInt64Array:"BigInt64Array",isBigUint64Array:"BigUint64Array",isBlob:"Blob",isBoolean:"boolean",isBoundFunction:"Function",isBuffer:"Buffer",isClass:"Class",isDataView:"DataView",isDate:"Date",isDirectInstanceOf:"T",isDomElement:"HTMLElement",isEmptyArray:"empty array",isEmptyMap:"empty map",isEmptyObject:"empty object",isEmptySet:"empty set",isEmptyString:"empty string",isEmptyStringOrWhitespace:"empty string or whitespace",isEnumCase:"EnumCase",isError:"Error",isEvenInteger:"even integer",isFalsy:"falsy",isFloat32Array:"Float32Array",isFloat64Array:"Float64Array",isFormData:"FormData",isFunction:"Function",isGenerator:"Generator",isGeneratorFunction:"GeneratorFunction",isHtmlElement:"HTMLElement",isInfinite:"infinite number",isInRange:"in range",isInt16Array:"Int16Array",isInt32Array:"Int32Array",isInt8Array:"Int8Array",isInteger:"integer",isIterable:"Iterable",isMap:"Map",isNan:"NaN",isNativePromise:"native Promise",isNegativeNumber:"negative number",isNodeStream:"Node.js Stream",isNonEmptyArray:"non-empty array",isNonEmptyMap:"non-empty map",isNonEmptyObject:"non-empty object",isNonEmptySet:"non-empty set",isNonEmptyString:"non-empty string",isNonEmptyStringAndNotWhitespace:"non-empty string and not whitespace",isNull:"null",isNullOrUndefined:"null or undefined",isNumber:"number",isNumericString:"string with a number",isObject:"Object",isObservable:"Observable",isOddInteger:"odd integer",isPlainObject:"plain object",isPositiveNumber:"positive number",isPrimitive:"primitive",isPromise:"Promise",isPropertyKey:"PropertyKey",isRegExp:"RegExp",isSafeInteger:"integer",isSet:"Set",isSharedArrayBuffer:"SharedArrayBuffer",isString:"string",isSymbol:"symbol",isTruthy:"truthy",isTupleLike:"tuple-like",isTypedArray:"TypedArray",isUint16Array:"Uint16Array",isUint32Array:"Uint32Array",isUint8Array:"Uint8Array",isUint8ClampedArray:"Uint8ClampedArray",isUndefined:"undefined",isUrlInstance:"URL",isUrlSearchParams:"URLSearchParams",isUrlString:"string with a URL",isValidDate:"valid Date",isValidLength:"valid length",isWeakMap:"WeakMap",isWeakRef:"WeakRef",isWeakSet:"WeakSet",isWhitespaceString:"whitespace string"};function un(r){return Object.keys(r)}var On=un(fn);var N=qr;var Dr="5.0.20";var cn=Dr;function an(r){if(r.includes(".")){for(let t=r.length;t--;)if(r[t]===".")return r.slice(0,t)}return r}function yn(r,t){return Array.from(r).filter((f,d)=>d!==t)}var Fr={skipContainers:!0,arrayStrictComparison:!1};function Br(r,t,f,d,s){let b=T(T({},Fr),s);N(r)!==N(t)?d(`the first input arg is of a type ${N(r).toLowerCase()} but the second is ${N(t).toLowerCase()}. Values are - 1st:
10
+ "use strict";var astDeepContains=(()=>{var jr=Object.create;var j=Object.defineProperty,Br=Object.defineProperties,Cr=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyDescriptors,Ur=Object.getOwnPropertyNames,_=Object.getOwnPropertySymbols,Vr=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable;var Q=(r,t,u)=>t in r?j(r,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):r[t]=u,T=(r,t)=>{for(var u in t||(t={}))q.call(t,u)&&Q(r,u,t[u]);if(_)for(var u of _(t))Mr.call(t,u)&&Q(r,u,t[u]);return r},B=(r,t)=>Br(r,Pr(t));var z=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Rr=(r,t)=>{for(var u in t)j(r,u,{get:t[u],enumerable:!0})},Y=(r,t,u,d)=>{if(t&&typeof t=="object"||typeof t=="function")for(let w of Ur(t))!q.call(r,w)&&w!==u&&j(r,w,{get:()=>t[w],enumerable:!(d=Cr(t,w))||d.enumerable});return r};var W=(r,t,u)=>(u=r!=null?jr(Vr(r)):{},Y(t||!r||!r.__esModule?j(u,"default",{value:r,enumerable:!0}):u,r)),Lr=r=>Y(j({},"__esModule",{value:!0}),r);var X=z((Z,M)=>{(function(r,t){"use strict";typeof M=="object"&&typeof M.exports=="object"?M.exports=t():typeof define=="function"&&define.amd?define([],t):r.objectPath=t()})(Z,function(){"use strict";var r=Object.prototype.toString;function t(o,n){return o==null?!1:Object.prototype.hasOwnProperty.call(o,n)}function u(o){if(!o||A(o)&&o.length===0)return!0;if(typeof o!="string"){for(var n in o)if(t(o,n))return!1;return!0}return!1}function d(o){return r.call(o)}function w(o){return typeof o=="object"&&d(o)==="[object Object]"}var A=Array.isArray||function(o){return r.call(o)==="[object Array]"};function a(o){return typeof o=="boolean"||d(o)==="[object Boolean]"}function s(o){var n=parseInt(o);return n.toString()===o?n:o}function i(o){o=o||{};var n=function(p){return Object.keys(n).reduce(function(e,f){return f==="create"||typeof n[f]=="function"&&(e[f]=n[f].bind(n,p)),e},{})},l;o.includeInheritedProps?l=function(){return!0}:l=function(p,e){return typeof e=="number"&&Array.isArray(p)||t(p,e)};function S(p,e){if(l(p,e))return p[e]}var x;o.includeInheritedProps?x=function(p,e){typeof e!="string"&&typeof e!="number"&&(e=String(e));var f=S(p,e);if(e==="__proto__"||e==="prototype"||e==="constructor"&&typeof f=="function")throw new Error("For security reasons, object's magic properties cannot be set");return f}:x=function(p,e){return S(p,e)};function I(p,e,f,y){if(typeof e=="number"&&(e=[e]),!e||e.length===0)return p;if(typeof e=="string")return I(p,e.split(".").map(s),f,y);var h=e[0],E=x(p,h);return e.length===1?((E===void 0||!y)&&(p[h]=f),E):(E===void 0&&(typeof e[1]=="number"?p[h]=[]:p[h]={}),I(p[h],e.slice(1),f,y))}return n.has=function(p,e){if(typeof e=="number"?e=[e]:typeof e=="string"&&(e=e.split(".")),!e||e.length===0)return!!p;for(var f=0;f<e.length;f++){var y=s(e[f]);if(typeof y=="number"&&A(p)&&y<p.length||(o.includeInheritedProps?y in Object(p):t(p,y)))p=p[y];else return!1}return!0},n.ensureExists=function(p,e,f){return I(p,e,f,!0)},n.set=function(p,e,f,y){return I(p,e,f,y)},n.insert=function(p,e,f,y){var h=n.get(p,e);y=~~y,A(h)||(h=[],n.set(p,e,h)),h.splice(y,0,f)},n.empty=function(p,e){if(!u(e)&&p!=null){var f,y;if(f=n.get(p,e)){if(typeof f=="string")return n.set(p,e,"");if(a(f))return n.set(p,e,!1);if(typeof f=="number")return n.set(p,e,0);if(A(f))f.length=0;else if(w(f))for(y in f)l(f,y)&&delete f[y];else return n.set(p,e,null)}}},n.push=function(p,e){var f=n.get(p,e);A(f)||(f=[],n.set(p,e,f)),f.push.apply(f,Array.prototype.slice.call(arguments,2))},n.coalesce=function(p,e,f){for(var y,h=0,E=e.length;h<E;h++)if((y=n.get(p,e[h]))!==void 0)return y;return f},n.get=function(p,e,f){if(typeof e=="number"&&(e=[e]),!e||e.length===0)return p;if(p==null)return f;if(typeof e=="string")return n.get(p,e.split("."),f);var y=s(e[0]),h=x(p,y);return h===void 0?f:e.length===1?h:n.get(p[y],e.slice(1),f)},n.del=function(e,f){if(typeof f=="number"&&(f=[f]),e==null||u(f))return e;if(typeof f=="string")return n.del(e,f.split("."));var y=s(f[0]);if(x(e,y),!l(e,y))return e;if(f.length===1)A(e)?e.splice(y,1):delete e[y];else return n.del(e[y],f.slice(1));return e},n}var c=i();return c.create=i,c.withInheritedProps=i({includeInheritedProps:!0}),c})});var G=z((sn,v)=>{"use strict";v.exports=Wr;function k(r){return r instanceof Buffer?Buffer.from(r):new r.constructor(r.buffer.slice(),r.byteOffset,r.length)}function Wr(r){if(r=r||{},r.circles)return Gr(r);let t=new Map;if(t.set(Date,a=>new Date(a)),t.set(Map,(a,s)=>new Map(d(Array.from(a),s))),t.set(Set,(a,s)=>new Set(d(Array.from(a),s))),r.constructorHandlers)for(let a of r.constructorHandlers)t.set(a[0],a[1]);let u=null;return r.proto?A:w;function d(a,s){let i=Object.keys(a),c=new Array(i.length);for(let o=0;o<i.length;o++){let n=i[o],l=a[n];typeof l!="object"||l===null?c[n]=l:l.constructor!==Object&&(u=t.get(l.constructor))?c[n]=u(l,s):ArrayBuffer.isView(l)?c[n]=k(l):c[n]=s(l)}return c}function w(a){if(typeof a!="object"||a===null)return a;if(Array.isArray(a))return d(a,w);if(a.constructor!==Object&&(u=t.get(a.constructor)))return u(a,w);let s={};for(let i in a){if(Object.hasOwnProperty.call(a,i)===!1)continue;let c=a[i];typeof c!="object"||c===null?s[i]=c:c.constructor!==Object&&(u=t.get(c.constructor))?s[i]=u(c,w):ArrayBuffer.isView(c)?s[i]=k(c):s[i]=w(c)}return s}function A(a){if(typeof a!="object"||a===null)return a;if(Array.isArray(a))return d(a,A);if(a.constructor!==Object&&(u=t.get(a.constructor)))return u(a,A);let s={};for(let i in a){let c=a[i];typeof c!="object"||c===null?s[i]=c:c.constructor!==Object&&(u=t.get(c.constructor))?s[i]=u(c,A):ArrayBuffer.isView(c)?s[i]=k(c):s[i]=A(c)}return s}}function Gr(r){let t=[],u=[],d=new Map;if(d.set(Date,i=>new Date(i)),d.set(Map,(i,c)=>new Map(A(Array.from(i),c))),d.set(Set,(i,c)=>new Set(A(Array.from(i),c))),r.constructorHandlers)for(let i of r.constructorHandlers)d.set(i[0],i[1]);let w=null;return r.proto?s:a;function A(i,c){let o=Object.keys(i),n=new Array(o.length);for(let l=0;l<o.length;l++){let S=o[l],x=i[S];if(typeof x!="object"||x===null)n[S]=x;else if(x.constructor!==Object&&(w=d.get(x.constructor)))n[S]=w(x,c);else if(ArrayBuffer.isView(x))n[S]=k(x);else{let I=t.indexOf(x);I!==-1?n[S]=u[I]:n[S]=c(x)}}return n}function a(i){if(typeof i!="object"||i===null)return i;if(Array.isArray(i))return A(i,a);if(i.constructor!==Object&&(w=d.get(i.constructor)))return w(i,a);let c={};t.push(i),u.push(c);for(let o in i){if(Object.hasOwnProperty.call(i,o)===!1)continue;let n=i[o];if(typeof n!="object"||n===null)c[o]=n;else if(n.constructor!==Object&&(w=d.get(n.constructor)))c[o]=w(n,a);else if(ArrayBuffer.isView(n))c[o]=k(n);else{let l=t.indexOf(n);l!==-1?c[o]=u[l]:c[o]=a(n)}}return t.pop(),u.pop(),c}function s(i){if(typeof i!="object"||i===null)return i;if(Array.isArray(i))return A(i,s);if(i.constructor!==Object&&(w=d.get(i.constructor)))return w(i,s);let c={};t.push(i),u.push(c);for(let o in i){let n=i[o];if(typeof n!="object"||n===null)c[o]=n;else if(n.constructor!==Object&&(w=d.get(n.constructor)))c[o]=w(n,s);else if(ArrayBuffer.isView(n))c[o]=k(n);else{let l=t.indexOf(n);l!==-1?c[o]=u[l]:c[o]=s(n)}}return t.pop(),u.pop(),c}}});var an={};Rr(an,{deepContains:()=>kr,defaults:()=>Dr,version:()=>fn});var L=W(X(),1);var nr=W(G(),1);var rr=W(G(),1);var dn=(0,rr.default)();function tr(r){if(r==null||typeof r!="object")return!1;let t=Object.getPrototypeOf(r);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in r)&&!(Symbol.toStringTag in r)}function J(r){if(r.includes(".")){let t=r.lastIndexOf(".");if(!r.slice(0,t).includes("."))return r.slice(0,t);for(let u=t-1;u--;)if(r[u]===".")return r.slice(u+1,t)}return null}var H=(0,nr.default)();function er(r,t){let u={now:!1};function d(w,A,a,s){let i=H(w),c,o=T({depth:-1,path:""},a);if(o.depth+=1,Array.isArray(i))for(let n=0,l=i.length;n<l&&!s.now;n++){let S=o.path?`${o.path}.${n}`:`${n}`;i[n]!==void 0?(o.parent=H(i),o.parentType="array",o.parentKey=J(S),c=d(A(i[n],void 0,B(T({},o),{path:S}),s),A,B(T({},o),{path:S}),s),Number.isNaN(c)&&n<i.length?(i.splice(n,1),n-=1):i[n]=c):i.splice(n,1)}else if(tr(i))for(let n in i){if(s.now&&n!=null)break;let l=o.path?`${o.path}.${n}`:n;o.depth===0&&n!=null&&(o.topmostKey=n),o.parent=H(i),o.parentType="object",o.parentKey=J(l),c=d(A(n,i[n],B(T({},o),{path:l}),s),A,B(T({},o),{path:l}),s),Number.isNaN(c)?delete i[n]:i[n]=c}return i}return d(r,t,{},u)}var or=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function Jr(r){return or.includes(r)}var ur=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","WeakRef","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement","NaN",...or];function Hr(r){return ur.includes(r)}var cr=["null","undefined","string","number","bigint","boolean","symbol"];function gr(r){return cr.includes(r)}var Sn=["positive number","negative number","Class","string with a number","null or undefined","Iterable","AsyncIterable","native Promise","EnumCase","string with a URL","truthy","falsy","primitive","integer","plain object","TypedArray","array-like","tuple-like","Node.js Stream","infinite number","empty array","non-empty array","empty string","empty string or whitespace","non-empty string","non-empty string and not whitespace","empty object","non-empty object","empty set","non-empty set","empty map","non-empty map","PropertyKey","even integer","odd integer","T","in range","predicate returns truthy for any value","predicate returns truthy for all values","valid Date","valid length","whitespace string",...ur,...cr],b=r=>{let t=Object.prototype.toString.call(r).slice(8,-1);if(/HTML\w+Element/.test(t)&&dr(r))return"HTMLElement";if(Hr(t))return t};function ir(r){if(r===null)return"null";switch(typeof r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(r)?"NaN":"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(K(r))return"Observable";if(D(r))return"Array";if(ar(r))return"Buffer";let t=b(r);if(t)return t;if(r instanceof String||r instanceof Boolean||r instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}function Kr(r){return $(r==null?void 0:r.then)&&$(r==null?void 0:r.catch)}var _r=Object.assign(ir,{all:Qr,any:pr,array:D,arrayBuffer:qr,arrayLike:zr,asyncFunction:Yr,asyncGenerator:Zr,asyncGeneratorFunction:Xr,asyncIterable:yr,bigint:vr,bigInt64Array:rt,bigUint64Array:tt,blob:nt,boolean:et,boundFunction:it,buffer:ar,class:ot,dataView:ut,date:lr,detect:ir,directInstanceOf:ct,emptyArray:ft,emptyMap:pt,emptyObject:yt,emptySet:at,emptyString:sr,emptyStringOrWhitespace:g,enumCase:lt,error:st,evenInteger:dt,falsy:bt,float32Array:ht,float64Array:wt,formData:At,function:$,generator:Et,generatorFunction:xt,htmlElement:dr,infinite:Ot,inRange:Tt,int16Array:Nt,int32Array:mt,int8Array:It,integer:br,iterable:hr,map:C,nan:wr,nativePromise:Ar,negativeNumber:Dt,nodeStream:kt,nonEmptyArray:Ft,nonEmptyMap:jt,nonEmptyObject:Bt,nonEmptySet:Ct,nonEmptyString:Pt,nonEmptyStringAndNotWhitespace:Ut,null:R,nullOrUndefined:Er,number:P,numericString:Vt,object:U,observable:K,oddInteger:Mt,plainObject:xr,positiveNumber:Rt,primitive:Lt,promise:Wt,propertyKey:Gt,regExp:Jt,safeInteger:Sr,set:V,sharedArrayBuffer:Ht,string:N,symbol:$r,truthy:gt,tupleLike:Kt,typedArray:_t,uint16Array:Qt,uint32Array:qt,uint8Array:zt,uint8ClampedArray:Yt,undefined:Or,urlInstance:Zt,urlSearchParams:Xt,urlString:vt,validDate:rn,validLength:Tr,weakMap:tn,weakRef:nn,weakSet:en,whitespaceString:Nr});function fr(r){return t=>br(t)&&Math.abs(t%2)===r}function Qr(r,...t){return mr(Array.prototype.every,r,t)}function pr(r,...t){return(D(r)?r:[r]).some(d=>mr(Array.prototype.some,d,t))}function D(r,t){return Array.isArray(r)?$(t)?r.every(u=>t(u)):!0:!1}function qr(r){return b(r)==="ArrayBuffer"}function zr(r){return!Er(r)&&!$(r)&&Tr(r.length)}function Yr(r){return b(r)==="AsyncFunction"}function Zr(r){return yr(r)&&$(r.next)&&$(r.throw)}function Xr(r){return b(r)==="AsyncGeneratorFunction"}function yr(r){return $(r==null?void 0:r[Symbol.asyncIterator])}function vr(r){return typeof r=="bigint"}function rt(r){return b(r)==="BigInt64Array"}function tt(r){return b(r)==="BigUint64Array"}function nt(r){return b(r)==="Blob"}function et(r){return r===!0||r===!1}function it(r){return $(r)&&!Object.hasOwn(r,"prototype")}function ar(r){var t,u,d;return(d=(u=(t=r==null?void 0:r.constructor)==null?void 0:t.isBuffer)==null?void 0:u.call(t,r))!=null?d:!1}function ot(r){return $(r)&&r.toString().startsWith("class ")}function ut(r){return b(r)==="DataView"}function lr(r){return b(r)==="Date"}function ct(r,t){return r==null?!1:Object.getPrototypeOf(r)===t.prototype}function ft(r){return D(r)&&r.length===0}function pt(r){return C(r)&&r.size===0}function yt(r){return U(r)&&!C(r)&&!V(r)&&Object.keys(r).length===0}function at(r){return V(r)&&r.size===0}function sr(r){return N(r)&&r.length===0}function g(r){return sr(r)||Nr(r)}function lt(r,t){return Object.values(t).includes(r)}function st(r){return b(r)==="Error"}function dt(r){return fr(0)(r)}function bt(r){return!r}function ht(r){return b(r)==="Float32Array"}function wt(r){return b(r)==="Float64Array"}function At(r){return b(r)==="FormData"}function $(r){return typeof r=="function"}function Et(r){return hr(r)&&$(r==null?void 0:r.next)&&$(r==null?void 0:r.throw)}function xt(r){return b(r)==="GeneratorFunction"}var St=1,$t=["innerHTML","ownerDocument","style","attributes","nodeValue"];function dr(r){return U(r)&&r.nodeType===St&&N(r.nodeName)&&!xr(r)&&$t.every(t=>t in r)}function Ot(r){return r===Number.POSITIVE_INFINITY||r===Number.NEGATIVE_INFINITY}function Tt(r,t){if(P(t))return r>=Math.min(0,t)&&r<=Math.max(t,0);if(D(t)&&t.length===2)return r>=Math.min(...t)&&r<=Math.max(...t);throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)}function Nt(r){return b(r)==="Int16Array"}function mt(r){return b(r)==="Int32Array"}function It(r){return b(r)==="Int8Array"}function br(r){return Number.isInteger(r)}function hr(r){return $(r==null?void 0:r[Symbol.iterator])}function C(r){return b(r)==="Map"}function wr(r){return Number.isNaN(r)}function Ar(r){return b(r)==="Promise"}function Dt(r){return P(r)&&r<0}function kt(r){return U(r)&&$(r.pipe)&&!K(r)}function Ft(r){return D(r)&&r.length>0}function jt(r){return C(r)&&r.size>0}function Bt(r){return U(r)&&!C(r)&&!V(r)&&Object.keys(r).length>0}function Ct(r){return V(r)&&r.size>0}function Pt(r){return N(r)&&r.length>0}function Ut(r){return N(r)&&!g(r)}function R(r){return r===null}function Er(r){return R(r)||Or(r)}function P(r){return typeof r=="number"&&!Number.isNaN(r)}function Vt(r){return N(r)&&!g(r)&&!Number.isNaN(Number(r))}function U(r){return!R(r)&&(typeof r=="object"||$(r))}function K(r){var t,u;return r?r===((t=r[Symbol.observable])==null?void 0:t.call(r))||r===((u=r["@@observable"])==null?void 0:u.call(r)):!1}function Mt(r){return fr(1)(r)}function xr(r){if(typeof r!="object"||r===null)return!1;let t=Object.getPrototypeOf(r);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}function Rt(r){return P(r)&&r>0}function Lt(r){return R(r)||gr(typeof r)}function Wt(r){return Ar(r)||Kr(r)}function Gt(r){return pr([N,P,$r],r)}function Jt(r){return b(r)==="RegExp"}function Sr(r){return Number.isSafeInteger(r)}function V(r){return b(r)==="Set"}function Ht(r){return b(r)==="SharedArrayBuffer"}function N(r){return typeof r=="string"}function $r(r){return typeof r=="symbol"}function gt(r){return!!r}function Kt(r,t){return D(t)&&D(r)&&t.length===r.length?t.every((u,d)=>u(r[d])):!1}function _t(r){return Jr(b(r))}function Qt(r){return b(r)==="Uint16Array"}function qt(r){return b(r)==="Uint32Array"}function zt(r){return b(r)==="Uint8Array"}function Yt(r){return b(r)==="Uint8ClampedArray"}function Or(r){return r===void 0}function Zt(r){return b(r)==="URL"}function Xt(r){return b(r)==="URLSearchParams"}function vt(r){if(!N(r))return!1;try{return new URL(r),!0}catch(t){return!1}}function rn(r){return lr(r)&&!wr(Number(r))}function Tr(r){return Sr(r)&&r>=0}function tn(r){return b(r)==="WeakMap"}function nn(r){return b(r)==="WeakRef"}function en(r){return b(r)==="WeakSet"}function Nr(r){return N(r)&&/^\s+$/.test(r)}function mr(r,t,u){if(!$(t))throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`);if(u.length===0)throw new TypeError("Invalid number of values");return r.call(u,t)}var $n=new Intl.ListFormat("en",{style:"long",type:"conjunction"}),On=new Intl.ListFormat("en",{style:"long",type:"disjunction"});var on={isArray:"Array",isArrayBuffer:"ArrayBuffer",isArrayLike:"array-like",isAsyncFunction:"AsyncFunction",isAsyncGenerator:"AsyncGenerator",isAsyncGeneratorFunction:"AsyncGeneratorFunction",isAsyncIterable:"AsyncIterable",isBigint:"bigint",isBigInt64Array:"BigInt64Array",isBigUint64Array:"BigUint64Array",isBlob:"Blob",isBoolean:"boolean",isBoundFunction:"Function",isBuffer:"Buffer",isClass:"Class",isDataView:"DataView",isDate:"Date",isDirectInstanceOf:"T",isEmptyArray:"empty array",isEmptyMap:"empty map",isEmptyObject:"empty object",isEmptySet:"empty set",isEmptyString:"empty string",isEmptyStringOrWhitespace:"empty string or whitespace",isEnumCase:"EnumCase",isError:"Error",isEvenInteger:"even integer",isFalsy:"falsy",isFloat32Array:"Float32Array",isFloat64Array:"Float64Array",isFormData:"FormData",isFunction:"Function",isGenerator:"Generator",isGeneratorFunction:"GeneratorFunction",isHtmlElement:"HTMLElement",isInfinite:"infinite number",isInRange:"in range",isInt16Array:"Int16Array",isInt32Array:"Int32Array",isInt8Array:"Int8Array",isInteger:"integer",isIterable:"Iterable",isMap:"Map",isNan:"NaN",isNativePromise:"native Promise",isNegativeNumber:"negative number",isNodeStream:"Node.js Stream",isNonEmptyArray:"non-empty array",isNonEmptyMap:"non-empty map",isNonEmptyObject:"non-empty object",isNonEmptySet:"non-empty set",isNonEmptyString:"non-empty string",isNonEmptyStringAndNotWhitespace:"non-empty string and not whitespace",isNull:"null",isNullOrUndefined:"null or undefined",isNumber:"number",isNumericString:"string with a number",isObject:"Object",isObservable:"Observable",isOddInteger:"odd integer",isPlainObject:"plain object",isPositiveNumber:"positive number",isPrimitive:"primitive",isPromise:"Promise",isPropertyKey:"PropertyKey",isRegExp:"RegExp",isSafeInteger:"integer",isSet:"Set",isSharedArrayBuffer:"SharedArrayBuffer",isString:"string",isSymbol:"symbol",isTruthy:"truthy",isTupleLike:"tuple-like",isTypedArray:"TypedArray",isUint16Array:"Uint16Array",isUint32Array:"Uint32Array",isUint8Array:"Uint8Array",isUint8ClampedArray:"Uint8ClampedArray",isUndefined:"undefined",isUrlInstance:"URL",isUrlSearchParams:"URLSearchParams",isUrlString:"string with a URL",isValidDate:"valid Date",isValidLength:"valid length",isWeakMap:"WeakMap",isWeakRef:"WeakRef",isWeakSet:"WeakSet",isWhitespaceString:"whitespace string"};function un(r){return Object.keys(r)}var Tn=un(on);var m=_r;var Ir="5.0.23";var fn=Ir;function pn(r){if(r.includes(".")){for(let t=r.length;t--;)if(r[t]===".")return r.slice(0,t)}return r}function yn(r,t){return Array.from(r).filter((u,d)=>d!==t)}var Dr={skipContainers:!0,arrayStrictComparison:!1};function kr(r,t,u,d,w){let A=T(T({},Dr),w);m(r)!==m(t)?d(`the first input arg is of a type ${m(r).toLowerCase()} but the second is ${m(t).toLowerCase()}. Values are - 1st:
11
11
  ${JSON.stringify(r,null,4)}
12
12
  2nd:
13
- ${JSON.stringify(t,null,4)}`):ir(t,(u,o,a,y)=>{let e=o!==void 0?o:u,{path:i}=a;if(k.default.has(r,i))if(!b.arrayStrictComparison&&N.plainObject(e)&&a.parentType==="array"&&a.parent.length>1){y.now=!0;let w=Array.from(a.path.includes(".")?k.default.get(r,an(i)):r);if(w.length<a.parent.length)d(`the first array: ${JSON.stringify(w,null,4)}
14
- has less objects than array we're matching against, ${JSON.stringify(a.parent,null,4)}`);else{let S=a.parent,m=w.map((l,A)=>A),F=S.map((l,A)=>A),c=[];for(let l=0,A=m.length;l<A;l++){let E=[],$=m[l],B=yn(m,l);E.push($),B.forEach(Pr=>{c.push(Array.from(E).concat(Pr))})}let n=c.map(l=>l.map((A,E)=>[E,A])),p=0;for(let l=0,A=n.length;l<A;l++){let E=0;n[l].forEach($=>{N.plainObject(S[$[0]])&&N.plainObject(w[$[1]])&&Object.keys(S[$[0]]).forEach(B=>{Object.keys(w[$[1]]).includes(B)&&(E+=1,w[$[1]][B]===S[$[0]][B]&&(E+=5))})}),n[l].push(E),E>p&&(p=E)}for(let l=0,A=n.length;l<A;l++)if(n[l][2]===p){n[l].forEach((E,$)=>{$<n[l].length-1&&Br(w[E[1]],S[E[0]],f,d,b)});break}}}else{let w=k.default.get(r,i);(!b.skipContainers||!N.plainObject(w)&&!Array.isArray(w))&&f(w,e,i)}else d(`the first input: ${JSON.stringify(r,null,4)}
15
- does not have the path "${i}", we were looking, would it contain a value ${JSON.stringify(e,null,0)}.`);return e})}return Wr(ln);})();
13
+ ${JSON.stringify(t,null,4)}`):er(t,(a,s,i,c)=>{let o=s!==void 0?s:a,{path:n}=i;if(L.default.has(r,n))if(!A.arrayStrictComparison&&m.plainObject(o)&&i.parentType==="array"&&i.parent.length>1){c.now=!0;let l=Array.from(i.path.includes(".")?L.default.get(r,pn(n)):r);if(l.length<i.parent.length)d(`the first array: ${JSON.stringify(l,null,4)}
14
+ has less objects than array we're matching against, ${JSON.stringify(i.parent,null,4)}`);else{let S=i.parent,x=l.map((y,h)=>h),I=S.map((y,h)=>h),p=[];for(let y=0,h=x.length;y<h;y++){let E=[],O=x[y],F=yn(x,y);E.push(O),F.forEach(Fr=>{p.push(Array.from(E).concat(Fr))})}let e=p.map(y=>y.map((h,E)=>[E,h])),f=0;for(let y=0,h=e.length;y<h;y++){let E=0;e[y].forEach(O=>{m.plainObject(S[O[0]])&&m.plainObject(l[O[1]])&&Object.keys(S[O[0]]).forEach(F=>{Object.keys(l[O[1]]).includes(F)&&(E+=1,l[O[1]][F]===S[O[0]][F]&&(E+=5))})}),e[y].push(E),E>f&&(f=E)}for(let y=0,h=e.length;y<h;y++)if(e[y][2]===f){e[y].forEach((E,O)=>{O<e[y].length-1&&kr(l[E[1]],S[E[0]],u,d,A)});break}}}else{let l=L.default.get(r,n);(!A.skipContainers||!m.plainObject(l)&&!Array.isArray(l))&&u(l,o,n)}else d(`the first input: ${JSON.stringify(r,null,4)}
15
+ does not have the path "${n}", we were looking, would it contain a value ${JSON.stringify(o,null,0)}.`);return o})}return Lr(an);})();
16
16
  /**
17
17
  * @name codsen-utils
18
18
  * @fileoverview Various utility functions
19
- * @version 1.6.4
19
+ * @version 1.6.7
20
20
  * @author Roy Revelt, Codsen Ltd
21
21
  * @license MIT
22
22
  * {@link https://codsen.com/os/codsen-utils/}
@@ -24,7 +24,7 @@ does not have the path "${i}", we were looking, would it contain a value ${JSON.
24
24
  /**
25
25
  * @name ast-monkey-util
26
26
  * @fileoverview Utility library of AST helper functions
27
- * @version 3.0.8
27
+ * @version 3.0.10
28
28
  * @author Roy Revelt, Codsen Ltd
29
29
  * @license MIT
30
30
  * {@link https://codsen.com/os/ast-monkey-util/}
@@ -32,7 +32,7 @@ does not have the path "${i}", we were looking, would it contain a value ${JSON.
32
32
  /**
33
33
  * @name ast-monkey-traverse
34
34
  * @fileoverview Utility library to traverse AST
35
- * @version 4.0.16
35
+ * @version 4.0.19
36
36
  * @author Roy Revelt, Codsen Ltd
37
37
  * @license MIT
38
38
  * {@link https://codsen.com/os/ast-monkey-traverse/}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ast-deep-contains",
3
- "version": "5.0.20",
3
+ "version": "5.0.23",
4
4
  "description": "Like t.same assert on array of objects, where element order doesn't matter.",
5
5
  "keywords": [
6
6
  "array",
@@ -32,7 +32,7 @@
32
32
  "homepage": "https://codsen.com/os/ast-deep-contains",
33
33
  "repository": {
34
34
  "type": "git",
35
- "url": "https://github.com/codsen/codsen.git",
35
+ "url": "git+https://github.com/codsen/codsen.git",
36
36
  "directory": "packages/ast-deep-contains"
37
37
  },
38
38
  "license": "MIT",
@@ -58,7 +58,7 @@
58
58
  "examples": "node '../../ops/scripts/run-examples.js'",
59
59
  "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
60
60
  "letspublish": "npm publish || :",
61
- "lint": "eslint . --ext .js --ext .ts --fix",
61
+ "lint": "eslint . --fix",
62
62
  "perf": "node perf/check.js",
63
63
  "prep": "echo 'ready'",
64
64
  "prettier": "prettier",
@@ -86,8 +86,8 @@
86
86
  "various": {}
87
87
  },
88
88
  "dependencies": {
89
- "@sindresorhus/is": "^6.3.1",
90
- "ast-monkey-traverse": "^4.0.16",
89
+ "@sindresorhus/is": "^7.0.1",
90
+ "ast-monkey-traverse": "^4.0.19",
91
91
  "object-path": "^0.11.8"
92
92
  },
93
93
  "devDependencies": {