Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

shorter-js

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shorter-js - npm Package Compare versions

Comparing version 0.2.17 to 0.2.18

src/misc/ArrayFrom.js

548

dist/shorter-js.esm.js
/*!
* shorter-js v0.2.17 (https://github.com/thednp/shorter-js)
* shorter-js v0.2.18 (https://github.com/thednp/shorter-js)
* Copyright 2019-2021 © dnp_theme

@@ -61,2 +61,177 @@ * Licensed under MIT (https://github.com/thednp/shorter-js/blob/master/LICENSE)

/**
* A global namespace for all browser native events.
* @type {string[]}
*/
const nativeEvents = [
'click',
'dblclick',
'mouseup',
'mousedown',
'contextmenu',
'mousewheel',
'DOMMouseScroll',
'mouseover',
'mouseout',
'mousemove',
'selectstart',
'selectend',
'keydown',
'keypress',
'keyup',
'orientationchange',
'touchstart',
'touchmove',
'touchend',
'touchcancel',
'pointercancel',
'pointerdown',
'pointerleave',
'pointermove',
'pointerup',
'gesturestart',
'gesturechange',
'gestureend',
'focus',
'blur',
'change',
'reset',
'select',
'submit',
'focusin',
'focusout',
'load',
'unload',
'beforeunload',
'resize',
'move',
'DOMContentLoaded',
'readystatechange',
'error',
'abort',
'scroll',
];
/**
* A global namespace for `abort` event.
* @type {string}
*/
const abortEvent = 'abort';
/**
* A global namespace for `blur` event.
* @type {string}
*/
const blurEvent = 'blur';
/**
* A global namespace for `move` event.
* @type {string}
*/
const moveEvent = 'move';
/**
* A global namespace for `change` event.
* @type {string}
*/
const changeEvent = 'change';
/**
* A global namespace for `error` event.
* @type {string}
*/
const errorEvent = 'error';
/**
* A global namespace for `reset` event.
* @type {string}
*/
const resetEvent = 'reset';
/**
* A global namespace for `scroll` event.
* @type {string}
*/
const scrollEvent = 'scroll';
/**
* A global namespace for `submit` event.
* @type {string}
*/
const submitEvent = 'submit';
/**
* A global namespace for `load` event.
* @type {string}
*/
const loadEvent = 'load';
/**
* A global namespace for `unload` event.
* @type {string}
*/
const unloadEvent = 'unload';
/**
* A global namespace for `readystatechange` event.
* @type {string}
*/
const readystatechangeEvent = 'readystatechange';
/**
* A global namespace for `beforeunload` event.
* @type {string}
*/
const beforeunloadEvent = 'beforeunload';
/**
* A global namespace for `orientationchange` event.
* @type {string}
*/
const orientationchangeEvent = 'orientationchange';
/**
* A global namespace for `contextmenu` event.
* @type {string}
*/
const contextmenuEvent = 'contextmenu';
/**
* A global namespace for `DOMContentLoaded` event.
* @type {string}
*/
const DOMContentLoadedEvent = 'DOMContentLoaded';
/**
* A global namespace for `DOMMouseScroll` event.
* @type {string}
*/
const DOMMouseScrollEvent = 'DOMMouseScroll';
/**
* A global namespace for `select` event.
* @type {string}
*/
const selectEvent = 'select';
/**
* A global namespace for the `selectend` event.
* @type {string}
*/
const selectendEvent = 'selectend';
/**
* A global namespace for the `selectstart` event.
* @type {string}
*/
const selectstartEvent = 'selectstart';
/**
* A global namespace for mouse events equivalent to touch events.
* @type {Record<string, string>}
*/
const mouseSwipeEvents = {
start: 'mousedown', end: 'mouseup', move: 'mousemove', cancel: 'mouseleave',
};
/**
* A global namespace for mouse click events.

@@ -74,2 +249,8 @@ * @type {Record<string, string>}

/**
* A global namespace for `dblclick` event.
* @type {string}
*/
const mousedblclickEvent = 'dblclick';
/**
* A global namespace for `mousedown` event.

@@ -105,2 +286,20 @@ * @type {string}

/**
* A global namespace for `mousein` event.
* @type {string}
*/
const mouseinEvent = 'mousein';
/**
* A global namespace for `mouseout` event.
* @type {string}
*/
const mouseoutEvent = 'mouseout';
/**
* A global namespace for `mousewheel` event.
* @type {string}
*/
const mousewheelEvent = 'mousewheel';
/**
* A global namespace for touch events.

@@ -138,119 +337,72 @@ * @type {Record<string, string>}

/**
* A global namespace for focus event names.
* @type {{in: string, out: string}}
*/
const focusEvents = { in: 'focusin', out: 'focusout' };
/**
* A global namespace for `focusin` event.
* A global namespace for `pointercancel` event.
* @type {string}
*/
const focusinEvent = 'focusin';
const pointercancelEvent = 'pointercancel';
/**
* A global namespace for `focusout` event.
* A global namespace for `pointerdown` event.
* @type {string}
*/
const focusoutEvent = 'focusout';
const pointerdownEvent = 'pointerdown';
/**
* A global namespace for mouse events equivalent to touch events.
* @type {Record<string, string>}
*/
const mouseSwipeEvents = {
start: 'mousedown', end: 'mouseup', move: 'mousemove', cancel: 'mouseleave',
};
/**
* A global namespace for 'animationDuration' string.
* A global namespace for `pointerleave` event.
* @type {string}
*/
const animationDuration = 'webkitAnimation' in document.head.style ? 'webkitAnimationDuration' : 'animationDuration';
const pointerleaveEvent = 'pointerleave';
/**
* A global namespace for 'animationDelay' string.
* A global namespace for `pointermove` event.
* @type {string}
*/
const animationDelay = 'webkitAnimation' in document.head.style ? 'webkitAnimationDelay' : 'animationDelay';
const pointermoveEvent = 'pointermove';
/**
* A global namespace for 'animationend' string.
* A global namespace for `pointerup` event.
* @type {string}
*/
const animationEndEvent = 'webkitAnimation' in document.head.style ? 'webkitAnimationEnd' : 'animationend';
const pointerupEvent = 'pointerup';
/**
* A global namespace for 'animationName' string.
* @type {string}
* A global namespace for focus event names.
* @type {{in: string, out: string}}
*/
const animationName = 'webkitAnimation' in document.head.style ? 'webkitAnimationName' : 'animationName';
const focusEvents = { in: 'focusin', out: 'focusout' };
/**
* A global namespace for 'transitionDuration' string.
* A global namespace for `focus` event.
* @type {string}
*/
const transitionDuration = 'webkitTransition' in document.head.style ? 'webkitTransitionDuration' : 'transitionDuration';
const focusEvent = 'focus';
/**
* A global namespace for 'transitionProperty' string.
* A global namespace for `focusin` event.
* @type {string}
*/
const transitionProperty = 'webkitTransition' in document.head.style ? 'webkitTransitionProperty' : 'transitionProperty';
const focusinEvent = 'focusin';
/**
* A global namespace for 'transitionDelay' string.
* A global namespace for `focusout` event.
* @type {string}
*/
const transitionDelay = 'webkitTransition' in document.head.style ? 'webkitTransitionDelay' : 'transitionDelay';
const focusoutEvent = 'focusout';
/**
* A global namespace for 'transitionend' string.
* A global namespace for `gesturechange` event.
* @type {string}
*/
const transitionEndEvent = 'webkitTransition' in document.head.style ? 'webkitTransitionEnd' : 'transitionend';
const gesturechangeEvent = 'gesturechange';
/**
* A global namespace for predefined
* CSS3 'cubic-bezier()' easing functions.
* @type {Record<string, string>}
*/
const bezierEasings = {
linear: 'linear',
easingSinusoidalIn: 'cubic-bezier(0.47,0,0.745,0.715)',
easingSinusoidalOut: 'cubic-bezier(0.39,0.575,0.565,1)',
easingSinusoidalInOut: 'cubic-bezier(0.445,0.05,0.55,0.95)',
easingQuadraticIn: 'cubic-bezier(0.550,0.085,0.680,0.530)',
easingQuadraticOut: 'cubic-bezier(0.250,0.460,0.450,0.940)',
easingQuadraticInOut: 'cubic-bezier(0.455,0.030,0.515,0.955)',
easingCubicIn: 'cubic-bezier(0.55,0.055,0.675,0.19)',
easingCubicOut: 'cubic-bezier(0.215,0.61,0.355,1)',
easingCubicInOut: 'cubic-bezier(0.645,0.045,0.355,1)',
easingQuarticIn: 'cubic-bezier(0.895,0.03,0.685,0.22)',
easingQuarticOut: 'cubic-bezier(0.165,0.84,0.44,1)',
easingQuarticInOut: 'cubic-bezier(0.77,0,0.175,1)',
easingQuinticIn: 'cubic-bezier(0.755,0.05,0.855,0.06)',
easingQuinticOut: 'cubic-bezier(0.23,1,0.32,1)',
easingQuinticInOut: 'cubic-bezier(0.86,0,0.07,1)',
easingExponentialIn: 'cubic-bezier(0.95,0.05,0.795,0.035)',
easingExponentialOut: 'cubic-bezier(0.19,1,0.22,1)',
easingExponentialInOut: 'cubic-bezier(1,0,0,1)',
easingCircularIn: 'cubic-bezier(0.6,0.04,0.98,0.335)',
easingCircularOut: 'cubic-bezier(0.075,0.82,0.165,1)',
easingCircularInOut: 'cubic-bezier(0.785,0.135,0.15,0.86)',
easingBackIn: 'cubic-bezier(0.6,-0.28,0.735,0.045)',
easingBackOut: 'cubic-bezier(0.175,0.885,0.32,1.275)',
easingBackInOut: 'cubic-bezier(0.68,-0.55,0.265,1.55)',
};
/**
* A global namespace for 'addEventListener' string.
* A global namespace for `gestureend` event.
* @type {string}
*/
const addEventListener = 'addEventListener';
const gestureendEvent = 'gestureend';
/**
* A global namespace for 'removeEventListener' string.
* A global namespace for `gesturestart` event.
* @type {string}
*/
const removeEventListener = 'removeEventListener';
const gesturestartEvent = 'gesturestart';

@@ -284,2 +436,20 @@ /**

/**
* A global namespace for `keydown` event.
* @type {string}
*/
const keydownEvent = 'keydown';
/**
* A global namespace for `keyup` event.
* @type {string}
*/
const keyupEvent = 'keyup';
/**
* A global namespace for `keypress` event.
* @type {string}
*/
const keypressEvent = 'keypress';
/**
* A global namespace for `Alt` key.

@@ -392,2 +562,119 @@ * @type {string} e.which = 18

/**
* A global namespace for 'animationDuration' string.
* @type {string}
*/
const animationDuration = 'webkitAnimation' in document.head.style ? 'webkitAnimationDuration' : 'animationDuration';
/**
* A global namespace for 'animationDelay' string.
* @type {string}
*/
const animationDelay = 'webkitAnimation' in document.head.style ? 'webkitAnimationDelay' : 'animationDelay';
/**
* A global namespace for 'animationName' string.
* @type {string}
*/
const animationName = 'webkitAnimation' in document.head.style ? 'webkitAnimationName' : 'animationName';
/**
* A global namespace for 'animationend' string.
* @type {string}
*/
const animationEndEvent = 'webkitAnimation' in document.head.style ? 'webkitAnimationEnd' : 'animationend';
/**
* A global namespace for 'transitionDuration' string.
* @type {string}
*/
const transitionDuration = 'webkitTransition' in document.head.style ? 'webkitTransitionDuration' : 'transitionDuration';
/**
* A global namespace for 'transitionDelay' string.
* @type {string}
*/
const transitionDelay = 'webkitTransition' in document.head.style ? 'webkitTransitionDelay' : 'transitionDelay';
/**
* A global namespace for 'transitionend' string.
* @type {string}
*/
const transitionEndEvent = 'webkitTransition' in document.head.style ? 'webkitTransitionEnd' : 'transitionend';
/**
* A global namespace for 'transitionProperty' string.
* @type {string}
*/
const transitionProperty = 'webkitTransition' in document.head.style ? 'webkitTransitionProperty' : 'transitionProperty';
/**
* A global namespace for 'addEventListener' string.
* @type {string}
*/
const addEventListener = 'addEventListener';
/**
* A global namespace for 'removeEventListener' string.
* @type {string}
*/
const removeEventListener = 'removeEventListener';
/**
* A global namespace for predefined
* CSS3 'cubic-bezier()' easing functions.
* @type {Record<string, string>}
*/
const bezierEasings = {
linear: 'linear',
easingSinusoidalIn: 'cubic-bezier(0.47,0,0.745,0.715)',
easingSinusoidalOut: 'cubic-bezier(0.39,0.575,0.565,1)',
easingSinusoidalInOut: 'cubic-bezier(0.445,0.05,0.55,0.95)',
easingQuadraticIn: 'cubic-bezier(0.550,0.085,0.680,0.530)',
easingQuadraticOut: 'cubic-bezier(0.250,0.460,0.450,0.940)',
easingQuadraticInOut: 'cubic-bezier(0.455,0.030,0.515,0.955)',
easingCubicIn: 'cubic-bezier(0.55,0.055,0.675,0.19)',
easingCubicOut: 'cubic-bezier(0.215,0.61,0.355,1)',
easingCubicInOut: 'cubic-bezier(0.645,0.045,0.355,1)',
easingQuarticIn: 'cubic-bezier(0.895,0.03,0.685,0.22)',
easingQuarticOut: 'cubic-bezier(0.165,0.84,0.44,1)',
easingQuarticInOut: 'cubic-bezier(0.77,0,0.175,1)',
easingQuinticIn: 'cubic-bezier(0.755,0.05,0.855,0.06)',
easingQuinticOut: 'cubic-bezier(0.23,1,0.32,1)',
easingQuinticInOut: 'cubic-bezier(0.86,0,0.07,1)',
easingExponentialIn: 'cubic-bezier(0.95,0.05,0.795,0.035)',
easingExponentialOut: 'cubic-bezier(0.19,1,0.22,1)',
easingExponentialInOut: 'cubic-bezier(1,0,0,1)',
easingCircularIn: 'cubic-bezier(0.6,0.04,0.98,0.335)',
easingCircularOut: 'cubic-bezier(0.075,0.82,0.165,1)',
easingCircularInOut: 'cubic-bezier(0.785,0.135,0.15,0.86)',
easingBackIn: 'cubic-bezier(0.6,-0.28,0.735,0.045)',
easingBackOut: 'cubic-bezier(0.175,0.885,0.32,1.275)',
easingBackInOut: 'cubic-bezier(0.68,-0.55,0.265,1.55)',
};
/**
* A global namespace for `offsetHeight` property.
* @type {string}
*/
const offsetHeight = 'offsetHeight';
/**
* A global namespace for `offsetWidth` property.
* @type {string}
*/
const offsetWidth = 'offsetWidth';
/**
* A global namespace for `scrollHeight` property.
* @type {string}
*/
const scrollHeight = 'scrollHeight';
/**
* A global namespace for `scrollWidth` property.
* @type {string}
*/
const scrollWidth = 'scrollWidth';
const mobileBrands = /iPhone|iPad|iPod|Android/i;

