clientnode 4.0.1504 → 4.0.1505

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.
Files changed (58) hide show
  1. package/dist/Lock.js +8 -27
  2. package/dist/Logger.js +27 -55
  3. package/dist/Semaphore.js +8 -27
  4. package/dist/array.js +8 -46
  5. package/dist/bundle/index.js +410 -432
  6. package/dist/cli.js +8 -30
  7. package/dist/compatible/Lock.js +8 -27
  8. package/dist/compatible/Logger.js +27 -55
  9. package/dist/compatible/Semaphore.js +8 -27
  10. package/dist/compatible/array.js +8 -46
  11. package/dist/compatible/cli.js +8 -30
  12. package/dist/compatible/constants.js +8 -27
  13. package/dist/compatible/context.js +27 -55
  14. package/dist/compatible/cookie.js +27 -58
  15. package/dist/compatible/data-transfer.js +27 -59
  16. package/dist/compatible/datetime.js +37 -63
  17. package/dist/compatible/domNode.js +27 -59
  18. package/dist/compatible/expression/evaluators.js +37 -55
  19. package/dist/compatible/expression/helper.js +8 -31
  20. package/dist/compatible/expression/index.js +37 -76
  21. package/dist/compatible/expression/indicator-functions.js +8 -42
  22. package/dist/compatible/filesystem.js +27 -55
  23. package/dist/compatible/function.js +8 -32
  24. package/dist/compatible/index.js +44 -71
  25. package/dist/compatible/indicators.js +8 -39
  26. package/dist/compatible/module.js +27 -50
  27. package/dist/compatible/number.js +8 -34
  28. package/dist/compatible/object.js +37 -63
  29. package/dist/compatible/process.js +27 -55
  30. package/dist/compatible/scope.js +44 -113
  31. package/dist/compatible/string.js +37 -66
  32. package/dist/compatible/test-helper.js +8 -33
  33. package/dist/compatible/utility.js +27 -55
  34. package/dist/constants.js +8 -27
  35. package/dist/context.js +27 -55
  36. package/dist/cookie.js +27 -58
  37. package/dist/data-transfer.js +27 -59
  38. package/dist/datetime.js +37 -63
  39. package/dist/domNode.js +27 -59
  40. package/dist/expression/evaluators.js +37 -55
  41. package/dist/expression/helper.js +8 -31
  42. package/dist/expression/index.js +37 -76
  43. package/dist/expression/indicator-functions.js +8 -42
  44. package/dist/filesystem.js +27 -55
  45. package/dist/function.js +8 -32
  46. package/dist/index.js +44 -71
  47. package/dist/indicators.js +8 -39
  48. package/dist/module.js +27 -50
  49. package/dist/number.js +8 -34
  50. package/dist/object.js +37 -63
  51. package/dist/process.js +27 -55
  52. package/dist/scope.js +44 -113
  53. package/dist/string.d.ts +5 -4
  54. package/dist/string.js +37 -66
  55. package/dist/test-helper.js +8 -33
  56. package/dist/type.d.ts +1 -1
  57. package/dist/utility.js +27 -55
  58. package/package.json +3 -3
@@ -48,11 +48,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
48
48
  /* 2 */
49
49
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
50
50
 
51
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
52
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
53
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
54
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
55
- /* harmony export */ });
56
51
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
57
52
  /* module decorator */ module = __webpack_require__.hmd(module);
58
53
  // #!/usr/bin/env babel-node
@@ -441,10 +436,6 @@ result=object;if(isPlainObject(exclude)){var useCopy=false;var copy=_objectSprea
441
436
  /* 5 */
442
437
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
443
438
 
444
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
445
- /* harmony export */ Lz: function() { return /* binding */ globalContext; },
446
- /* harmony export */ tE: function() { return /* binding */ NOOP; }
447
- /* harmony export */ });
448
439
  /* unused harmony exports setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, mockConsole */
