scope360-core 0.0.589 → 0.0.591
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/scope360-core.js
CHANGED
|
@@ -30393,12 +30393,14 @@ const $e = (t, e = {
|
|
|
30393
30393
|
t >= 0 ? n = e.isPlus && t !== 0 ? "+" : "" : n = "-";
|
|
30394
30394
|
let s = Math.abs(t);
|
|
30395
30395
|
return e.isFixed && (s = at(s)), e.isPercentage ? Ih(`${n}${s}%`) : Ih(
|
|
30396
|
-
`${n}${Zo()}${at(
|
|
30396
|
+
`${n}${Zo()}${at(
|
|
30397
|
+
s * Nr()
|
|
30398
|
+
)}`
|
|
30397
30399
|
);
|
|
30398
30400
|
};
|
|
30399
|
-
function N4(t, e) {
|
|
30400
|
-
const
|
|
30401
|
-
return aL(n);
|
|
30401
|
+
function N4(t, e, n = !1) {
|
|
30402
|
+
const s = +new Date(e) - +new Date(t);
|
|
30403
|
+
return aL(s, n);
|
|
30402
30404
|
}
|
|
30403
30405
|
function sL() {
|
|
30404
30406
|
function t(r) {
|
|
@@ -30460,7 +30462,9 @@ function iL() {
|
|
|
30460
30462
|
return {
|
|
30461
30463
|
activeMarkets: [],
|
|
30462
30464
|
nextMarket: o.name,
|
|
30463
|
-
timeUntilNextOpen: Math.floor(
|
|
30465
|
+
timeUntilNextOpen: Math.floor(
|
|
30466
|
+
o.timeUntilOpenInSeconds / 60
|
|
30467
|
+
),
|
|
30464
30468
|
timeUntilNextOpenInSeconds: o.timeUntilOpenInSeconds
|
|
30465
30469
|
};
|
|
30466
30470
|
}
|
|
@@ -30469,11 +30473,16 @@ function iL() {
|
|
|
30469
30473
|
function xl(t, e) {
|
|
30470
30474
|
return t >= 1e3 || t <= -1e3 ? Ce(e, at(t / 1e3, 2) + "k", { repeat: 3 }) : Ce(e, at(t, 2), { repeat: 3 });
|
|
30471
30475
|
}
|
|
30472
|
-
function aL(t) {
|
|
30473
|
-
const
|
|
30476
|
+
function aL(t, e = !1) {
|
|
30477
|
+
const n = Math.floor(t / 864e5), s = Math.floor(
|
|
30474
30478
|
t % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)
|
|
30475
|
-
),
|
|
30476
|
-
|
|
30479
|
+
), i = Math.floor(t % (1e3 * 60 * 60) / (1e3 * 60)), a = Math.floor(t % (1e3 * 60) / 1e3);
|
|
30480
|
+
if (e)
|
|
30481
|
+
return n > 0 ? `${n} day${n > 1 ? "s" : ""} ${s} hr${s > 1 ? "s" : ""}` : s > 0 ? `${s} hr${s > 1 ? "s" : ""} ${i} min${i > 1 ? "s" : ""}` : i > 0 ? `${i} min${i > 1 ? "s" : ""} ${a} sec${a > 1 ? "s" : ""}` : `${a} sec`;
|
|
30482
|
+
{
|
|
30483
|
+
const r = [];
|
|
30484
|
+
return n > 0 && r.push(`${n}d`), s > 0 && r.push(`${s}h`), i > 0 && r.push(`${i}m`), a > 0 && r.push(`${a}s`), r.join(" ");
|
|
30485
|
+
}
|
|
30477
30486
|
}
|
|
30478
30487
|
function _v(t) {
|
|
30479
30488
|
const e = /^(.*?)(BTC|ETH|USDT|USD|USDC)$/, n = t.match(e);
|