Comparing version 4.8.0 to 4.9.0
@@ -38,6 +38,6 @@ /* | ||
* | ||
* @param {number} lat Latitude. | ||
* @param {number|string} lat Latitude. Either a number or a string which can be casted to a number. | ||
* @return {number} Latitude, clamped. | ||
*/ | ||
export const clampLat = lat => lat < -90 ? -90 : lat > 90 ? 90 : lat; | ||
export const clampLat = lat => Number(lat < -90 ? -90 : lat > 90 ? 90 : lat); | ||
/** | ||
@@ -52,3 +52,3 @@ * Wraps a longitude value so that it is always between -180 and 180. | ||
* | ||
* @param {number} lng Longitude. | ||
* @param {number|string} lng Longitude. Either a number or a string which can be casted to a number. | ||
* @return {number} lng Longitude, wrapped. | ||
@@ -58,2 +58,4 @@ */ | ||
export const wrapLng = lng => { | ||
lng = Number(lng); | ||
while (lng > 180) { | ||
@@ -76,3 +78,3 @@ lng -= 360; | ||
* | ||
* @param {number} lat Latitude. | ||
* @param {number|string} lat Latitude. Either a number or a string which can be casted to a number. | ||
* @return {number} Latitude, normalized. | ||
@@ -99,3 +101,3 @@ */ | ||
* | ||
* @param {number} lng Longitude. | ||
* @param {number} lng Longitude. Either a number or a string which can be casted to a number. | ||
* @return {number} Longitude, normalized. | ||
@@ -102,0 +104,0 @@ */ |
@@ -1,1 +0,1 @@ | ||
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("JSUtl",[],t):"object"==typeof exports?exports.JSUtl=t():n.JSUtl=t()}("undefined"!=typeof self?self:this,(function(){return function(n){var t={};function e(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var o in n)e.d(r,o,function(t){return n[t]}.bind(null,o));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=3)}([function(n,t,e){"use strict";(function(n){e.d(t,"e",(function(){return o})),e.d(t,"C",(function(){return u})),e.d(t,"B",(function(){return i})),e.d(t,"u",(function(){return f})),e.d(t,"v",(function(){return l})),e.d(t,"w",(function(){return d})),e.d(t,"x",(function(){return s})),e.d(t,"o",(function(){return a})),e.d(t,"bb",(function(){return p})),e.d(t,"O",(function(){return h})),e.d(t,"p",(function(){return g})),e.d(t,"r",(function(){return m})),e.d(t,"W",(function(){return y})),e.d(t,"M",(function(){return b})),e.d(t,"L",(function(){return O})),e.d(t,"K",(function(){return w})),e.d(t,"R",(function(){return S})),e.d(t,"Q",(function(){return A})),e.d(t,"P",(function(){return M})),e.d(t,"J",(function(){return v})),e.d(t,"g",(function(){return I})),e.d(t,"i",(function(){return P})),e.d(t,"N",(function(){return T})),e.d(t,"c",(function(){return F})),e.d(t,"E",(function(){return C})),e.d(t,"D",(function(){return E})),e.d(t,"q",(function(){return N})),e.d(t,"ab",(function(){return x})),e.d(t,"d",(function(){return k})),e.d(t,"j",(function(){return L})),e.d(t,"h",(function(){return R})),e.d(t,"k",(function(){return H})),e.d(t,"l",(function(){return D})),e.d(t,"s",(function(){return U})),e.d(t,"H",(function(){return J})),e.d(t,"y",(function(){return W})),e.d(t,"f",(function(){return B})),e.d(t,"z",(function(){return q})),e.d(t,"m",(function(){return V})),e.d(t,"n",(function(){return _})),e.d(t,"F",(function(){return X})),e.d(t,"G",(function(){return z})),e.d(t,"b",(function(){return $})),e.d(t,"a",(function(){return K})),e.d(t,"A",(function(){return Q})),e.d(t,"S",(function(){return G})),e.d(t,"U",(function(){return Y})),e.d(t,"Y",(function(){return Z})),e.d(t,"Z",(function(){return nn})),e.d(t,"I",(function(){return tn})),e.d(t,"V",(function(){return en}));var r=e(1);e.d(t,"X",(function(){return r.c})),e.d(t,"T",(function(){return r.b})),e.d(t,"t",(function(){return r.a}));const o={uniqueIdPrefix:"",elementUniqueIdPrefix:"",checkNetworkURI:null};function u(n){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t))return!1;return!0}const c=Object.prototype.toString.call({}),i=function(n){return c===Object.prototype.toString.call(n)};function f(n){return Object.prototype.toString.call(n)===Object.prototype.toString.call([])}function l(n){return"function"==typeof n}function d(n){return!n||0===n.length}function s(n){return!n||"0"===n||0===n.length}function a(){return void 0!==n?n:window}function p(n){const t=a();t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH=t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH||0,t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH++;const e=t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH;return(n||o.uniqueIdPrefix)+e}function h(n,t){let e=n;for(let n=0;n<t.length;n++){e=e[t[n]]}return e}const g=h;function m(n,t){if(!t.length)return!1;let e=n;for(let n=0;n<t.length;n++){const r=t[n];if(!e[r])return!1;e=e[r]}return!0}function y(n,t,e){if(!t.length)return;let r=n,o=null;for(let n=0;n<t.length;n++){const e=t[n];"object"!=typeof r[e]&&(r[e]={}),o=r,r=r[e]}o&&(o[t[t.length-1]]=e)}const b=(n,t,e)=>{let r=0,o=n;for(;r<t.length-1;){const n=t[r],e=o.get(n);if(e instanceof Map||e instanceof WeakMap)o=e;else{const t=new Map;o.set(n,t),o=t}r++}o.set(t[r],e)},O=(n,t)=>{let e=n,r=0;const o=t.length;for(;(e instanceof Map||e instanceof WeakMap)&&e.has(t[r])&&r<o;)e=e.get(t[r]),r++;return r==o},w=(n,t)=>{let e=n,r=0;const o=t.length;for(;(e instanceof Map||e instanceof WeakMap)&&e.has(t[r])&&r<o;)e=e.get(t[r]),r++;return r==o?e:void 0},j=Symbol("treeMapSubtree"),S=(n,t,e)=>{let r=0,o=n;const u=n instanceof WeakMap?WeakMap:Map;for(;r<t.length-1;){const n=t[r],e=o.get(n);if(e)o=e[j]||(e[j]=new u);else{const t=new u,e={[j]:t,value:void 0};o.set(n,e),o=t}r++}const c=t[r];o.has(c)?o.get(c).value=e:o.set(c,{value:e})},A=(n,t)=>{let e=n,r=0;const o=t.length;for(;(e instanceof Map||e instanceof WeakMap)&&e.has(t[r])&&r<o;)e=e.get(t[r])[j],r++;return r==o},M=(n,t)=>{let e=n,r=0;const o=t.length-1;for(;(e instanceof Map||e instanceof WeakMap)&&e.has(t[r])&&r<o;)e=e.get(t[r])[j],r++;if(r===o&&e){const n=t[r];if(e.has(n)){return e.get(n).value}}};function*v(n,t,e){n.map();const r=t.bind(e);for(let t=0;t<n.length;t++)yield r(n[t],t,n)}function I(n,t){if(n.length!=t.length)return!1;const e=Object.prototype.toString,r=e.call({}),o=e.call([]);for(let u=0;u<n.length;u++){if(!(u in t))return!1;if(r===e.call(n[u])){if(r!==e.call(t[u])||!P(n[u],t[u]))return!1}else if(o===e.call(n[u])){if(o!==e.call(t[u])||!I(n[u],t[u]))return!1}else if(n[u]!==t[u])return!1}return!0}function P(n,t){const e=Object.prototype.toString,r=e.call({}),o=e.call([]);for(const u in n){if(!(u in t))return!1;if(r===e.call(n[u])){if(r!==e.call(t[u])||!P(n[u],t[u]))return!1}else if(o===e.call(n[u])){if(o!==e.call(t[u])||!I(n[u],t[u]))return!1}else if(n[u]!==t[u])return!1}return!0}function T(n,t,e){let r=n=n||(e?[]:{});for(let n=0;n<t.length;n++){const e=t[n],o=Object.keys(e)[0],u=e[o];r[o]=r[o]||u,r=r[o]}return r}function F(n){return JSON.parse(JSON.stringify(n))}function C(n){return new Object(n)===n}function E(n){return new Object(n)!==n}function N(n){const t=[];let e=!1;return function n(r){if(e)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)&&n(r[t]);t.splice(o,1)}else e=!0}(n),e}function x(n){return Object.prototype.toString.call(n)}function k(n){const t=new n.constructor;for(const e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const r=n[e];if(E(r))t[e]=r;else{if(!C(r))throw new Error("Oops! Unknown type for property '"+e+"' ("+x(r)+") in object ("+x(n)+")");if(N(r))throw new Error("Circular reference detected inside of property '"+e+"' ("+x(r)+") in object ("+x(n)+")");{const n=k(r);t[e]=n}}}return t}function L(n,t){const e=Object.prototype.toString,r=e.call({});for(const o in t)t[o]&&r===e.call(t[o])?(n[o]=n[o]||{},L(n[o],t[o])):n[o]=t[o]}function R(...n){const t=n[0];let e;const r=Object.prototype.toString,o=r.call({});for(let u=1;n[u];u++){e=n[u];for(const n in e)e[n]&&o===r.call(e[n])?(t[n]=t[n]||{},L(t[n],k(e[n]))):t[n]=e[n]}}function H(n,...t){for(const e of t)L(n,e);return n}function D(n,...t){const e=t[t.length-1];if(t.pop(),f(e)){const r=Object.prototype.toString,o=r.call({}),u={}.constructor.name,c=t,i={},l=new Map,d=new Map,s=[],a=(n,t,e,r)=>{const o=Reflect.ownKeys(t);for(const u of o)e.push({destinationObject:n,sourceObject:t,property:u,path:[...r,u]})},p=(n,t)=>n instanceof RegExp&&"string"==typeof t?t.match(n):n===t,h=(n,t)=>{for(const e of n)if(p(e,t))return!0;return!1},g=(n,t)=>f(n)?h(n,t):p(n,t),m=n=>{if(!l.has(n)){const t=[];for(const[r,o]of e)g(r,n)&&t.push(o);l.set(n,t)}return l.get(n)};for(const t of c){const e=[];for(a(n,t,e,[]);e.length;){const{destinationObject:n,sourceObject:t,property:c,path:f}=e.pop();t[c]&&o===r.call(t[c])&&t[c].constructor&&u===t[c].constructor.name?(n[c]=o===r.call(n[c])?n[c]:{},a(n[c],t[c],e,f)):n[c]=t[c];const l=m(c);l&&l.length&&(A(d,f)||s.push([...f]),S(d,f,l.map(t=>e=>{const r=e===i?n[c]:e;return t(r,c,n)})))}}for(let t=s.length-1;t>=0;t--){const e=s[t],r=M(d,e)||[];let o=i;for(const n of r)o=n(o);o!==i&&y(n,e,o)}return n}return t.push(e),H(n,...t)}function U(n,t){for(const e of n)if(e==t)return!0;return!1}function J(n){return void 0===n}function W(n){return Number.isInteger(n)}function B(n){return Boolean(n.match(/^[0-9]+$/))}function q(n){return Number.isInteger(n)||B(n)}function V(n,t){return n.findIndex(n=>n==t)}function _(n){let t;for(t in n)break;return n[t]}function X(n){return!0===n}function z(n){return Boolean(n)}function $(...n){return n.every(z)}function K(...n){return n.every(n=>void 0!==n)}function Q(n){try{JSON.parse(n)}catch(n){return!1}return!0}function G(){}function Y(n,t){return Object(r.c)(Object.keys(t).reduce((t,e)=>(t[e]=n[e],t),{}),t)}function Z(n,t){const e={objA:{},objB:{}};if(Object(r.c)(n,t))return e;const o=Object.keys(n),u=Object.keys(t);for(let u=0;u<o.length;u++){const c=o[u];Object(r.b)(n,t,c)||(e.objA[c]=n[c],hasOwnProperty.call(t,c)&&(e.objB[c]=t[c]))}for(let o=0;o<u.length;o++){const c=u[o];Object(r.b)(t,n,c)||(e.objB[c]=t[c],hasOwnProperty.call(n,c)&&(e.objA[c]=n[c]))}return e}function nn(n){return""+n}const tn=(n,t)=>Object.fromEntries(Object.entries(n).map(([n,e],r)=>[n,t(e,n,r)])),en=(n,t=z)=>Object.keys(n).reduce((e,r)=>(t(n[r],r)&&(e[r]=n[r]),e),{})}).call(this,e(2))},function(n,t,e){"use strict";e.d(t,"a",(function(){return o})),e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return c}));const r=Object.prototype.hasOwnProperty;function o(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function u(n,t,e){return r.call(t,e)&&o(n[e],t[e])}function c(n,t){if(o(n,t))return!0;if("object"!=typeof n||null===n||"object"!=typeof t||null===t)return!1;const e=Object.keys(n),r=Object.keys(t);if(e.length!==r.length)return!1;for(let r=0;r<e.length;r++){if(!u(n,t,e[r]))return!1}return!0}},function(n,t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(n){"object"==typeof window&&(e=window)}n.exports=e},function(n,t,e){"use strict";e.r(t),e.d(t,"config",(function(){return r.e})),e.d(t,"isObjectEmpty",(function(){return r.C})),e.d(t,"isObject",(function(){return r.B})),e.d(t,"isArray",(function(){return r.u})),e.d(t,"isEmpty",(function(){return r.w})),e.d(t,"isEmptyOr0",(function(){return r.x})),e.d(t,"getGlobalObject",(function(){return r.o})),e.d(t,"uniqueId",(function(){return r.bb})),e.d(t,"deepArrayCompare",(function(){return r.g})),e.d(t,"deepObjectCompare",(function(){return r.i})),e.d(t,"nestedObjectConstructValue",(function(){return r.N})),e.d(t,"cloneDeeplyJSON",(function(){return r.c})),e.d(t,"isReferenceType",(function(){return r.E})),e.d(t,"isPrimitiveType",(function(){return r.D})),e.d(t,"hasCyclicReference",(function(){return r.q})),e.d(t,"typeToStr",(function(){return r.ab})),e.d(t,"cloneObjDeeply",(function(){return r.d})),e.d(t,"deepObjectExtend",(function(){return r.j})),e.d(t,"deepObjectCloningExtend",(function(){return r.h})),e.d(t,"extend",(function(){return r.k})),e.d(t,"extendDecorate",(function(){return r.l})),e.d(t,"includesTypeCoercion",(function(){return r.s})),e.d(t,"nestedPropertyValue",(function(){return r.O})),e.d(t,"getNestedPropertyValue",(function(){return r.p})),e.d(t,"hasNestedPropertyValue",(function(){return r.r})),e.d(t,"setNestedPropertyValue",(function(){return r.W})),e.d(t,"isUndefined",(function(){return r.H})),e.d(t,"isInt",(function(){return r.y})),e.d(t,"ctypeDigit",(function(){return r.f})),e.d(t,"isIntegerOrIntegerStr",(function(){return r.z})),e.d(t,"isCallable",(function(){return r.v})),e.d(t,"findIndex",(function(){return r.m})),e.d(t,"firstPropValue",(function(){return r.n})),e.d(t,"isStrictlyTrue",(function(){return r.F})),e.d(t,"isTruthy",(function(){return r.G})),e.d(t,"allTruthy",(function(){return r.b})),e.d(t,"allNotUndefined",(function(){return r.a})),e.d(t,"isJSONString",(function(){return r.A})),e.d(t,"noOpFn",(function(){return r.S})),e.d(t,"is",(function(){return r.t})),e.d(t,"shallowEqual",(function(){return r.X})),e.d(t,"objectPropEqual",(function(){return r.T})),e.d(t,"partialShallowEqual",(function(){return r.U})),e.d(t,"shallowObjectDiff",(function(){return r.Y})),e.d(t,"nestedMapSet",(function(){return r.M})),e.d(t,"nestedMapHas",(function(){return r.L})),e.d(t,"nestedMapGet",(function(){return r.K})),e.d(t,"nestedTreeMapSet",(function(){return r.R})),e.d(t,"nestedTreeMapHas",(function(){return r.Q})),e.d(t,"nestedTreeMapGet",(function(){return r.P})),e.d(t,"mapYield",(function(){return r.J})),e.d(t,"str",(function(){return r.Z})),e.d(t,"mapObject",(function(){return r.I})),e.d(t,"propSelection",(function(){return r.V})),e.d(t,"_",(function(){return o})),e.d(t,"proceedCallingFn",(function(){return u})),e.d(t,"curry",(function(){return c})),e.d(t,"POJOCurry",(function(){return i})),e.d(t,"compose",(function(){return f})),e.d(t,"pipe",(function(){return l})),e.d(t,"pick",(function(){return d})),e.d(t,"liftBinaryFn",(function(){return s})),e.d(t,"juxt",(function(){return a})),e.d(t,"converge",(function(){return p})),e.d(t,"execIfPOJOHas",(function(){return h})),e.d(t,"execWithExistentProps",(function(){return g})),e.d(t,"forGen",(function(){return m})),e.d(t,"flatten",(function(){return y})),e.d(t,"cartesianProduct",(function(){return b})),e.d(t,"stringHashArray",(function(){return O})),e.d(t,"hashString",(function(){return w})),e.d(t,"onePassStringHash",(function(){return j})),e.d(t,"timeout",(function(){return S})),e.d(t,"minDelayPromise",(function(){return A})),e.d(t,"maxDelayFallbackPromise",(function(){return M})),e.d(t,"applyAsync",(function(){return v})),e.d(t,"composeAsync",(function(){return I})),e.d(t,"buildQueryString",(function(){return T})),e.d(t,"formData",(function(){return F})),e.d(t,"xhr",(function(){return C})),e.d(t,"checkNetwork",(function(){return E})),e.d(t,"waitNetwork",(function(){return N})),e.d(t,"setCookie",(function(){return x})),e.d(t,"getCookie",(function(){return k})),e.d(t,"unsetCookie",(function(){return L})),e.d(t,"isInViewport",(function(){return R})),e.d(t,"isScrolledIntoView",(function(){return H})),e.d(t,"hasVerticalScrollbar",(function(){return D})),e.d(t,"hasHorizontalScrollbar",(function(){return U})),e.d(t,"elementUniqueId",(function(){return J})),e.d(t,"getElementComputedStyle",(function(){return W})),e.d(t,"elementInnerDimensions",(function(){return B})),e.d(t,"countTextareaLines",(function(){return V})),e.d(t,"isScrollOnBottom",(function(){return _})),e.d(t,"getVerticalScrollBarWidth",(function(){return X})),e.d(t,"isEllipsisActive",(function(){return z})),e.d(t,"copyTextToClipboard",(function(){return $})),e.d(t,"rAFLooper",(function(){return K})),e.d(t,"nestedRAF",(function(){return Q})),e.d(t,"getRawURIFragment",(function(){return G})),e.d(t,"getDecodedURIFragment",(function(){return Y})),e.d(t,"appendEncodedJSONFragmentToURI",(function(){return Z})),e.d(t,"getDecodedJSONFromFragmentURI",(function(){return nn})),e.d(t,"getQueryStringArgsMultiDim",(function(){return tn})),e.d(t,"cursorFocus",(function(){return en})),e.d(t,"randomInt",(function(){return on})),e.d(t,"randomStr",(function(){return rn})),e.d(t,"randomDifferentFromValue",(function(){return un})),e.d(t,"randomArrayShuffle",(function(){return cn})),e.d(t,"time",(function(){return fn})),e.d(t,"msToTime",(function(){return ln})),e.d(t,"millisecToSec",(function(){return dn})),e.d(t,"escapeRegExp",(function(){return sn})),e.d(t,"trimCharacterMask",(function(){return an})),e.d(t,"trimCharacterRegex",(function(){return pn})),e.d(t,"trim",(function(){return hn})),e.d(t,"trimLeft",(function(){return gn})),e.d(t,"trimRight",(function(){return mn})),e.d(t,"concatWithInnerOuterSeparators",(function(){return yn})),e.d(t,"optionsValueLabel",(function(){return bn})),e.d(t,"startsWith",(function(){return On})),e.d(t,"ucaseFirst",(function(){return wn})),e.d(t,"googleMapBestZoomLevelFromBounds",(function(){return jn})),e.d(t,"delay",(function(){return Sn})),e.d(t,"debounce",(function(){return An})),e.d(t,"throttle",(function(){return Mn})),e.d(t,"basename",(function(){return vn})),e.d(t,"pathinfo",(function(){return In})),e.d(t,"filenameExtension",(function(){return Pn})),e.d(t,"dirname",(function(){return Tn})),e.d(t,"b2d",(function(){return Fn})),e.d(t,"d2b",(function(){return Cn})),e.d(t,"turnNthBitOff",(function(){return En})),e.d(t,"turnNthBitOn",(function(){return Nn})),e.d(t,"toggleNthBit",(function(){return xn})),e.d(t,"checkNthBitOn",(function(){return kn})),e.d(t,"getLuminance",(function(){return Ln})),e.d(t,"yieldCombinationsWithoutRepetition",(function(){return zn})),e.d(t,"uniqueProgressiveIncrementalCombinations",(function(){return $n})),e.d(t,"yieldUniqueProgressiveIncrementalCombinations",(function(){return Kn})),e.d(t,"yieldAllSubsequences",(function(){return Qn})),e.d(t,"yieldUniqueSubsequences",(function(){return Gn})),e.d(t,"round",(function(){return Yn})),e.d(t,"sum",(function(){return Zn})),e.d(t,"intDiv",(function(){return nt})),e.d(t,"isEven",(function(){return tt})),e.d(t,"isOdd",(function(){return et})),e.d(t,"unshiftArray",(function(){return Rn})),e.d(t,"cloneArray",(function(){return Hn})),e.d(t,"arraySliceFromValueToValue",(function(){return Dn})),e.d(t,"areArrayItemsAllCoercibleToNumber",(function(){return Un})),e.d(t,"arrayOrArrayLike",(function(){return Jn})),e.d(t,"lastOfArray",(function(){return Wn})),e.d(t,"firstOfArray",(function(){return Bn})),e.d(t,"arrayFindReverse",(function(){return qn})),e.d(t,"arrayMax",(function(){return Vn})),e.d(t,"arrayMin",(function(){return _n})),e.d(t,"sortNums",(function(){return Xn})),e.d(t,"mean",(function(){return rt})),e.d(t,"median",(function(){return ot})),e.d(t,"minAbsDeviationFromValue",(function(){return ut})),e.d(t,"minAbsDeviationFromExcludedValue",(function(){return ct})),e.d(t,"clampLat",(function(){return it})),e.d(t,"wrapLng",(function(){return ft})),e.d(t,"normalizeLat",(function(){return lt})),e.d(t,"normalizeLng",(function(){return dt})),e.d(t,"xrange",(function(){return st}));var r=e(0);const o={},u={},c=(n,{arity:t,onEffectiveArgAdded:e,onPlaceholder:r,onFnCall:c,onCurriedFnFirstCall:i,onNewCurriedFn:f}={})=>{let l=!0;const d=void 0!==t?t:n.length,s=(t,u,c,...f)=>function d(...s){let p=t,h=u,g=null,m=!1;l&&(i&&i({addedArgs:s,fn:n,curriedFn:d}),1)&&(l=!1);let y=c.length;for(const t of s){!m&&(f=[...f]),m=!0;const u=t===o;if(y>0&&!u){let r;if(e&&e({addedArg:t,args:f,fn:n,curriedFn:d}),null===g){const[n,...t]=c;r=n,g=t}else r=g.shift();f[r]=t,y--,p--}else u?(null===g?g=c.concat(h):g.push(h),r&&r({args:f,fn:n,curriedFn:d})):(p--,e&&e({addedArg:t,args:f,fn:n,curriedFn:d})),f[h]=t,h++}return a.call(null,d,p,h,null===g?[...c]:g,...f)},a=(t,e,r,o,...i)=>{if(e<=0){if(c){const e=c({args:i,fn:n,curriedFn:t});return e===u?n(...i):e}return n(...i)}{const n=s(e,r,o,...i);return f&&f({curriedFn:t,newCurriedFn:n}),n}},p=s(d,0,[]);return f&&f({curriedFn:p,newCurriedFn:p}),p},i=(n,{plugPropertyName:t="plugCurried",plugPropertyMustBeTruthy:e=!1,onPOJOArgMerged:o,onFnCall:c,onCurriedFnFirstCall:i,onNewCurriedFn:f}={})=>{let l=!0;const d=s=>function a(p){l&&(i&&i({POJOArg:p,fn:n,curriedFn:a}),1)&&(l=!1);let h=Object.assign({},s,p||{});if(!Object.prototype.hasOwnProperty.call(h,t)||e&&!h[t]){o&&o({POJOArg:p,POJO:h,fn:n,curriedFn:a});const t=d(h);return f&&f({curriedFn:a,newCurriedFn:t}),t}{const{[t]:e,...i}=p,{[t]:f,...l}=h;h=l,Object(r.C)(i)||o&&o({POJOArg:i,POJO:h,fn:n,curriedFn:a});let d=!0,s=void 0;return c&&(s=c({POJO:h,fn:n,curriedFn:a}),d=s===u),d?n(h):s}},s=d({});return f&&f({curriedFn:s,newCurriedFn:s}),s},f=(...n)=>(...t)=>{let e=t,r=void 0;for(let t=(n=n.flat(1)).length-1;t>=0;t--){r=(0,n[t])(...e),e=[r]}return r},l=(...n)=>(...t)=>(n=n.flat(1)).length?n.reduce((n,t)=>[t(...n)],t)[0]:void 0,d=(...n)=>t=>n.reduce((n,e)=>({...n,[e]:t[e]}),{}),s=n=>t=>e=>(...r)=>n(t(...r),e(...r)),a=n=>(...t)=>n.map(n=>n(...t)),p=(n,t)=>(...e)=>n(...t.map(n=>n(...e))),h=n=>t=>e=>Object.prototype.hasOwnProperty.call(n,t)&&e(n[t],n),g=(...n)=>t=>e=>e(n.filter(n=>Object.prototype.hasOwnProperty.call(t,n))),m=n=>(...t)=>e=>{const r=n(...t),o=[];for(const n of r){const t=e(n);o.push(t)}return o},y=n=>Array.prototype.concat.apply([],n),b=(...n)=>n.reduce((n,t)=>y(n.map(n=>t.map(t=>[...n,t]))),[[]]);function O(n){let t=0;for(let e=0;e<n.length;e++){let r=0;for(let t=0;t<n[e].length;t++)r=251*r^n[e].charCodeAt(t);t^=r}return t}const w=n=>{let t,e,r=0;if(0===n.length)return r;for(t=0;t<n.length;t++)e=n.charCodeAt(t),r=(r<<5)-r+e,r|=0;return r};function j(n,t=0){let e=t,r=0;for(let t=0;t<n.length;t++)r=251*r^n.charCodeAt(t);return e^=r,e}function S(n,t){return new Promise(e=>setTimeout(e,n,t))}function A(n,t){return Promise.all([n,S(t)]).then(([n])=>n).catch(n=>{throw n})}function M({promise:n,maxDelayMs:t,onFallback:e=(()=>{}),fallbackMinDelayMs:o}={}){const u=Object(r.bb)();return Promise.race([n,S(t).then(()=>u)]).then(t=>t===u?(e(),A(n,o)):t)}const v=(n,t,e)=>void 0!==e?n.then(t,e):n.then(t),I=(...n)=>t=>n.reduce((n,t)=>{let e;return e=Object(r.u)(t)?v(n,t[0],t[1]):v(n,t),e},Promise.resolve(t));function P(n,t,e,r){if(!t||"object"!=typeof t||t instanceof Date||t instanceof File){const o=null==t?"":e?encodeURIComponent(t):t;n instanceof FormData?n.append(r,o):n[r]=o}else Object.keys(t).forEach(o=>{P(n,t[o],e,r?`${r}[${o}]`:e?encodeURIComponent(o):o)})}function T(n){const t={};P(t,n,!0);const e=[];for(const n in t)e.push(n+"="+t[n]);return e.join("&")}function F(n){const t=new FormData;return P(t,n),t}const C=()=>window.ActiveXObject&&new window.ActiveXObject("Microsoft.XMLHTTP")||new XMLHttpRequest;function E(n=null){const t=C();return new Promise(e=>{try{t.onreadystatechange=()=>{4==t.readyState&&e(t.status>=200&&(t.status<300||304===t.status))},t.open("HEAD",(n||r.e.checkNetworkURI||"//"+window.location.hostname+(80!=window.location.port?":"+window.location.port:""))+"?rand="+Math.floor(65536*(1+Math.random())),!0),t.send()}catch(n){e(!1)}})}function N(n=3e3){return new Promise(t=>{E().then(e=>{if(e)t();else{const e=setInterval(()=>{E().then(n=>{n&&(clearInterval(e),t())})},n)}})})}function x(n,t,e){let r="";if(e){const n=new Date;n.setTime(n.getTime()+24*e*60*60*1e3),r="expires="+n.toUTCString()+";"}document.cookie=n+"="+t+";"+r+"path=/"}function k(n){const t=n+"=",e=document.cookie.split(";");for(let n=0;n<e.length;n++){let r=e[n];for(;" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}}function L(n){x(n,"",-365)}function R(n){const t=n.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function H(n,t,e=1){const r=n.getBoundingClientRect(),o=t.getBoundingClientRect(),{top:u,bottom:c,height:i}=r,f=()=>"function"==typeof e?e(r,o):e;let l;return u<=o.top?o.top-u+f()<=i:(l=c-o.bottom)<0||(o.bottom>=u&&e?o.bottom-u>=f():l<=i)}function D(n){return n.scrollHeight>n.clientHeight}function U(n){return n.scrollWidth>n.clientWidth}function J(n){const t=Object(r.bb)();return(n||r.e.elementUniqueIdPrefix)+t}function W(n){return window.getComputedStyle(n)}function B(n){const t=W(n);let e=n.clientHeight,r=n.clientWidth;return e-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{width:r,height:e}}let q;function V(n){null==q&&(q=document.createElement("textarea"),q.style.border="none",q.style.height="0",q.style.overflow="hidden",q.style.padding="0",q.style.position="absolute",q.style.left="0",q.style.top="0",q.style.zIndex="-1",document.body.appendChild(q));const t=window.getComputedStyle(n),e=parseInt(t.paddingLeft),r=parseInt(t.paddingRight);let o=parseInt(t.lineHeight);isNaN(o)&&(o=parseInt(t.fontSize)),q.style.width=n.clientWidth-e-r+"px",q.style.font=t.font,q.style.letterSpacing=t.letterSpacing,q.style.whiteSpace=t.whiteSpace,q.style.wordBreak=t.wordBreak,q.style.wordSpacing=t.wordSpacing,q.style.wordWrap=t.wordWrap,q.value=n.value;let u=Math.floor(q.scrollHeight/o);return 0==u&&(u=1),u}function _(n){return n.scrollTop+n.offsetHeight>=n.scrollHeight}function X(){const n=document.createElement("div");n.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(n);const e=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),t.parentNode.removeChild(t),e}function z(n){return n.offsetWidth<n.scrollWidth}function $(n,t,e){navigator.clipboard?navigator.clipboard.writeText(n).then((function(){t&&t()}),(function(n){e&&e(n)})):function(n,t,e){const r=document.documentElement.scrollTop||document.body.scrollTop,o=document.createElement("textarea");o.value=n,document.body.appendChild(o),o.focus(),o.select();try{document.execCommand("copy")?t&&t():e&&e()}catch(n){e&&e(n)}document.body.removeChild(o)&&document.documentElement.scrollTop&&(document.documentElement.scrollTop=r)||(document.body.scrollTop=r)}(n,t,e)}const K=(n,t)=>n&&window.requestAnimationFrame(()=>(t(),K(--n,t))),Q=(n,t)=>{let e=n||1;const r=()=>{e--,e?window.requestAnimationFrame(r):t()};return window.requestAnimationFrame(r)};function G(n){return(n||window.location.hash).replace(/^#/,"")}function Y(n){return decodeURIComponent(G(n))}function Z(n,t){return n+"#"+encodeURIComponent(JSON.stringify(t))}function nn(n=null){const t=window.location.hash;if(!Object(r.w)(t)){const n=Y(t);if(Object(r.A)(n))return JSON.parse(n)}return n}function tn(){const n={};return function(n,t){let e,o,u,c,i,f,l,d,s,a,p,h,g;n||(n=window.location.search.substr(1));const m=String(n).replace(/^&/,"").replace(/&$/,"").split("&"),y=m.length,b=function(n){return decodeURIComponent(n.replace(/\+/g,"%20"))};for(t||(t={}),e=0;e<y;e++){for(d=m[e].split("="),s=b(d[0]),a=d.length<2?"":b(d[1]);" "===s.charAt(0);)s=s.slice(1);if(s.indexOf("\0")>-1&&(s=s.slice(0,s.indexOf("\0"))),s&&"["!==s.charAt(0)){for(h=[],p=0,o=0;o<s.length;o++)if("["!==s.charAt(o)||p){if("]"===s.charAt(o)&&p&&(h.length||h.push(s.slice(0,p-1)),h.push(s.substr(p,o-p)),p=0,"["!==s.charAt(o+1)))break}else p=o+1;for(h.length||(h=[s]),o=0;o<h[0].length&&(l=h[0].charAt(o)," "!==l&&"."!==l&&"["!==l||(h[0]=h[0].substr(0,o)+"_"+h[0].substr(o+1)),"["!==l);o++);for(f=t,o=0,g=h.length;o<g;o++)if(s=h[o].replace(/^['"]/,"").replace(/['"]$/,""),i=f,""!==s&&" "!==s||0===o)void 0===f[s]&&(f[s]={}),f=f[s];else{for(c in u=-1,f)Object.prototype.hasOwnProperty.call(f,c)&&+c>u&&c.match(/^\d+$/g)&&(u=+c);s=u+1}i[s]=a}}const O=function(n){const t=Object.keys(n),e={};for(let n=0;n<t.length;n++)e[n]=!0;const r=[];for(let o=0;o<t.length;o++){const u=t[o]+"";if(!u.match(/^[0-9]+$/))return n;const c=Number(u);if(!e[c])return n;r[c]=n[u],delete e[c]}return 0===Object.keys(e).length?r:n};(function n(t){for(const e in t)Object(r.B)(t[e])&&(t[e]=O(t[e]),n(t[e]))})(t)}(location.search.substring(1),n),n}const en=function(n){let t,e;void 0!==window.pageXOffset?(t=window.pageXOffset,e=window.pageYOffset):void 0!==window.scrollX?(t=window.scrollX,e=window.scrollY):document.documentElement&&void 0!==document.documentElement.scrollLeft?(t=document.documentElement.scrollLeft,e=document.documentElement.scrollTop):(t=document.body.scrollLeft,e=document.body.scrollTop),n.focus(),void 0!==t&&window.scrollTo(t,e)};function rn(n){let t="";const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e.length;for(let o=0;o<n;o++)t+=e.charAt(Math.floor(Math.random()*r));return t}function on(n=0,t=Number.MAX_SAFE_INTEGER){return n=Math.ceil(n),t=Math.floor(t),Math.floor(Math.random()*(t-n+1))+n}function un(n){let t=Math.random();for(;n==t;)t=Math.random();return t}function cn(n){return(n=>{let t,e,r=n.length;for(;0!==r;)e=Math.floor(Math.random()*r),r--,t=n[r],n[r]=n[e],n[e]=t;return n})(Object.keys(n)).map(t=>n[t])}function fn(){const n=new Date;return Math.round(n.getTime()/1e3)}function ln(n){const t=new Date(n||(new Date).getTime());return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().slice(11,-1)}function dn(n){return.001*n}function sn(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function an(n,t,e={}){void 0===t&&(t=" ");const r=sn(t),o=void 0===e.shouldTrimLeft||e.shouldTrimLeft,u=void 0===e.shouldTrimRight||e.shouldTrimRight,c=[];o&&(c[c.length]="^["+r+"]+"),u&&(c[c.length]="["+r+"]+$");const i=new RegExp(c.join("|"),"gm");return n.replace(i,"")}function pn(n,t,e){void 0===t&&(t=["\\s"]),e=e||"";const r=new RegExp("(^("+t.join("|")+")+)|(("+t.join("|")+")+$)","g"+e);return n.replace(r,"")}function hn(n,t){return an(n,t)}function gn(n,t){return an(n,t,{shouldTrimLeft:!0,shouldTrimRight:!1})}function mn(n,t){return an(n,t,{shouldTrimLeft:!1,shouldTrimRight:!0})}function yn(n,t,e){const o=[];for(const t of n)Object(r.u)(t)?o[o.length]=hn(t.join(e),e):o[o.length]=t;return hn(o.join(t),t)}function bn({arrayOfObjects:n,concatObjectProps:t,valueProp:e="id",outerSeparator:o=" ",innerSeparator:u=" "}){const c=[];for(const i of n){const n=[];for(const e of t)Object(r.u)(e)?n[n.length]=e.map(n=>i[n]):n[n.length]=i[e];c[c.length]={value:i[e],label:yn(n,o,u)}}return c}function On(n,t){return 0===n.indexOf(t,0)}function wn(n){return n.charAt(0).toUpperCase()+n.slice(1)}function jn(n,t){const e=256,r=256;function o(n){const t=Math.sin(n*Math.PI/180),e=Math.log((1+t)/(1-t))/2;return Math.max(Math.min(e,Math.PI),-Math.PI)/2}function u(n,t,e){return Math.floor(Math.log(n/t/e)/Math.LN2)}const c=n.getNorthEast(),i=n.getSouthWest(),f=(o(c.lat())-o(i.lat()))/Math.PI,l=c.lng()-i.lng(),d=(l<0?l+360:l)/360,s=u(t.height,e,f),a=u(t.width,r,d);return Math.min(s,a,21)}const Sn=function(){let n=0;return function(t,e){clearTimeout(n),n=setTimeout((function(){t()}),e)}}();function An(n,t){let e=void 0;return function(...o){!Object(r.H)(e)&&clearTimeout(e),e=setTimeout((function(){n(...o)}),t)}}function Mn(n,t){let e=Date.now();return function(...r){e+t-Date.now()<0&&(n(...r),e=Date.now())}}function vn(n){return n.split(/[\\/]/).pop()}function In(n,t){let e="",r="",o="",u=0;const c={};let i=0,f=0,l=!1,d=!1,s=!1;if(!n)return!1;t||(t="PATHINFO_ALL");const a={PATHINFO_DIRNAME:1,PATHINFO_BASENAME:2,PATHINFO_EXTENSION:4,PATHINFO_FILENAME:8,PATHINFO_ALL:0};for(o in a)Object.prototype.hasOwnProperty.call(a,o)&&(a.PATHINFO_ALL=a.PATHINFO_ALL|a[o]);if("number"!=typeof t){for(t=[].concat(t),f=0;f<t.length;f++)a[t[f]]&&(u|=a[t[f]]);t=u}const p=function(n){const t=n+"",e=t.lastIndexOf(".")+1;return!!e&&(e!==t.length?t.substr(e):"")};if(t&a.PATHINFO_DIRNAME){const t=n.replace(/\\/g,"/").replace(/\/[^/]*\/?$/,"");c.dirname=t===n?".":t}for(e in t&a.PATHINFO_BASENAME&&(!1===l&&(l=vn(n)),c.basename=l),t&a.PATHINFO_EXTENSION&&(!1===l&&(l=vn(n)),!1===d&&(d=p(l)),!1!==d&&(c.extension=d)),t&a.PATHINFO_FILENAME&&(!1===l&&(l=vn(n)),!1===d&&(d=p(l)),!1===s&&(s=l.slice(0,l.length-(d?d.length+1:!1===d?0:1))),c.filename=s),i=0,c)Object.prototype.hasOwnProperty.call(c,e)&&(i++,r=e);return 1===i?c[r]:c}function Pn(n){const t=In(n,"PATHINFO_EXTENSION");return"string"!=typeof t?"":t}function Tn(n){return n.replace(/\\/g,"/").replace(/\/[^/]*\/?$/,"")}const Fn=n=>parseInt(n,2),Cn=n=>n.toString(2),En=(n,t)=>n&~(1<<t-1),Nn=(n,t)=>n|1<<t-1,xn=(n,t)=>n^1<<t-1,kn=(n,t)=>n&1<<t-1;function Ln(n){const t=parseInt(n,16);return.299*((16711680&t)>>16)+.587*((65280&t)>>8)+.114*(255&t)}function Rn(n,t){let e=n.length;for(;e;)n[e]=n[e-1],e--;n[0]=t}function Hn(n){return n.slice(0)}function Dn(n,t,e){const r=[];let o=!1;for(const u of n)if(o||u!=t){if(o&&u==e){r.push(u);break}o&&r.push(u)}else r.push(u),o=!0;return r}function Un(n){return!n.some(isNaN)}function Jn(n){return Array.prototype.slice.call(n)}function Wn(n){return n[n.length-1]}function Bn(n){return n[0]}function qn(n,t){let e=n.length,r=void 0;for(;e;)if(e--,t(n[e])){r=n[e];break}return r}const Vn=n=>n.length?n.reduce((n,t)=>t>n?t:n,-1/0):void 0,_n=n=>n.length?n.reduce((n,t)=>t<n?t:n,1/0):void 0,Xn=(n,t=!1)=>[...n].sort((n,e)=>t?e-n:n-e),zn=function*(n,t,e=!0){const r=n.length;yield*function*n(t,r,o,u,c=0){if(o.length===u)yield e?Jn(o):o;else for(let e=c;e<r&&u-o.length<=r-e;e++)o.push(t[e]),yield*n(t,r,o,u,e+1),o.pop()}(n,r,[],t)},$n=n=>{const t=n.length;if(0===t)return[];const e=Jn(n);if(1===t)return[e];const r=[];if(n.map(n=>r.push([n])),t>2)for(let e=2;e<t;e++)for(const t of zn(n,e))r.push(t);return r.push(e),r},Kn=function*(n,t=!0){const e=n.length;if(0===e)return;const o=t?Jn(n):n;if(1!==e){if(yield*Object(r.J)(n,n=>[n]),e>2)for(let r=2;r<e;r++)for(const e of zn(n,r,t))yield e;yield o}else yield o},Qn=function*(n){const t=n.length;for(let e=0;e<=t;e++)for(const t of zn(n,e))yield t},Gn=function*(n){const t=new Map;yield[];for(const e of Qn(n))Object(r.L)(t,e)||(Object(r.M)(t,e,!0),yield e)};function Yn(n,t=0){const e=10**t;return Math.round(n*e)/e}function Zn(...n){return n.reduce((n,t)=>n+t)}function nt(n,t){return Math.floor(n/t)}function tt(n){return n%2==0}function et(n){return!tt(n)}function rt(...n){return Zn(...n)/n.length}function ot(...n){const t=Xn(n),e=nt(t.length,2);return et(t.length)?t[e]:rt(t[e-1],t[e])}const ut=n=>(...t)=>{let e=1/0;return t.map(t=>{const r=Math.abs(t-n);r<e&&(e=r)}),e},ct=n=>(...t)=>ut(n)(...t.filter(t=>t!==n)),it=n=>n<-90?-90:n>90?90:n,ft=n=>{for(;n>180;)n-=360;for(;n<-180;)n+=360;return n},lt=n=>(n=it(n))>=0?90-n:90+Math.abs(n),dt=n=>(n=ft(n))+180;function*st(n,t,e=1){if(n<t){if(e<=0)throw new RangeError("Step must be a positive int greater than 0.");for(let r=n;r<=t;r+=e)yield r}else{if(e>=0)throw new RangeError("Step must be a negative int greater than 0.");for(let r=n;r>=t;r+=e)yield r}}}])})); | ||
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("JSUtl",[],t):"object"==typeof exports?exports.JSUtl=t():n.JSUtl=t()}("undefined"!=typeof self?self:this,(function(){return function(n){var t={};function e(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var o in n)e.d(r,o,function(t){return n[t]}.bind(null,o));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=3)}([function(n,t,e){"use strict";(function(n){e.d(t,"e",(function(){return o})),e.d(t,"C",(function(){return u})),e.d(t,"B",(function(){return i})),e.d(t,"u",(function(){return f})),e.d(t,"v",(function(){return l})),e.d(t,"w",(function(){return d})),e.d(t,"x",(function(){return s})),e.d(t,"o",(function(){return a})),e.d(t,"bb",(function(){return p})),e.d(t,"O",(function(){return h})),e.d(t,"p",(function(){return g})),e.d(t,"r",(function(){return m})),e.d(t,"W",(function(){return y})),e.d(t,"M",(function(){return b})),e.d(t,"L",(function(){return O})),e.d(t,"K",(function(){return w})),e.d(t,"R",(function(){return S})),e.d(t,"Q",(function(){return A})),e.d(t,"P",(function(){return M})),e.d(t,"J",(function(){return v})),e.d(t,"g",(function(){return I})),e.d(t,"i",(function(){return P})),e.d(t,"N",(function(){return T})),e.d(t,"c",(function(){return F})),e.d(t,"E",(function(){return C})),e.d(t,"D",(function(){return N})),e.d(t,"q",(function(){return E})),e.d(t,"ab",(function(){return x})),e.d(t,"d",(function(){return k})),e.d(t,"j",(function(){return L})),e.d(t,"h",(function(){return R})),e.d(t,"k",(function(){return H})),e.d(t,"l",(function(){return D})),e.d(t,"s",(function(){return U})),e.d(t,"H",(function(){return J})),e.d(t,"y",(function(){return W})),e.d(t,"f",(function(){return B})),e.d(t,"z",(function(){return q})),e.d(t,"m",(function(){return V})),e.d(t,"n",(function(){return _})),e.d(t,"F",(function(){return X})),e.d(t,"G",(function(){return z})),e.d(t,"b",(function(){return $})),e.d(t,"a",(function(){return K})),e.d(t,"A",(function(){return Q})),e.d(t,"S",(function(){return G})),e.d(t,"U",(function(){return Y})),e.d(t,"Y",(function(){return Z})),e.d(t,"Z",(function(){return nn})),e.d(t,"I",(function(){return tn})),e.d(t,"V",(function(){return en}));var r=e(1);e.d(t,"X",(function(){return r.c})),e.d(t,"T",(function(){return r.b})),e.d(t,"t",(function(){return r.a}));const o={uniqueIdPrefix:"",elementUniqueIdPrefix:"",checkNetworkURI:null};function u(n){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t))return!1;return!0}const c=Object.prototype.toString.call({}),i=function(n){return c===Object.prototype.toString.call(n)};function f(n){return Object.prototype.toString.call(n)===Object.prototype.toString.call([])}function l(n){return"function"==typeof n}function d(n){return!n||0===n.length}function s(n){return!n||"0"===n||0===n.length}function a(){return void 0!==n?n:window}function p(n){const t=a();t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH=t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH||0,t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH++;const e=t.JSUtlUniqueIdCounterLEzKKl87QCDxwVH;return(n||o.uniqueIdPrefix)+e}function h(n,t){let e=n;for(let n=0;n<t.length;n++){e=e[t[n]]}return e}const g=h;function m(n,t){if(!t.length)return!1;let e=n;for(let n=0;n<t.length;n++){const r=t[n];if(!e[r])return!1;e=e[r]}return!0}function y(n,t,e){if(!t.length)return;let r=n,o=null;for(let n=0;n<t.length;n++){const e=t[n];"object"!=typeof r[e]&&(r[e]={}),o=r,r=r[e]}o&&(o[t[t.length-1]]=e)}const b=(n,t,e)=>{let r=0,o=n;for(;r<t.length-1;){const n=t[r],e=o.get(n);if(e instanceof Map||e instanceof WeakMap)o=e;else{const t=new Map;o.set(n,t),o=t}r++}o.set(t[r],e)},O=(n,t)=>{let e=n,r=0;const o=t.length;for(;(e instanceof Map||e instanceof WeakMap)&&e.has(t[r])&&r<o;)e=e.get(t[r]),r++;return r==o},w=(n,t)=>{let e=n,r=0;const o=t.length;for(;(e instanceof Map||e instanceof WeakMap)&&e.has(t[r])&&r<o;)e=e.get(t[r]),r++;return r==o?e:void 0},j=Symbol("treeMapSubtree"),S=(n,t,e)=>{let r=0,o=n;const u=n instanceof WeakMap?WeakMap:Map;for(;r<t.length-1;){const n=t[r],e=o.get(n);if(e)o=e[j]||(e[j]=new u);else{const t=new u,e={[j]:t,value:void 0};o.set(n,e),o=t}r++}const c=t[r];o.has(c)?o.get(c).value=e:o.set(c,{value:e})},A=(n,t)=>{let e=n,r=0;const o=t.length;for(;(e instanceof Map||e instanceof WeakMap)&&e.has(t[r])&&r<o;)e=e.get(t[r])[j],r++;return r==o},M=(n,t)=>{let e=n,r=0;const o=t.length-1;for(;(e instanceof Map||e instanceof WeakMap)&&e.has(t[r])&&r<o;)e=e.get(t[r])[j],r++;if(r===o&&e){const n=t[r];if(e.has(n)){return e.get(n).value}}};function*v(n,t,e){n.map();const r=t.bind(e);for(let t=0;t<n.length;t++)yield r(n[t],t,n)}function I(n,t){if(n.length!=t.length)return!1;const e=Object.prototype.toString,r=e.call({}),o=e.call([]);for(let u=0;u<n.length;u++){if(!(u in t))return!1;if(r===e.call(n[u])){if(r!==e.call(t[u])||!P(n[u],t[u]))return!1}else if(o===e.call(n[u])){if(o!==e.call(t[u])||!I(n[u],t[u]))return!1}else if(n[u]!==t[u])return!1}return!0}function P(n,t){const e=Object.prototype.toString,r=e.call({}),o=e.call([]);for(const u in n){if(!(u in t))return!1;if(r===e.call(n[u])){if(r!==e.call(t[u])||!P(n[u],t[u]))return!1}else if(o===e.call(n[u])){if(o!==e.call(t[u])||!I(n[u],t[u]))return!1}else if(n[u]!==t[u])return!1}return!0}function T(n,t,e){let r=n=n||(e?[]:{});for(let n=0;n<t.length;n++){const e=t[n],o=Object.keys(e)[0],u=e[o];r[o]=r[o]||u,r=r[o]}return r}function F(n){return JSON.parse(JSON.stringify(n))}function C(n){return new Object(n)===n}function N(n){return new Object(n)!==n}function E(n){const t=[];let e=!1;return function n(r){if(e)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)&&n(r[t]);t.splice(o,1)}else e=!0}(n),e}function x(n){return Object.prototype.toString.call(n)}function k(n){const t=new n.constructor;for(const e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const r=n[e];if(N(r))t[e]=r;else{if(!C(r))throw new Error("Oops! Unknown type for property '"+e+"' ("+x(r)+") in object ("+x(n)+")");if(E(r))throw new Error("Circular reference detected inside of property '"+e+"' ("+x(r)+") in object ("+x(n)+")");{const n=k(r);t[e]=n}}}return t}function L(n,t){const e=Object.prototype.toString,r=e.call({});for(const o in t)t[o]&&r===e.call(t[o])?(n[o]=n[o]||{},L(n[o],t[o])):n[o]=t[o]}function R(...n){const t=n[0];let e;const r=Object.prototype.toString,o=r.call({});for(let u=1;n[u];u++){e=n[u];for(const n in e)e[n]&&o===r.call(e[n])?(t[n]=t[n]||{},L(t[n],k(e[n]))):t[n]=e[n]}}function H(n,...t){for(const e of t)L(n,e);return n}function D(n,...t){const e=t[t.length-1];if(t.pop(),f(e)){const r=Object.prototype.toString,o=r.call({}),u={}.constructor.name,c=t,i={},l=new Map,d=new Map,s=[],a=(n,t,e,r)=>{const o=Reflect.ownKeys(t);for(const u of o)e.push({destinationObject:n,sourceObject:t,property:u,path:[...r,u]})},p=(n,t)=>n instanceof RegExp&&"string"==typeof t?t.match(n):n===t,h=(n,t)=>{for(const e of n)if(p(e,t))return!0;return!1},g=(n,t)=>f(n)?h(n,t):p(n,t),m=n=>{if(!l.has(n)){const t=[];for(const[r,o]of e)g(r,n)&&t.push(o);l.set(n,t)}return l.get(n)};for(const t of c){const e=[];for(a(n,t,e,[]);e.length;){const{destinationObject:n,sourceObject:t,property:c,path:f}=e.pop();t[c]&&o===r.call(t[c])&&t[c].constructor&&u===t[c].constructor.name?(n[c]=o===r.call(n[c])?n[c]:{},a(n[c],t[c],e,f)):n[c]=t[c];const l=m(c);l&&l.length&&(A(d,f)||s.push([...f]),S(d,f,l.map(t=>e=>{const r=e===i?n[c]:e;return t(r,c,n)})))}}for(let t=s.length-1;t>=0;t--){const e=s[t],r=M(d,e)||[];let o=i;for(const n of r)o=n(o);o!==i&&y(n,e,o)}return n}return t.push(e),H(n,...t)}function U(n,t){for(const e of n)if(e==t)return!0;return!1}function J(n){return void 0===n}function W(n){return Number.isInteger(n)}function B(n){return Boolean(n.match(/^[0-9]+$/))}function q(n){return Number.isInteger(n)||B(n)}function V(n,t){return n.findIndex(n=>n==t)}function _(n){let t;for(t in n)break;return n[t]}function X(n){return!0===n}function z(n){return Boolean(n)}function $(...n){return n.every(z)}function K(...n){return n.every(n=>void 0!==n)}function Q(n){try{JSON.parse(n)}catch(n){return!1}return!0}function G(){}function Y(n,t){return Object(r.c)(Object.keys(t).reduce((t,e)=>(t[e]=n[e],t),{}),t)}function Z(n,t){const e={objA:{},objB:{}};if(Object(r.c)(n,t))return e;const o=Object.keys(n),u=Object.keys(t);for(let u=0;u<o.length;u++){const c=o[u];Object(r.b)(n,t,c)||(e.objA[c]=n[c],hasOwnProperty.call(t,c)&&(e.objB[c]=t[c]))}for(let o=0;o<u.length;o++){const c=u[o];Object(r.b)(t,n,c)||(e.objB[c]=t[c],hasOwnProperty.call(n,c)&&(e.objA[c]=n[c]))}return e}function nn(n){return""+n}const tn=(n,t)=>Object.fromEntries(Object.entries(n).map(([n,e],r)=>[n,t(e,n,r)])),en=(n,t=z)=>Object.keys(n).reduce((e,r)=>(t(n[r],r)&&(e[r]=n[r]),e),{})}).call(this,e(2))},function(n,t,e){"use strict";e.d(t,"a",(function(){return o})),e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return c}));const r=Object.prototype.hasOwnProperty;function o(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function u(n,t,e){return r.call(t,e)&&o(n[e],t[e])}function c(n,t){if(o(n,t))return!0;if("object"!=typeof n||null===n||"object"!=typeof t||null===t)return!1;const e=Object.keys(n),r=Object.keys(t);if(e.length!==r.length)return!1;for(let r=0;r<e.length;r++){if(!u(n,t,e[r]))return!1}return!0}},function(n,t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(n){"object"==typeof window&&(e=window)}n.exports=e},function(n,t,e){"use strict";e.r(t),e.d(t,"config",(function(){return r.e})),e.d(t,"isObjectEmpty",(function(){return r.C})),e.d(t,"isObject",(function(){return r.B})),e.d(t,"isArray",(function(){return r.u})),e.d(t,"isEmpty",(function(){return r.w})),e.d(t,"isEmptyOr0",(function(){return r.x})),e.d(t,"getGlobalObject",(function(){return r.o})),e.d(t,"uniqueId",(function(){return r.bb})),e.d(t,"deepArrayCompare",(function(){return r.g})),e.d(t,"deepObjectCompare",(function(){return r.i})),e.d(t,"nestedObjectConstructValue",(function(){return r.N})),e.d(t,"cloneDeeplyJSON",(function(){return r.c})),e.d(t,"isReferenceType",(function(){return r.E})),e.d(t,"isPrimitiveType",(function(){return r.D})),e.d(t,"hasCyclicReference",(function(){return r.q})),e.d(t,"typeToStr",(function(){return r.ab})),e.d(t,"cloneObjDeeply",(function(){return r.d})),e.d(t,"deepObjectExtend",(function(){return r.j})),e.d(t,"deepObjectCloningExtend",(function(){return r.h})),e.d(t,"extend",(function(){return r.k})),e.d(t,"extendDecorate",(function(){return r.l})),e.d(t,"includesTypeCoercion",(function(){return r.s})),e.d(t,"nestedPropertyValue",(function(){return r.O})),e.d(t,"getNestedPropertyValue",(function(){return r.p})),e.d(t,"hasNestedPropertyValue",(function(){return r.r})),e.d(t,"setNestedPropertyValue",(function(){return r.W})),e.d(t,"isUndefined",(function(){return r.H})),e.d(t,"isInt",(function(){return r.y})),e.d(t,"ctypeDigit",(function(){return r.f})),e.d(t,"isIntegerOrIntegerStr",(function(){return r.z})),e.d(t,"isCallable",(function(){return r.v})),e.d(t,"findIndex",(function(){return r.m})),e.d(t,"firstPropValue",(function(){return r.n})),e.d(t,"isStrictlyTrue",(function(){return r.F})),e.d(t,"isTruthy",(function(){return r.G})),e.d(t,"allTruthy",(function(){return r.b})),e.d(t,"allNotUndefined",(function(){return r.a})),e.d(t,"isJSONString",(function(){return r.A})),e.d(t,"noOpFn",(function(){return r.S})),e.d(t,"is",(function(){return r.t})),e.d(t,"shallowEqual",(function(){return r.X})),e.d(t,"objectPropEqual",(function(){return r.T})),e.d(t,"partialShallowEqual",(function(){return r.U})),e.d(t,"shallowObjectDiff",(function(){return r.Y})),e.d(t,"nestedMapSet",(function(){return r.M})),e.d(t,"nestedMapHas",(function(){return r.L})),e.d(t,"nestedMapGet",(function(){return r.K})),e.d(t,"nestedTreeMapSet",(function(){return r.R})),e.d(t,"nestedTreeMapHas",(function(){return r.Q})),e.d(t,"nestedTreeMapGet",(function(){return r.P})),e.d(t,"mapYield",(function(){return r.J})),e.d(t,"str",(function(){return r.Z})),e.d(t,"mapObject",(function(){return r.I})),e.d(t,"propSelection",(function(){return r.V})),e.d(t,"_",(function(){return o})),e.d(t,"proceedCallingFn",(function(){return u})),e.d(t,"curry",(function(){return c})),e.d(t,"POJOCurry",(function(){return i})),e.d(t,"compose",(function(){return f})),e.d(t,"pipe",(function(){return l})),e.d(t,"pick",(function(){return d})),e.d(t,"liftBinaryFn",(function(){return s})),e.d(t,"juxt",(function(){return a})),e.d(t,"converge",(function(){return p})),e.d(t,"execIfPOJOHas",(function(){return h})),e.d(t,"execWithExistentProps",(function(){return g})),e.d(t,"forGen",(function(){return m})),e.d(t,"flatten",(function(){return y})),e.d(t,"cartesianProduct",(function(){return b})),e.d(t,"stringHashArray",(function(){return O})),e.d(t,"hashString",(function(){return w})),e.d(t,"onePassStringHash",(function(){return j})),e.d(t,"timeout",(function(){return S})),e.d(t,"minDelayPromise",(function(){return A})),e.d(t,"maxDelayFallbackPromise",(function(){return M})),e.d(t,"applyAsync",(function(){return v})),e.d(t,"composeAsync",(function(){return I})),e.d(t,"buildQueryString",(function(){return T})),e.d(t,"formData",(function(){return F})),e.d(t,"xhr",(function(){return C})),e.d(t,"checkNetwork",(function(){return N})),e.d(t,"waitNetwork",(function(){return E})),e.d(t,"setCookie",(function(){return x})),e.d(t,"getCookie",(function(){return k})),e.d(t,"unsetCookie",(function(){return L})),e.d(t,"isInViewport",(function(){return R})),e.d(t,"isScrolledIntoView",(function(){return H})),e.d(t,"hasVerticalScrollbar",(function(){return D})),e.d(t,"hasHorizontalScrollbar",(function(){return U})),e.d(t,"elementUniqueId",(function(){return J})),e.d(t,"getElementComputedStyle",(function(){return W})),e.d(t,"elementInnerDimensions",(function(){return B})),e.d(t,"countTextareaLines",(function(){return V})),e.d(t,"isScrollOnBottom",(function(){return _})),e.d(t,"getVerticalScrollBarWidth",(function(){return X})),e.d(t,"isEllipsisActive",(function(){return z})),e.d(t,"copyTextToClipboard",(function(){return $})),e.d(t,"rAFLooper",(function(){return K})),e.d(t,"nestedRAF",(function(){return Q})),e.d(t,"getRawURIFragment",(function(){return G})),e.d(t,"getDecodedURIFragment",(function(){return Y})),e.d(t,"appendEncodedJSONFragmentToURI",(function(){return Z})),e.d(t,"getDecodedJSONFromFragmentURI",(function(){return nn})),e.d(t,"getQueryStringArgsMultiDim",(function(){return tn})),e.d(t,"cursorFocus",(function(){return en})),e.d(t,"randomInt",(function(){return on})),e.d(t,"randomStr",(function(){return rn})),e.d(t,"randomDifferentFromValue",(function(){return un})),e.d(t,"randomArrayShuffle",(function(){return cn})),e.d(t,"time",(function(){return fn})),e.d(t,"msToTime",(function(){return ln})),e.d(t,"millisecToSec",(function(){return dn})),e.d(t,"escapeRegExp",(function(){return sn})),e.d(t,"trimCharacterMask",(function(){return an})),e.d(t,"trimCharacterRegex",(function(){return pn})),e.d(t,"trim",(function(){return hn})),e.d(t,"trimLeft",(function(){return gn})),e.d(t,"trimRight",(function(){return mn})),e.d(t,"concatWithInnerOuterSeparators",(function(){return yn})),e.d(t,"optionsValueLabel",(function(){return bn})),e.d(t,"startsWith",(function(){return On})),e.d(t,"ucaseFirst",(function(){return wn})),e.d(t,"googleMapBestZoomLevelFromBounds",(function(){return jn})),e.d(t,"delay",(function(){return Sn})),e.d(t,"debounce",(function(){return An})),e.d(t,"throttle",(function(){return Mn})),e.d(t,"basename",(function(){return vn})),e.d(t,"pathinfo",(function(){return In})),e.d(t,"filenameExtension",(function(){return Pn})),e.d(t,"dirname",(function(){return Tn})),e.d(t,"b2d",(function(){return Fn})),e.d(t,"d2b",(function(){return Cn})),e.d(t,"turnNthBitOff",(function(){return Nn})),e.d(t,"turnNthBitOn",(function(){return En})),e.d(t,"toggleNthBit",(function(){return xn})),e.d(t,"checkNthBitOn",(function(){return kn})),e.d(t,"getLuminance",(function(){return Ln})),e.d(t,"yieldCombinationsWithoutRepetition",(function(){return zn})),e.d(t,"uniqueProgressiveIncrementalCombinations",(function(){return $n})),e.d(t,"yieldUniqueProgressiveIncrementalCombinations",(function(){return Kn})),e.d(t,"yieldAllSubsequences",(function(){return Qn})),e.d(t,"yieldUniqueSubsequences",(function(){return Gn})),e.d(t,"round",(function(){return Yn})),e.d(t,"sum",(function(){return Zn})),e.d(t,"intDiv",(function(){return nt})),e.d(t,"isEven",(function(){return tt})),e.d(t,"isOdd",(function(){return et})),e.d(t,"unshiftArray",(function(){return Rn})),e.d(t,"cloneArray",(function(){return Hn})),e.d(t,"arraySliceFromValueToValue",(function(){return Dn})),e.d(t,"areArrayItemsAllCoercibleToNumber",(function(){return Un})),e.d(t,"arrayOrArrayLike",(function(){return Jn})),e.d(t,"lastOfArray",(function(){return Wn})),e.d(t,"firstOfArray",(function(){return Bn})),e.d(t,"arrayFindReverse",(function(){return qn})),e.d(t,"arrayMax",(function(){return Vn})),e.d(t,"arrayMin",(function(){return _n})),e.d(t,"sortNums",(function(){return Xn})),e.d(t,"mean",(function(){return rt})),e.d(t,"median",(function(){return ot})),e.d(t,"minAbsDeviationFromValue",(function(){return ut})),e.d(t,"minAbsDeviationFromExcludedValue",(function(){return ct})),e.d(t,"clampLat",(function(){return it})),e.d(t,"wrapLng",(function(){return ft})),e.d(t,"normalizeLat",(function(){return lt})),e.d(t,"normalizeLng",(function(){return dt})),e.d(t,"xrange",(function(){return st}));var r=e(0);const o={},u={},c=(n,{arity:t,onEffectiveArgAdded:e,onPlaceholder:r,onFnCall:c,onCurriedFnFirstCall:i,onNewCurriedFn:f}={})=>{let l=!0;const d=void 0!==t?t:n.length,s=(t,u,c,...f)=>function d(...s){let p=t,h=u,g=null,m=!1;l&&(i&&i({addedArgs:s,fn:n,curriedFn:d}),1)&&(l=!1);let y=c.length;for(const t of s){!m&&(f=[...f]),m=!0;const u=t===o;if(y>0&&!u){let r;if(e&&e({addedArg:t,args:f,fn:n,curriedFn:d}),null===g){const[n,...t]=c;r=n,g=t}else r=g.shift();f[r]=t,y--,p--}else u?(null===g?g=c.concat(h):g.push(h),r&&r({args:f,fn:n,curriedFn:d})):(p--,e&&e({addedArg:t,args:f,fn:n,curriedFn:d})),f[h]=t,h++}return a.call(null,d,p,h,null===g?[...c]:g,...f)},a=(t,e,r,o,...i)=>{if(e<=0){if(c){const e=c({args:i,fn:n,curriedFn:t});return e===u?n(...i):e}return n(...i)}{const n=s(e,r,o,...i);return f&&f({curriedFn:t,newCurriedFn:n}),n}},p=s(d,0,[]);return f&&f({curriedFn:p,newCurriedFn:p}),p},i=(n,{plugPropertyName:t="plugCurried",plugPropertyMustBeTruthy:e=!1,onPOJOArgMerged:o,onFnCall:c,onCurriedFnFirstCall:i,onNewCurriedFn:f}={})=>{let l=!0;const d=s=>function a(p){l&&(i&&i({POJOArg:p,fn:n,curriedFn:a}),1)&&(l=!1);let h=Object.assign({},s,p||{});if(!Object.prototype.hasOwnProperty.call(h,t)||e&&!h[t]){o&&o({POJOArg:p,POJO:h,fn:n,curriedFn:a});const t=d(h);return f&&f({curriedFn:a,newCurriedFn:t}),t}{const{[t]:e,...i}=p,{[t]:f,...l}=h;h=l,Object(r.C)(i)||o&&o({POJOArg:i,POJO:h,fn:n,curriedFn:a});let d=!0,s=void 0;return c&&(s=c({POJO:h,fn:n,curriedFn:a}),d=s===u),d?n(h):s}},s=d({});return f&&f({curriedFn:s,newCurriedFn:s}),s},f=(...n)=>(...t)=>{let e=t,r=void 0;for(let t=(n=n.flat(1)).length-1;t>=0;t--){r=(0,n[t])(...e),e=[r]}return r},l=(...n)=>(...t)=>(n=n.flat(1)).length?n.reduce((n,t)=>[t(...n)],t)[0]:void 0,d=(...n)=>t=>n.reduce((n,e)=>({...n,[e]:t[e]}),{}),s=n=>t=>e=>(...r)=>n(t(...r),e(...r)),a=n=>(...t)=>n.map(n=>n(...t)),p=(n,t)=>(...e)=>n(...t.map(n=>n(...e))),h=n=>t=>e=>Object.prototype.hasOwnProperty.call(n,t)&&e(n[t],n),g=(...n)=>t=>e=>e(n.filter(n=>Object.prototype.hasOwnProperty.call(t,n))),m=n=>(...t)=>e=>{const r=n(...t),o=[];for(const n of r){const t=e(n);o.push(t)}return o},y=n=>Array.prototype.concat.apply([],n),b=(...n)=>n.reduce((n,t)=>y(n.map(n=>t.map(t=>[...n,t]))),[[]]);function O(n){let t=0;for(let e=0;e<n.length;e++){let r=0;for(let t=0;t<n[e].length;t++)r=251*r^n[e].charCodeAt(t);t^=r}return t}const w=n=>{let t,e,r=0;if(0===n.length)return r;for(t=0;t<n.length;t++)e=n.charCodeAt(t),r=(r<<5)-r+e,r|=0;return r};function j(n,t=0){let e=t,r=0;for(let t=0;t<n.length;t++)r=251*r^n.charCodeAt(t);return e^=r,e}function S(n,t){return new Promise(e=>setTimeout(e,n,t))}function A(n,t){return Promise.all([n,S(t)]).then(([n])=>n).catch(n=>{throw n})}function M({promise:n,maxDelayMs:t,onFallback:e=(()=>{}),fallbackMinDelayMs:o}={}){const u=Object(r.bb)();return Promise.race([n,S(t).then(()=>u)]).then(t=>t===u?(e(),A(n,o)):t)}const v=(n,t,e)=>void 0!==e?n.then(t,e):n.then(t),I=(...n)=>t=>n.reduce((n,t)=>{let e;return e=Object(r.u)(t)?v(n,t[0],t[1]):v(n,t),e},Promise.resolve(t));function P(n,t,e,r){if(!t||"object"!=typeof t||t instanceof Date||t instanceof File){const o=null==t?"":e?encodeURIComponent(t):t;n instanceof FormData?n.append(r,o):n[r]=o}else Object.keys(t).forEach(o=>{P(n,t[o],e,r?`${r}[${o}]`:e?encodeURIComponent(o):o)})}function T(n){const t={};P(t,n,!0);const e=[];for(const n in t)e.push(n+"="+t[n]);return e.join("&")}function F(n){const t=new FormData;return P(t,n),t}const C=()=>window.ActiveXObject&&new window.ActiveXObject("Microsoft.XMLHTTP")||new XMLHttpRequest;function N(n=null){const t=C();return new Promise(e=>{try{t.onreadystatechange=()=>{4==t.readyState&&e(t.status>=200&&(t.status<300||304===t.status))},t.open("HEAD",(n||r.e.checkNetworkURI||"//"+window.location.hostname+(80!=window.location.port?":"+window.location.port:""))+"?rand="+Math.floor(65536*(1+Math.random())),!0),t.send()}catch(n){e(!1)}})}function E(n=3e3){return new Promise(t=>{N().then(e=>{if(e)t();else{const e=setInterval(()=>{N().then(n=>{n&&(clearInterval(e),t())})},n)}})})}function x(n,t,e){let r="";if(e){const n=new Date;n.setTime(n.getTime()+24*e*60*60*1e3),r="expires="+n.toUTCString()+";"}document.cookie=n+"="+t+";"+r+"path=/"}function k(n){const t=n+"=",e=document.cookie.split(";");for(let n=0;n<e.length;n++){let r=e[n];for(;" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}}function L(n){x(n,"",-365)}function R(n){const t=n.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function H(n,t,e=1){const r=n.getBoundingClientRect(),o=t.getBoundingClientRect(),{top:u,bottom:c,height:i}=r,f=()=>"function"==typeof e?e(r,o):e;let l;return u<=o.top?o.top-u+f()<=i:(l=c-o.bottom)<0||(o.bottom>=u&&e?o.bottom-u>=f():l<=i)}function D(n){return n.scrollHeight>n.clientHeight}function U(n){return n.scrollWidth>n.clientWidth}function J(n){const t=Object(r.bb)();return(n||r.e.elementUniqueIdPrefix)+t}function W(n){return window.getComputedStyle(n)}function B(n){const t=W(n);let e=n.clientHeight,r=n.clientWidth;return e-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{width:r,height:e}}let q;function V(n){null==q&&(q=document.createElement("textarea"),q.style.border="none",q.style.height="0",q.style.overflow="hidden",q.style.padding="0",q.style.position="absolute",q.style.left="0",q.style.top="0",q.style.zIndex="-1",document.body.appendChild(q));const t=window.getComputedStyle(n),e=parseInt(t.paddingLeft),r=parseInt(t.paddingRight);let o=parseInt(t.lineHeight);isNaN(o)&&(o=parseInt(t.fontSize)),q.style.width=n.clientWidth-e-r+"px",q.style.font=t.font,q.style.letterSpacing=t.letterSpacing,q.style.whiteSpace=t.whiteSpace,q.style.wordBreak=t.wordBreak,q.style.wordSpacing=t.wordSpacing,q.style.wordWrap=t.wordWrap,q.value=n.value;let u=Math.floor(q.scrollHeight/o);return 0==u&&(u=1),u}function _(n){return n.scrollTop+n.offsetHeight>=n.scrollHeight}function X(){const n=document.createElement("div");n.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(n);const e=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),t.parentNode.removeChild(t),e}function z(n){return n.offsetWidth<n.scrollWidth}function $(n,t,e){navigator.clipboard?navigator.clipboard.writeText(n).then((function(){t&&t()}),(function(n){e&&e(n)})):function(n,t,e){const r=document.documentElement.scrollTop||document.body.scrollTop,o=document.createElement("textarea");o.value=n,document.body.appendChild(o),o.focus(),o.select();try{document.execCommand("copy")?t&&t():e&&e()}catch(n){e&&e(n)}document.body.removeChild(o)&&document.documentElement.scrollTop&&(document.documentElement.scrollTop=r)||(document.body.scrollTop=r)}(n,t,e)}const K=(n,t)=>n&&window.requestAnimationFrame(()=>(t(),K(--n,t))),Q=(n,t)=>{let e=n||1;const r=()=>{e--,e?window.requestAnimationFrame(r):t()};return window.requestAnimationFrame(r)};function G(n){return(n||window.location.hash).replace(/^#/,"")}function Y(n){return decodeURIComponent(G(n))}function Z(n,t){return n+"#"+encodeURIComponent(JSON.stringify(t))}function nn(n=null){const t=window.location.hash;if(!Object(r.w)(t)){const n=Y(t);if(Object(r.A)(n))return JSON.parse(n)}return n}function tn(){const n={};return function(n,t){let e,o,u,c,i,f,l,d,s,a,p,h,g;n||(n=window.location.search.substr(1));const m=String(n).replace(/^&/,"").replace(/&$/,"").split("&"),y=m.length,b=function(n){return decodeURIComponent(n.replace(/\+/g,"%20"))};for(t||(t={}),e=0;e<y;e++){for(d=m[e].split("="),s=b(d[0]),a=d.length<2?"":b(d[1]);" "===s.charAt(0);)s=s.slice(1);if(s.indexOf("\0")>-1&&(s=s.slice(0,s.indexOf("\0"))),s&&"["!==s.charAt(0)){for(h=[],p=0,o=0;o<s.length;o++)if("["!==s.charAt(o)||p){if("]"===s.charAt(o)&&p&&(h.length||h.push(s.slice(0,p-1)),h.push(s.substr(p,o-p)),p=0,"["!==s.charAt(o+1)))break}else p=o+1;for(h.length||(h=[s]),o=0;o<h[0].length&&(l=h[0].charAt(o)," "!==l&&"."!==l&&"["!==l||(h[0]=h[0].substr(0,o)+"_"+h[0].substr(o+1)),"["!==l);o++);for(f=t,o=0,g=h.length;o<g;o++)if(s=h[o].replace(/^['"]/,"").replace(/['"]$/,""),i=f,""!==s&&" "!==s||0===o)void 0===f[s]&&(f[s]={}),f=f[s];else{for(c in u=-1,f)Object.prototype.hasOwnProperty.call(f,c)&&+c>u&&c.match(/^\d+$/g)&&(u=+c);s=u+1}i[s]=a}}const O=function(n){const t=Object.keys(n),e={};for(let n=0;n<t.length;n++)e[n]=!0;const r=[];for(let o=0;o<t.length;o++){const u=t[o]+"";if(!u.match(/^[0-9]+$/))return n;const c=Number(u);if(!e[c])return n;r[c]=n[u],delete e[c]}return 0===Object.keys(e).length?r:n};(function n(t){for(const e in t)Object(r.B)(t[e])&&(t[e]=O(t[e]),n(t[e]))})(t)}(location.search.substring(1),n),n}const en=function(n){let t,e;void 0!==window.pageXOffset?(t=window.pageXOffset,e=window.pageYOffset):void 0!==window.scrollX?(t=window.scrollX,e=window.scrollY):document.documentElement&&void 0!==document.documentElement.scrollLeft?(t=document.documentElement.scrollLeft,e=document.documentElement.scrollTop):(t=document.body.scrollLeft,e=document.body.scrollTop),n.focus(),void 0!==t&&window.scrollTo(t,e)};function rn(n){let t="";const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e.length;for(let o=0;o<n;o++)t+=e.charAt(Math.floor(Math.random()*r));return t}function on(n=0,t=Number.MAX_SAFE_INTEGER){return n=Math.ceil(n),t=Math.floor(t),Math.floor(Math.random()*(t-n+1))+n}function un(n){let t=Math.random();for(;n==t;)t=Math.random();return t}function cn(n){return(n=>{let t,e,r=n.length;for(;0!==r;)e=Math.floor(Math.random()*r),r--,t=n[r],n[r]=n[e],n[e]=t;return n})(Object.keys(n)).map(t=>n[t])}function fn(){const n=new Date;return Math.round(n.getTime()/1e3)}function ln(n){const t=new Date(n||(new Date).getTime());return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().slice(11,-1)}function dn(n){return.001*n}function sn(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function an(n,t,e={}){void 0===t&&(t=" ");const r=sn(t),o=void 0===e.shouldTrimLeft||e.shouldTrimLeft,u=void 0===e.shouldTrimRight||e.shouldTrimRight,c=[];o&&(c[c.length]="^["+r+"]+"),u&&(c[c.length]="["+r+"]+$");const i=new RegExp(c.join("|"),"gm");return n.replace(i,"")}function pn(n,t,e){void 0===t&&(t=["\\s"]),e=e||"";const r=new RegExp("(^("+t.join("|")+")+)|(("+t.join("|")+")+$)","g"+e);return n.replace(r,"")}function hn(n,t){return an(n,t)}function gn(n,t){return an(n,t,{shouldTrimLeft:!0,shouldTrimRight:!1})}function mn(n,t){return an(n,t,{shouldTrimLeft:!1,shouldTrimRight:!0})}function yn(n,t,e){const o=[];for(const t of n)Object(r.u)(t)?o[o.length]=hn(t.join(e),e):o[o.length]=t;return hn(o.join(t),t)}function bn({arrayOfObjects:n,concatObjectProps:t,valueProp:e="id",outerSeparator:o=" ",innerSeparator:u=" "}){const c=[];for(const i of n){const n=[];for(const e of t)Object(r.u)(e)?n[n.length]=e.map(n=>i[n]):n[n.length]=i[e];c[c.length]={value:i[e],label:yn(n,o,u)}}return c}function On(n,t){return 0===n.indexOf(t,0)}function wn(n){return n.charAt(0).toUpperCase()+n.slice(1)}function jn(n,t){const e=256,r=256;function o(n){const t=Math.sin(n*Math.PI/180),e=Math.log((1+t)/(1-t))/2;return Math.max(Math.min(e,Math.PI),-Math.PI)/2}function u(n,t,e){return Math.floor(Math.log(n/t/e)/Math.LN2)}const c=n.getNorthEast(),i=n.getSouthWest(),f=(o(c.lat())-o(i.lat()))/Math.PI,l=c.lng()-i.lng(),d=(l<0?l+360:l)/360,s=u(t.height,e,f),a=u(t.width,r,d);return Math.min(s,a,21)}const Sn=function(){let n=0;return function(t,e){clearTimeout(n),n=setTimeout((function(){t()}),e)}}();function An(n,t){let e=void 0;return function(...o){!Object(r.H)(e)&&clearTimeout(e),e=setTimeout((function(){n(...o)}),t)}}function Mn(n,t){let e=Date.now();return function(...r){e+t-Date.now()<0&&(n(...r),e=Date.now())}}function vn(n){return n.split(/[\\/]/).pop()}function In(n,t){let e="",r="",o="",u=0;const c={};let i=0,f=0,l=!1,d=!1,s=!1;if(!n)return!1;t||(t="PATHINFO_ALL");const a={PATHINFO_DIRNAME:1,PATHINFO_BASENAME:2,PATHINFO_EXTENSION:4,PATHINFO_FILENAME:8,PATHINFO_ALL:0};for(o in a)Object.prototype.hasOwnProperty.call(a,o)&&(a.PATHINFO_ALL=a.PATHINFO_ALL|a[o]);if("number"!=typeof t){for(t=[].concat(t),f=0;f<t.length;f++)a[t[f]]&&(u|=a[t[f]]);t=u}const p=function(n){const t=n+"",e=t.lastIndexOf(".")+1;return!!e&&(e!==t.length?t.substr(e):"")};if(t&a.PATHINFO_DIRNAME){const t=n.replace(/\\/g,"/").replace(/\/[^/]*\/?$/,"");c.dirname=t===n?".":t}for(e in t&a.PATHINFO_BASENAME&&(!1===l&&(l=vn(n)),c.basename=l),t&a.PATHINFO_EXTENSION&&(!1===l&&(l=vn(n)),!1===d&&(d=p(l)),!1!==d&&(c.extension=d)),t&a.PATHINFO_FILENAME&&(!1===l&&(l=vn(n)),!1===d&&(d=p(l)),!1===s&&(s=l.slice(0,l.length-(d?d.length+1:!1===d?0:1))),c.filename=s),i=0,c)Object.prototype.hasOwnProperty.call(c,e)&&(i++,r=e);return 1===i?c[r]:c}function Pn(n){const t=In(n,"PATHINFO_EXTENSION");return"string"!=typeof t?"":t}function Tn(n){return n.replace(/\\/g,"/").replace(/\/[^/]*\/?$/,"")}const Fn=n=>parseInt(n,2),Cn=n=>n.toString(2),Nn=(n,t)=>n&~(1<<t-1),En=(n,t)=>n|1<<t-1,xn=(n,t)=>n^1<<t-1,kn=(n,t)=>n&1<<t-1;function Ln(n){const t=parseInt(n,16);return.299*((16711680&t)>>16)+.587*((65280&t)>>8)+.114*(255&t)}function Rn(n,t){let e=n.length;for(;e;)n[e]=n[e-1],e--;n[0]=t}function Hn(n){return n.slice(0)}function Dn(n,t,e){const r=[];let o=!1;for(const u of n)if(o||u!=t){if(o&&u==e){r.push(u);break}o&&r.push(u)}else r.push(u),o=!0;return r}function Un(n){return!n.some(isNaN)}function Jn(n){return Array.prototype.slice.call(n)}function Wn(n){return n[n.length-1]}function Bn(n){return n[0]}function qn(n,t){let e=n.length,r=void 0;for(;e;)if(e--,t(n[e])){r=n[e];break}return r}const Vn=n=>n.length?n.reduce((n,t)=>t>n?t:n,-1/0):void 0,_n=n=>n.length?n.reduce((n,t)=>t<n?t:n,1/0):void 0,Xn=(n,t=!1)=>[...n].sort((n,e)=>t?e-n:n-e),zn=function*(n,t,e=!0){const r=n.length;yield*function*n(t,r,o,u,c=0){if(o.length===u)yield e?Jn(o):o;else for(let e=c;e<r&&u-o.length<=r-e;e++)o.push(t[e]),yield*n(t,r,o,u,e+1),o.pop()}(n,r,[],t)},$n=n=>{const t=n.length;if(0===t)return[];const e=Jn(n);if(1===t)return[e];const r=[];if(n.map(n=>r.push([n])),t>2)for(let e=2;e<t;e++)for(const t of zn(n,e))r.push(t);return r.push(e),r},Kn=function*(n,t=!0){const e=n.length;if(0===e)return;const o=t?Jn(n):n;if(1!==e){if(yield*Object(r.J)(n,n=>[n]),e>2)for(let r=2;r<e;r++)for(const e of zn(n,r,t))yield e;yield o}else yield o},Qn=function*(n){const t=n.length;for(let e=0;e<=t;e++)for(const t of zn(n,e))yield t},Gn=function*(n){const t=new Map;yield[];for(const e of Qn(n))Object(r.L)(t,e)||(Object(r.M)(t,e,!0),yield e)};function Yn(n,t=0){const e=10**t;return Math.round(n*e)/e}function Zn(...n){return n.reduce((n,t)=>n+t)}function nt(n,t){return Math.floor(n/t)}function tt(n){return n%2==0}function et(n){return!tt(n)}function rt(...n){return Zn(...n)/n.length}function ot(...n){const t=Xn(n),e=nt(t.length,2);return et(t.length)?t[e]:rt(t[e-1],t[e])}const ut=n=>(...t)=>{let e=1/0;return t.map(t=>{const r=Math.abs(t-n);r<e&&(e=r)}),e},ct=n=>(...t)=>ut(n)(...t.filter(t=>t!==n)),it=n=>Number(n<-90?-90:n>90?90:n),ft=n=>{for(n=Number(n);n>180;)n-=360;for(;n<-180;)n+=360;return n},lt=n=>(n=it(n))>=0?90-n:90+Math.abs(n),dt=n=>(n=ft(n))+180;function*st(n,t,e=1){if(n<t){if(e<=0)throw new RangeError("Step must be a positive int greater than 0.");for(let r=n;r<=t;r+=e)yield r}else{if(e>=0)throw new RangeError("Step must be a negative int greater than 0.");for(let r=n;r>=t;r+=e)yield r}}}])})); |
{ | ||
"name": "js-utl", | ||
"version": "4.8.0", | ||
"version": "4.9.0", | ||
"description": "A collection of JS utility functions to be used across several applications or libraries.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -38,6 +38,6 @@ /* | ||
* | ||
* @param {number} lat Latitude. | ||
* @param {number|string} lat Latitude. Either a number or a string which can be casted to a number. | ||
* @return {number} Latitude, clamped. | ||
*/ | ||
export const clampLat = lat => (lat < -90 ? -90 : lat > 90 ? 90 : lat); | ||
export const clampLat = lat => Number(lat < -90 ? -90 : lat > 90 ? 90 : lat); | ||
@@ -53,6 +53,7 @@ /** | ||
* | ||
* @param {number} lng Longitude. | ||
* @param {number|string} lng Longitude. Either a number or a string which can be casted to a number. | ||
* @return {number} lng Longitude, wrapped. | ||
*/ | ||
export const wrapLng = lng => { | ||
lng = Number(lng); | ||
while (lng > 180) { | ||
@@ -74,3 +75,3 @@ lng -= 360; | ||
* | ||
* @param {number} lat Latitude. | ||
* @param {number|string} lat Latitude. Either a number or a string which can be casted to a number. | ||
* @return {number} Latitude, normalized. | ||
@@ -96,3 +97,3 @@ */ | ||
* | ||
* @param {number} lng Longitude. | ||
* @param {number} lng Longitude. Either a number or a string which can be casted to a number. | ||
* @return {number} Longitude, normalized. | ||
@@ -99,0 +100,0 @@ */ |
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
1016642
13250