New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

js-utl

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-utl - npm Package Compare versions

Comparing version 4.57.0 to 4.58.0

2

dist/es6/index.js

@@ -33,3 +33,3 @@ /*

export { timeout, minDelayPromise, maxDelayFallbackPromise, applyAsync, composeAsync, asSoonAtLeastSomeFulfilled } from "./modules/promise";
export { buildQueryString, formData, xhr, checkNetwork, waitNetwork, setCookie, getCookie, unsetCookie, isInViewport, isScrolledIntoView, hasVerticalScrollbar, hasHorizontalScrollbar, elementUniqueId, getElementComputedStyle, elementInnerDimensions, countTextareaLines, isScrollOnBottom, getVerticalScrollBarWidth, isEllipsisActive, copyTextToClipboard, rAFLooper, nestedRAF, getRawURIFragment, getDecodedURIFragment, appendEncodedJSONFragmentToURI, getDecodedJSONFromFragmentURI, getQueryStringArgsMultiDim, cursorFocus, parseQueryStringArgsMultiDim, detectWrapped, maxNestingLevel, getScrollableAncestor, smoothScrollToTop } from "./modules/web";
export { buildQueryString, formData, xhr, checkNetwork, waitNetwork, setCookie, getCookie, unsetCookie, isInViewport, isScrolledIntoView, hasVerticalScrollbar, hasHorizontalScrollbar, elementUniqueId, getElementComputedStyle, elementInnerDimensions, countTextareaLines, isScrollOnBottom, getVerticalScrollBarWidth, isEllipsisActive, copyTextToClipboard, rAFLooper, nestedRAF, getRawURIFragment, getDecodedURIFragment, appendEncodedJSONFragmentToURI, getDecodedJSONFromFragmentURI, getQueryStringArgsMultiDim, cursorFocus, parseQueryStringArgsMultiDim, detectWrapped, maxNestingLevel, getScrollableAncestor, smoothScrollToTop, downloadFile } from "./modules/web";
export { randomInt, randomFloat, randomStr, randomString, randomDifferentFromValue, randomArrayShuffle, uuid, noncanonicalUUID } from "./modules/rand";

@@ -36,0 +36,0 @@ export { time, msToTime, millisecToSec, secondsToTimeString } from "./modules/time";

@@ -842,2 +842,17 @@ /*

});
/**
* Download a file.
*
* @see https://stackoverflow.com/questions/1066452/easiest-way-to-open-a-download-window-without-navigating-away-from-the-page#answer-43523297
*
* @param {string} fileURI The URI of the file to download.
* @return {undefined}
*/
export function downloadFile(fileURI) {
var link = document.createElement("a");
link.href = fileURI;
link.download = fileURI.substr(fileURI.lastIndexOf("/") + 1);
link.click();
}
//# sourceMappingURL=web.js.map

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("JSUtl",[],t):"object"==typeof exports?exports.JSUtl=t():e.JSUtl=t()}("undefined"!=typeof self?self:this,(function(){return(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{POJOCurry:()=>Me,_:()=>Pe,allNotUndefined:()=>Z,allTruthy:()=>Q,appendEncodedJSONFragmentToURI:()=>vt,applyAsync:()=>Ke,areArrayItemsAllCoercibleToNumber:()=>ge,arrayFindReverse:()=>Oe,arrayMax:()=>we,arrayMin:()=>Se,arrayOrArrayLike:()=>me,arraySliceFromValueToValue:()=>he,asSoonAtLeastSomeFulfilled:()=>Qe,b2d:()=>Sn,basename:()=>yn,buildQueryString:()=>et,cartesianProduct:()=>Ue,chain:()=>We,checkNetwork:()=>rt,checkNthBitOn:()=>Tn,clampLat:()=>Wn,cloneArray:()=>pe,cloneDeeplyJSON:()=>N,cloneObjDeeply:()=>H,colorFromString:()=>Cn,completeObjectAssign:()=>fe,compose:()=>Fe,composeAsync:()=>Ge,concatWithInnerOuterSeparators:()=>ln,config:()=>c,converge:()=>xe,copyTextToClipboard:()=>wt,countTextareaLines:()=>mt,ctypeDigit:()=>_,curry:()=>Te,cursorFocus:()=>Ct,d2b:()=>jn,debounce:()=>gn,deepArrayCompare:()=>C,deepObjectCloningExtend:()=>U,deepObjectCompare:()=>I,deepObjectExtend:()=>L,defineProperty:()=>ae,delay:()=>hn,detectWrapped:()=>It,dirname:()=>wn,elementInnerDimensions:()=>ht,elementUniqueId:()=>dt,escapeRegExp:()=>en,execIfPOJOHas:()=>ke,execWithExistentProps:()=>De,extend:()=>J,extendDecorate:()=>B,filenameExtension:()=>On,filterFloat:()=>Kn,filterInt:()=>Yn,findIndex:()=>z,firstOfArray:()=>be,firstPropValue:()=>Y,flatten:()=>He,flattenDeep:()=>Le,forGen:()=>Re,formData:()=>tt,getCookie:()=>ct,getDecodedJSONFromFragmentURI:()=>Tt,getDecodedURIFragment:()=>At,getElementComputedStyle:()=>pt,getGlobalObject:()=>g,getLuminance:()=>Mn,getNestedPropertyValue:()=>b,getQueryStringArgsMultiDim:()=>Ft,getRawURIFragment:()=>Pt,getScrollableAncestor:()=>xt,getVerticalScrollBarWidth:()=>bt,googleMapBestZoomLevelFromBounds:()=>pn,hasCyclicReference:()=>D,hasHorizontalScrollbar:()=>ft,hasNestedPropertyValue:()=>O,hasVerticalScrollbar:()=>at,hashString:()=>$e,identityArgsFn:()=>Be,identityFn:()=>Je,includesTypeCoercion:()=>q,intDiv:()=>_t,intSumHash:()=>_e,intToRGBHexString:()=>Fn,is:()=>r,isArray:()=>f,isCallable:()=>d,isEllipsisActive:()=>Ot,isEmpty:()=>p,isEmptyOr0:()=>h,isEven:()=>Xt,isInViewport:()=>ut,isInt:()=>V,isIntegerOrIntegerStr:()=>X,isJSONString:()=>ee,isObject:()=>s,isObjectEmpty:()=>l,isOdd:()=>zt,isPlainObject:()=>a,isPrimitiveType:()=>k,isReferenceType:()=>x,isScrollOnBottom:()=>yt,isScrolledIntoView:()=>st,isStrictlyTrue:()=>K,isTruthy:()=>G,isUndefined:()=>$,isValidDate:()=>Xn,isValidDateTimeStr:()=>zn,juxt:()=>Ne,lastOfArray:()=>ye,liftBinaryFn:()=>Ee,mapObject:()=>ie,mapToObject:()=>ce,mapYield:()=>F,maxDelayFallbackPromise:()=>Ye,maxNestingLevel:()=>Et,mean:()=>Ln,median:()=>Un,millisecToSec:()=>Qt,minAbsDeviationFromExcludedValue:()=>Bn,minAbsDeviationFromValue:()=>Jn,minDelayPromise:()=>ze,msToTime:()=>Gt,nestedMapGet:()=>P,nestedMapHas:()=>j,nestedMapSet:()=>S,nestedObjectConstructValue:()=>E,nestedPropertyValue:()=>y,nestedRAF:()=>jt,nestedTreeMapGet:()=>M,nestedTreeMapHas:()=>T,nestedTreeMapSet:()=>v,noOpFn:()=>te,noncanonicalUUID:()=>Bt,normalizeLat:()=>$n,normalizeLng:()=>Vn,objectMin:()=>Hn,objectPropEqual:()=>o,onePassStringHash:()=>Ve,optionsValueLabel:()=>un,parseQueryStringArgsMultiDim:()=>Mt,partialShallowEqual:()=>ne,pathinfo:()=>bn,pick:()=>Ie,pipe:()=>Ce,proceedCallingFn:()=>ve,prop:()=>se,propSelection:()=>le,proportion:()=>Yt,prototypeChainProperties:()=>ue,rAFLooper:()=>St,randomArrayShuffle:()=>Wt,randomDifferentFromValue:()=>Lt,randomFloat:()=>Ht,randomInt:()=>Rt,randomStr:()=>Dt,randomString:()=>qt,reverseString:()=>fn,round:()=>$t,secondsToTimeString:()=>Zt,separateIntThousands:()=>dn,setCookie:()=>it,setNestedPropertyValue:()=>w,shallowEqual:()=>i,shallowExtend:()=>W,shallowObjectDiff:()=>re,smoothScrollToTop:()=>kt,sortNums:()=>je,startsWith:()=>sn,str:()=>oe,stringHashArray:()=>qe,sum:()=>Vt,throttle:()=>mn,time:()=>Kt,timeout:()=>Xe,toggleNthBit:()=>vn,trim:()=>rn,trimCharacterMask:()=>tn,trimCharacterRegex:()=>nn,trimLeft:()=>on,trimRight:()=>cn,turnNthBitOff:()=>Pn,turnNthBitOn:()=>An,typeToStr:()=>R,ucaseFirst:()=>an,uniqueId:()=>m,uniqueProgressiveIncrementalCombinations:()=>En,unsetCookie:()=>lt,unshiftArray:()=>de,uuid:()=>Jt,waitNetwork:()=>ot,wrapLng:()=>qn,xhr:()=>nt,xrange:()=>_n,yieldAllSubsequences:()=>xn,yieldCombinationsWithoutRepetition:()=>In,yieldPermutations:()=>Dn,yieldUniqueProgressiveIncrementalCombinations:()=>Nn,yieldUniqueSubsequences:()=>kn});const n=Object.prototype.hasOwnProperty;function r(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function o(e,t,o){return n.call(t,o)&&r(e[o],t[o])}function i(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let r=0;r<n.length;r++){if(!o(e,t,n[r]))return!1}return!0}const c={uniqueIdPrefix:"",elementUniqueIdPrefix:"",checkNetworkURI:null};function l(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}const u=Object.prototype.toString.call({}),s=function(e){return u===Object.prototype.toString.call(e)},a=e=>null!==e&&"object"==typeof e&&e.constructor===Object&&s(e);function f(e){return Object.prototype.toString.call(e)===Object.prototype.toString.call([])}function d(e){return"function"==typeof e}function p(e){return!e||0===e.length}function h(e){return!e||"0"===e||0===e.length}function g(){return void 0!==e.g?e.g:window}function m(e){const t=g();t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH=t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH||0,t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH++;const n=t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH;return(e||c.uniqueIdPrefix)+n}function y(e,t){let n=e;for(let e=0;e<t.length;e++){n=n[t[e]]}return n}const b=y;function O(e,t){if(!t.length)return!1;let n=e;for(let e=0;e<t.length;e++){const r=t[e];if(!n[r])return!1;n=n[r]}return!0}function w(e,t,n){if(!t.length)return;let r=e,o=null;for(let e=0;e<t.length;e++){const n=t[e];"object"!=typeof r[n]&&(r[n]={}),o=r,r=r[n]}o&&(o[t[t.length-1]]=n)}const S=(e,t,n)=>{let r=0,o=e;for(;r<t.length-1;){const e=t[r],n=o.get(e);if(n instanceof Map||n instanceof WeakMap)o=n;else{const t=new Map;o.set(e,t),o=t}r++}o.set(t[r],n)},j=(e,t)=>{let n=e,r=0;const o=t.length;for(;(n instanceof Map||n instanceof WeakMap)&&n.has(t[r])&&r<o;)n=n.get(t[r]),r++;return r==o},P=(e,t)=>{let n=e,r=0;const o=t.length;for(;(n instanceof Map||n instanceof WeakMap)&&n.has(t[r])&&r<o;)n=n.get(t[r]),r++;return r==o?n:void 0},A=Symbol("treeMapSubtree"),v=(e,t,n)=>{let r=0,o=e;const i=e instanceof WeakMap?WeakMap:Map;for(;r<t.length-1;){const e=t[r],n=o.get(e);if(n)o=n[A]||(n[A]=new i);else{const t=new i,n={[A]:t,value:void 0};o.set(e,n),o=t}r++}const c=t[r];o.has(c)?o.get(c).value=n:o.set(c,{value:n})},T=(e,t)=>{let n=e,r=0;const o=t.length;for(;(n instanceof Map||n instanceof WeakMap)&&n.has(t[r])&&r<o;)n=n.get(t[r])[A],r++;return r==o},M=(e,t)=>{let n=e,r=0;const o=t.length-1;for(;(n instanceof Map||n instanceof WeakMap)&&n.has(t[r])&&r<o;)n=n.get(t[r])[A],r++;if(r===o&&n){const e=t[r];if(n.has(e)){return n.get(e).value}}};function*F(e,t,n){e.map();const r=t.bind(n);for(let t=0;t<e.length;t++)yield r(e[t],t,e)}function C(e,t){if(e.length!=t.length)return!1;const n=Object.prototype.toString,r=n.call([]);for(let o=0;o<e.length;o++){if(!(o in t))return!1;if(a(e[o])){if(!a(t[o])||!I(e[o],t[o]))return!1}else if(r===n.call(e[o])){if(r!==n.call(t[o])||!C(e[o],t[o]))return!1}else if(e[o]!==t[o])return!1}return!0}function I(e,t){const n=Object.prototype.toString,r=n.call([]);for(const o in e){if(!(o in t))return!1;if(a(e[o])){if(!a(t[o])||!I(e[o],t[o]))return!1}else if(r===n.call(e[o])){if(r!==n.call(t[o])||!C(e[o],t[o]))return!1}else if(e[o]!==t[o])return!1}return!0}function E(e,t,n){let r=e=e||(n?[]:{});for(let e=0;e<t.length;e++){const n=t[e],o=Object.keys(n)[0],i=n[o];r[o]=r[o]||i,r=r[o]}return r}function N(e){return JSON.parse(JSON.stringify(e))}function x(e){return new Object(e)===e}function k(e){return new Object(e)!==e}function D(e){const t=[];let n=!1;return function e(r){if(n)return;if("object"!=typeof r)return;const o=t.indexOf(r);if(-1===o){t.push(r);for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&e(r[t]);t.splice(o,1)}else n=!0}(e),n}function R(e){return Object.prototype.toString.call(e)}function H(e){const t=new e.constructor;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(k(r))t[n]=r;else{if(!x(r))throw new Error("Oops! Unknown type for property '"+n+"' ("+R(r)+") in object ("+R(e)+")");if(D(r))throw new Error("Circular reference detected inside of property '"+n+"' ("+R(r)+") in object ("+R(e)+")");{const e=H(r);t[n]=e}}}return t}function L(e,t,n={}){for(const r in t)t[r]&&a(t[r])?(e[r]=e[r]||{},L(e[r],t[r],n)):n.extendArrays&&t[r]&&f(t[r])?(e[r]=e[r]||[],L(e[r],t[r],n)):e[r]=t[r]}function U(...e){const t=e[0];let n;for(let r=1;e[r];r++){n=e[r];for(const e in n)n[e]&&a(n[e])?(t[e]=t[e]||{},L(t[e],H(n[e]))):t[e]=n[e]}}function J(e,...t){let n={};if(t.length){const e=t.pop();f(e)&&1===e.length&&a(e[0])?n=e[0]:t.push(e)}for(const r of t)L(e,r,n);return e}function B(e,...t){const n=t[t.length-1];if(f(n)){t.pop();const r=t,o={},i=new Map,c=new Map,l=[],u=(e,t,n,r)=>{for(const o in t)n.push({destinationObject:e,sourceObject:t,property:o,path:[...r,o]})},s=(e,t)=>e instanceof RegExp&&"string"==typeof t?t.match(e):e===t,d=(e,t)=>{for(const n of e)if(s(n,t))return!0;return!1},p=(e,t)=>f(e)?d(e,t):s(e,t),h=e=>{if(!i.has(e)){const t=[];for(const[r,o]of n)p(r,e)&&t.push(o);i.set(e,t)}return i.get(e)};for(const t of r){const n=[];for(u(e,t,n,[]);n.length;){const{destinationObject:e,sourceObject:t,property:r,path:i}=n.pop();t[r]&&a(t[r])?(e[r]=a(e[r])?e[r]:{},u(e[r],t[r],n,i)):e[r]=t[r];const s=h(r);s&&s.length&&(T(c,i)||l.push([...i]),v(c,i,s.map(t=>n=>i=>{const c=n===o?e[r]:n;return t(c,r,e,i)})))}}for(let t=l.length-1;t>=0;t--){const n=l[t],r=M(c,n)||[];let i=o;for(const e of r)i=e(i)(n);i!==o&&w(e,n,i)}return e}return J(e,...t)}function W(e,...t){return t.map(t=>Object.keys(t).map(n=>e[n]=t[n])),e}function q(e,t){for(const n of e)if(n==t)return!0;return!1}function $(e){return void 0===e}function V(e){return Number.isInteger(e)}function _(e){return Boolean(e.match(/^[0-9]+$/))}function X(e){return Number.isInteger(e)||_(e)}function z(e,t){return e.findIndex(e=>e==t)}function Y(e){let t;for(t in e)break;return e[t]}function K(e){return!0===e}function G(e){return Boolean(e)}function Q(...e){return e.every(G)}function Z(...e){return e.every(e=>void 0!==e)}function ee(e){try{JSON.parse(e)}catch(e){return!1}return!0}function te(){}function ne(e,t){return i(Object.keys(t).reduce((t,n)=>(t[n]=e[n],t),{}),t)}function re(e,t){const n={objA:{},objB:{}};if(i(e,t))return n;const r=Object.keys(e),c=Object.keys(t);for(let i=0;i<r.length;i++){const c=r[i];o(e,t,c)||(n.objA[c]=e[c],hasOwnProperty.call(t,c)&&(n.objB[c]=t[c]))}for(let r=0;r<c.length;r++){const i=c[r];o(t,e,i)||(n.objB[i]=t[i],hasOwnProperty.call(e,i)&&(n.objA[i]=e[i]))}return n}function oe(e){return""+e}const ie=(e,t)=>Object.fromEntries(Object.entries(e).map(([e,n],r)=>[e,t(n,e,r)])),ce=(e,t)=>{let n;return e.reduce((e,...r)=>(n=t(...r),e[n[0]]=n[1],e),{})},le=(e,t=G)=>Object.keys(e).reduce((n,r)=>(t(e[r],r)&&(n[r]=e[r]),n),{});function ue(e,{stopAtPrototype:t=null,stopAtPrototypeInclude:n=!0}={}){let r=e;const o={};let i=!1,c=!1;for(;!c&&r&&(!i||n);){i&&(c=!0);Object.getOwnPropertyNames(r).map(e=>o[e]=!0),r=Object.getPrototypeOf(r),t&&(i=r===t)}return Object.keys(o)}function se(e,t,n,r){const o={};o[t]={get:n,set:r},Object.defineProperties(e,o)}function ae(e,t,n={}){return Object.defineProperty(e,t,{configurable:!1,enumerable:!1,writable:!0,...n})}function fe(e,...t){return t.forEach(t=>{const n=Object.keys(t).reduce((e,n)=>(e[n]=Object.getOwnPropertyDescriptor(t,n),e),{});Object.getOwnPropertySymbols(t).forEach(e=>{const r=Object.getOwnPropertyDescriptor(t,e);r.enumerable&&(n[e]=r)}),Object.defineProperties(e,n)}),e}function de(e,t){let n=e.length;for(;n;)e[n]=e[n-1],n--;e[0]=t}function pe(e){return e.slice(0)}function he(e,t,n){const r=[];let o=!1;for(const i of e)if(o||i!=t){if(o&&i==n){r.push(i);break}o&&r.push(i)}else r.push(i),o=!0;return r}function ge(e){return!e.some(isNaN)}function me(e){return Array.prototype.slice.call(e)}function ye(e){return e[e.length-1]}function be(e){return e[0]}function Oe(e,t){let n=e.length,r=void 0;for(;n;)if(n--,t(e[n])){r=e[n];break}return r}const we=e=>e.length?e.reduce((e,t)=>t>e?t:e,-1/0):void 0,Se=e=>e.length?e.reduce((e,t)=>t<e?t:e,1/0):void 0,je=(e,t=!1)=>[...e].sort((e,n)=>t?n-e:e-n),Pe={JSUtlCurryPlaceholderPropRPecoyYmCYqZ2lE:!0},Ae="JSUtlProceedCallingFnPropRBmGaAgOCgftF9t",ve={[Ae]:!0},Te=(e,{arity:t,onEffectiveArgAdded:n,onPlaceholder:r,onFnCall:o,onCurriedFnFirstCall:i,onNewCurriedFn:c}={})=>{let l=!0;const u=void 0!==t?t:e.length,s=(t,o,c,...u)=>function s(...f){let d=t,p=o,h=null,g=!1;l&&(i&&i({addedArgs:f,fn:e,curriedFn:s}),1)&&(l=!1);let m=c.length;for(const t of f){!g&&(u=[...u]),g=!0;const o=!!t&&t.JSUtlCurryPlaceholderPropRPecoyYmCYqZ2lE===Pe.JSUtlCurryPlaceholderPropRPecoyYmCYqZ2lE;if(m>0&&!o){let r;if(n&&n({addedArg:t,args:u,fn:e,curriedFn:s}),null===h){const[e,...t]=c;r=e,h=t}else r=h.shift();u[r]=t,m--,d--}else o?(null===h?h=c.concat(p):h.push(p),r&&r({args:u,fn:e,curriedFn:s})):(d--,n&&n({addedArg:t,args:u,fn:e,curriedFn:s})),u[p]=t,p++}return a.call(null,s,d,p,null===h?[...c]:h,...u)},a=(t,n,r,i,...l)=>{if(n<=0){if(o){const n=o({args:l,fn:e,curriedFn:t});return n&&n[Ae]===ve[Ae]?e(...l):n}return e(...l)}{const e=s(n,r,i,...l);return c&&c({curriedFn:t,newCurriedFn:e}),e}},f=s(u,0,[]);return c&&c({curriedFn:f,newCurriedFn:f}),f},Me=(e,{plugPropertyName:t="plugCurried",plugPropertyMustBeTruthy:n=!1,onPOJOArgMerged:r,onFnCall:o,onCurriedFnFirstCall:i,onNewCurriedFn:c}={})=>{let u=!0;const s=a=>function f(d){u&&(i&&i({POJOArg:d,fn:e,curriedFn:f}),1)&&(u=!1);let p=Object.assign({},a,d||{});if(!Object.prototype.hasOwnProperty.call(p,t)||n&&!p[t]){r&&r({POJOArg:d,POJO:p,fn:e,curriedFn:f});const t=s(p);return c&&c({curriedFn:f,newCurriedFn:t}),t}{const{[t]:n,...i}=d,{[t]:c,...u}=p;p=u,l(i)||r&&r({POJOArg:i,POJO:p,fn:e,curriedFn:f});let s=!0,a=void 0;return o&&(a=o({POJO:p,fn:e,curriedFn:f}),s=!!a&&a[Ae]===ve[Ae]),s?e(p):a}},a=s({});return c&&c({curriedFn:a,newCurriedFn:a}),a},Fe=(...e)=>(...t)=>{let n=t,r=void 0;for(let t=(e=e.flat(1)).length-1;t>=0;t--){r=(0,e[t])(...n),n=[r]}return r},Ce=(...e)=>(...t)=>(e=e.flat(1)).length?e.reduce((e,t)=>[t(...e)],t)[0]:void 0,Ie=(...e)=>t=>e.reduce((e,n)=>({...e,[n]:t[n]}),{}),Ee=e=>t=>n=>(...r)=>e(t(...r),n(...r)),Ne=e=>(...t)=>e.map(e=>e(...t)),xe=(e,t)=>(...n)=>e(...t.map(e=>e(...n))),ke=e=>t=>n=>Object.prototype.hasOwnProperty.call(e,t)&&n(e[t],e),De=(...e)=>t=>n=>n(e.filter(e=>Object.prototype.hasOwnProperty.call(t,e))),Re=e=>(...t)=>n=>{const r=e(...t),o=[];for(const e of r){const t=n(e);o.push(t)}return o},He=e=>Array.prototype.concat.apply([],e),Le=(e,t=1)=>t>0?e.reduce((e,n)=>e.concat(f(n)?Le(n,t-1):n),[]):me(e),Ue=(...e)=>e.reduce((e,t)=>He(e.map(e=>t.map(t=>[...e,t]))),[[]]),Je=e=>e,Be=(...e)=>e,We=(...e)=>(...t)=>(e=e.flat(1)).reduceRight((e,t)=>((e,t)=>n=>e(n,t&&((...e)=>t(e))))(t,e),void 0)(t);function qe(e){let t=0;for(let n=0;n<e.length;n++){let r=0;for(let t=0;t<e[n].length;t++)r=251*r^e[n].charCodeAt(t);t^=r}return t}const $e=e=>{let t,n,r=0;if(0===e.length)return r;for(t=0;t<e.length;t++)n=e.charCodeAt(t),r=(r<<5)-r+n,r|=0;return r};function Ve(e,t=0){let n=t,r=0;for(let t=0;t<e.length;t++)r=251*r^e.charCodeAt(t);return n^=r,n}function _e(e){let t=0;for(let n=0;n<e.length;n++){t=t%0xfffffffffffd1+e[n]%0xfffffffffffd1}return t}function Xe(e,t){return new Promise(n=>setTimeout(n,e,t))}function ze(e,t){return Promise.all([e,Xe(t)]).then(([e])=>e).catch(e=>{throw e})}function Ye({promise:e,maxDelayMs:t,onFallback:n=(()=>{}),fallbackMinDelayMs:r}={}){const o=m();return Promise.race([e,Xe(t).then(()=>o)]).then(t=>t===o?(n(),ze(e,r)):t)}const Ke=(e,t,n)=>void 0!==n?e.then(t,n):e.then(t),Ge=(...e)=>t=>e.reduce((e,t)=>{let n;return n=f(t)?Ke(e,t[0],t[1]):Ke(e,t),n},Promise.resolve(t)),Qe=(e,t=1)=>{const n=e.length;let r=new Promise(te);if(t<0?t=1:t>n&&(t=n),n>0){let o=0,i=!1;r=new Promise((r,c)=>{const l=[],u=[];e.map((e,s)=>{let a=!1;e.then(n=>{i||(a=!0,o++,l.push({promise:e,index:s,value:n}),l.length===t&&(i=!0,r({fulfilled:l,rejected:u})))}).catch(t=>{i||a||(o++,u.push({promise:e,index:s,reason:t}),o===n&&(i=!0,c({fulfilled:l,rejected:u})))})})})}return r};function Ze(e,t,n,r){if(!t||"object"!=typeof t||t instanceof Date||t instanceof File){const o=null==t?"":n?encodeURIComponent(t):t;e instanceof FormData?e.append(r,o):e[r]=o}else Object.keys(t).forEach(o=>{Ze(e,t[o],n,r?`${r}[${o}]`:n?encodeURIComponent(o):o)})}function et(e){const t={};Ze(t,e,!0);const n=[];for(const e in t)n.push(e+"="+t[e]);return n.join("&")}function tt(e){const t=new FormData;return Ze(t,e),t}const nt=()=>window.ActiveXObject&&new window.ActiveXObject("Microsoft.XMLHTTP")||new XMLHttpRequest;function rt(e=null){const t=nt();return new Promise(n=>{try{t.onreadystatechange=()=>{4==t.readyState&&n(t.status>=200&&(t.status<300||304===t.status))},t.open("HEAD",(e||c.checkNetworkURI||"//"+window.location.hostname+(80!=window.location.port?":"+window.location.port:""))+"?rand="+Math.floor(65536*(1+Math.random())),!0),t.send()}catch(e){n(!1)}})}function ot(e=3e3){return new Promise(t=>{rt().then(n=>{if(n)t();else{const n=setInterval(()=>{rt().then(e=>{e&&(clearInterval(n),t())})},e)}})})}function it(e,t,n){let r="";if(n){const e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),r="expires="+e.toUTCString()+";"}document.cookie=e+"="+t+";"+r+"path=/"}function ct(e){const t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){let r=n[e];for(;" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}}function lt(e){it(e,"",-365)}function ut(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)}function st(e,t,n=1){const r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),{top:i,bottom:c,height:l}=r,u=()=>"function"==typeof n?n(r,o):n;let s;return i<=o.top?o.top-i+u()<=l:(s=c-o.bottom)<0||(o.bottom>=i&&n?o.bottom-i>=u():s<=l)}function at(e){return e.scrollHeight>e.clientHeight}function ft(e){return e.scrollWidth>e.clientWidth}function dt(e){const t=m();return(e||c.elementUniqueIdPrefix)+t}function pt(e){return window.getComputedStyle(e)}function ht(e){const t=pt(e);let n=e.clientHeight,r=e.clientWidth;return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{width:r,height:n}}let gt;function mt(e){null==gt&&(gt=document.createElement("textarea"),gt.style.border="none",gt.style.height="0",gt.style.overflow="hidden",gt.style.padding="0",gt.style.position="absolute",gt.style.left="0",gt.style.top="0",gt.style.zIndex="-1",document.body.appendChild(gt));const t=window.getComputedStyle(e),n=parseInt(t.paddingLeft),r=parseInt(t.paddingRight);let o=parseInt(t.lineHeight);isNaN(o)&&(o=parseInt(t.fontSize)),gt.style.width=e.clientWidth-n-r+"px",gt.style.font=t.font,gt.style.letterSpacing=t.letterSpacing,gt.style.whiteSpace=t.whiteSpace,gt.style.wordBreak=t.wordBreak,gt.style.wordSpacing=t.wordSpacing,gt.style.wordWrap=t.wordWrap,gt.value=e.value;let i=Math.floor(gt.scrollHeight/o);return 0==i&&(i=1),i}function yt(e){return e.scrollTop+e.offsetHeight>=e.scrollHeight}function bt(){const e=document.createElement("div");e.className="vertical-scrollbar-measure";const t=document.createElement("style");t.innerHTML="div.vertical-scrollbar-measure { width: 100px; height: 100px; overflow: scroll; position: absolute; top: -9999px; }",document.body.appendChild(t),document.body.appendChild(e);const n=e.offsetWidth-e.clientWidth;document.body.removeChild(e);return t.parentNode.removeChild(t),n}function Ot(e){return e.offsetWidth<e.scrollWidth}function wt(e,t,n){navigator.clipboard?navigator.clipboard.writeText(e).then((function(){t&&t()}),(function(e){n&&n(e)})):function(e,t,n){const r=document.documentElement.scrollTop||document.body.scrollTop,o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.focus(),o.select();try{document.execCommand("copy")?t&&t():n&&n()}catch(e){n&&n(e)}document.body.removeChild(o)&&document.documentElement.scrollTop&&(document.documentElement.scrollTop=r)||(document.body.scrollTop=r)}(e,t,n)}const St=(e,t)=>e&&window.requestAnimationFrame(()=>(t(),St(--e,t))),jt=(e,t)=>{let n=e||1;const r=()=>{n--,n?window.requestAnimationFrame(r):t()};return window.requestAnimationFrame(r)};function Pt(e){return(e||window.location.hash).replace(/^#/,"")}function At(e){return decodeURIComponent(Pt(e))}function vt(e,t){return e+"#"+encodeURIComponent(JSON.stringify(t))}function Tt(e=null){const t=window.location.hash;if(!p(t)){const e=At(t);if(ee(e))return JSON.parse(e)}return e}function Mt(e,t){let n,r,o,i,c,l,u,s,f,d,p,h,g;e||(e=window.location.search.substr(1));const m=String(e).replace(/^&/,"").replace(/&$/,"").split("&"),y=m.length,b=function(e){return decodeURIComponent(e.replace(/\+/g,"%20"))};for(t||(t={}),n=0;n<y;n++){for(s=m[n].split("="),f=b(s[0]),d=s.length<2?"":b(s[1]);" "===f.charAt(0);)f=f.slice(1);if(f.indexOf("\0")>-1&&(f=f.slice(0,f.indexOf("\0"))),f&&"["!==f.charAt(0)){for(h=[],p=0,r=0;r<f.length;r++)if("["!==f.charAt(r)||p){if("]"===f.charAt(r)&&p&&(h.length||h.push(f.slice(0,p-1)),h.push(f.substr(p,r-p)),p=0,"["!==f.charAt(r+1)))break}else p=r+1;for(h.length||(h=[f]),r=0;r<h[0].length&&(u=h[0].charAt(r)," "!==u&&"."!==u&&"["!==u||(h[0]=h[0].substr(0,r)+"_"+h[0].substr(r+1)),"["!==u);r++);for(l=t,r=0,g=h.length;r<g;r++)if(f=h[r].replace(/^['"]/,"").replace(/['"]$/,""),c=l,""!==f&&" "!==f||0===r)void 0===l[f]&&(l[f]={}),l=l[f];else{for(i in o=-1,l)Object.prototype.hasOwnProperty.call(l,i)&&+i>o&&i.match(/^\d+$/g)&&(o=+i);f=o+1}c[f]=d}}const O=function(e){const t=Object.keys(e),n={};for(let e=0;e<t.length;e++)n[e]=!0;const r=[];for(let o=0;o<t.length;o++){const i=t[o]+"";if(!i.match(/^[0-9]+$/))return e;const c=Number(i);if(!n[c])return e;r[c]=e[i],delete n[c]}return 0===Object.keys(n).length?r:e};return function e(t){for(const n in t)a(t[n])&&(t[n]=O(t[n]),e(t[n]))}(t),t}function Ft(){const e={};return Mt(location.search.substring(1),e),e}const Ct=function(e){let t,n;void 0!==window.pageXOffset?(t=window.pageXOffset,n=window.pageYOffset):void 0!==window.scrollX?(t=window.scrollX,n=window.scrollY):document.documentElement&&void 0!==document.documentElement.scrollLeft?(t=document.documentElement.scrollLeft,n=document.documentElement.scrollTop):(t=document.body.scrollLeft,n=document.body.scrollTop),e.focus(),void 0!==t&&window.scrollTo(t,n)};function It(e){let t;"string"==typeof e?(e=e.replace(/^\./,""),t=document.getElementsByClassName(e)):t=e;const n=[];let r={},o={};for(let e=0;e<t.length;e++){const i=t[e];o=i.getBoundingClientRect(),r&&r.top<o.top&&n.push(i),r=0===e?o:r}return n}function Et(e){if(!e.children)return 0;let t=-1;for(let n=0;n<e.children.length;n++){const r=Et(e.children[n]);r>t&&(t=r)}return t+1}const Nt=/^(visible|hidden)/,xt=e=>e instanceof HTMLElement&&"function"==typeof window.getComputedStyle?e.scrollHeight>=e.clientHeight&&!Nt.test(window.getComputedStyle(e).overflowY||"visible")?e:xt(e.parentElement)||document.scrollingElement||document.body:null,kt=(e=window)=>e.scroll({top:0,behavior:"smooth"});function Dt(e){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length;for(let o=0;o<e;o++)t+=n.charAt(Math.floor(Math.random()*r));return t}function Rt(e=0,t=Number.MAX_SAFE_INTEGER){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e}function Ht(e=0,t=562949953421311){const n=Rt(e,t);return n>=t?n:n+Math.random()}function Lt(e){let t=Math.random();for(;e==t;)t=Math.random();return t}let Ut=1;function Jt(){let e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}function Bt(){return Jt()+"-"+Ut++}function Wt(e){return(e=>{let t,n,r=e.length;for(;0!==r;)n=Math.floor(Math.random()*r),r--,t=e[r],e[r]=e[n],e[n]=t;return e})(Object.keys(e)).map(t=>e[t])}const qt=()=>Math.random().toString(36).substr(2);function $t(e,t=0){const n=10**t;return Math.round(e*n)/n}function Vt(...e){return e.reduce((e,t)=>e+t)}function _t(e,t){return Math.floor(e/t)}function Xt(e){return e%2==0}function zt(e){return!Xt(e)}const Yt=([e,t])=>([n,r])=>o=>(r-n)/(t-e)*(o-e)+n;function Kt(){const e=new Date;return Math.round(e.getTime()/1e3)}function Gt(e){const t=new Date(e||(new Date).getTime());return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().slice(11,-1)}function Qt(e){return.001*e}const Zt=(e,{includeHours:t=!1}={})=>{if(!e||!X(e))return t?"00:00:00":"00:00";let n="",r=_t(e,60);t&&(n=(_t(e,3600)+"").padStart(2,"0")+":",r%=60),r+="";const o=e%60+"";return`${n}${r.padStart(2,"0")}:${o.padStart(2,"0")}`};function en(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function tn(e,t,n={}){void 0===t&&(t=" ");const r=en(t),o=void 0===n.shouldTrimLeft||n.shouldTrimLeft,i=void 0===n.shouldTrimRight||n.shouldTrimRight,c=[];o&&(c[c.length]="^["+r+"]+"),i&&(c[c.length]="["+r+"]+$");const l=new RegExp(c.join("|"),"gm");return e.replace(l,"")}function nn(e,t,n){void 0===t&&(t=["\\s"]),n=n||"";const r=new RegExp("(^("+t.join("|")+")+)|(("+t.join("|")+")+$)","g"+n);return e.replace(r,"")}function rn(e,t){return tn(e,t)}function on(e,t){return tn(e,t,{shouldTrimLeft:!0,shouldTrimRight:!1})}function cn(e,t){return tn(e,t,{shouldTrimLeft:!1,shouldTrimRight:!0})}function ln(e,t=" ",n=" "){const r=[];for(const t of e)f(t)?r[r.length]=rn(t.join(n),n):r[r.length]=t;return rn(r.join(t),t)}function un({arrayOfObjects:e,concatObjectProps:t,valueProp:n="id",outerSeparator:r=" ",innerSeparator:o=" "}){const i=[];for(const c of e){const e=[];for(const n of t)f(n)?e[e.length]=n.map(e=>c[e]):e[e.length]=c[n];i[i.length]={value:c[n],label:ln(e,r,o)}}return i}function sn(e,t){return 0===e.indexOf(t,0)}function an(e){return e.charAt(0).toUpperCase()+e.slice(1)}function fn(e){return e.split("").reverse().join("")}function dn(e,t=","){return e.toString().split("").reverse().map((e,n,r)=>(n+1)%3==0&&n!==r.length-1?`${t}${e}`:e).reverse().join("")}function pn(e,t){const n=256,r=256;function o(e){const t=Math.sin(e*Math.PI/180),n=Math.log((1+t)/(1-t))/2;return Math.max(Math.min(n,Math.PI),-Math.PI)/2}function i(e,t,n){return Math.floor(Math.log(e/t/n)/Math.LN2)}const c=e.getNorthEast(),l=e.getSouthWest(),u=(o(c.lat())-o(l.lat()))/Math.PI,s=c.lng()-l.lng(),a=(s<0?s+360:s)/360,f=i(t.height,n,u),d=i(t.width,r,a);return Math.min(f,d,21)}const hn=function(){let e=0;return function(t,n){clearTimeout(e),e=setTimeout((function(){t()}),n)}}();function gn(e,t){let n=void 0;return function(...r){!$(n)&&clearTimeout(n),n=setTimeout((function(){e(...r)}),t)}}function mn(e,t){let n=Date.now();return function(...r){n+t-Date.now()<0&&(e(...r),n=Date.now())}}function yn(e){return e.split(/[\\/]/).pop()}function bn(e,t){let n="",r="",o="",i=0;const c={};let l=0,u=0,s=!1,a=!1,f=!1;if(!e)return!1;t||(t="PATHINFO_ALL");const d={PATHINFO_DIRNAME:1,PATHINFO_BASENAME:2,PATHINFO_EXTENSION:4,PATHINFO_FILENAME:8,PATHINFO_ALL:0};for(o in d)Object.prototype.hasOwnProperty.call(d,o)&&(d.PATHINFO_ALL=d.PATHINFO_ALL|d[o]);if("number"!=typeof t){for(t=[].concat(t),u=0;u<t.length;u++)d[t[u]]&&(i|=d[t[u]]);t=i}const p=function(e){const t=e+"",n=t.lastIndexOf(".")+1;return!!n&&(n!==t.length?t.substr(n):"")};if(t&d.PATHINFO_DIRNAME){const t=e.replace(/\\/g,"/").replace(/\/[^/]*\/?$/,"");c.dirname=t===e?".":t}for(n in t&d.PATHINFO_BASENAME&&(!1===s&&(s=yn(e)),c.basename=s),t&d.PATHINFO_EXTENSION&&(!1===s&&(s=yn(e)),!1===a&&(a=p(s)),!1!==a&&(c.extension=a)),t&d.PATHINFO_FILENAME&&(!1===s&&(s=yn(e)),!1===a&&(a=p(s)),!1===f&&(f=s.slice(0,s.length-(a?a.length+1:!1===a?0:1))),c.filename=f),l=0,c)Object.prototype.hasOwnProperty.call(c,n)&&(l++,r=n);return 1===l?c[r]:c}function On(e){const t=bn(e,"PATHINFO_EXTENSION");return"string"!=typeof t?"":t}function wn(e){return e.replace(/\\/g,"/").replace(/\/[^/]*\/?$/,"")}const Sn=e=>parseInt(e,2),jn=e=>e.toString(2),Pn=(e,t)=>e&~(1<<t-1),An=(e,t)=>e|1<<t-1,vn=(e,t)=>e^1<<t-1,Tn=(e,t)=>e&1<<t-1;function Mn(e){const t=parseInt(e,16);return.299*((16711680&t)>>16)+.587*((65280&t)>>8)+.114*(255&t)}function Fn(e){const t=(16777215&e).toString(16).toUpperCase();return"00000".substring(0,6-t.length)+t}const Cn=e=>Fn($e(e)),In=function*(e,t,n=!0){const r=e.length;yield*function*e(t,r,o,i,c=0){if(o.length===i)yield n?me(o):o;else for(let n=c;n<r&&i-o.length<=r-n;n++)o.push(t[n]),yield*e(t,r,o,i,n+1),o.pop()}(e,r,[],t)},En=e=>{const t=e.length;if(0===t)return[];const n=me(e);if(1===t)return[n];const r=[];if(e.map(e=>r.push([e])),t>2)for(let n=2;n<t;n++)for(const t of In(e,n))r.push(t);return r.push(n),r},Nn=function*(e,t=!0){const n=e.length;if(0===n)return;const r=t?me(e):e;if(1!==n){if(yield*F(e,e=>[e]),n>2)for(let r=2;r<n;r++)for(const n of In(e,r,t))yield n;yield r}else yield r},xn=function*(e){const t=e.length;for(let n=0;n<=t;n++)for(const t of In(e,n))yield t},kn=function*(e){const t=new Map;yield[];for(const n of xn(e))j(t,n)||(S(t,n,!0),yield n)},Dn=function*(e,t=!0){const n=[],r={},o=function*(){if(n.length===e.length)yield t?me(n):n;else for(let t=0;t<e.length;t++)r[t]||(n.push(e[t]),r[t]=!0,yield*o(),delete r[t],n.pop())};yield*o()},Rn=(e,t)=>e<t?-1:e>t?1:0,Hn=(e,{comparator:t=Rn,returnAsKeyVal:n=!1}={})=>{const r={key:void 0,value:void 0};for(const n in e){const o=e[n];(void 0===r.key||t(o,r.value)<0)&&(r.key=n,r.value=o)}return n?r:r.value};function Ln(...e){return Vt(...e)/e.length}function Un(...e){const t=je(e),n=_t(t.length,2);return zt(t.length)?t[n]:Ln(t[n-1],t[n])}const Jn=e=>(...t)=>{let n=1/0;return t.map(t=>{const r=Math.abs(t-e);r<n&&(n=r)}),n},Bn=e=>(...t)=>Jn(e)(...t.filter(t=>t!==e)),Wn=e=>Number(e<-90?-90:e>90?90:e),qn=e=>{for(e=Number(e);e>180;)e-=360;for(;e<-180;)e+=360;return e},$n=e=>(e=Wn(e))>=0?90-e:90+Math.abs(e),Vn=e=>(e=qn(e))+180;function*_n(e,t,n=1){if(e<t){if(n<=0)throw new RangeError("Step must be a positive int greater than 0.");for(let r=e;r<=t;r+=n)yield r}else{if(n>=0)throw new RangeError("Step must be a negative int greater than 0.");for(let r=e;r>=t;r+=n)yield r}}function Xn(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}function zn(e){return Xn(new Date(e))}function Yn(e){let t=e.replace(/[^0-9]/g,"");return t=t.replace(/^[0]+([1-9])/,"$1"),t=t.replace(/^[0]+$/,"0"),e&&t.length&&"-"===e[0]&&(t="-"+t),t}function Kn(e){let t=e.replace(/[^0-9.]/g,"");const n=/(\..*)\./g;do{t=t.replace(n,"$1")}while(t!=t.replace(n,"$1"));return"."===t&&(t="0."),t=t.replace(/^[0]+([1-9])/,"$1"),t=t.replace(/^[0]+($|\.)/,"0$1"),e&&t.length&&"-"===e[0]&&(t="-"+t),t}return t})()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("JSUtl",[],t):"object"==typeof exports?exports.JSUtl=t():e.JSUtl=t()}("undefined"!=typeof self?self:this,(function(){return(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{POJOCurry:()=>Me,_:()=>Pe,allNotUndefined:()=>Z,allTruthy:()=>Q,appendEncodedJSONFragmentToURI:()=>vt,applyAsync:()=>Ke,areArrayItemsAllCoercibleToNumber:()=>ge,arrayFindReverse:()=>Oe,arrayMax:()=>we,arrayMin:()=>Se,arrayOrArrayLike:()=>me,arraySliceFromValueToValue:()=>he,asSoonAtLeastSomeFulfilled:()=>Qe,b2d:()=>jn,basename:()=>bn,buildQueryString:()=>et,cartesianProduct:()=>Ue,chain:()=>We,checkNetwork:()=>rt,checkNthBitOn:()=>Mn,clampLat:()=>qn,cloneArray:()=>pe,cloneDeeplyJSON:()=>N,cloneObjDeeply:()=>H,colorFromString:()=>In,completeObjectAssign:()=>fe,compose:()=>Fe,composeAsync:()=>Ge,concatWithInnerOuterSeparators:()=>un,config:()=>c,converge:()=>xe,copyTextToClipboard:()=>wt,countTextareaLines:()=>mt,ctypeDigit:()=>_,curry:()=>Te,cursorFocus:()=>Ct,d2b:()=>Pn,debounce:()=>mn,deepArrayCompare:()=>C,deepObjectCloningExtend:()=>U,deepObjectCompare:()=>I,deepObjectExtend:()=>L,defineProperty:()=>ae,delay:()=>gn,detectWrapped:()=>It,dirname:()=>Sn,downloadFile:()=>Dt,elementInnerDimensions:()=>ht,elementUniqueId:()=>dt,escapeRegExp:()=>tn,execIfPOJOHas:()=>ke,execWithExistentProps:()=>De,extend:()=>J,extendDecorate:()=>B,filenameExtension:()=>wn,filterFloat:()=>Gn,filterInt:()=>Kn,findIndex:()=>z,firstOfArray:()=>be,firstPropValue:()=>Y,flatten:()=>He,flattenDeep:()=>Le,forGen:()=>Re,formData:()=>tt,getCookie:()=>ct,getDecodedJSONFromFragmentURI:()=>Tt,getDecodedURIFragment:()=>At,getElementComputedStyle:()=>pt,getGlobalObject:()=>g,getLuminance:()=>Fn,getNestedPropertyValue:()=>b,getQueryStringArgsMultiDim:()=>Ft,getRawURIFragment:()=>Pt,getScrollableAncestor:()=>xt,getVerticalScrollBarWidth:()=>bt,googleMapBestZoomLevelFromBounds:()=>hn,hasCyclicReference:()=>D,hasHorizontalScrollbar:()=>ft,hasNestedPropertyValue:()=>O,hasVerticalScrollbar:()=>at,hashString:()=>$e,identityArgsFn:()=>Be,identityFn:()=>Je,includesTypeCoercion:()=>q,intDiv:()=>Xt,intSumHash:()=>_e,intToRGBHexString:()=>Cn,is:()=>r,isArray:()=>f,isCallable:()=>d,isEllipsisActive:()=>Ot,isEmpty:()=>p,isEmptyOr0:()=>h,isEven:()=>zt,isInViewport:()=>ut,isInt:()=>V,isIntegerOrIntegerStr:()=>X,isJSONString:()=>ee,isObject:()=>s,isObjectEmpty:()=>l,isOdd:()=>Yt,isPlainObject:()=>a,isPrimitiveType:()=>k,isReferenceType:()=>x,isScrollOnBottom:()=>yt,isScrolledIntoView:()=>st,isStrictlyTrue:()=>K,isTruthy:()=>G,isUndefined:()=>$,isValidDate:()=>zn,isValidDateTimeStr:()=>Yn,juxt:()=>Ne,lastOfArray:()=>ye,liftBinaryFn:()=>Ee,mapObject:()=>ie,mapToObject:()=>ce,mapYield:()=>F,maxDelayFallbackPromise:()=>Ye,maxNestingLevel:()=>Et,mean:()=>Un,median:()=>Jn,millisecToSec:()=>Zt,minAbsDeviationFromExcludedValue:()=>Wn,minAbsDeviationFromValue:()=>Bn,minDelayPromise:()=>ze,msToTime:()=>Qt,nestedMapGet:()=>P,nestedMapHas:()=>j,nestedMapSet:()=>S,nestedObjectConstructValue:()=>E,nestedPropertyValue:()=>y,nestedRAF:()=>jt,nestedTreeMapGet:()=>M,nestedTreeMapHas:()=>T,nestedTreeMapSet:()=>v,noOpFn:()=>te,noncanonicalUUID:()=>Wt,normalizeLat:()=>Vn,normalizeLng:()=>_n,objectMin:()=>Ln,objectPropEqual:()=>o,onePassStringHash:()=>Ve,optionsValueLabel:()=>sn,parseQueryStringArgsMultiDim:()=>Mt,partialShallowEqual:()=>ne,pathinfo:()=>On,pick:()=>Ie,pipe:()=>Ce,proceedCallingFn:()=>ve,prop:()=>se,propSelection:()=>le,proportion:()=>Kt,prototypeChainProperties:()=>ue,rAFLooper:()=>St,randomArrayShuffle:()=>qt,randomDifferentFromValue:()=>Ut,randomFloat:()=>Lt,randomInt:()=>Ht,randomStr:()=>Rt,randomString:()=>$t,reverseString:()=>dn,round:()=>Vt,secondsToTimeString:()=>en,separateIntThousands:()=>pn,setCookie:()=>it,setNestedPropertyValue:()=>w,shallowEqual:()=>i,shallowExtend:()=>W,shallowObjectDiff:()=>re,smoothScrollToTop:()=>kt,sortNums:()=>je,startsWith:()=>an,str:()=>oe,stringHashArray:()=>qe,sum:()=>_t,throttle:()=>yn,time:()=>Gt,timeout:()=>Xe,toggleNthBit:()=>Tn,trim:()=>on,trimCharacterMask:()=>nn,trimCharacterRegex:()=>rn,trimLeft:()=>cn,trimRight:()=>ln,turnNthBitOff:()=>An,turnNthBitOn:()=>vn,typeToStr:()=>R,ucaseFirst:()=>fn,uniqueId:()=>m,uniqueProgressiveIncrementalCombinations:()=>Nn,unsetCookie:()=>lt,unshiftArray:()=>de,uuid:()=>Bt,waitNetwork:()=>ot,wrapLng:()=>$n,xhr:()=>nt,xrange:()=>Xn,yieldAllSubsequences:()=>kn,yieldCombinationsWithoutRepetition:()=>En,yieldPermutations:()=>Rn,yieldUniqueProgressiveIncrementalCombinations:()=>xn,yieldUniqueSubsequences:()=>Dn});const n=Object.prototype.hasOwnProperty;function r(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function o(e,t,o){return n.call(t,o)&&r(e[o],t[o])}function i(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let r=0;r<n.length;r++){if(!o(e,t,n[r]))return!1}return!0}const c={uniqueIdPrefix:"",elementUniqueIdPrefix:"",checkNetworkURI:null};function l(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}const u=Object.prototype.toString.call({}),s=function(e){return u===Object.prototype.toString.call(e)},a=e=>null!==e&&"object"==typeof e&&e.constructor===Object&&s(e);function f(e){return Object.prototype.toString.call(e)===Object.prototype.toString.call([])}function d(e){return"function"==typeof e}function p(e){return!e||0===e.length}function h(e){return!e||"0"===e||0===e.length}function g(){return void 0!==e.g?e.g:window}function m(e){const t=g();t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH=t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH||0,t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH++;const n=t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH;return(e||c.uniqueIdPrefix)+n}function y(e,t){let n=e;for(let e=0;e<t.length;e++){n=n[t[e]]}return n}const b=y;function O(e,t){if(!t.length)return!1;let n=e;for(let e=0;e<t.length;e++){const r=t[e];if(!n[r])return!1;n=n[r]}return!0}function w(e,t,n){if(!t.length)return;let r=e,o=null;for(let e=0;e<t.length;e++){const n=t[e];"object"!=typeof r[n]&&(r[n]={}),o=r,r=r[n]}o&&(o[t[t.length-1]]=n)}const S=(e,t,n)=>{let r=0,o=e;for(;r<t.length-1;){const e=t[r],n=o.get(e);if(n instanceof Map||n instanceof WeakMap)o=n;else{const t=new Map;o.set(e,t),o=t}r++}o.set(t[r],n)},j=(e,t)=>{let n=e,r=0;const o=t.length;for(;(n instanceof Map||n instanceof WeakMap)&&n.has(t[r])&&r<o;)n=n.get(t[r]),r++;return r==o},P=(e,t)=>{let n=e,r=0;const o=t.length;for(;(n instanceof Map||n instanceof WeakMap)&&n.has(t[r])&&r<o;)n=n.get(t[r]),r++;return r==o?n:void 0},A=Symbol("treeMapSubtree"),v=(e,t,n)=>{let r=0,o=e;const i=e instanceof WeakMap?WeakMap:Map;for(;r<t.length-1;){const e=t[r],n=o.get(e);if(n)o=n[A]||(n[A]=new i);else{const t=new i,n={[A]:t,value:void 0};o.set(e,n),o=t}r++}const c=t[r];o.has(c)?o.get(c).value=n:o.set(c,{value:n})},T=(e,t)=>{let n=e,r=0;const o=t.length;for(;(n instanceof Map||n instanceof WeakMap)&&n.has(t[r])&&r<o;)n=n.get(t[r])[A],r++;return r==o},M=(e,t)=>{let n=e,r=0;const o=t.length-1;for(;(n instanceof Map||n instanceof WeakMap)&&n.has(t[r])&&r<o;)n=n.get(t[r])[A],r++;if(r===o&&n){const e=t[r];if(n.has(e)){return n.get(e).value}}};function*F(e,t,n){e.map();const r=t.bind(n);for(let t=0;t<e.length;t++)yield r(e[t],t,e)}function C(e,t){if(e.length!=t.length)return!1;const n=Object.prototype.toString,r=n.call([]);for(let o=0;o<e.length;o++){if(!(o in t))return!1;if(a(e[o])){if(!a(t[o])||!I(e[o],t[o]))return!1}else if(r===n.call(e[o])){if(r!==n.call(t[o])||!C(e[o],t[o]))return!1}else if(e[o]!==t[o])return!1}return!0}function I(e,t){const n=Object.prototype.toString,r=n.call([]);for(const o in e){if(!(o in t))return!1;if(a(e[o])){if(!a(t[o])||!I(e[o],t[o]))return!1}else if(r===n.call(e[o])){if(r!==n.call(t[o])||!C(e[o],t[o]))return!1}else if(e[o]!==t[o])return!1}return!0}function E(e,t,n){let r=e=e||(n?[]:{});for(let e=0;e<t.length;e++){const n=t[e],o=Object.keys(n)[0],i=n[o];r[o]=r[o]||i,r=r[o]}return r}function N(e){return JSON.parse(JSON.stringify(e))}function x(e){return new Object(e)===e}function k(e){return new Object(e)!==e}function D(e){const t=[];let n=!1;return function e(r){if(n)return;if("object"!=typeof r)return;const o=t.indexOf(r);if(-1===o){t.push(r);for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&e(r[t]);t.splice(o,1)}else n=!0}(e),n}function R(e){return Object.prototype.toString.call(e)}function H(e){const t=new e.constructor;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(k(r))t[n]=r;else{if(!x(r))throw new Error("Oops! Unknown type for property '"+n+"' ("+R(r)+") in object ("+R(e)+")");if(D(r))throw new Error("Circular reference detected inside of property '"+n+"' ("+R(r)+") in object ("+R(e)+")");{const e=H(r);t[n]=e}}}return t}function L(e,t,n={}){for(const r in t)t[r]&&a(t[r])?(e[r]=e[r]||{},L(e[r],t[r],n)):n.extendArrays&&t[r]&&f(t[r])?(e[r]=e[r]||[],L(e[r],t[r],n)):e[r]=t[r]}function U(...e){const t=e[0];let n;for(let r=1;e[r];r++){n=e[r];for(const e in n)n[e]&&a(n[e])?(t[e]=t[e]||{},L(t[e],H(n[e]))):t[e]=n[e]}}function J(e,...t){let n={};if(t.length){const e=t.pop();f(e)&&1===e.length&&a(e[0])?n=e[0]:t.push(e)}for(const r of t)L(e,r,n);return e}function B(e,...t){const n=t[t.length-1];if(f(n)){t.pop();const r=t,o={},i=new Map,c=new Map,l=[],u=(e,t,n,r)=>{for(const o in t)n.push({destinationObject:e,sourceObject:t,property:o,path:[...r,o]})},s=(e,t)=>e instanceof RegExp&&"string"==typeof t?t.match(e):e===t,d=(e,t)=>{for(const n of e)if(s(n,t))return!0;return!1},p=(e,t)=>f(e)?d(e,t):s(e,t),h=e=>{if(!i.has(e)){const t=[];for(const[r,o]of n)p(r,e)&&t.push(o);i.set(e,t)}return i.get(e)};for(const t of r){const n=[];for(u(e,t,n,[]);n.length;){const{destinationObject:e,sourceObject:t,property:r,path:i}=n.pop();t[r]&&a(t[r])?(e[r]=a(e[r])?e[r]:{},u(e[r],t[r],n,i)):e[r]=t[r];const s=h(r);s&&s.length&&(T(c,i)||l.push([...i]),v(c,i,s.map(t=>n=>i=>{const c=n===o?e[r]:n;return t(c,r,e,i)})))}}for(let t=l.length-1;t>=0;t--){const n=l[t],r=M(c,n)||[];let i=o;for(const e of r)i=e(i)(n);i!==o&&w(e,n,i)}return e}return J(e,...t)}function W(e,...t){return t.map(t=>Object.keys(t).map(n=>e[n]=t[n])),e}function q(e,t){for(const n of e)if(n==t)return!0;return!1}function $(e){return void 0===e}function V(e){return Number.isInteger(e)}function _(e){return Boolean(e.match(/^[0-9]+$/))}function X(e){return Number.isInteger(e)||_(e)}function z(e,t){return e.findIndex(e=>e==t)}function Y(e){let t;for(t in e)break;return e[t]}function K(e){return!0===e}function G(e){return Boolean(e)}function Q(...e){return e.every(G)}function Z(...e){return e.every(e=>void 0!==e)}function ee(e){try{JSON.parse(e)}catch(e){return!1}return!0}function te(){}function ne(e,t){return i(Object.keys(t).reduce((t,n)=>(t[n]=e[n],t),{}),t)}function re(e,t){const n={objA:{},objB:{}};if(i(e,t))return n;const r=Object.keys(e),c=Object.keys(t);for(let i=0;i<r.length;i++){const c=r[i];o(e,t,c)||(n.objA[c]=e[c],hasOwnProperty.call(t,c)&&(n.objB[c]=t[c]))}for(let r=0;r<c.length;r++){const i=c[r];o(t,e,i)||(n.objB[i]=t[i],hasOwnProperty.call(e,i)&&(n.objA[i]=e[i]))}return n}function oe(e){return""+e}const ie=(e,t)=>Object.fromEntries(Object.entries(e).map(([e,n],r)=>[e,t(n,e,r)])),ce=(e,t)=>{let n;return e.reduce((e,...r)=>(n=t(...r),e[n[0]]=n[1],e),{})},le=(e,t=G)=>Object.keys(e).reduce((n,r)=>(t(e[r],r)&&(n[r]=e[r]),n),{});function ue(e,{stopAtPrototype:t=null,stopAtPrototypeInclude:n=!0}={}){let r=e;const o={};let i=!1,c=!1;for(;!c&&r&&(!i||n);){i&&(c=!0);Object.getOwnPropertyNames(r).map(e=>o[e]=!0),r=Object.getPrototypeOf(r),t&&(i=r===t)}return Object.keys(o)}function se(e,t,n,r){const o={};o[t]={get:n,set:r},Object.defineProperties(e,o)}function ae(e,t,n={}){return Object.defineProperty(e,t,{configurable:!1,enumerable:!1,writable:!0,...n})}function fe(e,...t){return t.forEach(t=>{const n=Object.keys(t).reduce((e,n)=>(e[n]=Object.getOwnPropertyDescriptor(t,n),e),{});Object.getOwnPropertySymbols(t).forEach(e=>{const r=Object.getOwnPropertyDescriptor(t,e);r.enumerable&&(n[e]=r)}),Object.defineProperties(e,n)}),e}function de(e,t){let n=e.length;for(;n;)e[n]=e[n-1],n--;e[0]=t}function pe(e){return e.slice(0)}function he(e,t,n){const r=[];let o=!1;for(const i of e)if(o||i!=t){if(o&&i==n){r.push(i);break}o&&r.push(i)}else r.push(i),o=!0;return r}function ge(e){return!e.some(isNaN)}function me(e){return Array.prototype.slice.call(e)}function ye(e){return e[e.length-1]}function be(e){return e[0]}function Oe(e,t){let n=e.length,r=void 0;for(;n;)if(n--,t(e[n])){r=e[n];break}return r}const we=e=>e.length?e.reduce((e,t)=>t>e?t:e,-1/0):void 0,Se=e=>e.length?e.reduce((e,t)=>t<e?t:e,1/0):void 0,je=(e,t=!1)=>[...e].sort((e,n)=>t?n-e:e-n),Pe={JSUtlCurryPlaceholderPropRPecoyYmCYqZ2lE:!0},Ae="JSUtlProceedCallingFnPropRBmGaAgOCgftF9t",ve={[Ae]:!0},Te=(e,{arity:t,onEffectiveArgAdded:n,onPlaceholder:r,onFnCall:o,onCurriedFnFirstCall:i,onNewCurriedFn:c}={})=>{let l=!0;const u=void 0!==t?t:e.length,s=(t,o,c,...u)=>function s(...f){let d=t,p=o,h=null,g=!1;l&&(i&&i({addedArgs:f,fn:e,curriedFn:s}),1)&&(l=!1);let m=c.length;for(const t of f){!g&&(u=[...u]),g=!0;const o=!!t&&t.JSUtlCurryPlaceholderPropRPecoyYmCYqZ2lE===Pe.JSUtlCurryPlaceholderPropRPecoyYmCYqZ2lE;if(m>0&&!o){let r;if(n&&n({addedArg:t,args:u,fn:e,curriedFn:s}),null===h){const[e,...t]=c;r=e,h=t}else r=h.shift();u[r]=t,m--,d--}else o?(null===h?h=c.concat(p):h.push(p),r&&r({args:u,fn:e,curriedFn:s})):(d--,n&&n({addedArg:t,args:u,fn:e,curriedFn:s})),u[p]=t,p++}return a.call(null,s,d,p,null===h?[...c]:h,...u)},a=(t,n,r,i,...l)=>{if(n<=0){if(o){const n=o({args:l,fn:e,curriedFn:t});return n&&n[Ae]===ve[Ae]?e(...l):n}return e(...l)}{const e=s(n,r,i,...l);return c&&c({curriedFn:t,newCurriedFn:e}),e}},f=s(u,0,[]);return c&&c({curriedFn:f,newCurriedFn:f}),f},Me=(e,{plugPropertyName:t="plugCurried",plugPropertyMustBeTruthy:n=!1,onPOJOArgMerged:r,onFnCall:o,onCurriedFnFirstCall:i,onNewCurriedFn:c}={})=>{let u=!0;const s=a=>function f(d){u&&(i&&i({POJOArg:d,fn:e,curriedFn:f}),1)&&(u=!1);let p=Object.assign({},a,d||{});if(!Object.prototype.hasOwnProperty.call(p,t)||n&&!p[t]){r&&r({POJOArg:d,POJO:p,fn:e,curriedFn:f});const t=s(p);return c&&c({curriedFn:f,newCurriedFn:t}),t}{const{[t]:n,...i}=d,{[t]:c,...u}=p;p=u,l(i)||r&&r({POJOArg:i,POJO:p,fn:e,curriedFn:f});let s=!0,a=void 0;return o&&(a=o({POJO:p,fn:e,curriedFn:f}),s=!!a&&a[Ae]===ve[Ae]),s?e(p):a}},a=s({});return c&&c({curriedFn:a,newCurriedFn:a}),a},Fe=(...e)=>(...t)=>{let n=t,r=void 0;for(let t=(e=e.flat(1)).length-1;t>=0;t--){r=(0,e[t])(...n),n=[r]}return r},Ce=(...e)=>(...t)=>(e=e.flat(1)).length?e.reduce((e,t)=>[t(...e)],t)[0]:void 0,Ie=(...e)=>t=>e.reduce((e,n)=>({...e,[n]:t[n]}),{}),Ee=e=>t=>n=>(...r)=>e(t(...r),n(...r)),Ne=e=>(...t)=>e.map(e=>e(...t)),xe=(e,t)=>(...n)=>e(...t.map(e=>e(...n))),ke=e=>t=>n=>Object.prototype.hasOwnProperty.call(e,t)&&n(e[t],e),De=(...e)=>t=>n=>n(e.filter(e=>Object.prototype.hasOwnProperty.call(t,e))),Re=e=>(...t)=>n=>{const r=e(...t),o=[];for(const e of r){const t=n(e);o.push(t)}return o},He=e=>Array.prototype.concat.apply([],e),Le=(e,t=1)=>t>0?e.reduce((e,n)=>e.concat(f(n)?Le(n,t-1):n),[]):me(e),Ue=(...e)=>e.reduce((e,t)=>He(e.map(e=>t.map(t=>[...e,t]))),[[]]),Je=e=>e,Be=(...e)=>e,We=(...e)=>(...t)=>(e=e.flat(1)).reduceRight((e,t)=>((e,t)=>n=>e(n,t&&((...e)=>t(e))))(t,e),void 0)(t);function qe(e){let t=0;for(let n=0;n<e.length;n++){let r=0;for(let t=0;t<e[n].length;t++)r=251*r^e[n].charCodeAt(t);t^=r}return t}const $e=e=>{let t,n,r=0;if(0===e.length)return r;for(t=0;t<e.length;t++)n=e.charCodeAt(t),r=(r<<5)-r+n,r|=0;return r};function Ve(e,t=0){let n=t,r=0;for(let t=0;t<e.length;t++)r=251*r^e.charCodeAt(t);return n^=r,n}function _e(e){let t=0;for(let n=0;n<e.length;n++){t=t%0xfffffffffffd1+e[n]%0xfffffffffffd1}return t}function Xe(e,t){return new Promise(n=>setTimeout(n,e,t))}function ze(e,t){return Promise.all([e,Xe(t)]).then(([e])=>e).catch(e=>{throw e})}function Ye({promise:e,maxDelayMs:t,onFallback:n=(()=>{}),fallbackMinDelayMs:r}={}){const o=m();return Promise.race([e,Xe(t).then(()=>o)]).then(t=>t===o?(n(),ze(e,r)):t)}const Ke=(e,t,n)=>void 0!==n?e.then(t,n):e.then(t),Ge=(...e)=>t=>e.reduce((e,t)=>{let n;return n=f(t)?Ke(e,t[0],t[1]):Ke(e,t),n},Promise.resolve(t)),Qe=(e,t=1)=>{const n=e.length;let r=new Promise(te);if(t<0?t=1:t>n&&(t=n),n>0){let o=0,i=!1;r=new Promise((r,c)=>{const l=[],u=[];e.map((e,s)=>{let a=!1;e.then(n=>{i||(a=!0,o++,l.push({promise:e,index:s,value:n}),l.length===t&&(i=!0,r({fulfilled:l,rejected:u})))}).catch(t=>{i||a||(o++,u.push({promise:e,index:s,reason:t}),o===n&&(i=!0,c({fulfilled:l,rejected:u})))})})})}return r};function Ze(e,t,n,r){if(!t||"object"!=typeof t||t instanceof Date||t instanceof File){const o=null==t?"":n?encodeURIComponent(t):t;e instanceof FormData?e.append(r,o):e[r]=o}else Object.keys(t).forEach(o=>{Ze(e,t[o],n,r?`${r}[${o}]`:n?encodeURIComponent(o):o)})}function et(e){const t={};Ze(t,e,!0);const n=[];for(const e in t)n.push(e+"="+t[e]);return n.join("&")}function tt(e){const t=new FormData;return Ze(t,e),t}const nt=()=>window.ActiveXObject&&new window.ActiveXObject("Microsoft.XMLHTTP")||new XMLHttpRequest;function rt(e=null){const t=nt();return new Promise(n=>{try{t.onreadystatechange=()=>{4==t.readyState&&n(t.status>=200&&(t.status<300||304===t.status))},t.open("HEAD",(e||c.checkNetworkURI||"//"+window.location.hostname+(80!=window.location.port?":"+window.location.port:""))+"?rand="+Math.floor(65536*(1+Math.random())),!0),t.send()}catch(e){n(!1)}})}function ot(e=3e3){return new Promise(t=>{rt().then(n=>{if(n)t();else{const n=setInterval(()=>{rt().then(e=>{e&&(clearInterval(n),t())})},e)}})})}function it(e,t,n){let r="";if(n){const e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),r="expires="+e.toUTCString()+";"}document.cookie=e+"="+t+";"+r+"path=/"}function ct(e){const t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){let r=n[e];for(;" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}}function lt(e){it(e,"",-365)}function ut(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)}function st(e,t,n=1){const r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),{top:i,bottom:c,height:l}=r,u=()=>"function"==typeof n?n(r,o):n;let s;return i<=o.top?o.top-i+u()<=l:(s=c-o.bottom)<0||(o.bottom>=i&&n?o.bottom-i>=u():s<=l)}function at(e){return e.scrollHeight>e.clientHeight}function ft(e){return e.scrollWidth>e.clientWidth}function dt(e){const t=m();return(e||c.elementUniqueIdPrefix)+t}function pt(e){return window.getComputedStyle(e)}function ht(e){const t=pt(e);let n=e.clientHeight,r=e.clientWidth;return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{width:r,height:n}}let gt;function mt(e){null==gt&&(gt=document.createElement("textarea"),gt.style.border="none",gt.style.height="0",gt.style.overflow="hidden",gt.style.padding="0",gt.style.position="absolute",gt.style.left="0",gt.style.top="0",gt.style.zIndex="-1",document.body.appendChild(gt));const t=window.getComputedStyle(e),n=parseInt(t.paddingLeft),r=parseInt(t.paddingRight);let o=parseInt(t.lineHeight);isNaN(o)&&(o=parseInt(t.fontSize)),gt.style.width=e.clientWidth-n-r+"px",gt.style.font=t.font,gt.style.letterSpacing=t.letterSpacing,gt.style.whiteSpace=t.whiteSpace,gt.style.wordBreak=t.wordBreak,gt.style.wordSpacing=t.wordSpacing,gt.style.wordWrap=t.wordWrap,gt.value=e.value;let i=Math.floor(gt.scrollHeight/o);return 0==i&&(i=1),i}function yt(e){return e.scrollTop+e.offsetHeight>=e.scrollHeight}function bt(){const e=document.createElement("div");e.className="vertical-scrollbar-measure";const t=document.createElement("style");t.innerHTML="div.vertical-scrollbar-measure { width: 100px; height: 100px; overflow: scroll; position: absolute; top: -9999px; }",document.body.appendChild(t),document.body.appendChild(e);const n=e.offsetWidth-e.clientWidth;document.body.removeChild(e);return t.parentNode.removeChild(t),n}function Ot(e){return e.offsetWidth<e.scrollWidth}function wt(e,t,n){navigator.clipboard?navigator.clipboard.writeText(e).then((function(){t&&t()}),(function(e){n&&n(e)})):function(e,t,n){const r=document.documentElement.scrollTop||document.body.scrollTop,o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.focus(),o.select();try{document.execCommand("copy")?t&&t():n&&n()}catch(e){n&&n(e)}document.body.removeChild(o)&&document.documentElement.scrollTop&&(document.documentElement.scrollTop=r)||(document.body.scrollTop=r)}(e,t,n)}const St=(e,t)=>e&&window.requestAnimationFrame(()=>(t(),St(--e,t))),jt=(e,t)=>{let n=e||1;const r=()=>{n--,n?window.requestAnimationFrame(r):t()};return window.requestAnimationFrame(r)};function Pt(e){return(e||window.location.hash).replace(/^#/,"")}function At(e){return decodeURIComponent(Pt(e))}function vt(e,t){return e+"#"+encodeURIComponent(JSON.stringify(t))}function Tt(e=null){const t=window.location.hash;if(!p(t)){const e=At(t);if(ee(e))return JSON.parse(e)}return e}function Mt(e,t){let n,r,o,i,c,l,u,s,f,d,p,h,g;e||(e=window.location.search.substr(1));const m=String(e).replace(/^&/,"").replace(/&$/,"").split("&"),y=m.length,b=function(e){return decodeURIComponent(e.replace(/\+/g,"%20"))};for(t||(t={}),n=0;n<y;n++){for(s=m[n].split("="),f=b(s[0]),d=s.length<2?"":b(s[1]);" "===f.charAt(0);)f=f.slice(1);if(f.indexOf("\0")>-1&&(f=f.slice(0,f.indexOf("\0"))),f&&"["!==f.charAt(0)){for(h=[],p=0,r=0;r<f.length;r++)if("["!==f.charAt(r)||p){if("]"===f.charAt(r)&&p&&(h.length||h.push(f.slice(0,p-1)),h.push(f.substr(p,r-p)),p=0,"["!==f.charAt(r+1)))break}else p=r+1;for(h.length||(h=[f]),r=0;r<h[0].length&&(u=h[0].charAt(r)," "!==u&&"."!==u&&"["!==u||(h[0]=h[0].substr(0,r)+"_"+h[0].substr(r+1)),"["!==u);r++);for(l=t,r=0,g=h.length;r<g;r++)if(f=h[r].replace(/^['"]/,"").replace(/['"]$/,""),c=l,""!==f&&" "!==f||0===r)void 0===l[f]&&(l[f]={}),l=l[f];else{for(i in o=-1,l)Object.prototype.hasOwnProperty.call(l,i)&&+i>o&&i.match(/^\d+$/g)&&(o=+i);f=o+1}c[f]=d}}const O=function(e){const t=Object.keys(e),n={};for(let e=0;e<t.length;e++)n[e]=!0;const r=[];for(let o=0;o<t.length;o++){const i=t[o]+"";if(!i.match(/^[0-9]+$/))return e;const c=Number(i);if(!n[c])return e;r[c]=e[i],delete n[c]}return 0===Object.keys(n).length?r:e};return function e(t){for(const n in t)a(t[n])&&(t[n]=O(t[n]),e(t[n]))}(t),t}function Ft(){const e={};return Mt(location.search.substring(1),e),e}const Ct=function(e){let t,n;void 0!==window.pageXOffset?(t=window.pageXOffset,n=window.pageYOffset):void 0!==window.scrollX?(t=window.scrollX,n=window.scrollY):document.documentElement&&void 0!==document.documentElement.scrollLeft?(t=document.documentElement.scrollLeft,n=document.documentElement.scrollTop):(t=document.body.scrollLeft,n=document.body.scrollTop),e.focus(),void 0!==t&&window.scrollTo(t,n)};function It(e){let t;"string"==typeof e?(e=e.replace(/^\./,""),t=document.getElementsByClassName(e)):t=e;const n=[];let r={},o={};for(let e=0;e<t.length;e++){const i=t[e];o=i.getBoundingClientRect(),r&&r.top<o.top&&n.push(i),r=0===e?o:r}return n}function Et(e){if(!e.children)return 0;let t=-1;for(let n=0;n<e.children.length;n++){const r=Et(e.children[n]);r>t&&(t=r)}return t+1}const Nt=/^(visible|hidden)/,xt=e=>e instanceof HTMLElement&&"function"==typeof window.getComputedStyle?e.scrollHeight>=e.clientHeight&&!Nt.test(window.getComputedStyle(e).overflowY||"visible")?e:xt(e.parentElement)||document.scrollingElement||document.body:null,kt=(e=window)=>e.scroll({top:0,behavior:"smooth"});function Dt(e){var t=document.createElement("a");t.href=e,t.download=e.substr(e.lastIndexOf("/")+1),t.click()}function Rt(e){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length;for(let o=0;o<e;o++)t+=n.charAt(Math.floor(Math.random()*r));return t}function Ht(e=0,t=Number.MAX_SAFE_INTEGER){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e}function Lt(e=0,t=562949953421311){const n=Ht(e,t);return n>=t?n:n+Math.random()}function Ut(e){let t=Math.random();for(;e==t;)t=Math.random();return t}let Jt=1;function Bt(){let e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}function Wt(){return Bt()+"-"+Jt++}function qt(e){return(e=>{let t,n,r=e.length;for(;0!==r;)n=Math.floor(Math.random()*r),r--,t=e[r],e[r]=e[n],e[n]=t;return e})(Object.keys(e)).map(t=>e[t])}const $t=()=>Math.random().toString(36).substr(2);function Vt(e,t=0){const n=10**t;return Math.round(e*n)/n}function _t(...e){return e.reduce((e,t)=>e+t)}function Xt(e,t){return Math.floor(e/t)}function zt(e){return e%2==0}function Yt(e){return!zt(e)}const Kt=([e,t])=>([n,r])=>o=>(r-n)/(t-e)*(o-e)+n;function Gt(){const e=new Date;return Math.round(e.getTime()/1e3)}function Qt(e){const t=new Date(e||(new Date).getTime());return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().slice(11,-1)}function Zt(e){return.001*e}const en=(e,{includeHours:t=!1}={})=>{if(!e||!X(e))return t?"00:00:00":"00:00";let n="",r=Xt(e,60);t&&(n=(Xt(e,3600)+"").padStart(2,"0")+":",r%=60),r+="";const o=e%60+"";return`${n}${r.padStart(2,"0")}:${o.padStart(2,"0")}`};function tn(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function nn(e,t,n={}){void 0===t&&(t=" ");const r=tn(t),o=void 0===n.shouldTrimLeft||n.shouldTrimLeft,i=void 0===n.shouldTrimRight||n.shouldTrimRight,c=[];o&&(c[c.length]="^["+r+"]+"),i&&(c[c.length]="["+r+"]+$");const l=new RegExp(c.join("|"),"gm");return e.replace(l,"")}function rn(e,t,n){void 0===t&&(t=["\\s"]),n=n||"";const r=new RegExp("(^("+t.join("|")+")+)|(("+t.join("|")+")+$)","g"+n);return e.replace(r,"")}function on(e,t){return nn(e,t)}function cn(e,t){return nn(e,t,{shouldTrimLeft:!0,shouldTrimRight:!1})}function ln(e,t){return nn(e,t,{shouldTrimLeft:!1,shouldTrimRight:!0})}function un(e,t=" ",n=" "){const r=[];for(const t of e)f(t)?r[r.length]=on(t.join(n),n):r[r.length]=t;return on(r.join(t),t)}function sn({arrayOfObjects:e,concatObjectProps:t,valueProp:n="id",outerSeparator:r=" ",innerSeparator:o=" "}){const i=[];for(const c of e){const e=[];for(const n of t)f(n)?e[e.length]=n.map(e=>c[e]):e[e.length]=c[n];i[i.length]={value:c[n],label:un(e,r,o)}}return i}function an(e,t){return 0===e.indexOf(t,0)}function fn(e){return e.charAt(0).toUpperCase()+e.slice(1)}function dn(e){return e.split("").reverse().join("")}function pn(e,t=","){return e.toString().split("").reverse().map((e,n,r)=>(n+1)%3==0&&n!==r.length-1?`${t}${e}`:e).reverse().join("")}function hn(e,t){const n=256,r=256;function o(e){const t=Math.sin(e*Math.PI/180),n=Math.log((1+t)/(1-t))/2;return Math.max(Math.min(n,Math.PI),-Math.PI)/2}function i(e,t,n){return Math.floor(Math.log(e/t/n)/Math.LN2)}const c=e.getNorthEast(),l=e.getSouthWest(),u=(o(c.lat())-o(l.lat()))/Math.PI,s=c.lng()-l.lng(),a=(s<0?s+360:s)/360,f=i(t.height,n,u),d=i(t.width,r,a);return Math.min(f,d,21)}const gn=function(){let e=0;return function(t,n){clearTimeout(e),e=setTimeout((function(){t()}),n)}}();function mn(e,t){let n=void 0;return function(...r){!$(n)&&clearTimeout(n),n=setTimeout((function(){e(...r)}),t)}}function yn(e,t){let n=Date.now();return function(...r){n+t-Date.now()<0&&(e(...r),n=Date.now())}}function bn(e){return e.split(/[\\/]/).pop()}function On(e,t){let n="",r="",o="",i=0;const c={};let l=0,u=0,s=!1,a=!1,f=!1;if(!e)return!1;t||(t="PATHINFO_ALL");const d={PATHINFO_DIRNAME:1,PATHINFO_BASENAME:2,PATHINFO_EXTENSION:4,PATHINFO_FILENAME:8,PATHINFO_ALL:0};for(o in d)Object.prototype.hasOwnProperty.call(d,o)&&(d.PATHINFO_ALL=d.PATHINFO_ALL|d[o]);if("number"!=typeof t){for(t=[].concat(t),u=0;u<t.length;u++)d[t[u]]&&(i|=d[t[u]]);t=i}const p=function(e){const t=e+"",n=t.lastIndexOf(".")+1;return!!n&&(n!==t.length?t.substr(n):"")};if(t&d.PATHINFO_DIRNAME){const t=e.replace(/\\/g,"/").replace(/\/[^/]*\/?$/,"");c.dirname=t===e?".":t}for(n in t&d.PATHINFO_BASENAME&&(!1===s&&(s=bn(e)),c.basename=s),t&d.PATHINFO_EXTENSION&&(!1===s&&(s=bn(e)),!1===a&&(a=p(s)),!1!==a&&(c.extension=a)),t&d.PATHINFO_FILENAME&&(!1===s&&(s=bn(e)),!1===a&&(a=p(s)),!1===f&&(f=s.slice(0,s.length-(a?a.length+1:!1===a?0:1))),c.filename=f),l=0,c)Object.prototype.hasOwnProperty.call(c,n)&&(l++,r=n);return 1===l?c[r]:c}function wn(e){const t=On(e,"PATHINFO_EXTENSION");return"string"!=typeof t?"":t}function Sn(e){return e.replace(/\\/g,"/").replace(/\/[^/]*\/?$/,"")}const jn=e=>parseInt(e,2),Pn=e=>e.toString(2),An=(e,t)=>e&~(1<<t-1),vn=(e,t)=>e|1<<t-1,Tn=(e,t)=>e^1<<t-1,Mn=(e,t)=>e&1<<t-1;function Fn(e){const t=parseInt(e,16);return.299*((16711680&t)>>16)+.587*((65280&t)>>8)+.114*(255&t)}function Cn(e){const t=(16777215&e).toString(16).toUpperCase();return"00000".substring(0,6-t.length)+t}const In=e=>Cn($e(e)),En=function*(e,t,n=!0){const r=e.length;yield*function*e(t,r,o,i,c=0){if(o.length===i)yield n?me(o):o;else for(let n=c;n<r&&i-o.length<=r-n;n++)o.push(t[n]),yield*e(t,r,o,i,n+1),o.pop()}(e,r,[],t)},Nn=e=>{const t=e.length;if(0===t)return[];const n=me(e);if(1===t)return[n];const r=[];if(e.map(e=>r.push([e])),t>2)for(let n=2;n<t;n++)for(const t of En(e,n))r.push(t);return r.push(n),r},xn=function*(e,t=!0){const n=e.length;if(0===n)return;const r=t?me(e):e;if(1!==n){if(yield*F(e,e=>[e]),n>2)for(let r=2;r<n;r++)for(const n of En(e,r,t))yield n;yield r}else yield r},kn=function*(e){const t=e.length;for(let n=0;n<=t;n++)for(const t of En(e,n))yield t},Dn=function*(e){const t=new Map;yield[];for(const n of kn(e))j(t,n)||(S(t,n,!0),yield n)},Rn=function*(e,t=!0){const n=[],r={},o=function*(){if(n.length===e.length)yield t?me(n):n;else for(let t=0;t<e.length;t++)r[t]||(n.push(e[t]),r[t]=!0,yield*o(),delete r[t],n.pop())};yield*o()},Hn=(e,t)=>e<t?-1:e>t?1:0,Ln=(e,{comparator:t=Hn,returnAsKeyVal:n=!1}={})=>{const r={key:void 0,value:void 0};for(const n in e){const o=e[n];(void 0===r.key||t(o,r.value)<0)&&(r.key=n,r.value=o)}return n?r:r.value};function Un(...e){return _t(...e)/e.length}function Jn(...e){const t=je(e),n=Xt(t.length,2);return Yt(t.length)?t[n]:Un(t[n-1],t[n])}const Bn=e=>(...t)=>{let n=1/0;return t.map(t=>{const r=Math.abs(t-e);r<n&&(n=r)}),n},Wn=e=>(...t)=>Bn(e)(...t.filter(t=>t!==e)),qn=e=>Number(e<-90?-90:e>90?90:e),$n=e=>{for(e=Number(e);e>180;)e-=360;for(;e<-180;)e+=360;return e},Vn=e=>(e=qn(e))>=0?90-e:90+Math.abs(e),_n=e=>(e=$n(e))+180;function*Xn(e,t,n=1){if(e<t){if(n<=0)throw new RangeError("Step must be a positive int greater than 0.");for(let r=e;r<=t;r+=n)yield r}else{if(n>=0)throw new RangeError("Step must be a negative int greater than 0.");for(let r=e;r>=t;r+=n)yield r}}function zn(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}function Yn(e){return zn(new Date(e))}function Kn(e){let t=e.replace(/[^0-9]/g,"");return t=t.replace(/^[0]+([1-9])/,"$1"),t=t.replace(/^[0]+$/,"0"),e&&t.length&&"-"===e[0]&&(t="-"+t),t}function Gn(e){let t=e.replace(/[^0-9.]/g,"");const n=/(\..*)\./g;do{t=t.replace(n,"$1")}while(t!=t.replace(n,"$1"));return"."===t&&(t="0."),t=t.replace(/^[0]+([1-9])/,"$1"),t=t.replace(/^[0]+($|\.)/,"0$1"),e&&t.length&&"-"===e[0]&&(t="-"+t),t}return t})()}));
{
"name": "js-utl",
"version": "4.57.0",
"version": "4.58.0",
"description": "A collection of JS utility functions to be used across several applications or libraries.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -162,2 +162,3 @@ /*

smoothScrollToTop,
downloadFile,
} from "./modules/web";

@@ -164,0 +165,0 @@ export {

@@ -888,1 +888,16 @@ /*

});
/**
* Download a file.
*
* @see https://stackoverflow.com/questions/1066452/easiest-way-to-open-a-download-window-without-navigating-away-from-the-page#answer-43523297
*
* @param {string} fileURI The URI of the file to download.
* @return {undefined}
*/
export function downloadFile(fileURI) {
var link = document.createElement("a");
link.href = fileURI;
link.download = fileURI.substr(fileURI.lastIndexOf("/") + 1);
link.click();
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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