clientnode 3.0.1315 → 3.0.1317
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Logger.d.ts +94 -0
- package/dist/Logger.js +1 -0
- package/dist/Tools.d.ts +0 -63
- package/dist/Tools.js +1 -1
- package/dist/array.js +1 -1
- package/dist/context.js +1 -1
- package/dist/cookie.js +1 -1
- package/dist/data-transfer.js +1 -1
- package/dist/datetime.js +1 -1
- package/dist/filesystem.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/indicators.js +1 -1
- package/dist/number.js +1 -1
- package/dist/object.js +1 -1
- package/dist/process.js +1 -1
- package/dist/property-types.js +1 -1
- package/dist/require.js +1 -1
- package/dist/scope.js +1 -1
- package/dist/string.js +1 -1
- package/dist/test/Logger.d.ts +1 -0
- package/dist/test-helper.js +1 -1
- package/dist/type.d.ts +5 -1
- package/dist/utility.js +1 -1
- package/package.json +9 -9
package/dist/Logger.d.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { LoggerOptions } from './type';
|
|
2
|
+
export declare const LEVELS: readonly ["debug", "info", "warn", "warning", "critical", "error"];
|
|
3
|
+
export type Level = typeof LEVELS[number];
|
|
4
|
+
/**
|
|
5
|
+
* This plugin provides such interface logic like generic controller logic for
|
|
6
|
+
* integrating plugins into $, mutual exclusion for dependent gui elements,
|
|
7
|
+
* logging additional string, array or function handling. A set of helper
|
|
8
|
+
* functions to parse option objects dom trees or handle events is also
|
|
9
|
+
* provided.
|
|
10
|
+
* @property level - Logging level.
|
|
11
|
+
* @property name - Logger description.
|
|
12
|
+
*/
|
|
13
|
+
export declare class Logger {
|
|
14
|
+
static defaultLevel: Level;
|
|
15
|
+
static defaultName: string;
|
|
16
|
+
level: Level;
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Initializes logger.
|
|
20
|
+
* @param options - Options to set.
|
|
21
|
+
*/
|
|
22
|
+
constructor(options?: Partial<LoggerOptions>);
|
|
23
|
+
/**
|
|
24
|
+
* Configures logger.
|
|
25
|
+
* @param options - Options to set.
|
|
26
|
+
* @param options.level - Logging level to configure.
|
|
27
|
+
* @param options.name - Description of the logger instance.
|
|
28
|
+
*/
|
|
29
|
+
configure({ level, name }: Partial<LoggerOptions>): void;
|
|
30
|
+
/**
|
|
31
|
+
* Shows the given object's representation in the browsers console if
|
|
32
|
+
* possible or in a standalone alert-window as fallback.
|
|
33
|
+
* @param object - Any object to print.
|
|
34
|
+
* @param force - If set to "true" given input will be shown independently
|
|
35
|
+
* of current logging configuration or interpreter's console
|
|
36
|
+
* implementation.
|
|
37
|
+
* @param avoidAnnotation - If set to "true" given input has no module or
|
|
38
|
+
* log level specific annotations.
|
|
39
|
+
* @param level - Description of log messages importance.
|
|
40
|
+
* @param additionalArguments - Additional arguments are used for string
|
|
41
|
+
* formatting.
|
|
42
|
+
*/
|
|
43
|
+
log(object: unknown, force?: boolean, avoidAnnotation?: boolean, level?: Level, ...additionalArguments: Array<unknown>): void;
|
|
44
|
+
/**
|
|
45
|
+
* Wrapper method for the native console method usually provided by
|
|
46
|
+
* interpreter.
|
|
47
|
+
* @param object - Any object to print.
|
|
48
|
+
* @param additionalArguments - Additional arguments are used for string
|
|
49
|
+
* formatting.
|
|
50
|
+
*/
|
|
51
|
+
info(object: unknown, ...additionalArguments: Array<unknown>): void;
|
|
52
|
+
/**
|
|
53
|
+
* Wrapper method for the native console method usually provided by
|
|
54
|
+
* interpreter.
|
|
55
|
+
* @param object - Any object to print.
|
|
56
|
+
* @param additionalArguments - Additional arguments are used for string
|
|
57
|
+
* formatting.
|
|
58
|
+
*/
|
|
59
|
+
debug(object: unknown, ...additionalArguments: Array<unknown>): void;
|
|
60
|
+
/**
|
|
61
|
+
* Wrapper method for the native console method usually provided by
|
|
62
|
+
* interpreter.
|
|
63
|
+
* @param object - Any object to print.
|
|
64
|
+
* @param additionalArguments - Additional arguments are used for string
|
|
65
|
+
* formatting.
|
|
66
|
+
*/
|
|
67
|
+
error(object: unknown, ...additionalArguments: Array<unknown>): void;
|
|
68
|
+
/**
|
|
69
|
+
* Wrapper method for the native console method usually provided by
|
|
70
|
+
* interpreter.
|
|
71
|
+
* @param object - Any object to print.
|
|
72
|
+
* @param additionalArguments - Additional arguments are used for string
|
|
73
|
+
* formatting.
|
|
74
|
+
*/
|
|
75
|
+
critical(object: unknown, ...additionalArguments: Array<unknown>): void;
|
|
76
|
+
/**
|
|
77
|
+
* Wrapper method for the native console method usually provided by
|
|
78
|
+
* interpreter.
|
|
79
|
+
* @param object - Any object to print.
|
|
80
|
+
* @param additionalArguments - Additional arguments are used for string
|
|
81
|
+
* formatting.
|
|
82
|
+
*/
|
|
83
|
+
warn(object: unknown, ...additionalArguments: Array<unknown>): void;
|
|
84
|
+
/**
|
|
85
|
+
* Dumps a given object in a human-readable format.
|
|
86
|
+
* @param object - Any object to show.
|
|
87
|
+
* @param level - Number of levels to dig into given object recursively.
|
|
88
|
+
* @param currentLevel - Maximal number of recursive function calls to
|
|
89
|
+
* represent given object.
|
|
90
|
+
* @returns Returns the serialized version of given object.
|
|
91
|
+
*/
|
|
92
|
+
static show(object: unknown, level?: number, currentLevel?: number): string;
|
|
93
|
+
}
|
|
94
|
+
export default Logger;
|
package/dist/Logger.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@babel/runtime/helpers/extends"),function(){try{return require("jquery")}catch(e){}}(),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/construct"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","jquery","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/createClass","@babel/runtime/helpers/construct"],r);else{var t="object"==typeof exports?r(require("@babel/runtime/helpers/extends"),function(){try{return require("jquery")}catch(e){}}(),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/construct")):r(e["@babel/runtime/helpers/extends"],e.jQuery,e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/createClass"],e["@babel/runtime/helpers/construct"]);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__13__,__WEBPACK_EXTERNAL_MODULE__8__){return function(){var __webpack_modules__=[function(e,r,t){t.d(r,{ABBREVIATIONS:function(){return i},CLASS_TO_TYPE_MAPPING:function(){return a},CONSOLE_METHODS:function(){return n},IGNORE_NULL_AND_UNDEFINED_SYMBOL:function(){return o},PLAIN_OBJECT_PROTOTYPES:function(){return l}});var n=["debug","error","info","log","warn"],o=(Symbol.for("clientnodeValue"),Symbol.for("clientnodeIgnoreNullAndUndefined")),i=["html","id","url","us","de","api","href"],a={"[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"},l=[Object.prototype]},function(e,r,t){t.d(r,{isArrayLike:function(){return a},isFunction:function(){return c},isMap:function(){return u},isNumeric:function(){return i},isObject:function(){return l},isPlainObject:function(){return s}});var n=t(0),o=t(3);var i=function(e){var r=(0,o.determineType)(e);return["number","string"].includes(r)&&!isNaN(e-parseFloat(e))},a=function(e){var r;try{r=Boolean(e)&&e.length}catch(e){return!1}var t,n=(0,o.determineType)(e);if("function"===n||![null,void 0].includes(t=e)&&"object"==typeof t&&t===(null==t?void 0:t.window))return!1;if("array"===n||0===r)return!0;if("number"==typeof r&&r>0)try{e[r-1];return!0}catch(e){}return!1},l=function(e){return null!==e&&"object"==typeof e},s=function(e){return l(e)&&n.PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(e))},u=function(e){return"map"===(0,o.determineType)(e)},c=function(e){return Boolean(e)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(e))}},function(e,r,t){t.d(r,{$:function(){return u},NOOP:function(){return c}});var n,o,i=t(1),a=t(6),l=t(11);e=t.hmd(e);var s="undefined"==typeof globalThis?void 0===window?void 0===t.g?e:Object.prototype.hasOwnProperty.call(t.g,"window")?t.g.window:t.g:window:globalThis;s.fetch=s.fetch?s.fetch.bind(s):null!==(n=null==(o=(0,a.optionalRequire)("node-fetch"))?void 0:o.default)&&void 0!==n?n:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.currentImport?(0,a.currentImport)("node-fetch").then((function(e){var t;return(t=e).default.apply(t,r)})):null};var u=function(){var e,r,n=function(){};if(Object.prototype.hasOwnProperty.call(s,"$"))n=s.$;else{if(Object.prototype.hasOwnProperty.call(s,"document"))try{n=t(12)}catch(e){}if(void 0===n||"object"==typeof n&&0===Object.keys(n).length){var o,a=null!=(o=s.document)&&o.querySelectorAll?s.document.querySelectorAll.bind(s.document):function(){return null};(n=function(e){var r=null;if("string"==typeof e?r=a(e):Array.isArray(e)?r=e:("object"==typeof HTMLElement&&e instanceof HTMLElement||1===(null==e?void 0:e.nodeType)&&"string"==typeof e.nodeName)&&(r=[e]),r){if(Object.prototype.hasOwnProperty.call(n,"fn"))for(var t=0,o=Object.entries(n.fn);t<o.length;t++){var l=o[t],u=l[0],c=l[1];r[u]=c.bind(r)}return r.jquery="clientnode",r}return(0,i.isFunction)(e)&&s.document&&s.document.addEventListener("DOMContentLoaded",e),e}).fn={}}}(Object.prototype.hasOwnProperty.call(n,"global")||(n.global=s),Object.prototype.hasOwnProperty.call(n.global,"window"))&&(!n.document&&Object.prototype.hasOwnProperty.call(n.global.window,"document")&&(n.document=null==(e=n.global.window)?void 0:e.document),!n.location&&Object.prototype.hasOwnProperty.call(n.global.window,"location")&&(n.location=null==(r=n.global.window)?void 0:r.location));return n}(),c=(function(){if(!u.document)return 0;var e,r=u.document.createElement("div");for(e=0;e<10&&(r.innerHTML="\x3c!--[if gt IE "+String(e)+"]><i></i><![endif]--\x3e",0!==r.getElementsByTagName("i").length);e++);if(0===e&&Object.prototype.hasOwnProperty.call(u.global.window,"navigator")){var t;if(-1!==(null==(t=u.global.window)?void 0:t.navigator.appVersion.indexOf("MSIE 10")))return 10;if(![u.global.window.navigator.userAgent.indexOf("Trident"),u.global.window.navigator.userAgent.indexOf("rv:11")].includes(-1))return 11}}(),Object.prototype.hasOwnProperty.call(u,"noop")?u.noop.bind(u):function(){});!function(e){var r,t;(u=e,Object.prototype.hasOwnProperty.call(u,"global")||(u.global=s),Object.prototype.hasOwnProperty.call(u.global,"window"))&&(!u.document&&Object.prototype.hasOwnProperty.call(u.global.window,"document")&&(u.document=null==(r=u.global.window)?void 0:r.document),!u.location&&Object.prototype.hasOwnProperty.call(u.global.window,"location")&&(u.location=null==(t=u.global.window)?void 0:t.location));if(Object.prototype.hasOwnProperty.call(u,"fn")&&(u.fn.Tools=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return l.default.controller(l.default,r,this)}),u.Tools=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return l.default.controller(l.default,r)},u.Tools.class=l.default,Object.prototype.hasOwnProperty.call(u,"fn")){var n=u.fn.prop;u.fn.prop=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];if(t.length<2&&this.length&&["#text","#comment"].includes(this[0].nodeName.toLowerCase())&&e in this[0]){if(0===t.length)return this[0][e];if(1===t.length)return this[0][e]=t[0],this}return n.call.apply(n,[this,e].concat(t))}}}(u),u.readyException=function(e){if("string"!=typeof e||"canceled"!==e)throw e}},function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{determineType:function(){return determineType},extend:function(){return _extend}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_indicators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var _addDynamicGetterAndSetter=function(e,r,t,n,o,i){if(void 0===r&&(r=null),void 0===t&&(t=null),void 0===n&&(n={}),void 0===o&&(o=!0),void 0===i&&(i=[Object]),o&&"object"==typeof e)if(Array.isArray(e))for(var a,l=0,s=_createForOfIteratorHelperLoose(e);!(a=s()).done;){var u=a.value;e[l]=_addDynamicGetterAndSetter(u,r,t,n,o),l+=1}else if(isMap(e))for(var c,f=_createForOfIteratorHelperLoose(e);!(c=f()).done;){var _=c.value,p=_[0],d=_[1];e.set(p,_addDynamicGetterAndSetter(d,r,t,n,o))}else if(isSet(e)){for(var v,g=[],b=_createForOfIteratorHelperLoose(e);!(v=b()).done;){var h=v.value;e.delete(h),g.push(_addDynamicGetterAndSetter(h,r,t,n,o))}for(var y=0,m=g;y<m.length;y++){var O=m[y];e.add(O)}}else if(null!==e)for(var E=0,w=Object.entries(e);E<w.length;E++){var A=w[E],P=A[0],j=A[1];e[P]=_addDynamicGetterAndSetter(j,r,t,n,o)}if(r||t)for(var L,N,S=function(){var o=N.value;if(isObject(e)&&e instanceof o){var i=getProxyHandler(e,n),a=getProxyHandler(e,n);r&&(a.get=function(t,n){return"__target__"===n?e:"__revoke__"===n?function(){return u(),e}:"function"==typeof e[n]?e[n]:r(i.get(s,n),n,e)}),t&&(a.set=function(r,n,o){return i.set(s,n,t(n,o,e))});var l=Proxy.revocable({},a),s=l.proxy,u=l.revoke;return{v:s}}},I=_createForOfIteratorHelperLoose(i);!(N=I()).done;)if(L=S())return L.v;return e},convertCircularObjectToJSON=function(e,r,t){void 0===r&&(r=function(e){return null!=e?e:"__circularReference__"}),void 0===t&&(t=0);var n=new Map;return function(e){var o=function(e,t){if(isObject(t)){var i,a;if(n.has(t))return r(null!==(i=n.get(t))&&void 0!==i?i:null,e,t,n);if(n.set(t,null),Array.isArray(t)){a=[];for(var l,s=_createForOfIteratorHelperLoose(t);!(l=s()).done;){var u=l.value;a.push(o(null,u))}}else{a={};for(var c=0,f=Object.entries(t);c<f.length;c++){var _=f[c],p=_[0],d=_[1];a[p]=o(p,d)}}return n.set(t,a),a}return t};return JSON.stringify(e,o,t)}(e)},_convertMapToPlainObject=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isMap(e)){for(var t,n={},o=_createForOfIteratorHelperLoose(e);!(t=o()).done;){var i=t.value,a=i[0],l=i[1];r&&(l=_convertMapToPlainObject(l,r)),["number","string"].includes(typeof a)&&(n[String(a)]=l)}return n}if(r)if(isPlainObject(e))for(var s=0,u=Object.entries(e);s<u.length;s++){var c=u[s],f=c[0],_=c[1];e[f]=_convertMapToPlainObject(_,r)}else if(Array.isArray(e))for(var p=0,d=0,v=e;d<v.length;d++){var g=v[d];e[p]=_convertMapToPlainObject(g,r),p+=1}else if(isSet(e)){for(var b,h=[],y=_createForOfIteratorHelperLoose(e);!(b=y()).done;){var m=b.value;e.delete(m),h.push(_convertMapToPlainObject(m,r))}for(var O=0,E=h;O<E.length;O++){var w=E[O];e.add(w)}}}return e},_convertPlainObjectToMap=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isPlainObject(e)){for(var t=new Map,n=0,o=Object.entries(e);n<o.length;n++){var i=o[n],a=i[0],l=i[1];r&&(e[a]=_convertPlainObjectToMap(l,r)),t.set(a,e[a])}return t}if(r)if(Array.isArray(e))for(var s=0,u=0,c=e;u<c.length;u++){var f=c[u];e[s]=_convertPlainObjectToMap(f,r),s+=1}else if(isMap(e))for(var _,p=_createForOfIteratorHelperLoose(e);!(_=p()).done;){var d=_.value,v=d[0],g=d[1];e.set(v,_convertPlainObjectToMap(g,r))}else if(isSet(e)){for(var b,h=[],y=_createForOfIteratorHelperLoose(e);!(b=y()).done;){var m=b.value;e.delete(m),h.push(_convertPlainObjectToMap(m,r))}for(var O=0,E=h;O<E.length;O++){var w=E[O];e.add(w)}}}return e},_convertSubstringInPlainObject=function(e,r,t){for(var n=0,o=Object.entries(e);n<o.length;n++){var i=o[n],a=i[0],l=i[1];isPlainObject(l)?e[a]=_convertSubstringInPlainObject(l,r,t):"string"==typeof l&&(e[a]=l.replace(r,t))}return e},_copy=function(e,r,t,n,o,i,a){if(void 0===r&&(r=-1),void 0===t&&(t=VALUE_COPY_SYMBOL),void 0===n&&(n=null),void 0===o&&(o=!1),void 0===i&&(i=[]),void 0===a&&(a=0),isObject(e)){if(!n){if(Array.isArray(e))return _copy(e,r,t,[],o,i,a);if(e instanceof Map)return _copy(e,r,t,new Map,o,i,a);if(e instanceof Set)return _copy(e,r,t,new Set,o,i,a);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var l=/[^/]*$/.exec(e.toString());return(n=new RegExp(e.source,l?l[0]:void 0)).lastIndex=e.lastIndex,n}return"undefined"!=typeof Blob&&e instanceof Blob?e.slice(0,e.size,e.type):_copy(e,r,t,{},o,i,a)}if(e===n)throw new Error("Can't copy because source and destination are identical.");if(!o&&![void 0,null].includes(e)){var s=i.indexOf(e);if(-1!==s)return i[s];i.push(e)}var u=function(e){if(-1!==r&&r<a+1)return t===VALUE_COPY_SYMBOL?e:t;var n=_copy(e,r,t,null,o,i,a+1);return o||[void 0,null].includes(e)||"object"!=typeof e||i.push(e),n};if(Array.isArray(e))for(var c,f=_createForOfIteratorHelperLoose(e);!(c=f()).done;){var _=c.value;n.push(u(_))}else if(e instanceof Map)for(var p,d=_createForOfIteratorHelperLoose(e);!(p=d()).done;){var v=p.value,g=v[0],b=v[1];n.set(g,u(b))}else if(e instanceof Set)for(var h,y=_createForOfIteratorHelperLoose(e);!(h=y()).done;){var m=h.value;n.add(u(m))}else for(var O=0,E=Object.entries(e);O<E.length;O++){var w=E[O],A=w[0],P=w[1];try{n[A]=u(P)}catch(e){throw new Error('Failed to copy property value object "'+A+'": '+_represent(e))}}}return n||e},determineType=function(e){if(void 0===e&&(e=void 0),[null,void 0].includes(e))return String(e);var r=typeof e;if(["function","object"].includes(r)&&"toString"in e){var t=Object.prototype.toString.call(e);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING,t))return _constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING[t]}return r},_equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_extends({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&isFunction(firstValue)&&isFunction(secondValue)||firstValue===secondValue||isNotANumber(firstValue)&&isNotANumber(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&Object.prototype.hasOwnProperty.call(eval("Buffer"),"isBuffer")&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise((function(e){for(var r=[],t=0,n=[firstValue,secondValue];t<n.length;t++){var o=n[t],i=new FileReader;i.onload=function(t){null===t.target?r.push(null):r.push(t.target.result),2===r.length&&(r[0]===r[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+_represent(r[0])+") !== Blob("+_represent(r[1])+")"))},i.readAsDataURL(o)}}));if(isPlainObject(firstValue)&&isPlainObject(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i11=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i11<_arr4.length;_i11++){var _arr4$_i=_arr4[_i11],first=_arr4$_i[0],second=_arr4$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=isMap(first);if(firstIsMap&&(!isMap(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=isSet(first);if(firstIsSet&&(!isSet(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray){for(var index=0,_loop2=function(){var e=_arr5[_i12];if(0!==options.deep){var r=_equals(e,second[index],_extends({},options,{deep:options.deep-1}));if(!r)return{v:!1};var t=index,n=function(e){var r;return"string"==typeof e?"["+String(t)+"]"+(null!==(r={"[":"",">":" "}[e[0]])&&void 0!==r?r:".")+e:e};if(Object.prototype.hasOwnProperty.call(r,"then")&&promises.push(r.then(n)),"string"==typeof r)return{v:n(r)}}index+=1},_ret2,_i12=0,_arr5=first;_i12<_arr5.length;_i12++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step11.value,r=e[0],t=e[1];if(0!==options.deep){var n=_equals(t,second.get(r),_extends({},options,{deep:options.deep-1}));if(!n)return{v:!1};var o=function(e){var t;return"string"==typeof e?"get("+_represent(r)+")"+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(n,"then")&&promises.push(n.then(o)),"string"==typeof n)return{v:o(n)}}},_ret3,_iterator11=_createForOfIteratorHelperLoose(first),_step11;!(_step11=_iterator11()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step12.value;if(0!==options.deep){for(var r,t=!1,n=[],o=_createForOfIteratorHelperLoose(second);!(r=o()).done;){var i=r.value,a=_equals(e,i,_extends({},options,{deep:options.deep-1}));if("boolean"==typeof a){if(a){t=!0;break}}else n.push(a)}var l=function(r){return!!r||!!options.returnReasonIfNotEqual&&">>> {-> "+_represent(e)+" not found}"};return t?0:(n.length&&promises.push(new Promise((function(e){Promise.all(n).then((function(r){e(l(r.some((function(e){return e}))))}),(function(){}))}))),{v:l(!1)})}},_ret4,_iterator12=_createForOfIteratorHelperLoose(first),_step12;!(_step12=_iterator12()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i13],r=e[0],t=e[1];if(options.properties&&!options.properties.includes(r))return 0;for(var n,o=!1,i=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(n=i()).done;){var a=n.value;if(r.startsWith(a)){o=!0;break}}if(o)return 0;if(0!==options.deep){var l=_equals(t,second[r],_extends({},options,{deep:options.deep-1}));if(!l)return{v:!1};var s=function(e){var t;return"string"==typeof e?r+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(l,"then")&&promises.push(l.then(s)),"string"==typeof l)return{v:s(l)}}},_ret5,_i13=0,_Object$entries7=Object.entries(first);_i13<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i13++)if(_ret5)return _ret5.v}return!promises.length||new Promise((function(e){Promise.all(promises).then((function(r){for(var t,n=_createForOfIteratorHelperLoose(r);!(t=n()).done;){var o=t.value;if(!o||"string"==typeof o){e(o);break}}e(!0)}),(function(){}))}))}return!!options.returnReasonIfNotEqual&&">>> "+_represent(firstValue)+" !== "+_represent(secondValue)},evaluateDynamicData=function(e,r,t,n,o){if(void 0===r&&(r={}),void 0===t&&(t="self"),void 0===n&&(n="__evaluate__"),void 0===o&&(o="__execute__"),"object"!=typeof e||null===e)return e;t in r||(r[t]=e);var i=function(e,t){void 0===t&&(t=n);var i=evaluate(e,r,t===o);if(i.error)throw new Error(i.error);return i.result},a=function(e){if("object"!=typeof e||null===e||"undefined"==typeof Proxy)return e;for(var r=0,t=Object.entries(e);r<t.length;r++){var s=t[r],u=s[0],c=s[1];if("__target__"!==u&&isObject(c)){var f=c;if(a(f),Object.prototype.hasOwnProperty.call(f,n)||Object.prototype.hasOwnProperty.call(f,o)){var _=f;e[u]=new Proxy(f,{get:function(e,r){if("__target__"===r)return e;if("hasOwnProperty"===r)return e[r];for(var t=0,a=[n,o];t<a.length;t++){var s=a[t];if(r===s&&"string"==typeof e[r])return l(i(e[r],s))}var u=l(e);if("toString"===r){var c=i(u);return c[r].bind(c)}if("string"!=typeof r){var f,_=i(u);return null!=(f=_[r])&&f.bind?_[r].bind(_):_[r]}for(var p=0,d=[n,o];p<d.length;p++){var v=d[p];if(Object.prototype.hasOwnProperty.call(e,v))return i(u,v)[r]}return u[r]},ownKeys:function(e){for(var r=0,t=[n,o];r<t.length;r++){var a=t[r];if(Object.prototype.hasOwnProperty.call(e,a))return Object.getOwnPropertyNames(l(i(e[a],a)))}return Object.getOwnPropertyNames(e)}}),e[u].__target__||(e[u].__target__=_)}}}return e},l=function(e){if(isObject(e)){if(isProxy(e)){for(var r=0,t=[n,o];r<t.length;r++){var a=t[r];if(Object.prototype.hasOwnProperty.call(e,a))return e[a]}e=e.__target__}for(var s=0,u=Object.entries(e);s<u.length;s++){var c=u[s],f=c[0],_=c[1];if([n,o].includes(f))return"undefined"==typeof Proxy?l(i(_)):_;e[f]=l(_)}}return e};r.resolve=l;var s=function(e){if(isObject(e))for(var r=0,t=Object.entries(e);r<t.length;r++){var n=t[r],o=n[0],i=n[1];if("__target__"!==o&&null!==i&&["function","undefined"].includes(typeof i)){var a=i.__target__;void 0!==a&&(e[o]=a),s(i)}}return e};return Object.prototype.hasOwnProperty.call(e,n)?i(e[n]):Object.prototype.hasOwnProperty.call(e,o)?i(e[o],o):s(l(a(e)))},_removeKeysInEvaluation=function(e,r){void 0===r&&(r=["__evaluate__","__execute__"]);for(var t=0,n=Object.entries(e);t<n.length;t++){var o=n[t],i=o[0],a=o[1];!r.includes(i)&&r.some((function(r){return Object.prototype.hasOwnProperty.call(e,r)}))?delete e[i]:isPlainObject(a)&&_removeKeysInEvaluation(a,r)}return e},_extend=function(e,r){for(var t=!1,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var a,l=o;e===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof e?(t=e,a=r):(a=e,(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?l=[r].concat(l):void 0!==r&&(a=r));for(var s,u=function(e,r){return r===e?e:t&&r&&((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(r)||(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(r))?(n=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(r)?e&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e)?e:new Map:e&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(e)?e:{},_extend(t,n,r)):r;var n},c=_createForOfIteratorHelperLoose(l);!(s=c()).done;){var f=s.value,_=typeof a,p=typeof f;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(a)&&(_+=" Map"),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(f)&&(p+=" Map"),_===p&&a!==f)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(a)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(f))for(var d,v=_createForOfIteratorHelperLoose(f);!(d=v()).done;){var g=d.value,b=g[0],h=g[1];a.set(b,u(a.get(b),h))}else if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(a)&&!Array.isArray(a)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(f)&&!Array.isArray(f))for(var y=0,m=Object.entries(f);y<m.length;y++){var O=m[y],E=O[0],w=O[1];t===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,void 0].includes(w)||(a[E]=u(a[E],w))}else a=f;else a=f}return a},getSubstructure=function(e,r,t,n){void 0===t&&(t=!0),void 0===n&&(n=".");for(var o,i=[],a=_createForOfIteratorHelperLoose([].concat(r));!(o=a()).done;){var l=o.value;if("string"==typeof l)for(var s,u=_createForOfIteratorHelperLoose(l.split(n));!(s=u()).done;){var c=s.value;if(c){var f=c.match(/(.*?)(\[[0-9]+])/g);if(f)for(var _,p=_createForOfIteratorHelperLoose(f);!(_=p()).done;){var d=_.value,v=/(.*?)(\[[0-9]+])/.exec(d),g="",b="";v&&(g=v[1],b=v[2],g&&i.push(g)),i.push(b.substring(1,b.length-1))}else i.push(c)}}else i=i.concat(l)}for(var h,y=e,m=_createForOfIteratorHelperLoose(i);!(h=m()).done;){var O=h.value;if(isObject(y)){if("string"==typeof O&&Object.prototype.hasOwnProperty.call(y,O))y=y[O];else if(isFunction(O))y=O(y);else if(!t)return}else if(!t)return}return y},getProxyHandler=function(e,r){return void 0===r&&(r={}),r=_extends({delete:"[]",get:"[]",has:"[]",set:"[]"},r),{deleteProperty:function(t,n){return"[]"!==r.delete||"string"!=typeof n?e[r.delete](n):(delete e[n],!0)},get:function(t,n){return"[]"===r.get&&"string"==typeof n?e[n]:e[r.get](n)},has:function(t,n){return"[]"===r.has?n in e:e[r.has](n)},set:function(t,n,o){return"[]"!==r.set||"string"!=typeof n?e[r.set](n,o):(e[n]=o,!0)}}},_mask=function(e,r){if(!0===(r=_extends({exclude:!1,include:!0},r)).exclude||Array.isArray(r.exclude)&&0===r.exclude.length||!1===r.include||"object"!=typeof e)return{};var t=Array.isArray(r.exclude)?r.exclude.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.exclude,n=Array.isArray(r.include)?r.include.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.include,o={};if(isPlainObject(n))for(var i=0,a=Object.entries(n);i<a.length;i++){var l=a[i],s=l[0],u=l[1];Object.prototype.hasOwnProperty.call(e,s)&&(!0===u?o[s]=e[s]:(isPlainObject(u)||Array.isArray(u)&&u.length)&&"object"==typeof e[s]&&(o[s]=_mask(e[s],{include:u})))}else o=e;if(isPlainObject(t)){for(var c=!1,f=_extends({},o),_=0,p=Object.entries(t);_<p.length;_++){var d=p[_],v=d[0],g=d[1];if(Object.prototype.hasOwnProperty.call(f,v))if(!0===g)c=!0,delete f[v];else if((isPlainObject(g)||Array.isArray(g)&&g.length)&&"object"==typeof f[v]){var b=f[v];f[v]=_mask(f[v],{exclude:g}),f[v]!==b&&(c=!0)}}c&&(o=f)}return o},_modifyObject=function(e,r,t,n,o,i,a,l,s){if(void 0===t&&(t="__remove__"),void 0===n&&(n="__prepend__"),void 0===o&&(o="__append__"),void 0===i&&(i="__"),void 0===a&&(a="__"),void 0===l&&(l=null),void 0===s&&(s=null),isMap(r)&&isMap(e))for(var u,c=_createForOfIteratorHelperLoose(r);!(u=c()).done;){var f=u.value,_=f[0],p=f[1];e.has(_)&&_modifyObject(e.get(_),p,t,n,o,i,a,r,_)}else if(isObject(r)&&isObject(e))for(var d=0,v=Object.entries(r);d<v.length;d++){var g=v[d],b=g[0],h=g[1],y=NaN;if(Array.isArray(e)&&b.startsWith(i)&&b.endsWith(a)&&((y=parseInt(b.substring(i.length,b.length-a.length),10))<0||y>=e.length)&&(y=NaN),[t,n,o].includes(b)||!isNaN(y)){if(Array.isArray(e))if(b===t)for(var m,O=_createForOfIteratorHelperLoose([].concat(h));!(m=O()).done;){var E=m.value;"string"==typeof E&&E.startsWith(i)&&E.endsWith(a)?e.splice(parseInt(E.substring(i.length,E.length-a.length),10),1):e.includes(E)?e.splice(e.indexOf(E),1):"number"==typeof E&&E<e.length&&e.splice(E,1)}else b===o?e=e.concat(h):b===n?e=[].concat(h).concat(e):isObject(e[y])&&isObject(h)?_extend(!0,_modifyObject(e[y],h,t,n,o,i,a),e[y],h):e[y]=h;else if(b===t)for(var w,A=_createForOfIteratorHelperLoose([].concat(h));!(w=A()).done;){var P=w.value;"string"==typeof P&&Object.prototype.hasOwnProperty.call(e,P)&&delete e[P]}delete r[b],l&&"string"==typeof s&&delete l[s]}else null!==e&&Object.prototype.hasOwnProperty.call(e,b)&&(e[b]=_modifyObject(e[b],h,t,n,o,i,a,r,b))}return e},_removeKeyPrefixes=function(e,r){void 0===r&&(r="#");var t=[].concat(r);if(Array.isArray(e))for(var n,o=0,i=_createForOfIteratorHelperLoose(e.slice());!(n=i()).done;){var a=n.value,l=!1;if("string"==typeof a){for(var s,u=_createForOfIteratorHelperLoose(t);!(s=u()).done;){var c=s.value;if(a.startsWith(c+":")){e.splice(o,1),l=!0;break}}if(l)continue}e[o]=_removeKeyPrefixes(a,t),o+=1}else if(isSet(e))for(var f,_=_createForOfIteratorHelperLoose(new Set(e));!(f=_()).done;){var p=f.value,d=!1;if("string"==typeof p){for(var v,g=_createForOfIteratorHelperLoose(t);!(v=g()).done;){var b=v.value;if(p.startsWith(b+":")){e.delete(p),d=!0;break}}if(d)continue}_removeKeyPrefixes(p,t)}else if(isMap(e))for(var h,y=_createForOfIteratorHelperLoose(new Map(e));!(h=y()).done;){var m=h.value,O=m[0],E=m[1],w=!1;if("string"==typeof O){for(var A,P=_createForOfIteratorHelperLoose(t);!(A=P()).done;){var j=A.value,L=escapeRegularExpressions(j);if(new RegExp("^"+L+"[0-9]*$").test(O)){e.delete(O),w=!0;break}}if(w)continue}e.set(O,_removeKeyPrefixes(E,t))}else if(isObject(e))for(var N=0,S=Object.entries(Object.assign({},e));N<S.length;N++){for(var I,x=S[N],M=x[0],T=x[1],$=!1,D=_createForOfIteratorHelperLoose(t);!(I=D()).done;){var R=I.value,C=escapeRegularExpressions(R);if(new RegExp("^"+C+"[0-9]*$").test(M)){delete e[M],$=!0;break}}$||(e[M]=_removeKeyPrefixes(T,t))}return e},_represent=function(e,r,t,n,o){if(void 0===r&&(r=" "),void 0===t&&(t=""),void 0===n&&(n="__maximum_number_of_levels_reached__"),void 0===o&&(o=8),0===o)return String(n);if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return'"'+e.replace(/\n/g,"\n"+t)+'"';if(isNumeric(e)||"boolean"==typeof e)return String(e);if(e instanceof Date)return e.toISOString();if(Array.isArray(e)){for(var i,a="[",l=!1,s=_createForOfIteratorHelperLoose(e);!(i=s()).done;){var u=i.value;l&&(a+=","),a+="\n"+t+r+_represent(u,r,""+t+r,n,o-1),l=!0}return l&&(a+="\n"+t),a+="]"}if(isMap(e)){for(var c,f="",_=!1,p=_createForOfIteratorHelperLoose(e);!(c=p()).done;){var d=c.value,v=d[0],g=d[1];_&&(f+=",\n"+t+r),f+=_represent(v,r,""+t+r,n,o-1)+" -> "+_represent(g,r,""+t+r,n,o-1),_=!0}return _||(f="EmptyMap"),f}if(isSet(e)){for(var b,h="{",y=!1,m=_createForOfIteratorHelperLoose(e);!(b=m()).done;){var O=b.value;y&&(h+=","),h+="\n"+t+r+_represent(O,r,""+t+r,n,o-1),y=!0}return y?h+="\n"+t+"}":h="EmptySet",h}if(isFunction(e))return"__function__";for(var E,w="{",A=!1,P=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(e).sort());!(E=P()).done;){var j=E.value;A&&(w+=","),w+="\n"+t+r+j+": "+_represent(e[j],r,""+t+r,n,o-1),A=!0}return A&&(w+="\n"+t),w+="}"},sort=function(e){var r=[];if(Array.isArray(e))for(var t=0;t<e.length;t++)r.push(t);else if("object"==typeof e)if(isMap(e))for(var n,o=_createForOfIteratorHelperLoose(e);!(n=o()).done;){var i=n.value;r.push(i[0])}else if(null!==e)for(var a=0,l=Object.keys(e);a<l.length;a++){var s=l[a];r.push(s)}return r.sort()},_unwrapProxy=function(e,r){if(void 0===r&&(r=new Set),isObject(e)){if(r.has(e))return e;try{isFunction(e.__revoke__)&&(isProxy(e)&&(e=e.__target__),e.__revoke__())}catch(r){return e}finally{r.add(e)}if(Array.isArray(e))for(var t,n=0,o=_createForOfIteratorHelperLoose(e);!(t=o()).done;){var i=t.value;e[n]=_unwrapProxy(i,r),n+=1}else if(isMap(e))for(var a,l=_createForOfIteratorHelperLoose(e);!(a=l()).done;){var s=a.value,u=s[0],c=s[1];e.set(u,_unwrapProxy(c,r))}else if(isSet(e)){for(var f,_=[],p=_createForOfIteratorHelperLoose(e);!(f=p()).done;){var d=f.value;e.delete(d),_.push(_unwrapProxy(d,r))}for(var v=0,g=_;v<g.length;v++){var b=g[v];e.add(b)}}else for(var h=0,y=Object.entries(e);h<y.length;h++){var m=y[h],O=m[0],E=m[1];e[O]=_unwrapProxy(E,r)}}return e}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{camelCaseToDelimited:function(){return camelCaseToDelimited},capitalize:function(){return capitalize},compressStyleValue:function(){return compressStyleValue},delimitedToCamelCase:function(){return delimitedToCamelCase},format:function(){return format},normalizeDomNodeSelector:function(){return normalizeDomNodeSelector}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__),_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var ALLOWED_VARIABLE_SYMBOLS="0-9a-zA-Z_$",ALLOWED_STARTING_VARIABLE_SYMBOLS="a-zA-Z_$",FIX_ENCODING_ERROR_MAPPING=null,escapeRegularExpressions=function(e,r){if(void 0===r&&(r=[]),1===e.length&&!SPECIAL_REGEX_SEQUENCES.includes(e))return e;r.includes("\\")||e.replace(/\\/g,"\\\\");for(var t,n=_createForOfIteratorHelperLoose(SPECIAL_REGEX_SEQUENCES);!(t=n()).done;){var o=t.value;r.includes(o)||(e=e.replace(new RegExp("\\"+o,"g"),"\\"+o))}return e},convertToValidVariableName=function(e){return["class","default"].includes(e)?"_"+e:e.replace(new RegExp("^[^"+ALLOWED_STARTING_VARIABLE_SYMBOLS+"]+"),"").replace(new RegExp("[^"+ALLOWED_VARIABLE_SYMBOLS+"]+([a-zA-Z])","g"),(function(e,r){return r.toUpperCase()}))},encodeURIComponentExtended=function(e,r){return void 0===r&&(r=!1),encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,r?"%20":"+")},addSeparatorToPath=function(e,r){return void 0===r&&(r="/"),(e=e.trim()).substring(e.length-1)!==r&&e.length?e+r:e},hasPathPrefix=function(e,r,t){var n;(void 0===e&&(e="/admin"),void 0===r)&&(r=(null==(n=$.location)?void 0:n.pathname)||"");return void 0===t&&(t="/"),"string"==typeof e&&(e.endsWith(t)||(e+=t),r===e.substring(0,e.length-t.length)||r.startsWith(e))},getDomainName=function(e,r){var t,n;void 0===e&&(e=(null==(t=$.location)?void 0:t.href)||"");void 0===r&&(r=(null==(n=$.location)?void 0:n.hostname)||"");var o=/^([a-z]*:?\/\/)?([^/]+?)(?::[0-9]+)?(?:\/.*|$)/i.exec(e);return o&&o.length>2&&o[1]&&o[2]?o[2]:r},getPortNumber=function(e,r){var t,n,o;void 0===e&&(e=(null==(n=$.location)?void 0:n.href)||"");void 0===r&&(r=null!=(o=$.location)&&o.port?parseInt($.location.port):null);var i=/^(?:[a-z]*:?\/\/[^/]+?)?[^/]+?:([0-9]+)/i.exec(e);return i&&i.length>1?parseInt(i[1],10):null!==r?r:null!=(t=$.location)&&t.port&&parseInt($.location.port,10)?parseInt($.location.port,10):"https"===getProtocolName(e)?443:80},getProtocolName=function(e,r){var t,n;void 0===e&&(e=(null==(t=$.location)?void 0:t.href)||"");void 0===r&&(r=(null==(n=$.location)?void 0:n.protocol)&&$.location.protocol.substring(0,$.location.protocol.length-1)||"");var o=/^([a-z]+):\/\//i.exec(e);return o&&o.length>1&&o[1]?o[1]:r},getURLParameter=function(e,r,t,n,o,i,a){var l,s,u;(void 0===e&&(e=null),void 0===r&&(r=!1),void 0===t&&(t=null),void 0===n&&(n="$"),void 0===o&&(o="!"),void 0===i&&(i=null),void 0===a)&&(a=null!==(s=null==(u=$.location)?void 0:u.hash)&&void 0!==s?s:"");var c=null!==(l=a)&&void 0!==l?l:"#",f="";if(i)f=i;else if(o&&c.startsWith(o)){var _,p=c.indexOf("#");-1===p?(_=c.substring(o.length),c=""):(_=c.substring(o.length,p),c=c.substring(p));var d=_.indexOf("?");-1!==d&&(f=_.substring(d))}else $.location&&(f=$.location.search||"");var v=t||f,g="&"===v;if(g||"#"===v){var b="";try{b=decodeURIComponent(c)}catch(e){}var h=b.indexOf(n);-1===h?v="":(v=b.substring(h)).startsWith(n)&&(v=v.substring(n.length))}else v.startsWith("?")&&(v=v.substring(1));var y=v?v.split("&"):[];f=f.substring(1),g&&f&&(y=y.concat(f.split("&")));for(var m,O=[],E=_createForOfIteratorHelperLoose(y);!(m=E()).done;){var w=m.value,A=w.split("="),P=void 0;try{P=decodeURIComponent(A[0])}catch(e){P=""}try{w=decodeURIComponent(A[1])}catch(e){w=""}O.push(P),r?Object.prototype.hasOwnProperty.call(O,P)&&Array.isArray(O[P])?O[P].push(w):O[P]=[w]:O[P]=w}return e?Object.prototype.hasOwnProperty.call(O,e)?O[e]:null:O},serviceURLEquals=function(e,r){var t;void 0===r&&(r=(null==(t=$.location)?void 0:t.href)||"");var n=getDomainName(e,""),o=getProtocolName(e,""),i=getPortNumber(e);return!(""!==n&&n!==getDomainName(r)||""!==o&&o!==getProtocolName(r)||null!==i&&i!==getPortNumber(r))},normalizeURL=function(e){if("string"==typeof e){var r=e.replace(/^:?\/+/,"").replace(/\/+$/,"").trim();return r.startsWith("http")?r:"http://"+r}return""},representURL=function(e){return"string"==typeof e?e.replace(/^(https?)?:?\/+/,"").replace(/\/+$/,"").trim():""},camelCaseToDelimited=function(e,r,t){void 0===r&&(r="-"),void 0===t&&(t=null),t||(t=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS);var n=maskForRegularExpression(r);if(t.length){for(var o,i="",a=_createForOfIteratorHelperLoose(t);!(o=a()).done;){i&&(i+="|"),i+=o.value.toUpperCase()}e=e.replace(new RegExp("("+i+")("+i+")","g"),"$1"+r+"$2")}return(e=e.replace(new RegExp("([^"+n+"])([A-Z][a-z]+)","g"),"$1"+r+"$2")).replace(/([a-z0-9])([A-Z])/g,"$1"+r+"$2").toLowerCase()},capitalize=function(e){return e.charAt(0).toUpperCase()+e.substring(1)},compressStyleValue=function(e){return e.replace(/ *([:;]) */g,"$1").replace(/ +/g," ").replace(/^;+/,"").replace(/;+$/,"").trim()},decodeHTMLEntities=function(e){if($.document){var r=$.document.createElement("textarea");return r.innerHTML=e,r.value}return null},delimitedToCamelCase=function(e,r,t,n,o){void 0===r&&(r="-"),void 0===t&&(t=null),void 0===n&&(n=!1),void 0===o&&(o=!1);var i,a=maskForRegularExpression(r);if(t||(t=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS),n)i=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS.join("|");else{i="";for(var l,s=_createForOfIteratorHelperLoose(t);!(l=s()).done;){var u=l.value;i&&(i+="|"),i+=capitalize(u)+"|"+u}}var c=e.startsWith(r);return c&&(e=e.substring(r.length)),e=e.replace(new RegExp("("+a+")("+i+")("+a+"|$)","g"),(function(e,r,t,n){return r+t.toUpperCase()+n})),o&&(a="(?:"+a+")+"),e=e.replace(new RegExp(a+"([a-zA-Z0-9])","g"),(function(e,r){return r.toUpperCase()})),c&&(e=r+e),e},compile=function(e,r,t,n,o){var i;void 0===r&&(r=[]),void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===o&&(o={});for(var a,l,s=Object.keys(globalThis).concat("globalThis").filter((function(e){return new RegExp("^["+ALLOWED_STARTING_VARIABLE_SYMBOLS+"]["+ALLOWED_VARIABLE_SYMBOLS+"]*$").test(e)})),u={error:null,globalNames:s,globalNamesUndefinedList:s.map((function(){})),originalScopeNames:Array.isArray(r)?r:"string"==typeof r?[r]:Object.keys(r),scopeNameMapping:{},scopeNames:[],templateFunction:function(){}},c=_createForOfIteratorHelperLoose(u.originalScopeNames);!(a=c()).done;){var f=a.value,_=convertToValidVariableName(f);u.scopeNameMapping[f]=_,u.scopeNames.push(_)}if(0!==MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION.value)if(null!=(i=$.global.Babel)&&i.transform)e=$.global.Babel.transform("("+e+")",{plugins:["transform-template-literals"]}).code;else if(e.startsWith("`")&&e.endsWith("`")){var p="####",d="`"===(e=e.replace(/\\\$/g,p).replace(/^`\$\{([\s\S]+)}`$/,"String($1)").replace(/^`([^']+)`$/,"'$1'").replace(/^`([^"]+)`$/,'"$1"')).charAt(0)?"'":e.charAt(0);e=e.replace(/\$\{((([^{]*{[^}]*}[^}]*})|[^{}]+)+)}/g,d+"+($1)+"+d).replace(/^`([\s\S]+)`$/,d+"$1"+d).replace(/\n+/g,"").replace(new RegExp(p,"g"),"\\$")}try{l=_construct(Function,(n?u.globalNames:[]).concat(u.scopeNames,[(t?"":"return ")+e]))}catch(r){u.error='Given expression "'+e+'" could not be compiled width given scope names "'+u.scopeNames.join('", "')+'": '+represent(r)}if(l){var v=l.bind(o);u.templateFunction=n?function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return v.apply(void 0,u.globalNamesUndefinedList.concat(r))}:v}return u},evaluate=function(e,r,t,n,o){void 0===r&&(r={}),void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===o&&(o={});var i=compile(e,r,t,n,o),a=i.error,l=i.originalScopeNames,s=i.scopeNames,u=i.templateFunction,c={compileError:null,runtimeError:null,error:"Not yet evaluated.",result:void 0};if(a)return c.compileError=c.error=a,c;try{c={compileError:null,runtimeError:null,error:null,result:u.apply(void 0,l.map((function(e){return r[e]})))}}catch(a){c.error=c.runtimeError='Given expression "'+e+'" could not be evaluated with given scope names "'+s.join('", "')+'": '+represent(a)}return c},findNormalizedMatchRange=function(e,r,t,n){void 0===t&&(t=function(e){return String(e).toLowerCase()}),void 0===n&&(n=["<",">"]);var o=t(r),i=t(e),a="string"==typeof e?e:i;if(i&&o)for(var l=!1,s=0;s<a.length;s+=1)if(l)Array.isArray(n)&&a.charAt(s)===n[1]&&(l=!1);else if(Array.isArray(n)&&a.charAt(s)===n[0])l=!0;else if(t(a.substring(s)).startsWith(o)){if(1===o.length)return[s,s+1];for(var u=a.length;u>s;u-=1)if(!t(a.substring(s,u)).startsWith(o))return[s,u+1]}return null},fixKnownEncodingErrors=function(e){for(var r=0,t=FIX_ENCODING_ERROR_MAPPING;r<t.length;r++){var n=t[r],o=n[0],i=n[1];e=e.replace(new RegExp(o,"g"),i)}return e},format=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];t.unshift(e);for(var o=0,i=0,a=t;i<a.length;i++){var l=a[i];e=e.replace(new RegExp("\\{"+String(o)+"\\}","gm"),String(l)),o+=1}return e},getEditDistance=function(e,r){for(var t=Array(r.length+1).fill(null).map((function(){return Array(e.length+1).fill(null)})),n=0;n<=e.length;n++)t[0][n]=n;for(var o=0;o<=r.length;o++)t[o][0]=o;for(var i=1;i<=r.length;i++)for(var a=1;a<=e.length;a++){var l=e[a-1]===r[i-1]?0:1;t[i][a]=Math.min(t[i][a-1]+1,t[i-1][a]+1,t[i-1][a-1]+l)}return t[r.length][e.length]},maskForRegularExpression=function(e){return e.replace(/([\\|.*$^+[\]()?\-{}])/g,"\\$1")},lowerCase=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},mark=function(e,r,t){if(void 0===t&&(t={}),"string"==typeof e&&null!=r&&r.length){var n=_extends({marker:'<span class="tools-mark">{1}</span>',normalizer:function(e){return String(e).toLowerCase()},skipTagDelimitedParts:["<",">"]},t);e=e.trim();for(var o,i=[],a=[].concat(r),l=0,s=_createForOfIteratorHelperLoose(a);!(o=s()).done;){var u=o.value;a[l]=n.normalizer(u).trim(),l+=1}for(var c=e,f=0,_=0;_<MAXIMAL_NUMBER_OF_ITERATIONS.value;_++){for(var p,d=null,v=null,g=_createForOfIteratorHelperLoose(a);!(p=g()).done;){var b=p.value;(v=findNormalizedMatchRange(c,b,n.normalizer,n.skipTagDelimitedParts))&&(!d||v[0]<d[0])&&(d=v)}if(!d){c.length&&i.push(c);break}d[0]>0&&i.push(e.substring(f,f+d[0])),i.push("string"==typeof n.marker?format(n.marker,e.substring(f+d[0],f+d[1])):n.marker(e.substring(f+d[0],f+d[1]),i)),f+=d[1],c=e.substring(f)}return"string"==typeof n.marker?i.join(""):i}return e},normalizePhoneNumber=function(e,r){if(void 0===r&&(r=!0),"string"==typeof e||"number"==typeof e){var t=String(e).trim();if(t=(t=t.replace(/^[^0-9]*\+/,"00")).replace(/([0-9].*?) *(,|o[rd]?)\.? ?-?[0-9]+$/,"$1"),r)return t.replace(/[^0-9]+/g,"");var n="(?:[ /\\-]+)";t=(t=t.replace(new RegExp("^(.+?)"+n+"?\\(0\\)"+n+"?(.+)$"),"$1-$2")).replace(new RegExp("^(.+?)"+n+"?\\((.+)\\)"+n+"?(.+)$"),"$1-$2-$3");var o=new RegExp("^(00[0-9]+)"+n+"([0-9]+)"+n+"(.+)$");if(o.test(t))t=t.replace(o,(function(e,r,t,n){return r+"-"+t+"-"+sliceAllExceptNumberAndLastSeparator(n)}));else{var i=function(e,r,t){return r.replace(/ +/,"")+"-"+sliceAllExceptNumberAndLastSeparator(t)};t=(o=/^([0-9 ]+)[/-](.+)$/).test(t)?t.replace(o,i):t.replace(new RegExp("^([0-9]+)"+n+"(.+)$"),i)}return t.replace(/[^0-9-]+/g,"").replace(/^-+$/,"")}return""},normalizeZipCode=function(e){return"string"==typeof e||"number"==typeof e?String(e).trim().replace(/^([^0-9]*[a-zA-Z]-)?(.+)$/,(function(e,r,t){var n;return r&&(r=r.substring(r.length-2).charAt(0).toUpperCase()+"-"),(null!==(n=r)&&void 0!==n?n:"")+(null!=t?t:"").trim().replace(/[^0-9]+/g,"")})):""},parseEncodedObject=function parseEncodedObject(serializedObject,scope,name){var _evaluate;if(void 0===scope&&(scope={}),void 0===name&&(name="scope"),!readFileSync)throw new Error("File system api could not be loaded.");serializedObject.endsWith(".json")&&isFileSync(serializedObject)&&(serializedObject=readFileSync(serializedObject,{encoding:DEFAULT_ENCODING})),serializedObject=serializedObject.trim(),serializedObject.startsWith("{")||(serializedObject=eval("Buffer").from(serializedObject,"base64").toString(DEFAULT_ENCODING));var result=evaluate(serializedObject,(_evaluate={},_evaluate[name]=scope,_evaluate));return"object"==typeof result.result?result.result:null},representPhoneNumber=function(e){if(["number","string"].includes(determineType(e))&&e){var r=String(e).replace(/^(00|\+)([0-9]+)-([0-9-]+)$/,"+$2 (0) $3");return(r=(r=r.replace(/^0([1-9][0-9-]+)$/,"+49 (0) $1")).replace(/^([^-]+)-([0-9-]+)$/,"$1 / $2")).replace(/^(.*?)([0-9]+)(-?[0-9]*)$/,(function(e,r,t,n){return r+(t.length%2==0?t.replace(/([0-9]{2})/g,"$1 "):t.replace(/^([0-9]{3})([0-9]+)$/,(function(e,r,t){return r+" "+t.replace(/([0-9]{2})/g,"$1 ").trim()}))+n).trim()})).trim()}return""},sliceAllExceptNumberAndLastSeparator=function(e){var r=/^(.*[0-9].*)-([0-9]+)$/;return r.test(e)?e.replace(r,(function(e,r,t){return r.replace(/[^0-9]+/g,"")+"-"+t})):e.replace(/[^0-9]+/g,"")},normalizeDomNodeSelector=function(e,r){void 0===r&&(r="");var t="";return r&&(t=r+" "),e.startsWith(t)||e.trim().startsWith("<")||(e=t+e),e.trim()}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{currentImport:function(){return currentImport},optionalRequire:function(){return optionalRequire}});var currentRequire=eval("typeof require === 'undefined' ? null : require"),currentOptionalImport=null;try{currentOptionalImport=eval("typeof import === 'undefined' ? null : import")}catch(e){}var currentImport=currentOptionalImport,optionalRequire=function(e){try{return currentRequire?currentRequire(e):null}catch(e){return null}},clearRequireCache=function(e){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__webpack_require__.c);for(var r={},t=0,n=Object.entries(e);t<n.length;t++){var o=n[t],i=o[0],a=o[1];r[i]=a,delete e[i]}return r},restoreRequireCache=function(e,r){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__webpack_require__.c),clearRequireCache();for(var t=0,n=Object.entries(r);t<n.length;t++){var o=n[t],i=o[0],a=o[1];e[i]=a}},isolatedRequire=function(e,r){void 0===r&&(r=currentRequire||__webpack_require__(9));var t=clearRequireCache(r.cache);try{return r(e)}catch(e){throw e}finally{restoreRequireCache(r.cache,t)}}},function(e,r,t){t.d(r,{makeArray:function(){return a}});t(4);var n=t(1);function o(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return i(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var a=function(e){var r=[];return[null,void 0].includes(e)||((0,n.isArrayLike)(Object(e))?l(r,"string"==typeof e?[e]:e):r.push(e)),r},l=function(e,r){Array.isArray(r)||(r=Array.prototype.slice.call(r));for(var t,n=o(r);!(t=n()).done;){var i=t.value;e.push(i)}return e}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__8__},function(e){function r(e){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}r.keys=function(){return[]},r.resolve=r,r.id=9,e.exports=r},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__10__},function(e,r,t){t(10);var n=t(13),o=t.n(n),i=t(7),a=t(0),l=t(2),s=t(1),u=t(3),c=t(5);function f(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return _(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var p=!1,d=function(){function e(r){var t=this;this.$domNode=null,this.options=void 0,this._bindEventHelper=function(e,r,n){void 0===r&&(r=!1),n||(n=r?"off":"on");var o=(0,l.$)(e[0]);if("object"===(0,u.determineType)(e[1])&&!r){for(var a=0,s=Object.entries(e[1]);a<s.length;a++){var c=s[a],f=c[0],_=c[1];t[n](o,f,_)}return o}return 0===(e=(0,i.makeArray)(e).slice(1)).length&&e.push(""),e[0].includes(".")||(e[0]+="."+t.options.name),o[n].apply(o,e)},r&&(this.$domNode=r),this.options=e._defaultOptions,Object.prototype.hasOwnProperty.call(l.$.global,"console")||(l.$.global.console={}),l.$.global.console||(l.$.global.console={});for(var n,o=f(a.CONSOLE_METHODS);!(n=o()).done;){var s=n.value;s in l.$.global.console||(l.$.global.console[s]=l.NOOP)}}var r=e.prototype;return r.destructor=function(){var e;return null!=(e=l.$.fn)&&e.off&&this.off("*"),this},r.initialize=function(r){return void 0===r&&(r={}),this.options=(0,u.extend)(!0,{},e._defaultOptions,r),this.options.domNodeSelectorPrefix=(0,c.format)(this.options.domNodeSelectorPrefix,(0,c.camelCaseToDelimited)(null===this.options.domNodeSelectorInfix?"":this.options.domNodeSelectorInfix||this.options.name)),this.renderJavaScriptDependentVisibility(),this},e.controller=function(r,t,n){void 0===n&&(n=null),"function"==typeof r&&((r=new r(n))instanceof e||(r=(0,u.extend)(!0,new e,r)));var o,a=(0,i.makeArray)(t);if(a.length&&"string"==typeof a[0]&&a[0]in r)return(0,s.isFunction)(r[a[0]])?(o=r)[a[0]].apply(o,a.slice(1)):r[a[0]];if(0===a.length||"object"==typeof a[0]){var l,c,f=(l=r).initialize.apply(l,a),_=r.options.name||r.constructor.name;return null!=(c=n)&&c.data&&!n.data(_)&&n.data(_,r),f}if(a.length&&"string"==typeof a[0])throw new Error('Method "'+a[0]+'" does not exist on $-extended dom node "'+r+'".')},e.isEquivalentDOM=function(e,r,t){if(void 0===t&&(t=!1),e===r)return!0;if(e&&r){for(var n=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,o={first:e,second:r},i={first:(0,l.$)("<dummy>"),second:(0,l.$)("<dummy>")},a=0,s=Object.entries(o);a<s.length;a++){var u=s[a],c=u[0],f=u[1];if("string"==typeof f&&(t||f.startsWith("<")&&f.endsWith(">")&&f.length>=3||n.test(f)))i[c]=(0,l.$)("<div>"+f+"</div>");else try{var _=(0,l.$)(f).clone();if(!_.length)return!1;i[c]=(0,l.$)("<div>").append(_)}catch(e){return!1}}if(i.first.length&&i.first.length===i.second.length){i.first=i.first.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode,i.second=i.second.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode;for(var p=0,d=0,v=i.first;d<v.length;d++){if(!v[d].isEqualNode(i.second[p]))return!1;p+=1}return!0}}return!1},r.getPositionRelativeToViewport=function(e){if(void 0===e&&(e={}),!l.$.global.window)throw new Error("No window object available.");var r=(0,u.extend)({bottom:0,left:0,right:0,top:0},e),t=this.$domNode;if(Object.prototype.hasOwnProperty.call(l.$.global,"window")&&null!=t&&t.length&&t[0]&&"getBoundingClientRect"in t[0]){var n=(0,l.$)(l.$.global.window),o=t[0].getBoundingClientRect();if(o.top&&o.top+r.top<0)return"above";if(o.left+r.left<0)return"left";var i=n.height();if("number"==typeof i&&i<o.bottom+r.bottom)return"below";var a=n.width();if("number"==typeof a&&a<o.right+r.right)return"right"}return"in"},e.generateDirectiveSelector=function(e){var r=(0,c.camelCaseToDelimited)(e);return r+", ."+r+", ["+r+"], [data-"+r+"], [x-"+r+"]"+(r.includes("-")?", ["+r.replace(/-/g,"\\:")+"], ["+r.replace(/-/g,"_")+"]":"")},r.removeDirective=function(e){if(null===this.$domNode)return null;var r=(0,c.camelCaseToDelimited)(e);return this.$domNode.removeClass(r).removeAttr(r).removeAttr("data-"+r).removeAttr("x-"+r).removeAttr(r.replace("-",":")).removeAttr(r.replace("-","_"))},r.renderJavaScriptDependentVisibility=function(){!p&&l.$.document&&"filter"in l.$&&"hide"in l.$&&"show"in l.$&&((0,l.$)(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.hideJavaScriptEnabled).filter((function(e,r){return!(0,l.$)(r).data("javaScriptDependentContentHide")})).data("javaScriptDependentContentHide",!0).hide(),(0,l.$)(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.showJavaScriptEnabled).filter((function(e,r){return!(0,l.$)(r).data("javaScriptDependentContentShow")})).data("javaScriptDependentContentShow",!0).show(),p=!0)},e.getNormalizedDirectiveName=function(e){for(var r,t=f(["-",":","_"]);!(r=t()).done;){for(var n,o=r.value,i=!1,a=f(["data"+o,"x"+o]);!(n=a()).done;){var l=n.value;if(e.startsWith(l)){e=e.substring(l.length),i=!0;break}}if(i)break}for(var s,u=f(["-",":","_"]);!(s=u()).done;){var _=s.value;e=(0,c.delimitedToCamelCase)(e,_)}return e},r.getDirectiveValue=function(e){if(null===this.$domNode)return null;for(var r=(0,c.camelCaseToDelimited)(e),t=0,n=[r,"data-"+r,"x-"+r,r.replace("-","\\:")];t<n.length;t++){var o=n[t],i=this.$domNode.attr(o);if("string"==typeof i)return i}return null},r.sliceDomNodeSelectorPrefix=function(e){return this.options.domNodeSelectorPrefix&&e.startsWith(this.options.domNodeSelectorPrefix)?e.substring(this.options.domNodeSelectorPrefix.length).trim():e},e.getDomNodeName=function(e){var r=/^<?([a-zA-Z]+).*>?.*/.exec(e);return r?r[1]:null},r.grabDomNodes=function(e,r){var t=this,n={};if(r)for(var o=(0,l.$)(r),i=0,a=Object.entries(e);i<a.length;i++){var s=a[i],u=s[0],f=s[1];n[u]=o.find(f)}else for(var _=0,p=Object.entries(e);_<p.length;_++){var d=p[_],v=d[0],g=d[1],b=/, */.exec(g);b&&(e[v]+=g.split(b[0]).map((function(e){return", "+(0,c.normalizeDomNodeSelector)(e,t.options.domNodeSelectorPrefix)})).join("")),n[v]=(0,l.$)((0,c.normalizeDomNodeSelector)(e[v],this.options.domNodeSelectorPrefix))}return this.options.domNodeSelectorPrefix&&(n.parent=(0,l.$)(this.options.domNodeSelectorPrefix)),Object.prototype.hasOwnProperty.call(l.$.global,"window")&&(n.window=(0,l.$)(l.$.global.window),l.$.document&&(n.document=(0,l.$)(l.$.document))),n},r.fireEvent=function(e,r,t){var n;void 0===r&&(r=!1),void 0===t&&(t=this);for(var o="on"+(0,c.capitalize)(e),i=t,a=arguments.length,s=new Array(a>3?a-3:0),u=3;u<a;u++)s[u-3]=arguments[u];return r||(o in i?i[o].apply(i,s):"_"+o in i&&i["_"+o].apply(i,s)),!i.options||!(o in i.options)||i.options[o]===l.NOOP||(n=i.options[o]).call.apply(n,[this].concat(s))},r.on=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return this._bindEventHelper(r,!1)},r.off=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return this._bindEventHelper(r,!0)},o()(e,[{key:"normalizedClassNames",get:function(){if(this.$domNode){var e="class";this.$domNode.find("*").addBack().each((function(r,t){var n=(0,l.$)(t),o=n.attr(e);o?n.attr(e,o.trim().replace(/ +/," ").split(" ").sort().join(" ")):n.is("[class]")&&n.removeAttr(e)}))}return this}},{key:"normalizedStyles",get:function(){if(this.$domNode){var e="style";this.$domNode.find("*").addBack().each((function(r,t){var n=(0,l.$)(t),o=n.attr(e);o?n.attr(e,(0,c.compressStyleValue)((0,c.compressStyleValue)(o).split(";").sort().map((function(e){return e.trim()})).join(";"))):n.is("[style]")&&n.removeAttr(e)}))}return this}},{key:"style",get:function(){var e={},r=this.$domNode;if(null!=r&&r.length){var t,n;if(null!=(t=l.$.global.window)&&t.getComputedStyle){if("length"in(n=l.$.global.window.getComputedStyle(r[0],null)))for(var o=0;o<n.length;o+=1){var i=n[o];e[(0,c.delimitedToCamelCase)(i)]=n.getPropertyValue(i)}else for(var a=0,s=Object.entries(n);a<s.length;a++){var u=s[a],f=u[0],_=u[1];e[(0,c.delimitedToCamelCase)(f)]=_||n.getPropertyValue(f)}return e}n=r[0].style;for(var p=0,d=Object.entries(n);p<d.length;p++){var v=d[p],g=v[0],b=v[1];"function"!=typeof b&&(e[g]=b)}}return e}},{key:"text",get:function(){return this.$domNode?this.$domNode.clone().children().remove().end().text():""}}])}();d._defaultOptions={domNodes:{hideJavaScriptEnabled:".tools-hidden-on-javascript-enabled",showJavaScriptEnabled:".tools-visible-on-javascript-enabled"},domNodeSelectorInfix:"",domNodeSelectorPrefix:"body",name:"Tools"};r.default=d},function(e){if(void 0===__WEBPACK_EXTERNAL_MODULE__12__){var r=new Error("Cannot find module 'undefined'");throw r.code="MODULE_NOT_FOUND",r}e.exports=__WEBPACK_EXTERNAL_MODULE__12__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__13__},,,,,,,,,,function(e,r,t){t.r(r),t.d(r,{LEVELS:function(){return l},Logger:function(){return s}});var n=t(2),o=t(1),i=t(3),a=t(5),l=["debug","info","warn","warning","critical","error"],s=function(){function e(r){void 0===r&&(r={}),this.level=e.defaultLevel,this.name=e.defaultName,this.configure(r)}var r=e.prototype;return r.configure=function(r){var t=r.level,n=r.name;this.level=t||e.defaultLevel,this.name=n||e.defaultName},r.log=function(e,r,t,i){if(void 0===r&&(r=!1),void 0===t&&(t=!1),void 0===i&&(i="info"),r||l.indexOf(this.level)>=l.indexOf(i)){for(var s,u=arguments.length,c=new Array(u>4?u-4:0),f=4;f<u;f++)c[f-4]=arguments[f];if(t?s=e:"string"==typeof e?s=i+": "+this.name+" - "+(new Date).toISOString()+" "+a.format.apply(void 0,[e].concat(c)):(0,o.isNumeric)(e)||"boolean"==typeof e?s=i+": "+this.name+" - "+(new Date).toISOString()+" "+e.toString():(this.log(",--------------------------------------------,"),this.log(e,r,!0),this.log("'--------------------------------------------'")),s)if(n.$.global.console&&i in n.$.global.console&&n.$.global.console[i]!==n.NOOP)n.$.global.console[i](s);else{var _;Object.prototype.hasOwnProperty.call(n.$.global,"window")&&Object.prototype.hasOwnProperty.call(n.$.global.window,"alert")&&(null==(_=n.$.global.window)||_.alert(s))}}},r.info=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];this.log.apply(this,[e,!1,!1,"info"].concat(t))},r.debug=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];this.log.apply(this,[e,!1,!1,"debug"].concat(t))},r.error=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];this.log.apply(this,[e,!0,!1,"error"].concat(t))},r.critical=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];this.log.apply(this,[e,!0,!1,"warn"].concat(t))},r.warn=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];this.log.apply(this,[e,!1,!1,"warn"].concat(t))},e.show=function(r,t,n){void 0===t&&(t=3),void 0===n&&(n=0);var o="";if("object"===(0,i.determineType)(r)){for(var a=0,l=Object.entries(r);a<l.length;a++){var s=l[a],u=s[0],c=s[1];o+=u+": ",o+=n<=t?e.show(c,t,n+1):String(c),o+="\n"}return o.trim()}return(o=String(r).trim())+' (Type: "'+(0,i.determineType)(r)+'")'},e}();s.defaultLevel="info",s.defaultName="app",r.default=s}],__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var t=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](t,t.exports,__webpack_require__),t.loaded=!0,t.exports}__webpack_require__.c=__webpack_module_cache__,__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(23);return __webpack_exports__}()}));
|
package/dist/Tools.d.ts
CHANGED
|
@@ -60,69 +60,6 @@ export declare class Tools<TElement = HTMLElement> {
|
|
|
60
60
|
* @returns Returns whatever the initializer method returns.
|
|
61
61
|
*/
|
|
62
62
|
static controller<TElement = HTMLElement>(object: unknown, parameters: unknown, $domNode?: null | $T<TElement>): unknown;
|
|
63
|
-
/**
|
|
64
|
-
* Shows the given object's representation in the browsers console if
|
|
65
|
-
* possible or in a standalone alert-window as fallback.
|
|
66
|
-
* @param object - Any object to print.
|
|
67
|
-
* @param force - If set to "true" given input will be shown independently
|
|
68
|
-
* of current logging configuration or interpreter's console
|
|
69
|
-
* implementation.
|
|
70
|
-
* @param avoidAnnotation - If set to "true" given input has no module or
|
|
71
|
-
* log level specific annotations.
|
|
72
|
-
* @param level - Description of log messages importance.
|
|
73
|
-
* @param additionalArguments - Additional arguments are used for string
|
|
74
|
-
* formatting.
|
|
75
|
-
*/
|
|
76
|
-
log(object: unknown, force?: boolean, avoidAnnotation?: boolean, level?: keyof Console, ...additionalArguments: Array<unknown>): void;
|
|
77
|
-
/**
|
|
78
|
-
* Wrapper method for the native console method usually provided by
|
|
79
|
-
* interpreter.
|
|
80
|
-
* @param object - Any object to print.
|
|
81
|
-
* @param additionalArguments - Additional arguments are used for string
|
|
82
|
-
* formatting.
|
|
83
|
-
*/
|
|
84
|
-
info(object: unknown, ...additionalArguments: Array<unknown>): void;
|
|
85
|
-
/**
|
|
86
|
-
* Wrapper method for the native console method usually provided by
|
|
87
|
-
* interpreter.
|
|
88
|
-
* @param object - Any object to print.
|
|
89
|
-
* @param additionalArguments - Additional arguments are used for string
|
|
90
|
-
* formatting.
|
|
91
|
-
*/
|
|
92
|
-
debug(object: unknown, ...additionalArguments: Array<unknown>): void;
|
|
93
|
-
/**
|
|
94
|
-
* Wrapper method for the native console method usually provided by
|
|
95
|
-
* interpreter.
|
|
96
|
-
* @param object - Any object to print.
|
|
97
|
-
* @param additionalArguments - Additional arguments are used for string
|
|
98
|
-
* formatting.
|
|
99
|
-
*/
|
|
100
|
-
error(object: unknown, ...additionalArguments: Array<unknown>): void;
|
|
101
|
-
/**
|
|
102
|
-
* Wrapper method for the native console method usually provided by
|
|
103
|
-
* interpreter.
|
|
104
|
-
* @param object - Any object to print.
|
|
105
|
-
* @param additionalArguments - Additional arguments are used for string
|
|
106
|
-
* formatting.
|
|
107
|
-
*/
|
|
108
|
-
critical(object: unknown, ...additionalArguments: Array<unknown>): void;
|
|
109
|
-
/**
|
|
110
|
-
* Wrapper method for the native console method usually provided by
|
|
111
|
-
* interpreter.
|
|
112
|
-
* @param object - Any object to print.
|
|
113
|
-
* @param additionalArguments - Additional arguments are used for string
|
|
114
|
-
* formatting.
|
|
115
|
-
*/
|
|
116
|
-
warn(object: unknown, ...additionalArguments: Array<unknown>): void;
|
|
117
|
-
/**
|
|
118
|
-
* Dumps a given object in a human-readable format.
|
|
119
|
-
* @param object - Any object to show.
|
|
120
|
-
* @param level - Number of levels to dig into given object recursively.
|
|
121
|
-
* @param currentLevel - Maximal number of recursive function calls to
|
|
122
|
-
* represent given object.
|
|
123
|
-
* @returns Returns the serialized version of given object.
|
|
124
|
-
*/
|
|
125
|
-
static show(object: unknown, level?: number, currentLevel?: number): string;
|
|
126
63
|
/**
|
|
127
64
|
* Normalizes class name order of current dom node.
|
|
128
65
|
* @returns Current instance.
|