449
440
  /* unused harmony import specifier */ var CONSOLE_METHODS;
450
441
  /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
@@ -687,63 +678,40 @@ timeoutID=null;recentParameters=[]},thresholdInMilliseconds)}};/**
687
678
  /******/
688
679
  /************************************************************************/
689
680
  /******/ /* webpack/runtime/define property getters */
690
- /******/ !function() {
691
- /******/ // define getter/value functions for harmony exports
692
- /******/ __webpack_require__.d = function(exports, definition) {
693
- /******/ if(Array.isArray(definition)) {
694
- /******/ var i = 0;
695
- /******/ while(i < definition.length) {
696
- /******/ var key = definition[i++];
697
- /******/ var binding = definition[i++];
698
- /******/ if(!__webpack_require__.o(exports, key)) {
699
- /******/ if(binding === 0) {
700
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
701
- /******/ } else {
702
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
703
- /******/ }
704
- /******/ } else if(binding === 0) { i++; }
705
- /******/ }
706
- /******/ } else {
707
- /******/ for(var key in definition) {
708
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
709
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
710
- /******/ }
711
- /******/ }
681
+ /******/ // define getter/value functions for harmony exports
682
+ /******/ __webpack_require__.d = function(exports, definition) {
683
+ /******/ for(var key in definition) {
684
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
685
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
712
686
  /******/ }
713
- /******/ };
714
- /******/ }();
687
+ /******/ }
688
+ /******/ };
715
689
  /******/
716
690
  /******/ /* webpack/runtime/global */
717
- /******/ !function() {
718
- /******/ __webpack_require__.g = (function() {
719
- /******/ if (typeof globalThis === 'object') return globalThis;
720
- /******/ try {
721
- /******/ return this || new Function('return this')();
722
- /******/ } catch (e) {
723
- /******/ if (typeof window === 'object') return window;
724
- /******/ }
725
- /******/ })();
726
- /******/ }();
691
+ /******/ __webpack_require__.g = (function() {
692
+ /******/ if (typeof globalThis === 'object') return globalThis;
693
+ /******/ try {
694
+ /******/ return this || new Function('return this')();
695
+ /******/ } catch (e) {
696
+ /******/ if (typeof window === 'object') return window;
697
+ /******/ }
698
+ /******/ })();
727
699
  /******/
728
700
  /******/ /* webpack/runtime/harmony module decorator */
729
- /******/ !function() {
730
- /******/ __webpack_require__.hmd = function(module) {
731
- /******/ module = Object.create(module);
732
- /******/ if (!module.children) module.children = [];
733
- /******/ Object.defineProperty(module, 'exports', {
734
- /******/ enumerable: true,
735
- /******/ set: function() {
736
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
737
- /******/ }
738
- /******/ });
739
- /******/ return module;
740
- /******/ };
741
- /******/ }();
701
+ /******/ __webpack_require__.hmd = function(module) {
702
+ /******/ module = Object.create(module);
703
+ /******/ if (!module.children) module.children = [];
704
+ /******/ Object.defineProperty(module, 'exports', {
705
+ /******/ enumerable: true,
706
+ /******/ set: function() {
707
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
708
+ /******/ }
709
+ /******/ });
710
+ /******/ return module;
711
+ /******/ };
742
712
  /******/
743
713
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
744
- /******/ !function() {
745
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
746
- /******/ }();
714
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
747
715
  /******/
748
716
  /************************************************************************/
749
717
  /******/
@@ -47,11 +47,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
47
47
  /* 2 */
48
48
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
49
49
 
50
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
51
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
52
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
53
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
54
- /* harmony export */ });
55
50
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
56
51
  /* module decorator */ module = __webpack_require__.hmd(module);
57
52
  // #!/usr/bin/env babel-node
