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
@@ -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 -*-
@@ -50,11 +50,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
50
50
  /* 2 */
51
51
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
52
52
 
53
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
54
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
55
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
56
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
57
- /* harmony export */ });
58
53
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
59
54
  /* module decorator */ module = __webpack_require__.hmd(module);
60
55
  // #!/usr/bin/env babel-node
@@ -347,15 +342,6 @@ result=object;if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject
347
342
  /* 4 */
348
343
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
349
344
 
350
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
351
- /* harmony export */ Gv: function() { return /* binding */ isObject; },
352
- /* harmony export */ Qd: function() { return /* binding */ isPlainObject; },
353
- /* harmony export */ Tn: function() { return /* binding */ isFunction; },
354
- /* harmony export */ jh: function() { return /* binding */ isMap; },
355
- /* harmony export */ ju: function() { return /* binding */ isProxy; },
356
- /* harmony export */ kf: function() { return /* binding */ isNumeric; },
357
- /* harmony export */ vM: function() { return /* binding */ isSet; }
358
- /* harmony export */ });
359
345
  /* unused harmony exports isWindow, isArrayLike, isAnyMatching */
360
346
  /* unused harmony import specifier */ var determineType;
361
347
  /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
@@ -438,9 +424,6 @@ result=object;if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject
438
424
  /* 5 */
439
425
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
440
426
 
441
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
442
- /* harmony export */ Lz: function() { return /* binding */ globalContext; }
443
- /* harmony export */ });
444
427
  /* unused harmony exports setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, NOOP, mockConsole */
445
428
  /* unused harmony import specifier */ var CONSOLE_METHODS;
446
429
  /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
@@ -731,7 +714,11 @@ var _compile=compile(expression,options),error=_compile.error,originalScopeNames
731
714
  * @param skipTagDelimitedParts - Indicates whether to, for example, ignore
732
715
  * html tags via "['<', '>']" (the default).
733
716
  * @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};/**
717
+ */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}/*
718
+ Skip positions the normalizer strips away (e.g. leading
719
+ whitespace), so the reported match index aligns with the real
720
+ character.
721
+ */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
722
  * Fixes known encoding problems in given data.
736
723
  * @param data - To process.
737
724
  * @returns Processed data.
@@ -775,8 +762,9 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
775
762
  * @returns The formatted string.
776
763
  */var lowerCase=function lowerCase(string){return string.charAt(0).toLowerCase()+string.substring(1)};/**
777
764
  * 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.
765
+ * @param target - String to search in.
766
+ * @param givenSearchWords - String or regular expression or array of those to
767
+ * search for.
780
768
  * @param givenOptions - Defines highlighting behavior.
781
769
  * @param givenOptions.marker - HTML template string to mark.
782
770
  * @param givenOptions.normalizer - Pure normalization function to use before
@@ -784,11 +772,11 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
784
772
  * @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
785
773
  * example, ignore html tags via "['<', '>']" (the default).
786
774
  * @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;/*
775
+ */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
776
  Search for matches as long there is enough target text remaining to
789
777
  walk through.
790
778
  */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};/**
779
+ 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
780
  * Normalizes a given phone number for automatic dialing or comparison.
793
781
  * @param value - Number to normalize.
794
782
  * @param dialable - Indicates whether the result should be dialed or
@@ -1041,10 +1029,6 @@ var result=scope;var index=0;var _iterator6=_createForOfIteratorHelper(path),_st
1041
1029
  /* 21 */
1042
1030
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1043
1031
 
1044
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1045
- /* harmony export */ b: function() { return /* binding */ viewArrayAsScope; },
1046
- /* harmony export */ x: function() { return /* binding */ _viewObjectAsScope; }
1047
- /* harmony export */ });
1048
1032
  /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1049
1033
  // #!/usr/bin/env babel-node
1050
1034
  // -*- coding: utf-8 -*-
@@ -1178,63 +1162,40 @@ return viewArrayAsScope(value,childrenPropertyNames,propertyReferenceKeys)}if(va
1178
1162
  /******/
1179
1163
  /************************************************************************/
1180
1164
  /******/ /* webpack/runtime/define property getters */
1181
- /******/ !function() {
1182
- /******/ // define getter/value functions for harmony exports
1183
- /******/ __webpack_require__.d = function(exports, definition) {
1184
- /******/ if(Array.isArray(definition)) {
1185
- /******/ var i = 0;
1186
- /******/ while(i < definition.length) {
1187
- /******/ var key = definition[i++];
1188
- /******/ var binding = definition[i++];
1189
- /******/ if(!__webpack_require__.o(exports, key)) {
1190
- /******/ if(binding === 0) {
1191
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
1192
- /******/ } else {
1193
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
1194
- /******/ }
1195
- /******/ } else if(binding === 0) { i++; }
1196
- /******/ }
1197
- /******/ } else {
1198
- /******/ for(var key in definition) {
1199
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1200
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1201
- /******/ }
1202
- /******/ }
1165
+ /******/ // define getter/value functions for harmony exports
1166
+ /******/ __webpack_require__.d = function(exports, definition) {
1167
+ /******/ for(var key in definition) {
1168
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1169
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1203
1170
  /******/ }
1204
- /******/ };
1205
- /******/ }();
1171
+ /******/ }
1172
+ /******/ };
1206
1173
  /******/