@@ -958,4 +1245,66 @@ const userAgentStr = 'userAgentData';

var version = "0.2.17";
/**
* Shortcut for `Array.from()` static method.
* @param {any[]} arr iterable object value
* @returns {Array}
*/
const ArrayFrom = (arr) => Array.from(arr);
/**
* Shortcut for `Float32Array.from()` static method.
* @param {any[]} arr iterable object value
* @returns {Float32Array}
*/
const Float32ArrayFrom = (arr) => Float32Array.from(arr);
/**
* Shortcut for `Float64Array.from()` static method.
* @param {any[]} arr iterable object value
* @returns {Float64Array}
*/
const Float64ArrayFrom = (arr) => Float64Array.from(arr);
/**
* Shortcut for `Object.assign()` static method.
* @param {Record<string, any>} obj a target object
* @param {Record<string, any>} source a source object
*/
const ObjectAssign = (obj, source) => Object.assign(obj, source);
/**
* Shortcut for `Object.keys()` static method.
* @param {Record<string, any>} obj a target object
* @returns {string[]}
*/
const ObjectKeys = (obj) => Object.keys(obj);
/**
* Shortcut for `Object.values()` static method.
* @param {Record<string, any>} obj a target object
* @returns {any[]}
*/
const ObjectValues = (obj) => Object.values(obj);
/**
* Shortcut for `window.getComputedStyle(element).propertyName`
* static method.
* * If `element` parameter is not an `Element`, `getComputedStyle`
* throws a `ReferenceError`.
* * If no property is defined, the entire `CSSStyleDeclaration`
* instance is returned.
*
* @param {Element} element target
* @param {string=} property the css property
* @return {string} the css property value
*/
function getElementStyle(element, property) {
const computedStyle = getComputedStyle(element);
return property && property in computedStyle
? computedStyle[property]
: computedStyle;
}
var version = "0.2.18";
// @ts-ignore

@@ -969,3 +1318,3 @@

// strings FIRST
// strings

@@ -982,4 +1331,25 @@ const SHORTER = {

ariaSelected,
nativeEvents,
abortEvent,
blurEvent,
moveEvent,
changeEvent,
errorEvent,
resetEvent,
scrollEvent,
submitEvent,
loadEvent,
unloadEvent,
readystatechangeEvent,
beforeunloadEvent,
orientationchangeEvent,
contextmenuEvent,
DOMContentLoadedEvent,
DOMMouseScrollEvent,
selectEvent,
selectendEvent,
selectstartEvent,
mouseClickEvents,
mouseclickEvent,
mousedblclickEvent,
mousedownEvent,

@@ -990,2 +1360,6 @@ mouseupEvent,

mouseleaveEvent,
mouseinEvent,
mouseoutEvent,
mousewheelEvent,
mouseSwipeEvents,
touchEvents,

@@ -996,6 +1370,14 @@ touchstartEvent,

touchendEvent,
pointercancelEvent,
pointerdownEvent,
pointerleaveEvent,
pointermoveEvent,
pointerupEvent,
focusEvents,
focusEvent,
focusinEvent,
focusoutEvent,
mouseSwipeEvents,
gesturechangeEvent,
gestureendEvent,
gesturestartEvent,
bezierEasings,

@@ -1021,2 +1403,5 @@ animationDuration,

keyboardEventKeys,
keydownEvent,
keypressEvent,
keyupEvent,
keyAlt,

@@ -1040,2 +1425,6 @@ keyArrowDown,

keyTab,
offsetHeight,
offsetWidth,
scrollHeight,
scrollWidth,
addClass,

@@ -1067,2 +1456,9 @@ removeClass,

reflow,
ArrayFrom,
Float32ArrayFrom,
Float64ArrayFrom,
ObjectAssign,
ObjectKeys,
ObjectValues,
getElementStyle,
Version,

@@ -1069,0 +1465,0 @@ };

4

dist/shorter-js.esm.min.js

@@ -1,2 +0,2 @@

