clientnode 4.0.1436 → 4.0.1438

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 (142) hide show
  1. package/dist/Lock.js +83 -94
  2. package/dist/Logger.js +163 -715
  3. package/dist/Semaphore.js +46 -81
  4. package/dist/array.js +337 -568
  5. package/dist/cli.js +37 -71
  6. package/dist/constants.js +110 -209
  7. package/dist/context.js +25 -229
  8. package/dist/cookie.js +48 -226
  9. package/dist/data-transfer.js +166 -725
  10. package/dist/datetime.js +241 -1059
  11. package/dist/domNode.js +277 -441
  12. package/dist/expression/evaluators.js +234 -1112
  13. package/dist/expression/helper.js +82 -135
  14. package/dist/expression/index.js +10 -1245
  15. package/dist/expression/indicator-functions.js +21 -239
  16. package/dist/expression/type.js +4 -34
  17. package/dist/filesystem.js +323 -309
  18. package/dist/function.js +51 -125
  19. package/dist/index.js +26 -2709
  20. package/dist/indicators.js +68 -440
  21. package/dist/module.js +98 -163
  22. package/dist/number.js +25 -423
  23. package/dist/object.js +774 -852
  24. package/dist/process.js +38 -245
  25. package/dist/property-types.js +96 -157
  26. package/dist/scope.js +56 -1825
  27. package/dist/string.js +603 -909
  28. package/dist/test-helper.js +171 -541
  29. package/dist/type.js +8 -37
  30. package/dist/utility.js +91 -336
  31. package/package.json +9 -10
  32. package/dist/Lock.d.ts +0 -39
  33. package/dist/Logger.d.ts +0 -102
  34. package/dist/Semaphore.d.ts +0 -29
  35. package/dist/array.d.ts +0 -150
  36. package/dist/bundle/Lock.js +0 -111
  37. package/dist/bundle/Logger.js +0 -705
  38. package/dist/bundle/Semaphore.js +0 -100
  39. package/dist/bundle/array.js +0 -648
  40. package/dist/bundle/cli.js +0 -85
  41. package/dist/bundle/constants.js +0 -225
  42. package/dist/bundle/context.js +0 -243
  43. package/dist/bundle/cookie.js +0 -262
  44. package/dist/bundle/data-transfer.js +0 -741
  45. package/dist/bundle/datetime.js +0 -1064
  46. package/dist/bundle/domNode.js +0 -471
  47. package/dist/bundle/expression/evaluators.js +0 -1115
  48. package/dist/bundle/expression/helper.js +0 -106
  49. package/dist/bundle/expression/index.js +0 -1223
  50. package/dist/bundle/expression/indicator-functions.js +0 -235
  51. package/dist/bundle/expression/type.js +0 -50
  52. package/dist/bundle/filesystem.js +0 -374
  53. package/dist/bundle/function.js +0 -105
  54. package/dist/bundle/index.js +0 -2686
  55. package/dist/bundle/indicators.js +0 -459
  56. package/dist/bundle/module.js +0 -180
  57. package/dist/bundle/number.js +0 -425
  58. package/dist/bundle/object.js +0 -1004
  59. package/dist/bundle/process.js +0 -275
  60. package/dist/bundle/property-types.js +0 -167
  61. package/dist/bundle/scope.js +0 -1808
  62. package/dist/bundle/string.js +0 -1095
  63. package/dist/bundle/test-helper.js +0 -690
  64. package/dist/bundle/type.js +0 -50
  65. package/dist/bundle/utility.js +0 -362
  66. package/dist/cli.d.ts +0 -31
  67. package/dist/compatible/Lock.js +0 -111
  68. package/dist/compatible/Logger.js +0 -705
  69. package/dist/compatible/Semaphore.js +0 -100
  70. package/dist/compatible/array.js +0 -648
  71. package/dist/compatible/cli.js +0 -85
  72. package/dist/compatible/constants.js +0 -225
  73. package/dist/compatible/context.js +0 -243
  74. package/dist/compatible/cookie.js +0 -262
  75. package/dist/compatible/data-transfer.js +0 -741
  76. package/dist/compatible/datetime.js +0 -1064
  77. package/dist/compatible/domNode.js +0 -471
  78. package/dist/compatible/expression/evaluators.js +0 -1115
  79. package/dist/compatible/expression/helper.js +0 -106
  80. package/dist/compatible/expression/index.js +0 -1223
  81. package/dist/compatible/expression/indicator-functions.js +0 -235
  82. package/dist/compatible/expression/type.js +0 -50
  83. package/dist/compatible/filesystem.js +0 -374
  84. package/dist/compatible/function.js +0 -105
  85. package/dist/compatible/index.js +0 -2686
  86. package/dist/compatible/indicators.js +0 -459
  87. package/dist/compatible/module.js +0 -180
  88. package/dist/compatible/number.js +0 -425
  89. package/dist/compatible/object.js +0 -1004
  90. package/dist/compatible/process.js +0 -275
  91. package/dist/compatible/property-types.js +0 -167
  92. package/dist/compatible/scope.js +0 -1808
  93. package/dist/compatible/string.js +0 -1095
  94. package/dist/compatible/test-helper.js +0 -690
  95. package/dist/compatible/type.js +0 -50
  96. package/dist/compatible/utility.js +0 -362
  97. package/dist/constants.d.ts +0 -99
  98. package/dist/context.d.ts +0 -8
  99. package/dist/cookie.d.ts +0 -31
  100. package/dist/data-transfer.d.ts +0 -45
  101. package/dist/datetime.d.ts +0 -37
  102. package/dist/domNode.d.ts +0 -82
  103. package/dist/expression/evaluators.d.ts +0 -55
  104. package/dist/expression/helper.d.ts +0 -4
  105. package/dist/expression/index.d.ts +0 -7
  106. package/dist/expression/indicator-functions.d.ts +0 -14
  107. package/dist/expression/type.d.ts +0 -70
  108. package/dist/filesystem.d.ts +0 -143
  109. package/dist/function.d.ts +0 -20
  110. package/dist/index.d.ts +0 -23
  111. package/dist/indicators.d.ts +0 -68
  112. package/dist/module.d.ts +0 -8
  113. package/dist/number.d.ts +0 -35
  114. package/dist/object.d.ts +0 -231
  115. package/dist/process.d.ts +0 -22
  116. package/dist/property-types.d.ts +0 -460
  117. package/dist/scope.d.ts +0 -44
  118. package/dist/string.d.ts +0 -312
  119. package/dist/test/Lock.d.ts +0 -1
  120. package/dist/test/Logger.d.ts +0 -1
  121. package/dist/test/Semaphore.d.ts +0 -1
  122. package/dist/test/array.d.ts +0 -1
  123. package/dist/test/cookie.d.ts +0 -1
  124. package/dist/test/data-transfer.d.ts +0 -1
  125. package/dist/test/datetime.d.ts +0 -1
  126. package/dist/test/domNode.d.ts +0 -1
  127. package/dist/test/expression/evaluators.d.ts +0 -1
  128. package/dist/test/expression/helper.d.ts +0 -1
  129. package/dist/test/expression/indicator-functions.d.ts +0 -1
  130. package/dist/test/filesystem.d.ts +0 -1
  131. package/dist/test/function.d.ts +0 -1
  132. package/dist/test/indicators.d.ts +0 -1
  133. package/dist/test/number.d.ts +0 -1
  134. package/dist/test/object.d.ts +0 -1
  135. package/dist/test/process.d.ts +0 -1
  136. package/dist/test/property-types.d.ts +0 -1
  137. package/dist/test/scope.d.ts +0 -1
  138. package/dist/test/string.d.ts +0 -1
  139. package/dist/test/utility.d.ts +0 -1
  140. package/dist/test-helper.d.ts +0 -143
  141. package/dist/type.d.ts +0 -230
  142. package/dist/utility.d.ts +0 -44