1207
1174
  /******/ /* webpack/runtime/global */
1208
- /******/ !function() {
1209
- /******/ __webpack_require__.g = (function() {
1210
- /******/ if (typeof globalThis === 'object') return globalThis;
1211
- /******/ try {
1212
- /******/ return this || new Function('return this')();
1213
- /******/ } catch (e) {
1214
- /******/ if (typeof window === 'object') return window;
1215
- /******/ }
1216
- /******/ })();
1217
- /******/ }();
1175
+ /******/ __webpack_require__.g = (function() {
1176
+ /******/ if (typeof globalThis === 'object') return globalThis;
1177
+ /******/ try {
1178
+ /******/ return this || new Function('return this')();
1179
+ /******/ } catch (e) {
1180
+ /******/ if (typeof window === 'object') return window;
1181
+ /******/ }
1182
+ /******/ })();
1218
1183
  /******/
1219
1184
  /******/ /* webpack/runtime/harmony module decorator */
1220
- /******/ !function() {
1221
- /******/ __webpack_require__.hmd = function(module) {
1222
- /******/ module = Object.create(module);
1223
- /******/ if (!module.children) module.children = [];
1224
- /******/ Object.defineProperty(module, 'exports', {
1225
- /******/ enumerable: true,
1226
- /******/ set: function() {
1227
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1228
- /******/ }
1229
- /******/ });
1230
- /******/ return module;
1231
- /******/ };
1232
- /******/ }();
1185
+ /******/ __webpack_require__.hmd = function(module) {
1186
+ /******/ module = Object.create(module);
1187
+ /******/ if (!module.children) module.children = [];
1188
+ /******/ Object.defineProperty(module, 'exports', {
1189
+ /******/ enumerable: true,
1190
+ /******/ set: function() {
1191
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1192
+ /******/ }
1193
+ /******/ });
1194
+ /******/ return module;
1195
+ /******/ };
1233
1196
  /******/
1234
1197
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
1235
- /******/ !function() {
1236
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
1237
- /******/ }();
1198
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
1238
1199
  /******/
1239
1200
  /************************************************************************/
1240
1201
  /******/
@@ -156,54 +156,20 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
156
156
  /******/
157
157
  /************************************************************************/
158
158
  /******/ /* webpack/runtime/define property getters */
159
- /******/ !function() {
160
- /******/ // define getter/value functions for harmony exports
161
- /******/ __webpack_require__.d = function(exports, definition) {
162
- /******/ if(Array.isArray(definition)) {
163
- /******/ var i = 0;
164
- /******/ while(i < definition.length) {
165
- /******/ var key = definition[i++];
166
- /******/ var binding = definition[i++];
167
- /******/ if(!__webpack_require__.o(exports, key)) {
168
- /******/ if(binding === 0) {
169
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
170
- /******/ } else {
171
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
172
- /******/ }
173
- /******/ } else if(binding === 0) { i++; }
174
- /******/ }
175
- /******/ } else {
176
- /******/ for(var key in definition) {
177
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
178
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
179
- /******/ }
180
- /******/ }
159
+ /******/ // define getter/value functions for harmony exports
160
+ /******/ __webpack_require__.d = function(exports, definition) {
161
+ /******/ for(var key in definition) {
162
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
163
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
181
164
  /******/ }
182
- /******/ };
183
- /******/ }();
165
+ /******/ }
166
+ /******/ };
184
167
  /******/
185
168
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
186
- /******/ !function() {
187
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
188
- /******/ }();
169
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
189
170
  /******/
190
171
  /************************************************************************/
191
172
  var __webpack_exports__ = {};
192
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
193
- /* harmony export */ $y: function() { return /* binding */ isSwitchExpression; },
194
- /* harmony export */ G3: function() { return /* binding */ isCondition; },
195
- /* harmony export */ Gc: function() { return /* binding */ isAndExpression; },
196
- /* harmony export */ HK: function() { return /* binding */ isConcatExpression; },
197
- /* harmony export */ MP: function() { return /* binding */ isIfExpression; },
198
- /* harmony export */ YG: function() { return /* binding */ isOperation; },
199
- /* harmony export */ Z9: function() { return /* binding */ isMappingExpression; },
200
- /* harmony export */ ZI: function() { return /* binding */ isArrayContainsExpression; },
201
- /* harmony export */ bF: function() { return /* binding */ isUnaryOperation; },
202
- /* harmony export */ bQ: function() { return /* binding */ isSpecificExpression; },
203
- /* harmony export */ cB: function() { return /* binding */ isSelector; },
204
- /* harmony export */ g6: function() { return /* binding */ isOrExpression; },
205
- /* harmony export */ ml: function() { return /* binding */ isValue; }
206
- /* harmony export */ });
207
173
  /* harmony import */ var _indicators_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