// shorter-js v0.2.17 | dnp_theme © 2021 | MIT-License
const e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],t="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",n="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",o="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",a="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",r="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",s="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",c="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",u=/iPhone|iPad|iPod|Android/i;let l=!1;l=navigator.userAgentData?navigator.userAgentData.brands.some(e=>u.test(e.brand)):u.test(navigator.userAgent);const d=l,{userAgentData:m}=navigator,b=/(iPhone|iPod|iPad)/,p=m?m.brands.some(e=>b.test(e.brand)):b.test(navigator.userAgent),E="webkitPerspective"in document.head.style||"perspective"in document.head.style,g=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,e)});document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e,t)}),t)}catch(e){throw Error("Passive events are not supported")}return e})(),v="webkitTransform"in document.head.style||"transform"in document.head.style,y="ontouchstart"in window||"msMaxTouchPoints"in navigator,h="webkitAnimation"in document.head.style||"animation"in document.head.style,w="webkitTransition"in document.head.style||"transition"in document.head.style;function f(e,t,n,i){const o=i||!1;e.addEventListener(t,n,o)}function k(e,t,n,i){const o=i||!1;e.removeEventListener(t,n,o)}function A(e){return e instanceof Element}function L(e,t){const n=t&&A(t)?t:document;return A(e)?e:n.querySelector(e)}const D=new Map,C={set:(e,t,n)=>{const i=L(e);if(!A(i))return;D.has(t)||D.set(t,new Map);D.get(t).set(i,n)},getAllFor:e=>D.has(e)?D.get(e):null,get:(e,t)=>{const n=L(e),i=C.getAllFor(t);return i&&A(n)&&i.has(n)?i.get(n):null},remove:(e,t)=>{if(!D.has(t))return;const n=D.get(t);n.delete(e),0===n.size&&D.delete(t)}};function T(e){const t=getComputedStyle(e),i=t[o],a=t[n],r=a.includes("ms")?1:1e3,s=h&&i&&"none"!==i?parseFloat(a)*r:0;return Number.isNaN(s)?0:s}function z(e){const n=getComputedStyle(e),i=n[o],a=n[t],r=a.includes("ms")?1:1e3,s=h&&i&&"none"!==i?parseFloat(a)*r:0;return Number.isNaN(s)?0:s}function I(e){const t=getComputedStyle(e),n=t[r],i=t[s],o=i.includes("ms")?1:1e3,a=w&&n&&"none"!==n?parseFloat(i)*o:0;return Number.isNaN(a)?0:a}function S(e){const t=getComputedStyle(e),n=t[r],i=t[a],o=i.includes("ms")?1:1e3,s=w&&n&&"none"!==n?parseFloat(i)*o:0;return Number.isNaN(s)?0:s}function O(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}const P={ariaChecked:"aria-checked",ariaDescribedBy:"aria-describedby",ariaExpanded:"aria-expanded",ariaHidden:"aria-hidden",ariaLabel:"aria-label",ariaLabelledBy:"aria-labelledby",ariaModal:"aria-modal",ariaPressed:"aria-pressed",ariaSelected:"aria-selected",mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseclickEvent:"click",mousedownEvent:"mousedown",mouseupEvent:"mouseup",mouseHoverEvents:e,mouseenterEvent:"mouseenter",mouseleaveEvent:"mouseleave",touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},touchstartEvent:"touchstart",touchmoveEvent:"touchmove",touchcancelEvent:"touchcancel",touchendEvent:"touchend",focusEvents:{in:"focusin",out:"focusout"},focusinEvent:"focusin",focusoutEvent:"focusout",mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:t,animationDelay:n,animationName:o,animationEndEvent:i,transitionDuration:a,transitionDelay:s,transitionEndEvent:c,transitionProperty:r,isMobile:d,isApple:p,support3DTransform:E,supportPassive:g,supportTransform:v,supportTouch:y,supportAnimation:h,supportTransition:w,addEventListener:"addEventListener",removeEventListener:"removeEventListener",keyboardEventKeys:{Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},keyAlt:"Alt",keyArrowDown:"ArrowDown",keyArrowLeft:"ArrowLeft",keyArrowRight:"ArrowRight",keyArrowUp:"ArrowUp",keyBackspace:"Backspace",keyCapsLock:"CapsLock",keyControl:"Control",keyDelete:"Delete",keyEnter:"Enter",keyEscape:"Escape",keyInsert:"Insert",keyMeta:"Meta",keyPause:"Pause",keyScrollLock:"ScrollLock",keyShift:"Shift",keySpace:"Space",keyTab:"Tab",addClass:function(e,t){e.classList.add(t)},removeClass:function(e,t){e.classList.remove(t)},hasClass:function(e,t){return e.classList.contains(t)},on:f,off:k,one:function(e,t,n,i){f(e,t,(function o(a){a.target===e&&(n.apply(e,[a]),k(e,t,o,i))}),i)},Data:C,getInstance:(e,t)=>C.get(e,t),emulateAnimationEnd:function(e,t){let n=0;const o=new Event(i),a=z(e),r=T(e);if(a){const s=o=>{o.target===e&&(t.apply(e,[o]),e.removeEventListener(i,s),n=1)};e.addEventListener(i,s),setTimeout(()=>{n||e.dispatchEvent(o)},a+r+17)}else t.apply(e,[o])},emulateTransitionEnd:function(e,t){let n=0;const i=new Event(c),o=S(e),a=I(e);if(o){const r=i=>{i.target===e&&(t.apply(e,[i]),e.removeEventListener(c,r),n=1)};e.addEventListener(c,r),setTimeout(()=>{n||e.dispatchEvent(i)},o+a+17)}else t.apply(e,[i])},isElementInScrollRange:function(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return t.top<=n&&t.bottom>=0},isElementInViewport:function(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!g&&{passive:!0},getElementAnimationDuration:z,getElementAnimationDelay:T,getElementTransitionDuration:S,getElementTransitionDelay:I,isElement:A,isHTMLElement:function(e){return e instanceof HTMLElement},isMedia:function(e){return[SVGElement,HTMLImageElement,HTMLVideoElement].some(t=>e instanceof t)},isRTL:()=>"rtl"===document.documentElement.dir,queryElement:L,normalizeValue:O,normalizeOptions:function(e,t,n,i){const o={...e.dataset},a={},r={};return Object.keys(o).forEach(e=>{const t=i&&e.includes(i)?e.replace(i,"").replace(/[A-Z]/,e=>e.toLowerCase()):e;r[t]=O(o[e])}),Object.keys(n).forEach(e=>{n[e]=O(n[e])}),Object.keys(t).forEach(e=>{a[e]=e in n?n[e]:e in r?r[e]:t[e]}),a},tryWrapper:function(e,t){try{e()}catch(e){throw TypeError(`${t} ${e}`)}},reflow:function(e){return e.offsetHeight},Version:"0.2.17"};export default P;
// shorter-js v0.2.18 | dnp_theme © 2021 | MIT-License
const e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],t="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",n="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",o="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",a="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",r="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",s="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",c="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",u=/iPhone|iPad|iPod|Android/i;let l=!1;l=navigator.userAgentData?navigator.userAgentData.brands.some(e=>u.test(e.brand)):u.test(navigator.userAgent);const d=l,{userAgentData:m}=navigator,b=/(iPhone|iPod|iPad)/,v=m?m.brands.some(e=>b.test(e.brand)):b.test(navigator.userAgent),p="webkitPerspective"in document.head.style||"perspective"in document.head.style,E=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,e)});document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e,t)}),t)}catch(e){throw Error("Passive events are not supported")}return e})(),g="webkitTransform"in document.head.style||"transform"in document.head.style,h="ontouchstart"in window||"msMaxTouchPoints"in navigator,y="webkitAnimation"in document.head.style||"animation"in document.head.style,f="webkitTransition"in document.head.style||"transition"in document.head.style;function k(e,t,n,o){const i=o||!1;e.addEventListener(t,n,i)}function w(e,t,n,o){const i=o||!1;e.removeEventListener(t,n,i)}function A(e){return e instanceof Element}function L(e,t){const n=t&&A(t)?t:document;return A(e)?e:n.querySelector(e)}const D=new Map,O={set:(e,t,n)=>{const o=L(e);if(!A(o))return;D.has(t)||D.set(t,new Map);D.get(t).set(o,n)},getAllFor:e=>D.has(e)?D.get(e):null,get:(e,t)=>{const n=L(e),o=O.getAllFor(t);return o&&A(n)&&o.has(n)?o.get(n):null},remove:(e,t)=>{if(!D.has(t))return;const n=D.get(t);n.delete(e),0===n.size&&D.delete(t)}};function C(e){const t=getComputedStyle(e),i=t[o],a=t[n],r=a.includes("ms")?1:1e3,s=y&&i&&"none"!==i?parseFloat(a)*r:0;return Number.isNaN(s)?0:s}function T(e){const n=getComputedStyle(e),i=n[o],a=n[t],r=a.includes("ms")?1:1e3,s=y&&i&&"none"!==i?parseFloat(a)*r:0;return Number.isNaN(s)?0:s}function z(e){const t=getComputedStyle(e),n=t[c],o=t[r],i=o.includes("ms")?1:1e3,a=f&&n&&"none"!==n?parseFloat(o)*i:0;return Number.isNaN(a)?0:a}function S(e){const t=getComputedStyle(e),n=t[c],o=t[a],i=o.includes("ms")?1:1e3,r=f&&n&&"none"!==n?parseFloat(o)*i:0;return Number.isNaN(r)?0:r}function M(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}const I={ariaChecked:"aria-checked",ariaDescribedBy:"aria-describedby",ariaExpanded:"aria-expanded",ariaHidden:"aria-hidden",ariaLabel:"aria-label",ariaLabelledBy:"aria-labelledby",ariaModal:"aria-modal",ariaPressed:"aria-pressed",ariaSelected:"aria-selected",nativeEvents:["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointercancel","pointerdown","pointerleave","pointermove","pointerup","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"],abortEvent:"abort",blurEvent:"blur",moveEvent:"move",changeEvent:"change",errorEvent:"error",resetEvent:"reset",scrollEvent:"scroll",submitEvent:"submit",loadEvent:"load",unloadEvent:"unload",readystatechangeEvent:"readystatechange",beforeunloadEvent:"beforeunload",orientationchangeEvent:"orientationchange",contextmenuEvent:"contextmenu",DOMContentLoadedEvent:"DOMContentLoaded",DOMMouseScrollEvent:"DOMMouseScroll",selectEvent:"select",selectendEvent:"selectend",selectstartEvent:"selectstart",mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseclickEvent:"click",mousedblclickEvent:"dblclick",mousedownEvent:"mousedown",mouseupEvent:"mouseup",mouseHoverEvents:e,mouseenterEvent:"mouseenter",mouseleaveEvent:"mouseleave",mouseinEvent:"mousein",mouseoutEvent:"mouseout",mousewheelEvent:"mousewheel",mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},touchstartEvent:"touchstart",touchmoveEvent:"touchmove",touchcancelEvent:"touchcancel",touchendEvent:"touchend",pointercancelEvent:"pointercancel",pointerdownEvent:"pointerdown",pointerleaveEvent:"pointerleave",pointermoveEvent:"pointermove",pointerupEvent:"pointerup",focusEvents:{in:"focusin",out:"focusout"},focusEvent:"focus",focusinEvent:"focusin",focusoutEvent:"focusout",gesturechangeEvent:"gesturechange",gestureendEvent:"gestureend",gesturestartEvent:"gesturestart",bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:t,animationDelay:n,animationName:o,animationEndEvent:i,transitionDuration:a,transitionDelay:r,transitionEndEvent:s,transitionProperty:c,isMobile:d,isApple:v,support3DTransform:p,supportPassive:E,supportTransform:g,supportTouch:h,supportAnimation:y,supportTransition:f,addEventListener:"addEventListener",removeEventListener:"removeEventListener",keyboardEventKeys:{Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},keydownEvent:"keydown",keypressEvent:"keypress",keyupEvent:"keyup",keyAlt:"Alt",keyArrowDown:"ArrowDown",keyArrowLeft:"ArrowLeft",keyArrowRight:"ArrowRight",keyArrowUp:"ArrowUp",keyBackspace:"Backspace",keyCapsLock:"CapsLock",keyControl:"Control",keyDelete:"Delete",keyEnter:"Enter",keyEscape:"Escape",keyInsert:"Insert",keyMeta:"Meta",keyPause:"Pause",keyScrollLock:"ScrollLock",keyShift:"Shift",keySpace:"Space",keyTab:"Tab",offsetHeight:"offsetHeight",offsetWidth:"offsetWidth",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",addClass:function(e,t){e.classList.add(t)},removeClass:function(e,t){e.classList.remove(t)},hasClass:function(e,t){return e.classList.contains(t)},on:k,off:w,one:function(e,t,n,o){k(e,t,(function i(a){a.target===e&&(n.apply(e,[a]),w(e,t,i,o))}),o)},Data:O,getInstance:(e,t)=>O.get(e,t),emulateAnimationEnd:function(e,t){let n=0;const o=new Event(i),a=T(e),r=C(e);if(a){const s=o=>{o.target===e&&(t.apply(e,[o]),e.removeEventListener(i,s),n=1)};e.addEventListener(i,s),setTimeout(()=>{n||e.dispatchEvent(o)},a+r+17)}else t.apply(e,[o])},emulateTransitionEnd:function(e,t){let n=0;const o=new Event(s),i=S(e),a=z(e);if(i){const r=o=>{o.target===e&&(t.apply(e,[o]),e.removeEventListener(s,r),n=1)};e.addEventListener(s,r),setTimeout(()=>{n||e.dispatchEvent(o)},i+a+17)}else t.apply(e,[o])},isElementInScrollRange:function(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return t.top<=n&&t.bottom>=0},isElementInViewport:function(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!E&&{passive:!0},getElementAnimationDuration:T,getElementAnimationDelay:C,getElementTransitionDuration:S,getElementTransitionDelay:z,isElement:A,isHTMLElement:function(e){return e instanceof HTMLElement},isMedia:function(e){return[SVGElement,HTMLImageElement,HTMLVideoElement].some(t=>e instanceof t)},isRTL:()=>"rtl"===document.documentElement.dir,queryElement:L,normalizeValue:M,normalizeOptions:function(e,t,n,o){const i={...e.dataset},a={},r={};return Object.keys(i).forEach(e=>{const t=o&&e.includes(o)?e.replace(o,"").replace(/[A-Z]/,e=>e.toLowerCase()):e;r[t]=M(i[e])}),Object.keys(n).forEach(e=>{n[e]=M(n[e])}),Object.keys(t).forEach(e=>{a[e]=e in n?n[e]:e in r?r[e]:t[e]}),a},tryWrapper:function(e,t){try{e()}catch(e){throw TypeError(`${t} ${e}`)}},reflow:function(e){return e.offsetHeight},ArrayFrom:e=>Array.from(e),Float32ArrayFrom:e=>Float32Array.from(e),Float64ArrayFrom:e=>Float64Array.from(e),ObjectAssign:(e,t)=>Object.assign(e,t),ObjectKeys:e=>Object.keys(e),ObjectValues:e=>Object.values(e),getElementStyle:function(e,t){const n=getComputedStyle(e);return t&&t in n?n[t]:n},Version:"0.2.18"};export default I;
/*!
* shorter-js v0.2.17 (https://github.com/thednp/shorter-js)
* shorter-js v0.2.18 (https://github.com/thednp/shorter-js)
* Copyright 2019-2021 © dnp_theme

@@ -67,2 +67,176 @@ * Licensed under MIT (https://github.com/thednp/shorter-js/blob/master/LICENSE)

/**
* A global namespace for all browser native events.
* @type {string[]}
*/
var nativeEvents = [
'click',
'dblclick',
'mouseup',
'mousedown',
'contextmenu',
'mousewheel',
'DOMMouseScroll',
'mouseover',
'mouseout',
'mousemove',
'selectstart',
'selectend',
'keydown',
'keypress',
'keyup',
'orientationchange',
'touchstart',
'touchmove',
'touchend',
'touchcancel',
'pointercancel',
'pointerdown',
'pointerleave',
'pointermove',
'pointerup',
'gesturestart',
'gesturechange',
'gestureend',
'focus',
'blur',
'change',
'reset',
'select',
'submit',
'focusin',
'focusout',
'load',
'unload',
'beforeunload',
'resize',
'move',
'DOMContentLoaded',
'readystatechange',
'error',
'abort',
'scroll' ];
/**
* A global namespace for `abort` event.
* @type {string}
*/
var abortEvent = 'abort';
/**
* A global namespace for `blur` event.
* @type {string}
*/
var blurEvent = 'blur';
/**
* A global namespace for `move` event.
* @type {string}
*/
var moveEvent = 'move';
/**
* A global namespace for `change` event.
* @type {string}
*/
var changeEvent = 'change';
/**
* A global namespace for `error` event.
* @type {string}
*/
var errorEvent = 'error';
/**
* A global namespace for `reset` event.
* @type {string}
*/
var resetEvent = 'reset';
/**
* A global namespace for `scroll` event.
* @type {string}
*/
var scrollEvent = 'scroll';
/**
* A global namespace for `submit` event.
* @type {string}
*/
var submitEvent = 'submit';
/**
* A global namespace for `load` event.
* @type {string}
*/
var loadEvent = 'load';
/**
* A global namespace for `unload` event.
* @type {string}
*/
var unloadEvent = 'unload';
/**
* A global namespace for `readystatechange` event.
* @type {string}
*/
var readystatechangeEvent = 'readystatechange';
/**
* A global namespace for `beforeunload` event.
* @type {string}
*/
var beforeunloadEvent = 'beforeunload';
/**
* A global namespace for `orientationchange` event.
* @type {string}
*/
var orientationchangeEvent = 'orientationchange';
/**
* A global namespace for `contextmenu` event.
* @type {string}
*/
var contextmenuEvent = 'contextmenu';
/**
* A global namespace for `DOMContentLoaded` event.
* @type {string}
*/
var DOMContentLoadedEvent = 'DOMContentLoaded';
/**
* A global namespace for `DOMMouseScroll` event.
* @type {string}
*/
var DOMMouseScrollEvent = 'DOMMouseScroll';
/**
* A global namespace for `select` event.
* @type {string}
*/
var selectEvent = 'select';
/**
* A global namespace for the `selectend` event.
* @type {string}
*/
var selectendEvent = 'selectend';
/**
* A global namespace for the `selectstart` event.
* @type {string}
*/
var selectstartEvent = 'selectstart';
/**
* A global namespace for mouse events equivalent to touch events.
* @type {Record<string, string>}
*/
var mouseSwipeEvents = {
start: 'mousedown', end: 'mouseup', move: 'mousemove', cancel: 'mouseleave',
};
/**
* A global namespace for mouse click events.

@@ -80,2 +254,8 @@ * @type {Record<string, string>}

/**
* A global namespace for `dblclick` event.
* @type {string}
*/
var mousedblclickEvent = 'dblclick';
/**
* A global namespace for `mousedown` event.

@@ -111,2 +291,20 @@ * @type {string}

/**
* A global namespace for `mousein` event.
* @type {string}
*/
var mouseinEvent = 'mousein';
/**
* A global namespace for `mouseout` event.
* @type {string}
*/
var mouseoutEvent = 'mouseout';
/**
* A global namespace for `mousewheel` event.
* @type {string}
*/
var mousewheelEvent = 'mousewheel';
/**
* A global namespace for touch events.

@@ -144,119 +342,72 @@ * @type {Record<string, string>}

/**
* A global namespace for focus event names.
* @type {{in: string, out: string}}
*/
var focusEvents = { in: 'focusin', out: 'focusout' };
/**
* A global namespace for `focusin` event.
* A global namespace for `pointercancel` event.
* @type {string}
*/
var focusinEvent = 'focusin';
var pointercancelEvent = 'pointercancel';
/**
* A global namespace for `focusout` event.
* A global namespace for `pointerdown` event.
* @type {string}
*/
var focusoutEvent = 'focusout';
var pointerdownEvent = 'pointerdown';
/**
* A global namespace for mouse events equivalent to touch events.
* @type {Record<string, string>}
*/
var mouseSwipeEvents = {
start: 'mousedown', end: 'mouseup', move: 'mousemove', cancel: 'mouseleave',
};
/**
* A global namespace for 'animationDuration' string.
* A global namespace for `pointerleave` event.
* @type {string}
*/
var animationDuration = 'webkitAnimation' in document.head.style ? 'webkitAnimationDuration' : 'animationDuration';
var pointerleaveEvent = 'pointerleave';
/**
* A global namespace for 'animationDelay' string.
* A global namespace for `pointermove` event.
* @type {string}
*/
var animationDelay = 'webkitAnimation' in document.head.style ? 'webkitAnimationDelay' : 'animationDelay';
var pointermoveEvent = 'pointermove';
/**
* A global namespace for 'animationend' string.
* A global namespace for `pointerup` event.
* @type {string}
*/
var animationEndEvent = 'webkitAnimation' in document.head.style ? 'webkitAnimationEnd' : 'animationend';
var pointerupEvent = 'pointerup';
/**
* A global namespace for 'animationName' string.
* @type {string}
* A global namespace for focus event names.
* @type {{in: string, out: string}}
*/
var animationName = 'webkitAnimation' in document.head.style ? 'webkitAnimationName' : 'animationName';
var focusEvents = { in: 'focusin', out: 'focusout' };
/**
* A global namespace for 'transitionDuration' string.
* A global namespace for `focus` event.
* @type {string}
*/
var transitionDuration = 'webkitTransition' in document.head.style ? 'webkitTransitionDuration' : 'transitionDuration';
var focusEvent = 'focus';
/**
* A global namespace for 'transitionProperty' string.
* A global namespace for `focusin` event.
* @type {string}
*/
var transitionProperty = 'webkitTransition' in document.head.style ? 'webkitTransitionProperty' : 'transitionProperty';
var focusinEvent = 'focusin';
/**
* A global namespace for 'transitionDelay' string.
* A global namespace for `focusout` event.
* @type {string}
*/
var transitionDelay = 'webkitTransition' in document.head.style ? 'webkitTransitionDelay' : 'transitionDelay';
var focusoutEvent = 'focusout';
/**
* A global namespace for 'transitionend' string.
* A global namespace for `gesturechange` event.
* @type {string}
*/
var transitionEndEvent = 'webkitTransition' in document.head.style ? 'webkitTransitionEnd' : 'transitionend';
var gesturechangeEvent = 'gesturechange';
/**
* A global namespace for predefined
* CSS3 'cubic-bezier()' easing functions.
* @type {Record<string, string>}
*/
var bezierEasings = {
linear: 'linear',
easingSinusoidalIn: 'cubic-bezier(0.47,0,0.745,0.715)',
easingSinusoidalOut: 'cubic-bezier(0.39,0.575,0.565,1)',
easingSinusoidalInOut: 'cubic-bezier(0.445,0.05,0.55,0.95)',
easingQuadraticIn: 'cubic-bezier(0.550,0.085,0.680,0.530)',
easingQuadraticOut: 'cubic-bezier(0.250,0.460,0.450,0.940)',
easingQuadraticInOut: 'cubic-bezier(0.455,0.030,0.515,0.955)',
easingCubicIn: 'cubic-bezier(0.55,0.055,0.675,0.19)',
easingCubicOut: 'cubic-bezier(0.215,0.61,0.355,1)',
easingCubicInOut: 'cubic-bezier(0.645,0.045,0.355,1)',
easingQuarticIn: 'cubic-bezier(0.895,0.03,0.685,0.22)',
easingQuarticOut: 'cubic-bezier(0.165,0.84,0.44,1)',
easingQuarticInOut: 'cubic-bezier(0.77,0,0.175,1)',
easingQuinticIn: 'cubic-bezier(0.755,0.05,0.855,0.06)',
easingQuinticOut: 'cubic-bezier(0.23,1,0.32,1)',
easingQuinticInOut: 'cubic-bezier(0.86,0,0.07,1)',
easingExponentialIn: 'cubic-bezier(0.95,0.05,0.795,0.035)',
easingExponentialOut: 'cubic-bezier(0.19,1,0.22,1)',
easingExponentialInOut: 'cubic-bezier(1,0,0,1)',
easingCircularIn: 'cubic-bezier(0.6,0.04,0.98,0.335)',
easingCircularOut: 'cubic-bezier(0.075,0.82,0.165,1)',
easingCircularInOut: 'cubic-bezier(0.785,0.135,0.15,0.86)',
easingBackIn: 'cubic-bezier(0.6,-0.28,0.735,0.045)',
easingBackOut: 'cubic-bezier(0.175,0.885,0.32,1.275)',
easingBackInOut: 'cubic-bezier(0.68,-0.55,0.265,1.55)',
};
/**
* A global namespace for 'addEventListener' string.
* A global namespace for `gestureend` event.
* @type {string}
*/
var addEventListener = 'addEventListener';
var gestureendEvent = 'gestureend';
/**
* A global namespace for 'removeEventListener' string.
* A global namespace for `gesturestart` event.
* @type {string}
*/
var removeEventListener = 'removeEventListener';
var gesturestartEvent = 'gesturestart';