@@ -440,9 +435,6 @@ result=object;if(isPlainObject(exclude)){var useCopy=false;var copy=_objectSprea
440
435
  /* 5 */
441
436
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
442
437
 
443
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
444
- /* harmony export */ Lz: function() { return /* binding */ globalContext; }
445
- /* harmony export */ });
446
438
  /* unused harmony exports setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, NOOP, mockConsole */
447
439
  /* unused harmony import specifier */ var CONSOLE_METHODS;
448
440
  /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
@@ -733,7 +725,11 @@ var _compile=compile(expression,options),error=_compile.error,originalScopeNames
733
725
  * @param skipTagDelimitedParts - Indicates whether to, for example, ignore
734
726
  * html tags via "['<', '>']" (the default).
735
727
  * @returns Start and end index of matching range.
736
- */var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return String(value).toLowerCase()}}if(skipTagDelimitedParts===void 0){skipTagDelimitedParts=["<",">"]}var normalizedQuery=normalizer(query);var normalizedTarget=normalizer(target);var stringTarget=typeof target==="string"?target:normalizedTarget;if(normalizedTarget&&normalizedQuery){var inTag=false;for(var index=0;index<stringTarget.length;index+=1){if(inTag){if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[1])inTag=false;continue}if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[0]){inTag=true;continue}if(normalizer(stringTarget.substring(index)).startsWith(normalizedQuery)){if(normalizedQuery.length===1)return[index,index+1];for(var subIndex=stringTarget.length;subIndex>index;subIndex-=1)if(!normalizer(stringTarget.substring(index,subIndex)).startsWith(normalizedQuery))return[index,subIndex+1]}}}return null};/**
728
+ */var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value}}if(skipTagDelimitedParts===void 0){skipTagDelimitedParts=["<",">"]}var normalizedQuery=normalizer(query);var stringNormalizedQuery;if(typeof normalizedQuery==="string")stringNormalizedQuery=normalizedQuery;else{var match=target.match(normalizedQuery);stringNormalizedQuery=match?match[0]:""}if(!stringNormalizedQuery)return null;var normalizedTarget=normalizer(target);if(!normalizedTarget)return null;var stringTarget=typeof target==="string"?target:normalizedTarget;var inTag=false;for(var index=0;index<stringTarget.length;index+=1){if(inTag){if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[1])inTag=false;continue}if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[0]){inTag=true;continue}/*
729
+ Skip positions the normalizer strips away (e.g. leading
730
+ whitespace), so the reported match index aligns with the real
731
+ character.
732
+ */if(!normalizer(stringTarget.charAt(index)))continue;if(normalizer(stringTarget.substring(index)).startsWith(stringNormalizedQuery)){if(stringNormalizedQuery.length===1)return[index,index+1];for(var subIndex=stringTarget.length;subIndex>index;subIndex-=1)if(!normalizer(stringTarget.substring(index,subIndex)).startsWith(stringNormalizedQuery))return[index,subIndex+1]}}return null};/**
737
733
  * Fixes known encoding problems in given data.
738
734
  * @param data - To process.
739
735
  * @returns Processed data.
@@ -777,8 +773,9 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
777
773
  * @returns The formatted string.
778
774
  */var lowerCase=function lowerCase(string){return string.charAt(0).toLowerCase()+string.substring(1)};/**
779
775
  * Wraps given mark strings in a given target with a given marker.
780
- * @param target - String to search for marker.
781
- * @param givenWords - String or array of strings to search in target for.
776
+ * @param target - String to search in.
777
+ * @param givenSearchWords - String or regular expression or array of those to
778
+ * search for.
782
779
  * @param givenOptions - Defines highlighting behavior.
783
780
  * @param givenOptions.marker - HTML template string to mark.
784
781
  * @param givenOptions.normalizer - Pure normalization function to use before
@@ -786,11 +783,11 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
786
783
  * @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
787
784
  * example, ignore html tags via "['<', '>']" (the default).
788
785
  * @returns Processed result.
789
- */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;/*
786
+ */var mark=function mark(target,givenSearchWords,givenOptions){if(givenOptions===void 0){givenOptions={}}if(typeof target==="string"&&(Array.isArray(givenSearchWords)&&givenSearchWords.length||givenSearchWords instanceof RegExp||typeof givenSearchWords==="string"&&givenSearchWords.length)){var options=_objectSpread({marker:"<span class=\"tools-mark\">{1}</span>",normalizer:function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value},skipTagDelimitedParts:["<",">"]},givenOptions);target=target.trim();var markedTarget=[];var searchWords=[].concat(givenSearchWords);var index=0;var _iterator6=_createForOfIteratorHelper(searchWords),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _word=_step6.value;searchWords[index]=options.normalizer(_word);index+=1}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}var restTarget=target;var offset=0;/*
790
787
  Search for matches as long there is enough target text remaining to
791
788
  walk through.
792
789
  */for(var iteration=0;iteration<MAXIMAL_NUMBER_OF_ITERATIONS.value;iteration++){var nearestRange=null;var currentRange=void 0;// Find the nearest next matching word.
793
- 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};/**
790
+ var _iterator7=_createForOfIteratorHelper(searchWords),_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};/**
794
791
  * Normalizes a given phone number for automatic dialing or comparison.
795
792
  * @param value - Number to normalize.
796
793
  * @param dialable - Indicates whether the result should be dialed or
@@ -1022,63 +1019,40 @@ var result=new Date(value);if(isNaN(result.getDate()))return null;return result}
1022
1019
  /******/