package/dist/index.js CHANGED
@@ -1,1289 +1,8 @@
1
- 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;(function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("core-js/modules/es.array.includes.js"), require("core-js/modules/es.regexp.flags.js"), require("child_process"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["core-js/modules/es.array.includes.js", "core-js/modules/es.regexp.flags.js", "child_process"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("core-js/modules/es.array.includes.js"), require("core-js/modules/es.regexp.flags.js"), require("child_process")) : factory(root["core-js/modules/es.array.includes.js"], root["core-js/modules/es.regexp.flags.js"], root["child_process"]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
10
- })(this, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__27__) {
11
- return /******/ (function() { // webpackBootstrap
12
- /******/ var __webpack_modules__ = ([
13
- /* 0 */
14
- /***/ (function(module) {
15
-
16
- "use strict";
17
- module.exports = __WEBPACK_EXTERNAL_MODULE__0__;
18
-
19
- /***/ }),
20
- /* 1 */
21
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
22
-
23
- "use strict";
24
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25
- /* harmony export */ ABBREVIATIONS: function() { return /* binding */ ABBREVIATIONS; },
26
- /* harmony export */ ANIMATION_END_EVENT_NAMES: function() { return /* binding */ ANIMATION_END_EVENT_NAMES; },
27
- /* harmony export */ CLASS_TO_TYPE_MAPPING: function() { return /* binding */ CLASS_TO_TYPE_MAPPING; },
28
- /* harmony export */ CLOSE_EVENT_NAMES: function() { return /* binding */ CLOSE_EVENT_NAMES; },
29
- /* harmony export */ CONSOLE_METHODS: function() { return /* binding */ CONSOLE_METHODS; },
30
- /* harmony export */ DEFAULT_ENCODING: function() { return /* binding */ DEFAULT_ENCODING; },
31
- /* harmony export */ IGNORE_NULL_AND_UNDEFINED_SYMBOL: function() { return /* binding */ IGNORE_NULL_AND_UNDEFINED_SYMBOL; },
32
- /* harmony export */ KEYBOARD_CODES: function() { return /* binding */ KEYBOARD_CODES; },
33
- /* harmony export */ KEY_CODES: function() { return /* binding */ KEY_CODES; },
34
- /* harmony export */ LOCALES: function() { return /* binding */ LOCALES; },
35
- /* harmony export */ Lock: function() { return /* reexport safe */ _Lock__WEBPACK_IMPORTED_MODULE_0__.Lock; },
36
- /* harmony export */ PLAIN_OBJECT_PROTOTYPES: function() { return /* binding */ PLAIN_OBJECT_PROTOTYPES; },
37
- /* harmony export */ SPECIAL_REGEX_SEQUENCES: function() { return /* binding */ SPECIAL_REGEX_SEQUENCES; },
38
- /* harmony export */ Semaphore: function() { return /* reexport safe */ _Semaphore__WEBPACK_IMPORTED_MODULE_1__.Semaphore; },
39
- /* harmony export */ TRANSITION_END_EVENT_NAMES: function() { return /* binding */ TRANSITION_END_EVENT_NAMES; },
40
- /* harmony export */ VALUE_COPY_SYMBOL: function() { return /* binding */ VALUE_COPY_SYMBOL; }
41
- /* harmony export */ });
42
- /* harmony import */ var _Lock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
43
- /* harmony import */ var _Semaphore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11);
44
1
  // #!/usr/bin/env babel-node
45
2
  // -*- coding: utf-8 -*-
46
- /** @module constants *//* !
47
- region header
48
- [Project page](https://torben.website/clientnode)
49
-
50
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
51
-
52
- License
53
- -------
54
-
55
- This library written by Torben Sickert stands under a creative commons
56
- naming 3.0 unported license.
57
- See https://creativecommons.org/licenses/by/3.0/deed.de
58
- endregion
59
- */var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"];var CONSOLE_METHODS=["debug","error","info","log","warn"];var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
60
- // conversion.
61
- var ABBREVIATIONS=["html","id","url","us","de","api","href"];// Saves a string with all css3 browser specific animation end event names.
62
- var ANIMATION_END_EVENT_NAMES="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";// String representation to object type name mapping.
63
- var CLASS_TO_TYPE_MAPPING={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"};// Saves a mapping from key codes to their corresponding name.
64
- var KEY_CODES={BACKSPACE:8,SPACE:32,TAB:9,DELETE:46,ENTER:13,COMMA:188,PERIOD:190,END:35,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,HOME:36,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,PAGE_UP:33,PAGE_DOWN:34,UP:38,DOWN:40,LEFT:37,RIGHT:39};var KEYBOARD_CODES={BACKSPACE:"Backspace",SPACE:"Space",TAB:"Tab",DELETE:"Delete",ENTER:"Enter",COMMA:"Comma",PERIOD:"Period",END:"End",ESCAPE:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F111",F12:"F12",HOME:"Home",NUMPAD_ADD:"NumpadAdd",NUMPAD_SUBTRACT:"NumpadSubtract",NUMPAD_DECIMAL:"NumpadDecimal",NUMPAD_DIVIDE:"NumpadDivide",NUMPAD_ENTER:"NumpadEnter",NUMPAD_MULTIPLY:"NumpadMultiply",PAGE_UP:"PageUp",PAGE_DOWN:"PageUp",UP:"ArrowUp",DOWN:"ArrowDown",LEFT:"ArrowLeft",RIGHT:"ArrowUp"};var LOCALES=[];var PLAIN_OBJECT_PROTOTYPES=[Object.prototype];// A list of special regular expression symbols.
65
- var SPECIAL_REGEX_SEQUENCES=["-","[","]","(",")","^","$","*","+",".","{","}"];// Saves a string with all css3 browser specific transition end event names.
66
- var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd";
67
-
68
- /***/ }),
69
- /* 2 */
70
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
71
-
72
- "use strict";
73
- __webpack_require__.r(__webpack_exports__);
74
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75
- /* harmony export */ clearRequireCache: function() { return /* binding */ clearRequireCache; },
76
- /* harmony export */ currentRequire: function() { return /* binding */ currentRequire; },
77
- /* harmony export */ determineGlobalContext: function() { return /* binding */ determineGlobalContext; },
78
- /* harmony export */ isImportSyntaxSupported: function() { return /* binding */ isImportSyntaxSupported; },
79
- /* harmony export */ isolatedRequire: function() { return /* binding */ isolatedRequire; },
80
- /* harmony export */ optionalImport: function() { return /* binding */ optionalImport; },
81
- /* harmony export */ optionalRequire: function() { return /* binding */ optionalRequire; }
82
- /* harmony export */ });
83
- /* module decorator */ module = __webpack_require__.hmd(module);
84
- // #!/usr/bin/env babel-node
85
- // -*- coding: utf-8 -*-
86
- /** @module module *//* !
87
- region header
88
- [Project page](https://torben.website/clientnode)
89
-
90
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
91
-
92
- License
93
- -------
94
-
95
- This library written by Torben Sickert stands under a creative commons
96
- naming 3.0 unported license.
97
- See https://creativecommons.org/licenses/by/3.0/deed.de
98
- endregion
99
- */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):(e.__proto__=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)})}}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 _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 _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}var determineGlobalContext=function determineGlobalContext(){if(typeof globalThis==="undefined"){if(typeof window==="undefined"){if(typeof __webpack_require__.g==="undefined")return false?0:module;if(Object.prototype.hasOwnProperty.call(__webpack_require__.g,"window"))return __webpack_require__.g.window;return __webpack_require__.g}return window}return globalThis};var globalContext=determineGlobalContext();// Make preprocessed require function available at runtime.
100
- var currentRequire=typeof globalContext.require==="undefined"?null:globalContext.require;var optionalRequire=function optionalRequire(id){try{return currentRequire?currentRequire(id):null}catch(_unused){return null}};var clearRequireCache=function clearRequireCache(cache){if(cache===void 0){cache=(currentRequire===null||currentRequire===void 0?void 0:currentRequire.cache)||__webpack_require__.c}var backup={};for(var _i=0,_Object$entries=Object.entries(cache);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],_module=_Object$entries$_i[1];backup[key]=_module;delete cache[key]}return backup};var restoreRequireCache=function restoreRequireCache(cache,backup){if(cache===void 0){cache=(currentRequire===null||currentRequire===void 0?void 0:currentRequire.cache)||__webpack_require__.c}clearRequireCache();for(var _i2=0,_Object$entries2=Object.entries(backup);_i2<_Object$entries2.length;_i2++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i2],2),key=_Object$entries2$_i[0],_module2=_Object$entries2$_i[1];cache[key]=_module2}};var isolatedRequire=function isolatedRequire(path,requireFunction){if(requireFunction===void 0){requireFunction=currentRequire||__webpack_require__(6)}var backup=clearRequireCache(requireFunction.cache);try{return requireFunction(path);// eslint-disable-next-line no-useless-catch
101
- }catch(error){throw error}finally{restoreRequireCache(requireFunction.cache,backup)}};// Make preprocessed import function available at runtime.
102
- var isImportSyntaxSupported=function isImportSyntaxSupported(){try{// eslint-disable-next-line @typescript-eslint/no-implied-eval
103
- new Function("import(\"data:text/javascript,\")");return true}catch(_unused2){return false}};var optionalImport=/*#__PURE__*/function(){var _optionalImport=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id,options){var _t,_t2;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(options===void 0){options={}}_context.p=1;if(!isImportSyntaxSupported()){_context.n=3;break}_context.n=2;return new Function("options","return import('".concat(id,"', options)"))(options);case 2:_t=_context.v;_context.n=5;break;case 3:_context.n=4;return Promise.resolve(null);case 4:_t=_context.v;case 5:return _context.a(2,_t);case 6:_context.p=6;_t2=_context.v;_context.n=7;return Promise.resolve(null);case 7:return _context.a(2,_context.v)}},_callee,null,[[1,6]])}));function optionalImport(_x,_x2){return _optionalImport.apply(this,arguments)}return optionalImport}();
104
-
105
- /***/ }),
106
- /* 3 */
107
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
108
-
109
- "use strict";
110
- __webpack_require__.r(__webpack_exports__);
111
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
112
- /* harmony export */ addDynamicGetterAndSetter: function() { return /* binding */ _addDynamicGetterAndSetter; },
113
- /* harmony export */ convertCircularObjectToJSON: function() { return /* binding */ convertCircularObjectToJSON; },
114
- /* harmony export */ convertMapToPlainObject: function() { return /* binding */ _convertMapToPlainObject; },
115
- /* harmony export */ convertPlainObjectToMap: function() { return /* binding */ _convertPlainObjectToMap; },
116
- /* harmony export */ convertSubstringInPlainObject: function() { return /* binding */ _convertSubstringInPlainObject; },
117
- /* harmony export */ copy: function() { return /* binding */ _copy; },
118
- /* harmony export */ determineType: function() { return /* binding */ determineType; },
119
- /* harmony export */ equals: function() { return /* binding */ _equals; },
120
- /* harmony export */ evaluateAsyncDynamicData: function() { return /* binding */ _evaluateAsyncDynamicData; },
121
- /* harmony export */ evaluateDynamicData: function() { return /* binding */ evaluateDynamicData; },
122
- /* harmony export */ extend: function() { return /* binding */ _extend; },
123
- /* harmony export */ getProxyHandler: function() { return /* binding */ getProxyHandler; },
124
- /* harmony export */ mask: function() { return /* binding */ _mask; },
125
- /* harmony export */ modifyObject: function() { return /* binding */ _modifyObject; },
126
- /* harmony export */ removeKeyPrefixes: function() { return /* binding */ _removeKeyPrefixes; },
127
- /* harmony export */ removeKeysInEvaluation: function() { return /* binding */ _removeKeysInEvaluation; },
128
- /* harmony export */ represent: function() { return /* binding */ _represent; },
129
- /* harmony export */ sort: function() { return /* binding */ sort; },
130
- /* harmony export */ unwrapProxy: function() { return /* binding */ _unwrapProxy; }
131
- /* harmony export */ });
132
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
133
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
134
- /* harmony import */ var core_js_modules_es_regexp_flags_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8);
135
- /* harmony import */ var core_js_modules_es_regexp_flags_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_flags_js__WEBPACK_IMPORTED_MODULE_1__);
136
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
137
- /* harmony import */ var _indicators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
138
- /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
139
- /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7);
140
- // #!/usr/bin/env babel-node
141
- // -*- coding: utf-8 -*-
142
- /** @module object *//* !
143
- region header
144
- [Project page](https://torben.website/clientnode)
145
-
146
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
147
-
148
- License
149
- -------
150
-
151
- This library written by Torben Sickert stands under a creative commons
152
- naming 3.0 unported license.
153
- See https://creativecommons.org/licenses/by/3.0/deed.de
154
- endregion
155
- */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 _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):(e.__proto__=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)})}}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 _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 _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 _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)}/**
156
- * Adds dynamic getter and setter to any given data structure such as maps.
157
- * @param object - Object to proxy.
158
- * @param getterWrapper - Function to wrap each property get.
159
- * @param setterWrapper - Function to wrap each property set.
160
- * @param methodNames - Method names to perform actions on the given
161
- * object.
162
- * @param deep - Indicates to perform a deep wrapping of specified types.
163
- * @param typesToExtend - Types which should be extended (Checks are
164
- * performed via "value instanceof type".).
165
- * @returns Returns given object wrapped with a dynamic getter proxy.
166
- */var _addDynamicGetterAndSetter=function addDynamicGetterAndSetter(object,getterWrapper,setterWrapper,methodNames,deep,typesToExtend){if(getterWrapper===void 0){getterWrapper=null}if(setterWrapper===void 0){setterWrapper=null}if(methodNames===void 0){methodNames={}}if(deep===void 0){deep=true}if(typesToExtend===void 0){typesToExtend=[Object]}if(deep&&_typeof(object)==="object")if(Array.isArray(object)){var index=0;var _iterator=_createForOfIteratorHelper(object),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var value=_step.value;object[index]=_addDynamicGetterAndSetter(value,getterWrapper,setterWrapper,methodNames,deep);index+=1}}catch(err){_iterator.e(err)}finally{_iterator.f()}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(object)){var _iterator2=_createForOfIteratorHelper(object),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _step2$value=_slicedToArray(_step2.value,2),key=_step2$value[0],_value=_step2$value[1];object.set(key,_addDynamicGetterAndSetter(_value,getterWrapper,setterWrapper,methodNames,deep))}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isSet)(object)){var cache=[];var _iterator3=_createForOfIteratorHelper(object),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _value3=_step3.value;object.delete(_value3);cache.push(_addDynamicGetterAndSetter(_value3,getterWrapper,setterWrapper,methodNames,deep))}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}for(var _i=0,_cache=cache;_i<_cache.length;_i++){var _value2=_cache[_i];object.add(_value2)}}else if(object!==null)for(var _i2=0,_Object$entries=Object.entries(object);_i2<_Object$entries.length;_i2++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i2],2),_key=_Object$entries$_i[0],_value4=_Object$entries$_i[1];object[_key]=_addDynamicGetterAndSetter(_value4,getterWrapper,setterWrapper,methodNames,deep)}if(getterWrapper||setterWrapper){var _iterator4=_createForOfIteratorHelper(typesToExtend),_step4;try{var _loop=function _loop(){var type=_step4.value;if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(object)&&object instanceof type){var defaultHandler=getProxyHandler(object,methodNames);var handler=getProxyHandler(object,methodNames);if(getterWrapper)handler.get=function(_target,name){if(name==="__target__")return object;if(name==="__revoke__")return function(){revoke();return object};if(typeof object[name]==="function")return object[name];return getterWrapper(defaultHandler.get(proxy,name),name,object)};if(setterWrapper)handler.set=function(_target,name,value){return defaultHandler.set(proxy,name,setterWrapper(name,value,object))};var _Proxy$revocable=Proxy.revocable({},handler),proxy=_Proxy$revocable.proxy,revoke=_Proxy$revocable.revoke;return{v:proxy}}},_ret;for(_iterator4.s();!(_step4=_iterator4.n()).done;){_ret=_loop();if(_ret)return _ret.v}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}}return object};/**
167
- * Converts given object into its serialized JSON representation by
168
- * replacing circular references with a given provided value.
169
- *
170
- * This method traverses given object recursively and tracks of seen and
171
- * already serialized structures to reuse generated strings or mark a
172
- * circular reference.
173
- * @param object - Object to serialize.
174
- * @param determineCircularReferenceValue - Callback to create a fallback
175
- * value depending on given redundant value.
176
- * @param numberOfSpaces - Number of spaces to use for string formatting.
177
- * @returns The formatted JSON string.
178
- */var convertCircularObjectToJSON=function convertCircularObjectToJSON(object,determineCircularReferenceValue,numberOfSpaces){if(determineCircularReferenceValue===void 0){determineCircularReferenceValue=function determineCircularReferenceValue(serializedValue){return serializedValue!==null&&serializedValue!==void 0?serializedValue:"__circularReference__"}}if(numberOfSpaces===void 0){numberOfSpaces=0}var seenObjects=new Map;var stringifier=function stringifier(object){var _replacer=function replacer(key,value){if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(value)){var _seenObjects$get;if(seenObjects.has(value))return determineCircularReferenceValue((_seenObjects$get=seenObjects.get(value))!==null&&_seenObjects$get!==void 0?_seenObjects$get:null,key,value,seenObjects);// NOTE: Set before traversing deeper to detect cycles.
179
- seenObjects.set(value,null);var result;if(Array.isArray(value)){result=[];var _iterator5=_createForOfIteratorHelper(value),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var item=_step5.value;result.push(_replacer(null,item))}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}}else{result={};for(var _i3=0,_Object$entries2=Object.entries(value);_i3<_Object$entries2.length;_i3++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i3],2),name=_Object$entries2$_i[0],subValue=_Object$entries2$_i[1];result[name]=_replacer(name,subValue)}}seenObjects.set(value,result);return result}return value};return JSON.stringify(object,_replacer,numberOfSpaces)};return stringifier(object)};/**
180
- * Converts given map and all nested found maps objects to corresponding
181
- * object.
182
- * @param object - Map to convert to.
183
- * @param deep - Indicates whether to perform a recursive conversion.
184
- * @returns Given map as object.
185
- */var _convertMapToPlainObject=function convertMapToPlainObject(object,deep){if(deep===void 0){deep=true}if(_typeof(object)==="object"){if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(object)){var newObject={};var _iterator6=_createForOfIteratorHelper(object),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _step6$value=_slicedToArray(_step6.value,2),key=_step6$value[0],value=_step6$value[1];if(deep)value=_convertMapToPlainObject(value,deep);if(["number","string"].includes(_typeof(key)))newObject[String(key)]=value}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}return newObject}if(deep)if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(object))for(var _i4=0,_Object$entries3=Object.entries(object);_i4<_Object$entries3.length;_i4++){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i4],2),_key2=_Object$entries3$_i[0],_value5=_Object$entries3$_i[1];object[_key2]=_convertMapToPlainObject(_value5,deep)}else if(Array.isArray(object)){var index=0;for(var _i5=0,_arr=object;_i5<_arr.length;_i5++){var _value6=_arr[_i5];object[index]=_convertMapToPlainObject(_value6,deep);index+=1}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isSet)(object)){var cache=[];var _iterator7=_createForOfIteratorHelper(object),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _value8=_step7.value;object.delete(_value8);cache.push(_convertMapToPlainObject(_value8,deep))}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}for(var _i6=0,_cache2=cache;_i6<_cache2.length;_i6++){var _value7=_cache2[_i6];object.add(_value7)}}}return object};/**
186
- * Converts given plain object and all nested found objects to
187
- * corresponding map.
188
- * @param object - Object to convert to.
189
- * @param deep - Indicates whether to perform a recursive conversion.
190
- * @returns Given object as map.
191
- */var _convertPlainObjectToMap=function convertPlainObjectToMap(object,deep){if(deep===void 0){deep=true}if(_typeof(object)==="object"){if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(object)){var newObject=new Map;for(var _i7=0,_Object$entries4=Object.entries(object);_i7<_Object$entries4.length;_i7++){var _Object$entries4$_i=_slicedToArray(_Object$entries4[_i7],2),key=_Object$entries4$_i[0],value=_Object$entries4$_i[1];if(deep)object[key]=_convertPlainObjectToMap(value,deep);newObject.set(key,object[key])}return newObject}if(deep)if(Array.isArray(object)){var index=0;for(var _i8=0,_arr2=object;_i8<_arr2.length;_i8++){var _value9=_arr2[_i8];object[index]=_convertPlainObjectToMap(_value9,deep);index+=1}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(object)){var _iterator8=_createForOfIteratorHelper(object),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _step8$value=_slicedToArray(_step8.value,2),_key3=_step8$value[0],_value0=_step8$value[1];object.set(_key3,_convertPlainObjectToMap(_value0,deep))}}catch(err){_iterator8.e(err)}finally{_iterator8.f()}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isSet)(object)){var cache=[];var _iterator9=_createForOfIteratorHelper(object),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _value10=_step9.value;object.delete(_value10);cache.push(_convertPlainObjectToMap(_value10,deep))}}catch(err){_iterator9.e(err)}finally{_iterator9.f()}for(var _i9=0,_cache3=cache;_i9<_cache3.length;_i9++){var _value1=_cache3[_i9];object.add(_value1)}}}return object};/**
192
- * Replaces given pattern in each value in given object recursively with
193
- * given string replacement.
194
- * @param object - Object to convert substrings in.
195
- * @param pattern - Regular expression to replace.
196
- * @param replacement - String to use as replacement for found patterns.
197
- * @returns Converted object with replaced patterns.
198
- */var _convertSubstringInPlainObject=function convertSubstringInPlainObject(object,pattern,replacement){for(var _i0=0,_Object$entries5=Object.entries(object);_i0<_Object$entries5.length;_i0++){var _Object$entries5$_i=_slicedToArray(_Object$entries5[_i0],2),key=_Object$entries5$_i[0],value=_Object$entries5$_i[1];if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(value))object[key]=_convertSubstringInPlainObject(value,pattern,replacement);else if(typeof value==="string")object[key]=value.replace(pattern,replacement)}return object};/* eslint-disable jsdoc/require-description-complete-sentence *//**
199
- * Copies given object (of any type) into optionally given destination.
200
- * @param source - Object to copy.
201
- * @param copyBlobs - Determines whether to copy blobs as well.
202
- * @param recursionLimit - Specifies how deep we should traverse into given
203
- * object recursively.
204
- * @param recursionEndValue - Indicates which value to use for recursion ends.
205
- * Usually a reference to corresponding source value will be used.
206
- * @param destination - Target to copy source to.
207
- * @param cyclic - Indicates whether known sub structures should be copied or
208
- * referenced (if "true" endless loops can occur if source has cyclic
209
- * structures).
210
- * @param knownReferences - Used to avoid traversing loops and not to copy
211
- * references e.g. to objects not to copy (e.g. symbol polyfills).
212
- * @param recursionLevel - Internally used to track current recursion level in
213
- * given source data structure.
214
- * @returns Value "true" if both objects are equal and "false" otherwise.
215
- */var _copy=function copy(source,copyBlobs,recursionLimit,recursionEndValue,destination,cyclic,knownReferences,recursionLevel){if(copyBlobs===void 0){copyBlobs=false}if(recursionLimit===void 0){recursionLimit=-1}if(recursionEndValue===void 0){recursionEndValue=_constants__WEBPACK_IMPORTED_MODULE_2__.VALUE_COPY_SYMBOL}if(destination===void 0){destination=null}if(cyclic===void 0){cyclic=false}if(knownReferences===void 0){knownReferences=[]}if(recursionLevel===void 0){recursionLevel=0}/* eslint-enable jsdoc/require-description-complete-sentence */if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(source))if(destination){if(source===destination)throw new Error("Can't copy because source and destination are "+"identical.");if(!cyclic&&![undefined,null].includes(source)){var index=knownReferences.indexOf(source);if(index!==-1)return knownReferences[index];knownReferences.push(source)}var copyValue=function copyValue(value){if(recursionLimit!==-1&&recursionLimit<recursionLevel+1)return recursionEndValue===_constants__WEBPACK_IMPORTED_MODULE_2__.VALUE_COPY_SYMBOL?value:recursionEndValue;var result=_copy(value,copyBlobs,recursionLimit,recursionEndValue,null,cyclic,knownReferences,recursionLevel+1);if(!cyclic&&![undefined,null].includes(value)&&_typeof(value)==="object")knownReferences.push(value);return result};if(Array.isArray(source)){var _iterator0=_createForOfIteratorHelper(source),_step0;try{for(_iterator0.s();!(_step0=_iterator0.n()).done;){var item=_step0.value;destination.push(copyValue(item))}}catch(err){_iterator0.e(err)}finally{_iterator0.f()}}else if(source instanceof Map){var _iterator1=_createForOfIteratorHelper(source),_step1;try{for(_iterator1.s();!(_step1=_iterator1.n()).done;){var _step1$value=_slicedToArray(_step1.value,2),key=_step1$value[0],value=_step1$value[1];destination.set(key,copyValue(value))}}catch(err){_iterator1.e(err)}finally{_iterator1.f()}}else if(source instanceof Set){var _iterator10=_createForOfIteratorHelper(source),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _value11=_step10.value;destination.add(copyValue(_value11))}}catch(err){_iterator10.e(err)}finally{_iterator10.f()}}else for(var _i1=0,_Object$entries6=Object.entries(source);_i1<_Object$entries6.length;_i1++){var _Object$entries6$_i=_slicedToArray(_Object$entries6[_i1],2),_key4=_Object$entries6$_i[0],_value12=_Object$entries6$_i[1];try{destination[_key4]=copyValue(_value12)}catch(error){throw new Error("Failed to copy property value object \""+"".concat(_key4,"\": ").concat(_represent(error)),{cause:error})}}}else{if(Array.isArray(source))return _copy(source,copyBlobs,recursionLimit,recursionEndValue,[],cyclic,knownReferences,recursionLevel);if(source instanceof Map)return _copy(source,copyBlobs,recursionLimit,recursionEndValue,new Map,cyclic,knownReferences,recursionLevel);if(source instanceof Set)return _copy(source,copyBlobs,recursionLimit,recursionEndValue,new Set,cyclic,knownReferences,recursionLevel);if(source instanceof Date)return new Date(source.getTime());if(source instanceof RegExp){var modifier=/[^/]*$/.exec(source.toString());destination=new RegExp(source.source,modifier?modifier[0]:undefined);destination.lastIndex=source.lastIndex;return destination}if(typeof Blob!=="undefined"&&source instanceof Blob)return copyBlobs?source.slice(0,source.size,source.type):source;return _copy(source,copyBlobs,recursionLimit,recursionEndValue,{},cyclic,knownReferences,recursionLevel)}return destination||source};/**
216
- * Determine the internal JavaScript [[Class]] of an object.
217
- * @param value - Value to analyze.
218
- * @returns Name of determined type.
219
- */var determineType=function determineType(value){if([null,undefined].includes(value))return String(value);var type=_typeof(value);if(["function","object"].includes(type)&&"toString"in value){var stringRepresentation=Object.prototype.toString.call(value);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_2__.CLASS_TO_TYPE_MAPPING,stringRepresentation))return _constants__WEBPACK_IMPORTED_MODULE_2__.CLASS_TO_TYPE_MAPPING[stringRepresentation]}return type};/**
220
- * Returns true if given items are equal for given property list. If
221
- * property list isn't set all properties will be checked. All keys which
222
- * starts with one of the exception prefixes will be omitted.
223
- * @param firstValue - First object to compare.
224
- * @param secondValue - Second object to compare.
225
- * @param givenOptions - Options to define how to compare.
226
- * @param givenOptions.properties - Property names to check. Check all if
227
- * "null" is selected (default).
228
- * @param givenOptions.deep - Recursion depth negative values means
229
- * infinitely deep (default).
230
- * @param givenOptions.exceptionPrefixes - Property prefixes which
231
- * indicates properties to ignore.
232
- * @param givenOptions.ignoreFunctions - Indicates whether functions have
233
- * to be identical to interpret is as equal. If set to "true" two functions
234
- * will be assumed to be equal (default).
235
- * @param givenOptions.compareBlobs - Indicates whether binary data should
236
- * be converted to a base64 string to compare their content. Makes this
237
- * function asynchronous in browsers and potentially takes a lot of
238
- * resources.
239
- * @returns Value "true" if both objects are equal and "false" otherwise.
240
- * If "compareBlobs" is activated, and we're running in a browser like
241
- * environment and binary data is given, then a promise wrapping the
242
- * determined boolean values is returned.
243
- */var _equals=function equals(firstValue,secondValue,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread({compareBlobs:false,deep:-1,exceptionPrefixes:[],ignoreFunctions:true,properties:null,returnReasonIfNotEqual:false},givenOptions);if(options.ignoreFunctions&&(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isFunction)(firstValue)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isFunction)(secondValue)||firstValue===secondValue||(0,_number__WEBPACK_IMPORTED_MODULE_4__.isNotANumber)(firstValue)&&(0,_number__WEBPACK_IMPORTED_MODULE_4__.isNotANumber)(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()&&firstValue.flags.split("").sort().join("")===secondValue.flags.split("").sort().join("")||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&eval("typeof Buffer")!=="undefined"&&Object.prototype.hasOwnProperty.call(eval("Buffer"),"isBuffer")&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return true;if(options.compareBlobs&&typeof Blob!=="undefined"&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise(function(resolve){var values=[];for(var _i10=0,_arr3=[firstValue,secondValue];_i10<_arr3.length;_i10++){var value=_arr3[_i10];var fileReader=new FileReader;fileReader.onload=function(event){if(event.target===null)values.push(null);else values.push(event.target.result);if(values.length===2)if(values[0]===values[1])resolve(true);else resolve(options.returnReasonIfNotEqual?">>> Blob(".concat(_represent(values[0]),") !== ")+"Blob(".concat(_represent(values[1]),")"):false)};fileReader.readAsDataURL(value)}});if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(firstValue)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){var promises=[];for(var _i11=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i11<_arr4.length;_i11++){var _arr4$_i=_slicedToArray(_arr4[_i11],2),first=_arr4$_i[0],second=_arr4$_i[1];var firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return options.returnReasonIfNotEqual?".length":false;var firstIsMap=(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(first);if(firstIsMap&&(!(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(second)||first.size!==second.size))return options.returnReasonIfNotEqual?".size":false;var firstIsSet=(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isSet)(first);if(firstIsSet&&(!(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isSet)(second)||first.size!==second.size))return options.returnReasonIfNotEqual?".size":false;if(firstIsArray){var index=0;var _loop2=function _loop2(){var value=_arr5[_i12];if(options.deep!==0){var result=_equals(value,second[index],_objectSpread(_objectSpread({},options),{},{deep:options.deep-1}));if(!result)return{v:false};var currentIndex=index;var determineResult=function determineResult(result){var _$$result$;return typeof result==="string"?"[".concat(String(currentIndex),"]")+((_$$result$={"[":"",">":" "}[result[0]])!==null&&_$$result$!==void 0?_$$result$:".")+result:result};if(Object.prototype.hasOwnProperty.call(result,"then"))promises.push(result.then(determineResult));if(typeof result==="string")return{v:determineResult(result)}}index+=1},_ret2;for(var _i12=0,_arr5=first;_i12<_arr5.length;_i12++){_ret2=_loop2();if(_ret2)return _ret2.v}}else if(firstIsMap){var _iterator11=_createForOfIteratorHelper(first),_step11;try{var _loop3=function _loop3(){var _step11$value=_slicedToArray(_step11.value,2),key=_step11$value[0],value=_step11$value[1];if(options.deep!==0){var result=_equals(value,second.get(key),_objectSpread(_objectSpread({},options),{},{deep:options.deep-1}));if(!result)return{v:false};var determineResult=function determineResult(result){var _$$result$2;return typeof result==="string"?"get(".concat(_represent(key),")")+((_$$result$2={"[":"",">":" "}[result[0]])!==null&&_$$result$2!==void 0?_$$result$2:".")+result:result};if(Object.prototype.hasOwnProperty.call(result,"then"))promises.push(result.then(determineResult));if(typeof result==="string")return{v:determineResult(result)}}},_ret3;for(_iterator11.s();!(_step11=_iterator11.n()).done;){_ret3=_loop3();if(_ret3)return _ret3.v}}catch(err){_iterator11.e(err)}finally{_iterator11.f()}}else if(firstIsSet){var _iterator12=_createForOfIteratorHelper(first),_step12;try{var _loop4=function _loop4(){var value=_step12.value;if(options.deep!==0){var equal=false;var subPromises=[];/*
244
- NOTE: Check if their exists at least one being
245
- equally.
246
- */var _iterator13=_createForOfIteratorHelper(second),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _secondValue=_step13.value;var result=_equals(value,_secondValue,_objectSpread(_objectSpread({},options),{},{deep:options.deep-1}));if(typeof result==="boolean"){if(result){equal=true;break}}else subPromises.push(result)}}catch(err){_iterator13.e(err)}finally{_iterator13.f()}var determineResult=function determineResult(equal){return equal?true:options.returnReasonIfNotEqual?">>> {-> ".concat(_represent(value)," not found}"):false};if(equal)/*
247
- NOTE: We do not have to wait for promises to be
248
- resolved when one match could be found.
249
- */return 0;// continue
250
- if(subPromises.length)promises.push(new Promise(function(resolve){Promise.all(subPromises).then(function(results){resolve(determineResult(results.some(function(result){return result})))},function(){// Do nothing.
251
- })}));return{v:determineResult(false)}}},_ret4;for(_iterator12.s();!(_step12=_iterator12.n()).done;){_ret4=_loop4();if(_ret4===0)continue;if(_ret4)return _ret4.v}}catch(err){_iterator12.e(err)}finally{_iterator12.f()}}else{var _loop5=function _loop5(){var _Object$entries7$_i=_slicedToArray(_Object$entries7[_i13],2),key=_Object$entries7$_i[0],value=_Object$entries7$_i[1];if(options.properties&&!options.properties.includes(key))return 0;// break
252
- var doBreak=false;var _iterator14=_createForOfIteratorHelper(options.exceptionPrefixes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var exceptionPrefix=_step14.value;if(key.startsWith(exceptionPrefix)){doBreak=true;break}}}catch(err){_iterator14.e(err)}finally{_iterator14.f()}if(doBreak)return 0;// break
253
- if(options.deep!==0){var result=_equals(value,second[key],_objectSpread(_objectSpread({},options),{},{deep:options.deep-1}));if(!result)return{v:false};var determineResult=function determineResult(result){var _$$result$3;return typeof result==="string"?key+((_$$result$3={"[":"",">":" "}[result[0]])!==null&&_$$result$3!==void 0?_$$result$3:".")+result:result};if(Object.prototype.hasOwnProperty.call(result,"then"))promises.push(result.then(determineResult));if(typeof result==="string")return{v:determineResult(result)}}},_ret5;for(var _i13=0,_Object$entries7=Object.entries(first);_i13<_Object$entries7.length;_i13++){_ret5=_loop5();if(_ret5===0)break;if(_ret5)return _ret5.v}}}if(promises.length)return new Promise(function(resolve){Promise.all(promises).then(function(results){var _iterator15=_createForOfIteratorHelper(results),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var result=_step15.value;if(!result||typeof result==="string"){resolve(result);break}}}catch(err){_iterator15.e(err)}finally{_iterator15.f()}resolve(true)},function(){// Do nothing.
254
- })});return true}return options.returnReasonIfNotEqual?">>> ".concat(_represent(firstValue)," !== ").concat(_represent(secondValue)):false};/**
255
- * Wraps given data structure into proxies recursively to evaluate and resolve
256
- * each get request to data having an object with indicating keys and replaces
257
- * that object with corresponding evaluated values. All nested objects are
258
- * wrapped with a proxy to resolve chains of referencing expressions as well.
259
- * @param object - Given mapping to resolve.
260
- * @param givenOptions - Options to configure evaluation.
261
- * @param givenOptions.scope - Scope to use evaluate again.
262
- * @param givenOptions.selfReferenceName - Name to use for reference to given
263
- * object.
264
- * @param givenOptions.expressionIndicatorKey - Indicator property name to mark
265
- * a value to evaluate.
266
- * @param givenOptions.executionIndicatorKey - Indicator property name to mark
267
- * a value to evaluate.
268
- * @returns Evaluated given mapping.
269
- */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__WEBPACK_IMPORTED_MODULE_5__.evaluateAndThrowError)(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__WEBPACK_IMPORTED_MODULE_3__.isObject)(givenValue)){var value=givenValue;_addProxyRecursively(value);// NOTE: We only wrap needed objects for performance reasons.
270
- 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")return target[key];/*
271
- NOTE: Very complicated section, do only
272
- changes while having good tests.
273
- */for(var _i15=0,_arr6=[options.expressionIndicatorKey,options.executionIndicatorKey];_i15<_arr6.length;_i15++){var type=_arr6[_i15];if(key===type&&typeof target[key]==="string")return _resolve(internalEvaluateAndThrowError(target[key],type))}var resolvedTarget=_resolve(target);if(key==="toString"){var result=internalEvaluateAndThrowError(resolvedTarget);return result[key].bind(result)}if(typeof key!=="string"){var _result$key;var _result=internalEvaluateAndThrowError(resolvedTarget);if((_result$key=_result[key])!==null&&_result$key!==void 0&&_result$key.bind)return _result[key].bind(_result);return _result[key]}for(var _i16=0,_arr7=[options.expressionIndicatorKey,options.executionIndicatorKey];_i16<_arr7.length;_i16++){var _type=_arr7[_i16];if(Object.prototype.hasOwnProperty.call(target,_type))return internalEvaluateAndThrowError(resolvedTarget,_type)[key]}return resolvedTarget[key];// End of complicated stuff.
274
- },ownKeys:function ownKeys(target){for(var _i17=0,_arr8=[options.expressionIndicatorKey,options.executionIndicatorKey];_i17<_arr8.length;_i17++){var type=_arr8[_i17];if(Object.prototype.hasOwnProperty.call(target,type))return Object.getOwnPropertyNames(_resolve(internalEvaluateAndThrowError(target[type],type)))}return Object.getOwnPropertyNames(target)}});/*
275
- NOTE: Known proxy polyfills does not provide the
276
- "__target__" api.
277
- */if(!data[key].__target__)data[key].__target__=backup}}}return data};var _resolve=function resolve(data){if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(data)){if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isProxy)(data)){// NOTE: We have to skip "ownKeys" proxy trap here.
278
- for(var _i18=0,_arr9=[options.expressionIndicatorKey,options.executionIndicatorKey];_i18<_arr9.length;_i18++){var type=_arr9[_i18];if(Object.prototype.hasOwnProperty.call(data,type))return data[type]}data=data.__target__}for(var _i19=0,_Object$entries9=Object.entries(data);_i19<_Object$entries9.length;_i19++){var _Object$entries9$_i=_slicedToArray(_Object$entries9[_i19],2),key=_Object$entries9$_i[0],value=_Object$entries9$_i[1];if([options.expressionIndicatorKey,options.executionIndicatorKey].includes(key)){if(typeof Proxy==="undefined")return _resolve(internalEvaluateAndThrowError(value));return value}data[key]=_resolve(value)}}return data};options.scope.resolve=_resolve;var _removeProxyRecursively=function removeProxyRecursively(data){if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(data))for(var _i20=0,_Object$entries0=Object.entries(data);_i20<_Object$entries0.length;_i20++){var _Object$entries0$_i=_slicedToArray(_Object$entries0[_i20],2),key=_Object$entries0$_i[0],value=_Object$entries0$_i[1];if(key!=="__target__"&&value!==null&&["function","undefined"].includes(_typeof(value))){var target=value.__target__;if(typeof target!=="undefined")data[key]=target;_removeProxyRecursively(value)}}return data};if(Object.prototype.hasOwnProperty.call(object,options.expressionIndicatorKey))return internalEvaluateAndThrowError(object[options.expressionIndicatorKey]);else if(Object.prototype.hasOwnProperty.call(object,options.executionIndicatorKey))return internalEvaluateAndThrowError(object[options.executionIndicatorKey],options.executionIndicatorKey);return _removeProxyRecursively(_resolve(_addProxyRecursively(object)))};/**
279
- * Searches for indicating keys and replaces that data with corresponding
280
- * evaluated and promise resolved value.
281
- * @param data - Given mapping to resolve.
282
- * @param givenOptions - Options to configure evaluation.
283
- * @param givenOptions.scope - Scope to use evaluate again.
284
- * @param givenOptions.selfReferenceName - Name to use for reference to given
285
- * object.
286
- * @param givenOptions.expressionIndicatorKey - Indicator property name to mark
287
- * a value to evaluate.
288
- * @param givenOptions.executionIndicatorKey - Indicator property name to mark
289
- * a value to evaluate.
290
- * @returns Evaluated given mapping.
291
- */var _evaluateAsyncDynamicData=/*#__PURE__*/function(){var _evaluateAsyncDynamicData2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(data,givenOptions){var options,result,_i21,_Object$entries1,_Object$entries1$_i,key,value;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:if(givenOptions===void 0){givenOptions={}}options=_objectSpread({scope:{},selfReferenceName:"self",expressionIndicatorKey:"__await_evaluate__",executionIndicatorKey:"__await_execute__"},givenOptions);if(!(_typeof(data)!=="object"||data===null)){_context.n=1;break}return _context.a(2,data);case 1:if(!(options.selfReferenceName in options.scope))options.scope[options.selfReferenceName]=data;result=data;_i21=0,_Object$entries1=Object.entries(data);case 2:if(!(_i21<_Object$entries1.length)){_context.n=6;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=4;break}_context.n=3;return (0,_string__WEBPACK_IMPORTED_MODULE_5__.evaluateAndThrowError)(value,options.scope,key===options.executionIndicatorKey);case 3:result[key]=_context.v;_context.n=5;break;case 4:if(!(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(value)){_context.n=5;break}_context.n=5;return _evaluateAsyncDynamicData(value,options);case 5:_i21++;_context.n=2;break;case 6:return _context.a(2,result)}},_callee)}));function evaluateAsyncDynamicData(_x,_x2){return _evaluateAsyncDynamicData2.apply(this,arguments)}return evaluateAsyncDynamicData}();/**
292
- * Removes properties in objects where a dynamic indicator lives.
293
- * @param data - Object to traverse recursively.
294
- * @param expressionIndicators - Property key to remove.
295
- * @returns Given object with removed properties.
296
- */var _removeKeysInEvaluation=function removeKeysInEvaluation(data,expressionIndicators){if(expressionIndicators===void 0){expressionIndicators=["__evaluate__","__execute__"]}for(var _i22=0,_Object$entries10=Object.entries(data);_i22<_Object$entries10.length;_i22++){var _Object$entries10$_i=_slicedToArray(_Object$entries10[_i22],2),key=_Object$entries10$_i[0],value=_Object$entries10$_i[1];if(!expressionIndicators.includes(key)&&expressionIndicators.some(function(name){return Object.prototype.hasOwnProperty.call(data,name)}))delete data[key];else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(value))_removeKeysInEvaluation(value,expressionIndicators)}return data};/**
297
- * Extends given target object with given sources object. As target and
298
- * sources many expandable types are allowed but target and sources have to
299
- * come from the same type.
300
- * @param targetOrDeepIndicator - Maybe the target or deep indicator.
301
- * @param targetOrSource - Target or source object; depending on first
302
- * argument.
303
- * @param additionalSources - Source objects to extend into target.
304
- * @returns Returns given target extended with all given sources.
305
- */var _extend=function extend(targetOrDeepIndicator,targetOrSource){var deep=false;for(var _len=arguments.length,additionalSources=new Array(_len>2?_len-2:0),_key5=2;_key5<_len;_key5++){additionalSources[_key5-2]=arguments[_key5]}var sources=additionalSources;var target;if(targetOrDeepIndicator===_constants__WEBPACK_IMPORTED_MODULE_2__.IGNORE_NULL_AND_UNDEFINED_SYMBOL||typeof targetOrDeepIndicator==="boolean"){// Handle a deep copy situation and skip deep indicator and target.
306
- deep=targetOrDeepIndicator;target=targetOrSource}else{target=targetOrDeepIndicator;if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(targetOrSource))sources=[targetOrSource].concat(_toConsumableArray(sources));else if(targetOrSource!==undefined)target=targetOrSource}var mergeValue=function mergeValue(targetValue,value){if(value===targetValue)return targetValue;// Traverse recursively if we're merging plain objects or maps.
307
- if(deep&&value&&((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(value)||(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(value))){var clone;if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(value))clone=targetValue&&(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(targetValue)?targetValue:new Map;else clone=targetValue&&(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(targetValue)?targetValue:{};return _extend(deep,clone,value)}return value};var _iterator16=_createForOfIteratorHelper(sources),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var source=_step16.value;var targetType=_typeof(target);var sourceType=_typeof(source);if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(target))targetType+=" Map";if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(source))sourceType+=" Map";if(targetType===sourceType&&target!==source){if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(target)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(source)){var _iterator17=_createForOfIteratorHelper(source),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _step17$value=_slicedToArray(_step17.value,2),key=_step17$value[0],value=_step17$value[1];target.set(key,mergeValue(target.get(key),value))}}catch(err){_iterator17.e(err)}finally{_iterator17.f()}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(target)&&!Array.isArray(target)&&!(typeof Blob!=="undefined"&&target instanceof Blob)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(source)&&!Array.isArray(source)&&!(typeof Blob!=="undefined"&&source instanceof Blob)){for(var _i23=0,_Object$entries11=Object.entries(source);_i23<_Object$entries11.length;_i23++){var _Object$entries11$_i=_slicedToArray(_Object$entries11[_i23],2),_key6=_Object$entries11$_i[0],_value13=_Object$entries11$_i[1];if(!(deep===_constants__WEBPACK_IMPORTED_MODULE_2__.IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,undefined].includes(_value13)))target[_key6]=mergeValue(target[_key6],_value13)}}else target=source;}else target=source}}catch(err){_iterator16.e(err)}finally{_iterator16.f()}return target};/**
308
- * Generates a proxy handler which forwards all operations to given object
309
- * as there wouldn't be a proxy.
310
- * @param target - Object to proxy.
311
- * @param methodNames - Mapping of operand name to object specific method
312
- * name.
313
- * @returns Determined proxy handler.
314
- */var getProxyHandler=function getProxyHandler(target,methodNames){if(methodNames===void 0){methodNames={}}methodNames=_objectSpread({delete:"[]",get:"[]",has:"[]",set:"[]"},methodNames);return{deleteProperty:function deleteProperty(_targetObject,key){if(methodNames.delete==="[]"&&typeof key==="string")delete target[key];else return target[methodNames.delete](key);return true},get:function get(_targetObject,key){if(methodNames.get==="[]"&&typeof key==="string")return target[key];return target[methodNames.get](key)},has:function has(_targetObject,key){if(methodNames.has==="[]")return key in target;return target[methodNames.has](key)},set:function set(_targetObject,key,value){if(methodNames.set==="[]"&&typeof key==="string")target[key]=value;else return target[methodNames.set](key,value);return true}}};/**
315
- * Slices all properties from given object which does not match provided
316
- * object mask. Items can be explicitly whitelisted via "include" mask
317
- * configuration or black listed via "exclude" mask configuration.
318
- * @param object - Object to slice.
319
- * @param maskConfiguration - Mask configuration.
320
- * @returns Given but sliced object. If (nested) object will be modified a
321
- * flat copy of that object will be returned.
322
- */var _mask=function mask(object,maskConfiguration){maskConfiguration=_objectSpread({exclude:false,include:true},maskConfiguration);if(maskConfiguration.exclude===true||Array.isArray(maskConfiguration.exclude)&&maskConfiguration.exclude.length===0||maskConfiguration.include===false||_typeof(object)!=="object")return{};var exclude=Array.isArray(maskConfiguration.exclude)?maskConfiguration.exclude.reduce(function(mask,key){return _objectSpread(_objectSpread({},mask),{},_defineProperty({},key,true))},{}):maskConfiguration.exclude;var include=Array.isArray(maskConfiguration.include)?maskConfiguration.include.reduce(function(mask,key){return _objectSpread(_objectSpread({},mask),{},_defineProperty({},key,true))},{}):maskConfiguration.include;var result={};if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(include)){for(var _i24=0,_Object$entries12=Object.entries(include);_i24<_Object$entries12.length;_i24++){var _Object$entries12$_i=_slicedToArray(_Object$entries12[_i24],2),key=_Object$entries12$_i[0],value=_Object$entries12$_i[1];if(Object.prototype.hasOwnProperty.call(object,key))if(value===true)result[key]=object[key];else if(((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(value)||Array.isArray(value)&&value.length)&&_typeof(object[key])==="object")result[key]=_mask(object[key],{include:value})}}else// In this branch "mask.include === true" holds.
323
- result=object;if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(exclude)){var useCopy=false;var copy=_objectSpread({},result);for(var _i25=0,_Object$entries13=Object.entries(exclude);_i25<_Object$entries13.length;_i25++){var _Object$entries13$_i=_slicedToArray(_Object$entries13[_i25],2),_key7=_Object$entries13$_i[0],_value14=_Object$entries13$_i[1];if(Object.prototype.hasOwnProperty.call(copy,_key7))if(_value14===true){useCopy=true;delete copy[_key7]}else if(((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(_value14)||Array.isArray(_value14)&&_value14.length)&&_typeof(copy[_key7])==="object"){var current=copy[_key7];copy[_key7]=_mask(copy[_key7],{exclude:_value14});if(copy[_key7]!==current)useCopy=true}}if(useCopy)result=copy}return result};/**
324
- * Modifies given target corresponding to given source and removes source
325
- * modification infos.
326
- * @param target - Object to modify.
327
- * @param source - Source object to load modifications from.
328
- * @param removeIndicatorKey - Indicator property name or value to mark a
329
- * value to remove from object or list.
330
- * @param prependIndicatorKey - Indicator property name to mark a value to
331
- * prepend to target list.
332
- * @param appendIndicatorKey - Indicator property name to mark a value to
333
- * append to target list.
334
- * @param positionPrefix - Indicates a prefix to use a value on given
335
- * position to add or remove.
336
- * @param positionSuffix - Indicates a suffix to use a value on given
337
- * position to add or remove.
338
- * @param parentSource - Source context to remove modification info from
339
- * (usually only needed internally).
340
- * @param parentKey - Source key in given source context to remove
341
- * modification info from (usually only needed internally).
342
- * @returns Given target modified with given source.
343
- */var _modifyObject=function modifyObject(target,source,removeIndicatorKey,prependIndicatorKey,appendIndicatorKey,positionPrefix,positionSuffix,parentSource,parentKey){if(removeIndicatorKey===void 0){removeIndicatorKey="__remove__"}if(prependIndicatorKey===void 0){prependIndicatorKey="__prepend__"}if(appendIndicatorKey===void 0){appendIndicatorKey="__append__"}if(positionPrefix===void 0){positionPrefix="__"}if(positionSuffix===void 0){positionSuffix="__"}if(parentSource===void 0){parentSource=null}if(parentKey===void 0){parentKey=null}if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(source)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(target)){var _iterator18=_createForOfIteratorHelper(source),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _step18$value=_slicedToArray(_step18.value,2),key=_step18$value[0],value=_step18$value[1];if(target.has(key))_modifyObject(target.get(key),value,removeIndicatorKey,prependIndicatorKey,appendIndicatorKey,positionPrefix,positionSuffix,source,key)}}catch(err){_iterator18.e(err)}finally{_iterator18.f()}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(source)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(target))for(var _i26=0,_Object$entries14=Object.entries(source);_i26<_Object$entries14.length;_i26++){var _Object$entries14$_i=_slicedToArray(_Object$entries14[_i26],2),_key8=_Object$entries14$_i[0],sourceValue=_Object$entries14$_i[1];var index=NaN;if(Array.isArray(target)&&_key8.startsWith(positionPrefix)&&_key8.endsWith(positionSuffix)){index=parseInt(_key8.substring(positionPrefix.length,_key8.length-positionSuffix.length),10);if(index<0||index>=target.length)index=NaN}if([removeIndicatorKey,prependIndicatorKey,appendIndicatorKey].includes(_key8)||!isNaN(index)){if(Array.isArray(target)){if(_key8===removeIndicatorKey){var values=[].concat(sourceValue);var _iterator19=_createForOfIteratorHelper(values),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _value15=_step19.value;if(typeof _value15==="string"&&_value15.startsWith(positionPrefix)&&_value15.endsWith(positionSuffix))target.splice(parseInt(_value15.substring(positionPrefix.length,_value15.length-positionSuffix.length),10),1);else if(target.includes(_value15))target.splice(target.indexOf(_value15),1);else if(typeof _value15==="number"&&_value15<target.length)target.splice(_value15,1)}}catch(err){_iterator19.e(err)}finally{_iterator19.f()}}else if(_key8===appendIndicatorKey)target=target.concat(sourceValue);else if(_key8===prependIndicatorKey)target=[].concat(sourceValue).concat(target);else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(target[index])&&(0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(sourceValue))_extend(true,_modifyObject(target[index],sourceValue,removeIndicatorKey,prependIndicatorKey,appendIndicatorKey,positionPrefix,positionSuffix),target[index],sourceValue);else target[index]=sourceValue;}else if(_key8===removeIndicatorKey){var _iterator20=_createForOfIteratorHelper([].concat(sourceValue)),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _value16=_step20.value;if(typeof _value16==="string"&&Object.prototype.hasOwnProperty.call(target,_value16))delete target[_value16]}}catch(err){_iterator20.e(err)}finally{_iterator20.f()}}delete source[_key8];if(parentSource&&typeof parentKey==="string")delete parentSource[parentKey]}else if(target!==null&&Object.prototype.hasOwnProperty.call(target,_key8))target[_key8]=_modifyObject(target[_key8],sourceValue,removeIndicatorKey,prependIndicatorKey,appendIndicatorKey,positionPrefix,positionSuffix,source,_key8)}return target};/**
344
- * Removes given key from given object recursively.
345
- * @param object - Object to process.
346
- * @param keys - List of keys to remove.
347
- * @returns Processed given object.
348
- */var _removeKeyPrefixes=function removeKeyPrefixes(object,keys){if(keys===void 0){keys="#"}var resolvedKeys=[].concat(keys);if(Array.isArray(object)){var index=0;var _iterator21=_createForOfIteratorHelper(object.slice()),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var subObject=_step21.value;var skip=false;if(typeof subObject==="string"){var _iterator22=_createForOfIteratorHelper(resolvedKeys),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var key=_step22.value;if(subObject.startsWith("".concat(key,":"))){object.splice(index,1);skip=true;break}}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}if(skip)continue}object[index]=_removeKeyPrefixes(subObject,resolvedKeys);index+=1}}catch(err){_iterator21.e(err)}finally{_iterator21.f()}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isSet)(object)){var _iterator23=_createForOfIteratorHelper(new Set(object)),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _subObject=_step23.value;var _skip=false;if(typeof _subObject==="string"){var _iterator24=_createForOfIteratorHelper(resolvedKeys),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _key9=_step24.value;if(_subObject.startsWith("".concat(_key9,":"))){object.delete(_subObject);_skip=true;break}}}catch(err){_iterator24.e(err)}finally{_iterator24.f()}if(_skip)continue}_removeKeyPrefixes(_subObject,resolvedKeys)}}catch(err){_iterator23.e(err)}finally{_iterator23.f()}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(object)){var _iterator25=_createForOfIteratorHelper(new Map(object)),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _step25$value=_slicedToArray(_step25.value,2),_key0=_step25$value[0],_subObject2=_step25$value[1];var _skip2=false;if(typeof _key0==="string"){var _iterator26=_createForOfIteratorHelper(resolvedKeys),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var resolvedKey=_step26.value;var escapedKey=(0,_string__WEBPACK_IMPORTED_MODULE_5__.escapeRegularExpressions)(resolvedKey);if(new RegExp("^".concat(escapedKey,"[0-9]*$")).test(_key0)){object.delete(_key0);_skip2=true;break}}}catch(err){_iterator26.e(err)}finally{_iterator26.f()}if(_skip2)continue}object.set(_key0,_removeKeyPrefixes(_subObject2,resolvedKeys))}}catch(err){_iterator25.e(err)}finally{_iterator25.f()}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(object))for(var _i27=0,_Object$entries15=Object.entries(Object.assign({},object));_i27<_Object$entries15.length;_i27++){var _Object$entries15$_i=_slicedToArray(_Object$entries15[_i27],2),_key1=_Object$entries15$_i[0],value=_Object$entries15$_i[1];var _skip3=false;var _iterator27=_createForOfIteratorHelper(resolvedKeys),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _resolvedKey=_step27.value;var _escapedKey=(0,_string__WEBPACK_IMPORTED_MODULE_5__.escapeRegularExpressions)(_resolvedKey);if(new RegExp("^".concat(_escapedKey,"[0-9]*$")).test(_key1)){delete object[_key1];_skip3=true;break}}}catch(err){_iterator27.e(err)}finally{_iterator27.f()}if(_skip3)continue;object[_key1]=_removeKeyPrefixes(value,resolvedKeys)}return object};/**
349
- * Represents given object as formatted string.
350
- * @param object - Object to represent.
351
- * @param maximumLengthOfLists - Maximum number of array item to render.
352
- * @param indention - String (usually whitespaces) to use as indention.
353
- * @param initialIndention - String (usually whitespaces) to use as
354
- * additional indention for the first object traversing level.
355
- * @param maximumNumberOfLevelsReachedIdentifier - Replacement for objects
356
- * which are out of specified bounds to traverse.
357
- * @param numberOfLevels - Specifies number of levels to traverse given
358
- * data structure.
359
- * @returns Representation string.
360
- */var _represent=function represent(object,maximumLengthOfLists,indention,initialIndention,maximumNumberOfLevelsReachedIdentifier,numberOfLevels){if(maximumLengthOfLists===void 0){maximumLengthOfLists=30}if(indention===void 0){indention=" "}if(initialIndention===void 0){initialIndention=""}if(maximumNumberOfLevelsReachedIdentifier===void 0){maximumNumberOfLevelsReachedIdentifier="__maximum_number_of_levels_reached__"}if(numberOfLevels===void 0){numberOfLevels=8}if(numberOfLevels===0)return String(maximumNumberOfLevelsReachedIdentifier);if(object===null)return"null";if(object===undefined)return"undefined";if(typeof object==="string")return"\"".concat(object.replace(/\n/g,"\n".concat(initialIndention)),"\"");if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isNumeric)(object)||typeof object==="boolean")return String(object);if(object instanceof Date)return object.toISOString();if(Array.isArray(object)){var _result2="[";var _firstSeen=false;var _counter=1;var _iterator28=_createForOfIteratorHelper(object),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var item=_step28.value;if(_counter>maximumLengthOfLists){_result2+="\n".concat(initialIndention,"...");break}if(_firstSeen)_result2+=",";_result2+="\n".concat(initialIndention).concat(indention)+_represent(item,maximumLengthOfLists,indention,"".concat(initialIndention).concat(indention),maximumNumberOfLevelsReachedIdentifier,numberOfLevels-1);_firstSeen=true;_counter+=1}}catch(err){_iterator28.e(err)}finally{_iterator28.f()}if(_firstSeen)_result2+="\n".concat(initialIndention);_result2+="]";return _result2}if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(object)){var _result3="";var _firstSeen2=false;var _counter2=1;var _iterator29=_createForOfIteratorHelper(object),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _step29$value=_slicedToArray(_step29.value,2),key=_step29$value[0],_item=_step29$value[1];if(_counter2>maximumLengthOfLists){_result3+=",\n".concat(initialIndention,"...");break}if(_firstSeen2)_result3+=",\n".concat(initialIndention).concat(indention);_result3+=_represent(key,maximumLengthOfLists,indention,"".concat(initialIndention).concat(indention),maximumNumberOfLevelsReachedIdentifier,numberOfLevels-1)+" -> "+_represent(_item,maximumLengthOfLists,indention,"".concat(initialIndention).concat(indention),maximumNumberOfLevelsReachedIdentifier,numberOfLevels-1);_firstSeen2=true;_counter2+=1}}catch(err){_iterator29.e(err)}finally{_iterator29.f()}if(!_firstSeen2)_result3="EmptyMap";return _result3}if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isSet)(object)){var _result4="{";var _firstSeen3=false;var _counter3=1;var _iterator30=_createForOfIteratorHelper(object),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _item2=_step30.value;if(_counter3>maximumLengthOfLists){_result4+=",\n".concat(initialIndention,"...");break}if(_firstSeen3)_result4+=",";_result4+="\n".concat(initialIndention).concat(indention)+_represent(_item2,maximumLengthOfLists,indention,"".concat(initialIndention).concat(indention),maximumNumberOfLevelsReachedIdentifier,numberOfLevels-1);_firstSeen3=true;_counter3+=1}}catch(err){_iterator30.e(err)}finally{_iterator30.f()}if(_firstSeen3)_result4+="\n".concat(initialIndention,"}");else _result4="EmptySet";return _result4}if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isFunction)(object))return"__function__";var result="{";var keys=Object.getOwnPropertyNames(object).sort();var firstSeen=false;var counter=1;var _iterator31=_createForOfIteratorHelper(keys),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _key10=_step31.value;if(counter>maximumLengthOfLists){result+=",\n".concat(initialIndention,"...");break}if(firstSeen)result+=",";result+="\n".concat(initialIndention).concat(indention).concat(_key10,": ")+_represent(object[_key10],maximumLengthOfLists,indention,"".concat(initialIndention).concat(indention),maximumNumberOfLevelsReachedIdentifier,numberOfLevels-1);firstSeen=true;counter+=1}}catch(err){_iterator31.e(err)}finally{_iterator31.f()}if(firstSeen)result+="\n".concat(initialIndention);result+="}";return result};/**
361
- * Sort given objects keys.
362
- * @param object - Object which keys should be sorted.
363
- * @returns Sorted list of given keys.
364
- */var sort=function sort(object){var keys=[];if(Array.isArray(object))for(var index=0;index<object.length;index++)keys.push(index);else if(_typeof(object)==="object")if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(object)){var _iterator32=_createForOfIteratorHelper(object),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var keyValuePair=_step32.value;keys.push(keyValuePair[0])}}catch(err){_iterator32.e(err)}finally{_iterator32.f()}}else if(object!==null)for(var _i28=0,_Object$keys=Object.keys(object);_i28<_Object$keys.length;_i28++){var key=_Object$keys[_i28];keys.push(key)}return keys.sort()};/**
365
- * Removes a proxy from given data structure recursively.
366
- * @param object - Object to proxy.
367
- * @param seenObjects - Tracks all already processed objects to avoid
368
- * endless loops (usually only needed for internal purpose).
369
- * @returns Returns given object unwrapped from a dynamic proxy.
370
- */var _unwrapProxy=function unwrapProxy(object,seenObjects){if(seenObjects===void 0){seenObjects=new Set}if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isObject)(object)){if(seenObjects.has(object))return object;try{if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isFunction)(object.__revoke__)){if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isProxy)(object))object=object.__target__;object.__revoke__()}}catch(_unused){return object}finally{seenObjects.add(object)}if(Array.isArray(object)){var index=0;var _iterator33=_createForOfIteratorHelper(object),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var value=_step33.value;object[index]=_unwrapProxy(value,seenObjects);index+=1}}catch(err){_iterator33.e(err)}finally{_iterator33.f()}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isMap)(object)){var _iterator34=_createForOfIteratorHelper(object),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _step34$value=_slicedToArray(_step34.value,2),key=_step34$value[0],_value17=_step34$value[1];object.set(key,_unwrapProxy(_value17,seenObjects))}}catch(err){_iterator34.e(err)}finally{_iterator34.f()}}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_3__.isSet)(object)){var cache=[];var _iterator35=_createForOfIteratorHelper(object),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _value19=_step35.value;object.delete(_value19);cache.push(_unwrapProxy(_value19,seenObjects))}}catch(err){_iterator35.e(err)}finally{_iterator35.f()}for(var _i29=0,_cache4=cache;_i29<_cache4.length;_i29++){var _value18=_cache4[_i29];object.add(_value18)}}else for(var _i30=0,_Object$entries16=Object.entries(object);_i30<_Object$entries16.length;_i30++){var _Object$entries16$_i=_slicedToArray(_Object$entries16[_i30],2),_key11=_Object$entries16$_i[0],_value20=_Object$entries16$_i[1];object[_key11]=_unwrapProxy(_value20,seenObjects)}}return object};
371
-
372
- /***/ }),
373
- /* 4 */
374
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
375
-
376
- "use strict";
377
- __webpack_require__.r(__webpack_exports__);
378
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
379
- /* harmony export */ isAnyMatching: function() { return /* binding */ isAnyMatching; },
380
- /* harmony export */ isArrayLike: function() { return /* binding */ isArrayLike; },
381
- /* harmony export */ isFunction: function() { return /* binding */ isFunction; },
382
- /* harmony export */ isMap: function() { return /* binding */ isMap; },
383
- /* harmony export */ isNumeric: function() { return /* binding */ isNumeric; },
384
- /* harmony export */ isObject: function() { return /* binding */ isObject; },
385
- /* harmony export */ isPlainObject: function() { return /* binding */ isPlainObject; },
386
- /* harmony export */ isProxy: function() { return /* binding */ isProxy; },
387
- /* harmony export */ isSet: function() { return /* binding */ isSet; },
388
- /* harmony export */ isWindow: function() { return /* binding */ isWindow; }
389
- /* harmony export */ });
390
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
391
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
392
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
393
- /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
394
- // #!/usr/bin/env babel-node
395
- // -*- coding: utf-8 -*-
396
- /** @module indicators *//* !
397
- region header
398
- [Project page](https://torben.website/clientnode)
399
-
400
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
401
-
402
- License
403
- -------
404
-
405
- This library written by Torben Sickert stands under a creative commons
406
- naming 3.0 unported license.
407
- See https://creativecommons.org/licenses/by/3.0/deed.de
408
- endregion
409
- */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 _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)}/**
410
- * Determines whether its argument represents a JavaScript number.
411
- * @param value - Value to analyze.
412
- * @returns A boolean value indicating whether given object is numeric
413
- * like.
414
- */var isNumeric=function isNumeric(value){var type=(0,_object__WEBPACK_IMPORTED_MODULE_2__.determineType)(value);/*
415
- NOTE: "parseFloat" "NaNs" numeric-cast false positives ("") but
416
- misinterprets leading-number strings, particularly hex literals
417
- ("0x...") subtraction forces infinities to NaN.
418
- */return["number","string"].includes(type)&&!isNaN(value-parseFloat(value))};/**
419
- * Determine whether the argument is a window.
420
- * @param value - Value to check for.
421
- * @returns Boolean value indicating the result.
422
- */var isWindow=function isWindow(value){return![null,undefined].includes(value)&&_typeof(value)==="object"&&value===(value===null||value===void 0?void 0:value.window)};/**
423
- * Checks if given object is similar to an array and can be handled like an
424
- * array.
425
- * @param object - Object to check behavior for.
426
- * @returns A boolean value indicating whether given object is array like.
427
- */var isArrayLike=function isArrayLike(object){var length;try{length=Boolean(object)&&object.length}catch(_unused){return false}var type=(0,_object__WEBPACK_IMPORTED_MODULE_2__.determineType)(object);if(type==="function"||isWindow(object))return false;if(type==="array"||length===0)return true;if(typeof length==="number"&&length>0)try{var _dump=object[length-1];return true}catch(_unused2){// Continue regardless of an error.
428
- }return false};/**
429
- * Checks whether one of the given pattern matches given string.
430
- * @param target - Target to check in pattern for.
431
- * @param pattern - List of pattern to check for.
432
- * @returns Value "true" if given object is matches by at leas one of the
433
- * given pattern and "false" otherwise.
434
- */var isAnyMatching=function isAnyMatching(target,pattern){var _iterator=_createForOfIteratorHelper(pattern),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var currentPattern=_step.value;if(typeof currentPattern==="string"){if(currentPattern===target)return true}else if(currentPattern.test(target))return true}}catch(err){_iterator.e(err)}finally{_iterator.f()}return false};/**
435
- * Checks whether given object is a native object but not null.
436
- * @param value - Value to check.
437
- * @returns Value "true" if given object is a plain javaScript object and
438
- * "false" otherwise.
439
- */var isObject=function isObject(value){return value!==null&&_typeof(value)==="object"};/**
440
- * Checks whether given object is a plain native object.
441
- * @param value - Value to check.
442
- * @returns Value "true" if given object is a plain javaScript object and
443
- * "false" otherwise.
444
- */var isPlainObject=function isPlainObject(value){return isObject(value)&&_constants__WEBPACK_IMPORTED_MODULE_1__.PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(value))};/**
445
- * Checks whether given object is a set.
446
- * @param value - Value to check.
447
- * @returns Value "true" if given object is a set and "false" otherwise.
448
- */var isSet=function isSet(value){return (0,_object__WEBPACK_IMPORTED_MODULE_2__.determineType)(value)==="set"};/**
449
- * Checks whether given object is a map.
450
- * @param value - Value to check.
451
- * @returns Value "true" if given object is a map and "false" otherwise.
452
- */var isMap=function isMap(value){return (0,_object__WEBPACK_IMPORTED_MODULE_2__.determineType)(value)==="map"};/**
453
- * Checks whether given object is a proxy.
454
- * @param value - Value to check.
455
- * @returns Value "true" if given object is a proxy and "false" otherwise.
456
- */var isProxy=function isProxy(value){return Boolean(value.__target__)};/**
457
- * Checks whether given object is a function.
458
- * @param value - Value to check.
459
- * @returns Value "true" if given object is a function and "false"
460
- * otherwise.
461
- */var isFunction=function isFunction(value){return Boolean(value)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(value))};
462
-
463
- /***/ }),
464
- /* 5 */
465
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
466
-
467
- "use strict";
468
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
469
- /* harmony export */ MAXIMAL_NUMBER_OF_ITERATIONS: function() { return /* binding */ MAXIMAL_NUMBER_OF_ITERATIONS; },
470
- /* harmony export */ NOOP: function() { return /* binding */ NOOP; },
471
- /* harmony export */ globalContext: function() { return /* binding */ globalContext; },
472
- /* harmony export */ mockConsole: function() { return /* binding */ mockConsole; },
473
- /* harmony export */ setGlobalContext: function() { return /* binding */ setGlobalContext; }
474
- /* harmony export */ });
475
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
476
- /* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
477
- // #!/usr/bin/env babel-node
478
- // -*- coding: utf-8 -*-
479
- /** @module context *//* !
480
- region header
481
- [Project page](https://torben.website/clientnode)
482
-
483
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
484
-
485
- License
486
- -------
487
-
488
- This library written by Torben Sickert stands under a creative commons
489
- naming 3.0 unported license.
490
- See https://creativecommons.org/licenses/by/3.0/deed.de
491
- endregion
492
- */var _optionalRequire$defa,_optionalRequire;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}var globalContext=(0,_module__WEBPACK_IMPORTED_MODULE_0__.determineGlobalContext)();var setGlobalContext=function setGlobalContext(context){globalContext=context};globalContext.fetch=globalContext.fetch?globalContext.fetch.bind(globalContext):(_optionalRequire$defa=(_optionalRequire=(0,_module__WEBPACK_IMPORTED_MODULE_0__.optionalRequire)("node-fetch"))===null||_optionalRequire===void 0?void 0:_optionalRequire.default)!==null&&_optionalRequire$defa!==void 0?_optionalRequire$defa:function(){for(var _len=arguments.length,parameters=new Array(_len),_key=0;_key<_len;_key++){parameters[_key]=arguments[_key]}return (0,_module__WEBPACK_IMPORTED_MODULE_0__.optionalImport)(/* webpackIgnore: true */"node-fetch").then(function(module){var _ref;return(_ref=module).default.apply(_ref,parameters)})};var MAXIMAL_NUMBER_OF_ITERATIONS={value:100};// A no-op dummy function.
493
- var NOOP=function NOOP(){// Do nothing.
494
- };var mockConsole=function mockConsole(){// Avoid errors in browsers that lack a console.
495
- if(!Object.prototype.hasOwnProperty.call(globalContext,"console"))globalContext.console={};if(!globalContext.console)globalContext.console={};var _iterator=_createForOfIteratorHelper(_constants__WEBPACK_IMPORTED_MODULE_1__.CONSOLE_METHODS),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var methodName=_step.value;if(!(methodName in globalContext.console))globalContext.console[methodName]=NOOP}}catch(err){_iterator.e(err)}finally{_iterator.f()}};
496
-
497
- /***/ }),
498
- /* 6 */
499
- /***/ (function(module) {
500
-
501
- function webpackEmptyContext(req) {
502
- var e = new Error("Cannot find module '" + req + "'");
503
- e.code = 'MODULE_NOT_FOUND';
504
- throw e;
505
- }
506
- webpackEmptyContext.keys = function() { return []; };
507
- webpackEmptyContext.resolve = webpackEmptyContext;
508
- webpackEmptyContext.id = 6;
509
- module.exports = webpackEmptyContext;
510
-
511
- /***/ }),
512
- /* 7 */
513
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
514
-
515
- "use strict";
516
- __webpack_require__.r(__webpack_exports__);
517
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
518
- /* harmony export */ ALLOWED_STARTING_VARIABLE_SYMBOLS: function() { return /* binding */ ALLOWED_STARTING_VARIABLE_SYMBOLS; },
519
- /* harmony export */ ALLOWED_VARIABLE_SYMBOLS: function() { return /* binding */ ALLOWED_VARIABLE_SYMBOLS; },
520
- /* harmony export */ FIX_ENCODING_ERROR_MAPPING: function() { return /* binding */ FIX_ENCODING_ERROR_MAPPING; },
521
- /* harmony export */ POLYFILL_TEMPLATE_STRINGS: function() { return /* binding */ POLYFILL_TEMPLATE_STRINGS; },
522
- /* harmony export */ addSeparatorToPath: function() { return /* binding */ addSeparatorToPath; },
523
- /* harmony export */ camelCaseToDelimited: function() { return /* binding */ camelCaseToDelimited; },
524
- /* harmony export */ capitalize: function() { return /* binding */ capitalize; },
525
- /* harmony export */ compile: function() { return /* binding */ compile; },
526
- /* harmony export */ compressStyleValue: function() { return /* binding */ compressStyleValue; },
527
- /* harmony export */ convertToValidVariableName: function() { return /* binding */ convertToValidVariableName; },
528
- /* harmony export */ decodeHTMLEntities: function() { return /* binding */ decodeHTMLEntities; },
529
- /* harmony export */ delimitedToCamelCase: function() { return /* binding */ delimitedToCamelCase; },
530
- /* harmony export */ encodeURIComponentExtended: function() { return /* binding */ encodeURIComponentExtended; },
531
- /* harmony export */ escapeRegularExpressions: function() { return /* binding */ escapeRegularExpressions; },
532
- /* harmony export */ evaluate: function() { return /* binding */ evaluate; },
533
- /* harmony export */ evaluateAndThrowError: function() { return /* binding */ evaluateAndThrowError; },
534
- /* harmony export */ findNormalizedMatchRange: function() { return /* binding */ findNormalizedMatchRange; },
535
- /* harmony export */ fixKnownEncodingErrors: function() { return /* binding */ fixKnownEncodingErrors; },
536
- /* harmony export */ format: function() { return /* binding */ format; },
537
- /* harmony export */ getDomainName: function() { return /* binding */ getDomainName; },
538
- /* harmony export */ getEditDistance: function() { return /* binding */ getEditDistance; },
539
- /* harmony export */ getPortNumber: function() { return /* binding */ getPortNumber; },
540
- /* harmony export */ getProtocolName: function() { return /* binding */ getProtocolName; },
541
- /* harmony export */ getURLParameter: function() { return /* binding */ getURLParameter; },
542
- /* harmony export */ hasPathPrefix: function() { return /* binding */ hasPathPrefix; },
543
- /* harmony export */ limit: function() { return /* binding */ limit; },
544
- /* harmony export */ lowerCase: function() { return /* binding */ lowerCase; },
545
- /* harmony export */ mark: function() { return /* binding */ mark; },
546
- /* harmony export */ maskForRegularExpression: function() { return /* binding */ maskForRegularExpression; },
547
- /* harmony export */ normalizeDomNodeSelector: function() { return /* binding */ normalizeDomNodeSelector; },
548
- /* harmony export */ normalizePhoneNumber: function() { return /* binding */ normalizePhoneNumber; },
549
- /* harmony export */ normalizeURL: function() { return /* binding */ normalizeURL; },
550
- /* harmony export */ normalizeZipCode: function() { return /* binding */ normalizeZipCode; },
551
- /* harmony export */ parseEncodedObject: function() { return /* binding */ parseEncodedObject; },
552
- /* harmony export */ representPhoneNumber: function() { return /* binding */ representPhoneNumber; },
553
- /* harmony export */ representURL: function() { return /* binding */ representURL; },
554
- /* harmony export */ serviceURLEquals: function() { return /* binding */ serviceURLEquals; },
555
- /* harmony export */ sliceAllExceptNumberAndLastSeparator: function() { return /* binding */ sliceAllExceptNumberAndLastSeparator; }
556
- /* harmony export */ });
557
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
558
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
559
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
560
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
561
- /* harmony import */ var _filesystem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12);
562
- /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
563
- // #!/usr/bin/env babel-node
564
- // -*- coding: utf-8 -*-
565
- /** @module string *//* !
566
- region header
567
- [Project page](https://torben.website/clientnode)
568
-
569
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
570
-
571
- License
572
- -------
573
-
574
- This library written by Torben Sickert stands under a creative commons
575
- naming 3.0 unported license.
576
- See https://creativecommons.org/licenses/by/3.0/deed.de
577
- endregion
578
- */// region imports
579
- 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 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 _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 t.__proto__=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 _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}// endregion
580
- var POLYFILL_TEMPLATE_STRINGS={value:false};// Partial regular expression matching symbols which should be allowed within a
581
- // variable name excluding the first character.
582
- var ALLOWED_VARIABLE_SYMBOLS="0-9a-zA-Z_$";// Partial regular expression matching symbols which should be allowed as
583
- // starting character for a variable name.
584
- 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"]];/**
585
- * Translates a given string into the regular expression validated
586
- * representation.
587
- * @param value - String to convert.
588
- * @param excludeSymbols - Symbols not to escape.
589
- * @returns Converted string.
590
- */var escapeRegularExpressions=function escapeRegularExpressions(value,excludeSymbols){if(excludeSymbols===void 0){excludeSymbols=[]}// NOTE: This is only for performance improvements.
591
- if(value.length===1&&!_constants__WEBPACK_IMPORTED_MODULE_1__.SPECIAL_REGEX_SEQUENCES.includes(value))return value;// The escape sequence must also be escaped; but at first.
592
- if(!excludeSymbols.includes("\\"))value.replace(/\\/g,"\\\\");var _iterator=_createForOfIteratorHelper(_constants__WEBPACK_IMPORTED_MODULE_1__.SPECIAL_REGEX_SEQUENCES),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var replace=_step.value;if(!excludeSymbols.includes(replace))value=value.replace(new RegExp("\\".concat(replace),"g"),"\\".concat(replace))}}catch(err){_iterator.e(err)}finally{_iterator.f()}return value};/**
593
- * Translates a given name into a valid JavaScript one.
594
- * @param name - Name to convert.
595
- * @returns Converted name is returned.
596
- */var convertToValidVariableName=function convertToValidVariableName(name){if(["class","default"].includes(name))return"_".concat(name);return name// Remove all disallowed starting characters.
597
- .replace(new RegExp("^[^".concat(ALLOWED_STARTING_VARIABLE_SYMBOLS,"]+")),"")// Remove all disallowed characters within a variable name and make
598
- // continuing character upper case.
599
- .replace(new RegExp("[^".concat(ALLOWED_VARIABLE_SYMBOLS,"]+([a-zA-Z])"),"g"),function(_fullMatch,firstLetter){return firstLetter.toUpperCase()})};// region url handline
600
- /**
601
- * This method is intended for encoding *key* or *value* parts of a query
602
- * component. We need a custom method because "encodeURIComponent()" is too
603
- * aggressive and encodes stuff that doesn't have to be encoded per
604
- * "http://tools.ietf.org/html/rfc3986:".
605
- * @param url - URL to encode.
606
- * @param encodeSpaces - Indicates whether given url should encode
607
- * whitespaces as "+" or "%20".
608
- * @returns Encoded given url.
609
- */var encodeURIComponentExtended=function encodeURIComponentExtended(url,encodeSpaces){if(encodeSpaces===void 0){encodeSpaces=false}return encodeURIComponent(url).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,encodeSpaces?"%20":"+")};/**
610
- * Appends a path selector to the given path if there isn't one yet.
611
- * @param path - The path for appending a selector.
612
- * @param pathSeparator - The selector for appending to a path.
613
- * @returns The appended path.
614
- */var addSeparatorToPath=function addSeparatorToPath(path,pathSeparator){if(pathSeparator===void 0){pathSeparator="/"}path=path.trim();if(path.substring(path.length-1)!==pathSeparator&&path.length)return path+pathSeparator;return path};/**
615
- * Checks if a given path has given path prefix.
616
- * @param prefix - Path prefix to search for.
617
- * @param path - Path to search in.
618
- * @param separator - Delimiter to use in a path (default is the posix
619
- * conform slash).
620
- * @returns Value "true" if given prefix occurs and "false" otherwise.
621
- */var hasPathPrefix=function hasPathPrefix(prefix,path,separator){if(prefix===void 0){prefix="/admin"}if(path===void 0){var _globalContext$locati;path=((_globalContext$locati=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location)===null||_globalContext$locati===void 0?void 0:_globalContext$locati.pathname)||""}if(separator===void 0){separator="/"}if(typeof prefix==="string"){if(!prefix.endsWith(separator))prefix+=separator;return path===prefix.substring(0,prefix.length-separator.length)||path.startsWith(prefix)}return false};/**
622
- * Extracts domain name from given url. If no explicit domain name given
623
- * current domain name will be assumed. If no parameter is given, the current
624
- * domain name will be determined.
625
- * @param url - The url to extract domain from.
626
- * @param fallback - The fallback host name if no one exits in given url
627
- * (default is current hostname).
628
- * @returns Extracted domain.
629
- */var getDomainName=function getDomainName(url,fallback){if(url===void 0){var _globalContext$locati2;url=((_globalContext$locati2=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location)===null||_globalContext$locati2===void 0?void 0:_globalContext$locati2.href)||""}if(fallback===void 0){var _globalContext$locati3;fallback=((_globalContext$locati3=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location)===null||_globalContext$locati3===void 0?void 0:_globalContext$locati3.hostname)||""}var result=/^([a-z]*:?\/\/)?([^/]+?)(?::[0-9]+)?(?:\/.*|$)/i.exec(url);if(result&&result.length>2&&result[1]&&result[2])return result[2];return fallback};/**
630
- * Extracts port number from given url. If no explicit port number is given
631
- * and no fallback is defined, the current port number will be assumed for local
632
- * links. For external links 80 will be assumed for http protocols and 443
633
- * for https protocols.
634
- * @param url - The url to extract port from.
635
- * @param fallback - Fallback port number if no explicit one was found.
636
- * Default is derived from the current protocol name.
637
- * @returns Extracted port number.
638
- */var getPortNumber=function getPortNumber(url,fallback){var _globalContext$locati6;if(url===void 0){var _globalContext$locati4;url=((_globalContext$locati4=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location)===null||_globalContext$locati4===void 0?void 0:_globalContext$locati4.href)||""}if(fallback===void 0){var _globalContext$locati5;fallback=(_globalContext$locati5=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location)!==null&&_globalContext$locati5!==void 0&&_globalContext$locati5.port?parseInt(_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location.port):null}var result=/^(?:[a-z]*:?\/\/[^/]+?)?[^/]+?:([0-9]+)/i.exec(url);if(result&&result.length>1)return parseInt(result[1],10);if(fallback!==null)return fallback;if(// NOTE: Would result in an endless loop:
639
- // serviceURLEquals(url, ...parameters) &&
640
- (_globalContext$locati6=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location)!==null&&_globalContext$locati6!==void 0&&_globalContext$locati6.port&&parseInt(_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location.port,10))return parseInt(_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location.port,10);return getProtocolName(url)==="https"?443:80};/**
641
- * Extracts protocol name from given url. If no explicit url is given,
642
- * the current protocol will be assumed. If no parameter is given, the current
643
- * protocol number will be determined.
644
- * @param url - The url to extract protocol from.
645
- * @param fallback - Fallback port to use if no protocol exists in given
646
- * url (default is current protocol).
647
- * @returns Extracted protocol.
648
- */var getProtocolName=function getProtocolName(url,fallback){if(url===void 0){var _globalContext$locati7;url=((_globalContext$locati7=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location)===null||_globalContext$locati7===void 0?void 0:_globalContext$locati7.href)||""}if(fallback===void 0){var _globalContext$locati8;fallback=((_globalContext$locati8=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location)===null||_globalContext$locati8===void 0?void 0:_globalContext$locati8.protocol)&&_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location.protocol.substring(0,_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location.protocol.length-1)||""}var result=/^([a-z]+):\/\//i.exec(url);if(result&&result.length>1&&result[1])return result[1];return fallback};/**
649
- * Read a page's GET URL variables and return them as an associative array
650
- * and preserves ordering.
651
- * @param keyToGet - If provided the corresponding value for a given key is
652
- * returned or full object otherwise.
653
- * @param allowDuplicates - Indicates whether to return arrays of values or
654
- * single values. If set to "false" (default) last values will overwrite
655
- * preceding values.
656
- * @param givenInput - An alternative input to the url search parameter. If
657
- * "#" is given, the complete current hashtag will be interpreted as url and
658
- * search parameter will be extracted from there. If "&" is given a classical
659
- * search parameter, and hash parameter will be taken in an account. If a
660
- * search string is given, this will be analyzed. The default is to take a
661
- * given search part into account.
662
- * @param subDelimiter - Defines which sequence indicates the start of
663
- * parameter in a hash part of the url.
664
- * @param hashedPathIndicator - If defined and given hash starts with this
665
- * indicator, given hash will be interpreted as a path containing search and
666
- * hash parts.
667
- * @param givenSearch - Search part to take into account defaults to
668
- * current url search part.
669
- * @param givenHash - Hash part to take into account defaults to current
670
- * url hash part.
671
- * @returns Returns the current get array or requested value. If the requested
672
- * key doesn't exist, "undefined" is returned.
673
- */var getURLParameter=function getURLParameter(keyToGet,allowDuplicates,givenInput,subDelimiter,hashedPathIndicator,givenSearch,givenHash){if(keyToGet===void 0){keyToGet=null}if(allowDuplicates===void 0){allowDuplicates=false}if(givenInput===void 0){givenInput=null}if(subDelimiter===void 0){subDelimiter="$"}if(hashedPathIndicator===void 0){hashedPathIndicator="!"}if(givenSearch===void 0){givenSearch=null}if(givenHash===void 0){var _globalContext$locati9,_globalContext$locati0;givenHash=(_globalContext$locati9=(_globalContext$locati0=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location)===null||_globalContext$locati0===void 0?void 0:_globalContext$locati0.hash)!==null&&_globalContext$locati9!==void 0?_globalContext$locati9:""}// region set search and hash
674
- var hash=givenHash!==null&&givenHash!==void 0?givenHash:"#";var search="";if(givenSearch)search=givenSearch;else if(hashedPathIndicator&&hash.startsWith(hashedPathIndicator)){var subHashStartIndex=hash.indexOf("#");var pathAndSearch;if(subHashStartIndex===-1){pathAndSearch=hash.substring(hashedPathIndicator.length);hash=""}else{pathAndSearch=hash.substring(hashedPathIndicator.length,subHashStartIndex);hash=hash.substring(subHashStartIndex)}var subSearchStartIndex=pathAndSearch.indexOf("?");if(subSearchStartIndex!==-1)search=pathAndSearch.substring(subSearchStartIndex)}else if(_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location)search=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location.search||"";var input=givenInput?givenInput:search;// endregion
675
- // region determine data from search and hash if specified
676
- var both=input==="&";if(both||input==="#"){var decodedHash="";try{decodedHash=decodeURIComponent(hash)}catch(_unused){// Continue regardless of an error.
677
- }var subDelimiterIndex=decodedHash.indexOf(subDelimiter);if(subDelimiterIndex===-1)input="";else{input=decodedHash.substring(subDelimiterIndex);if(input.startsWith(subDelimiter))input=input.substring(subDelimiter.length)}}else if(input.startsWith("?"))input=input.substring("?".length);var data=input?input.split("&"):[];search=search.substring("?".length);if(both&&search)data=data.concat(search.split("&"));// endregion
678
- // region construct data structure
679
- var parameters=[];var _iterator2=_createForOfIteratorHelper(data),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _value=_step2.value;var keyValuePair=_value.split("=");var key=void 0;try{key=decodeURIComponent(keyValuePair[0])}catch(_unused2){key=""}try{_value=decodeURIComponent(keyValuePair[1])}catch(_unused3){_value=""}parameters.push(key);if(allowDuplicates){if(Object.prototype.hasOwnProperty.call(parameters,key)&&Array.isArray(parameters[key]))parameters[key].push(_value);else parameters[key]=[_value];}else parameters[key]=_value}// endregion
680
- }catch(err){_iterator2.e(err)}finally{_iterator2.f()}if(keyToGet){if(Object.prototype.hasOwnProperty.call(parameters,keyToGet))return parameters[keyToGet];return null}return parameters};/**
681
- * Checks if given url points to another "service" than the second given url.
682
- * If no second given url is provided, the current url will be assumed.
683
- * @param url - URL to check against second url.
684
- * @param referenceURL - URL to check against first url.
685
- * @returns Returns "true" if given first url has same domain as given
686
- * second (or current).
687
- */var serviceURLEquals=function serviceURLEquals(url,referenceURL){if(referenceURL===void 0){var _globalContext$locati1;referenceURL=((_globalContext$locati1=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.location)===null||_globalContext$locati1===void 0?void 0:_globalContext$locati1.href)||""}var domain=getDomainName(url,"");var protocol=getProtocolName(url,"");var port=getPortNumber(url);return(domain===""||domain===getDomainName(referenceURL))&&(protocol===""||protocol===getProtocolName(referenceURL))&&(port===null||port===getPortNumber(referenceURL))};/**
688
- * Normalized given website url.
689
- * @param givenURL - Uniform resource locator to normalize.
690
- * @returns Normalized result.
691
- */var normalizeURL=function normalizeURL(givenURL){if(typeof givenURL==="string"){var url=givenURL.replace(/^:?\/+/,"").replace(/\/+$/,"").trim();if(url.startsWith("http"))return url;return"http://".concat(url)}return""};/**
692
- * Represents given website url.
693
- * @param url - Uniform resource locator to represent.
694
- * @returns Represented result.
695
- */var representURL=function representURL(url){if(typeof url==="string")return url.replace(/^(https?)?:?\/+/,"").replace(/\/+$/,"").trim();return""};// endregion
696
- /**
697
- * Converts a camel-cased string to its delimited string version.
698
- * @param value - The string to format.
699
- * @param delimiter - Defines delimiter string.
700
- * @param abbreviations - Collection of shortcut words to represent uppercased.
701
- * @returns The formatted string.
702
- */var camelCaseToDelimited=function camelCaseToDelimited(value,delimiter,abbreviations){if(delimiter===void 0){delimiter="-"}if(abbreviations===void 0){abbreviations=null}if(!abbreviations)abbreviations=_constants__WEBPACK_IMPORTED_MODULE_1__.ABBREVIATIONS;var escapedDelimiter=maskForRegularExpression(delimiter);if(abbreviations.length){var abbreviationPattern="";var _iterator3=_createForOfIteratorHelper(abbreviations),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var abbreviation=_step3.value;if(abbreviationPattern)abbreviationPattern+="|";abbreviationPattern+=abbreviation.toUpperCase()}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}value=value.replace(new RegExp("(".concat(abbreviationPattern,")(").concat(abbreviationPattern,")"),"g"),"$1".concat(delimiter,"$2"))}value=value.replace(new RegExp("([^".concat(escapedDelimiter,"])([A-Z][a-z]+)"),"g"),"$1".concat(delimiter,"$2"));return value.replace(new RegExp("([a-z0-9])([A-Z])","g"),"$1".concat(delimiter,"$2")).toLowerCase()};/**
703
- * Converts a string to its capitalized representation.
704
- * @param string - The string to format.
705
- * @returns The formatted string.
706
- */var capitalize=function capitalize(string){return string.charAt(0).toUpperCase()+string.substring(1)};/**
707
- * Compresses given style attribute value.
708
- * @param styleValue - Style value to compress.
709
- * @returns The compressed value.
710
- */var compressStyleValue=function compressStyleValue(styleValue){return styleValue.replace(/ *([:;]) */g,"$1").replace(/ +/g," ").replace(/^;+/,"").replace(/;+$/,"").trim()};/**
711
- * Decodes all html symbols in text nodes in a given html string.
712
- * @param htmlString - HTML string to decode.
713
- * @returns Decoded html string.
714
- */var decodeHTMLEntities=function decodeHTMLEntities(htmlString){if(_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.document){var textareaDomNode=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.document.createElement("textarea");textareaDomNode.innerHTML=htmlString;return textareaDomNode.value}return null};/**
715
- * Converts a delimited string to its camel case representation.
716
- * @param value - The string to format.
717
- * @param delimiter - Delimiter string to use.
718
- * @param abbreviations - Collection of shortcut words to represent uppercased.
719
- * @param preserveWrongFormattedAbbreviations - If set to "True" wrong
720
- * formatted camel case abbreviations will be ignored.
721
- * @param removeMultipleDelimiter - Indicates whether a series of delimiter
722
- * should be consolidated.
723
- * @returns The formatted string.
724
- */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__WEBPACK_IMPORTED_MODULE_1__.ABBREVIATIONS;var abbreviationPattern;if(preserveWrongFormattedAbbreviations)abbreviationPattern=_constants__WEBPACK_IMPORTED_MODULE_1__.ABBREVIATIONS.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};/**
725
- * Compiles a given string as an expression with given scope names.
726
- * @param expression - The string to interpret.
727
- * @param scope - Scope to extract names from.
728
- * @param execute - Indicates whether to execute or evaluate.
729
- * @param removeGlobalScope - Indicates whether to shadow global variables via
730
- * "undefined".
731
- * @param binding - Object to apply as "this" in evaluation scope.
732
- * @returns Object of prepared scope name mappings and compiled function or
733
- * error string message if given expression couldn't be compiled.
734
- */var compile=function compile(expression,scope,execute,removeGlobalScope,binding){var _Babel;if(scope===void 0){scope=[]}if(execute===void 0){execute=false}if(removeGlobalScope===void 0){removeGlobalScope=true}if(binding===void 0){binding={}}/*
735
- NOTE: We do this global variable name determining as close as possible
736
- to the compiling step to cover as much as possible global introduces
737
- variables.
738
- */var globalNames=Object.keys(globalThis).concat("globalThis").filter(function(name){return new RegExp("^[".concat(ALLOWED_STARTING_VARIABLE_SYMBOLS,"]")+"[".concat(ALLOWED_VARIABLE_SYMBOLS,"]*$")).test(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
739
- }catch(err){_iterator5.e(err)}finally{_iterator5.f()}if(POLYFILL_TEMPLATE_STRINGS.value)if((_Babel=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.Babel)!==null&&_Babel!==void 0&&_Babel.transform)expression=_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.Babel.transform("(".concat(expression,")"),{plugins:["transform-template-literals"]}).code;else if(expression.startsWith("`")&&expression.endsWith("`")){var escapeMarker="####";// Convert template string into legacy string concatenations.
740
- expression=expression// Mark simple escape sequences.
741
- .replace(/\\\$/g,escapeMarker)// Handle avoidable template expression: Use raw code.
742
- .replace(/^`\$\{([\s\S]+)}`$/,"String($1)")// Use plain string with single quotes.
743
- .replace(/^`([^']+)`$/,"'$1'")// Use plain string with double quotes.
744
- .replace(/^`([^"]+)`$/,"\"$1\"");// Use single quotes and hope (just a heuristic).
745
- var quote=expression.charAt(0)==="`"?"'":expression.charAt(0);expression=expression// Replace a simple placeholder.
746
- // NOTE: Replace complete bracket pairs.
747
- .replace(/\$\{((([^{]*{[^}]*}[^}]*})|[^{}]+)+)}/g,"".concat(quote,"+($1)+").concat(quote)).replace(/^`([\s\S]+)`$/,"".concat(quote,"$1").concat(quote))// Remove remaining newlines.
748
- .replace(/\n+/g,"")// Replace marked escape sequences.
749
- .replace(new RegExp(escapeMarker,"g"),"\\$")}// endregion
750
- var innerTemplateFunction;try{// eslint-disable-next-line @typescript-eslint/no-implied-eval
751
- 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__WEBPACK_IMPORTED_MODULE_3__.represent)(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(/*
752
- NOTE: We shadow existing global names to sandbox
753
- expressions.
754
- */boundInnerTemplateFunction.apply(void 0,_toConsumableArray(result.globalNamesUndefinedList).concat(parameters)))}:boundInnerTemplateFunction}return result};/**
755
- * Evaluates a given string as an expression against a given scope.
756
- * @param expression - The string to interpret.
757
- * @param scope - Scope to render against.
758
- * @param execute - Indicates whether to execute or evaluate.
759
- * @param removeGlobalScope - Indicates whether to shadow global variables via
760
- * "undefined".
761
- * @param binding - Object to apply as "this" in evaluation scope.
762
- * @returns Object with an error message during parsing / running or result.
763
- */var evaluate=function evaluate(expression,scope,execute,removeGlobalScope,binding){if(scope===void 0){scope={}}if(execute===void 0){execute=false}if(removeGlobalScope===void 0){removeGlobalScope=true}if(binding===void 0){binding={}}// NOTE: We extract string-only types from given scope type.
764
- var _compile=compile(expression,scope,execute,removeGlobalScope,binding),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 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__WEBPACK_IMPORTED_MODULE_3__.represent)(error)}return result};/**
765
- * Evaluates a given string as an expression against a given scope. Does same
766
- * as "evaluate" but throws an exception if an error occurs and returns the
767
- * evaluated value instead of an object with error and result.
768
- * @param expression - The string to interpret.
769
- * @param scope - Scope to render against.
770
- * @param execute - Indicates whether to execute or evaluate.
771
- * @param removeGlobalScope - Indicates whether to shadow global variables via
772
- * "undefined".
773
- * @param binding - Object to apply as "this" in evaluation scope.
774
- * @returns Object with an error message during parsing / running or result.
775
- */var evaluateAndThrowError=function evaluateAndThrowError(expression,scope,execute,removeGlobalScope,binding){if(scope===void 0){scope={}}if(execute===void 0){execute=false}if(removeGlobalScope===void 0){removeGlobalScope=true}if(binding===void 0){binding={}}var evaluated=evaluate(expression,scope,execute,removeGlobalScope,binding);if(evaluated.error)throw new Error(evaluated.error);return evaluated.result};/**
776
- * Finds the string match of a given query in a given target text by applying a
777
- * given normalization function to target and query.
778
- * @param target - Target to search in.
779
- * @param query - Search string to search for.
780
- * @param normalizer - Function to use as normalization for queries and search
781
- * targets.
782
- * @param skipTagDelimitedParts - Indicates whether to, for example, ignore
783
- * html tags via "['<', '>']" (the default).
784
- * @returns Start and end index of matching range.
785
- */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};/**
786
- * Fixes known encoding problems in given data.
787
- * @param data - To process.
788
- * @returns Processed data.
789
- */var fixKnownEncodingErrors=function fixKnownEncodingErrors(data){for(var _i=0,_FIX_ENCODING_ERROR_M=FIX_ENCODING_ERROR_MAPPING;_i<_FIX_ENCODING_ERROR_M.length;_i++){var _FIX_ENCODING_ERROR_M2=_slicedToArray(_FIX_ENCODING_ERROR_M[_i],2),search=_FIX_ENCODING_ERROR_M2[0],replacement=_FIX_ENCODING_ERROR_M2[1];data=data.replace(new RegExp(search,"g"),replacement)}return data};/**
790
- * Performs a string formation. Replaces every placeholder "{i}" with the i'th
791
- * argument.
792
- * @param string - The string to format.
793
- * @param additionalArguments - Additional arguments are interpreted as
794
- * replacements for string formatting.
795
- * @returns The formatted string.
796
- */var format=function format(string){for(var _len2=arguments.length,additionalArguments=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){additionalArguments[_key2-1]=arguments[_key2]}additionalArguments.unshift(string);var index=0;for(var _i2=0,_additionalArguments=additionalArguments;_i2<_additionalArguments.length;_i2++){var _value2=_additionalArguments[_i2];string=string.replace(new RegExp("\\{".concat(String(index),"\\}"),"gm"),String(_value2));index+=1}return string};/**
797
- * Calculates the edit (levenstein) distance between two given strings.
798
- * @param first - First string to compare.
799
- * @param second - Second string to compare.
800
- * @returns The distance as number.
801
- */var getEditDistance=function getEditDistance(first,second){/*
802
- Create empty edit distance matrix for all possible modifications of
803
- substrings of "first" to substrings of "second".
804
- */var distanceMatrix=Array(second.length+1).fill(null).map(function(){return Array(first.length+1).fill(null)});/*
805
- Fill the first row of the matrix.
806
- If this is the first row, then, we're transforming an empty string to
807
- "first". In this case the number of transformations equals to the size
808
- of the "first" substring.
809
- */for(var index=0;index<=first.length;index++)distanceMatrix[0][index]=index;/*
810
- Fill the first column of the matrix.
811
- If this is the first column, then we're transforming an empty string to
812
- "second".
813
- In this case the number of transformations equals to the size of the
814
- "second" substring.
815
- */for(var _index=0;_index<=second.length;_index++)distanceMatrix[_index][0]=_index;for(var firstIndex=1;firstIndex<=second.length;firstIndex++)for(var secondIndex=1;secondIndex<=first.length;secondIndex++){var indicator=first[secondIndex-1]===second[firstIndex-1]?0:1;distanceMatrix[firstIndex][secondIndex]=Math.min(// deletion
816
- distanceMatrix[firstIndex][secondIndex-1]+1,// insertion
817
- distanceMatrix[firstIndex-1][secondIndex]+1,// substitution
818
- distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[second.length][first.length]};/**
819
- * Validates the current string for using in a regular expression pattern.
820
- * Special regular expression chars will be escaped.
821
- * @param value - The string to format.
822
- * @returns The formatted string.
823
- */var maskForRegularExpression=function maskForRegularExpression(value){return value.replace(/([\\|.*$^+[\]()?\-{}])/g,"\\$1")};/**
824
- * Converts a string to its lower case representation.
825
- * @param string - The string to format.
826
- * @returns The formatted string.
827
- */var lowerCase=function lowerCase(string){return string.charAt(0).toLowerCase()+string.substring(1)};/**
828
- * Wraps given mark strings in a given target with a given marker.
829
- * @param target - String to search for marker.
830
- * @param givenWords - String or array of strings to search in target for.
831
- * @param givenOptions - Defines highlighting behavior.
832
- * @param givenOptions.marker - HTML template string to mark.
833
- * @param givenOptions.normalizer - Pure normalization function to use before
834
- * searching for matches.
835
- * @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
836
- * example, ignore html tags via "['<', '>']" (the default).
837
- * @returns Processed result.
838
- */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;/*
839
- Search for matches as long there is enough target text remaining to
840
- walk through.
841
- */for(var iteration=0;iteration<_context__WEBPACK_IMPORTED_MODULE_2__.MAXIMAL_NUMBER_OF_ITERATIONS.value;iteration++){var nearestRange=null;var currentRange=void 0;// Find the nearest next matching word.
842
- 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};/**
843
- * Normalizes a given phone number for automatic dialing or comparison.
844
- * @param value - Number to normalize.
845
- * @param dialable - Indicates whether the result should be dialed or
846
- * represented as lossless data.
847
- * @returns Normalized number.
848
- */var normalizePhoneNumber=function normalizePhoneNumber(value,dialable){if(dialable===void 0){dialable=true}if(typeof value==="string"||typeof value==="number"){var normalizedValue=String(value).trim();// Normalize country code prefix.
849
- normalizedValue=normalizedValue.replace(/^[^0-9]*\+/,"00");// Remove alternate direct dial numbers.
850
- normalizedValue=normalizedValue.replace(/([0-9].*?) *(,|o[rd]?)\.? ?-?[0-9]+$/,"$1");if(dialable)return normalizedValue.replace(/[^0-9]+/g,"");var separatorPattern="(?:[ /\\-]+)";// Remove unneeded area code zero in brackets.
851
- normalizedValue=normalizedValue.replace(new RegExp("^(.+?)".concat(separatorPattern,"?\\(0\\)").concat(separatorPattern,"?")+"(.+)$"),"$1-$2");// Remove unneeded area code brackets.
852
- normalizedValue=normalizedValue.replace(new RegExp("^(.+?)".concat(separatorPattern,"?\\((.+)\\)")+"".concat(separatorPattern,"?(.+)$")),"$1-$2-$3");/*
853
- Remove separators that don't mark semantics:
854
- 1: Country code
855
- 2: Area code
856
- 3: Number
857
- */var compiledPattern=new RegExp("^(00[0-9]+)".concat(separatorPattern,"([0-9]+)").concat(separatorPattern)+"(.+)$");if(compiledPattern.test(normalizedValue))// Country code and area code matched.
858
- normalizedValue=normalizedValue.replace(compiledPattern,function(_match,countryCode,areaCode,number){return"".concat(countryCode,"-").concat(areaCode,"-")+sliceAllExceptNumberAndLastSeparator(number)});else{/*
859
- One prefix code matched:
860
- 1: Prefix code
861
- 2: Number
862
- */compiledPattern=/^([0-9 ]+)[/-](.+)$/;var replacer=function replacer(_match,prefixCode,number){return"".concat(prefixCode.replace(/ +/,""),"-")+sliceAllExceptNumberAndLastSeparator(number)};if(compiledPattern.test(normalizedValue))// Prefer "/" or "-" over " " as area code separator.
863
- normalizedValue=normalizedValue.replace(compiledPattern,replacer);else normalizedValue=normalizedValue.replace(new RegExp("^([0-9]+)".concat(separatorPattern,"(.+)$")),replacer)}return normalizedValue.replace(/[^0-9-]+/g,"").replace(/^-+$/,"")}return""};/**
864
- * Normalizes a given zip code for automatic address processing.
865
- * @param value - Number to normalize.
866
- * @returns Normalized number.
867
- */var normalizeZipCode=function normalizeZipCode(value){if(typeof value==="string"||typeof value==="number")return String(value).trim().replace(/^([^0-9]*[a-zA-Z]-)?(.+)$/,function(match,prefix,code){if(prefix)prefix=prefix.substring(prefix.length-2).charAt(0).toUpperCase()+"-";return(prefix!==null&&prefix!==void 0?prefix:"")+(code!==null&&code!==void 0?code:"").trim().replace(/[^0-9]+/g,"")});return""};/**
868
- * Converts a given serialized, base64 encoded or file path given object into a
869
- * native JavaScript one if possible.
870
- * @param serializedObject - Object as string.
871
- * @param scope - An optional scope which will be used to evaluate given object
872
- * in.
873
- * @param name - The name under given scope will be available.
874
- * @returns The parsed object if possible and null otherwise.
875
- */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__WEBPACK_IMPORTED_MODULE_4__.imports.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__WEBPACK_IMPORTED_MODULE_4__.isFileSync)(serializedObject))serializedObject=_filesystem__WEBPACK_IMPORTED_MODULE_4__.imports.fs.readFileSync(serializedObject,{encoding:_constants__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_ENCODING});serializedObject=serializedObject.trim();if(!serializedObject.startsWith("{"))serializedObject=eval("Buffer").from(serializedObject,"base64").toString(_constants__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_ENCODING);var result=evaluate(serializedObject,_defineProperty({},name,scope));if(_typeof(result.result)==="object")return result.result;return null};/**
876
- * Represents a given phone number. NOTE: Currently only support German phone
877
- * numbers.
878
- * @param value - Number to format.
879
- * @returns Formatted number.
880
- */var representPhoneNumber=function representPhoneNumber(value){if(["number","string"].includes((0,_object__WEBPACK_IMPORTED_MODULE_3__.determineType)(value))&&value){// Represent country code and leading area code zero.
881
- var normalizedValue=// eslint-disable-next-line @typescript-eslint/no-base-to-string
882
- String(value).replace(/^(00|\+)([0-9]+)-([0-9-]+)$/,"+$2 (0) $3");// Add German country code if not exists.
883
- normalizedValue=normalizedValue.replace(/^0([1-9][0-9-]+)$/,"+49 (0) $1");// Separate area code from base number.
884
- normalizedValue=normalizedValue.replace(/^([^-]+)-([0-9-]+)$/,"$1 / $2");// Partition base number in one triple and tuples or tuples only.
885
- return normalizedValue.replace(/^(.*?)([0-9]+)(-?[0-9]*)$/,function(_match,prefix,number,suffix){return prefix+(number.length%2===0?number.replace(/([0-9]{2})/g,"$1 "):number.replace(/^([0-9]{3})([0-9]+)$/,function(_match,triple,rest){return"".concat(triple," ")+rest.replace(/([0-9]{2})/g,"$1 ").trim()})+suffix).trim()}).trim()}return""};/**
886
- * Slices all none numbers but preserves last separator.
887
- * @param value - String to process.
888
- * @returns - Sliced given value.
889
- */var sliceAllExceptNumberAndLastSeparator=function sliceAllExceptNumberAndLastSeparator(value){/*
890
- 1: baseNumber
891
- 2: directDialingNumberSuffix
892
- */var compiledPattern=/^(.*[0-9].*)-([0-9]+)$/;if(compiledPattern.test(value))return value.replace(compiledPattern,function(_match,baseNumber,directDialingNumberSuffix){return"".concat(baseNumber.replace(/[^0-9]+/g,""),"-")+directDialingNumberSuffix});return value.replace(/[^0-9]+/g,"")};/**
893
- * Converts a dom selector to a prefixed dom selector string.
894
- * @param selector - A dom node selector.
895
- * @param selectorPrefix - A dom node selector prefix to take into account.
896
- * @returns Returns given selector prefixed.
897
- */var normalizeDomNodeSelector=function normalizeDomNodeSelector(selector,selectorPrefix){if(selectorPrefix===void 0){selectorPrefix=""}var domNodeSelectorPrefix="";if(selectorPrefix)domNodeSelectorPrefix="".concat(selectorPrefix," ");if(!(selector.startsWith(domNodeSelectorPrefix)||selector.trim().startsWith("<")))selector=domNodeSelectorPrefix+selector;return selector.trim()};/**
898
- * Abbreviates a given string if it excesses a given limit.
899
- * @param value - String to abbreviate.
900
- * @param limit - Maximum length of processed string.
901
- * @returns Abbreviated given string.
902
- */var limit=function limit(value,_limit){if(_limit===void 0){_limit=100}if(value.length<=_limit)return value;var dots="...";return value.substring(0,_limit-dots.length)+dots};
903
-
904
- /***/ }),
905
- /* 8 */
906
- /***/ (function(module) {
907
-
908
- "use strict";
909
- module.exports = __WEBPACK_EXTERNAL_MODULE__8__;
910
-
911
- /***/ }),
912
- /* 9 */
913
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
914
-
915
- "use strict";
916
- __webpack_require__.r(__webpack_exports__);
917
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
918
- /* harmony export */ ceil: function() { return /* binding */ ceil; },
919
- /* harmony export */ floor: function() { return /* binding */ floor; },
920
- /* harmony export */ getUTCTimestamp: function() { return /* binding */ getUTCTimestamp; },
921
- /* harmony export */ isNotANumber: function() { return /* binding */ isNotANumber; },
922
- /* harmony export */ round: function() { return /* binding */ round; }
923
- /* harmony export */ });
924
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
925
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
926
- /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
927
- // #!/usr/bin/env babel-node
928
- // -*- coding: utf-8 -*-
929
- /** @module number *//* !
930
- region header
931
- [Project page](https://torben.website/clientnode)
3
+ /** @module clientnode */
4
+ 'use strict';
932
5
 