@@ -290,2 +441,20 @@ /**

/**
* A global namespace for `keydown` event.
* @type {string}
*/
var keydownEvent = 'keydown';
/**
* A global namespace for `keyup` event.
* @type {string}
*/
var keyupEvent = 'keyup';
/**
* A global namespace for `keypress` event.
* @type {string}
*/
var keypressEvent = 'keypress';
/**
* A global namespace for `Alt` key.

@@ -398,2 +567,119 @@ * @type {string} e.which = 18

/**
* A global namespace for 'animationDuration' string.
* @type {string}
*/
var animationDuration = 'webkitAnimation' in document.head.style ? 'webkitAnimationDuration' : 'animationDuration';
/**
* A global namespace for 'animationDelay' string.
* @type {string}
*/
var animationDelay = 'webkitAnimation' in document.head.style ? 'webkitAnimationDelay' : 'animationDelay';
/**
* A global namespace for 'animationName' string.
* @type {string}
*/
var animationName = 'webkitAnimation' in document.head.style ? 'webkitAnimationName' : 'animationName';
/**
* A global namespace for 'animationend' string.
* @type {string}
*/
var animationEndEvent = 'webkitAnimation' in document.head.style ? 'webkitAnimationEnd' : 'animationend';
/**
* A global namespace for 'transitionDuration' string.
* @type {string}
*/
var transitionDuration = 'webkitTransition' in document.head.style ? 'webkitTransitionDuration' : 'transitionDuration';
/**
* A global namespace for 'transitionDelay' string.
* @type {string}
*/
var transitionDelay = 'webkitTransition' in document.head.style ? 'webkitTransitionDelay' : 'transitionDelay';
/**
* A global namespace for 'transitionend' string.
* @type {string}
*/
var transitionEndEvent = 'webkitTransition' in document.head.style ? 'webkitTransitionEnd' : 'transitionend';
/**
* A global namespace for 'transitionProperty' string.
* @type {string}
*/
var transitionProperty = 'webkitTransition' in document.head.style ? 'webkitTransitionProperty' : 'transitionProperty';
/**
* A global namespace for 'addEventListener' string.
* @type {string}
*/
var addEventListener = 'addEventListener';
/**
* A global namespace for 'removeEventListener' string.
* @type {string}
*/
var removeEventListener = 'removeEventListener';
/**
* A global namespace for predefined
* CSS3 'cubic-bezier()' easing functions.
* @type {Record<string, string>}
*/
var bezierEasings = {
linear: 'linear',
easingSinusoidalIn: 'cubic-bezier(0.47,0,0.745,0.715)',
easingSinusoidalOut: 'cubic-bezier(0.39,0.575,0.565,1)',
easingSinusoidalInOut: 'cubic-bezier(0.445,0.05,0.55,0.95)',
easingQuadraticIn: 'cubic-bezier(0.550,0.085,0.680,0.530)',
easingQuadraticOut: 'cubic-bezier(0.250,0.460,0.450,0.940)',
easingQuadraticInOut: 'cubic-bezier(0.455,0.030,0.515,0.955)',
easingCubicIn: 'cubic-bezier(0.55,0.055,0.675,0.19)',
easingCubicOut: 'cubic-bezier(0.215,0.61,0.355,1)',
easingCubicInOut: 'cubic-bezier(0.645,0.045,0.355,1)',
easingQuarticIn: 'cubic-bezier(0.895,0.03,0.685,0.22)',
easingQuarticOut: 'cubic-bezier(0.165,0.84,0.44,1)',
easingQuarticInOut: 'cubic-bezier(0.77,0,0.175,1)',
easingQuinticIn: 'cubic-bezier(0.755,0.05,0.855,0.06)',
easingQuinticOut: 'cubic-bezier(0.23,1,0.32,1)',
easingQuinticInOut: 'cubic-bezier(0.86,0,0.07,1)',
easingExponentialIn: 'cubic-bezier(0.95,0.05,0.795,0.035)',
easingExponentialOut: 'cubic-bezier(0.19,1,0.22,1)',
easingExponentialInOut: 'cubic-bezier(1,0,0,1)',
easingCircularIn: 'cubic-bezier(0.6,0.04,0.98,0.335)',
easingCircularOut: 'cubic-bezier(0.075,0.82,0.165,1)',
easingCircularInOut: 'cubic-bezier(0.785,0.135,0.15,0.86)',
easingBackIn: 'cubic-bezier(0.6,-0.28,0.735,0.045)',
easingBackOut: 'cubic-bezier(0.175,0.885,0.32,1.275)',
easingBackInOut: 'cubic-bezier(0.68,-0.55,0.265,1.55)',
};
/**
* A global namespace for `offsetHeight` property.
* @type {string}
*/
var offsetHeight = 'offsetHeight';
/**
* A global namespace for `offsetWidth` property.
* @type {string}
*/
var offsetWidth = 'offsetWidth';
/**
* A global namespace for `scrollHeight` property.
* @type {string}
*/
var scrollHeight = 'scrollHeight';
/**
* A global namespace for `scrollWidth` property.
* @type {string}
*/
var scrollWidth = 'scrollWidth';
var mobileBrands = /iPhone|iPad|iPod|Android/i;

@@ -964,4 +1250,66 @@ var userAgentStr = 'userAgentData';

var version = "0.2.17";
/**
* Shortcut for `Array.from()` static method.
* @param {any[]} arr iterable object value
* @returns {Array}
*/
var ArrayFrom = function (arr) { return Array.from(arr); };
/**
* Shortcut for `Float32Array.from()` static method.
* @param {any[]} arr iterable object value
* @returns {Float32Array}
*/
var Float32ArrayFrom = function (arr) { return Float32Array.from(arr); };
/**
* Shortcut for `Float64Array.from()` static method.
* @param {any[]} arr iterable object value
* @returns {Float64Array}
*/
var Float64ArrayFrom = function (arr) { return Float64Array.from(arr); };
/**
* Shortcut for `Object.assign()` static method.
* @param {Record<string, any>} obj a target object
* @param {Record<string, any>} source a source object
*/
var ObjectAssign = function (obj, source) { return Object.assign(obj, source); };
/**
* Shortcut for `Object.keys()` static method.
* @param {Record<string, any>} obj a target object
* @returns {string[]}
*/
var ObjectKeys = function (obj) { return Object.keys(obj); };
/**
* Shortcut for `Object.values()` static method.
* @param {Record<string, any>} obj a target object
* @returns {any[]}
*/
var ObjectValues = function (obj) { return Object.values(obj); };
/**
* Shortcut for `window.getComputedStyle(element).propertyName`
* static method.
* * If `element` parameter is not an `Element`, `getComputedStyle`
* throws a `ReferenceError`.
* * If no property is defined, the entire `CSSStyleDeclaration`
* instance is returned.
*
* @param {Element} element target
* @param {string=} property the css property
* @return {string} the css property value
*/
function getElementStyle(element, property) {
var computedStyle = getComputedStyle(element);
return property && property in computedStyle
? computedStyle[property]
: computedStyle;
}
var version = "0.2.18";
// @ts-ignore

@@ -975,3 +1323,3 @@

// strings FIRST
// strings

@@ -988,4 +1336,25 @@ var SHORTER = {

ariaSelected: ariaSelected,
nativeEvents: nativeEvents,
abortEvent: abortEvent,
blurEvent: blurEvent,
moveEvent: moveEvent,
changeEvent: changeEvent,
errorEvent: errorEvent,
resetEvent: resetEvent,
scrollEvent: scrollEvent,
submitEvent: submitEvent,
loadEvent: loadEvent,
unloadEvent: unloadEvent,
readystatechangeEvent: readystatechangeEvent,
beforeunloadEvent: beforeunloadEvent,
orientationchangeEvent: orientationchangeEvent,
contextmenuEvent: contextmenuEvent,
DOMContentLoadedEvent: DOMContentLoadedEvent,
DOMMouseScrollEvent: DOMMouseScrollEvent,
selectEvent: selectEvent,
selectendEvent: selectendEvent,
selectstartEvent: selectstartEvent,
mouseClickEvents: mouseClickEvents,
mouseclickEvent: mouseclickEvent,
mousedblclickEvent: mousedblclickEvent,
mousedownEvent: mousedownEvent,

@@ -996,2 +1365,6 @@ mouseupEvent: mouseupEvent,

mouseleaveEvent: mouseleaveEvent,
mouseinEvent: mouseinEvent,
mouseoutEvent: mouseoutEvent,
mousewheelEvent: mousewheelEvent,
mouseSwipeEvents: mouseSwipeEvents,
touchEvents: touchEvents,

@@ -1002,6 +1375,14 @@ touchstartEvent: touchstartEvent,

touchendEvent: touchendEvent,
pointercancelEvent: pointercancelEvent,
pointerdownEvent: pointerdownEvent,
pointerleaveEvent: pointerleaveEvent,
pointermoveEvent: pointermoveEvent,
pointerupEvent: pointerupEvent,
focusEvents: focusEvents,
focusEvent: focusEvent,
focusinEvent: focusinEvent,
focusoutEvent: focusoutEvent,
mouseSwipeEvents: mouseSwipeEvents,
gesturechangeEvent: gesturechangeEvent,
gestureendEvent: gestureendEvent,
gesturestartEvent: gesturestartEvent,
bezierEasings: bezierEasings,

@@ -1027,2 +1408,5 @@ animationDuration: animationDuration,

keyboardEventKeys: keyboardEventKeys,
keydownEvent: keydownEvent,
keypressEvent: keypressEvent,
keyupEvent: keyupEvent,
keyAlt: keyAlt,

@@ -1046,2 +1430,6 @@ keyArrowDown: keyArrowDown,

keyTab: keyTab,
offsetHeight: offsetHeight,
offsetWidth: offsetWidth,
scrollHeight: scrollHeight,
scrollWidth: scrollWidth,
addClass: addClass,

@@ -1073,2 +1461,9 @@ removeClass: removeClass,

reflow: reflow,
ArrayFrom: ArrayFrom,
Float32ArrayFrom: Float32ArrayFrom,
Float64ArrayFrom: Float64ArrayFrom,
ObjectAssign: ObjectAssign,
ObjectKeys: ObjectKeys,
ObjectValues: ObjectValues,
getElementStyle: getElementStyle,
Version: Version,

@@ -1075,0 +1470,0 @@ };

@@ -1,2 +0,2 @@