1023
1020
  /************************************************************************/
1024
1021
  /******/ /* webpack/runtime/define property getters */
1025
- /******/ !function() {
1026
- /******/ // define getter/value functions for harmony exports
1027
- /******/ __webpack_require__.d = function(exports, definition) {
1028
- /******/ if(Array.isArray(definition)) {
1029
- /******/ var i = 0;
1030
- /******/ while(i < definition.length) {
1031
- /******/ var key = definition[i++];
1032
- /******/ var binding = definition[i++];
1033
- /******/ if(!__webpack_require__.o(exports, key)) {
1034
- /******/ if(binding === 0) {
1035
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
1036
- /******/ } else {
1037
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
1038
- /******/ }
1039
- /******/ } else if(binding === 0) { i++; }
1040
- /******/ }
1041
- /******/ } else {
1042
- /******/ for(var key in definition) {
1043
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1044
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1045
- /******/ }
1046
- /******/ }
1022
+ /******/ // define getter/value functions for harmony exports
1023
+ /******/ __webpack_require__.d = function(exports, definition) {
1024
+ /******/ for(var key in definition) {
1025
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1026
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1047
1027
  /******/ }
1048
- /******/ };
1049
- /******/ }();
1028
+ /******/ }
1029
+ /******/ };
1050
1030
  /******/
1051
1031
  /******/ /* webpack/runtime/global */
1052
- /******/ !function() {
1053
- /******/ __webpack_require__.g = (function() {
1054
- /******/ if (typeof globalThis === 'object') return globalThis;
1055
- /******/ try {
1056
- /******/ return this || new Function('return this')();
1057
- /******/ } catch (e) {
1058
- /******/ if (typeof window === 'object') return window;
1059
- /******/ }
1060
- /******/ })();
1061
- /******/ }();
1032
+ /******/ __webpack_require__.g = (function() {
1033
+ /******/ if (typeof globalThis === 'object') return globalThis;
1034
+ /******/ try {
1035
+ /******/ return this || new Function('return this')();
1036
+ /******/ } catch (e) {
1037
+ /******/ if (typeof window === 'object') return window;
1038
+ /******/ }
1039
+ /******/ })();
1062
1040
  /******/
1063
1041
  /******/ /* webpack/runtime/harmony module decorator */