208
174
  // #!/usr/bin/env babel-node
209
175
  // -*- coding: utf-8 -*-
@@ -45,11 +45,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
45
45
  /* 2 */
46
46
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
47
47
 
48
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
49
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
50
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
51
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
52
- /* harmony export */ });
53
48
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
54
49
  /* module decorator */ module = __webpack_require__.hmd(module);
55
50
  // #!/usr/bin/env babel-node
@@ -293,63 +288,40 @@ try{mkdirSync(targetPath)}catch(error){if(error.code!=="EEXIST")throw error}for(
293
288
  /******/
294
289
  /************************************************************************/
295
290
  /******/ /* webpack/runtime/define property getters */
296
- /******/ !function() {
297
- /******/ // define getter/value functions for harmony exports
298
- /******/ __webpack_require__.d = function(exports, definition) {
299
- /******/ if(Array.isArray(definition)) {
300
- /******/ var i = 0;
301
- /******/ while(i < definition.length) {
302
- /******/ var key = definition[i++];
303
- /******/ var binding = definition[i++];
304
- /******/ if(!__webpack_require__.o(exports, key)) {
305
- /******/ if(binding === 0) {
306
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
307
- /******/ } else {
308
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
309
- /******/ }
310
- /******/ } else if(binding === 0) { i++; }
311
- /******/ }
312
- /******/ } else {
313
- /******/ for(var key in definition) {
314
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
315
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
316
- /******/ }
317
- /******/ }
291
+ /******/ // define getter/value functions for harmony exports
292
+ /******/ __webpack_require__.d = function(exports, definition) {
293
+ /******/ for(var key in definition) {
294
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
295
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
318
296
  /******/ }
319
- /******/ };
320
- /******/ }();
297
+ /******/ }
298
+ /******/ };
321
299
  /******/
322
300
  /******/ /* webpack/runtime/global */
323
- /******/ !function() {
324
- /******/ __webpack_require__.g = (function() {
325
- /******/ if (typeof globalThis === 'object') return globalThis;
326
- /******/ try {
327
- /******/ return this || new Function('return this')();
328
- /******/ } catch (e) {
329
- /******/ if (typeof window === 'object') return window;
330
- /******/ }
331
- /******/ })();
332
- /******/ }();
301
+ /******/ __webpack_require__.g = (function() {
302
+ /******/ if (typeof globalThis === 'object') return globalThis;
303
+ /******/ try {
304
+ /******/ return this || new Function('return this')();
305
+ /******/ } catch (e) {
306
+ /******/ if (typeof window === 'object') return window;
307
+ /******/ }
308
+ /******/ })();
333
309
  /******/
334
310
  /******/ /* webpack/runtime/harmony module decorator */
335
- /******/ !function() {
336
- /******/ __webpack_require__.hmd = function(module) {
337
- /******/ module = Object.create(module);
338
- /******/ if (!module.children) module.children = [];
339
- /******/ Object.defineProperty(module, 'exports', {
340
- /******/ enumerable: true,
341
- /******/ set: function() {
342
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
343
- /******/ }
344
- /******/ });
345
- /******/ return module;
346
- /******/ };
347
- /******/ }();
311
+ /******/ __webpack_require__.hmd = function(module) {
312
+ /******/ module = Object.create(module);
313
+ /******/ if (!module.children) module.children = [];
314
+ /******/ Object.defineProperty(module, 'exports', {
315
+ /******/ enumerable: true,
316
+ /******/ set: function() {
317
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
318
+ /******/ }
319
+ /******/ });
320
+ /******/ return module;
321
+ /******/ };
348
322
  /******/
349
323
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
350
- /******/ !function() {
351
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
352
- /******/ }();
324
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
353
325
  /******/
354
326
  /************************************************************************/
355
327
  /******/
package/dist/function.js CHANGED
@@ -38,44 +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 */ D_: function() { return /* binding */ identity; },
76
- /* harmony export */ Gj: function() { return /* binding */ _getParameterNames; },
77
- /* harmony export */ gH: function() { return /* binding */ invertArrayFilter; }
78
- /* harmony export */ });
79
55
  /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
80
56
  // #!/usr/bin/env babel-node
81
57
  // -*- coding: utf-8 -*-