// shorter-js v0.2.17 | dnp_theme © 2021 | MIT-License
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).SHORTER=n()}(this,(function(){"use strict";var e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],n="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",t="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",a="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",o="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",r="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",u="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",s="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",c=/iPhone|iPad|iPod|Android/i,l=navigator.userAgentData?navigator.userAgentData.brands.some((function(e){return c.test(e.brand)})):c.test(navigator.userAgent),d=navigator.userAgentData,m=/(iPhone|iPod|iPad)/,b=d?d.brands.some((function(e){return m.test(e.brand)})):m.test(navigator.userAgent),p="webkitPerspective"in document.head.style||"perspective"in document.head.style,v=function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){return e=!0}});document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e,n)}),n)}catch(e){throw Error("Passive events are not supported")}return e}(),f="webkitTransform"in document.head.style||"transform"in document.head.style,E="ontouchstart"in window||"msMaxTouchPoints"in navigator,g="webkitAnimation"in document.head.style||"animation"in document.head.style,y="webkitTransition"in document.head.style||"transition"in document.head.style;function h(e,n,t,i){var a=i||!1;e.addEventListener(n,t,a)}function w(e,n,t,i){var a=i||!1;e.removeEventListener(n,t,a)}function k(e){return e instanceof Element}function A(e,n){var t=n&&k(n)?n:document;return k(e)?e:t.querySelector(e)}var L=new Map,D={set:function(e,n,t){var i=A(e);k(i)&&(L.has(n)||L.set(n,new Map),L.get(n).set(i,t))},getAllFor:function(e){return L.has(e)?L.get(e):null},get:function(e,n){var t=A(e),i=D.getAllFor(n);return i&&k(t)&&i.has(t)?i.get(t):null},remove:function(e,n){if(L.has(n)){var t=L.get(n);t.delete(e),0===t.size&&L.delete(n)}}};function T(e){var n=getComputedStyle(e),i=n[a],o=n[t],r=o.includes("ms")?1:1e3,u=g&&i&&"none"!==i?parseFloat(o)*r:0;return Number.isNaN(u)?0:u}function C(e){var t=getComputedStyle(e),i=t[a],o=t[n],r=o.includes("ms")?1:1e3,u=g&&i&&"none"!==i?parseFloat(o)*r:0;return Number.isNaN(u)?0:u}function z(e){var n=getComputedStyle(e),t=n[r],i=n[u],a=i.includes("ms")?1:1e3,o=y&&t&&"none"!==t?parseFloat(i)*a:0;return Number.isNaN(o)?0:o}function O(e){var n=getComputedStyle(e),t=n[r],i=n[o],a=i.includes("ms")?1:1e3,u=y&&t&&"none"!==t?parseFloat(i)*a:0;return Number.isNaN(u)?0:u}function S(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}return{ariaChecked:"aria-checked",ariaDescribedBy:"aria-describedby",ariaExpanded:"aria-expanded",ariaHidden:"aria-hidden",ariaLabel:"aria-label",ariaLabelledBy:"aria-labelledby",ariaModal:"aria-modal",ariaPressed:"aria-pressed",ariaSelected:"aria-selected",mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseclickEvent:"click",mousedownEvent:"mousedown",mouseupEvent:"mouseup",mouseHoverEvents:e,mouseenterEvent:"mouseenter",mouseleaveEvent:"mouseleave",touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},touchstartEvent:"touchstart",touchmoveEvent:"touchmove",touchcancelEvent:"touchcancel",touchendEvent:"touchend",focusEvents:{in:"focusin",out:"focusout"},focusinEvent:"focusin",focusoutEvent:"focusout",mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:n,animationDelay:t,animationName:a,animationEndEvent:i,transitionDuration:o,transitionDelay:u,transitionEndEvent:s,transitionProperty:r,isMobile:l,isApple:b,support3DTransform:p,supportPassive:v,supportTransform:f,supportTouch:E,supportAnimation:g,supportTransition:y,addEventListener:"addEventListener",removeEventListener:"removeEventListener",keyboardEventKeys:{Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},keyAlt:"Alt",keyArrowDown:"ArrowDown",keyArrowLeft:"ArrowLeft",keyArrowRight:"ArrowRight",keyArrowUp:"ArrowUp",keyBackspace:"Backspace",keyCapsLock:"CapsLock",keyControl:"Control",keyDelete:"Delete",keyEnter:"Enter",keyEscape:"Escape",keyInsert:"Insert",keyMeta:"Meta",keyPause:"Pause",keyScrollLock:"ScrollLock",keyShift:"Shift",keySpace:"Space",keyTab:"Tab",addClass:function(e,n){e.classList.add(n)},removeClass:function(e,n){e.classList.remove(n)},hasClass:function(e,n){return e.classList.contains(n)},on:h,off:w,one:function(e,n,t,i){h(e,n,(function a(o){o.target===e&&(t.apply(e,[o]),w(e,n,a,i))}),i)},Data:D,getInstance:function(e,n){return D.get(e,n)},emulateAnimationEnd:function(e,n){var t=0,a=new Event(i),o=C(e),r=T(e);if(o){var u=function(a){a.target===e&&(n.apply(e,[a]),e.removeEventListener(i,u),t=1)};e.addEventListener(i,u),setTimeout((function(){t||e.dispatchEvent(a)}),o+r+17)}else n.apply(e,[a])},emulateTransitionEnd:function(e,n){var t=0,i=new Event(s),a=O(e),o=z(e);if(a){var r=function(i){i.target===e&&(n.apply(e,[i]),e.removeEventListener(s,r),t=1)};e.addEventListener(s,r),setTimeout((function(){t||e.dispatchEvent(i)}),a+o+17)}else n.apply(e,[i])},isElementInScrollRange:function(e){var n=e.getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight;return n.top<=t&&n.bottom>=0},isElementInViewport:function(e){var n=e.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!v&&{passive:!0},getElementAnimationDuration:C,getElementAnimationDelay:T,getElementTransitionDuration:O,getElementTransitionDelay:z,isElement:k,isHTMLElement:function(e){return e instanceof HTMLElement},isMedia:function(e){return[SVGElement,HTMLImageElement,HTMLVideoElement].some((function(n){return e instanceof n}))},isRTL:function(){return"rtl"===document.documentElement.dir},queryElement:A,normalizeValue:S,normalizeOptions:function(e,n,t,i){var a=Object.assign({},e.dataset),o={},r={};return Object.keys(a).forEach((function(e){var n=i&&e.includes(i)?e.replace(i,"").replace(/[A-Z]/,(function(e){return e.toLowerCase()})):e;r[n]=S(a[e])})),Object.keys(t).forEach((function(e){t[e]=S(t[e])})),Object.keys(n).forEach((function(e){o[e]=e in t?t[e]:e in r?r[e]:n[e]})),o},tryWrapper:function(e,n){try{e()}catch(e){throw TypeError(n+" "+e)}},reflow:function(e){return e.offsetHeight},Version:"0.2.17"}}));
// shorter-js v0.2.18 | dnp_theme © 2021 | MIT-License
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).SHORTER=t()}(this,(function(){"use strict";var e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],t="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",n="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",o="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",r="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",a="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",s="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",u="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",c=/iPhone|iPad|iPod|Android/i,l=navigator.userAgentData?navigator.userAgentData.brands.some((function(e){return c.test(e.brand)})):c.test(navigator.userAgent),d=navigator.userAgentData,m=/(iPhone|iPod|iPad)/,v=d?d.brands.some((function(e){return m.test(e.brand)})):m.test(navigator.userAgent),b="webkitPerspective"in document.head.style||"perspective"in document.head.style,p=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0}});document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e,t)}),t)}catch(e){throw Error("Passive events are not supported")}return e}(),f="webkitTransform"in document.head.style||"transform"in document.head.style,E="ontouchstart"in window||"msMaxTouchPoints"in navigator,g="webkitAnimation"in document.head.style||"animation"in document.head.style,h="webkitTransition"in document.head.style||"transition"in document.head.style;function y(e,t,n,i){var o=i||!1;e.addEventListener(t,n,o)}function k(e,t,n,i){var o=i||!1;e.removeEventListener(t,n,o)}function w(e){return e instanceof Element}function A(e,t){var n=t&&w(t)?t:document;return w(e)?e:n.querySelector(e)}var L=new Map,D={set:function(e,t,n){var i=A(e);w(i)&&(L.has(t)||L.set(t,new Map),L.get(t).set(i,n))},getAllFor:function(e){return L.has(e)?L.get(e):null},get:function(e,t){var n=A(e),i=D.getAllFor(t);return i&&w(n)&&i.has(n)?i.get(n):null},remove:function(e,t){if(L.has(t)){var n=L.get(t);n.delete(e),0===n.size&&L.delete(t)}}};function O(e){var t=getComputedStyle(e),o=t[i],r=t[n],a=r.includes("ms")?1:1e3,s=g&&o&&"none"!==o?parseFloat(r)*a:0;return Number.isNaN(s)?0:s}function C(e){var n=getComputedStyle(e),o=n[i],r=n[t],a=r.includes("ms")?1:1e3,s=g&&o&&"none"!==o?parseFloat(r)*a:0;return Number.isNaN(s)?0:s}function T(e){var t=getComputedStyle(e),n=t[u],i=t[a],o=i.includes("ms")?1:1e3,r=h&&n&&"none"!==n?parseFloat(i)*o:0;return Number.isNaN(r)?0:r}function S(e){var t=getComputedStyle(e),n=t[u],i=t[r],o=i.includes("ms")?1:1e3,a=h&&n&&"none"!==n?parseFloat(i)*o:0;return Number.isNaN(a)?0:a}function z(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}return{ariaChecked:"aria-checked",ariaDescribedBy:"aria-describedby",ariaExpanded:"aria-expanded",ariaHidden:"aria-hidden",ariaLabel:"aria-label",ariaLabelledBy:"aria-labelledby",ariaModal:"aria-modal",ariaPressed:"aria-pressed",ariaSelected:"aria-selected",nativeEvents:["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointercancel","pointerdown","pointerleave","pointermove","pointerup","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"],abortEvent:"abort",blurEvent:"blur",moveEvent:"move",changeEvent:"change",errorEvent:"error",resetEvent:"reset",scrollEvent:"scroll",submitEvent:"submit",loadEvent:"load",unloadEvent:"unload",readystatechangeEvent:"readystatechange",beforeunloadEvent:"beforeunload",orientationchangeEvent:"orientationchange",contextmenuEvent:"contextmenu",DOMContentLoadedEvent:"DOMContentLoaded",DOMMouseScrollEvent:"DOMMouseScroll",selectEvent:"select",selectendEvent:"selectend",selectstartEvent:"selectstart",mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseclickEvent:"click",mousedblclickEvent:"dblclick",mousedownEvent:"mousedown",mouseupEvent:"mouseup",mouseHoverEvents:e,mouseenterEvent:"mouseenter",mouseleaveEvent:"mouseleave",mouseinEvent:"mousein",mouseoutEvent:"mouseout",mousewheelEvent:"mousewheel",mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},touchstartEvent:"touchstart",touchmoveEvent:"touchmove",touchcancelEvent:"touchcancel",touchendEvent:"touchend",pointercancelEvent:"pointercancel",pointerdownEvent:"pointerdown",pointerleaveEvent:"pointerleave",pointermoveEvent:"pointermove",pointerupEvent:"pointerup",focusEvents:{in:"focusin",out:"focusout"},focusEvent:"focus",focusinEvent:"focusin",focusoutEvent:"focusout",gesturechangeEvent:"gesturechange",gestureendEvent:"gestureend",gesturestartEvent:"gesturestart",bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:t,animationDelay:n,animationName:i,animationEndEvent:o,transitionDuration:r,transitionDelay:a,transitionEndEvent:s,transitionProperty:u,isMobile:l,isApple:v,support3DTransform:b,supportPassive:p,supportTransform:f,supportTouch:E,supportAnimation:g,supportTransition:h,addEventListener:"addEventListener",removeEventListener:"removeEventListener",keyboardEventKeys:{Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},keydownEvent:"keydown",keypressEvent:"keypress",keyupEvent:"keyup",keyAlt:"Alt",keyArrowDown:"ArrowDown",keyArrowLeft:"ArrowLeft",keyArrowRight:"ArrowRight",keyArrowUp:"ArrowUp",keyBackspace:"Backspace",keyCapsLock:"CapsLock",keyControl:"Control",keyDelete:"Delete",keyEnter:"Enter",keyEscape:"Escape",keyInsert:"Insert",keyMeta:"Meta",keyPause:"Pause",keyScrollLock:"ScrollLock",keyShift:"Shift",keySpace:"Space",keyTab:"Tab",offsetHeight:"offsetHeight",offsetWidth:"offsetWidth",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",addClass:function(e,t){e.classList.add(t)},removeClass:function(e,t){e.classList.remove(t)},hasClass:function(e,t){return e.classList.contains(t)},on:y,off:k,one:function(e,t,n,i){y(e,t,(function o(r){r.target===e&&(n.apply(e,[r]),k(e,t,o,i))}),i)},Data:D,getInstance:function(e,t){return D.get(e,t)},emulateAnimationEnd:function(e,t){var n=0,i=new Event(o),r=C(e),a=O(e);if(r){var s=function(i){i.target===e&&(t.apply(e,[i]),e.removeEventListener(o,s),n=1)};e.addEventListener(o,s),setTimeout((function(){n||e.dispatchEvent(i)}),r+a+17)}else t.apply(e,[i])},emulateTransitionEnd:function(e,t){var n=0,i=new Event(s),o=S(e),r=T(e);if(o){var a=function(i){i.target===e&&(t.apply(e,[i]),e.removeEventListener(s,a),n=1)};e.addEventListener(s,a),setTimeout((function(){n||e.dispatchEvent(i)}),o+r+17)}else t.apply(e,[i])},isElementInScrollRange:function(e){var t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return t.top<=n&&t.bottom>=0},isElementInViewport:function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!p&&{passive:!0},getElementAnimationDuration:C,getElementAnimationDelay:O,getElementTransitionDuration:S,getElementTransitionDelay:T,isElement:w,isHTMLElement:function(e){return e instanceof HTMLElement},isMedia:function(e){return[SVGElement,HTMLImageElement,HTMLVideoElement].some((function(t){return e instanceof t}))},isRTL:function(){return"rtl"===document.documentElement.dir},queryElement:A,normalizeValue:z,normalizeOptions:function(e,t,n,i){var o=Object.assign({},e.dataset),r={},a={};return Object.keys(o).forEach((function(e){var t=i&&e.includes(i)?e.replace(i,"").replace(/[A-Z]/,(function(e){return e.toLowerCase()})):e;a[t]=z(o[e])})),Object.keys(n).forEach((function(e){n[e]=z(n[e])})),Object.keys(t).forEach((function(e){r[e]=e in n?n[e]:e in a?a[e]:t[e]})),r},tryWrapper:function(e,t){try{e()}catch(e){throw TypeError(t+" "+e)}},reflow:function(e){return e.offsetHeight},ArrayFrom:function(e){return Array.from(e)},Float32ArrayFrom:function(e){return Float32Array.from(e)},Float64ArrayFrom:function(e){return Float64Array.from(e)},ObjectAssign:function(e,t){return Object.assign(e,t)},ObjectKeys:function(e){return Object.keys(e)},ObjectValues:function(e){return Object.values(e)},getElementStyle:function(e,t){var n=getComputedStyle(e);return t&&t in n?n[t]:n},Version:"0.2.18"}}));
{
"name": "shorter-js",
"version": "0.2.17",
"version": "0.2.18",
"description": "A small ES6+ library with various JavaScript tools useful for creating light libraries.",

@@ -5,0 +5,0 @@ "main": "dist/shorter-js.min.js",

@@ -1,2 +0,2 @@

// strings FIRST
// strings
import ariaChecked from './strings/ariaChecked';

@@ -12,4 +12,28 @@ import ariaDescribedBy from './strings/ariaDescribedBy';

import nativeEvents from './strings/nativeEvents';
import abortEvent from './strings/abortEvent';
import blurEvent from './strings/blurEvent';
import moveEvent from './strings/moveEvent';
import changeEvent from './strings/changeEvent';
import errorEvent from './strings/errorEvent';
import resetEvent from './strings/resetEvent';
import scrollEvent from './strings/scrollEvent';
import submitEvent from './strings/submitEvent';
import loadEvent from './strings/loadEvent';
import unloadEvent from './strings/unloadEvent';
import readystatechangeEvent from './strings/readystatechangeEvent';
import beforeunloadEvent from './strings/beforeunloadEvent';
import orientationchangeEvent from './strings/orientationchangeEvent';
import contextmenuEvent from './strings/contextmenuEvent';
import DOMContentLoadedEvent from './strings/DOMContentLoadedEvent';
import DOMMouseScrollEvent from './strings/DOMMouseScrollEvent';
import selectEvent from './strings/selectEvent';
import selectendEvent from './strings/selectendEvent';
import selectstartEvent from './strings/selectstartEvent';
import mouseSwipeEvents from './strings/mouseSwipeEvents';
import mouseClickEvents from './strings/mouseClickEvents';
import mouseclickEvent from './strings/mouseclickEvent';
import mousedblclickEvent from './strings/mousedblclickEvent';
import mousedownEvent from './strings/mousedownEvent';

@@ -20,2 +44,6 @@ import mouseupEvent from './strings/mouseupEvent';

import mouseleaveEvent from './strings/mouseleaveEvent';
import mouseinEvent from './strings/mouseinEvent';
import mouseoutEvent from './strings/mouseoutEvent';
import mousewheelEvent from './strings/mousewheelEvent';
import touchEvents from './strings/touchEvents';

@@ -26,20 +54,22 @@ import touchstartEvent from './strings/touchstartEvent';

import touchendEvent from './strings/touchendEvent';
import pointercancelEvent from './strings/pointercancelEvent';
import pointerdownEvent from './strings/pointerdownEvent';
import pointerleaveEvent from './strings/pointerleaveEvent';
import pointermoveEvent from './strings/pointermoveEvent';
import pointerupEvent from './strings/pointerupEvent';
import focusEvents from './strings/focusEvents';
import focusEvent from './strings/focusEvent';
import focusinEvent from './strings/focusinEvent';
import focusoutEvent from './strings/focusoutEvent';
import mouseSwipeEvents from './strings/mouseSwipeEvents';
import animationDuration from './strings/animationDuration';
import animationDelay from './strings/animationDelay';
import animationEndEvent from './strings/animationEndEvent';
import animationName from './strings/animationName';
import transitionDuration from './strings/transitionDuration';
import transitionProperty from './strings/transitionProperty';
import transitionDelay from './strings/transitionDelay';
import transitionEndEvent from './strings/transitionEndEvent';
import bezierEasings from './strings/bezierEasings';
import addEventListener from './strings/addEventListener';
import removeEventListener from './strings/removeEventListener';
import gesturechangeEvent from './strings/gesturechangeEvent';
import gestureendEvent from './strings/gestureendEvent';
import gesturestartEvent from './strings/gesturestartEvent';
import keyboardEventKeys from './strings/keyboardEventKeys';
import keydownEvent from './strings/keydownEvent';
import keyupEvent from './strings/keyupEvent';
import keypressEvent from './strings/keypressEvent';
import keyAlt from './strings/keyAlt';

@@ -64,2 +94,20 @@ import keyArrowDown from './strings/keyArrowDown';

import animationDuration from './strings/animationDuration';
import animationDelay from './strings/animationDelay';
import animationName from './strings/animationName';
import animationEndEvent from './strings/animationEndEvent';
import transitionDuration from './strings/transitionDuration';
import transitionDelay from './strings/transitionDelay';
import transitionEndEvent from './strings/transitionEndEvent';
import transitionProperty from './strings/transitionProperty';
import addEventListener from './strings/addEventListener';
import removeEventListener from './strings/removeEventListener';
import bezierEasings from './strings/bezierEasings';
import offsetHeight from './strings/offsetHeight';
import offsetWidth from './strings/offsetWidth';
import scrollHeight from './strings/scrollHeight';
import scrollWidth from './strings/scrollWidth';
// boolean

@@ -89,6 +137,6 @@ import isMobile from './boolean/isMobile';

import emulateTransitionEnd from './misc/emulateTransitionEnd';
import isElement from './misc/isElement';
import isElementInScrollRange from './misc/isElementInScrollRange';
import isElementInViewport from './misc/isElementInViewport';
import isHTMLElement from './misc/isHTMLElement';
import isElement from './misc/isElement';
import isMedia from './misc/isMedia';

@@ -102,7 +150,15 @@ import isRTL from './misc/isRTL';

import queryElement from './misc/queryElement';
import normalizeValue from './misc/normalizeValue';
import normalizeOptions from './misc/normalizeOptions';
import normalizeValue from './misc/normalizeValue';
import tryWrapper from './misc/tryWrapper';
import reflow from './misc/reflow';
import ArrayFrom from './misc/ArrayFrom';
import Float32ArrayFrom from './misc/Float32ArrayFrom';
import Float64ArrayFrom from './misc/Float64ArrayFrom';
import ObjectAssign from './misc/ObjectAssign';
import ObjectKeys from './misc/ObjectKeys';
import ObjectValues from './misc/ObjectValues';
import getElementStyle from './misc/getElementStyle';
import Version from './misc/version';

@@ -120,4 +176,25 @@

ariaSelected,
nativeEvents,
abortEvent,
blurEvent,
moveEvent,
changeEvent,
errorEvent,
resetEvent,
scrollEvent,
submitEvent,
loadEvent,
unloadEvent,
readystatechangeEvent,
beforeunloadEvent,
orientationchangeEvent,
contextmenuEvent,
DOMContentLoadedEvent,
DOMMouseScrollEvent,
selectEvent,
selectendEvent,
selectstartEvent,
mouseClickEvents,
mouseclickEvent,
mousedblclickEvent,
mousedownEvent,

@@ -128,2 +205,6 @@ mouseupEvent,

mouseleaveEvent,
mouseinEvent,
mouseoutEvent,
mousewheelEvent,
mouseSwipeEvents,
touchEvents,

@@ -134,6 +215,14 @@ touchstartEvent,

touchendEvent,
pointercancelEvent,
pointerdownEvent,
pointerleaveEvent,
pointermoveEvent,
pointerupEvent,
focusEvents,
focusEvent,
focusinEvent,
focusoutEvent,
mouseSwipeEvents,
gesturechangeEvent,
gestureendEvent,
gesturestartEvent,
bezierEasings,

@@ -159,2 +248,5 @@ animationDuration,

keyboardEventKeys,
keydownEvent,
keypressEvent,
keyupEvent,
keyAlt,

@@ -178,2 +270,6 @@ keyArrowDown,

keyTab,
offsetHeight,
offsetWidth,
scrollHeight,
scrollWidth,
addClass,

@@ -205,2 +301,9 @@ removeClass,

reflow,
ArrayFrom,
Float32ArrayFrom,
Float64ArrayFrom,
ObjectAssign,
ObjectKeys,
ObjectValues,
getElementStyle,
Version,

@@ -207,0 +310,0 @@ };