1064
- /******/ !function() {
1065
- /******/ __webpack_require__.hmd = function(module) {
1066
- /******/ module = Object.create(module);
1067
- /******/ if (!module.children) module.children = [];
1068
- /******/ Object.defineProperty(module, 'exports', {
1069
- /******/ enumerable: true,
1070
- /******/ set: function() {
1071
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1072
- /******/ }
1073
- /******/ });
1074
- /******/ return module;
1075
- /******/ };
1076
- /******/ }();
1042
+ /******/ __webpack_require__.hmd = function(module) {
1043
+ /******/ module = Object.create(module);
1044
+ /******/ if (!module.children) module.children = [];
1045
+ /******/ Object.defineProperty(module, 'exports', {
1046
+ /******/ enumerable: true,
1047
+ /******/ set: function() {
1048
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1049
+ /******/ }
1050
+ /******/ });
1051
+ /******/ return module;
1052
+ /******/ };
1077
1053
  /******/
1078
1054
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
1079
- /******/ !function() {
1080
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
1081
- /******/ }();
1055
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
1082
1056
  /******/
1083
1057
  /************************************************************************/
1084
1058
  /******/
@@ -4,10 +4,6 @@ if(typeof window==='undefined'||window===null)var window=(typeof globalThis==='u
4
4
  /***/ 5:
5
5
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
6
 
7
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8
- /* harmony export */ Lz: function() { return /* binding */ globalContext; },
9
- /* harmony export */ tE: function() { return /* binding */ NOOP; }
10
- /* harmony export */ });
11
7
  /* unused harmony exports setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, mockConsole */
12
8
  /* unused harmony import specifier */ var CONSOLE_METHODS;
13
9
  /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
@@ -233,11 +229,6 @@ for(var _i6=0,_Array$from=Array.from(domNode.childNodes);_i6<_Array$from.length;
233
229
  /***/ 2:
234
230
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
235
231
 
236
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
237
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
238
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
239
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
240
- /* harmony export */ });
241
232
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
242
233
  /* module decorator */ module = __webpack_require__.hmd(module);
243
234
  // #!/usr/bin/env babel-node
@@ -394,63 +385,40 @@ module.exports = x({ });
394
385
  /******/
395
386
  /************************************************************************/
396
387
  /******/ /* webpack/runtime/define property getters */
397
- /******/ !function() {
398
- /******/ // define getter/value functions for harmony exports
399
- /******/ __webpack_require__.d = function(exports, definition) {
400
- /******/ if(Array.isArray(definition)) {
401
- /******/ var i = 0;
402
- /******/ while(i < definition.length) {
403
- /******/ var key = definition[i++];
404
- /******/ var binding = definition[i++];
405
- /******/ if(!__webpack_require__.o(exports, key)) {
406
- /******/ if(binding === 0) {
407
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
408
- /******/ } else {
409
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
410
- /******/ }
411
- /******/ } else if(binding === 0) { i++; }
412
- /******/ }
413
- /******/ } else {
414
- /******/ for(var key in definition) {
415
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
416
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
417
- /******/ }
418
- /******/ }
388
+ /******/ // define getter/value functions for harmony exports
389
+ /******/ __webpack_require__.d = function(exports, definition) {
390
+ /******/ for(var key in definition) {
391
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
392
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
419
393
  /******/ }
420
- /******/ };
421
- /******/ }();
394
+ /******/ }
395
+ /******/ };
422
396
  /******/
423
397
  /******/ /* webpack/runtime/global */
424
- /******/ !function() {
425
- /******/ __webpack_require__.g = (function() {
426
- /******/ if (typeof globalThis === 'object') return globalThis;
427
- /******/ try {
428
- /******/ return this || new Function('return this')();
429
- /******/ } catch (e) {
430
- /******/ if (typeof window === 'object') return window;
431
- /******/ }
432
- /******/ })();
433
- /******/ }();
398
+ /******/ __webpack_require__.g = (function() {
399
+ /******/ if (typeof globalThis === 'object') return globalThis;
400
+ /******/ try {
401
+ /******/ return this || new Function('return this')();
402
+ /******/ } catch (e) {
403
+ /******/ if (typeof window === 'object') return window;
404
+ /******/ }
405
+ /******/ })();
434
406
  /******/
