object-flatten-all-arrays 7.0.12 → 7.0.13
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name object-flatten-all-arrays
|
|
3
3
|
* @fileoverview Merge and flatten any arrays found in all values within plain objects
|
|
4
|
-
* @version 7.0.
|
|
4
|
+
* @version 7.0.13
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/object-flatten-all-arrays/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{merge as y}from"lodash-es";import b from"rfdc";import{isPlainObject as i}from"codsen-utils";var a="7.0.
|
|
10
|
+
import{merge as y}from"lodash-es";import b from"rfdc";import{isPlainObject as i}from"codsen-utils";var a="7.0.13";var p=b(),A=a,j={flattenArraysContainingStringsToBeEmpty:!1};function c(d,u){function m(t){return t.some(r=>typeof r=="string")}let l={...j,...u},e=p(d),s,n,o;if(Array.isArray(e)){if(l.flattenArraysContainingStringsToBeEmpty&&m(e))return[];s=null,n={},o=0;for(let t=0,r=e.length;t<r;t++)i(e[t])&&(n=y(n,e[t]),s===null?(s=!0,o=t):(e.splice(t,1),t-=1));s!==null&&(e[o]=p(n))}return i(e)?Object.keys(e).forEach(t=>{(i(e[t])||Array.isArray(e[t]))&&(e[t]=c(e[t],l))}):Array.isArray(e)&&e.forEach((t,r)=>{(i(e[r])||Array.isArray(e[r]))&&(e[r]=c(e[r],l))}),e}export{j as defaults,c as flattenAllArrays,A as version};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name object-flatten-all-arrays
|
|
3
3
|
* @fileoverview Merge and flatten any arrays found in all values within plain objects
|
|
4
|
-
* @version 7.0.
|
|
4
|
+
* @version 7.0.13
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/object-flatten-all-arrays/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var objectFlattenAllArrays=(()=>{var Vt=Object.create;var L=Object.defineProperty;var $t=Object.getOwnPropertyDescriptor;var qt=Object.getOwnPropertyNames,pe=Object.getOwnPropertySymbols,Ht=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable;var le=(e,t,r)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ee=(e,t)=>{for(var r in t||(t={}))ue.call(t,r)&&le(e,r,t[r]);if(pe)for(var r of pe(t))Kt.call(t,r)&&le(e,r,t[r]);return e};var Qt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jt=(e,t)=>{for(var r in t)L(e,r,{get:t[r],enumerable:!0})},me=(e,t,r,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of qt(t))!ue.call(e,o)&&o!==r&&L(e,o,{get:()=>t[o],enumerable:!(f=$t(t,o))||f.enumerable});return e};var Zt=(e,t,r)=>(r=e!=null?Vt(Ht(e)):{},me(t||!e||!e.__esModule?L(r,"default",{value:e,enumerable:!0}):r,e)),Xt=e=>me(L({},"__esModule",{value:!0}),e);var Nt=Qt((Qp,Ft)=>{"use strict";Ft.exports=nf;function E(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function nf(e){if(e=e||{},e.circles)return sf(e);return e.proto?f:r;function t(o,p){for(var n=Object.keys(o),a=new Array(n.length),s=0;s<n.length;s++){var i=n[s],l=o[i];typeof l!="object"||l===null?a[i]=l:l instanceof Date?a[i]=new Date(l):ArrayBuffer.isView(l)?a[i]=E(l):a[i]=p(l)}return a}function r(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return t(o,r);if(o instanceof Map)return new Map(t(Array.from(o),r));if(o instanceof Set)return new Set(t(Array.from(o),r));var p={};for(var n in o)if(Object.hasOwnProperty.call(o,n)!==!1){var a=o[n];typeof a!="object"||a===null?p[n]=a:a instanceof Date?p[n]=new Date(a):a instanceof Map?p[n]=new Map(t(Array.from(a),r)):a instanceof Set?p[n]=new Set(t(Array.from(a),r)):ArrayBuffer.isView(a)?p[n]=E(a):p[n]=r(a)}return p}function f(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return t(o,f);if(o instanceof Map)return new Map(t(Array.from(o),f));if(o instanceof Set)return new Set(t(Array.from(o),f));var p={};for(var n in o){var a=o[n];typeof a!="object"||a===null?p[n]=a:a instanceof Date?p[n]=new Date(a):a instanceof Map?p[n]=new Map(t(Array.from(a),f)):a instanceof Set?p[n]=new Set(t(Array.from(a),f)):ArrayBuffer.isView(a)?p[n]=E(a):p[n]=f(a)}return p}}function sf(e){var t=[],r=[];return e.proto?p:o;function f(n,a){for(var s=Object.keys(n),i=new Array(s.length),l=0;l<s.length;l++){var c=s[l],d=n[c];if(typeof d!="object"||d===null)i[c]=d;else if(d instanceof Date)i[c]=new Date(d);else if(ArrayBuffer.isView(d))i[c]=E(d);else{var j=t.indexOf(d);j!==-1?i[c]=r[j]:i[c]=a(d)}}return i}function o(n){if(typeof n!="object"||n===null)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return f(n,o);if(n instanceof Map)return new Map(f(Array.from(n),o));if(n instanceof Set)return new Set(f(Array.from(n),o));var a={};t.push(n),r.push(a);for(var s in n)if(Object.hasOwnProperty.call(n,s)!==!1){var i=n[s];if(typeof i!="object"||i===null)a[s]=i;else if(i instanceof Date)a[s]=new Date(i);else if(i instanceof Map)a[s]=new Map(f(Array.from(i),o));else if(i instanceof Set)a[s]=new Set(f(Array.from(i),o));else if(ArrayBuffer.isView(i))a[s]=E(i);else{var l=t.indexOf(i);l!==-1?a[s]=r[l]:a[s]=o(i)}}return t.pop(),r.pop(),a}function p(n){if(typeof n!="object"||n===null)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return f(n,p);if(n instanceof Map)return new Map(f(Array.from(n),p));if(n instanceof Set)return new Set(f(Array.from(n),p));var a={};t.push(n),r.push(a);for(var s in n){var i=n[s];if(typeof i!="object"||i===null)a[s]=i;else if(i instanceof Date)a[s]=new Date(i);else if(i instanceof Map)a[s]=new Map(f(Array.from(i),p));else if(i instanceof Set)a[s]=new Set(f(Array.from(i),p));else if(ArrayBuffer.isView(i))a[s]=E(i);else{var l=t.indexOf(i);l!==-1?a[s]=r[l]:a[s]=p(i)}}return t.pop(),r.pop(),a}}});var uf={};Jt(uf,{defaults:()=>Gt,flattenAllArrays:()=>se,version:()=>lf});var Yt=typeof global=="object"&&global&&global.Object===Object&&global,V=Yt;var kt=typeof self=="object"&&self&&self.Object===Object&&self,er=V||kt||Function("return this")(),x=er;var tr=x.Symbol,w=tr;var de=Object.prototype,rr=de.hasOwnProperty,or=de.toString,R=w?w.toStringTag:void 0;function ar(e){var t=rr.call(e,R),r=e[R];try{e[R]=void 0;var f=!0}catch(p){}var o=or.call(e);return f&&(t?e[R]=r:delete e[R]),o}var ce=ar;var fr=Object.prototype,nr=fr.toString;function sr(e){return nr.call(e)}var xe=sr;var ir="[object Null]",pr="[object Undefined]",he=w?w.toStringTag:void 0;function lr(e){return e==null?e===void 0?pr:ir:he&&he in Object(e)?ce(e):xe(e)}var g=lr;function ur(e){return e!=null&&typeof e=="object"}var h=ur;var mr=Array.isArray,F=mr;function dr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var m=dr;function cr(e){return e}var $=cr;var xr="[object AsyncFunction]",hr="[object Function]",yr="[object GeneratorFunction]",gr="[object Proxy]";function br(e){if(!m(e))return!1;var t=g(e);return t==hr||t==yr||t==xr||t==gr}var _=br;var vr=x["__core-js_shared__"],q=vr;var ye=function(){var e=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ar(e){return!!ye&&ye in e}var ge=Ar;var Or=Function.prototype,jr=Or.toString;function wr(e){if(e!=null){try{return jr.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var be=wr;var _r=/[\\^$.*+?()[\]{}|]/g,Sr=/^\[object .+?Constructor\]$/,Cr=Function.prototype,Tr=Object.prototype,Pr=Cr.toString,Ir=Tr.hasOwnProperty,Dr=RegExp("^"+Pr.call(Ir).replace(_r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Br(e){if(!m(e)||ge(e))return!1;var t=_(e)?Dr:Sr;return t.test(be(e))}var ve=Br;function Mr(e,t){return e==null?void 0:e[t]}var Ae=Mr;function Er(e,t){var r=Ae(e,t);return ve(r)?r:void 0}var S=Er;var Oe=Object.create,Lr=function(){function e(){}return function(t){if(!m(t))return{};if(Oe)return Oe(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),je=Lr;function Rr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var we=Rr;function Fr(e,t){var r=-1,f=e.length;for(t||(t=Array(f));++r<f;)t[r]=e[r];return t}var _e=Fr;var Nr=800,Wr=16,zr=Date.now;function Ur(e){var t=0,r=0;return function(){var f=zr(),o=Wr-(f-r);if(r=f,o>0){if(++t>=Nr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Se=Ur;function Gr(e){return function(){return e}}var Ce=Gr;var Vr=function(){try{var e=S(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),C=Vr;var $r=C?function(e,t){return C(e,"toString",{configurable:!0,enumerable:!1,value:Ce(t),writable:!0})}:$,Te=$r;var qr=Se(Te),Pe=qr;var Hr=9007199254740991,Kr=/^(?:0|[1-9]\d*)$/;function Qr(e,t){var r=typeof e;return t=t==null?Hr:t,!!t&&(r=="number"||r!="symbol"&&Kr.test(e))&&e>-1&&e%1==0&&e<t}var H=Qr;function Jr(e,t,r){t=="__proto__"&&C?C(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var T=Jr;function Zr(e,t){return e===t||e!==e&&t!==t}var b=Zr;var Xr=Object.prototype,Yr=Xr.hasOwnProperty;function kr(e,t,r){var f=e[t];(!(Yr.call(e,t)&&b(f,r))||r===void 0&&!(t in e))&&T(e,t,r)}var Ie=kr;function eo(e,t,r,f){var o=!r;r||(r={});for(var p=-1,n=t.length;++p<n;){var a=t[p],s=f?f(r[a],e[a],a,r,e):void 0;s===void 0&&(s=e[a]),o?T(r,a,s):Ie(r,a,s)}return r}var De=eo;var Be=Math.max;function to(e,t,r){return t=Be(t===void 0?e.length-1:t,0),function(){for(var f=arguments,o=-1,p=Be(f.length-t,0),n=Array(p);++o<p;)n[o]=f[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=f[o];return a[t]=r(n),we(e,this,a)}}var Me=to;function ro(e,t){return Pe(Me(e,t,$),e+"")}var Ee=ro;var oo=9007199254740991;function ao(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oo}var K=ao;function fo(e){return e!=null&&K(e.length)&&!_(e)}var P=fo;function no(e,t,r){if(!m(r))return!1;var f=typeof t;return(f=="number"?P(r)&&H(t,r.length):f=="string"&&t in r)?b(r[t],e):!1}var Le=no;function so(e){return Ee(function(t,r){var f=-1,o=r.length,p=o>1?r[o-1]:void 0,n=o>2?r[2]:void 0;for(p=e.length>3&&typeof p=="function"?(o--,p):void 0,n&&Le(r[0],r[1],n)&&(p=o<3?void 0:p,o=1),t=Object(t);++f<o;){var a=r[f];a&&e(t,a,f,p)}return t})}var Re=so;var io=Object.prototype;function po(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||io;return e===r}var Q=po;function lo(e,t){for(var r=-1,f=Array(e);++r<e;)f[r]=t(r);return f}var Fe=lo;var uo="[object Arguments]";function mo(e){return h(e)&&g(e)==uo}var te=mo;var Ne=Object.prototype,co=Ne.hasOwnProperty,xo=Ne.propertyIsEnumerable,ho=te(function(){return arguments}())?te:function(e){return h(e)&&co.call(e,"callee")&&!xo.call(e,"callee")},N=ho;function yo(){return!1}var We=yo;var Ge=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ze=Ge&&typeof module=="object"&&module&&!module.nodeType&&module,go=ze&&ze.exports===Ge,Ue=go?x.Buffer:void 0,bo=Ue?Ue.isBuffer:void 0,vo=bo||We,J=vo;var Ao="[object Arguments]",Oo="[object Array]",jo="[object Boolean]",wo="[object Date]",_o="[object Error]",So="[object Function]",Co="[object Map]",To="[object Number]",Po="[object Object]",Io="[object RegExp]",Do="[object Set]",Bo="[object String]",Mo="[object WeakMap]",Eo="[object ArrayBuffer]",Lo="[object DataView]",Ro="[object Float32Array]",Fo="[object Float64Array]",No="[object Int8Array]",Wo="[object Int16Array]",zo="[object Int32Array]",Uo="[object Uint8Array]",Go="[object Uint8ClampedArray]",Vo="[object Uint16Array]",$o="[object Uint32Array]",u={};u[Ro]=u[Fo]=u[No]=u[Wo]=u[zo]=u[Uo]=u[Go]=u[Vo]=u[$o]=!0;u[Ao]=u[Oo]=u[Eo]=u[jo]=u[Lo]=u[wo]=u[_o]=u[So]=u[Co]=u[To]=u[Po]=u[Io]=u[Do]=u[Bo]=u[Mo]=!1;function qo(e){return h(e)&&K(e.length)&&!!u[g(e)]}var Ve=qo;function Ho(e){return function(t){return e(t)}}var $e=Ho;var qe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,W=qe&&typeof module=="object"&&module&&!module.nodeType&&module,Ko=W&&W.exports===qe,re=Ko&&V.process,Qo=function(){try{var e=W&&W.require&&W.require("util").types;return e||re&&re.binding&&re.binding("util")}catch(t){}}(),oe=Qo;var He=oe&&oe.isTypedArray,Jo=He?$e(He):Ve,Z=Jo;var Zo=Object.prototype,Xo=Zo.hasOwnProperty;function Yo(e,t){var r=F(e),f=!r&&N(e),o=!r&&!f&&J(e),p=!r&&!f&&!o&&Z(e),n=r||f||o||p,a=n?Fe(e.length,String):[],s=a.length;for(var i in e)(t||Xo.call(e,i))&&!(n&&(i=="length"||o&&(i=="offset"||i=="parent")||p&&(i=="buffer"||i=="byteLength"||i=="byteOffset")||H(i,s)))&&a.push(i);return a}var Ke=Yo;function ko(e,t){return function(r){return e(t(r))}}var Qe=ko;function ea(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Je=ea;var ta=Object.prototype,ra=ta.hasOwnProperty;function oa(e){if(!m(e))return Je(e);var t=Q(e),r=[];for(var f in e)f=="constructor"&&(t||!ra.call(e,f))||r.push(f);return r}var Ze=oa;function aa(e){return P(e)?Ke(e,!0):Ze(e)}var X=aa;var fa=S(Object,"create"),y=fa;function na(){this.__data__=y?y(null):{},this.size=0}var Xe=na;function sa(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ye=sa;var ia="__lodash_hash_undefined__",pa=Object.prototype,la=pa.hasOwnProperty;function ua(e){var t=this.__data__;if(y){var r=t[e];return r===ia?void 0:r}return la.call(t,e)?t[e]:void 0}var ke=ua;var ma=Object.prototype,da=ma.hasOwnProperty;function ca(e){var t=this.__data__;return y?t[e]!==void 0:da.call(t,e)}var et=ca;var xa="__lodash_hash_undefined__";function ha(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=y&&t===void 0?xa:t,this}var tt=ha;function I(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var f=e[t];this.set(f[0],f[1])}}I.prototype.clear=Xe;I.prototype.delete=Ye;I.prototype.get=ke;I.prototype.has=et;I.prototype.set=tt;var ae=I;function ya(){this.__data__=[],this.size=0}var rt=ya;function ga(e,t){for(var r=e.length;r--;)if(b(e[r][0],t))return r;return-1}var v=ga;var ba=Array.prototype,va=ba.splice;function Aa(e){var t=this.__data__,r=v(t,e);if(r<0)return!1;var f=t.length-1;return r==f?t.pop():va.call(t,r,1),--this.size,!0}var ot=Aa;function Oa(e){var t=this.__data__,r=v(t,e);return r<0?void 0:t[r][1]}var at=Oa;function ja(e){return v(this.__data__,e)>-1}var ft=ja;function wa(e,t){var r=this.__data__,f=v(r,e);return f<0?(++this.size,r.push([e,t])):r[f][1]=t,this}var nt=wa;function D(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var f=e[t];this.set(f[0],f[1])}}D.prototype.clear=rt;D.prototype.delete=ot;D.prototype.get=at;D.prototype.has=ft;D.prototype.set=nt;var A=D;var _a=S(x,"Map"),Y=_a;function Sa(){this.size=0,this.__data__={hash:new ae,map:new(Y||A),string:new ae}}var st=Sa;function Ca(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var it=Ca;function Ta(e,t){var r=e.__data__;return it(t)?r[typeof t=="string"?"string":"hash"]:r.map}var O=Ta;function Pa(e){var t=O(this,e).delete(e);return this.size-=t?1:0,t}var pt=Pa;function Ia(e){return O(this,e).get(e)}var lt=Ia;function Da(e){return O(this,e).has(e)}var ut=Da;function Ba(e,t){var r=O(this,e),f=r.size;return r.set(e,t),this.size+=r.size==f?0:1,this}var mt=Ba;function B(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var f=e[t];this.set(f[0],f[1])}}B.prototype.clear=st;B.prototype.delete=pt;B.prototype.get=lt;B.prototype.has=ut;B.prototype.set=mt;var dt=B;var Ma=Qe(Object.getPrototypeOf,Object),k=Ma;var Ea="[object Object]",La=Function.prototype,Ra=Object.prototype,ct=La.toString,Fa=Ra.hasOwnProperty,Na=ct.call(Object);function Wa(e){if(!h(e)||g(e)!=Ea)return!1;var t=k(e);if(t===null)return!0;var r=Fa.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ct.call(r)==Na}var xt=Wa;function za(){this.__data__=new A,this.size=0}var ht=za;function Ua(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var yt=Ua;function Ga(e){return this.__data__.get(e)}var gt=Ga;function Va(e){return this.__data__.has(e)}var bt=Va;var $a=200;function qa(e,t){var r=this.__data__;if(r instanceof A){var f=r.__data__;if(!Y||f.length<$a-1)return f.push([e,t]),this.size=++r.size,this;r=this.__data__=new dt(f)}return r.set(e,t),this.size=r.size,this}var vt=qa;function M(e){var t=this.__data__=new A(e);this.size=t.size}M.prototype.clear=ht;M.prototype.delete=yt;M.prototype.get=gt;M.prototype.has=bt;M.prototype.set=vt;var At=M;var _t=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ot=_t&&typeof module=="object"&&module&&!module.nodeType&&module,Ha=Ot&&Ot.exports===_t,jt=Ha?x.Buffer:void 0,wt=jt?jt.allocUnsafe:void 0;function Ka(e,t){if(t)return e.slice();var r=e.length,f=wt?wt(r):new e.constructor(r);return e.copy(f),f}var St=Ka;var Qa=x.Uint8Array,fe=Qa;function Ja(e){var t=new e.constructor(e.byteLength);return new fe(t).set(new fe(e)),t}var Ct=Ja;function Za(e,t){var r=t?Ct(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Tt=Za;function Xa(e){return typeof e.constructor=="function"&&!Q(e)?je(k(e)):{}}var Pt=Xa;function Ya(e){return function(t,r,f){for(var o=-1,p=Object(t),n=f(t),a=n.length;a--;){var s=n[e?a:++o];if(r(p[s],s,p)===!1)break}return t}}var It=Ya;var ka=It(),Dt=ka;function ef(e,t,r){(r!==void 0&&!b(e[t],r)||r===void 0&&!(t in e))&&T(e,t,r)}var z=ef;function tf(e){return h(e)&&P(e)}var Bt=tf;function rf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var U=rf;function of(e){return De(e,X(e))}var Mt=of;function af(e,t,r,f,o,p,n){var a=U(e,r),s=U(t,r),i=n.get(s);if(i){z(e,r,i);return}var l=p?p(a,s,r+"",e,t,n):void 0,c=l===void 0;if(c){var d=F(s),j=!d&&J(s),ie=!d&&!j&&Z(s);l=s,d||j||ie?F(a)?l=a:Bt(a)?l=_e(a):j?(c=!1,l=St(s,!0)):ie?(c=!1,l=Tt(s,!0)):l=[]:xt(s)||N(s)?(l=a,N(a)?l=Mt(a):(!m(a)||_(a))&&(l=Pt(s))):c=!1}c&&(n.set(s,l),o(l,s,f,p,n),n.delete(s)),z(e,r,l)}var Et=af;function Lt(e,t,r,f,o){e!==t&&Dt(t,function(p,n){if(o||(o=new At),m(p))Et(e,t,n,r,Lt,f,o);else{var a=f?f(U(e,n),p,n+"",e,t,o):void 0;a===void 0&&(a=p),z(e,n,a)}},X)}var Rt=Lt;var ff=Re(function(e,t,r){Rt(e,t,r)}),ne=ff;var Ut=Zt(Nt(),1);function G(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)}var Wt="7.0.12";var zt=(0,Ut.default)(),lf=Wt,Gt={flattenArraysContainingStringsToBeEmpty:!1};function se(e,t){function r(s){return s.some(i=>typeof i=="string")}let f=ee(ee({},Gt),t),o=zt(e),p,n,a;if(Array.isArray(o)){if(f.flattenArraysContainingStringsToBeEmpty&&r(o))return[];p=null,n={},a=0;for(let s=0,i=o.length;s<i;s++)G(o[s])&&(n=ne(n,o[s]),p===null?(p=!0,a=s):(o.splice(s,1),s-=1));p!==null&&(o[a]=zt(n))}return G(o)?Object.keys(o).forEach(s=>{(G(o[s])||Array.isArray(o[s]))&&(o[s]=se(o[s],f))}):Array.isArray(o)&&o.forEach((s,i)=>{(G(o[i])||Array.isArray(o[i]))&&(o[i]=se(o[i],f))}),o}return Xt(uf);})();
|
|
10
|
+
"use strict";var objectFlattenAllArrays=(()=>{var Vt=Object.create;var L=Object.defineProperty;var qt=Object.getOwnPropertyDescriptor;var Kt=Object.getOwnPropertyNames,le=Object.getOwnPropertySymbols,Jt=Object.getPrototypeOf,me=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable;var ue=(e,t,r)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ee=(e,t)=>{for(var r in t||(t={}))me.call(t,r)&&ue(e,r,t[r]);if(le)for(var r of le(t))Qt.call(t,r)&&ue(e,r,t[r]);return e};var Zt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Xt=(e,t)=>{for(var r in t)L(e,r,{get:t[r],enumerable:!0})},de=(e,t,r,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Kt(t))!me.call(e,o)&&o!==r&&L(e,o,{get:()=>t[o],enumerable:!(f=qt(t,o))||f.enumerable});return e};var ce=(e,t,r)=>(r=e!=null?Vt(Jt(e)):{},de(t||!e||!e.__esModule?L(r,"default",{value:e,enumerable:!0}):r,e)),Yt=e=>de(L({},"__esModule",{value:!0}),e);var se=Zt((Qp,Wt)=>{"use strict";Wt.exports=sf;function E(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function sf(e){if(e=e||{},e.circles)return pf(e);return e.proto?f:r;function t(o,p){for(var n=Object.keys(o),a=new Array(n.length),s=0;s<n.length;s++){var i=n[s],l=o[i];typeof l!="object"||l===null?a[i]=l:l instanceof Date?a[i]=new Date(l):ArrayBuffer.isView(l)?a[i]=E(l):a[i]=p(l)}return a}function r(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return t(o,r);if(o instanceof Map)return new Map(t(Array.from(o),r));if(o instanceof Set)return new Set(t(Array.from(o),r));var p={};for(var n in o)if(Object.hasOwnProperty.call(o,n)!==!1){var a=o[n];typeof a!="object"||a===null?p[n]=a:a instanceof Date?p[n]=new Date(a):a instanceof Map?p[n]=new Map(t(Array.from(a),r)):a instanceof Set?p[n]=new Set(t(Array.from(a),r)):ArrayBuffer.isView(a)?p[n]=E(a):p[n]=r(a)}return p}function f(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return t(o,f);if(o instanceof Map)return new Map(t(Array.from(o),f));if(o instanceof Set)return new Set(t(Array.from(o),f));var p={};for(var n in o){var a=o[n];typeof a!="object"||a===null?p[n]=a:a instanceof Date?p[n]=new Date(a):a instanceof Map?p[n]=new Map(t(Array.from(a),f)):a instanceof Set?p[n]=new Set(t(Array.from(a),f)):ArrayBuffer.isView(a)?p[n]=E(a):p[n]=f(a)}return p}}function pf(e){var t=[],r=[];return e.proto?p:o;function f(n,a){for(var s=Object.keys(n),i=new Array(s.length),l=0;l<s.length;l++){var c=s[l],d=n[c];if(typeof d!="object"||d===null)i[c]=d;else if(d instanceof Date)i[c]=new Date(d);else if(ArrayBuffer.isView(d))i[c]=E(d);else{var j=t.indexOf(d);j!==-1?i[c]=r[j]:i[c]=a(d)}}return i}function o(n){if(typeof n!="object"||n===null)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return f(n,o);if(n instanceof Map)return new Map(f(Array.from(n),o));if(n instanceof Set)return new Set(f(Array.from(n),o));var a={};t.push(n),r.push(a);for(var s in n)if(Object.hasOwnProperty.call(n,s)!==!1){var i=n[s];if(typeof i!="object"||i===null)a[s]=i;else if(i instanceof Date)a[s]=new Date(i);else if(i instanceof Map)a[s]=new Map(f(Array.from(i),o));else if(i instanceof Set)a[s]=new Set(f(Array.from(i),o));else if(ArrayBuffer.isView(i))a[s]=E(i);else{var l=t.indexOf(i);l!==-1?a[s]=r[l]:a[s]=o(i)}}return t.pop(),r.pop(),a}function p(n){if(typeof n!="object"||n===null)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return f(n,p);if(n instanceof Map)return new Map(f(Array.from(n),p));if(n instanceof Set)return new Set(f(Array.from(n),p));var a={};t.push(n),r.push(a);for(var s in n){var i=n[s];if(typeof i!="object"||i===null)a[s]=i;else if(i instanceof Date)a[s]=new Date(i);else if(i instanceof Map)a[s]=new Map(f(Array.from(i),p));else if(i instanceof Set)a[s]=new Set(f(Array.from(i),p));else if(ArrayBuffer.isView(i))a[s]=E(i);else{var l=t.indexOf(i);l!==-1?a[s]=r[l]:a[s]=p(i)}}return t.pop(),r.pop(),a}}});var mf={};Xt(mf,{defaults:()=>Ht,flattenAllArrays:()=>ie,version:()=>uf});var kt=typeof global=="object"&&global&&global.Object===Object&&global,$=kt;var er=typeof self=="object"&&self&&self.Object===Object&&self,tr=$||er||Function("return this")(),x=tr;var rr=x.Symbol,w=rr;var xe=Object.prototype,or=xe.hasOwnProperty,ar=xe.toString,R=w?w.toStringTag:void 0;function fr(e){var t=or.call(e,R),r=e[R];try{e[R]=void 0;var f=!0}catch(p){}var o=ar.call(e);return f&&(t?e[R]=r:delete e[R]),o}var he=fr;var nr=Object.prototype,sr=nr.toString;function ir(e){return sr.call(e)}var ye=ir;var pr="[object Null]",lr="[object Undefined]",ge=w?w.toStringTag:void 0;function ur(e){return e==null?e===void 0?lr:pr:ge&&ge in Object(e)?he(e):ye(e)}var g=ur;function mr(e){return e!=null&&typeof e=="object"}var h=mr;var dr=Array.isArray,F=dr;function cr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var m=cr;function xr(e){return e}var H=xr;var hr="[object AsyncFunction]",yr="[object Function]",gr="[object GeneratorFunction]",br="[object Proxy]";function vr(e){if(!m(e))return!1;var t=g(e);return t==yr||t==gr||t==hr||t==br}var _=vr;var Ar=x["__core-js_shared__"],V=Ar;var be=function(){var e=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Or(e){return!!be&&be in e}var ve=Or;var jr=Function.prototype,wr=jr.toString;function _r(e){if(e!=null){try{return wr.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Ae=_r;var Sr=/[\\^$.*+?()[\]{}|]/g,Tr=/^\[object .+?Constructor\]$/,Cr=Function.prototype,Ir=Object.prototype,Pr=Cr.toString,Dr=Ir.hasOwnProperty,Br=RegExp("^"+Pr.call(Dr).replace(Sr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Mr(e){if(!m(e)||ve(e))return!1;var t=_(e)?Br:Tr;return t.test(Ae(e))}var Oe=Mr;function Er(e,t){return e==null?void 0:e[t]}var je=Er;function Lr(e,t){var r=je(e,t);return Oe(r)?r:void 0}var S=Lr;var we=Object.create,Rr=function(){function e(){}return function(t){if(!m(t))return{};if(we)return we(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),_e=Rr;function Fr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Se=Fr;function Nr(e,t){var r=-1,f=e.length;for(t||(t=Array(f));++r<f;)t[r]=e[r];return t}var Te=Nr;var Wr=800,zr=16,Ur=Date.now;function Gr(e){var t=0,r=0;return function(){var f=Ur(),o=zr-(f-r);if(r=f,o>0){if(++t>=Wr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ce=Gr;function $r(e){return function(){return e}}var Ie=$r;var Hr=function(){try{var e=S(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),T=Hr;var Vr=T?function(e,t){return T(e,"toString",{configurable:!0,enumerable:!1,value:Ie(t),writable:!0})}:H,Pe=Vr;var qr=Ce(Pe),De=qr;var Kr=9007199254740991,Jr=/^(?:0|[1-9]\d*)$/;function Qr(e,t){var r=typeof e;return t=t==null?Kr:t,!!t&&(r=="number"||r!="symbol"&&Jr.test(e))&&e>-1&&e%1==0&&e<t}var q=Qr;function Zr(e,t,r){t=="__proto__"&&T?T(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var C=Zr;function Xr(e,t){return e===t||e!==e&&t!==t}var b=Xr;var Yr=Object.prototype,kr=Yr.hasOwnProperty;function eo(e,t,r){var f=e[t];(!(kr.call(e,t)&&b(f,r))||r===void 0&&!(t in e))&&C(e,t,r)}var Be=eo;function to(e,t,r,f){var o=!r;r||(r={});for(var p=-1,n=t.length;++p<n;){var a=t[p],s=f?f(r[a],e[a],a,r,e):void 0;s===void 0&&(s=e[a]),o?C(r,a,s):Be(r,a,s)}return r}var Me=to;var Ee=Math.max;function ro(e,t,r){return t=Ee(t===void 0?e.length-1:t,0),function(){for(var f=arguments,o=-1,p=Ee(f.length-t,0),n=Array(p);++o<p;)n[o]=f[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=f[o];return a[t]=r(n),Se(e,this,a)}}var Le=ro;function oo(e,t){return De(Le(e,t,H),e+"")}var Re=oo;var ao=9007199254740991;function fo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ao}var K=fo;function no(e){return e!=null&&K(e.length)&&!_(e)}var I=no;function so(e,t,r){if(!m(r))return!1;var f=typeof t;return(f=="number"?I(r)&&q(t,r.length):f=="string"&&t in r)?b(r[t],e):!1}var Fe=so;function io(e){return Re(function(t,r){var f=-1,o=r.length,p=o>1?r[o-1]:void 0,n=o>2?r[2]:void 0;for(p=e.length>3&&typeof p=="function"?(o--,p):void 0,n&&Fe(r[0],r[1],n)&&(p=o<3?void 0:p,o=1),t=Object(t);++f<o;){var a=r[f];a&&e(t,a,f,p)}return t})}var Ne=io;var po=Object.prototype;function lo(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||po;return e===r}var J=lo;function uo(e,t){for(var r=-1,f=Array(e);++r<e;)f[r]=t(r);return f}var We=uo;var mo="[object Arguments]";function co(e){return h(e)&&g(e)==mo}var te=co;var ze=Object.prototype,xo=ze.hasOwnProperty,ho=ze.propertyIsEnumerable,yo=te(function(){return arguments}())?te:function(e){return h(e)&&xo.call(e,"callee")&&!ho.call(e,"callee")},N=yo;function go(){return!1}var Ue=go;var He=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ge=He&&typeof module=="object"&&module&&!module.nodeType&&module,bo=Ge&&Ge.exports===He,$e=bo?x.Buffer:void 0,vo=$e?$e.isBuffer:void 0,Ao=vo||Ue,Q=Ao;var Oo="[object Arguments]",jo="[object Array]",wo="[object Boolean]",_o="[object Date]",So="[object Error]",To="[object Function]",Co="[object Map]",Io="[object Number]",Po="[object Object]",Do="[object RegExp]",Bo="[object Set]",Mo="[object String]",Eo="[object WeakMap]",Lo="[object ArrayBuffer]",Ro="[object DataView]",Fo="[object Float32Array]",No="[object Float64Array]",Wo="[object Int8Array]",zo="[object Int16Array]",Uo="[object Int32Array]",Go="[object Uint8Array]",$o="[object Uint8ClampedArray]",Ho="[object Uint16Array]",Vo="[object Uint32Array]",u={};u[Fo]=u[No]=u[Wo]=u[zo]=u[Uo]=u[Go]=u[$o]=u[Ho]=u[Vo]=!0;u[Oo]=u[jo]=u[Lo]=u[wo]=u[Ro]=u[_o]=u[So]=u[To]=u[Co]=u[Io]=u[Po]=u[Do]=u[Bo]=u[Mo]=u[Eo]=!1;function qo(e){return h(e)&&K(e.length)&&!!u[g(e)]}var Ve=qo;function Ko(e){return function(t){return e(t)}}var qe=Ko;var Ke=typeof exports=="object"&&exports&&!exports.nodeType&&exports,W=Ke&&typeof module=="object"&&module&&!module.nodeType&&module,Jo=W&&W.exports===Ke,re=Jo&&$.process,Qo=function(){try{var e=W&&W.require&&W.require("util").types;return e||re&&re.binding&&re.binding("util")}catch(t){}}(),oe=Qo;var Je=oe&&oe.isTypedArray,Zo=Je?qe(Je):Ve,Z=Zo;var Xo=Object.prototype,Yo=Xo.hasOwnProperty;function ko(e,t){var r=F(e),f=!r&&N(e),o=!r&&!f&&Q(e),p=!r&&!f&&!o&&Z(e),n=r||f||o||p,a=n?We(e.length,String):[],s=a.length;for(var i in e)(t||Yo.call(e,i))&&!(n&&(i=="length"||o&&(i=="offset"||i=="parent")||p&&(i=="buffer"||i=="byteLength"||i=="byteOffset")||q(i,s)))&&a.push(i);return a}var Qe=ko;function ea(e,t){return function(r){return e(t(r))}}var Ze=ea;function ta(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Xe=ta;var ra=Object.prototype,oa=ra.hasOwnProperty;function aa(e){if(!m(e))return Xe(e);var t=J(e),r=[];for(var f in e)f=="constructor"&&(t||!oa.call(e,f))||r.push(f);return r}var Ye=aa;function fa(e){return I(e)?Qe(e,!0):Ye(e)}var X=fa;var na=S(Object,"create"),y=na;function sa(){this.__data__=y?y(null):{},this.size=0}var ke=sa;function ia(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var et=ia;var pa="__lodash_hash_undefined__",la=Object.prototype,ua=la.hasOwnProperty;function ma(e){var t=this.__data__;if(y){var r=t[e];return r===pa?void 0:r}return ua.call(t,e)?t[e]:void 0}var tt=ma;var da=Object.prototype,ca=da.hasOwnProperty;function xa(e){var t=this.__data__;return y?t[e]!==void 0:ca.call(t,e)}var rt=xa;var ha="__lodash_hash_undefined__";function ya(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=y&&t===void 0?ha:t,this}var ot=ya;function P(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var f=e[t];this.set(f[0],f[1])}}P.prototype.clear=ke;P.prototype.delete=et;P.prototype.get=tt;P.prototype.has=rt;P.prototype.set=ot;var ae=P;function ga(){this.__data__=[],this.size=0}var at=ga;function ba(e,t){for(var r=e.length;r--;)if(b(e[r][0],t))return r;return-1}var v=ba;var va=Array.prototype,Aa=va.splice;function Oa(e){var t=this.__data__,r=v(t,e);if(r<0)return!1;var f=t.length-1;return r==f?t.pop():Aa.call(t,r,1),--this.size,!0}var ft=Oa;function ja(e){var t=this.__data__,r=v(t,e);return r<0?void 0:t[r][1]}var nt=ja;function wa(e){return v(this.__data__,e)>-1}var st=wa;function _a(e,t){var r=this.__data__,f=v(r,e);return f<0?(++this.size,r.push([e,t])):r[f][1]=t,this}var it=_a;function D(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var f=e[t];this.set(f[0],f[1])}}D.prototype.clear=at;D.prototype.delete=ft;D.prototype.get=nt;D.prototype.has=st;D.prototype.set=it;var A=D;var Sa=S(x,"Map"),Y=Sa;function Ta(){this.size=0,this.__data__={hash:new ae,map:new(Y||A),string:new ae}}var pt=Ta;function Ca(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var lt=Ca;function Ia(e,t){var r=e.__data__;return lt(t)?r[typeof t=="string"?"string":"hash"]:r.map}var O=Ia;function Pa(e){var t=O(this,e).delete(e);return this.size-=t?1:0,t}var ut=Pa;function Da(e){return O(this,e).get(e)}var mt=Da;function Ba(e){return O(this,e).has(e)}var dt=Ba;function Ma(e,t){var r=O(this,e),f=r.size;return r.set(e,t),this.size+=r.size==f?0:1,this}var ct=Ma;function B(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var f=e[t];this.set(f[0],f[1])}}B.prototype.clear=pt;B.prototype.delete=ut;B.prototype.get=mt;B.prototype.has=dt;B.prototype.set=ct;var xt=B;var Ea=Ze(Object.getPrototypeOf,Object),k=Ea;var La="[object Object]",Ra=Function.prototype,Fa=Object.prototype,ht=Ra.toString,Na=Fa.hasOwnProperty,Wa=ht.call(Object);function za(e){if(!h(e)||g(e)!=La)return!1;var t=k(e);if(t===null)return!0;var r=Na.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ht.call(r)==Wa}var yt=za;function Ua(){this.__data__=new A,this.size=0}var gt=Ua;function Ga(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var bt=Ga;function $a(e){return this.__data__.get(e)}var vt=$a;function Ha(e){return this.__data__.has(e)}var At=Ha;var Va=200;function qa(e,t){var r=this.__data__;if(r instanceof A){var f=r.__data__;if(!Y||f.length<Va-1)return f.push([e,t]),this.size=++r.size,this;r=this.__data__=new xt(f)}return r.set(e,t),this.size=r.size,this}var Ot=qa;function M(e){var t=this.__data__=new A(e);this.size=t.size}M.prototype.clear=gt;M.prototype.delete=bt;M.prototype.get=vt;M.prototype.has=At;M.prototype.set=Ot;var jt=M;var Tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wt=Tt&&typeof module=="object"&&module&&!module.nodeType&&module,Ka=wt&&wt.exports===Tt,_t=Ka?x.Buffer:void 0,St=_t?_t.allocUnsafe:void 0;function Ja(e,t){if(t)return e.slice();var r=e.length,f=St?St(r):new e.constructor(r);return e.copy(f),f}var Ct=Ja;var Qa=x.Uint8Array,fe=Qa;function Za(e){var t=new e.constructor(e.byteLength);return new fe(t).set(new fe(e)),t}var It=Za;function Xa(e,t){var r=t?It(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Pt=Xa;function Ya(e){return typeof e.constructor=="function"&&!J(e)?_e(k(e)):{}}var Dt=Ya;function ka(e){return function(t,r,f){for(var o=-1,p=Object(t),n=f(t),a=n.length;a--;){var s=n[e?a:++o];if(r(p[s],s,p)===!1)break}return t}}var Bt=ka;var ef=Bt(),Mt=ef;function tf(e,t,r){(r!==void 0&&!b(e[t],r)||r===void 0&&!(t in e))&&C(e,t,r)}var z=tf;function rf(e){return h(e)&&I(e)}var Et=rf;function of(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var U=of;function af(e){return Me(e,X(e))}var Lt=af;function ff(e,t,r,f,o,p,n){var a=U(e,r),s=U(t,r),i=n.get(s);if(i){z(e,r,i);return}var l=p?p(a,s,r+"",e,t,n):void 0,c=l===void 0;if(c){var d=F(s),j=!d&&Q(s),pe=!d&&!j&&Z(s);l=s,d||j||pe?F(a)?l=a:Et(a)?l=Te(a):j?(c=!1,l=Ct(s,!0)):pe?(c=!1,l=Pt(s,!0)):l=[]:yt(s)||N(s)?(l=a,N(a)?l=Lt(a):(!m(a)||_(a))&&(l=Dt(s))):c=!1}c&&(n.set(s,l),o(l,s,f,p,n),n.delete(s)),z(e,r,l)}var Rt=ff;function Ft(e,t,r,f,o){e!==t&&Mt(t,function(p,n){if(o||(o=new jt),m(p))Rt(e,t,n,r,Ft,f,o);else{var a=f?f(U(e,n),p,n+"",e,t,o):void 0;a===void 0&&(a=p),z(e,n,a)}},X)}var Nt=Ft;var nf=Ne(function(e,t,r){Nt(e,t,r)}),ne=nf;var $t=ce(se(),1);var zt=ce(se(),1);var Zp=(0,zt.default)();function G(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)}var Ut="7.0.13";var Gt=(0,$t.default)(),uf=Ut,Ht={flattenArraysContainingStringsToBeEmpty:!1};function ie(e,t){function r(s){return s.some(i=>typeof i=="string")}let f=ee(ee({},Ht),t),o=Gt(e),p,n,a;if(Array.isArray(o)){if(f.flattenArraysContainingStringsToBeEmpty&&r(o))return[];p=null,n={},a=0;for(let s=0,i=o.length;s<i;s++)G(o[s])&&(n=ne(n,o[s]),p===null?(p=!0,a=s):(o.splice(s,1),s-=1));p!==null&&(o[a]=Gt(n))}return G(o)?Object.keys(o).forEach(s=>{(G(o[s])||Array.isArray(o[s]))&&(o[s]=ie(o[s],f))}):Array.isArray(o)&&o.forEach((s,i)=>{(G(o[i])||Array.isArray(o[i]))&&(o[i]=ie(o[i],f))}),o}return Yt(mf);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name codsen-utils
|
|
13
13
|
* @fileoverview Various utility functions
|
|
14
|
-
* @version 1.
|
|
14
|
+
* @version 1.6.0
|
|
15
15
|
* @author Roy Revelt, Codsen Ltd
|
|
16
16
|
* @license MIT
|
|
17
17
|
* {@link https://codsen.com/os/codsen-utils/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "object-flatten-all-arrays",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.13",
|
|
4
4
|
"description": "Merge and flatten any arrays found in all values within plain objects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arrays",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@types/lodash-es": "^4.17.7",
|
|
75
|
-
"codsen-utils": "^1.
|
|
75
|
+
"codsen-utils": "^1.6.0",
|
|
76
76
|
"lodash-es": "^4.17.21",
|
|
77
77
|
"rfdc": "^1.3.0"
|
|
78
78
|
}
|