@@ -13,4 +13,26 @@ export as namespace SHORTER;

export { default as ariaSelected } from "shorter-js/src/strings/ariaSelected";
export { default as nativeEvents } from "shorter-js/src/strings/nativeEvents";
export { default as abortEvent } from "shorter-js/src/strings/abortEvent";
export { default as blurEvent } from "shorter-js/src/strings/blurEvent";
export { default as moveEvent } from "shorter-js/src/strings/moveEvent";
export { default as changeEvent } from "shorter-js/src/strings/changeEvent";
export { default as errorEvent } from "shorter-js/src/strings/errorEvent";
export { default as resetEvent } from "shorter-js/src/strings/resetEvent";
export { default as scrollEvent } from "shorter-js/src/strings/scrollEvent";
export { default as submitEvent } from "shorter-js/src/strings/submitEvent";
export { default as loadEvent } from "shorter-js/src/strings/loadEvent";
export { default as unloadEvent } from "shorter-js/src/strings/unloadEvent";
export { default as readystatechangeEvent } from "shorter-js/src/strings/readystatechangeEvent";
export { default as beforeunloadEvent } from "shorter-js/src/strings/beforeunloadEvent";
export { default as orientationchangeEvent } from "shorter-js/src/strings/orientationchangeEvent";
export { default as contextmenuEvent } from "shorter-js/src/strings/contextmenuEvent";
export { default as DOMContentLoadedEvent } from "shorter-js/src/strings/DOMContentLoadedEvent";
export { default as DOMMouseScrollEvent } from "shorter-js/src/strings/DOMMouseScrollEvent";
export { default as selectEvent } from "shorter-js/src/strings/selectEvent";
export { default as selectendEvent } from "shorter-js/src/strings/selectendEvent";
export { default as selectstartEvent } from "shorter-js/src/strings/selectstartEvent";
export { default as mouseSwipeEvents } from "shorter-js/src/strings/mouseSwipeEvents";
export { default as mouseClickEvents } from "shorter-js/src/strings/mouseClickEvents";
export { default as mouseclickEvent } from "shorter-js/src/strings/mouseclickEvent";
export { default as mousedblclickEvent } from "shorter-js/src/strings/mousedblclickEvent";
export { default as mousedownEvent } from "shorter-js/src/strings/mousedownEvent";

@@ -21,2 +43,5 @@ export { default as mouseupEvent } from "shorter-js/src/strings/mouseupEvent";

export { default as mouseleaveEvent } from "shorter-js/src/strings/mouseleaveEvent";
export { default as mouseinEvent } from "shorter-js/src/strings/mouseinEvent";
export { default as mouseoutEvent } from "shorter-js/src/strings/mouseoutEvent";
export { default as mousewheelEvent } from "shorter-js/src/strings/mousewheelEvent";
export { default as touchEvents } from "shorter-js/src/strings/touchEvents";

@@ -27,18 +52,18 @@ export { default as touchstartEvent } from "shorter-js/src/strings/touchstartEvent";

export { default as touchendEvent } from "shorter-js/src/strings/touchendEvent";
export { default as pointercancelEvent } from "shorter-js/src/strings/pointercancelEvent";
export { default as pointerdownEvent } from "shorter-js/src/strings/pointerdownEvent";
export { default as pointerleaveEvent } from "shorter-js/src/strings/pointerleaveEvent";
export { default as pointermoveEvent } from "shorter-js/src/strings/pointermoveEvent";
export { default as pointerupEvent } from "shorter-js/src/strings/pointerupEvent";
export { default as focusEvents } from "shorter-js/src/strings/focusEvents";
export { default as focusEvent } from "shorter-js/src/strings/focusEvent";
export { default as focusinEvent } from "shorter-js/src/strings/focusinEvent";
export { default as focusoutEvent } from "shorter-js/src/strings/focusoutEvent";
export { default as mouseSwipeEvents } from "shorter-js/src/strings/mouseSwipeEvents";
export { default as animationDuration } from "shorter-js/src/strings/animationDuration";
export { default as animationDelay } from "shorter-js/src/strings/animationDelay";
export { default as animationName } from "shorter-js/src/strings/animationName";
export { default as animationEndEvent } from "shorter-js/src/strings/animationEndEvent";
export { default as transitionDuration } from "shorter-js/src/strings/transitionDuration";
export { default as transitionDelay } from "shorter-js/src/strings/transitionDelay";
export { default as transitionEndEvent } from "shorter-js/src/strings/transitionEndEvent";
export { default as transitionProperty } from "shorter-js/src/strings/transitionProperty";
export { default as bezierEasings } from "shorter-js/src/strings/bezierEasings";
export { default as addEventListener } from "shorter-js/src/strings/addEventListener";
export { default as removeEventListener } from "shorter-js/src/strings/removeEventListener";
export { default as gesturechangeEvent } from "shorter-js/src/strings/gesturechangeEvent";
export { default as gestureendEvent } from "shorter-js/src/strings/gestureendEvent";
export { default as gesturestartEvent } from "shorter-js/src/strings/gesturestartEvent";
export { default as keyboardEventKeys } from "shorter-js/src/strings/keyboardEventKeys";
export { default as keydownEvent } from "shorter-js/src/strings/keydownEvent";
export { default as keyupEvent } from "shorter-js/src/strings/keyupEvent";
export { default as keypressEvent } from "shorter-js/src/strings/keypressEvent";
export { default as keyAlt } from "shorter-js/src/strings/keyAlt";

@@ -62,2 +87,17 @@ export { default as keyArrowDown } from "shorter-js/src/strings/keyArrowDown";

export { default as keyTab } from "shorter-js/src/strings/keyTab";
export { default as animationDuration } from "shorter-js/src/strings/animationDuration";
export { default as animationDelay } from "shorter-js/src/strings/animationDelay";
export { default as animationName } from "shorter-js/src/strings/animationName";
export { default as animationEndEvent } from "shorter-js/src/strings/animationEndEvent";
export { default as transitionDuration } from "shorter-js/src/strings/transitionDuration";
export { default as transitionDelay } from "shorter-js/src/strings/transitionDelay";
export { default as transitionEndEvent } from "shorter-js/src/strings/transitionEndEvent";
export { default as transitionProperty } from "shorter-js/src/strings/transitionProperty";
export { default as addEventListener } from "shorter-js/src/strings/addEventListener";
export { default as removeEventListener } from "shorter-js/src/strings/removeEventListener";
export { default as bezierEasings } from "shorter-js/src/strings/bezierEasings";
export { default as offsetHeight } from "shorter-js/src/strings/offsetHeight";
export { default as offsetWidth } from "shorter-js/src/strings/offsetWidth";
export { default as scrollHeight } from "shorter-js/src/strings/scrollHeight";
export { default as scrollWidth } from "shorter-js/src/strings/scrollWidth";
export { default as isMobile } from "shorter-js/src/boolean/isMobile";

@@ -96,2 +136,9 @@ export { default as isApple } from "shorter-js/src/boolean/isApple";

export { default as reflow } from "shorter-js/src/misc/reflow";
export { default as ArrayFrom } from "shorter-js/src/misc/ArrayFrom";
export { default as Float32ArrayFrom } from "shorter-js/src/misc/Float32ArrayFrom";
export { default as Float64ArrayFrom } from "shorter-js/src/misc/Float64ArrayFrom";
export { default as ObjectKeys } from "shorter-js/src/misc/ObjectKeys";
export { default as ObjectValues } from "shorter-js/src/misc/ObjectValues";
export { default as ObjectAssign } from "shorter-js/src/misc/ObjectAssign";
export { default as getElementStyle } from "shorter-js/src/misc/getElementStyle";
export { default as Version } from "shorter-js/src/misc/version";

@@ -12,9 +12,37 @@ // strings

export { default as nativeEvents } from "../../src/strings/nativeEvents";
export { default as abortEvent } from "../../src/strings/abortEvent";
export { default as blurEvent } from "../../src/strings/blurEvent";
export { default as moveEvent } from "../../src/strings/moveEvent";
export { default as changeEvent } from "../../src/strings/changeEvent";
export { default as errorEvent } from "../../src/strings/errorEvent";
export { default as resetEvent } from "../../src/strings/resetEvent";
export { default as scrollEvent } from "../../src/strings/scrollEvent";
export { default as submitEvent } from "../../src/strings/submitEvent";
export { default as loadEvent } from "../../src/strings/loadEvent";
export { default as unloadEvent } from "../../src/strings/unloadEvent";
export { default as readystatechangeEvent } from "../../src/strings/readystatechangeEvent";
export { default as beforeunloadEvent } from "../../src/strings/beforeunloadEvent";
export { default as orientationchangeEvent } from "../../src/strings/orientationchangeEvent";
export { default as contextmenuEvent } from "../../src/strings/contextmenuEvent";
export { default as DOMContentLoadedEvent } from "../../src/strings/DOMContentLoadedEvent";
export { default as DOMMouseScrollEvent } from "../../src/strings/DOMMouseScrollEvent";
export { default as selectEvent } from "../../src/strings/selectEvent";
export { default as selectendEvent } from "../../src/strings/selectendEvent";
export { default as selectstartEvent } from "../../src/strings/selectstartEvent";
export { default as mouseSwipeEvents } from "../../src/strings/mouseSwipeEvents";
export { default as mouseClickEvents } from "../../src/strings/mouseClickEvents";
export { default as mouseclickEvent } from "../../src/strings/mouseclickEvent"
export { default as mousedownEvent } from "../../src/strings/mousedownEvent"
export { default as mouseupEvent } from "../../src/strings/mouseupEvent"
export { default as mouseclickEvent } from "../../src/strings/mouseclickEvent";
export { default as mousedblclickEvent } from "../../src/strings/mousedblclickEvent";
export { default as mousedownEvent } from "../../src/strings/mousedownEvent";
export { default as mouseupEvent } from "../../src/strings/mouseupEvent";
export { default as mouseHoverEvents } from "../../src/strings/mouseHoverEvents";
export { default as mouseenterEvent } from "../../src/strings/mouseenterEvent"
export { default as mouseleaveEvent } from "../../src/strings/mouseleaveEvent"
export { default as mouseenterEvent } from "../../src/strings/mouseenterEvent";
export { default as mouseleaveEvent } from "../../src/strings/mouseleaveEvent";
export { default as mouseinEvent } from "../../src/strings/mouseinEvent";
export { default as mouseoutEvent } from "../../src/strings/mouseoutEvent";
export { default as mousewheelEvent } from "../../src/strings/mousewheelEvent";
export { default as touchEvents } from "../../src/strings/touchEvents";