435
407
  /******/ /* webpack/runtime/harmony module decorator */
436
- /******/ !function() {
437
- /******/ __webpack_require__.hmd = function(module) {
438
- /******/ module = Object.create(module);
439
- /******/ if (!module.children) module.children = [];
440
- /******/ Object.defineProperty(module, 'exports', {
441
- /******/ enumerable: true,
442
- /******/ set: function() {
443
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
444
- /******/ }
445
- /******/ });
446
- /******/ return module;
447
- /******/ };
448
- /******/ }();
408
+ /******/ __webpack_require__.hmd = function(module) {
409
+ /******/ module = Object.create(module);
410
+ /******/ if (!module.children) module.children = [];
411
+ /******/ Object.defineProperty(module, 'exports', {
412
+ /******/ enumerable: true,
413
+ /******/ set: function() {
414
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
415
+ /******/ }
416
+ /******/ });
417
+ /******/ return module;
418
+ /******/ };
449
419
  /******/
450
420
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
451
- /******/ !function() {
452
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
453
- /******/ }();
421
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
454
422
  /******/
455
423
  /************************************************************************/
456
424
  /******/
@@ -731,7 +731,11 @@ var _compile=compile(expression,options),error=_compile.error,originalScopeNames
731
731
  * @param skipTagDelimitedParts - Indicates whether to, for example, ignore
732
732
  * html tags via "['<', '>']" (the default).
733
733
  * @returns Start and end index of matching range.
