clientnode 4.0.1488 → 4.0.1490
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.
- package/dist/Logger.js +7 -3
- package/dist/array.js +7 -3
- package/dist/bundle/index.js +47 -33
- package/dist/compatible/Logger.js +7 -3
- package/dist/compatible/array.js +7 -3
- package/dist/compatible/data-transfer.js +7 -3
- package/dist/compatible/datetime.js +43 -33
- package/dist/compatible/domNode.js +5 -1
- package/dist/compatible/expression/evaluators.js +41 -31
- package/dist/compatible/expression/index.js +41 -31
- package/dist/compatible/expression/indicator-functions.js +5 -1
- package/dist/compatible/index.js +47 -33
- package/dist/compatible/indicators.js +7 -3
- package/dist/compatible/number.js +2 -2
- package/dist/compatible/object.js +41 -31
- package/dist/compatible/scope.js +44 -32
- package/dist/compatible/string.js +43 -31
- package/dist/compatible/test-helper.js +7 -3
- package/dist/compatible/utility.js +5 -1
- package/dist/data-transfer.js +7 -3
- package/dist/datetime.js +43 -33
- package/dist/domNode.js +5 -1
- package/dist/expression/evaluators.js +41 -31
- package/dist/expression/index.js +41 -31
- package/dist/expression/indicator-functions.js +5 -1
- package/dist/index.js +47 -33
- package/dist/indicators.js +7 -3
- package/dist/number.js +2 -2
- package/dist/object.js +41 -31
- package/dist/scope.js +44 -32
- package/dist/string.d.ts +25 -19
- package/dist/string.js +43 -31
- package/dist/test-helper.js +7 -3
- package/dist/type.d.ts +12 -0
- package/dist/utility.js +5 -1
- package/package.json +7 -7
package/dist/Logger.js
CHANGED
|
@@ -230,7 +230,7 @@ if(options.deep!==0){var result=_equals(value,second[key],_objectSpread(_objectS
|
|
|
230
230
|
* @param givenOptions.executionIndicatorKey - Indicator property name to mark
|
|
231
231
|
* a value to evaluate.
|
|
232
232
|
* @returns Evaluated given mapping.
|
|
233
|
-
*/var evaluateDynamicData=function evaluateDynamicData(object,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__evaluate__",executionIndicatorKey:"__execute__"},givenOptions);if(_typeof(object)!=="object"||object===null)return object;if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=object;var internalEvaluateAndThrowError=function internalEvaluateAndThrowError(code,type){if(type===void 0){type=options.expressionIndicatorKey}return evaluateOrThrowError(code,options.scope,type===options.executionIndicatorKey)};var _addProxyRecursively=function addProxyRecursively(data){if(_typeof(data)!=="object"||data===null||typeof Proxy==="undefined")return data;for(var _i14=0,_Object$entries8=Object.entries(data);_i14<_Object$entries8.length;_i14++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i14],2),key=_Object$entries8$_i[0],givenValue=_Object$entries8$_i[1];if(key!=="__target__"&&isObject(givenValue)){var value=givenValue;_addProxyRecursively(value);// NOTE: We only wrap needed objects for performance reasons.
|
|
233
|
+
*/var evaluateDynamicData=function evaluateDynamicData(object,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__evaluate__",executionIndicatorKey:"__execute__"},givenOptions);if(_typeof(object)!=="object"||object===null)return object;if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=object;var internalEvaluateAndThrowError=function internalEvaluateAndThrowError(code,type){if(type===void 0){type=options.expressionIndicatorKey}return evaluateOrThrowError(code,{scope:options.scope,async:false,execute:type===options.executionIndicatorKey})};var _addProxyRecursively=function addProxyRecursively(data){if(_typeof(data)!=="object"||data===null||typeof Proxy==="undefined")return data;for(var _i14=0,_Object$entries8=Object.entries(data);_i14<_Object$entries8.length;_i14++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i14],2),key=_Object$entries8$_i[0],givenValue=_Object$entries8$_i[1];if(key!=="__target__"&&isObject(givenValue)){var value=givenValue;_addProxyRecursively(value);// NOTE: We only wrap needed objects for performance reasons.
|
|
234
234
|
if(Object.prototype.hasOwnProperty.call(value,options.expressionIndicatorKey)||Object.prototype.hasOwnProperty.call(value,options.executionIndicatorKey)){var backup=value;data[key]=new Proxy(value,{get:function get(target,key){if(key==="__target__")return target;if(key==="hasOwnProperty")/*
|
|
235
235
|
eslint-disable
|
|
236
236
|
@typescript-eslint/unbound-method
|
|
@@ -258,7 +258,7 @@ for(var _i18=0,_arr9=[options.expressionIndicatorKey,options.executionIndicatorK
|
|
|
258
258
|
* @param givenOptions.executionIndicatorKey - Indicator property name to mark
|
|
259
259
|
* a value to evaluate.
|
|
260
260
|
* @returns Evaluated given mapping.
|
|
261
|
-
*/var _evaluateAsyncDynamicData=/*#__PURE__*/(/* unused pure expression or super */ null && (function(){var _evaluateAsyncDynamicData2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(data,givenOptions){var options,result,index,_iterator16,_step16,item,_i21,_Object$entries1,_Object$entries1$_i,key,value,_t;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(givenOptions===void 0){givenOptions={}}options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__await_evaluate__",executionIndicatorKey:"__await_execute__"},givenOptions);if(isObject(data)){_context.n=1;break}return _context.a(2,data);case 1:if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=data;result=data;if(!Array.isArray(data)){_context.n=10;break}index=0;_iterator16=_createForOfIteratorHelper(data);_context.p=2;_iterator16.s();case 3:if((_step16=_iterator16.n()).done){_context.n=6;break}item=_step16.value;_context.n=4;return _evaluateAsyncDynamicData(item,options);case 4:result[index]=_context.v;index+=1;case 5:_context.n=3;break;case 6:_context.n=8;break;case 7:_context.p=7;_t=_context.v;_iterator16.e(_t);case 8:_context.p=8;_iterator16.f();return _context.f(8);case 9:return _context.a(2,result);case 10:_i21=0,_Object$entries1=Object.entries(data);case 11:if(!(_i21<_Object$entries1.length)){_context.n=16;break}_Object$entries1$_i=_slicedToArray(_Object$entries1[_i21],2),key=_Object$entries1$_i[0],value=_Object$entries1$_i[1];if(![options.expressionIndicatorKey,options.executionIndicatorKey].includes(key)){_context.n=13;break}_context.n=12;return evaluateOrThrowError(value,options.scope,key===options.executionIndicatorKey);case 12:return _context.a(2,_context.v);case 13:_context.n=14;return _evaluateAsyncDynamicData(value,options);case 14:result[key]=_context.v;case 15:_i21++;_context.n=11;break;case 16:return _context.a(2,result)}},_callee,null,[[2,7,8,9]])}));function evaluateAsyncDynamicData(_x,_x2){return _evaluateAsyncDynamicData2.apply(this,arguments)}return evaluateAsyncDynamicData}()));/**
|
|
261
|
+
*/var _evaluateAsyncDynamicData=/*#__PURE__*/(/* unused pure expression or super */ null && (function(){var _evaluateAsyncDynamicData2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(data,givenOptions){var options,result,index,_iterator16,_step16,item,_i21,_Object$entries1,_Object$entries1$_i,key,value,_t;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(givenOptions===void 0){givenOptions={}}options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__await_evaluate__",executionIndicatorKey:"__await_execute__"},givenOptions);if(isObject(data)){_context.n=1;break}return _context.a(2,data);case 1:if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=data;result=data;if(!Array.isArray(data)){_context.n=10;break}index=0;_iterator16=_createForOfIteratorHelper(data);_context.p=2;_iterator16.s();case 3:if((_step16=_iterator16.n()).done){_context.n=6;break}item=_step16.value;_context.n=4;return _evaluateAsyncDynamicData(item,options);case 4:result[index]=_context.v;index+=1;case 5:_context.n=3;break;case 6:_context.n=8;break;case 7:_context.p=7;_t=_context.v;_iterator16.e(_t);case 8:_context.p=8;_iterator16.f();return _context.f(8);case 9:return _context.a(2,result);case 10:_i21=0,_Object$entries1=Object.entries(data);case 11:if(!(_i21<_Object$entries1.length)){_context.n=16;break}_Object$entries1$_i=_slicedToArray(_Object$entries1[_i21],2),key=_Object$entries1$_i[0],value=_Object$entries1$_i[1];if(![options.expressionIndicatorKey,options.executionIndicatorKey].includes(key)){_context.n=13;break}_context.n=12;return evaluateOrThrowError(value,{scope:options.scope,async:true,execute:key===options.executionIndicatorKey});case 12:return _context.a(2,_context.v);case 13:_context.n=14;return _evaluateAsyncDynamicData(value,options);case 14:result[key]=_context.v;case 15:_i21++;_context.n=11;break;case 16:return _context.a(2,result)}},_callee,null,[[2,7,8,9]])}));function evaluateAsyncDynamicData(_x,_x2){return _evaluateAsyncDynamicData2.apply(this,arguments)}return evaluateAsyncDynamicData}()));/**
|
|
262
262
|
* Removes properties in objects where a dynamic indicator lives.
|
|
263
263
|
* @param data - Object to traverse recursively.
|
|
264
264
|
* @param expressionIndicators - Property key to remove.
|
|
@@ -401,7 +401,11 @@ result=object;if(isPlainObject(exclude)){var useCopy=false;var copy=_objectSprea
|
|
|
401
401
|
* @param value - Value to check.
|
|
402
402
|
* @returns Value "true" if given object is a plain javaScript object and
|
|
403
403
|
* "false" otherwise.
|
|
404
|
-
*/var isPlainObject=function isPlainObject(value){
|
|
404
|
+
*/var isPlainObject=function isPlainObject(value){var _prototype$constructo;if(!isObject(value))return false;var prototype=Object.getPrototypeOf(value);if(PLAIN_OBJECT_PROTOTYPES.includes(prototype))return true;/*
|
|
405
|
+
NOTE: Plain objects created in another realm (a vm context like used by
|
|
406
|
+
test runners or a worker for example) have their own "Object.prototype"
|
|
407
|
+
instance and would not be recognized by the identity check above.
|
|
408
|
+
*/return prototype!==null&&Object.getPrototypeOf(prototype)===null&&((_prototype$constructo=prototype.constructor)===null||_prototype$constructo===void 0?void 0:_prototype$constructo.name)==="Object"};/**
|
|
405
409
|
* Checks whether given object is a set.
|
|
406
410
|
* @param value - Value to check.
|
|
407
411
|
* @returns Value "true" if given object is a set and "false" otherwise.
|
package/dist/array.js
CHANGED
|
@@ -196,7 +196,7 @@ if(options.deep!==0){var result=_equals(value,second[key],_objectSpread(_objectS
|
|
|
196
196
|
* @param givenOptions.executionIndicatorKey - Indicator property name to mark
|
|
197
197
|
* a value to evaluate.
|
|
198
198
|
* @returns Evaluated given mapping.
|
|
199
|
-
*/var evaluateDynamicData=function evaluateDynamicData(object,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__evaluate__",executionIndicatorKey:"__execute__"},givenOptions);if(_typeof(object)!=="object"||object===null)return object;if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=object;var internalEvaluateAndThrowError=function internalEvaluateAndThrowError(code,type){if(type===void 0){type=options.expressionIndicatorKey}return evaluateOrThrowError(code,options.scope,type===options.executionIndicatorKey)};var _addProxyRecursively=function addProxyRecursively(data){if(_typeof(data)!=="object"||data===null||typeof Proxy==="undefined")return data;for(var _i14=0,_Object$entries8=Object.entries(data);_i14<_Object$entries8.length;_i14++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i14],2),key=_Object$entries8$_i[0],givenValue=_Object$entries8$_i[1];if(key!=="__target__"&&isObject(givenValue)){var value=givenValue;_addProxyRecursively(value);// NOTE: We only wrap needed objects for performance reasons.
|
|
199
|
+
*/var evaluateDynamicData=function evaluateDynamicData(object,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__evaluate__",executionIndicatorKey:"__execute__"},givenOptions);if(_typeof(object)!=="object"||object===null)return object;if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=object;var internalEvaluateAndThrowError=function internalEvaluateAndThrowError(code,type){if(type===void 0){type=options.expressionIndicatorKey}return evaluateOrThrowError(code,{scope:options.scope,async:false,execute:type===options.executionIndicatorKey})};var _addProxyRecursively=function addProxyRecursively(data){if(_typeof(data)!=="object"||data===null||typeof Proxy==="undefined")return data;for(var _i14=0,_Object$entries8=Object.entries(data);_i14<_Object$entries8.length;_i14++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i14],2),key=_Object$entries8$_i[0],givenValue=_Object$entries8$_i[1];if(key!=="__target__"&&isObject(givenValue)){var value=givenValue;_addProxyRecursively(value);// NOTE: We only wrap needed objects for performance reasons.
|
|
200
200
|
if(Object.prototype.hasOwnProperty.call(value,options.expressionIndicatorKey)||Object.prototype.hasOwnProperty.call(value,options.executionIndicatorKey)){var backup=value;data[key]=new Proxy(value,{get:function get(target,key){if(key==="__target__")return target;if(key==="hasOwnProperty")/*
|
|
201
201
|
eslint-disable
|
|
202
202
|
@typescript-eslint/unbound-method
|
|
@@ -224,7 +224,7 @@ for(var _i18=0,_arr9=[options.expressionIndicatorKey,options.executionIndicatorK
|
|
|
224
224
|
* @param givenOptions.executionIndicatorKey - Indicator property name to mark
|
|
225
225
|
* a value to evaluate.
|
|
226
226
|
* @returns Evaluated given mapping.
|
|
227
|
-
*/var _evaluateAsyncDynamicData=/*#__PURE__*/(/* unused pure expression or super */ null && (function(){var _evaluateAsyncDynamicData2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(data,givenOptions){var options,result,index,_iterator16,_step16,item,_i21,_Object$entries1,_Object$entries1$_i,key,value,_t;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(givenOptions===void 0){givenOptions={}}options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__await_evaluate__",executionIndicatorKey:"__await_execute__"},givenOptions);if(isObject(data)){_context.n=1;break}return _context.a(2,data);case 1:if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=data;result=data;if(!Array.isArray(data)){_context.n=10;break}index=0;_iterator16=_createForOfIteratorHelper(data);_context.p=2;_iterator16.s();case 3:if((_step16=_iterator16.n()).done){_context.n=6;break}item=_step16.value;_context.n=4;return _evaluateAsyncDynamicData(item,options);case 4:result[index]=_context.v;index+=1;case 5:_context.n=3;break;case 6:_context.n=8;break;case 7:_context.p=7;_t=_context.v;_iterator16.e(_t);case 8:_context.p=8;_iterator16.f();return _context.f(8);case 9:return _context.a(2,result);case 10:_i21=0,_Object$entries1=Object.entries(data);case 11:if(!(_i21<_Object$entries1.length)){_context.n=16;break}_Object$entries1$_i=_slicedToArray(_Object$entries1[_i21],2),key=_Object$entries1$_i[0],value=_Object$entries1$_i[1];if(![options.expressionIndicatorKey,options.executionIndicatorKey].includes(key)){_context.n=13;break}_context.n=12;return evaluateOrThrowError(value,options.scope,key===options.executionIndicatorKey);case 12:return _context.a(2,_context.v);case 13:_context.n=14;return _evaluateAsyncDynamicData(value,options);case 14:result[key]=_context.v;case 15:_i21++;_context.n=11;break;case 16:return _context.a(2,result)}},_callee,null,[[2,7,8,9]])}));function evaluateAsyncDynamicData(_x,_x2){return _evaluateAsyncDynamicData2.apply(this,arguments)}return evaluateAsyncDynamicData}()));/**
|
|
227
|
+
*/var _evaluateAsyncDynamicData=/*#__PURE__*/(/* unused pure expression or super */ null && (function(){var _evaluateAsyncDynamicData2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(data,givenOptions){var options,result,index,_iterator16,_step16,item,_i21,_Object$entries1,_Object$entries1$_i,key,value,_t;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(givenOptions===void 0){givenOptions={}}options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__await_evaluate__",executionIndicatorKey:"__await_execute__"},givenOptions);if(isObject(data)){_context.n=1;break}return _context.a(2,data);case 1:if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=data;result=data;if(!Array.isArray(data)){_context.n=10;break}index=0;_iterator16=_createForOfIteratorHelper(data);_context.p=2;_iterator16.s();case 3:if((_step16=_iterator16.n()).done){_context.n=6;break}item=_step16.value;_context.n=4;return _evaluateAsyncDynamicData(item,options);case 4:result[index]=_context.v;index+=1;case 5:_context.n=3;break;case 6:_context.n=8;break;case 7:_context.p=7;_t=_context.v;_iterator16.e(_t);case 8:_context.p=8;_iterator16.f();return _context.f(8);case 9:return _context.a(2,result);case 10:_i21=0,_Object$entries1=Object.entries(data);case 11:if(!(_i21<_Object$entries1.length)){_context.n=16;break}_Object$entries1$_i=_slicedToArray(_Object$entries1[_i21],2),key=_Object$entries1$_i[0],value=_Object$entries1$_i[1];if(![options.expressionIndicatorKey,options.executionIndicatorKey].includes(key)){_context.n=13;break}_context.n=12;return evaluateOrThrowError(value,{scope:options.scope,async:true,execute:key===options.executionIndicatorKey});case 12:return _context.a(2,_context.v);case 13:_context.n=14;return _evaluateAsyncDynamicData(value,options);case 14:result[key]=_context.v;case 15:_i21++;_context.n=11;break;case 16:return _context.a(2,result)}},_callee,null,[[2,7,8,9]])}));function evaluateAsyncDynamicData(_x,_x2){return _evaluateAsyncDynamicData2.apply(this,arguments)}return evaluateAsyncDynamicData}()));/**
|
|
228
228
|
* Removes properties in objects where a dynamic indicator lives.
|
|
229
229
|
* @param data - Object to traverse recursively.
|
|
230
230
|
* @param expressionIndicators - Property key to remove.
|
|
@@ -368,7 +368,11 @@ result=object;if(isPlainObject(exclude)){var useCopy=false;var copy=_objectSprea
|
|
|
368
368
|
* @param value - Value to check.
|
|
369
369
|
* @returns Value "true" if given object is a plain javaScript object and
|
|
370
370
|
* "false" otherwise.
|
|
371
|
-
*/var isPlainObject=function isPlainObject(value){
|
|
371
|
+
*/var isPlainObject=function isPlainObject(value){var _prototype$constructo;if(!isObject(value))return false;var prototype=Object.getPrototypeOf(value);if(_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .PLAIN_OBJECT_PROTOTYPES */ .jE.includes(prototype))return true;/*
|
|
372
|
+
NOTE: Plain objects created in another realm (a vm context like used by
|
|
373
|
+
test runners or a worker for example) have their own "Object.prototype"
|
|
374
|
+
instance and would not be recognized by the identity check above.
|
|
375
|
+
*/return prototype!==null&&Object.getPrototypeOf(prototype)===null&&((_prototype$constructo=prototype.constructor)===null||_prototype$constructo===void 0?void 0:_prototype$constructo.name)==="Object"};/**
|
|
372
376
|
* Checks whether given object is a set.
|
|
373
377
|
* @param value - Value to check.
|
|
374
378
|
* @returns Value "true" if given object is a set and "false" otherwise.
|
package/dist/bundle/index.js
CHANGED
|
@@ -656,7 +656,7 @@ if(options.deep!==0){var result=_equals(value,second[key],_objectSpread(_objectS
|
|
|
656
656
|
* @param givenOptions.executionIndicatorKey - Indicator property name to mark
|
|
657
657
|
* a value to evaluate.
|
|
658
658
|
* @returns Evaluated given mapping.
|
|
659
|
-
*/var evaluateDynamicData=function evaluateDynamicData(object,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__evaluate__",executionIndicatorKey:"__execute__"},givenOptions);if(_typeof(object)!=="object"||object===null)return object;if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=object;var internalEvaluateAndThrowError=function internalEvaluateAndThrowError(code,type){if(type===void 0){type=options.expressionIndicatorKey}return (0,_string_js__WEBPACK_IMPORTED_MODULE_5__/* .evaluateOrThrowError */ .VK)(code,options.scope,type===options.executionIndicatorKey)};var _addProxyRecursively=function addProxyRecursively(data){if(_typeof(data)!=="object"||data===null||typeof Proxy==="undefined")return data;for(var _i14=0,_Object$entries8=Object.entries(data);_i14<_Object$entries8.length;_i14++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i14],2),key=_Object$entries8$_i[0],givenValue=_Object$entries8$_i[1];if(key!=="__target__"&&(0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isObject */ .Gv)(givenValue)){var value=givenValue;_addProxyRecursively(value);// NOTE: We only wrap needed objects for performance reasons.
|
|
659
|
+
*/var evaluateDynamicData=function evaluateDynamicData(object,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__evaluate__",executionIndicatorKey:"__execute__"},givenOptions);if(_typeof(object)!=="object"||object===null)return object;if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=object;var internalEvaluateAndThrowError=function internalEvaluateAndThrowError(code,type){if(type===void 0){type=options.expressionIndicatorKey}return (0,_string_js__WEBPACK_IMPORTED_MODULE_5__/* .evaluateOrThrowError */ .VK)(code,{scope:options.scope,async:false,execute:type===options.executionIndicatorKey})};var _addProxyRecursively=function addProxyRecursively(data){if(_typeof(data)!=="object"||data===null||typeof Proxy==="undefined")return data;for(var _i14=0,_Object$entries8=Object.entries(data);_i14<_Object$entries8.length;_i14++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i14],2),key=_Object$entries8$_i[0],givenValue=_Object$entries8$_i[1];if(key!=="__target__"&&(0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isObject */ .Gv)(givenValue)){var value=givenValue;_addProxyRecursively(value);// NOTE: We only wrap needed objects for performance reasons.
|
|
660
660
|
if(Object.prototype.hasOwnProperty.call(value,options.expressionIndicatorKey)||Object.prototype.hasOwnProperty.call(value,options.executionIndicatorKey)){var backup=value;data[key]=new Proxy(value,{get:function get(target,key){if(key==="__target__")return target;if(key==="hasOwnProperty")/*
|
|
661
661
|
eslint-disable
|
|
662
662
|
@typescript-eslint/unbound-method
|
|
@@ -684,7 +684,7 @@ for(var _i18=0,_arr9=[options.expressionIndicatorKey,options.executionIndicatorK
|
|
|
684
684
|
* @param givenOptions.executionIndicatorKey - Indicator property name to mark
|
|
685
685
|
* a value to evaluate.
|
|
686
686
|
* @returns Evaluated given mapping.
|
|
687
|
-
*/var _evaluateAsyncDynamicData=/*#__PURE__*/function(){var _evaluateAsyncDynamicData2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(data,givenOptions){var options,result,index,_iterator16,_step16,item,_i21,_Object$entries1,_Object$entries1$_i,key,value,_t;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(givenOptions===void 0){givenOptions={}}options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__await_evaluate__",executionIndicatorKey:"__await_execute__"},givenOptions);if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isObject */ .Gv)(data)){_context.n=1;break}return _context.a(2,data);case 1:if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=data;result=data;if(!Array.isArray(data)){_context.n=10;break}index=0;_iterator16=_createForOfIteratorHelper(data);_context.p=2;_iterator16.s();case 3:if((_step16=_iterator16.n()).done){_context.n=6;break}item=_step16.value;_context.n=4;return _evaluateAsyncDynamicData(item,options);case 4:result[index]=_context.v;index+=1;case 5:_context.n=3;break;case 6:_context.n=8;break;case 7:_context.p=7;_t=_context.v;_iterator16.e(_t);case 8:_context.p=8;_iterator16.f();return _context.f(8);case 9:return _context.a(2,result);case 10:_i21=0,_Object$entries1=Object.entries(data);case 11:if(!(_i21<_Object$entries1.length)){_context.n=16;break}_Object$entries1$_i=_slicedToArray(_Object$entries1[_i21],2),key=_Object$entries1$_i[0],value=_Object$entries1$_i[1];if(![options.expressionIndicatorKey,options.executionIndicatorKey].includes(key)){_context.n=13;break}_context.n=12;return (0,_string_js__WEBPACK_IMPORTED_MODULE_5__/* .evaluateOrThrowError */ .VK)(value,options.scope,key===options.executionIndicatorKey);case 12:return _context.a(2,_context.v);case 13:_context.n=14;return _evaluateAsyncDynamicData(value,options);case 14:result[key]=_context.v;case 15:_i21++;_context.n=11;break;case 16:return _context.a(2,result)}},_callee,null,[[2,7,8,9]])}));function evaluateAsyncDynamicData(_x,_x2){return _evaluateAsyncDynamicData2.apply(this,arguments)}return evaluateAsyncDynamicData}();/**
|
|
687
|
+
*/var _evaluateAsyncDynamicData=/*#__PURE__*/function(){var _evaluateAsyncDynamicData2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(data,givenOptions){var options,result,index,_iterator16,_step16,item,_i21,_Object$entries1,_Object$entries1$_i,key,value,_t;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(givenOptions===void 0){givenOptions={}}options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__await_evaluate__",executionIndicatorKey:"__await_execute__"},givenOptions);if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isObject */ .Gv)(data)){_context.n=1;break}return _context.a(2,data);case 1:if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=data;result=data;if(!Array.isArray(data)){_context.n=10;break}index=0;_iterator16=_createForOfIteratorHelper(data);_context.p=2;_iterator16.s();case 3:if((_step16=_iterator16.n()).done){_context.n=6;break}item=_step16.value;_context.n=4;return _evaluateAsyncDynamicData(item,options);case 4:result[index]=_context.v;index+=1;case 5:_context.n=3;break;case 6:_context.n=8;break;case 7:_context.p=7;_t=_context.v;_iterator16.e(_t);case 8:_context.p=8;_iterator16.f();return _context.f(8);case 9:return _context.a(2,result);case 10:_i21=0,_Object$entries1=Object.entries(data);case 11:if(!(_i21<_Object$entries1.length)){_context.n=16;break}_Object$entries1$_i=_slicedToArray(_Object$entries1[_i21],2),key=_Object$entries1$_i[0],value=_Object$entries1$_i[1];if(![options.expressionIndicatorKey,options.executionIndicatorKey].includes(key)){_context.n=13;break}_context.n=12;return (0,_string_js__WEBPACK_IMPORTED_MODULE_5__/* .evaluateOrThrowError */ .VK)(value,{scope:options.scope,async:true,execute:key===options.executionIndicatorKey});case 12:return _context.a(2,_context.v);case 13:_context.n=14;return _evaluateAsyncDynamicData(value,options);case 14:result[key]=_context.v;case 15:_i21++;_context.n=11;break;case 16:return _context.a(2,result)}},_callee,null,[[2,7,8,9]])}));function evaluateAsyncDynamicData(_x,_x2){return _evaluateAsyncDynamicData2.apply(this,arguments)}return evaluateAsyncDynamicData}();/**
|
|
688
688
|
* Removes properties in objects where a dynamic indicator lives.
|
|
689
689
|
* @param data - Object to traverse recursively.
|
|
690
690
|
* @param expressionIndicators - Property key to remove.
|
|
@@ -2141,7 +2141,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2141
2141
|
* @param value - Value to check.
|
|
2142
2142
|
* @returns Value "true" if given object is a plain javaScript object and
|
|
2143
2143
|
* "false" otherwise.
|
|
2144
|
-
*/var isPlainObject=function isPlainObject(value){
|
|
2144
|
+
*/var isPlainObject=function isPlainObject(value){var _prototype$constructo;if(!isObject(value))return false;var prototype=Object.getPrototypeOf(value);if(_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .PLAIN_OBJECT_PROTOTYPES */ .jE.includes(prototype))return true;/*
|
|
2145
|
+
NOTE: Plain objects created in another realm (a vm context like used by
|
|
2146
|
+
test runners or a worker for example) have their own "Object.prototype"
|
|
2147
|
+
instance and would not be recognized by the identity check above.
|
|
2148
|
+
*/return prototype!==null&&Object.getPrototypeOf(prototype)===null&&((_prototype$constructo=prototype.constructor)===null||_prototype$constructo===void 0?void 0:_prototype$constructo.name)==="Object"};/**
|
|
2145
2149
|
* Checks whether given object is a set.
|
|
2146
2150
|
* @param value - Value to check.
|
|
2147
2151
|
* @returns Value "true" if given object is a set and "false" otherwise.
|
|
@@ -2250,6 +2254,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2250
2254
|
/* harmony export */ aL: function() { return /* binding */ ALLOWED_VARIABLE_SYMBOLS; },
|
|
2251
2255
|
/* harmony export */ bM: function() { return /* binding */ ALLOWED_STARTING_VARIABLE_SYMBOLS; },
|
|
2252
2256
|
/* harmony export */ dc: function() { return /* binding */ normalizeURL; },
|
|
2257
|
+
/* harmony export */ fS: function() { return /* binding */ AsyncFunction; },
|
|
2253
2258
|
/* harmony export */ gB: function() { return /* binding */ getProtocolName; },
|
|
2254
2259
|
/* harmony export */ gQ: function() { return /* binding */ lowerCase; },
|
|
2255
2260
|
/* harmony export */ h1: function() { return /* binding */ camelCaseToDelimited; },
|
|
@@ -2285,12 +2290,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2285
2290
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
2286
2291
|
endregion
|
|
2287
2292
|
*/// region imports
|
|
2288
|
-
function _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.getOwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function
|
|
2293
|
+
function _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.getOwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&_setPrototypeOf(p,r.prototype),p}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return _defaults(t,e),t},_setPrototypeOf(t,e)}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n};function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(_defaults(e,GeneratorFunctionPrototype),_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e)})}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)})}};// endregion
|
|
2289
2294
|
var KNOWN_DISALLOWED_VARIABLE_NAMES_BUT_OBJECT_KEYS=["default","if","for","class","function","return","const","let","var"];var POLYFILL_TEMPLATE_STRINGS={value:false};// Partial regular expression matching symbols which should be allowed within a
|
|
2290
2295
|
// variable name excluding the first character.
|
|
2291
2296
|
var ALLOWED_VARIABLE_SYMBOLS="0-9a-zA-Z_$";// Partial regular expression matching symbols which should be allowed as
|
|
2292
2297
|
// starting character for a variable name.
|
|
2293
|
-
var ALLOWED_STARTING_VARIABLE_SYMBOLS="a-zA-Z_$";var FIX_ENCODING_ERROR_MAPPING=[["\xC3\\x84","\xC4"],["\xC3\\x96","\xD6"],["\xC3\\x9c","\xDC"],["\xC3\xA4","\xE4"],["\xC3\xB6","\xF6"],["\xC3\xBC","\xFC"],["\\x96","-"],["\xC3\xA9","\xE9"],["\xC3\xA8","e"],["\xC3\xB4","o"],["\xC3 ","\xE1"],["\xC3\xB8","\xF8"],["\xC3\\x9f","\xDF"],["\xC3","\xDF"]]
|
|
2298
|
+
var ALLOWED_STARTING_VARIABLE_SYMBOLS="a-zA-Z_$";var FIX_ENCODING_ERROR_MAPPING=[["\xC3\\x84","\xC4"],["\xC3\\x96","\xD6"],["\xC3\\x9c","\xDC"],["\xC3\xA4","\xE4"],["\xC3\xB6","\xF6"],["\xC3\xBC","\xFC"],["\\x96","-"],["\xC3\xA9","\xE9"],["\xC3\xA8","e"],["\xC3\xB4","o"],["\xC3 ","\xE1"],["\xC3\xB8","\xF8"],["\xC3\\x9f","\xDF"],["\xC3","\xDF"]];var AsyncFunction=// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2299
|
+
Object.getPrototypeOf(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(){return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:return _context.a(2)}},_callee)}))).constructor;/**
|
|
2294
2300
|
* Translates a given string into the regular expression validated
|
|
2295
2301
|
* representation.
|
|
2296
2302
|
* @param value - String to convert.
|
|
@@ -2433,18 +2439,20 @@ var parameters=[];var _iterator2=_createForOfIteratorHelper(data),_step2;try{for
|
|
|
2433
2439
|
*/var delimitedToCamelCase=function delimitedToCamelCase(value,delimiter,abbreviations,preserveWrongFormattedAbbreviations,removeMultipleDelimiter){if(delimiter===void 0){delimiter="-"}if(abbreviations===void 0){abbreviations=null}if(preserveWrongFormattedAbbreviations===void 0){preserveWrongFormattedAbbreviations=false}if(removeMultipleDelimiter===void 0){removeMultipleDelimiter=false}var escapedDelimiter=maskForRegularExpression(delimiter);if(!abbreviations)abbreviations=_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .ABBREVIATIONS */ .Iy;var abbreviationPattern;if(preserveWrongFormattedAbbreviations)abbreviationPattern=_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .ABBREVIATIONS */ .Iy.join("|");else{abbreviationPattern="";var _iterator4=_createForOfIteratorHelper(abbreviations),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var abbreviation=_step4.value;if(abbreviationPattern)abbreviationPattern+="|";abbreviationPattern+="".concat(capitalize(abbreviation),"|").concat(abbreviation)}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}}var stringStartsWithDelimiter=value.startsWith(delimiter);if(stringStartsWithDelimiter)value=value.substring(delimiter.length);value=value.replace(new RegExp("(".concat(escapedDelimiter,")(").concat(abbreviationPattern,")")+"(".concat(escapedDelimiter,"|$)"),"g"),function(_fullMatch,before,abbreviation,after){return before+abbreviation.toUpperCase()+after});if(removeMultipleDelimiter)escapedDelimiter="(?:".concat(escapedDelimiter,")+");value=value.replace(new RegExp("".concat(escapedDelimiter,"([a-zA-Z0-9])"),"g"),function(_fullMatch,firstLetter){return firstLetter.toUpperCase()});if(stringStartsWithDelimiter)value=delimiter+value;return value};/**
|
|
2434
2440
|
* Compiles a given string as an expression with given scope names.
|
|
2435
2441
|
* @param expression - The string to interpret.
|
|
2436
|
-
* @param
|
|
2437
|
-
* @param
|
|
2438
|
-
* @param
|
|
2439
|
-
*
|
|
2440
|
-
*
|
|
2442
|
+
* @param givenOptions - Expression options.
|
|
2443
|
+
* @param givenOptions.scope - Scope to extract names from.
|
|
2444
|
+
* @param givenOptions.execute - Indicates whether to execute or evaluate.
|
|
2445
|
+
* @param givenOptions.removeGlobalScope - Indicates whether to shadow global
|
|
2446
|
+
* scope.
|
|
2447
|
+
* @param givenOptions.binding - Object to apply as "this" in evaluation scope.
|
|
2448
|
+
* @param givenOptions.async - Indicates whether to compile an async function.
|
|
2441
2449
|
* @returns Object of prepared scope name mappings and compiled function or
|
|
2442
2450
|
* error string message if given expression couldn't be compiled.
|
|
2443
|
-
*/var compile=function compile(expression,
|
|
2451
|
+
*/var compile=function compile(expression,givenOptions){var _Babel;if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:[],async:false,execute:false,removeGlobalScope:true,binding:{}},givenOptions);/*
|
|
2444
2452
|
NOTE: We do this global variable name determining as close as possible
|
|
2445
2453
|
to the compiling step to cover as much as possible global introduces
|
|
2446
2454
|
variables.
|
|
2447
|
-
*/var globalNames=Object.keys(globalThis).concat("globalThis").filter(function(name){return new RegExp("^[".concat(ALLOWED_STARTING_VARIABLE_SYMBOLS,"]")+"[".concat(ALLOWED_VARIABLE_SYMBOLS,"]*$")).test(name)&&!KNOWN_DISALLOWED_VARIABLE_NAMES_BUT_OBJECT_KEYS.includes(name)});var result={error:null,globalNames:globalNames,globalNamesUndefinedList:globalNames.map(function(){return undefined}),originalScopeNames:Array.isArray(scope)?scope:typeof scope==="string"?[scope]:Object.keys(scope),scopeNameMapping:{},scopeNames:[],templateFunction:function templateFunction(){return undefined}};var _iterator5=_createForOfIteratorHelper(result.originalScopeNames),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var name=_step5.value;var newName=convertToValidVariableName(name);result.scopeNameMapping[name]=newName;result.scopeNames.push(newName)}// region try to polyfill template string literals for older engines
|
|
2455
|
+
*/var globalNames=Object.keys(globalThis).concat("globalThis").filter(function(name){return new RegExp("^[".concat(ALLOWED_STARTING_VARIABLE_SYMBOLS,"]")+"[".concat(ALLOWED_VARIABLE_SYMBOLS,"]*$")).test(name)&&!KNOWN_DISALLOWED_VARIABLE_NAMES_BUT_OBJECT_KEYS.includes(name)});var result={error:null,globalNames:globalNames,globalNamesUndefinedList:globalNames.map(function(){return undefined}),originalScopeNames:Array.isArray(options.scope)?options.scope:typeof options.scope==="string"?[options.scope]:Object.keys(options.scope),scopeNameMapping:{},scopeNames:[],templateFunction:function templateFunction(){return undefined}};var _iterator5=_createForOfIteratorHelper(result.originalScopeNames),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var name=_step5.value;var newName=convertToValidVariableName(name);result.scopeNameMapping[name]=newName;result.scopeNames.push(newName)}// region try to polyfill template string literals for older engines
|
|
2448
2456
|
}catch(err){_iterator5.e(err)}finally{_iterator5.f()}if(POLYFILL_TEMPLATE_STRINGS.value)if((_Babel=_context_js__WEBPACK_IMPORTED_MODULE_2__/* .globalContext */ .Lz.Babel)!==null&&_Babel!==void 0&&_Babel.transform)expression=_context_js__WEBPACK_IMPORTED_MODULE_2__/* .globalContext */ .Lz.Babel.transform("(".concat(expression,")"),{plugins:["transform-template-literals"]}).code;else if(expression.startsWith("`")&&expression.endsWith("`")){var escapeMarker="####";// Convert template string into legacy string concatenations.
|
|
2449
2457
|
expression=expression// Mark simple escape sequences.
|
|
2450
2458
|
.replace(/\\\$/g,escapeMarker)// Handle avoidable template expression: Use raw code.
|
|
@@ -2456,32 +2464,35 @@ var quote=expression.charAt(0)==="`"?"'":expression.charAt(0);expression=express
|
|
|
2456
2464
|
.replace(/\$\{((([^{]*{[^}]*}[^}]*})|[^{}]+)+)}/g,"".concat(quote,"+($1)+").concat(quote)).replace(/^`([\s\S]+)`$/,"".concat(quote,"$1").concat(quote))// Remove remaining newlines.
|
|
2457
2465
|
.replace(/\n+/g,"")// Replace marked escape sequences.
|
|
2458
2466
|
.replace(new RegExp(escapeMarker,"g"),"\\$")}// endregion
|
|
2459
|
-
var innerTemplateFunction;try{// eslint-disable-next-line @typescript-eslint/no-
|
|
2460
|
-
innerTemplateFunction=_construct(Function,_toConsumableArray(removeGlobalScope?result.globalNames:[]).concat(_toConsumableArray(result.scopeNames),["".concat(execute?"":"return ").concat(expression)]))}catch(error){result.error="Given expression \"".concat(expression,"\" could not be compiled width ")+"given scope names \"".concat(result.scopeNames.join("\", \""),"\": ")+(0,_object_js__WEBPACK_IMPORTED_MODULE_4__/* .represent */ .Do)(error)}if(innerTemplateFunction){var boundInnerTemplateFunction=innerTemplateFunction.bind(binding);result.templateFunction=removeGlobalScope?function(){for(var _len=arguments.length,parameters=new Array(_len),_key=0;_key<_len;_key++){parameters[_key]=arguments[_key]}return(/*
|
|
2467
|
+
var innerTemplateFunction;try{// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
2468
|
+
innerTemplateFunction=_construct(options.async?AsyncFunction:Function,_toConsumableArray(options.removeGlobalScope?result.globalNames:[]).concat(_toConsumableArray(result.scopeNames),["".concat(options.execute?"":"return ").concat(expression)]))}catch(error){result.error="Given expression \"".concat(expression,"\" could not be compiled width ")+"given scope names \"".concat(result.scopeNames.join("\", \""),"\": ")+(0,_object_js__WEBPACK_IMPORTED_MODULE_4__/* .represent */ .Do)(error)}if(innerTemplateFunction){var boundInnerTemplateFunction=innerTemplateFunction.bind(options.binding);result.templateFunction=options.removeGlobalScope?function(){for(var _len=arguments.length,parameters=new Array(_len),_key=0;_key<_len;_key++){parameters[_key]=arguments[_key]}return(/*
|
|
2461
2469
|
NOTE: We shadow existing global names to sandbox
|
|
2462
2470
|
expressions.
|
|
2463
2471
|
*/boundInnerTemplateFunction.apply(void 0,_toConsumableArray(result.globalNamesUndefinedList).concat(parameters)))}:boundInnerTemplateFunction}return result};/**
|
|
2464
2472
|
* Evaluates a given string as an expression against a given scope.
|
|
2465
2473
|
* @param expression - The string to interpret.
|
|
2466
|
-
* @param
|
|
2467
|
-
* @param
|
|
2468
|
-
* @param
|
|
2469
|
-
*
|
|
2470
|
-
*
|
|
2474
|
+
* @param givenOptions - Expression options.
|
|
2475
|
+
* @param givenOptions.scope - Scope to extract names from.
|
|
2476
|
+
* @param givenOptions.execute - Indicates whether to execute or evaluate.
|
|
2477
|
+
* @param givenOptions.removeGlobalScope - Indicates whether to shadow global
|
|
2478
|
+
* scope.
|
|
2479
|
+
* @param givenOptions.binding - Object to apply as "this" in evaluation scope.
|
|
2480
|
+
* @param givenOptions.async - Indicates whether to compile an async function.
|
|
2471
2481
|
* @returns Object with an error message during parsing / running or result.
|
|
2472
|
-
*/var evaluate=function evaluate(expression,
|
|
2473
|
-
var _compile=compile(expression,
|
|
2482
|
+
*/var evaluate=function evaluate(expression,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:{},async:false,execute:false,removeGlobalScope:true,binding:{}},givenOptions);// NOTE: We extract string-only types from given scope type.
|
|
2483
|
+
var _compile=compile(expression,options),error=_compile.error,originalScopeNames=_compile.originalScopeNames,scopeNames=_compile.scopeNames,templateFunction=_compile.templateFunction;var result={compileError:null,runtimeError:null,error:"Not yet evaluated.",result:undefined};if(error){result.compileError=result.error=error;return result}try{result={compileError:null,runtimeError:null,error:null,result:templateFunction.apply(void 0,_toConsumableArray(originalScopeNames.map(function(name){return options.scope[name]})))}}catch(error){result.error=result.runtimeError="Given expression \"".concat(expression,"\" could not be evaluated ")+"with given scope names \"".concat(scopeNames.join("\", \""),"\": ")+(0,_object_js__WEBPACK_IMPORTED_MODULE_4__/* .represent */ .Do)(error)}return result};/**
|
|
2474
2484
|
* Evaluates a given string as an expression against a given scope. Does same
|
|
2475
2485
|
* as "evaluate" but throws an exception if an error occurs and returns the
|
|
2476
2486
|
* evaluated value instead of an object with error and result.
|
|
2477
2487
|
* @param expression - The string to interpret.
|
|
2478
|
-
* @param
|
|
2479
|
-
* @param
|
|
2480
|
-
* @param
|
|
2481
|
-
*
|
|
2482
|
-
* @param binding - Object to apply as "this" in evaluation scope.
|
|
2488
|
+
* @param options - Expression options.
|
|
2489
|
+
* @param options.scope - Scope to extract names from.
|
|
2490
|
+
* @param options.execute - Indicates whether to execute or evaluate.
|
|
2491
|
+
* @param options.removeGlobalScope - Indicates whether to shadow global scope.
|
|
2492
|
+
* @param options.binding - Object to apply as "this" in evaluation scope.
|
|
2493
|
+
* @param options.async - Indicates whether to compile an async function.
|
|
2483
2494
|
* @returns Object with an error message during parsing / running or result.
|
|
2484
|
-
*/var evaluateOrThrowError=function evaluateOrThrowError(expression,
|
|
2495
|
+
*/var evaluateOrThrowError=function evaluateOrThrowError(expression,options){if(options===void 0){options={}}var evaluated=evaluate(expression,options);if(evaluated.error)throw new Error(evaluated.error);return evaluated.result};/**
|
|
2485
2496
|
* Finds the string match of a given query in a given target text by applying a
|
|
2486
2497
|
* given normalization function to target and query.
|
|
2487
2498
|
* @param target - Target to search in.
|
|
@@ -2544,11 +2555,11 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
|
|
|
2544
2555
|
* @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
|
|
2545
2556
|
* example, ignore html tags via "['<', '>']" (the default).
|
|
2546
2557
|
* @returns Processed result.
|
|
2547
|
-
*/var mark=function mark(target,givenWords,givenOptions){if(givenOptions===void 0){givenOptions={}}if(typeof target==="string"&&givenWords!==null&&givenWords!==void 0&&givenWords.length){var
|
|
2558
|
+
*/var mark=function mark(target,givenWords,givenOptions){if(givenOptions===void 0){givenOptions={}}if(typeof target==="string"&&givenWords!==null&&givenWords!==void 0&&givenWords.length){var options=_objectSpread({marker:"<span class=\"tools-mark\">{1}</span>",normalizer:function normalizer(value){return String(value).toLowerCase()},skipTagDelimitedParts:["<",">"]},givenOptions);target=target.trim();var markedTarget=[];var words=[].concat(givenWords);var index=0;var _iterator6=_createForOfIteratorHelper(words),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _word=_step6.value;words[index]=options.normalizer(_word).trim();index+=1}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}var restTarget=target;var offset=0;/*
|
|
2548
2559
|
Search for matches as long there is enough target text remaining to
|
|
2549
2560
|
walk through.
|
|
2550
2561
|
*/for(var iteration=0;iteration<_context_js__WEBPACK_IMPORTED_MODULE_2__/* .MAXIMAL_NUMBER_OF_ITERATIONS */ .$Q.value;iteration++){var nearestRange=null;var currentRange=void 0;// Find the nearest next matching word.
|
|
2551
|
-
var _iterator7=_createForOfIteratorHelper(words),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var word=_step7.value;currentRange=findNormalizedMatchRange(restTarget,word,
|
|
2562
|
+
var _iterator7=_createForOfIteratorHelper(words),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var word=_step7.value;currentRange=findNormalizedMatchRange(restTarget,word,options.normalizer,options.skipTagDelimitedParts);if(currentRange&&(!nearestRange||currentRange[0]<nearestRange[0]))nearestRange=currentRange}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(nearestRange){if(nearestRange[0]>0)markedTarget.push(target.substring(offset,offset+nearestRange[0]));markedTarget.push(typeof options.marker==="string"?format(options.marker,target.substring(offset+nearestRange[0],offset+nearestRange[1])):options.marker(target.substring(offset+nearestRange[0],offset+nearestRange[1]),markedTarget));offset+=nearestRange[1];restTarget=target.substring(offset)}else{if(restTarget.length)markedTarget.push(restTarget);break}}return typeof options.marker==="string"?markedTarget.join(""):markedTarget}return target};/**
|
|
2552
2563
|
* Normalizes a given phone number for automatic dialing or comparison.
|
|
2553
2564
|
* @param value - Number to normalize.
|
|
2554
2565
|
* @param dialable - Indicates whether the result should be dialed or
|
|
@@ -2581,7 +2592,7 @@ normalizedValue=normalizedValue.replace(compiledPattern,replacer);else normalize
|
|
|
2581
2592
|
* in.
|
|
2582
2593
|
* @param name - The name under given scope will be available.
|
|
2583
2594
|
* @returns The parsed object if possible and null otherwise.
|
|
2584
|
-
*/var parseEncodedObject=function parseEncodedObject(serializedObject,scope,name){var _imports$fs;if(scope===void 0){scope={}}if(name===void 0){name="scope"}if(!((_imports$fs=_filesystem_js__WEBPACK_IMPORTED_MODULE_3__/* .imports */ .VW.fs)!==null&&_imports$fs!==void 0&&_imports$fs.readFileSync))throw new Error("File system api could not be loaded.");if(serializedObject.endsWith(".json")&&(0,_filesystem_js__WEBPACK_IMPORTED_MODULE_3__/* .isFileSync */ .WY)(serializedObject))serializedObject=_filesystem_js__WEBPACK_IMPORTED_MODULE_3__/* .imports */ .VW.fs.readFileSync(serializedObject,{encoding:_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_ENCODING */ .uJ});serializedObject=serializedObject.trim();if(!serializedObject.startsWith("{"))serializedObject=eval("Buffer").from(serializedObject,"base64").toString(_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_ENCODING */ .uJ);var result=evaluate(serializedObject,_defineProperty({},name,scope));if(_typeof(result.result)==="object")return result.result;return null};/**
|
|
2595
|
+
*/var parseEncodedObject=function parseEncodedObject(serializedObject,scope,name){var _imports$fs;if(scope===void 0){scope={}}if(name===void 0){name="scope"}if(!((_imports$fs=_filesystem_js__WEBPACK_IMPORTED_MODULE_3__/* .imports */ .VW.fs)!==null&&_imports$fs!==void 0&&_imports$fs.readFileSync))throw new Error("File system api could not be loaded.");if(serializedObject.endsWith(".json")&&(0,_filesystem_js__WEBPACK_IMPORTED_MODULE_3__/* .isFileSync */ .WY)(serializedObject))serializedObject=_filesystem_js__WEBPACK_IMPORTED_MODULE_3__/* .imports */ .VW.fs.readFileSync(serializedObject,{encoding:_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_ENCODING */ .uJ});serializedObject=serializedObject.trim();if(!serializedObject.startsWith("{"))serializedObject=eval("Buffer").from(serializedObject,"base64").toString(_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .DEFAULT_ENCODING */ .uJ);var result=evaluate(serializedObject,{scope:_defineProperty({},name,scope)});if(_typeof(result.result)==="object")return result.result;return null};/**
|
|
2585
2596
|
* Represents a given phone number. NOTE: Currently only support German phone
|
|
2586
2597
|
* numbers.
|
|
2587
2598
|
* @param value - Number to format.
|
|
@@ -2753,6 +2764,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2753
2764
|
bMn: function() { return /* reexport */ string/* ALLOWED_STARTING_VARIABLE_SYMBOLS */.bM; },
|
|
2754
2765
|
aLL: function() { return /* reexport */ string/* ALLOWED_VARIABLE_SYMBOLS */.aL; },
|
|
2755
2766
|
Vxr: function() { return /* reexport */ constants/* ANIMATION_END_EVENT_NAMES */.Vx; },
|
|
2767
|
+
fSi: function() { return /* reexport */ string/* AsyncFunction */.fS; },
|
|
2756
2768
|
rqe: function() { return /* reexport */ constants/* CLASS_TO_TYPE_MAPPING */.rq; },
|
|
2757
2769
|
l_R: function() { return /* reexport */ CLI_COLOR; },
|
|
2758
2770
|
jGn: function() { return /* reexport */ constants/* CLOSE_EVENT_NAMES */.jG; },
|
|
@@ -3522,6 +3534,7 @@ __webpack_require__.r(string_namespaceObject);
|
|
|
3522
3534
|
__webpack_require__.d(string_namespaceObject, {
|
|
3523
3535
|
ALLOWED_STARTING_VARIABLE_SYMBOLS: function() { return string.bM; },
|
|
3524
3536
|
ALLOWED_VARIABLE_SYMBOLS: function() { return string.aL; },
|
|
3537
|
+
AsyncFunction: function() { return string.fS; },
|
|
3525
3538
|
FIX_ENCODING_ERROR_MAPPING: function() { return string.k7; },
|
|
3526
3539
|
KNOWN_DISALLOWED_VARIABLE_NAMES_BUT_OBJECT_KEYS: function() { return string._x; },
|
|
3527
3540
|
POLYFILL_TEMPLATE_STRINGS: function() { return string.Ud; },
|
|
@@ -3589,7 +3602,7 @@ var DATE_TIME_PATTERN_CACHE=[];/**
|
|
|
3589
3602
|
*/var dateTimeFormat=function dateTimeFormat(format,dateTime,options,locales){if(format===void 0){format="full"}if(dateTime===void 0){dateTime=new Date}if(options===void 0){options={}}if(locales===void 0){locales=constants/* LOCALES */.YZ}if(typeof dateTime==="number")/*
|
|
3590
3603
|
NOTE: "Date" constructor expects milliseconds as unit instead
|
|
3591
3604
|
of more common used seconds.
|
|
3592
|
-
*/dateTime*=1000;var normalizedDateTime=new Date(dateTime);if(["full","long","medium","short"].includes(format))return new Intl.DateTimeFormat([].concat(locales,"en-US"),datetime_objectSpread({dateStyle:format,timeStyle:format},options)).format(normalizedDateTime);var scope={};var _iterator=datetime_createForOfIteratorHelper(["full","long","medium","short"]),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var style=_step.value;scope["".concat(style,"Literals")]=[];var _dateTimeFormat=new Intl.DateTimeFormat([].concat(locales,"en-US"),datetime_objectSpread({dateStyle:style,timeStyle:style},options));scope[style]=_dateTimeFormat.format(normalizedDateTime);var _iterator2=datetime_createForOfIteratorHelper(_dateTimeFormat.formatToParts(normalizedDateTime)),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var item=_step2.value;if(item.type==="literal")scope["".concat(style,"Literals")].push(item.value);else scope["".concat(style).concat((0,string/* capitalize */.ZH)(item.type))]=item.value}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}}catch(err){_iterator.e(err)}finally{_iterator.f()}var evaluated=(0,string/* evaluate */._3)("`".concat(format,"`"),scope);if(evaluated.error)throw new Error(evaluated.error);/*
|
|
3605
|
+
*/dateTime*=1000;var normalizedDateTime=new Date(dateTime);if(["full","long","medium","short"].includes(format))return new Intl.DateTimeFormat([].concat(locales,"en-US"),datetime_objectSpread({dateStyle:format,timeStyle:format},options)).format(normalizedDateTime);var scope={};var _iterator=datetime_createForOfIteratorHelper(["full","long","medium","short"]),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var style=_step.value;scope["".concat(style,"Literals")]=[];var _dateTimeFormat=new Intl.DateTimeFormat([].concat(locales,"en-US"),datetime_objectSpread({dateStyle:style,timeStyle:style},options));scope[style]=_dateTimeFormat.format(normalizedDateTime);var _iterator2=datetime_createForOfIteratorHelper(_dateTimeFormat.formatToParts(normalizedDateTime)),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var item=_step2.value;if(item.type==="literal")scope["".concat(style,"Literals")].push(item.value);else scope["".concat(style).concat((0,string/* capitalize */.ZH)(item.type))]=item.value}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}}catch(err){_iterator.e(err)}finally{_iterator.f()}var evaluated=(0,string/* evaluate */._3)("`".concat(format,"`"),{scope:scope});if(evaluated.error)throw new Error(evaluated.error);/*
|
|
3593
3606
|
NOTE: For some reason hidden symbols are injected differently on
|
|
3594
3607
|
different platforms, so we have to normalize for predictable
|
|
3595
3608
|
testing.
|
|
@@ -3635,7 +3648,7 @@ value=value.replace(/^(-?)-*0*([1-9][0-9]*)$/,"$1$2");// region interpret intege
|
|
|
3635
3648
|
if(!DATE_TIME_PATTERN_CACHE.length){// region pre-compile regular expressions
|
|
3636
3649
|
/// region pattern
|
|
3637
3650
|
var millisecondPattern="(?<millisecond>(?:0{0,3}[0-9])|(?:0{0,2}[1-9]{2})|"+"(?:0?[1-9]{3})|(?:1[1-9]{3}))";var minuteAndSecondPattern="(?:0?[0-9])|(?:[1-5][0-9])|(?:60)";var secondPattern="(?<second>".concat(minuteAndSecondPattern,")");var minutePattern="(?<minute>".concat(minuteAndSecondPattern,")");var hourPattern="(?<hour>(?:0?[0-9])|(?:1[0-9])|(?:2[0-4]))";var noonIndicatorPattern="(?<noonIndicator> *(?:(?:a\\.?m\\.?)|(?:p\\.?m\\.?)))?";var dayPattern="(?<day>(?:0?[1-9])|(?:[1-2][0-9])|(?:3[01]))";var monthPattern="(?<month>(?:0?[1-9])|(?:1[0-2]))";var yearPattern="(?<year>(?:0?[1-9])|(?:[1-9][0-9]+))";/// endregion
|
|
3638
|
-
var patternPresenceCache={};var _iterator3=datetime_createForOfIteratorHelper(["t"," "]),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var timeDelimiter=_step3.value;var _iterator4=datetime_createForOfIteratorHelper([":","/","-"," "]),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var timeComponentDelimiter=_step4.value;for(var _i=0,_arr=[hourPattern+"".concat(timeComponentDelimiter,"+")+minutePattern+noonIndicatorPattern,hourPattern+"".concat(timeComponentDelimiter,"+")+minutePattern+"".concat(timeComponentDelimiter,"+")+secondPattern+noonIndicatorPattern,hourPattern+"".concat(timeComponentDelimiter,"+")+minutePattern+"".concat(timeComponentDelimiter,"+")+secondPattern+"".concat(timeComponentDelimiter,"+")+millisecondPattern+noonIndicatorPattern,hourPattern+noonIndicatorPattern];_i<_arr.length;_i++){var timeFormat=_arr[_i];for(var _i2=0,_arr2=[{delimiter:["/","-"," "],pattern:[monthPattern+"${delimiter}"+dayPattern+"${delimiter}"+yearPattern,monthPattern+"${delimiter}"+dayPattern+" +"+yearPattern,yearPattern+"${delimiter}"+monthPattern+"${delimiter}"+dayPattern,yearPattern+" +"+monthPattern+"${delimiter}"+dayPattern,monthPattern+"${delimiter}"+dayPattern+"${delimiter}"+yearPattern+"".concat(timeDelimiter,"+")+timeFormat,monthPattern+"${delimiter}"+dayPattern+" +"+yearPattern+"".concat(timeDelimiter,"+")+timeFormat,timeFormat+"".concat(timeDelimiter,"+")+monthPattern+"${delimiter}"+dayPattern+"${delimiter}"+yearPattern,timeFormat+"".concat(timeDelimiter,"+")+monthPattern+"${delimiter}"+dayPattern+" +"+yearPattern,yearPattern+"${delimiter}"+monthPattern+"${delimiter}"+dayPattern+"".concat(timeDelimiter,"+")+timeFormat,yearPattern+" +"+monthPattern+"${delimiter}"+dayPattern+"".concat(timeDelimiter,"+")+timeFormat,timeFormat+"".concat(timeDelimiter,"+")+yearPattern+"${delimiter}"+monthPattern+"${delimiter}"+dayPattern,timeFormat+"".concat(timeDelimiter,"+")+yearPattern+" +"+monthPattern+"${delimiter}"+dayPattern]},{delimiter:"\\.",pattern:[dayPattern+"${delimiter}"+monthPattern+"${delimiter}"+yearPattern,dayPattern+"${delimiter}"+monthPattern+" +"+yearPattern,yearPattern+"${delimiter}"+dayPattern+"${delimiter}"+monthPattern,yearPattern+" +"+dayPattern+"${delimiter}"+monthPattern,dayPattern+"${delimiter}"+monthPattern+"${delimiter}"+yearPattern+"".concat(timeDelimiter,"+")+timeFormat,dayPattern+"${delimiter}"+monthPattern+" +"+yearPattern+"".concat(timeDelimiter,"+")+timeFormat,timeFormat+"".concat(timeDelimiter,"+")+dayPattern+"${delimiter}"+monthPattern+"${delimiter}"+yearPattern,timeFormat+"".concat(timeDelimiter,"+")+dayPattern+"${delimiter}"+monthPattern+" +"+yearPattern,yearPattern+"${delimiter}"+dayPattern+"${delimiter}"+monthPattern+"".concat(timeDelimiter,"+")+timeFormat,yearPattern+" +"+dayPattern+"${delimiter}"+monthPattern+"".concat(timeDelimiter,"+")+timeFormat,timeFormat+"".concat(timeDelimiter,"+")+yearPattern+"${delimiter}"+dayPattern+"${delimiter}"+monthPattern,timeFormat+"".concat(timeDelimiter,"+")+yearPattern+" +"+dayPattern+"${delimiter}"+monthPattern]},{pattern:timeFormat}];_i2<_arr2.length;_i2++){var _dateTimeFormat2=_arr2[_i2];var _iterator5=datetime_createForOfIteratorHelper([].concat(Object.prototype.hasOwnProperty.call(_dateTimeFormat2,"delimiter")?_dateTimeFormat2.delimiter:"-")),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var delimiter=_step5.value;var _iterator6=datetime_createForOfIteratorHelper([].concat(_dateTimeFormat2.pattern)),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _pattern=_step6.value;var evaluatedPattern=(0,string/* evaluate */._3)("`^".concat(_pattern,"$`"),{delimiter:"".concat(delimiter,"+")}).result;if(evaluatedPattern&&!Object.prototype.hasOwnProperty.call(patternPresenceCache,evaluatedPattern)){patternPresenceCache[evaluatedPattern]=true;DATE_TIME_PATTERN_CACHE.push(new RegExp(evaluatedPattern))}}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}}}}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}}// endregion
|
|
3651
|
+
var patternPresenceCache={};var _iterator3=datetime_createForOfIteratorHelper(["t"," "]),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var timeDelimiter=_step3.value;var _iterator4=datetime_createForOfIteratorHelper([":","/","-"," "]),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var timeComponentDelimiter=_step4.value;for(var _i=0,_arr=[hourPattern+"".concat(timeComponentDelimiter,"+")+minutePattern+noonIndicatorPattern,hourPattern+"".concat(timeComponentDelimiter,"+")+minutePattern+"".concat(timeComponentDelimiter,"+")+secondPattern+noonIndicatorPattern,hourPattern+"".concat(timeComponentDelimiter,"+")+minutePattern+"".concat(timeComponentDelimiter,"+")+secondPattern+"".concat(timeComponentDelimiter,"+")+millisecondPattern+noonIndicatorPattern,hourPattern+noonIndicatorPattern];_i<_arr.length;_i++){var timeFormat=_arr[_i];for(var _i2=0,_arr2=[{delimiter:["/","-"," "],pattern:[monthPattern+"${delimiter}"+dayPattern+"${delimiter}"+yearPattern,monthPattern+"${delimiter}"+dayPattern+" +"+yearPattern,yearPattern+"${delimiter}"+monthPattern+"${delimiter}"+dayPattern,yearPattern+" +"+monthPattern+"${delimiter}"+dayPattern,monthPattern+"${delimiter}"+dayPattern+"${delimiter}"+yearPattern+"".concat(timeDelimiter,"+")+timeFormat,monthPattern+"${delimiter}"+dayPattern+" +"+yearPattern+"".concat(timeDelimiter,"+")+timeFormat,timeFormat+"".concat(timeDelimiter,"+")+monthPattern+"${delimiter}"+dayPattern+"${delimiter}"+yearPattern,timeFormat+"".concat(timeDelimiter,"+")+monthPattern+"${delimiter}"+dayPattern+" +"+yearPattern,yearPattern+"${delimiter}"+monthPattern+"${delimiter}"+dayPattern+"".concat(timeDelimiter,"+")+timeFormat,yearPattern+" +"+monthPattern+"${delimiter}"+dayPattern+"".concat(timeDelimiter,"+")+timeFormat,timeFormat+"".concat(timeDelimiter,"+")+yearPattern+"${delimiter}"+monthPattern+"${delimiter}"+dayPattern,timeFormat+"".concat(timeDelimiter,"+")+yearPattern+" +"+monthPattern+"${delimiter}"+dayPattern]},{delimiter:"\\.",pattern:[dayPattern+"${delimiter}"+monthPattern+"${delimiter}"+yearPattern,dayPattern+"${delimiter}"+monthPattern+" +"+yearPattern,yearPattern+"${delimiter}"+dayPattern+"${delimiter}"+monthPattern,yearPattern+" +"+dayPattern+"${delimiter}"+monthPattern,dayPattern+"${delimiter}"+monthPattern+"${delimiter}"+yearPattern+"".concat(timeDelimiter,"+")+timeFormat,dayPattern+"${delimiter}"+monthPattern+" +"+yearPattern+"".concat(timeDelimiter,"+")+timeFormat,timeFormat+"".concat(timeDelimiter,"+")+dayPattern+"${delimiter}"+monthPattern+"${delimiter}"+yearPattern,timeFormat+"".concat(timeDelimiter,"+")+dayPattern+"${delimiter}"+monthPattern+" +"+yearPattern,yearPattern+"${delimiter}"+dayPattern+"${delimiter}"+monthPattern+"".concat(timeDelimiter,"+")+timeFormat,yearPattern+" +"+dayPattern+"${delimiter}"+monthPattern+"".concat(timeDelimiter,"+")+timeFormat,timeFormat+"".concat(timeDelimiter,"+")+yearPattern+"${delimiter}"+dayPattern+"${delimiter}"+monthPattern,timeFormat+"".concat(timeDelimiter,"+")+yearPattern+" +"+dayPattern+"${delimiter}"+monthPattern]},{pattern:timeFormat}];_i2<_arr2.length;_i2++){var _dateTimeFormat2=_arr2[_i2];var _iterator5=datetime_createForOfIteratorHelper([].concat(Object.prototype.hasOwnProperty.call(_dateTimeFormat2,"delimiter")?_dateTimeFormat2.delimiter:"-")),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var delimiter=_step5.value;var _iterator6=datetime_createForOfIteratorHelper([].concat(_dateTimeFormat2.pattern)),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _pattern=_step6.value;var evaluatedPattern=(0,string/* evaluate */._3)("`^".concat(_pattern,"$`"),{scope:{delimiter:"".concat(delimiter,"+")}}).result;if(evaluatedPattern&&!Object.prototype.hasOwnProperty.call(patternPresenceCache,evaluatedPattern)){patternPresenceCache[evaluatedPattern]=true;DATE_TIME_PATTERN_CACHE.push(new RegExp(evaluatedPattern))}}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}}}}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}}// endregion
|
|
3639
3652
|
}catch(err){_iterator3.e(err)}finally{_iterator3.f()}}// region pre-process
|
|
3640
3653
|
// NOTE: All patterns can assume lower cased strings.
|
|
3641
3654
|
value=value.toLowerCase();/*
|
|
@@ -4278,6 +4291,7 @@ module.exports = webpackEmptyContext;
|
|
|
4278
4291
|
/******/ var __webpack_exports__ALLOWED_STARTING_VARIABLE_SYMBOLS = __webpack_exports__.bMn;
|
|
4279
4292
|
/******/ var __webpack_exports__ALLOWED_VARIABLE_SYMBOLS = __webpack_exports__.aLL;
|
|
4280
4293
|
/******/ var __webpack_exports__ANIMATION_END_EVENT_NAMES = __webpack_exports__.Vxr;
|
|
4294
|
+
/******/ var __webpack_exports__AsyncFunction = __webpack_exports__.fSi;
|
|
4281
4295
|
/******/ var __webpack_exports__CLASS_TO_TYPE_MAPPING = __webpack_exports__.rqe;
|
|
4282
4296
|
/******/ var __webpack_exports__CLI_COLOR = __webpack_exports__.l_R;
|
|
4283
4297
|
/******/ var __webpack_exports__CLOSE_EVENT_NAMES = __webpack_exports__.jGn;
|
|
@@ -4489,5 +4503,5 @@ module.exports = webpackEmptyContext;
|
|
|
4489
4503
|
/******/ var __webpack_exports__walkDirectoryRecursively = __webpack_exports__.y3h;
|
|
4490
4504
|
/******/ var __webpack_exports__walkDirectoryRecursivelySync = __webpack_exports__.hue;
|
|
4491
4505
|
/******/ var __webpack_exports__wrap = __webpack_exports__.LV7;
|
|
4492
|
-
/******/ export { __webpack_exports__ABBREVIATIONS as ABBREVIATIONS, __webpack_exports__ALLOWED_STARTING_VARIABLE_SYMBOLS as ALLOWED_STARTING_VARIABLE_SYMBOLS, __webpack_exports__ALLOWED_VARIABLE_SYMBOLS as ALLOWED_VARIABLE_SYMBOLS, __webpack_exports__ANIMATION_END_EVENT_NAMES as ANIMATION_END_EVENT_NAMES, __webpack_exports__CLASS_TO_TYPE_MAPPING as CLASS_TO_TYPE_MAPPING, __webpack_exports__CLI_COLOR as CLI_COLOR, __webpack_exports__CLOSE_EVENT_NAMES as CLOSE_EVENT_NAMES, __webpack_exports__CONSOLE_METHODS as CONSOLE_METHODS, __webpack_exports__DATE_TIME_PATTERN_CACHE as DATE_TIME_PATTERN_CACHE, __webpack_exports__DEFAULT_ENCODING as DEFAULT_ENCODING, __webpack_exports__DEFAULT_OPTIONS as DEFAULT_OPTIONS, __webpack_exports__FIX_ENCODING_ERROR_MAPPING as FIX_ENCODING_ERROR_MAPPING, __webpack_exports__IGNORE_NULL_AND_UNDEFINED_SYMBOL as IGNORE_NULL_AND_UNDEFINED_SYMBOL, __webpack_exports__KEYBOARD_CODES as KEYBOARD_CODES, __webpack_exports__KEY_CODES as KEY_CODES, __webpack_exports__KNOWN_DISALLOWED_VARIABLE_NAMES_BUT_OBJECT_KEYS as KNOWN_DISALLOWED_VARIABLE_NAMES_BUT_OBJECT_KEYS, __webpack_exports__LEVELS as LEVELS, __webpack_exports__LEVELS_COLOR as LEVELS_COLOR, __webpack_exports__LOCALES as LOCALES, __webpack_exports__Lock as Lock, __webpack_exports__Logger as Logger, __webpack_exports__MANUAL_SCROLL_EVENT_NAMES as MANUAL_SCROLL_EVENT_NAMES, __webpack_exports__MAXIMAL_NUMBER_OF_ITERATIONS as MAXIMAL_NUMBER_OF_ITERATIONS, __webpack_exports__NOOP as NOOP, __webpack_exports__NO_ITEM_FOUND_SYMBOL as NO_ITEM_FOUND_SYMBOL, __webpack_exports__PLAIN_OBJECT_PROTOTYPES as PLAIN_OBJECT_PROTOTYPES, __webpack_exports__POLYFILL_TEMPLATE_STRINGS as POLYFILL_TEMPLATE_STRINGS, __webpack_exports__SCROLL_EVENT_NAMES as SCROLL_EVENT_NAMES, __webpack_exports__SELECTOR_KEY_NAMES as SELECTOR_KEY_NAMES, __webpack_exports__SPECIAL_REGEX_SEQUENCES as SPECIAL_REGEX_SEQUENCES, __webpack_exports__STOP_AUTO_SCROLLING as STOP_AUTO_SCROLLING, __webpack_exports__Semaphore as Semaphore, __webpack_exports__TRANSITION_END_EVENT_NAMES as TRANSITION_END_EVENT_NAMES, __webpack_exports__UTILITY_SCOPE as UTILITY_SCOPE, __webpack_exports__UTILITY_SCOPE_NAMES as UTILITY_SCOPE_NAMES, __webpack_exports__UTILITY_SCOPE_VALUES as UTILITY_SCOPE_VALUES, __webpack_exports__VALUE_COPY_SYMBOL as VALUE_COPY_SYMBOL, __webpack_exports__addDynamicGetterAndSetter as addDynamicGetterAndSetter, __webpack_exports__addSeparatorToPath as addSeparatorToPath, __webpack_exports__aggregatePropertyIfEqual as aggregatePropertyIfEqual, __webpack_exports__cacheImage as cacheImage, __webpack_exports__camelCaseToDelimited as camelCaseToDelimited, __webpack_exports__capitalize as capitalize, __webpack_exports__ceil as ceil, __webpack_exports__checkReachability as checkReachability, __webpack_exports__checkUnreachability as checkUnreachability, __webpack_exports__clearRequireCache as clearRequireCache, __webpack_exports__closest as closest, __webpack_exports__compile as compile, __webpack_exports__compressStyleValue as compressStyleValue, __webpack_exports__convertCircularObjectToJSON as convertCircularObjectToJSON, __webpack_exports__convertMapToPlainObject as convertMapToPlainObject, __webpack_exports__convertPlainObjectToMap as convertPlainObjectToMap, __webpack_exports__convertSubstringInPlainObject as convertSubstringInPlainObject, __webpack_exports__convertToValidVariableName as convertToValidVariableName, __webpack_exports__copy as copy, __webpack_exports__copyDirectoryRecursive as copyDirectoryRecursive, __webpack_exports__copyDirectoryRecursiveSync as copyDirectoryRecursiveSync, __webpack_exports__copyFile as copyFile, __webpack_exports__copyFileSync as copyFileSync, __webpack_exports__createDomNodes as createDomNodes, __webpack_exports__currentRequire as currentRequire, __webpack_exports__dateTimeFormat as dateTimeFormat, __webpack_exports__debounce as debounce, __webpack_exports__decodeHTMLEntities as decodeHTMLEntities, __webpack_exports__deleteCookie as deleteCookie, __webpack_exports__deleteEmptyItems as deleteEmptyItems, __webpack_exports__delimitedToCamelCase as delimitedToCamelCase, __webpack_exports__determineGlobalContext as determineGlobalContext, __webpack_exports__determineType as determineType, __webpack_exports__determineUniqueScopeName as determineUniqueScopeName, __webpack_exports__encodeURIComponentExtended as encodeURIComponentExtended, __webpack_exports__equals as equals, __webpack_exports__escapeRegularExpressions as escapeRegularExpressions, __webpack_exports__evaluate as evaluate, __webpack_exports__evaluateAnd as evaluateAnd, __webpack_exports__evaluateArrayContains as evaluateArrayContains, __webpack_exports__evaluateAsyncDynamicData as evaluateAsyncDynamicData, __webpack_exports__evaluateConcat as evaluateConcat, __webpack_exports__evaluateCondition as evaluateCondition, __webpack_exports__evaluateDynamicData as evaluateDynamicData, __webpack_exports__evaluateExpression as evaluateExpression, __webpack_exports__evaluateIf as evaluateIf, __webpack_exports__evaluateMapping as evaluateMapping, __webpack_exports__evaluateOperation as evaluateOperation, __webpack_exports__evaluateOptionalThen as evaluateOptionalThen, __webpack_exports__evaluateOr as evaluateOr, __webpack_exports__evaluateOrThrowError as evaluateOrThrowError, __webpack_exports__evaluateSelector as evaluateSelector, __webpack_exports__evaluateSelectorUntilLastObject as evaluateSelectorUntilLastObject, __webpack_exports__evaluateSwitch as evaluateSwitch, __webpack_exports__evaluateUnaryOperation as evaluateUnaryOperation, __webpack_exports__extend as extend, __webpack_exports__extract as extract, __webpack_exports__extractIfMatches as extractIfMatches, __webpack_exports__extractIfPropertyExists as extractIfPropertyExists, __webpack_exports__extractIfPropertyMatches as extractIfPropertyMatches, __webpack_exports__fade as fade, __webpack_exports__fadeIn as fadeIn, __webpack_exports__fadeOut as fadeOut, __webpack_exports__findNormalizedMatchRange as findNormalizedMatchRange, __webpack_exports__fixKnownEncodingErrors as fixKnownEncodingErrors, __webpack_exports__floor as floor, __webpack_exports__format as format, __webpack_exports__getAll as getAll, __webpack_exports__getCookie as getCookie, __webpack_exports__getCurrentRequire as getCurrentRequire, __webpack_exports__getDomainName as getDomainName, __webpack_exports__getEditDistance as getEditDistance, __webpack_exports__getParameterNames as getParameterNames, __webpack_exports__getParents as getParents, __webpack_exports__getPortNumber as getPortNumber, __webpack_exports__getProcessCloseHandler as getProcessCloseHandler, __webpack_exports__getProtocolName as getProtocolName, __webpack_exports__getProxyHandler as getProxyHandler, __webpack_exports__getText as getText, __webpack_exports__getURLParameter as getURLParameter, __webpack_exports__getUTCTimestamp as getUTCTimestamp, __webpack_exports__globalContext as globalContext, __webpack_exports__handleChildProcess as handleChildProcess, __webpack_exports__hasPathPrefix as hasPathPrefix, __webpack_exports__identity as identity, __webpack_exports__importFilesystemAPI as importFilesystemAPI, __webpack_exports__imports as imports, __webpack_exports__interpretDateTime as interpretDateTime, __webpack_exports__interruptableScrollTo as interruptableScrollTo, __webpack_exports__intersect as intersect, __webpack_exports__invertArrayFilter as invertArrayFilter, __webpack_exports__isAndExpression as isAndExpression, __webpack_exports__isAnyMatching as isAnyMatching, __webpack_exports__isArrayContainsExpression as isArrayContainsExpression, __webpack_exports__isArrayLike as isArrayLike, __webpack_exports__isConcatExpression as isConcatExpression, __webpack_exports__isCondition as isCondition, __webpack_exports__isDirectory as isDirectory, __webpack_exports__isDirectorySync as isDirectorySync, __webpack_exports__isEquivalent as isEquivalent, __webpack_exports__isFile as isFile, __webpack_exports__isFileSync as isFileSync, __webpack_exports__isFunction as isFunction, __webpack_exports__isHidden as isHidden, __webpack_exports__isIfExpression as isIfExpression, __webpack_exports__isImportSyntaxSupported as isImportSyntaxSupported, __webpack_exports__isMap as isMap, __webpack_exports__isMappingExpression as isMappingExpression, __webpack_exports__isNotANumber as isNotANumber, __webpack_exports__isNumeric as isNumeric, __webpack_exports__isObject as isObject, __webpack_exports__isOperation as isOperation, __webpack_exports__isOrExpression as isOrExpression, __webpack_exports__isPlainObject as isPlainObject, __webpack_exports__isProxy as isProxy, __webpack_exports__isSelector as isSelector, __webpack_exports__isSet as isSet, __webpack_exports__isSpecificExpression as isSpecificExpression, __webpack_exports__isSwitchExpression as isSwitchExpression, __webpack_exports__isUnaryOperation as isUnaryOperation, __webpack_exports__isValue as isValue, __webpack_exports__isWindow as isWindow, __webpack_exports__isolateScope as isolateScope, __webpack_exports__isolatedRequire as isolatedRequire, __webpack_exports__limit as limit, __webpack_exports__lowerCase as lowerCase, __webpack_exports__makeArray as makeArray, __webpack_exports__makeRange as makeRange, __webpack_exports__mark as mark, __webpack_exports__mask as mask, __webpack_exports__maskForRegularExpression as maskForRegularExpression, __webpack_exports__merge as merge, __webpack_exports__mockConsole as mockConsole, __webpack_exports__modifyObject as modifyObject, __webpack_exports__normalizeDateTime as normalizeDateTime, __webpack_exports__normalizeDomNodeSelector as normalizeDomNodeSelector, __webpack_exports__normalizePhoneNumber as normalizePhoneNumber, __webpack_exports__normalizeSelector as normalizeSelector, __webpack_exports__normalizeURL as normalizeURL, __webpack_exports__normalizeZipCode as normalizeZipCode, __webpack_exports__onDocumentReady as onDocumentReady, __webpack_exports__optionalImport as optionalImport, __webpack_exports__optionalRequire as optionalRequire, __webpack_exports__paginate as paginate, __webpack_exports__parseEncodedObject as parseEncodedObject, __webpack_exports__permute as permute, __webpack_exports__permuteLength as permuteLength, __webpack_exports__preventDefault as preventDefault, __webpack_exports__removeArrayItem as removeArrayItem, __webpack_exports__removeKeyPrefixes as removeKeyPrefixes, __webpack_exports__removeKeysInEvaluation as removeKeysInEvaluation, __webpack_exports__replace as replace, __webpack_exports__represent as represent, __webpack_exports__representPhoneNumber as representPhoneNumber, __webpack_exports__representURL as representURL, __webpack_exports__round as round, __webpack_exports__scrollTo as scrollTo, __webpack_exports__selectArrayItem as selectArrayItem, __webpack_exports__serviceURLEquals as serviceURLEquals, __webpack_exports__setCookie as setCookie, __webpack_exports__setGlobalContext as setGlobalContext, __webpack_exports__setOptionalRequire as setOptionalRequire, __webpack_exports__sliceAllExceptNumberAndLastSeparator as sliceAllExceptNumberAndLastSeparator, __webpack_exports__sliceWeekday as sliceWeekday, __webpack_exports__sort as sort, __webpack_exports__sortTopological as sortTopological, __webpack_exports__stopPropagation as stopPropagation, __webpack_exports__sumUpProperty as sumUpProperty, __webpack_exports__timeout as timeout, __webpack_exports__trailingThrottle as trailingThrottle, __webpack_exports__unique as unique, __webpack_exports__unwrap as unwrap, __webpack_exports__unwrapProxy as unwrapProxy, __webpack_exports__viewArrayAsScope as viewArrayAsScope, __webpack_exports__viewObjectAsScope as viewObjectAsScope, __webpack_exports__walkDirectoryRecursively as walkDirectoryRecursively, __webpack_exports__walkDirectoryRecursivelySync as walkDirectoryRecursivelySync, __webpack_exports__wrap as wrap };
|
|
4506
|
+
/******/ export { __webpack_exports__ABBREVIATIONS as ABBREVIATIONS, __webpack_exports__ALLOWED_STARTING_VARIABLE_SYMBOLS as ALLOWED_STARTING_VARIABLE_SYMBOLS, __webpack_exports__ALLOWED_VARIABLE_SYMBOLS as ALLOWED_VARIABLE_SYMBOLS, __webpack_exports__ANIMATION_END_EVENT_NAMES as ANIMATION_END_EVENT_NAMES, __webpack_exports__AsyncFunction as AsyncFunction, __webpack_exports__CLASS_TO_TYPE_MAPPING as CLASS_TO_TYPE_MAPPING, __webpack_exports__CLI_COLOR as CLI_COLOR, __webpack_exports__CLOSE_EVENT_NAMES as CLOSE_EVENT_NAMES, __webpack_exports__CONSOLE_METHODS as CONSOLE_METHODS, __webpack_exports__DATE_TIME_PATTERN_CACHE as DATE_TIME_PATTERN_CACHE, __webpack_exports__DEFAULT_ENCODING as DEFAULT_ENCODING, __webpack_exports__DEFAULT_OPTIONS as DEFAULT_OPTIONS, __webpack_exports__FIX_ENCODING_ERROR_MAPPING as FIX_ENCODING_ERROR_MAPPING, __webpack_exports__IGNORE_NULL_AND_UNDEFINED_SYMBOL as IGNORE_NULL_AND_UNDEFINED_SYMBOL, __webpack_exports__KEYBOARD_CODES as KEYBOARD_CODES, __webpack_exports__KEY_CODES as KEY_CODES, __webpack_exports__KNOWN_DISALLOWED_VARIABLE_NAMES_BUT_OBJECT_KEYS as KNOWN_DISALLOWED_VARIABLE_NAMES_BUT_OBJECT_KEYS, __webpack_exports__LEVELS as LEVELS, __webpack_exports__LEVELS_COLOR as LEVELS_COLOR, __webpack_exports__LOCALES as LOCALES, __webpack_exports__Lock as Lock, __webpack_exports__Logger as Logger, __webpack_exports__MANUAL_SCROLL_EVENT_NAMES as MANUAL_SCROLL_EVENT_NAMES, __webpack_exports__MAXIMAL_NUMBER_OF_ITERATIONS as MAXIMAL_NUMBER_OF_ITERATIONS, __webpack_exports__NOOP as NOOP, __webpack_exports__NO_ITEM_FOUND_SYMBOL as NO_ITEM_FOUND_SYMBOL, __webpack_exports__PLAIN_OBJECT_PROTOTYPES as PLAIN_OBJECT_PROTOTYPES, __webpack_exports__POLYFILL_TEMPLATE_STRINGS as POLYFILL_TEMPLATE_STRINGS, __webpack_exports__SCROLL_EVENT_NAMES as SCROLL_EVENT_NAMES, __webpack_exports__SELECTOR_KEY_NAMES as SELECTOR_KEY_NAMES, __webpack_exports__SPECIAL_REGEX_SEQUENCES as SPECIAL_REGEX_SEQUENCES, __webpack_exports__STOP_AUTO_SCROLLING as STOP_AUTO_SCROLLING, __webpack_exports__Semaphore as Semaphore, __webpack_exports__TRANSITION_END_EVENT_NAMES as TRANSITION_END_EVENT_NAMES, __webpack_exports__UTILITY_SCOPE as UTILITY_SCOPE, __webpack_exports__UTILITY_SCOPE_NAMES as UTILITY_SCOPE_NAMES, __webpack_exports__UTILITY_SCOPE_VALUES as UTILITY_SCOPE_VALUES, __webpack_exports__VALUE_COPY_SYMBOL as VALUE_COPY_SYMBOL, __webpack_exports__addDynamicGetterAndSetter as addDynamicGetterAndSetter, __webpack_exports__addSeparatorToPath as addSeparatorToPath, __webpack_exports__aggregatePropertyIfEqual as aggregatePropertyIfEqual, __webpack_exports__cacheImage as cacheImage, __webpack_exports__camelCaseToDelimited as camelCaseToDelimited, __webpack_exports__capitalize as capitalize, __webpack_exports__ceil as ceil, __webpack_exports__checkReachability as checkReachability, __webpack_exports__checkUnreachability as checkUnreachability, __webpack_exports__clearRequireCache as clearRequireCache, __webpack_exports__closest as closest, __webpack_exports__compile as compile, __webpack_exports__compressStyleValue as compressStyleValue, __webpack_exports__convertCircularObjectToJSON as convertCircularObjectToJSON, __webpack_exports__convertMapToPlainObject as convertMapToPlainObject, __webpack_exports__convertPlainObjectToMap as convertPlainObjectToMap, __webpack_exports__convertSubstringInPlainObject as convertSubstringInPlainObject, __webpack_exports__convertToValidVariableName as convertToValidVariableName, __webpack_exports__copy as copy, __webpack_exports__copyDirectoryRecursive as copyDirectoryRecursive, __webpack_exports__copyDirectoryRecursiveSync as copyDirectoryRecursiveSync, __webpack_exports__copyFile as copyFile, __webpack_exports__copyFileSync as copyFileSync, __webpack_exports__createDomNodes as createDomNodes, __webpack_exports__currentRequire as currentRequire, __webpack_exports__dateTimeFormat as dateTimeFormat, __webpack_exports__debounce as debounce, __webpack_exports__decodeHTMLEntities as decodeHTMLEntities, __webpack_exports__deleteCookie as deleteCookie, __webpack_exports__deleteEmptyItems as deleteEmptyItems, __webpack_exports__delimitedToCamelCase as delimitedToCamelCase, __webpack_exports__determineGlobalContext as determineGlobalContext, __webpack_exports__determineType as determineType, __webpack_exports__determineUniqueScopeName as determineUniqueScopeName, __webpack_exports__encodeURIComponentExtended as encodeURIComponentExtended, __webpack_exports__equals as equals, __webpack_exports__escapeRegularExpressions as escapeRegularExpressions, __webpack_exports__evaluate as evaluate, __webpack_exports__evaluateAnd as evaluateAnd, __webpack_exports__evaluateArrayContains as evaluateArrayContains, __webpack_exports__evaluateAsyncDynamicData as evaluateAsyncDynamicData, __webpack_exports__evaluateConcat as evaluateConcat, __webpack_exports__evaluateCondition as evaluateCondition, __webpack_exports__evaluateDynamicData as evaluateDynamicData, __webpack_exports__evaluateExpression as evaluateExpression, __webpack_exports__evaluateIf as evaluateIf, __webpack_exports__evaluateMapping as evaluateMapping, __webpack_exports__evaluateOperation as evaluateOperation, __webpack_exports__evaluateOptionalThen as evaluateOptionalThen, __webpack_exports__evaluateOr as evaluateOr, __webpack_exports__evaluateOrThrowError as evaluateOrThrowError, __webpack_exports__evaluateSelector as evaluateSelector, __webpack_exports__evaluateSelectorUntilLastObject as evaluateSelectorUntilLastObject, __webpack_exports__evaluateSwitch as evaluateSwitch, __webpack_exports__evaluateUnaryOperation as evaluateUnaryOperation, __webpack_exports__extend as extend, __webpack_exports__extract as extract, __webpack_exports__extractIfMatches as extractIfMatches, __webpack_exports__extractIfPropertyExists as extractIfPropertyExists, __webpack_exports__extractIfPropertyMatches as extractIfPropertyMatches, __webpack_exports__fade as fade, __webpack_exports__fadeIn as fadeIn, __webpack_exports__fadeOut as fadeOut, __webpack_exports__findNormalizedMatchRange as findNormalizedMatchRange, __webpack_exports__fixKnownEncodingErrors as fixKnownEncodingErrors, __webpack_exports__floor as floor, __webpack_exports__format as format, __webpack_exports__getAll as getAll, __webpack_exports__getCookie as getCookie, __webpack_exports__getCurrentRequire as getCurrentRequire, __webpack_exports__getDomainName as getDomainName, __webpack_exports__getEditDistance as getEditDistance, __webpack_exports__getParameterNames as getParameterNames, __webpack_exports__getParents as getParents, __webpack_exports__getPortNumber as getPortNumber, __webpack_exports__getProcessCloseHandler as getProcessCloseHandler, __webpack_exports__getProtocolName as getProtocolName, __webpack_exports__getProxyHandler as getProxyHandler, __webpack_exports__getText as getText, __webpack_exports__getURLParameter as getURLParameter, __webpack_exports__getUTCTimestamp as getUTCTimestamp, __webpack_exports__globalContext as globalContext, __webpack_exports__handleChildProcess as handleChildProcess, __webpack_exports__hasPathPrefix as hasPathPrefix, __webpack_exports__identity as identity, __webpack_exports__importFilesystemAPI as importFilesystemAPI, __webpack_exports__imports as imports, __webpack_exports__interpretDateTime as interpretDateTime, __webpack_exports__interruptableScrollTo as interruptableScrollTo, __webpack_exports__intersect as intersect, __webpack_exports__invertArrayFilter as invertArrayFilter, __webpack_exports__isAndExpression as isAndExpression, __webpack_exports__isAnyMatching as isAnyMatching, __webpack_exports__isArrayContainsExpression as isArrayContainsExpression, __webpack_exports__isArrayLike as isArrayLike, __webpack_exports__isConcatExpression as isConcatExpression, __webpack_exports__isCondition as isCondition, __webpack_exports__isDirectory as isDirectory, __webpack_exports__isDirectorySync as isDirectorySync, __webpack_exports__isEquivalent as isEquivalent, __webpack_exports__isFile as isFile, __webpack_exports__isFileSync as isFileSync, __webpack_exports__isFunction as isFunction, __webpack_exports__isHidden as isHidden, __webpack_exports__isIfExpression as isIfExpression, __webpack_exports__isImportSyntaxSupported as isImportSyntaxSupported, __webpack_exports__isMap as isMap, __webpack_exports__isMappingExpression as isMappingExpression, __webpack_exports__isNotANumber as isNotANumber, __webpack_exports__isNumeric as isNumeric, __webpack_exports__isObject as isObject, __webpack_exports__isOperation as isOperation, __webpack_exports__isOrExpression as isOrExpression, __webpack_exports__isPlainObject as isPlainObject, __webpack_exports__isProxy as isProxy, __webpack_exports__isSelector as isSelector, __webpack_exports__isSet as isSet, __webpack_exports__isSpecificExpression as isSpecificExpression, __webpack_exports__isSwitchExpression as isSwitchExpression, __webpack_exports__isUnaryOperation as isUnaryOperation, __webpack_exports__isValue as isValue, __webpack_exports__isWindow as isWindow, __webpack_exports__isolateScope as isolateScope, __webpack_exports__isolatedRequire as isolatedRequire, __webpack_exports__limit as limit, __webpack_exports__lowerCase as lowerCase, __webpack_exports__makeArray as makeArray, __webpack_exports__makeRange as makeRange, __webpack_exports__mark as mark, __webpack_exports__mask as mask, __webpack_exports__maskForRegularExpression as maskForRegularExpression, __webpack_exports__merge as merge, __webpack_exports__mockConsole as mockConsole, __webpack_exports__modifyObject as modifyObject, __webpack_exports__normalizeDateTime as normalizeDateTime, __webpack_exports__normalizeDomNodeSelector as normalizeDomNodeSelector, __webpack_exports__normalizePhoneNumber as normalizePhoneNumber, __webpack_exports__normalizeSelector as normalizeSelector, __webpack_exports__normalizeURL as normalizeURL, __webpack_exports__normalizeZipCode as normalizeZipCode, __webpack_exports__onDocumentReady as onDocumentReady, __webpack_exports__optionalImport as optionalImport, __webpack_exports__optionalRequire as optionalRequire, __webpack_exports__paginate as paginate, __webpack_exports__parseEncodedObject as parseEncodedObject, __webpack_exports__permute as permute, __webpack_exports__permuteLength as permuteLength, __webpack_exports__preventDefault as preventDefault, __webpack_exports__removeArrayItem as removeArrayItem, __webpack_exports__removeKeyPrefixes as removeKeyPrefixes, __webpack_exports__removeKeysInEvaluation as removeKeysInEvaluation, __webpack_exports__replace as replace, __webpack_exports__represent as represent, __webpack_exports__representPhoneNumber as representPhoneNumber, __webpack_exports__representURL as representURL, __webpack_exports__round as round, __webpack_exports__scrollTo as scrollTo, __webpack_exports__selectArrayItem as selectArrayItem, __webpack_exports__serviceURLEquals as serviceURLEquals, __webpack_exports__setCookie as setCookie, __webpack_exports__setGlobalContext as setGlobalContext, __webpack_exports__setOptionalRequire as setOptionalRequire, __webpack_exports__sliceAllExceptNumberAndLastSeparator as sliceAllExceptNumberAndLastSeparator, __webpack_exports__sliceWeekday as sliceWeekday, __webpack_exports__sort as sort, __webpack_exports__sortTopological as sortTopological, __webpack_exports__stopPropagation as stopPropagation, __webpack_exports__sumUpProperty as sumUpProperty, __webpack_exports__timeout as timeout, __webpack_exports__trailingThrottle as trailingThrottle, __webpack_exports__unique as unique, __webpack_exports__unwrap as unwrap, __webpack_exports__unwrapProxy as unwrapProxy, __webpack_exports__viewArrayAsScope as viewArrayAsScope, __webpack_exports__viewObjectAsScope as viewObjectAsScope, __webpack_exports__walkDirectoryRecursively as walkDirectoryRecursively, __webpack_exports__walkDirectoryRecursivelySync as walkDirectoryRecursivelySync, __webpack_exports__wrap as wrap };
|
|
4493
4507
|
/******/
|
|
@@ -230,7 +230,7 @@ if(options.deep!==0){var result=_equals(value,second[key],_objectSpread(_objectS
|
|
|
230
230
|
* @param givenOptions.executionIndicatorKey - Indicator property name to mark
|
|
231
231
|
* a value to evaluate.
|
|
232
232
|
* @returns Evaluated given mapping.
|
|
233
|
-
*/var evaluateDynamicData=function evaluateDynamicData(object,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__evaluate__",executionIndicatorKey:"__execute__"},givenOptions);if(_typeof(object)!=="object"||object===null)return object;if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=object;var internalEvaluateAndThrowError=function internalEvaluateAndThrowError(code,type){if(type===void 0){type=options.expressionIndicatorKey}return evaluateOrThrowError(code,options.scope,type===options.executionIndicatorKey)};var _addProxyRecursively=function addProxyRecursively(data){if(_typeof(data)!=="object"||data===null||typeof Proxy==="undefined")return data;for(var _i14=0,_Object$entries8=Object.entries(data);_i14<_Object$entries8.length;_i14++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i14],2),key=_Object$entries8$_i[0],givenValue=_Object$entries8$_i[1];if(key!=="__target__"&&isObject(givenValue)){var value=givenValue;_addProxyRecursively(value);// NOTE: We only wrap needed objects for performance reasons.
|
|
233
|
+
*/var evaluateDynamicData=function evaluateDynamicData(object,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__evaluate__",executionIndicatorKey:"__execute__"},givenOptions);if(_typeof(object)!=="object"||object===null)return object;if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=object;var internalEvaluateAndThrowError=function internalEvaluateAndThrowError(code,type){if(type===void 0){type=options.expressionIndicatorKey}return evaluateOrThrowError(code,{scope:options.scope,async:false,execute:type===options.executionIndicatorKey})};var _addProxyRecursively=function addProxyRecursively(data){if(_typeof(data)!=="object"||data===null||typeof Proxy==="undefined")return data;for(var _i14=0,_Object$entries8=Object.entries(data);_i14<_Object$entries8.length;_i14++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i14],2),key=_Object$entries8$_i[0],givenValue=_Object$entries8$_i[1];if(key!=="__target__"&&isObject(givenValue)){var value=givenValue;_addProxyRecursively(value);// NOTE: We only wrap needed objects for performance reasons.
|
|
234
234
|
if(Object.prototype.hasOwnProperty.call(value,options.expressionIndicatorKey)||Object.prototype.hasOwnProperty.call(value,options.executionIndicatorKey)){var backup=value;data[key]=new Proxy(value,{get:function get(target,key){if(key==="__target__")return target;if(key==="hasOwnProperty")/*
|
|
235
235
|
eslint-disable
|
|
236
236
|
@typescript-eslint/unbound-method
|
|
@@ -258,7 +258,7 @@ for(var _i18=0,_arr9=[options.expressionIndicatorKey,options.executionIndicatorK
|
|
|
258
258
|
* @param givenOptions.executionIndicatorKey - Indicator property name to mark
|
|
259
259
|
* a value to evaluate.
|
|
260
260
|
* @returns Evaluated given mapping.
|
|
261
|
-
*/var _evaluateAsyncDynamicData=/*#__PURE__*/(/* unused pure expression or super */ null && (function(){var _evaluateAsyncDynamicData2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(data,givenOptions){var options,result,index,_iterator16,_step16,item,_i21,_Object$entries1,_Object$entries1$_i,key,value,_t;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(givenOptions===void 0){givenOptions={}}options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__await_evaluate__",executionIndicatorKey:"__await_execute__"},givenOptions);if(isObject(data)){_context.n=1;break}return _context.a(2,data);case 1:if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=data;result=data;if(!Array.isArray(data)){_context.n=10;break}index=0;_iterator16=_createForOfIteratorHelper(data);_context.p=2;_iterator16.s();case 3:if((_step16=_iterator16.n()).done){_context.n=6;break}item=_step16.value;_context.n=4;return _evaluateAsyncDynamicData(item,options);case 4:result[index]=_context.v;index+=1;case 5:_context.n=3;break;case 6:_context.n=8;break;case 7:_context.p=7;_t=_context.v;_iterator16.e(_t);case 8:_context.p=8;_iterator16.f();return _context.f(8);case 9:return _context.a(2,result);case 10:_i21=0,_Object$entries1=Object.entries(data);case 11:if(!(_i21<_Object$entries1.length)){_context.n=16;break}_Object$entries1$_i=_slicedToArray(_Object$entries1[_i21],2),key=_Object$entries1$_i[0],value=_Object$entries1$_i[1];if(![options.expressionIndicatorKey,options.executionIndicatorKey].includes(key)){_context.n=13;break}_context.n=12;return evaluateOrThrowError(value,options.scope,key===options.executionIndicatorKey);case 12:return _context.a(2,_context.v);case 13:_context.n=14;return _evaluateAsyncDynamicData(value,options);case 14:result[key]=_context.v;case 15:_i21++;_context.n=11;break;case 16:return _context.a(2,result)}},_callee,null,[[2,7,8,9]])}));function evaluateAsyncDynamicData(_x,_x2){return _evaluateAsyncDynamicData2.apply(this,arguments)}return evaluateAsyncDynamicData}()));/**
|
|
261
|
+
*/var _evaluateAsyncDynamicData=/*#__PURE__*/(/* unused pure expression or super */ null && (function(){var _evaluateAsyncDynamicData2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(data,givenOptions){var options,result,index,_iterator16,_step16,item,_i21,_Object$entries1,_Object$entries1$_i,key,value,_t;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(givenOptions===void 0){givenOptions={}}options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__await_evaluate__",executionIndicatorKey:"__await_execute__"},givenOptions);if(isObject(data)){_context.n=1;break}return _context.a(2,data);case 1:if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=data;result=data;if(!Array.isArray(data)){_context.n=10;break}index=0;_iterator16=_createForOfIteratorHelper(data);_context.p=2;_iterator16.s();case 3:if((_step16=_iterator16.n()).done){_context.n=6;break}item=_step16.value;_context.n=4;return _evaluateAsyncDynamicData(item,options);case 4:result[index]=_context.v;index+=1;case 5:_context.n=3;break;case 6:_context.n=8;break;case 7:_context.p=7;_t=_context.v;_iterator16.e(_t);case 8:_context.p=8;_iterator16.f();return _context.f(8);case 9:return _context.a(2,result);case 10:_i21=0,_Object$entries1=Object.entries(data);case 11:if(!(_i21<_Object$entries1.length)){_context.n=16;break}_Object$entries1$_i=_slicedToArray(_Object$entries1[_i21],2),key=_Object$entries1$_i[0],value=_Object$entries1$_i[1];if(![options.expressionIndicatorKey,options.executionIndicatorKey].includes(key)){_context.n=13;break}_context.n=12;return evaluateOrThrowError(value,{scope:options.scope,async:true,execute:key===options.executionIndicatorKey});case 12:return _context.a(2,_context.v);case 13:_context.n=14;return _evaluateAsyncDynamicData(value,options);case 14:result[key]=_context.v;case 15:_i21++;_context.n=11;break;case 16:return _context.a(2,result)}},_callee,null,[[2,7,8,9]])}));function evaluateAsyncDynamicData(_x,_x2){return _evaluateAsyncDynamicData2.apply(this,arguments)}return evaluateAsyncDynamicData}()));/**
|
|
262
262
|
* Removes properties in objects where a dynamic indicator lives.
|
|
263
263
|
* @param data - Object to traverse recursively.
|
|
264
264
|
* @param expressionIndicators - Property key to remove.
|
|
@@ -401,7 +401,11 @@ result=object;if(isPlainObject(exclude)){var useCopy=false;var copy=_objectSprea
|
|
|
401
401
|
* @param value - Value to check.
|
|
402
402
|
* @returns Value "true" if given object is a plain javaScript object and
|
|
403
403
|
* "false" otherwise.
|
|
404
|
-
*/var isPlainObject=function isPlainObject(value){
|
|
404
|
+
*/var isPlainObject=function isPlainObject(value){var _prototype$constructo;if(!isObject(value))return false;var prototype=Object.getPrototypeOf(value);if(PLAIN_OBJECT_PROTOTYPES.includes(prototype))return true;/*
|
|
405
|
+
NOTE: Plain objects created in another realm (a vm context like used by
|
|
406
|
+
test runners or a worker for example) have their own "Object.prototype"
|
|
407
|
+
instance and would not be recognized by the identity check above.
|
|
408
|
+
*/return prototype!==null&&Object.getPrototypeOf(prototype)===null&&((_prototype$constructo=prototype.constructor)===null||_prototype$constructo===void 0?void 0:_prototype$constructo.name)==="Object"};/**
|
|
405
409
|
* Checks whether given object is a set.
|
|
406
410
|
* @param value - Value to check.
|
|
407
411
|
* @returns Value "true" if given object is a set and "false" otherwise.
|
package/dist/compatible/array.js
CHANGED
|
@@ -196,7 +196,7 @@ if(options.deep!==0){var result=_equals(value,second[key],_objectSpread(_objectS
|
|
|
196
196
|
* @param givenOptions.executionIndicatorKey - Indicator property name to mark
|
|
197
197
|
* a value to evaluate.
|
|
198
198
|
* @returns Evaluated given mapping.
|
|
199
|
-
*/var evaluateDynamicData=function evaluateDynamicData(object,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__evaluate__",executionIndicatorKey:"__execute__"},givenOptions);if(_typeof(object)!=="object"||object===null)return object;if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=object;var internalEvaluateAndThrowError=function internalEvaluateAndThrowError(code,type){if(type===void 0){type=options.expressionIndicatorKey}return evaluateOrThrowError(code,options.scope,type===options.executionIndicatorKey)};var _addProxyRecursively=function addProxyRecursively(data){if(_typeof(data)!=="object"||data===null||typeof Proxy==="undefined")return data;for(var _i14=0,_Object$entries8=Object.entries(data);_i14<_Object$entries8.length;_i14++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i14],2),key=_Object$entries8$_i[0],givenValue=_Object$entries8$_i[1];if(key!=="__target__"&&isObject(givenValue)){var value=givenValue;_addProxyRecursively(value);// NOTE: We only wrap needed objects for performance reasons.
|
|
199
|
+
*/var evaluateDynamicData=function evaluateDynamicData(object,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__evaluate__",executionIndicatorKey:"__execute__"},givenOptions);if(_typeof(object)!=="object"||object===null)return object;if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=object;var internalEvaluateAndThrowError=function internalEvaluateAndThrowError(code,type){if(type===void 0){type=options.expressionIndicatorKey}return evaluateOrThrowError(code,{scope:options.scope,async:false,execute:type===options.executionIndicatorKey})};var _addProxyRecursively=function addProxyRecursively(data){if(_typeof(data)!=="object"||data===null||typeof Proxy==="undefined")return data;for(var _i14=0,_Object$entries8=Object.entries(data);_i14<_Object$entries8.length;_i14++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i14],2),key=_Object$entries8$_i[0],givenValue=_Object$entries8$_i[1];if(key!=="__target__"&&isObject(givenValue)){var value=givenValue;_addProxyRecursively(value);// NOTE: We only wrap needed objects for performance reasons.
|
|
200
200
|
if(Object.prototype.hasOwnProperty.call(value,options.expressionIndicatorKey)||Object.prototype.hasOwnProperty.call(value,options.executionIndicatorKey)){var backup=value;data[key]=new Proxy(value,{get:function get(target,key){if(key==="__target__")return target;if(key==="hasOwnProperty")/*
|
|
201
201
|
eslint-disable
|
|
202
202
|
@typescript-eslint/unbound-method
|
|
@@ -224,7 +224,7 @@ for(var _i18=0,_arr9=[options.expressionIndicatorKey,options.executionIndicatorK
|
|
|
224
224
|
* @param givenOptions.executionIndicatorKey - Indicator property name to mark
|
|
225
225
|
* a value to evaluate.
|
|
226
226
|
* @returns Evaluated given mapping.
|
|
227
|
-
*/var _evaluateAsyncDynamicData=/*#__PURE__*/(/* unused pure expression or super */ null && (function(){var _evaluateAsyncDynamicData2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(data,givenOptions){var options,result,index,_iterator16,_step16,item,_i21,_Object$entries1,_Object$entries1$_i,key,value,_t;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(givenOptions===void 0){givenOptions={}}options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__await_evaluate__",executionIndicatorKey:"__await_execute__"},givenOptions);if(isObject(data)){_context.n=1;break}return _context.a(2,data);case 1:if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=data;result=data;if(!Array.isArray(data)){_context.n=10;break}index=0;_iterator16=_createForOfIteratorHelper(data);_context.p=2;_iterator16.s();case 3:if((_step16=_iterator16.n()).done){_context.n=6;break}item=_step16.value;_context.n=4;return _evaluateAsyncDynamicData(item,options);case 4:result[index]=_context.v;index+=1;case 5:_context.n=3;break;case 6:_context.n=8;break;case 7:_context.p=7;_t=_context.v;_iterator16.e(_t);case 8:_context.p=8;_iterator16.f();return _context.f(8);case 9:return _context.a(2,result);case 10:_i21=0,_Object$entries1=Object.entries(data);case 11:if(!(_i21<_Object$entries1.length)){_context.n=16;break}_Object$entries1$_i=_slicedToArray(_Object$entries1[_i21],2),key=_Object$entries1$_i[0],value=_Object$entries1$_i[1];if(![options.expressionIndicatorKey,options.executionIndicatorKey].includes(key)){_context.n=13;break}_context.n=12;return evaluateOrThrowError(value,options.scope,key===options.executionIndicatorKey);case 12:return _context.a(2,_context.v);case 13:_context.n=14;return _evaluateAsyncDynamicData(value,options);case 14:result[key]=_context.v;case 15:_i21++;_context.n=11;break;case 16:return _context.a(2,result)}},_callee,null,[[2,7,8,9]])}));function evaluateAsyncDynamicData(_x,_x2){return _evaluateAsyncDynamicData2.apply(this,arguments)}return evaluateAsyncDynamicData}()));/**
|
|
227
|
+
*/var _evaluateAsyncDynamicData=/*#__PURE__*/(/* unused pure expression or super */ null && (function(){var _evaluateAsyncDynamicData2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(data,givenOptions){var options,result,index,_iterator16,_step16,item,_i21,_Object$entries1,_Object$entries1$_i,key,value,_t;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(givenOptions===void 0){givenOptions={}}options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__await_evaluate__",executionIndicatorKey:"__await_execute__"},givenOptions);if(isObject(data)){_context.n=1;break}return _context.a(2,data);case 1:if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=data;result=data;if(!Array.isArray(data)){_context.n=10;break}index=0;_iterator16=_createForOfIteratorHelper(data);_context.p=2;_iterator16.s();case 3:if((_step16=_iterator16.n()).done){_context.n=6;break}item=_step16.value;_context.n=4;return _evaluateAsyncDynamicData(item,options);case 4:result[index]=_context.v;index+=1;case 5:_context.n=3;break;case 6:_context.n=8;break;case 7:_context.p=7;_t=_context.v;_iterator16.e(_t);case 8:_context.p=8;_iterator16.f();return _context.f(8);case 9:return _context.a(2,result);case 10:_i21=0,_Object$entries1=Object.entries(data);case 11:if(!(_i21<_Object$entries1.length)){_context.n=16;break}_Object$entries1$_i=_slicedToArray(_Object$entries1[_i21],2),key=_Object$entries1$_i[0],value=_Object$entries1$_i[1];if(![options.expressionIndicatorKey,options.executionIndicatorKey].includes(key)){_context.n=13;break}_context.n=12;return evaluateOrThrowError(value,{scope:options.scope,async:true,execute:key===options.executionIndicatorKey});case 12:return _context.a(2,_context.v);case 13:_context.n=14;return _evaluateAsyncDynamicData(value,options);case 14:result[key]=_context.v;case 15:_i21++;_context.n=11;break;case 16:return _context.a(2,result)}},_callee,null,[[2,7,8,9]])}));function evaluateAsyncDynamicData(_x,_x2){return _evaluateAsyncDynamicData2.apply(this,arguments)}return evaluateAsyncDynamicData}()));/**
|
|
228
228
|
* Removes properties in objects where a dynamic indicator lives.
|
|
229
229
|
* @param data - Object to traverse recursively.
|
|
230
230
|
* @param expressionIndicators - Property key to remove.
|
|
@@ -368,7 +368,11 @@ result=object;if(isPlainObject(exclude)){var useCopy=false;var copy=_objectSprea
|
|
|
368
368
|
* @param value - Value to check.
|
|
369
369
|
* @returns Value "true" if given object is a plain javaScript object and
|
|
370
370
|
* "false" otherwise.
|
|
371
|
-
*/var isPlainObject=function isPlainObject(value){
|
|
371
|
+
*/var isPlainObject=function isPlainObject(value){var _prototype$constructo;if(!isObject(value))return false;var prototype=Object.getPrototypeOf(value);if(_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .PLAIN_OBJECT_PROTOTYPES */ .jE.includes(prototype))return true;/*
|
|
372
|
+
NOTE: Plain objects created in another realm (a vm context like used by
|
|
373
|
+
test runners or a worker for example) have their own "Object.prototype"
|
|
374
|
+
instance and would not be recognized by the identity check above.
|
|
375
|
+
*/return prototype!==null&&Object.getPrototypeOf(prototype)===null&&((_prototype$constructo=prototype.constructor)===null||_prototype$constructo===void 0?void 0:_prototype$constructo.name)==="Object"};/**
|
|
372
376
|
* Checks whether given object is a set.
|
|
373
377
|
* @param value - Value to check.
|
|
374
378
|
* @returns Value "true" if given object is a set and "false" otherwise.
|