@@ -25,20 +53,22 @@ export { default as touchstartEvent } from "../../src/strings/touchstartEvent";

export { default as touchendEvent } from "../../src/strings/touchendEvent";
export { default as pointercancelEvent } from "../../src/strings/pointercancelEvent";
export { default as pointerdownEvent } from "../../src/strings/pointerdownEvent";
export { default as pointerleaveEvent } from "../../src/strings/pointerleaveEvent";
export { default as pointermoveEvent } from "../../src/strings/pointermoveEvent";
export { default as pointerupEvent } from "../../src/strings/pointerupEvent";
export { default as focusEvents } from "../../src/strings/focusEvents";
export { default as focusEvent } from "../../src/strings/focusEvent";
export { default as focusinEvent } from "../../src/strings/focusinEvent";
export { default as focusoutEvent } from "../../src/strings/focusoutEvent";
export { default as mouseSwipeEvents } from "../../src/strings/mouseSwipeEvents";
export { default as animationDuration } from "../../src/strings/animationDuration";
export { default as animationDelay } from "../../src/strings/animationDelay";
export { default as animationName } from "../../src/strings/animationName";
export { default as animationEndEvent } from "../../src/strings/animationEndEvent";
export { default as transitionDuration } from "../../src/strings/transitionDuration";
export { default as transitionDelay } from "../../src/strings/transitionDelay";
export { default as transitionEndEvent } from "../../src/strings/transitionEndEvent";
export { default as transitionProperty } from "../../src/strings/transitionProperty";
export { default as bezierEasings } from "../../src/strings/bezierEasings";
export { default as addEventListener } from "../../src/strings/addEventListener";
export { default as removeEventListener } from "../../src/strings/removeEventListener";
export { default as gesturechangeEvent } from "../../src/strings/gesturechangeEvent";
export { default as gestureendEvent } from "../../src/strings/gestureendEvent";
export { default as gesturestartEvent } from "../../src/strings/gesturestartEvent";
export { default as keyboardEventKeys } from "../../src/strings/keyboardEventKeys";
export { default as keydownEvent } from "../../src/strings/keydownEvent";
export { default as keyupEvent } from "../../src/strings/keyupEvent";
export { default as keypressEvent } from "../../src/strings/keypressEvent";
export { default as keyAlt } from "../../src/strings/keyAlt";

@@ -63,2 +93,20 @@ export { default as keyArrowDown } from "../../src/strings/keyArrowDown";

export { default as animationDuration } from "../../src/strings/animationDuration";
export { default as animationDelay } from "../../src/strings/animationDelay";
export { default as animationName } from "../../src/strings/animationName";
export { default as animationEndEvent } from "../../src/strings/animationEndEvent";
export { default as transitionDuration } from "../../src/strings/transitionDuration";
export { default as transitionDelay } from "../../src/strings/transitionDelay";
export { default as transitionEndEvent } from "../../src/strings/transitionEndEvent";
export { default as transitionProperty } from "../../src/strings/transitionProperty";
export { default as addEventListener } from "../../src/strings/addEventListener";
export { default as removeEventListener } from "../../src/strings/removeEventListener";
export { default as bezierEasings } from "../../src/strings/bezierEasings";
export { default as offsetHeight } from "../../src/strings/offsetHeight";
export { default as offsetWidth } from "../../src/strings/offsetWidth";
export { default as scrollHeight } from "../../src/strings/scrollHeight";
export { default as scrollWidth } from "../../src/strings/scrollWidth";
// boolean

@@ -105,2 +153,10 @@ export { default as isMobile } from "../../src/boolean/isMobile";

export { default as ArrayFrom } from '../../src/misc/ArrayFrom';
export { default as Float32ArrayFrom } from '../../src/misc/Float32ArrayFrom';
export { default as Float64ArrayFrom } from '../../src/misc/Float64ArrayFrom';
export { default as ObjectKeys } from '../../src/misc/ObjectKeys';
export { default as ObjectValues } from '../../src/misc/ObjectValues';
export { default as ObjectAssign } from '../../src/misc/ObjectAssign';
export { default as getElementStyle } from '../../src/misc/getElementStyle';
export { default as Version } from "../../src/misc/version";

