@dnb/eufemia 9.39.0 → 9.39.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to @dnb/eufemia will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [9.39.1](https://github.com/dnbexperience/eufemia/compare/v9.39.0...v9.39.1) (2022-11-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **HeightAnimation:** avoid usage of useLayoutEffect during SSR ([#1749](https://github.com/dnbexperience/eufemia/issues/1749)) ([667059b](https://github.com/dnbexperience/eufemia/commit/667059b41652a0c92db958a019d19949c9c08655))
12
+
6
13
  # [9.39.0](https://github.com/dnbexperience/eufemia/compare/v9.38.0...v9.39.0) (2022-11-22)
7
14
 
8
15
 
@@ -45,6 +45,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
45
45
 
46
46
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
47
47
 
48
+ var useLayoutEffect = typeof window === 'undefined' ? _react.default.useEffect : _react.default.useLayoutEffect;
49
+
48
50
  function useHeightAnimation(targetRef) {
49
51
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
50
52
  _ref$open = _ref.open,
@@ -95,7 +97,7 @@ function useHeightAnimation(targetRef) {
95
97
  return setIsMounted(false);
96
98
  }, []);
97
99
 
98
- _react.default.useLayoutEffect(function () {
100
+ useLayoutEffect(function () {
99
101
  animRef.current = new _HeightAnimationInstance.default({
100
102
  animate: animate
101
103
  });
@@ -158,7 +160,6 @@ function useHeightAnimation(targetRef) {
158
160
  return (_animRef$current = animRef.current) === null || _animRef$current === void 0 ? void 0 : _animRef$current.remove();
159
161
  };
160
162
  }, [animate]);
161
-
162
163
  useOpenClose({
163
164
  open: open,
164
165
  animRef: animRef,
@@ -185,8 +186,7 @@ function useOpenClose(_ref2) {
185
186
  animRef = _ref2.animRef,
186
187
  targetRef = _ref2.targetRef,
187
188
  isInitialRender = _ref2.isInitialRender;
188
-
189
- _react.default.useLayoutEffect(function () {
189
+ useLayoutEffect(function () {
190
190
  if (!targetRef.current) {
191
191
  return;
192
192
  }
@@ -236,7 +236,7 @@ function useAdjust(_ref3) {
236
236
  }
237
237
  }, [children]);
238
238
 
239
- _react.default.useLayoutEffect(function () {
239
+ useLayoutEffect(function () {
240
240
  if (shouldAdjust()) {
241
241
  animRef.current.elem.style.height = '';
242
242
  animRef.current.adjustTo(fromHeight.current, animRef.current.getHeight());
@@ -1,3 +1,7 @@
1
- export * from "../components/table/Table";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Table from '../components/table/Table';
6
+ export * from '../components/table/Table';
2
7
  export default Table;
3
- import Table from "../components/table/Table";
@@ -1,3 +1,7 @@
1
- export * from "../components/table/TableTd";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Td from '../components/table/TableTd';
6
+ export * from '../components/table/TableTd';
2
7
  export default Td;
3
- import Td from "../components/table/TableTd";
@@ -1,3 +1,7 @@
1
- export * from "../components/table/TableTh";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Th from '../components/table/TableTh';
6
+ export * from '../components/table/TableTh';
2
7
  export default Th;
3
- import Th from "../components/table/TableTh";
@@ -1,3 +1,7 @@
1
- export * from "../components/table/TableTr";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Tr from '../components/table/TableTr';
6
+ export * from '../components/table/TableTr';
2
7
  export default Tr;
3
- import Tr from "../components/table/TableTr";
@@ -21,7 +21,7 @@ function init() {
21
21
  _createClass(Eufemia, [{
22
22
  key: "version",
23
23
  get: function get() {
24
- return '9.39.0';
24
+ return '9.39.1';
25
25
  }
26
26
  }]);
27
27
 
@@ -1,6 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import React from 'react';
3
3
  import HeightAnimationInstance from './HeightAnimationInstance';
4
+ var useLayoutEffect = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;
4
5
  export function useHeightAnimation(targetRef) {
5
6
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
6
7
  _ref$open = _ref.open,
@@ -50,7 +51,7 @@ export function useHeightAnimation(targetRef) {
50
51
  React.useEffect(function () {
51
52
  return setIsMounted(false);
52
53
  }, []);
53
- React.useLayoutEffect(function () {
54
+ useLayoutEffect(function () {
54
55
  animRef.current = new HeightAnimationInstance({
55
56
  animate: animate
56
57
  });
@@ -139,7 +140,7 @@ function useOpenClose(_ref2) {
139
140
  animRef = _ref2.animRef,
140
141
  targetRef = _ref2.targetRef,
141
142
  isInitialRender = _ref2.isInitialRender;
142
- React.useLayoutEffect(function () {
143
+ useLayoutEffect(function () {
143
144
  if (!targetRef.current) {
144
145
  return;
145
146
  }
@@ -187,7 +188,7 @@ function useAdjust(_ref3) {
187
188
  fromHeight.current = (_animRef$current3 = animRef.current) === null || _animRef$current3 === void 0 ? void 0 : _animRef$current3.getHeight();
188
189
  }
189
190
  }, [children]);
190
- React.useLayoutEffect(function () {
191
+ useLayoutEffect(function () {
191
192
  if (shouldAdjust()) {
192
193
  animRef.current.elem.style.height = '';
193
194
  animRef.current.adjustTo(fromHeight.current, animRef.current.getHeight());
@@ -1,3 +1,7 @@
1
- export * from "../components/table/Table";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Table from '../components/table/Table';
6
+ export * from '../components/table/Table';
2
7
  export default Table;
3
- import Table from "../components/table/Table";
package/elements/Td.d.ts CHANGED
@@ -1,3 +1,7 @@
1
- export * from "../components/table/TableTd";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Td from '../components/table/TableTd';
6
+ export * from '../components/table/TableTd';
2
7
  export default Td;
3
- import Td from "../components/table/TableTd";
package/elements/Th.d.ts CHANGED
@@ -1,3 +1,7 @@
1
- export * from "../components/table/TableTh";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Th from '../components/table/TableTh';
6
+ export * from '../components/table/TableTh';
2
7
  export default Th;
3
- import Th from "../components/table/TableTh";
package/elements/Tr.d.ts CHANGED
@@ -1,3 +1,7 @@
1
- export * from "../components/table/TableTr";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Tr from '../components/table/TableTr';
6
+ export * from '../components/table/TableTr';
2
7
  export default Tr;
3
- import Tr from "../components/table/TableTr";
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import HeightAnimationInstance from './HeightAnimationInstance';
3
+ const useLayoutEffect = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;
3
4
  export function useHeightAnimation(targetRef, {
4
5
  open = true,
5
6
  animate = true,
@@ -20,7 +21,7 @@ export function useHeightAnimation(targetRef, {
20
21
  }
21
22
 
22
23
  React.useEffect(() => setIsMounted(false), []);
23
- React.useLayoutEffect(() => {
24
+ useLayoutEffect(() => {
24
25
  animRef.current = new HeightAnimationInstance({
25
26
  animate
26
27
  });
@@ -110,7 +111,7 @@ function useOpenClose({
110
111
  targetRef,
111
112
  isInitialRender
112
113
  }) {
113
- React.useLayoutEffect(() => {
114
+ useLayoutEffect(() => {
114
115
  if (!targetRef.current) {
115
116
  return;
116
117
  }
@@ -159,7 +160,7 @@ function useAdjust({
159
160
  fromHeight.current = (_animRef$current3 = animRef.current) === null || _animRef$current3 === void 0 ? void 0 : _animRef$current3.getHeight();
160
161
  }
161
162
  }, [children]);
162
- React.useLayoutEffect(() => {
163
+ useLayoutEffect(() => {
163
164
  if (shouldAdjust()) {
164
165
  animRef.current.elem.style.height = '';
165
166
  animRef.current.adjustTo(fromHeight.current, animRef.current.getHeight());
@@ -1,3 +1,7 @@
1
- export * from "../components/table/Table";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Table from '../components/table/Table';
6
+ export * from '../components/table/Table';
2
7
  export default Table;
3
- import Table from "../components/table/Table";
@@ -1,3 +1,7 @@
1
- export * from "../components/table/TableTd";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Td from '../components/table/TableTd';
6
+ export * from '../components/table/TableTd';
2
7
  export default Td;
3
- import Td from "../components/table/TableTd";
@@ -1,3 +1,7 @@
1
- export * from "../components/table/TableTh";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Th from '../components/table/TableTh';
6
+ export * from '../components/table/TableTh';
2
7
  export default Th;
3
- import Th from "../components/table/TableTh";
@@ -1,3 +1,7 @@
1
- export * from "../components/table/TableTr";
1
+ /**
2
+ * HTML Element
3
+ *
4
+ */
5
+ import Tr from '../components/table/TableTr';
6
+ export * from '../components/table/TableTr';
2
7
  export default Tr;
3
- import Tr from "../components/table/TableTr";
@@ -2,7 +2,7 @@ export function init() {
2
2
  if (typeof window !== 'undefined') {
3
3
  class Eufemia {
4
4
  get version() {
5
- return '9.39.0';
5
+ return '9.39.1';
6
6
  }
7
7
 
8
8
  }
@@ -2,4 +2,4 @@ import"react";var t="undefined"!=typeof global?global:"undefined"!=typeof self?s
2
2
  /*!
3
3
  * Programatically add the following
4
4
  */
5
- for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var a=e.names=e.title={};for(i in r)a[r[i]]=i;for(var u in o)r[u]=o[u]}(Kh,Kh.exports);var zh,Wh=Kh.exports,Hh={exports:{}};zh=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e){t.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var t=document.documentElement,e=null,n="initial",r=n,o=Date.now(),i="false",a=["button","input","select","textarea"],u=[],c=[16,17,18,91,93],f=[],s={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},l=!1,d={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},h=!1;try{var v=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,v)}catch(t){}var g=function(){var t=!!h&&{passive:!0};document.addEventListener("DOMContentLoaded",y),window.PointerEvent?(window.addEventListener("pointerdown",m),window.addEventListener("pointermove",b)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",m),window.addEventListener("MSPointerMove",b)):(window.addEventListener("mousedown",m),window.addEventListener("mousemove",b),"ontouchstart"in window&&(window.addEventListener("touchstart",m,t),window.addEventListener("touchend",m))),window.addEventListener(k(),b,t),window.addEventListener("keydown",m),window.addEventListener("keyup",m),window.addEventListener("focusin",x),window.addEventListener("focusout",E)},y=function(){if(i=!(t.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(t){}w("input"),w("intent")},m=function(t){var e=t.which,o=s[t.type];"pointer"===o&&(o=S(t));var i=!f.length&&-1===c.indexOf(e),u=f.length&&-1!==f.indexOf(e),l="keyboard"===o&&e&&(i||u)||"mouse"===o||"touch"===o;if(L(o)&&(l=!1),l&&n!==o&&(O("input",n=o),w("input")),l&&r!==o){var d=document.activeElement;d&&d.nodeName&&(-1===a.indexOf(d.nodeName.toLowerCase())||"button"===d.nodeName.toLowerCase()&&!P(d,"form"))&&(O("intent",r=o),w("intent"))}},w=function(e){t.setAttribute("data-what"+e,"input"===e?n:r),j(e)},b=function(t){var e=s[t.type];"pointer"===e&&(e=S(t)),A(t),(!l&&!L(e)||l&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(O("intent",r=e),w("intent"))},x=function(n){n.target.nodeName?(e=n.target.nodeName.toLowerCase(),t.setAttribute("data-whatelement",e),n.target.classList&&n.target.classList.length&&t.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):E()},E=function(){e=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},O=function(t,e){if(i)try{window.sessionStorage.setItem("what-"+t,e)}catch(t){}},S=function(t){return"number"==typeof t.pointerType?p[t.pointerType]:"pen"===t.pointerType?"touch":t.pointerType},L=function(t){var e=Date.now(),r="mouse"===t&&"touch"===n&&e-o<200;return o=e,r},k=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},j=function(t){for(var e=0,o=u.length;e<o;e++)u[e].type===t&&u[e].fn.call(void 0,"input"===t?n:r)},A=function(t){d.x!==t.screenX||d.y!==t.screenY?(l=!1,d.x=t.screenX,d.y=t.screenY):l=!0},P=function(t,e){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return t.closest(e);do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(s[k()]="mouse",g()),{ask:function(t){return"intent"===t?r:n},element:function(){return e},ignoreKeys:function(t){c=t},specificKeys:function(t){f=t},registerOnChange:function(t,e){u.push({fn:t,type:e||"input"})},unRegisterOnChange:function(t){var e=function(t){for(var e=0,n=u.length;e<n;e++)if(u[e].fn===t)return e}(t);(e||0===e)&&u.splice(e,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])};var Vh=Hh.exports=zh();!function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new A(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=L(a,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=s(t,e,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function g(){}function y(){}function m(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(P([])));x&&x!==n&&r.call(x,i)&&(w=x);var E=m.prototype=g.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function L(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:e,done:!0}}return y.prototype=m,c(E,"constructor",m),c(m,"constructor",y),y.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},O(S.prototype),c(S.prototype,a,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(E),c(E,u,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=P,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),f=r.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var Xh=Ir,qh=o,Jh=a,Qh=$r,Zh=G,tv=Pt,ev=zn,nv=Ba,rv=fi,ov=is,iv=J,av=Vt("isConcatSpreadable"),uv=qh.TypeError,cv=iv>=51||!Jh((function(){var t=[];return t[av]=!1,t.concat()[0]!==t})),fv=ov("concat"),sv=function(t){if(!Zh(t))return!1;var e=t[av];return void 0!==e?!!e:Qh(t)};Xh({target:"Array",proto:!0,forced:!cv||!fv},{concat:function(t){var e,n,r,o,i,a=tv(this),u=rv(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(sv(i=-1===e?a:arguments[e])){if(c+(o=ev(i))>9007199254740991)throw uv("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&nv(u,c,i[n])}else{if(c>=9007199254740991)throw uv("Maximum allowed index exceeded");nv(u,c++,i)}return u.length=c,u}});var lv,dv,pv,hv,vv,gv,yv,mv;"undefined"!=typeof navigator&&/edge/i.test(null===(lv=navigator)||void 0===lv?void 0:lv.userAgent),"undefined"!=typeof navigator&&new RegExp("iOS|iPhone|iPad|iPod","i").test(null===(dv=navigator)||void 0===dv?void 0:dv.platform),"undefined"!=typeof navigator&&/safari/i.test(null===(pv=navigator)||void 0===pv?void 0:pv.userAgent)&&/chrome/i.test(null===(hv=navigator)||void 0===hv?void 0:hv.userAgent),"undefined"!=typeof navigator&&new RegExp("Win","i").test(null===(vv=navigator)||void 0===vv?void 0:vv.platform),"undefined"!=typeof navigator&&new RegExp("Android","i").test(null===(gv=navigator)||void 0===gv?void 0:gv.userAgent),"undefined"!=typeof navigator&&new RegExp("Mac|iPad|iPhone|iPod","i").test(null===(yv=navigator)||void 0===yv?void 0:yv.platform),"undefined"!=typeof navigator&&new RegExp("Linux","i").test(null===(mv=navigator)||void 0===mv?void 0:mv.platform);function wv(){if("undefined"!=typeof document){var t=!1;try{t=document.documentElement.getAttribute("data-whatintent")}catch(t){}return"touch"===t}return!1}function bv(){var t=function t(){if("undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof navigator){try{"undefined"!=typeof window&&window.IS_TEST?document.documentElement.setAttribute("data-os","other"):null!==navigator.platform.match(new RegExp("Mac|iPad|iPhone|iPod"))?document.documentElement.setAttribute("data-os","mac"):null!==navigator.platform.match(new RegExp("Win"))?document.documentElement.setAttribute("data-os","win"):null!==navigator.platform.match(new RegExp("Linux"))&&document.documentElement.setAttribute("data-os","linux")}catch(t){}document.removeEventListener("DOMContentLoaded",t)}};"undefined"!=typeof document&&"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}!function(){if("undefined"!=typeof window){var t=function(){function t(){Va(this,t)}return qa(t,[{key:"version",get:function(){return"9.39.0"}}]),t}();window.Eufemia=new t}}(),Vh.specificKeys([9]),bv(),function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Va(this,t),Ja(this,"checkOutsideClick",(function(t){var e=t.event,n=t.ignoreElements,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var o=e.target;if("HTML"===(null==o?void 0:o.tagName)&&(e.pageX>document.documentElement.clientWidth-40||e.pageY>document.documentElement.clientHeight-40))return;if(xv(o))return;for(var i,a=0,u=n.length;a<u;++a)if(i=o,n[a])do{if(i===n[a])return;i=i&&i.parentNode}while(i);"function"==typeof r&&r()}catch(t){}})),this.handleClickOutside||"undefined"==typeof document||"undefined"==typeof window||(Array.isArray(e)||(e=[e]),this.handleClickOutside=function(t){r.checkOutsideClick({event:t,ignoreElements:e},(function(){return"function"==typeof n&&n({event:t})}))},document.addEventListener("mousedown",this.handleClickOutside),this.keydownCallback=function(t){"esc"===Wh(t)&&(window.removeEventListener("keydown",r.keydownCallback),"function"==typeof n&&n({event:t}))},window.addEventListener("keydown",this.keydownCallback),o.includedKeys&&(this.keyupCallback=function(t){var e=Wh(t);o.includedKeys.includes(e)&&"function"==typeof r.handleClickOutside&&r.handleClickOutside(t,(function(){r.keyupCallback&&window.removeEventListener("keyup",r.keyupCallback)}))},window.addEventListener("keyup",this.keyupCallback)))}qa(t,[{key:"remove",value:function(){this.handleClickOutside&&"undefined"!=typeof document&&(document.removeEventListener("mousedown",this.handleClickOutside),this.handleClickOutside=null),this.keydownCallback&&"undefined"!=typeof window&&(window.removeEventListener("keydown",this.keydownCallback),this.keydownCallback=null),this.keyupCallback&&"undefined"!=typeof window&&(window.removeEventListener("keyup",this.keyupCallback),this.keyupCallback=null)}}])}();var xv=function(t){return t&&(t.scrollHeight>t.offsetHeight||t.scrollWidth>t.offsetWidth)&&Ev(t)},Ev=function(t){var e="undefined"!=typeof window?window.getComputedStyle(t):{};return/scroll|auto/i.test((e.overflow||"")+(e.overflowX||"")+(e.overflowY||""))};export{bv as defineNavigator,wv as isTouchDevice};
5
+ for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var a=e.names=e.title={};for(i in r)a[r[i]]=i;for(var u in o)r[u]=o[u]}(Kh,Kh.exports);var zh,Wh=Kh.exports,Hh={exports:{}};zh=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e){t.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var t=document.documentElement,e=null,n="initial",r=n,o=Date.now(),i="false",a=["button","input","select","textarea"],u=[],c=[16,17,18,91,93],f=[],s={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},l=!1,d={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},h=!1;try{var v=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,v)}catch(t){}var g=function(){var t=!!h&&{passive:!0};document.addEventListener("DOMContentLoaded",y),window.PointerEvent?(window.addEventListener("pointerdown",m),window.addEventListener("pointermove",b)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",m),window.addEventListener("MSPointerMove",b)):(window.addEventListener("mousedown",m),window.addEventListener("mousemove",b),"ontouchstart"in window&&(window.addEventListener("touchstart",m,t),window.addEventListener("touchend",m))),window.addEventListener(k(),b,t),window.addEventListener("keydown",m),window.addEventListener("keyup",m),window.addEventListener("focusin",x),window.addEventListener("focusout",E)},y=function(){if(i=!(t.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(t){}w("input"),w("intent")},m=function(t){var e=t.which,o=s[t.type];"pointer"===o&&(o=S(t));var i=!f.length&&-1===c.indexOf(e),u=f.length&&-1!==f.indexOf(e),l="keyboard"===o&&e&&(i||u)||"mouse"===o||"touch"===o;if(L(o)&&(l=!1),l&&n!==o&&(O("input",n=o),w("input")),l&&r!==o){var d=document.activeElement;d&&d.nodeName&&(-1===a.indexOf(d.nodeName.toLowerCase())||"button"===d.nodeName.toLowerCase()&&!P(d,"form"))&&(O("intent",r=o),w("intent"))}},w=function(e){t.setAttribute("data-what"+e,"input"===e?n:r),j(e)},b=function(t){var e=s[t.type];"pointer"===e&&(e=S(t)),A(t),(!l&&!L(e)||l&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(O("intent",r=e),w("intent"))},x=function(n){n.target.nodeName?(e=n.target.nodeName.toLowerCase(),t.setAttribute("data-whatelement",e),n.target.classList&&n.target.classList.length&&t.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):E()},E=function(){e=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},O=function(t,e){if(i)try{window.sessionStorage.setItem("what-"+t,e)}catch(t){}},S=function(t){return"number"==typeof t.pointerType?p[t.pointerType]:"pen"===t.pointerType?"touch":t.pointerType},L=function(t){var e=Date.now(),r="mouse"===t&&"touch"===n&&e-o<200;return o=e,r},k=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},j=function(t){for(var e=0,o=u.length;e<o;e++)u[e].type===t&&u[e].fn.call(void 0,"input"===t?n:r)},A=function(t){d.x!==t.screenX||d.y!==t.screenY?(l=!1,d.x=t.screenX,d.y=t.screenY):l=!0},P=function(t,e){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return t.closest(e);do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(s[k()]="mouse",g()),{ask:function(t){return"intent"===t?r:n},element:function(){return e},ignoreKeys:function(t){c=t},specificKeys:function(t){f=t},registerOnChange:function(t,e){u.push({fn:t,type:e||"input"})},unRegisterOnChange:function(t){var e=function(t){for(var e=0,n=u.length;e<n;e++)if(u[e].fn===t)return e}(t);(e||0===e)&&u.splice(e,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])};var Vh=Hh.exports=zh();!function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new A(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=L(a,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=s(t,e,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function g(){}function y(){}function m(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(P([])));x&&x!==n&&r.call(x,i)&&(w=x);var E=m.prototype=g.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function L(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:e,done:!0}}return y.prototype=m,c(E,"constructor",m),c(m,"constructor",y),y.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},O(S.prototype),c(S.prototype,a,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(E),c(E,u,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=P,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),f=r.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var Xh=Ir,qh=o,Jh=a,Qh=$r,Zh=G,tv=Pt,ev=zn,nv=Ba,rv=fi,ov=is,iv=J,av=Vt("isConcatSpreadable"),uv=qh.TypeError,cv=iv>=51||!Jh((function(){var t=[];return t[av]=!1,t.concat()[0]!==t})),fv=ov("concat"),sv=function(t){if(!Zh(t))return!1;var e=t[av];return void 0!==e?!!e:Qh(t)};Xh({target:"Array",proto:!0,forced:!cv||!fv},{concat:function(t){var e,n,r,o,i,a=tv(this),u=rv(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(sv(i=-1===e?a:arguments[e])){if(c+(o=ev(i))>9007199254740991)throw uv("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&nv(u,c,i[n])}else{if(c>=9007199254740991)throw uv("Maximum allowed index exceeded");nv(u,c++,i)}return u.length=c,u}});var lv,dv,pv,hv,vv,gv,yv,mv;"undefined"!=typeof navigator&&/edge/i.test(null===(lv=navigator)||void 0===lv?void 0:lv.userAgent),"undefined"!=typeof navigator&&new RegExp("iOS|iPhone|iPad|iPod","i").test(null===(dv=navigator)||void 0===dv?void 0:dv.platform),"undefined"!=typeof navigator&&/safari/i.test(null===(pv=navigator)||void 0===pv?void 0:pv.userAgent)&&/chrome/i.test(null===(hv=navigator)||void 0===hv?void 0:hv.userAgent),"undefined"!=typeof navigator&&new RegExp("Win","i").test(null===(vv=navigator)||void 0===vv?void 0:vv.platform),"undefined"!=typeof navigator&&new RegExp("Android","i").test(null===(gv=navigator)||void 0===gv?void 0:gv.userAgent),"undefined"!=typeof navigator&&new RegExp("Mac|iPad|iPhone|iPod","i").test(null===(yv=navigator)||void 0===yv?void 0:yv.platform),"undefined"!=typeof navigator&&new RegExp("Linux","i").test(null===(mv=navigator)||void 0===mv?void 0:mv.platform);function wv(){if("undefined"!=typeof document){var t=!1;try{t=document.documentElement.getAttribute("data-whatintent")}catch(t){}return"touch"===t}return!1}function bv(){var t=function t(){if("undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof navigator){try{"undefined"!=typeof window&&window.IS_TEST?document.documentElement.setAttribute("data-os","other"):null!==navigator.platform.match(new RegExp("Mac|iPad|iPhone|iPod"))?document.documentElement.setAttribute("data-os","mac"):null!==navigator.platform.match(new RegExp("Win"))?document.documentElement.setAttribute("data-os","win"):null!==navigator.platform.match(new RegExp("Linux"))&&document.documentElement.setAttribute("data-os","linux")}catch(t){}document.removeEventListener("DOMContentLoaded",t)}};"undefined"!=typeof document&&"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}!function(){if("undefined"!=typeof window){var t=function(){function t(){Va(this,t)}return qa(t,[{key:"version",get:function(){return"9.39.1"}}]),t}();window.Eufemia=new t}}(),Vh.specificKeys([9]),bv(),function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Va(this,t),Ja(this,"checkOutsideClick",(function(t){var e=t.event,n=t.ignoreElements,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var o=e.target;if("HTML"===(null==o?void 0:o.tagName)&&(e.pageX>document.documentElement.clientWidth-40||e.pageY>document.documentElement.clientHeight-40))return;if(xv(o))return;for(var i,a=0,u=n.length;a<u;++a)if(i=o,n[a])do{if(i===n[a])return;i=i&&i.parentNode}while(i);"function"==typeof r&&r()}catch(t){}})),this.handleClickOutside||"undefined"==typeof document||"undefined"==typeof window||(Array.isArray(e)||(e=[e]),this.handleClickOutside=function(t){r.checkOutsideClick({event:t,ignoreElements:e},(function(){return"function"==typeof n&&n({event:t})}))},document.addEventListener("mousedown",this.handleClickOutside),this.keydownCallback=function(t){"esc"===Wh(t)&&(window.removeEventListener("keydown",r.keydownCallback),"function"==typeof n&&n({event:t}))},window.addEventListener("keydown",this.keydownCallback),o.includedKeys&&(this.keyupCallback=function(t){var e=Wh(t);o.includedKeys.includes(e)&&"function"==typeof r.handleClickOutside&&r.handleClickOutside(t,(function(){r.keyupCallback&&window.removeEventListener("keyup",r.keyupCallback)}))},window.addEventListener("keyup",this.keyupCallback)))}qa(t,[{key:"remove",value:function(){this.handleClickOutside&&"undefined"!=typeof document&&(document.removeEventListener("mousedown",this.handleClickOutside),this.handleClickOutside=null),this.keydownCallback&&"undefined"!=typeof window&&(window.removeEventListener("keydown",this.keydownCallback),this.keydownCallback=null),this.keyupCallback&&"undefined"!=typeof window&&(window.removeEventListener("keyup",this.keyupCallback),this.keyupCallback=null)}}])}();var xv=function(t){return t&&(t.scrollHeight>t.offsetHeight||t.scrollWidth>t.offsetWidth)&&Ev(t)},Ev=function(t){var e="undefined"!=typeof window?window.getComputedStyle(t):{};return/scroll|auto/i.test((e.overflow||"")+(e.overflowX||"")+(e.overflowY||""))};export{bv as defineNavigator,wv as isTouchDevice};