clientnode 3.0.1202 → 3.0.1204

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 +1 @@
1
- "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@babel/runtime/helpers/extends"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends"],r);else{var t="object"==typeof exports?r(require("@babel/runtime/helpers/extends")):r(e["@babel/runtime/helpers/extends"]);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__2__){return function(){var __webpack_modules__=[function(e,r,t){t.d(r,{CLASS_TO_TYPE_MAPPING:function(){return n},PLAIN_OBJECT_PROTOTYPES:function(){return o}});Symbol.for("clientnodeValue"),Symbol.for("clientnodeIgnoreNullAndUndefined");var n={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"},o=[Object.prototype]},,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__2__},,function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{determineType:function(){return determineType}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var _addDynamicGetterAndSetter=function(e,r,t,n,o,a){if(void 0===r&&(r=null),void 0===t&&(t=null),void 0===n&&(n={}),void 0===o&&(o=!0),void 0===a&&(a=[Object]),o&&"object"==typeof e)if(Array.isArray(e))for(var i,s=0,u=_createForOfIteratorHelperLoose(e);!(i=u()).done;){var l=i.value;e[s]=_addDynamicGetterAndSetter(l,r,t,n,o),s+=1}else if(isMap(e))for(var _,f=_createForOfIteratorHelperLoose(e);!(_=f()).done;){var c=_.value,p=c[0],d=c[1];e.set(p,_addDynamicGetterAndSetter(d,r,t,n,o))}else if(isSet(e)){for(var v,y=[],b=_createForOfIteratorHelperLoose(e);!(v=b()).done;){var O=v.value;e.delete(O),y.push(_addDynamicGetterAndSetter(O,r,t,n,o))}for(var g=0,h=y;g<h.length;g++){var j=h[g];e.add(j)}}else if(null!==e)for(var m=0,P=Object.entries(e);m<P.length;m++){var A=P[m],I=A[0],x=A[1];e[I]=_addDynamicGetterAndSetter(x,r,t,n,o)}if(r||t)for(var w,E,M=function(){var o=E.value;if(null!==e&&"object"==typeof e&&e instanceof o){var a=getProxyHandler(e,n),i=getProxyHandler(e,n);r&&(i.get=function(t,n){return"__target__"===n?e:"__revoke__"===n?function(){return l(),e}:"function"==typeof e[n]?e[n]:r(a.get(u,n),n,e)}),t&&(i.set=function(r,n,o){return a.set(u,n,t(n,o,e))});var s=Proxy.revocable({},i),u=s.proxy,l=s.revoke;return{v:u}}},L=_createForOfIteratorHelperLoose(a);!(E=L()).done;)if(w=M())return w.v;return e},convertCircularObjectToJSON=function(e,r,t){void 0===r&&(r=function(e){return null!=e?e:"__circularReference__"}),void 0===t&&(t=0);var n=new Map;return function(e){var o=function(e,t){if(null!==t&&"object"==typeof t){var a,i;if(n.has(t))return r(null!==(a=n.get(t))&&void 0!==a?a:null,e,t,n);if(n.set(t,null),Array.isArray(t)){i=[];for(var s,u=_createForOfIteratorHelperLoose(t);!(s=u()).done;){var l=s.value;i.push(o(null,l))}}else{i={};for(var _=0,f=Object.entries(t);_<f.length;_++){var c=f[_],p=c[0],d=c[1];i[p]=o(p,d)}}return n.set(t,i),i}return t};return JSON.stringify(e,o,t)}(e)},_convertMapToPlainObject=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isMap(e)){for(var t,n={},o=_createForOfIteratorHelperLoose(e);!(t=o()).done;){var a=t.value,i=a[0],s=a[1];r&&(s=_convertMapToPlainObject(s,r)),["number","string"].includes(typeof i)&&(n[String(i)]=s)}return n}if(r)if(isPlainObject(e))for(var u=0,l=Object.entries(e);u<l.length;u++){var _=l[u],f=_[0],c=_[1];e[f]=_convertMapToPlainObject(c,r)}else if(Array.isArray(e))for(var p=0,d=0,v=e;d<v.length;d++){var y=v[d];e[p]=_convertMapToPlainObject(y,r),p+=1}else if(isSet(e)){for(var b,O=[],g=_createForOfIteratorHelperLoose(e);!(b=g()).done;){var h=b.value;e.delete(h),O.push(_convertMapToPlainObject(h,r))}for(var j=0,m=O;j<m.length;j++){var P=m[j];e.add(P)}}}return e},_convertPlainObjectToMap=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isPlainObject(e)){for(var t=new Map,n=0,o=Object.entries(e);n<o.length;n++){var a=o[n],i=a[0],s=a[1];r&&(e[i]=_convertPlainObjectToMap(s,r)),t.set(i,e[i])}return t}if(r)if(Array.isArray(e))for(var u=0,l=0,_=e;l<_.length;l++){var f=_[l];e[u]=_convertPlainObjectToMap(f,r),u+=1}else if(isMap(e))for(var c,p=_createForOfIteratorHelperLoose(e);!(c=p()).done;){var d=c.value,v=d[0],y=d[1];e.set(v,_convertPlainObjectToMap(y,r))}else if(isSet(e)){for(var b,O=[],g=_createForOfIteratorHelperLoose(e);!(b=g()).done;){var h=b.value;e.delete(h),O.push(_convertPlainObjectToMap(h,r))}for(var j=0,m=O;j<m.length;j++){var P=m[j];e.add(P)}}}return e},_convertSubstringInPlainObject=function(e,r,t){for(var n=0,o=Object.entries(e);n<o.length;n++){var a=o[n],i=a[0],s=a[1];isPlainObject(s)?e[i]=_convertSubstringInPlainObject(s,r,t):"string"==typeof s&&(e[i]=s.replace(r,t))}return e},_copy=function(e,r,t,n,o,a,i){if(void 0===r&&(r=-1),void 0===t&&(t=VALUE_COPY_SYMBOL),void 0===n&&(n=null),void 0===o&&(o=!1),void 0===a&&(a=[]),void 0===i&&(i=0),null!==e&&"object"==typeof e){if(!n){if(Array.isArray(e))return _copy(e,r,t,[],o,a,i);if(e instanceof Map)return _copy(e,r,t,new Map,o,a,i);if(e instanceof Set)return _copy(e,r,t,new Set,o,a,i);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var s=/[^/]*$/.exec(e.toString());return(n=new RegExp(e.source,s?s[0]:void 0)).lastIndex=e.lastIndex,n}return"undefined"!=typeof Blob&&e instanceof Blob?e.slice(0,e.size,e.type):_copy(e,r,t,{},o,a,i)}if(e===n)throw new Error("Can't copy because source and destination are identical.");if(!o&&![void 0,null].includes(e)){var u=a.indexOf(e);if(-1!==u)return a[u];a.push(e)}var l=function(e){if(-1!==r&&r<i+1)return t===VALUE_COPY_SYMBOL?e:t;var n=_copy(e,r,t,null,o,a,i+1);return o||[void 0,null].includes(e)||"object"!=typeof e||a.push(e),n};if(Array.isArray(e))for(var _,f=_createForOfIteratorHelperLoose(e);!(_=f()).done;){var c=_.value;n.push(l(c))}else if(e instanceof Map)for(var p,d=_createForOfIteratorHelperLoose(e);!(p=d()).done;){var v=p.value,y=v[0],b=v[1];n.set(y,l(b))}else if(e instanceof Set)for(var O,g=_createForOfIteratorHelperLoose(e);!(O=g()).done;){var h=O.value;n.add(l(h))}else for(var j=0,m=Object.entries(e);j<m.length;j++){var P=m[j],A=P[0],I=P[1];try{n[A]=l(I)}catch(e){throw new Error('Failed to copy property value object "'+A+'": '+_represent(e))}}}return n||e},determineType=function(e){if(void 0===e&&(e=void 0),[null,void 0].includes(e))return String(e);var r=typeof e;if(["function","object"].includes(r)&&"toString"in e){var t=Object.prototype.toString.call(e);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING,t))return _constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING[t]}return r},_equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_extends({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&isFunction(firstValue)&&isFunction(secondValue)||firstValue===secondValue||isNotANumber(firstValue)&&isNotANumber(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&Object.prototype.hasOwnProperty.call(eval("Buffer"),"isBuffer")&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise((function(e){for(var r=[],t=0,n=[firstValue,secondValue];t<n.length;t++){var o=n[t],a=new FileReader;a.onload=function(t){null===t.target?r.push(null):r.push(t.target.result),2===r.length&&(r[0]===r[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+_represent(r[0])+") !== Blob("+_represent(r[1])+")"))},a.readAsDataURL(o)}}));if(isPlainObject(firstValue)&&isPlainObject(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i13=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i13<_arr4.length;_i13++){var _arr4$_i=_arr4[_i13],first=_arr4$_i[0],second=_arr4$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=isMap(first);if(firstIsMap&&(!isMap(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=isSet(first);if(firstIsSet&&(!isSet(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray){for(var index=0,_loop2=function(){var e=_arr5[_i14];if(0!==options.deep){var r=_equals(e,second[index],_extends({},options,{deep:options.deep-1}));if(!r)return{v:!1};var t=index,n=function(e){var r;return"string"==typeof e?"["+String(t)+"]"+(null!==(r={"[":"",">":" "}[e[0]])&&void 0!==r?r:".")+e:e};if(Object.prototype.hasOwnProperty.call(r,"then")&&promises.push(r.then(n)),"string"==typeof r)return{v:n(r)}}index+=1},_ret2,_i14=0,_arr5=first;_i14<_arr5.length;_i14++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step13.value,r=e[0],t=e[1];if(0!==options.deep){var n=_equals(t,second.get(r),_extends({},options,{deep:options.deep-1}));if(!n)return{v:!1};var o=function(e){var t;return"string"==typeof e?"get("+_represent(r)+")"+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(n,"then")&&promises.push(n.then(o)),"string"==typeof n)return{v:o(n)}}},_ret3,_iterator13=_createForOfIteratorHelperLoose(first),_step13;!(_step13=_iterator13()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step14.value;if(0!==options.deep){for(var r,t=!1,n=[],o=_createForOfIteratorHelperLoose(second);!(r=o()).done;){var a=r.value,i=_equals(e,a,_extends({},options,{deep:options.deep-1}));if("boolean"==typeof i){if(i){t=!0;break}}else n.push(i)}var s=function(r){return!!r||!!options.returnReasonIfNotEqual&&">>> {-> "+_represent(e)+" not found}"};return t?0:(n.length&&promises.push(new Promise((function(e){Promise.all(n).then((function(r){e(s(r.some((function(e){return e}))))}),(function(){}))}))),{v:s(!1)})}},_ret4,_iterator14=_createForOfIteratorHelperLoose(first),_step14;!(_step14=_iterator14()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i15],r=e[0],t=e[1];if(options.properties&&!options.properties.includes(r))return 0;for(var n,o=!1,a=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(n=a()).done;){var i=n.value;if(r.toString().startsWith(i)){o=!0;break}}if(o)return 0;if(0!==options.deep){var s=_equals(t,second[r],_extends({},options,{deep:options.deep-1}));if(!s)return{v:!1};var u=function(e){var t;return"string"==typeof e?r+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(s,"then")&&promises.push(s.then(u)),"string"==typeof s)return{v:u(s)}}},_ret5,_i15=0,_Object$entries7=Object.entries(first);_i15<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i15++)if(_ret5)return _ret5.v}return!promises.length||new Promise((function(e){Promise.all(promises).then((function(r){for(var t,n=_createForOfIteratorHelperLoose(r);!(t=n()).done;){var o=t.value;if(!o||"string"==typeof o){e(o);break}}e(!0)}),(function(){}))}))}return!!options.returnReasonIfNotEqual&&">>> "+_represent(firstValue)+" !== "+_represent(secondValue)},evaluateDynamicData=function(e,r,t,n,o){if(void 0===r&&(r={}),void 0===t&&(t="self"),void 0===n&&(n="__evaluate__"),void 0===o&&(o="__execute__"),"object"!=typeof e||null===e)return e;t in r||(r[t]=e);var a=function(e,t){void 0===t&&(t=n);var a=evaluate(e,r,t===o);if(a.error)throw new Error(a.error);return a.result},i=function(e){if("object"!=typeof e||null===e||"undefined"==typeof Proxy)return e;for(var r=0,t=Object.entries(e);r<t.length;r++){var u=t[r],l=u[0],_=u[1];if("__target__"!==l&&null!==_&&"object"==typeof _){var f=_;if(i(f),Object.prototype.hasOwnProperty.call(f,n)||Object.prototype.hasOwnProperty.call(f,o)){var c=f;e[l]=new Proxy(f,{get:function(e,r){if("__target__"===r)return e;if("hasOwnProperty"===r)return e[r];for(var t=0,i=[n,o];t<i.length;t++){var u=i[t];if(r===u&&"string"==typeof e[r])return s(a(e[r],u))}var l=s(e);if("toString"===r){var _=a(l);return _[r].bind(_)}if("string"!=typeof r){var f,c=a(l);return null!=(f=c[r])&&f.bind?c[r].bind(c):c[r]}for(var p=0,d=[n,o];p<d.length;p++){var v=d[p];if(Object.prototype.hasOwnProperty.call(e,v))return a(l,v)[r]}return l[r]},ownKeys:function(e){for(var r=0,t=[n,o];r<t.length;r++){var i=t[r];if(Object.prototype.hasOwnProperty.call(e,i))return Object.getOwnPropertyNames(s(a(e[i],i)))}return Object.getOwnPropertyNames(e)}}),e[l].__target__||(e[l].__target__=c)}}}return e},s=function(e){if(null!==e&&"object"==typeof e){if(isProxy(e)){for(var r=0,t=[n,o];r<t.length;r++){var i=t[r];if(Object.prototype.hasOwnProperty.call(e,i))return e[i]}e=e.__target__}for(var u=0,l=Object.entries(e);u<l.length;u++){var _=l[u],f=_[0],c=_[1];if([n,o].includes(f))return"undefined"==typeof Proxy?s(a(c)):c;e[f]=s(c)}}return e};r.resolve=s;var u=function(e){if(null!==e&&"object"==typeof e)for(var r=0,t=Object.entries(e);r<t.length;r++){var n=t[r],o=n[0],a=n[1];if("__target__"!==o&&null!==a&&["function","undefined"].includes(typeof a)){var i=a.__target__;void 0!==i&&(e[o]=i),u(a)}}return e};return Object.prototype.hasOwnProperty.call(e,n)?a(e[n]):Object.prototype.hasOwnProperty.call(e,o)?a(e[o],o):u(s(i(e)))},_removeKeysInEvaluation=function(e,r){void 0===r&&(r=["__evaluate__","__execute__"]);for(var t=0,n=Object.entries(e);t<n.length;t++){var o=n[t],a=o[0],i=o[1];!r.includes(a)&&r.some((function(r){return Object.prototype.hasOwnProperty.call(e,r)}))?delete e[a]:isPlainObject(i)&&_removeKeysInEvaluation(i,r)}return e},_extend=function(e,r){for(var t=!1,n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];var i,s=o;e===IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof e?(t=e,i=r):(i=e,null!==r&&"object"==typeof r?s=[r].concat(s):void 0!==r&&(i=r));for(var u,l=function(e,r){return r===e?e:t&&r&&(isPlainObject(r)||isMap(r))?(n=isMap(r)?e&&isMap(e)?e:new Map:e&&isPlainObject(e)?e:{},_extend(t,n,r)):r;var n},_=_createForOfIteratorHelperLoose(s);!(u=_()).done;){var f=u.value,c=typeof i,p=typeof f;if(isMap(i)&&(c+=" Map"),isMap(f)&&(p+=" Map"),c===p&&i!==f)if(isMap(i)&&isMap(f))for(var d,v=_createForOfIteratorHelperLoose(f);!(d=v()).done;){var y=d.value,b=y[0],O=y[1];i.set(b,l(i.get(b),O))}else if(null===i||Array.isArray(i)||"object"!=typeof i||null===f||Array.isArray(f)||"object"!=typeof f)i=f;else for(var g=0,h=Object.entries(f);g<h.length;g++){var j=h[g],m=j[0],P=j[1];t===IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,void 0].includes(P)||(i[m]=l(i[m],P))}else i=f}return i},getSubstructure=function(e,r,t,n){void 0===t&&(t=!0),void 0===n&&(n=".");for(var o,a=[],i=_createForOfIteratorHelperLoose([].concat(r));!(o=i()).done;){var s=o.value;if("string"==typeof s)for(var u,l=_createForOfIteratorHelperLoose(s.split(n));!(u=l()).done;){var _=u.value;if(_){var f=_.match(/(.*?)(\[[0-9]+\])/g);if(f)for(var c,p=_createForOfIteratorHelperLoose(f);!(c=p()).done;){var d=c.value,v=/(.*?)(\[[0-9]+])/.exec(d),y="",b="";v&&(y=v[1],b=v[2],y&&a.push(y)),a.push(b.substring(1,b.length-1))}else a.push(_)}}else a=a.concat(s)}for(var O,g=e,h=_createForOfIteratorHelperLoose(a);!(O=h()).done;){var j=O.value;if(null!==g&&"object"==typeof g){if("string"==typeof j&&Object.prototype.hasOwnProperty.call(g,j))g=g[j];else if(isFunction(j))g=j(g);else if(!t)return}else if(!t)return}return g},getProxyHandler=function(e,r){return void 0===r&&(r={}),r=_extends({delete:"[]",get:"[]",has:"[]",set:"[]"},r),{deleteProperty:function(t,n){return"[]"!==r.delete||"string"!=typeof n?e[r.delete](n):(delete e[n],!0)},get:function(t,n){return"[]"===r.get&&"string"==typeof n?e[n]:e[r.get](n)},has:function(t,n){return"[]"===r.has?n in e:e[r.has](n)},set:function(t,n,o){return"[]"!==r.set||"string"!=typeof n?e[r.set](n,o):(e[n]=o,!0)}}},_mask=function(e,r){if(!0===(r=_extends({exclude:!1,include:!0},r)).exclude||Array.isArray(r.exclude)&&0===r.exclude.length||!1===r.include||"object"!=typeof e)return{};var t=Array.isArray(r.exclude)?r.exclude.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.exclude,n=Array.isArray(r.include)?r.include.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.include,o={};if(isPlainObject(n))for(var a=0,i=Object.entries(n);a<i.length;a++){var s=i[a],u=s[0],l=s[1];Object.prototype.hasOwnProperty.call(e,u)&&(!0===l?o[u]=e[u]:(isPlainObject(l)||Array.isArray(l)&&l.length)&&"object"==typeof e[u]&&(o[u]=_mask(e[u],{include:l})))}else o=e;if(isPlainObject(t)){for(var _=!1,f=_extends({},o),c=0,p=Object.entries(t);c<p.length;c++){var d=p[c],v=d[0],y=d[1];if(Object.prototype.hasOwnProperty.call(f,v))if(!0===y)_=!0,delete f[v];else if((isPlainObject(y)||Array.isArray(y)&&y.length)&&"object"==typeof f[v]){var b=f[v];f[v]=_mask(f[v],{exclude:y}),f[v]!==b&&(_=!0)}}_&&(o=f)}return o},_modifyObject=function(e,r,t,n,o,a,i,s,u){if(void 0===t&&(t="__remove__"),void 0===n&&(n="__prepend__"),void 0===o&&(o="__append__"),void 0===a&&(a="__"),void 0===i&&(i="__"),void 0===s&&(s=null),void 0===u&&(u=null),isMap(r)&&isMap(e))for(var l,_=_createForOfIteratorHelperLoose(r);!(l=_()).done;){var f=l.value,c=f[0],p=f[1];e.has(c)&&_modifyObject(e.get(c),p,t,n,o,a,i,r,c)}else if(null!==r&&"object"==typeof r&&null!==e&&"object"==typeof e)for(var d=0,v=Object.entries(r);d<v.length;d++){var y=v[d],b=y[0],O=y[1],g=NaN;if(Array.isArray(e)&&b.startsWith(a)&&b.endsWith(i)&&((g=parseInt(b.substring(a.length,b.length-i.length),10))<0||g>=e.length)&&(g=NaN),[t,n,o].includes(b)||!isNaN(g)){if(Array.isArray(e))if(b===t)for(var h,j=_createForOfIteratorHelperLoose([].concat(O));!(h=j()).done;){var m=h.value;"string"==typeof m&&m.startsWith(a)&&m.endsWith(i)?e.splice(parseInt(m.substring(a.length,m.length-i.length),10),1):e.includes(m)?e.splice(e.indexOf(m),1):"number"==typeof m&&m<e.length&&e.splice(m,1)}else b===o?e=e.concat(O):b===n?e=[].concat(O).concat(e):null!==e[g]&&"object"==typeof e[g]&&null!==O&&"object"==typeof O?_extend(!0,_modifyObject(e[g],O,t,n,o,a,i),e[g],O):e[g]=O;else if(b===t)for(var P,A=_createForOfIteratorHelperLoose([].concat(O));!(P=A()).done;){var I=P.value;"string"==typeof I&&Object.prototype.hasOwnProperty.call(e,I)&&delete e[I]}delete r[b],s&&"string"==typeof u&&delete s[u]}else null!==e&&Object.prototype.hasOwnProperty.call(e,b)&&(e[b]=_modifyObject(e[b],O,t,n,o,a,i,r,b))}return e},_removeKeyPrefixes=function(e,r){void 0===r&&(r="#");var t=[].concat(r);if(Array.isArray(e))for(var n,o=0,a=_createForOfIteratorHelperLoose(e.slice());!(n=a()).done;){var i=n.value,s=!1;if("string"==typeof i){for(var u,l=_createForOfIteratorHelperLoose(t);!(u=l()).done;){var _=u.value;if(i.startsWith(_+":")){e.splice(o,1),s=!0;break}}if(s)continue}e[o]=_removeKeyPrefixes(i,t),o+=1}else if(isSet(e))for(var f,c=_createForOfIteratorHelperLoose(new Set(e));!(f=c()).done;){var p=f.value,d=!1;if("string"==typeof p){for(var v,y=_createForOfIteratorHelperLoose(t);!(v=y()).done;){var b=v.value;if(p.startsWith(b+":")){e.delete(p),d=!0;break}}if(d)continue}_removeKeyPrefixes(p,t)}else if(isMap(e))for(var O,g=_createForOfIteratorHelperLoose(new Map(e));!(O=g()).done;){var h=O.value,j=h[0],m=h[1],P=!1;if("string"==typeof j){for(var A,I=_createForOfIteratorHelperLoose(t);!(A=I()).done;){var x=A.value,w=escapeRegularExpressions(x);if(new RegExp("^"+w+"[0-9]*$").test(j)){e.delete(j),P=!0;break}}if(P)continue}e.set(j,_removeKeyPrefixes(m,t))}else if(null!==e&&"object"==typeof e)for(var E=0,M=Object.entries(Object.assign({},e));E<M.length;E++){for(var L,S=M[E],T=S[0],F=S[1],N=!1,k=_createForOfIteratorHelperLoose(t);!(L=k()).done;){var V=L.value,D=escapeRegularExpressions(V);if(new RegExp("^"+D+"[0-9]*$").test(T)){delete e[T],N=!0;break}}N||(e[T]=_removeKeyPrefixes(F,t))}return e},_represent=function(e,r,t,n,o){if(void 0===r&&(r=" "),void 0===t&&(t=""),void 0===n&&(n="__maximum_number_of_levels_reached__"),void 0===o&&(o=8),0===o)return String(n);if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return'"'+e.replace(/\n/g,"\n"+t)+'"';if(isNumeric(e)||"boolean"==typeof e)return String(e);if(Array.isArray(e)){for(var a,i="[",s=!1,u=_createForOfIteratorHelperLoose(e);!(a=u()).done;){var l=a.value;s&&(i+=","),i+="\n"+t+r+_represent(l,r,""+t+r,n,o-1),s=!0}return s&&(i+="\n"+t),i+="]"}if(isMap(e)){for(var _,f="",c=!1,p=_createForOfIteratorHelperLoose(e);!(_=p()).done;){var d=_.value,v=d[0],y=d[1];c&&(f+=",\n"+t+r),f+=_represent(v,r,""+t+r,n,o-1)+" -> "+_represent(y,r,""+t+r,n,o-1),c=!0}return c||(f="EmptyMap"),f}if(isSet(e)){for(var b,O="{",g=!1,h=_createForOfIteratorHelperLoose(e);!(b=h()).done;){var j=b.value;g&&(O+=","),O+="\n"+t+r+_represent(j,r,""+t+r,n,o-1),g=!0}return g?O+="\n"+t+"}":O="EmptySet",O}if(isFunction(e))return"__function__";for(var m,P="{",A=!1,I=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(e).sort());!(m=I()).done;){var x=m.value;A&&(P+=","),P+="\n"+t+r+x+": "+_represent(e[x],r,""+t+r,n,o-1),A=!0}return A&&(P+="\n"+t),P+="}"},sort=function(e){var r=[];if(Array.isArray(e))for(var t=0;t<e.length;t++)r.push(t);else if("object"==typeof e)if(isMap(e))for(var n,o=_createForOfIteratorHelperLoose(e);!(n=o()).done;){var a=n.value;r.push(a[0])}else if(null!==e)for(var i=0,s=Object.keys(e);i<s.length;i++){var u=s[i];r.push(u)}return r.sort()},_unwrapProxy=function(e,r){if(void 0===r&&(r=new Set),null!==e&&"object"==typeof e){if(r.has(e))return e;try{isFunction(e.__revoke__)&&(isProxy(e)&&(e=e.__target__),e.__revoke__())}catch(r){return e}finally{r.add(e)}if(Array.isArray(e))for(var t,n=0,o=_createForOfIteratorHelperLoose(e);!(t=o()).done;){var a=t.value;e[n]=_unwrapProxy(a,r),n+=1}else if(isMap(e))for(var i,s=_createForOfIteratorHelperLoose(e);!(i=s()).done;){var u=i.value,l=u[0],_=u[1];e.set(l,_unwrapProxy(_,r))}else if(isSet(e)){for(var f,c=[],p=_createForOfIteratorHelperLoose(e);!(f=p()).done;){var d=f.value;e.delete(d),c.push(_unwrapProxy(d,r))}for(var v=0,y=c;v<y.length;v++){var b=y[v];e.add(b)}}else for(var O=0,g=Object.entries(e);O<g.length;O++){var h=g[O],j=h[0],m=h[1];e[j]=_unwrapProxy(m,r)}}return e}}],__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](t,t.exports,__webpack_require__),t.exports}__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{isAnyMatching:function(){return isAnyMatching},isArrayLike:function(){return isArrayLike},isFunction:function(){return indicators_isFunction},isMap:function(){return indicators_isMap},isNumeric:function(){return indicators_isNumeric},isObject:function(){return isObject},isPlainObject:function(){return indicators_isPlainObject},isProxy:function(){return indicators_isProxy},isSet:function(){return indicators_isSet},isWindow:function(){return isWindow}});var _constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_object__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var indicators_isNumeric=function(e){var r=(0,_object__WEBPACK_IMPORTED_MODULE_0__.determineType)(e);return["number","string"].includes(r)&&!isNaN(e-parseFloat(e))},isWindow=function(e){return![null,void 0].includes(e)&&"object"==typeof e&&e===(null==e?void 0:e.window)},isArrayLike=function(e){var r;try{r=Boolean(e)&&e.length}catch(e){return!1}var t=(0,_object__WEBPACK_IMPORTED_MODULE_0__.determineType)(e);if("function"===t||isWindow(e))return!1;if("array"===t||0===r)return!0;if("number"==typeof r&&r>0)try{e[r-1];return!0}catch(e){}return!1},isAnyMatching=function(e,r){for(var t,n=_createForOfIteratorHelperLoose(r);!(t=n()).done;){var o=t.value;if("string"==typeof o){if(o===e)return!0}else if(o.test(e))return!0}return!1},isObject=function(e){return null!==e&&"object"==typeof e},indicators_isPlainObject=function(e){return null!==e&&"object"==typeof e&&_constants__WEBPACK_IMPORTED_MODULE_1__.PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(e))},indicators_isSet=function(e){return"set"===(0,_object__WEBPACK_IMPORTED_MODULE_0__.determineType)(e)},indicators_isMap=function(e){return"map"===(0,_object__WEBPACK_IMPORTED_MODULE_0__.determineType)(e)},indicators_isProxy=function(e){return Boolean(e.__target__)},indicators_isFunction=function(e){return Boolean(e)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(e))};return __webpack_exports__}()}));
1
+ "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@babel/runtime/helpers/extends"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends"],r);else{var t="object"==typeof exports?r(require("@babel/runtime/helpers/extends")):r(e["@babel/runtime/helpers/extends"]);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__2__){return function(){var __webpack_modules__=[function(e,r,t){t.d(r,{CLASS_TO_TYPE_MAPPING:function(){return n},PLAIN_OBJECT_PROTOTYPES:function(){return o}});Symbol.for("clientnodeValue"),Symbol.for("clientnodeIgnoreNullAndUndefined");var n={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"},o=[Object.prototype]},,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__2__},,function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{determineType:function(){return determineType}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var _addDynamicGetterAndSetter=function(e,r,t,n,o,a){if(void 0===r&&(r=null),void 0===t&&(t=null),void 0===n&&(n={}),void 0===o&&(o=!0),void 0===a&&(a=[Object]),o&&"object"==typeof e)if(Array.isArray(e))for(var i,s=0,u=_createForOfIteratorHelperLoose(e);!(i=u()).done;){var l=i.value;e[s]=_addDynamicGetterAndSetter(l,r,t,n,o),s+=1}else if(isMap(e))for(var _,f=_createForOfIteratorHelperLoose(e);!(_=f()).done;){var c=_.value,p=c[0],d=c[1];e.set(p,_addDynamicGetterAndSetter(d,r,t,n,o))}else if(isSet(e)){for(var v,y=[],b=_createForOfIteratorHelperLoose(e);!(v=b()).done;){var O=v.value;e.delete(O),y.push(_addDynamicGetterAndSetter(O,r,t,n,o))}for(var g=0,h=y;g<h.length;g++){var j=h[g];e.add(j)}}else if(null!==e)for(var m=0,P=Object.entries(e);m<P.length;m++){var A=P[m],I=A[0],x=A[1];e[I]=_addDynamicGetterAndSetter(x,r,t,n,o)}if(r||t)for(var w,E,M=function(){var o=E.value;if(null!==e&&"object"==typeof e&&e instanceof o){var a=getProxyHandler(e,n),i=getProxyHandler(e,n);r&&(i.get=function(t,n){return"__target__"===n?e:"__revoke__"===n?function(){return l(),e}:"function"==typeof e[n]?e[n]:r(a.get(u,n),n,e)}),t&&(i.set=function(r,n,o){return a.set(u,n,t(n,o,e))});var s=Proxy.revocable({},i),u=s.proxy,l=s.revoke;return{v:u}}},L=_createForOfIteratorHelperLoose(a);!(E=L()).done;)if(w=M())return w.v;return e},convertCircularObjectToJSON=function(e,r,t){void 0===r&&(r=function(e){return null!=e?e:"__circularReference__"}),void 0===t&&(t=0);var n=new Map;return function(e){var o=function(e,t){if(null!==t&&"object"==typeof t){var a,i;if(n.has(t))return r(null!==(a=n.get(t))&&void 0!==a?a:null,e,t,n);if(n.set(t,null),Array.isArray(t)){i=[];for(var s,u=_createForOfIteratorHelperLoose(t);!(s=u()).done;){var l=s.value;i.push(o(null,l))}}else{i={};for(var _=0,f=Object.entries(t);_<f.length;_++){var c=f[_],p=c[0],d=c[1];i[p]=o(p,d)}}return n.set(t,i),i}return t};return JSON.stringify(e,o,t)}(e)},_convertMapToPlainObject=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isMap(e)){for(var t,n={},o=_createForOfIteratorHelperLoose(e);!(t=o()).done;){var a=t.value,i=a[0],s=a[1];r&&(s=_convertMapToPlainObject(s,r)),["number","string"].includes(typeof i)&&(n[String(i)]=s)}return n}if(r)if(isPlainObject(e))for(var u=0,l=Object.entries(e);u<l.length;u++){var _=l[u],f=_[0],c=_[1];e[f]=_convertMapToPlainObject(c,r)}else if(Array.isArray(e))for(var p=0,d=0,v=e;d<v.length;d++){var y=v[d];e[p]=_convertMapToPlainObject(y,r),p+=1}else if(isSet(e)){for(var b,O=[],g=_createForOfIteratorHelperLoose(e);!(b=g()).done;){var h=b.value;e.delete(h),O.push(_convertMapToPlainObject(h,r))}for(var j=0,m=O;j<m.length;j++){var P=m[j];e.add(P)}}}return e},_convertPlainObjectToMap=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isPlainObject(e)){for(var t=new Map,n=0,o=Object.entries(e);n<o.length;n++){var a=o[n],i=a[0],s=a[1];r&&(e[i]=_convertPlainObjectToMap(s,r)),t.set(i,e[i])}return t}if(r)if(Array.isArray(e))for(var u=0,l=0,_=e;l<_.length;l++){var f=_[l];e[u]=_convertPlainObjectToMap(f,r),u+=1}else if(isMap(e))for(var c,p=_createForOfIteratorHelperLoose(e);!(c=p()).done;){var d=c.value,v=d[0],y=d[1];e.set(v,_convertPlainObjectToMap(y,r))}else if(isSet(e)){for(var b,O=[],g=_createForOfIteratorHelperLoose(e);!(b=g()).done;){var h=b.value;e.delete(h),O.push(_convertPlainObjectToMap(h,r))}for(var j=0,m=O;j<m.length;j++){var P=m[j];e.add(P)}}}return e},_convertSubstringInPlainObject=function(e,r,t){for(var n=0,o=Object.entries(e);n<o.length;n++){var a=o[n],i=a[0],s=a[1];isPlainObject(s)?e[i]=_convertSubstringInPlainObject(s,r,t):"string"==typeof s&&(e[i]=s.replace(r,t))}return e},_copy=function(e,r,t,n,o,a,i){if(void 0===r&&(r=-1),void 0===t&&(t=VALUE_COPY_SYMBOL),void 0===n&&(n=null),void 0===o&&(o=!1),void 0===a&&(a=[]),void 0===i&&(i=0),null!==e&&"object"==typeof e){if(!n){if(Array.isArray(e))return _copy(e,r,t,[],o,a,i);if(e instanceof Map)return _copy(e,r,t,new Map,o,a,i);if(e instanceof Set)return _copy(e,r,t,new Set,o,a,i);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var s=/[^/]*$/.exec(e.toString());return(n=new RegExp(e.source,s?s[0]:void 0)).lastIndex=e.lastIndex,n}return"undefined"!=typeof Blob&&e instanceof Blob?e.slice(0,e.size,e.type):_copy(e,r,t,{},o,a,i)}if(e===n)throw new Error("Can't copy because source and destination are identical.");if(!o&&![void 0,null].includes(e)){var u=a.indexOf(e);if(-1!==u)return a[u];a.push(e)}var l=function(e){if(-1!==r&&r<i+1)return t===VALUE_COPY_SYMBOL?e:t;var n=_copy(e,r,t,null,o,a,i+1);return o||[void 0,null].includes(e)||"object"!=typeof e||a.push(e),n};if(Array.isArray(e))for(var _,f=_createForOfIteratorHelperLoose(e);!(_=f()).done;){var c=_.value;n.push(l(c))}else if(e instanceof Map)for(var p,d=_createForOfIteratorHelperLoose(e);!(p=d()).done;){var v=p.value,y=v[0],b=v[1];n.set(y,l(b))}else if(e instanceof Set)for(var O,g=_createForOfIteratorHelperLoose(e);!(O=g()).done;){var h=O.value;n.add(l(h))}else for(var j=0,m=Object.entries(e);j<m.length;j++){var P=m[j],A=P[0],I=P[1];try{n[A]=l(I)}catch(e){throw new Error('Failed to copy property value object "'+A+'": '+_represent(e))}}}return n||e},determineType=function(e){if(void 0===e&&(e=void 0),[null,void 0].includes(e))return String(e);var r=typeof e;if(["function","object"].includes(r)&&"toString"in e){var t=Object.prototype.toString.call(e);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING,t))return _constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING[t]}return r},_equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_extends({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&isFunction(firstValue)&&isFunction(secondValue)||firstValue===secondValue||isNotANumber(firstValue)&&isNotANumber(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&Object.prototype.hasOwnProperty.call(eval("Buffer"),"isBuffer")&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise((function(e){for(var r=[],t=0,n=[firstValue,secondValue];t<n.length;t++){var o=n[t],a=new FileReader;a.onload=function(t){null===t.target?r.push(null):r.push(t.target.result),2===r.length&&(r[0]===r[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+_represent(r[0])+") !== Blob("+_represent(r[1])+")"))},a.readAsDataURL(o)}}));if(isPlainObject(firstValue)&&isPlainObject(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i13=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i13<_arr4.length;_i13++){var _arr4$_i=_arr4[_i13],first=_arr4$_i[0],second=_arr4$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=isMap(first);if(firstIsMap&&(!isMap(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=isSet(first);if(firstIsSet&&(!isSet(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray){for(var index=0,_loop2=function(){var e=_arr5[_i14];if(0!==options.deep){var r=_equals(e,second[index],_extends({},options,{deep:options.deep-1}));if(!r)return{v:!1};var t=index,n=function(e){var r;return"string"==typeof e?"["+String(t)+"]"+(null!==(r={"[":"",">":" "}[e[0]])&&void 0!==r?r:".")+e:e};if(Object.prototype.hasOwnProperty.call(r,"then")&&promises.push(r.then(n)),"string"==typeof r)return{v:n(r)}}index+=1},_ret2,_i14=0,_arr5=first;_i14<_arr5.length;_i14++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step13.value,r=e[0],t=e[1];if(0!==options.deep){var n=_equals(t,second.get(r),_extends({},options,{deep:options.deep-1}));if(!n)return{v:!1};var o=function(e){var t;return"string"==typeof e?"get("+_represent(r)+")"+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(n,"then")&&promises.push(n.then(o)),"string"==typeof n)return{v:o(n)}}},_ret3,_iterator13=_createForOfIteratorHelperLoose(first),_step13;!(_step13=_iterator13()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step14.value;if(0!==options.deep){for(var r,t=!1,n=[],o=_createForOfIteratorHelperLoose(second);!(r=o()).done;){var a=r.value,i=_equals(e,a,_extends({},options,{deep:options.deep-1}));if("boolean"==typeof i){if(i){t=!0;break}}else n.push(i)}var s=function(r){return!!r||!!options.returnReasonIfNotEqual&&">>> {-> "+_represent(e)+" not found}"};return t?0:(n.length&&promises.push(new Promise((function(e){Promise.all(n).then((function(r){e(s(r.some((function(e){return e}))))}),(function(){}))}))),{v:s(!1)})}},_ret4,_iterator14=_createForOfIteratorHelperLoose(first),_step14;!(_step14=_iterator14()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i15],r=e[0],t=e[1];if(options.properties&&!options.properties.includes(r))return 0;for(var n,o=!1,a=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(n=a()).done;){var i=n.value;if(r.toString().startsWith(i)){o=!0;break}}if(o)return 0;if(0!==options.deep){var s=_equals(t,second[r],_extends({},options,{deep:options.deep-1}));if(!s)return{v:!1};var u=function(e){var t;return"string"==typeof e?r+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(s,"then")&&promises.push(s.then(u)),"string"==typeof s)return{v:u(s)}}},_ret5,_i15=0,_Object$entries7=Object.entries(first);_i15<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i15++)if(_ret5)return _ret5.v}return!promises.length||new Promise((function(e){Promise.all(promises).then((function(r){for(var t,n=_createForOfIteratorHelperLoose(r);!(t=n()).done;){var o=t.value;if(!o||"string"==typeof o){e(o);break}}e(!0)}),(function(){}))}))}return!!options.returnReasonIfNotEqual&&">>> "+_represent(firstValue)+" !== "+_represent(secondValue)},evaluateDynamicData=function(e,r,t,n,o){if(void 0===r&&(r={}),void 0===t&&(t="self"),void 0===n&&(n="__evaluate__"),void 0===o&&(o="__execute__"),"object"!=typeof e||null===e)return e;t in r||(r[t]=e);var a=function(e,t){void 0===t&&(t=n);var a=evaluate(e,r,t===o);if(a.error)throw new Error(a.error);return a.result},i=function(e){if("object"!=typeof e||null===e||"undefined"==typeof Proxy)return e;for(var r=0,t=Object.entries(e);r<t.length;r++){var u=t[r],l=u[0],_=u[1];if("__target__"!==l&&null!==_&&"object"==typeof _){var f=_;if(i(f),Object.prototype.hasOwnProperty.call(f,n)||Object.prototype.hasOwnProperty.call(f,o)){var c=f;e[l]=new Proxy(f,{get:function(e,r){if("__target__"===r)return e;if("hasOwnProperty"===r)return e[r];for(var t=0,i=[n,o];t<i.length;t++){var u=i[t];if(r===u&&"string"==typeof e[r])return s(a(e[r],u))}var l=s(e);if("toString"===r){var _=a(l);return _[r].bind(_)}if("string"!=typeof r){var f,c=a(l);return null!=(f=c[r])&&f.bind?c[r].bind(c):c[r]}for(var p=0,d=[n,o];p<d.length;p++){var v=d[p];if(Object.prototype.hasOwnProperty.call(e,v))return a(l,v)[r]}return l[r]},ownKeys:function(e){for(var r=0,t=[n,o];r<t.length;r++){var i=t[r];if(Object.prototype.hasOwnProperty.call(e,i))return Object.getOwnPropertyNames(s(a(e[i],i)))}return Object.getOwnPropertyNames(e)}}),e[l].__target__||(e[l].__target__=c)}}}return e},s=function(e){if(null!==e&&"object"==typeof e){if(isProxy(e)){for(var r=0,t=[n,o];r<t.length;r++){var i=t[r];if(Object.prototype.hasOwnProperty.call(e,i))return e[i]}e=e.__target__}for(var u=0,l=Object.entries(e);u<l.length;u++){var _=l[u],f=_[0],c=_[1];if([n,o].includes(f))return"undefined"==typeof Proxy?s(a(c)):c;e[f]=s(c)}}return e};r.resolve=s;var u=function(e){if(null!==e&&"object"==typeof e)for(var r=0,t=Object.entries(e);r<t.length;r++){var n=t[r],o=n[0],a=n[1];if("__target__"!==o&&null!==a&&["function","undefined"].includes(typeof a)){var i=a.__target__;void 0!==i&&(e[o]=i),u(a)}}return e};return Object.prototype.hasOwnProperty.call(e,n)?a(e[n]):Object.prototype.hasOwnProperty.call(e,o)?a(e[o],o):u(s(i(e)))},_removeKeysInEvaluation=function(e,r){void 0===r&&(r=["__evaluate__","__execute__"]);for(var t=0,n=Object.entries(e);t<n.length;t++){var o=n[t],a=o[0],i=o[1];!r.includes(a)&&r.some((function(r){return Object.prototype.hasOwnProperty.call(e,r)}))?delete e[a]:isPlainObject(i)&&_removeKeysInEvaluation(i,r)}return e},_extend=function(e,r){for(var t=!1,n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];var i,s=o;e===IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof e?(t=e,i=r):(i=e,null!==r&&"object"==typeof r?s=[r].concat(s):void 0!==r&&(i=r));for(var u,l=function(e,r){return r===e?e:t&&r&&(isPlainObject(r)||isMap(r))?(n=isMap(r)?e&&isMap(e)?e:new Map:e&&isPlainObject(e)?e:{},_extend(t,n,r)):r;var n},_=_createForOfIteratorHelperLoose(s);!(u=_()).done;){var f=u.value,c=typeof i,p=typeof f;if(isMap(i)&&(c+=" Map"),isMap(f)&&(p+=" Map"),c===p&&i!==f)if(isMap(i)&&isMap(f))for(var d,v=_createForOfIteratorHelperLoose(f);!(d=v()).done;){var y=d.value,b=y[0],O=y[1];i.set(b,l(i.get(b),O))}else if(null===i||Array.isArray(i)||"object"!=typeof i||null===f||Array.isArray(f)||"object"!=typeof f)i=f;else for(var g=0,h=Object.entries(f);g<h.length;g++){var j=h[g],m=j[0],P=j[1];t===IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,void 0].includes(P)||(i[m]=l(i[m],P))}else i=f}return i},getSubstructure=function(e,r,t,n){void 0===t&&(t=!0),void 0===n&&(n=".");for(var o,a=[],i=_createForOfIteratorHelperLoose([].concat(r));!(o=i()).done;){var s=o.value;if("string"==typeof s)for(var u,l=_createForOfIteratorHelperLoose(s.split(n));!(u=l()).done;){var _=u.value;if(_){var f=_.match(/(.*?)(\[[0-9]+])/g);if(f)for(var c,p=_createForOfIteratorHelperLoose(f);!(c=p()).done;){var d=c.value,v=/(.*?)(\[[0-9]+])/.exec(d),y="",b="";v&&(y=v[1],b=v[2],y&&a.push(y)),a.push(b.substring(1,b.length-1))}else a.push(_)}}else a=a.concat(s)}for(var O,g=e,h=_createForOfIteratorHelperLoose(a);!(O=h()).done;){var j=O.value;if(null!==g&&"object"==typeof g){if("string"==typeof j&&Object.prototype.hasOwnProperty.call(g,j))g=g[j];else if(isFunction(j))g=j(g);else if(!t)return}else if(!t)return}return g},getProxyHandler=function(e,r){return void 0===r&&(r={}),r=_extends({delete:"[]",get:"[]",has:"[]",set:"[]"},r),{deleteProperty:function(t,n){return"[]"!==r.delete||"string"!=typeof n?e[r.delete](n):(delete e[n],!0)},get:function(t,n){return"[]"===r.get&&"string"==typeof n?e[n]:e[r.get](n)},has:function(t,n){return"[]"===r.has?n in e:e[r.has](n)},set:function(t,n,o){return"[]"!==r.set||"string"!=typeof n?e[r.set](n,o):(e[n]=o,!0)}}},_mask=function(e,r){if(!0===(r=_extends({exclude:!1,include:!0},r)).exclude||Array.isArray(r.exclude)&&0===r.exclude.length||!1===r.include||"object"!=typeof e)return{};var t=Array.isArray(r.exclude)?r.exclude.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.exclude,n=Array.isArray(r.include)?r.include.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.include,o={};if(isPlainObject(n))for(var a=0,i=Object.entries(n);a<i.length;a++){var s=i[a],u=s[0],l=s[1];Object.prototype.hasOwnProperty.call(e,u)&&(!0===l?o[u]=e[u]:(isPlainObject(l)||Array.isArray(l)&&l.length)&&"object"==typeof e[u]&&(o[u]=_mask(e[u],{include:l})))}else o=e;if(isPlainObject(t)){for(var _=!1,f=_extends({},o),c=0,p=Object.entries(t);c<p.length;c++){var d=p[c],v=d[0],y=d[1];if(Object.prototype.hasOwnProperty.call(f,v))if(!0===y)_=!0,delete f[v];else if((isPlainObject(y)||Array.isArray(y)&&y.length)&&"object"==typeof f[v]){var b=f[v];f[v]=_mask(f[v],{exclude:y}),f[v]!==b&&(_=!0)}}_&&(o=f)}return o},_modifyObject=function(e,r,t,n,o,a,i,s,u){if(void 0===t&&(t="__remove__"),void 0===n&&(n="__prepend__"),void 0===o&&(o="__append__"),void 0===a&&(a="__"),void 0===i&&(i="__"),void 0===s&&(s=null),void 0===u&&(u=null),isMap(r)&&isMap(e))for(var l,_=_createForOfIteratorHelperLoose(r);!(l=_()).done;){var f=l.value,c=f[0],p=f[1];e.has(c)&&_modifyObject(e.get(c),p,t,n,o,a,i,r,c)}else if(null!==r&&"object"==typeof r&&null!==e&&"object"==typeof e)for(var d=0,v=Object.entries(r);d<v.length;d++){var y=v[d],b=y[0],O=y[1],g=NaN;if(Array.isArray(e)&&b.startsWith(a)&&b.endsWith(i)&&((g=parseInt(b.substring(a.length,b.length-i.length),10))<0||g>=e.length)&&(g=NaN),[t,n,o].includes(b)||!isNaN(g)){if(Array.isArray(e))if(b===t)for(var h,j=_createForOfIteratorHelperLoose([].concat(O));!(h=j()).done;){var m=h.value;"string"==typeof m&&m.startsWith(a)&&m.endsWith(i)?e.splice(parseInt(m.substring(a.length,m.length-i.length),10),1):e.includes(m)?e.splice(e.indexOf(m),1):"number"==typeof m&&m<e.length&&e.splice(m,1)}else b===o?e=e.concat(O):b===n?e=[].concat(O).concat(e):null!==e[g]&&"object"==typeof e[g]&&null!==O&&"object"==typeof O?_extend(!0,_modifyObject(e[g],O,t,n,o,a,i),e[g],O):e[g]=O;else if(b===t)for(var P,A=_createForOfIteratorHelperLoose([].concat(O));!(P=A()).done;){var I=P.value;"string"==typeof I&&Object.prototype.hasOwnProperty.call(e,I)&&delete e[I]}delete r[b],s&&"string"==typeof u&&delete s[u]}else null!==e&&Object.prototype.hasOwnProperty.call(e,b)&&(e[b]=_modifyObject(e[b],O,t,n,o,a,i,r,b))}return e},_removeKeyPrefixes=function(e,r){void 0===r&&(r="#");var t=[].concat(r);if(Array.isArray(e))for(var n,o=0,a=_createForOfIteratorHelperLoose(e.slice());!(n=a()).done;){var i=n.value,s=!1;if("string"==typeof i){for(var u,l=_createForOfIteratorHelperLoose(t);!(u=l()).done;){var _=u.value;if(i.startsWith(_+":")){e.splice(o,1),s=!0;break}}if(s)continue}e[o]=_removeKeyPrefixes(i,t),o+=1}else if(isSet(e))for(var f,c=_createForOfIteratorHelperLoose(new Set(e));!(f=c()).done;){var p=f.value,d=!1;if("string"==typeof p){for(var v,y=_createForOfIteratorHelperLoose(t);!(v=y()).done;){var b=v.value;if(p.startsWith(b+":")){e.delete(p),d=!0;break}}if(d)continue}_removeKeyPrefixes(p,t)}else if(isMap(e))for(var O,g=_createForOfIteratorHelperLoose(new Map(e));!(O=g()).done;){var h=O.value,j=h[0],m=h[1],P=!1;if("string"==typeof j){for(var A,I=_createForOfIteratorHelperLoose(t);!(A=I()).done;){var x=A.value,w=escapeRegularExpressions(x);if(new RegExp("^"+w+"[0-9]*$").test(j)){e.delete(j),P=!0;break}}if(P)continue}e.set(j,_removeKeyPrefixes(m,t))}else if(null!==e&&"object"==typeof e)for(var E=0,M=Object.entries(Object.assign({},e));E<M.length;E++){for(var L,S=M[E],T=S[0],F=S[1],N=!1,k=_createForOfIteratorHelperLoose(t);!(L=k()).done;){var V=L.value,D=escapeRegularExpressions(V);if(new RegExp("^"+D+"[0-9]*$").test(T)){delete e[T],N=!0;break}}N||(e[T]=_removeKeyPrefixes(F,t))}return e},_represent=function(e,r,t,n,o){if(void 0===r&&(r=" "),void 0===t&&(t=""),void 0===n&&(n="__maximum_number_of_levels_reached__"),void 0===o&&(o=8),0===o)return String(n);if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return'"'+e.replace(/\n/g,"\n"+t)+'"';if(isNumeric(e)||"boolean"==typeof e)return String(e);if(Array.isArray(e)){for(var a,i="[",s=!1,u=_createForOfIteratorHelperLoose(e);!(a=u()).done;){var l=a.value;s&&(i+=","),i+="\n"+t+r+_represent(l,r,""+t+r,n,o-1),s=!0}return s&&(i+="\n"+t),i+="]"}if(isMap(e)){for(var _,f="",c=!1,p=_createForOfIteratorHelperLoose(e);!(_=p()).done;){var d=_.value,v=d[0],y=d[1];c&&(f+=",\n"+t+r),f+=_represent(v,r,""+t+r,n,o-1)+" -> "+_represent(y,r,""+t+r,n,o-1),c=!0}return c||(f="EmptyMap"),f}if(isSet(e)){for(var b,O="{",g=!1,h=_createForOfIteratorHelperLoose(e);!(b=h()).done;){var j=b.value;g&&(O+=","),O+="\n"+t+r+_represent(j,r,""+t+r,n,o-1),g=!0}return g?O+="\n"+t+"}":O="EmptySet",O}if(isFunction(e))return"__function__";for(var m,P="{",A=!1,I=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(e).sort());!(m=I()).done;){var x=m.value;A&&(P+=","),P+="\n"+t+r+x+": "+_represent(e[x],r,""+t+r,n,o-1),A=!0}return A&&(P+="\n"+t),P+="}"},sort=function(e){var r=[];if(Array.isArray(e))for(var t=0;t<e.length;t++)r.push(t);else if("object"==typeof e)if(isMap(e))for(var n,o=_createForOfIteratorHelperLoose(e);!(n=o()).done;){var a=n.value;r.push(a[0])}else if(null!==e)for(var i=0,s=Object.keys(e);i<s.length;i++){var u=s[i];r.push(u)}return r.sort()},_unwrapProxy=function(e,r){if(void 0===r&&(r=new Set),null!==e&&"object"==typeof e){if(r.has(e))return e;try{isFunction(e.__revoke__)&&(isProxy(e)&&(e=e.__target__),e.__revoke__())}catch(r){return e}finally{r.add(e)}if(Array.isArray(e))for(var t,n=0,o=_createForOfIteratorHelperLoose(e);!(t=o()).done;){var a=t.value;e[n]=_unwrapProxy(a,r),n+=1}else if(isMap(e))for(var i,s=_createForOfIteratorHelperLoose(e);!(i=s()).done;){var u=i.value,l=u[0],_=u[1];e.set(l,_unwrapProxy(_,r))}else if(isSet(e)){for(var f,c=[],p=_createForOfIteratorHelperLoose(e);!(f=p()).done;){var d=f.value;e.delete(d),c.push(_unwrapProxy(d,r))}for(var v=0,y=c;v<y.length;v++){var b=y[v];e.add(b)}}else for(var O=0,g=Object.entries(e);O<g.length;O++){var h=g[O],j=h[0],m=h[1];e[j]=_unwrapProxy(m,r)}}return e}}],__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](t,t.exports,__webpack_require__),t.exports}__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{isAnyMatching:function(){return isAnyMatching},isArrayLike:function(){return isArrayLike},isFunction:function(){return indicators_isFunction},isMap:function(){return indicators_isMap},isNumeric:function(){return indicators_isNumeric},isObject:function(){return isObject},isPlainObject:function(){return indicators_isPlainObject},isProxy:function(){return indicators_isProxy},isSet:function(){return indicators_isSet},isWindow:function(){return isWindow}});var _constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_object__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var indicators_isNumeric=function(e){var r=(0,_object__WEBPACK_IMPORTED_MODULE_0__.determineType)(e);return["number","string"].includes(r)&&!isNaN(e-parseFloat(e))},isWindow=function(e){return![null,void 0].includes(e)&&"object"==typeof e&&e===(null==e?void 0:e.window)},isArrayLike=function(e){var r;try{r=Boolean(e)&&e.length}catch(e){return!1}var t=(0,_object__WEBPACK_IMPORTED_MODULE_0__.determineType)(e);if("function"===t||isWindow(e))return!1;if("array"===t||0===r)return!0;if("number"==typeof r&&r>0)try{e[r-1];return!0}catch(e){}return!1},isAnyMatching=function(e,r){for(var t,n=_createForOfIteratorHelperLoose(r);!(t=n()).done;){var o=t.value;if("string"==typeof o){if(o===e)return!0}else if(o.test(e))return!0}return!1},isObject=function(e){return null!==e&&"object"==typeof e},indicators_isPlainObject=function(e){return null!==e&&"object"==typeof e&&_constants__WEBPACK_IMPORTED_MODULE_1__.PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(e))},indicators_isSet=function(e){return"set"===(0,_object__WEBPACK_IMPORTED_MODULE_0__.determineType)(e)},indicators_isMap=function(e){return"map"===(0,_object__WEBPACK_IMPORTED_MODULE_0__.determineType)(e)},indicators_isProxy=function(e){return Boolean(e.__target__)},indicators_isFunction=function(e){return Boolean(e)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(e))};return __webpack_exports__}()}));
package/dist/number.js CHANGED
@@ -1 +1 @@
1
- "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@babel/runtime/helpers/extends"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends"],r);else{var t="object"==typeof exports?r(require("@babel/runtime/helpers/extends")):r(e["@babel/runtime/helpers/extends"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__2__){return function(){var __webpack_modules__=[function(e,r,t){t.d(r,{CLASS_TO_TYPE_MAPPING:function(){return o}});Symbol.for("clientnodeValue"),Symbol.for("clientnodeIgnoreNullAndUndefined");var o={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"};Object.prototype},,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__2__},,function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{determineType:function(){return determineType}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=Array(r);t<r;t++)o[t]=e[t];return o}var _addDynamicGetterAndSetter=function(e,r,t,o,n,a){if(void 0===r&&(r=null),void 0===t&&(t=null),void 0===o&&(o={}),void 0===n&&(n=!0),void 0===a&&(a=[Object]),n&&"object"==typeof e)if(Array.isArray(e))for(var i,s=0,l=_createForOfIteratorHelperLoose(e);!(i=l()).done;){var u=i.value;e[s]=_addDynamicGetterAndSetter(u,r,t,o,n),s+=1}else if(isMap(e))for(var f,_=_createForOfIteratorHelperLoose(e);!(f=_()).done;){var c=f.value,p=c[0],v=c[1];e.set(p,_addDynamicGetterAndSetter(v,r,t,o,n))}else if(isSet(e)){for(var d,y=[],b=_createForOfIteratorHelperLoose(e);!(d=b()).done;){var O=d.value;e.delete(O),y.push(_addDynamicGetterAndSetter(O,r,t,o,n))}for(var g=0,h=y;g<h.length;g++){var m=h[g];e.add(m)}}else if(null!==e)for(var j=0,P=Object.entries(e);j<P.length;j++){var A=P[j],w=A[0],x=A[1];e[w]=_addDynamicGetterAndSetter(x,r,t,o,n)}if(r||t)for(var I,M,L=function(){var n=M.value;if(null!==e&&"object"==typeof e&&e instanceof n){var a=getProxyHandler(e,o),i=getProxyHandler(e,o);r&&(i.get=function(t,o){return"__target__"===o?e:"__revoke__"===o?function(){return u(),e}:"function"==typeof e[o]?e[o]:r(a.get(l,o),o,e)}),t&&(i.set=function(r,o,n){return a.set(l,o,t(o,n,e))});var s=Proxy.revocable({},i),l=s.proxy,u=s.revoke;return{v:l}}},E=_createForOfIteratorHelperLoose(a);!(M=E()).done;)if(I=L())return I.v;return e},convertCircularObjectToJSON=function(e,r,t){void 0===r&&(r=function(e){return null!=e?e:"__circularReference__"}),void 0===t&&(t=0);var o=new Map;return function(e){var n=function(e,t){if(null!==t&&"object"==typeof t){var a,i;if(o.has(t))return r(null!==(a=o.get(t))&&void 0!==a?a:null,e,t,o);if(o.set(t,null),Array.isArray(t)){i=[];for(var s,l=_createForOfIteratorHelperLoose(t);!(s=l()).done;){var u=s.value;i.push(n(null,u))}}else{i={};for(var f=0,_=Object.entries(t);f<_.length;f++){var c=_[f],p=c[0],v=c[1];i[p]=n(p,v)}}return o.set(t,i),i}return t};return JSON.stringify(e,n,t)}(e)},_convertMapToPlainObject=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isMap(e)){for(var t,o={},n=_createForOfIteratorHelperLoose(e);!(t=n()).done;){var a=t.value,i=a[0],s=a[1];r&&(s=_convertMapToPlainObject(s,r)),["number","string"].includes(typeof i)&&(o[String(i)]=s)}return o}if(r)if(isPlainObject(e))for(var l=0,u=Object.entries(e);l<u.length;l++){var f=u[l],_=f[0],c=f[1];e[_]=_convertMapToPlainObject(c,r)}else if(Array.isArray(e))for(var p=0,v=0,d=e;v<d.length;v++){var y=d[v];e[p]=_convertMapToPlainObject(y,r),p+=1}else if(isSet(e)){for(var b,O=[],g=_createForOfIteratorHelperLoose(e);!(b=g()).done;){var h=b.value;e.delete(h),O.push(_convertMapToPlainObject(h,r))}for(var m=0,j=O;m<j.length;m++){var P=j[m];e.add(P)}}}return e},_convertPlainObjectToMap=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isPlainObject(e)){for(var t=new Map,o=0,n=Object.entries(e);o<n.length;o++){var a=n[o],i=a[0],s=a[1];r&&(e[i]=_convertPlainObjectToMap(s,r)),t.set(i,e[i])}return t}if(r)if(Array.isArray(e))for(var l=0,u=0,f=e;u<f.length;u++){var _=f[u];e[l]=_convertPlainObjectToMap(_,r),l+=1}else if(isMap(e))for(var c,p=_createForOfIteratorHelperLoose(e);!(c=p()).done;){var v=c.value,d=v[0],y=v[1];e.set(d,_convertPlainObjectToMap(y,r))}else if(isSet(e)){for(var b,O=[],g=_createForOfIteratorHelperLoose(e);!(b=g()).done;){var h=b.value;e.delete(h),O.push(_convertPlainObjectToMap(h,r))}for(var m=0,j=O;m<j.length;m++){var P=j[m];e.add(P)}}}return e},_convertSubstringInPlainObject=function(e,r,t){for(var o=0,n=Object.entries(e);o<n.length;o++){var a=n[o],i=a[0],s=a[1];isPlainObject(s)?e[i]=_convertSubstringInPlainObject(s,r,t):"string"==typeof s&&(e[i]=s.replace(r,t))}return e},_copy=function(e,r,t,o,n,a,i){if(void 0===r&&(r=-1),void 0===t&&(t=VALUE_COPY_SYMBOL),void 0===o&&(o=null),void 0===n&&(n=!1),void 0===a&&(a=[]),void 0===i&&(i=0),null!==e&&"object"==typeof e){if(!o){if(Array.isArray(e))return _copy(e,r,t,[],n,a,i);if(e instanceof Map)return _copy(e,r,t,new Map,n,a,i);if(e instanceof Set)return _copy(e,r,t,new Set,n,a,i);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var s=/[^/]*$/.exec(e.toString());return(o=new RegExp(e.source,s?s[0]:void 0)).lastIndex=e.lastIndex,o}return"undefined"!=typeof Blob&&e instanceof Blob?e.slice(0,e.size,e.type):_copy(e,r,t,{},n,a,i)}if(e===o)throw new Error("Can't copy because source and destination are identical.");if(!n&&![void 0,null].includes(e)){var l=a.indexOf(e);if(-1!==l)return a[l];a.push(e)}var u=function(e){if(-1!==r&&r<i+1)return t===VALUE_COPY_SYMBOL?e:t;var o=_copy(e,r,t,null,n,a,i+1);return n||[void 0,null].includes(e)||"object"!=typeof e||a.push(e),o};if(Array.isArray(e))for(var f,_=_createForOfIteratorHelperLoose(e);!(f=_()).done;){var c=f.value;o.push(u(c))}else if(e instanceof Map)for(var p,v=_createForOfIteratorHelperLoose(e);!(p=v()).done;){var d=p.value,y=d[0],b=d[1];o.set(y,u(b))}else if(e instanceof Set)for(var O,g=_createForOfIteratorHelperLoose(e);!(O=g()).done;){var h=O.value;o.add(u(h))}else for(var m=0,j=Object.entries(e);m<j.length;m++){var P=j[m],A=P[0],w=P[1];try{o[A]=u(w)}catch(e){throw new Error('Failed to copy property value object "'+A+'": '+_represent(e))}}}return o||e},determineType=function(e){if(void 0===e&&(e=void 0),[null,void 0].includes(e))return String(e);var r=typeof e;if(["function","object"].includes(r)&&"toString"in e){var t=Object.prototype.toString.call(e);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING,t))return _constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING[t]}return r},_equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_extends({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&isFunction(firstValue)&&isFunction(secondValue)||firstValue===secondValue||isNotANumber(firstValue)&&isNotANumber(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&Object.prototype.hasOwnProperty.call(eval("Buffer"),"isBuffer")&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise((function(e){for(var r=[],t=0,o=[firstValue,secondValue];t<o.length;t++){var n=o[t],a=new FileReader;a.onload=function(t){null===t.target?r.push(null):r.push(t.target.result),2===r.length&&(r[0]===r[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+_represent(r[0])+") !== Blob("+_represent(r[1])+")"))},a.readAsDataURL(n)}}));if(isPlainObject(firstValue)&&isPlainObject(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i13=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i13<_arr4.length;_i13++){var _arr4$_i=_arr4[_i13],first=_arr4$_i[0],second=_arr4$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=isMap(first);if(firstIsMap&&(!isMap(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=isSet(first);if(firstIsSet&&(!isSet(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray){for(var index=0,_loop2=function(){var e=_arr5[_i14];if(0!==options.deep){var r=_equals(e,second[index],_extends({},options,{deep:options.deep-1}));if(!r)return{v:!1};var t=index,o=function(e){var r;return"string"==typeof e?"["+String(t)+"]"+(null!==(r={"[":"",">":" "}[e[0]])&&void 0!==r?r:".")+e:e};if(Object.prototype.hasOwnProperty.call(r,"then")&&promises.push(r.then(o)),"string"==typeof r)return{v:o(r)}}index+=1},_ret2,_i14=0,_arr5=first;_i14<_arr5.length;_i14++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step13.value,r=e[0],t=e[1];if(0!==options.deep){var o=_equals(t,second.get(r),_extends({},options,{deep:options.deep-1}));if(!o)return{v:!1};var n=function(e){var t;return"string"==typeof e?"get("+_represent(r)+")"+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(o,"then")&&promises.push(o.then(n)),"string"==typeof o)return{v:n(o)}}},_ret3,_iterator13=_createForOfIteratorHelperLoose(first),_step13;!(_step13=_iterator13()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step14.value;if(0!==options.deep){for(var r,t=!1,o=[],n=_createForOfIteratorHelperLoose(second);!(r=n()).done;){var a=r.value,i=_equals(e,a,_extends({},options,{deep:options.deep-1}));if("boolean"==typeof i){if(i){t=!0;break}}else o.push(i)}var s=function(r){return!!r||!!options.returnReasonIfNotEqual&&">>> {-> "+_represent(e)+" not found}"};return t?0:(o.length&&promises.push(new Promise((function(e){Promise.all(o).then((function(r){e(s(r.some((function(e){return e}))))}),(function(){}))}))),{v:s(!1)})}},_ret4,_iterator14=_createForOfIteratorHelperLoose(first),_step14;!(_step14=_iterator14()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i15],r=e[0],t=e[1];if(options.properties&&!options.properties.includes(r))return 0;for(var o,n=!1,a=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(o=a()).done;){var i=o.value;if(r.toString().startsWith(i)){n=!0;break}}if(n)return 0;if(0!==options.deep){var s=_equals(t,second[r],_extends({},options,{deep:options.deep-1}));if(!s)return{v:!1};var l=function(e){var t;return"string"==typeof e?r+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(s,"then")&&promises.push(s.then(l)),"string"==typeof s)return{v:l(s)}}},_ret5,_i15=0,_Object$entries7=Object.entries(first);_i15<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i15++)if(_ret5)return _ret5.v}return!promises.length||new Promise((function(e){Promise.all(promises).then((function(r){for(var t,o=_createForOfIteratorHelperLoose(r);!(t=o()).done;){var n=t.value;if(!n||"string"==typeof n){e(n);break}}e(!0)}),(function(){}))}))}return!!options.returnReasonIfNotEqual&&">>> "+_represent(firstValue)+" !== "+_represent(secondValue)},evaluateDynamicData=function(e,r,t,o,n){if(void 0===r&&(r={}),void 0===t&&(t="self"),void 0===o&&(o="__evaluate__"),void 0===n&&(n="__execute__"),"object"!=typeof e||null===e)return e;t in r||(r[t]=e);var a=function(e,t){void 0===t&&(t=o);var a=evaluate(e,r,t===n);if(a.error)throw new Error(a.error);return a.result},i=function(e){if("object"!=typeof e||null===e||"undefined"==typeof Proxy)return e;for(var r=0,t=Object.entries(e);r<t.length;r++){var l=t[r],u=l[0],f=l[1];if("__target__"!==u&&null!==f&&"object"==typeof f){var _=f;if(i(_),Object.prototype.hasOwnProperty.call(_,o)||Object.prototype.hasOwnProperty.call(_,n)){var c=_;e[u]=new Proxy(_,{get:function(e,r){if("__target__"===r)return e;if("hasOwnProperty"===r)return e[r];for(var t=0,i=[o,n];t<i.length;t++){var l=i[t];if(r===l&&"string"==typeof e[r])return s(a(e[r],l))}var u=s(e);if("toString"===r){var f=a(u);return f[r].bind(f)}if("string"!=typeof r){var _,c=a(u);return null!=(_=c[r])&&_.bind?c[r].bind(c):c[r]}for(var p=0,v=[o,n];p<v.length;p++){var d=v[p];if(Object.prototype.hasOwnProperty.call(e,d))return a(u,d)[r]}return u[r]},ownKeys:function(e){for(var r=0,t=[o,n];r<t.length;r++){var i=t[r];if(Object.prototype.hasOwnProperty.call(e,i))return Object.getOwnPropertyNames(s(a(e[i],i)))}return Object.getOwnPropertyNames(e)}}),e[u].__target__||(e[u].__target__=c)}}}return e},s=function(e){if(null!==e&&"object"==typeof e){if(isProxy(e)){for(var r=0,t=[o,n];r<t.length;r++){var i=t[r];if(Object.prototype.hasOwnProperty.call(e,i))return e[i]}e=e.__target__}for(var l=0,u=Object.entries(e);l<u.length;l++){var f=u[l],_=f[0],c=f[1];if([o,n].includes(_))return"undefined"==typeof Proxy?s(a(c)):c;e[_]=s(c)}}return e};r.resolve=s;var l=function(e){if(null!==e&&"object"==typeof e)for(var r=0,t=Object.entries(e);r<t.length;r++){var o=t[r],n=o[0],a=o[1];if("__target__"!==n&&null!==a&&["function","undefined"].includes(typeof a)){var i=a.__target__;void 0!==i&&(e[n]=i),l(a)}}return e};return Object.prototype.hasOwnProperty.call(e,o)?a(e[o]):Object.prototype.hasOwnProperty.call(e,n)?a(e[n],n):l(s(i(e)))},_removeKeysInEvaluation=function(e,r){void 0===r&&(r=["__evaluate__","__execute__"]);for(var t=0,o=Object.entries(e);t<o.length;t++){var n=o[t],a=n[0],i=n[1];!r.includes(a)&&r.some((function(r){return Object.prototype.hasOwnProperty.call(e,r)}))?delete e[a]:isPlainObject(i)&&_removeKeysInEvaluation(i,r)}return e},_extend=function(e,r){for(var t=!1,o=arguments.length,n=new Array(o>2?o-2:0),a=2;a<o;a++)n[a-2]=arguments[a];var i,s=n;e===IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof e?(t=e,i=r):(i=e,null!==r&&"object"==typeof r?s=[r].concat(s):void 0!==r&&(i=r));for(var l,u=function(e,r){return r===e?e:t&&r&&(isPlainObject(r)||isMap(r))?(o=isMap(r)?e&&isMap(e)?e:new Map:e&&isPlainObject(e)?e:{},_extend(t,o,r)):r;var o},f=_createForOfIteratorHelperLoose(s);!(l=f()).done;){var _=l.value,c=typeof i,p=typeof _;if(isMap(i)&&(c+=" Map"),isMap(_)&&(p+=" Map"),c===p&&i!==_)if(isMap(i)&&isMap(_))for(var v,d=_createForOfIteratorHelperLoose(_);!(v=d()).done;){var y=v.value,b=y[0],O=y[1];i.set(b,u(i.get(b),O))}else if(null===i||Array.isArray(i)||"object"!=typeof i||null===_||Array.isArray(_)||"object"!=typeof _)i=_;else for(var g=0,h=Object.entries(_);g<h.length;g++){var m=h[g],j=m[0],P=m[1];t===IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,void 0].includes(P)||(i[j]=u(i[j],P))}else i=_}return i},getSubstructure=function(e,r,t,o){void 0===t&&(t=!0),void 0===o&&(o=".");for(var n,a=[],i=_createForOfIteratorHelperLoose([].concat(r));!(n=i()).done;){var s=n.value;if("string"==typeof s)for(var l,u=_createForOfIteratorHelperLoose(s.split(o));!(l=u()).done;){var f=l.value;if(f){var _=f.match(/(.*?)(\[[0-9]+\])/g);if(_)for(var c,p=_createForOfIteratorHelperLoose(_);!(c=p()).done;){var v=c.value,d=/(.*?)(\[[0-9]+])/.exec(v),y="",b="";d&&(y=d[1],b=d[2],y&&a.push(y)),a.push(b.substring(1,b.length-1))}else a.push(f)}}else a=a.concat(s)}for(var O,g=e,h=_createForOfIteratorHelperLoose(a);!(O=h()).done;){var m=O.value;if(null!==g&&"object"==typeof g){if("string"==typeof m&&Object.prototype.hasOwnProperty.call(g,m))g=g[m];else if(isFunction(m))g=m(g);else if(!t)return}else if(!t)return}return g},getProxyHandler=function(e,r){return void 0===r&&(r={}),r=_extends({delete:"[]",get:"[]",has:"[]",set:"[]"},r),{deleteProperty:function(t,o){return"[]"!==r.delete||"string"!=typeof o?e[r.delete](o):(delete e[o],!0)},get:function(t,o){return"[]"===r.get&&"string"==typeof o?e[o]:e[r.get](o)},has:function(t,o){return"[]"===r.has?o in e:e[r.has](o)},set:function(t,o,n){return"[]"!==r.set||"string"!=typeof o?e[r.set](o,n):(e[o]=n,!0)}}},_mask=function(e,r){if(!0===(r=_extends({exclude:!1,include:!0},r)).exclude||Array.isArray(r.exclude)&&0===r.exclude.length||!1===r.include||"object"!=typeof e)return{};var t=Array.isArray(r.exclude)?r.exclude.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.exclude,o=Array.isArray(r.include)?r.include.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.include,n={};if(isPlainObject(o))for(var a=0,i=Object.entries(o);a<i.length;a++){var s=i[a],l=s[0],u=s[1];Object.prototype.hasOwnProperty.call(e,l)&&(!0===u?n[l]=e[l]:(isPlainObject(u)||Array.isArray(u)&&u.length)&&"object"==typeof e[l]&&(n[l]=_mask(e[l],{include:u})))}else n=e;if(isPlainObject(t)){for(var f=!1,_=_extends({},n),c=0,p=Object.entries(t);c<p.length;c++){var v=p[c],d=v[0],y=v[1];if(Object.prototype.hasOwnProperty.call(_,d))if(!0===y)f=!0,delete _[d];else if((isPlainObject(y)||Array.isArray(y)&&y.length)&&"object"==typeof _[d]){var b=_[d];_[d]=_mask(_[d],{exclude:y}),_[d]!==b&&(f=!0)}}f&&(n=_)}return n},_modifyObject=function(e,r,t,o,n,a,i,s,l){if(void 0===t&&(t="__remove__"),void 0===o&&(o="__prepend__"),void 0===n&&(n="__append__"),void 0===a&&(a="__"),void 0===i&&(i="__"),void 0===s&&(s=null),void 0===l&&(l=null),isMap(r)&&isMap(e))for(var u,f=_createForOfIteratorHelperLoose(r);!(u=f()).done;){var _=u.value,c=_[0],p=_[1];e.has(c)&&_modifyObject(e.get(c),p,t,o,n,a,i,r,c)}else if(null!==r&&"object"==typeof r&&null!==e&&"object"==typeof e)for(var v=0,d=Object.entries(r);v<d.length;v++){var y=d[v],b=y[0],O=y[1],g=NaN;if(Array.isArray(e)&&b.startsWith(a)&&b.endsWith(i)&&((g=parseInt(b.substring(a.length,b.length-i.length),10))<0||g>=e.length)&&(g=NaN),[t,o,n].includes(b)||!isNaN(g)){if(Array.isArray(e))if(b===t)for(var h,m=_createForOfIteratorHelperLoose([].concat(O));!(h=m()).done;){var j=h.value;"string"==typeof j&&j.startsWith(a)&&j.endsWith(i)?e.splice(parseInt(j.substring(a.length,j.length-i.length),10),1):e.includes(j)?e.splice(e.indexOf(j),1):"number"==typeof j&&j<e.length&&e.splice(j,1)}else b===n?e=e.concat(O):b===o?e=[].concat(O).concat(e):null!==e[g]&&"object"==typeof e[g]&&null!==O&&"object"==typeof O?_extend(!0,_modifyObject(e[g],O,t,o,n,a,i),e[g],O):e[g]=O;else if(b===t)for(var P,A=_createForOfIteratorHelperLoose([].concat(O));!(P=A()).done;){var w=P.value;"string"==typeof w&&Object.prototype.hasOwnProperty.call(e,w)&&delete e[w]}delete r[b],s&&"string"==typeof l&&delete s[l]}else null!==e&&Object.prototype.hasOwnProperty.call(e,b)&&(e[b]=_modifyObject(e[b],O,t,o,n,a,i,r,b))}return e},_removeKeyPrefixes=function(e,r){void 0===r&&(r="#");var t=[].concat(r);if(Array.isArray(e))for(var o,n=0,a=_createForOfIteratorHelperLoose(e.slice());!(o=a()).done;){var i=o.value,s=!1;if("string"==typeof i){for(var l,u=_createForOfIteratorHelperLoose(t);!(l=u()).done;){var f=l.value;if(i.startsWith(f+":")){e.splice(n,1),s=!0;break}}if(s)continue}e[n]=_removeKeyPrefixes(i,t),n+=1}else if(isSet(e))for(var _,c=_createForOfIteratorHelperLoose(new Set(e));!(_=c()).done;){var p=_.value,v=!1;if("string"==typeof p){for(var d,y=_createForOfIteratorHelperLoose(t);!(d=y()).done;){var b=d.value;if(p.startsWith(b+":")){e.delete(p),v=!0;break}}if(v)continue}_removeKeyPrefixes(p,t)}else if(isMap(e))for(var O,g=_createForOfIteratorHelperLoose(new Map(e));!(O=g()).done;){var h=O.value,m=h[0],j=h[1],P=!1;if("string"==typeof m){for(var A,w=_createForOfIteratorHelperLoose(t);!(A=w()).done;){var x=A.value,I=escapeRegularExpressions(x);if(new RegExp("^"+I+"[0-9]*$").test(m)){e.delete(m),P=!0;break}}if(P)continue}e.set(m,_removeKeyPrefixes(j,t))}else if(null!==e&&"object"==typeof e)for(var M=0,L=Object.entries(Object.assign({},e));M<L.length;M++){for(var E,S=L[M],T=S[0],N=S[1],F=!1,V=_createForOfIteratorHelperLoose(t);!(E=V()).done;){var k=E.value,H=escapeRegularExpressions(k);if(new RegExp("^"+H+"[0-9]*$").test(T)){delete e[T],F=!0;break}}F||(e[T]=_removeKeyPrefixes(N,t))}return e},_represent=function(e,r,t,o,n){if(void 0===r&&(r=" "),void 0===t&&(t=""),void 0===o&&(o="__maximum_number_of_levels_reached__"),void 0===n&&(n=8),0===n)return String(o);if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return'"'+e.replace(/\n/g,"\n"+t)+'"';if(isNumeric(e)||"boolean"==typeof e)return String(e);if(Array.isArray(e)){for(var a,i="[",s=!1,l=_createForOfIteratorHelperLoose(e);!(a=l()).done;){var u=a.value;s&&(i+=","),i+="\n"+t+r+_represent(u,r,""+t+r,o,n-1),s=!0}return s&&(i+="\n"+t),i+="]"}if(isMap(e)){for(var f,_="",c=!1,p=_createForOfIteratorHelperLoose(e);!(f=p()).done;){var v=f.value,d=v[0],y=v[1];c&&(_+=",\n"+t+r),_+=_represent(d,r,""+t+r,o,n-1)+" -> "+_represent(y,r,""+t+r,o,n-1),c=!0}return c||(_="EmptyMap"),_}if(isSet(e)){for(var b,O="{",g=!1,h=_createForOfIteratorHelperLoose(e);!(b=h()).done;){var m=b.value;g&&(O+=","),O+="\n"+t+r+_represent(m,r,""+t+r,o,n-1),g=!0}return g?O+="\n"+t+"}":O="EmptySet",O}if(isFunction(e))return"__function__";for(var j,P="{",A=!1,w=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(e).sort());!(j=w()).done;){var x=j.value;A&&(P+=","),P+="\n"+t+r+x+": "+_represent(e[x],r,""+t+r,o,n-1),A=!0}return A&&(P+="\n"+t),P+="}"},sort=function(e){var r=[];if(Array.isArray(e))for(var t=0;t<e.length;t++)r.push(t);else if("object"==typeof e)if(isMap(e))for(var o,n=_createForOfIteratorHelperLoose(e);!(o=n()).done;){var a=o.value;r.push(a[0])}else if(null!==e)for(var i=0,s=Object.keys(e);i<s.length;i++){var l=s[i];r.push(l)}return r.sort()},_unwrapProxy=function(e,r){if(void 0===r&&(r=new Set),null!==e&&"object"==typeof e){if(r.has(e))return e;try{isFunction(e.__revoke__)&&(isProxy(e)&&(e=e.__target__),e.__revoke__())}catch(r){return e}finally{r.add(e)}if(Array.isArray(e))for(var t,o=0,n=_createForOfIteratorHelperLoose(e);!(t=n()).done;){var a=t.value;e[o]=_unwrapProxy(a,r),o+=1}else if(isMap(e))for(var i,s=_createForOfIteratorHelperLoose(e);!(i=s()).done;){var l=i.value,u=l[0],f=l[1];e.set(u,_unwrapProxy(f,r))}else if(isSet(e)){for(var _,c=[],p=_createForOfIteratorHelperLoose(e);!(_=p()).done;){var v=_.value;e.delete(v),c.push(_unwrapProxy(v,r))}for(var d=0,y=c;d<y.length;d++){var b=y[d];e.add(b)}}else for(var O=0,g=Object.entries(e);O<g.length;O++){var h=g[O],m=h[0],j=h[1];e[m]=_unwrapProxy(j,r)}}return e}}],__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](t,t.exports,__webpack_require__),t.exports}__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ceil:function(){return ceil},floor:function(){return floor},getUTCTimestamp:function(){return getUTCTimestamp},isNotANumber:function(){return number_isNotANumber},round:function(){return round}});var _object__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),getUTCTimestamp=function(e,r){void 0===r&&(r=!1);var t=[null,void 0].includes(e)?new Date:new Date(e);return Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())/(r?1:1e3)},number_isNotANumber=function(e){return"number"===(0,_object__WEBPACK_IMPORTED_MODULE_0__.determineType)(e)&&isNaN(e)},round=function(e,r){return void 0===r&&(r=0),Math.round(e*Math.pow(10,r))/Math.pow(10,r)},ceil=function(e,r){return void 0===r&&(r=0),Math.ceil(e*Math.pow(10,r))/Math.pow(10,r)},floor=function(e,r){return void 0===r&&(r=0),Math.floor(e*Math.pow(10,r))/Math.pow(10,r)};return __webpack_exports__}()}));
1
+ "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@babel/runtime/helpers/extends"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends"],r);else{var t="object"==typeof exports?r(require("@babel/runtime/helpers/extends")):r(e["@babel/runtime/helpers/extends"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__2__){return function(){var __webpack_modules__=[function(e,r,t){t.d(r,{CLASS_TO_TYPE_MAPPING:function(){return o}});Symbol.for("clientnodeValue"),Symbol.for("clientnodeIgnoreNullAndUndefined");var o={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"};Object.prototype},,function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__2__},,function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{determineType:function(){return determineType}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=Array(r);t<r;t++)o[t]=e[t];return o}var _addDynamicGetterAndSetter=function(e,r,t,o,n,a){if(void 0===r&&(r=null),void 0===t&&(t=null),void 0===o&&(o={}),void 0===n&&(n=!0),void 0===a&&(a=[Object]),n&&"object"==typeof e)if(Array.isArray(e))for(var i,s=0,l=_createForOfIteratorHelperLoose(e);!(i=l()).done;){var u=i.value;e[s]=_addDynamicGetterAndSetter(u,r,t,o,n),s+=1}else if(isMap(e))for(var f,_=_createForOfIteratorHelperLoose(e);!(f=_()).done;){var c=f.value,p=c[0],v=c[1];e.set(p,_addDynamicGetterAndSetter(v,r,t,o,n))}else if(isSet(e)){for(var d,y=[],b=_createForOfIteratorHelperLoose(e);!(d=b()).done;){var O=d.value;e.delete(O),y.push(_addDynamicGetterAndSetter(O,r,t,o,n))}for(var g=0,h=y;g<h.length;g++){var m=h[g];e.add(m)}}else if(null!==e)for(var j=0,P=Object.entries(e);j<P.length;j++){var A=P[j],w=A[0],x=A[1];e[w]=_addDynamicGetterAndSetter(x,r,t,o,n)}if(r||t)for(var I,M,L=function(){var n=M.value;if(null!==e&&"object"==typeof e&&e instanceof n){var a=getProxyHandler(e,o),i=getProxyHandler(e,o);r&&(i.get=function(t,o){return"__target__"===o?e:"__revoke__"===o?function(){return u(),e}:"function"==typeof e[o]?e[o]:r(a.get(l,o),o,e)}),t&&(i.set=function(r,o,n){return a.set(l,o,t(o,n,e))});var s=Proxy.revocable({},i),l=s.proxy,u=s.revoke;return{v:l}}},E=_createForOfIteratorHelperLoose(a);!(M=E()).done;)if(I=L())return I.v;return e},convertCircularObjectToJSON=function(e,r,t){void 0===r&&(r=function(e){return null!=e?e:"__circularReference__"}),void 0===t&&(t=0);var o=new Map;return function(e){var n=function(e,t){if(null!==t&&"object"==typeof t){var a,i;if(o.has(t))return r(null!==(a=o.get(t))&&void 0!==a?a:null,e,t,o);if(o.set(t,null),Array.isArray(t)){i=[];for(var s,l=_createForOfIteratorHelperLoose(t);!(s=l()).done;){var u=s.value;i.push(n(null,u))}}else{i={};for(var f=0,_=Object.entries(t);f<_.length;f++){var c=_[f],p=c[0],v=c[1];i[p]=n(p,v)}}return o.set(t,i),i}return t};return JSON.stringify(e,n,t)}(e)},_convertMapToPlainObject=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isMap(e)){for(var t,o={},n=_createForOfIteratorHelperLoose(e);!(t=n()).done;){var a=t.value,i=a[0],s=a[1];r&&(s=_convertMapToPlainObject(s,r)),["number","string"].includes(typeof i)&&(o[String(i)]=s)}return o}if(r)if(isPlainObject(e))for(var l=0,u=Object.entries(e);l<u.length;l++){var f=u[l],_=f[0],c=f[1];e[_]=_convertMapToPlainObject(c,r)}else if(Array.isArray(e))for(var p=0,v=0,d=e;v<d.length;v++){var y=d[v];e[p]=_convertMapToPlainObject(y,r),p+=1}else if(isSet(e)){for(var b,O=[],g=_createForOfIteratorHelperLoose(e);!(b=g()).done;){var h=b.value;e.delete(h),O.push(_convertMapToPlainObject(h,r))}for(var m=0,j=O;m<j.length;m++){var P=j[m];e.add(P)}}}return e},_convertPlainObjectToMap=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isPlainObject(e)){for(var t=new Map,o=0,n=Object.entries(e);o<n.length;o++){var a=n[o],i=a[0],s=a[1];r&&(e[i]=_convertPlainObjectToMap(s,r)),t.set(i,e[i])}return t}if(r)if(Array.isArray(e))for(var l=0,u=0,f=e;u<f.length;u++){var _=f[u];e[l]=_convertPlainObjectToMap(_,r),l+=1}else if(isMap(e))for(var c,p=_createForOfIteratorHelperLoose(e);!(c=p()).done;){var v=c.value,d=v[0],y=v[1];e.set(d,_convertPlainObjectToMap(y,r))}else if(isSet(e)){for(var b,O=[],g=_createForOfIteratorHelperLoose(e);!(b=g()).done;){var h=b.value;e.delete(h),O.push(_convertPlainObjectToMap(h,r))}for(var m=0,j=O;m<j.length;m++){var P=j[m];e.add(P)}}}return e},_convertSubstringInPlainObject=function(e,r,t){for(var o=0,n=Object.entries(e);o<n.length;o++){var a=n[o],i=a[0],s=a[1];isPlainObject(s)?e[i]=_convertSubstringInPlainObject(s,r,t):"string"==typeof s&&(e[i]=s.replace(r,t))}return e},_copy=function(e,r,t,o,n,a,i){if(void 0===r&&(r=-1),void 0===t&&(t=VALUE_COPY_SYMBOL),void 0===o&&(o=null),void 0===n&&(n=!1),void 0===a&&(a=[]),void 0===i&&(i=0),null!==e&&"object"==typeof e){if(!o){if(Array.isArray(e))return _copy(e,r,t,[],n,a,i);if(e instanceof Map)return _copy(e,r,t,new Map,n,a,i);if(e instanceof Set)return _copy(e,r,t,new Set,n,a,i);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var s=/[^/]*$/.exec(e.toString());return(o=new RegExp(e.source,s?s[0]:void 0)).lastIndex=e.lastIndex,o}return"undefined"!=typeof Blob&&e instanceof Blob?e.slice(0,e.size,e.type):_copy(e,r,t,{},n,a,i)}if(e===o)throw new Error("Can't copy because source and destination are identical.");if(!n&&![void 0,null].includes(e)){var l=a.indexOf(e);if(-1!==l)return a[l];a.push(e)}var u=function(e){if(-1!==r&&r<i+1)return t===VALUE_COPY_SYMBOL?e:t;var o=_copy(e,r,t,null,n,a,i+1);return n||[void 0,null].includes(e)||"object"!=typeof e||a.push(e),o};if(Array.isArray(e))for(var f,_=_createForOfIteratorHelperLoose(e);!(f=_()).done;){var c=f.value;o.push(u(c))}else if(e instanceof Map)for(var p,v=_createForOfIteratorHelperLoose(e);!(p=v()).done;){var d=p.value,y=d[0],b=d[1];o.set(y,u(b))}else if(e instanceof Set)for(var O,g=_createForOfIteratorHelperLoose(e);!(O=g()).done;){var h=O.value;o.add(u(h))}else for(var m=0,j=Object.entries(e);m<j.length;m++){var P=j[m],A=P[0],w=P[1];try{o[A]=u(w)}catch(e){throw new Error('Failed to copy property value object "'+A+'": '+_represent(e))}}}return o||e},determineType=function(e){if(void 0===e&&(e=void 0),[null,void 0].includes(e))return String(e);var r=typeof e;if(["function","object"].includes(r)&&"toString"in e){var t=Object.prototype.toString.call(e);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING,t))return _constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING[t]}return r},_equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_extends({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&isFunction(firstValue)&&isFunction(secondValue)||firstValue===secondValue||isNotANumber(firstValue)&&isNotANumber(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&Object.prototype.hasOwnProperty.call(eval("Buffer"),"isBuffer")&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise((function(e){for(var r=[],t=0,o=[firstValue,secondValue];t<o.length;t++){var n=o[t],a=new FileReader;a.onload=function(t){null===t.target?r.push(null):r.push(t.target.result),2===r.length&&(r[0]===r[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+_represent(r[0])+") !== Blob("+_represent(r[1])+")"))},a.readAsDataURL(n)}}));if(isPlainObject(firstValue)&&isPlainObject(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i13=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i13<_arr4.length;_i13++){var _arr4$_i=_arr4[_i13],first=_arr4$_i[0],second=_arr4$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=isMap(first);if(firstIsMap&&(!isMap(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=isSet(first);if(firstIsSet&&(!isSet(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray){for(var index=0,_loop2=function(){var e=_arr5[_i14];if(0!==options.deep){var r=_equals(e,second[index],_extends({},options,{deep:options.deep-1}));if(!r)return{v:!1};var t=index,o=function(e){var r;return"string"==typeof e?"["+String(t)+"]"+(null!==(r={"[":"",">":" "}[e[0]])&&void 0!==r?r:".")+e:e};if(Object.prototype.hasOwnProperty.call(r,"then")&&promises.push(r.then(o)),"string"==typeof r)return{v:o(r)}}index+=1},_ret2,_i14=0,_arr5=first;_i14<_arr5.length;_i14++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step13.value,r=e[0],t=e[1];if(0!==options.deep){var o=_equals(t,second.get(r),_extends({},options,{deep:options.deep-1}));if(!o)return{v:!1};var n=function(e){var t;return"string"==typeof e?"get("+_represent(r)+")"+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(o,"then")&&promises.push(o.then(n)),"string"==typeof o)return{v:n(o)}}},_ret3,_iterator13=_createForOfIteratorHelperLoose(first),_step13;!(_step13=_iterator13()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step14.value;if(0!==options.deep){for(var r,t=!1,o=[],n=_createForOfIteratorHelperLoose(second);!(r=n()).done;){var a=r.value,i=_equals(e,a,_extends({},options,{deep:options.deep-1}));if("boolean"==typeof i){if(i){t=!0;break}}else o.push(i)}var s=function(r){return!!r||!!options.returnReasonIfNotEqual&&">>> {-> "+_represent(e)+" not found}"};return t?0:(o.length&&promises.push(new Promise((function(e){Promise.all(o).then((function(r){e(s(r.some((function(e){return e}))))}),(function(){}))}))),{v:s(!1)})}},_ret4,_iterator14=_createForOfIteratorHelperLoose(first),_step14;!(_step14=_iterator14()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i15],r=e[0],t=e[1];if(options.properties&&!options.properties.includes(r))return 0;for(var o,n=!1,a=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(o=a()).done;){var i=o.value;if(r.toString().startsWith(i)){n=!0;break}}if(n)return 0;if(0!==options.deep){var s=_equals(t,second[r],_extends({},options,{deep:options.deep-1}));if(!s)return{v:!1};var l=function(e){var t;return"string"==typeof e?r+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(s,"then")&&promises.push(s.then(l)),"string"==typeof s)return{v:l(s)}}},_ret5,_i15=0,_Object$entries7=Object.entries(first);_i15<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i15++)if(_ret5)return _ret5.v}return!promises.length||new Promise((function(e){Promise.all(promises).then((function(r){for(var t,o=_createForOfIteratorHelperLoose(r);!(t=o()).done;){var n=t.value;if(!n||"string"==typeof n){e(n);break}}e(!0)}),(function(){}))}))}return!!options.returnReasonIfNotEqual&&">>> "+_represent(firstValue)+" !== "+_represent(secondValue)},evaluateDynamicData=function(e,r,t,o,n){if(void 0===r&&(r={}),void 0===t&&(t="self"),void 0===o&&(o="__evaluate__"),void 0===n&&(n="__execute__"),"object"!=typeof e||null===e)return e;t in r||(r[t]=e);var a=function(e,t){void 0===t&&(t=o);var a=evaluate(e,r,t===n);if(a.error)throw new Error(a.error);return a.result},i=function(e){if("object"!=typeof e||null===e||"undefined"==typeof Proxy)return e;for(var r=0,t=Object.entries(e);r<t.length;r++){var l=t[r],u=l[0],f=l[1];if("__target__"!==u&&null!==f&&"object"==typeof f){var _=f;if(i(_),Object.prototype.hasOwnProperty.call(_,o)||Object.prototype.hasOwnProperty.call(_,n)){var c=_;e[u]=new Proxy(_,{get:function(e,r){if("__target__"===r)return e;if("hasOwnProperty"===r)return e[r];for(var t=0,i=[o,n];t<i.length;t++){var l=i[t];if(r===l&&"string"==typeof e[r])return s(a(e[r],l))}var u=s(e);if("toString"===r){var f=a(u);return f[r].bind(f)}if("string"!=typeof r){var _,c=a(u);return null!=(_=c[r])&&_.bind?c[r].bind(c):c[r]}for(var p=0,v=[o,n];p<v.length;p++){var d=v[p];if(Object.prototype.hasOwnProperty.call(e,d))return a(u,d)[r]}return u[r]},ownKeys:function(e){for(var r=0,t=[o,n];r<t.length;r++){var i=t[r];if(Object.prototype.hasOwnProperty.call(e,i))return Object.getOwnPropertyNames(s(a(e[i],i)))}return Object.getOwnPropertyNames(e)}}),e[u].__target__||(e[u].__target__=c)}}}return e},s=function(e){if(null!==e&&"object"==typeof e){if(isProxy(e)){for(var r=0,t=[o,n];r<t.length;r++){var i=t[r];if(Object.prototype.hasOwnProperty.call(e,i))return e[i]}e=e.__target__}for(var l=0,u=Object.entries(e);l<u.length;l++){var f=u[l],_=f[0],c=f[1];if([o,n].includes(_))return"undefined"==typeof Proxy?s(a(c)):c;e[_]=s(c)}}return e};r.resolve=s;var l=function(e){if(null!==e&&"object"==typeof e)for(var r=0,t=Object.entries(e);r<t.length;r++){var o=t[r],n=o[0],a=o[1];if("__target__"!==n&&null!==a&&["function","undefined"].includes(typeof a)){var i=a.__target__;void 0!==i&&(e[n]=i),l(a)}}return e};return Object.prototype.hasOwnProperty.call(e,o)?a(e[o]):Object.prototype.hasOwnProperty.call(e,n)?a(e[n],n):l(s(i(e)))},_removeKeysInEvaluation=function(e,r){void 0===r&&(r=["__evaluate__","__execute__"]);for(var t=0,o=Object.entries(e);t<o.length;t++){var n=o[t],a=n[0],i=n[1];!r.includes(a)&&r.some((function(r){return Object.prototype.hasOwnProperty.call(e,r)}))?delete e[a]:isPlainObject(i)&&_removeKeysInEvaluation(i,r)}return e},_extend=function(e,r){for(var t=!1,o=arguments.length,n=new Array(o>2?o-2:0),a=2;a<o;a++)n[a-2]=arguments[a];var i,s=n;e===IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof e?(t=e,i=r):(i=e,null!==r&&"object"==typeof r?s=[r].concat(s):void 0!==r&&(i=r));for(var l,u=function(e,r){return r===e?e:t&&r&&(isPlainObject(r)||isMap(r))?(o=isMap(r)?e&&isMap(e)?e:new Map:e&&isPlainObject(e)?e:{},_extend(t,o,r)):r;var o},f=_createForOfIteratorHelperLoose(s);!(l=f()).done;){var _=l.value,c=typeof i,p=typeof _;if(isMap(i)&&(c+=" Map"),isMap(_)&&(p+=" Map"),c===p&&i!==_)if(isMap(i)&&isMap(_))for(var v,d=_createForOfIteratorHelperLoose(_);!(v=d()).done;){var y=v.value,b=y[0],O=y[1];i.set(b,u(i.get(b),O))}else if(null===i||Array.isArray(i)||"object"!=typeof i||null===_||Array.isArray(_)||"object"!=typeof _)i=_;else for(var g=0,h=Object.entries(_);g<h.length;g++){var m=h[g],j=m[0],P=m[1];t===IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,void 0].includes(P)||(i[j]=u(i[j],P))}else i=_}return i},getSubstructure=function(e,r,t,o){void 0===t&&(t=!0),void 0===o&&(o=".");for(var n,a=[],i=_createForOfIteratorHelperLoose([].concat(r));!(n=i()).done;){var s=n.value;if("string"==typeof s)for(var l,u=_createForOfIteratorHelperLoose(s.split(o));!(l=u()).done;){var f=l.value;if(f){var _=f.match(/(.*?)(\[[0-9]+])/g);if(_)for(var c,p=_createForOfIteratorHelperLoose(_);!(c=p()).done;){var v=c.value,d=/(.*?)(\[[0-9]+])/.exec(v),y="",b="";d&&(y=d[1],b=d[2],y&&a.push(y)),a.push(b.substring(1,b.length-1))}else a.push(f)}}else a=a.concat(s)}for(var O,g=e,h=_createForOfIteratorHelperLoose(a);!(O=h()).done;){var m=O.value;if(null!==g&&"object"==typeof g){if("string"==typeof m&&Object.prototype.hasOwnProperty.call(g,m))g=g[m];else if(isFunction(m))g=m(g);else if(!t)return}else if(!t)return}return g},getProxyHandler=function(e,r){return void 0===r&&(r={}),r=_extends({delete:"[]",get:"[]",has:"[]",set:"[]"},r),{deleteProperty:function(t,o){return"[]"!==r.delete||"string"!=typeof o?e[r.delete](o):(delete e[o],!0)},get:function(t,o){return"[]"===r.get&&"string"==typeof o?e[o]:e[r.get](o)},has:function(t,o){return"[]"===r.has?o in e:e[r.has](o)},set:function(t,o,n){return"[]"!==r.set||"string"!=typeof o?e[r.set](o,n):(e[o]=n,!0)}}},_mask=function(e,r){if(!0===(r=_extends({exclude:!1,include:!0},r)).exclude||Array.isArray(r.exclude)&&0===r.exclude.length||!1===r.include||"object"!=typeof e)return{};var t=Array.isArray(r.exclude)?r.exclude.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.exclude,o=Array.isArray(r.include)?r.include.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.include,n={};if(isPlainObject(o))for(var a=0,i=Object.entries(o);a<i.length;a++){var s=i[a],l=s[0],u=s[1];Object.prototype.hasOwnProperty.call(e,l)&&(!0===u?n[l]=e[l]:(isPlainObject(u)||Array.isArray(u)&&u.length)&&"object"==typeof e[l]&&(n[l]=_mask(e[l],{include:u})))}else n=e;if(isPlainObject(t)){for(var f=!1,_=_extends({},n),c=0,p=Object.entries(t);c<p.length;c++){var v=p[c],d=v[0],y=v[1];if(Object.prototype.hasOwnProperty.call(_,d))if(!0===y)f=!0,delete _[d];else if((isPlainObject(y)||Array.isArray(y)&&y.length)&&"object"==typeof _[d]){var b=_[d];_[d]=_mask(_[d],{exclude:y}),_[d]!==b&&(f=!0)}}f&&(n=_)}return n},_modifyObject=function(e,r,t,o,n,a,i,s,l){if(void 0===t&&(t="__remove__"),void 0===o&&(o="__prepend__"),void 0===n&&(n="__append__"),void 0===a&&(a="__"),void 0===i&&(i="__"),void 0===s&&(s=null),void 0===l&&(l=null),isMap(r)&&isMap(e))for(var u,f=_createForOfIteratorHelperLoose(r);!(u=f()).done;){var _=u.value,c=_[0],p=_[1];e.has(c)&&_modifyObject(e.get(c),p,t,o,n,a,i,r,c)}else if(null!==r&&"object"==typeof r&&null!==e&&"object"==typeof e)for(var v=0,d=Object.entries(r);v<d.length;v++){var y=d[v],b=y[0],O=y[1],g=NaN;if(Array.isArray(e)&&b.startsWith(a)&&b.endsWith(i)&&((g=parseInt(b.substring(a.length,b.length-i.length),10))<0||g>=e.length)&&(g=NaN),[t,o,n].includes(b)||!isNaN(g)){if(Array.isArray(e))if(b===t)for(var h,m=_createForOfIteratorHelperLoose([].concat(O));!(h=m()).done;){var j=h.value;"string"==typeof j&&j.startsWith(a)&&j.endsWith(i)?e.splice(parseInt(j.substring(a.length,j.length-i.length),10),1):e.includes(j)?e.splice(e.indexOf(j),1):"number"==typeof j&&j<e.length&&e.splice(j,1)}else b===n?e=e.concat(O):b===o?e=[].concat(O).concat(e):null!==e[g]&&"object"==typeof e[g]&&null!==O&&"object"==typeof O?_extend(!0,_modifyObject(e[g],O,t,o,n,a,i),e[g],O):e[g]=O;else if(b===t)for(var P,A=_createForOfIteratorHelperLoose([].concat(O));!(P=A()).done;){var w=P.value;"string"==typeof w&&Object.prototype.hasOwnProperty.call(e,w)&&delete e[w]}delete r[b],s&&"string"==typeof l&&delete s[l]}else null!==e&&Object.prototype.hasOwnProperty.call(e,b)&&(e[b]=_modifyObject(e[b],O,t,o,n,a,i,r,b))}return e},_removeKeyPrefixes=function(e,r){void 0===r&&(r="#");var t=[].concat(r);if(Array.isArray(e))for(var o,n=0,a=_createForOfIteratorHelperLoose(e.slice());!(o=a()).done;){var i=o.value,s=!1;if("string"==typeof i){for(var l,u=_createForOfIteratorHelperLoose(t);!(l=u()).done;){var f=l.value;if(i.startsWith(f+":")){e.splice(n,1),s=!0;break}}if(s)continue}e[n]=_removeKeyPrefixes(i,t),n+=1}else if(isSet(e))for(var _,c=_createForOfIteratorHelperLoose(new Set(e));!(_=c()).done;){var p=_.value,v=!1;if("string"==typeof p){for(var d,y=_createForOfIteratorHelperLoose(t);!(d=y()).done;){var b=d.value;if(p.startsWith(b+":")){e.delete(p),v=!0;break}}if(v)continue}_removeKeyPrefixes(p,t)}else if(isMap(e))for(var O,g=_createForOfIteratorHelperLoose(new Map(e));!(O=g()).done;){var h=O.value,m=h[0],j=h[1],P=!1;if("string"==typeof m){for(var A,w=_createForOfIteratorHelperLoose(t);!(A=w()).done;){var x=A.value,I=escapeRegularExpressions(x);if(new RegExp("^"+I+"[0-9]*$").test(m)){e.delete(m),P=!0;break}}if(P)continue}e.set(m,_removeKeyPrefixes(j,t))}else if(null!==e&&"object"==typeof e)for(var M=0,L=Object.entries(Object.assign({},e));M<L.length;M++){for(var E,S=L[M],T=S[0],N=S[1],F=!1,V=_createForOfIteratorHelperLoose(t);!(E=V()).done;){var k=E.value,H=escapeRegularExpressions(k);if(new RegExp("^"+H+"[0-9]*$").test(T)){delete e[T],F=!0;break}}F||(e[T]=_removeKeyPrefixes(N,t))}return e},_represent=function(e,r,t,o,n){if(void 0===r&&(r=" "),void 0===t&&(t=""),void 0===o&&(o="__maximum_number_of_levels_reached__"),void 0===n&&(n=8),0===n)return String(o);if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return'"'+e.replace(/\n/g,"\n"+t)+'"';if(isNumeric(e)||"boolean"==typeof e)return String(e);if(Array.isArray(e)){for(var a,i="[",s=!1,l=_createForOfIteratorHelperLoose(e);!(a=l()).done;){var u=a.value;s&&(i+=","),i+="\n"+t+r+_represent(u,r,""+t+r,o,n-1),s=!0}return s&&(i+="\n"+t),i+="]"}if(isMap(e)){for(var f,_="",c=!1,p=_createForOfIteratorHelperLoose(e);!(f=p()).done;){var v=f.value,d=v[0],y=v[1];c&&(_+=",\n"+t+r),_+=_represent(d,r,""+t+r,o,n-1)+" -> "+_represent(y,r,""+t+r,o,n-1),c=!0}return c||(_="EmptyMap"),_}if(isSet(e)){for(var b,O="{",g=!1,h=_createForOfIteratorHelperLoose(e);!(b=h()).done;){var m=b.value;g&&(O+=","),O+="\n"+t+r+_represent(m,r,""+t+r,o,n-1),g=!0}return g?O+="\n"+t+"}":O="EmptySet",O}if(isFunction(e))return"__function__";for(var j,P="{",A=!1,w=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(e).sort());!(j=w()).done;){var x=j.value;A&&(P+=","),P+="\n"+t+r+x+": "+_represent(e[x],r,""+t+r,o,n-1),A=!0}return A&&(P+="\n"+t),P+="}"},sort=function(e){var r=[];if(Array.isArray(e))for(var t=0;t<e.length;t++)r.push(t);else if("object"==typeof e)if(isMap(e))for(var o,n=_createForOfIteratorHelperLoose(e);!(o=n()).done;){var a=o.value;r.push(a[0])}else if(null!==e)for(var i=0,s=Object.keys(e);i<s.length;i++){var l=s[i];r.push(l)}return r.sort()},_unwrapProxy=function(e,r){if(void 0===r&&(r=new Set),null!==e&&"object"==typeof e){if(r.has(e))return e;try{isFunction(e.__revoke__)&&(isProxy(e)&&(e=e.__target__),e.__revoke__())}catch(r){return e}finally{r.add(e)}if(Array.isArray(e))for(var t,o=0,n=_createForOfIteratorHelperLoose(e);!(t=n()).done;){var a=t.value;e[o]=_unwrapProxy(a,r),o+=1}else if(isMap(e))for(var i,s=_createForOfIteratorHelperLoose(e);!(i=s()).done;){var l=i.value,u=l[0],f=l[1];e.set(u,_unwrapProxy(f,r))}else if(isSet(e)){for(var _,c=[],p=_createForOfIteratorHelperLoose(e);!(_=p()).done;){var v=_.value;e.delete(v),c.push(_unwrapProxy(v,r))}for(var d=0,y=c;d<y.length;d++){var b=y[d];e.add(b)}}else for(var O=0,g=Object.entries(e);O<g.length;O++){var h=g[O],m=h[0],j=h[1];e[m]=_unwrapProxy(j,r)}}return e}}],__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](t,t.exports,__webpack_require__),t.exports}__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ceil:function(){return ceil},floor:function(){return floor},getUTCTimestamp:function(){return getUTCTimestamp},isNotANumber:function(){return number_isNotANumber},round:function(){return round}});var _object__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),getUTCTimestamp=function(e,r){void 0===r&&(r=!1);var t=[null,void 0].includes(e)?new Date:new Date(e);return Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())/(r?1:1e3)},number_isNotANumber=function(e){return"number"===(0,_object__WEBPACK_IMPORTED_MODULE_0__.determineType)(e)&&isNaN(e)},round=function(e,r){return void 0===r&&(r=0),Math.round(e*Math.pow(10,r))/Math.pow(10,r)},ceil=function(e,r){return void 0===r&&(r=0),Math.ceil(e*Math.pow(10,r))/Math.pow(10,r)},floor=function(e,r){return void 0===r&&(r=0),Math.floor(e*Math.pow(10,r))/Math.pow(10,r)};return __webpack_exports__}()}));
package/dist/object.d.ts CHANGED
@@ -97,7 +97,7 @@ export declare const determineType: (value?: unknown) => string;
97
97
  * function asynchronous in browsers and potentially takes a lot of
98
98
  * resources.
99
99
  * @returns Value "true" if both objects are equal and "false" otherwise.
100
- * If "compareBlobs" is activated and we're running in a browser like
100
+ * If "compareBlobs" is activated, and we're running in a browser like
101
101
  * environment and binary data is given, then a promise wrapping the
102
102
  * determined boolean values is returned.
103
103
  */
@@ -155,7 +155,7 @@ export declare const getSubstructure: <T = unknown, E = unknown>(target: T, sele
155
155
  export declare const getProxyHandler: <T = unknown>(target: T, methodNames?: Mapping) => ProxyHandler<T>;
156
156
  /**
157
157
  * Slices all properties from given object which does not match provided
158
- * object mask. Items can be explicitly white listed via "include" mask
158
+ * object mask. Items can be explicitly whitelisted via "include" mask
159
159
  * configuration or black listed via "exclude" mask configuration.
160
160
  * @param object - Object to slice.
161
161
  * @param maskConfiguration - Mask configuration.