You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

array-of-arrays-into-ast

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-of-arrays-into-ast - npm Package Compare versions

Comparing version

to
1.2.0

5

changelog.md

@@ -8,2 +8,6 @@ # Change Log

## [1.2.0] - 2018-05-11
* ✨ Pointed AVA unit tests to ES Modules build, as opposed to previously transpiled CommonJS-one. This means, now unit test code coverage is correct.
## [1.1.0] - 2018-04-29

@@ -20,1 +24,2 @@

[1.1.0]: https://github.com/codsen/array-of-arrays-into-ast/compare/v1.0.2...v1.1.0
[1.2.0]: https://github.com/codsen/array-of-arrays-into-ast/compare/v1.1.2...v1.2.0

36

dist/array-of-arrays-into-ast.esm.js
import checkTypes from 'check-types-mini';
import mergeAdvanced from 'object-merge-advanced';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/* eslint no-console:0 */
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
const isArr = Array.isArray;
var isArr = Array.isArray;
function sortObject(obj) {
return Object.keys(obj).sort().reduce(function (result, key) {
result[key] = obj[key];
return result;
}, {});
return Object.keys(obj)
.sort()
.reduce((result, key) => {
result[key] = obj[key];
return result;
}, {});
}

@@ -19,3 +19,9 @@

