function n(n,t){return n===t||null!=n&&null!=t&&(Object.keys(n).length===Object.keys(t).length&&Object.entries(n).every((([n,e])=>t[n]===e)))}function t(n,t){if(n===t)return!0;if(null==n||null==t)return!1;if(t.length!==n.length)return!1;for(let e=0;e<n.length;e+=1)if(n[e]!==t[e])return!1;return!0}function e(n,t,e){return t===e.length-1?Array.from(new Set(e)):[]}function r(n,t=!1){return(e,r)=>!1===t?e[n].localeCompare(r[n]):r[n].localeCompare(e[n])}function u(n,t){const e={},r="string"==typeof t?n=>n[t]:t;for(const t of n){const n=r(t);if(null!=n){let r=e[n];null==r&&(r=[],e[n]=r),r.push(t)}}return e}function l(n,t){return Promise.all(n.map(t))}function o(n){return new Intl.NumberFormat("en",{style:"currency",currency:n}).formatToParts(0).find((n=>"currency"===n.type)).value.replace("$US","$")}function c(n,t){const e=Math.min(n,t),r=Math.max(n,t),u=[];for(let n=e;n<=r;n++)u.push(n);return u}function f(n,t){return Math.floor(Math.random()*(t-n+1)+n)}function i(n){if(0===n.length)return null;return n[f(0,n.length-1)]}function a(n=8,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"){if(0===t.length)throw new Error("Alphabet cannot be an empty string");const e=t.length-1;let r="";for(let u=0;u<n;u++)r+=t.charAt(f(0,e));return r}function h(n,t,e){return Math.min(Math.max(n,t??-1/0),e??1/0)}function s(n){return null==n||0===n.length}function m(n){return new Promise((t=>{setTimeout(t,n)}))}export{t as arrayEquals,l as asyncMap,h as clampNumber,o as getCurrencySymbol,u as groupBy,s as isStringEmpty,n as objectEquals,f as random,i as randomPick,a as randomString,c as range,m as sleep,r as sortBy,e as unique};
//# sourceMappingURL=utils.js.map