734
- */var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return String(value).toLowerCase()}}if(skipTagDelimitedParts===void 0){skipTagDelimitedParts=["<",">"]}var normalizedQuery=normalizer(query);var normalizedTarget=normalizer(target);var stringTarget=typeof target==="string"?target:normalizedTarget;if(normalizedTarget&&normalizedQuery){var inTag=false;for(var index=0;index<stringTarget.length;index+=1){if(inTag){if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[1])inTag=false;continue}if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[0]){inTag=true;continue}if(normalizer(stringTarget.substring(index)).startsWith(normalizedQuery)){if(normalizedQuery.length===1)return[index,index+1];for(var subIndex=stringTarget.length;subIndex>index;subIndex-=1)if(!normalizer(stringTarget.substring(index,subIndex)).startsWith(normalizedQuery))return[index,subIndex+1]}}}return null};/**
734
+ */var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value}}if(skipTagDelimitedParts===void 0){skipTagDelimitedParts=["<",">"]}var normalizedQuery=normalizer(query);var stringNormalizedQuery;if(typeof normalizedQuery==="string")stringNormalizedQuery=normalizedQuery;else{var match=target.match(normalizedQuery);stringNormalizedQuery=match?match[0]:""}if(!stringNormalizedQuery)return null;var normalizedTarget=normalizer(target);if(!normalizedTarget)return null;var stringTarget=typeof target==="string"?target:normalizedTarget;var inTag=false;for(var index=0;index<stringTarget.length;index+=1){if(inTag){if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[1])inTag=false;continue}if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[0]){inTag=true;continue}/*
735
+ Skip positions the normalizer strips away (e.g. leading
736
+ whitespace), so the reported match index aligns with the real
737
+ character.
738
+ */if(!normalizer(stringTarget.charAt(index)))continue;if(normalizer(stringTarget.substring(index)).startsWith(stringNormalizedQuery)){if(stringNormalizedQuery.length===1)return[index,index+1];for(var subIndex=stringTarget.length;subIndex>index;subIndex-=1)if(!normalizer(stringTarget.substring(index,subIndex)).startsWith(stringNormalizedQuery))return[index,subIndex+1]}}return null};/**
735
739
  * Fixes known encoding problems in given data.
736
740
  * @param data - To process.
737
741
  * @returns Processed data.
@@ -775,8 +779,9 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
775
779
  * @returns The formatted string.
776
780
  */var lowerCase=function lowerCase(string){return string.charAt(0).toLowerCase()+string.substring(1)};/**
777
781
  * Wraps given mark strings in a given target with a given marker.
778
- * @param target - String to search for marker.
779
- * @param givenWords - String or array of strings to search in target for.
782
+ * @param target - String to search in.
783
+ * @param givenSearchWords - String or regular expression or array of those to
784
+ * search for.
780
785
  * @param givenOptions - Defines highlighting behavior.
781
786
  * @param givenOptions.marker - HTML template string to mark.
782
787
  * @param givenOptions.normalizer - Pure normalization function to use before
@@ -784,11 +789,11 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
784
789
  * @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
785
790
  * example, ignore html tags via "['<', '>']" (the default).
786
791
  * @returns Processed result.
787
- */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;/*
792
+ */var mark=function mark(target,givenSearchWords,givenOptions){if(givenOptions===void 0){givenOptions={}}if(typeof target==="string"&&(Array.isArray(givenSearchWords)&&givenSearchWords.length||givenSearchWords instanceof RegExp||typeof givenSearchWords==="string"&&givenSearchWords.length)){var options=_objectSpread({marker:"<span class=\"tools-mark\">{1}</span>",normalizer:function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value},skipTagDelimitedParts:["<",">"]},givenOptions);target=target.trim();var markedTarget=[];var searchWords=[].concat(givenSearchWords);var index=0;var _iterator6=_createForOfIteratorHelper(searchWords),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _word=_step6.value;searchWords[index]=options.normalizer(_word);index+=1}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}var restTarget=target;var offset=0;/*
788
793
  Search for matches as long there is enough target text remaining to
789
794
  walk through.
790
795
  */for(var iteration=0;iteration<MAXIMAL_NUMBER_OF_ITERATIONS.value;iteration++){var nearestRange=null;var currentRange=void 0;// Find the nearest next matching word.
791
- 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};/**
796
+ var _iterator7=_createForOfIteratorHelper(searchWords),_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};/**
792
797
  * Normalizes a given phone number for automatic dialing or comparison.
793
798
  * @param value - Number to normalize.
794
799
  * @param dialable - Indicates whether the result should be dialed or
@@ -1071,63 +1076,40 @@ var result=scope;var index=0;var _iterator6=_createForOfIteratorHelper(path),_st
1071
1076
  /******/
1072
1077
  /************************************************************************/
1073
1078
  /******/ /* webpack/runtime/define property getters */
1074
- /******/ !function() {
1075
- /******/ // define getter/value functions for harmony exports
1076
- /******/ __webpack_require__.d = function(exports, definition) {
1077
- /******/ if(Array.isArray(definition)) {
1078
- /******/ var i = 0;
1079
- /******/ while(i < definition.length) {
1080
- /******/ var key = definition[i++];
1081
- /******/ var binding = definition[i++];
1082
- /******/ if(!__webpack_require__.o(exports, key)) {
1083
- /******/ if(binding === 0) {
1084
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
1085
- /******/ } else {
1086
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
1087
- /******/ }
1088
- /******/ } else if(binding === 0) { i++; }
1089
- /******/ }
1090
- /******/ } else {
1091
- /******/ for(var key in definition) {
1092
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1093
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1094
- /******/ }
1095
- /******/ }
1079
+ /******/ // define getter/value functions for harmony exports
1080
+ /******/ __webpack_require__.d = function(exports, definition) {
1081
+ /******/ for(var key in definition) {
1082
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1083
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1096
1084
  /******/ }
1097
- /******/ };
1098
- /******/ }();
1085
+ /******/ }
1086
+ /******/ };
1099
1087
  /******/
1100
1088
  /******/ /* webpack/runtime/global */