if (!isArr(input)) {
throw new Error("array-of-arrays-into-ast: [THROW_ID_01] input must be array. Currently it's of a type " + (typeof input === "undefined" ? "undefined" : _typeof(input)) + " equal to:\n" + JSON.stringify(input, null, 4));
throw new Error(
`array-of-arrays-into-ast: [THROW_ID_01] input must be array. Currently it's of a type ${typeof input} equal to:\n${JSON.stringify(
input,
null,
4
)}`
);
} else if (input.length === 0) {

@@ -25,3 +31,3 @@ return {};

var defaults = {
const defaults = {
dedupe: true

@@ -36,9 +42,9 @@ };

var res = {};
let res = {};
input.forEach(function (arr) {
input.forEach(arr => {
var temp = null;
for (var i = arr.length; i--;) {
temp = _defineProperty({}, arr[i], [temp]); // uses ES6 computed property names
let temp = null;
for (let i = arr.length; i--; ) {
temp = { [arr[i]]: [temp] }; // uses ES6 computed property names
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer#Computed_property_names

@@ -45,0 +51,0 @@ }

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.arrayOfArraysIntoAst=e()}(this,function(){"use strict";var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=e(function(e,n){var o,i,a,u,c,s,f,l,y,p,h,b,g,d,v,_,m,w,j,O;e.exports=(o="function"==typeof Promise,i="object"===("undefined"==typeof self?"undefined":r(self))?self:t,a="undefined"!=typeof Symbol,u="undefined"!=typeof Map,c="undefined"!=typeof Set,s="undefined"!=typeof WeakMap,f="undefined"!=typeof WeakSet,l="undefined"!=typeof DataView,y=a&&void 0!==Symbol.iterator,p=a&&void 0!==Symbol.toStringTag,h=c&&"function"==typeof Set.prototype.entries,b=u&&"function"==typeof Map.prototype.entries,g=h&&Object.getPrototypeOf((new Set).entries()),d=b&&Object.getPrototypeOf((new Map).entries()),v=y&&"function"==typeof Array.prototype[Symbol.iterator],_=v&&Object.getPrototypeOf([][Symbol.iterator]()),m=y&&"function"==typeof String.prototype[Symbol.iterator],w=m&&Object.getPrototypeOf(""[Symbol.iterator]()),j=8,O=-1,function(t){var e=void 0===t?"undefined":r(t);if("object"!==e)return e;if(null===t)return"null";if(t===i)return"global";if(Array.isArray(t)&&(!1===p||!(Symbol.toStringTag in t)))return"Array";if("object"===("undefined"==typeof window?"undefined":r(window))&&null!==window){if("object"===r(window.location)&&t===window.location)return"Location";if("object"===r(window.document)&&t===window.document)return"Document";if("object"===r(window.navigator)){if("object"===r(window.navigator.mimeTypes)&&t===window.navigator.mimeTypes)return"MimeTypeArray";if("object"===r(window.navigator.plugins)&&t===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"===r(window.HTMLElement))&&t instanceof window.HTMLElement){if("BLOCKQUOTE"===t.tagName)return"HTMLQuoteElement";if("TD"===t.tagName)return"HTMLTableDataCellElement";if("TH"===t.tagName)return"HTMLTableHeaderCellElement"}}var n=p&&t[Symbol.toStringTag];if("string"==typeof n)return n;var a=Object.getPrototypeOf(t);return a===RegExp.prototype?"RegExp":a===Date.prototype?"Date":o&&a===Promise.prototype?"Promise":c&&a===Set.prototype?"Set":u&&a===Map.prototype?"Map":f&&a===WeakSet.prototype?"WeakSet":s&&a===WeakMap.prototype?"WeakMap":l&&a===DataView.prototype?"DataView":u&&a===d?"Map Iterator":c&&a===g?"Set Iterator":v&&a===_?"Array Iterator":m&&a===w?"String Iterator":null===a?"Object":Object.prototype.toString.call(t).slice(j,O)})});function o(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,a,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}function i(t,e,r,n){for(var o=r-1,i=t.length;++o<i;)if(n(t[o],e))return o;return-1}function a(t){return t!=t}var u=Array.prototype.splice;function c(t,e,r,n){var a,c=n?i:o,s=-1,f=e.length,l=t;for(t===e&&(e=function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(e)),r&&(l=function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(t,(a=r,function(t){return a(t)})));++s<f;)for(var y=0,p=e[s],h=r?r(p):p;(y=c(l,h,y,n))>-1;)l!==t&&u.call(l,y,1),u.call(t,y,1);return t}var s=function(t,e){return t&&t.length&&e&&e.length?c(t,e):t},f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l="__lodash_hash_undefined__",y=9007199254740991,p="[object Function]",h="[object GeneratorFunction]",b=/^\[object .+?Constructor\]$/,g="object"==f(t)&&t&&t.Object===Object&&t,d="object"==("undefined"==typeof self?"undefined":f(self))&&self&&self.Object===Object&&self,v=g||d||Function("return this")();function _(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,n){var o=t.length,i=r+(n?1:-1);for(;n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,j,r);var n=r-1,o=t.length;for(;++n<o;)if(t[n]===e)return n;return-1}(t,e,0)>-1}function m(t,e,r){for(var n=-1,o=t?t.length:0;++n<o;)if(r(e,t[n]))return!0;return!1}function w(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function j(t){return t!=t}function O(t){return function(e){return t(e)}}function S(t,e){return t.has(e)}var A,E,T,M=Array.prototype,k=Function.prototype,I=Object.prototype,W=v["__core-js_shared__"],N=(A=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",x=k.toString,K=I.hasOwnProperty,P=I.toString,D=RegExp("^"+x.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=M.splice,H=Math.max,V=Math.min,F=Q(v,"Map"),$=Q(Object,"create");function C(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function B(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function L(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function G(t){var e=-1,r=t?t.length:0;for(this.__data__=new L;++e<r;)this.add(t[e])}function J(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function U(t){return!(!Y(t)||N&&N in t)&&(X(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?D:b).test(function(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function q(t){return function(t){return function(t){return!!t&&"object"==(void 0===t?"undefined":f(t))}(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=y}(t.length)&&!X(t)}(t)}(t)?t:[]}function z(t,e){var r,n,o=t.__data__;return("string"==(n=void 0===(r=e)?"undefined":f(r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Q(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return U(r)?r:void 0}function X(t){var e=Y(t)?P.call(t):"";return e==p||e==h}function Y(t){var e=void 0===t?"undefined":f(t);return!!t&&("object"==e||"function"==e)}C.prototype.clear=function(){this.__data__=$?$(null):{}},C.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},C.prototype.get=function(t){var e=this.__data__;if($){var r=e[t];return r===l?void 0:r}return K.call(e,t)?e[t]:void 0},C.prototype.has=function(t){var e=this.__data__;return $?void 0!==e[t]:K.call(e,t)},C.prototype.set=function(t,e){return this.__data__[t]=$&&void 0===e?l:e,this},B.prototype.clear=function(){this.__data__=[]},B.prototype.delete=function(t){var e=this.__data__,r=J(e,t);return!(r<0||(r==e.length-1?e.pop():R.call(e,r,1),0))},B.prototype.get=function(t){var e=this.__data__,r=J(e,t);return r<0?void 0:e[r][1]},B.prototype.has=function(t){return J(this.__data__,t)>-1},B.prototype.set=function(t,e){var r=this.__data__,n=J(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},L.prototype.clear=function(){this.__data__={hash:new C,map:new(F||B),string:new C}},L.prototype.delete=function(t){return z(this,t).delete(t)},L.prototype.get=function(t){return z(this,t).get(t)},L.prototype.has=function(t){return z(this,t).has(t)},L.prototype.set=function(t,e){return z(this,t).set(t,e),this},G.prototype.add=G.prototype.push=function(t){return this.__data__.set(t,l),this},G.prototype.has=function(t){return this.__data__.has(t)};var Z=(E=function(t){var e=w(t,q);return e.length&&e[0]===t[0]?function(t,e,r){for(var n=r?m:_,o=t[0].length,i=t.length,a=i,u=Array(i),c=1/0,s=[];a--;){var f=t[a];a&&e&&(f=w(f,O(e))),c=V(f.length,c),u[a]=!r&&(e||o>=120&&f.length>=120)?new G(a&&f):void 0}f=t[0];var l=-1,y=u[0];t:for(;++l<o&&s.length<c;){var p=f[l],h=e?e(p):p;if(p=r||0!==p?p:0,!(y?S(y,h):n(s,h,r))){for(a=i;--a;){var b=u[a];if(!(b?S(b,h):n(t[a],h,r)))continue t}y&&y.push(h),s.push(p)}}return s}(e):[]},T=H(void 0===T?E.length-1:T,0),function(){for(var t=arguments,e=-1,r=H(t.length-T,0),n=Array(r);++e<r;)n[e]=t[T+e];e=-1;for(var o=Array(T+1);++e<T;)o[e]=t[e];return o[T]=n,function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(E,this,o)});function tt(t){return"string"==typeof t?t.length>0?[t]:[]:t}function et(t,e,r){function o(t){return null!=t}function i(t){return"boolean"===n(t)}function a(t){return"string"===n(t)}function u(t){return"Object"===n(t)}var c=["any","anything","every","everything","all","whatever","whatevs"],f=Array.isArray;if(0===arguments.length)throw new Error("check-types-mini: [THROW_ID_01] Missing all arguments!");if(1===arguments.length)throw new Error("check-types-mini: [THROW_ID_02] Missing second argument!");var l=u(e)?e:{},y={ignoreKeys:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini",optsVarName:"opts"},p=void 0;if(!a((p=o(r)&&u(r)?Object.assign({},y,r):Object.assign({},y)).msg))throw new Error("check-types-mini: [THROW_ID_03] opts.msg must be string! Currently it's: "+n(p.msg)+", equal to "+JSON.stringify(p.msg,null,4));if(p.msg=p.msg.trim(),":"===p.msg[p.msg.length-1]&&(p.msg=p.msg.slice(0,p.msg.length-1)),!a(p.optsVarName))throw new Error("check-types-mini: [THROW_ID_04] opts.optsVarName must be string! Currently it's: "+n(p.optsVarName)+", equal to "+JSON.stringify(p.optsVarName,null,4));if(p.ignoreKeys=tt(p.ignoreKeys),p.acceptArraysIgnore=tt(p.acceptArraysIgnore),!f(p.ignoreKeys))throw new TypeError("check-types-mini: [THROW_ID_05] opts.ignoreKeys should be an array, currently it's: "+n(p.ignoreKeys));if(!i(p.acceptArrays))throw new TypeError("check-types-mini: [THROW_ID_06] opts.acceptArrays should be a Boolean, currently it's: "+n(p.acceptArrays));if(!f(p.acceptArraysIgnore))throw new TypeError("check-types-mini: [THROW_ID_07] opts.acceptArraysIgnore should be an array, currently it's: "+n(p.acceptArraysIgnore));if(!i(p.enforceStrictKeyset))throw new TypeError("check-types-mini: [THROW_ID_08] opts.enforceStrictKeyset should be a Boolean, currently it's: "+n(p.enforceStrictKeyset));if(Object.keys(p.schema).forEach(function(t){f(p.schema[t])||(p.schema[t]=[p.schema[t]]),p.schema[t]=p.schema[t].map(String).map(function(t){return t.toLowerCase()}).map(function(t){return t.trim()})}),p.enforceStrictKeyset)if(o(p.schema)&&Object.keys(p.schema).length>0){if(0!==s(Object.keys(t),Object.keys(l).concat(Object.keys(p.schema))).length)throw new TypeError(p.msg+": "+p.optsVarName+".enforceStrictKeyset is on and the following keys are not covered by schema and/or reference objects: "+JSON.stringify(s(Object.keys(t),Object.keys(l).concat(Object.keys(p.schema))),null,4))}else{if(!(o(l)&&Object.keys(l).length>0))throw new TypeError(p.msg+": Both "+p.optsVarName+".schema and reference objects are missing! We don't have anything to match the keys as you requested via opts.enforceStrictKeyset!");if(0!==s(Object.keys(t),Object.keys(l)).length)throw new TypeError(p.msg+": The input object has keys that are not covered by reference object: "+JSON.stringify(s(Object.keys(t),Object.keys(l)),null,4));if(0!==s(Object.keys(l),Object.keys(t)).length)throw new TypeError(p.msg+": The reference object has keys that are not present in the input object: "+JSON.stringify(s(Object.keys(l),Object.keys(t)),null,4))}Object.keys(t).forEach(function(e){if(o(p.schema)&&Object.prototype.hasOwnProperty.call(p.schema,e)){if(p.schema[e]=tt(p.schema[e]).map(String).map(function(t){return t.toLowerCase()}),!(Z(p.schema[e],c).length||(!0===t[e]||!1===t[e]||p.schema[e].includes(n(t[e]).toLowerCase()))&&(!0!==t[e]&&!1!==t[e]||p.schema[e].includes(String(t[e]))||p.schema[e].includes("boolean")))){if(!f(t[e])||!p.acceptArrays)throw new TypeError(p.msg+": "+p.optsVarName+"."+e+" was customised to "+JSON.stringify(t[e],null,4)+" which is not among the allowed types in schema ("+p.schema[e]+") but "+n(t[e]));for(var r=0,i=t[e].length;r<i;r++)if(!p.schema[e].includes(n(t[e][r]).toLowerCase()))throw new TypeError(p.msg+": "+p.optsVarName+"."+e+" is of type "+n(t[e][r]).toLowerCase()+", but only the following are allowed in "+p.optsVarName+".schema: "+p.schema[e])}}else if(o(l)&&Object.prototype.hasOwnProperty.call(l,e)&&n(t[e])!==n(l[e])&&!p.ignoreKeys.includes(e)){if(!p.acceptArrays||!f(t[e])||p.acceptArraysIgnore.includes(e))throw new TypeError(p.msg+": "+p.optsVarName+"."+e+" was customised to "+JSON.stringify(t[e],null,4)+" which is not "+n(l[e])+" but "+n(t[e]));if(!t[e].every(function(t){return n(t)===n(l[e])}))throw new TypeError(p.msg+": "+p.optsVarName+"."+e+" was customised to be array, but not all of its elements are "+n(l[e])+"-type")}})}var rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt="[object Object]";var ot=Function.prototype,it=Object.prototype,at=ot.toString,ut=it.hasOwnProperty,ct=at.call(Object),st=it.toString,ft=function(t,e){return function(r){return t(e(r))}}(Object.getPrototypeOf,Object);var lt=function(t){if(!function(t){return!!t&&"object"==(void 0===t?"undefined":rt(t))}(t)||st.call(t)!=nt||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=ft(t);if(null===e)return!0;var r=ut.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&at.call(r)==ct},yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt=e(function(e,r){var n=200,o="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",u="[object Boolean]",c="[object Date]",s="[object Function]",f="[object GeneratorFunction]",l="[object Map]",y="[object Number]",p="[object Object]",h="[object RegExp]",b="[object Set]",g="[object String]",d="[object Symbol]",v="[object ArrayBuffer]",_="[object DataView]",m="[object Float32Array]",w="[object Float64Array]",j="[object Int8Array]",O="[object Int16Array]",S="[object Int32Array]",A="[object Uint8Array]",E="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]",k=/\w*$/,I=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,N={};N[a]=N["[object Array]"]=N[v]=N[_]=N[u]=N[c]=N[m]=N[w]=N[j]=N[O]=N[S]=N[l]=N[y]=N[p]=N[h]=N[b]=N[g]=N[d]=N[A]=N[E]=N[T]=N[M]=!0,N["[object Error]"]=N[s]=N["[object WeakMap]"]=!1;var x="object"==yt(t)&&t&&t.Object===Object&&t,K="object"==("undefined"==typeof self?"undefined":yt(self))&&self&&self.Object===Object&&self,P=x||K||Function("return this")(),D=r&&!r.nodeType&&r,R=D&&e&&!e.nodeType&&e,H=R&&R.exports===D;function V(t,e){return t.set(e[0],e[1]),t}function F(t,e){return t.add(e),t}function $(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function C(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function B(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function L(t,e){return function(r){return t(e(r))}}function G(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var J,U=Array.prototype,q=Function.prototype,z=Object.prototype,Q=P["__core-js_shared__"],X=(J=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"",Y=q.toString,Z=z.hasOwnProperty,tt=z.toString,et=RegExp("^"+Y.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=H?P.Buffer:void 0,nt=P.Symbol,ot=P.Uint8Array,it=L(Object.getPrototypeOf,Object),at=Object.create,ut=z.propertyIsEnumerable,ct=U.splice,st=Object.getOwnPropertySymbols,ft=rt?rt.isBuffer:void 0,lt=L(Object.keys,Object),pt=Ht(P,"DataView"),ht=Ht(P,"Map"),bt=Ht(P,"Promise"),gt=Ht(P,"Set"),dt=Ht(P,"WeakMap"),vt=Ht(Object,"create"),_t=Bt(pt),mt=Bt(ht),wt=Bt(bt),jt=Bt(gt),Ot=Bt(dt),St=nt?nt.prototype:void 0,At=St?St.valueOf:void 0;function Et(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Tt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Mt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function kt(t){this.__data__=new Tt(t)}function It(t,e){var r=Gt(t)||function(t){return function(t){return function(t){return!!t&&"object"==(void 0===t?"undefined":yt(t))}(t)&&Jt(t)}(t)&&Z.call(t,"callee")&&(!ut.call(t,"callee")||tt.call(t)==a)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!Z.call(t,i)||o&&("length"==i||$t(i,n))||r.push(i);return r}function Wt(t,e,r){var n=t[e];Z.call(t,e)&&Lt(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Nt(t,e){for(var r=t.length;r--;)if(Lt(t[r][0],e))return r;return-1}function xt(t,e,r,n,o,i,I){var W;if(n&&(W=i?n(t,o,i,I):n(t)),void 0!==W)return W;if(!zt(t))return t;var x=Gt(t);if(x){if(W=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&Z.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!e)return function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(t,W)}else{var K=Ft(t),P=K==s||K==f;if(Ut(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if(K==p||K==a||P&&!i){if(C(t))return i?t:{};if(W=function(t){return"function"!=typeof t.constructor||Ct(t)?{}:(e=it(t),zt(e)?at(e):{});var e}(P?{}:t),!e)return function(t,e){return Dt(t,Vt(t),e)}(t,function(t,e){return t&&Dt(e,Qt(e),t)}(W,t))}else{if(!N[K])return i?t:{};W=function(t,e,r,n){var o=t.constructor;switch(e){case v:return Pt(t);case u:case c:return new o(+t);case _:return function(t,e){var r=e?Pt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case m:case w:case j:case O:case S:case A:case E:case T:case M:return function(t,e){var r=e?Pt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case l:return function(t,e,r){return $(e?r(B(t),!0):B(t),V,new t.constructor)}(t,n,r);case y:case g:return new o(t);case h:return(s=new(a=t).constructor(a.source,k.exec(a))).lastIndex=a.lastIndex,s;case b:return function(t,e,r){return $(e?r(G(t),!0):G(t),F,new t.constructor)}(t,n,r);case d:return i=t,At?Object(At.call(i)):{}}var i;var a,s}(t,K,xt,e)}}I||(I=new kt);var D=I.get(t);if(D)return D;if(I.set(t,W),!x)var R=r?function(t){return function(t,e,r){var n=e(t);return Gt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Qt,Vt)}(t):Qt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(R||t,function(o,i){R&&(o=t[i=o]),Wt(W,i,xt(o,e,r,n,i,t,I))}),W}function Kt(t){return!(!zt(t)||X&&X in t)&&(qt(t)||C(t)?et:I).test(Bt(t))}function Pt(t){var e=new t.constructor(t.byteLength);return new ot(e).set(new ot(t)),e}function Dt(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var a=e[o],u=n?n(r[a],t[a],a,r,t):void 0;Wt(r,a,void 0===u?t[a]:u)}return r}function Rt(t,e){var r,n,o=t.__data__;return("string"==(n=void 0===(r=e)?"undefined":yt(r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Ht(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Kt(r)?r:void 0}Et.prototype.clear=function(){this.__data__=vt?vt(null):{}},Et.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Et.prototype.get=function(t){var e=this.__data__;if(vt){var r=e[t];return r===o?void 0:r}return Z.call(e,t)?e[t]:void 0},Et.prototype.has=function(t){var e=this.__data__;return vt?void 0!==e[t]:Z.call(e,t)},Et.prototype.set=function(t,e){return this.__data__[t]=vt&&void 0===e?o:e,this},Tt.prototype.clear=function(){this.__data__=[]},Tt.prototype.delete=function(t){var e=this.__data__,r=Nt(e,t);return!(r<0||(r==e.length-1?e.pop():ct.call(e,r,1),0))},Tt.prototype.get=function(t){var e=this.__data__,r=Nt(e,t);return r<0?void 0:e[r][1]},Tt.prototype.has=function(t){return Nt(this.__data__,t)>-1},Tt.prototype.set=function(t,e){var r=this.__data__,n=Nt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Mt.prototype.clear=function(){this.__data__={hash:new Et,map:new(ht||Tt),string:new Et}},Mt.prototype.delete=function(t){return Rt(this,t).delete(t)},Mt.prototype.get=function(t){return Rt(this,t).get(t)},Mt.prototype.has=function(t){return Rt(this,t).has(t)},Mt.prototype.set=function(t,e){return Rt(this,t).set(t,e),this},kt.prototype.clear=function(){this.__data__=new Tt},kt.prototype.delete=function(t){return this.__data__.delete(t)},kt.prototype.get=function(t){return this.__data__.get(t)},kt.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Tt){var o=r.__data__;if(!ht||o.length<n-1)return o.push([t,e]),this;r=this.__data__=new Mt(o)}return r.set(t,e),this};var Vt=st?L(st,Object):function(){return[]},Ft=function(t){return tt.call(t)};function $t(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||W.test(t))&&t>-1&&t%1==0&&t<e}function Ct(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||z)}function Bt(t){if(null!=t){try{return Y.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Lt(t,e){return t===e||t!=t&&e!=e}(pt&&Ft(new pt(new ArrayBuffer(1)))!=_||ht&&Ft(new ht)!=l||bt&&"[object Promise]"!=Ft(bt.resolve())||gt&&Ft(new gt)!=b||dt&&"[object WeakMap]"!=Ft(new dt))&&(Ft=function(t){var e=tt.call(t),r=e==p?t.constructor:void 0,n=r?Bt(r):void 0;if(n)switch(n){case _t:return _;case mt:return l;case wt:return"[object Promise]";case jt:return b;case Ot:return"[object WeakMap]"}return e});var Gt=Array.isArray;function Jt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}(t.length)&&!qt(t)}var Ut=ft||function(){return!1};function qt(t){var e=zt(t)?tt.call(t):"";return e==s||e==f}function zt(t){var e=void 0===t?"undefined":yt(t);return!!t&&("object"==e||"function"==e)}function Qt(t){return Jt(t)?It(t):function(t){if(!Ct(t))return lt(t);var e=[];for(var r in Object(t))Z.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}e.exports=function(t){return xt(t,!0,!0)}}),ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt="function"==typeof Symbol&&"symbol"===ht(Symbol.iterator)?function(t){return void 0===t?"undefined":ht(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":ht(t)},gt=require("matcher"),dt=Array.isArray;function vt(t,e,r){function n(t){return"string"==typeof t}var o=Object.assign({},{arrayVsArrayAllMustBeFound:"any"},r);if(0===arguments.length)throw new Error("array-includes-with-glob/arrayIncludesWithGlob(): [THROW_ID_01] all inputs missing!");if(1===arguments.length)throw new Error("array-includes-with-glob/arrayIncludesWithGlob(): [THROW_ID_02] second argument missing!");if(!dt(t)){if(!n(t))throw new Error("array-includes-with-glob/arrayIncludesWithGlob(): [THROW_ID_03] first argument must be an array! It was given as "+(void 0===t?"undefined":bt(t)));t=[t]}if(!n(e)&&!dt(e))throw new Error("array-includes-with-glob/arrayIncludesWithGlob(): [THROW_ID_04] second argument must be a string or array of strings! It was given as "+(void 0===e?"undefined":bt(e)));if("any"!==o.arrayVsArrayAllMustBeFound&&"all"!==o.arrayVsArrayAllMustBeFound)throw new Error("array-includes-with-glob/arrayIncludesWithGlob(): [THROW_ID_05] opts.arrayVsArrayAllMustBeFound was customised to an unrecognised value, "+o.arrayVsArrayAllMustBeFound+'. It must be equal to either "any" or "all".');if(0===t.length)return!1;var i=t.filter(function(t){return null!=t});return 0!==i.length&&(n(e)?i.some(function(t){return gt.isMatch(t,e,{caseSensitive:!0})}):"any"===o.arrayVsArrayAllMustBeFound?e.some(function(t){return i.some(function(e){return gt.isMatch(e,t,{caseSensitive:!0})})}):e.every(function(t){return i.some(function(e){return gt.isMatch(e,t,{caseSensitive:!0})})}))}var _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt=1/0,wt=9007199254740991,jt=1.7976931348623157e308,Ot=NaN,St="[object Arguments]",At="[object Function]",Et="[object GeneratorFunction]",Tt="[object String]",Mt="[object Symbol]",kt=/^\s+|\s+$/g,It=/^[-+]0x[0-9a-f]+$/i,Wt=/^0b[01]+$/i,Nt=/^0o[0-7]+$/i,xt=/^(?:0|[1-9]\d*)$/,Kt=parseInt;function Pt(t){return t!=t}function Dt(t,e){return function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(e,function(e){return t[e]})}var Rt=Object.prototype,Ht=Rt.hasOwnProperty,Vt=Rt.toString,Ft=Rt.propertyIsEnumerable,$t=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),Ct=Math.max;function Bt(t,e){var r=Jt(t)||function(t){return function(t){return zt(t)&&Ut(t)}(t)&&Ht.call(t,"callee")&&(!Ft.call(t,"callee")||Vt.call(t)==St)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!Ht.call(t,i)||o&&("length"==i||Gt(i,n))||r.push(i);return r}function Lt(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||Rt,e!==n)return $t(t);var e,r,n,o=[];for(var i in Object(t))Ht.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Gt(t,e){return!!(e=null==e?wt:e)&&("number"==typeof t||xt.test(t))&&t>-1&&t%1==0&&t<e}var Jt=Array.isArray;function Ut(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=wt}(t.length)&&!function(t){var e=qt(t)?Vt.call(t):"";return e==At||e==Et}(t)}function qt(t){var e=void 0===t?"undefined":_t(t);return!!t&&("object"==e||"function"==e)}function zt(t){return!!t&&"object"==(void 0===t?"undefined":_t(t))}var Qt=function(t,e,r,n){var o;t=Ut(t)?t:(o=t)?Dt(o,function(t){return Ut(t)?Bt(t):Lt(t)}(o)):[],r=r&&!n?function(t){var e=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==(void 0===t?"undefined":_t(t))||zt(t)&&Vt.call(t)==Mt}(t))return Ot;if(qt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=qt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(kt,"");var r=Wt.test(t);return r||Nt.test(t)?Kt(t.slice(2),r?2:8):It.test(t)?Ot:+t}(t))===mt||t===-mt){var e=t<0?-1:1;return e*jt}return t==t?t:0}(t),r=e%1;return e==e?r?e-r:e:0}(r):0;var i=t.length;return r<0&&(r=Ct(i+r,0)),function(t){return"string"==typeof t||!Jt(t)&&zt(t)&&Vt.call(t)==Tt}(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&function(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,Pt,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,r)>-1},Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yt=200,Zt="__lodash_hash_undefined__",te="[object Function]",ee="[object GeneratorFunction]",re=/^\[object .+?Constructor\]$/,ne="object"==Xt(t)&&t&&t.Object===Object&&t,oe="object"==("undefined"==typeof self?"undefined":Xt(self))&&self&&self.Object===Object&&self,ie=ne||oe||Function("return this")();function ae(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,n){var o=t.length,i=r+(n?1:-1);for(;n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,ce,r);var n=r-1,o=t.length;for(;++n<o;)if(t[n]===e)return n;return-1}(t,e,0)>-1}function ue(t,e,r){for(var n=-1,o=t?t.length:0;++n<o;)if(r(e,t[n]))return!0;return!1}function ce(t){return t!=t}function se(t,e){return t.has(e)}function fe(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var le=Array.prototype,ye=Function.prototype,pe=Object.prototype,he=ie["__core-js_shared__"],be=function(){var t=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ge=ye.toString,de=pe.hasOwnProperty,ve=pe.toString,_e=RegExp("^"+ge.call(de).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=le.splice,we=Ne(ie,"Map"),je=Ne(ie,"Set"),Oe=Ne(Object,"create");function Se(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ae(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ee(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Te(t){var e=-1,r=t?t.length:0;for(this.__data__=new Ee;++e<r;)this.add(t[e])}function Me(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function ke(t){return!(!xe(t)||be&&be in t)&&(function(t){var e=xe(t)?ve.call(t):"";return e==te||e==ee}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?_e:re).test(function(t){if(null!=t){try{return ge.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}Se.prototype.clear=function(){this.__data__=Oe?Oe(null):{}},Se.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Se.prototype.get=function(t){var e=this.__data__;if(Oe){var r=e[t];return r===Zt?void 0:r}return de.call(e,t)?e[t]:void 0},Se.prototype.has=function(t){var e=this.__data__;return Oe?void 0!==e[t]:de.call(e,t)},Se.prototype.set=function(t,e){return this.__data__[t]=Oe&&void 0===e?Zt:e,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(t){var e=this.__data__,r=Me(e,t);return!(r<0||(r==e.length-1?e.pop():me.call(e,r,1),0))},Ae.prototype.get=function(t){var e=this.__data__,r=Me(e,t);return r<0?void 0:e[r][1]},Ae.prototype.has=function(t){return Me(this.__data__,t)>-1},Ae.prototype.set=function(t,e){var r=this.__data__,n=Me(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Ee.prototype.clear=function(){this.__data__={hash:new Se,map:new(we||Ae),string:new Se}},Ee.prototype.delete=function(t){return We(this,t).delete(t)},Ee.prototype.get=function(t){return We(this,t).get(t)},Ee.prototype.has=function(t){return We(this,t).has(t)},Ee.prototype.set=function(t,e){return We(this,t).set(t,e),this},Te.prototype.add=Te.prototype.push=function(t){return this.__data__.set(t,Zt),this},Te.prototype.has=function(t){return this.__data__.has(t)};var Ie=je&&1/fe(new je([,-0]))[1]==1/0?function(t){return new je(t)}:function(){};function We(t,e){var r,n,o=t.__data__;return("string"==(n=void 0===(r=e)?"undefined":Xt(r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Ne(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return ke(r)?r:void 0}function xe(t){var e=void 0===t?"undefined":Xt(t);return!!t&&("object"==e||"function"==e)}var Ke=function(t){return t&&t.length?function(t,e,r){var n=-1,o=ae,i=t.length,a=!0,u=[],c=u;if(r)a=!1,o=ue;else if(i>=Yt){var s=e?null:Ie(t);if(s)return fe(s);a=!1,o=se,c=new Te}else c=e?[]:u;t:for(;++n<i;){var f=t[n],l=e?e(f):f;if(f=r||0!==f?f:0,a&&l==l){for(var y=c.length;y--;)if(c[y]===l)continue t;e&&c.push(l),u.push(f)}else o(c,l,r)||(c!==u&&c.push(l),u.push(f))}return u}(t):[]};function Pe(t){return 0!==arguments.length&&void 0!==t&&(e=t,Array.isArray(e)||function(t){return"string"==typeof t}(t)?t.length>0:lt(t)?Object.keys(t).length>0:!!function(t){return"number"==typeof t}(t));var e}var De=function(t,e,r){if(!Array.isArray(t))throw new TypeError(String(t)+" is not an array. The first argument of array-includes-all must be an array.");if(!Array.isArray(e))throw new TypeError(String(e)+" is not an array. The second argument of array-includes-all must be an array.");if(0===e.length)throw new RangeError("The second argument of array-includes-all must include at least one value, but recieved an empty array.");return 0!==t.length&&e.every(function(e){return t.includes(e,r)})};function Re(t){return Array.isArray(t)}function He(t){return"string"==typeof t}function Ve(t){return"boolean"==typeof t}function Fe(t){return!!t&&t.some(function(t){return"string"==typeof t})}var $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var Ce=Array.isArray;return function(t,e){if(!Ce(t))throw new Error("array-of-arrays-into-ast: [THROW_ID_01] input must be array. Currently it's of a type "+(void 0===t?"undefined":$e(t))+" equal to:\n"+JSON.stringify(t,null,4));if(0===t.length)return{};var r={dedupe:!0};et(e=Object.assign({},r,e),r,{msg:"array-of-arrays-into-ast: [THROW_ID_02*]",optsVarName:"opts"});var n,o={};return t.forEach(function(t){for(var r,n,i,a=null,u=t.length;u--;)r={},n=t[u],i=[a],n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,a=r;o=function t(e,r,n){if(0===arguments.length)throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_01] Both inputs are missing");if(null!=n&&!lt(n))throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_02] Options object, the third argument, must be a plain object");var o={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},i=Object.assign(pt(o),n);if(i.ignoreKeys=tt(i.ignoreKeys),i.hardMergeKeys=tt(i.hardMergeKeys),et(i,o,{msg:"object-merge-advanced/mergeAdvanced(): [THROW_ID_06*]",schema:{cb:["null","undefined","false","function"]}}),i.hardMergeKeys.includes("*")&&(i.hardMergeEverything=!0),i.ignoreKeys.includes("*")&&(i.ignoreEverything=!0),i.useNullAsExplicitFalse&&(null===e||null===r))return i.cb?i.cb(e,r,null):null;var a=Re(e)||lt(e)?pt(e):e,u=Re(r)||lt(r)?pt(r):r,c=void 0;i.ignoreEverything?c=a:i.hardMergeEverything&&(c=u);var s,f,l=i.hardMergeEverything||i.ignoreEverything;if(!Re(a)){if(lt(a)){if(Pe(a)){if(Re(u)){if(Pe(u)){var y=l?c:u;return i.cb?i.cb(a,u,y):y}var p=l?c:a;return i.cb?i.cb(a,u,p):p}if(lt(u))return Object.keys(u).forEach(function(e){a.hasOwnProperty(e)?vt(e,i.ignoreKeys)?a[e]=t(a[e],u[e],Object.assign({},i,{ignoreEverything:!0})):vt(e,i.hardMergeKeys)?a[e]=t(a[e],u[e],Object.assign({},i,{hardMergeEverything:!0})):vt(e,i.hardArrayConcatKeys)?a[e]=t(a[e],u[e],Object.assign({},i,{hardArrayConcat:!0})):a[e]=t(a[e],u[e],i):a[e]=u[e]}),a;var h=l?c:a;return i.cb?i.cb(a,u,h):h}if(Re(u)||lt(u)||Pe(u)){var b=l?c:u;return i.cb?i.cb(a,u,b):b}var g=l?c:a;return i.cb?i.cb(a,u,g):g}if(He(a)){if(Pe(a)){if((Re(u)||lt(u)||He(u))&&Pe(u)){var d=l?c:u;return i.cb?i.cb(a,u,d):d}var v=l?c:a;return i.cb?i.cb(a,u,v):v}if(null!=u&&!Ve(u)){var _=l?c:u;return i.cb?i.cb(a,u,_):_}var m=l?c:a;return i.cb?i.cb(a,u,m):m}if("number"==typeof a){if(Pe(u)){var w=l?c:u;return i.cb?i.cb(a,u,w):w}var j=l?c:a;return i.cb?i.cb(a,u,j):j}if(Ve(a)){if(Ve(u)){if(i.mergeBoolsUsingOrNotAnd){var O=l?c:a||u;return i.cb?i.cb(a,u,O):O}var S=l?c:a&&u;return i.cb?i.cb(a,u,S):S}if(null!=u){var A=l?c:u;return i.cb?i.cb(a,u,A):A}var E=l?c:a;return i.cb?i.cb(a,u,E):E}if(null===a){if(null!=u){var T=l?c:u;return i.cb?i.cb(a,u,T):T}var M=l?c:a;return i.cb?i.cb(a,u,M):M}var k=l?c:u;return i.cb?i.cb(a,u,k):k}if(!Pe(a)){if(Pe(u)){var I=l?c:u;return i.cb?i.cb(a,u,I):I}var W=l?c:a;return i.cb?i.cb(a,u,W):W}if(!Re(u)||!Pe(u)){var N=l?c:a;return i.cb?i.cb(a,u,N):N}if(i.mergeArraysContainingStringsToBeEmpty&&(Fe(a)||Fe(u))){var x=l?c:[];return i.cb?i.cb(a,u,x):x}if(i.hardArrayConcat){var K=l?c:a.concat(u);return i.cb?i.cb(a,u,K):K}for(var P=[],D=0,R=Math.max(a.length,u.length);D<R;D++)lt(a[D])&&lt(u[D])&&(i.mergeObjectsOnlyWhenKeysetMatches&&(s=a[D],f=u[D],0===Object.keys(s).length||0===Object.keys(f).length||De(Object.keys(s),Object.keys(f))||De(Object.keys(f),Object.keys(s)))||!i.mergeObjectsOnlyWhenKeysetMatches)?P.push(t(a[D],u[D],i)):!i.oneToManyArrayObjectMerge||1!==a.length&&1!==u.length?i.concatInsteadOfMerging?(D<a.length&&P.push(a[D]),D<u.length&&P.push(u[D])):(D<a.length&&P.push(a[D]),D<u.length&&!Qt(a,u[D])&&P.push(u[D])):P.push(1===a.length?t(a[0],u[D],i):t(a[D],u[0],i));i.dedupeStringsInArrayValues&&P.every(function(t){return He(t)})&&(P=Ke(P).sort()),a=pt(P);var H=l?c:a;return i.cb?i.cb(a,u,H):H}(o,a,{concatInsteadOfMerging:!e.dedupe})}),n=o,Object.keys(n).sort().reduce(function(t,e){return t[e]=n[e],t},{})}});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.arrayOfArraysIntoAst=e()}(this,function(){"use strict";var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=e(function(e,n){var o,i,a,u,c,s,f,l,y,p,h,b,g,d,v,_,m,w,j,O;e.exports=(o="function"==typeof Promise,i="object"===("undefined"==typeof self?"undefined":r(self))?self:t,a="undefined"!=typeof Symbol,u="undefined"!=typeof Map,c="undefined"!=typeof Set,s="undefined"!=typeof WeakMap,f="undefined"!=typeof WeakSet,l="undefined"!=typeof DataView,y=a&&void 0!==Symbol.iterator,p=a&&void 0!==Symbol.toStringTag,h=c&&"function"==typeof Set.prototype.entries,b=u&&"function"==typeof Map.prototype.entries,g=h&&Object.getPrototypeOf((new Set).entries()),d=b&&Object.getPrototypeOf((new Map).entries()),v=y&&"function"==typeof Array.prototype[Symbol.iterator],_=v&&Object.getPrototypeOf([][Symbol.iterator]()),m=y&&"function"==typeof String.prototype[Symbol.iterator],w=m&&Object.getPrototypeOf(""[Symbol.iterator]()),j=8,O=-1,function(t){var e=void 0===t?"undefined":r(t);if("object"!==e)return e;if(null===t)return"null";if(t===i)return"global";if(Array.isArray(t)&&(!1===p||!(Symbol.toStringTag in t)))return"Array";if("object"===("undefined"==typeof window?"undefined":r(window))&&null!==window){if("object"===r(window.location)&&t===window.location)return"Location";if("object"===r(window.document)&&t===window.document)return"Document";if("object"===r(window.navigator)){if("object"===r(window.navigator.mimeTypes)&&t===window.navigator.mimeTypes)return"MimeTypeArray";if("object"===r(window.navigator.plugins)&&t===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"===r(window.HTMLElement))&&t instanceof window.HTMLElement){if("BLOCKQUOTE"===t.tagName)return"HTMLQuoteElement";if("TD"===t.tagName)return"HTMLTableDataCellElement";if("TH"===t.tagName)return"HTMLTableHeaderCellElement"}}var n=p&&t[Symbol.toStringTag];if("string"==typeof n)return n;var a=Object.getPrototypeOf(t);return a===RegExp.prototype?"RegExp":a===Date.prototype?"Date":o&&a===Promise.prototype?"Promise":c&&a===Set.prototype?"Set":u&&a===Map.prototype?"Map":f&&a===WeakSet.prototype?"WeakSet":s&&a===WeakMap.prototype?"WeakMap":l&&a===DataView.prototype?"DataView":u&&a===d?"Map Iterator":c&&a===g?"Set Iterator":v&&a===_?"Array Iterator":m&&a===w?"String Iterator":null===a?"Object":Object.prototype.toString.call(t).slice(j,O)})});function o(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,a,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}function i(t,e,r,n){for(var o=r-1,i=t.length;++o<i;)if(n(t[o],e))return o;return-1}function a(t){return t!=t}var u=Array.prototype.splice;function c(t,e,r,n){var a,c=n?i:o,s=-1,f=e.length,l=t;for(t===e&&(e=function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(e)),r&&(l=function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(t,(a=r,function(t){return a(t)})));++s<f;)for(var y=0,p=e[s],h=r?r(p):p;(y=c(l,h,y,n))>-1;)l!==t&&u.call(l,y,1),u.call(t,y,1);return t}var s=function(t,e){return t&&t.length&&e&&e.length?c(t,e):t},f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l="__lodash_hash_undefined__",y=9007199254740991,p="[object Function]",h="[object GeneratorFunction]",b=/^\[object .+?Constructor\]$/,g="object"==f(t)&&t&&t.Object===Object&&t,d="object"==("undefined"==typeof self?"undefined":f(self))&&self&&self.Object===Object&&self,v=g||d||Function("return this")();function _(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,n){var o=t.length,i=r+(n?1:-1);for(;n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,j,r);var n=r-1,o=t.length;for(;++n<o;)if(t[n]===e)return n;return-1}(t,e,0)>-1}function m(t,e,r){for(var n=-1,o=t?t.length:0;++n<o;)if(r(e,t[n]))return!0;return!1}function w(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function j(t){return t!=t}function O(t){return function(e){return t(e)}}function S(t,e){return t.has(e)}var A,E,T,M=Array.prototype,k=Function.prototype,I=Object.prototype,W=v["__core-js_shared__"],N=(A=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",x=k.toString,K=I.hasOwnProperty,P=I.toString,D=RegExp("^"+x.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=M.splice,H=Math.max,V=Math.min,F=Q(v,"Map"),$=Q(Object,"create");function C(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function B(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function L(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function G(t){var e=-1,r=t?t.length:0;for(this.__data__=new L;++e<r;)this.add(t[e])}function J(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function U(t){return!(!Y(t)||N&&N in t)&&(X(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?D:b).test(function(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function q(t){return function(t){return function(t){return!!t&&"object"==(void 0===t?"undefined":f(t))}(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=y}(t.length)&&!X(t)}(t)}(t)?t:[]}function z(t,e){var r,n,o=t.__data__;return("string"==(n=void 0===(r=e)?"undefined":f(r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Q(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return U(r)?r:void 0}function X(t){var e=Y(t)?P.call(t):"";return e==p||e==h}function Y(t){var e=void 0===t?"undefined":f(t);return!!t&&("object"==e||"function"==e)}C.prototype.clear=function(){this.__data__=$?$(null):{}},C.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},C.prototype.get=function(t){var e=this.__data__;if($){var r=e[t];return r===l?void 0:r}return K.call(e,t)?e[t]:void 0},C.prototype.has=function(t){var e=this.__data__;return $?void 0!==e[t]:K.call(e,t)},C.prototype.set=function(t,e){return this.__data__[t]=$&&void 0===e?l:e,this},B.prototype.clear=function(){this.__data__=[]},B.prototype.delete=function(t){var e=this.__data__,r=J(e,t);return!(r<0||(r==e.length-1?e.pop():R.call(e,r,1),0))},B.prototype.get=function(t){var e=this.__data__,r=J(e,t);return r<0?void 0:e[r][1]},B.prototype.has=function(t){return J(this.__data__,t)>-1},B.prototype.set=function(t,e){var r=this.__data__,n=J(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},L.prototype.clear=function(){this.__data__={hash:new C,map:new(F||B),string:new C}},L.prototype.delete=function(t){return z(this,t).delete(t)},L.prototype.get=function(t){return z(this,t).get(t)},L.prototype.has=function(t){return z(this,t).has(t)},L.prototype.set=function(t,e){return z(this,t).set(t,e),this},G.prototype.add=G.prototype.push=function(t){return this.__data__.set(t,l),this},G.prototype.has=function(t){return this.__data__.has(t)};var Z=(E=function(t){var e=w(t,q);return e.length&&e[0]===t[0]?function(t,e,r){for(var n=r?m:_,o=t[0].length,i=t.length,a=i,u=Array(i),c=1/0,s=[];a--;){var f=t[a];a&&e&&(f=w(f,O(e))),c=V(f.length,c),u[a]=!r&&(e||o>=120&&f.length>=120)?new G(a&&f):void 0}f=t[0];var l=-1,y=u[0];t:for(;++l<o&&s.length<c;){var p=f[l],h=e?e(p):p;if(p=r||0!==p?p:0,!(y?S(y,h):n(s,h,r))){for(a=i;--a;){var b=u[a];if(!(b?S(b,h):n(t[a],h,r)))continue t}y&&y.push(h),s.push(p)}}return s}(e):[]},T=H(void 0===T?E.length-1:T,0),function(){for(var t=arguments,e=-1,r=H(t.length-T,0),n=Array(r);++e<r;)n[e]=t[T+e];e=-1;for(var o=Array(T+1);++e<T;)o[e]=t[e];return o[T]=n,function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(E,this,o)});function tt(t){return"string"==typeof t?t.length>0?[t]:[]:t}function et(t,e,r){function o(t){return null!=t}function i(t){return"boolean"===n(t)}function a(t){return"string"===n(t)}function u(t){return"Object"===n(t)}var c=["any","anything","every","everything","all","whatever","whatevs"],f=Array.isArray;if(0===arguments.length)throw new Error("check-types-mini: [THROW_ID_01] Missing all arguments!");if(1===arguments.length)throw new Error("check-types-mini: [THROW_ID_02] Missing second argument!");var l=u(e)?e:{},y={ignoreKeys:[],acceptArrays:!1,acceptArraysIgnore:[],enforceStrictKeyset:!0,schema:{},msg:"check-types-mini",optsVarName:"opts"},p=void 0;if(!a((p=o(r)&&u(r)?Object.assign({},y,r):Object.assign({},y)).msg))throw new Error("check-types-mini: [THROW_ID_03] opts.msg must be string! Currently it's: "+n(p.msg)+", equal to "+JSON.stringify(p.msg,null,4));if(p.msg=p.msg.trim(),":"===p.msg[p.msg.length-1]&&(p.msg=p.msg.slice(0,p.msg.length-1)),!a(p.optsVarName))throw new Error("check-types-mini: [THROW_ID_04] opts.optsVarName must be string! Currently it's: "+n(p.optsVarName)+", equal to "+JSON.stringify(p.optsVarName,null,4));if(p.ignoreKeys=tt(p.ignoreKeys),p.acceptArraysIgnore=tt(p.acceptArraysIgnore),!f(p.ignoreKeys))throw new TypeError("check-types-mini: [THROW_ID_05] opts.ignoreKeys should be an array, currently it's: "+n(p.ignoreKeys));if(!i(p.acceptArrays))throw new TypeError("check-types-mini: [THROW_ID_06] opts.acceptArrays should be a Boolean, currently it's: "+n(p.acceptArrays));if(!f(p.acceptArraysIgnore))throw new TypeError("check-types-mini: [THROW_ID_07] opts.acceptArraysIgnore should be an array, currently it's: "+n(p.acceptArraysIgnore));if(!i(p.enforceStrictKeyset))throw new TypeError("check-types-mini: [THROW_ID_08] opts.enforceStrictKeyset should be a Boolean, currently it's: "+n(p.enforceStrictKeyset));if(Object.keys(p.schema).forEach(function(t){f(p.schema[t])||(p.schema[t]=[p.schema[t]]),p.schema[t]=p.schema[t].map(String).map(function(t){return t.toLowerCase()}).map(function(t){return t.trim()})}),p.enforceStrictKeyset)if(o(p.schema)&&Object.keys(p.schema).length>0){if(0!==s(Object.keys(t),Object.keys(l).concat(Object.keys(p.schema))).length)throw new TypeError(p.msg+": "+p.optsVarName+".enforceStrictKeyset is on and the following keys are not covered by schema and/or reference objects: "+JSON.stringify(s(Object.keys(t),Object.keys(l).concat(Object.keys(p.schema))),null,4))}else{if(!(o(l)&&Object.keys(l).length>0))throw new TypeError(p.msg+": Both "+p.optsVarName+".schema and reference objects are missing! We don't have anything to match the keys as you requested via opts.enforceStrictKeyset!");if(0!==s(Object.keys(t),Object.keys(l)).length)throw new TypeError(p.msg+": The input object has keys that are not covered by reference object: "+JSON.stringify(s(Object.keys(t),Object.keys(l)),null,4));if(0!==s(Object.keys(l),Object.keys(t)).length)throw new TypeError(p.msg+": The reference object has keys that are not present in the input object: "+JSON.stringify(s(Object.keys(l),Object.keys(t)),null,4))}Object.keys(t).forEach(function(e){if(o(p.schema)&&Object.prototype.hasOwnProperty.call(p.schema,e)){if(p.schema[e]=tt(p.schema[e]).map(String).map(function(t){return t.toLowerCase()}),!(Z(p.schema[e],c).length||(!0===t[e]||!1===t[e]||p.schema[e].includes(n(t[e]).toLowerCase()))&&(!0!==t[e]&&!1!==t[e]||p.schema[e].includes(String(t[e]))||p.schema[e].includes("boolean")))){if(!f(t[e])||!p.acceptArrays)throw new TypeError(p.msg+": "+p.optsVarName+"."+e+" was customised to "+JSON.stringify(t[e],null,4)+" which is not among the allowed types in schema ("+p.schema[e]+") but "+n(t[e]));for(var r=0,i=t[e].length;r<i;r++)if(!p.schema[e].includes(n(t[e][r]).toLowerCase()))throw new TypeError(p.msg+": "+p.optsVarName+"."+e+" is of type "+n(t[e][r]).toLowerCase()+", but only the following are allowed in "+p.optsVarName+".schema: "+p.schema[e])}}else if(o(l)&&Object.prototype.hasOwnProperty.call(l,e)&&n(t[e])!==n(l[e])&&!p.ignoreKeys.includes(e)){if(!p.acceptArrays||!f(t[e])||p.acceptArraysIgnore.includes(e))throw new TypeError(p.msg+": "+p.optsVarName+"."+e+" was customised to "+JSON.stringify(t[e],null,4)+" which is not "+n(l[e])+" but "+n(t[e]));if(!t[e].every(function(t){return n(t)===n(l[e])}))throw new TypeError(p.msg+": "+p.optsVarName+"."+e+" was customised to be array, but not all of its elements are "+n(l[e])+"-type")}})}var rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt="[object Object]";var ot=Function.prototype,it=Object.prototype,at=ot.toString,ut=it.hasOwnProperty,ct=at.call(Object),st=it.toString,ft=function(t,e){return function(r){return t(e(r))}}(Object.getPrototypeOf,Object);var lt=function(t){if(!function(t){return!!t&&"object"==(void 0===t?"undefined":rt(t))}(t)||st.call(t)!=nt||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=ft(t);if(null===e)return!0;var r=ut.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&at.call(r)==ct},yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt=e(function(e,r){var n=200,o="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",u="[object Boolean]",c="[object Date]",s="[object Function]",f="[object GeneratorFunction]",l="[object Map]",y="[object Number]",p="[object Object]",h="[object RegExp]",b="[object Set]",g="[object String]",d="[object Symbol]",v="[object ArrayBuffer]",_="[object DataView]",m="[object Float32Array]",w="[object Float64Array]",j="[object Int8Array]",O="[object Int16Array]",S="[object Int32Array]",A="[object Uint8Array]",E="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]",k=/\w*$/,I=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,N={};N[a]=N["[object Array]"]=N[v]=N[_]=N[u]=N[c]=N[m]=N[w]=N[j]=N[O]=N[S]=N[l]=N[y]=N[p]=N[h]=N[b]=N[g]=N[d]=N[A]=N[E]=N[T]=N[M]=!0,N["[object Error]"]=N[s]=N["[object WeakMap]"]=!1;var x="object"==yt(t)&&t&&t.Object===Object&&t,K="object"==("undefined"==typeof self?"undefined":yt(self))&&self&&self.Object===Object&&self,P=x||K||Function("return this")(),D=r&&!r.nodeType&&r,R=D&&e&&!e.nodeType&&e,H=R&&R.exports===D;function V(t,e){return t.set(e[0],e[1]),t}function F(t,e){return t.add(e),t}function $(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function C(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function B(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function L(t,e){return function(r){return t(e(r))}}function G(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var J,U=Array.prototype,q=Function.prototype,z=Object.prototype,Q=P["__core-js_shared__"],X=(J=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"",Y=q.toString,Z=z.hasOwnProperty,tt=z.toString,et=RegExp("^"+Y.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=H?P.Buffer:void 0,nt=P.Symbol,ot=P.Uint8Array,it=L(Object.getPrototypeOf,Object),at=Object.create,ut=z.propertyIsEnumerable,ct=U.splice,st=Object.getOwnPropertySymbols,ft=rt?rt.isBuffer:void 0,lt=L(Object.keys,Object),pt=Ht(P,"DataView"),ht=Ht(P,"Map"),bt=Ht(P,"Promise"),gt=Ht(P,"Set"),dt=Ht(P,"WeakMap"),vt=Ht(Object,"create"),_t=Bt(pt),mt=Bt(ht),wt=Bt(bt),jt=Bt(gt),Ot=Bt(dt),St=nt?nt.prototype:void 0,At=St?St.valueOf:void 0;function Et(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Tt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Mt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function kt(t){this.__data__=new Tt(t)}function It(t,e){var r=Gt(t)||function(t){return function(t){return function(t){return!!t&&"object"==(void 0===t?"undefined":yt(t))}(t)&&Jt(t)}(t)&&Z.call(t,"callee")&&(!ut.call(t,"callee")||tt.call(t)==a)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!Z.call(t,i)||o&&("length"==i||$t(i,n))||r.push(i);return r}function Wt(t,e,r){var n=t[e];Z.call(t,e)&&Lt(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Nt(t,e){for(var r=t.length;r--;)if(Lt(t[r][0],e))return r;return-1}function xt(t,e,r,n,o,i,I){var W;if(n&&(W=i?n(t,o,i,I):n(t)),void 0!==W)return W;if(!zt(t))return t;var x=Gt(t);if(x){if(W=function(t){var e=t.length,r=t.constructor(e);e&&"string"==typeof t[0]&&Z.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!e)return function(t,e){var r=-1,n=t.length;e||(e=Array(n));for(;++r<n;)e[r]=t[r];return e}(t,W)}else{var K=Ft(t),P=K==s||K==f;if(Ut(t))return function(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}(t,e);if(K==p||K==a||P&&!i){if(C(t))return i?t:{};if(W=function(t){return"function"!=typeof t.constructor||Ct(t)?{}:(e=it(t),zt(e)?at(e):{});var e}(P?{}:t),!e)return function(t,e){return Dt(t,Vt(t),e)}(t,function(t,e){return t&&Dt(e,Qt(e),t)}(W,t))}else{if(!N[K])return i?t:{};W=function(t,e,r,n){var o=t.constructor;switch(e){case v:return Pt(t);case u:case c:return new o(+t);case _:return function(t,e){var r=e?Pt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,n);case m:case w:case j:case O:case S:case A:case E:case T:case M:return function(t,e){var r=e?Pt(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,n);case l:return function(t,e,r){return $(e?r(B(t),!0):B(t),V,new t.constructor)}(t,n,r);case y:case g:return new o(t);case h:return(s=new(a=t).constructor(a.source,k.exec(a))).lastIndex=a.lastIndex,s;case b:return function(t,e,r){return $(e?r(G(t),!0):G(t),F,new t.constructor)}(t,n,r);case d:return i=t,At?Object(At.call(i)):{}}var i;var a,s}(t,K,xt,e)}}I||(I=new kt);var D=I.get(t);if(D)return D;if(I.set(t,W),!x)var R=r?function(t){return function(t,e,r){var n=e(t);return Gt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Qt,Vt)}(t):Qt(t);return function(t,e){for(var r=-1,n=t?t.length:0;++r<n&&!1!==e(t[r],r,t););}(R||t,function(o,i){R&&(o=t[i=o]),Wt(W,i,xt(o,e,r,n,i,t,I))}),W}function Kt(t){return!(!zt(t)||X&&X in t)&&(qt(t)||C(t)?et:I).test(Bt(t))}function Pt(t){var e=new t.constructor(t.byteLength);return new ot(e).set(new ot(t)),e}function Dt(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var a=e[o],u=n?n(r[a],t[a],a,r,t):void 0;Wt(r,a,void 0===u?t[a]:u)}return r}function Rt(t,e){var r,n,o=t.__data__;return("string"==(n=void 0===(r=e)?"undefined":yt(r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Ht(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Kt(r)?r:void 0}Et.prototype.clear=function(){this.__data__=vt?vt(null):{}},Et.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Et.prototype.get=function(t){var e=this.__data__;if(vt){var r=e[t];return r===o?void 0:r}return Z.call(e,t)?e[t]:void 0},Et.prototype.has=function(t){var e=this.__data__;return vt?void 0!==e[t]:Z.call(e,t)},Et.prototype.set=function(t,e){return this.__data__[t]=vt&&void 0===e?o:e,this},Tt.prototype.clear=function(){this.__data__=[]},Tt.prototype.delete=function(t){var e=this.__data__,r=Nt(e,t);return!(r<0||(r==e.length-1?e.pop():ct.call(e,r,1),0))},Tt.prototype.get=function(t){var e=this.__data__,r=Nt(e,t);return r<0?void 0:e[r][1]},Tt.prototype.has=function(t){return Nt(this.__data__,t)>-1},Tt.prototype.set=function(t,e){var r=this.__data__,n=Nt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Mt.prototype.clear=function(){this.__data__={hash:new Et,map:new(ht||Tt),string:new Et}},Mt.prototype.delete=function(t){return Rt(this,t).delete(t)},Mt.prototype.get=function(t){return Rt(this,t).get(t)},Mt.prototype.has=function(t){return Rt(this,t).has(t)},Mt.prototype.set=function(t,e){return Rt(this,t).set(t,e),this},kt.prototype.clear=function(){this.__data__=new Tt},kt.prototype.delete=function(t){return this.__data__.delete(t)},kt.prototype.get=function(t){return this.__data__.get(t)},kt.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Tt){var o=r.__data__;if(!ht||o.length<n-1)return o.push([t,e]),this;r=this.__data__=new Mt(o)}return r.set(t,e),this};var Vt=st?L(st,Object):function(){return[]},Ft=function(t){return tt.call(t)};function $t(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||W.test(t))&&t>-1&&t%1==0&&t<e}function Ct(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||z)}function Bt(t){if(null!=t){try{return Y.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Lt(t,e){return t===e||t!=t&&e!=e}(pt&&Ft(new pt(new ArrayBuffer(1)))!=_||ht&&Ft(new ht)!=l||bt&&"[object Promise]"!=Ft(bt.resolve())||gt&&Ft(new gt)!=b||dt&&"[object WeakMap]"!=Ft(new dt))&&(Ft=function(t){var e=tt.call(t),r=e==p?t.constructor:void 0,n=r?Bt(r):void 0;if(n)switch(n){case _t:return _;case mt:return l;case wt:return"[object Promise]";case jt:return b;case Ot:return"[object WeakMap]"}return e});var Gt=Array.isArray;function Jt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}(t.length)&&!qt(t)}var Ut=ft||function(){return!1};function qt(t){var e=zt(t)?tt.call(t):"";return e==s||e==f}function zt(t){var e=void 0===t?"undefined":yt(t);return!!t&&("object"==e||"function"==e)}function Qt(t){return Jt(t)?It(t):function(t){if(!Ct(t))return lt(t);var e=[];for(var r in Object(t))Z.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}e.exports=function(t){return xt(t,!0,!0)}}),ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt=require("matcher"),gt=Array.isArray;function dt(t,e,r){function n(t){return"string"==typeof t}var o=Object.assign({},{arrayVsArrayAllMustBeFound:"any"},r);if(0===arguments.length)throw new Error("array-includes-with-glob/arrayIncludesWithGlob(): [THROW_ID_01] all inputs missing!");if(1===arguments.length)throw new Error("array-includes-with-glob/arrayIncludesWithGlob(): [THROW_ID_02] second argument missing!");if(!gt(t)){if(!n(t))throw new Error("array-includes-with-glob/arrayIncludesWithGlob(): [THROW_ID_03] first argument must be an array! It was given as "+(void 0===t?"undefined":ht(t)));t=[t]}if(!n(e)&&!gt(e))throw new Error("array-includes-with-glob/arrayIncludesWithGlob(): [THROW_ID_04] second argument must be a string or array of strings! It was given as "+(void 0===e?"undefined":ht(e)));if("any"!==o.arrayVsArrayAllMustBeFound&&"all"!==o.arrayVsArrayAllMustBeFound)throw new Error("array-includes-with-glob/arrayIncludesWithGlob(): [THROW_ID_05] opts.arrayVsArrayAllMustBeFound was customised to an unrecognised value, "+o.arrayVsArrayAllMustBeFound+'. It must be equal to either "any" or "all".');if(0===t.length)return!1;var i=t.filter(function(t){return null!=t});return 0!==i.length&&(n(e)?i.some(function(t){return bt.isMatch(t,e,{caseSensitive:!0})}):"any"===o.arrayVsArrayAllMustBeFound?e.some(function(t){return i.some(function(e){return bt.isMatch(e,t,{caseSensitive:!0})})}):e.every(function(t){return i.some(function(e){return bt.isMatch(e,t,{caseSensitive:!0})})}))}var vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_t=1/0,mt=9007199254740991,wt=1.7976931348623157e308,jt=NaN,Ot="[object Arguments]",St="[object Function]",At="[object GeneratorFunction]",Et="[object String]",Tt="[object Symbol]",Mt=/^\s+|\s+$/g,kt=/^[-+]0x[0-9a-f]+$/i,It=/^0b[01]+$/i,Wt=/^0o[0-7]+$/i,Nt=/^(?:0|[1-9]\d*)$/,xt=parseInt;function Kt(t){return t!=t}function Pt(t,e){return function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(e,function(e){return t[e]})}var Dt=Object.prototype,Rt=Dt.hasOwnProperty,Ht=Dt.toString,Vt=Dt.propertyIsEnumerable,Ft=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),$t=Math.max;function Ct(t,e){var r=Gt(t)||function(t){return function(t){return qt(t)&&Jt(t)}(t)&&Rt.call(t,"callee")&&(!Vt.call(t,"callee")||Ht.call(t)==Ot)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!Rt.call(t,i)||o&&("length"==i||Lt(i,n))||r.push(i);return r}function Bt(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||Dt,e!==n)return Ft(t);var e,r,n,o=[];for(var i in Object(t))Rt.call(t,i)&&"constructor"!=i&&o.push(i);return o}function Lt(t,e){return!!(e=null==e?mt:e)&&("number"==typeof t||Nt.test(t))&&t>-1&&t%1==0&&t<e}var Gt=Array.isArray;function Jt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=mt}(t.length)&&!function(t){var e=Ut(t)?Ht.call(t):"";return e==St||e==At}(t)}function Ut(t){var e=void 0===t?"undefined":vt(t);return!!t&&("object"==e||"function"==e)}function qt(t){return!!t&&"object"==(void 0===t?"undefined":vt(t))}var zt=function(t,e,r,n){var o;t=Jt(t)?t:(o=t)?Pt(o,function(t){return Jt(t)?Ct(t):Bt(t)}(o)):[],r=r&&!n?function(t){var e=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==(void 0===t?"undefined":vt(t))||qt(t)&&Ht.call(t)==Tt}(t))return jt;if(Ut(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ut(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Mt,"");var r=It.test(t);return r||Wt.test(t)?xt(t.slice(2),r?2:8):kt.test(t)?jt:+t}(t))===_t||t===-_t){var e=t<0?-1:1;return e*wt}return t==t?t:0}(t),r=e%1;return e==e?r?e-r:e:0}(r):0;var i=t.length;return r<0&&(r=$t(i+r,0)),function(t){return"string"==typeof t||!Gt(t)&&qt(t)&&Ht.call(t)==Et}(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&function(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,Kt,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,r)>-1},Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt=200,Yt="__lodash_hash_undefined__",Zt="[object Function]",te="[object GeneratorFunction]",ee=/^\[object .+?Constructor\]$/,re="object"==Qt(t)&&t&&t.Object===Object&&t,ne="object"==("undefined"==typeof self?"undefined":Qt(self))&&self&&self.Object===Object&&self,oe=re||ne||Function("return this")();function ie(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,n){var o=t.length,i=r+(n?1:-1);for(;n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,ue,r);var n=r-1,o=t.length;for(;++n<o;)if(t[n]===e)return n;return-1}(t,e,0)>-1}function ae(t,e,r){for(var n=-1,o=t?t.length:0;++n<o;)if(r(e,t[n]))return!0;return!1}function ue(t){return t!=t}function ce(t,e){return t.has(e)}function se(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var fe=Array.prototype,le=Function.prototype,ye=Object.prototype,pe=oe["__core-js_shared__"],he=function(){var t=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),be=le.toString,ge=ye.hasOwnProperty,de=ye.toString,ve=RegExp("^"+be.call(ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_e=fe.splice,me=We(oe,"Map"),we=We(oe,"Set"),je=We(Object,"create");function Oe(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Se(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ae(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ee(t){var e=-1,r=t?t.length:0;for(this.__data__=new Ae;++e<r;)this.add(t[e])}function Te(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function Me(t){return!(!Ne(t)||he&&he in t)&&(function(t){var e=Ne(t)?de.call(t):"";return e==Zt||e==te}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?ve:ee).test(function(t){if(null!=t){try{return be.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}Oe.prototype.clear=function(){this.__data__=je?je(null):{}},Oe.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Oe.prototype.get=function(t){var e=this.__data__;if(je){var r=e[t];return r===Yt?void 0:r}return ge.call(e,t)?e[t]:void 0},Oe.prototype.has=function(t){var e=this.__data__;return je?void 0!==e[t]:ge.call(e,t)},Oe.prototype.set=function(t,e){return this.__data__[t]=je&&void 0===e?Yt:e,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(t){var e=this.__data__,r=Te(e,t);return!(r<0||(r==e.length-1?e.pop():_e.call(e,r,1),0))},Se.prototype.get=function(t){var e=this.__data__,r=Te(e,t);return r<0?void 0:e[r][1]},Se.prototype.has=function(t){return Te(this.__data__,t)>-1},Se.prototype.set=function(t,e){var r=this.__data__,n=Te(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Ae.prototype.clear=function(){this.__data__={hash:new Oe,map:new(me||Se),string:new Oe}},Ae.prototype.delete=function(t){return Ie(this,t).delete(t)},Ae.prototype.get=function(t){return Ie(this,t).get(t)},Ae.prototype.has=function(t){return Ie(this,t).has(t)},Ae.prototype.set=function(t,e){return Ie(this,t).set(t,e),this},Ee.prototype.add=Ee.prototype.push=function(t){return this.__data__.set(t,Yt),this},Ee.prototype.has=function(t){return this.__data__.has(t)};var ke=we&&1/se(new we([,-0]))[1]==1/0?function(t){return new we(t)}:function(){};function Ie(t,e){var r,n,o=t.__data__;return("string"==(n=void 0===(r=e)?"undefined":Qt(r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function We(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Me(r)?r:void 0}function Ne(t){var e=void 0===t?"undefined":Qt(t);return!!t&&("object"==e||"function"==e)}var xe=function(t){return t&&t.length?function(t,e,r){var n=-1,o=ie,i=t.length,a=!0,u=[],c=u;if(r)a=!1,o=ae;else if(i>=Xt){var s=e?null:ke(t);if(s)return se(s);a=!1,o=ce,c=new Ee}else c=e?[]:u;t:for(;++n<i;){var f=t[n],l=e?e(f):f;if(f=r||0!==f?f:0,a&&l==l){for(var y=c.length;y--;)if(c[y]===l)continue t;e&&c.push(l),u.push(f)}else o(c,l,r)||(c!==u&&c.push(l),u.push(f))}return u}(t):[]};function Ke(t){return 0!==arguments.length&&void 0!==t&&(e=t,Array.isArray(e)||function(t){return"string"==typeof t}(t)?t.length>0:lt(t)?Object.keys(t).length>0:!!function(t){return"number"==typeof t}(t));var e}var Pe=function(t,e,r){if(!Array.isArray(t))throw new TypeError(String(t)+" is not an array. The first argument of array-includes-all must be an array.");if(!Array.isArray(e))throw new TypeError(String(e)+" is not an array. The second argument of array-includes-all must be an array.");if(0===e.length)throw new RangeError("The second argument of array-includes-all must include at least one value, but recieved an empty array.");return 0!==t.length&&e.every(function(e){return t.includes(e,r)})};function De(t){return Array.isArray(t)}function Re(t){return"string"==typeof t}function He(t){return"boolean"==typeof t}function Ve(t){return!!t&&t.some(function(t){return"string"==typeof t})}var Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var $e=Array.isArray;return function(t,e){if(!$e(t))throw new Error("array-of-arrays-into-ast: [THROW_ID_01] input must be array. Currently it's of a type "+(void 0===t?"undefined":Fe(t))+" equal to:\n"+JSON.stringify(t,null,4));if(0===t.length)return{};var r={dedupe:!0};et(e=Object.assign({},r,e),r,{msg:"array-of-arrays-into-ast: [THROW_ID_02*]",optsVarName:"opts"});var n,o={};return t.forEach(function(t){for(var r,n,i,a=null,u=t.length;u--;)r={},n=t[u],i=[a],n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,a=r;o=function t(e,r,n){if(0===arguments.length)throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_01] Both inputs are missing");if(null!=n&&!lt(n))throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_02] Options object, the third argument, must be a plain object");var o={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},i=Object.assign(pt(o),n);if(i.ignoreKeys=tt(i.ignoreKeys),i.hardMergeKeys=tt(i.hardMergeKeys),et(i,o,{msg:"object-merge-advanced/mergeAdvanced(): [THROW_ID_06*]",schema:{cb:["null","undefined","false","function"]}}),i.hardMergeKeys.includes("*")&&(i.hardMergeEverything=!0),i.ignoreKeys.includes("*")&&(i.ignoreEverything=!0),i.useNullAsExplicitFalse&&(null===e||null===r))return i.cb?i.cb(e,r,null):null;var a=De(e)||lt(e)?pt(e):e,u=De(r)||lt(r)?pt(r):r,c=void 0;i.ignoreEverything?c=a:i.hardMergeEverything&&(c=u);var s,f,l=i.hardMergeEverything||i.ignoreEverything;if(!De(a)){if(lt(a)){if(Ke(a)){if(De(u)){if(Ke(u)){var y=l?c:u;return i.cb?i.cb(a,u,y):y}var p=l?c:a;return i.cb?i.cb(a,u,p):p}if(lt(u))return Object.keys(u).forEach(function(e){a.hasOwnProperty(e)?dt(e,i.ignoreKeys)?a[e]=t(a[e],u[e],Object.assign({},i,{ignoreEverything:!0})):dt(e,i.hardMergeKeys)?a[e]=t(a[e],u[e],Object.assign({},i,{hardMergeEverything:!0})):dt(e,i.hardArrayConcatKeys)?a[e]=t(a[e],u[e],Object.assign({},i,{hardArrayConcat:!0})):a[e]=t(a[e],u[e],i):a[e]=u[e]}),a;var h=l?c:a;return i.cb?i.cb(a,u,h):h}if(De(u)||lt(u)||Ke(u)){var b=l?c:u;return i.cb?i.cb(a,u,b):b}var g=l?c:a;return i.cb?i.cb(a,u,g):g}if(Re(a)){if(Ke(a)){if((De(u)||lt(u)||Re(u))&&Ke(u)){var d=l?c:u;return i.cb?i.cb(a,u,d):d}var v=l?c:a;return i.cb?i.cb(a,u,v):v}if(null!=u&&!He(u)){var _=l?c:u;return i.cb?i.cb(a,u,_):_}var m=l?c:a;return i.cb?i.cb(a,u,m):m}if("number"==typeof a){if(Ke(u)){var w=l?c:u;return i.cb?i.cb(a,u,w):w}var j=l?c:a;return i.cb?i.cb(a,u,j):j}if(He(a)){if(He(u)){if(i.mergeBoolsUsingOrNotAnd){var O=l?c:a||u;return i.cb?i.cb(a,u,O):O}var S=l?c:a&&u;return i.cb?i.cb(a,u,S):S}if(null!=u){var A=l?c:u;return i.cb?i.cb(a,u,A):A}var E=l?c:a;return i.cb?i.cb(a,u,E):E}if(null===a){if(null!=u){var T=l?c:u;return i.cb?i.cb(a,u,T):T}var M=l?c:a;return i.cb?i.cb(a,u,M):M}var k=l?c:u;return i.cb?i.cb(a,u,k):k}if(!Ke(a)){if(Ke(u)){var I=l?c:u;return i.cb?i.cb(a,u,I):I}var W=l?c:a;return i.cb?i.cb(a,u,W):W}if(!De(u)||!Ke(u)){var N=l?c:a;return i.cb?i.cb(a,u,N):N}if(i.mergeArraysContainingStringsToBeEmpty&&(Ve(a)||Ve(u))){var x=l?c:[];return i.cb?i.cb(a,u,x):x}if(i.hardArrayConcat){var K=l?c:a.concat(u);return i.cb?i.cb(a,u,K):K}for(var P=[],D=0,R=Math.max(a.length,u.length);D<R;D++)lt(a[D])&&lt(u[D])&&(i.mergeObjectsOnlyWhenKeysetMatches&&(s=a[D],f=u[D],0===Object.keys(s).length||0===Object.keys(f).length||Pe(Object.keys(s),Object.keys(f))||Pe(Object.keys(f),Object.keys(s)))||!i.mergeObjectsOnlyWhenKeysetMatches)?P.push(t(a[D],u[D],i)):!i.oneToManyArrayObjectMerge||1!==a.length&&1!==u.length?i.concatInsteadOfMerging?(D<a.length&&P.push(a[D]),D<u.length&&P.push(u[D])):(D<a.length&&P.push(a[D]),D<u.length&&!zt(a,u[D])&&P.push(u[D])):P.push(1===a.length?t(a[0],u[D],i):t(a[D],u[0],i));i.dedupeStringsInArrayValues&&P.every(function(t){return Re(t)})&&(P=xe(P).sort()),a=pt(P);var H=l?c:a;return i.cb?i.cb(a,u,H):H}(o,a,{concatInsteadOfMerging:!e.dedupe})}),n=o,Object.keys(n).sort().reduce(function(t,e){return t[e]=n[e],t},{})}});
{
"name": "array-of-arrays-into-ast",
"version": "1.1.2",
"version": "1.2.0",
"description": "turns an array of arrays of data into a nested tree of plain objects",

@@ -35,5 +35,9 @@ "license": "MIT",

"pretest": "npm run build",
"test": "./node_modules/.bin/eslint src/*.js test/*.js && nyc --reporter=html --reporter=text ava"
"test": "./node_modules/.bin/eslint src/*.js test/*.js && nyc --require esm --reporter=html --reporter=text ava"
},
"ava": {
"compileEnhancements": false,
"require": [
"esm"
],
"verbose": true

@@ -159,3 +163,2 @@ },

"ava": "latest",
"babel-cli": "latest",
"babel-preset-env": "latest",

@@ -168,2 +171,3 @@ "coveralls": "latest",

"eslint-plugin-prettier": "^2.6.0",
"esm": "latest",
"husky": "latest",

@@ -178,4 +182,4 @@ "nyc": "latest",

"rollup-plugin-uglify": "^3.0.0",
"uglify-es": "^3.3.9"
"uglify-es": "^3.3.10"
}
}

@@ -36,3 +36,3 @@ # array-of-arrays-into-ast

| Main export - **CommonJS version**, transpiled to ES5, contains `require` and `module.exports` | `main` | `dist/array-of-arrays-into-ast.cjs.js` | 2&nbsp;KB |
| **ES module** build that Webpack/Rollup understands. Untranspiled ES6 code with `import`/`export`. | `module` | `dist/array-of-arrays-into-ast.esm.js` | 2&nbsp;KB |
| **ES module** build that Webpack/Rollup understands. Untranspiled ES6 code with `import`/`export`. | `module` | `dist/array-of-arrays-into-ast.esm.js` | 1&nbsp;KB |
| **UMD build** for browsers, transpiled, minified, containing `iife`'s and has all dependencies baked-in | `browser` | `dist/array-of-arrays-into-ast.umd.js` | 36&nbsp;KB |

@@ -39,0 +39,0 @@