clientnode
Version:
upgrade to object orientated rock solid plugins
1 lines • 28.4 kB
JavaScript
;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,i){if(void 0===r&&(r=null),void 0===t&&(t=null),void 0===n&&(n={}),void 0===o&&(o=!0),void 0===i&&(i=[Object]),o&&"object"==typeof e)if(Array.isArray(e))for(var a,s=0,u=_createForOfIteratorHelperLoose(e);!(a=u()).done;){var _=a.value;e[s]=_addDynamicGetterAndSetter(_,r,t,n,o),s+=1}else if(isMap(e))for(var l,c=_createForOfIteratorHelperLoose(e);!(l=c()).done;){var f=l.value,p=f[0],d=f[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(isObject(e)&&e instanceof o){var i=getProxyHandler(e,n),a=getProxyHandler(e,n);r&&(a.get=function(t,n){return"__target__"===n?e:"__revoke__"===n?function(){return _(),e}:"function"==typeof e[n]?e[n]:r(i.get(u,n),n,e)}),t&&(a.set=function(r,n,o){return i.set(u,n,t(n,o,e))});var s=Proxy.revocable({},a),u=s.proxy,_=s.revoke;return{v:u}}},L=_createForOfIteratorHelperLoose(i);!(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(isObject(t)){var i,a;if(n.has(t))return r(null!==(i=n.get(t))&&void 0!==i?i:null,e,t,n);if(n.set(t,null),Array.isArray(t)){a=[];for(var s,u=_createForOfIteratorHelperLoose(t);!(s=u()).done;){var _=s.value;a.push(o(null,_))}}else{a={};for(var l=0,c=Object.entries(t);l<c.length;l++){var f=c[l],p=f[0],d=f[1];a[p]=o(p,d)}}return n.set(t,a),a}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 i=t.value,a=i[0],s=i[1];r&&(s=_convertMapToPlainObject(s,r)),["number","string"].includes(typeof a)&&(n[String(a)]=s)}return n}if(r)if(isPlainObject(e))for(var u=0,_=Object.entries(e);u<_.length;u++){var l=_[u],c=l[0],f=l[1];e[c]=_convertMapToPlainObject(f,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 i=o[n],a=i[0],s=i[1];r&&(e[a]=_convertPlainObjectToMap(s,r)),t.set(a,e[a])}return t}if(r)if(Array.isArray(e))for(var u=0,_=0,l=e;_<l.length;_++){var c=l[_];e[u]=_convertPlainObjectToMap(c,r),u+=1}else if(isMap(e))for(var f,p=_createForOfIteratorHelperLoose(e);!(f=p()).done;){var d=f.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 i=o[n],a=i[0],s=i[1];isPlainObject(s)?e[a]=_convertSubstringInPlainObject(s,r,t):"string"==typeof s&&(e[a]=s.replace(r,t))}return e},_copy=function(e,r,t,n,o,i,a){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===i&&(i=[]),void 0===a&&(a=0),isObject(e)){if(!n){if(Array.isArray(e))return _copy(e,r,t,[],o,i,a);if(e instanceof Map)return _copy(e,r,t,new Map,o,i,a);if(e instanceof Set)return _copy(e,r,t,new Set,o,i,a);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,i,a)}if(e===n)throw new Error("Can't copy because source and destination are identical.");if(!o&&![void 0,null].includes(e)){var u=i.indexOf(e);if(-1!==u)return i[u];i.push(e)}var _=function(e){if(-1!==r&&r<a+1)return t===VALUE_COPY_SYMBOL?e:t;var n=_copy(e,r,t,null,o,i,a+1);return o||[void 0,null].includes(e)||"object"!=typeof e||i.push(e),n};if(Array.isArray(e))for(var l,c=_createForOfIteratorHelperLoose(e);!(l=c()).done;){var f=l.value;n.push(_(f))}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,_(b))}else if(e instanceof Set)for(var O,g=_createForOfIteratorHelperLoose(e);!(O=g()).done;){var h=O.value;n.add(_(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]=_(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],i=new FileReader;i.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])+")"))},i.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=[],_i11=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i11<_arr4.length;_i11++){var _arr4$_i=_arr4[_i11],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[_i12];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,_i12=0,_arr5=first;_i12<_arr5.length;_i12++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step11.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,_iterator11=_createForOfIteratorHelperLoose(first),_step11;!(_step11=_iterator11()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step12.value;if(0!==options.deep){for(var r,t=!1,n=[],o=_createForOfIteratorHelperLoose(second);!(r=o()).done;){var i=r.value,a=_equals(e,i,_extends({},options,{deep:options.deep-1}));if("boolean"==typeof a){if(a){t=!0;break}}else n.push(a)}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,_iterator12=_createForOfIteratorHelperLoose(first),_step12;!(_step12=_iterator12()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i13],r=e[0],t=e[1];if(options.properties&&!options.properties.includes(r))return 0;for(var n,o=!1,i=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(n=i()).done;){var a=n.value;if(r.toString().startsWith(a)){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,_i13=0,_Object$entries7=Object.entries(first);_i13<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i13++)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 i=function(e,t){void 0===t&&(t=n);var i=evaluate(e,r,t===o);if(i.error)throw new Error(i.error);return i.result},a=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],_=u[0],l=u[1];if("__target__"!==_&&isObject(l)){var c=l;if(a(c),Object.prototype.hasOwnProperty.call(c,n)||Object.prototype.hasOwnProperty.call(c,o)){var f=c;e[_]=new Proxy(c,{get:function(e,r){if("__target__"===r)return e;if("hasOwnProperty"===r)return e[r];for(var t=0,a=[n,o];t<a.length;t++){var u=a[t];if(r===u&&"string"==typeof e[r])return s(i(e[r],u))}var _=s(e);if("toString"===r){var l=i(_);return l[r].bind(l)}if("string"!=typeof r){var c,f=i(_);return null!=(c=f[r])&&c.bind?f[r].bind(f):f[r]}for(var p=0,d=[n,o];p<d.length;p++){var v=d[p];if(Object.prototype.hasOwnProperty.call(e,v))return i(_,v)[r]}return _[r]},ownKeys:function(e){for(var r=0,t=[n,o];r<t.length;r++){var a=t[r];if(Object.prototype.hasOwnProperty.call(e,a))return Object.getOwnPropertyNames(s(i(e[a],a)))}return Object.getOwnPropertyNames(e)}}),e[_].__target__||(e[_].__target__=f)}}}return e},s=function(e){if(isObject(e)){if(isProxy(e)){for(var r=0,t=[n,o];r<t.length;r++){var a=t[r];if(Object.prototype.hasOwnProperty.call(e,a))return e[a]}e=e.__target__}for(var u=0,_=Object.entries(e);u<_.length;u++){var l=_[u],c=l[0],f=l[1];if([n,o].includes(c))return"undefined"==typeof Proxy?s(i(f)):f;e[c]=s(f)}}return e};r.resolve=s;var u=function(e){if(isObject(e))for(var r=0,t=Object.entries(e);r<t.length;r++){var n=t[r],o=n[0],i=n[1];if("__target__"!==o&&null!==i&&["function","undefined"].includes(typeof i)){var a=i.__target__;void 0!==a&&(e[o]=a),u(i)}}return e};return Object.prototype.hasOwnProperty.call(e,n)?i(e[n]):Object.prototype.hasOwnProperty.call(e,o)?i(e[o],o):u(s(a(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],i=o[0],a=o[1];!r.includes(i)&&r.some((function(r){return Object.prototype.hasOwnProperty.call(e,r)}))?delete e[i]:isPlainObject(a)&&_removeKeysInEvaluation(a,r)}return e},_extend=function(e,r){for(var t=!1,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var a,s=o;e===IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof e?(t=e,a=r):(a=e,isObject(r)?s=[r].concat(s):void 0!==r&&(a=r));for(var u,_=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},l=_createForOfIteratorHelperLoose(s);!(u=l()).done;){var c=u.value,f=typeof a,p=typeof c;if(isMap(a)&&(f+=" Map"),isMap(c)&&(p+=" Map"),f===p&&a!==c)if(isMap(a)&&isMap(c))for(var d,v=_createForOfIteratorHelperLoose(c);!(d=v()).done;){var y=d.value,b=y[0],O=y[1];a.set(b,_(a.get(b),O))}else if(isObject(a)&&!Array.isArray(a)&&isObject(c)&&!Array.isArray(c))for(var g=0,h=Object.entries(c);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)||(a[m]=_(a[m],P))}else a=c;else a=c}return a},getSubstructure=function(e,r,t,n){void 0===t&&(t=!0),void 0===n&&(n=".");for(var o,i=[],a=_createForOfIteratorHelperLoose([].concat(r));!(o=a()).done;){var s=o.value;if("string"==typeof s)for(var u,_=_createForOfIteratorHelperLoose(s.split(n));!(u=_()).done;){var l=u.value;if(l){var c=l.match(/(.*?)(\[[0-9]+])/g);if(c)for(var f,p=_createForOfIteratorHelperLoose(c);!(f=p()).done;){var d=f.value,v=/(.*?)(\[[0-9]+])/.exec(d),y="",b="";v&&(y=v[1],b=v[2],y&&i.push(y)),i.push(b.substring(1,b.length-1))}else i.push(l)}}else i=i.concat(s)}for(var O,g=e,h=_createForOfIteratorHelperLoose(i);!(O=h()).done;){var j=O.value;if(isObject(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 i=0,a=Object.entries(n);i<a.length;i++){var s=a[i],u=s[0],_=s[1];Object.prototype.hasOwnProperty.call(e,u)&&(!0===_?o[u]=e[u]:(isPlainObject(_)||Array.isArray(_)&&_.length)&&"object"==typeof e[u]&&(o[u]=_mask(e[u],{include:_})))}else o=e;if(isPlainObject(t)){for(var l=!1,c=_extends({},o),f=0,p=Object.entries(t);f<p.length;f++){var d=p[f],v=d[0],y=d[1];if(Object.prototype.hasOwnProperty.call(c,v))if(!0===y)l=!0,delete c[v];else if((isPlainObject(y)||Array.isArray(y)&&y.length)&&"object"==typeof c[v]){var b=c[v];c[v]=_mask(c[v],{exclude:y}),c[v]!==b&&(l=!0)}}l&&(o=c)}return o},_modifyObject=function(e,r,t,n,o,i,a,s,u){if(void 0===t&&(t="__remove__"),void 0===n&&(n="__prepend__"),void 0===o&&(o="__append__"),void 0===i&&(i="__"),void 0===a&&(a="__"),void 0===s&&(s=null),void 0===u&&(u=null),isMap(r)&&isMap(e))for(var _,l=_createForOfIteratorHelperLoose(r);!(_=l()).done;){var c=_.value,f=c[0],p=c[1];e.has(f)&&_modifyObject(e.get(f),p,t,n,o,i,a,r,f)}else if(isObject(r)&&isObject(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(i)&&b.endsWith(a)&&((g=parseInt(b.substring(i.length,b.length-a.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(i)&&m.endsWith(a)?e.splice(parseInt(m.substring(i.length,m.length-a.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):isObject(e[g])&&isObject(O)?_extend(!0,_modifyObject(e[g],O,t,n,o,i,a),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,i,a,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,i=_createForOfIteratorHelperLoose(e.slice());!(n=i()).done;){var a=n.value,s=!1;if("string"==typeof a){for(var u,_=_createForOfIteratorHelperLoose(t);!(u=_()).done;){var l=u.value;if(a.startsWith(l+":")){e.splice(o,1),s=!0;break}}if(s)continue}e[o]=_removeKeyPrefixes(a,t),o+=1}else if(isSet(e))for(var c,f=_createForOfIteratorHelperLoose(new Set(e));!(c=f()).done;){var p=c.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(isObject(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(e instanceof Date)return e.toISOString();if(Array.isArray(e)){for(var i,a="[",s=!1,u=_createForOfIteratorHelperLoose(e);!(i=u()).done;){var _=i.value;s&&(a+=","),a+="\n"+t+r+_represent(_,r,""+t+r,n,o-1),s=!0}return s&&(a+="\n"+t),a+="]"}if(isMap(e)){for(var l,c="",f=!1,p=_createForOfIteratorHelperLoose(e);!(l=p()).done;){var d=l.value,v=d[0],y=d[1];f&&(c+=",\n"+t+r),c+=_represent(v,r,""+t+r,n,o-1)+" -> "+_represent(y,r,""+t+r,n,o-1),f=!0}return f||(c="EmptyMap"),c}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 i=n.value;r.push(i[0])}else if(null!==e)for(var a=0,s=Object.keys(e);a<s.length;a++){var u=s[a];r.push(u)}return r.sort()},_unwrapProxy=function(e,r){if(void 0===r&&(r=new Set),isObject(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 i=t.value;e[n]=_unwrapProxy(i,r),n+=1}else if(isMap(e))for(var a,s=_createForOfIteratorHelperLoose(e);!(a=s()).done;){var u=a.value,_=u[0],l=u[1];e.set(_,_unwrapProxy(l,r))}else if(isSet(e)){for(var c,f=[],p=_createForOfIteratorHelperLoose(e);!(c=p()).done;){var d=c.value;e.delete(d),f.push(_unwrapProxy(d,r))}for(var v=0,y=f;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 indicators_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_0__=__webpack_require__(0),_object__WEBPACK_IMPORTED_MODULE_1__=__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_1__.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_1__.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},indicators_isObject=function(e){return null!==e&&"object"==typeof e},indicators_isPlainObject=function(e){return indicators_isObject(e)&&_constants__WEBPACK_IMPORTED_MODULE_0__.PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(e))},indicators_isSet=function(e){return"set"===(0,_object__WEBPACK_IMPORTED_MODULE_1__.determineType)(e)},indicators_isMap=function(e){return"map"===(0,_object__WEBPACK_IMPORTED_MODULE_1__.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__}()}));