UNPKG

clientnode

Version:

upgrade to object orientated rock solid plugins

1 lines • 26.7 kB
"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__4__){return function(){var __webpack_modules__=[function(e,r,t){t.d(r,{CLASS_TO_TYPE_MAPPING:function(){return n}});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"};Object.prototype},,,function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _extends,VALUE_COPY_SYMBOL,IGNORE_NULL_AND_UNDEFINED_SYMBOL,isMap,isSet,isObject,isPlainObject,isFunction,isProxy,isNumeric,isNotANumber,evaluate,escapeRegularExpressions;__webpack_require__.d(__webpack_exports__,{determineType:function(){return determineType}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),_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,l=_createForOfIteratorHelperLoose(e);!(i=l()).done;){var u=i.value;e[s]=_addDynamicGetterAndSetter(u,r,t,n,o),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,n,o))}else if(isSet(e)){for(var d,b=[],y=_createForOfIteratorHelperLoose(e);!(d=y()).done;){var O=d.value;e.delete(O),b.push(_addDynamicGetterAndSetter(O,r,t,n,o))}for(var g=0,h=b;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],x=A[0],w=A[1];e[x]=_addDynamicGetterAndSetter(w,r,t,n,o)}if(r||t)for(var I,M,L=function(){var o=M.value;if(isObject(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 u(),e}:"function"==typeof e[n]?e[n]:r(a.get(l,n),n,e)}),t&&(i.set=function(r,n,o){return a.set(l,n,t(n,o,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 n=new Map;return function(e){var o=function(e,t){if(isObject(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,l=_createForOfIteratorHelperLoose(t);!(s=l()).done;){var u=s.value;i.push(o(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]=o(p,v)}}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 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 b=d[v];e[p]=_convertMapToPlainObject(b,r),p+=1}else if(isSet(e)){for(var y,O=[],g=_createForOfIteratorHelperLoose(e);!(y=g()).done;){var h=y.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,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 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],b=v[1];e.set(d,_convertPlainObjectToMap(b,r))}else if(isSet(e)){for(var y,O=[],g=_createForOfIteratorHelperLoose(e);!(y=g()).done;){var h=y.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 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),isObject(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 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 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=f.value;n.push(u(c))}else if(e instanceof Map)for(var p,v=_createForOfIteratorHelperLoose(e);!(p=v()).done;){var d=p.value,b=d[0],y=d[1];n.set(b,u(y))}else if(e instanceof Set)for(var O,g=_createForOfIteratorHelperLoose(e);!(O=g()).done;){var h=O.value;n.add(u(h))}else for(var m=0,j=Object.entries(e);m<j.length;m++){var P=j[m],A=P[0],x=P[1];try{n[A]=u(x)}catch(e){throw new Error('Failed to copy property value object "'+A+'": '+_represent(e),{cause:e})}}}return n||e},determineType=function(e){if([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=[],_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 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,_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,a=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(n=a()).done;){var i=n.value;if(r.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 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,_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 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 l=t[r],u=l[0],f=l[1];if("__target__"!==u&&isObject(f)){var _=f;if(i(_),Object.prototype.hasOwnProperty.call(_,n)||Object.prototype.hasOwnProperty.call(_,o)){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=[n,o];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=[n,o];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=[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[u].__target__||(e[u].__target__=c)}}}return e},s=function(e){if(isObject(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 l=0,u=Object.entries(e);l<u.length;l++){var f=u[l],_=f[0],c=f[1];if([n,o].includes(_))return"undefined"==typeof Proxy?s(a(c)):c;e[_]=s(c)}}return e};r.resolve=s;var l=function(e){if(isObject(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),l(a)}}return e};return Object.prototype.hasOwnProperty.call(e,n)?a(e[n]):Object.prototype.hasOwnProperty.call(e,o)?a(e[o],o):l(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,isObject(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))?(n=isMap(r)?e&&isMap(e)?e:new Map:e&&isPlainObject(e)?e:{},_extend(t,n,r)):r;var n},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 b=v.value,y=b[0],O=b[1];i.set(y,u(i.get(y),O))}else if(isObject(i)&&!Array.isArray(i)&&isObject(_)&&!Array.isArray(_))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=_;else i=_}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 l,u=_createForOfIteratorHelperLoose(s.split(n));!(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),b="";if(d){var y;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(isObject(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,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],l=s[0],u=s[1];Object.prototype.hasOwnProperty.call(e,l)&&(!0===u?o[l]=e[l]:(isPlainObject(u)||Array.isArray(u)&&u.length)&&"object"==typeof e[l]&&(o[l]=_mask(e[l],{include:u})))}else o=e;if(isPlainObject(t)){for(var f=!1,_=_extends({},o),c=0,p=Object.entries(t);c<p.length;c++){var v=p[c],d=v[0],b=v[1];if(Object.prototype.hasOwnProperty.call(_,d))if(!0===b)f=!0,delete _[d];else if((isPlainObject(b)||Array.isArray(b)&&b.length)&&"object"==typeof _[d]){var y=_[d];_[d]=_mask(_[d],{exclude:b}),_[d]!==y&&(f=!0)}}f&&(o=_)}return o},_modifyObject=function(e,r,t,n,o,a,i,s,l){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===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,n,o,a,i,r,c)}else if(isObject(r)&&isObject(e))for(var v=0,d=Object.entries(r);v<d.length;v++){var b=d[v],y=b[0],O=b[1],g=NaN;if(Array.isArray(e)&&y.startsWith(a)&&y.endsWith(i)&&((g=parseInt(y.substring(a.length,y.length-i.length),10))<0||g>=e.length)&&(g=NaN),[t,n,o].includes(y)||!isNaN(g)){if(Array.isArray(e))if(y===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 y===o?e=e.concat(O):y===n?e=[].concat(O).concat(e):isObject(e[g])&&isObject(O)?_extend(!0,_modifyObject(e[g],O,t,n,o,a,i),e[g],O):e[g]=O;else if(y===t)for(var P,A=_createForOfIteratorHelperLoose([].concat(O));!(P=A()).done;){var x=P.value;"string"==typeof x&&Object.prototype.hasOwnProperty.call(e,x)&&delete e[x]}delete r[y],s&&"string"==typeof l&&delete s[l]}else null!==e&&Object.prototype.hasOwnProperty.call(e,y)&&(e[y]=_modifyObject(e[y],O,t,n,o,a,i,r,y))}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 l,u=_createForOfIteratorHelperLoose(t);!(l=u()).done;){var f=l.value;if(i.startsWith(f+":")){e.splice(o,1),s=!0;break}}if(s)continue}e[o]=_removeKeyPrefixes(i,t),o+=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,b=_createForOfIteratorHelperLoose(t);!(d=b()).done;){var y=d.value;if(p.startsWith(y+":")){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,x=_createForOfIteratorHelperLoose(t);!(A=x()).done;){var w=A.value,I=escapeRegularExpressions(w);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(isObject(e))for(var M=0,L=Object.entries(Object.assign({},e));M<L.length;M++){for(var E,S=L[M],N=S[0],T=S[1],F=!1,k=_createForOfIteratorHelperLoose(t);!(E=k()).done;){var V=E.value,D=escapeRegularExpressions(V);if(new RegExp("^"+D+"[0-9]*$").test(N)){delete e[N],F=!0;break}}F||(e[N]=_removeKeyPrefixes(T,t))}return e},_represent=function(e,r,t,n,o,a){if(void 0===r&&(r=30),void 0===t&&(t=" "),void 0===n&&(n=""),void 0===o&&(o="__maximum_number_of_levels_reached__"),void 0===a&&(a=8),0===a)return String(o);if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return'"'+e.replace(/\n/g,"\n"+n)+'"';if(isNumeric(e)||"boolean"==typeof e)return String(e);if(e instanceof Date)return e.toISOString();if(Array.isArray(e)){for(var i,s="[",l=!1,u=1,f=_createForOfIteratorHelperLoose(e);!(i=f()).done;){var _=i.value;if(u>r){s+="\n"+n+"...";break}l&&(s+=","),s+="\n"+n+t+_represent(_,r,t,""+n+t,o,a-1),l=!0,u+=1}return l&&(s+="\n"+n),s+="]"}if(isMap(e)){for(var c,p="",v=!1,d=1,b=_createForOfIteratorHelperLoose(e);!(c=b()).done;){var y=c.value,O=y[0],g=y[1];if(d>r){p+=",\n"+n+"...";break}v&&(p+=",\n"+n+t),p+=_represent(O,r,t,""+n+t,o,a-1)+" -> "+_represent(g,r,t,""+n+t,o,a-1),v=!0,d+=1}return v||(p="EmptyMap"),p}if(isSet(e)){for(var h,m="{",j=!1,P=1,A=_createForOfIteratorHelperLoose(e);!(h=A()).done;){var x=h.value;if(P>r){m+=",\n"+n+"...";break}j&&(m+=","),m+="\n"+n+t+_represent(x,r,t,""+n+t,o,a-1),j=!0,P+=1}return j?m+="\n"+n+"}":m="EmptySet",m}if(isFunction(e))return"__function__";for(var w,I="{",M=!1,L=1,E=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(e).sort());!(w=E()).done;){var S=w.value;if(L>r){I+=",\n"+n+"...";break}M&&(I+=","),I+="\n"+n+t+S+": "+_represent(e[S],r,t,""+n+t,o,a-1),M=!0,L+=1}return M&&(I+="\n"+n),I+="}"},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 l=s[i];r.push(l)}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 a=t.value;e[n]=_unwrapProxy(a,r),n+=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,b=c;d<b.length;d++){var y=b[d];e.add(y)}}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}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__}],__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 isNotANumber},round:function(){return round}});var _object__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),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)},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__}()}));