1101
- /******/ !function() {
1102
- /******/ __webpack_require__.g = (function() {
1103
- /******/ if (typeof globalThis === 'object') return globalThis;
1104
- /******/ try {
1105
- /******/ return this || new Function('return this')();
1106
- /******/ } catch (e) {
1107
- /******/ if (typeof window === 'object') return window;
1108
- /******/ }
1109
- /******/ })();
1110
- /******/ }();
1089
+ /******/ __webpack_require__.g = (function() {
1090
+ /******/ if (typeof globalThis === 'object') return globalThis;
1091
+ /******/ try {
1092
+ /******/ return this || new Function('return this')();
1093
+ /******/ } catch (e) {
1094
+ /******/ if (typeof window === 'object') return window;
1095
+ /******/ }
1096
+ /******/ })();
1111
1097
  /******/
1112
1098
  /******/ /* webpack/runtime/harmony module decorator */
1113
- /******/ !function() {
1114
- /******/ __webpack_require__.hmd = function(module) {
1115
- /******/ module = Object.create(module);
1116
- /******/ if (!module.children) module.children = [];
1117
- /******/ Object.defineProperty(module, 'exports', {
1118
- /******/ enumerable: true,
1119
- /******/ set: function() {
1120
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1121
- /******/ }
1122
- /******/ });
1123
- /******/ return module;
1124
- /******/ };
1125
- /******/ }();
1099
+ /******/ __webpack_require__.hmd = function(module) {
1100
+ /******/ module = Object.create(module);
1101
+ /******/ if (!module.children) module.children = [];
1102
+ /******/ Object.defineProperty(module, 'exports', {
1103
+ /******/ enumerable: true,
1104
+ /******/ set: function() {
1105
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1106
+ /******/ }
1107
+ /******/ });
1108
+ /******/ return module;
1109
+ /******/ };
1126
1110
  /******/
1127
1111
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
1128
- /******/ !function() {
1129
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
1130
- /******/ }();
1112
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
1131
1113
  /******/
1132
1114
  /************************************************************************/
1133
1115
  /******/
@@ -38,43 +38,20 @@ module.exports = x({ });
38
38
  /******/
39
39
  /************************************************************************/
40
40
  /******/ /* webpack/runtime/define property getters */
41
- /******/ !function() {
42
- /******/ // define getter/value functions for harmony exports
43
- /******/ __webpack_require__.d = function(exports, definition) {
44
- /******/ if(Array.isArray(definition)) {
45
- /******/ var i = 0;
46
- /******/ while(i < definition.length) {
47
- /******/ var key = definition[i++];
48
- /******/ var binding = definition[i++];
49
- /******/ if(!__webpack_require__.o(exports, key)) {
50
- /******/ if(binding === 0) {
51
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
52
- /******/ } else {
53
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
54
- /******/ }
55
- /******/ } else if(binding === 0) { i++; }
56
- /******/ }
57
- /******/ } else {
58
- /******/ for(var key in definition) {
59
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
60
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
61
- /******/ }
62
- /******/ }
41
+ /******/ // define getter/value functions for harmony exports
42
+ /******/ __webpack_require__.d = function(exports, definition) {
43
+ /******/ for(var key in definition) {
44
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
45
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
63
46
  /******/ }
64
- /******/ };
65
- /******/ }();
47
+ /******/ }
48
+ /******/ };
66
49
  /******/
67
50
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
68
- /******/ !function() {
69
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
70
- /******/ }();
51
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
71
52
  /******/
72
53
  /************************************************************************/
73
54
  var __webpack_exports__ = {};
74
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75
- /* harmony export */ b: function() { return /* binding */ viewArrayAsScope; },
76
- /* harmony export */ x: function() { return /* binding */ _viewObjectAsScope; }
77
- /* harmony export */ });
78
55
  /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
79
56
  // #!/usr/bin/env babel-node
80
57
  // -*- coding: utf-8 -*-