933
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
934
-
935
- License
936
- -------
937
-
938
- This library written by Torben Sickert stands under a creative commons
939
- naming 3.0 unported license.
940
- See https://creativecommons.org/licenses/by/3.0/deed.de
941
- endregion
942
- *//**
943
- * Determines corresponding utc timestamp for given date object.
944
- * @param value - Date to convert.
945
- * @param inMilliseconds - Indicates whether given number should be in
946
- * seconds (default) or milliseconds.
947
- * @returns Determined numerous value.
948
- */var getUTCTimestamp=function getUTCTimestamp(value,inMilliseconds){if(inMilliseconds===void 0){inMilliseconds=false}var date=[null,undefined].includes(value)?new Date:new Date(value);return Date.UTC(date.getUTCFullYear(),date.getUTCMonth(),date.getUTCDate(),date.getUTCHours(),date.getUTCMinutes(),date.getUTCSeconds(),date.getUTCMilliseconds())/(inMilliseconds?1:1000)};/**
949
- * Checks if given object is java scripts native "Number.NaN" object.
950
- * @param value - Value to check.
951
- * @returns Returns whether given value is not a number or not.
952
- */var isNotANumber=function isNotANumber(value){return (0,_object__WEBPACK_IMPORTED_MODULE_1__.determineType)(value)==="number"&&isNaN(value)};/**
953
- * Rounds a given number accurate to given number of digits.
954
- * @param number - The number to round.
955
- * @param digits - The number of digits after comma.
956
- * @returns Returns the rounded number.
957
- */var round=function round(number,digits){if(digits===void 0){digits=0}return Math.round(number*Math.pow(10,digits))/Math.pow(10,digits)};/**
958
- * Rounds a given number up accurate to given number of digits.
959
- * @param number - The number to round.
960
- * @param digits - The number of digits after comma.
961
- * @returns Returns the rounded number.
962
- */var ceil=function ceil(number,digits){if(digits===void 0){digits=0}return Math.ceil(number*Math.pow(10,digits))/Math.pow(10,digits)};/**
963
- * Rounds a given number down accurate to given number of digits.
964
- * @param number - The number to round.
965
- * @param digits - The number of digits after comma.
966
- * @returns Returns the rounded number.
967
- */var floor=function floor(number,digits){if(digits===void 0){digits=0}return Math.floor(number*Math.pow(10,digits))/Math.pow(10,digits)};
968
-
969
- /***/ }),
970
- /* 10 */
971
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
972
-
973
- "use strict";
974
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
975
- /* harmony export */ Lock: function() { return /* binding */ Lock; }
976
- /* harmony export */ });
977
- // #!/usr/bin/env babel-node
978
- // -*- coding: utf-8 -*-
979
- /** @module Lock *//* !
980
- region header
981
- [Project page](https://torben.website/clientnode)
982
-
983
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
984
-
985
- License
986
- -------
987
-
988
- This library written by Torben Sickert stands under a creative commons
989
- naming 3.0 unported license.
990
- See https://creativecommons.org/licenses/by/3.0/deed.de
991
- endregion
992
- */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 _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):(e.__proto__=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)})}}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),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)}/**
993
- * Represents the lock state.
994
- * @property locks - Mapping of lock descriptions to their corresponding
995
- * callbacks.
996
- */var Lock=/*#__PURE__*/function(){/**
997
- * Initializes locks.
998
- * @param locks - Mapping of a lock description to callbacks for calling
999
- * when given lock should be released.
1000
- */function Lock(locks){if(locks===void 0){locks={}}_classCallCheck(this,Lock);_defineProperty(this,"lock",void 0);_defineProperty(this,"locks",void 0);this.locks=locks}/**
1001
- * Calling this method introduces a starting point for a critical area with
1002
- * potential race conditions. The area will be bind to given description
1003
- * string. So don't use same names for different areas.
1004
- * @param description - A short string describing the critical areas
1005
- * properties.
1006
- * @param callback - A procedure which should only be executed if the
1007
- * interpreter isn't in the given critical area. The lock description
1008
- * string will be given to the callback function.
1009
- * @param autoRelease - Release the lock after execution of given callback.
1010
- * @returns Returns a promise which will be resolved after releasing lock.
1011
- */return _createClass(Lock,[{key:"acquire",value:function acquire(description,callback,autoRelease){var _this=this;if(autoRelease===void 0){autoRelease=false}return new Promise(function(resolve){var wrappedCallback=function wrappedCallback(description){var _result;var result;if(callback)result=callback(description);var finish=function finish(value){if(autoRelease)void _this.release(description);resolve(value);return value};if((_result=result)!==null&&_result!==void 0&&_result.then)return result.then(finish);finish(result);return result};if(description){if(Object.prototype.hasOwnProperty.call(_this.locks,description))_this.locks[description].push(wrappedCallback);else{_this.locks[description]=[];void wrappedCallback(description)}return}if(_this.lock)_this.lock.push(wrappedCallback);else{_this.lock=[];void wrappedCallback(description)}})}/**
1012
- * Calling this method causes the given critical area to be finished and
1013
- * all functions given to "acquire()" will be executed in right order.
1014
- * @param description - A short string describing the critical areas
1015
- * properties.
1016
- * @returns Returns the return (maybe promise resolved) value of the
1017
- * callback given to the "acquire" method.
1018
- */},{key:"release",value:(function(){var _release=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(description){var _this$lock;var _callback,callback;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:if(!description){_context.n=4;break}if(!Object.prototype.hasOwnProperty.call(this.locks,description)){_context.n=3;break}_callback=this.locks[description].shift();if(!(_callback===undefined)){_context.n=1;break}delete this.locks[description];_context.n=3;break;case 1:_context.n=2;return _callback(description);case 2:return _context.a(2,_context.v);case 3:return _context.a(2);case 4:callback=(_this$lock=this.lock)===null||_this$lock===void 0?void 0:_this$lock.shift();if(!(callback===undefined)){_context.n=5;break}this.lock=undefined;_context.n=7;break;case 5:_context.n=6;return callback();case 6:return _context.a(2,_context.v);case 7:return _context.a(2)}},_callee,this)}));function release(_x){return _release.apply(this,arguments)}return release}())}])}();/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (Lock)));
1019
-
1020
- /***/ }),
1021
- /* 11 */
1022
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1023
-
1024
- "use strict";
1025
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1026
- /* harmony export */ Semaphore: function() { return /* binding */ Semaphore; }
1027
- /* harmony export */ });
1028
- // #!/usr/bin/env babel-node
1029
- // -*- coding: utf-8 -*-
1030
- /** @module Semaphore *//* !
1031
- region header
1032
- [Project page](https://torben.website/clientnode)
1033
-
1034
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1035
-
1036
- License
1037
- -------
1038
-
1039
- This library written by Torben Sickert stands under a creative commons
1040
- naming 3.0 unported license.
1041
- See https://creativecommons.org/licenses/by/3.0/deed.de
1042
- endregion
1043
- */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 _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),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)}/**
1044
- * Represents the semaphore state.
1045
- * @property queue - List of waiting resource requests.
1046
- * @property numberOfFreeResources - Number free allowed concurrent resource
1047
- * uses.
1048
- * @property numberOfResources - Number of allowed concurrent resource uses.
1049
- */var Semaphore=/*#__PURE__*/function(){/**
1050
- * Initializes number of resources.
1051
- * @param numberOfResources - Number of resources to manage.
1052
- */function Semaphore(numberOfResources){if(numberOfResources===void 0){numberOfResources=2}_classCallCheck(this,Semaphore);_defineProperty(this,"queue",[]);_defineProperty(this,"numberOfResources",void 0);_defineProperty(this,"numberOfFreeResources",void 0);this.numberOfResources=numberOfResources;this.numberOfFreeResources=numberOfResources}/**
1053
- * Acquires a new resource and runs given callback if available.
1054
- * @returns A promise which will be resolved if requested resource is
1055
- * available.
1056
- */return _createClass(Semaphore,[{key:"acquire",value:function acquire(){var _this=this;return new Promise(function(resolve){if(_this.numberOfFreeResources<=0)_this.queue.push(resolve);else{_this.numberOfFreeResources-=1;resolve(_this.numberOfFreeResources)}})}/**
1057
- * Releases a resource and runs a waiting resolver if there exists some.
1058
- */},{key:"release",value:function release(){var callback=this.queue.shift();if(callback===undefined)this.numberOfFreeResources+=1;else callback(this.numberOfFreeResources)}}])}();/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (Semaphore)));
1059
-
1060
- /***/ }),
1061
- /* 12 */
1062
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1063
-
1064
- "use strict";
1065
- __webpack_require__.r(__webpack_exports__);
1066
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1067
- /* harmony export */ copyDirectoryRecursive: function() { return /* binding */ copyDirectoryRecursive; },
1068
- /* harmony export */ copyDirectoryRecursiveSync: function() { return /* binding */ copyDirectoryRecursiveSync; },
1069
- /* harmony export */ copyFile: function() { return /* binding */ copyFile; },
1070
- /* harmony export */ copyFileSync: function() { return /* binding */ copyFileSync; },
1071
- /* harmony export */ imports: function() { return /* binding */ imports; },
1072
- /* harmony export */ importsPromise: function() { return /* binding */ importsPromise; },
1073
- /* harmony export */ isDirectory: function() { return /* binding */ isDirectory; },
1074
- /* harmony export */ isDirectorySync: function() { return /* binding */ isDirectorySync; },
1075
- /* harmony export */ isFile: function() { return /* binding */ isFile; },
1076
- /* harmony export */ isFileSync: function() { return /* binding */ isFileSync; },
1077
- /* harmony export */ walkDirectoryRecursively: function() { return /* binding */ _walkDirectoryRecursively; },
1078
- /* harmony export */ walkDirectoryRecursivelySync: function() { return /* binding */ _walkDirectoryRecursivelySync; }
1079
- /* harmony export */ });
1080
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1081
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
1082
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
1083
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
1084
- /* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2);
1085
- // #!/usr/bin/env babel-node
1086
- // -*- coding: utf-8 -*-
1087
- /** @module filesystem *//* !
1088
- region header
1089
- [Project page](https://torben.website/clientnode)
1090
-
1091
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1092
-
1093
- License
1094
- -------
1095
-
1096
- This library written by Torben Sickert stands under a creative commons
1097
- naming 3.0 unported license.
1098
- See https://creativecommons.org/licenses/by/3.0/deed.de
1099
- endregion
1100
- */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 _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 _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):(e.__proto__=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 _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 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)})}}var imports={fs:null,fsPromises:null,path:null};var mkdirSync;var readdirSync;var readFileSync;var statSync;var writeFileSync;var fsImportPromise=(0,_module__WEBPACK_IMPORTED_MODULE_3__.optionalImport)("fs");void fsImportPromise.then(function(module){imports.fs=module;if(module){mkdirSync=module.mkdirSync;readdirSync=module.readdirSync;readFileSync=module.readFileSync;statSync=module.statSync;writeFileSync=module.writeFileSync}else{mkdirSync=null;readdirSync=null;readFileSync=null;statSync=null;writeFileSync=null}});var mkdir;var readdir;var readFile;var stat;var writeFile;var fsPromisesImportPromise=(0,_module__WEBPACK_IMPORTED_MODULE_3__.optionalImport)("fs/promises");void fsPromisesImportPromise.then(function(module){imports.fsPromises=module;if(module){mkdir=module.mkdir;readdir=module.readdir;readFile=module.readFile;stat=module.stat;writeFile=module.writeFile}else{mkdir=null;readdir=null;readFile=null;stat=null;writeFile=null}});var basename;var join;var resolve;var pathImportPromise=(0,_module__WEBPACK_IMPORTED_MODULE_3__.optionalImport)("path");void pathImportPromise.then(function(module){imports.path=module;if(module){basename=module.basename;join=module.join;resolve=module.resolve}else{basename=null;join=null;resolve=null}});var importsPromise=Promise.all([fsImportPromise,fsPromisesImportPromise,pathImportPromise]);/**
1101
- * Copies given source directory via path to given target directory location
1102
- * with same target name as source file has or copy to given complete target
1103
- * directory path.
1104
- * @param sourcePath - Path to directory to copy.
1105
- * @param targetPath - Target directory or complete directory location to copy
1106
- * in.
1107
- * @param contents - Indicates whether we only want to copy content of source
1108
- * path without recreating the sourcefile itself on target location.
1109
- * @param callback - Function to invoke for each traversed file.
1110
- * @param readOptions - Options to use for reading source file.
1111
- * @param writeOptions - Options to use for writing to target file.
1112
- * @returns Promise holding the determined target directory path.
1113
- */var copyDirectoryRecursive=/*#__PURE__*/function(){var _copyDirectoryRecursive=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(sourcePath,targetPath,contents,callback,readOptions,writeOptions){var _iterator,_step,_currentSourceFile$st,currentSourceFile,currentTargetPath,_t,_t2,_t3,_t4,_t5;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(contents===void 0){contents=false}if(callback===void 0){callback=_context__WEBPACK_IMPORTED_MODULE_2__.NOOP}if(readOptions===void 0){readOptions={encoding:null,flag:"r"}}if(writeOptions===void 0){writeOptions={encoding:_constants__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_ENCODING,flag:"w",mode:438}}if(basename&&join&&mkdir&&resolve){_context.n=1;break}throw new Error("Could not load filesystem functions.");case 1:sourcePath=resolve(sourcePath);_t=!contents;if(!_t){_context.n=3;break}_context.n=2;return isDirectory(targetPath);case 2:_t=_context.v;case 3:if(!_t){_context.n=4;break}targetPath=resolve(targetPath,basename(sourcePath));case 4:_context.p=4;_context.n=5;return mkdir(targetPath);case 5:_context.n=7;break;case 6:_context.p=6;_t2=_context.v;if(!(_t2.code!=="EEXIST")){_context.n=7;break}throw _t2;case 7:_t3=_createForOfIteratorHelper;_context.n=8;return _walkDirectoryRecursively(sourcePath,callback);case 8:_iterator=_t3(_context.v);_context.p=9;_iterator.s();case 10:if((_step=_iterator.n()).done){_context.n=17;break}currentSourceFile=_step.value;currentTargetPath=join(targetPath,currentSourceFile.path.substring(sourcePath.length));if(!((_currentSourceFile$st=currentSourceFile.stats)!==null&&_currentSourceFile$st!==void 0&&_currentSourceFile$st.isDirectory())){_context.n=15;break}_context.p=11;_context.n=12;return mkdir(currentTargetPath);case 12:_context.n=14;break;case 13:_context.p=13;_t4=_context.v;if(!(_t4.code!=="EEXIST")){_context.n=14;break}throw _t4;case 14:_context.n=16;break;case 15:_context.n=16;return copyFile(currentSourceFile.path,currentTargetPath,readOptions,writeOptions);case 16:_context.n=10;break;case 17:_context.n=19;break;case 18:_context.p=18;_t5=_context.v;_iterator.e(_t5);case 19:_context.p=19;_iterator.f();return _context.f(19);case 20:return _context.a(2,targetPath)}},_callee,null,[[11,13],[9,18,19,20],[4,6]])}));function copyDirectoryRecursive(_x,_x2,_x3,_x4,_x5,_x6){return _copyDirectoryRecursive.apply(this,arguments)}return copyDirectoryRecursive}();/**
1114
- * Copies given source directory via path to given target directory location
1115
- * with same target name as source file has or copy to given complete target
1116
- * directory path.
1117
- * @param sourcePath - Path to directory to copy.
1118
- * @param targetPath - Target directory or complete directory location to copy
1119
- * in.
1120
- * @param contents - Indicates whether we only want to copy content of source
1121
- * path without recreating the sourcefile itself on target location.
1122
- * @param callback - Function to invoke for each traversed file.
1123
- * @param readOptions - Options to use for reading source file.
1124
- * @param writeOptions - Options to use for writing to target file.
1125
- * @returns Determined target directory path.
1126
- */var copyDirectoryRecursiveSync=function copyDirectoryRecursiveSync(sourcePath,targetPath,contents,callback,readOptions,writeOptions){if(contents===void 0){contents=false}if(callback===void 0){callback=_context__WEBPACK_IMPORTED_MODULE_2__.NOOP}if(readOptions===void 0){readOptions={encoding:null,flag:"r"}}if(writeOptions===void 0){writeOptions={encoding:_constants__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_ENCODING,flag:"w",mode:438}}if(!(basename&&join&&mkdirSync&&resolve))throw new Error("Could not load filesystem functions.");sourcePath=resolve(sourcePath);if(!contents&&isDirectorySync(targetPath))targetPath=resolve(targetPath,basename(sourcePath));// NOTE: Try/Check if target folder needs to be created.
1127
- try{mkdirSync(targetPath)}catch(error){if(error.code!=="EEXIST")throw error}for(var _i=0,_walkDirectoryRecursi=_walkDirectoryRecursivelySync(sourcePath,callback);_i<_walkDirectoryRecursi.length;_i++){var _currentSourceFile$st2;var currentSourceFile=_walkDirectoryRecursi[_i];var currentTargetPath=join(targetPath,currentSourceFile.path.substring(sourcePath.length));if((_currentSourceFile$st2=currentSourceFile.stats)!==null&&_currentSourceFile$st2!==void 0&&_currentSourceFile$st2.isDirectory())try{mkdirSync(currentTargetPath)}catch(error){if(error.code!=="EEXIST")throw error}else copyFileSync(currentSourceFile.path,currentTargetPath,readOptions,writeOptions)}return targetPath};/**
1128
- * Copies given source file via path to given target directory location with
1129
- * same target name as source file has or copy to given complete target file
1130
- * path.
1131
- * @param sourcePath - Path to file to copy.
1132
- * @param targetPath - Target directory or complete file location to copy to.
1133
- * @param readOptions - Options to use for reading source file.
1134
- * @param writeOptions - Options to use for writing to target file.
1135
- * @returns Determined target file path.
1136
- */var copyFile=/*#__PURE__*/function(){var _copyFile=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(sourcePath,targetPath,readOptions,writeOptions){var _t6,_t7;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:if(readOptions===void 0){readOptions={encoding:null,flag:"r"}}if(writeOptions===void 0){writeOptions={encoding:_constants__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_ENCODING,flag:"w",mode:438}}if(basename&&readFile&&resolve&&writeFile){_context2.n=1;break}throw new Error("Could not load filesystem functions.");case 1:_context2.n=2;return isDirectory(targetPath);case 2:if(!_context2.v){_context2.n=3;break}targetPath=resolve(targetPath,basename(sourcePath));case 3:_t6=writeFile;_t7=targetPath;_context2.n=4;return readFile(sourcePath,readOptions);case 4:_context2.n=5;return _t6(_t7,_context2.v,writeOptions);case 5:return _context2.a(2,targetPath)}},_callee2)}));function copyFile(_x7,_x8,_x9,_x0){return _copyFile.apply(this,arguments)}return copyFile}();/**
1137
- * Copies given source file via path to given target directory location with
1138
- * same target name as source file has or copy to given complete target file
1139
- * path.
1140
- * @param sourcePath - Path to file to copy.
1141
- * @param targetPath - Target directory or complete file location to copy to.
1142
- * @param readOptions - Options to use for reading source file.
1143
- * @param writeOptions - Options to use for writing to target file.
1144
- * @returns Determined target file path.
1145
- */var copyFileSync=function copyFileSync(sourcePath,targetPath,readOptions,writeOptions){if(readOptions===void 0){readOptions={encoding:null,flag:"r"}}if(writeOptions===void 0){writeOptions={encoding:_constants__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_ENCODING,flag:"w",mode:438}}if(!(basename&&readFileSync&&resolve&&writeFileSync))throw new Error("Could not load filesystem functions.");/*
1146
- NOTE: If target path references a directory a new file with the same
1147
- name will be created.
1148
- */if(isDirectorySync(targetPath))targetPath=resolve(targetPath,basename(sourcePath));writeFileSync(targetPath,readFileSync(sourcePath,readOptions),writeOptions);return targetPath};/**
1149
- * Checks if given path points to a valid directory.
1150
- * @param filePath - Path to directory.
1151
- * @returns A promise holding a boolean which indicates directory existence.
1152
- */var isDirectory=/*#__PURE__*/function(){var _isDirectory=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(filePath){var _t8;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:if(stat){_context3.n=1;break}throw new Error("Could not load filesystem functions.");case 1:_context3.p=1;_context3.n=2;return stat(filePath);case 2:return _context3.a(2,_context3.v.isDirectory());case 3:_context3.p=3;_t8=_context3.v;if(!(Object.prototype.hasOwnProperty.call(_t8,"code")&&["ENOENT","ENOTDIR"].includes(_t8.code))){_context3.n=4;break}return _context3.a(2,false);case 4:throw _t8;case 5:return _context3.a(2)}},_callee3,null,[[1,3]])}));function isDirectory(_x1){return _isDirectory.apply(this,arguments)}return isDirectory}();/**
1153
- * Checks if given path points to a valid directory.
1154
- * @param filePath - Path to directory.
1155
- * @returns A boolean which indicates directory existence.
1156
- */var isDirectorySync=function isDirectorySync(filePath){if(!statSync)throw new Error("Could not load filesystem functions.");try{return statSync(filePath).isDirectory()}catch(error){if(Object.prototype.hasOwnProperty.call(error,"code")&&["ENOENT","ENOTDIR"].includes(error.code))return false;throw error}};/**
1157
- * Checks if given path points to a valid file.
1158
- * @param filePath - Path to directory.
1159
- * @returns A promise holding a boolean which indicates directory existence.
1160
- */var isFile=/*#__PURE__*/function(){var _isFile=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(filePath){var _t9;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:if(stat){_context4.n=1;break}throw new Error("Could not load filesystem functions.");case 1:_context4.p=1;_context4.n=2;return stat(filePath);case 2:return _context4.a(2,_context4.v.isFile());case 3:_context4.p=3;_t9=_context4.v;if(!(Object.prototype.hasOwnProperty.call(_t9,"code")&&["ENOENT","ENOTDIR"].includes(_t9.code))){_context4.n=4;break}return _context4.a(2,false);case 4:throw _t9;case 5:return _context4.a(2)}},_callee4,null,[[1,3]])}));function isFile(_x10){return _isFile.apply(this,arguments)}return isFile}();/**
1161
- * Checks if given path points to a valid file.
1162
- * @param filePath - Path to file.
1163
- * @returns A boolean which indicates file existence.
1164
- */var isFileSync=function isFileSync(filePath){if(!statSync)throw new Error("Could not load filesystem functions.");try{return statSync(filePath).isFile()}catch(error){if(Object.prototype.hasOwnProperty.call(error,"code")&&["ENOENT","ENOTDIR"].includes(error.code))return false;throw error}};/**
1165
- * Iterates through given directory structure recursively and calls given
1166
- * callback for each found file. Callback gets file path and corresponding stat
1167
- * object as argument.
1168
- * @param directoryPath - Path to directory structure to traverse.
1169
- * @param callback - Function to invoke for each traversed file and potentially
1170
- * manipulate further traversing in alphabetical sorted order.
1171
- * If it returns "null" or a promise resolving to "null", no further files
1172
- * will be traversed afterward.
1173
- * If it handles a directory and returns "false" or a promise resolving to
1174
- * "false" no traversing into that directory will occur.
1175
- * @param options - Options to use for nested "readdir" calls.
1176
- * @returns A promise holding the determined files.
1177
- */var _walkDirectoryRecursively=/*#__PURE__*/function(){var _walkDirectoryRecursively2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(directoryPath,callback,options){var files,_iterator2,_step2,directoryEntry,filePath,_file,finalFiles,_i2,_files,_file$stats,file,result,_t0,_t1,_t10,_t11;return _regenerator().w(function(_context5){while(1)switch(_context5.p=_context5.n){case 0:if(callback===void 0){callback=null}if(options===void 0){options=_constants__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_ENCODING}if(readdir&&resolve&&stat){_context5.n=1;break}throw new Error("Could not load filesystem functions.");case 1:files=[];_t0=_createForOfIteratorHelper;_context5.n=2;return readdir(directoryPath,typeof options==="string"?{encoding:options,withFileTypes:true}:_objectSpread(_objectSpread({},options),{},{withFileTypes:true}));case 2:_iterator2=_t0(_context5.v);_context5.p=3;_iterator2.s();case 4:if((_step2=_iterator2.n()).done){_context5.n=10;break}directoryEntry=_step2.value;filePath=resolve(directoryPath,directoryEntry.name);_file={directoryPath:directoryPath,directoryEntry:directoryEntry,error:null,name:directoryEntry.name,path:filePath,stats:null};_context5.p=5;_context5.n=6;return stat(filePath);case 6:_file.stats=_context5.v;_context5.n=8;break;case 7:_context5.p=7;_t1=_context5.v;_file.error=_t1;case 8:files.push(_file);case 9:_context5.n=4;break;case 10:_context5.n=12;break;case 11:_context5.p=11;_t10=_context5.v;_iterator2.e(_t10);case 12:_context5.p=12;_iterator2.f();return _context5.f(12);case 13:if(callback)/*
1178
- NOTE: Directories and have to be iterated first to be able to
1179
- avoid deeper unwanted traversing.
1180
- */files.sort(function(firstFile,secondFile){var _firstFile$stats,_secondFile$stats2;if((_firstFile$stats=firstFile.stats)!==null&&_firstFile$stats!==void 0&&_firstFile$stats.isDirectory()){var _secondFile$stats;if((_secondFile$stats=secondFile.stats)!==null&&_secondFile$stats!==void 0&&_secondFile$stats.isDirectory())return 0;return-1}if((_secondFile$stats2=secondFile.stats)!==null&&_secondFile$stats2!==void 0&&_secondFile$stats2.isDirectory())return 1;return 0});finalFiles=[];_i2=0,_files=files;case 14:if(!(_i2<_files.length)){_context5.n=21;break}file=_files[_i2];finalFiles.push(file);result=callback?callback(file):undefined;if(!(result===null)){_context5.n=15;break}return _context5.a(3,21);case 15:if(!(_typeof(result)==="object"&&"then"in result)){_context5.n=17;break}_context5.n=16;return result;case 16:result=_context5.v;case 17:if(!(result===null)){_context5.n=18;break}return _context5.a(3,21);case 18:if(!(result!==false&&(_file$stats=file.stats)!==null&&_file$stats!==void 0&&_file$stats.isDirectory())){_context5.n=20;break}_t11=finalFiles;_context5.n=19;return _walkDirectoryRecursively(file.path,callback,options);case 19:finalFiles=_t11.concat.call(_t11,_context5.v);case 20:_i2++;_context5.n=14;break;case 21:return _context5.a(2,finalFiles)}},_callee5,null,[[5,7],[3,11,12,13]])}));function walkDirectoryRecursively(_x11,_x12,_x13){return _walkDirectoryRecursively2.apply(this,arguments)}return walkDirectoryRecursively}();/**
1181
- * Iterates through given directory structure recursively and calls given
1182
- * callback for each found file. Callback gets file path and corresponding
1183
- * stats object as argument.
1184
- * @param directoryPath - Path to directory structure to traverse.
1185
- * @param callback - Function to invoke for each traversed file.
1186
- * @param options - Options to use for nested "readdir" calls.
1187
- * @returns Determined list if all files.
1188
- */var _walkDirectoryRecursivelySync=function walkDirectoryRecursivelySync(directoryPath,callback,options){if(callback===void 0){callback=_context__WEBPACK_IMPORTED_MODULE_2__.NOOP}if(options===void 0){options=_constants__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_ENCODING}if(!(readdirSync&&resolve&&statSync))throw new Error("Could not load filesystem functions.");var files=[];var _iterator3=_createForOfIteratorHelper(readdirSync(directoryPath,typeof options==="string"?{encoding:options,withFileTypes:true}:_objectSpread(_objectSpread({},options),{},{withFileTypes:true}))),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var directoryEntry=_step3.value;var filePath=resolve(directoryPath,directoryEntry.name);var _file2={directoryPath:directoryPath,directoryEntry:directoryEntry,error:null,name:directoryEntry.name,path:filePath,stats:null};try{_file2.stats=statSync(filePath)}catch(error){_file2.error=error}files.push(_file2)}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}var finalFiles=[];if(callback){/*
1189
- NOTE: Directories have to be iterated first to potentially
1190
- avoid deeper iterations.
1191
- */files.sort(function(firstFile,secondFile){var _firstFile$stats2,_secondFile$stats4;if((_firstFile$stats2=firstFile.stats)!==null&&_firstFile$stats2!==void 0&&_firstFile$stats2.isDirectory()){var _secondFile$stats3;if((_secondFile$stats3=secondFile.stats)!==null&&_secondFile$stats3!==void 0&&_secondFile$stats3.isDirectory())return 0;return-1}if((_secondFile$stats4=secondFile.stats)!==null&&_secondFile$stats4!==void 0&&_secondFile$stats4.isDirectory())return 1;return 0});var _iterator4=_createForOfIteratorHelper(files),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _file$stats2;var file=_step4.value;finalFiles.push(file);var result=callback(file);if(result===null)break;if(result!==false&&(_file$stats2=file.stats)!==null&&_file$stats2!==void 0&&_file$stats2.isDirectory())finalFiles=finalFiles.concat(_walkDirectoryRecursivelySync(file.path,callback,options))}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}}return finalFiles};
1192
-
1193
- /***/ }),
1194
- /* 13 */
1195
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1196
-
1197
- "use strict";
1198
- __webpack_require__.r(__webpack_exports__);
1199
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1200
- /* harmony export */ debounce: function() { return /* binding */ debounce; },
1201
- /* harmony export */ preventDefault: function() { return /* binding */ preventDefault; },
1202
- /* harmony export */ stopPropagation: function() { return /* binding */ stopPropagation; },
1203
- /* harmony export */ timeout: function() { return /* binding */ timeout; },
1204
- /* harmony export */ trailingThrottle: function() { return /* binding */ trailingThrottle; }
1205
- /* harmony export */ });
1206
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
1207
- /* harmony import */ var _indicators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
1208
- // #!/usr/bin/env babel-node
1209
- // -*- coding: utf-8 -*-
1210
- /** @module utility *//* !
1211
- region header
1212
- [Project page](https://torben.website/clientnode)
1213
-
1214
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1215
-
1216
- License
1217
- -------
1218
-
1219
- This library written by Torben Sickert stands under a creative commons
1220
- naming 3.0 unported license.
1221
- See https://creativecommons.org/licenses/by/3.0/deed.de
1222
- endregion
1223
- */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 _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 _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 _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}/**
1224
- * Prevents event functions from triggering too often by defining a minimal
1225
- * span between each function call. Additional arguments given to this function
1226
- * will be forwarded to the given event function call.
1227
- * @param callback - The function to call debounced.
1228
- * @param thresholdInMilliseconds - The minimum time span between each
1229
- * function call.
1230
- * @param additionalArguments - Additional arguments to forward to given
1231
- * function.
1232
- * @returns Returns the wrapped method.
1233
- */var trailingThrottle=function trailingThrottle(callback,thresholdInMilliseconds){if(thresholdInMilliseconds===void 0){thresholdInMilliseconds=600}for(var _len=arguments.length,additionalArguments=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++){additionalArguments[_key-2]=arguments[_key]}var timeoutID=null;var recentParameters=[];return function(){for(var _len2=arguments.length,parameters=new Array(_len2),_key2=0;_key2<_len2;_key2++){parameters[_key2]=arguments[_key2]}recentParameters=parameters;if(timeoutID)return;timeoutID=setTimeout(function(){callback.apply(void 0,_toConsumableArray(recentParameters).concat(additionalArguments));// Reset for next cycle.
1234
- timeoutID=null;recentParameters=[]},thresholdInMilliseconds)}};/**
1235
- * Prevents event functions from triggering too close after each trigger by
1236
- * defining a minimal span between each function call. Additional arguments
1237
- * given to this function will be forwarded to the given event function call.
1238
- * @param callback - The function to call debounced.
1239
- * @param thresholdInMilliseconds - The minimum time span between each
1240
- * function call.
1241
- * @param additionalArguments - Additional arguments to forward to given
1242
- * function.
1243
- * @returns Returns the wrapped method.
1244
- */var debounce=function debounce(callback,thresholdInMilliseconds){if(thresholdInMilliseconds===void 0){thresholdInMilliseconds=600}for(var _len3=arguments.length,additionalArguments=new Array(_len3>2?_len3-2:0),_key3=2;_key3<_len3;_key3++){additionalArguments[_key3-2]=arguments[_key3]}var timeoutPromise;var nextResultPromiseResolver;var nextResultPromise=new Promise(function(resolve){nextResultPromiseResolver=resolve});return function(){var _timeoutPromise;for(var _len4=arguments.length,parameters=new Array(_len4),_key4=0;_key4<_len4;_key4++){parameters[_key4]=arguments[_key4]}parameters=parameters.concat(additionalArguments);(_timeoutPromise=timeoutPromise)===null||_timeoutPromise===void 0||_timeoutPromise.clear();timeoutPromise=timeout(function(){nextResultPromiseResolver(callback.apply(void 0,_toConsumableArray(parameters)));nextResultPromise=new Promise(function(resolve){nextResultPromiseResolver=resolve})},thresholdInMilliseconds);return nextResultPromise}};/**
1245
- * Triggers given callback after given duration. Supports unlimited
1246
- * duration length and returns a promise which will be resolved after given
1247
- * duration has been passed.
1248
- * @param parameters - Observes the first three existing parameters. If one
1249
- * is a number it will be interpreted as delay in milliseconds until given
1250
- * callback will be triggered. If one is of type function it will be used
1251
- * as callback and if one is of type boolean it will indicate if returning
1252
- * promise should be rejected or resolved if given internally created
1253
- * timeout should be canceled. Additional parameters will be forwarded to
1254
- * given callback.
1255
- * @returns A promise resolving after given delay or being rejected if
1256
- * value "true" is within one of the first three parameters. The promise
1257
- * holds a boolean indicating whether timeout has been canceled or
1258
- * resolved.
1259
- */var timeout=function timeout(){for(var _len5=arguments.length,parameters=new Array(_len5),_key5=0;_key5<_len5;_key5++){parameters[_key5]=arguments[_key5]}var callback=_context__WEBPACK_IMPORTED_MODULE_0__.NOOP;var delayInMilliseconds=0;var throwOnTimeoutClear=false;for(var _i=0,_parameters=parameters;_i<_parameters.length;_i++){var value=_parameters[_i];if(typeof value==="number"&&!isNaN(value))delayInMilliseconds=value;else if(typeof value==="boolean")throwOnTimeoutClear=value;else if((0,_indicators__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value))callback=value}var rejectCallback;var resolveCallback;var result=new Promise(function(resolve,reject){rejectCallback=reject;resolveCallback=resolve});var wrappedCallback=function wrappedCallback(){var _callback;(_callback=callback).call.apply(_callback,[result].concat(parameters));resolveCallback(false)};var maximumTimeoutDelayInMilliseconds=2147483647;if(delayInMilliseconds<=maximumTimeoutDelayInMilliseconds)result.timeoutID=setTimeout(wrappedCallback,delayInMilliseconds);else{/*
1260
- Determine the number of times we need to delay by maximum
1261
- possible timeout duration.
1262
- */var numberOfRemainingTimeouts=Math.floor(delayInMilliseconds/maximumTimeoutDelayInMilliseconds);var finalTimeoutDuration=delayInMilliseconds%maximumTimeoutDelayInMilliseconds;var _delay=function delay(){if(numberOfRemainingTimeouts>0){numberOfRemainingTimeouts-=1;result.timeoutID=setTimeout(_delay,maximumTimeoutDelayInMilliseconds)}else result.timeoutID=setTimeout(wrappedCallback,finalTimeoutDuration)};_delay()}result.clear=function(){if(Object.prototype.hasOwnProperty.call(result,"timeoutID")){clearTimeout(result.timeoutID);(throwOnTimeoutClear?rejectCallback:resolveCallback)(true)}};return result};var preventDefault=function preventDefault(event){event.preventDefault()};var stopPropagation=function stopPropagation(event){event.stopPropagation()};
1263
-
1264
- /***/ }),
1265
- /* 14 */
1266
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1267
-
1268
- "use strict";
1269
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1270
- /* harmony export */ isAndExpression: function() { return /* binding */ isAndExpression; },
1271
- /* harmony export */ isArrayContainsExpression: function() { return /* binding */ isArrayContainsExpression; },
1272
- /* harmony export */ isConcatExpression: function() { return /* binding */ isConcatExpression; },
1273
- /* harmony export */ isCondition: function() { return /* binding */ isCondition; },
1274
- /* harmony export */ isIfExpression: function() { return /* binding */ isIfExpression; },
1275
- /* harmony export */ isMappingExpression: function() { return /* binding */ isMappingExpression; },
1276
- /* harmony export */ isOperation: function() { return /* binding */ isOperation; },
1277
- /* harmony export */ isOrExpression: function() { return /* binding */ isOrExpression; },
1278
- /* harmony export */ isSelector: function() { return /* binding */ isSelector; },
1279
- /* harmony export */ isSpecificExpression: function() { return /* binding */ isSpecificExpression; },
1280
- /* harmony export */ isSwitchExpression: function() { return /* binding */ isSwitchExpression; },
1281
- /* harmony export */ isUnaryOperation: function() { return /* binding */ isUnaryOperation; },
1282
- /* harmony export */ isValue: function() { return /* binding */ isValue; }
1283
- /* harmony export */ });
1284
- /* harmony import */ var _indicators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
1285
- // #!/usr/bin/env babel-node
1286
- // -*- coding: utf-8 -*-
1287
6
  /* !
1288
7
  region header
1289
8
  [Project page](https://torben.website/clientnode)
@@ -1293,1434 +12,32 @@ timeoutID=null;recentParameters=[]},thresholdInMilliseconds)}};/**
1293
12
  License
1294
13
  -------
1295
14
 
1296
- This library written by Torben Sickert stands under a creative commons
1297
- naming 3.0 unported license.
1298
- See https://creativecommons.org/licenses/by/3.0/deed.de
1299
- endregion
1300
- */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}var isSpecificExpression=function isSpecificExpression(expression,indicatorKey,properties){if(properties===void 0){properties=[]}if(!((0,_indicators__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(expression)&&Object.prototype.hasOwnProperty.call(expression,indicatorKey)))return false;var _iterator=_createForOfIteratorHelper(properties),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var name=_step.value;if(!Object.prototype.hasOwnProperty.call(expression,name))return false}}catch(err){_iterator.e(err)}finally{_iterator.f()}return true};var isCondition=function isCondition(expression){return isSpecificExpression(expression,"$comparator",["value1","value2"])};var isAndExpression=function isAndExpression(expression){return isSpecificExpression(expression,"$and")};var isOrExpression=function isOrExpression(expression){return isSpecificExpression(expression,"$or")};var isConcatExpression=function isConcatExpression(expression){return isSpecificExpression(expression,"$concat")};var isMappingExpression=function isMappingExpression(expression){return isSpecificExpression(expression,"$mapping",["data"])};var isOperation=function isOperation(expression){return isSpecificExpression(expression,"$operator",["operand1","operand2"])};var isUnaryOperation=function isUnaryOperation(expression){return isSpecificExpression(expression,"$operator",["operand"])};var isIfExpression=function isIfExpression(expression){return isSpecificExpression(expression,"$if")};var isSwitchExpression=function isSwitchExpression(expression){return isSpecificExpression(expression,"$switch")};var isSelector=function isSelector(expression){return isSpecificExpression(expression,"$select")};var isArrayContainsExpression=function isArrayContainsExpression(expression){return isSpecificExpression(expression,"$arrayContains")};var isValue=function isValue(expression){return!(isSelector(expression)||isCondition(expression)||isUnaryOperation(expression)||isOperation(expression)||isAndExpression(expression)||isOrExpression(expression)||isConcatExpression(expression)||isMappingExpression(expression)||isIfExpression(expression)||isSwitchExpression(expression)||isArrayContainsExpression(expression))};
1301
-
1302
- /***/ }),
1303
- /* 15 */
1304
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1305
-
1306
- "use strict";
1307
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1308
- /* harmony export */ CLI_COLOR: function() { return /* binding */ CLI_COLOR; }
1309
- /* harmony export */ });
1310
- // #!/usr/bin/env babel-node
1311
- // -*- coding: utf-8 -*-
1312
- /** @module cli *//* !
1313
- region header
1314
- [Project page](https://torben.website/clientnode)
1315
-
1316
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1317
-
1318
- License
1319
- -------
1320
-
1321
- This library written by Torben Sickert stands under a creative commons
1322
- naming 3.0 unported license.
1323
- See https://creativecommons.org/licenses/by/3.0/deed.de
1324
- endregion
1325
- */var CLI_COLOR={black:"\x1B[30m",blink:"\x1B[5m",blue:"\x1B[0;34m",bold:"\x1B[1m",cyan:"\x1B[36m",darkGray:"\x1B[0;90m",default:"\x1B[0m",dim:"\x1B[2m",green:"\x1B[32m",invert:"\x1B[7m",invisible:"\x1B[8m",lightBlue:"\x1B[0;94m",lightCyan:"\x1B[0;96m",lightGray:"\x1B[0;37m",lightGreen:"\x1B[0;92m",lightMagenta:"\x1B[0;95m",lightRed:"\x1B[0;91m",lightYellow:"\x1B[0;93m",magenta:"\x1B[35m",nodim:"\x1B[22m",noblink:"\x1B[25m",nobold:"\x1B[21m",noinvert:"\x1B[27m",noinvisible:"\x1B[28m",nounderline:"\x1B[24m",red:"\x1B[31m",underline:"\x1B[4m",white:"\x1B[37m",yellow:"\x1B[33m"};
1326
-
1327
- /***/ }),
1328
- /* 16 */
1329
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1330
-
1331
- "use strict";
1332
- __webpack_require__.r(__webpack_exports__);
1333
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1334
- /* harmony export */ LEVELS: function() { return /* binding */ LEVELS; },
1335
- /* harmony export */ LEVELS_COLOR: function() { return /* binding */ LEVELS_COLOR; },
1336
- /* harmony export */ Logger: function() { return /* binding */ Logger; }
1337
- /* harmony export */ });
1338
- /* harmony import */ var _cli__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
1339
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
1340
- /* harmony import */ var _indicators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
1341
- /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
1342
- // #!/usr/bin/env babel-node
1343
- // -*- coding: utf-8 -*-
1344
- /** @module Logger *//* !
1345
- region header
1346
- [Project page](https://torben.website/clientnode)
1347
-
1348
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1349
-
1350
- License
1351
- -------
1352
-
1353
- This library written by Torben Sickert stands under a creative commons
1354
- naming 3.0 unported license.
1355
- See https://creativecommons.org/licenses/by/3.0/deed.de
1356
- endregion
1357
- */var _Logger;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 _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 _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 _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),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)}var LEVELS=["error","critical","warn","info","debug"];var LEVELS_COLOR=[_cli__WEBPACK_IMPORTED_MODULE_0__.CLI_COLOR.red,_cli__WEBPACK_IMPORTED_MODULE_0__.CLI_COLOR.magenta,_cli__WEBPACK_IMPORTED_MODULE_0__.CLI_COLOR.yellow,_cli__WEBPACK_IMPORTED_MODULE_0__.CLI_COLOR.green,_cli__WEBPACK_IMPORTED_MODULE_0__.CLI_COLOR.blue];/**
1358
- * This plugin provides such interface logic like generic controller logic for
1359
- * integrating plugins into $, mutual exclusion for dependent gui elements,
1360
- * logging additional string, array or function handling. A set of helper
1361
- * functions to parse option objects dom trees or handle events is also
1362
- * provided.
1363
- * @property level - Logging level.
1364
- * @property name - Logger description.
1365
- */var Logger=/*#__PURE__*/function(){/**
1366
- * Initializes logger.
1367
- * @param options - Options to set.
1368
- */function Logger(options){if(options===void 0){options={}}_classCallCheck(this,Logger);_defineProperty(this,"level",Logger.defaultLevel);_defineProperty(this,"name",Logger.defaultName);this.configure(options);Logger.instances[this.name]=this}/**
1369
- * Configures logger.
1370
- * @param options - Options to set.
1371
- * @param options.name - Description of the logger instance.
1372
- * @param options.level - Logging level to configure.
1373
- */return _createClass(Logger,[{key:"configure",value:function configure(_ref){var name=_ref.name,level=_ref.level;if(level)this.level=level;else this.level=Logger.defaultLevel;if(name)this.name=name;else this.name=Logger.defaultName}/**
1374
- * Shows the given object's representation in the browsers console if
1375
- * possible or in a standalone alert-window as fallback.
1376
- * @param object - Any object to print.
1377
- * @param force - If set to "true" given input will be shown independently
1378
- * of current logging configuration or interpreter's console
1379
- * implementation.
1380
- * @param avoidAnnotation - If set to "true" given input has no module or
1381
- * log level specific annotations.
1382
- * @param level - Description of log messages importance.
1383
- * @param additionalArguments - Additional values to print.
1384
- */},{key:"log",value:function log(object,force,avoidAnnotation,level){if(force===void 0){force=false}if(avoidAnnotation===void 0){avoidAnnotation=false}if(level===void 0){level="info"}var currentLevelIndex=LEVELS.indexOf(this.level);var levelIndex=LEVELS.indexOf(level);if(force||currentLevelIndex>=levelIndex){var _globalContext$consol;var messages=[];var annotation="".concat(LEVELS_COLOR[levelIndex]).concat(level)+"".concat(_cli__WEBPACK_IMPORTED_MODULE_0__.CLI_COLOR.default,":").concat(this.name,":")+"".concat(new Date().toISOString(),":");for(var _len=arguments.length,additionalArguments=new Array(_len>4?_len-4:0),_key=4;_key<_len;_key++){additionalArguments[_key-4]=arguments[_key]}if(avoidAnnotation)messages.push(object);else if(typeof object==="string")messages.push.apply(messages,[annotation,object].concat(additionalArguments));else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isNumeric)(object)||typeof object==="boolean")messages.push.apply(messages,[annotation,object.toString()].concat(additionalArguments));else{var multiLineAnnotation=annotation.substring(0,annotation.length-1);var lineLength=79-2;// Color codes are invisible so we have to add it.
1385
- var remainingLength=lineLength+LEVELS_COLOR[levelIndex].length+_cli__WEBPACK_IMPORTED_MODULE_0__.CLI_COLOR.default.length-multiLineAnnotation.length;var halfRemainingLength=Math.floor(remainingLength/2);this.log(",".concat("-".repeat(halfRemainingLength))+multiLineAnnotation+"-".repeat(halfRemainingLength)+"".concat("-".repeat(remainingLength%2),","),force,true,level);this.log(object,force,true,level);this.log("'".concat("-".repeat(lineLength),"'"),force,true,level)}if(messages.length)if(!(_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.console&&level in _context__WEBPACK_IMPORTED_MODULE_1__.globalContext.console)||_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.console[level]===_context__WEBPACK_IMPORTED_MODULE_1__.NOOP){var _globalContext$window;if(Object.prototype.hasOwnProperty.call(_context__WEBPACK_IMPORTED_MODULE_1__.globalContext,"window")&&Object.prototype.hasOwnProperty.call(_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.window,"alert"))(_globalContext$window=_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.window)===null||_globalContext$window===void 0||_globalContext$window.alert(messages.join(" "))}else(_globalContext$consol=_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.console)[level].apply(_globalContext$consol,messages)}}/**
1386
- * Wrapper method for the native console method usually provided by
1387
- * interpreter.
1388
- * @param object - Any object to print.
1389
- * @param additionalArguments - Additional arguments are used for string
1390
- * formatting.
1391
- */},{key:"info",value:function info(object){for(var _len2=arguments.length,additionalArguments=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){additionalArguments[_key2-1]=arguments[_key2]}this.log.apply(this,[object,false,false,"info"].concat(additionalArguments))}/**
1392
- * Wrapper method for the native console method usually provided by
1393
- * interpreter.
1394
- * @param object - Any object to print.
1395
- * @param additionalArguments - Additional arguments are used for string
1396
- * formatting.
1397
- */},{key:"debug",value:function debug(object){for(var _len3=arguments.length,additionalArguments=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++){additionalArguments[_key3-1]=arguments[_key3]}this.log.apply(this,[object,false,false,"debug"].concat(additionalArguments))}/**
1398
- * Wrapper method for the native console method usually provided by
1399
- * interpreter.
1400
- * @param object - Any object to print.
1401
- * @param additionalArguments - Additional arguments are used for string
1402
- * formatting.
1403
- */},{key:"error",value:function error(object){for(var _len4=arguments.length,additionalArguments=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++){additionalArguments[_key4-1]=arguments[_key4]}this.log.apply(this,[object,true,false,"error"].concat(additionalArguments))}/**
1404
- * Wrapper method for the native console method usually provided by
1405
- * interpreter.
1406
- * @param object - Any object to print.
1407
- * @param additionalArguments - Additional arguments are used for string
1408
- * formatting.
1409
- */},{key:"critical",value:function critical(object){for(var _len5=arguments.length,additionalArguments=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++){additionalArguments[_key5-1]=arguments[_key5]}this.log.apply(this,[object,true,false,"warn"].concat(additionalArguments))}/**
1410
- * Wrapper method for the native console method usually provided by
1411
- * interpreter.
1412
- * @param object - Any object to print.
1413
- * @param additionalArguments - Additional arguments are used for string
1414
- * formatting.
1415
- */},{key:"warn",value:function warn(object){for(var _len6=arguments.length,additionalArguments=new Array(_len6>1?_len6-1:0),_key6=1;_key6<_len6;_key6++){additionalArguments[_key6-1]=arguments[_key6]}this.log.apply(this,[object,false,false,"warn"].concat(additionalArguments))}/**
1416
- * Dumps a given object in a human-readable format.
1417
- * @param object - Any object to show.
1418
- * @param level - Number of levels to dig into given object recursively.
1419
- * @param currentLevel - Maximal number of recursive function calls to
1420
- * represent given object.
1421
- * @returns Returns the serialized version of given object.
1422
- */}],[{key:"configureAllInstances",value:/**
1423
- * Configures all logger instances.
1424
- * @param options - Options to set.
1425
- */function configureAllInstances(options){if(options===void 0){options={}}if(options.level)Logger.defaultLevel=options.level;if(options.name)Logger.defaultName=options.name;for(var _i=0,_Object$values=Object.values(Logger.instances);_i<_Object$values.length;_i++){var logger=_Object$values[_i];logger.configure(options)}}},{key:"show",value:function show(object,level,currentLevel){if(level===void 0){level=3}if(currentLevel===void 0){currentLevel=0}var output="";if((0,_object__WEBPACK_IMPORTED_MODULE_3__.determineType)(object)==="object"){for(var _i2=0,_Object$entries=Object.entries(object);_i2<_Object$entries.length;_i2++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i2],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];output+="".concat(key,": ");if(currentLevel<=level)output+=Logger.show(value,level,currentLevel+1);else output+=String(value);output+="\n"}return output.trim()}output=String(object).trim();return"".concat(output," (Type: \"").concat((0,_object__WEBPACK_IMPORTED_MODULE_3__.determineType)(object),"\")")}}])}();_Logger=Logger;_defineProperty(Logger,"defaultLevel","warn");_defineProperty(Logger,"defaultName","app");_defineProperty(Logger,"selfClass",_Logger);_defineProperty(Logger,"instances",{});_defineProperty(Logger,"runtimeVersion",Math.random());/* harmony default export */ __webpack_exports__["default"] = (Logger);
1426
-
1427
- /***/ }),
1428
- /* 17 */
1429
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1430
-
1431
- "use strict";
1432
- __webpack_require__.r(__webpack_exports__);
1433
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1434
- /* harmony export */ aggregatePropertyIfEqual: function() { return /* binding */ aggregatePropertyIfEqual; },
1435
- /* harmony export */ deleteEmptyItems: function() { return /* binding */ deleteEmptyItems; },
1436
- /* harmony export */ extract: function() { return /* binding */ extract; },
1437
- /* harmony export */ extractIfMatches: function() { return /* binding */ extractIfMatches; },
1438
- /* harmony export */ extractIfPropertyExists: function() { return /* binding */ extractIfPropertyExists; },
1439
- /* harmony export */ extractIfPropertyMatches: function() { return /* binding */ extractIfPropertyMatches; },
1440
- /* harmony export */ intersect: function() { return /* binding */ intersect; },
1441
- /* harmony export */ makeArray: function() { return /* binding */ makeArray; },
1442
- /* harmony export */ makeRange: function() { return /* binding */ makeRange; },
1443
- /* harmony export */ merge: function() { return /* binding */ merge; },
1444
- /* harmony export */ paginate: function() { return /* binding */ paginate; },
1445
- /* harmony export */ permute: function() { return /* binding */ _permute2; },
1446
- /* harmony export */ permuteLength: function() { return /* binding */ permuteLength; },
1447
- /* harmony export */ removeArrayItem: function() { return /* binding */ removeArrayItem; },
1448
- /* harmony export */ sortTopological: function() { return /* binding */ sortTopological; },
1449
- /* harmony export */ sumUpProperty: function() { return /* binding */ sumUpProperty; },
1450
- /* harmony export */ unique: function() { return /* binding */ unique; }
1451
- /* harmony export */ });
1452
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1453
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
1454
- /* harmony import */ var _indicators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
1455
- // #!/usr/bin/env babel-node
1456
- // -*- coding: utf-8 -*-
1457
- /** @module array *//* !
1458
- region header
1459
- [Project page](https://torben.website/clientnode)
1460
-
1461
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1462
-
1463
- License
1464
- -------
1465
-
1466
- This library written by Torben Sickert stands under a creative commons
1467
- naming 3.0 unported license.
1468
- See https://creativecommons.org/licenses/by/3.0/deed.de
1469
- endregion
1470
- */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 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 _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 _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 _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 _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 _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}/**
1471
- * Summarizes given property of given item list.
1472
- * @param data - Array of objects with given property name.
1473
- * @param propertyName - Property name to summarize.
1474
- * @param defaultValue - Value to return if property values doesn't match.
1475
- * @returns Aggregated value.
1476
- */var aggregatePropertyIfEqual=function aggregatePropertyIfEqual(data,propertyName,defaultValue){if(defaultValue===void 0){defaultValue=""}var result=defaultValue;if(Array.isArray(data)&&data.length&&Object.prototype.hasOwnProperty.call(data[0],propertyName)){result=data[0][propertyName];for(var _i=0,_makeArray=makeArray(data);_i<_makeArray.length;_i++){var item=_makeArray[_i];if(item[propertyName]!==result)return defaultValue}}return result};/**
1477
- * Deletes every item witch has only empty attributes for given property names.
1478
- * If given property names are empty each attribute will be considered. The
1479
- * empty string, "null" and "undefined" will be interpreted as empty.
1480
- * @param data - Data to filter.
1481
- * @param propertyNames - Properties to consider.
1482
- * @returns Given data without empty items.
1483
- */var deleteEmptyItems=function deleteEmptyItems(data,propertyNames){if(propertyNames===void 0){propertyNames=[]}var result=[];for(var _i2=0,_makeArray2=makeArray(data);_i2<_makeArray2.length;_i2++){var item=_makeArray2[_i2];var empty=true;for(var _i3=0,_Object$entries=Object.entries(item);_i3<_Object$entries.length;_i3++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i3],2),propertyName=_Object$entries$_i[0],value=_Object$entries$_i[1];if(!["",null,undefined].includes(value)&&(!propertyNames.length||makeArray(propertyNames).includes(propertyName))){empty=false;break}}if(!empty)result.push(item)}return result};/**
1484
- * Extracts all properties from all items which occur in given property names.
1485
- * @param data - Data where each item should be sliced.
1486
- * @param propertyNames - Property names to extract.
1487
- * @returns Data with sliced items.
1488
- */var extract=function extract(data,propertyNames){var result=[];for(var _i4=0,_makeArray3=makeArray(data);_i4<_makeArray3.length;_i4++){var item=_makeArray3[_i4];var newItem={};for(var _i5=0,_makeArray4=makeArray(propertyNames);_i5<_makeArray4.length;_i5++){var propertyName=_makeArray4[_i5];if(Object.prototype.hasOwnProperty.call(item,propertyName))newItem[propertyName]=item[propertyName]}result.push(newItem)}return result};/**
1489
- * Extracts all values which matches given regular expression.
1490
- * @param data - Data to filter.
1491
- * @param regularExpression - Pattern to match for.
1492
- * @returns Filtered data.
1493
- */var extractIfMatches=function extractIfMatches(data,regularExpression){if(!regularExpression)return makeArray(data);var result=[];for(var _i6=0,_makeArray5=makeArray(data);_i6<_makeArray5.length;_i6++){var value=_makeArray5[_i6];if((typeof regularExpression==="string"?new RegExp(regularExpression):regularExpression).test(value))result.push(value)}return result};/**
1494
- * Filters given data if given property is set or not.
1495
- * @param data - Data to filter.
1496
- * @param propertyName - Property name to check for existence.
1497
- * @returns Given data without the items which doesn't have specified property.
1498
- */var extractIfPropertyExists=function extractIfPropertyExists(data,propertyName){if(data&&propertyName){var result=[];for(var _i7=0,_makeArray6=makeArray(data);_i7<_makeArray6.length;_i7++){var item=_makeArray6[_i7];var exists=false;for(var _i8=0,_Object$entries2=Object.entries(item);_i8<_Object$entries2.length;_i8++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i8],2),key=_Object$entries2$_i[0],value=_Object$entries2$_i[1];if(key===propertyName&&![null,undefined].includes(value)){exists=true;break}}if(exists)result.push(item)}return result}return data};/**
1499
- * Extract given data where specified property value matches given patterns.
1500
- * @param data - Data to filter.
1501
- * @param propertyPattern - Mapping of property names to pattern.
1502
- * @returns Filtered data.
1503
- */var extractIfPropertyMatches=function extractIfPropertyMatches(data,propertyPattern){if(data){var result=[];for(var _i9=0,_makeArray7=makeArray(data);_i9<_makeArray7.length;_i9++){var item=_makeArray7[_i9];var matches=true;for(var propertyName in propertyPattern)if(!(propertyPattern[propertyName]&&(typeof propertyPattern[propertyName]==="string"?new RegExp(propertyPattern[propertyName]):propertyPattern[propertyName]).test(item[propertyName]))){matches=false;break}if(matches)result.push(item)}return result}return data};/**
1504
- * Determines all objects which exists in "first" and in "second".
1505
- * Object key which will be compared are given by "keys". If an empty array is
1506
- * given each key will be compared. If an object is given corresponding initial
1507
- * data key will be mapped to referenced new data key.
1508
- * @param first - Referenced data to check for.
1509
- * @param second - Data to check for existence.
1510
- * @param keys - Keys to define equality.
1511
- * @param strict - The strict parameter indicates whether "null" and
1512
- * "undefined" should be interpreted as equal (takes only effect if given keys
1513
- * aren't empty).
1514
- * @returns Data which does exit in given initial data.
1515
- */var intersect=function intersect(first,second,keys,strict){if(keys===void 0){keys=[]}if(strict===void 0){strict=true}var containingData=[];second=makeArray(second);var intersectItem=function intersectItem(firstItem,secondItem,firstKey,secondKey,keysAreAnArray,iterateGivenKeys){if(iterateGivenKeys){if(keysAreAnArray)firstKey=secondKey}else secondKey=firstKey;if(secondItem[secondKey]!==firstItem[firstKey]&&(strict||!([null,undefined].includes(secondItem[secondKey])&&[null,undefined].includes(firstItem[firstKey]))))return false};for(var _i0=0,_makeArray8=makeArray(first);_i0<_makeArray8.length;_i0++){var firstItem=_makeArray8[_i0];if((0,_indicators__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(firstItem))for(var _i1=0,_arr=second;_i1<_arr.length;_i1++){var secondItem=_arr[_i1];var exists=true;var iterateGivenKeys=void 0;var keysAreAnArray=Array.isArray(keys);if((0,_indicators__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(keys)||keysAreAnArray&&keys.length)iterateGivenKeys=true;else{iterateGivenKeys=false;keys=firstItem}if(Array.isArray(keys)){var index=0;var _iterator=_createForOfIteratorHelper(keys),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var key=_step.value;if(intersectItem(firstItem,secondItem,index,key,keysAreAnArray,iterateGivenKeys)===false){exists=false;break}index+=1}}catch(err){_iterator.e(err)}finally{_iterator.f()}}else for(var _i10=0,_Object$entries3=Object.entries(keys);_i10<_Object$entries3.length;_i10++){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i10],2),_key=_Object$entries3$_i[0],value=_Object$entries3$_i[1];if(intersectItem(firstItem,secondItem,_key,value,keysAreAnArray,iterateGivenKeys)===false){exists=false;break}}if(exists){containingData.push(firstItem);break}}else if(second.includes(firstItem))containingData.push(firstItem)}return containingData};/**
1516
- * Converts given object into an array.
1517
- * @param object - Target to convert.
1518
- * @returns Generated array.
1519
- */var makeArray=function makeArray(object){var result=[];if(![null,undefined].includes(object))if((0,_indicators__WEBPACK_IMPORTED_MODULE_1__.isArrayLike)(Object(object)))merge(result,typeof object==="string"?[object]:object);else result.push(object);return result};/**
1520
- * Creates a list of items within given range.
1521
- * @param range - Array of lower and upper bounds. If only one value is given
1522
- * lower bound will be assumed to be zero. Both integers have to be positive
1523
- * and will be contained in the resulting array. If more than two numbers are
1524
- * provided given range will be returned.
1525
- * @param step - Space between two consecutive values.
1526
- * @param ignoreLastStep - Removes last step.
1527
- * @returns Produced array of integers.
1528
- */var makeRange=function makeRange(range,step,ignoreLastStep){if(step===void 0){step=1}if(ignoreLastStep===void 0){ignoreLastStep=false}range=[].concat(range);var index;var higherBound;if(range.length===1){index=0;higherBound=parseInt(String(range[0]),10)}else if(range.length===2){index=parseInt(String(range[0]),10);higherBound=parseInt(String(range[1]),10)}else return range;if(higherBound<index)return[];var result=[index];while(index<=higherBound-step){index+=step;if(!ignoreLastStep||index<=higherBound-step)result.push(index)}return result};/**
1529
- * Merge the contents of two arrays together into the first array.
1530
- * @param target - Target array.
1531
- * @param source - Source array.
1532
- * @returns Target array with merged given source one.
1533
- */var merge=function merge(target,source){if(!Array.isArray(source))source=Array.prototype.slice.call(source);var _iterator2=_createForOfIteratorHelper(source),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var value=_step2.value;target.push(value)}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}return target};/**
1534
- * Generates a list if pagination symbols to render a pagination from.
1535
- * @param options - Configure bounds and current page of pagination to
1536
- * determine.
1537
- * @param options.boundaryCount - Indicates where to start pagination within
1538
- * given total range.
1539
- * @param options.disabled - Indicates whether to disable all items.
1540
- * @param options.hideNextButton - Indicates whether to show a jump to next
1541
- * item.
1542
- * @param options.hidePrevButton - Indicates whether to show a jump to previous
1543
- * item.
1544
- * @param options.page - Indicates current visible page.
1545
- * @param options.pageSize - Number of items per page.
1546
- * @param options.showFirstButton - Indicates whether to show a jump to first
1547
- * item.
1548
- * @param options.showLastButton - Indicates whether to show a jump to last
1549
- * item.
1550
- * @param options.siblingCount - Number of sibling page symbols next to current
1551
- * page symbol.
1552
- * @param options.total - Number of all items to paginate.
1553
- * @returns A list of pagination symbols.
1554
- */var paginate=function paginate(options){if(options===void 0){options={}}var _options=options,_options$boundaryCoun=_options.boundaryCount,boundaryCount=_options$boundaryCoun===void 0?1:_options$boundaryCoun,_options$disabled=_options.disabled,disabled=_options$disabled===void 0?false:_options$disabled,_options$hideNextButt=_options.hideNextButton,hideNextButton=_options$hideNextButt===void 0?false:_options$hideNextButt,_options$hidePrevButt=_options.hidePrevButton,hidePrevButton=_options$hidePrevButt===void 0?false:_options$hidePrevButt,_options$page=_options.page,page=_options$page===void 0?1:_options$page,_options$pageSize=_options.pageSize,pageSize=_options$pageSize===void 0?5:_options$pageSize,_options$showFirstBut=_options.showFirstButton,showFirstButton=_options$showFirstBut===void 0?false:_options$showFirstBut,_options$showLastButt=_options.showLastButton,showLastButton=_options$showLastButt===void 0?false:_options$showLastButt,_options$siblingCount=_options.siblingCount,siblingCount=_options$siblingCount===void 0?4:_options$siblingCount,_options$total=_options.total,total=_options$total===void 0?100:_options$total;var numberOfPages=typeof pageSize==="number"&&!isNaN(pageSize)?Math.ceil(total/pageSize):total;var startPages=makeRange([1,Math.min(boundaryCount,numberOfPages)]);var endPages=makeRange([Math.max(numberOfPages-boundaryCount+1,boundaryCount+1),numberOfPages]);var siblingsStart=Math.max(Math.min(// Left boundary for lower pages.
1555
- page-siblingCount,// Lower boundary for higher pages.
1556
- numberOfPages-boundaryCount-siblingCount*2-1),// If number is greater than number of "startPages".
1557
- boundaryCount+2);var siblingsEnd=Math.min(Math.max(// Right bound for higher pages.
1558
- page+siblingCount,// Upper boundary for lower pages.
1559
- boundaryCount+siblingCount*2+2),// If number is less than number of "endPages".
1560
- endPages.length>0?endPages[0]-2:numberOfPages-1);/*
1561
- Symbol list of items to render represent as pagination.
1562
-
1563
- Example result:
1564
-
1565
- [
1566
- 'first', 'previous',
1567
- 1,
1568
- 'start-ellipsis',
1569
- 4, 5, 6,
1570
- 'end-ellipsis',
1571
- 10,
1572
- 'next', 'last'
1573
- ]
1574
- */return[].concat(_toConsumableArray(showFirstButton?["first"]:[]),_toConsumableArray(hidePrevButton?[]:["previous"]),_toConsumableArray(startPages),_toConsumableArray(siblingsStart>boundaryCount+2?["start-ellipsis"]:boundaryCount+1<numberOfPages-boundaryCount?[boundaryCount+1]:[]),_toConsumableArray(makeRange([siblingsStart,siblingsEnd])),_toConsumableArray(siblingsEnd<numberOfPages-boundaryCount-1?["end-ellipsis"]:numberOfPages-boundaryCount>boundaryCount?[numberOfPages-boundaryCount]:[]),_toConsumableArray(endPages),_toConsumableArray(hideNextButton?[]:["next"]),_toConsumableArray(showLastButton?["last"]:[])).map(function(item){var _first$last;return typeof item==="number"?{disabled:disabled,page:item,selected:item===page,type:"page"}:_objectSpread({disabled:disabled||item.indexOf("ellipsis")===-1&&(item==="next"||item==="last"?page>=numberOfPages:page<=1),selected:false,type:item},item.endsWith("-ellipsis")?{}:{page:((_first$last={first:1,last:numberOfPages}[item])!==null&&_first$last!==void 0?_first$last:item==="next")?Math.min(page+1,numberOfPages):// NOTE: Is "previous" type.
1575
- Math.max(page-1,1)})})};/**
1576
- * Generates all permutations of given iterable.
1577
- * @param data - Array like object.
1578
- * @returns Array of permuted arrays.
1579
- */var _permute2=function permute(data){var result=[];var _permute=function permute(currentData,dataToMixin){if(dataToMixin===void 0){dataToMixin=[]}if(currentData.length===0)result.push(dataToMixin);else for(var index=0;index<currentData.length;index++){var copy=currentData.slice();_permute(copy,dataToMixin.concat(copy.splice(index,1)))}};_permute(data);return result};/**
1580
- * Generates all lengths permutations of given iterable.
1581
- * @param data - Array like object.
1582
- * @param minimalSubsetLength - Defines how long the minimal subset length
1583
- * should be.
1584
- * @returns Array of permuted arrays.
1585
- */var permuteLength=function permuteLength(data,minimalSubsetLength){if(minimalSubsetLength===void 0){minimalSubsetLength=1}var result=[];if(data.length===0)return result;var _generate=function generate(index,source,rest){if(index===0){if(rest.length>0)result[result.length]=rest;return}for(var sourceIndex=0;sourceIndex<source.length;sourceIndex++)_generate(index-1,source.slice(sourceIndex+1),rest.concat([source[sourceIndex]]))};for(var index=minimalSubsetLength;index<data.length;index++)_generate(index,data,[]);result.push(data);return result};/**
1586
- * Sums up given property of given item list.
1587
- * @param data - The objects with specified property to sum up.
1588
- * @param propertyName - Property name to sum up its value.
1589
- * @returns The aggregated value.
1590
- */var sumUpProperty=function sumUpProperty(data,propertyName){var result=0;if(Array.isArray(data)&&data.length){var _iterator3=_createForOfIteratorHelper(data),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var item=_step3.value;if(Object.prototype.hasOwnProperty.call(item,propertyName))result+=parseFloat(item[propertyName]||0)}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}}return result};/**
1591
- * Removes given target on given list.
1592
- * @param list - Array to splice.
1593
- * @param target - Target to remove from given list.
1594
- * @param strict - Indicates whether to fire an exception if given target
1595
- * doesn't exist given list.
1596
- * @returns Item with the appended target.
1597
- */var removeArrayItem=function removeArrayItem(list,target,strict){if(strict===void 0){strict=false}var index=list.indexOf(target);if(index===-1){if(strict)throw new Error("Given target doesn't exists in given list.")}else list.splice(index,1);return list};/**
1598
- * Sorts given object of dependencies in a topological order.
1599
- * @param items - Items to sort.
1600
- * @returns Sorted array of given items respecting their dependencies.
1601
- */var sortTopological=function sortTopological(items){var edges=[];for(var _i11=0,_Object$entries4=Object.entries(items);_i11<_Object$entries4.length;_i11++){var _Object$entries4$_i=_slicedToArray(_Object$entries4[_i11],2),name=_Object$entries4$_i[0],value=_Object$entries4$_i[1];items[name]=[].concat(value);if(value.length>0){var _iterator4=_createForOfIteratorHelper(makeArray(value)),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var dependencyName=_step4.value;edges.push([name,dependencyName])}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}}else edges.push([name])}var nodes=[];// Accumulate unique nodes into a large list.
1602
- for(var _i12=0,_edges=edges;_i12<_edges.length;_i12++){var edge=_edges[_i12];var _iterator5=_createForOfIteratorHelper(edge),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var node=_step5.value;if(!nodes.includes(node))nodes.push(node)}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}}var sorted=[];// Define a visitor function that recursively traverses dependencies.
1603
- var _visit=function visit(node,predecessors){// Check if a node is dependent of itself.
1604
- if(predecessors.length!==0&&predecessors.includes(node))throw new Error("Cyclic dependency found. \"".concat(node,"\" is dependent of ")+"itself.\n"+"Dependency chain: \"".concat(predecessors.join("\" -> \""),"\" => \"")+"".concat(node,"\"."));var index=nodes.indexOf(node);// If the node still exists, traverse its dependencies.
1605
- if(index!==-1){var copy;// Mark the node to exclude it from future iterations.
1606
- nodes[index]=null;/*
1607
- Loop through all edges and follow dependencies of the current
1608
- node
1609
- */for(var _i13=0,_edges2=edges;_i13<_edges2.length;_i13++){var _edge=_edges2[_i13];if(_edge[0]===node){/*
1610
- Lazily create a copy of predecessors with the current
1611
- node concatenated onto it.
1612
- */copy=copy||predecessors.concat([node]);// Recursively traverse to node dependencies.
1613
- _visit(_edge[1],copy)}}sorted.push(node)}};for(var index=0;index<nodes.length;index++){var _node=nodes[index];// Ignore nodes that have been excluded.
1614
- if(_node){// Mark the node to exclude it from future iterations.
1615
- nodes[index]=null;/*
1616
- Loop through all edges and follow dependencies of the current
1617
- node.
1618
- */var _iterator6=_createForOfIteratorHelper(edges),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _edge2=_step6.value;if(_edge2[0]===_node)// Recursively traverse to node dependencies.
1619
- _visit(_edge2[1],[_node])}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}sorted.push(_node)}}return sorted};/**
1620
- * Makes all values in given iterable unique by removing duplicates (The first
1621
- * occurrences will be left).
1622
- * @param data - Array like object.
1623
- * @returns Sliced version of given object.
1624
- */var unique=function unique(data){var result=[];var _iterator7=_createForOfIteratorHelper(makeArray(data)),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var value=_step7.value;if(!result.includes(value))result.push(value)}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}return result};
1625
-
1626
- /***/ }),
1627
- /* 18 */
1628
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1629
-
1630
- "use strict";
1631
- __webpack_require__.r(__webpack_exports__);
1632
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1633
- /* harmony export */ DATE_TIME_PATTERN_CACHE: function() { return /* binding */ DATE_TIME_PATTERN_CACHE; },
1634
- /* harmony export */ dateTimeFormat: function() { return /* binding */ dateTimeFormat; },
1635
- /* harmony export */ interpretDateTime: function() { return /* binding */ _interpretDateTime; },
1636
- /* harmony export */ normalizeDateTime: function() { return /* binding */ normalizeDateTime; },
1637
- /* harmony export */ sliceWeekday: function() { return /* binding */ sliceWeekday; }
1638
- /* harmony export */ });
1639
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1640
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
1641
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
1642
- /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
1643
- // #!/usr/bin/env babel-node
1644
- // -*- coding: utf-8 -*-
1645
- /** @module dateTime *//* !
1646
- region header
1647
- [Project page](https://torben.website/clientnode)
1648
-
1649
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1650
-
1651
- License
1652
- -------
1653
-
1654
- This library written by Torben Sickert stands under a creative commons
1655
- naming 3.0 unported license.
1656
- See https://creativecommons.org/licenses/by/3.0/deed.de
1657
- endregion
1658
- */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 _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 t.__proto__=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 _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 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)}// Caches compiled date tine pattern regular expressions.
1659
- var DATE_TIME_PATTERN_CACHE=[];/**
1660
- * Formats given date or current via given format specification.
1661
- * @param format - Format specification.
1662
- * @param dateTime - Date time to format.
1663
- * @param options - Additional configuration options for "Intl.DateTimeFormat".
1664
- * @param locales - Locale or list of locales to use for formatting. First one
1665
- * take precedence of latter ones.
1666
- * @returns Formatted date time string.
1667
- */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__WEBPACK_IMPORTED_MODULE_1__.LOCALES}if(typeof dateTime==="number")/*
1668
- NOTE: "Date" constructor expects milliseconds as unit instead
1669
- of more common used seconds.
1670
- */dateTime*=1000;var normalizedDateTime=new Date(dateTime);if(["full","long","medium","short"].includes(format))return new Intl.DateTimeFormat([].concat(locales,"en-US"),_objectSpread({dateStyle:format,timeStyle:format},options)).format(normalizedDateTime);var scope={};var _iterator=_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"),_objectSpread({dateStyle:style,timeStyle:style},options));scope[style]=_dateTimeFormat.format(normalizedDateTime);var _iterator2=_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__WEBPACK_IMPORTED_MODULE_2__.capitalize)(item.type))]=item.value}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}}catch(err){_iterator.e(err)}finally{_iterator.f()}var evaluated=(0,_string__WEBPACK_IMPORTED_MODULE_2__.evaluate)("`".concat(format,"`"),scope);if(evaluated.error)throw new Error(evaluated.error);/*
1671
- NOTE: For some reason hidden symbols are injected differently on
1672
- different platforms, so we have to normalize for predictable
1673
- testing.
1674
- */return evaluated.result.replace(/\s/g," ")};/**
1675
- * Interprets given content string as date time.
1676
- * @param value - Date time string to interpret.
1677
- * @param interpretAsUTC - Identifies if given date should be interpreted as
1678
- * utc. If not set given strings will be interpreted as it is depended on
1679
- * given format and number like string as utc.
1680
- * @returns Interpret date time object.
1681
- */var _interpretDateTime=function interpretDateTime(value,interpretAsUTC){var resolvedInterpretAsUTC=Boolean(interpretAsUTC);// region iso format
1682
- /*
1683
- Let's first check if we have a simplified iso 8602 date time
1684
- representation like:
1685
-
1686
- "YYYY-MM-DDTHH:mm:ss.sssZ" or "YYYY-MM-DDTHH:mm:ss.sss+HH:mm".
1687
-
1688
- Please note for the native "Date" implementation:
1689
-
1690
- When the time zone offset is absent, date-only forms are interpreted as
1691
- a UTC time and date-time forms are interpreted as local time. This is
1692
- due to a historical spec error that was not consistent with ISO 8601
1693
- but could not be changed due to web compatibility.
1694
- */var hourAndMinutesPattern="[0-2][0-9]:[0-6][0-9]";var pattern="^"+(// Year, month and day:
1695
- "[0-9]{4}-[01][0-9]-[0-3][0-9]"+"(?<time>"+("(?:T"+(hourAndMinutesPattern+"(?:"+(// Seconds:
1696
- ":[0-6][0-9]"+// Milliseconds:
1697
- "(?:\\.[0-9]+)?")+")?"+// Timezone definition:
1698
- "(?<dateTimeTimezone>Z|(?:[+-]".concat(hourAndMinutesPattern,"))?"))+")"+"|"+// Timezone definition:
1699
- "(?<dateTimezone>Z|(?:[+-]".concat(hourAndMinutesPattern,"))"))+")?")+"$";var match=value.match(new RegExp(pattern,"i"));if(match){var _match$groups$dateTim,_match$groups,_match$groups2;var result=new Date(value);if(isNaN(result.getDate()))return null;var timezone=(_match$groups$dateTim=(_match$groups=match.groups)===null||_match$groups===void 0?void 0:_match$groups.dateTimeTimezone)!==null&&_match$groups$dateTim!==void 0?_match$groups$dateTim:(_match$groups2=match.groups)===null||_match$groups2===void 0?void 0:_match$groups2.dateTimezone;if(!timezone){var _match$groups4;if([null,undefined].includes(interpretAsUTC))resolvedInterpretAsUTC=false;if(resolvedInterpretAsUTC){var _match$groups3;if(!((_match$groups3=match.groups)!==null&&_match$groups3!==void 0&&_match$groups3.time))/*
1700
- NOTE: Date only strings will be interpreted as UTC
1701
- already.
1702
- */return result;// local to utc
1703
- return new Date(result.getTime()-result.getTimezoneOffset()*60*1000)}if((_match$groups4=match.groups)!==null&&_match$groups4!==void 0&&_match$groups4.time)/*
1704
- NOTE: Date time strings will be interpreted as local
1705
- already.
1706
- */return result;// utc to local
1707
- return new Date(result.getTime()+result.getTimezoneOffset()*60*1000)}return result}// endregion
1708
- value=value.replace(/^(-?)-*0*([1-9][0-9]*)$/,"$1$2");// region interpret integer number
1709
- /*
1710
- NOTE: Do not use "parseFloat" since we want to interpret delimiter as
1711
- date delimiters.
1712
- */if(String(parseInt(value))===value){if([null,undefined].includes(interpretAsUTC))resolvedInterpretAsUTC=true;var roughDateForTimeZoneDetermining=new Date(parseInt(value)*1000);return new Date((parseInt(value)+(resolvedInterpretAsUTC?0:roughDateForTimeZoneDetermining.getTimezoneOffset()*60))*1000)}// endregion
1713
- if(!DATE_TIME_PATTERN_CACHE.length){// region pre-compile regular expressions
1714
- /// region pattern
1715
- 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
1716
- var patternPresenceCache={};var _iterator3=_createForOfIteratorHelper(["t"," "]),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var timeDelimiter=_step3.value;var _iterator4=_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=_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=_createForOfIteratorHelper([].concat(_dateTimeFormat2.pattern)),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _pattern=_step6.value;var evaluatedPattern=(0,_string__WEBPACK_IMPORTED_MODULE_2__.evaluate)("`^".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
1717
- }catch(err){_iterator3.e(err)}finally{_iterator3.f()}}// region pre-process
1718
- // NOTE: All patterns can assume lower cased strings.
1719
- value=value.toLowerCase();/*
1720
- Reduce each sequence on none alphanumeric symbols to the first
1721
- symbol (consolidate delimiters).
1722
- */value=value.replace(/([^0-9a-z])[^0-9a-z]+/g,"$1");var monthNumber=1;for(var _i3=0,_arr3=[["jan","january?","janvier"],["feb","february?","f\xE9vrier"],["m(?:a|ae|\xE4)r","m(?:a|ae|\xE4)r(?:ch|s|z)"],["ap[rv]","a[pv]ril"],["ma[iy]"],["ju[ein]","jui?n[ei]?"],["jul","jul[iy]","juillet"],["aug","august","ao\xFBt"],["sep","septemb(?:er|re)"],["o[ck]t","o[ck]tob(?:er|re)"],["nov","novemb(?:er|re)"],["de[cz]","d[e\xE9][cz]emb(?:er|re)"]];_i3<_arr3.length;_i3++){var monthVariation=_arr3[_i3];var matched=false;var _iterator7=_createForOfIteratorHelper(monthVariation),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var name=_step7.value;var _pattern2=new RegExp("(^|[^a-z])".concat(name,"([^a-z]|$)"));if(_pattern2.test(value)){value=value.replace(_pattern2,"$1".concat(String(monthNumber),"$2"));matched=true;break}}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(matched)break;monthNumber+=1}value=sliceWeekday(value);var timezonePattern=/(.+)\+(.+)$/;var timezoneMatch=timezonePattern.exec(value);if(timezoneMatch)value=value.replace(timezonePattern,"$1");var _iterator8=_createForOfIteratorHelper(["","Uhr","o'clock"]),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var wordToSlice=_step8.value;value=value.replace(wordToSlice,"")}}catch(err){_iterator8.e(err)}finally{_iterator8.f()}value=value.trim();// endregion
1723
- // region try to match a pattern
1724
- var _loop=function _loop(){var dateTimePattern=_DATE_TIME_PATTERN_CA[_i4];var match=null;try{match=value.match(dateTimePattern)}catch(_unused){// Continue regardless of an error.
1725
- }if(match){var _match$groups5;var get=function get(name,fallback){if(fallback===void 0){fallback=0}return match.groups&&name in match.groups?parseInt(match.groups[name],10):fallback};var parameter=[get("year",1970),get("month",1)-1,get("day",1),get("hour"),get("minute"),get("second"),get("millisecond")];if((_match$groups5=match.groups)!==null&&_match$groups5!==void 0&&_match$groups5.noonIndicator&&match.groups.noonIndicator.trim().replace(/\./g,"")==="pm"&&parameter[3]<=12)parameter[3]+=12;var _result=null;if(timezoneMatch){var timeShift=_interpretDateTime(timezoneMatch[2],true);if(timeShift)_result=new Date(Date.UTC.apply(Date,parameter)-timeShift.getTime())}if(!_result)if(resolvedInterpretAsUTC)_result=new Date(Date.UTC.apply(Date,parameter));else _result=_construct(Date,parameter);if(isNaN(_result.getDate()))return{v:null};return{v:_result}}},_ret;for(var _i4=0,_DATE_TIME_PATTERN_CA=DATE_TIME_PATTERN_CACHE;_i4<_DATE_TIME_PATTERN_CA.length;_i4++){_ret=_loop();if(_ret)return _ret.v}// endregion
1726
- return null};/**
1727
- * Interprets a date object from given artefact.
1728
- * @param value - To interpret.
1729
- * @param interpretAsUTC - Identifies if given date should be interpreted as
1730
- * utc. If not set given strings will be interpreted as it is dependent on
1731
- * given format and numbers as utc.
1732
- * @returns Interpreted date object or "null" if given value couldn't be
1733
- * interpreted.
1734
- */var normalizeDateTime=function normalizeDateTime(value,interpretAsUTC){if(value===void 0){value=null}var resolvedInterpretAsUTC=Boolean(interpretAsUTC);if(value===null)return new Date;if(typeof value==="string"){/*
1735
- We make a simple pre-check to determine if it could be a date like
1736
- representation. Idea: There should be at least some numbers and
1737
- separators.
1738
- */if(/^.*(?:(?:[0-9]{1,4}[^0-9]){2}|[0-9]{1,4}[^0-9.]).*$/.test(value)){value=_interpretDateTime(value,resolvedInterpretAsUTC);if(value===null)return value;return value}var floatRepresentation=parseFloat(value);if(String(floatRepresentation)===value)value=floatRepresentation}if(typeof value==="number"){if([null,undefined].includes(interpretAsUTC))resolvedInterpretAsUTC=true;var roughDateForTimeZoneDetermining=new Date(value*1000);return new Date((value+(resolvedInterpretAsUTC?0:roughDateForTimeZoneDetermining.getTimezoneOffset()*60))*1000)}// Try to deal with types which are either numbers or strings.
1739
- var result=new Date(value);if(isNaN(result.getDate()))return null;return result};/**
1740
- * Slice weekday from given date representation.
1741
- * @param value - String to process.
1742
- * @returns Sliced given string.
1743
- */var sliceWeekday=function sliceWeekday(value){var weekdayPattern=/[a-z]{2}\.+ *([^ ].*)$/i;var weekdayMatch=weekdayPattern.exec(value);if(weekdayMatch)return value.replace(weekdayPattern,"$1");return value};
1744
-
1745
- /***/ }),
1746
- /* 19 */
1747
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1748
-
1749
- "use strict";
1750
- __webpack_require__.r(__webpack_exports__);
1751
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1752
- /* harmony export */ getParameterNames: function() { return /* binding */ _getParameterNames; },
1753
- /* harmony export */ identity: function() { return /* binding */ identity; },
1754
- /* harmony export */ invertArrayFilter: function() { return /* binding */ invertArrayFilter; }
1755
- /* harmony export */ });
1756
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1757
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
1758
- // #!/usr/bin/env babel-node
1759
- // -*- coding: utf-8 -*-
1760
- /** @module function *//* !
1761
- region header
1762
- [Project page](https://torben.website/clientnode)
1763
-
1764
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1765
-
1766
- License
1767
- -------
1768
-
1769
- This library written by Torben Sickert stands under a creative commons
1770
- naming 3.0 unported license.
1771
- See https://creativecommons.org/licenses/by/3.0/deed.de
1772
- endregion
1773
- */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}/**
1774
- * Determines all parameter names from given callable (function or class,
1775
- * ...).
1776
- * @param callable - Function or function code to inspect.
1777
- * @returns List of parameter names.
1778
- */var _getParameterNames=function getParameterNames(callable){var functionCode=(typeof callable==="string"?callable:// Strip comments.
1779
- callable.toString()).replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,"");if(functionCode.startsWith("class"))return _getParameterNames("function "+functionCode.replace(/.*(constructor\([^)]+\))/m,"$1"));// Try classic function declaration.
1780
- var parameter=/^function\s*[^(]*\(\s*([^)]*)\)/m.exec(functionCode);if(parameter===null)// Try arrow function declaration.
1781
- parameter=/^[^(]*\(\s*([^)]*)\) *=>.*/m.exec(functionCode);if(parameter===null)// Try one argument and without brackets arrow function declaration.
1782
- parameter=/([^= ]+) *=>.*/m.exec(functionCode);var names=[];if(parameter&&parameter.length>1&&parameter[1].trim().length){var _iterator=_createForOfIteratorHelper(parameter[1].split(",")),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;)// Remove default parameter values.
1783
- {var name=_step.value;names.push(name.replace(/=.+$/g,"").trim())}}catch(err){_iterator.e(err)}finally{_iterator.f()}return names}return names};/**
1784
- * Implements the identity function.
1785
- * @param value - A value to return.
1786
- * @returns Returns the given value.
1787
- */var identity=function identity(value){return value};/**
1788
- * Inverted filter helper to inverse each given filter.
1789
- * @param filter - A function that filters an array.
1790
- * @returns The inverted filter.
1791
- */var invertArrayFilter=function invertArrayFilter(filter){return function(data){if(Array.isArray(data)){for(var _len=arguments.length,additionalParameter=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){additionalParameter[_key-1]=arguments[_key]}var filteredData=filter.apply(void 0,[data].concat(additionalParameter));var result=[];if(filteredData.length){var _iterator2=_createForOfIteratorHelper(data),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var date=_step2.value;if(!filteredData.includes(date))result.push(date)}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}else result=data;return result}return data}};
1792
-
1793
- /***/ }),
1794
- /* 20 */
1795
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1796
-
1797
- "use strict";
1798
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1799
- /* harmony export */ DEFAULT_OPTIONS: function() { return /* binding */ DEFAULT_OPTIONS; },
1800
- /* harmony export */ NO_ITEM_FOUND_SYMBOL: function() { return /* binding */ NO_ITEM_FOUND_SYMBOL; },
1801
- /* harmony export */ SELECTOR_KEY_NAMES: function() { return /* binding */ SELECTOR_KEY_NAMES; },
1802
- /* harmony export */ evaluateAnd: function() { return /* binding */ evaluateAnd; },
1803
- /* harmony export */ evaluateArrayContains: function() { return /* binding */ evaluateArrayContains; },
1804
- /* harmony export */ evaluateConcat: function() { return /* binding */ evaluateConcat; },
1805
- /* harmony export */ evaluateCondition: function() { return /* binding */ evaluateCondition; },
1806
- /* harmony export */ evaluateIf: function() { return /* binding */ evaluateIf; },
1807
- /* harmony export */ evaluateMapping: function() { return /* binding */ evaluateMapping; },
1808
- /* harmony export */ evaluateOperation: function() { return /* binding */ evaluateOperation; },
1809
- /* harmony export */ evaluateOptionalThen: function() { return /* binding */ evaluateOptionalThen; },
1810
- /* harmony export */ evaluateOr: function() { return /* binding */ evaluateOr; },
1811
- /* harmony export */ evaluateSelector: function() { return /* binding */ evaluateSelector; },
1812
- /* harmony export */ evaluateSelectorUntilLastObject: function() { return /* binding */ evaluateSelectorUntilLastObject; },
1813
- /* harmony export */ evaluateSwitch: function() { return /* binding */ evaluateSwitch; },
1814
- /* harmony export */ evaluateUnaryOperation: function() { return /* binding */ evaluateUnaryOperation; },
1815
- /* harmony export */ normalizeSelector: function() { return /* binding */ _normalizeSelector; },
1816
- /* harmony export */ selectArrayItem: function() { return /* binding */ selectArrayItem; }
1817
- /* harmony export */ });
1818
- /* unused harmony export evaluateExpression */
1819
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
1820
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
1821
- /* harmony import */ var _indicator_functions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
1822
- // #!/usr/bin/env babel-node
1823
- // -*- coding: utf-8 -*-
1824
- /* !
1825
- region header
1826
- [Project page](https://torben.website/clientnode)
1827
-
1828
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1829
-
1830
- License
1831
- -------
1832
-
1833
- This library written by Torben Sickert stands under a creative commons
1834
- naming 3.0 unported license.
1835
- See https://creativecommons.org/licenses/by/3.0/deed.de
1836
- endregion
1837
- */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 _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}var SELECTOR_KEY_NAMES=new Set(["name"]);var NO_ITEM_FOUND_SYMBOL=Symbol.for("EXPRESSION_EVALUATOR_NO_ITEM_FOUND");var DEFAULT_OPTIONS={skipMissingLevel:false,contextReplacements:{},delimiter:"."};var addBracketBasedPathElements=function addBracketBasedPathElements(subParts){var path=[];// NOTE: We add index assignments into path array.
1838
- var _iterator=_createForOfIteratorHelper(subParts),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var subPart=_step.value;var openingBracketPosition=subPart.indexOf("[");if(openingBracketPosition>0)path.push(subPart.substring(0,openingBracketPosition));// Trim bracket padding "[index]" => "index".
1839
- path.push(subPart.substring(openingBracketPosition+1,subPart.length-1))}}catch(err){_iterator.e(err)}finally{_iterator.f()}return path};var _normalizeSelector=function normalizeSelector(selector,givenOptions){if(givenOptions===void 0){givenOptions={}}var options=_objectSpread(_objectSpread({},DEFAULT_OPTIONS),{},{scope:{}},givenOptions);var path=[];var _iterator2=_createForOfIteratorHelper([].concat(selector)),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var component=_step2.value;if(typeof component==="string"){var parts=component.split(options.delimiter);var _iterator3=_createForOfIteratorHelper(parts),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var part=_step3.value;if(!part)continue;if((0,___WEBPACK_IMPORTED_MODULE_0__.isFunction)(part)){path.push(part);continue}// Identify bracket based selectors like "[index]".
1840
- var openingBracketPosition=part.indexOf("[");var restPart=part;if(openingBracketPosition!==-1){restPart=part.substring(openingBracketPosition);part=part.substring(0,openingBracketPosition)}if(Object.prototype.hasOwnProperty.call(options.contextReplacements,part))path.push.apply(path,_toConsumableArray(_normalizeSelector(options.contextReplacements[part],options)));else path.push(part);if(restPart!==part){// Trim bracket padding "[index]" => "index".
1841
- var subParts=restPart.match(/[^[]*\[\d+]/g);path.push.apply(path,_toConsumableArray(addBracketBasedPathElements(subParts)))}}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}}else path.push(evaluateExpression(component,options.scope,options))}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}return path};var selectArrayItem=function selectArrayItem(data,keyOrIndex){// Assume that an array item should be found by its property name.
1842
- var _iterator4=_createForOfIteratorHelper(data),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var item=_step4.value;var _iterator5=_createForOfIteratorHelper(SELECTOR_KEY_NAMES),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var selectorKeyName=_step5.value;if(Object.prototype.hasOwnProperty.call(item,selectorKeyName)&&item[selectorKeyName]===keyOrIndex)return item}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}return NO_ITEM_FOUND_SYMBOL};/**
1843
- * Retrieves substructure in given object referenced by given selector
1844
- * path.
1845
- * @param selector - Selector path.
1846
- * @param scope - Object to search in.
1847
- * @param givenOptions - Object to configure evaluation.
1848
- * @param givenOptions.contextReplacements - Configuration how to replace
1849
- * "this" and "thisParent" keywords in selectors.
1850
- * @param givenOptions.delimiter - Delimiter to delimit given selector
1851
- * components.
1852
- * @param givenOptions.skipMissingLevel - Indicates to skip missing level in
1853
- * given path.
1854
- * @returns Determined sub structure of given data or "undefined".
1855
- */var evaluateSelectorUntilLastObject=function evaluateSelectorUntilLastObject(selector,scope,givenOptions){if(scope===void 0){scope={}}if(givenOptions===void 0){givenOptions={}}var options=_objectSpread(_objectSpread({},DEFAULT_OPTIONS),givenOptions);/*
1856
- Create a list of keys or indexes to retrieve specified value from given
1857
- object.
1858
- */var path=_normalizeSelector(selector,_objectSpread(_objectSpread({},options),{},{scope:scope}));// Dig into given scope for each previously found key or index.
1859
- var result=scope;var index=0;var _iterator6=_createForOfIteratorHelper(path),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var keyOrIndex=_step6.value;var isLastPart=index===path.length-1;if((0,___WEBPACK_IMPORTED_MODULE_0__.isObject)(result)){if(Array.isArray(result)&&typeof keyOrIndex==="string"&&isNaN(parseInt(keyOrIndex))){var item=selectArrayItem(result,keyOrIndex);if(item!==NO_ITEM_FOUND_SYMBOL){if(isLastPart)return typeof keyOrIndex==="number"?[result,keyOrIndex]:[result,result.indexOf(item)];result=item}}else if(isLastPart)return[result,keyOrIndex];else if((0,___WEBPACK_IMPORTED_MODULE_0__.isFunction)(keyOrIndex))result=keyOrIndex(result);else if(Object.prototype.hasOwnProperty.call(result,keyOrIndex))result=result[keyOrIndex];else if(!options.skipMissingLevel)return[result,keyOrIndex]}else if(isLastPart)return[result,keyOrIndex];else if(!options.skipMissingLevel)return[result,keyOrIndex];index+=1}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}return[{},""]};/**
1860
- * Retrieves substructure in given object referenced by given selector
1861
- * path.
1862
- * @param selector - Selector path.
1863
- * @param scope - Object to search in.
1864
- * @param options - Options object to configure evaluation.
1865
- * @param options.contextReplacements - Configuration how to replace "this"
1866
- * and "thisParent" keywords in selectors.
1867
- * @param options.delimiter - Delimiter to delimit given selector components.
1868
- * @param options.skipMissingLevel - Indicates to skip missing level in given
1869
- * path.
1870
- * @returns Determined sub structure of given data or "undefined".
1871
- */var evaluateSelector=function evaluateSelector(selector,scope,options){if(scope===void 0){scope={}}if(options===void 0){options={}}var _evaluateSelectorUnti=evaluateSelectorUntilLastObject(selector,scope,options),_evaluateSelectorUnti2=_slicedToArray(_evaluateSelectorUnti,2),lastObject=_evaluateSelectorUnti2[0],lastKey=_evaluateSelectorUnti2[1];if(lastKey==="")return scope;if((0,___WEBPACK_IMPORTED_MODULE_0__.isFunction)(lastKey))return lastKey(lastObject);if(Object.prototype.hasOwnProperty.call(lastObject,lastKey))return lastObject[lastKey];return options.skipMissingLevel?lastObject:undefined};var evaluateCondition=function evaluateCondition(condition,scope,options){var value1=evaluateExpression(condition.value1,scope,options);var value2=evaluateExpression(condition.value2,scope,options);switch(condition.$comparator){case"==":return (0,___WEBPACK_IMPORTED_MODULE_1__.equals)(value1,value2);case"!=":return!(0,___WEBPACK_IMPORTED_MODULE_1__.equals)(value1,value2);case"<":return value1<value2;case"<=":return value1<=value2;case">":return value1>value2;case">=":return value1>=value2}};var evaluateUnaryOperation=function evaluateUnaryOperation(operation,scope,options){var operand=evaluateExpression(operation.operand,scope,options);switch(operation.$operator){case"!":return!operand;case"!!":return Boolean(operand)}};var evaluateOperation=function evaluateOperation(operation,scope,options){var operand1=evaluateExpression(operation.operand1,scope,options);var operand2=evaluateExpression(operation.operand2,scope,options);switch(operation.$operator){case"+":return operand1+operand2;case"-":return operand1-operand2;case"*":return operand1*operand2;case"**":return Math.pow(operand1,operand2);case"/":return operand1/operand2}};var evaluateOptionalThen=function evaluateOptionalThen(expression,scope,options){if(typeof expression.then==="undefined")return undefined;return evaluateExpression(expression.then,scope,options)};var evaluateIf=function evaluateIf(expression,scope,options){if(evaluateExpression(expression.$if,scope,options))return evaluateOptionalThen(expression,scope,options);return typeof expression.else==="undefined"?undefined:evaluateExpression(expression.else,scope)};var evaluateSwitch=function evaluateSwitch(expression,scope,options){var value=evaluateExpression(expression.$switch,scope);var _iterator7=_createForOfIteratorHelper(expression.caseExpressions),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var caseExpression=_step7.value;if(value===evaluateExpression(caseExpression.$case,scope,options))return evaluateOptionalThen(caseExpression,scope,options)}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(typeof expression.default!=="undefined")return evaluateExpression(expression.default,scope,options);return undefined};var evaluateAnd=function evaluateAnd(expression,scope,options){var _iterator8=_createForOfIteratorHelper(expression.$and),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var condition=_step8.value;if(!evaluateExpression(condition,scope,options))return false}}catch(err){_iterator8.e(err)}finally{_iterator8.f()}return true};var evaluateOr=function evaluateOr(expression,scope,options){var _iterator9=_createForOfIteratorHelper(expression.$or),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var condition=_step9.value;if(evaluateExpression(condition,scope,options))return true}}catch(err){_iterator9.e(err)}finally{_iterator9.f()}return false};var evaluateConcat=function evaluateConcat(expression,scope,options){var result=[];var isArray=false;var _iterator0=_createForOfIteratorHelper(expression.$concat),_step0;try{for(_iterator0.s();!(_step0=_iterator0.n()).done;){var item=_step0.value;var value=evaluateExpression(item,scope,options);if(Array.isArray(value))isArray=true;result=result.concat(value)}}catch(err){_iterator0.e(err)}finally{_iterator0.f()}return isArray?result:result.join("")};var evaluateMapping=function evaluateMapping(expression,scope,options){var givenData=evaluateExpression(expression.data,scope,options);var normalizedGivenData=[];if(Array.isArray(givenData))normalizedGivenData=givenData;else for(var _i=0,_Object$entries=Object.entries(givenData);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];normalizedGivenData.push(_objectSpread(_objectSpread({},value),{},{$key:key}))}var result=[];var _iterator1=_createForOfIteratorHelper(normalizedGivenData),_step1;try{for(_iterator1.s();!(_step1=_iterator1.n()).done;){var item=_step1.value;var _value={};for(var _i2=0,_Object$entries2=Object.entries(expression.$mapping);_i2<_Object$entries2.length;_i2++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i2],2),sourceName=_Object$entries2$_i[0],targetName=_Object$entries2$_i[1];if(Object.prototype.hasOwnProperty.call(item,sourceName))_value[targetName]=item[sourceName]}result.push(_value)}}catch(err){_iterator1.e(err)}finally{_iterator1.f()}return result};var evaluateArrayContains=function evaluateArrayContains(expression,scope,options){var array=scope;if(expression.$arrayContains.target!=null)array=evaluateExpression(expression.$arrayContains.target,scope,options);var value=evaluateExpression(expression.$arrayContains.value,scope,options);var key=evaluateExpression(expression.$arrayContains.key,scope,options);if(!Array.isArray(array))return false;return array.some(function(item){if(typeof key==="string"&&(0,___WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(item)&&Object.prototype.hasOwnProperty.call(item,key)){var record=item;return record[key]===value}return item===value})};function evaluateExpression(expression,scope,options){if(scope===void 0){scope={}}if(options===void 0){options={}}if((0,_indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isSelector)(expression))return evaluateSelector(expression.$select,scope,options);if((0,_indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isCondition)(expression))return evaluateCondition(expression,scope,options);if((0,_indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isUnaryOperation)(expression))return evaluateUnaryOperation(expression,scope,options);if((0,_indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isOperation)(expression))return evaluateOperation(expression,scope,options);if((0,_indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isOrExpression)(expression))return evaluateOr(expression,scope,options);if((0,_indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isAndExpression)(expression))return evaluateAnd(expression,scope,options);if((0,_indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isConcatExpression)(expression))return evaluateConcat(expression,scope,options);if((0,_indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isMappingExpression)(expression))return evaluateMapping(expression,scope,options);if((0,_indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isIfExpression)(expression))return evaluateIf(expression,scope,options);if((0,_indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isSwitchExpression)(expression))return evaluateSwitch(expression,scope,options);if((0,_indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isArrayContainsExpression)(expression))return evaluateArrayContains(expression,scope,options);return expression}/* harmony default export */ __webpack_exports__["default"] = (evaluateExpression);
1872
-
1873
- /***/ }),
1874
- /* 21 */
1875
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1876
-
1877
- "use strict";
1878
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1879
- /* harmony export */ viewArrayAsScope: function() { return /* binding */ viewArrayAsScope; },
1880
- /* harmony export */ viewObjectAsScope: function() { return /* binding */ _viewObjectAsScope; }
1881
- /* harmony export */ });
1882
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1883
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
1884
- // #!/usr/bin/env babel-node
1885
- // -*- coding: utf-8 -*-
1886
- /* !
1887
- region header
1888
- [Project page](https://torben.website/clientnode)
1889
-
1890
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1891
-
1892
- License
1893
- -------
1894
-
1895
- This library written by Torben Sickert stands under a creative commons
1896
- naming 3.0 unported license.
1897
- See https://creativecommons.org/licenses/by/3.0/deed.de
1898
- endregion
1899
- */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 _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}var viewArrayAsScope=function viewArrayAsScope(data,childrenPropertyNames,propertyReferenceKeys){return new Proxy(data,{ownKeys:function ownKeys(target){return Reflect.ownKeys(target)},get:function get(target,name){var _iterator=_createForOfIteratorHelper(target),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var element=_step.value;var _iterator2=_createForOfIteratorHelper(propertyReferenceKeys),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var key=_step2.value;if(element[key]===name){// NOTE: Type[keyof Type]
1900
- // NOTE: ScopeType[keyof ScopeType]
1901
- // type ScopeValueType = object
1902
- /*
1903
- eslint-disable
1904
- @typescript-eslint/no-unnecessary-type-arguments
1905
- */return _viewObjectAsScope(element,childrenPropertyNames,propertyReferenceKeys);/*
1906
- eslint-enable
1907
- @typescript-eslint/no-unnecessary-type-arguments
1908
- */}}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}}catch(err){_iterator.e(err)}finally{_iterator.f()}return undefined},set:function set(target,name,value){var index=0;var _iterator3=_createForOfIteratorHelper(target),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var item=_step3.value;var _iterator4=_createForOfIteratorHelper(propertyReferenceKeys),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var key=_step4.value;if(item[key]===name){target[index]=value;return true}}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}index+=1}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}return false}})};var _viewObjectAsScope=function viewObjectAsScope(data,childrenPropertyNames,propertyReferenceKeys){if(childrenPropertyNames===void 0){childrenPropertyNames=["children"]}if(propertyReferenceKeys===void 0){propertyReferenceKeys=["name"]}return new Proxy(data,{ownKeys:function ownKeys(target){return Reflect.ownKeys(target)},get:function get(target,name){var value=target[name];if(Object.prototype.hasOwnProperty.call(target,name)){if(childrenPropertyNames.includes(name)&&Array.isArray(value)){// NOTE: Type[keyof Type]
1909
- // NOTE: ScopeType[keyof ScopeType]
1910
- return viewArrayAsScope(value,childrenPropertyNames,propertyReferenceKeys)}if(value!==null&&_typeof(value)==="object"){// NOTE: Type[keyof Type]
1911
- // NOTE: ScopeType[keyof ScopeType]
1912
- // type ScopeValueType = object
1913
- /*
1914
- eslint-disable
1915
- @typescript-eslint/no-unnecessary-type-arguments
1916
- */return _viewObjectAsScope(value,childrenPropertyNames,propertyReferenceKeys);/*
1917
- eslint-enable
1918
- @typescript-eslint/no-unnecessary-type-arguments
1919
- */}return value}return undefined},set:function set(target,name,value){if(Object.prototype.hasOwnProperty.call(target,name))if(Object.prototype.hasOwnProperty.call(target,name)){target[name]=value;return true}return false}})};
1920
-
1921
- /***/ }),
1922
- /* 22 */
1923
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1924
-
1925
- "use strict";
1926
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1927
- /* harmony export */ DEFAULT_OPTIONS: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_OPTIONS; },
1928
- /* harmony export */ NO_ITEM_FOUND_SYMBOL: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.NO_ITEM_FOUND_SYMBOL; },
1929
- /* harmony export */ SELECTOR_KEY_NAMES: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.SELECTOR_KEY_NAMES; },
1930
- /* harmony export */ evaluateAnd: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateAnd; },
1931
- /* harmony export */ evaluateArrayContains: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateArrayContains; },
1932
- /* harmony export */ evaluateConcat: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateConcat; },
1933
- /* harmony export */ evaluateCondition: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateCondition; },
1934
- /* harmony export */ evaluateExpression: function() { return /* binding */ evaluateExpression; },
1935
- /* harmony export */ evaluateIf: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateIf; },
1936
- /* harmony export */ evaluateMapping: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateMapping; },
1937
- /* harmony export */ evaluateOperation: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateOperation; },
1938
- /* harmony export */ evaluateOptionalThen: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateOptionalThen; },
1939
- /* harmony export */ evaluateOr: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateOr; },
1940
- /* harmony export */ evaluateSelector: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateSelector; },
1941
- /* harmony export */ evaluateSelectorUntilLastObject: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateSelectorUntilLastObject; },
1942
- /* harmony export */ evaluateSwitch: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateSwitch; },
1943
- /* harmony export */ evaluateUnaryOperation: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.evaluateUnaryOperation; },
1944
- /* harmony export */ isAndExpression: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isAndExpression; },
1945
- /* harmony export */ isArrayContainsExpression: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isArrayContainsExpression; },
1946
- /* harmony export */ isConcatExpression: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isConcatExpression; },
1947
- /* harmony export */ isCondition: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isCondition; },
1948
- /* harmony export */ isIfExpression: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isIfExpression; },
1949
- /* harmony export */ isMappingExpression: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isMappingExpression; },
1950
- /* harmony export */ isOperation: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isOperation; },
1951
- /* harmony export */ isOrExpression: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isOrExpression; },
1952
- /* harmony export */ isSelector: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isSelector; },
1953
- /* harmony export */ isSpecificExpression: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isSpecificExpression; },
1954
- /* harmony export */ isSwitchExpression: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isSwitchExpression; },
1955
- /* harmony export */ isUnaryOperation: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isUnaryOperation; },
1956
- /* harmony export */ isValue: function() { return /* reexport safe */ _indicator_functions__WEBPACK_IMPORTED_MODULE_2__.isValue; },
1957
- /* harmony export */ normalizeSelector: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.normalizeSelector; },
1958
- /* harmony export */ selectArrayItem: function() { return /* reexport safe */ _evaluators__WEBPACK_IMPORTED_MODULE_0__.selectArrayItem; },
1959
- /* harmony export */ viewArrayAsScope: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_1__.viewArrayAsScope; },
1960
- /* harmony export */ viewObjectAsScope: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_1__.viewObjectAsScope; }
1961
- /* harmony export */ });
1962
- /* harmony import */ var _evaluators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20);
1963
- /* harmony import */ var _helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
1964
- /* harmony import */ var _indicator_functions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
1965
- // #!/usr/bin/env babel-node
1966
- // -*- coding: utf-8 -*-
1967
- /* !
1968
- region header
1969
- [Project page](https://torben.website/clientnode)
1970
-
1971
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
1972
-
1973
- License
1974
- -------
1975
-
1976
- This library written by Torben Sickert stands under a creative commons
1977
- naming 3.0 unported license.
1978
- See https://creativecommons.org/licenses/by/3.0/deed.de
1979
- endregion
1980
- */var evaluateExpression=_evaluators__WEBPACK_IMPORTED_MODULE_0__["default"];/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (evaluateExpression)));
1981
-
1982
- /***/ }),
1983
- /* 23 */
1984
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1985
-
1986
- "use strict";
1987
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1988
- /* harmony export */ deleteCookie: function() { return /* binding */ deleteCookie; },
1989
- /* harmony export */ getCookie: function() { return /* binding */ getCookie; },
1990
- /* harmony export */ setCookie: function() { return /* binding */ setCookie; }
1991
- /* harmony export */ });
1992
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
1993
- // #!/usr/bin/env babel-node
1994
- // -*- coding: utf-8 -*-
1995
- /** @module cookie *//* !
1996
- region header
1997
- [Project page](https://torben.website/clientnode)
1998
-
1999
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
2000
-
2001
- License
2002
- -------
2003
-
2004
- This library written by Torben Sickert stands under a creative commons
2005
- naming 3.0 unported license.
2006
- See https://creativecommons.org/licenses/by/3.0/deed.de
2007
- endregion
2008
- */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 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}/**
2009
- * Deletes a cookie value by given name.
2010
- * @param name - Name to identify requested value.
2011
- */var deleteCookie=function deleteCookie(name){if(_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document)_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document.cookie="".concat(name,"=; Max-Age=-99999999;")};/**
2012
- * Gets a cookie value by given name.
2013
- * @param name - Name to identify requested value.
2014
- * @returns Requested value.
2015
- */var getCookie=function getCookie(name){if(_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document){var key="".concat(name,"=");var decodedCookie=decodeURIComponent(_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document.cookie);var _iterator=_createForOfIteratorHelper(decodedCookie.split(";")),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var date=_step.value;while(date.startsWith(" "))date=date.substring(1);if(date.startsWith(key))return date.substring(key.length,date.length)}}catch(err){_iterator.e(err)}finally{_iterator.f()}return""}return null};/**
2016
- * Sets a cookie key-value-pair.
2017
- * @param name - Name to identify given value.
2018
- * @param value - Value to set.
2019
- * @param givenOptions - Cookie set options.
2020
- * @param givenOptions.domain - Domain to reference with given key-value-pair.
2021
- * @param givenOptions.httpOnly - Indicates if this cookie should be accessible
2022
- * from client or not.
2023
- * @param givenOptions.minimal - Set only minimum number of options.
2024
- * @param givenOptions.numberOfDaysUntilExpiration - Number of days until given
2025
- * key shouldn't be deleted.
2026
- * @param givenOptions.path - Path to reference with given key-value-pair.
2027
- * @param givenOptions.sameSite - Set same site policy to "Lax", "None" or
2028
- * "Strict".
2029
- * @param givenOptions.secure - Indicates if this cookie is only valid for
2030
- * "https" connections.
2031
- * @returns A boolean indicating whether cookie could be set or not.
2032
- */var setCookie=function setCookie(name,value,givenOptions){if(givenOptions===void 0){givenOptions={}}if(_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document){var _globalContext$locati;var options=_objectSpread({domain:"",httpOnly:false,minimal:false,numberOfDaysUntilExpiration:365,path:"/",sameSite:"Lax",secure:true},givenOptions);var now=new Date;now.setTime(now.getTime()+options.numberOfDaysUntilExpiration*24*60*60*1000);if(options.domain===""&&(_globalContext$locati=_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.location)!==null&&_globalContext$locati!==void 0&&_globalContext$locati.hostname)options.domain=_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.location.hostname;_context__WEBPACK_IMPORTED_MODULE_0__.globalContext.document.cookie="".concat(name,"=").concat(value)+(options.minimal?"":";Expires=\"".concat(now.toUTCString())+";Path=".concat(options.path)+";Domain=".concat(options.domain)+(options.sameSite?";SameSite=".concat(options.sameSite):"")+(options.secure?";Secure":"")+(options.httpOnly?";HttpOnly":""));return true}return false};
2033
-
2034
- /***/ }),
2035
- /* 24 */
2036
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2037
-
2038
- "use strict";
2039
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2040
- /* harmony export */ cacheImage: function() { return /* binding */ cacheImage; },
2041
- /* harmony export */ checkReachability: function() { return /* binding */ checkReachability; },
2042
- /* harmony export */ checkUnreachability: function() { return /* binding */ checkUnreachability; }
2043
- /* harmony export */ });
2044
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2045
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
2046
- /* harmony import */ var _indicators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
2047
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5);
2048
- /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
2049
- /* harmony import */ var _utility__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13);
2050
- // #!/usr/bin/env babel-node
2051
- // -*- coding: utf-8 -*-
2052
- /** @module data-transfer *//* !
2053
- region header
2054
- [Project page](https://torben.website/clientnode)
2055
-
2056
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
2057
-
2058
- License
2059
- -------
2060
-
2061
- This library written by Torben Sickert stands under a creative commons
2062
- naming 3.0 unported license.
2063
- See https://creativecommons.org/licenses/by/3.0/deed.de
2064
- endregion
2065
- */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):(e.__proto__=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)})}}/**
2066
- * Checks if given url response with given status code.
2067
- * @param url - Url to check reachability.
2068
- * @param givenOptions - Options to configure.
2069
- * @param givenOptions.wait - Boolean indicating if we should retry until a
2070
- * status code will be given.
2071
- * @param givenOptions.statusCodes - Status codes to check for.
2072
- * @param givenOptions.timeoutInSeconds - Delay after assuming given resource
2073
- * isn't available if no response is coming.
2074
- * @param givenOptions.pollIntervallInSeconds - Seconds between two tries to
2075
- * reach given url.
2076
- * @param givenOptions.options - Fetch options to use.
2077
- * @param givenOptions.expectedIntermediateStatusCodes - A list of expected but
2078
- * unwanted response codes. If detecting them waiting will continue until an
2079
- * expected (positive) code occurs or timeout is reached.
2080
- * @returns A promise which will be resolved if a request to given url has
2081
- * finished and resulting status code matches given expected status code.
2082
- * Otherwise, returned promise will be rejected.
2083
- */var checkReachability=/*#__PURE__*/function(){var _checkReachability=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(url,givenOptions){var _ref;var abortController,options,statusCodes,expectedIntermediateStatusCodes,isStatusCodeExpected,checkAndThrow,_t3;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:if(givenOptions===void 0){givenOptions={}}if(_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.fetch){_context2.n=1;break}throw new Error("Missing fetch implementation available.");case 1:abortController=(_ref=givenOptions.abortController)!==null&&_ref!==void 0?_ref:new AbortController;options=(0,_object__WEBPACK_IMPORTED_MODULE_3__.extend)(true,{expectedIntermediateStatusCodes:[],options:{signal:abortController.signal},pollIntervallInSeconds:0.1,statusCodes:200,timeoutInSeconds:10,wait:false},givenOptions);statusCodes=[].concat(options.statusCodes);expectedIntermediateStatusCodes=[].concat(options.expectedIntermediateStatusCodes);isStatusCodeExpected=function isStatusCodeExpected(response,statusCodes){return"status"in response&&statusCodes.includes(response.status)};checkAndThrow=function checkAndThrow(response){if(!isStatusCodeExpected(response,statusCodes))throw new Error("Given status code ".concat(String(response.status)," ")+"differs from ".concat(statusCodes.join(", "),"."));return response};if(!options.wait){_context2.n=2;break}return _context2.a(2,new Promise(function(resolve,reject){var timedOut=false;var timer=(0,_utility__WEBPACK_IMPORTED_MODULE_4__.timeout)(options.timeoutInSeconds*1000);var retryErrorHandler=function retryErrorHandler(error){if(!timedOut){currentlyRunningTimer=(0,_utility__WEBPACK_IMPORTED_MODULE_4__.timeout)(options.pollIntervallInSeconds*1000,wrapper);/*
2084
- NOTE: A timer rejection is expected. Avoid throwing
2085
- errors about unhandled promise rejections.
2086
- */currentlyRunningTimer.catch(function(){// Do nothing regardless of an error.
2087
- })}return error};var wrapper=/*#__PURE__*/function(){var _wrapper=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(){var response,_t,_t2;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:_context.p=0;_context.n=1;return _context__WEBPACK_IMPORTED_MODULE_2__.globalContext.fetch(url,options.options);case 1:response=_context.v;_context.n=3;break;case 2:_context.p=2;_t=_context.v;return _context.a(2,retryErrorHandler(_t));case 3:_context.p=3;resolve(checkAndThrow(response));timer.clear();_context.n=6;break;case 4:_context.p=4;_t2=_context.v;if(!isStatusCodeExpected(response,expectedIntermediateStatusCodes)){_context.n=5;break}return _context.a(2,retryErrorHandler(_t2));case 5:/* eslint-disable prefer-promise-reject-errors */reject(_t2);/* eslint-enable prefer-promise-reject-errors */timer.clear();case 6:return _context.a(2,response)}},_callee,null,[[3,4],[0,2]])}));function wrapper(){return _wrapper.apply(this,arguments)}return wrapper}();var currentlyRunningTimer=(0,_utility__WEBPACK_IMPORTED_MODULE_4__.timeout)(wrapper);timer.then(function(){timedOut=true;currentlyRunningTimer.clear();reject(new Error("Timeout of ".concat(String(options.timeoutInSeconds)," ")+"seconds reached."));abortController.abort()},function(){// Do nothing.
2088
- })}));case 2:_t3=checkAndThrow;_context2.n=3;return _context__WEBPACK_IMPORTED_MODULE_2__.globalContext.fetch(url,options.options);case 3:return _context2.a(2,_t3(_context2.v))}},_callee2)}));function checkReachability(_x,_x2){return _checkReachability.apply(this,arguments)}return checkReachability}();/**
2089
- * Checks if given url isn't reachable.
2090
- * @param url - Url to check reachability.
2091
- * @param givenOptions - Options to configure.
2092
- * @param givenOptions.wait - Boolean indicating if we should retry until a
2093
- * status code will be given.
2094
- * @param givenOptions.timeoutInSeconds - Delay after assuming given resource
2095
- * will stay available.
2096
- * @param givenOptions.pollIntervallInSeconds - Seconds between two tries to
2097
- * reach given url.
2098
- * @param givenOptions.statusCodes - Status codes to check for.
2099
- * @param givenOptions.options - Fetch options to use.
2100
- * @returns A promise which will be resolved if a request to given url couldn't
2101
- * be finished. Otherwise, returned promise will be rejected. If "wait" is set
2102
- * to "true" we will resolve to another promise still resolving when final
2103
- * timeout is reached or the endpoint is unreachable (after some tries).
2104
- */var checkUnreachability=/*#__PURE__*/function(){var _checkUnreachability=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(url,givenOptions){var _ref2;var abortController,options,check,result,_t5,_t6;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:if(givenOptions===void 0){givenOptions={}}if(_context__WEBPACK_IMPORTED_MODULE_2__.globalContext.fetch){_context4.n=1;break}throw new Error("Missing fetch implementation available.");case 1:abortController=(_ref2=givenOptions.abortController)!==null&&_ref2!==void 0?_ref2:new AbortController;options=(0,_object__WEBPACK_IMPORTED_MODULE_3__.extend)(true,{options:{signal:abortController.signal},pollIntervallInSeconds:0.1,statusCodes:[],timeoutInSeconds:10,wait:false},givenOptions);check=function check(response){var statusCodes=[].concat(options.statusCodes);if(statusCodes.length){if((0,_indicators__WEBPACK_IMPORTED_MODULE_1__.isObject)(response)&&"status"in response&&statusCodes.includes(response.status))throw new Error("Given url \"".concat(url,"\" is reachable and responses with ")+"status code \"".concat(String(response.status),"\"."));return new Error("Given status code is not \"".concat(statusCodes.join(", "),"\"."))}return null};if(!options.wait){_context4.n=2;break}return _context4.a(2,new Promise(function(resolve,reject){var timedOut=false;var _wrapper2=/*#__PURE__*/function(){var _wrapper3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(){var response,result,_t4;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:_context3.p=0;_context3.n=1;return _context__WEBPACK_IMPORTED_MODULE_2__.globalContext.fetch(url,options.options);case 1:response=_context3.v;if(!timedOut){_context3.n=2;break}return _context3.a(2,response);case 2:result=check(response);if(!result){_context3.n=3;break}timer.clear();resolve(result);return _context3.a(2,result);case 3:currentlyRunningTimer=(0,_utility__WEBPACK_IMPORTED_MODULE_4__.timeout)(options.pollIntervallInSeconds*1000,_wrapper2);/*
2105
- NOTE: A timer rejection is expected. Avoid throwing
2106
- errors about unhandled promise rejections.
2107
- */currentlyRunningTimer.catch(function(){// Do nothing regardless of an error.
2108
- });_context3.n=5;break;case 4:_context3.p=4;_t4=_context3.v;timer.clear();resolve(_t4);return _context3.a(2,_t4);case 5:return _context3.a(2,null)}},_callee3,null,[[0,4]])}));function wrapper(){return _wrapper3.apply(this,arguments)}return wrapper}();var currentlyRunningTimer=(0,_utility__WEBPACK_IMPORTED_MODULE_4__.timeout)(_wrapper2);var timer=(0,_utility__WEBPACK_IMPORTED_MODULE_4__.timeout)(options.timeoutInSeconds*1000);timer.then(function(){timedOut=true;currentlyRunningTimer.clear();reject(new Error("Timeout of ".concat(String(options.timeoutInSeconds)," ")+"seconds reached."));abortController.abort()},function(){// Do nothing.
2109
- })}));case 2:_context4.p=2;_t5=check;_context4.n=3;return _context__WEBPACK_IMPORTED_MODULE_2__.globalContext.fetch(url,options.options);case 3:result=_t5(_context4.v);if(!result){_context4.n=4;break}return _context4.a(2,result);case 4:_context4.n=6;break;case 5:_context4.p=5;_t6=_context4.v;return _context4.a(2,_t6);case 6:throw new Error("Given url \"".concat(url,"\" is reachable."));case 7:return _context4.a(2)}},_callee4,null,[[2,5]])}));function checkUnreachability(_x3,_x4){return _checkUnreachability.apply(this,arguments)}return checkUnreachability}();/**
2110
- * Preloads a given url via a temporary created image element.
2111
- * @param url - To image which should be downloaded.
2112
- * @returns A Promise indicating whether the image was loaded.
2113
- */var cacheImage=function cacheImage(url){return new Promise(function(resolve,reject){var imageElement=document.createElement("img");imageElement.onload=function(){var isLoaded=imageElement.complete;imageElement.remove();if(isLoaded)resolve();else reject(new Error("Image could not be loaded."))};imageElement.src=url})};
2114
-
2115
- /***/ }),
2116
- /* 25 */
2117
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2118
-
2119
- "use strict";
2120
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2121
- /* harmony export */ MANUAL_SCROLL_EVENT_NAMES: function() { return /* binding */ MANUAL_SCROLL_EVENT_NAMES; },
2122
- /* harmony export */ SCROLL_EVENT_NAMES: function() { return /* binding */ SCROLL_EVENT_NAMES; },
2123
- /* harmony export */ STOP_AUTO_SCROLLING: function() { return /* binding */ STOP_AUTO_SCROLLING; },
2124
- /* harmony export */ closest: function() { return /* binding */ closest; },
2125
- /* harmony export */ createDomNodes: function() { return /* binding */ createDomNodes; },
2126
- /* harmony export */ fade: function() { return /* binding */ fade; },
2127
- /* harmony export */ fadeIn: function() { return /* binding */ fadeIn; },
2128
- /* harmony export */ fadeOut: function() { return /* binding */ fadeOut; },
2129
- /* harmony export */ getAll: function() { return /* binding */ getAll; },
2130
- /* harmony export */ getParents: function() { return /* binding */ getParents; },
2131
- /* harmony export */ getText: function() { return /* binding */ _getText; },
2132
- /* harmony export */ interruptableScrollTo: function() { return /* binding */ interruptableScrollTo; },
2133
- /* harmony export */ isEquivalent: function() { return /* binding */ isEquivalent; },
2134
- /* harmony export */ isHidden: function() { return /* binding */ _isHidden; },
2135
- /* harmony export */ onDocumentReady: function() { return /* binding */ onDocumentReady; },
2136
- /* harmony export */ replace: function() { return /* binding */ replace; },
2137
- /* harmony export */ scrollTo: function() { return /* binding */ scrollTo; },
2138
- /* harmony export */ unwrap: function() { return /* binding */ unwrap; },
2139
- /* harmony export */ wrap: function() { return /* binding */ wrap; }
2140
- /* harmony export */ });
2141
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2142
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
2143
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
2144
- /* harmony import */ var _utility__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
2145
- // #!/usr/bin/env babel-node
2146
- // -*- coding: utf-8 -*-
2147
- /** @module domNode *//* !
2148
- region header
2149
- [Project page](https://torben.website/clientnode)
2150
-
2151
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
2152
-
2153
- License
2154
- -------
2155
-
2156
- This library written by Torben Sickert stands under a creative commons
2157
- naming 3.0 unported license.
2158
- See https://creativecommons.org/licenses/by/3.0/deed.de
2159
- endregion
2160
- */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 _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):(e.__proto__=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)})}}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 _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 _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 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)}var createDomNodes=function createDomNodes(html){var domNodeWrapper=document.createElement("div");domNodeWrapper.innerHTML=html;if(domNodeWrapper.childNodes.length===1)/*
2161
- NOTE: We need to clone the nested child to decouple it from its
2162
- parent node.
2163
- */return domNodeWrapper.childNodes[0].cloneNode(true);return domNodeWrapper};var fade=function fade(domNode,intervalInMilliseconds,out){if(intervalInMilliseconds===void 0){intervalInMilliseconds=200}if(out===void 0){out=true}var transitionBackup=domNode.style.transition;var visibleBackup=domNode.style.visibility;var opacityBackup=domNode.style.opacity;var hadStyleAttribute=domNode.hasAttribute("style");if(out){domNode.style.visibility="hidden";domNode.style.opacity="0";domNode.style.transition="visibility 0s ".concat(String(intervalInMilliseconds),"ms, ")+"opacity ".concat(String(intervalInMilliseconds),"ms linear")}else{domNode.style.visibility="visible";domNode.style.opacity="1";domNode.style.transition="opacity ".concat(String(intervalInMilliseconds),"ms linear")}var clearTimeoutAndResetDomNode=_context__WEBPACK_IMPORTED_MODULE_1__.NOOP;var resolved=false;var promise=new Promise(function(resolve){clearTimeoutAndResetDomNode=function clearTimeoutAndResetDomNode(){domNode.style.transition=transitionBackup;resolved=true;resolve()};void (0,_utility__WEBPACK_IMPORTED_MODULE_2__.timeout)(intervalInMilliseconds).then(clearTimeoutAndResetDomNode)});promise.clear=function(){if(!resolved){domNode.style.transition="none";clearTimeoutAndResetDomNode()}};promise.resetStyles=function(){if(hadStyleAttribute){domNode.style.transition=transitionBackup;domNode.style.visibility=visibleBackup;domNode.style.opacity=opacityBackup}else domNode.removeAttribute("style")};return promise};var fadeIn=function fadeIn(domNode,intervalInMilliseconds){if(intervalInMilliseconds===void 0){intervalInMilliseconds=200}return fade(domNode,intervalInMilliseconds,false)};var fadeOut=function fadeOut(domNode,intervalInMilliseconds){if(intervalInMilliseconds===void 0){intervalInMilliseconds=200}return fade(domNode,intervalInMilliseconds)};var STOP_AUTO_SCROLLING={value:_context__WEBPACK_IMPORTED_MODULE_1__.NOOP};var MANUAL_SCROLL_EVENT_NAMES=["DOMMouseScroll","keydown","mousedown","mousewheel","wheel","touchstart","touchmove"];var SCROLL_EVENT_NAMES=["scroll"].concat(MANUAL_SCROLL_EVENT_NAMES);/**
2164
- * Smoothly scrolls both horizontally and vertically to a target DOM node.
2165
- * Cancels instantly if the user interacts with the mouse, touch, or keys.
2166
- * @param givenOptions - Configuration options.
2167
- * @param givenOptions.targetDomNode - The DOM node you want to scroll to.
2168
- * @param givenOptions.containerDomNode - The scrollable parent.
2169
- * @param givenOptions.durationInMilliseconds - Animation duration in
2170
- * milliseconds.
2171
- * @param givenOptions.interruptOnManualScroll - Whether to stop the animation
2172
- * if the user starts to scroll manually.
2173
- * @param givenOptions.offset - Pixel offsets.
2174
- * @param givenOptions.offset.top - Vertical offset in pixels.
2175
- * @param givenOptions.offset.left - Horizontal offset in pixels.
2176
- */var interruptableScrollTo=function interruptableScrollTo(givenOptions){if(givenOptions===void 0){givenOptions={}}if(!(_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.document&&_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.window))return;var document=_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.document;var body=document.body;var window=_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.window;if(givenOptions.containerDomNode&&!("getBoundingClientRect"in givenOptions.containerDomNode)&&"parentElement"in givenOptions.containerDomNode)givenOptions.containerDomNode=givenOptions.containerDomNode.parentElement;if(givenOptions.targetDomNode&&!("getBoundingClientRect"in givenOptions.targetDomNode)&&"parentElement"in givenOptions.targetDomNode)givenOptions.targetDomNode=givenOptions.targetDomNode.parentElement;var options=_objectSpread({targetDomNode:body,containerDomNode:window,durationInMilliseconds:500,offset:_objectSpread({top:0,left:0},givenOptions.offset||{}),interruptOnManualScroll:true},givenOptions);var isWindow=options.containerDomNode===window;// 1. Get current starting scroll positions
2177
- var startY=isWindow?window.scrollY||document.documentElement.scrollTop:options.containerDomNode.scrollTop;var startX=isWindow?window.scrollX||document.documentElement.scrollLeft:options.containerDomNode.scrollLeft;// 2. Calculate targetDomNode positions for both axes
2178
- var targetY;var targetX;if(isWindow){var rect=options.targetDomNode.getBoundingClientRect();targetY=rect.top+(window.scrollY||document.documentElement.scrollTop)-options.offset.top;targetX=rect.left+(window.scrollX||document.documentElement.scrollLeft)-options.offset.left}else{// Relative to the scrollable parent container
2179
- targetY=options.targetDomNode.offsetTop-options.containerDomNode.offsetTop-options.offset.top;targetX=options.targetDomNode.offsetLeft-options.containerDomNode.offsetLeft-options.offset.left}var distanceY=targetY-startY;var distanceX=targetX-startX;// If no movement is needed, exit immediately
2180
- if(distanceY===0&&distanceX===0)return;var startTime=null;var animationFrameId=null;// Easing function
2181
- var easeInOutQuad=function easeInOutQuad(time){return time<0.5?2*time*time:-1+(4-2*time)*time};if(options.interruptOnManualScroll){// 3. Define the interrupt / teardown system
2182
- STOP_AUTO_SCROLLING.value=function(){if(animationFrameId){cancelAnimationFrame(animationFrameId);animationFrameId=null}for(var _i=0,_arr=[body,document.querySelector("html"),window];_i<_arr.length;_i++){var node=_arr[_i];for(var _i2=0,_MANUAL_SCROLL_EVENT_=MANUAL_SCROLL_EVENT_NAMES;_i2<_MANUAL_SCROLL_EVENT_.length;_i2++){var name=_MANUAL_SCROLL_EVENT_[_i2];node===null||node===void 0||node.removeEventListener(name,STOP_AUTO_SCROLLING.value)}}STOP_AUTO_SCROLLING.value=_context__WEBPACK_IMPORTED_MODULE_1__.NOOP};for(var _i3=0,_arr2=[body,document.querySelector("html"),window];_i3<_arr2.length;_i3++){var node=_arr2[_i3];for(var _i4=0,_MANUAL_SCROLL_EVENT_2=MANUAL_SCROLL_EVENT_NAMES;_i4<_MANUAL_SCROLL_EVENT_2.length;_i4++){var name=_MANUAL_SCROLL_EVENT_2[_i4];node===null||node===void 0||node.addEventListener(name,STOP_AUTO_SCROLLING.value,{passive:true})}}}// 4. Multi-axis animation loop
2183
- var _step=function step(currentTime){if(!startTime)startTime=currentTime;var progress=currentTime-startTime;var timeRatio=Math.min(progress/options.durationInMilliseconds,1);var easedRatio=easeInOutQuad(timeRatio);// Linearly interpolate the positions based on eased progress.
2184
- var nextY=startY+distanceY*easedRatio;var nextX=startX+distanceX*easedRatio;// Apply scroll to window or container.
2185
- if(isWindow)window.scrollTo(nextX,nextY);else{;options.containerDomNode.scrollTop=nextY;options.containerDomNode.scrollLeft=nextX}if(timeRatio<1)animationFrameId=requestAnimationFrame(_step);else STOP_AUTO_SCROLLING.value()};animationFrameId=requestAnimationFrame(_step)};/**
2186
- * Scrolls to the given DomNode's location or tio of the page.
2187
- * @param targetDomNode - DomNode to scroll to. If not given, scrolls to the
2188
- * top of the page.
2189
- * @param behavior - Scroll behavior to use.
2190
- */var scrollTo=function scrollTo(targetDomNode,behavior){var _globalContext$window;if(targetDomNode===void 0){targetDomNode=null}if(behavior===void 0){behavior="smooth"}if(targetDomNode&&!("getBoundingClientRect"in targetDomNode))targetDomNode=targetDomNode.parentElement;var _ref=targetDomNode?targetDomNode.getBoundingClientRect():{left:0,top:0},left=_ref.left,top=_ref.top;(_globalContext$window=_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.window)===null||_globalContext$window===void 0||_globalContext$window.scrollTo({left:left,top:top,behavior:behavior})};var getAll=function getAll(root){if(!_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.document)return[];var nodes=[];// SHOW_ALL includes elements, text, and comments
2191
- var walker=_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.document.createTreeWalker(root,NodeFilter.SHOW_ALL,null);var currentNode=walker.currentNode;while(currentNode){nodes.push(currentNode);currentNode=walker.nextNode()}return nodes};var closest=function closest(node,selector,startWithParent){var _node$parentElement;if(startWithParent===void 0){startWithParent=false}return"closest"in node&&!startWithParent?node.closest(selector):((_node$parentElement=node.parentElement)===null||_node$parentElement===void 0?void 0:_node$parentElement.closest(selector))||null};var getParents=function getParents(node){var result=[];while(node.parentNode){result.push(node.parentNode);node=node.parentNode}return result};var _getText=function getText(root,recursive){if(recursive===void 0){recursive=false}if(root.nodeType===Node.TEXT_NODE){var _root$nodeValue;var content=(_root$nodeValue=root.nodeValue)===null||_root$nodeValue===void 0?void 0:_root$nodeValue.trim();if(content)return[content]}var result=[];var _iterator=_createForOfIteratorHelper(root.childNodes),_step2;try{for(_iterator.s();!(_step2=_iterator.n()).done;){var domNode=_step2.value;if(recursive||domNode.nodeType===Node.TEXT_NODE)result.push.apply(result,_toConsumableArray(_getText(domNode)))}}catch(err){_iterator.e(err)}finally{_iterator.f()}return result};/**
2192
- * Checks whether given html or text strings are equal.
2193
- * @param first - First html, selector to dom node or text to compare.
2194
- * @param second - Second html, selector to dom node or text to compare.
2195
- * @param forceHTMLString - Indicates whether given contents are
2196
- * interpreted as html string (otherwise automatic detection will be
2197
- * triggered).
2198
- * @returns Returns true if both dom representations are equivalent.
2199
- */var isEquivalent=function isEquivalent(first,second,forceHTMLString){if(forceHTMLString===void 0){forceHTMLString=false}if(first===second)return true;if(!(first&&second))return false;if(!_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.document)throw new Error("Missing document in global context.");var createElement=_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.document.createElement.bind(_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.document);var determineHTMLPattern=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;var inputs={first:first,second:second};var domNodes={first:createElement("dummy"),second:createElement("dummy")};/*
2200
- NOTE: Assume that strings that start "<" and end with ">" are mark up
2201
- and skip the more expensive regular expression check.
2202
- */for(var _i5=0,_Object$entries=Object.entries(inputs);_i5<_Object$entries.length;_i5++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i5],2),type=_Object$entries$_i[0],html=_Object$entries$_i[1];if(typeof html==="string"){if(forceHTMLString||html.startsWith("<")&&html.endsWith(">")&&html.length>=3||determineHTMLPattern.test(html))domNodes[type]=createDomNodes(html);else{var domNode=document.querySelector(html);if(domNode)/*
2203
- NOTE: We copy the node tree to not manipulate the
2204
- original dom node by normalizing it afterward.
2205
- */domNodes[type]=domNode.cloneNode(true);else return false}}else if("cloneNode"in html)domNodes[type]=html.cloneNode(true);else return false}domNodes.first.normalize();domNodes.second.normalize();return domNodes.first.isEqualNode(domNodes.second)};/**
2206
- * Checks whether the given dom node is visible or takes space in the document
2207
- * flow.
2208
- * Elements with visibility: hidden or opacity: 0 are considered to be visible,
2209
- * since they still consume space in the layout. During animations that hide an
2210
- * element, the element is considered to be visible until the end of the
2211
- * animation.
2212
- * @param domNode - To inspect.
2213
- * @returns A boolean indicating the visibility.
2214
- */var _isHidden=function isHidden(domNode){var _globalContext$docume;return!((_globalContext$docume=_context__WEBPACK_IMPORTED_MODULE_1__.globalContext.document)!==null&&_globalContext$docume!==void 0&&_globalContext$docume.contains(domNode))||domNode.style.display==="none"||domNode.nodeName==="INPUT"&&domNode.getAttribute("type")==="hidden"||["contents","inline"].includes(domNode.style.display)&&(!("innerHTML"in domNode)||domNode.innerHTML.trim()==="")||domNode.style.height==="0px"&&domNode.style.width==="0px"||Boolean(domNode.parentElement)&&_isHidden(domNode.parentElement)};var onDocumentReady=function onDocumentReady(callback){return new Promise(function(resolve){return void _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(){return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:if(!["complete","interactive"].includes(document.readyState)){_context.n=2;break}_context.n=1;return (0,_utility__WEBPACK_IMPORTED_MODULE_2__.timeout)();case 1:resolve();callback===null||callback===void 0||callback();_context.n=3;break;case 2:document.addEventListener("DOMContentLoaded",function(){resolve();callback===null||callback===void 0||callback()});case 3:return _context.a(2)}},_callee)}))()})};/**
2215
- * Replaces a given dom node with given nodes.
2216
- * @param domNodeToReplace - Node to replace its children.
2217
- * @param replacementDomNodes - Node or array of nodes to use as replacement.
2218
- * @param skipEmptyTextNodes - Configures whether to trim text.
2219
- */var replace=function replace(domNodeToReplace,replacementDomNodes,skipEmptyTextNodes){if(skipEmptyTextNodes===void 0){skipEmptyTextNodes=false}var _iterator2=_createForOfIteratorHelper([].concat(replacementDomNodes).reverse()),_step3;try{for(_iterator2.s();!(_step3=_iterator2.n()).done;){var _replacement$nodeValu;var replacement=_step3.value;if(!(skipEmptyTextNodes&&replacement.nodeType===Node.TEXT_NODE&&((_replacement$nodeValu=replacement.nodeValue)===null||_replacement$nodeValu===void 0?void 0:_replacement$nodeValu.trim())===""))domNodeToReplace.after(replacement)}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}domNodeToReplace.remove()};var wrap=function wrap(domNodes,wrapper){var domNodeList=domNodes.length?Array.from(domNodes):[domNodes];// Use the first element's position as the anchor point
2220
- var first=domNodeList[0];if(first.parentNode)first.parentNode.insertBefore(wrapper,first);var _iterator3=_createForOfIteratorHelper(domNodeList),_step4;try{for(_iterator3.s();!(_step4=_iterator3.n()).done;){var domNode=_step4.value;wrapper.appendChild(domNode)}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}};/**
2221
- * Moves the content of a given dom node one level up and removes the given
2222
- * node.
2223
- * @param domNode - Node to unwrap.
2224
- * @returns List of unwrapped nodes.
2225
- */var unwrap=function unwrap(domNode){var parent=domNode.parentNode;var result=[];// NOTE: We need to use "Array.from" to copy the list.
2226
- for(var _i6=0,_Array$from=Array.from(domNode.childNodes);_i6<_Array$from.length;_i6++){var childNode=_Array$from[_i6];result.push(childNode);if(parent)parent.insertBefore(childNode,domNode)}if(parent)parent.removeChild(domNode);return result};
2227
-
2228
- /***/ }),
2229
- /* 26 */
2230
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2231
-
2232
- "use strict";
2233
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2234
- /* harmony export */ getProcessCloseHandler: function() { return /* binding */ getProcessCloseHandler; },
2235
- /* harmony export */ handleChildProcess: function() { return /* binding */ handleChildProcess; }
2236
- /* harmony export */ });
2237
- /* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27);
2238
- /* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_0__);
2239
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
2240
- // #!/usr/bin/env babel-node
2241
- // -*- coding: utf-8 -*-
2242
- /** @module process *//* !
2243
- region header
2244
- [Project page](https://torben.website/clientnode)
2245
-
2246
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
2247
-
2248
- License
2249
- -------
2250
-
2251
- This library written by Torben Sickert stands under a creative commons
2252
- naming 3.0 unported license.
2253
- See https://creativecommons.org/licenses/by/3.0/deed.de
2254
- endregion
2255
- *//**
2256
- * Generates a one shot close handler which triggers given promise methods.
2257
- * If a reason is provided it will be given as resolve target. An Error will be
2258
- * generated if return code is not zero. The generated Error has a property
2259
- * "returnCode" which provides corresponding process return code.
2260
- * @param resolve - Promise's resolve function.
2261
- * @param reject - Promise's reject function.
2262
- * @param reason - Promise target if process has a zero return code.
2263
- * @param callback - Optional function to call of process has successfully
2264
- * finished.
2265
- * @returns Process close handler function.
2266
- */var getProcessCloseHandler=function getProcessCloseHandler(resolve,reject,reason,callback){if(reason===void 0){reason=null}if(callback===void 0){callback=_context__WEBPACK_IMPORTED_MODULE_1__.NOOP}var finished=false;return function(returnCode){if(finished)finished=true;else{finished=true;for(var _len=arguments.length,parameters=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){parameters[_key-1]=arguments[_key]}if(typeof returnCode!=="number"||returnCode===0){callback();resolve({reason:reason,parameters:parameters})}else{var error=new Error("Task exited with error code ".concat(String(returnCode)));error.returnCode=returnCode;error.parameters=parameters;reject(error)}}}};/**
2267
- * Forwards given child process communication channels to corresponding current
2268
- * process communication channels.
2269
- * @param childProcess - Child process meta data.
2270
- * @returns Given child process meta data.
2271
- */var handleChildProcess=function handleChildProcess(childProcess){if(childProcess.stdout)childProcess.stdout.pipe(process.stdout);if(childProcess.stderr)childProcess.stderr.pipe(process.stderr);childProcess.on("close",function(returnCode){if(returnCode!==0)console.error("Task exited with error code ".concat(String(returnCode)))});return childProcess};
2272
-
2273
- /***/ }),
2274
- /* 27 */
2275
- /***/ (function(module) {
2276
-
2277
- "use strict";
2278
- module.exports = __WEBPACK_EXTERNAL_MODULE__27__;
2279
-
2280
- /***/ }),
2281
- /* 28 */
2282
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2283
-
2284
- "use strict";
2285
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2286
- /* harmony export */ UTILITY_SCOPE: function() { return /* binding */ UTILITY_SCOPE; },
2287
- /* harmony export */ UTILITY_SCOPE_NAMES: function() { return /* binding */ UTILITY_SCOPE_NAMES; },
2288
- /* harmony export */ UTILITY_SCOPE_VALUES: function() { return /* binding */ UTILITY_SCOPE_VALUES; },
2289
- /* harmony export */ determineUniqueScopeName: function() { return /* binding */ determineUniqueScopeName; },
2290
- /* harmony export */ isolateScope: function() { return /* binding */ isolateScope; }
2291
- /* harmony export */ });
2292
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2293
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
2294
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
2295
- /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
2296
- /* harmony import */ var _datetime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18);
2297
- /* harmony import */ var _filesystem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12);
2298
- /* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19);
2299
- /* harmony import */ var _indicators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4);
2300
- /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(16);
2301
- /* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2);
2302
- /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9);
2303
- /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(3);
2304
- /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(7);
2305
- /* harmony import */ var _utility__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(13);
2306
- // #!/usr/bin/env babel-node
2307
- // -*- coding: utf-8 -*-
2308
- /** @module scope *//* !
2309
- region header
2310
- [Project page](https://torben.website/clientnode)
2311
-
2312
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
2313
-
2314
- License
2315
- -------
2316
-
2317
- This library written by Torben Sickert stands under a creative commons
2318
- naming 3.0 unported license.
2319
- See https://creativecommons.org/licenses/by/3.0/deed.de
2320
- endregion
2321
- */var UTILITY_SCOPE={array:_array__WEBPACK_IMPORTED_MODULE_2__,datetime:_datetime__WEBPACK_IMPORTED_MODULE_3__,filesystem:_filesystem__WEBPACK_IMPORTED_MODULE_4__,functions:_function__WEBPACK_IMPORTED_MODULE_5__,indicators:_indicators__WEBPACK_IMPORTED_MODULE_6__,logger:_Logger__WEBPACK_IMPORTED_MODULE_7__,module:_module__WEBPACK_IMPORTED_MODULE_8__,number:_number__WEBPACK_IMPORTED_MODULE_9__,object:_object__WEBPACK_IMPORTED_MODULE_10__,string:_string__WEBPACK_IMPORTED_MODULE_11__,utility:_utility__WEBPACK_IMPORTED_MODULE_12__};/*
2322
- NOTE: Not generating these two arrays facilitates static code analysis in
2323
- consuming code.
2324
- */var UTILITY_SCOPE_NAMES=["array","datetime","filesystem","functions","indicators","logger","module","number","object","string","utility"];var UTILITY_SCOPE_VALUES=[_array__WEBPACK_IMPORTED_MODULE_2__,_datetime__WEBPACK_IMPORTED_MODULE_3__,_filesystem__WEBPACK_IMPORTED_MODULE_4__,_function__WEBPACK_IMPORTED_MODULE_5__,_indicators__WEBPACK_IMPORTED_MODULE_6__,_Logger__WEBPACK_IMPORTED_MODULE_7__,_module__WEBPACK_IMPORTED_MODULE_8__,_number__WEBPACK_IMPORTED_MODULE_9__,_object__WEBPACK_IMPORTED_MODULE_10__,_string__WEBPACK_IMPORTED_MODULE_11__,_utility__WEBPACK_IMPORTED_MODULE_12__];/**
2325
- * Overwrites all inherited variables from parent scope with "undefined".
2326
- * @param scope - A scope where inherited names will be removed.
2327
- * @param prefixesToIgnore - Name prefixes to ignore during deleting names in
2328
- * given scope.
2329
- * @returns The isolated scope.
2330
- */var isolateScope=function isolateScope(scope,prefixesToIgnore){if(prefixesToIgnore===void 0){prefixesToIgnore=[]}for(var name in scope)if(!(prefixesToIgnore.includes(name.charAt(0))||["constructor","prototype","this"].includes(name)||Object.prototype.hasOwnProperty.call(scope,name)))/*
2331
- NOTE: Delete ("delete $scope[name]") doesn't destroy the
2332
- automatic lookup to parent scope.
2333
- */scope[name]=undefined;return scope};/**
2334
- * Generates a unique name in given scope (useful for jsonp requests).
2335
- * @param prefix - A prefix which will be prepended to unique name.
2336
- * @param suffix - A suffix which will be prepended to unique name.
2337
- * @param scope - A scope where the name should be unique.
2338
- * @param initialUniqueName - An initial scope name to use if not exists.
2339
- * @returns The function name.
2340
- */var determineUniqueScopeName=function determineUniqueScopeName(prefix,suffix,scope,initialUniqueName){if(prefix===void 0){prefix="callback"}if(suffix===void 0){suffix=""}if(scope===void 0){scope=_context__WEBPACK_IMPORTED_MODULE_1__.globalContext}if(initialUniqueName===void 0){initialUniqueName=""}if(initialUniqueName.length&&!(initialUniqueName in scope))return initialUniqueName;var uniqueName=prefix+suffix;for(var iteration=0;iteration<_context__WEBPACK_IMPORTED_MODULE_1__.MAXIMAL_NUMBER_OF_ITERATIONS.value;iteration++){uniqueName=prefix+String(Math.round(Math.random()*Math.pow(10,10)))+suffix;if(!(uniqueName in scope))break}return uniqueName};
2341
-
2342
- /***/ }),
2343
- /* 29 */,
2344
- /* 30 */
2345
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2346
-
2347
- "use strict";
2348
- __webpack_require__.r(__webpack_exports__);
2349
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2350
- /* harmony export */ ABBREVIATIONS: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.ABBREVIATIONS; },
2351
- /* harmony export */ ALLOWED_STARTING_VARIABLE_SYMBOLS: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.ALLOWED_STARTING_VARIABLE_SYMBOLS; },
2352
- /* harmony export */ ALLOWED_VARIABLE_SYMBOLS: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.ALLOWED_VARIABLE_SYMBOLS; },
2353
- /* harmony export */ ANIMATION_END_EVENT_NAMES: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.ANIMATION_END_EVENT_NAMES; },
2354
- /* harmony export */ CLASS_TO_TYPE_MAPPING: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.CLASS_TO_TYPE_MAPPING; },
2355
- /* harmony export */ CLI_COLOR: function() { return /* reexport safe */ _cli__WEBPACK_IMPORTED_MODULE_2__.CLI_COLOR; },
2356
- /* harmony export */ CLOSE_EVENT_NAMES: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.CLOSE_EVENT_NAMES; },
2357
- /* harmony export */ CONSOLE_METHODS: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.CONSOLE_METHODS; },
2358
- /* harmony export */ DATE_TIME_PATTERN_CACHE: function() { return /* reexport safe */ _datetime__WEBPACK_IMPORTED_MODULE_7__.DATE_TIME_PATTERN_CACHE; },
2359
- /* harmony export */ DEFAULT_ENCODING: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.DEFAULT_ENCODING; },
2360
- /* harmony export */ DEFAULT_OPTIONS: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.DEFAULT_OPTIONS; },
2361
- /* harmony export */ FIX_ENCODING_ERROR_MAPPING: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.FIX_ENCODING_ERROR_MAPPING; },
2362
- /* harmony export */ IGNORE_NULL_AND_UNDEFINED_SYMBOL: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.IGNORE_NULL_AND_UNDEFINED_SYMBOL; },
2363
- /* harmony export */ KEYBOARD_CODES: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.KEYBOARD_CODES; },
2364
- /* harmony export */ KEY_CODES: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.KEY_CODES; },
2365
- /* harmony export */ LEVELS: function() { return /* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_18__.LEVELS; },
2366
- /* harmony export */ LEVELS_COLOR: function() { return /* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_18__.LEVELS_COLOR; },
2367
- /* harmony export */ LOCALES: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.LOCALES; },
2368
- /* harmony export */ Lock: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.Lock; },
2369
- /* harmony export */ Logger: function() { return /* reexport safe */ _Logger__WEBPACK_IMPORTED_MODULE_18__.Logger; },
2370
- /* harmony export */ MANUAL_SCROLL_EVENT_NAMES: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.MANUAL_SCROLL_EVENT_NAMES; },
2371
- /* harmony export */ MAXIMAL_NUMBER_OF_ITERATIONS: function() { return /* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_4__.MAXIMAL_NUMBER_OF_ITERATIONS; },
2372
- /* harmony export */ NOOP: function() { return /* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_4__.NOOP; },
2373
- /* harmony export */ NO_ITEM_FOUND_SYMBOL: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.NO_ITEM_FOUND_SYMBOL; },
2374
- /* harmony export */ PLAIN_OBJECT_PROTOTYPES: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.PLAIN_OBJECT_PROTOTYPES; },
2375
- /* harmony export */ POLYFILL_TEMPLATE_STRINGS: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.POLYFILL_TEMPLATE_STRINGS; },
2376
- /* harmony export */ SCROLL_EVENT_NAMES: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.SCROLL_EVENT_NAMES; },
2377
- /* harmony export */ SELECTOR_KEY_NAMES: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.SELECTOR_KEY_NAMES; },
2378
- /* harmony export */ SPECIAL_REGEX_SEQUENCES: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.SPECIAL_REGEX_SEQUENCES; },
2379
- /* harmony export */ STOP_AUTO_SCROLLING: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.STOP_AUTO_SCROLLING; },
2380
- /* harmony export */ Semaphore: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.Semaphore; },
2381
- /* harmony export */ TRANSITION_END_EVENT_NAMES: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.TRANSITION_END_EVENT_NAMES; },
2382
- /* harmony export */ UTILITY_SCOPE: function() { return /* reexport safe */ _scope__WEBPACK_IMPORTED_MODULE_16__.UTILITY_SCOPE; },
2383
- /* harmony export */ UTILITY_SCOPE_NAMES: function() { return /* reexport safe */ _scope__WEBPACK_IMPORTED_MODULE_16__.UTILITY_SCOPE_NAMES; },
2384
- /* harmony export */ UTILITY_SCOPE_VALUES: function() { return /* reexport safe */ _scope__WEBPACK_IMPORTED_MODULE_16__.UTILITY_SCOPE_VALUES; },
2385
- /* harmony export */ VALUE_COPY_SYMBOL: function() { return /* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_3__.VALUE_COPY_SYMBOL; },
2386
- /* harmony export */ addDynamicGetterAndSetter: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.addDynamicGetterAndSetter; },
2387
- /* harmony export */ addSeparatorToPath: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.addSeparatorToPath; },
2388
- /* harmony export */ aggregatePropertyIfEqual: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.aggregatePropertyIfEqual; },
2389
- /* harmony export */ cacheImage: function() { return /* reexport safe */ _data_transfer__WEBPACK_IMPORTED_MODULE_6__.cacheImage; },
2390
- /* harmony export */ camelCaseToDelimited: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.camelCaseToDelimited; },
2391
- /* harmony export */ capitalize: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.capitalize; },
2392
- /* harmony export */ ceil: function() { return /* reexport safe */ _number__WEBPACK_IMPORTED_MODULE_12__.ceil; },
2393
- /* harmony export */ checkReachability: function() { return /* reexport safe */ _data_transfer__WEBPACK_IMPORTED_MODULE_6__.checkReachability; },
2394
- /* harmony export */ checkUnreachability: function() { return /* reexport safe */ _data_transfer__WEBPACK_IMPORTED_MODULE_6__.checkUnreachability; },
2395
- /* harmony export */ clearRequireCache: function() { return /* reexport safe */ _module__WEBPACK_IMPORTED_MODULE_15__.clearRequireCache; },
2396
- /* harmony export */ closest: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.closest; },
2397
- /* harmony export */ compile: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.compile; },
2398
- /* harmony export */ compressStyleValue: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.compressStyleValue; },
2399
- /* harmony export */ convertCircularObjectToJSON: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.convertCircularObjectToJSON; },
2400
- /* harmony export */ convertMapToPlainObject: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.convertMapToPlainObject; },
2401
- /* harmony export */ convertPlainObjectToMap: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.convertPlainObjectToMap; },
2402
- /* harmony export */ convertSubstringInPlainObject: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.convertSubstringInPlainObject; },
2403
- /* harmony export */ convertToValidVariableName: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.convertToValidVariableName; },
2404
- /* harmony export */ copy: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.copy; },
2405
- /* harmony export */ copyDirectoryRecursive: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.copyDirectoryRecursive; },
2406
- /* harmony export */ copyDirectoryRecursiveSync: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.copyDirectoryRecursiveSync; },
2407
- /* harmony export */ copyFile: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.copyFile; },
2408
- /* harmony export */ copyFileSync: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.copyFileSync; },
2409
- /* harmony export */ createDomNodes: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.createDomNodes; },
2410
- /* harmony export */ currentRequire: function() { return /* reexport safe */ _module__WEBPACK_IMPORTED_MODULE_15__.currentRequire; },
2411
- /* harmony export */ dateTimeFormat: function() { return /* reexport safe */ _datetime__WEBPACK_IMPORTED_MODULE_7__.dateTimeFormat; },
2412
- /* harmony export */ debounce: function() { return /* reexport safe */ _utility__WEBPACK_IMPORTED_MODULE_19__.debounce; },
2413
- /* harmony export */ decodeHTMLEntities: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.decodeHTMLEntities; },
2414
- /* harmony export */ deleteCookie: function() { return /* reexport safe */ _cookie__WEBPACK_IMPORTED_MODULE_5__.deleteCookie; },
2415
- /* harmony export */ deleteEmptyItems: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.deleteEmptyItems; },
2416
- /* harmony export */ delimitedToCamelCase: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.delimitedToCamelCase; },
2417
- /* harmony export */ determineGlobalContext: function() { return /* reexport safe */ _module__WEBPACK_IMPORTED_MODULE_15__.determineGlobalContext; },
2418
- /* harmony export */ determineType: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.determineType; },
2419
- /* harmony export */ determineUniqueScopeName: function() { return /* reexport safe */ _scope__WEBPACK_IMPORTED_MODULE_16__.determineUniqueScopeName; },
2420
- /* harmony export */ encodeURIComponentExtended: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.encodeURIComponentExtended; },
2421
- /* harmony export */ equals: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.equals; },
2422
- /* harmony export */ escapeRegularExpressions: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.escapeRegularExpressions; },
2423
- /* harmony export */ evaluate: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.evaluate; },
2424
- /* harmony export */ evaluateAnd: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateAnd; },
2425
- /* harmony export */ evaluateAndThrowError: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.evaluateAndThrowError; },
2426
- /* harmony export */ evaluateArrayContains: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateArrayContains; },
2427
- /* harmony export */ evaluateAsyncDynamicData: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.evaluateAsyncDynamicData; },
2428
- /* harmony export */ evaluateConcat: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateConcat; },
2429
- /* harmony export */ evaluateCondition: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateCondition; },
2430
- /* harmony export */ evaluateDynamicData: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.evaluateDynamicData; },
2431
- /* harmony export */ evaluateExpression: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateExpression; },
2432
- /* harmony export */ evaluateIf: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateIf; },
2433
- /* harmony export */ evaluateMapping: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateMapping; },
2434
- /* harmony export */ evaluateOperation: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateOperation; },
2435
- /* harmony export */ evaluateOptionalThen: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateOptionalThen; },
2436
- /* harmony export */ evaluateOr: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateOr; },
2437
- /* harmony export */ evaluateSelector: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateSelector; },
2438
- /* harmony export */ evaluateSelectorUntilLastObject: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateSelectorUntilLastObject; },
2439
- /* harmony export */ evaluateSwitch: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateSwitch; },
2440
- /* harmony export */ evaluateUnaryOperation: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.evaluateUnaryOperation; },
2441
- /* harmony export */ extend: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.extend; },
2442
- /* harmony export */ extract: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.extract; },
2443
- /* harmony export */ extractIfMatches: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.extractIfMatches; },
2444
- /* harmony export */ extractIfPropertyExists: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.extractIfPropertyExists; },
2445
- /* harmony export */ extractIfPropertyMatches: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.extractIfPropertyMatches; },
2446
- /* harmony export */ fade: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.fade; },
2447
- /* harmony export */ fadeIn: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.fadeIn; },
2448
- /* harmony export */ fadeOut: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.fadeOut; },
2449
- /* harmony export */ findNormalizedMatchRange: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.findNormalizedMatchRange; },
2450
- /* harmony export */ fixKnownEncodingErrors: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.fixKnownEncodingErrors; },
2451
- /* harmony export */ floor: function() { return /* reexport safe */ _number__WEBPACK_IMPORTED_MODULE_12__.floor; },
2452
- /* harmony export */ format: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.format; },
2453
- /* harmony export */ getAll: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.getAll; },
2454
- /* harmony export */ getCookie: function() { return /* reexport safe */ _cookie__WEBPACK_IMPORTED_MODULE_5__.getCookie; },
2455
- /* harmony export */ getDomainName: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.getDomainName; },
2456
- /* harmony export */ getEditDistance: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.getEditDistance; },
2457
- /* harmony export */ getParameterNames: function() { return /* reexport safe */ _function__WEBPACK_IMPORTED_MODULE_10__.getParameterNames; },
2458
- /* harmony export */ getParents: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.getParents; },
2459
- /* harmony export */ getPortNumber: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.getPortNumber; },
2460
- /* harmony export */ getProcessCloseHandler: function() { return /* reexport safe */ _process__WEBPACK_IMPORTED_MODULE_14__.getProcessCloseHandler; },
2461
- /* harmony export */ getProtocolName: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.getProtocolName; },
2462
- /* harmony export */ getProxyHandler: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.getProxyHandler; },
2463
- /* harmony export */ getText: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.getText; },
2464
- /* harmony export */ getURLParameter: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.getURLParameter; },
2465
- /* harmony export */ getUTCTimestamp: function() { return /* reexport safe */ _number__WEBPACK_IMPORTED_MODULE_12__.getUTCTimestamp; },
2466
- /* harmony export */ globalContext: function() { return /* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_4__.globalContext; },
2467
- /* harmony export */ handleChildProcess: function() { return /* reexport safe */ _process__WEBPACK_IMPORTED_MODULE_14__.handleChildProcess; },
2468
- /* harmony export */ hasPathPrefix: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.hasPathPrefix; },
2469
- /* harmony export */ identity: function() { return /* reexport safe */ _function__WEBPACK_IMPORTED_MODULE_10__.identity; },
2470
- /* harmony export */ imports: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.imports; },
2471
- /* harmony export */ importsPromise: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.importsPromise; },
2472
- /* harmony export */ interpretDateTime: function() { return /* reexport safe */ _datetime__WEBPACK_IMPORTED_MODULE_7__.interpretDateTime; },
2473
- /* harmony export */ interruptableScrollTo: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.interruptableScrollTo; },
2474
- /* harmony export */ intersect: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.intersect; },
2475
- /* harmony export */ invertArrayFilter: function() { return /* reexport safe */ _function__WEBPACK_IMPORTED_MODULE_10__.invertArrayFilter; },
2476
- /* harmony export */ isAndExpression: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isAndExpression; },
2477
- /* harmony export */ isAnyMatching: function() { return /* reexport safe */ _indicators__WEBPACK_IMPORTED_MODULE_11__.isAnyMatching; },
2478
- /* harmony export */ isArrayContainsExpression: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isArrayContainsExpression; },
2479
- /* harmony export */ isArrayLike: function() { return /* reexport safe */ _indicators__WEBPACK_IMPORTED_MODULE_11__.isArrayLike; },
2480
- /* harmony export */ isConcatExpression: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isConcatExpression; },
2481
- /* harmony export */ isCondition: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isCondition; },
2482
- /* harmony export */ isDirectory: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.isDirectory; },
2483
- /* harmony export */ isDirectorySync: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.isDirectorySync; },
2484
- /* harmony export */ isEquivalent: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.isEquivalent; },
2485
- /* harmony export */ isFile: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.isFile; },
2486
- /* harmony export */ isFileSync: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.isFileSync; },
2487
- /* harmony export */ isFunction: function() { return /* reexport safe */ _indicators__WEBPACK_IMPORTED_MODULE_11__.isFunction; },
2488
- /* harmony export */ isHidden: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.isHidden; },
2489
- /* harmony export */ isIfExpression: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isIfExpression; },
2490
- /* harmony export */ isImportSyntaxSupported: function() { return /* reexport safe */ _module__WEBPACK_IMPORTED_MODULE_15__.isImportSyntaxSupported; },
2491
- /* harmony export */ isMap: function() { return /* reexport safe */ _indicators__WEBPACK_IMPORTED_MODULE_11__.isMap; },
2492
- /* harmony export */ isMappingExpression: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isMappingExpression; },
2493
- /* harmony export */ isNotANumber: function() { return /* reexport safe */ _number__WEBPACK_IMPORTED_MODULE_12__.isNotANumber; },
2494
- /* harmony export */ isNumeric: function() { return /* reexport safe */ _indicators__WEBPACK_IMPORTED_MODULE_11__.isNumeric; },
2495
- /* harmony export */ isObject: function() { return /* reexport safe */ _indicators__WEBPACK_IMPORTED_MODULE_11__.isObject; },
2496
- /* harmony export */ isOperation: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isOperation; },
2497
- /* harmony export */ isOrExpression: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isOrExpression; },
2498
- /* harmony export */ isPlainObject: function() { return /* reexport safe */ _indicators__WEBPACK_IMPORTED_MODULE_11__.isPlainObject; },
2499
- /* harmony export */ isProxy: function() { return /* reexport safe */ _indicators__WEBPACK_IMPORTED_MODULE_11__.isProxy; },
2500
- /* harmony export */ isSelector: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isSelector; },
2501
- /* harmony export */ isSet: function() { return /* reexport safe */ _indicators__WEBPACK_IMPORTED_MODULE_11__.isSet; },
2502
- /* harmony export */ isSpecificExpression: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isSpecificExpression; },
2503
- /* harmony export */ isSwitchExpression: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isSwitchExpression; },
2504
- /* harmony export */ isUnaryOperation: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isUnaryOperation; },
2505
- /* harmony export */ isValue: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.isValue; },
2506
- /* harmony export */ isWindow: function() { return /* reexport safe */ _indicators__WEBPACK_IMPORTED_MODULE_11__.isWindow; },
2507
- /* harmony export */ isolateScope: function() { return /* reexport safe */ _scope__WEBPACK_IMPORTED_MODULE_16__.isolateScope; },
2508
- /* harmony export */ isolatedRequire: function() { return /* reexport safe */ _module__WEBPACK_IMPORTED_MODULE_15__.isolatedRequire; },
2509
- /* harmony export */ limit: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.limit; },
2510
- /* harmony export */ lowerCase: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.lowerCase; },
2511
- /* harmony export */ makeArray: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.makeArray; },
2512
- /* harmony export */ makeRange: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.makeRange; },
2513
- /* harmony export */ mark: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.mark; },
2514
- /* harmony export */ mask: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.mask; },
2515
- /* harmony export */ maskForRegularExpression: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.maskForRegularExpression; },
2516
- /* harmony export */ merge: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.merge; },
2517
- /* harmony export */ mockConsole: function() { return /* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_4__.mockConsole; },
2518
- /* harmony export */ modifyObject: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.modifyObject; },
2519
- /* harmony export */ normalizeDateTime: function() { return /* reexport safe */ _datetime__WEBPACK_IMPORTED_MODULE_7__.normalizeDateTime; },
2520
- /* harmony export */ normalizeDomNodeSelector: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.normalizeDomNodeSelector; },
2521
- /* harmony export */ normalizePhoneNumber: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.normalizePhoneNumber; },
2522
- /* harmony export */ normalizeSelector: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.normalizeSelector; },
2523
- /* harmony export */ normalizeURL: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.normalizeURL; },
2524
- /* harmony export */ normalizeZipCode: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.normalizeZipCode; },
2525
- /* harmony export */ onDocumentReady: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.onDocumentReady; },
2526
- /* harmony export */ optionalImport: function() { return /* reexport safe */ _module__WEBPACK_IMPORTED_MODULE_15__.optionalImport; },
2527
- /* harmony export */ optionalRequire: function() { return /* reexport safe */ _module__WEBPACK_IMPORTED_MODULE_15__.optionalRequire; },
2528
- /* harmony export */ paginate: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.paginate; },
2529
- /* harmony export */ parseEncodedObject: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.parseEncodedObject; },
2530
- /* harmony export */ permute: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.permute; },
2531
- /* harmony export */ permuteLength: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.permuteLength; },
2532
- /* harmony export */ preventDefault: function() { return /* reexport safe */ _utility__WEBPACK_IMPORTED_MODULE_19__.preventDefault; },
2533
- /* harmony export */ removeArrayItem: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.removeArrayItem; },
2534
- /* harmony export */ removeKeyPrefixes: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.removeKeyPrefixes; },
2535
- /* harmony export */ removeKeysInEvaluation: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.removeKeysInEvaluation; },
2536
- /* harmony export */ replace: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.replace; },
2537
- /* harmony export */ represent: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.represent; },
2538
- /* harmony export */ representPhoneNumber: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.representPhoneNumber; },
2539
- /* harmony export */ representURL: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.representURL; },
2540
- /* harmony export */ round: function() { return /* reexport safe */ _number__WEBPACK_IMPORTED_MODULE_12__.round; },
2541
- /* harmony export */ scrollTo: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.scrollTo; },
2542
- /* harmony export */ selectArrayItem: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.selectArrayItem; },
2543
- /* harmony export */ serviceURLEquals: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.serviceURLEquals; },
2544
- /* harmony export */ setCookie: function() { return /* reexport safe */ _cookie__WEBPACK_IMPORTED_MODULE_5__.setCookie; },
2545
- /* harmony export */ setGlobalContext: function() { return /* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_4__.setGlobalContext; },
2546
- /* harmony export */ sliceAllExceptNumberAndLastSeparator: function() { return /* reexport safe */ _string__WEBPACK_IMPORTED_MODULE_17__.sliceAllExceptNumberAndLastSeparator; },
2547
- /* harmony export */ sliceWeekday: function() { return /* reexport safe */ _datetime__WEBPACK_IMPORTED_MODULE_7__.sliceWeekday; },
2548
- /* harmony export */ sort: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.sort; },
2549
- /* harmony export */ sortTopological: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.sortTopological; },
2550
- /* harmony export */ stopPropagation: function() { return /* reexport safe */ _utility__WEBPACK_IMPORTED_MODULE_19__.stopPropagation; },
2551
- /* harmony export */ sumUpProperty: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.sumUpProperty; },
2552
- /* harmony export */ timeout: function() { return /* reexport safe */ _utility__WEBPACK_IMPORTED_MODULE_19__.timeout; },
2553
- /* harmony export */ trailingThrottle: function() { return /* reexport safe */ _utility__WEBPACK_IMPORTED_MODULE_19__.trailingThrottle; },
2554
- /* harmony export */ unique: function() { return /* reexport safe */ _array__WEBPACK_IMPORTED_MODULE_0__.unique; },
2555
- /* harmony export */ unwrap: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.unwrap; },
2556
- /* harmony export */ unwrapProxy: function() { return /* reexport safe */ _object__WEBPACK_IMPORTED_MODULE_13__.unwrapProxy; },
2557
- /* harmony export */ viewArrayAsScope: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.viewArrayAsScope; },
2558
- /* harmony export */ viewObjectAsScope: function() { return /* reexport safe */ _expression_index__WEBPACK_IMPORTED_MODULE_8__.viewObjectAsScope; },
2559
- /* harmony export */ walkDirectoryRecursively: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.walkDirectoryRecursively; },
2560
- /* harmony export */ walkDirectoryRecursivelySync: function() { return /* reexport safe */ _filesystem__WEBPACK_IMPORTED_MODULE_9__.walkDirectoryRecursivelySync; },
2561
- /* harmony export */ wrap: function() { return /* reexport safe */ _domNode__WEBPACK_IMPORTED_MODULE_1__.wrap; }
2562
- /* harmony export */ });
2563
- /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
2564
- /* harmony import */ var _domNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
2565
- /* harmony import */ var _cli__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15);
2566
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
2567
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5);
2568
- /* harmony import */ var _cookie__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23);
2569
- /* harmony import */ var _data_transfer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(24);
2570
- /* harmony import */ var _datetime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18);
2571
- /* harmony import */ var _expression_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22);
2572
- /* harmony import */ var _filesystem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(12);
2573
- /* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(19);
2574
- /* harmony import */ var _indicators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4);
2575
- /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9);
2576
- /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(3);
2577
- /* harmony import */ var _process__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(26);
2578
- /* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(2);
2579
- /* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(28);
2580
- /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(7);
2581
- /* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(16);
2582
- /* harmony import */ var _utility__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(13);
2583
- // #!/usr/bin/env babel-node
2584
- // -*- coding: utf-8 -*-
2585
- /** @module clientnode *//* !
2586
- region header
2587
- [Project page](https://torben.website/clientnode)
2588
-
2589
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
2590
-
2591
- License
2592
- -------
2593
-
2594
15
  This library written by Torben Sickert stands under a creative commons
2595
16
  naming 3.0 unported license.
2596
17
  See https://creativecommons.org/licenses/by/3.0/deed.de
2597
18
  endregion
2598
19
  */