@@ -73,2 +73,170 @@ declare module "shorter-js/src/strings/ariaChecked" {

}
declare module "shorter-js/src/strings/nativeEvents" {
export default nativeEvents;
/**
* A global namespace for all browser native events.
* @type {string[]}
*/
const nativeEvents: string[];
}
declare module "shorter-js/src/strings/abortEvent" {
export default abortEvent;
/**
* A global namespace for `abort` event.
* @type {string}
*/
const abortEvent: string;
}
declare module "shorter-js/src/strings/blurEvent" {
export default blurEvent;
/**
* A global namespace for `blur` event.
* @type {string}
*/
const blurEvent: string;
}
declare module "shorter-js/src/strings/moveEvent" {
export default moveEvent;
/**
* A global namespace for `move` event.
* @type {string}
*/
const moveEvent: string;
}
declare module "shorter-js/src/strings/changeEvent" {
export default changeEvent;
/**
* A global namespace for `change` event.
* @type {string}
*/
const changeEvent: string;
}
declare module "shorter-js/src/strings/errorEvent" {
export default errorEvent;
/**
* A global namespace for `error` event.
* @type {string}
*/
const errorEvent: string;
}
declare module "shorter-js/src/strings/resetEvent" {
export default resetEvent;
/**
* A global namespace for `reset` event.
* @type {string}
*/
const resetEvent: string;
}
declare module "shorter-js/src/strings/scrollEvent" {
export default scrollEvent;
/**
* A global namespace for `scroll` event.
* @type {string}
*/
const scrollEvent: string;
}
declare module "shorter-js/src/strings/submitEvent" {
export default submitEvent;
/**
* A global namespace for `submit` event.
* @type {string}
*/
const submitEvent: string;
}
declare module "shorter-js/src/strings/loadEvent" {
export default loadEvent;
/**
* A global namespace for `load` event.
* @type {string}
*/
const loadEvent: string;
}
declare module "shorter-js/src/strings/unloadEvent" {
export default unloadEvent;
/**
* A global namespace for `unload` event.
* @type {string}
*/
const unloadEvent: string;
}
declare module "shorter-js/src/strings/readystatechangeEvent" {
export default readystatechangeEvent;
/**
* A global namespace for `readystatechange` event.
* @type {string}
*/
const readystatechangeEvent: string;
}
declare module "shorter-js/src/strings/beforeunloadEvent" {
export default beforeunloadEvent;
/**
* A global namespace for `beforeunload` event.
* @type {string}
*/
const beforeunloadEvent: string;
}
declare module "shorter-js/src/strings/orientationchangeEvent" {
export default orientationchangeEvent;
/**
* A global namespace for `orientationchange` event.
* @type {string}
*/
const orientationchangeEvent: string;
}
declare module "shorter-js/src/strings/contextmenuEvent" {
export default contextmenuEvent;
/**
* A global namespace for `contextmenu` event.
* @type {string}
*/
const contextmenuEvent: string;
}
declare module "shorter-js/src/strings/DOMContentLoadedEvent" {
export default DOMContentLoadedEvent;
/**
* A global namespace for `DOMContentLoaded` event.
* @type {string}
*/
const DOMContentLoadedEvent: string;
}
declare module "shorter-js/src/strings/DOMMouseScrollEvent" {
export default DOMMouseScrollEvent;
/**
* A global namespace for `DOMMouseScroll` event.
* @type {string}
*/
const DOMMouseScrollEvent: string;
}
declare module "shorter-js/src/strings/selectEvent" {
export default selectEvent;
/**
* A global namespace for `select` event.
* @type {string}
*/
const selectEvent: string;
}
declare module "shorter-js/src/strings/selectendEvent" {
export default selectendEvent;
/**
* A global namespace for the `selectend` event.
* @type {string}
*/
const selectendEvent: string;
}
declare module "shorter-js/src/strings/selectstartEvent" {
export default selectstartEvent;
/**
* A global namespace for the `selectstart` event.
* @type {string}
*/
const selectstartEvent: string;
}
declare module "shorter-js/src/strings/mouseSwipeEvents" {
export default mouseSwipeEvents;
/**
* A global namespace for mouse events equivalent to touch events.
* @type {Record<string, string>}
*/
const mouseSwipeEvents: Record<string, string>;
}
declare module "shorter-js/src/strings/mouseClickEvents" {

@@ -90,2 +258,10 @@ export default mouseClickEvents;

}
declare module "shorter-js/src/strings/mousedblclickEvent" {
export default mousedblclickEvent;
/**
* A global namespace for `dblclick` event.
* @type {string}
*/
const mousedblclickEvent: string;
}
declare module "shorter-js/src/strings/mousedownEvent" {

@@ -131,2 +307,26 @@ export default mousedownEvent;

}
declare module "shorter-js/src/strings/mouseinEvent" {
export default mouseinEvent;
/**
* A global namespace for `mousein` event.
* @type {string}
*/
const mouseinEvent: string;
}
declare module "shorter-js/src/strings/mouseoutEvent" {
export default mouseoutEvent;
/**
* A global namespace for `mouseout` event.
* @type {string}
*/
const mouseoutEvent: string;
}
declare module "shorter-js/src/strings/mousewheelEvent" {
export default mousewheelEvent;
/**
* A global namespace for `mousewheel` event.
* @type {string}
*/
const mousewheelEvent: string;
}
declare module "shorter-js/src/strings/touchEvents" {

@@ -172,133 +372,132 @@ export default touchEvents;

}
declare module "shorter-js/src/strings/focusEvents" {
export default focusEvents;
declare module "shorter-js/src/strings/pointercancelEvent" {
export default pointercancelEvent;
/**
* A global namespace for focus event names.
* @type {{in: string, out: string}}
* A global namespace for `pointercancel` event.
* @type {string}
*/
const focusEvents: {
in: string;
out: string;
};
const pointercancelEvent: string;
}
declare module "shorter-js/src/strings/focusinEvent" {
export default focusinEvent;
declare module "shorter-js/src/strings/pointerdownEvent" {
export default pointerdownEvent;
/**
* A global namespace for `focusin` event.
* A global namespace for `pointerdown` event.
* @type {string}
*/
const focusinEvent: string;
const pointerdownEvent: string;
}
declare module "shorter-js/src/strings/focusoutEvent" {
export default focusoutEvent;
declare module "shorter-js/src/strings/pointerleaveEvent" {
export default pointerleaveEvent;
/**
* A global namespace for `focusout` event.
* A global namespace for `pointerleave` event.
* @type {string}
*/
const focusoutEvent: string;
const pointerleaveEvent: string;
}
declare module "shorter-js/src/strings/mouseSwipeEvents" {
export default mouseSwipeEvents;
declare module "shorter-js/src/strings/pointermoveEvent" {
export default pointermoveEvent;
/**
* A global namespace for mouse events equivalent to touch events.
* @type {Record<string, string>}
* A global namespace for `pointermove` event.
* @type {string}
*/
const mouseSwipeEvents: Record<string, string>;
const pointermoveEvent: string;
}
declare module "shorter-js/src/strings/animationDuration" {
export default animationDuration;
declare module "shorter-js/src/strings/pointerupEvent" {
export default pointerupEvent;
/**
* A global namespace for 'animationDuration' string.
* A global namespace for `pointerup` event.
* @type {string}
*/
const animationDuration: string;
const pointerupEvent: string;
}
declare module "shorter-js/src/strings/animationDelay" {
export default animationDelay;
declare module "shorter-js/src/strings/focusEvents" {
export default focusEvents;
/**
* A global namespace for 'animationDelay' string.
* @type {string}
* A global namespace for focus event names.
* @type {{in: string, out: string}}
*/
const animationDelay: string;
const focusEvents: {
in: string;
out: string;
};
}
declare module "shorter-js/src/strings/animationName" {
export default animationName;
declare module "shorter-js/src/strings/focusEvent" {
export default focusEvent;
/**
* A global namespace for 'animationName' string.
* A global namespace for `focus` event.
* @type {string}
*/
const animationName: string;
const focusEvent: string;
}
declare module "shorter-js/src/strings/animationEndEvent" {
export default animationEndEvent;
declare module "shorter-js/src/strings/focusinEvent" {
export default focusinEvent;
/**
* A global namespace for 'animationend' string.
* A global namespace for `focusin` event.
* @type {string}
*/
const animationEndEvent: string;
const focusinEvent: string;
}
declare module "shorter-js/src/strings/transitionDuration" {
export default transitionDuration;
declare module "shorter-js/src/strings/focusoutEvent" {
export default focusoutEvent;
/**
* A global namespace for 'transitionDuration' string.
* A global namespace for `focusout` event.
* @type {string}
*/
const transitionDuration: string;
const focusoutEvent: string;
}
declare module "shorter-js/src/strings/transitionDelay" {
export default transitionDelay;
declare module "shorter-js/src/strings/gesturechangeEvent" {
export default gesturechangeEvent;
/**
* A global namespace for 'transitionDelay' string.
* A global namespace for `gesturechange` event.
* @type {string}
*/
const transitionDelay: string;
const gesturechangeEvent: string;
}
declare module "shorter-js/src/strings/transitionEndEvent" {
export default transitionEndEvent;
declare module "shorter-js/src/strings/gestureendEvent" {
export default gestureendEvent;
/**
* A global namespace for 'transitionend' string.
* A global namespace for `gestureend` event.
* @type {string}
*/
const transitionEndEvent: string;
const gestureendEvent: string;
}
declare module "shorter-js/src/strings/transitionProperty" {
export default transitionProperty;
declare module "shorter-js/src/strings/gesturestartEvent" {
export default gesturestartEvent;
/**
* A global namespace for 'transitionProperty' string.
* A global namespace for `gesturestart` event.
* @type {string}
*/
const transitionProperty: string;
const gesturestartEvent: string;
}
declare module "shorter-js/src/strings/bezierEasings" {
export default bezierEasings;
declare module "shorter-js/src/strings/keyboardEventKeys" {
export default keyboardEventKeys;
/**
* A global namespace for predefined
* CSS3 'cubic-bezier()' easing functions.
* A global namespace for keyboard event keys.
* @type {Record<string, string>}
*/
const bezierEasings: Record<string, string>;
const keyboardEventKeys: Record<string, string>;
}
declare module "shorter-js/src/strings/addEventListener" {
export default addEventListener;
declare module "shorter-js/src/strings/keydownEvent" {
export default keydownEvent;
/**
* A global namespace for 'addEventListener' string.
* A global namespace for `keydown` event.
* @type {string}
*/
const addEventListener: string;
const keydownEvent: string;
}
declare module "shorter-js/src/strings/removeEventListener" {
export default removeEventListener;
declare module "shorter-js/src/strings/keyupEvent" {
export default keyupEvent;
/**
* A global namespace for 'removeEventListener' string.
* A global namespace for `keyup` event.
* @type {string}
*/
const removeEventListener: string;
const keyupEvent: string;
}
declare module "shorter-js/src/strings/keyboardEventKeys" {
export default keyboardEventKeys;
declare module "shorter-js/src/strings/keypressEvent" {
export default keypressEvent;
/**
* A global namespace for keyboard event keys.
* @type {Record<string, string>}
* A global namespace for `keypress` event.
* @type {string}
*/
const keyboardEventKeys: Record<string, string>;
const keypressEvent: string;
}

@@ -449,2 +648,123 @@ declare module "shorter-js/src/strings/keyAlt" {

}
declare module "shorter-js/src/strings/animationDuration" {
export default animationDuration;
/**
* A global namespace for 'animationDuration' string.
* @type {string}
*/
const animationDuration: string;
}
declare module "shorter-js/src/strings/animationDelay" {
export default animationDelay;
/**
* A global namespace for 'animationDelay' string.
* @type {string}
*/
const animationDelay: string;
}
declare module "shorter-js/src/strings/animationName" {
export default animationName;
/**
* A global namespace for 'animationName' string.
* @type {string}
*/
const animationName: string;
}
declare module "shorter-js/src/strings/animationEndEvent" {
export default animationEndEvent;
/**
* A global namespace for 'animationend' string.
* @type {string}
*/
const animationEndEvent: string;
}
declare module "shorter-js/src/strings/transitionDuration" {
export default transitionDuration;
/**
* A global namespace for 'transitionDuration' string.
* @type {string}
*/
const transitionDuration: string;
}
declare module "shorter-js/src/strings/transitionDelay" {
export default transitionDelay;
/**
* A global namespace for 'transitionDelay' string.
* @type {string}
*/
const transitionDelay: string;
}
declare module "shorter-js/src/strings/transitionEndEvent" {
export default transitionEndEvent;
/**
* A global namespace for 'transitionend' string.
* @type {string}
*/
const transitionEndEvent: string;
}
declare module "shorter-js/src/strings/transitionProperty" {
export default transitionProperty;
/**
* A global namespace for 'transitionProperty' string.
* @type {string}
*/
const transitionProperty: string;
}
declare module "shorter-js/src/strings/addEventListener" {
export default addEventListener;
/**
* A global namespace for 'addEventListener' string.
* @type {string}
*/
const addEventListener: string;
}
declare module "shorter-js/src/strings/removeEventListener" {
export default removeEventListener;
/**
* A global namespace for 'removeEventListener' string.
* @type {string}
*/
const removeEventListener: string;
}
declare module "shorter-js/src/strings/bezierEasings" {
export default bezierEasings;
/**
* A global namespace for predefined
* CSS3 'cubic-bezier()' easing functions.
* @type {Record<string, string>}
*/
const bezierEasings: Record<string, string>;
}
declare module "shorter-js/src/strings/offsetHeight" {
export default offsetHeight;
/**
* A global namespace for `offsetHeight` property.
* @type {string}
*/
const offsetHeight: string;
}
declare module "shorter-js/src/strings/offsetWidth" {
export default offsetWidth;
/**
* A global namespace for `offsetWidth` property.
* @type {string}
*/
const offsetWidth: string;
}
declare module "shorter-js/src/strings/scrollHeight" {
export default scrollHeight;
/**
* A global namespace for `scrollHeight` property.
* @type {string}
*/
const scrollHeight: string;
}
declare module "shorter-js/src/strings/scrollWidth" {
export default scrollWidth;
/**
* A global namespace for `scrollWidth` property.
* @type {string}
*/
const scrollWidth: string;
}
declare module "shorter-js/src/boolean/isMobile" {

@@ -769,2 +1089,71 @@ export default isMobile;

}
declare module "shorter-js/src/misc/ArrayFrom" {
export default ArrayFrom;
/**
* Shortcut for `Array.from()` static method.
* @param {any[]} arr iterable object value
* @returns {Array}
*/
function ArrayFrom(arr: any[]): any[];
}
declare module "shorter-js/src/misc/Float32ArrayFrom" {
export default Float32ArrayFrom;
/**
* Shortcut for `Float32Array.from()` static method.
* @param {any[]} arr iterable object value
* @returns {Float32Array}
*/
function Float32ArrayFrom(arr: any[]): Float32Array;
}
declare module "shorter-js/src/misc/Float64ArrayFrom" {
export default Float64ArrayFrom;
/**
* Shortcut for `Float64Array.from()` static method.
* @param {any[]} arr iterable object value
* @returns {Float64Array}
*/
function Float64ArrayFrom(arr: any[]): Float64Array;
}
declare module "shorter-js/src/misc/ObjectKeys" {
export default ObjectKeys;
/**
* Shortcut for `Object.keys()` static method.
* @param {Record<string, any>} obj a target object
* @returns {string[]}
*/
function ObjectKeys(obj: Record<string, any>): string[];
}
declare module "shorter-js/src/misc/ObjectValues" {
export default ObjectValues;
/**
* Shortcut for `Object.values()` static method.
* @param {Record<string, any>} obj a target object
* @returns {any[]}
*/
function ObjectValues(obj: Record<string, any>): any[];
}
declare module "shorter-js/src/misc/ObjectAssign" {
export default ObjectAssign;
/**
* Shortcut for `Object.assign()` static method.
* @param {Record<string, any>} obj a target object
* @param {Record<string, any>} source a source object
*/
function ObjectAssign(obj: Record<string, any>, source: Record<string, any>): Record<string, any>;
}
declare module "shorter-js/src/misc/getElementStyle" {
/**
* Shortcut for `window.getComputedStyle(element).propertyName`
* static method.
* * If `element` parameter is not an `Element`, `getComputedStyle`
* throws a `ReferenceError`.
* * If no property is defined, the entire `CSSStyleDeclaration`
* instance is returned.
*
* @param {Element} element target
* @param {string=} property the css property
* @return {string} the css property value
*/
export default function getElementStyle(element: Element, property?: string | undefined): string;
}
declare module "shorter-js/src/misc/version" {

@@ -788,4 +1177,26 @@ export default Version;

export { default as ariaSelected } from "shorter-js/src/strings/ariaSelected";
export { default as nativeEvents } from "shorter-js/src/strings/nativeEvents";
export { default as abortEvent } from "shorter-js/src/strings/abortEvent";
export { default as blurEvent } from "shorter-js/src/strings/blurEvent";
export { default as moveEvent } from "shorter-js/src/strings/moveEvent";
export { default as changeEvent } from "shorter-js/src/strings/changeEvent";
export { default as errorEvent } from "shorter-js/src/strings/errorEvent";
export { default as resetEvent } from "shorter-js/src/strings/resetEvent";
export { default as scrollEvent } from "shorter-js/src/strings/scrollEvent";
export { default as submitEvent } from "shorter-js/src/strings/submitEvent";
export { default as loadEvent } from "shorter-js/src/strings/loadEvent";
export { default as unloadEvent } from "shorter-js/src/strings/unloadEvent";
export { default as readystatechangeEvent } from "shorter-js/src/strings/readystatechangeEvent";
export { default as beforeunloadEvent } from "shorter-js/src/strings/beforeunloadEvent";
export { default as orientationchangeEvent } from "shorter-js/src/strings/orientationchangeEvent";
export { default as contextmenuEvent } from "shorter-js/src/strings/contextmenuEvent";
export { default as DOMContentLoadedEvent } from "shorter-js/src/strings/DOMContentLoadedEvent";
export { default as DOMMouseScrollEvent } from "shorter-js/src/strings/DOMMouseScrollEvent";
export { default as selectEvent } from "shorter-js/src/strings/selectEvent";
export { default as selectendEvent } from "shorter-js/src/strings/selectendEvent";
export { default as selectstartEvent } from "shorter-js/src/strings/selectstartEvent";
export { default as mouseSwipeEvents } from "shorter-js/src/strings/mouseSwipeEvents";
export { default as mouseClickEvents } from "shorter-js/src/strings/mouseClickEvents";
export { default as mouseclickEvent } from "shorter-js/src/strings/mouseclickEvent";
export { default as mousedblclickEvent } from "shorter-js/src/strings/mousedblclickEvent";
export { default as mousedownEvent } from "shorter-js/src/strings/mousedownEvent";

@@ -796,2 +1207,5 @@ export { default as mouseupEvent } from "shorter-js/src/strings/mouseupEvent";

export { default as mouseleaveEvent } from "shorter-js/src/strings/mouseleaveEvent";
export { default as mouseinEvent } from "shorter-js/src/strings/mouseinEvent";
export { default as mouseoutEvent } from "shorter-js/src/strings/mouseoutEvent";
export { default as mousewheelEvent } from "shorter-js/src/strings/mousewheelEvent";
export { default as touchEvents } from "shorter-js/src/strings/touchEvents";

@@ -802,18 +1216,18 @@ export { default as touchstartEvent } from "shorter-js/src/strings/touchstartEvent";

export { default as touchendEvent } from "shorter-js/src/strings/touchendEvent";
export { default as pointercancelEvent } from "shorter-js/src/strings/pointercancelEvent";
export { default as pointerdownEvent } from "shorter-js/src/strings/pointerdownEvent";
export { default as pointerleaveEvent } from "shorter-js/src/strings/pointerleaveEvent";
export { default as pointermoveEvent } from "shorter-js/src/strings/pointermoveEvent";
export { default as pointerupEvent } from "shorter-js/src/strings/pointerupEvent";
export { default as focusEvents } from "shorter-js/src/strings/focusEvents";
export { default as focusEvent } from "shorter-js/src/strings/focusEvent";
export { default as focusinEvent } from "shorter-js/src/strings/focusinEvent";
export { default as focusoutEvent } from "shorter-js/src/strings/focusoutEvent";
export { default as mouseSwipeEvents } from "shorter-js/src/strings/mouseSwipeEvents";
export { default as animationDuration } from "shorter-js/src/strings/animationDuration";
export { default as animationDelay } from "shorter-js/src/strings/animationDelay";
export { default as animationName } from "shorter-js/src/strings/animationName";
export { default as animationEndEvent } from "shorter-js/src/strings/animationEndEvent";
export { default as transitionDuration } from "shorter-js/src/strings/transitionDuration";
export { default as transitionDelay } from "shorter-js/src/strings/transitionDelay";
export { default as transitionEndEvent } from "shorter-js/src/strings/transitionEndEvent";
export { default as transitionProperty } from "shorter-js/src/strings/transitionProperty";
export { default as bezierEasings } from "shorter-js/src/strings/bezierEasings";
export { default as addEventListener } from "shorter-js/src/strings/addEventListener";
export { default as removeEventListener } from "shorter-js/src/strings/removeEventListener";
export { default as gesturechangeEvent } from "shorter-js/src/strings/gesturechangeEvent";
export { default as gestureendEvent } from "shorter-js/src/strings/gestureendEvent";
export { default as gesturestartEvent } from "shorter-js/src/strings/gesturestartEvent";
export { default as keyboardEventKeys } from "shorter-js/src/strings/keyboardEventKeys";
export { default as keydownEvent } from "shorter-js/src/strings/keydownEvent";
export { default as keyupEvent } from "shorter-js/src/strings/keyupEvent";
export { default as keypressEvent } from "shorter-js/src/strings/keypressEvent";
export { default as keyAlt } from "shorter-js/src/strings/keyAlt";

@@ -837,2 +1251,17 @@ export { default as keyArrowDown } from "shorter-js/src/strings/keyArrowDown";

export { default as keyTab } from "shorter-js/src/strings/keyTab";
export { default as animationDuration } from "shorter-js/src/strings/animationDuration";
export { default as animationDelay } from "shorter-js/src/strings/animationDelay";
export { default as animationName } from "shorter-js/src/strings/animationName";
export { default as animationEndEvent } from "shorter-js/src/strings/animationEndEvent";
export { default as transitionDuration } from "shorter-js/src/strings/transitionDuration";
export { default as transitionDelay } from "shorter-js/src/strings/transitionDelay";
export { default as transitionEndEvent } from "shorter-js/src/strings/transitionEndEvent";
export { default as transitionProperty } from "shorter-js/src/strings/transitionProperty";
export { default as addEventListener } from "shorter-js/src/strings/addEventListener";
export { default as removeEventListener } from "shorter-js/src/strings/removeEventListener";
export { default as bezierEasings } from "shorter-js/src/strings/bezierEasings";
export { default as offsetHeight } from "shorter-js/src/strings/offsetHeight";
export { default as offsetWidth } from "shorter-js/src/strings/offsetWidth";
export { default as scrollHeight } from "shorter-js/src/strings/scrollHeight";
export { default as scrollWidth } from "shorter-js/src/strings/scrollWidth";
export { default as isMobile } from "shorter-js/src/boolean/isMobile";

@@ -871,3 +1300,10 @@ export { default as isApple } from "shorter-js/src/boolean/isApple";

export { default as reflow } from "shorter-js/src/misc/reflow";
export { default as ArrayFrom } from "shorter-js/src/misc/ArrayFrom";
export { default as Float32ArrayFrom } from "shorter-js/src/misc/Float32ArrayFrom";
export { default as Float64ArrayFrom } from "shorter-js/src/misc/Float64ArrayFrom";
export { default as ObjectKeys } from "shorter-js/src/misc/ObjectKeys";
export { default as ObjectValues } from "shorter-js/src/misc/ObjectValues";
export { default as ObjectAssign } from "shorter-js/src/misc/ObjectAssign";
export { default as getElementStyle } from "shorter-js/src/misc/getElementStyle";
export { default as Version } from "shorter-js/src/misc/version";
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc