@webalternatif/js-core 1.6.4 → 1.6.5
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/cjs/Mouse.js +20 -14
- package/dist/cjs/dom.js +4 -2
- package/dist/cjs/onOff.js +13 -9
- package/dist/cjs/traversal.js +1 -1
- package/dist/esm/Mouse.js +19 -14
- package/dist/esm/dom.js +4 -2
- package/dist/esm/onOff.js +13 -9
- package/dist/esm/traversal.js +1 -1
- package/dist/umd/dom.umd.js +1 -1
- package/dist/umd/mouse.umd.js +1 -1
- package/dist/umd/webf.umd.js +1 -1
- package/package.json +1 -1
- package/src/Mouse.js +20 -12
- package/src/dom.js +2 -2
- package/src/onOff.js +11 -11
- package/src/traversal.js +1 -1
- package/types/Mouse.d.ts +14 -3
- package/types/dom.d.ts +2 -2
- package/types/traversal.d.ts +1 -1
package/dist/cjs/Mouse.js
CHANGED
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _jsCore = _interopRequireDefault(require("@webalternatif/js-core"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
10
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
10
11
|
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); } }
|
|
11
12
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -64,23 +65,28 @@ var Mouse = /*#__PURE__*/function () {
|
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
68
|
+
* Normalize an event
|
|
69
|
+
*
|
|
70
|
+
* @param {Event|{originalEvent?: Event}|{detail?: {originalEvent?: Event}}} ev
|
|
71
|
+
* @returns {{clientX:number, clientY:number, pageX:number, pageY:number}|null}
|
|
69
72
|
*/
|
|
70
73
|
}]);
|
|
71
74
|
}();
|
|
72
75
|
function _getEvent(ev) {
|
|
73
|
-
var _ev$
|
|
74
|
-
|
|
75
|
-
if (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
76
|
+
var _ref, _ev$detail$originalEv, _ev$detail, _ref2, _e$changedTouches$, _e$changedTouches, _e$touches;
|
|
77
|
+
var e = (_ref = (_ev$detail$originalEv = ev === null || ev === void 0 || (_ev$detail = ev.detail) === null || _ev$detail === void 0 ? void 0 : _ev$detail.originalEvent) !== null && _ev$detail$originalEv !== void 0 ? _ev$detail$originalEv : ev === null || ev === void 0 ? void 0 : ev.originalEvent) !== null && _ref !== void 0 ? _ref : ev;
|
|
78
|
+
if (!e) return null;
|
|
79
|
+
var src = (_ref2 = (_e$changedTouches$ = (_e$changedTouches = e.changedTouches) === null || _e$changedTouches === void 0 ? void 0 : _e$changedTouches[0]) !== null && _e$changedTouches$ !== void 0 ? _e$changedTouches$ : (_e$touches = e.touches) === null || _e$touches === void 0 ? void 0 : _e$touches[0]) !== null && _ref2 !== void 0 ? _ref2 : e;
|
|
80
|
+
var clientX = typeof src.clientX === 'number' ? src.clientX : 0;
|
|
81
|
+
var clientY = typeof src.clientY === 'number' ? src.clientY : 0;
|
|
82
|
+
var pageX = typeof src.pageX === 'number' ? src.pageX : clientX + ('undefined' !== typeof window ? window.scrollX : 0);
|
|
83
|
+
var pageY = typeof src.pageY === 'number' ? src.pageY : clientY + ('undefined' !== typeof window ? window.scrollY : 0);
|
|
84
|
+
return {
|
|
85
|
+
clientX: clientX,
|
|
86
|
+
clientY: clientY,
|
|
87
|
+
pageX: pageX,
|
|
88
|
+
pageY: pageY
|
|
89
|
+
};
|
|
84
90
|
}
|
|
85
91
|
var _default = exports["default"] = Mouse;
|
|
86
92
|
/* istanbul ignore else */
|
package/dist/cjs/dom.js
CHANGED
|
@@ -338,7 +338,7 @@ var dom = {
|
|
|
338
338
|
return node;
|
|
339
339
|
},
|
|
340
340
|
/**
|
|
341
|
-
* @param {Element|
|
|
341
|
+
* @param {...(Element|NodeListOf<Element>|Iterable<Element>|string)} els
|
|
342
342
|
* @returns {void}
|
|
343
343
|
*/
|
|
344
344
|
remove: function remove() {
|
|
@@ -354,7 +354,9 @@ var dom = {
|
|
|
354
354
|
return e.remove();
|
|
355
355
|
});
|
|
356
356
|
} else {
|
|
357
|
-
_this3.
|
|
357
|
+
_this3.find(el).forEach(function (e) {
|
|
358
|
+
return e.remove();
|
|
359
|
+
});
|
|
358
360
|
}
|
|
359
361
|
});
|
|
360
362
|
},
|
package/dist/cjs/onOff.js
CHANGED
|
@@ -94,15 +94,19 @@ var enableDblTap = function enableDblTap() {
|
|
|
94
94
|
var MOVE_TOLERANCE = 40;
|
|
95
95
|
var lastTapTime = 0;
|
|
96
96
|
var lastPos = null;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
97
|
+
|
|
98
|
+
// if (isTouchDevice()) {
|
|
99
|
+
// document.addEventListener(
|
|
100
|
+
// 'dblclick',
|
|
101
|
+
// (ev) => {
|
|
102
|
+
// ev.preventDefault()
|
|
103
|
+
// ev.stopPropagation()
|
|
104
|
+
// ev.stopImmediatePropagation()
|
|
105
|
+
// },
|
|
106
|
+
// { capture: true },
|
|
107
|
+
// )
|
|
108
|
+
// }
|
|
109
|
+
|
|
106
110
|
var start = function start(ev) {
|
|
107
111
|
var target = ev.target;
|
|
108
112
|
if (Date.now() - lastTapTime > DBLTAP_DELAY) {
|
package/dist/cjs/traversal.js
CHANGED
|
@@ -15,7 +15,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
15
15
|
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; }
|
|
16
16
|
/**
|
|
17
17
|
* @template T
|
|
18
|
-
* @typedef {Array<T> | Set<T> | Map<any, T> | Object<string, T> | string | string[]} Collection
|
|
18
|
+
* @typedef {Array<T> | readonly T[] | Set<T> | Map<any, T> | Object<string, T> | string | string[]} Collection
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
/**
|
package/dist/esm/Mouse.js
CHANGED
|
@@ -5,7 +5,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
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); }
|
|
7
7
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
8
|
-
import
|
|
8
|
+
import webf from '@webalternatif/js-core';
|
|
9
9
|
var Mouse = /*#__PURE__*/function () {
|
|
10
10
|
function Mouse() {
|
|
11
11
|
_classCallCheck(this, Mouse);
|
|
@@ -58,23 +58,28 @@ var Mouse = /*#__PURE__*/function () {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
61
|
+
* Normalize an event
|
|
62
|
+
*
|
|
63
|
+
* @param {Event|{originalEvent?: Event}|{detail?: {originalEvent?: Event}}} ev
|
|
64
|
+
* @returns {{clientX:number, clientY:number, pageX:number, pageY:number}|null}
|
|
63
65
|
*/
|
|
64
66
|
}]);
|
|
65
67
|
}();
|
|
66
68
|
function _getEvent(ev) {
|
|
67
|
-
var _ev$
|
|
68
|
-
|
|
69
|
-
if (
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
var _ref, _ev$detail$originalEv, _ev$detail, _ref2, _e$changedTouches$, _e$changedTouches, _e$touches;
|
|
70
|
+
var e = (_ref = (_ev$detail$originalEv = ev === null || ev === void 0 || (_ev$detail = ev.detail) === null || _ev$detail === void 0 ? void 0 : _ev$detail.originalEvent) !== null && _ev$detail$originalEv !== void 0 ? _ev$detail$originalEv : ev === null || ev === void 0 ? void 0 : ev.originalEvent) !== null && _ref !== void 0 ? _ref : ev;
|
|
71
|
+
if (!e) return null;
|
|
72
|
+
var src = (_ref2 = (_e$changedTouches$ = (_e$changedTouches = e.changedTouches) === null || _e$changedTouches === void 0 ? void 0 : _e$changedTouches[0]) !== null && _e$changedTouches$ !== void 0 ? _e$changedTouches$ : (_e$touches = e.touches) === null || _e$touches === void 0 ? void 0 : _e$touches[0]) !== null && _ref2 !== void 0 ? _ref2 : e;
|
|
73
|
+
var clientX = typeof src.clientX === 'number' ? src.clientX : 0;
|
|
74
|
+
var clientY = typeof src.clientY === 'number' ? src.clientY : 0;
|
|
75
|
+
var pageX = typeof src.pageX === 'number' ? src.pageX : clientX + ('undefined' !== typeof window ? window.scrollX : 0);
|
|
76
|
+
var pageY = typeof src.pageY === 'number' ? src.pageY : clientY + ('undefined' !== typeof window ? window.scrollY : 0);
|
|
77
|
+
return {
|
|
78
|
+
clientX: clientX,
|
|
79
|
+
clientY: clientY,
|
|
80
|
+
pageX: pageX,
|
|
81
|
+
pageY: pageY
|
|
82
|
+
};
|
|
78
83
|
}
|
|
79
84
|
export default Mouse;
|
|
80
85
|
|
package/dist/esm/dom.js
CHANGED
|
@@ -332,7 +332,7 @@ var dom = {
|
|
|
332
332
|
return node;
|
|
333
333
|
},
|
|
334
334
|
/**
|
|
335
|
-
* @param {Element|
|
|
335
|
+
* @param {...(Element|NodeListOf<Element>|Iterable<Element>|string)} els
|
|
336
336
|
* @returns {void}
|
|
337
337
|
*/
|
|
338
338
|
remove: function remove() {
|
|
@@ -348,7 +348,9 @@ var dom = {
|
|
|
348
348
|
return e.remove();
|
|
349
349
|
});
|
|
350
350
|
} else {
|
|
351
|
-
_this3.
|
|
351
|
+
_this3.find(el).forEach(function (e) {
|
|
352
|
+
return e.remove();
|
|
353
|
+
});
|
|
352
354
|
}
|
|
353
355
|
});
|
|
354
356
|
},
|
package/dist/esm/onOff.js
CHANGED
|
@@ -85,15 +85,19 @@ var enableDblTap = function enableDblTap() {
|
|
|
85
85
|
var MOVE_TOLERANCE = 40;
|
|
86
86
|
var lastTapTime = 0;
|
|
87
87
|
var lastPos = null;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
88
|
+
|
|
89
|
+
// if (isTouchDevice()) {
|
|
90
|
+
// document.addEventListener(
|
|
91
|
+
// 'dblclick',
|
|
92
|
+
// (ev) => {
|
|
93
|
+
// ev.preventDefault()
|
|
94
|
+
// ev.stopPropagation()
|
|
95
|
+
// ev.stopImmediatePropagation()
|
|
96
|
+
// },
|
|
97
|
+
// { capture: true },
|
|
98
|
+
// )
|
|
99
|
+
// }
|
|
100
|
+
|
|
97
101
|
var start = function start(ev) {
|
|
98
102
|
var target = ev.target;
|
|
99
103
|
if (Date.now() - lastTapTime > DBLTAP_DELAY) {
|
package/dist/esm/traversal.js
CHANGED
|
@@ -10,7 +10,7 @@ import { sizeOf } from './utils.js';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @template T
|
|
13
|
-
* @typedef {Array<T> | Set<T> | Map<any, T> | Object<string, T> | string | string[]} Collection
|
|
13
|
+
* @typedef {Array<T> | readonly T[] | Set<T> | Map<any, T> | Object<string, T> | string | string[]} Collection
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/**
|
package/dist/umd/dom.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dom=e():t.dom=e()}(this,()=>(()=>{"use strict";var t={260(t,e,n){n.d(e,{default:()=>f});var r=n(531);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}function u(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,n=[{key:"getPosition",value:function(e,n){e=u(t,this,c).call(this,e);var r={left:0,top:0};if(n instanceof Element){var o=n.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:e.pageX-r.left,y:e.pageY-r.top}}},{key:"getViewportPosition",value:function(e){return{x:(e=u(t,this,c).call(this,e)).clientX,y:e.clientY}}},{key:"getElement",value:function(e){return e=u(t,this,c).call(this,e),window.document.elementFromPoint(e.clientX,e.clientY)}}],null&&i(e.prototype,null),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function c(t){var e;if(t=null!==(e=t.originalEvent)&&void 0!==e?e:t,(0,r.isTouchDevice)()){var n,o,i=(null===(n=t.changedTouches)||void 0===n?void 0:n[0])||(null===(o=t.touches)||void 0===o?void 0:o[0]);t.clientX=i.clientX,t.clientY=i.clientY,t.pageX=i.pageX,t.pageY=i.pageY}return t}const f=l;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=l)},626(t,e,n){n.d(e,{inArray:()=>a});var r=n(385),o=n(531),i=(n(245),n(82)),a=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=!1;return(0,r.each)(e,function(e,r){if(e>=n)if(a){if(r===t)return u=!0,!1}else{if((0,o.isObject)(t)&&(0,o.isObject)(r))return u=(0,i.equals)(r,t),!1;if((0,o.isArray)(t)&&(0,o.isObject)(r))return u=(0,i.equals)(r,t),!1;if(r==t)return u=!0,!1}}),u}},531(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{isArray:()=>f,isArrayLike:()=>c,isDocument:()=>y,isFunction:()=>u,isObject:()=>a,isPlainObject:()=>l,isString:()=>i,isTouchDevice:()=>p,isWindow:()=>v}),n(626);var o,i=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},a=function(t){return!!t&&!f(t)&&"object"===r(t)},u=function(t){return!!t&&"function"==typeof t},l=function(t){return!1!==a(t)&&(void 0===t.constructor||!1!==a(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},c=function(t){return!!t&&!i(t)&&!u(t)&&s(t.length)&&Number.isFinite(t.length)},f=function(t){return Array.isArray(t)},s=function(t){return/^[-+]?\d+$/.test(t+"")},d=(o={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var e=document.createElement(o[t]||"div"),n=(t="on"+t)in e;return e=null,n}),p=function(){return d("touchstart")},v=function(t){return!!t&&t===t.window},y=function(t){return!!t&&9===t.nodeType}},245(t,e,n){n(385),n(531),n(54)},54(t,e,n){n.d(e,{camelCase:()=>u}),n(531),n(245),n(626);var r=n(385),o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return i(a(t,e),e)},i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(e,"+"),"g"),"")},a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(e,"+$"),"g"),"")},u=function(t){if(!t)return"";var e="",n=!1,i=!1,a=!1;t=o(t),t=o(t,"_"),t=o(t,"-");var u=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},l=function(t){return"-"===t||"_"===t||" "===t};return(0,r.map)(t,function(t,r){return i=l(e),a=u(e),e=r,l(r)?null:(i?(r=r.toUpperCase(),n=!0):u(r)?((0===t||a&&!n)&&(r=r.toLowerCase()),n=!1):n=!1,r)}).join("")}},385(t,e,n){n.d(e,{each:()=>l,foreach:()=>c,map:()=>f});var r=n(531);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||a(t,e)||function(){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 i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,u=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){l=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(l)throw i}}}}function a(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}n(82);var l=function(t,e,n){if((0,r.isPlainObject)(t)){var a=-1;for(var u in t)if(t.hasOwnProperty(u)&&!1===e.call(null!=n?n:t[u],u,t[u],t,++a))return}else{if((0,r.isString)(t)){for(var l=t.split(""),c=0;c<l.length;c++)if(!1===e.call(null!=n?n:l[c],c,l[c],t,c))return t;return t}if(t instanceof Map){var f,s=0,d=i(t.entries());try{for(d.s();!(f=d.n()).done;){var p=o(f.value,2),v=p[0],y=p[1];if(!1===e.call(null!=n?n:y,v,y,t,s++))return t}}catch(t){d.e(t)}finally{d.f()}}else if(t instanceof Set){var m,h=0,g=i(t.values());try{for(g.s();!(m=g.n()).done;){var b=m.value;if(!1===e.call(null!=n?n:b,h,b,t,h))return t;h++}}catch(t){g.e(t)}finally{g.f()}}else if((0,r.isArrayLike)(t))for(var w=Array.from(t),S=0;S<w.length;S++)if(!1===e.call(n||w[S],S,w[S],w,S))return t}return t},c=function(t,e,n){return l(t,function(t,r,o,i){return e.apply(n||r,[r,t,o,i])},n)},f=function(t,e,n){var r=[];return l(t,function(t,o,i,a){var u=e.call(n,t,o,i,a);null!==u&&r.push(u)}),r}},82(t,e,n){n.d(e,{equals:()=>i}),n(385);var r=n(531);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n(626);var i=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return!1;var i=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===e)return!0;if(Number.isNaN(t)&&Number.isNaN(e))return!0;if(o(t)!==o(e)||null===t||null===e)return!1;if((0,r.isArray)(t)||(0,r.isObject)(t)){if(n.has(t))return n.get(t)===e;n.set(t,e)}if((0,r.isArray)(t)||(0,r.isArray)(e))return!(!(0,r.isArray)(t)||!(0,r.isArray)(e))&&t.length===e.length&&t.every(function(t,r){return i(t,e[r],n)});if((0,r.isObject)(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;if(t instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp)return t.toString()===e.toString();var a=Object.keys(t),u=Object.keys(e);return a.length===u.length&&a.every(function(r){return i(t[r],e[r],n)})}return!1},a=e[0];return e.slice(1).every(function(t){return i(a,t)})}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{default:()=>E});var o=n(531),i=n(54),a=n(385),u=n(626),l=n(260);function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=d(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function f(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||d(t)||function(){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 s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||d(t,e)||function(){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 d(t,e){if(t){if("string"==typeof t)return p(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var v=new Map,y=["longtap","dbltap"],m=new Set;function h(t,e){var n={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:e,stopPropagation:function(){n._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){n._immediateStopped=!0,n._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(n,{get:function(e,n,r){if(n in e)return Reflect.get(e,n,r);var i=t[n];return(0,o.isFunction)(i)?i.bind(t):i}})}function g(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t)||function(){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 b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var w=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],S={children:function(t,e){return e?this.find(t,":scope > ".concat(e)):Array.from(t.children)},child:function(t,e){return this.first(this.children(t,e))},find:function(t,e){if(void 0===e&&(e=t,t=document),e instanceof Element&&(e=[e]),(0,o.isArrayLike)(e))return(0,a.map)(Array.from(e),function(e,n){return n instanceof Element&&(t===n||t.contains(n))?n:null});try{return Array.from(t.querySelectorAll(e))}catch(t){return[]}},findOne:function(t,e){var n;return null!==(n=this.find(t,e)[0])&&void 0!==n?n:null},findByData:function(t,e,n){if(void 0===n)return this.find(t,"[data-".concat(e,"]"));var r=CSS.escape(n+"");return this.find(t,"[data-".concat(e,'="').concat(r,'"]'))},findOneByData:function(t,e,n){var r;return null!==(r=this.findByData(t,e,n)[0])&&void 0!==r?r:null},addClass:function(t,e){if(!e)return t;var n=e.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var e;t instanceof Element&&(e=t.classList).add.apply(e,g(n))}),t},removeClass:function(t,e){if(!e)return t;var n=e.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var e;t instanceof Element&&(e=t.classList).remove.apply(e,g(n))}),t},toggleClass:function(t,e,n){return(0,a.foreach)(e.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(e){return t.classList.toggle(e,n)}),t},hasClass:function(t,e){if(!e)return!1;var n=!0;return(0,a.foreach)(e.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(e){if(!(0,u.inArray)(e,Array.from(t.classList)))return n=!1,!1}),n},append:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(0,a.foreach)(r,function(n){(0,o.isString)(n)&&(n=e.create(n)),n&&t.append(n)}),t},prepend:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(0,a.foreach)([].concat(r).reverse(),function(n){(0,o.isString)(n)&&(n=e.create(n)),n&&t.prepend(n)}),t},remove:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(e){e instanceof Element?e.remove():e instanceof NodeList||(0,o.isArray)(e)?Array.from(e).forEach(function(t){return t.remove()}):t.remove(t.find(e))})},closest:function(t,e){if(e instanceof Element){if(t===e)return t;for(var n=t.parentElement;n;){if(n===e)return n;n=n.parentElement}return null}return void 0===e?t:t.closest(e)},next:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.nextElementSibling;return e?n&&n.matches(e)?n:null:n},prev:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.previousElementSibling;return e?n&&n.matches(e)?n:null:n},nextAll:function(t,e){for(var n=[],r=t.nextElementSibling;r;)(void 0===e||r.matches(e))&&n.push(r),r=r.nextElementSibling;return n},prevAll:function(t,e){for(var n=[],r=t.previousElementSibling;r;)(void 0===e||r.matches(e))&&n.push(r),r=r.previousElementSibling;return n},index:function(t,e){return this.prevAll(t,e).length},nextUntil:function(t,e){var n=!1,r=[];e instanceof Element&&(n=!0);for(var o=t.nextElementSibling;o&&!(n?o===e:o.matches(e));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,e){var n=!1,r=[];e instanceof Element&&(n=!0);for(var o=t.previousElementSibling;o&&!(n?o===e:o.matches(e));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,e){return e.isConnected||t.parentNode.insertBefore(e,t),this.append(e,t),t},attr:function(t,e,n){return void 0===n?t.getAttribute(e):(null===n?t.removeAttribute(e):t.setAttribute(e,n),t)},prop:function(t,e,n){return void 0===n?t[e]:(t[e]=n,t)},html:function(t,e){return void 0===e?t.innerHTML:(t.innerHTML=e,t)},text:function(t,e){return void 0===e?t.innerText:(t.innerText=e,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var e;e=(0,o.isFunction)(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",e)}return t.style.display="none",t},show:function(t){var e=this.data(t,"__display__");return void 0===e?t.style.removeProperty("display"):(t.style.display=e,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,e,n){var r=this;if(void 0===e&&void 0===n)return t.dataset;if((0,o.isPlainObject)(e))return(0,a.each)(e,function(e,n){return r.data(t,e,n)}),t;var u=/^data-/.test(e+""),l=(0,i.camelCase)(u?(e+"").replace(/^data-/,""):e+"");return void 0===n?t.dataset[l]:null===n?(delete t.dataset[l],t):(t.dataset[l]=n,t)},removeData:function(t,e){return this.data(t,e,null)},css:function(t,e,n){var r=this;if((0,o.isString)(e)){var l=e.startsWith("--")?e:(0,i.camelCase)(e);if(void 0===n){if(window.getComputedStyle){var c=window.getComputedStyle(t,null);return c.getPropertyValue(e)||c[(0,i.camelCase)(e)]||""}return t.style[(0,i.camelCase)(e)]||""}l.startsWith("--")?t.style.setProperty(l,String(n)):("number"!=typeof n||(0,u.inArray)(l,w)||(n+="px"),t.style[l]=n)}else(0,a.each)(e,function(e,n){r.css(t,e,n)});return t},closestFind:function(t,e,n){var r=this.closest(t,e);return r?this.find(r,n):[]},closestFindOne:function(t,e,n){var r=this.closest(t,e);return r?this.findOne(r,n):null},first:function(t){var e;return t instanceof Element?t:null!==(e=Array.from(t)[0])&&void 0!==e?e:null},last:function(t){var e;if(t instanceof Element)return t;var n=Array.from(t);return null!==(e=n[n.length-1])&&void 0!==e?e:null},create:function(t){if(!(0,o.isString)(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var e=document.createElement("template");e.innerHTML=t.trim();var n=e.content;return 1===n.childElementCount&&1===n.children.length?n.firstElementChild:n.cloneNode(!0)},eq:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(e)>=t.length?null:(e<0&&(e=t.length+e),t[e])},after:function(t,e){return t.parentElement?((0,o.isString)(e)&&(e=this.create(e)),t.parentElement.insertBefore(e,t.nextElementSibling)):null},before:function(t,e){return t.parentElement?((0,o.isString)(e)&&(e=this.create(e)),t.parentElement.insertBefore(e,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,e){var n=t instanceof Element?[t]:Array.from(t),r=(0,o.isString)(e);return n.filter(function(t){return r?!t.matches(e):t!==e})},collide:function(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.x<r.x+r.width&&n.x+n.width>r.x&&n.y<r.y+r.height&&n.y+n.height>r.y},matches:function(t,e){return!!t&&(e instanceof Element?e===t:t.matches(e))},replaceChild:function(t,e,n){return t.replaceChild(e,n)},replaceChildren:function(t){for(var e=this,n=[],r=arguments.length,i=new Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];return(0,a.foreach)(i,function(t){(0,o.isString)(t)&&(t=e.create(t)),n.push(t)}),t.replaceChildren.apply(t,n),t},offset:function(t){if((0,o.isWindow)(t))return{top:t.scrollY,left:t.scrollX};if((0,o.isDocument)(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var e=t.getBoundingClientRect(),n=this.offset(window);return{top:e.top+n.top,left:e.left+n.left}},isEditable:function(t){var e;return 3===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&((0,u.inArray)(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,e,n,r,i){return(0,o.isFunction)(n)&&(i=r,r=n,n=null),(0,a.foreach)(e.split(" "),function(e){var d=s(e.split("."),2),p=d[0],g=d[1],b=function(e){if(!e.cancelBubble){var n,r=function(t,e){for(var n=[],r=3===t.nodeType?t.parentNode:t;r&&(n.push(r),r!==e);)r=r.parentNode;return n}(e.target,t),o=f(v.get(t)),i=c(r);try{for(i.s();!(n=i.n()).done;){var a,u=n.value,l=!1,s=c(o);try{for(s.s();!(a=s.n()).done;){var d=a.value;if(d.event===e.type){if(d.selector){if(!u.matches(d.selector))continue}else if(u!==t)continue;var p=h(e,u);if(d.handler.call(u,p),p._immediateStopped)return;p._propagationStopped&&(l=!0)}}}catch(t){s.e(t)}finally{s.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},w=v.get(t);w||(w=[],v.set(t,w)),(0,u.inArray)(p,y)&&function(t){var e,n,r,i,a,u,c;null!=m&&m.has(t)||("longtap"===t&&(r=null,i=0,a=0,u=null,c=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){u=t.target;var e=l.default.getViewportPosition(t);i=e.x,a=e.y,r=setTimeout(function(){u.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var e=l.default.getViewportPosition(t);Math.hypot(e.x-i,e.y-a)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",c),document.addEventListener("touchcancel",c)),"dbltap"===t&&(e=0,n=null,(0,o.isTouchDevice)()&&document.addEventListener("dblclick",function(t){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()},{capture:!0}),document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-e>300)e=Date.now(),n=l.default.getViewportPosition(t);else{var o=l.default.getViewportPosition(t);Math.hypot(o.x-n.x,o.y-n.y)<=40&&r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),e=Date.now(),n=o}},{passive:!0})),m.add(t))}(p);var S=(0,a.map)(w,function(t,e){return e.event});(0,u.inArray)(p,S)||t.addEventListener(p,b,i),w.push({event:p,handler:r,selector:n,listener:b,namespace:g,options:i})}),t},off:function(t,e,n,r,i){(0,o.isFunction)(n)&&(i=r,r=n,n=null);var u=v.get(t);if(!u)return t;var l=e?e.split(" "):[void 0];return(0,a.foreach)(l,function(e){var o=s(void 0===e?[void 0,void 0]:e.split("."),2),l=o[0],c=o[1],d=void 0!==(l=l||void 0),p=void 0!==c;(0,a.foreach)(f(u).reverse(),function(e){if((!d&&!p||d&&!p&&e.event===l||!d&&p&&e.namespace===c||d&&p&&e.event===l&&e.namespace===c)&&(void 0===l||e.event===l)&&(void 0===r||e.handler===r)&&(void 0===n||e.selector===n)&&(void 0===c||e.namespace===c)&&(void 0===i||e.options===i)){var o=u.indexOf(e);-1!==o&&u.splice(o,1),(0,a.map)(u,function(t,e){return e.event===l?e:null})[0]||t.removeEventListener(e.event,e.listener,e.options)}})}),t}};const E=S;return"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=S),r})());
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.dom=n():t.dom=n()}(this,()=>(()=>{"use strict";var t={153(t,n,e){e.d(n,{default:()=>ae});var r={};e.r(r),e.d(r,{debounce:()=>m,equals:()=>s,flatten:()=>v,noop:()=>p,sizeOf:()=>d,strParseFloat:()=>y,throttle:()=>h});var o={};e.r(o),e.d(o,{clone:()=>O,each:()=>E,extend:()=>x,foreach:()=>A,map:()=>C,merge:()=>P,reduce:()=>j});var i={};e.r(i),e.d(i,{dec2hex:()=>N,floorTo:()=>L,hex2dec:()=>D,max:()=>I,min:()=>_,plancher:()=>M,round:()=>T});var a={};e.r(a),e.d(a,{arrayDiff:()=>F,arrayUnique:()=>X,array_diff:()=>q,array_unique:()=>Y,inArray:()=>R,indexOf:()=>B,lastIndexOf:()=>U,range:()=>z});var u={};e.r(u),e.d(u,{isArray:()=>nt,isArrayLike:()=>tt,isBool:()=>K,isBoolean:()=>J,isDate:()=>et,isDocument:()=>st,isDomElement:()=>pt,isEvent:()=>rt,isEventSupported:()=>lt,isFloat:()=>at,isFunction:()=>G,isInt:()=>it,isInteger:()=>ot,isObject:()=>H,isPlainObject:()=>Z,isScalar:()=>ut,isString:()=>V,isTouchDevice:()=>ct,isUndefined:()=>Q,isWindow:()=>ft});var l={};e.r(l),e.d(l,{addUrlParam:()=>Rt,br2nl:()=>wt,camelCase:()=>Wt,compareMixAlphaDigits:()=>Jt,decodeHtml:()=>Bt,escapeRegex:()=>zt,f:()=>Vt,format:()=>$t,formatSize:()=>Zt,hex2rgb:()=>kt,hextorgb:()=>Nt,hilite:()=>Gt,htmlquotes:()=>Ut,htmlsimplequotes:()=>Xt,insert:()=>xt,insertTag:()=>Ct,lcfirst:()=>At,ltrim:()=>ht,nl2br:()=>St,noAccent:()=>bt,numberFormat:()=>Tt,pad:()=>Mt,parse_url:()=>Dt,repeat:()=>Yt,reverse:()=>Ot,rgb2hex:()=>_t,rgbtohex:()=>It,rtrim:()=>mt,stripMultipleSpaces:()=>gt,stripTags:()=>Ft,substringIndex:()=>jt,thousandSeparator:()=>Pt,toCssClassName:()=>Ht,toPrice:()=>Lt,toUrl:()=>qt,trim:()=>yt,ucfirst:()=>Et});var c={};function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}e.r(c),e.d(c,{rand:()=>on,randAlpha:()=>Qt,randAlphaCs:()=>tn,randAlphaNum:()=>nn,randAlphaNumCs:()=>en,randNum:()=>rn,uniqid:()=>an});var s=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)return!1;var r=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(f(t)!==f(n)||null===t||null===n)return!1;if(nt(t)||H(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if(nt(t)||nt(n))return!(!nt(t)||!nt(n))&&t.length===n.length&&t.every(function(t,o){return r(t,n[o],e)});if(H(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(n))return!1;if(t instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp)return t.toString()===n.toString();var o=Object.keys(t),i=Object.keys(n);return o.length===i.length&&o.every(function(o){return r(t[o],n[o],e)})}return!1},o=n[0];return n.slice(1).every(function(t){return r(o,t)})},p=function(){},d=function(t){return C(t,p).length},v=function(t){return H(t)||nt(t)?[].concat.apply([],C(t,function(t,n){return v(n)})):t},y=function(t){if(!t)return 0;var n=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(n)?0:n},h=function(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=null,a=0;return function(){for(var u=this,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var s=Date.now();a||e||(a=s);var p=n-(s-a);p<=0||p>n?(a=s,t.apply(o||this,c)):!i&&r&&(i=setTimeout(function(){i=null,a=e?Date.now():0,t.apply(o||u,c)},p))}},m=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=null,i=0;return function(){for(var a=this,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];var f=Date.now();e&&(i||(i=f,t.apply(r||this,l))),clearTimeout(o),o=null,o=setTimeout(function(){i=f,clearTimeout(o),o=null,t.apply(r||a,l)},n)}};function g(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||w(t,n)||function(){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 b(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=w(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function w(t,n){if(t){if("string"==typeof t)return S(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?S(t,n):void 0}}function S(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var E=function(t,n,e){if(Z(t)){var r=-1;for(var o in t)if(t.hasOwnProperty(o)&&!1===n.call(null!=e?e:t[o],o,t[o],t,++r))return}else{if(V(t)){for(var i=t.split(""),a=0;a<i.length;a++)if(!1===n.call(null!=e?e:i[a],a,i[a],t,a))return t;return t}if(t instanceof Map){var u,l=0,c=b(t.entries());try{for(c.s();!(u=c.n()).done;){var f=g(u.value,2),s=f[0],p=f[1];if(!1===n.call(null!=e?e:p,s,p,t,l++))return t}}catch(t){c.e(t)}finally{c.f()}}else if(t instanceof Set){var d,v=0,y=b(t.values());try{for(y.s();!(d=y.n()).done;){var h=d.value;if(!1===n.call(null!=e?e:h,v,h,t,v))return t;v++}}catch(t){y.e(t)}finally{y.f()}}else if(tt(t))for(var m=Array.from(t),w=0;w<m.length;w++)if(!1===n.call(e||m[w],w,m[w],m,w))return t}return t},A=function(t,n,e){return E(t,function(t,r,o,i){return n.apply(e||r,[r,t,o,i])},e)},C=function(t,n,e){var r=[];return E(t,function(t,o,i,a){var u=n.call(e,t,o,i,a);null!==u&&r.push(u)}),r},j=function(t,n,e){var r=!Q(e);if(!d(t)&&!r)throw new Error("Nothing to reduce and no initial value");var o=r?e:C(t,function(t,n,e,r){return 0===r?n:null})[0];return E(t,function(t,e,i,a){(0!==a||r)&&(o=n(o,e,t,a,i))}),o},x=function(){for(var t=!1,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];if(J(e[0])&&(t=e.shift()),e.length<2||Q(e[0])||null===e[0])return e[0];var o=e[0];return H(o)||(e[0]=o={}),A(e.slice(1),function(n){if(H(n))for(var e in n)t&&Z(n[e])?o[e]=x(!0,{},o[e],n[e]):o[e]=n[e]}),o},O=function(t){if(!H(t)&&!nt(t)||ft(t))return t;var n=H(t)?{}:[];return E(t,function(t,e){H(e)?n[t]=O(e):n[t]=e}),n},P=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=C(t,function(t,n){return n});E(n,function(t,n){e.push(n)});for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return o.length?P.apply(void 0,[e].concat(o)):e},T=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(t*Math.pow(10,n))/Math.pow(10,n)},L=function(t,n){if(n<=0)throw new Error("Precision must be greater than 0");return T(Math.floor(t/n)*n,6)},M=L,_=function(t,n){return k(t,n=G(n)?n:function(t,n){return t<n?-1:1})},I=function(t,n){return k(t,n=G(n)?n:function(t,n){return t>n?-1:1})};function k(t,n){var e;return E(t,function(t,r,o,i){e=0===i||n.call(null,e,r)>0?r:e}),e}var N=function(t){return t.toString(16)},D=function(t){t=Ot(t+"").toUpperCase();var n=0;return E(t,function(t,e){var r="0123456789ABCDEF".indexOf(e);if(-1===r)return n=0,!1;n+=r*Math.pow(2,4*t)}),n},R=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;return E(n,function(n,i){if(n>=e)if(r){if(i===t)return o=!0,!1}else{if(H(t)&&H(i))return o=s(i,t),!1;if(nt(t)&&H(i))return o=s(i,t),!1;if(i==t)return o=!0,!1}}),o},B=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=V(t)?C(t,function(t,n){return n}):t;for(e=e<0?Math.ceil(e)+r.length:Math.floor(e);e<r.length;e++)if(e in r&&r[e]===n)return e;return-1},U=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=V(t)?C(t,function(t,n){return n}):t;for(e=e<0?r.length+Math.ceil(e):Math.floor(e);e>=0;e--)if(e in r&&r[e]===n)return e;return-1},X=function(t){return t.filter(function(t,n,e){return n===B(e,t)})},Y=X,F=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!R(t,n,0,e)})},q=F,z=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=T(t),e=T(e);var r=[];if(Q(n)||t<1||0===e||t<Math.abs(e))return r;var o=t*e;if(V(n)){n=n.charCodeAt(0);for(var i=0;e>0?i<o:i>o;i+=e)r.push(String.fromCharCode(n+i))}else if(ot(n))for(var a=0;e>0?a<o:a>o;a+=e)r.push(n+a);return r};function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}var $,V=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},H=function(t){return!!t&&!nt(t)&&"object"===W(t)},G=function(t){return!!t&&"function"==typeof t},Z=function(t){return!1!==H(t)&&(void 0===t.constructor||!1!==H(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},J=function(t){return!0===t||!1===t},K=J,Q=function(t){return void 0===t},tt=function(t){return!!t&&!V(t)&&!G(t)&&it(t.length)&&Number.isFinite(t.length)},nt=function(t){return Array.isArray(t)},et=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},rt=function(t){return H(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},ot=function(t){return/^[-+]?\d+$/.test(t+"")},it=ot,at=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},ut=function(t){var n=W(t);return null===t||R(n,["string","number","bigint","symbol","boolean"])},lt=($={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var n=document.createElement($[t]||"div"),e=(t="on"+t)in n;return n=null,e}),ct=function(){return lt("touchstart")},ft=function(t){return!!t&&t===t.window},st=function(t){return!!t&&9===t.nodeType},pt=function(t){return H(t)&&1===t.nodeType&&!Z(t)};function dt(t){return function(t){if(Array.isArray(t))return vt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return vt(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?vt(t,n):void 0}}(t)||function(){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 vt(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var yt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return ht(mt(t,n),n)},ht=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},mt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},gt=function(t){return t.trim().replace(/ +/g," ")},bt=function(t){return t.replace(/[àäâ]/g,"a").replace(/[èéêë]/g,"e").replace(/[îïí]/g,"i").replace(/[öô]/g,"o").replace(/[üù]/g,"u").replace(/ç/g,"c").replace(/ÿ/g,"y").replace(/[ÀÄÂ]/g,"A").replace(/[ÈÉÊË]/g,"E").replace(/[ÎÏÍ]/g,"I").replace(/[ÖÔ]/g,"O").replace(/[ÜÙ]/g,"U").replace(/Ç/g,"C").replace(/Ÿ/g,"Y")},wt=function(t){return t.split(/<br\s*\/*>/).join("\n")},St=function(t){return t.split("\n").join("<br>")},Et=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},At=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Ct=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o="<".concat(n,">"),i="</".concat(n,">");return["br","hr","img","link","input"].includes(n)&&(o="<".concat(n,"/>"),i=""),t.slice(0,e)+o+t.slice(e,e+r)+i+t.slice(e+r)},jt=function(t,n,e){var r=(t+"").split(n);return e>0?r.splice(e,r.length-e):e<0&&r.splice(0,r.length+e),r.join(n)},xt=function(t,n,e){return e>=t.length?t:dt(t).reduce(function(t,r,o){return o>0&&o%e===0?t+n+r:t+r},"")},Ot=function(t){for(var n=[],e=0;e<t.length;e++)n.unshift(t[e]);return n.join("")},Pt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(Q(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var r=Math[t>=1e3?"floor":"ceil"](t)+"",o=Ot(xt(Ot(r),Ot(n),3));return t.indexOf(".")>0?o+e+jt(t,".",-1):o}return(t+"").replace(".",e)},Tt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=T(parseFloat(t.replace(",",".")),n)+"",0===n)return Pt(t,r,o);var i=t.lastIndexOf(".");if(-1===i)return!0===e&&(t+=o+Yt("0",n)),Pt(t,r,o);var a=t.slice(i+1).length;return Pt(n>a?t+"0".repeat(n-a):t.slice(0,i+1+n),r,o)},Lt=Tt,Mt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return Q(n)||t.length>=n||!R(r,["left","right"])?t:"left"===r?e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)+t:t+e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)},_t=function(t,n,e){return nt(t)?_t.apply(void 0,dt(t)):ot(t)&&ot(n)&&ot(e)?[Mt(N(parseInt(t)),2,"0").toUpperCase(),Mt(N(parseInt(n)),2,"0").toUpperCase(),Mt(N(parseInt(e)),2,"0").toUpperCase()].join(""):""},It=_t,kt=function(t){if(!V(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=C(t.slice(-3),function(t,n){return n+""+n}).join(""));for(var n=0;n<t.length;n++)if(-1==="0123456789ABCDEF".indexOf(t[n]))return[];return C(xt(t,",",2).split(","),function(t,n){return D(n)})},Nt=kt,Dt=function(t){for(var n=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],e=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},o=14;o--;)e[o]&&(r[n[o]]=e[o]);return delete r.source,r},Rt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Z(n))return E(n,function(n,e){t=Rt(t,n,e)}),t;var r,o=Dt(t),i="";(r=t.indexOf("#"))>-1&&(i=t.slice(r),t=t.slice(0,r));var a=encodeURIComponent(n),u=null===e?"":encodeURIComponent(e);if(!o.query)return t+"?"+a+"="+u+i;for(var l=o.query.split("&"),c=!1,f=0;f<l.length;f++)if(l[f].startsWith(a+"=")){l[f]=a+"="+u,c=!0;break}return c||l.push(a+"="+u),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+l.join("&")+i:(o.host||"")+o.path+"?"+l.join("&")+i},Bt=function(t){return V(t)?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):""},Ut=function(t){return V(t)?t.replace(/"/g,""").replace(/'/g,"'"):""},Xt=function(t){return V(t)?t.replace(/'/g,"'"):""},Yt=function(t,n){return V(t)&&at(n)?new Array(Math.floor(n)+1).join(t):""},Ft=function(t,n){if(V(n)){for(var e=new RegExp("<".concat(n,"[^>]*>(.*?)</").concat(n,">|<").concat(n,"[^>]*/>"),"ig");e.test(t);)t=t.replace(e,"$1");return t}return t.replace(/(<([^>]+)>)/gi,"")},qt=function(t){return yt(bt(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},zt=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},Wt=function(t){if(!t)return"";var n="",e=!1,r=!1,o=!1;t=yt(t),t=yt(t,"_"),t=yt(t,"-");var i=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},a=function(t){return"-"===t||"_"===t||" "===t};return C(t,function(t,u){return r=a(n),o=i(n),n=u,a(u)?null:(r?(u=u.toUpperCase(),e=!0):i(u)?((0===t||o&&!e)&&(u=u.toLowerCase()),e=!1):e=!1,u)}).join("")},$t=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return e.length&&E(e,function(n,e){if(V(e)){var r={};r[n]=e,e=r}E(e,function(n,e){t=t.replace(new RegExp("\\{"+n+"\\}","gm"),function(t){return Q(e)?t:e})})}),t},Vt=$t,Ht=function(t){return t.replace(/[^a-z0-9_-]/gi,function(t){var n=t.charCodeAt(0);return 32===n?"-":"__"+("000"+n.toString(16)).slice(-4)})},Gt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=Bt(t);var r,o,i=bt(t).toLowerCase().replace(/[[\]]+/g,""),a="";if(nt(n)||(n=[n]),E(n,function(t,n){n.length&&(n=Bt(n),r=bt(n).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp(zt(r),"g"),a=i.replace(o,"[".concat(r,"]")),i=a)}),!a.length)return t;var u=0,l="",c="end";return E(a,function(n,r){var o=t.charAt(u);"["===r&&"end"===c?(l+="<".concat(e,">"),c="start"):"]"===r&&"start"===c?(l+="</".concat(e,">"),c="end"):(u+=1,l+=o)}),l.replace(/</g,"<").replace(/>/g,">").replace(new RegExp("<".concat(e,">"),"g"),"<".concat(e,">")).replace(new RegExp("</".concat(e,">"),"g"),"</".concat(e,">")).replace(new RegExp("<br>","g"),"<br>")},Zt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",e=-1,r=0;do{t/=1024,e++}while(t>999);ot(t)||(r=1);var o=C(["k","M","G","T","P","E"],function(t,n){return n+"B"});return Tt(Math.max(t,0),r,!0,"",n)+" "+o[e]},Jt=function(t,n){if(t===n)return 0;if(ot(t)&&ot(n))return Math.sign(t-n);for(var e="",r=0;r<Math.min(t.length,n.length)&&t.charAt(r)===n.charAt(r)&&!ot(t);r++)e+=t.charAt(r);t=t.slice(e.length),n=n.slice(e.length);var o="",i=null;E(t,function(t,n){if(o)return n>="0"&&n<="9"&&(o+=n,!0);i=t,n>="0"&&n<="9"&&(o+=n)});var a="",u=null;return E(n,function(t,n){if(a)return n>="0"&&n<="9"&&(a+=n,!0);u=t,n>="0"&&n<="9"&&(a+=n)}),o.length&&a.length&&i===u&&t.substring(0,i)===n.substring(0,u)?Math.sign(o-a):t>n?1:-1};A(Object.keys(l),function(t){var n=l[t],e=String.prototype,r=e[t];e[t]=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return r&&e.length===r.length?r.apply(this,e):n.apply(void 0,[this].concat(e))}});var Kt,Qt=function(t){return on("abcdefghijklmnopqrstuvwxyz".split(""),t)},tn=function(t){return on("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},nn=function(t){return on("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},en=function(t){return on("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},rn=function(t){return on("0123456789".split(""),t)},on=function(t,n){for(var e="",r=0;r<n;r++)e+=t[Math.floor(1e3*Math.random())%t.length];return e},an=(Kt=0,function(){return Kt++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(Kt.toString(36),"_").concat(nn(5))});function un(t){return un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(t)}function ln(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,cn(r.key),r)}}function cn(t){var n=function(t){if("object"!=un(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=un(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==un(n)?n:n+""}function fn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}var sn=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=fn(t,this,pn).call(this,n);var r={left:0,top:0};if(e instanceof Element){var o=e.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=fn(t,this,pn).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=fn(t,this,pn).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&ln(n.prototype,null),e&&ln(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function pn(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const dn=sn;function vn(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=mn(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function yn(t){return function(t){if(Array.isArray(t))return gn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||mn(t)||function(){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 hn(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||mn(t,n)||function(){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 mn(t,n){if(t){if("string"==typeof t)return gn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?gn(t,n):void 0}}function gn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=sn);var bn=new Map,wn=["longtap","dbltap"],Sn=new Set;function En(t,n){var e={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:n,stopPropagation:function(){e._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){e._immediateStopped=!0,e._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(e,{get:function(n,e,r){if(e in n)return Reflect.get(n,e,r);var o=t[e];return G(o)?o.bind(t):o}})}function An(t){return function(t){if(Array.isArray(t))return Cn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return Cn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Cn(t,n):void 0}}(t)||function(){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 Cn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var jn=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],xn={children:function(t,n){return n?this.find(t,":scope > ".concat(n)):Array.from(t.children)},child:function(t,n){return this.first(this.children(t,n))},find:function(t,n){if(void 0===n&&(n=t,t=document),n instanceof Element&&(n=[n]),tt(n))return C(Array.from(n),function(n,e){return e instanceof Element&&(t===e||t.contains(e))?e:null});try{return Array.from(t.querySelectorAll(n))}catch(t){return[]}},findOne:function(t,n){var e;return null!==(e=this.find(t,n)[0])&&void 0!==e?e:null},findByData:function(t,n,e){if(void 0===e)return this.find(t,"[data-".concat(n,"]"));var r=CSS.escape(e+"");return this.find(t,"[data-".concat(n,'="').concat(r,'"]'))},findOneByData:function(t,n,e){var r;return null!==(r=this.findByData(t,n,e)[0])&&void 0!==r?r:null},addClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).add.apply(n,An(e))}),t},removeClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).remove.apply(n,An(e))}),t},toggleClass:function(t,n,e){return A(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){return t.classList.toggle(n,e)}),t},hasClass:function(t,n){if(!n)return!1;var e=!0;return A(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!R(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return A(r,function(e){V(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return A([].concat(r).reverse(),function(e){V(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||nt(n)?Array.from(n).forEach(function(t){return t.remove()}):t.find(n).forEach(function(t){return t.remove()})})},closest:function(t,n){if(n instanceof Element){if(t===n)return t;for(var e=t.parentElement;e;){if(e===n)return e;e=e.parentElement}return null}return void 0===n?t:t.closest(n)},next:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.nextElementSibling;return n?e&&e.matches(n)?e:null:e},prev:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.previousElementSibling;return n?e&&e.matches(n)?e:null:e},nextAll:function(t,n){for(var e=[],r=t.nextElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.nextElementSibling;return e},prevAll:function(t,n){for(var e=[],r=t.previousElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.previousElementSibling;return e},index:function(t,n){return this.prevAll(t,n).length},nextUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.nextElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.previousElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,n){return n.isConnected||t.parentNode.insertBefore(n,t),this.append(n,t),t},attr:function(t,n,e){return void 0===e?t.getAttribute(n):(null===e?t.removeAttribute(n):t.setAttribute(n,e),t)},prop:function(t,n,e){return void 0===e?t[n]:(t[n]=e,t)},html:function(t,n){return void 0===n?t.innerHTML:(t.innerHTML=n,t)},text:function(t,n){return void 0===n?t.innerText:(t.innerText=n,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var n;n=G(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",n)}return t.style.display="none",t},show:function(t){var n=this.data(t,"__display__");return void 0===n?t.style.removeProperty("display"):(t.style.display=n,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,n,e){var r=this;if(void 0===n&&void 0===e)return t.dataset;if(Z(n))return E(n,function(n,e){return r.data(t,n,e)}),t;var o=/^data-/.test(n+""),i=Wt(o?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[i]:null===e?(delete t.dataset[i],t):(t.dataset[i]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var r=this;if(V(n)){var o=n.startsWith("--")?n:Wt(n);if(void 0===e){if(window.getComputedStyle){var i=window.getComputedStyle(t,null);return i.getPropertyValue(n)||i[Wt(n)]||""}return t.style[Wt(n)]||""}o.startsWith("--")?t.style.setProperty(o,String(e)):("number"!=typeof e||R(o,jn)||(e+="px"),t.style[o]=e)}else E(n,function(n,e){r.css(t,n,e)});return t},closestFind:function(t,n,e){var r=this.closest(t,n);return r?this.find(r,e):[]},closestFindOne:function(t,n,e){var r=this.closest(t,n);return r?this.findOne(r,e):null},first:function(t){var n;return t instanceof Element?t:null!==(n=Array.from(t)[0])&&void 0!==n?n:null},last:function(t){var n;if(t instanceof Element)return t;var e=Array.from(t);return null!==(n=e[e.length-1])&&void 0!==n?n:null},create:function(t){if(!V(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var n=document.createElement("template");n.innerHTML=t.trim();var e=n.content;return 1===e.childElementCount&&1===e.children.length?e.firstElementChild:e.cloneNode(!0)},eq:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(n)>=t.length?null:(n<0&&(n=t.length+n),t[n])},after:function(t,n){return t.parentElement?(V(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?(V(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,n){var e=t instanceof Element?[t]:Array.from(t),r=V(n);return e.filter(function(t){return r?!t.matches(n):t!==n})},collide:function(t,n){var e=t.getBoundingClientRect(),r=n.getBoundingClientRect();return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y},matches:function(t,n){return!!t&&(n instanceof Element?n===t:t.matches(n))},replaceChild:function(t,n,e){return t.replaceChild(n,e)},replaceChildren:function(t){for(var n=this,e=[],r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return A(o,function(t){V(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if(ft(t))return{top:t.scrollY,left:t.scrollX};if(st(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var n=t.getBoundingClientRect(),e=this.offset(window);return{top:n.top+e.top,left:n.left+e.left}},isEditable:function(t){var n;return 3===(null===(n=t)||void 0===n?void 0:n.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&(R(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,n,e,r,o){return G(e)&&(o=r,r=e,e=null),A(n.split(" "),function(n){var i=hn(n.split("."),2),a=i[0],u=i[1],l=function(n){if(!n.cancelBubble){var e,r=function(t,n){for(var e=[],r=3===t.nodeType?t.parentNode:t;r&&(e.push(r),r!==n);)r=r.parentNode;return e}(n.target,t),o=yn(bn.get(t)),i=vn(r);try{for(i.s();!(e=i.n()).done;){var a,u=e.value,l=!1,c=vn(o);try{for(c.s();!(a=c.n()).done;){var f=a.value;if(f.event===n.type){if(f.selector){if(!u.matches(f.selector))continue}else if(u!==t)continue;var s=En(n,u);if(f.handler.call(u,s),s._immediateStopped)return;s._propagationStopped&&(l=!0)}}}catch(t){c.e(t)}finally{c.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},c=bn.get(t);c||(c=[],bn.set(t,c)),R(a,wn)&&function(t){var n,e,r,o,i,a,u;null!=Sn&&Sn.has(t)||("longtap"===t&&(r=null,o=0,i=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=dn.getViewportPosition(t);o=n.x,i=n.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var n=dn.getViewportPosition(t);Math.hypot(n.x-o,n.y-i)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=dn.getViewportPosition(t);else{var o=dn.getViewportPosition(t);Math.hypot(o.x-e.x,o.y-e.y)<=40&&r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),n=Date.now(),e=o}},{passive:!0})),Sn.add(t))}(a);var f=C(c,function(t,n){return n.event});R(a,f)||t.addEventListener(a,l,o),c.push({event:a,handler:r,selector:e,listener:l,namespace:u,options:o})}),t},off:function(t,n,e,r,o){G(e)&&(o=r,r=e,e=null);var i=bn.get(t);if(!i)return t;var a=n?n.split(" "):[void 0];return A(a,function(n){var a=hn(void 0===n?[void 0,void 0]:n.split("."),2),u=a[0],l=a[1],c=void 0!==(u=u||void 0),f=void 0!==l;A(yn(i).reverse(),function(n){if((!c&&!f||c&&!f&&n.event===u||!c&&f&&n.namespace===l||c&&f&&n.event===u&&n.namespace===l)&&(void 0===u||n.event===u)&&(void 0===r||n.handler===r)&&(void 0===e||n.selector===e)&&(void 0===l||n.namespace===l)&&(void 0===o||n.options===o)){var a=i.indexOf(n);-1!==a&&i.splice(a,1),C(i,function(t,n){return n.event===u?n:null})[0]||t.removeEventListener(n.event,n.listener,n.options)}})}),t}};function On(t){return On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(t)}function Pn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Tn(r.key),r)}}function Tn(t){var n=function(t){if("object"!=On(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=On(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==On(n)?n:n+""}function Ln(t,n){return t.get(Mn(t,n))}function Mn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=xn);var _n=new WeakMap,In=function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,n,e){(function(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,n),n.set(t,e)}(this,_n,{})},n=[{key:"addListener",value:function(t,n,e){var r=this;if(!G(n))throw new Error("Callback must be a function.");if(!V(t))throw new Error("Events name must be a string separated by comma.");for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var u={callback:n,context:e,args:i};return E(t.split(","),function(t,n){if(!n)return!0;n=n.trim(),r.hasListener(n)?Ln(_n,r)[n].push(u):Ln(_n,r)[n]=[u]}),this}},{key:"addListenerOnce",value:function(t,n,e){for(var r=this,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return E(t.split(","),function(t,o){if(!(o=o.trim()))return!0;var a=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];n.apply(e,[o].concat(i).concat(u.slice(1))),r.removeListener(o,a)};r.addListener(o,a,e)}),this}},{key:"dispatch",value:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(!V(t))throw new Error("Events name must be a string seperated by comma.");return E(t.split(","),function(t,e){return!(e=e.trim())||(n.hasListener(e)?void E(Ln(_n,n)[e],function(t,n){n.callback.apply(n.context,[e].concat(n.args).concat(r))}):(console.warn("No listeners found for event: ".concat(e)),!0))}),this}},{key:"hasListener",value:function(t,n,e){return Q(n)?!Q(Ln(_n,this)[t]):!!C(Ln(_n,this)[t],function(t,r){return r.callback===n&&r.context===e||null}).length}},{key:"removeListener",value:function(t,n,e){var r=this;return this.hasListener(t,n,e)&&(Q(n)?Ln(_n,this)[t].splice(0):E(Ln(_n,this)[t],function(n){return Ln(_n,r)[t].splice(n,1),delete Ln(_n,r)[t],!1})),this}},{key:"getListeners",value:function(t){return t?Ln(_n,this)[t]||[]:Ln(_n,this)}},{key:"reset",value:function(){var t,n;n={},(t=_n).set(Mn(t,this),n)}}],n&&Pn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(),kn=new In;function Nn(t){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nn(t)}function Dn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Rn(r.key),r)}}function Rn(t){var n=function(t){if("object"!=Nn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Nn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Nn(n)?n:n+""}function Bn(t,n,e){Un(t,n),n.set(t,e)}function Un(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xn(t,n){return t.get(Fn(t,n))}function Yn(t,n,e){return t.set(Fn(t,n),e),e}function Fn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=kn);var qn=new WeakMap,zn=new WeakMap,Wn=new WeakSet,$n=function(){return t=function t(n,e){var r;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),Un(this,r=Wn),r.add(this),Bn(this,qn,void 0),Bn(this,zn,void 0),Fn(Wn,this,Vn).call(this,n),this.setLang(e)},n=[{key:"translate",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";if(n=void 0===n?this.getLang():n,void 0!==Xn(zn,this)[e]&&void 0!==Xn(zn,this)[e][n]&&void 0!==Xn(zn,this)[e][n][t]){var r=Xn(zn,this)[e][n][t];return Fn(Wn,this,Gn).call(this,r)}return"en"!==n?this.translate(t,"en",e):t}},{key:"translateFrom",value:function(t,n,e){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var i=null===(r=Xn(zn,this))||void 0===r?void 0:r[o];if(!i)return t;var a=null==i?void 0:i[n],u=null==i?void 0:i[e];if(!a||!u)return t;var l=Fn(Wn,this,Hn).call(this,a,t);if(!l)return t;var c=u[l],f=Fn(Wn,this,Gn).call(this,c);return null!=f?f:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return Xn(qn,this)}},{key:"setLang",value:function(t){t||("undefined"!=typeof navigator&&navigator.language?t=navigator.language:"undefined"!=typeof process&&process.env&&(t=process.env.LANG||process.env.LC_ALL||process.env.LC_MESSAGES)),Yn(qn,this,(t||"en").trim().toLowerCase().slice(0,2))}}],n&&Dn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function Vn(t){var n={},e={};E(t,function(t,r){E(r,function(r,o){Z(o)?(void 0===n[t]&&(n[t]={}),n[t][r]=o):(void 0===e[t]&&(e[t]={}),e[t][r]=o)})}),Yn(zn,this,x(!0,n,{core:x({},n.core||{},e)}))}function Hn(t,n){for(var e in t)if(Fn(Wn,this,Gn).call(this,t[e])===n)return e;return null}function Gn(t){return G(t)?t():t}function Zn(t){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(t)}function Jn(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function Kn(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Jn(Object(e),!0).forEach(function(n){Qn(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Jn(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Qn(t,n,e){return(n=function(t){var n=function(t){if("object"!=Zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Zn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Zn(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function te(t){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te(t)}function ne(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ee(r.key),r)}}function ee(t){var n=function(t){if("object"!=te(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=te(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==te(n)?n:n+""}function re(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=$n),Kn(Kn(Kn(Kn(Kn(Kn(Kn({},l),a),o),u),c),i),r);var oe=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=re(t,this,ie).call(this,n);var r={left:0,top:0};if(e instanceof Element){var o=e.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=re(t,this,ie).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=re(t,this,ie).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&ne(n.prototype,null),e&&ne(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function ie(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const ae=oe;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=oe)},626(t,n,e){e.d(n,{inArray:()=>a});var r=e(385),o=e(531),i=(e(245),e(82)),a=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=!1;return(0,r.each)(n,function(n,r){if(n>=e)if(a){if(r===t)return u=!0,!1}else{if((0,o.isObject)(t)&&(0,o.isObject)(r))return u=(0,i.equals)(r,t),!1;if((0,o.isArray)(t)&&(0,o.isObject)(r))return u=(0,i.equals)(r,t),!1;if(r==t)return u=!0,!1}}),u}},531(t,n,e){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}e.d(n,{isArray:()=>c,isArrayLike:()=>l,isDocument:()=>p,isFunction:()=>a,isObject:()=>i,isPlainObject:()=>u,isString:()=>o,isWindow:()=>s}),e(626);var o=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},i=function(t){return!!t&&!c(t)&&"object"===r(t)},a=function(t){return!!t&&"function"==typeof t},u=function(t){return!1!==i(t)&&(void 0===t.constructor||!1!==i(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},l=function(t){return!!t&&!o(t)&&!a(t)&&f(t.length)&&Number.isFinite(t.length)},c=function(t){return Array.isArray(t)},f=function(t){return/^[-+]?\d+$/.test(t+"")},s=function(t){return!!t&&t===t.window},p=function(t){return!!t&&9===t.nodeType}},245(t,n,e){e(385),e(531),e(54)},54(t,n,e){e.d(n,{camelCase:()=>u}),e(531),e(245),e(626);var r=e(385),o=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return i(a(t,n),n)},i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},u=function(t){if(!t)return"";var n="",e=!1,i=!1,a=!1;t=o(t),t=o(t,"_"),t=o(t,"-");var u=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},l=function(t){return"-"===t||"_"===t||" "===t};return(0,r.map)(t,function(t,r){return i=l(n),a=u(n),n=r,l(r)?null:(i?(r=r.toUpperCase(),e=!0):u(r)?((0===t||a&&!e)&&(r=r.toLowerCase()),e=!1):e=!1,r)}).join("")}},385(t,n,e){e.d(n,{each:()=>l,foreach:()=>c,map:()=>f});var r=e(531);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||a(t,n)||function(){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 i(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=a(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,u=!0,l=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){l=!0,i=t},f:function(){try{u||null==e.return||e.return()}finally{if(l)throw i}}}}function a(t,n){if(t){if("string"==typeof t)return u(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,n):void 0}}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}e(82);var l=function(t,n,e){if((0,r.isPlainObject)(t)){var a=-1;for(var u in t)if(t.hasOwnProperty(u)&&!1===n.call(null!=e?e:t[u],u,t[u],t,++a))return}else{if((0,r.isString)(t)){for(var l=t.split(""),c=0;c<l.length;c++)if(!1===n.call(null!=e?e:l[c],c,l[c],t,c))return t;return t}if(t instanceof Map){var f,s=0,p=i(t.entries());try{for(p.s();!(f=p.n()).done;){var d=o(f.value,2),v=d[0],y=d[1];if(!1===n.call(null!=e?e:y,v,y,t,s++))return t}}catch(t){p.e(t)}finally{p.f()}}else if(t instanceof Set){var h,m=0,g=i(t.values());try{for(g.s();!(h=g.n()).done;){var b=h.value;if(!1===n.call(null!=e?e:b,m,b,t,m))return t;m++}}catch(t){g.e(t)}finally{g.f()}}else if((0,r.isArrayLike)(t))for(var w=Array.from(t),S=0;S<w.length;S++)if(!1===n.call(e||w[S],S,w[S],w,S))return t}return t},c=function(t,n,e){return l(t,function(t,r,o,i){return n.apply(e||r,[r,t,o,i])},e)},f=function(t,n,e){var r=[];return l(t,function(t,o,i,a){var u=n.call(e,t,o,i,a);null!==u&&r.push(u)}),r}},82(t,n,e){e.d(n,{equals:()=>i}),e(385);var r=e(531);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}e(626);var i=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)return!1;var i=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(o(t)!==o(n)||null===t||null===n)return!1;if((0,r.isArray)(t)||(0,r.isObject)(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if((0,r.isArray)(t)||(0,r.isArray)(n))return!(!(0,r.isArray)(t)||!(0,r.isArray)(n))&&t.length===n.length&&t.every(function(t,r){return i(t,n[r],e)});if((0,r.isObject)(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(n))return!1;if(t instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp)return t.toString()===n.toString();var a=Object.keys(t),u=Object.keys(n);return a.length===u.length&&a.every(function(r){return i(t[r],n[r],e)})}return!1},a=n[0];return n.slice(1).every(function(t){return i(a,t)})}}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};e.r(r),e.d(r,{default:()=>E});var o=e(531),i=e(54),a=e(385),u=e(626),l=e(153);function c(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=p(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function f(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){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 s(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||p(t,n)||function(){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 p(t,n){if(t){if("string"==typeof t)return d(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,n):void 0}}function d(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var v=new Map,y=["longtap","dbltap"],h=new Set;function m(t,n){var e={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:n,stopPropagation:function(){e._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){e._immediateStopped=!0,e._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(e,{get:function(n,e,r){if(e in n)return Reflect.get(n,e,r);var i=t[e];return(0,o.isFunction)(i)?i.bind(t):i}})}function g(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return b(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?b(t,n):void 0}}(t)||function(){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 b(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var w=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],S={children:function(t,n){return n?this.find(t,":scope > ".concat(n)):Array.from(t.children)},child:function(t,n){return this.first(this.children(t,n))},find:function(t,n){if(void 0===n&&(n=t,t=document),n instanceof Element&&(n=[n]),(0,o.isArrayLike)(n))return(0,a.map)(Array.from(n),function(n,e){return e instanceof Element&&(t===e||t.contains(e))?e:null});try{return Array.from(t.querySelectorAll(n))}catch(t){return[]}},findOne:function(t,n){var e;return null!==(e=this.find(t,n)[0])&&void 0!==e?e:null},findByData:function(t,n,e){if(void 0===e)return this.find(t,"[data-".concat(n,"]"));var r=CSS.escape(e+"");return this.find(t,"[data-".concat(n,'="').concat(r,'"]'))},findOneByData:function(t,n,e){var r;return null!==(r=this.findByData(t,n,e)[0])&&void 0!==r?r:null},addClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).add.apply(n,g(e))}),t},removeClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).remove.apply(n,g(e))}),t},toggleClass:function(t,n,e){return(0,a.foreach)(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){return t.classList.toggle(n,e)}),t},hasClass:function(t,n){if(!n)return!1;var e=!0;return(0,a.foreach)(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!(0,u.inArray)(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return(0,a.foreach)(r,function(e){(0,o.isString)(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return(0,a.foreach)([].concat(r).reverse(),function(e){(0,o.isString)(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||(0,o.isArray)(n)?Array.from(n).forEach(function(t){return t.remove()}):t.find(n).forEach(function(t){return t.remove()})})},closest:function(t,n){if(n instanceof Element){if(t===n)return t;for(var e=t.parentElement;e;){if(e===n)return e;e=e.parentElement}return null}return void 0===n?t:t.closest(n)},next:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.nextElementSibling;return n?e&&e.matches(n)?e:null:e},prev:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.previousElementSibling;return n?e&&e.matches(n)?e:null:e},nextAll:function(t,n){for(var e=[],r=t.nextElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.nextElementSibling;return e},prevAll:function(t,n){for(var e=[],r=t.previousElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.previousElementSibling;return e},index:function(t,n){return this.prevAll(t,n).length},nextUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.nextElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.previousElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,n){return n.isConnected||t.parentNode.insertBefore(n,t),this.append(n,t),t},attr:function(t,n,e){return void 0===e?t.getAttribute(n):(null===e?t.removeAttribute(n):t.setAttribute(n,e),t)},prop:function(t,n,e){return void 0===e?t[n]:(t[n]=e,t)},html:function(t,n){return void 0===n?t.innerHTML:(t.innerHTML=n,t)},text:function(t,n){return void 0===n?t.innerText:(t.innerText=n,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var n;n=(0,o.isFunction)(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",n)}return t.style.display="none",t},show:function(t){var n=this.data(t,"__display__");return void 0===n?t.style.removeProperty("display"):(t.style.display=n,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,n,e){var r=this;if(void 0===n&&void 0===e)return t.dataset;if((0,o.isPlainObject)(n))return(0,a.each)(n,function(n,e){return r.data(t,n,e)}),t;var u=/^data-/.test(n+""),l=(0,i.camelCase)(u?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[l]:null===e?(delete t.dataset[l],t):(t.dataset[l]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var r=this;if((0,o.isString)(n)){var l=n.startsWith("--")?n:(0,i.camelCase)(n);if(void 0===e){if(window.getComputedStyle){var c=window.getComputedStyle(t,null);return c.getPropertyValue(n)||c[(0,i.camelCase)(n)]||""}return t.style[(0,i.camelCase)(n)]||""}l.startsWith("--")?t.style.setProperty(l,String(e)):("number"!=typeof e||(0,u.inArray)(l,w)||(e+="px"),t.style[l]=e)}else(0,a.each)(n,function(n,e){r.css(t,n,e)});return t},closestFind:function(t,n,e){var r=this.closest(t,n);return r?this.find(r,e):[]},closestFindOne:function(t,n,e){var r=this.closest(t,n);return r?this.findOne(r,e):null},first:function(t){var n;return t instanceof Element?t:null!==(n=Array.from(t)[0])&&void 0!==n?n:null},last:function(t){var n;if(t instanceof Element)return t;var e=Array.from(t);return null!==(n=e[e.length-1])&&void 0!==n?n:null},create:function(t){if(!(0,o.isString)(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var n=document.createElement("template");n.innerHTML=t.trim();var e=n.content;return 1===e.childElementCount&&1===e.children.length?e.firstElementChild:e.cloneNode(!0)},eq:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(n)>=t.length?null:(n<0&&(n=t.length+n),t[n])},after:function(t,n){return t.parentElement?((0,o.isString)(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?((0,o.isString)(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,n){var e=t instanceof Element?[t]:Array.from(t),r=(0,o.isString)(n);return e.filter(function(t){return r?!t.matches(n):t!==n})},collide:function(t,n){var e=t.getBoundingClientRect(),r=n.getBoundingClientRect();return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y},matches:function(t,n){return!!t&&(n instanceof Element?n===t:t.matches(n))},replaceChild:function(t,n,e){return t.replaceChild(n,e)},replaceChildren:function(t){for(var n=this,e=[],r=arguments.length,i=new Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];return(0,a.foreach)(i,function(t){(0,o.isString)(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if((0,o.isWindow)(t))return{top:t.scrollY,left:t.scrollX};if((0,o.isDocument)(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var n=t.getBoundingClientRect(),e=this.offset(window);return{top:n.top+e.top,left:n.left+e.left}},isEditable:function(t){var n;return 3===(null===(n=t)||void 0===n?void 0:n.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&((0,u.inArray)(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,n,e,r,i){return(0,o.isFunction)(e)&&(i=r,r=e,e=null),(0,a.foreach)(n.split(" "),function(n){var o=s(n.split("."),2),p=o[0],d=o[1],g=function(n){if(!n.cancelBubble){var e,r=function(t,n){for(var e=[],r=3===t.nodeType?t.parentNode:t;r&&(e.push(r),r!==n);)r=r.parentNode;return e}(n.target,t),o=f(v.get(t)),i=c(r);try{for(i.s();!(e=i.n()).done;){var a,u=e.value,l=!1,s=c(o);try{for(s.s();!(a=s.n()).done;){var p=a.value;if(p.event===n.type){if(p.selector){if(!u.matches(p.selector))continue}else if(u!==t)continue;var d=m(n,u);if(p.handler.call(u,d),d._immediateStopped)return;d._propagationStopped&&(l=!0)}}}catch(t){s.e(t)}finally{s.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},b=v.get(t);b||(b=[],v.set(t,b)),(0,u.inArray)(p,y)&&function(t){var n,e,r,o,i,a,u;null!=h&&h.has(t)||("longtap"===t&&(r=null,o=0,i=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=l.default.getViewportPosition(t);o=n.x,i=n.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var n=l.default.getViewportPosition(t);Math.hypot(n.x-o,n.y-i)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=l.default.getViewportPosition(t);else{var o=l.default.getViewportPosition(t);Math.hypot(o.x-e.x,o.y-e.y)<=40&&r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),n=Date.now(),e=o}},{passive:!0})),h.add(t))}(p);var w=(0,a.map)(b,function(t,n){return n.event});(0,u.inArray)(p,w)||t.addEventListener(p,g,i),b.push({event:p,handler:r,selector:e,listener:g,namespace:d,options:i})}),t},off:function(t,n,e,r,i){(0,o.isFunction)(e)&&(i=r,r=e,e=null);var u=v.get(t);if(!u)return t;var l=n?n.split(" "):[void 0];return(0,a.foreach)(l,function(n){var o=s(void 0===n?[void 0,void 0]:n.split("."),2),l=o[0],c=o[1],p=void 0!==(l=l||void 0),d=void 0!==c;(0,a.foreach)(f(u).reverse(),function(n){if((!p&&!d||p&&!d&&n.event===l||!p&&d&&n.namespace===c||p&&d&&n.event===l&&n.namespace===c)&&(void 0===l||n.event===l)&&(void 0===r||n.handler===r)&&(void 0===e||n.selector===e)&&(void 0===c||n.namespace===c)&&(void 0===i||n.options===i)){var o=u.indexOf(n);-1!==o&&u.splice(o,1),(0,a.map)(u,function(t,n){return n.event===l?n:null})[0]||t.removeEventListener(n.event,n.listener,n.options)}})}),t}};const E=S;return"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=S),r})());
|
package/dist/umd/mouse.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mouse=t():e.mouse=t()}(this,()=>(()=>{"use strict";var e={626(e,t,o){o(385),o(531),o(245),o(82)},531(e,t,o){o.d(t,{isTouchDevice:()=>i}),o(626);var n,r=(n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){var t=document.createElement(n[e]||"div"),o=(e="on"+e)in t;return t=null,o}),i=function(){return r("touchstart")}},245(e,t,o){o(385),o(531),o(54)},54(e,t,o){o(531),o(245),o(626),o(385)},385(e,t,o){o(531),o(82)},82(e,t,o){o(385),o(531),o(626)}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{default:()=>p});var r=o(531);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function u(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,o=[{key:"getPosition",value:function(t,o){t=c(e,this,a).call(this,t);var n={left:0,top:0};if(o instanceof Element){var r=o.getBoundingClientRect();n={left:window.scrollX+r.left,top:window.scrollY+r.top}}return{x:t.pageX-n.left,y:t.pageY-n.top}}},{key:"getViewportPosition",value:function(t){return{x:(t=c(e,this,a).call(this,t)).clientX,y:t.clientY}}},{key:"getElement",value:function(t){return t=c(e,this,a).call(this,t),window.document.elementFromPoint(t.clientX,t.clientY)}}],null&&u(t.prototype,null),o&&u(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}();function a(e){var t;if(e=null!==(t=e.originalEvent)&&void 0!==t?t:e,(0,r.isTouchDevice)()){var o,n,i=(null===(o=e.changedTouches)||void 0===o?void 0:o[0])||(null===(n=e.touches)||void 0===n?void 0:n[0]);e.clientX=i.clientX,e.clientY=i.clientY,e.pageX=i.pageX,e.pageY=i.pageY}return e}const p=f;return"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=f),n})());
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.mouse=n():t.mouse=n()}(this,()=>(()=>{"use strict";var t={d:(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>oe});var e={};t.r(e),t.d(e,{debounce:()=>y,equals:()=>f,flatten:()=>v,noop:()=>s,sizeOf:()=>p,strParseFloat:()=>d,throttle:()=>h});var r={};t.r(r),t.d(r,{clone:()=>x,each:()=>S,extend:()=>C,foreach:()=>E,map:()=>A,merge:()=>O,reduce:()=>j});var o={};t.r(o),t.d(o,{dec2hex:()=>_,floorTo:()=>T,hex2dec:()=>D,max:()=>k,min:()=>L,plancher:()=>M,round:()=>P});var i={};t.r(i),t.d(i,{arrayDiff:()=>B,arrayUnique:()=>Y,array_diff:()=>q,array_unique:()=>U,inArray:()=>N,indexOf:()=>R,lastIndexOf:()=>X,range:()=>F});var a={};t.r(a),t.d(a,{isArray:()=>tt,isArrayLike:()=>Q,isBool:()=>J,isBoolean:()=>Z,isDate:()=>nt,isDocument:()=>ft,isDomElement:()=>st,isEvent:()=>et,isEventSupported:()=>ut,isFloat:()=>it,isFunction:()=>H,isInt:()=>ot,isInteger:()=>rt,isObject:()=>V,isPlainObject:()=>G,isScalar:()=>at,isString:()=>$,isTouchDevice:()=>lt,isUndefined:()=>K,isWindow:()=>ct});var u={};t.r(u),t.d(u,{addUrlParam:()=>Nt,br2nl:()=>bt,camelCase:()=>zt,compareMixAlphaDigits:()=>Zt,decodeHtml:()=>Rt,escapeRegex:()=>Ft,f:()=>$t,format:()=>Wt,formatSize:()=>Gt,hex2rgb:()=>It,hextorgb:()=>_t,hilite:()=>Ht,htmlquotes:()=>Xt,htmlsimplequotes:()=>Yt,insert:()=>Ct,insertTag:()=>At,lcfirst:()=>Et,ltrim:()=>ht,nl2br:()=>wt,noAccent:()=>gt,numberFormat:()=>Pt,pad:()=>Mt,parse_url:()=>Dt,repeat:()=>Ut,reverse:()=>xt,rgb2hex:()=>Lt,rgbtohex:()=>kt,rtrim:()=>yt,stripMultipleSpaces:()=>mt,stripTags:()=>Bt,substringIndex:()=>jt,thousandSeparator:()=>Ot,toCssClassName:()=>Vt,toPrice:()=>Tt,toUrl:()=>qt,trim:()=>dt,ucfirst:()=>St});var l={};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}t.r(l),t.d(l,{rand:()=>rn,randAlpha:()=>Kt,randAlphaCs:()=>Qt,randAlphaNum:()=>tn,randAlphaNumCs:()=>nn,randNum:()=>en,uniqid:()=>on});var f=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)return!1;var r=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(c(t)!==c(n)||null===t||null===n)return!1;if(tt(t)||V(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if(tt(t)||tt(n))return!(!tt(t)||!tt(n))&&t.length===n.length&&t.every(function(t,o){return r(t,n[o],e)});if(V(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(n))return!1;if(t instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp)return t.toString()===n.toString();var o=Object.keys(t),i=Object.keys(n);return o.length===i.length&&o.every(function(o){return r(t[o],n[o],e)})}return!1},o=n[0];return n.slice(1).every(function(t){return r(o,t)})},s=function(){},p=function(t){return A(t,s).length},v=function(t){return V(t)||tt(t)?[].concat.apply([],A(t,function(t,n){return v(n)})):t},d=function(t){if(!t)return 0;var n=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(n)?0:n},h=function(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=null,a=0;return function(){for(var u=this,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var s=Date.now();a||e||(a=s);var p=n-(s-a);p<=0||p>n?(a=s,t.apply(o||this,c)):!i&&r&&(i=setTimeout(function(){i=null,a=e?Date.now():0,t.apply(o||u,c)},p))}},y=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=null,i=0;return function(){for(var a=this,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];var f=Date.now();e&&(i||(i=f,t.apply(r||this,l))),clearTimeout(o),o=null,o=setTimeout(function(){i=f,clearTimeout(o),o=null,t.apply(r||a,l)},n)}};function m(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||b(t,n)||function(){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 g(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=b(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function b(t,n){if(t){if("string"==typeof t)return w(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?w(t,n):void 0}}function w(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var S=function(t,n,e){if(G(t)){var r=-1;for(var o in t)if(t.hasOwnProperty(o)&&!1===n.call(null!=e?e:t[o],o,t[o],t,++r))return}else{if($(t)){for(var i=t.split(""),a=0;a<i.length;a++)if(!1===n.call(null!=e?e:i[a],a,i[a],t,a))return t;return t}if(t instanceof Map){var u,l=0,c=g(t.entries());try{for(c.s();!(u=c.n()).done;){var f=m(u.value,2),s=f[0],p=f[1];if(!1===n.call(null!=e?e:p,s,p,t,l++))return t}}catch(t){c.e(t)}finally{c.f()}}else if(t instanceof Set){var v,d=0,h=g(t.values());try{for(h.s();!(v=h.n()).done;){var y=v.value;if(!1===n.call(null!=e?e:y,d,y,t,d))return t;d++}}catch(t){h.e(t)}finally{h.f()}}else if(Q(t))for(var b=Array.from(t),w=0;w<b.length;w++)if(!1===n.call(e||b[w],w,b[w],b,w))return t}return t},E=function(t,n,e){return S(t,function(t,r,o,i){return n.apply(e||r,[r,t,o,i])},e)},A=function(t,n,e){var r=[];return S(t,function(t,o,i,a){var u=n.call(e,t,o,i,a);null!==u&&r.push(u)}),r},j=function(t,n,e){var r=!K(e);if(!p(t)&&!r)throw new Error("Nothing to reduce and no initial value");var o=r?e:A(t,function(t,n,e,r){return 0===r?n:null})[0];return S(t,function(t,e,i,a){(0!==a||r)&&(o=n(o,e,t,a,i))}),o},C=function(){for(var t=!1,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];if(Z(e[0])&&(t=e.shift()),e.length<2||K(e[0])||null===e[0])return e[0];var o=e[0];return V(o)||(e[0]=o={}),E(e.slice(1),function(n){if(V(n))for(var e in n)t&&G(n[e])?o[e]=C(!0,{},o[e],n[e]):o[e]=n[e]}),o},x=function(t){if(!V(t)&&!tt(t)||ct(t))return t;var n=V(t)?{}:[];return S(t,function(t,e){V(e)?n[t]=x(e):n[t]=e}),n},O=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=A(t,function(t,n){return n});S(n,function(t,n){e.push(n)});for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return o.length?O.apply(void 0,[e].concat(o)):e},P=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(t*Math.pow(10,n))/Math.pow(10,n)},T=function(t,n){if(n<=0)throw new Error("Precision must be greater than 0");return P(Math.floor(t/n)*n,6)},M=T,L=function(t,n){return I(t,n=H(n)?n:function(t,n){return t<n?-1:1})},k=function(t,n){return I(t,n=H(n)?n:function(t,n){return t>n?-1:1})};function I(t,n){var e;return S(t,function(t,r,o,i){e=0===i||n.call(null,e,r)>0?r:e}),e}var _=function(t){return t.toString(16)},D=function(t){t=xt(t+"").toUpperCase();var n=0;return S(t,function(t,e){var r="0123456789ABCDEF".indexOf(e);if(-1===r)return n=0,!1;n+=r*Math.pow(2,4*t)}),n},N=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;return S(n,function(n,i){if(n>=e)if(r){if(i===t)return o=!0,!1}else{if(V(t)&&V(i))return o=f(i,t),!1;if(tt(t)&&V(i))return o=f(i,t),!1;if(i==t)return o=!0,!1}}),o},R=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=$(t)?A(t,function(t,n){return n}):t;for(e=e<0?Math.ceil(e)+r.length:Math.floor(e);e<r.length;e++)if(e in r&&r[e]===n)return e;return-1},X=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=$(t)?A(t,function(t,n){return n}):t;for(e=e<0?r.length+Math.ceil(e):Math.floor(e);e>=0;e--)if(e in r&&r[e]===n)return e;return-1},Y=function(t){return t.filter(function(t,n,e){return n===R(e,t)})},U=Y,B=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!N(t,n,0,e)})},q=B,F=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=P(t),e=P(e);var r=[];if(K(n)||t<1||0===e||t<Math.abs(e))return r;var o=t*e;if($(n)){n=n.charCodeAt(0);for(var i=0;e>0?i<o:i>o;i+=e)r.push(String.fromCharCode(n+i))}else if(rt(n))for(var a=0;e>0?a<o:a>o;a+=e)r.push(n+a);return r};function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}var W,$=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},V=function(t){return!!t&&!tt(t)&&"object"===z(t)},H=function(t){return!!t&&"function"==typeof t},G=function(t){return!1!==V(t)&&(void 0===t.constructor||!1!==V(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},Z=function(t){return!0===t||!1===t},J=Z,K=function(t){return void 0===t},Q=function(t){return!!t&&!$(t)&&!H(t)&&ot(t.length)&&Number.isFinite(t.length)},tt=function(t){return Array.isArray(t)},nt=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},et=function(t){return V(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},rt=function(t){return/^[-+]?\d+$/.test(t+"")},ot=rt,it=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},at=function(t){var n=z(t);return null===t||N(n,["string","number","bigint","symbol","boolean"])},ut=(W={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var n=document.createElement(W[t]||"div"),e=(t="on"+t)in n;return n=null,e}),lt=function(){return ut("touchstart")},ct=function(t){return!!t&&t===t.window},ft=function(t){return!!t&&9===t.nodeType},st=function(t){return V(t)&&1===t.nodeType&&!G(t)};function pt(t){return function(t){if(Array.isArray(t))return vt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return vt(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?vt(t,n):void 0}}(t)||function(){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 vt(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var dt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return ht(yt(t,n),n)},ht=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},yt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},mt=function(t){return t.trim().replace(/ +/g," ")},gt=function(t){return t.replace(/[àäâ]/g,"a").replace(/[èéêë]/g,"e").replace(/[îïí]/g,"i").replace(/[öô]/g,"o").replace(/[üù]/g,"u").replace(/ç/g,"c").replace(/ÿ/g,"y").replace(/[ÀÄÂ]/g,"A").replace(/[ÈÉÊË]/g,"E").replace(/[ÎÏÍ]/g,"I").replace(/[ÖÔ]/g,"O").replace(/[ÜÙ]/g,"U").replace(/Ç/g,"C").replace(/Ÿ/g,"Y")},bt=function(t){return t.split(/<br\s*\/*>/).join("\n")},wt=function(t){return t.split("\n").join("<br>")},St=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Et=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},At=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o="<".concat(n,">"),i="</".concat(n,">");return["br","hr","img","link","input"].includes(n)&&(o="<".concat(n,"/>"),i=""),t.slice(0,e)+o+t.slice(e,e+r)+i+t.slice(e+r)},jt=function(t,n,e){var r=(t+"").split(n);return e>0?r.splice(e,r.length-e):e<0&&r.splice(0,r.length+e),r.join(n)},Ct=function(t,n,e){return e>=t.length?t:pt(t).reduce(function(t,r,o){return o>0&&o%e===0?t+n+r:t+r},"")},xt=function(t){for(var n=[],e=0;e<t.length;e++)n.unshift(t[e]);return n.join("")},Ot=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(K(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var r=Math[t>=1e3?"floor":"ceil"](t)+"",o=xt(Ct(xt(r),xt(n),3));return t.indexOf(".")>0?o+e+jt(t,".",-1):o}return(t+"").replace(".",e)},Pt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=P(parseFloat(t.replace(",",".")),n)+"",0===n)return Ot(t,r,o);var i=t.lastIndexOf(".");if(-1===i)return!0===e&&(t+=o+Ut("0",n)),Ot(t,r,o);var a=t.slice(i+1).length;return Ot(n>a?t+"0".repeat(n-a):t.slice(0,i+1+n),r,o)},Tt=Pt,Mt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return K(n)||t.length>=n||!N(r,["left","right"])?t:"left"===r?e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)+t:t+e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)},Lt=function(t,n,e){return tt(t)?Lt.apply(void 0,pt(t)):rt(t)&&rt(n)&&rt(e)?[Mt(_(parseInt(t)),2,"0").toUpperCase(),Mt(_(parseInt(n)),2,"0").toUpperCase(),Mt(_(parseInt(e)),2,"0").toUpperCase()].join(""):""},kt=Lt,It=function(t){if(!$(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=A(t.slice(-3),function(t,n){return n+""+n}).join(""));for(var n=0;n<t.length;n++)if(-1==="0123456789ABCDEF".indexOf(t[n]))return[];return A(Ct(t,",",2).split(","),function(t,n){return D(n)})},_t=It,Dt=function(t){for(var n=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],e=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},o=14;o--;)e[o]&&(r[n[o]]=e[o]);return delete r.source,r},Nt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(G(n))return S(n,function(n,e){t=Nt(t,n,e)}),t;var r,o=Dt(t),i="";(r=t.indexOf("#"))>-1&&(i=t.slice(r),t=t.slice(0,r));var a=encodeURIComponent(n),u=null===e?"":encodeURIComponent(e);if(!o.query)return t+"?"+a+"="+u+i;for(var l=o.query.split("&"),c=!1,f=0;f<l.length;f++)if(l[f].startsWith(a+"=")){l[f]=a+"="+u,c=!0;break}return c||l.push(a+"="+u),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+l.join("&")+i:(o.host||"")+o.path+"?"+l.join("&")+i},Rt=function(t){return $(t)?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):""},Xt=function(t){return $(t)?t.replace(/"/g,""").replace(/'/g,"'"):""},Yt=function(t){return $(t)?t.replace(/'/g,"'"):""},Ut=function(t,n){return $(t)&&it(n)?new Array(Math.floor(n)+1).join(t):""},Bt=function(t,n){if($(n)){for(var e=new RegExp("<".concat(n,"[^>]*>(.*?)</").concat(n,">|<").concat(n,"[^>]*/>"),"ig");e.test(t);)t=t.replace(e,"$1");return t}return t.replace(/(<([^>]+)>)/gi,"")},qt=function(t){return dt(gt(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},Ft=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},zt=function(t){if(!t)return"";var n="",e=!1,r=!1,o=!1;t=dt(t),t=dt(t,"_"),t=dt(t,"-");var i=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},a=function(t){return"-"===t||"_"===t||" "===t};return A(t,function(t,u){return r=a(n),o=i(n),n=u,a(u)?null:(r?(u=u.toUpperCase(),e=!0):i(u)?((0===t||o&&!e)&&(u=u.toLowerCase()),e=!1):e=!1,u)}).join("")},Wt=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return e.length&&S(e,function(n,e){if($(e)){var r={};r[n]=e,e=r}S(e,function(n,e){t=t.replace(new RegExp("\\{"+n+"\\}","gm"),function(t){return K(e)?t:e})})}),t},$t=Wt,Vt=function(t){return t.replace(/[^a-z0-9_-]/gi,function(t){var n=t.charCodeAt(0);return 32===n?"-":"__"+("000"+n.toString(16)).slice(-4)})},Ht=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=Rt(t);var r,o,i=gt(t).toLowerCase().replace(/[[\]]+/g,""),a="";if(tt(n)||(n=[n]),S(n,function(t,n){n.length&&(n=Rt(n),r=gt(n).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp(Ft(r),"g"),a=i.replace(o,"[".concat(r,"]")),i=a)}),!a.length)return t;var u=0,l="",c="end";return S(a,function(n,r){var o=t.charAt(u);"["===r&&"end"===c?(l+="<".concat(e,">"),c="start"):"]"===r&&"start"===c?(l+="</".concat(e,">"),c="end"):(u+=1,l+=o)}),l.replace(/</g,"<").replace(/>/g,">").replace(new RegExp("<".concat(e,">"),"g"),"<".concat(e,">")).replace(new RegExp("</".concat(e,">"),"g"),"</".concat(e,">")).replace(new RegExp("<br>","g"),"<br>")},Gt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",e=-1,r=0;do{t/=1024,e++}while(t>999);rt(t)||(r=1);var o=A(["k","M","G","T","P","E"],function(t,n){return n+"B"});return Pt(Math.max(t,0),r,!0,"",n)+" "+o[e]},Zt=function(t,n){if(t===n)return 0;if(rt(t)&&rt(n))return Math.sign(t-n);for(var e="",r=0;r<Math.min(t.length,n.length)&&t.charAt(r)===n.charAt(r)&&!rt(t);r++)e+=t.charAt(r);t=t.slice(e.length),n=n.slice(e.length);var o="",i=null;S(t,function(t,n){if(o)return n>="0"&&n<="9"&&(o+=n,!0);i=t,n>="0"&&n<="9"&&(o+=n)});var a="",u=null;return S(n,function(t,n){if(a)return n>="0"&&n<="9"&&(a+=n,!0);u=t,n>="0"&&n<="9"&&(a+=n)}),o.length&&a.length&&i===u&&t.substring(0,i)===n.substring(0,u)?Math.sign(o-a):t>n?1:-1};E(Object.keys(u),function(t){var n=u[t],e=String.prototype,r=e[t];e[t]=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return r&&e.length===r.length?r.apply(this,e):n.apply(void 0,[this].concat(e))}});var Jt,Kt=function(t){return rn("abcdefghijklmnopqrstuvwxyz".split(""),t)},Qt=function(t){return rn("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},tn=function(t){return rn("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},nn=function(t){return rn("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},en=function(t){return rn("0123456789".split(""),t)},rn=function(t,n){for(var e="",r=0;r<n;r++)e+=t[Math.floor(1e3*Math.random())%t.length];return e},on=(Jt=0,function(){return Jt++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(Jt.toString(36),"_").concat(tn(5))});function an(t){return an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(t)}function un(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ln(r.key),r)}}function ln(t){var n=function(t){if("object"!=an(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=an(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==an(n)?n:n+""}function cn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}var fn=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=cn(t,this,sn).call(this,n);var r={left:0,top:0};if(e instanceof Element){var o=e.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=cn(t,this,sn).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=cn(t,this,sn).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&un(n.prototype,null),e&&un(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function sn(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const pn=fn;function vn(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=yn(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function dn(t){return function(t){if(Array.isArray(t))return mn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||yn(t)||function(){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 hn(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||yn(t,n)||function(){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 yn(t,n){if(t){if("string"==typeof t)return mn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?mn(t,n):void 0}}function mn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=fn);var gn=new Map,bn=["longtap","dbltap"],wn=new Set;function Sn(t,n){var e={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:n,stopPropagation:function(){e._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){e._immediateStopped=!0,e._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(e,{get:function(n,e,r){if(e in n)return Reflect.get(n,e,r);var o=t[e];return H(o)?o.bind(t):o}})}function En(t){return function(t){if(Array.isArray(t))return An(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return An(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?An(t,n):void 0}}(t)||function(){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 An(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var jn=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],Cn={children:function(t,n){return n?this.find(t,":scope > ".concat(n)):Array.from(t.children)},child:function(t,n){return this.first(this.children(t,n))},find:function(t,n){if(void 0===n&&(n=t,t=document),n instanceof Element&&(n=[n]),Q(n))return A(Array.from(n),function(n,e){return e instanceof Element&&(t===e||t.contains(e))?e:null});try{return Array.from(t.querySelectorAll(n))}catch(t){return[]}},findOne:function(t,n){var e;return null!==(e=this.find(t,n)[0])&&void 0!==e?e:null},findByData:function(t,n,e){if(void 0===e)return this.find(t,"[data-".concat(n,"]"));var r=CSS.escape(e+"");return this.find(t,"[data-".concat(n,'="').concat(r,'"]'))},findOneByData:function(t,n,e){var r;return null!==(r=this.findByData(t,n,e)[0])&&void 0!==r?r:null},addClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).add.apply(n,En(e))}),t},removeClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).remove.apply(n,En(e))}),t},toggleClass:function(t,n,e){return E(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){return t.classList.toggle(n,e)}),t},hasClass:function(t,n){if(!n)return!1;var e=!0;return E(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!N(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return E(r,function(e){$(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return E([].concat(r).reverse(),function(e){$(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||tt(n)?Array.from(n).forEach(function(t){return t.remove()}):t.find(n).forEach(function(t){return t.remove()})})},closest:function(t,n){if(n instanceof Element){if(t===n)return t;for(var e=t.parentElement;e;){if(e===n)return e;e=e.parentElement}return null}return void 0===n?t:t.closest(n)},next:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.nextElementSibling;return n?e&&e.matches(n)?e:null:e},prev:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.previousElementSibling;return n?e&&e.matches(n)?e:null:e},nextAll:function(t,n){for(var e=[],r=t.nextElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.nextElementSibling;return e},prevAll:function(t,n){for(var e=[],r=t.previousElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.previousElementSibling;return e},index:function(t,n){return this.prevAll(t,n).length},nextUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.nextElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.previousElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,n){return n.isConnected||t.parentNode.insertBefore(n,t),this.append(n,t),t},attr:function(t,n,e){return void 0===e?t.getAttribute(n):(null===e?t.removeAttribute(n):t.setAttribute(n,e),t)},prop:function(t,n,e){return void 0===e?t[n]:(t[n]=e,t)},html:function(t,n){return void 0===n?t.innerHTML:(t.innerHTML=n,t)},text:function(t,n){return void 0===n?t.innerText:(t.innerText=n,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var n;n=H(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",n)}return t.style.display="none",t},show:function(t){var n=this.data(t,"__display__");return void 0===n?t.style.removeProperty("display"):(t.style.display=n,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,n,e){var r=this;if(void 0===n&&void 0===e)return t.dataset;if(G(n))return S(n,function(n,e){return r.data(t,n,e)}),t;var o=/^data-/.test(n+""),i=zt(o?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[i]:null===e?(delete t.dataset[i],t):(t.dataset[i]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var r=this;if($(n)){var o=n.startsWith("--")?n:zt(n);if(void 0===e){if(window.getComputedStyle){var i=window.getComputedStyle(t,null);return i.getPropertyValue(n)||i[zt(n)]||""}return t.style[zt(n)]||""}o.startsWith("--")?t.style.setProperty(o,String(e)):("number"!=typeof e||N(o,jn)||(e+="px"),t.style[o]=e)}else S(n,function(n,e){r.css(t,n,e)});return t},closestFind:function(t,n,e){var r=this.closest(t,n);return r?this.find(r,e):[]},closestFindOne:function(t,n,e){var r=this.closest(t,n);return r?this.findOne(r,e):null},first:function(t){var n;return t instanceof Element?t:null!==(n=Array.from(t)[0])&&void 0!==n?n:null},last:function(t){var n;if(t instanceof Element)return t;var e=Array.from(t);return null!==(n=e[e.length-1])&&void 0!==n?n:null},create:function(t){if(!$(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var n=document.createElement("template");n.innerHTML=t.trim();var e=n.content;return 1===e.childElementCount&&1===e.children.length?e.firstElementChild:e.cloneNode(!0)},eq:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(n)>=t.length?null:(n<0&&(n=t.length+n),t[n])},after:function(t,n){return t.parentElement?($(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?($(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,n){var e=t instanceof Element?[t]:Array.from(t),r=$(n);return e.filter(function(t){return r?!t.matches(n):t!==n})},collide:function(t,n){var e=t.getBoundingClientRect(),r=n.getBoundingClientRect();return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y},matches:function(t,n){return!!t&&(n instanceof Element?n===t:t.matches(n))},replaceChild:function(t,n,e){return t.replaceChild(n,e)},replaceChildren:function(t){for(var n=this,e=[],r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return E(o,function(t){$(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if(ct(t))return{top:t.scrollY,left:t.scrollX};if(ft(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var n=t.getBoundingClientRect(),e=this.offset(window);return{top:n.top+e.top,left:n.left+e.left}},isEditable:function(t){var n;return 3===(null===(n=t)||void 0===n?void 0:n.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&(N(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,n,e,r,o){return H(e)&&(o=r,r=e,e=null),E(n.split(" "),function(n){var i=hn(n.split("."),2),a=i[0],u=i[1],l=function(n){if(!n.cancelBubble){var e,r=function(t,n){for(var e=[],r=3===t.nodeType?t.parentNode:t;r&&(e.push(r),r!==n);)r=r.parentNode;return e}(n.target,t),o=dn(gn.get(t)),i=vn(r);try{for(i.s();!(e=i.n()).done;){var a,u=e.value,l=!1,c=vn(o);try{for(c.s();!(a=c.n()).done;){var f=a.value;if(f.event===n.type){if(f.selector){if(!u.matches(f.selector))continue}else if(u!==t)continue;var s=Sn(n,u);if(f.handler.call(u,s),s._immediateStopped)return;s._propagationStopped&&(l=!0)}}}catch(t){c.e(t)}finally{c.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},c=gn.get(t);c||(c=[],gn.set(t,c)),N(a,bn)&&function(t){var n,e,r,o,i,a,u;null!=wn&&wn.has(t)||("longtap"===t&&(r=null,o=0,i=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=pn.getViewportPosition(t);o=n.x,i=n.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var n=pn.getViewportPosition(t);Math.hypot(n.x-o,n.y-i)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=pn.getViewportPosition(t);else{var o=pn.getViewportPosition(t);Math.hypot(o.x-e.x,o.y-e.y)<=40&&r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),n=Date.now(),e=o}},{passive:!0})),wn.add(t))}(a);var f=A(c,function(t,n){return n.event});N(a,f)||t.addEventListener(a,l,o),c.push({event:a,handler:r,selector:e,listener:l,namespace:u,options:o})}),t},off:function(t,n,e,r,o){H(e)&&(o=r,r=e,e=null);var i=gn.get(t);if(!i)return t;var a=n?n.split(" "):[void 0];return E(a,function(n){var a=hn(void 0===n?[void 0,void 0]:n.split("."),2),u=a[0],l=a[1],c=void 0!==(u=u||void 0),f=void 0!==l;E(dn(i).reverse(),function(n){if((!c&&!f||c&&!f&&n.event===u||!c&&f&&n.namespace===l||c&&f&&n.event===u&&n.namespace===l)&&(void 0===u||n.event===u)&&(void 0===r||n.handler===r)&&(void 0===e||n.selector===e)&&(void 0===l||n.namespace===l)&&(void 0===o||n.options===o)){var a=i.indexOf(n);-1!==a&&i.splice(a,1),A(i,function(t,n){return n.event===u?n:null})[0]||t.removeEventListener(n.event,n.listener,n.options)}})}),t}};function xn(t){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(t)}function On(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Pn(r.key),r)}}function Pn(t){var n=function(t){if("object"!=xn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=xn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==xn(n)?n:n+""}function Tn(t,n){return t.get(Mn(t,n))}function Mn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=Cn);var Ln=new WeakMap,kn=new(function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,n,e){(function(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,n),n.set(t,e)}(this,Ln,{})},n=[{key:"addListener",value:function(t,n,e){var r=this;if(!H(n))throw new Error("Callback must be a function.");if(!$(t))throw new Error("Events name must be a string separated by comma.");for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var u={callback:n,context:e,args:i};return S(t.split(","),function(t,n){if(!n)return!0;n=n.trim(),r.hasListener(n)?Tn(Ln,r)[n].push(u):Tn(Ln,r)[n]=[u]}),this}},{key:"addListenerOnce",value:function(t,n,e){for(var r=this,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return S(t.split(","),function(t,o){if(!(o=o.trim()))return!0;var a=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];n.apply(e,[o].concat(i).concat(u.slice(1))),r.removeListener(o,a)};r.addListener(o,a,e)}),this}},{key:"dispatch",value:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(!$(t))throw new Error("Events name must be a string seperated by comma.");return S(t.split(","),function(t,e){return!(e=e.trim())||(n.hasListener(e)?void S(Tn(Ln,n)[e],function(t,n){n.callback.apply(n.context,[e].concat(n.args).concat(r))}):(console.warn("No listeners found for event: ".concat(e)),!0))}),this}},{key:"hasListener",value:function(t,n,e){return K(n)?!K(Tn(Ln,this)[t]):!!A(Tn(Ln,this)[t],function(t,r){return r.callback===n&&r.context===e||null}).length}},{key:"removeListener",value:function(t,n,e){var r=this;return this.hasListener(t,n,e)&&(K(n)?Tn(Ln,this)[t].splice(0):S(Tn(Ln,this)[t],function(n){return Tn(Ln,r)[t].splice(n,1),delete Tn(Ln,r)[t],!1})),this}},{key:"getListeners",value:function(t){return t?Tn(Ln,this)[t]||[]:Tn(Ln,this)}},{key:"reset",value:function(){var t,n;n={},(t=Ln).set(Mn(t,this),n)}}],n&&On(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}());function In(t){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(t)}function _n(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Dn(r.key),r)}}function Dn(t){var n=function(t){if("object"!=In(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=In(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==In(n)?n:n+""}function Nn(t,n,e){Rn(t,n),n.set(t,e)}function Rn(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xn(t,n){return t.get(Un(t,n))}function Yn(t,n,e){return t.set(Un(t,n),e),e}function Un(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=kn);var Bn=new WeakMap,qn=new WeakMap,Fn=new WeakSet,zn=function(){return t=function t(n,e){var r;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),Rn(this,r=Fn),r.add(this),Nn(this,Bn,void 0),Nn(this,qn,void 0),Un(Fn,this,Wn).call(this,n),this.setLang(e)},n=[{key:"translate",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";if(n=void 0===n?this.getLang():n,void 0!==Xn(qn,this)[e]&&void 0!==Xn(qn,this)[e][n]&&void 0!==Xn(qn,this)[e][n][t]){var r=Xn(qn,this)[e][n][t];return Un(Fn,this,Vn).call(this,r)}return"en"!==n?this.translate(t,"en",e):t}},{key:"translateFrom",value:function(t,n,e){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var i=null===(r=Xn(qn,this))||void 0===r?void 0:r[o];if(!i)return t;var a=null==i?void 0:i[n],u=null==i?void 0:i[e];if(!a||!u)return t;var l=Un(Fn,this,$n).call(this,a,t);if(!l)return t;var c=u[l],f=Un(Fn,this,Vn).call(this,c);return null!=f?f:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return Xn(Bn,this)}},{key:"setLang",value:function(t){t||("undefined"!=typeof navigator&&navigator.language?t=navigator.language:"undefined"!=typeof process&&process.env&&(t=process.env.LANG||process.env.LC_ALL||process.env.LC_MESSAGES)),Yn(Bn,this,(t||"en").trim().toLowerCase().slice(0,2))}}],n&&_n(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function Wn(t){var n={},e={};S(t,function(t,r){S(r,function(r,o){G(o)?(void 0===n[t]&&(n[t]={}),n[t][r]=o):(void 0===e[t]&&(e[t]={}),e[t][r]=o)})}),Yn(qn,this,C(!0,n,{core:C({},n.core||{},e)}))}function $n(t,n){for(var e in t)if(Un(Fn,this,Vn).call(this,t[e])===n)return e;return null}function Vn(t){return H(t)?t():t}function Hn(t){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(t)}function Gn(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function Zn(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Gn(Object(e),!0).forEach(function(n){Jn(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Gn(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Jn(t,n,e){return(n=function(t){var n=function(t){if("object"!=Hn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Hn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Hn(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Kn(t){return Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(t)}function Qn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,te(r.key),r)}}function te(t){var n=function(t){if("object"!=Kn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Kn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Kn(n)?n:n+""}function ne(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=zn),Zn(Zn(Zn(Zn(Zn(Zn(Zn({},u),i),r),a),l),o),e);var ee=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=ne(t,this,re).call(this,n);var r={left:0,top:0};if(e instanceof Element){var o=e.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=ne(t,this,re).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=ne(t,this,re).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&Qn(n.prototype,null),e&&Qn(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function re(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const oe=ee;return"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=ee),n})());
|
package/dist/umd/webf.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.webf=e():t.webf=e()}(this,()=>(()=>{"use strict";var t={260(t,e,n){n.d(e,{default:()=>f});var r=n(531);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function u(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,n=[{key:"getPosition",value:function(e,n){e=u(t,this,c).call(this,e);var r={left:0,top:0};if(n instanceof Element){var i=n.getBoundingClientRect();r={left:window.scrollX+i.left,top:window.scrollY+i.top}}return{x:e.pageX-r.left,y:e.pageY-r.top}}},{key:"getViewportPosition",value:function(e){return{x:(e=u(t,this,c).call(this,e)).clientX,y:e.clientY}}},{key:"getElement",value:function(e){return e=u(t,this,c).call(this,e),window.document.elementFromPoint(e.clientX,e.clientY)}}],null&&o(e.prototype,null),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function c(t){var e;if(t=null!==(e=t.originalEvent)&&void 0!==e?e:t,(0,r.isTouchDevice)()){var n,i,o=(null===(n=t.changedTouches)||void 0===n?void 0:n[0])||(null===(i=t.touches)||void 0===i?void 0:i[0]);t.clientX=o.clientX,t.clientY=o.clientY,t.pageX=o.pageX,t.pageY=o.pageY}return t}const f=l;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=l)},37(t,e,n){n.d(e,{default:()=>w});var r=n(531),i=n(385);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}function l(t,e,n){c(t,e),e.set(t,n)}function c(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(t,e){return t.get(p(t,e))}function s(t,e,n){return t.set(p(t,e),n),n}function p(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,v=new WeakMap,h=new WeakSet,y=function(){return t=function t(e,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,r=h),r.add(this),l(this,d,void 0),l(this,v,void 0),p(h,this,g).call(this,e),this.setLang(n)},e=[{key:"translate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";if(e=void 0===e?this.getLang():e,void 0!==f(v,this)[n]&&void 0!==f(v,this)[n][e]&&void 0!==f(v,this)[n][e][t]){var r=f(v,this)[n][e][t];return p(h,this,b).call(this,r)}return"en"!==e?this.translate(t,"en",n):t}},{key:"translateFrom",value:function(t,e,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var o=null===(r=f(v,this))||void 0===r?void 0:r[i];if(!o)return t;var a=null==o?void 0:o[e],u=null==o?void 0:o[n];if(!a||!u)return t;var l=p(h,this,m).call(this,a,t);if(!l)return t;var c=u[l],s=p(h,this,b).call(this,c);return null!=s?s:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return f(d,this)}},{key:"setLang",value:function(t){t||("undefined"!=typeof navigator&&navigator.language?t=navigator.language:"undefined"!=typeof process&&process.env&&(t=process.env.LANG||process.env.LC_ALL||process.env.LC_MESSAGES)),s(d,this,(t||"en").trim().toLowerCase().slice(0,2))}}],e&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function g(t){var e={},n={};(0,i.each)(t,function(t,o){(0,i.each)(o,function(i,o){(0,r.isPlainObject)(o)?(void 0===e[t]&&(e[t]={}),e[t][i]=o):(void 0===n[t]&&(n[t]={}),n[t][i]=o)})}),s(v,this,(0,i.extend)(!0,e,{core:(0,i.extend)({},e.core||{},n)}))}function m(t,e){for(var n in t)if(p(h,this,b).call(this,t[n])===e)return n;return null}function b(t){return(0,r.isFunction)(t)?t():t}const w=y;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=y)},626(t,e,n){n.r(e),n.d(e,{arrayDiff:()=>p,arrayUnique:()=>f,array_diff:()=>d,array_unique:()=>s,inArray:()=>u,indexOf:()=>l,lastIndexOf:()=>c,range:()=>v});var r=n(385),i=n(531),o=n(245),a=n(82),u=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=!1;return(0,r.each)(e,function(e,r){if(e>=n)if(o){if(r===t)return u=!0,!1}else{if((0,i.isObject)(t)&&(0,i.isObject)(r))return u=(0,a.equals)(r,t),!1;if((0,i.isArray)(t)&&(0,i.isObject)(r))return u=(0,a.equals)(r,t),!1;if(r==t)return u=!0,!1}}),u},l=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=(0,i.isString)(t)?(0,r.map)(t,function(t,e){return e}):t;for(n=n<0?Math.ceil(n)+o.length:Math.floor(n);n<o.length;n++)if(n in o&&o[n]===e)return n;return-1},c=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=(0,i.isString)(t)?(0,r.map)(t,function(t,e){return e}):t;for(n=n<0?o.length+Math.ceil(n):Math.floor(n);n>=0;n--)if(n in o&&o[n]===e)return n;return-1},f=function(t){return t.filter(function(t,e,n){return e===l(n,t)})},s=f,p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!u(t,e,0,n)})},d=p,v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=(0,o.round)(t),n=(0,o.round)(n);var r=[];if((0,i.isUndefined)(e)||t<1||0===n||t<Math.abs(n))return r;var a=t*n;if((0,i.isString)(e)){e=e.charCodeAt(0);for(var u=0;n>0?u<a:u>a;u+=n)r.push(String.fromCharCode(e+u))}else if((0,i.isInteger)(e))for(var l=0;n>0?l<a:l>a;l+=n)r.push(e+l);return r}},765(t,e,n){n.d(e,{default:()=>S});var r=n(531),i=n(54),o=n(385),a=n(626),u=n(260);function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function c(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){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 f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,e)||s(t,e)||function(){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 s(t,e){if(t){if("string"==typeof t)return p(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var d=new Map,v=["longtap","dbltap"],h=new Set;function y(t,e){var n={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:e,stopPropagation:function(){n._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){n._immediateStopped=!0,n._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(n,{get:function(e,n,i){if(n in e)return Reflect.get(e,n,i);var o=t[n];return(0,r.isFunction)(o)?o.bind(t):o}})}function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(t)||function(){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 m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var b=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],w={children:function(t,e){return e?this.find(t,":scope > ".concat(e)):Array.from(t.children)},child:function(t,e){return this.first(this.children(t,e))},find:function(t,e){if(void 0===e&&(e=t,t=document),e instanceof Element&&(e=[e]),(0,r.isArrayLike)(e))return(0,o.map)(Array.from(e),function(e,n){return n instanceof Element&&(t===n||t.contains(n))?n:null});try{return Array.from(t.querySelectorAll(e))}catch(t){return[]}},findOne:function(t,e){var n;return null!==(n=this.find(t,e)[0])&&void 0!==n?n:null},findByData:function(t,e,n){if(void 0===n)return this.find(t,"[data-".concat(e,"]"));var r=CSS.escape(n+"");return this.find(t,"[data-".concat(e,'="').concat(r,'"]'))},findOneByData:function(t,e,n){var r;return null!==(r=this.findByData(t,e,n)[0])&&void 0!==r?r:null},addClass:function(t,e){if(!e)return t;var n=e.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var e;t instanceof Element&&(e=t.classList).add.apply(e,g(n))}),t},removeClass:function(t,e){if(!e)return t;var n=e.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var e;t instanceof Element&&(e=t.classList).remove.apply(e,g(n))}),t},toggleClass:function(t,e,n){return(0,o.foreach)(e.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(e){return t.classList.toggle(e,n)}),t},hasClass:function(t,e){if(!e)return!1;var n=!0;return(0,o.foreach)(e.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(e){if(!(0,a.inArray)(e,Array.from(t.classList)))return n=!1,!1}),n},append:function(t){for(var e=this,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(0,o.foreach)(i,function(n){(0,r.isString)(n)&&(n=e.create(n)),n&&t.append(n)}),t},prepend:function(t){for(var e=this,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(0,o.foreach)([].concat(i).reverse(),function(n){(0,r.isString)(n)&&(n=e.create(n)),n&&t.prepend(n)}),t},remove:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];n.forEach(function(e){e instanceof Element?e.remove():e instanceof NodeList||(0,r.isArray)(e)?Array.from(e).forEach(function(t){return t.remove()}):t.remove(t.find(e))})},closest:function(t,e){if(e instanceof Element){if(t===e)return t;for(var n=t.parentElement;n;){if(n===e)return n;n=n.parentElement}return null}return void 0===e?t:t.closest(e)},next:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.nextElementSibling;return e?n&&n.matches(e)?n:null:n},prev:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.previousElementSibling;return e?n&&n.matches(e)?n:null:n},nextAll:function(t,e){for(var n=[],r=t.nextElementSibling;r;)(void 0===e||r.matches(e))&&n.push(r),r=r.nextElementSibling;return n},prevAll:function(t,e){for(var n=[],r=t.previousElementSibling;r;)(void 0===e||r.matches(e))&&n.push(r),r=r.previousElementSibling;return n},index:function(t,e){return this.prevAll(t,e).length},nextUntil:function(t,e){var n=!1,r=[];e instanceof Element&&(n=!0);for(var i=t.nextElementSibling;i&&!(n?i===e:i.matches(e));)r.push(i),i=i.nextElementSibling;return r},prevUntil:function(t,e){var n=!1,r=[];e instanceof Element&&(n=!0);for(var i=t.previousElementSibling;i&&!(n?i===e:i.matches(e));)r.push(i),i=i.previousElementSibling;return r},wrap:function(t,e){return e.isConnected||t.parentNode.insertBefore(e,t),this.append(e,t),t},attr:function(t,e,n){return void 0===n?t.getAttribute(e):(null===n?t.removeAttribute(e):t.setAttribute(e,n),t)},prop:function(t,e,n){return void 0===n?t[e]:(t[e]=n,t)},html:function(t,e){return void 0===e?t.innerHTML:(t.innerHTML=e,t)},text:function(t,e){return void 0===e?t.innerText:(t.innerText=e,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var e;e=(0,r.isFunction)(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",e)}return t.style.display="none",t},show:function(t){var e=this.data(t,"__display__");return void 0===e?t.style.removeProperty("display"):(t.style.display=e,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,e,n){var a=this;if(void 0===e&&void 0===n)return t.dataset;if((0,r.isPlainObject)(e))return(0,o.each)(e,function(e,n){return a.data(t,e,n)}),t;var u=/^data-/.test(e+""),l=(0,i.camelCase)(u?(e+"").replace(/^data-/,""):e+"");return void 0===n?t.dataset[l]:null===n?(delete t.dataset[l],t):(t.dataset[l]=n,t)},removeData:function(t,e){return this.data(t,e,null)},css:function(t,e,n){var u=this;if((0,r.isString)(e)){var l=e.startsWith("--")?e:(0,i.camelCase)(e);if(void 0===n){if(window.getComputedStyle){var c=window.getComputedStyle(t,null);return c.getPropertyValue(e)||c[(0,i.camelCase)(e)]||""}return t.style[(0,i.camelCase)(e)]||""}l.startsWith("--")?t.style.setProperty(l,String(n)):("number"!=typeof n||(0,a.inArray)(l,b)||(n+="px"),t.style[l]=n)}else(0,o.each)(e,function(e,n){u.css(t,e,n)});return t},closestFind:function(t,e,n){var r=this.closest(t,e);return r?this.find(r,n):[]},closestFindOne:function(t,e,n){var r=this.closest(t,e);return r?this.findOne(r,n):null},first:function(t){var e;return t instanceof Element?t:null!==(e=Array.from(t)[0])&&void 0!==e?e:null},last:function(t){var e;if(t instanceof Element)return t;var n=Array.from(t);return null!==(e=n[n.length-1])&&void 0!==e?e:null},create:function(t){if(!(0,r.isString)(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var e=document.createElement("template");e.innerHTML=t.trim();var n=e.content;return 1===n.childElementCount&&1===n.children.length?n.firstElementChild:n.cloneNode(!0)},eq:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(e)>=t.length?null:(e<0&&(e=t.length+e),t[e])},after:function(t,e){return t.parentElement?((0,r.isString)(e)&&(e=this.create(e)),t.parentElement.insertBefore(e,t.nextElementSibling)):null},before:function(t,e){return t.parentElement?((0,r.isString)(e)&&(e=this.create(e)),t.parentElement.insertBefore(e,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,e){var n=t instanceof Element?[t]:Array.from(t),i=(0,r.isString)(e);return n.filter(function(t){return i?!t.matches(e):t!==e})},collide:function(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.x<r.x+r.width&&n.x+n.width>r.x&&n.y<r.y+r.height&&n.y+n.height>r.y},matches:function(t,e){return!!t&&(e instanceof Element?e===t:t.matches(e))},replaceChild:function(t,e,n){return t.replaceChild(e,n)},replaceChildren:function(t){for(var e=this,n=[],i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];return(0,o.foreach)(a,function(t){(0,r.isString)(t)&&(t=e.create(t)),n.push(t)}),t.replaceChildren.apply(t,n),t},offset:function(t){if((0,r.isWindow)(t))return{top:t.scrollY,left:t.scrollX};if((0,r.isDocument)(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var e=t.getBoundingClientRect(),n=this.offset(window);return{top:e.top+n.top,left:e.left+n.left}},isEditable:function(t){var e;return 3===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&((0,a.inArray)(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,e,n,i,s){return(0,r.isFunction)(n)&&(s=i,i=n,n=null),(0,o.foreach)(e.split(" "),function(e){var p=f(e.split("."),2),g=p[0],m=p[1],b=function(e){if(!e.cancelBubble){var n,r=function(t,e){for(var n=[],r=3===t.nodeType?t.parentNode:t;r&&(n.push(r),r!==e);)r=r.parentNode;return n}(e.target,t),i=c(d.get(t)),o=l(r);try{for(o.s();!(n=o.n()).done;){var a,u=n.value,f=!1,s=l(i);try{for(s.s();!(a=s.n()).done;){var p=a.value;if(p.event===e.type){if(p.selector){if(!u.matches(p.selector))continue}else if(u!==t)continue;var v=y(e,u);if(p.handler.call(u,v),v._immediateStopped)return;v._propagationStopped&&(f=!0)}}}catch(t){s.e(t)}finally{s.f()}if(f)return}}catch(t){o.e(t)}finally{o.f()}}},w=d.get(t);w||(w=[],d.set(t,w)),(0,a.inArray)(g,v)&&function(t){var e,n,i,o,a,l,c;null!=h&&h.has(t)||("longtap"===t&&(i=null,o=0,a=0,l=null,c=function(){clearTimeout(i),i=null},document.addEventListener("touchstart",function(t){l=t.target;var e=u.default.getViewportPosition(t);o=e.x,a=e.y,i=setTimeout(function(){l.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),i=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var e=u.default.getViewportPosition(t);Math.hypot(e.x-o,e.y-a)>40&&(clearTimeout(i),i=null)},{passive:!0}),document.addEventListener("touchend",c),document.addEventListener("touchcancel",c)),"dbltap"===t&&(e=0,n=null,(0,r.isTouchDevice)()&&document.addEventListener("dblclick",function(t){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()},{capture:!0}),document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-e>300)e=Date.now(),n=u.default.getViewportPosition(t);else{var i=u.default.getViewportPosition(t);Math.hypot(i.x-n.x,i.y-n.y)<=40&&r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),e=Date.now(),n=i}},{passive:!0})),h.add(t))}(g);var S=(0,o.map)(w,function(t,e){return e.event});(0,a.inArray)(g,S)||t.addEventListener(g,b,s),w.push({event:g,handler:i,selector:n,listener:b,namespace:m,options:s})}),t},off:function(t,e,n,i,a){(0,r.isFunction)(n)&&(a=i,i=n,n=null);var u=d.get(t);if(!u)return t;var l=e?e.split(" "):[void 0];return(0,o.foreach)(l,function(e){var r=f(void 0===e?[void 0,void 0]:e.split("."),2),l=r[0],s=r[1],p=void 0!==(l=l||void 0),d=void 0!==s;(0,o.foreach)(c(u).reverse(),function(e){if((!p&&!d||p&&!d&&e.event===l||!p&&d&&e.namespace===s||p&&d&&e.event===l&&e.namespace===s)&&(void 0===l||e.event===l)&&(void 0===i||e.handler===i)&&(void 0===n||e.selector===n)&&(void 0===s||e.namespace===s)&&(void 0===a||e.options===a)){var r=u.indexOf(e);-1!==r&&u.splice(r,1),(0,o.map)(u,function(t,e){return e.event===l?e:null})[0]||t.removeEventListener(e.event,e.listener,e.options)}})}),t}};const S=w;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=w)},74(t,e,n){n.d(e,{default:()=>d});var r=n(531),i=n(385);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}function l(t,e){return t.get(c(t,e))}function c(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,s=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}(this,f,{})},e=[{key:"addListener",value:function(t,e,n){var o=this;if(!(0,r.isFunction)(e))throw new Error("Callback must be a function.");if(!(0,r.isString)(t))throw new Error("Events name must be a string separated by comma.");for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];var s={callback:e,context:n,args:u};return(0,i.each)(t.split(","),function(t,e){if(!e)return!0;e=e.trim(),o.hasListener(e)?l(f,o)[e].push(s):l(f,o)[e]=[s]}),this}},{key:"addListenerOnce",value:function(t,e,n){for(var r=this,o=arguments.length,a=new Array(o>3?o-3:0),u=3;u<o;u++)a[u-3]=arguments[u];return(0,i.each)(t.split(","),function(t,i){if(!(i=i.trim()))return!0;var o=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];e.apply(n,[i].concat(a).concat(u.slice(1))),r.removeListener(i,o)};r.addListener(i,o,n)}),this}},{key:"dispatch",value:function(t){for(var e=this,n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];if(!(0,r.isString)(t))throw new Error("Events name must be a string seperated by comma.");return(0,i.each)(t.split(","),function(t,n){return!(n=n.trim())||(e.hasListener(n)?void(0,i.each)(l(f,e)[n],function(t,e){e.callback.apply(e.context,[n].concat(e.args).concat(o))}):(console.warn("No listeners found for event: ".concat(n)),!0))}),this}},{key:"hasListener",value:function(t,e,n){return(0,r.isUndefined)(e)?!(0,r.isUndefined)(l(f,this)[t]):!!(0,i.map)(l(f,this)[t],function(t,r){return r.callback===e&&r.context===n||null}).length}},{key:"removeListener",value:function(t,e,n){var o=this;return this.hasListener(t,e,n)&&((0,r.isUndefined)(e)?l(f,this)[t].splice(0):(0,i.each)(l(f,this)[t],function(e){return l(f,o)[t].splice(e,1),delete l(f,o)[t],!1})),this}},{key:"getListeners",value:function(t){return t?l(f,this)[t]||[]:l(f,this)}},{key:"reset",value:function(){var t,e;e={},(t=f).set(c(t,this),e)}}],e&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),p=new s;const d=p;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=p)},531(t,e,n){n.r(e),n.d(e,{isArray:()=>v,isArrayLike:()=>d,isBool:()=>s,isBoolean:()=>f,isDate:()=>h,isDocument:()=>j,isDomElement:()=>O,isEvent:()=>y,isEventSupported:()=>S,isFloat:()=>b,isFunction:()=>l,isInt:()=>m,isInteger:()=>g,isObject:()=>u,isPlainObject:()=>c,isScalar:()=>w,isString:()=>a,isTouchDevice:()=>A,isUndefined:()=>p,isWindow:()=>E});var r=n(626);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o,a=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},u=function(t){return!!t&&!v(t)&&"object"===i(t)},l=function(t){return!!t&&"function"==typeof t},c=function(t){return!1!==u(t)&&(void 0===t.constructor||!1!==u(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},f=function(t){return!0===t||!1===t},s=f,p=function(t){return void 0===t},d=function(t){return!!t&&!a(t)&&!l(t)&&m(t.length)&&Number.isFinite(t.length)},v=function(t){return Array.isArray(t)},h=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},y=function(t){return u(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},g=function(t){return/^[-+]?\d+$/.test(t+"")},m=g,b=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},w=function(t){var e=i(t);return null===t||(0,r.inArray)(e,["string","number","bigint","symbol","boolean"])},S=(o={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var e=document.createElement(o[t]||"div"),n=(t="on"+t)in e;return e=null,n}),A=function(){return S("touchstart")},E=function(t){return!!t&&t===t.window},j=function(t){return!!t&&9===t.nodeType},O=function(t){return u(t)&&1===t.nodeType&&!c(t)}},245(t,e,n){n.r(e),n.d(e,{dec2hex:()=>p,floorTo:()=>u,hex2dec:()=>d,max:()=>f,min:()=>c,plancher:()=>l,round:()=>a});var r=n(385),i=n(531),o=n(54),a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(t*Math.pow(10,e))/Math.pow(10,e)},u=function(t,e){if(e<=0)throw new Error("Precision must be greater than 0");return a(Math.floor(t/e)*e,6)},l=u,c=function(t,e){return s(t,e=(0,i.isFunction)(e)?e:function(t,e){return t<e?-1:1})},f=function(t,e){return s(t,e=(0,i.isFunction)(e)?e:function(t,e){return t>e?-1:1})};function s(t,e){var n;return(0,r.each)(t,function(t,r,i,o){n=0===o||e.call(null,n,r)>0?r:n}),n}var p=function(t){return t.toString(16)},d=function(t){t=(0,o.reverse)(t+"").toUpperCase();var e=0;return(0,r.each)(t,function(t,n){var r="0123456789ABCDEF".indexOf(n);if(-1===r)return e=0,!1;e+=r*Math.pow(2,4*t)}),e}},54(t,e,n){n.r(e),n.d(e,{addUrlParam:()=>M,br2nl:()=>v,camelCase:()=>R,compareMixAlphaDigits:()=>Y,decodeHtml:()=>I,escapeRegex:()=>F,f:()=>q,format:()=>B,formatSize:()=>X,hex2rgb:()=>P,hextorgb:()=>T,hilite:()=>W,htmlquotes:()=>k,htmlsimplequotes:()=>_,insert:()=>w,insertTag:()=>m,lcfirst:()=>g,ltrim:()=>f,nl2br:()=>h,noAccent:()=>d,numberFormat:()=>E,pad:()=>O,parse_url:()=>L,repeat:()=>D,reverse:()=>S,rgb2hex:()=>x,rgbtohex:()=>C,rtrim:()=>s,stripMultipleSpaces:()=>p,stripTags:()=>U,substringIndex:()=>b,thousandSeparator:()=>A,toCssClassName:()=>z,toPrice:()=>j,toUrl:()=>N,trim:()=>c,ucfirst:()=>y});var r=n(531),i=n(245),o=n(626),a=n(385);function u(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||function(){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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return f(s(t,e),e)},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(e,"+"),"g"),"")},s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(e,"+$"),"g"),"")},p=function(t){return t.trim().replace(/ +/g," ")},d=function(t){return t.replace(/[àäâ]/g,"a").replace(/[èéêë]/g,"e").replace(/[îïí]/g,"i").replace(/[öô]/g,"o").replace(/[üù]/g,"u").replace(/ç/g,"c").replace(/ÿ/g,"y").replace(/[ÀÄÂ]/g,"A").replace(/[ÈÉÊË]/g,"E").replace(/[ÎÏÍ]/g,"I").replace(/[ÖÔ]/g,"O").replace(/[ÜÙ]/g,"U").replace(/Ç/g,"C").replace(/Ÿ/g,"Y")},v=function(t){return t.split(/<br\s*\/*>/).join("\n")},h=function(t){return t.split("\n").join("<br>")},y=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},g=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},m=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i="<".concat(e,">"),o="</".concat(e,">");return["br","hr","img","link","input"].includes(e)&&(i="<".concat(e,"/>"),o=""),t.slice(0,n)+i+t.slice(n,n+r)+o+t.slice(n+r)},b=function(t,e,n){var r=(t+"").split(e);return n>0?r.splice(n,r.length-n):n<0&&r.splice(0,r.length+n),r.join(e)},w=function(t,e,n){return n>=t.length?t:u(t).reduce(function(t,r,i){return i>0&&i%n===0?t+e+r:t+r},"")},S=function(t){for(var e=[],n=0;n<t.length;n++)e.unshift(t[n]);return e.join("")},A=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if((0,r.isUndefined)(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var i=Math[t>=1e3?"floor":"ceil"](t)+"",o=S(w(S(i),S(e),3));return t.indexOf(".")>0?o+n+b(t,".",-1):o}return(t+"").replace(".",n)},E=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=(0,i.round)(parseFloat(t.replace(",",".")),e)+"",0===e)return A(t,r,o);var a=t.lastIndexOf(".");if(-1===a)return!0===n&&(t+=o+D("0",e)),A(t,r,o);var u=t.slice(a+1).length;return A(e>u?t+"0".repeat(e-u):t.slice(0,a+1+e),r,o)},j=E,O=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return(0,r.isUndefined)(e)||t.length>=e||!(0,o.inArray)(i,["left","right"])?t:"left"===i?n.repeat(Math.ceil(e/n.length)).slice(0,e-t.length)+t:t+n.repeat(Math.ceil(e/n.length)).slice(0,e-t.length)},x=function(t,e,n){return(0,r.isArray)(t)?x.apply(void 0,u(t)):(0,r.isInteger)(t)&&(0,r.isInteger)(e)&&(0,r.isInteger)(n)?[O((0,i.dec2hex)(parseInt(t)),2,"0").toUpperCase(),O((0,i.dec2hex)(parseInt(e)),2,"0").toUpperCase(),O((0,i.dec2hex)(parseInt(n)),2,"0").toUpperCase()].join(""):""},C=x,P=function(t){if(!(0,r.isString)(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=(0,a.map)(t.slice(-3),function(t,e){return e+""+e}).join(""));for(var e=0;e<t.length;e++)if(-1==="0123456789ABCDEF".indexOf(t[e]))return[];return(0,a.map)(w(t,",",2).split(","),function(t,e){return(0,i.hex2dec)(e)})},T=P,L=function(t){for(var e=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],n=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},i=14;i--;)n[i]&&(r[e[i]]=n[i]);return delete r.source,r},M=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if((0,r.isPlainObject)(e))return(0,a.each)(e,function(e,n){t=M(t,e,n)}),t;var i,o=L(t),u="";(i=t.indexOf("#"))>-1&&(u=t.slice(i),t=t.slice(0,i));var l=encodeURIComponent(e),c=null===n?"":encodeURIComponent(n);if(!o.query)return t+"?"+l+"="+c+u;for(var f=o.query.split("&"),s=!1,p=0;p<f.length;p++)if(f[p].startsWith(l+"=")){f[p]=l+"="+c,s=!0;break}return s||f.push(l+"="+c),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+f.join("&")+u:(o.host||"")+o.path+"?"+f.join("&")+u},I=function(t){return(0,r.isString)(t)?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):""},k=function(t){return(0,r.isString)(t)?t.replace(/"/g,""").replace(/'/g,"'"):""},_=function(t){return(0,r.isString)(t)?t.replace(/'/g,"'"):""},D=function(t,e){return(0,r.isString)(t)&&(0,r.isFloat)(e)?new Array(Math.floor(e)+1).join(t):""},U=function(t,e){if((0,r.isString)(e)){for(var n=new RegExp("<".concat(e,"[^>]*>(.*?)</").concat(e,">|<").concat(e,"[^>]*/>"),"ig");n.test(t);)t=t.replace(n,"$1");return t}return t.replace(/(<([^>]+)>)/gi,"")},N=function(t){return c(d(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},F=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},R=function(t){if(!t)return"";var e="",n=!1,r=!1,i=!1;t=c(t),t=c(t,"_"),t=c(t,"-");var o=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},u=function(t){return"-"===t||"_"===t||" "===t};return(0,a.map)(t,function(t,a){return r=u(e),i=o(e),e=a,u(a)?null:(r?(a=a.toUpperCase(),n=!0):o(a)?((0===t||i&&!n)&&(a=a.toLowerCase()),n=!1):n=!1,a)}).join("")},B=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return n.length&&(0,a.each)(n,function(e,n){if((0,r.isString)(n)){var i={};i[e]=n,n=i}(0,a.each)(n,function(e,n){t=t.replace(new RegExp("\\{"+e+"\\}","gm"),function(t){return(0,r.isUndefined)(n)?t:n})})}),t},q=B,z=function(t){return t.replace(/[^a-z0-9_-]/gi,function(t){var e=t.charCodeAt(0);return 32===e?"-":"__"+("000"+e.toString(16)).slice(-4)})},W=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=I(t);var i,o,u=d(t).toLowerCase().replace(/[[\]]+/g,""),l="";if((0,r.isArray)(e)||(e=[e]),(0,a.each)(e,function(t,e){e.length&&(e=I(e),i=d(e).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp(F(i),"g"),l=u.replace(o,"[".concat(i,"]")),u=l)}),!l.length)return t;var c=0,f="",s="end";return(0,a.each)(l,function(e,r){var i=t.charAt(c);"["===r&&"end"===s?(f+="<".concat(n,">"),s="start"):"]"===r&&"start"===s?(f+="</".concat(n,">"),s="end"):(c+=1,f+=i)}),f.replace(/</g,"<").replace(/>/g,">").replace(new RegExp("<".concat(n,">"),"g"),"<".concat(n,">")).replace(new RegExp("</".concat(n,">"),"g"),"</".concat(n,">")).replace(new RegExp("<br>","g"),"<br>")},X=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=-1,i=0;do{t/=1024,n++}while(t>999);(0,r.isInteger)(t)||(i=1);var o=(0,a.map)(["k","M","G","T","P","E"],function(t,e){return e+"B"});return E(Math.max(t,0),i,!0,"",e)+" "+o[n]},Y=function(t,e){if(t===e)return 0;if((0,r.isInteger)(t)&&(0,r.isInteger)(e))return Math.sign(t-e);for(var n="",i=0;i<Math.min(t.length,e.length)&&t.charAt(i)===e.charAt(i)&&!(0,r.isInteger)(t);i++)n+=t.charAt(i);t=t.slice(n.length),e=e.slice(n.length);var o="",u=null;(0,a.each)(t,function(t,e){if(o)return e>="0"&&e<="9"&&(o+=e,!0);u=t,e>="0"&&e<="9"&&(o+=e)});var l="",c=null;return(0,a.each)(e,function(t,e){if(l)return e>="0"&&e<="9"&&(l+=e,!0);c=t,e>="0"&&e<="9"&&(l+=e)}),o.length&&l.length&&u===c&&t.substring(0,u)===e.substring(0,c)?Math.sign(o-l):t>e?1:-1}},385(t,e,n){n.r(e),n.d(e,{clone:()=>v,each:()=>c,extend:()=>d,foreach:()=>f,map:()=>s,merge:()=>h,reduce:()=>p});var r=n(531),i=n(82);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,e)||u(t,e)||function(){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 a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=u(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function u(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var c=function(t,e,n){if((0,r.isPlainObject)(t)){var i=-1;for(var u in t)if(t.hasOwnProperty(u)&&!1===e.call(null!=n?n:t[u],u,t[u],t,++i))return}else{if((0,r.isString)(t)){for(var l=t.split(""),c=0;c<l.length;c++)if(!1===e.call(null!=n?n:l[c],c,l[c],t,c))return t;return t}if(t instanceof Map){var f,s=0,p=a(t.entries());try{for(p.s();!(f=p.n()).done;){var d=o(f.value,2),v=d[0],h=d[1];if(!1===e.call(null!=n?n:h,v,h,t,s++))return t}}catch(t){p.e(t)}finally{p.f()}}else if(t instanceof Set){var y,g=0,m=a(t.values());try{for(m.s();!(y=m.n()).done;){var b=y.value;if(!1===e.call(null!=n?n:b,g,b,t,g))return t;g++}}catch(t){m.e(t)}finally{m.f()}}else if((0,r.isArrayLike)(t))for(var w=Array.from(t),S=0;S<w.length;S++)if(!1===e.call(n||w[S],S,w[S],w,S))return t}return t},f=function(t,e,n){return c(t,function(t,r,i,o){return e.apply(n||r,[r,t,i,o])},n)},s=function(t,e,n){var r=[];return c(t,function(t,i,o,a){var u=e.call(n,t,i,o,a);null!==u&&r.push(u)}),r},p=function(t,e,n){var o=!(0,r.isUndefined)(n);if(!(0,i.sizeOf)(t)&&!o)throw new Error("Nothing to reduce and no initial value");var a=o?n:s(t,function(t,e,n,r){return 0===r?e:null})[0];return c(t,function(t,n,r,i){(0!==i||o)&&(a=e(a,n,t,i,r))}),a},d=function(){for(var t=!1,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if((0,r.isBoolean)(n[0])&&(t=n.shift()),n.length<2||(0,r.isUndefined)(n[0])||null===n[0])return n[0];var o=n[0];return(0,r.isObject)(o)||(n[0]=o={}),f(n.slice(1),function(e){if((0,r.isObject)(e))for(var n in e)t&&(0,r.isPlainObject)(e[n])?o[n]=d(!0,{},o[n],e[n]):o[n]=e[n]}),o},v=function(t){if(!(0,r.isObject)(t)&&!(0,r.isArray)(t)||(0,r.isWindow)(t))return t;var e=(0,r.isObject)(t)?{}:[];return c(t,function(t,n){(0,r.isObject)(n)?e[t]=v(n):e[t]=n}),e},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=s(t,function(t,e){return e});c(e,function(t,e){n.push(e)});for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return i.length?h.apply(void 0,[n].concat(i)):n}},82(t,e,n){n.r(e),n.d(e,{debounce:()=>p,equals:()=>a,flatten:()=>c,noop:()=>u,sizeOf:()=>l,strParseFloat:()=>f,throttle:()=>s});var r=n(385),i=n(531);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n(626);var a=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return!1;var r=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===e)return!0;if(Number.isNaN(t)&&Number.isNaN(e))return!0;if(o(t)!==o(e)||null===t||null===e)return!1;if((0,i.isArray)(t)||(0,i.isObject)(t)){if(n.has(t))return n.get(t)===e;n.set(t,e)}if((0,i.isArray)(t)||(0,i.isArray)(e))return!(!(0,i.isArray)(t)||!(0,i.isArray)(e))&&t.length===e.length&&t.every(function(t,i){return r(t,e[i],n)});if((0,i.isObject)(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;if(t instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp)return t.toString()===e.toString();var a=Object.keys(t),u=Object.keys(e);return a.length===u.length&&a.every(function(i){return r(t[i],e[i],n)})}return!1},a=e[0];return e.slice(1).every(function(t){return r(a,t)})},u=function(){},l=function(t){return(0,r.map)(t,u).length},c=function(t){return(0,i.isObject)(t)||(0,i.isArray)(t)?[].concat.apply([],(0,r.map)(t,function(t,e){return c(e)})):t},f=function(t){if(!t)return 0;var e=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(e)?0:e},s=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=null,a=0;return function(){for(var u=this,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var s=Date.now();a||n||(a=s);var p=e-(s-a);p<=0||p>e?(a=s,t.apply(i||this,c)):!o&&r&&(o=setTimeout(function(){o=null,a=n?Date.now():0,t.apply(i||u,c)},p))}},p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=null,o=0;return function(){for(var a=this,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];var f=Date.now();n&&(o||(o=f,t.apply(r||this,l))),clearTimeout(i),i=null,i=setTimeout(function(){o=f,clearTimeout(i),i=null,t.apply(r||a,l)},e)}}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{Mouse:()=>S.default,Translator:()=>A.default,arrayFunctions:()=>l,default:()=>C,dom:()=>g.default,eventDispatcher:()=>w.default,is:()=>c,math:()=>m,random:()=>i,stringFunctions:()=>o,traversal:()=>a,utils:()=>b});var i={};n.r(i),n.d(i,{rand:()=>h,randAlpha:()=>f,randAlphaCs:()=>s,randAlphaNum:()=>p,randAlphaNumCs:()=>d,randNum:()=>v,uniqid:()=>y});var o=n(54),a=n(385);(0,a.foreach)(Object.keys(o),function(t){var e=o[t],n=String.prototype,r=n[t];n[t]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r&&n.length===r.length?r.apply(this,n):e.apply(void 0,[this].concat(n))}});var u,l=n(626),c=n(531),f=function(t){return h("abcdefghijklmnopqrstuvwxyz".split(""),t)},s=function(t){return h("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},p=function(t){return h("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},d=function(t){return h("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},v=function(t){return h("0123456789".split(""),t)},h=function(t,e){for(var n="",r=0;r<e;r++)n+=t[Math.floor(1e3*Math.random())%t.length];return n},y=(u=0,function(){return u++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(u.toString(36),"_").concat(p(5))}),g=n(765),m=n(245),b=n(82),w=n(74),S=n(260),A=n(37);function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach(function(e){x(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function x(t,e,n){return(e=function(t){var e=function(t){if("object"!=E(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==E(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const C=O(O(O(O(O(O(O({},o),l),a),c),i),m),b);return r})());
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.webf=n():t.webf=n()}(this,()=>(()=>{"use strict";var t={153(t,n,e){e.d(n,{default:()=>ae});var r={};e.r(r),e.d(r,{debounce:()=>g,equals:()=>s,flatten:()=>v,noop:()=>p,sizeOf:()=>d,strParseFloat:()=>h,throttle:()=>y});var i={};e.r(i),e.d(i,{clone:()=>x,each:()=>E,extend:()=>C,foreach:()=>A,map:()=>j,merge:()=>P,reduce:()=>O});var o={};e.r(o),e.d(o,{dec2hex:()=>D,floorTo:()=>L,hex2dec:()=>U,max:()=>I,min:()=>k,plancher:()=>M,round:()=>T});var a={};e.r(a),e.d(a,{arrayDiff:()=>X,arrayUnique:()=>F,array_diff:()=>Y,array_unique:()=>q,inArray:()=>N,indexOf:()=>R,lastIndexOf:()=>B,range:()=>z});var u={};e.r(u),e.d(u,{isArray:()=>nt,isArrayLike:()=>tt,isBool:()=>K,isBoolean:()=>J,isDate:()=>et,isDocument:()=>st,isDomElement:()=>pt,isEvent:()=>rt,isEventSupported:()=>lt,isFloat:()=>at,isFunction:()=>G,isInt:()=>ot,isInteger:()=>it,isObject:()=>V,isPlainObject:()=>Z,isScalar:()=>ut,isString:()=>H,isTouchDevice:()=>ct,isUndefined:()=>Q,isWindow:()=>ft});var l={};e.r(l),e.d(l,{addUrlParam:()=>Nt,br2nl:()=>wt,camelCase:()=>Wt,compareMixAlphaDigits:()=>Jt,decodeHtml:()=>Rt,escapeRegex:()=>zt,f:()=>Ht,format:()=>$t,formatSize:()=>Zt,hex2rgb:()=>_t,hextorgb:()=>Dt,hilite:()=>Gt,htmlquotes:()=>Bt,htmlsimplequotes:()=>Ft,insert:()=>Ct,insertTag:()=>jt,lcfirst:()=>At,ltrim:()=>yt,nl2br:()=>St,noAccent:()=>bt,numberFormat:()=>Tt,pad:()=>Mt,parse_url:()=>Ut,repeat:()=>qt,reverse:()=>xt,rgb2hex:()=>kt,rgbtohex:()=>It,rtrim:()=>gt,stripMultipleSpaces:()=>mt,stripTags:()=>Xt,substringIndex:()=>Ot,thousandSeparator:()=>Pt,toCssClassName:()=>Vt,toPrice:()=>Lt,toUrl:()=>Yt,trim:()=>ht,ucfirst:()=>Et});var c={};function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}e.r(c),e.d(c,{rand:()=>on,randAlpha:()=>Qt,randAlphaCs:()=>tn,randAlphaNum:()=>nn,randAlphaNumCs:()=>en,randNum:()=>rn,uniqid:()=>an});var s=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)return!1;var r=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(f(t)!==f(n)||null===t||null===n)return!1;if(nt(t)||V(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if(nt(t)||nt(n))return!(!nt(t)||!nt(n))&&t.length===n.length&&t.every(function(t,i){return r(t,n[i],e)});if(V(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(n))return!1;if(t instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp)return t.toString()===n.toString();var i=Object.keys(t),o=Object.keys(n);return i.length===o.length&&i.every(function(i){return r(t[i],n[i],e)})}return!1},i=n[0];return n.slice(1).every(function(t){return r(i,t)})},p=function(){},d=function(t){return j(t,p).length},v=function(t){return V(t)||nt(t)?[].concat.apply([],j(t,function(t,n){return v(n)})):t},h=function(t){if(!t)return 0;var n=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(n)?0:n},y=function(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=null,a=0;return function(){for(var u=this,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var s=Date.now();a||e||(a=s);var p=n-(s-a);p<=0||p>n?(a=s,t.apply(i||this,c)):!o&&r&&(o=setTimeout(function(){o=null,a=e?Date.now():0,t.apply(i||u,c)},p))}},g=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=null,o=0;return function(){for(var a=this,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];var f=Date.now();e&&(o||(o=f,t.apply(r||this,l))),clearTimeout(i),i=null,i=setTimeout(function(){o=f,clearTimeout(i),i=null,t.apply(r||a,l)},n)}};function m(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,a,u=[],l=!0,c=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,n)||w(t,n)||function(){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 b(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=w(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw o}}}}function w(t,n){if(t){if("string"==typeof t)return S(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?S(t,n):void 0}}function S(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var E=function(t,n,e){if(Z(t)){var r=-1;for(var i in t)if(t.hasOwnProperty(i)&&!1===n.call(null!=e?e:t[i],i,t[i],t,++r))return}else{if(H(t)){for(var o=t.split(""),a=0;a<o.length;a++)if(!1===n.call(null!=e?e:o[a],a,o[a],t,a))return t;return t}if(t instanceof Map){var u,l=0,c=b(t.entries());try{for(c.s();!(u=c.n()).done;){var f=m(u.value,2),s=f[0],p=f[1];if(!1===n.call(null!=e?e:p,s,p,t,l++))return t}}catch(t){c.e(t)}finally{c.f()}}else if(t instanceof Set){var d,v=0,h=b(t.values());try{for(h.s();!(d=h.n()).done;){var y=d.value;if(!1===n.call(null!=e?e:y,v,y,t,v))return t;v++}}catch(t){h.e(t)}finally{h.f()}}else if(tt(t))for(var g=Array.from(t),w=0;w<g.length;w++)if(!1===n.call(e||g[w],w,g[w],g,w))return t}return t},A=function(t,n,e){return E(t,function(t,r,i,o){return n.apply(e||r,[r,t,i,o])},e)},j=function(t,n,e){var r=[];return E(t,function(t,i,o,a){var u=n.call(e,t,i,o,a);null!==u&&r.push(u)}),r},O=function(t,n,e){var r=!Q(e);if(!d(t)&&!r)throw new Error("Nothing to reduce and no initial value");var i=r?e:j(t,function(t,n,e,r){return 0===r?n:null})[0];return E(t,function(t,e,o,a){(0!==a||r)&&(i=n(i,e,t,a,o))}),i},C=function(){for(var t=!1,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];if(J(e[0])&&(t=e.shift()),e.length<2||Q(e[0])||null===e[0])return e[0];var i=e[0];return V(i)||(e[0]=i={}),A(e.slice(1),function(n){if(V(n))for(var e in n)t&&Z(n[e])?i[e]=C(!0,{},i[e],n[e]):i[e]=n[e]}),i},x=function(t){if(!V(t)&&!nt(t)||ft(t))return t;var n=V(t)?{}:[];return E(t,function(t,e){V(e)?n[t]=x(e):n[t]=e}),n},P=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=j(t,function(t,n){return n});E(n,function(t,n){e.push(n)});for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return i.length?P.apply(void 0,[e].concat(i)):e},T=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(t*Math.pow(10,n))/Math.pow(10,n)},L=function(t,n){if(n<=0)throw new Error("Precision must be greater than 0");return T(Math.floor(t/n)*n,6)},M=L,k=function(t,n){return _(t,n=G(n)?n:function(t,n){return t<n?-1:1})},I=function(t,n){return _(t,n=G(n)?n:function(t,n){return t>n?-1:1})};function _(t,n){var e;return E(t,function(t,r,i,o){e=0===o||n.call(null,e,r)>0?r:e}),e}var D=function(t){return t.toString(16)},U=function(t){t=xt(t+"").toUpperCase();var n=0;return E(t,function(t,e){var r="0123456789ABCDEF".indexOf(e);if(-1===r)return n=0,!1;n+=r*Math.pow(2,4*t)}),n},N=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=!1;return E(n,function(n,o){if(n>=e)if(r){if(o===t)return i=!0,!1}else{if(V(t)&&V(o))return i=s(o,t),!1;if(nt(t)&&V(o))return i=s(o,t),!1;if(o==t)return i=!0,!1}}),i},R=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=H(t)?j(t,function(t,n){return n}):t;for(e=e<0?Math.ceil(e)+r.length:Math.floor(e);e<r.length;e++)if(e in r&&r[e]===n)return e;return-1},B=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=H(t)?j(t,function(t,n){return n}):t;for(e=e<0?r.length+Math.ceil(e):Math.floor(e);e>=0;e--)if(e in r&&r[e]===n)return e;return-1},F=function(t){return t.filter(function(t,n,e){return n===R(e,t)})},q=F,X=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!N(t,n,0,e)})},Y=X,z=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=T(t),e=T(e);var r=[];if(Q(n)||t<1||0===e||t<Math.abs(e))return r;var i=t*e;if(H(n)){n=n.charCodeAt(0);for(var o=0;e>0?o<i:o>i;o+=e)r.push(String.fromCharCode(n+o))}else if(it(n))for(var a=0;e>0?a<i:a>i;a+=e)r.push(n+a);return r};function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}var $,H=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},V=function(t){return!!t&&!nt(t)&&"object"===W(t)},G=function(t){return!!t&&"function"==typeof t},Z=function(t){return!1!==V(t)&&(void 0===t.constructor||!1!==V(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},J=function(t){return!0===t||!1===t},K=J,Q=function(t){return void 0===t},tt=function(t){return!!t&&!H(t)&&!G(t)&&ot(t.length)&&Number.isFinite(t.length)},nt=function(t){return Array.isArray(t)},et=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},rt=function(t){return V(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},it=function(t){return/^[-+]?\d+$/.test(t+"")},ot=it,at=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},ut=function(t){var n=W(t);return null===t||N(n,["string","number","bigint","symbol","boolean"])},lt=($={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var n=document.createElement($[t]||"div"),e=(t="on"+t)in n;return n=null,e}),ct=function(){return lt("touchstart")},ft=function(t){return!!t&&t===t.window},st=function(t){return!!t&&9===t.nodeType},pt=function(t){return V(t)&&1===t.nodeType&&!Z(t)};function dt(t){return function(t){if(Array.isArray(t))return vt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return vt(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?vt(t,n):void 0}}(t)||function(){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 vt(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var ht=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return yt(gt(t,n),n)},yt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},gt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},mt=function(t){return t.trim().replace(/ +/g," ")},bt=function(t){return t.replace(/[àäâ]/g,"a").replace(/[èéêë]/g,"e").replace(/[îïí]/g,"i").replace(/[öô]/g,"o").replace(/[üù]/g,"u").replace(/ç/g,"c").replace(/ÿ/g,"y").replace(/[ÀÄÂ]/g,"A").replace(/[ÈÉÊË]/g,"E").replace(/[ÎÏÍ]/g,"I").replace(/[ÖÔ]/g,"O").replace(/[ÜÙ]/g,"U").replace(/Ç/g,"C").replace(/Ÿ/g,"Y")},wt=function(t){return t.split(/<br\s*\/*>/).join("\n")},St=function(t){return t.split("\n").join("<br>")},Et=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},At=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},jt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i="<".concat(n,">"),o="</".concat(n,">");return["br","hr","img","link","input"].includes(n)&&(i="<".concat(n,"/>"),o=""),t.slice(0,e)+i+t.slice(e,e+r)+o+t.slice(e+r)},Ot=function(t,n,e){var r=(t+"").split(n);return e>0?r.splice(e,r.length-e):e<0&&r.splice(0,r.length+e),r.join(n)},Ct=function(t,n,e){return e>=t.length?t:dt(t).reduce(function(t,r,i){return i>0&&i%e===0?t+n+r:t+r},"")},xt=function(t){for(var n=[],e=0;e<t.length;e++)n.unshift(t[e]);return n.join("")},Pt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(Q(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var r=Math[t>=1e3?"floor":"ceil"](t)+"",i=xt(Ct(xt(r),xt(n),3));return t.indexOf(".")>0?i+e+Ot(t,".",-1):i}return(t+"").replace(".",e)},Tt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=T(parseFloat(t.replace(",",".")),n)+"",0===n)return Pt(t,r,i);var o=t.lastIndexOf(".");if(-1===o)return!0===e&&(t+=i+qt("0",n)),Pt(t,r,i);var a=t.slice(o+1).length;return Pt(n>a?t+"0".repeat(n-a):t.slice(0,o+1+n),r,i)},Lt=Tt,Mt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return Q(n)||t.length>=n||!N(r,["left","right"])?t:"left"===r?e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)+t:t+e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)},kt=function(t,n,e){return nt(t)?kt.apply(void 0,dt(t)):it(t)&&it(n)&&it(e)?[Mt(D(parseInt(t)),2,"0").toUpperCase(),Mt(D(parseInt(n)),2,"0").toUpperCase(),Mt(D(parseInt(e)),2,"0").toUpperCase()].join(""):""},It=kt,_t=function(t){if(!H(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=j(t.slice(-3),function(t,n){return n+""+n}).join(""));for(var n=0;n<t.length;n++)if(-1==="0123456789ABCDEF".indexOf(t[n]))return[];return j(Ct(t,",",2).split(","),function(t,n){return U(n)})},Dt=_t,Ut=function(t){for(var n=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],e=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},i=14;i--;)e[i]&&(r[n[i]]=e[i]);return delete r.source,r},Nt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Z(n))return E(n,function(n,e){t=Nt(t,n,e)}),t;var r,i=Ut(t),o="";(r=t.indexOf("#"))>-1&&(o=t.slice(r),t=t.slice(0,r));var a=encodeURIComponent(n),u=null===e?"":encodeURIComponent(e);if(!i.query)return t+"?"+a+"="+u+o;for(var l=i.query.split("&"),c=!1,f=0;f<l.length;f++)if(l[f].startsWith(a+"=")){l[f]=a+"="+u,c=!0;break}return c||l.push(a+"="+u),i.scheme&&i.host?i.scheme+"://"+i.host+(i.path||"")+"?"+l.join("&")+o:(i.host||"")+i.path+"?"+l.join("&")+o},Rt=function(t){return H(t)?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):""},Bt=function(t){return H(t)?t.replace(/"/g,""").replace(/'/g,"'"):""},Ft=function(t){return H(t)?t.replace(/'/g,"'"):""},qt=function(t,n){return H(t)&&at(n)?new Array(Math.floor(n)+1).join(t):""},Xt=function(t,n){if(H(n)){for(var e=new RegExp("<".concat(n,"[^>]*>(.*?)</").concat(n,">|<").concat(n,"[^>]*/>"),"ig");e.test(t);)t=t.replace(e,"$1");return t}return t.replace(/(<([^>]+)>)/gi,"")},Yt=function(t){return ht(bt(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},zt=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},Wt=function(t){if(!t)return"";var n="",e=!1,r=!1,i=!1;t=ht(t),t=ht(t,"_"),t=ht(t,"-");var o=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},a=function(t){return"-"===t||"_"===t||" "===t};return j(t,function(t,u){return r=a(n),i=o(n),n=u,a(u)?null:(r?(u=u.toUpperCase(),e=!0):o(u)?((0===t||i&&!e)&&(u=u.toLowerCase()),e=!1):e=!1,u)}).join("")},$t=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return e.length&&E(e,function(n,e){if(H(e)){var r={};r[n]=e,e=r}E(e,function(n,e){t=t.replace(new RegExp("\\{"+n+"\\}","gm"),function(t){return Q(e)?t:e})})}),t},Ht=$t,Vt=function(t){return t.replace(/[^a-z0-9_-]/gi,function(t){var n=t.charCodeAt(0);return 32===n?"-":"__"+("000"+n.toString(16)).slice(-4)})},Gt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=Rt(t);var r,i,o=bt(t).toLowerCase().replace(/[[\]]+/g,""),a="";if(nt(n)||(n=[n]),E(n,function(t,n){n.length&&(n=Rt(n),r=bt(n).toLowerCase().replace(/[[\]]+/g,""),i=new RegExp(zt(r),"g"),a=o.replace(i,"[".concat(r,"]")),o=a)}),!a.length)return t;var u=0,l="",c="end";return E(a,function(n,r){var i=t.charAt(u);"["===r&&"end"===c?(l+="<".concat(e,">"),c="start"):"]"===r&&"start"===c?(l+="</".concat(e,">"),c="end"):(u+=1,l+=i)}),l.replace(/</g,"<").replace(/>/g,">").replace(new RegExp("<".concat(e,">"),"g"),"<".concat(e,">")).replace(new RegExp("</".concat(e,">"),"g"),"</".concat(e,">")).replace(new RegExp("<br>","g"),"<br>")},Zt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",e=-1,r=0;do{t/=1024,e++}while(t>999);it(t)||(r=1);var i=j(["k","M","G","T","P","E"],function(t,n){return n+"B"});return Tt(Math.max(t,0),r,!0,"",n)+" "+i[e]},Jt=function(t,n){if(t===n)return 0;if(it(t)&&it(n))return Math.sign(t-n);for(var e="",r=0;r<Math.min(t.length,n.length)&&t.charAt(r)===n.charAt(r)&&!it(t);r++)e+=t.charAt(r);t=t.slice(e.length),n=n.slice(e.length);var i="",o=null;E(t,function(t,n){if(i)return n>="0"&&n<="9"&&(i+=n,!0);o=t,n>="0"&&n<="9"&&(i+=n)});var a="",u=null;return E(n,function(t,n){if(a)return n>="0"&&n<="9"&&(a+=n,!0);u=t,n>="0"&&n<="9"&&(a+=n)}),i.length&&a.length&&o===u&&t.substring(0,o)===n.substring(0,u)?Math.sign(i-a):t>n?1:-1};A(Object.keys(l),function(t){var n=l[t],e=String.prototype,r=e[t];e[t]=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return r&&e.length===r.length?r.apply(this,e):n.apply(void 0,[this].concat(e))}});var Kt,Qt=function(t){return on("abcdefghijklmnopqrstuvwxyz".split(""),t)},tn=function(t){return on("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},nn=function(t){return on("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},en=function(t){return on("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},rn=function(t){return on("0123456789".split(""),t)},on=function(t,n){for(var e="",r=0;r<n;r++)e+=t[Math.floor(1e3*Math.random())%t.length];return e},an=(Kt=0,function(){return Kt++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(Kt.toString(36),"_").concat(nn(5))});function un(t){return un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(t)}function ln(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,cn(r.key),r)}}function cn(t){var n=function(t){if("object"!=un(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=un(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==un(n)?n:n+""}function fn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}var sn=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=fn(t,this,pn).call(this,n);var r={left:0,top:0};if(e instanceof Element){var i=e.getBoundingClientRect();r={left:window.scrollX+i.left,top:window.scrollY+i.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=fn(t,this,pn).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=fn(t,this,pn).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&ln(n.prototype,null),e&&ln(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function pn(t){var n,e,r,i,o,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(i=null!==(o=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==o?o:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==i?i:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const dn=sn;function vn(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=gn(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw o}}}}function hn(t){return function(t){if(Array.isArray(t))return mn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||gn(t)||function(){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 yn(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,a,u=[],l=!0,c=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,n)||gn(t,n)||function(){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 gn(t,n){if(t){if("string"==typeof t)return mn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?mn(t,n):void 0}}function mn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=sn);var bn=new Map,wn=["longtap","dbltap"],Sn=new Set;function En(t,n){var e={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:n,stopPropagation:function(){e._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){e._immediateStopped=!0,e._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(e,{get:function(n,e,r){if(e in n)return Reflect.get(n,e,r);var i=t[e];return G(i)?i.bind(t):i}})}function An(t){return function(t){if(Array.isArray(t))return jn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return jn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?jn(t,n):void 0}}(t)||function(){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 jn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var On=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],Cn={children:function(t,n){return n?this.find(t,":scope > ".concat(n)):Array.from(t.children)},child:function(t,n){return this.first(this.children(t,n))},find:function(t,n){if(void 0===n&&(n=t,t=document),n instanceof Element&&(n=[n]),tt(n))return j(Array.from(n),function(n,e){return e instanceof Element&&(t===e||t.contains(e))?e:null});try{return Array.from(t.querySelectorAll(n))}catch(t){return[]}},findOne:function(t,n){var e;return null!==(e=this.find(t,n)[0])&&void 0!==e?e:null},findByData:function(t,n,e){if(void 0===e)return this.find(t,"[data-".concat(n,"]"));var r=CSS.escape(e+"");return this.find(t,"[data-".concat(n,'="').concat(r,'"]'))},findOneByData:function(t,n,e){var r;return null!==(r=this.findByData(t,n,e)[0])&&void 0!==r?r:null},addClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).add.apply(n,An(e))}),t},removeClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).remove.apply(n,An(e))}),t},toggleClass:function(t,n,e){return A(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){return t.classList.toggle(n,e)}),t},hasClass:function(t,n){if(!n)return!1;var e=!0;return A(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!N(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return A(r,function(e){H(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return A([].concat(r).reverse(),function(e){H(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||nt(n)?Array.from(n).forEach(function(t){return t.remove()}):t.find(n).forEach(function(t){return t.remove()})})},closest:function(t,n){if(n instanceof Element){if(t===n)return t;for(var e=t.parentElement;e;){if(e===n)return e;e=e.parentElement}return null}return void 0===n?t:t.closest(n)},next:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.nextElementSibling;return n?e&&e.matches(n)?e:null:e},prev:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.previousElementSibling;return n?e&&e.matches(n)?e:null:e},nextAll:function(t,n){for(var e=[],r=t.nextElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.nextElementSibling;return e},prevAll:function(t,n){for(var e=[],r=t.previousElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.previousElementSibling;return e},index:function(t,n){return this.prevAll(t,n).length},nextUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var i=t.nextElementSibling;i&&!(e?i===n:i.matches(n));)r.push(i),i=i.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var i=t.previousElementSibling;i&&!(e?i===n:i.matches(n));)r.push(i),i=i.previousElementSibling;return r},wrap:function(t,n){return n.isConnected||t.parentNode.insertBefore(n,t),this.append(n,t),t},attr:function(t,n,e){return void 0===e?t.getAttribute(n):(null===e?t.removeAttribute(n):t.setAttribute(n,e),t)},prop:function(t,n,e){return void 0===e?t[n]:(t[n]=e,t)},html:function(t,n){return void 0===n?t.innerHTML:(t.innerHTML=n,t)},text:function(t,n){return void 0===n?t.innerText:(t.innerText=n,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var n;n=G(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",n)}return t.style.display="none",t},show:function(t){var n=this.data(t,"__display__");return void 0===n?t.style.removeProperty("display"):(t.style.display=n,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,n,e){var r=this;if(void 0===n&&void 0===e)return t.dataset;if(Z(n))return E(n,function(n,e){return r.data(t,n,e)}),t;var i=/^data-/.test(n+""),o=Wt(i?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[o]:null===e?(delete t.dataset[o],t):(t.dataset[o]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var r=this;if(H(n)){var i=n.startsWith("--")?n:Wt(n);if(void 0===e){if(window.getComputedStyle){var o=window.getComputedStyle(t,null);return o.getPropertyValue(n)||o[Wt(n)]||""}return t.style[Wt(n)]||""}i.startsWith("--")?t.style.setProperty(i,String(e)):("number"!=typeof e||N(i,On)||(e+="px"),t.style[i]=e)}else E(n,function(n,e){r.css(t,n,e)});return t},closestFind:function(t,n,e){var r=this.closest(t,n);return r?this.find(r,e):[]},closestFindOne:function(t,n,e){var r=this.closest(t,n);return r?this.findOne(r,e):null},first:function(t){var n;return t instanceof Element?t:null!==(n=Array.from(t)[0])&&void 0!==n?n:null},last:function(t){var n;if(t instanceof Element)return t;var e=Array.from(t);return null!==(n=e[e.length-1])&&void 0!==n?n:null},create:function(t){if(!H(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var n=document.createElement("template");n.innerHTML=t.trim();var e=n.content;return 1===e.childElementCount&&1===e.children.length?e.firstElementChild:e.cloneNode(!0)},eq:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(n)>=t.length?null:(n<0&&(n=t.length+n),t[n])},after:function(t,n){return t.parentElement?(H(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?(H(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,n){var e=t instanceof Element?[t]:Array.from(t),r=H(n);return e.filter(function(t){return r?!t.matches(n):t!==n})},collide:function(t,n){var e=t.getBoundingClientRect(),r=n.getBoundingClientRect();return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y},matches:function(t,n){return!!t&&(n instanceof Element?n===t:t.matches(n))},replaceChild:function(t,n,e){return t.replaceChild(n,e)},replaceChildren:function(t){for(var n=this,e=[],r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return A(i,function(t){H(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if(ft(t))return{top:t.scrollY,left:t.scrollX};if(st(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var n=t.getBoundingClientRect(),e=this.offset(window);return{top:n.top+e.top,left:n.left+e.left}},isEditable:function(t){var n;return 3===(null===(n=t)||void 0===n?void 0:n.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&(N(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,n,e,r,i){return G(e)&&(i=r,r=e,e=null),A(n.split(" "),function(n){var o=yn(n.split("."),2),a=o[0],u=o[1],l=function(n){if(!n.cancelBubble){var e,r=function(t,n){for(var e=[],r=3===t.nodeType?t.parentNode:t;r&&(e.push(r),r!==n);)r=r.parentNode;return e}(n.target,t),i=hn(bn.get(t)),o=vn(r);try{for(o.s();!(e=o.n()).done;){var a,u=e.value,l=!1,c=vn(i);try{for(c.s();!(a=c.n()).done;){var f=a.value;if(f.event===n.type){if(f.selector){if(!u.matches(f.selector))continue}else if(u!==t)continue;var s=En(n,u);if(f.handler.call(u,s),s._immediateStopped)return;s._propagationStopped&&(l=!0)}}}catch(t){c.e(t)}finally{c.f()}if(l)return}}catch(t){o.e(t)}finally{o.f()}}},c=bn.get(t);c||(c=[],bn.set(t,c)),N(a,wn)&&function(t){var n,e,r,i,o,a,u;null!=Sn&&Sn.has(t)||("longtap"===t&&(r=null,i=0,o=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=dn.getViewportPosition(t);i=n.x,o=n.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var n=dn.getViewportPosition(t);Math.hypot(n.x-i,n.y-o)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=dn.getViewportPosition(t);else{var i=dn.getViewportPosition(t);Math.hypot(i.x-e.x,i.y-e.y)<=40&&r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),n=Date.now(),e=i}},{passive:!0})),Sn.add(t))}(a);var f=j(c,function(t,n){return n.event});N(a,f)||t.addEventListener(a,l,i),c.push({event:a,handler:r,selector:e,listener:l,namespace:u,options:i})}),t},off:function(t,n,e,r,i){G(e)&&(i=r,r=e,e=null);var o=bn.get(t);if(!o)return t;var a=n?n.split(" "):[void 0];return A(a,function(n){var a=yn(void 0===n?[void 0,void 0]:n.split("."),2),u=a[0],l=a[1],c=void 0!==(u=u||void 0),f=void 0!==l;A(hn(o).reverse(),function(n){if((!c&&!f||c&&!f&&n.event===u||!c&&f&&n.namespace===l||c&&f&&n.event===u&&n.namespace===l)&&(void 0===u||n.event===u)&&(void 0===r||n.handler===r)&&(void 0===e||n.selector===e)&&(void 0===l||n.namespace===l)&&(void 0===i||n.options===i)){var a=o.indexOf(n);-1!==a&&o.splice(a,1),j(o,function(t,n){return n.event===u?n:null})[0]||t.removeEventListener(n.event,n.listener,n.options)}})}),t}};function xn(t){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(t)}function Pn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Tn(r.key),r)}}function Tn(t){var n=function(t){if("object"!=xn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=xn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==xn(n)?n:n+""}function Ln(t,n){return t.get(Mn(t,n))}function Mn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=Cn);var kn=new WeakMap,In=function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,n,e){(function(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,n),n.set(t,e)}(this,kn,{})},n=[{key:"addListener",value:function(t,n,e){var r=this;if(!G(n))throw new Error("Callback must be a function.");if(!H(t))throw new Error("Events name must be a string separated by comma.");for(var i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];var u={callback:n,context:e,args:o};return E(t.split(","),function(t,n){if(!n)return!0;n=n.trim(),r.hasListener(n)?Ln(kn,r)[n].push(u):Ln(kn,r)[n]=[u]}),this}},{key:"addListenerOnce",value:function(t,n,e){for(var r=this,i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return E(t.split(","),function(t,i){if(!(i=i.trim()))return!0;var a=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];n.apply(e,[i].concat(o).concat(u.slice(1))),r.removeListener(i,a)};r.addListener(i,a,e)}),this}},{key:"dispatch",value:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(!H(t))throw new Error("Events name must be a string seperated by comma.");return E(t.split(","),function(t,e){return!(e=e.trim())||(n.hasListener(e)?void E(Ln(kn,n)[e],function(t,n){n.callback.apply(n.context,[e].concat(n.args).concat(r))}):(console.warn("No listeners found for event: ".concat(e)),!0))}),this}},{key:"hasListener",value:function(t,n,e){return Q(n)?!Q(Ln(kn,this)[t]):!!j(Ln(kn,this)[t],function(t,r){return r.callback===n&&r.context===e||null}).length}},{key:"removeListener",value:function(t,n,e){var r=this;return this.hasListener(t,n,e)&&(Q(n)?Ln(kn,this)[t].splice(0):E(Ln(kn,this)[t],function(n){return Ln(kn,r)[t].splice(n,1),delete Ln(kn,r)[t],!1})),this}},{key:"getListeners",value:function(t){return t?Ln(kn,this)[t]||[]:Ln(kn,this)}},{key:"reset",value:function(){var t,n;n={},(t=kn).set(Mn(t,this),n)}}],n&&Pn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(),_n=new In;function Dn(t){return Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(t)}function Un(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Nn(r.key),r)}}function Nn(t){var n=function(t){if("object"!=Dn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Dn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Dn(n)?n:n+""}function Rn(t,n,e){Bn(t,n),n.set(t,e)}function Bn(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fn(t,n){return t.get(Xn(t,n))}function qn(t,n,e){return t.set(Xn(t,n),e),e}function Xn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=_n);var Yn=new WeakMap,zn=new WeakMap,Wn=new WeakSet,$n=function(){return t=function t(n,e){var r;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),Bn(this,r=Wn),r.add(this),Rn(this,Yn,void 0),Rn(this,zn,void 0),Xn(Wn,this,Hn).call(this,n),this.setLang(e)},n=[{key:"translate",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";if(n=void 0===n?this.getLang():n,void 0!==Fn(zn,this)[e]&&void 0!==Fn(zn,this)[e][n]&&void 0!==Fn(zn,this)[e][n][t]){var r=Fn(zn,this)[e][n][t];return Xn(Wn,this,Gn).call(this,r)}return"en"!==n?this.translate(t,"en",e):t}},{key:"translateFrom",value:function(t,n,e){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var o=null===(r=Fn(zn,this))||void 0===r?void 0:r[i];if(!o)return t;var a=null==o?void 0:o[n],u=null==o?void 0:o[e];if(!a||!u)return t;var l=Xn(Wn,this,Vn).call(this,a,t);if(!l)return t;var c=u[l],f=Xn(Wn,this,Gn).call(this,c);return null!=f?f:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return Fn(Yn,this)}},{key:"setLang",value:function(t){t||("undefined"!=typeof navigator&&navigator.language?t=navigator.language:"undefined"!=typeof process&&process.env&&(t=process.env.LANG||process.env.LC_ALL||process.env.LC_MESSAGES)),qn(Yn,this,(t||"en").trim().toLowerCase().slice(0,2))}}],n&&Un(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function Hn(t){var n={},e={};E(t,function(t,r){E(r,function(r,i){Z(i)?(void 0===n[t]&&(n[t]={}),n[t][r]=i):(void 0===e[t]&&(e[t]={}),e[t][r]=i)})}),qn(zn,this,C(!0,n,{core:C({},n.core||{},e)}))}function Vn(t,n){for(var e in t)if(Xn(Wn,this,Gn).call(this,t[e])===n)return e;return null}function Gn(t){return G(t)?t():t}function Zn(t){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(t)}function Jn(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function Kn(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Jn(Object(e),!0).forEach(function(n){Qn(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Jn(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Qn(t,n,e){return(n=function(t){var n=function(t){if("object"!=Zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Zn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Zn(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function te(t){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te(t)}function ne(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ee(r.key),r)}}function ee(t){var n=function(t){if("object"!=te(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=te(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==te(n)?n:n+""}function re(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=$n),Kn(Kn(Kn(Kn(Kn(Kn(Kn({},l),a),i),u),c),o),r);var ie=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=re(t,this,oe).call(this,n);var r={left:0,top:0};if(e instanceof Element){var i=e.getBoundingClientRect();r={left:window.scrollX+i.left,top:window.scrollY+i.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=re(t,this,oe).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=re(t,this,oe).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&ne(n.prototype,null),e&&ne(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function oe(t){var n,e,r,i,o,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(i=null!==(o=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==o?o:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==i?i:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const ae=ie;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=ie)},37(t,n,e){e.d(n,{default:()=>w});var r=e(531),i=e(385);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var n=function(t){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=o(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(n)?n:n+""}function l(t,n,e){c(t,n),n.set(t,e)}function c(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(t,n){return t.get(p(t,n))}function s(t,n,e){return t.set(p(t,n),e),e}function p(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,v=new WeakMap,h=new WeakSet,y=function(){return t=function t(n,e){var r;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,r=h),r.add(this),l(this,d,void 0),l(this,v,void 0),p(h,this,g).call(this,n),this.setLang(e)},n=[{key:"translate",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";if(n=void 0===n?this.getLang():n,void 0!==f(v,this)[e]&&void 0!==f(v,this)[e][n]&&void 0!==f(v,this)[e][n][t]){var r=f(v,this)[e][n][t];return p(h,this,b).call(this,r)}return"en"!==n?this.translate(t,"en",e):t}},{key:"translateFrom",value:function(t,n,e){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var o=null===(r=f(v,this))||void 0===r?void 0:r[i];if(!o)return t;var a=null==o?void 0:o[n],u=null==o?void 0:o[e];if(!a||!u)return t;var l=p(h,this,m).call(this,a,t);if(!l)return t;var c=u[l],s=p(h,this,b).call(this,c);return null!=s?s:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return f(d,this)}},{key:"setLang",value:function(t){t||("undefined"!=typeof navigator&&navigator.language?t=navigator.language:"undefined"!=typeof process&&process.env&&(t=process.env.LANG||process.env.LC_ALL||process.env.LC_MESSAGES)),s(d,this,(t||"en").trim().toLowerCase().slice(0,2))}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function g(t){var n={},e={};(0,i.each)(t,function(t,o){(0,i.each)(o,function(i,o){(0,r.isPlainObject)(o)?(void 0===n[t]&&(n[t]={}),n[t][i]=o):(void 0===e[t]&&(e[t]={}),e[t][i]=o)})}),s(v,this,(0,i.extend)(!0,n,{core:(0,i.extend)({},n.core||{},e)}))}function m(t,n){for(var e in t)if(p(h,this,b).call(this,t[e])===n)return e;return null}function b(t){return(0,r.isFunction)(t)?t():t}const w=y;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=y)},626(t,n,e){e.r(n),e.d(n,{arrayDiff:()=>p,arrayUnique:()=>f,array_diff:()=>d,array_unique:()=>s,inArray:()=>u,indexOf:()=>l,lastIndexOf:()=>c,range:()=>v});var r=e(385),i=e(531),o=e(245),a=e(82),u=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=!1;return(0,r.each)(n,function(n,r){if(n>=e)if(o){if(r===t)return u=!0,!1}else{if((0,i.isObject)(t)&&(0,i.isObject)(r))return u=(0,a.equals)(r,t),!1;if((0,i.isArray)(t)&&(0,i.isObject)(r))return u=(0,a.equals)(r,t),!1;if(r==t)return u=!0,!1}}),u},l=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=(0,i.isString)(t)?(0,r.map)(t,function(t,n){return n}):t;for(e=e<0?Math.ceil(e)+o.length:Math.floor(e);e<o.length;e++)if(e in o&&o[e]===n)return e;return-1},c=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=(0,i.isString)(t)?(0,r.map)(t,function(t,n){return n}):t;for(e=e<0?o.length+Math.ceil(e):Math.floor(e);e>=0;e--)if(e in o&&o[e]===n)return e;return-1},f=function(t){return t.filter(function(t,n,e){return n===l(e,t)})},s=f,p=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!u(t,n,0,e)})},d=p,v=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=(0,o.round)(t),e=(0,o.round)(e);var r=[];if((0,i.isUndefined)(n)||t<1||0===e||t<Math.abs(e))return r;var a=t*e;if((0,i.isString)(n)){n=n.charCodeAt(0);for(var u=0;e>0?u<a:u>a;u+=e)r.push(String.fromCharCode(n+u))}else if((0,i.isInteger)(n))for(var l=0;e>0?l<a:l>a;l+=e)r.push(n+l);return r}},765(t,n,e){e.d(n,{default:()=>S});var r=e(531),i=e(54),o=e(385),a=e(626),u=e(153);function l(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=s(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw o}}}}function c(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){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 f(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,a,u=[],l=!0,c=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,n)||s(t,n)||function(){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 s(t,n){if(t){if("string"==typeof t)return p(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?p(t,n):void 0}}function p(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var d=new Map,v=["longtap","dbltap"],h=new Set;function y(t,n){var e={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:n,stopPropagation:function(){e._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){e._immediateStopped=!0,e._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(e,{get:function(n,e,i){if(e in n)return Reflect.get(n,e,i);var o=t[e];return(0,r.isFunction)(o)?o.bind(t):o}})}function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return m(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?m(t,n):void 0}}(t)||function(){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 m(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var b=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],w={children:function(t,n){return n?this.find(t,":scope > ".concat(n)):Array.from(t.children)},child:function(t,n){return this.first(this.children(t,n))},find:function(t,n){if(void 0===n&&(n=t,t=document),n instanceof Element&&(n=[n]),(0,r.isArrayLike)(n))return(0,o.map)(Array.from(n),function(n,e){return e instanceof Element&&(t===e||t.contains(e))?e:null});try{return Array.from(t.querySelectorAll(n))}catch(t){return[]}},findOne:function(t,n){var e;return null!==(e=this.find(t,n)[0])&&void 0!==e?e:null},findByData:function(t,n,e){if(void 0===e)return this.find(t,"[data-".concat(n,"]"));var r=CSS.escape(e+"");return this.find(t,"[data-".concat(n,'="').concat(r,'"]'))},findOneByData:function(t,n,e){var r;return null!==(r=this.findByData(t,n,e)[0])&&void 0!==r?r:null},addClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).add.apply(n,g(e))}),t},removeClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).remove.apply(n,g(e))}),t},toggleClass:function(t,n,e){return(0,o.foreach)(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){return t.classList.toggle(n,e)}),t},hasClass:function(t,n){if(!n)return!1;var e=!0;return(0,o.foreach)(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!(0,a.inArray)(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];return(0,o.foreach)(i,function(e){(0,r.isString)(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];return(0,o.foreach)([].concat(i).reverse(),function(e){(0,r.isString)(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||(0,r.isArray)(n)?Array.from(n).forEach(function(t){return t.remove()}):t.find(n).forEach(function(t){return t.remove()})})},closest:function(t,n){if(n instanceof Element){if(t===n)return t;for(var e=t.parentElement;e;){if(e===n)return e;e=e.parentElement}return null}return void 0===n?t:t.closest(n)},next:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.nextElementSibling;return n?e&&e.matches(n)?e:null:e},prev:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.previousElementSibling;return n?e&&e.matches(n)?e:null:e},nextAll:function(t,n){for(var e=[],r=t.nextElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.nextElementSibling;return e},prevAll:function(t,n){for(var e=[],r=t.previousElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.previousElementSibling;return e},index:function(t,n){return this.prevAll(t,n).length},nextUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var i=t.nextElementSibling;i&&!(e?i===n:i.matches(n));)r.push(i),i=i.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var i=t.previousElementSibling;i&&!(e?i===n:i.matches(n));)r.push(i),i=i.previousElementSibling;return r},wrap:function(t,n){return n.isConnected||t.parentNode.insertBefore(n,t),this.append(n,t),t},attr:function(t,n,e){return void 0===e?t.getAttribute(n):(null===e?t.removeAttribute(n):t.setAttribute(n,e),t)},prop:function(t,n,e){return void 0===e?t[n]:(t[n]=e,t)},html:function(t,n){return void 0===n?t.innerHTML:(t.innerHTML=n,t)},text:function(t,n){return void 0===n?t.innerText:(t.innerText=n,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var n;n=(0,r.isFunction)(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",n)}return t.style.display="none",t},show:function(t){var n=this.data(t,"__display__");return void 0===n?t.style.removeProperty("display"):(t.style.display=n,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,n,e){var a=this;if(void 0===n&&void 0===e)return t.dataset;if((0,r.isPlainObject)(n))return(0,o.each)(n,function(n,e){return a.data(t,n,e)}),t;var u=/^data-/.test(n+""),l=(0,i.camelCase)(u?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[l]:null===e?(delete t.dataset[l],t):(t.dataset[l]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var u=this;if((0,r.isString)(n)){var l=n.startsWith("--")?n:(0,i.camelCase)(n);if(void 0===e){if(window.getComputedStyle){var c=window.getComputedStyle(t,null);return c.getPropertyValue(n)||c[(0,i.camelCase)(n)]||""}return t.style[(0,i.camelCase)(n)]||""}l.startsWith("--")?t.style.setProperty(l,String(e)):("number"!=typeof e||(0,a.inArray)(l,b)||(e+="px"),t.style[l]=e)}else(0,o.each)(n,function(n,e){u.css(t,n,e)});return t},closestFind:function(t,n,e){var r=this.closest(t,n);return r?this.find(r,e):[]},closestFindOne:function(t,n,e){var r=this.closest(t,n);return r?this.findOne(r,e):null},first:function(t){var n;return t instanceof Element?t:null!==(n=Array.from(t)[0])&&void 0!==n?n:null},last:function(t){var n;if(t instanceof Element)return t;var e=Array.from(t);return null!==(n=e[e.length-1])&&void 0!==n?n:null},create:function(t){if(!(0,r.isString)(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var n=document.createElement("template");n.innerHTML=t.trim();var e=n.content;return 1===e.childElementCount&&1===e.children.length?e.firstElementChild:e.cloneNode(!0)},eq:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(n)>=t.length?null:(n<0&&(n=t.length+n),t[n])},after:function(t,n){return t.parentElement?((0,r.isString)(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?((0,r.isString)(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,n){var e=t instanceof Element?[t]:Array.from(t),i=(0,r.isString)(n);return e.filter(function(t){return i?!t.matches(n):t!==n})},collide:function(t,n){var e=t.getBoundingClientRect(),r=n.getBoundingClientRect();return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y},matches:function(t,n){return!!t&&(n instanceof Element?n===t:t.matches(n))},replaceChild:function(t,n,e){return t.replaceChild(n,e)},replaceChildren:function(t){for(var n=this,e=[],i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];return(0,o.foreach)(a,function(t){(0,r.isString)(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if((0,r.isWindow)(t))return{top:t.scrollY,left:t.scrollX};if((0,r.isDocument)(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var n=t.getBoundingClientRect(),e=this.offset(window);return{top:n.top+e.top,left:n.left+e.left}},isEditable:function(t){var n;return 3===(null===(n=t)||void 0===n?void 0:n.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&((0,a.inArray)(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,n,e,i,s){return(0,r.isFunction)(e)&&(s=i,i=e,e=null),(0,o.foreach)(n.split(" "),function(n){var r=f(n.split("."),2),p=r[0],g=r[1],m=function(n){if(!n.cancelBubble){var e,r=function(t,n){for(var e=[],r=3===t.nodeType?t.parentNode:t;r&&(e.push(r),r!==n);)r=r.parentNode;return e}(n.target,t),i=c(d.get(t)),o=l(r);try{for(o.s();!(e=o.n()).done;){var a,u=e.value,f=!1,s=l(i);try{for(s.s();!(a=s.n()).done;){var p=a.value;if(p.event===n.type){if(p.selector){if(!u.matches(p.selector))continue}else if(u!==t)continue;var v=y(n,u);if(p.handler.call(u,v),v._immediateStopped)return;v._propagationStopped&&(f=!0)}}}catch(t){s.e(t)}finally{s.f()}if(f)return}}catch(t){o.e(t)}finally{o.f()}}},b=d.get(t);b||(b=[],d.set(t,b)),(0,a.inArray)(p,v)&&function(t){var n,e,r,i,o,a,l;null!=h&&h.has(t)||("longtap"===t&&(r=null,i=0,o=0,a=null,l=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=u.default.getViewportPosition(t);i=n.x,o=n.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var n=u.default.getViewportPosition(t);Math.hypot(n.x-i,n.y-o)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",l),document.addEventListener("touchcancel",l)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=u.default.getViewportPosition(t);else{var i=u.default.getViewportPosition(t);Math.hypot(i.x-e.x,i.y-e.y)<=40&&r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),n=Date.now(),e=i}},{passive:!0})),h.add(t))}(p);var w=(0,o.map)(b,function(t,n){return n.event});(0,a.inArray)(p,w)||t.addEventListener(p,m,s),b.push({event:p,handler:i,selector:e,listener:m,namespace:g,options:s})}),t},off:function(t,n,e,i,a){(0,r.isFunction)(e)&&(a=i,i=e,e=null);var u=d.get(t);if(!u)return t;var l=n?n.split(" "):[void 0];return(0,o.foreach)(l,function(n){var r=f(void 0===n?[void 0,void 0]:n.split("."),2),l=r[0],s=r[1],p=void 0!==(l=l||void 0),d=void 0!==s;(0,o.foreach)(c(u).reverse(),function(n){if((!p&&!d||p&&!d&&n.event===l||!p&&d&&n.namespace===s||p&&d&&n.event===l&&n.namespace===s)&&(void 0===l||n.event===l)&&(void 0===i||n.handler===i)&&(void 0===e||n.selector===e)&&(void 0===s||n.namespace===s)&&(void 0===a||n.options===a)){var r=u.indexOf(n);-1!==r&&u.splice(r,1),(0,o.map)(u,function(t,n){return n.event===l?n:null})[0]||t.removeEventListener(n.event,n.listener,n.options)}})}),t}};const S=w;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=w)},74(t,n,e){e.d(n,{default:()=>d});var r=e(531),i=e(385);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var n=function(t){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=o(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(n)?n:n+""}function l(t,n){return t.get(c(t,n))}function c(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,s=function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,n,e){(function(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,n),n.set(t,e)}(this,f,{})},n=[{key:"addListener",value:function(t,n,e){var o=this;if(!(0,r.isFunction)(n))throw new Error("Callback must be a function.");if(!(0,r.isString)(t))throw new Error("Events name must be a string separated by comma.");for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];var s={callback:n,context:e,args:u};return(0,i.each)(t.split(","),function(t,n){if(!n)return!0;n=n.trim(),o.hasListener(n)?l(f,o)[n].push(s):l(f,o)[n]=[s]}),this}},{key:"addListenerOnce",value:function(t,n,e){for(var r=this,o=arguments.length,a=new Array(o>3?o-3:0),u=3;u<o;u++)a[u-3]=arguments[u];return(0,i.each)(t.split(","),function(t,i){if(!(i=i.trim()))return!0;var o=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];n.apply(e,[i].concat(a).concat(u.slice(1))),r.removeListener(i,o)};r.addListener(i,o,e)}),this}},{key:"dispatch",value:function(t){for(var n=this,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];if(!(0,r.isString)(t))throw new Error("Events name must be a string seperated by comma.");return(0,i.each)(t.split(","),function(t,e){return!(e=e.trim())||(n.hasListener(e)?void(0,i.each)(l(f,n)[e],function(t,n){n.callback.apply(n.context,[e].concat(n.args).concat(o))}):(console.warn("No listeners found for event: ".concat(e)),!0))}),this}},{key:"hasListener",value:function(t,n,e){return(0,r.isUndefined)(n)?!(0,r.isUndefined)(l(f,this)[t]):!!(0,i.map)(l(f,this)[t],function(t,r){return r.callback===n&&r.context===e||null}).length}},{key:"removeListener",value:function(t,n,e){var o=this;return this.hasListener(t,n,e)&&((0,r.isUndefined)(n)?l(f,this)[t].splice(0):(0,i.each)(l(f,this)[t],function(n){return l(f,o)[t].splice(n,1),delete l(f,o)[t],!1})),this}},{key:"getListeners",value:function(t){return t?l(f,this)[t]||[]:l(f,this)}},{key:"reset",value:function(){var t,n;n={},(t=f).set(c(t,this),n)}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(),p=new s;const d=p;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=p)},531(t,n,e){e.r(n),e.d(n,{isArray:()=>v,isArrayLike:()=>d,isBool:()=>s,isBoolean:()=>f,isDate:()=>h,isDocument:()=>j,isDomElement:()=>O,isEvent:()=>y,isEventSupported:()=>S,isFloat:()=>b,isFunction:()=>l,isInt:()=>m,isInteger:()=>g,isObject:()=>u,isPlainObject:()=>c,isScalar:()=>w,isString:()=>a,isTouchDevice:()=>E,isUndefined:()=>p,isWindow:()=>A});var r=e(626);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o,a=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},u=function(t){return!!t&&!v(t)&&"object"===i(t)},l=function(t){return!!t&&"function"==typeof t},c=function(t){return!1!==u(t)&&(void 0===t.constructor||!1!==u(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},f=function(t){return!0===t||!1===t},s=f,p=function(t){return void 0===t},d=function(t){return!!t&&!a(t)&&!l(t)&&m(t.length)&&Number.isFinite(t.length)},v=function(t){return Array.isArray(t)},h=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},y=function(t){return u(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},g=function(t){return/^[-+]?\d+$/.test(t+"")},m=g,b=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},w=function(t){var n=i(t);return null===t||(0,r.inArray)(n,["string","number","bigint","symbol","boolean"])},S=(o={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var n=document.createElement(o[t]||"div"),e=(t="on"+t)in n;return n=null,e}),E=function(){return S("touchstart")},A=function(t){return!!t&&t===t.window},j=function(t){return!!t&&9===t.nodeType},O=function(t){return u(t)&&1===t.nodeType&&!c(t)}},245(t,n,e){e.r(n),e.d(n,{dec2hex:()=>p,floorTo:()=>u,hex2dec:()=>d,max:()=>f,min:()=>c,plancher:()=>l,round:()=>a});var r=e(385),i=e(531),o=e(54),a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(t*Math.pow(10,n))/Math.pow(10,n)},u=function(t,n){if(n<=0)throw new Error("Precision must be greater than 0");return a(Math.floor(t/n)*n,6)},l=u,c=function(t,n){return s(t,n=(0,i.isFunction)(n)?n:function(t,n){return t<n?-1:1})},f=function(t,n){return s(t,n=(0,i.isFunction)(n)?n:function(t,n){return t>n?-1:1})};function s(t,n){var e;return(0,r.each)(t,function(t,r,i,o){e=0===o||n.call(null,e,r)>0?r:e}),e}var p=function(t){return t.toString(16)},d=function(t){t=(0,o.reverse)(t+"").toUpperCase();var n=0;return(0,r.each)(t,function(t,e){var r="0123456789ABCDEF".indexOf(e);if(-1===r)return n=0,!1;n+=r*Math.pow(2,4*t)}),n}},54(t,n,e){e.r(n),e.d(n,{addUrlParam:()=>M,br2nl:()=>v,camelCase:()=>B,compareMixAlphaDigits:()=>W,decodeHtml:()=>k,escapeRegex:()=>R,f:()=>q,format:()=>F,formatSize:()=>z,hex2rgb:()=>P,hextorgb:()=>T,hilite:()=>Y,htmlquotes:()=>I,htmlsimplequotes:()=>_,insert:()=>w,insertTag:()=>m,lcfirst:()=>g,ltrim:()=>f,nl2br:()=>h,noAccent:()=>d,numberFormat:()=>A,pad:()=>O,parse_url:()=>L,repeat:()=>D,reverse:()=>S,rgb2hex:()=>C,rgbtohex:()=>x,rtrim:()=>s,stripMultipleSpaces:()=>p,stripTags:()=>U,substringIndex:()=>b,thousandSeparator:()=>E,toCssClassName:()=>X,toPrice:()=>j,toUrl:()=>N,trim:()=>c,ucfirst:()=>y});var r=e(531),i=e(245),o=e(626),a=e(385);function u(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return l(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?l(t,n):void 0}}(t)||function(){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 l(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var c=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return f(s(t,n),n)},f=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},s=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},p=function(t){return t.trim().replace(/ +/g," ")},d=function(t){return t.replace(/[àäâ]/g,"a").replace(/[èéêë]/g,"e").replace(/[îïí]/g,"i").replace(/[öô]/g,"o").replace(/[üù]/g,"u").replace(/ç/g,"c").replace(/ÿ/g,"y").replace(/[ÀÄÂ]/g,"A").replace(/[ÈÉÊË]/g,"E").replace(/[ÎÏÍ]/g,"I").replace(/[ÖÔ]/g,"O").replace(/[ÜÙ]/g,"U").replace(/Ç/g,"C").replace(/Ÿ/g,"Y")},v=function(t){return t.split(/<br\s*\/*>/).join("\n")},h=function(t){return t.split("\n").join("<br>")},y=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},g=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},m=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i="<".concat(n,">"),o="</".concat(n,">");return["br","hr","img","link","input"].includes(n)&&(i="<".concat(n,"/>"),o=""),t.slice(0,e)+i+t.slice(e,e+r)+o+t.slice(e+r)},b=function(t,n,e){var r=(t+"").split(n);return e>0?r.splice(e,r.length-e):e<0&&r.splice(0,r.length+e),r.join(n)},w=function(t,n,e){return e>=t.length?t:u(t).reduce(function(t,r,i){return i>0&&i%e===0?t+n+r:t+r},"")},S=function(t){for(var n=[],e=0;e<t.length;e++)n.unshift(t[e]);return n.join("")},E=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if((0,r.isUndefined)(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var i=Math[t>=1e3?"floor":"ceil"](t)+"",o=S(w(S(i),S(n),3));return t.indexOf(".")>0?o+e+b(t,".",-1):o}return(t+"").replace(".",e)},A=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=(0,i.round)(parseFloat(t.replace(",",".")),n)+"",0===n)return E(t,r,o);var a=t.lastIndexOf(".");if(-1===a)return!0===e&&(t+=o+D("0",n)),E(t,r,o);var u=t.slice(a+1).length;return E(n>u?t+"0".repeat(n-u):t.slice(0,a+1+n),r,o)},j=A,O=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return(0,r.isUndefined)(n)||t.length>=n||!(0,o.inArray)(i,["left","right"])?t:"left"===i?e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)+t:t+e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)},C=function(t,n,e){return(0,r.isArray)(t)?C.apply(void 0,u(t)):(0,r.isInteger)(t)&&(0,r.isInteger)(n)&&(0,r.isInteger)(e)?[O((0,i.dec2hex)(parseInt(t)),2,"0").toUpperCase(),O((0,i.dec2hex)(parseInt(n)),2,"0").toUpperCase(),O((0,i.dec2hex)(parseInt(e)),2,"0").toUpperCase()].join(""):""},x=C,P=function(t){if(!(0,r.isString)(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=(0,a.map)(t.slice(-3),function(t,n){return n+""+n}).join(""));for(var n=0;n<t.length;n++)if(-1==="0123456789ABCDEF".indexOf(t[n]))return[];return(0,a.map)(w(t,",",2).split(","),function(t,n){return(0,i.hex2dec)(n)})},T=P,L=function(t){for(var n=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],e=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},i=14;i--;)e[i]&&(r[n[i]]=e[i]);return delete r.source,r},M=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if((0,r.isPlainObject)(n))return(0,a.each)(n,function(n,e){t=M(t,n,e)}),t;var i,o=L(t),u="";(i=t.indexOf("#"))>-1&&(u=t.slice(i),t=t.slice(0,i));var l=encodeURIComponent(n),c=null===e?"":encodeURIComponent(e);if(!o.query)return t+"?"+l+"="+c+u;for(var f=o.query.split("&"),s=!1,p=0;p<f.length;p++)if(f[p].startsWith(l+"=")){f[p]=l+"="+c,s=!0;break}return s||f.push(l+"="+c),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+f.join("&")+u:(o.host||"")+o.path+"?"+f.join("&")+u},k=function(t){return(0,r.isString)(t)?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):""},I=function(t){return(0,r.isString)(t)?t.replace(/"/g,""").replace(/'/g,"'"):""},_=function(t){return(0,r.isString)(t)?t.replace(/'/g,"'"):""},D=function(t,n){return(0,r.isString)(t)&&(0,r.isFloat)(n)?new Array(Math.floor(n)+1).join(t):""},U=function(t,n){if((0,r.isString)(n)){for(var e=new RegExp("<".concat(n,"[^>]*>(.*?)</").concat(n,">|<").concat(n,"[^>]*/>"),"ig");e.test(t);)t=t.replace(e,"$1");return t}return t.replace(/(<([^>]+)>)/gi,"")},N=function(t){return c(d(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},R=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},B=function(t){if(!t)return"";var n="",e=!1,r=!1,i=!1;t=c(t),t=c(t,"_"),t=c(t,"-");var o=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},u=function(t){return"-"===t||"_"===t||" "===t};return(0,a.map)(t,function(t,a){return r=u(n),i=o(n),n=a,u(a)?null:(r?(a=a.toUpperCase(),e=!0):o(a)?((0===t||i&&!e)&&(a=a.toLowerCase()),e=!1):e=!1,a)}).join("")},F=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),i=1;i<n;i++)e[i-1]=arguments[i];return e.length&&(0,a.each)(e,function(n,e){if((0,r.isString)(e)){var i={};i[n]=e,e=i}(0,a.each)(e,function(n,e){t=t.replace(new RegExp("\\{"+n+"\\}","gm"),function(t){return(0,r.isUndefined)(e)?t:e})})}),t},q=F,X=function(t){return t.replace(/[^a-z0-9_-]/gi,function(t){var n=t.charCodeAt(0);return 32===n?"-":"__"+("000"+n.toString(16)).slice(-4)})},Y=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=k(t);var i,o,u=d(t).toLowerCase().replace(/[[\]]+/g,""),l="";if((0,r.isArray)(n)||(n=[n]),(0,a.each)(n,function(t,n){n.length&&(n=k(n),i=d(n).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp(R(i),"g"),l=u.replace(o,"[".concat(i,"]")),u=l)}),!l.length)return t;var c=0,f="",s="end";return(0,a.each)(l,function(n,r){var i=t.charAt(c);"["===r&&"end"===s?(f+="<".concat(e,">"),s="start"):"]"===r&&"start"===s?(f+="</".concat(e,">"),s="end"):(c+=1,f+=i)}),f.replace(/</g,"<").replace(/>/g,">").replace(new RegExp("<".concat(e,">"),"g"),"<".concat(e,">")).replace(new RegExp("</".concat(e,">"),"g"),"</".concat(e,">")).replace(new RegExp("<br>","g"),"<br>")},z=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",e=-1,i=0;do{t/=1024,e++}while(t>999);(0,r.isInteger)(t)||(i=1);var o=(0,a.map)(["k","M","G","T","P","E"],function(t,n){return n+"B"});return A(Math.max(t,0),i,!0,"",n)+" "+o[e]},W=function(t,n){if(t===n)return 0;if((0,r.isInteger)(t)&&(0,r.isInteger)(n))return Math.sign(t-n);for(var e="",i=0;i<Math.min(t.length,n.length)&&t.charAt(i)===n.charAt(i)&&!(0,r.isInteger)(t);i++)e+=t.charAt(i);t=t.slice(e.length),n=n.slice(e.length);var o="",u=null;(0,a.each)(t,function(t,n){if(o)return n>="0"&&n<="9"&&(o+=n,!0);u=t,n>="0"&&n<="9"&&(o+=n)});var l="",c=null;return(0,a.each)(n,function(t,n){if(l)return n>="0"&&n<="9"&&(l+=n,!0);c=t,n>="0"&&n<="9"&&(l+=n)}),o.length&&l.length&&u===c&&t.substring(0,u)===n.substring(0,c)?Math.sign(o-l):t>n?1:-1}},385(t,n,e){e.r(n),e.d(n,{clone:()=>v,each:()=>c,extend:()=>d,foreach:()=>f,map:()=>s,merge:()=>h,reduce:()=>p});var r=e(531),i=e(82);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,a,u=[],l=!0,c=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,n)||u(t,n)||function(){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 a(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=u(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,l=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==e.return||e.return()}finally{if(l)throw o}}}}function u(t,n){if(t){if("string"==typeof t)return l(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?l(t,n):void 0}}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var c=function(t,n,e){if((0,r.isPlainObject)(t)){var i=-1;for(var u in t)if(t.hasOwnProperty(u)&&!1===n.call(null!=e?e:t[u],u,t[u],t,++i))return}else{if((0,r.isString)(t)){for(var l=t.split(""),c=0;c<l.length;c++)if(!1===n.call(null!=e?e:l[c],c,l[c],t,c))return t;return t}if(t instanceof Map){var f,s=0,p=a(t.entries());try{for(p.s();!(f=p.n()).done;){var d=o(f.value,2),v=d[0],h=d[1];if(!1===n.call(null!=e?e:h,v,h,t,s++))return t}}catch(t){p.e(t)}finally{p.f()}}else if(t instanceof Set){var y,g=0,m=a(t.values());try{for(m.s();!(y=m.n()).done;){var b=y.value;if(!1===n.call(null!=e?e:b,g,b,t,g))return t;g++}}catch(t){m.e(t)}finally{m.f()}}else if((0,r.isArrayLike)(t))for(var w=Array.from(t),S=0;S<w.length;S++)if(!1===n.call(e||w[S],S,w[S],w,S))return t}return t},f=function(t,n,e){return c(t,function(t,r,i,o){return n.apply(e||r,[r,t,i,o])},e)},s=function(t,n,e){var r=[];return c(t,function(t,i,o,a){var u=n.call(e,t,i,o,a);null!==u&&r.push(u)}),r},p=function(t,n,e){var o=!(0,r.isUndefined)(e);if(!(0,i.sizeOf)(t)&&!o)throw new Error("Nothing to reduce and no initial value");var a=o?e:s(t,function(t,n,e,r){return 0===r?n:null})[0];return c(t,function(t,e,r,i){(0!==i||o)&&(a=n(a,e,t,i,r))}),a},d=function(){for(var t=!1,n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];if((0,r.isBoolean)(e[0])&&(t=e.shift()),e.length<2||(0,r.isUndefined)(e[0])||null===e[0])return e[0];var o=e[0];return(0,r.isObject)(o)||(e[0]=o={}),f(e.slice(1),function(n){if((0,r.isObject)(n))for(var e in n)t&&(0,r.isPlainObject)(n[e])?o[e]=d(!0,{},o[e],n[e]):o[e]=n[e]}),o},v=function(t){if(!(0,r.isObject)(t)&&!(0,r.isArray)(t)||(0,r.isWindow)(t))return t;var n=(0,r.isObject)(t)?{}:[];return c(t,function(t,e){(0,r.isObject)(e)?n[t]=v(e):n[t]=e}),n},h=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=s(t,function(t,n){return n});c(n,function(t,n){e.push(n)});for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return i.length?h.apply(void 0,[e].concat(i)):e}},82(t,n,e){e.r(n),e.d(n,{debounce:()=>p,equals:()=>a,flatten:()=>c,noop:()=>u,sizeOf:()=>l,strParseFloat:()=>f,throttle:()=>s});var r=e(385),i=e(531);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}e(626);var a=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)return!1;var r=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(o(t)!==o(n)||null===t||null===n)return!1;if((0,i.isArray)(t)||(0,i.isObject)(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if((0,i.isArray)(t)||(0,i.isArray)(n))return!(!(0,i.isArray)(t)||!(0,i.isArray)(n))&&t.length===n.length&&t.every(function(t,i){return r(t,n[i],e)});if((0,i.isObject)(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(n))return!1;if(t instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp)return t.toString()===n.toString();var a=Object.keys(t),u=Object.keys(n);return a.length===u.length&&a.every(function(i){return r(t[i],n[i],e)})}return!1},a=n[0];return n.slice(1).every(function(t){return r(a,t)})},u=function(){},l=function(t){return(0,r.map)(t,u).length},c=function(t){return(0,i.isObject)(t)||(0,i.isArray)(t)?[].concat.apply([],(0,r.map)(t,function(t,n){return c(n)})):t},f=function(t){if(!t)return 0;var n=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(n)?0:n},s=function(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=null,a=0;return function(){for(var u=this,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var s=Date.now();a||e||(a=s);var p=n-(s-a);p<=0||p>n?(a=s,t.apply(i||this,c)):!o&&r&&(o=setTimeout(function(){o=null,a=e?Date.now():0,t.apply(i||u,c)},p))}},p=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=null,o=0;return function(){for(var a=this,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];var f=Date.now();e&&(o||(o=f,t.apply(r||this,l))),clearTimeout(i),i=null,i=setTimeout(function(){o=f,clearTimeout(i),i=null,t.apply(r||a,l)},n)}}}},n={};function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={exports:{}};return t[r](o,o.exports,e),o.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};e.r(r),e.d(r,{Mouse:()=>S.default,Translator:()=>E.default,arrayFunctions:()=>l,default:()=>x,dom:()=>g.default,eventDispatcher:()=>w.default,is:()=>c,math:()=>m,random:()=>i,stringFunctions:()=>o,traversal:()=>a,utils:()=>b});var i={};e.r(i),e.d(i,{rand:()=>h,randAlpha:()=>f,randAlphaCs:()=>s,randAlphaNum:()=>p,randAlphaNumCs:()=>d,randNum:()=>v,uniqid:()=>y});var o=e(54),a=e(385);(0,a.foreach)(Object.keys(o),function(t){var n=o[t],e=String.prototype,r=e[t];e[t]=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return r&&e.length===r.length?r.apply(this,e):n.apply(void 0,[this].concat(e))}});var u,l=e(626),c=e(531),f=function(t){return h("abcdefghijklmnopqrstuvwxyz".split(""),t)},s=function(t){return h("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},p=function(t){return h("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},d=function(t){return h("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},v=function(t){return h("0123456789".split(""),t)},h=function(t,n){for(var e="",r=0;r<n;r++)e+=t[Math.floor(1e3*Math.random())%t.length];return e},y=(u=0,function(){return u++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(u.toString(36),"_").concat(p(5))}),g=e(765),m=e(245),b=e(82),w=e(74),S=e(153),E=e(37);function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}function j(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function O(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?j(Object(e),!0).forEach(function(n){C(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):j(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function C(t,n,e){return(n=function(t){var n=function(t){if("object"!=A(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=A(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==A(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}const x=O(O(O(O(O(O(O({},o),l),a),c),i),m),b);return r})());
|
package/package.json
CHANGED
package/src/Mouse.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import webf from '@webalternatif/js-core'
|
|
2
2
|
|
|
3
3
|
class Mouse {
|
|
4
4
|
/**
|
|
@@ -45,22 +45,30 @@ class Mouse {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
48
|
+
* Normalize an event
|
|
49
|
+
*
|
|
50
|
+
* @param {Event|{originalEvent?: Event}|{detail?: {originalEvent?: Event}}} ev
|
|
51
|
+
* @returns {{clientX:number, clientY:number, pageX:number, pageY:number}|null}
|
|
50
52
|
*/
|
|
51
53
|
static #getEvent(ev) {
|
|
52
|
-
|
|
54
|
+
const e = ev?.detail?.originalEvent ?? ev?.originalEvent ?? ev
|
|
55
|
+
if (!e) return null
|
|
53
56
|
|
|
54
|
-
|
|
55
|
-
const touch = ev.changedTouches?.[0] || ev.touches?.[0]
|
|
57
|
+
const src = e.changedTouches?.[0] ?? e.touches?.[0] ?? e
|
|
56
58
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
const clientX = typeof src.clientX === 'number' ? src.clientX : 0
|
|
60
|
+
const clientY = typeof src.clientY === 'number' ? src.clientY : 0
|
|
61
|
+
|
|
62
|
+
const pageX =
|
|
63
|
+
typeof src.pageX === 'number'
|
|
64
|
+
? src.pageX
|
|
65
|
+
: clientX + ('undefined' !== typeof window ? window.scrollX : 0)
|
|
66
|
+
const pageY =
|
|
67
|
+
typeof src.pageY === 'number'
|
|
68
|
+
? src.pageY
|
|
69
|
+
: clientY + ('undefined' !== typeof window ? window.scrollY : 0)
|
|
62
70
|
|
|
63
|
-
return
|
|
71
|
+
return { clientX, clientY, pageX, pageY }
|
|
64
72
|
}
|
|
65
73
|
}
|
|
66
74
|
|
package/src/dom.js
CHANGED
|
@@ -395,7 +395,7 @@ const dom = {
|
|
|
395
395
|
},
|
|
396
396
|
|
|
397
397
|
/**
|
|
398
|
-
* @param {Element|
|
|
398
|
+
* @param {...(Element|NodeListOf<Element>|Iterable<Element>|string)} els
|
|
399
399
|
* @returns {void}
|
|
400
400
|
*/
|
|
401
401
|
remove(...els) {
|
|
@@ -405,7 +405,7 @@ const dom = {
|
|
|
405
405
|
} else if (el instanceof NodeList || isArray(el)) {
|
|
406
406
|
Array.from(el).forEach((e) => e.remove())
|
|
407
407
|
} else {
|
|
408
|
-
this.
|
|
408
|
+
this.find(el).forEach((e) => e.remove())
|
|
409
409
|
}
|
|
410
410
|
})
|
|
411
411
|
},
|
package/src/onOff.js
CHANGED
|
@@ -84,17 +84,17 @@ const enableDblTap = function () {
|
|
|
84
84
|
let lastTapTime = 0
|
|
85
85
|
let lastPos = null
|
|
86
86
|
|
|
87
|
-
if (isTouchDevice()) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
87
|
+
// if (isTouchDevice()) {
|
|
88
|
+
// document.addEventListener(
|
|
89
|
+
// 'dblclick',
|
|
90
|
+
// (ev) => {
|
|
91
|
+
// ev.preventDefault()
|
|
92
|
+
// ev.stopPropagation()
|
|
93
|
+
// ev.stopImmediatePropagation()
|
|
94
|
+
// },
|
|
95
|
+
// { capture: true },
|
|
96
|
+
// )
|
|
97
|
+
// }
|
|
98
98
|
|
|
99
99
|
const start = (ev) => {
|
|
100
100
|
const target = ev.target
|
package/src/traversal.js
CHANGED
|
@@ -12,7 +12,7 @@ import { sizeOf } from './utils.js'
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @template T
|
|
15
|
-
* @typedef {Array<T> | Set<T> | Map<any, T> | Object<string, T> | string | string[]} Collection
|
|
15
|
+
* @typedef {Array<T> | readonly T[] | Set<T> | Map<any, T> | Object<string, T> | string | string[]} Collection
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
/**
|
package/types/Mouse.d.ts
CHANGED
|
@@ -19,10 +19,21 @@ declare class Mouse {
|
|
|
19
19
|
};
|
|
20
20
|
static getElement(ev: any): Element | null;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
22
|
+
* Normalize an event
|
|
23
|
+
*
|
|
24
|
+
* @param {Event|{originalEvent?: Event}|{detail?: {originalEvent?: Event}}} ev
|
|
25
|
+
* @returns {{clientX:number, clientY:number, pageX:number, pageY:number}|null}
|
|
24
26
|
*/
|
|
25
27
|
static "__#1@#getEvent"(ev: Event | {
|
|
26
28
|
originalEvent?: Event;
|
|
27
|
-
}
|
|
29
|
+
} | {
|
|
30
|
+
detail?: {
|
|
31
|
+
originalEvent?: Event;
|
|
32
|
+
};
|
|
33
|
+
}): {
|
|
34
|
+
clientX: number;
|
|
35
|
+
clientY: number;
|
|
36
|
+
pageX: number;
|
|
37
|
+
pageY: number;
|
|
38
|
+
} | null;
|
|
28
39
|
}
|
package/types/dom.d.ts
CHANGED
|
@@ -218,10 +218,10 @@ declare namespace dom {
|
|
|
218
218
|
*/
|
|
219
219
|
export function prepend(node: Node, ...children: (Node | string)[]): Node;
|
|
220
220
|
/**
|
|
221
|
-
* @param {Element|
|
|
221
|
+
* @param {...(Element|NodeListOf<Element>|Iterable<Element>|string)} els
|
|
222
222
|
* @returns {void}
|
|
223
223
|
*/
|
|
224
|
-
export function remove(...els: Element |
|
|
224
|
+
export function remove(...els: (Element | NodeListOf<Element> | Iterable<Element> | string)[]): void;
|
|
225
225
|
/**
|
|
226
226
|
* Returns the closest ancestor of an element matching a selector or a specific element.
|
|
227
227
|
*
|
package/types/traversal.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export function reduce<T, R>(o: Collection<T>, callback: (accumulator: R | T, va
|
|
|
5
5
|
export function extend<T>(...args: (boolean | T)[]): T;
|
|
6
6
|
export function clone<T>(o: T): T;
|
|
7
7
|
export function merge<T>(first: Collection<T>, second?: Collection<T>, ...args: Collection<T>[]): Array<T>;
|
|
8
|
-
export type Collection<T> = Array<T> | Set<T> | Map<any, T> | {
|
|
8
|
+
export type Collection<T> = Array<T> | readonly T[] | Set<T> | Map<any, T> | {
|
|
9
9
|
[x: string]: T;
|
|
10
10
|
} | string | string[];
|