2599
-
2600
- /***/ })
2601
- /******/ ]);
2602
- /************************************************************************/
2603
- /******/ // The module cache
2604
- /******/ var __webpack_module_cache__ = {};
2605
- /******/
2606
- /******/ // The require function
2607
- /******/ function __webpack_require__(moduleId) {
2608
- /******/ // Check if module is in cache
2609
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
2610
- /******/ if (cachedModule !== undefined) {
2611
- /******/ return cachedModule.exports;
2612
- /******/ }
2613
- /******/ // Create a new module (and put it into the cache)
2614
- /******/ var module = __webpack_module_cache__[moduleId] = {
2615
- /******/ id: moduleId,
2616
- /******/ loaded: false,
2617
- /******/ exports: {}
2618
- /******/ };
2619
- /******/
2620
- /******/ // Execute the module function
2621
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2622
- /******/
2623
- /******/ // Flag the module as loaded
2624
- /******/ module.loaded = true;
2625
- /******/
2626
- /******/ // Return the exports of the module
2627
- /******/ return module.exports;
2628
- /******/ }
2629
- /******/
2630
- /******/ // expose the module cache
2631
- /******/ __webpack_require__.c = __webpack_module_cache__;
2632
- /******/
2633
- /************************************************************************/
2634
- /******/ /* webpack/runtime/compat get default export */
2635
- /******/ !function() {
2636
- /******/ // getDefaultExport function for compatibility with non-harmony modules
2637
- /******/ __webpack_require__.n = function(module) {
2638
- /******/ var getter = module && module.__esModule ?
2639
- /******/ function() { return module['default']; } :
2640
- /******/ function() { return module; };
2641
- /******/ __webpack_require__.d(getter, { a: getter });
2642
- /******/ return getter;
2643
- /******/ };
2644
- /******/ }();
2645
- /******/
2646
- /******/ /* webpack/runtime/define property getters */
2647
- /******/ !function() {
2648
- /******/ // define getter/value functions for harmony exports
2649
- /******/ __webpack_require__.d = function(exports, definition) {
2650
- /******/ if(Array.isArray(definition)) {
2651
- /******/ var i = 0;
2652
- /******/ while(i < definition.length) {
2653
- /******/ var key = definition[i++];
2654
- /******/ var binding = definition[i++];
2655
- /******/ if(!__webpack_require__.o(exports, key)) {
2656
- /******/ if(binding === 0) {
2657
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
2658
- /******/ } else {
2659
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
2660
- /******/ }
2661
- /******/ } else if(binding === 0) { i++; }
2662
- /******/ }
2663
- /******/ } else {
2664
- /******/ for(var key in definition) {
2665
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
2666
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
2667
- /******/ }
2668
- /******/ }
2669
- /******/ }
2670
- /******/ };
2671
- /******/ }();
2672
- /******/
2673
- /******/ /* webpack/runtime/global */
2674
- /******/ !function() {
2675
- /******/ __webpack_require__.g = (function() {
2676
- /******/ if (typeof globalThis === 'object') return globalThis;
2677
- /******/ try {
2678
- /******/ return this || new Function('return this')();
2679
- /******/ } catch (e) {
2680
- /******/ if (typeof window === 'object') return window;
2681
- /******/ }
2682
- /******/ })();
2683
- /******/ }();
2684
- /******/
2685
- /******/ /* webpack/runtime/harmony module decorator */
2686
- /******/ !function() {
2687
- /******/ __webpack_require__.hmd = function(module) {
2688
- /******/ module = Object.create(module);
2689
- /******/ if (!module.children) module.children = [];
2690
- /******/ Object.defineProperty(module, 'exports', {
2691
- /******/ enumerable: true,
2692
- /******/ set: function() {
2693
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
2694
- /******/ }
2695
- /******/ });
2696
- /******/ return module;
2697
- /******/ };
2698
- /******/ }();
2699
- /******/
2700
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
2701
- /******/ !function() {
2702
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
2703
- /******/ }();
2704
- /******/
2705
- /******/ /* webpack/runtime/make namespace object */
2706
- /******/ !function() {
2707
- /******/ // define __esModule on exports
2708
- /******/ __webpack_require__.r = function(exports) {
2709
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2710
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2711
- /******/ }
2712
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
2713
- /******/ };
2714
- /******/ }();
2715
- /******/
2716
- /************************************************************************/
2717
- /******/
2718
- /******/ // module cache are used so entry inlining is disabled
2719
- /******/ // startup
2720
- /******/ // Load entry module and return exports
2721
- /******/ var __webpack_exports__ = __webpack_require__(30);
2722
- /******/
2723
- /******/ return __webpack_exports__;
2724
- /******/ })()
2725
- ;
2726
- });
20
+ export * from "./array.js";
21
+ export * from "./domNode.js";
22
+ export * from "./cli.js";
23
+ export * from "./constants.js";
24
+ export * from "./context.js";
25
+ export * from "./cookie.js";
26
+ export * from "./data-transfer.js";
27
+ export * from "./datetime.js";
28
+ export * from "./expression/index.js";
29
+ export * from "./filesystem.js";
30
+ export * from "./function.js";
31
+ export * from "./indicators.js";
32
+ export * from "./Lock.js";
33
+ export * from "./number.js";
34
+ export * from "./object.js";
35
+ export * from "./process.js";
36
+ export * from "./module.js";
37
+ export * from "./scope.js";
38
+ export * from "./Semaphore.js";
39
+ export * from "./string.js";
40
+ export * from "./Logger.js";
41
+ export * from "./type.js";
42
+ export * from "./utility.js";
43
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vc3JjL2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vICMhL3Vzci9iaW4vZW52IGJhYmVsLW5vZGVcbi8vIC0qLSBjb2Rpbmc6IHV0Zi04IC0qLVxuLyoqIEBtb2R1bGUgY2xpZW50bm9kZSAqL1xuJ3VzZSBzdHJpY3QnXG4vKiAhXG4gICAgcmVnaW9uIGhlYWRlclxuICAgIFtQcm9qZWN0IHBhZ2VdKGh0dHBzOi8vdG9yYmVuLndlYnNpdGUvY2xpZW50bm9kZSlcblxuICAgIENvcHlyaWdodCBUb3JiZW4gU2lja2VydCAoaW5mb1tcIn5hdH5cIl10b3JiZW4ud2Vic2l0ZSkgMTYuMTIuMjAxMlxuXG4gICAgTGljZW5zZVxuICAgIC0tLS0tLS1cblxuICAgIFRoaXMgbGlicmFyeSB3cml0dGVuIGJ5IFRvcmJlbiBTaWNrZXJ0IHN0YW5kcyB1bmRlciBhIGNyZWF0aXZlIGNvbW1vbnNcbiAgICBuYW1pbmcgMy4wIHVucG9ydGVkIGxpY2Vuc2UuXG4gICAgU2VlIGh0dHBzOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS8zLjAvZGVlZC5kZVxuICAgIGVuZHJlZ2lvblxuKi9cbmV4cG9ydCAqIGZyb20gJy4vYXJyYXknXG5cbmV4cG9ydCAqIGZyb20gJy4vZG9tTm9kZSdcblxuZXhwb3J0ICogZnJvbSAnLi9jbGknXG5leHBvcnQgKiBmcm9tICcuL2NvbnN0YW50cydcbmV4cG9ydCAqIGZyb20gJy4vY29udGV4dCdcbmV4cG9ydCAqIGZyb20gJy4vY29va2llJ1xuXG5leHBvcnQgKiBmcm9tICcuL2RhdGEtdHJhbnNmZXInXG5leHBvcnQgKiBmcm9tICcuL2RhdGV0aW1lJ1xuXG5leHBvcnQgKiBmcm9tICcuL2V4cHJlc3Npb24vaW5kZXgnXG5cbmV4cG9ydCAqIGZyb20gJy4vZmlsZXN5c3RlbSdcbmV4cG9ydCAqIGZyb20gJy4vZnVuY3Rpb24nXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kaWNhdG9ycydcblxuZXhwb3J0ICogZnJvbSAnLi9Mb2NrJ1xuXG5leHBvcnQgKiBmcm9tICcuL251bWJlcidcblxuZXhwb3J0ICogZnJvbSAnLi9vYmplY3QnXG5cbmV4cG9ydCAqIGZyb20gJy4vcHJvY2VzcydcblxuZXhwb3J0ICogZnJvbSAnLi9tb2R1bGUnXG5cbmV4cG9ydCAqIGZyb20gJy4vc2NvcGUnXG5leHBvcnQgKiBmcm9tICcuL1NlbWFwaG9yZSdcbmV4cG9ydCAqIGZyb20gJy4vc3RyaW5nJ1xuXG5leHBvcnQgKiBmcm9tICcuL0xvZ2dlcidcbmV4cG9ydCAqIGZyb20gJy4vdHlwZSdcblxuZXhwb3J0ICogZnJvbSAnLi91dGlsaXR5J1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQSxZQUFZOztBQUNaO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFFQTtBQUNBO0FBRUE7QUFFQTtBQUVBO0FBRUE7QUFFQTtBQUVBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUVBIiwiaWdub3JlTGlzdCI6W119