pangea-helpers 1.0.12 → 1.0.13
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/animation-6901ffc4.cjs +1 -0
- package/dist/animation-af1322b3.js +24 -0
- package/dist/animation.cjs.js +1 -1
- package/dist/animation.es.js +1 -1
- package/dist/{coins-be0848b2.js → coin-251f810c.js} +29 -34
- package/dist/coin-fe1122f0.cjs +6 -0
- package/dist/coin.cjs.js +1 -0
- package/dist/coin.es.js +6 -0
- package/dist/{datetime-2175a7f7.cjs → datetime-9d947e21.cjs} +1 -1
- package/dist/{datetime-b20de5a0.js → datetime-dbf7ffd9.js} +4 -4
- package/dist/datetime.cjs.js +1 -1
- package/dist/datetime.es.js +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +10 -8
- package/dist/number-355de26b.js +14 -0
- package/dist/number-48ed1448.cjs +1 -0
- package/dist/number.cjs.js +1 -0
- package/dist/number.es.js +4 -0
- package/dist/types/coin.d.ts +1 -0
- package/dist/types/helpers/coin.d.ts +2 -0
- package/dist/types/helpers/datetime.d.ts +2 -2
- package/dist/types/helpers/number.d.ts +1 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/number.d.ts +1 -0
- package/dist/url-4fb04989.cjs +1 -0
- package/dist/url-9802dbc9.js +24 -0
- package/dist/url.cjs.js +1 -1
- package/dist/url.es.js +1 -1
- package/package.json +10 -5
- package/dist/animation-007b9ade.js +0 -20
- package/dist/animation-7f5dcead.cjs +0 -1
- package/dist/coins-57a3ecf7.cjs +0 -6
- package/dist/coins.cjs.js +0 -1
- package/dist/coins.es.js +0 -6
- package/dist/types/coins.d.ts +0 -1
- package/dist/types/helpers/coins.d.ts +0 -3
- package/dist/url-8700ca4a.cjs +0 -1
- package/dist/url-af97fdaa.js +0 -20
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function a(o,i,t="animate__"){try{return new Promise(r=>{const e=`${t}${i}`,n=document.querySelector(o);if(n){n.classList.add(`${t}animated`,e);const m=c=>{c.stopPropagation(),n==null||n.classList.remove(`${t}animated`,e),r("Animation ended")};n.addEventListener("animationend",m,{once:!0})}})}catch{throw Error("wrong environment")}}const s=Object.freeze(Object.defineProperty({__proto__:null,animateCSS:a},Symbol.toStringTag,{value:"Module"}));exports.animateCSS=a;exports.animation=s;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
function s(a, o, t = "animate__") {
|
|
2
|
+
try {
|
|
3
|
+
return new Promise((i) => {
|
|
4
|
+
const e = `${t}${o}`, n = document.querySelector(a);
|
|
5
|
+
if (n) {
|
|
6
|
+
n.classList.add(`${t}animated`, e);
|
|
7
|
+
const r = (m) => {
|
|
8
|
+
m.stopPropagation(), n == null || n.classList.remove(`${t}animated`, e), i("Animation ended");
|
|
9
|
+
};
|
|
10
|
+
n.addEventListener("animationend", r, { once: !0 });
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
} catch {
|
|
14
|
+
throw Error("wrong environment");
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
|
+
__proto__: null,
|
|
19
|
+
animateCSS: s
|
|
20
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
21
|
+
export {
|
|
22
|
+
c as a,
|
|
23
|
+
s as b
|
|
24
|
+
};
|
package/dist/animation.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./animation-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./animation-6901ffc4.cjs");exports.animateCSS=e.animateCSS;
|
package/dist/animation.es.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { g as je } from "./number-355de26b.js";
|
|
1
2
|
function me(e, t) {
|
|
2
3
|
return function() {
|
|
3
4
|
return e.apply(t, arguments);
|
|
@@ -25,7 +26,7 @@ const Me = I("string"), R = I("function"), Ee = I("number"), q = (e) => e !== nu
|
|
|
25
26
|
return e && (typeof FormData == "function" && e instanceof FormData || R(e.append) && ((t = H(e)) === "formdata" || // detect form-data instance
|
|
26
27
|
t === "object" && R(e.toString) && e.toString() === "[object FormData]"));
|
|
27
28
|
}, Xe = A("URLSearchParams"), ve = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
28
|
-
function
|
|
29
|
+
function B(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
29
30
|
if (e === null || typeof e > "u")
|
|
30
31
|
return;
|
|
31
32
|
let r, s;
|
|
@@ -55,10 +56,10 @@ function K() {
|
|
|
55
56
|
L(t[o]) && L(r) ? t[o] = K(t[o], r) : L(r) ? t[o] = K({}, r) : C(r) ? t[o] = r.slice() : t[o] = r;
|
|
56
57
|
};
|
|
57
58
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
58
|
-
arguments[r] &&
|
|
59
|
+
arguments[r] && B(arguments[r], n);
|
|
59
60
|
return t;
|
|
60
61
|
}
|
|
61
|
-
const Qe = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
62
|
+
const Qe = (e, t, n, { allOwnKeys: r } = {}) => (B(t, (s, o) => {
|
|
62
63
|
n && R(s) ? e[o] = me(s, n) : e[o] = s;
|
|
63
64
|
}, { allOwnKeys: r }), e), Ze = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ye = (e, t, n, r) => {
|
|
64
65
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -111,7 +112,7 @@ const Qe = (e, t, n, { allOwnKeys: r } = {}) => (D(t, (s, o) => {
|
|
|
111
112
|
}
|
|
112
113
|
), se = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ct = A("RegExp"), Re = (e, t) => {
|
|
113
114
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
114
|
-
|
|
115
|
+
B(n, (s, o) => {
|
|
115
116
|
let i;
|
|
116
117
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
117
118
|
}), Object.defineProperties(e, r);
|
|
@@ -160,7 +161,7 @@ const mt = (e) => {
|
|
|
160
161
|
if (!("toJSON" in r)) {
|
|
161
162
|
t[s] = r;
|
|
162
163
|
const o = C(r) ? [] : {};
|
|
163
|
-
return
|
|
164
|
+
return B(r, (i, c) => {
|
|
164
165
|
const p = n(i, s + 1);
|
|
165
166
|
!F(p) && (o[c] = p);
|
|
166
167
|
}), t[s] = void 0, o;
|
|
@@ -190,7 +191,7 @@ const mt = (e) => {
|
|
|
190
191
|
isURLSearchParams: Xe,
|
|
191
192
|
isTypedArray: rt,
|
|
192
193
|
isFileList: We,
|
|
193
|
-
forEach:
|
|
194
|
+
forEach: B,
|
|
194
195
|
merge: K,
|
|
195
196
|
extend: Qe,
|
|
196
197
|
trim: ve,
|
|
@@ -319,10 +320,10 @@ function M(e, t, n) {
|
|
|
319
320
|
if (a.endsWith(d, "{}"))
|
|
320
321
|
d = r ? d : d.slice(0, -2), f = JSON.stringify(f);
|
|
321
322
|
else if (a.isArray(f) && wt(f) || (a.isFileList(f) || a.endsWith(d, "[]")) && (w = a.toArray(f)))
|
|
322
|
-
return d = ge(d), w.forEach(function(x,
|
|
323
|
+
return d = ge(d), w.forEach(function(x, ke) {
|
|
323
324
|
!(a.isUndefined(x) || x === null) && t.append(
|
|
324
325
|
// eslint-disable-next-line no-nested-ternary
|
|
325
|
-
i === !0 ? ie([d],
|
|
326
|
+
i === !0 ? ie([d], ke, o) : i === null ? d : d + "[]",
|
|
326
327
|
h(x)
|
|
327
328
|
);
|
|
328
329
|
}), !1;
|
|
@@ -482,7 +483,7 @@ function _t(e, t) {
|
|
|
482
483
|
function Ft(e) {
|
|
483
484
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
484
485
|
}
|
|
485
|
-
function
|
|
486
|
+
function Bt(e) {
|
|
486
487
|
const t = {}, n = Object.keys(e);
|
|
487
488
|
let r;
|
|
488
489
|
const s = n.length;
|
|
@@ -497,7 +498,7 @@ function _e(e) {
|
|
|
497
498
|
if (i === "__proto__")
|
|
498
499
|
return !0;
|
|
499
500
|
const c = Number.isFinite(+i), p = o >= n.length;
|
|
500
|
-
return i = !i && a.isArray(s) ? s.length : i, p ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] =
|
|
501
|
+
return i = !i && a.isArray(s) ? s.length : i, p ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Bt(s[i])), !c);
|
|
501
502
|
}
|
|
502
503
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
503
504
|
const n = {};
|
|
@@ -507,7 +508,7 @@ function _e(e) {
|
|
|
507
508
|
}
|
|
508
509
|
return null;
|
|
509
510
|
}
|
|
510
|
-
function
|
|
511
|
+
function Dt(e, t, n) {
|
|
511
512
|
if (a.isString(e))
|
|
512
513
|
try {
|
|
513
514
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -543,7 +544,7 @@ const ee = {
|
|
|
543
544
|
);
|
|
544
545
|
}
|
|
545
546
|
}
|
|
546
|
-
return o || s ? (n.setContentType("application/json", !1),
|
|
547
|
+
return o || s ? (n.setContentType("application/json", !1), Dt(t)) : t;
|
|
547
548
|
}],
|
|
548
549
|
transformResponse: [function(t) {
|
|
549
550
|
const n = this.transitional || ee.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
@@ -779,10 +780,10 @@ function V(e, t) {
|
|
|
779
780
|
function Fe(e) {
|
|
780
781
|
return !!(e && e.__CANCEL__);
|
|
781
782
|
}
|
|
782
|
-
function
|
|
783
|
+
function D(e, t, n) {
|
|
783
784
|
m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
784
785
|
}
|
|
785
|
-
a.inherits(
|
|
786
|
+
a.inherits(D, m, {
|
|
786
787
|
__CANCEL__: !0
|
|
787
788
|
});
|
|
788
789
|
function qt(e, t, n) {
|
|
@@ -828,7 +829,7 @@ function zt(e) {
|
|
|
828
829
|
function Jt(e, t) {
|
|
829
830
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
830
831
|
}
|
|
831
|
-
function
|
|
832
|
+
function Be(e, t) {
|
|
832
833
|
return e && !zt(t) ? Jt(e, t) : t;
|
|
833
834
|
}
|
|
834
835
|
const $t = O.hasStandardBrowserEnv ? (
|
|
@@ -923,7 +924,7 @@ const Kt = typeof XMLHttpRequest < "u", Gt = Kt && function(e) {
|
|
|
923
924
|
const d = e.auth.username || "", b = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
924
925
|
o.set("Authorization", "Basic " + btoa(d + ":" + b));
|
|
925
926
|
}
|
|
926
|
-
const E =
|
|
927
|
+
const E = Be(e.baseURL, e.url);
|
|
927
928
|
u.open(e.method.toUpperCase(), Ne(E, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
|
|
928
929
|
function S() {
|
|
929
930
|
if (!u)
|
|
@@ -966,7 +967,7 @@ const Kt = typeof XMLHttpRequest < "u", Gt = Kt && function(e) {
|
|
|
966
967
|
s === void 0 && o.setContentType(null), "setRequestHeader" in u && a.forEach(o.toJSON(), function(b, w) {
|
|
967
968
|
u.setRequestHeader(w, b);
|
|
968
969
|
}), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", le(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", le(e.onUploadProgress)), (e.cancelToken || e.signal) && (p = (d) => {
|
|
969
|
-
u && (r(!d || d.type ? new
|
|
970
|
+
u && (r(!d || d.type ? new D(null, e, u) : d), u.abort(), u = null);
|
|
970
971
|
}, e.cancelToken && e.cancelToken.subscribe(p), e.signal && (e.signal.aborted ? p() : e.signal.addEventListener("abort", p)));
|
|
971
972
|
const f = Vt(E);
|
|
972
973
|
if (f && O.protocols.indexOf(f) === -1) {
|
|
@@ -988,7 +989,7 @@ a.forEach(X, (e, t) => {
|
|
|
988
989
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
989
990
|
}
|
|
990
991
|
});
|
|
991
|
-
const fe = (e) => `- ${e}`, Xt = (e) => a.isFunction(e) || e === null || e === !1,
|
|
992
|
+
const fe = (e) => `- ${e}`, Xt = (e) => a.isFunction(e) || e === null || e === !1, De = {
|
|
992
993
|
getAdapter: (e) => {
|
|
993
994
|
e = a.isArray(e) ? e : [e];
|
|
994
995
|
const { length: t } = e;
|
|
@@ -1021,13 +1022,13 @@ const fe = (e) => `- ${e}`, Xt = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1021
1022
|
};
|
|
1022
1023
|
function W(e) {
|
|
1023
1024
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1024
|
-
throw new
|
|
1025
|
+
throw new D(null, e);
|
|
1025
1026
|
}
|
|
1026
1027
|
function de(e) {
|
|
1027
1028
|
return W(e), e.headers = T.from(e.headers), e.data = V.call(
|
|
1028
1029
|
e,
|
|
1029
1030
|
e.transformRequest
|
|
1030
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1031
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), De.getAdapter(e.adapter || te.adapter)(e).then(function(r) {
|
|
1031
1032
|
return W(e), r.data = V.call(
|
|
1032
1033
|
e,
|
|
1033
1034
|
e.transformResponse,
|
|
@@ -1244,7 +1245,7 @@ class j {
|
|
|
1244
1245
|
}
|
|
1245
1246
|
getUri(t) {
|
|
1246
1247
|
t = P(this.defaults, t);
|
|
1247
|
-
const n =
|
|
1248
|
+
const n = Be(t.baseURL, t.url);
|
|
1248
1249
|
return Ne(n, t.params, t.paramsSerializer);
|
|
1249
1250
|
}
|
|
1250
1251
|
}
|
|
@@ -1298,7 +1299,7 @@ class re {
|
|
|
1298
1299
|
r.unsubscribe(o);
|
|
1299
1300
|
}, i;
|
|
1300
1301
|
}, t(function(o, i, c) {
|
|
1301
|
-
r.reason || (r.reason = new
|
|
1302
|
+
r.reason || (r.reason = new D(o, i, c), n(r.reason));
|
|
1302
1303
|
});
|
|
1303
1304
|
}
|
|
1304
1305
|
/**
|
|
@@ -1427,7 +1428,7 @@ function Ue(e) {
|
|
|
1427
1428
|
}
|
|
1428
1429
|
const y = Ue(te);
|
|
1429
1430
|
y.Axios = k;
|
|
1430
|
-
y.CanceledError =
|
|
1431
|
+
y.CanceledError = D;
|
|
1431
1432
|
y.CancelToken = Qt;
|
|
1432
1433
|
y.isCancel = Fe;
|
|
1433
1434
|
y.VERSION = Le;
|
|
@@ -1442,30 +1443,24 @@ y.isAxiosError = Yt;
|
|
|
1442
1443
|
y.mergeConfig = P;
|
|
1443
1444
|
y.AxiosHeaders = T;
|
|
1444
1445
|
y.formToJSON = (e) => _e(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1445
|
-
y.getAdapter =
|
|
1446
|
+
y.getAdapter = De.getAdapter;
|
|
1446
1447
|
y.HttpStatusCode = en;
|
|
1447
1448
|
y.default = y;
|
|
1448
1449
|
const tn = y;
|
|
1449
|
-
function ke(e, t) {
|
|
1450
|
-
const n = e.toLocaleString(void 0, { maximumFractionDigits: t });
|
|
1451
|
-
return n === "-0" ? "0" : n;
|
|
1452
|
-
}
|
|
1453
1450
|
function nn(e, t, n, r = !0) {
|
|
1454
|
-
let s =
|
|
1451
|
+
let s = je(e, t);
|
|
1455
1452
|
return r && (s = s += ` ${n}`), s;
|
|
1456
1453
|
}
|
|
1457
1454
|
async function rn() {
|
|
1458
1455
|
return (await tn.get("https://dolarapi.com/v1/dolares/blue")).data.venta;
|
|
1459
1456
|
}
|
|
1460
|
-
const
|
|
1457
|
+
const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1461
1458
|
__proto__: null,
|
|
1462
|
-
|
|
1463
|
-
getAmountToDisplay: nn,
|
|
1459
|
+
getAmountInString: nn,
|
|
1464
1460
|
getDollarValue: rn
|
|
1465
1461
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1466
1462
|
export {
|
|
1467
1463
|
rn as a,
|
|
1468
|
-
|
|
1469
|
-
ke as d,
|
|
1464
|
+
on as c,
|
|
1470
1465
|
nn as g
|
|
1471
1466
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const Ie=require("./number-48ed1448.cjs");function me(e,t){return function(){return e.apply(t,arguments)}}const{toString:qe}=Object.prototype,{getPrototypeOf:Z}=Object,H=(e=>t=>{const n=qe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),A=e=>(e=e.toLowerCase(),t=>H(t)===e),I=e=>t=>typeof t===e,{isArray:C}=Array,F=I("undefined");function Me(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ye=A("ArrayBuffer");function ze(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ye(e.buffer),t}const Je=I("string"),R=I("function"),Ee=I("number"),q=e=>e!==null&&typeof e=="object",$e=e=>e===!0||e===!1,L=e=>{if(H(e)!=="object")return!1;const t=Z(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ve=A("Date"),We=A("File"),Ke=A("Blob"),Ge=A("FileList"),Xe=e=>q(e)&&R(e.pipe),ve=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=H(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},Qe=A("URLSearchParams"),Ze=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function D(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),C(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function be(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const we=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Se=e=>!F(e)&&e!==we;function K(){const{caseless:e}=Se(this)&&this||{},t={},n=(r,s)=>{const o=e&&be(t,s)||s;L(t[o])&&L(r)?t[o]=K(t[o],r):L(r)?t[o]=K({},r):C(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&D(arguments[r],n);return t}const Ye=(e,t,n,{allOwnKeys:r}={})=>(D(t,(s,o)=>{n&&R(s)?e[o]=me(s,n):e[o]=s},{allOwnKeys:r}),e),et=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},nt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Z(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},st=e=>{if(!e)return null;if(C(e))return e;let t=e.length;if(!Ee(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ot=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Z(Uint8Array)),it=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},at=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ct=A("HTMLFormElement"),ut=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),se=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lt=A("RegExp"),Re=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};D(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},ft=e=>{Re(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},dt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return C(e)?r(e):r(String(e).split(t)),n},pt=()=>{},ht=(e,t)=>(e=+e,Number.isFinite(e)?e:t),J="abcdefghijklmnopqrstuvwxyz",oe="0123456789",Oe={DIGIT:oe,ALPHA:J,ALPHA_DIGIT:J+J.toUpperCase()+oe},mt=(e=16,t=Oe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function yt(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Et=e=>{const t=new Array(10),n=(r,s)=>{if(q(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=C(r)?[]:{};return D(r,(i,c)=>{const p=n(i,s+1);!F(p)&&(o[c]=p)}),t[s]=void 0,o}}return r};return n(e,0)},bt=A("AsyncFunction"),wt=e=>e&&(q(e)||R(e))&&R(e.then)&&R(e.catch),a={isArray:C,isArrayBuffer:ye,isBuffer:Me,isFormData:ve,isArrayBufferView:ze,isString:Je,isNumber:Ee,isBoolean:$e,isObject:q,isPlainObject:L,isUndefined:F,isDate:Ve,isFile:We,isBlob:Ke,isRegExp:lt,isFunction:R,isStream:Xe,isURLSearchParams:Qe,isTypedArray:ot,isFileList:Ge,forEach:D,merge:K,extend:Ye,trim:Ze,stripBOM:et,inherits:tt,toFlatObject:nt,kindOf:H,kindOfTest:A,endsWith:rt,toArray:st,forEachEntry:it,matchAll:at,isHTMLForm:ct,hasOwnProperty:se,hasOwnProp:se,reduceDescriptors:Re,freezeMethods:ft,toObjectSet:dt,toCamelCase:ut,noop:pt,toFiniteNumber:ht,findKey:be,global:we,isContextDefined:Se,ALPHABET:Oe,generateString:mt,isSpecCompliantForm:yt,toJSONObject:Et,isAsyncFn:bt,isThenable:wt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ae=m.prototype,Te={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Te[e]={value:e}});Object.defineProperties(m,Te);Object.defineProperty(Ae,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(Ae);return a.toFlatObject(e,i,function(p){return p!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const St=null;function G(e){return a.isPlainObject(e)||a.isArray(e)}function ge(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ie(e,t,n){return e?e.concat(t).map(function(s,o){return s=ge(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Rt(e){return a.isArray(e)&&!e.some(G)}const Ot=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function M(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,b){return!a.isUndefined(b[d])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function h(f){if(f===null)return"";if(a.isDate(f))return f.toISOString();if(!p&&a.isBlob(f))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(f)||a.isTypedArray(f)?p&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function l(f,d,b){let w=f;if(f&&!b&&typeof f=="object"){if(a.endsWith(d,"{}"))d=r?d:d.slice(0,-2),f=JSON.stringify(f);else if(a.isArray(f)&&Rt(f)||(a.isFileList(f)||a.endsWith(d,"[]"))&&(w=a.toArray(f)))return d=ge(d),w.forEach(function(x,He){!(a.isUndefined(x)||x===null)&&t.append(i===!0?ie([d],He,o):i===null?d:d+"[]",h(x))}),!1}return G(f)?!0:(t.append(ie(b,d,o),h(f)),!1)}const u=[],E=Object.assign(Ot,{defaultVisitor:l,convertValue:h,isVisitable:G});function S(f,d){if(!a.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+d.join("."));u.push(f),a.forEach(f,function(w,g){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(g)?g.trim():g,d,E))===!0&&S(w,d?d.concat(g):[g])}),u.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function ae(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Y(e,t){this._pairs=[],e&&M(e,this,t)}const xe=Y.prototype;xe.append=function(t,n){this._pairs.push([t,n])};xe.toString=function(t){const n=t?function(r){return t.call(this,r,ae)}:ae;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function At(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ne(e,t,n){if(!t)return e;const r=n&&n.encode||At,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new Y(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Tt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ce=Tt,Pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gt=typeof URLSearchParams<"u"?URLSearchParams:Y,xt=typeof FormData<"u"?FormData:null,Nt=typeof Blob<"u"?Blob:null,Pt={isBrowser:!0,classes:{URLSearchParams:gt,FormData:xt,Blob:Nt},protocols:["http","https","file","blob","url","data"]},Ce=typeof window<"u"&&typeof document<"u",Ct=(e=>Ce&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),_t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ft=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ce,hasStandardBrowserEnv:Ct,hasStandardBrowserWebWorkerEnv:_t},Symbol.toStringTag,{value:"Module"})),O={...Ft,...Pt};function Dt(e,t){return M(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Bt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Lt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function _e(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),p=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,p?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Lt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Bt(r),s,n,0)}),n}return null}function Ut(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ee={transitional:Pe,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(_e(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Dt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return M(c?{"files[]":t}:t,p&&new p,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Ut(t)):t}],transformResponse:[function(t){const n=this.transitional||ee.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ee.headers[e]={}});const te=ee,kt=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jt=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&kt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ue=Symbol("internals");function _(e){return e&&String(e).trim().toLowerCase()}function U(e){return e===!1||e==null?e:a.isArray(e)?e.map(U):String(e)}function Ht(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const It=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function qt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Mt(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class z{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,p,h){const l=_(p);if(!l)throw new Error("header name must be a non-empty string");const u=a.findKey(s,l);(!u||s[u]===void 0||h===!0||h===void 0&&s[u]!==!1)&&(s[u||p]=U(c))}const i=(c,p)=>a.forEach(c,(h,l)=>o(h,l,p));return a.isPlainObject(t)||t instanceof this.constructor?i(t,n):a.isString(t)&&(t=t.trim())&&!It(t)?i(jt(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=_(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Ht(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||$(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=_(i),i){const c=a.findKey(r,i);c&&(!n||$(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||$(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=U(s),delete n[o];return}const c=t?qt(o):String(o).trim();c!==o&&delete n[o],n[c]=U(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ue]=this[ue]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=_(i);r[c]||(Mt(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}z.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(z.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(z);const T=z;function V(e,t){const n=this||te,r=t||n,s=T.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Fe(e){return!!(e&&e.__CANCEL__)}function B(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(B,m,{__CANCEL__:!0});function zt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Jt=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function De(e,t){return e&&!$t(t)?Vt(e,t):t}const Wt=O.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const c=a.isString(i)?s(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function Kt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Gt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(p){const h=Date.now(),l=r[o];i||(i=h),n[s]=p,r[s]=h;let u=o,E=0;for(;u!==s;)E+=n[u++],u=u%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),h-i<t)return;const S=l&&h-l;return S?Math.round(E*1e3/S):void 0}}function le(e,t){let n=0;const r=Gt(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,c=o-n,p=r(c),h=o<=i;n=o;const l={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:p||void 0,estimated:p&&i&&h?(i-o)/p:void 0,event:s};l[t?"download":"upload"]=!0,e(l)}}const Xt=typeof XMLHttpRequest<"u",vt=Xt&&function(e){return new Promise(function(n,r){let s=e.data;const o=T.from(e.headers).normalize();let{responseType:i,withXSRFToken:c}=e,p;function h(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}let l;if(a.isFormData(s)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((l=o.getContentType())!==!1){const[d,...b]=l?l.split(";").map(w=>w.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...b].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(d+":"+b))}const E=De(e.baseURL,e.url);u.open(e.method.toUpperCase(),Ne(E,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function S(){if(!u)return;const d=T.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:d,config:e,request:u};zt(function(x){n(x),h()},function(x){r(x),h()},w),u=null}if("onloadend"in u?u.onloadend=S:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(S)},u.onabort=function(){u&&(r(new m("Request aborted",m.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||Pe;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new m(b,w.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,u)),u=null},O.hasStandardBrowserEnv&&(c&&a.isFunction(c)&&(c=c(e)),c||c!==!1&&Wt(E))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&Jt.read(e.xsrfCookieName);d&&o.set(e.xsrfHeaderName,d)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&a.forEach(o.toJSON(),function(b,w){u.setRequestHeader(w,b)}),a.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",le(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",le(e.onUploadProgress)),(e.cancelToken||e.signal)&&(p=d=>{u&&(r(!d||d.type?new B(null,e,u):d),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p)));const f=Kt(E);if(f&&O.protocols.indexOf(f)===-1){r(new m("Unsupported protocol "+f+":",m.ERR_BAD_REQUEST,e));return}u.send(s||null)})},X={http:St,xhr:vt};a.forEach(X,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const fe=e=>`- ${e}`,Qt=e=>a.isFunction(e)||e===null||e===!1,Be={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Qt(n)&&(r=X[(i=String(n)).toLowerCase()],r===void 0))throw new m(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,p])=>`adapter ${c} `+(p===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
4
|
+
`+o.map(fe).join(`
|
|
5
|
+
`):" "+fe(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:X};function W(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new B(null,e)}function de(e){return W(e),e.headers=T.from(e.headers),e.data=V.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Be.getAdapter(e.adapter||te.adapter)(e).then(function(r){return W(e),r.data=V.call(e,e.transformResponse,r),r.headers=T.from(r.headers),r},function(r){return Fe(r)||(W(e),r&&r.response&&(r.response.data=V.call(e,e.transformResponse,r.response),r.response.headers=T.from(r.response.headers))),Promise.reject(r)})}const pe=e=>e instanceof T?{...e}:e;function P(e,t){t=t||{};const n={};function r(h,l,u){return a.isPlainObject(h)&&a.isPlainObject(l)?a.merge.call({caseless:u},h,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(h,l,u){if(a.isUndefined(l)){if(!a.isUndefined(h))return r(void 0,h,u)}else return r(h,l,u)}function o(h,l){if(!a.isUndefined(l))return r(void 0,l)}function i(h,l){if(a.isUndefined(l)){if(!a.isUndefined(h))return r(void 0,h)}else return r(void 0,l)}function c(h,l,u){if(u in t)return r(h,l);if(u in e)return r(void 0,h)}const p={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(h,l)=>s(pe(h),pe(l),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=p[l]||s,E=u(e[l],t[l],l);a.isUndefined(E)&&u!==c||(n[l]=E)}),n}const Le="1.6.8",ne={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ne[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const he={};ne.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Le+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!he[i]&&(he[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function Zt(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],p=c===void 0||i(c,o,e);if(p!==!0)throw new m("option "+o+" must be "+p,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const v={assertOptions:Zt,validators:ne},N=v.validators;class j{constructor(t){this.defaults=t,this.interceptors={request:new ce,response:new ce}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
+
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=P(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&v.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:v.assertOptions(s,{encode:N.function,serialize:N.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=T.concat(i,o);const c=[];let p=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(p=p&&d.synchronous,c.unshift(d.fulfilled,d.rejected))});const h=[];this.interceptors.response.forEach(function(d){h.push(d.fulfilled,d.rejected)});let l,u=0,E;if(!p){const f=[de.bind(this),void 0];for(f.unshift.apply(f,c),f.push.apply(f,h),E=f.length,l=Promise.resolve(n);u<E;)l=l.then(f[u++],f[u++]);return l}E=c.length;let S=n;for(u=0;u<E;){const f=c[u++],d=c[u++];try{S=f(S)}catch(b){d.call(this,b);break}}try{l=de.call(this,S)}catch(f){return Promise.reject(f)}for(u=0,E=h.length;u<E;)l=l.then(h[u++],h[u++]);return l}getUri(t){t=P(this.defaults,t);const n=De(t.baseURL,t.url);return Ne(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){j.prototype[t]=function(n,r){return this.request(P(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(P(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}j.prototype[t]=n(),j.prototype[t+"Form"]=n(!0)});const k=j;class re{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new B(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new re(function(s){t=s}),cancel:t}}}const Yt=re;function en(e){return function(n){return e.apply(null,n)}}function tn(e){return a.isObject(e)&&e.isAxiosError===!0}const Q={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Q).forEach(([e,t])=>{Q[t]=e});const nn=Q;function Ue(e){const t=new k(e),n=me(k.prototype.request,t);return a.extend(n,k.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ue(P(e,s))},n}const y=Ue(te);y.Axios=k;y.CanceledError=B;y.CancelToken=Yt;y.isCancel=Fe;y.VERSION=Le;y.toFormData=M;y.AxiosError=m;y.Cancel=y.CanceledError;y.all=function(t){return Promise.all(t)};y.spread=en;y.isAxiosError=tn;y.mergeConfig=P;y.AxiosHeaders=T;y.formToJSON=e=>_e(a.isHTMLForm(e)?new FormData(e):e);y.getAdapter=Be.getAdapter;y.HttpStatusCode=nn;y.default=y;const rn=y;function ke(e,t,n,r=!0){let s=Ie.getValueInString(e,t);return r&&(s=s+=` ${n}`),s}async function je(){return(await rn.get("https://dolarapi.com/v1/dolares/blue")).data.venta}const sn=Object.freeze(Object.defineProperty({__proto__:null,getAmountInString:ke,getDollarValue:je},Symbol.toStringTag,{value:"Module"}));exports.coin=sn;exports.getAmountInString=ke;exports.getDollarValue=je;
|
package/dist/coin.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./coin-fe1122f0.cjs");require("./number-48ed1448.cjs");exports.getAmountInString=e.getAmountInString;exports.getDollarValue=e.getDollarValue;
|
package/dist/coin.es.js
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function o(e,r){const t={...{format:"short",withTime:!0},...r};if(!e)return"-";const n={weekday:t.format==="numbers"?void 0:t.format,year:"numeric",month:t.format==="numbers"?"2-digit":t.format,day:"2-digit",hour:t.withTime?"2-digit":void 0,minute:t.withTime?"2-digit":void 0,hour12:!1},i=e.toLocaleString("es-ES",n);return i.charAt(0).toUpperCase()+i.slice(1)}const a=Object.freeze(Object.defineProperty({__proto__:null,
|
|
1
|
+
"use strict";function o(e,r){const t={...{format:"short",withTime:!0},...r};if(!e)return"-";const n={weekday:t.format==="numbers"?void 0:t.format,year:"numeric",month:t.format==="numbers"?"2-digit":t.format,day:"2-digit",hour:t.withTime?"2-digit":void 0,minute:t.withTime?"2-digit":void 0,hour12:!1},i=e.toLocaleString("es-ES",n);return i.charAt(0).toUpperCase()+i.slice(1)}const a=Object.freeze(Object.defineProperty({__proto__:null,getDatetimeInString:o},Symbol.toStringTag,{value:"Module"}));exports.datetime=a;exports.getDatetimeInString=o;
|
|
@@ -19,11 +19,11 @@ function n(e, o) {
|
|
|
19
19
|
}, i = e.toLocaleString("es-ES", r);
|
|
20
20
|
return i.charAt(0).toUpperCase() + i.slice(1);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
23
|
__proto__: null,
|
|
24
|
-
|
|
24
|
+
getDatetimeInString: n
|
|
25
25
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26
26
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
f as d,
|
|
28
|
+
n as g
|
|
29
29
|
};
|
package/dist/datetime.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./datetime-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./datetime-9d947e21.cjs");exports.getDatetimeInString=e.getDatetimeInString;
|
package/dist/datetime.es.js
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./animation-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./animation-6901ffc4.cjs"),r=require("./coin-fe1122f0.cjs"),t=require("./datetime-9d947e21.cjs"),i=require("./number-48ed1448.cjs"),n=require("./object-d8cc8ea7.cjs"),o=require("./url-4fb04989.cjs");exports.animationHelpers=e.animation;exports.coinHelpers=r.coin;exports.datetimeHelpers=t.datetime;exports.numberHelpers=i.number;exports.objectHelpers=n.object;exports.urlHelpers=o.url;
|
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { a as o } from "./animation-
|
|
2
|
-
import { c as
|
|
3
|
-
import { d as t } from "./datetime-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { a as o } from "./animation-af1322b3.js";
|
|
2
|
+
import { c as s } from "./coin-251f810c.js";
|
|
3
|
+
import { d as t } from "./datetime-dbf7ffd9.js";
|
|
4
|
+
import { n as l } from "./number-355de26b.js";
|
|
5
|
+
import { o as x } from "./object-7a404c78.js";
|
|
6
|
+
import { u as n } from "./url-9802dbc9.js";
|
|
6
7
|
export {
|
|
7
8
|
o as animationHelpers,
|
|
8
|
-
|
|
9
|
+
s as coinHelpers,
|
|
9
10
|
t as datetimeHelpers,
|
|
10
|
-
l as
|
|
11
|
-
x as
|
|
11
|
+
l as numberHelpers,
|
|
12
|
+
x as objectHelpers,
|
|
13
|
+
n as urlHelpers
|
|
12
14
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function o(t, n) {
|
|
2
|
+
const e = t.toLocaleString(void 0, {
|
|
3
|
+
maximumFractionDigits: n
|
|
4
|
+
});
|
|
5
|
+
return e === "-0" ? "0" : e;
|
|
6
|
+
}
|
|
7
|
+
const r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
|
+
__proto__: null,
|
|
9
|
+
getValueInString: o
|
|
10
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
11
|
+
export {
|
|
12
|
+
o as g,
|
|
13
|
+
r as n
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function t(n,r){const e=n.toLocaleString(void 0,{maximumFractionDigits:r});return e==="-0"?"0":e}const o=Object.freeze(Object.defineProperty({__proto__:null,getValueInString:t},Symbol.toStringTag,{value:"Module"}));exports.getValueInString=t;exports.number=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./number-48ed1448.cjs");exports.getValueInString=e.getValueInString;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './helpers/coin'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
type
|
|
1
|
+
type GetDatetimeInStringConfig = {
|
|
2
2
|
format?: 'numbers' | 'short' | 'long';
|
|
3
3
|
withTime?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function getDatetimeInString(datetime: Date, config?: GetDatetimeInStringConfig): string;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getValueInString(value: number, maximumFractionDigits: number): string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as animationHelpers from "./helpers/animation";
|
|
2
|
-
import * as
|
|
2
|
+
import * as coinHelpers from "./helpers/coin";
|
|
3
3
|
import * as datetimeHelpers from "./helpers/datetime";
|
|
4
|
+
import * as numberHelpers from "./helpers/number";
|
|
4
5
|
import * as objectHelpers from "./helpers/object";
|
|
5
6
|
import * as urlHelpers from "./helpers/url";
|
|
6
|
-
export { animationHelpers,
|
|
7
|
+
export { animationHelpers, coinHelpers, datetimeHelpers, numberHelpers, objectHelpers, urlHelpers, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './helpers/number'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function o(r){try{if(!r)return!1;let t=r;const n=["http://","https://"];for(const e of n)if(r.startsWith(e)){t=r.replace(e,"");break}return t=t.replace(/:(\d*)$/,""),window.location.href.includes(t)}catch{throw Error("wrong environment")}}const l=Object.freeze(Object.defineProperty({__proto__:null,isCurrentUrl:o},Symbol.toStringTag,{value:"Module"}));exports.isCurrentUrl=o;exports.url=l;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
function n(t) {
|
|
2
|
+
try {
|
|
3
|
+
if (!t)
|
|
4
|
+
return !1;
|
|
5
|
+
let r = t;
|
|
6
|
+
const e = ["http://", "https://"];
|
|
7
|
+
for (const o of e)
|
|
8
|
+
if (t.startsWith(o)) {
|
|
9
|
+
r = t.replace(o, "");
|
|
10
|
+
break;
|
|
11
|
+
}
|
|
12
|
+
return r = r.replace(/:(\d*)$/, ""), window.location.href.includes(r);
|
|
13
|
+
} catch {
|
|
14
|
+
throw Error("wrong environment");
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
|
+
__proto__: null,
|
|
19
|
+
isCurrentUrl: n
|
|
20
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
21
|
+
export {
|
|
22
|
+
n as i,
|
|
23
|
+
c as u
|
|
24
|
+
};
|
package/dist/url.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./url-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./url-4fb04989.cjs");exports.isCurrentUrl=r.isCurrentUrl;
|
package/dist/url.es.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pangea-helpers",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -19,16 +19,21 @@
|
|
|
19
19
|
"import": "./dist/animation.es.js",
|
|
20
20
|
"types": "./dist/types/helpers/animation.d.ts"
|
|
21
21
|
},
|
|
22
|
-
"./
|
|
23
|
-
"require": "./dist/
|
|
24
|
-
"import": "./dist/
|
|
25
|
-
"types": "./dist/types/helpers/
|
|
22
|
+
"./coin": {
|
|
23
|
+
"require": "./dist/coin.cjs.js",
|
|
24
|
+
"import": "./dist/coin.es.js",
|
|
25
|
+
"types": "./dist/types/helpers/coin.d.ts"
|
|
26
26
|
},
|
|
27
27
|
"./datetime": {
|
|
28
28
|
"require": "./dist/datetime.cjs.js",
|
|
29
29
|
"import": "./dist/datetime.es.js",
|
|
30
30
|
"types": "./dist/types/helpers/datetime.d.ts"
|
|
31
31
|
},
|
|
32
|
+
"./number": {
|
|
33
|
+
"require": "./dist/number.cjs.js",
|
|
34
|
+
"import": "./dist/number.es.js",
|
|
35
|
+
"types": "./dist/types/helpers/number.d.ts"
|
|
36
|
+
},
|
|
32
37
|
"./object": {
|
|
33
38
|
"require": "./dist/object.cjs.js",
|
|
34
39
|
"import": "./dist/object.es.js",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function d(a, o, e = "animate__") {
|
|
2
|
-
return new Promise((i) => {
|
|
3
|
-
const t = `${e}${o}`, n = document.querySelector(a);
|
|
4
|
-
if (n) {
|
|
5
|
-
n.classList.add(`${e}animated`, t);
|
|
6
|
-
const s = (m) => {
|
|
7
|
-
m.stopPropagation(), n == null || n.classList.remove(`${e}animated`, t), i("Animation ended");
|
|
8
|
-
};
|
|
9
|
-
n.addEventListener("animationend", s, { once: !0 });
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
const r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14
|
-
__proto__: null,
|
|
15
|
-
animateCSS: d
|
|
16
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
-
export {
|
|
18
|
-
r as a,
|
|
19
|
-
d as b
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function a(i,o,t="animate__"){return new Promise(m=>{const e=`${t}${o}`,n=document.querySelector(i);if(n){n.classList.add(`${t}animated`,e);const s=c=>{c.stopPropagation(),n==null||n.classList.remove(`${t}animated`,e),m("Animation ended")};n.addEventListener("animationend",s,{once:!0})}})}const d=Object.freeze(Object.defineProperty({__proto__:null,animateCSS:a},Symbol.toStringTag,{value:"Module"}));exports.animateCSS=a;exports.animation=d;
|
package/dist/coins-57a3ecf7.cjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";function ye(e,t){return function(){return e.apply(t,arguments)}}const{toString:qe}=Object.prototype,{getPrototypeOf:Z}=Object,H=(e=>t=>{const n=qe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),A=e=>(e=e.toLowerCase(),t=>H(t)===e),I=e=>t=>typeof t===e,{isArray:C}=Array,F=I("undefined");function Me(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ee=A("ArrayBuffer");function ze(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ee(e.buffer),t}const Je=I("string"),R=I("function"),be=I("number"),q=e=>e!==null&&typeof e=="object",Ve=e=>e===!0||e===!1,L=e=>{if(H(e)!=="object")return!1;const t=Z(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$e=A("Date"),We=A("File"),Ke=A("Blob"),Ge=A("FileList"),Xe=e=>q(e)&&R(e.pipe),ve=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=H(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},Qe=A("URLSearchParams"),Ze=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function D(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),C(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function we(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Se=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Re=e=>!F(e)&&e!==Se;function K(){const{caseless:e}=Re(this)&&this||{},t={},n=(r,s)=>{const o=e&&we(t,s)||s;L(t[o])&&L(r)?t[o]=K(t[o],r):L(r)?t[o]=K({},r):C(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&D(arguments[r],n);return t}const Ye=(e,t,n,{allOwnKeys:r}={})=>(D(t,(s,o)=>{n&&R(s)?e[o]=ye(s,n):e[o]=s},{allOwnKeys:r}),e),et=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},nt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Z(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},st=e=>{if(!e)return null;if(C(e))return e;let t=e.length;if(!be(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ot=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Z(Uint8Array)),it=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},at=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ct=A("HTMLFormElement"),ut=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),oe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lt=A("RegExp"),Oe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};D(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},ft=e=>{Oe(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},dt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return C(e)?r(e):r(String(e).split(t)),n},pt=()=>{},ht=(e,t)=>(e=+e,Number.isFinite(e)?e:t),J="abcdefghijklmnopqrstuvwxyz",ie="0123456789",Ae={DIGIT:ie,ALPHA:J,ALPHA_DIGIT:J+J.toUpperCase()+ie},mt=(e=16,t=Ae.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function yt(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Et=e=>{const t=new Array(10),n=(r,s)=>{if(q(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=C(r)?[]:{};return D(r,(i,c)=>{const p=n(i,s+1);!F(p)&&(o[c]=p)}),t[s]=void 0,o}}return r};return n(e,0)},bt=A("AsyncFunction"),wt=e=>e&&(q(e)||R(e))&&R(e.then)&&R(e.catch),a={isArray:C,isArrayBuffer:Ee,isBuffer:Me,isFormData:ve,isArrayBufferView:ze,isString:Je,isNumber:be,isBoolean:Ve,isObject:q,isPlainObject:L,isUndefined:F,isDate:$e,isFile:We,isBlob:Ke,isRegExp:lt,isFunction:R,isStream:Xe,isURLSearchParams:Qe,isTypedArray:ot,isFileList:Ge,forEach:D,merge:K,extend:Ye,trim:Ze,stripBOM:et,inherits:tt,toFlatObject:nt,kindOf:H,kindOfTest:A,endsWith:rt,toArray:st,forEachEntry:it,matchAll:at,isHTMLForm:ct,hasOwnProperty:oe,hasOwnProp:oe,reduceDescriptors:Oe,freezeMethods:ft,toObjectSet:dt,toCamelCase:ut,noop:pt,toFiniteNumber:ht,findKey:we,global:Se,isContextDefined:Re,ALPHABET:Ae,generateString:mt,isSpecCompliantForm:yt,toJSONObject:Et,isAsyncFn:bt,isThenable:wt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Te=m.prototype,ge={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ge[e]={value:e}});Object.defineProperties(m,ge);Object.defineProperty(Te,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(Te);return a.toFlatObject(e,i,function(p){return p!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const St=null;function G(e){return a.isPlainObject(e)||a.isArray(e)}function xe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ae(e,t,n){return e?e.concat(t).map(function(s,o){return s=xe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Rt(e){return a.isArray(e)&&!e.some(G)}const Ot=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function M(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,b){return!a.isUndefined(b[d])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function h(f){if(f===null)return"";if(a.isDate(f))return f.toISOString();if(!p&&a.isBlob(f))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(f)||a.isTypedArray(f)?p&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function l(f,d,b){let w=f;if(f&&!b&&typeof f=="object"){if(a.endsWith(d,"{}"))d=r?d:d.slice(0,-2),f=JSON.stringify(f);else if(a.isArray(f)&&Rt(f)||(a.isFileList(f)||a.endsWith(d,"[]"))&&(w=a.toArray(f)))return d=xe(d),w.forEach(function(x,Ie){!(a.isUndefined(x)||x===null)&&t.append(i===!0?ae([d],Ie,o):i===null?d:d+"[]",h(x))}),!1}return G(f)?!0:(t.append(ae(b,d,o),h(f)),!1)}const u=[],E=Object.assign(Ot,{defaultVisitor:l,convertValue:h,isVisitable:G});function S(f,d){if(!a.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+d.join("."));u.push(f),a.forEach(f,function(w,g){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(g)?g.trim():g,d,E))===!0&&S(w,d?d.concat(g):[g])}),u.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function ce(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Y(e,t){this._pairs=[],e&&M(e,this,t)}const Ne=Y.prototype;Ne.append=function(t,n){this._pairs.push([t,n])};Ne.toString=function(t){const n=t?function(r){return t.call(this,r,ce)}:ce;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function At(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Pe(e,t,n){if(!t)return e;const r=n&&n.encode||At,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new Y(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Tt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ue=Tt,Ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gt=typeof URLSearchParams<"u"?URLSearchParams:Y,xt=typeof FormData<"u"?FormData:null,Nt=typeof Blob<"u"?Blob:null,Pt={isBrowser:!0,classes:{URLSearchParams:gt,FormData:xt,Blob:Nt},protocols:["http","https","file","blob","url","data"]},_e=typeof window<"u"&&typeof document<"u",Ct=(e=>_e&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),_t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ft=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_e,hasStandardBrowserEnv:Ct,hasStandardBrowserWebWorkerEnv:_t},Symbol.toStringTag,{value:"Module"})),O={...Ft,...Pt};function Dt(e,t){return M(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Bt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Lt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Fe(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),p=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,p?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Lt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Bt(r),s,n,0)}),n}return null}function Ut(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ee={transitional:Ce,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Fe(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Dt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return M(c?{"files[]":t}:t,p&&new p,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Ut(t)):t}],transformResponse:[function(t){const n=this.transitional||ee.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ee.headers[e]={}});const te=ee,kt=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jt=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
-
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&kt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},le=Symbol("internals");function _(e){return e&&String(e).trim().toLowerCase()}function U(e){return e===!1||e==null?e:a.isArray(e)?e.map(U):String(e)}function Ht(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const It=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function V(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function qt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Mt(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class z{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,p,h){const l=_(p);if(!l)throw new Error("header name must be a non-empty string");const u=a.findKey(s,l);(!u||s[u]===void 0||h===!0||h===void 0&&s[u]!==!1)&&(s[u||p]=U(c))}const i=(c,p)=>a.forEach(c,(h,l)=>o(h,l,p));return a.isPlainObject(t)||t instanceof this.constructor?i(t,n):a.isString(t)&&(t=t.trim())&&!It(t)?i(jt(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=_(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Ht(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||V(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=_(i),i){const c=a.findKey(r,i);c&&(!n||V(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||V(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=U(s),delete n[o];return}const c=t?qt(o):String(o).trim();c!==o&&delete n[o],n[c]=U(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[le]=this[le]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=_(i);r[c]||(Mt(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}z.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(z.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(z);const T=z;function $(e,t){const n=this||te,r=t||n,s=T.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function De(e){return!!(e&&e.__CANCEL__)}function B(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(B,m,{__CANCEL__:!0});function zt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Jt=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $t(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Be(e,t){return e&&!Vt(t)?$t(e,t):t}const Wt=O.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const c=a.isString(i)?s(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function Kt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Gt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(p){const h=Date.now(),l=r[o];i||(i=h),n[s]=p,r[s]=h;let u=o,E=0;for(;u!==s;)E+=n[u++],u=u%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),h-i<t)return;const S=l&&h-l;return S?Math.round(E*1e3/S):void 0}}function fe(e,t){let n=0;const r=Gt(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,c=o-n,p=r(c),h=o<=i;n=o;const l={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:p||void 0,estimated:p&&i&&h?(i-o)/p:void 0,event:s};l[t?"download":"upload"]=!0,e(l)}}const Xt=typeof XMLHttpRequest<"u",vt=Xt&&function(e){return new Promise(function(n,r){let s=e.data;const o=T.from(e.headers).normalize();let{responseType:i,withXSRFToken:c}=e,p;function h(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}let l;if(a.isFormData(s)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((l=o.getContentType())!==!1){const[d,...b]=l?l.split(";").map(w=>w.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...b].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(d+":"+b))}const E=Be(e.baseURL,e.url);u.open(e.method.toUpperCase(),Pe(E,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function S(){if(!u)return;const d=T.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:d,config:e,request:u};zt(function(x){n(x),h()},function(x){r(x),h()},w),u=null}if("onloadend"in u?u.onloadend=S:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(S)},u.onabort=function(){u&&(r(new m("Request aborted",m.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||Ce;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new m(b,w.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,u)),u=null},O.hasStandardBrowserEnv&&(c&&a.isFunction(c)&&(c=c(e)),c||c!==!1&&Wt(E))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&Jt.read(e.xsrfCookieName);d&&o.set(e.xsrfHeaderName,d)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&a.forEach(o.toJSON(),function(b,w){u.setRequestHeader(w,b)}),a.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",fe(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",fe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(p=d=>{u&&(r(!d||d.type?new B(null,e,u):d),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p)));const f=Kt(E);if(f&&O.protocols.indexOf(f)===-1){r(new m("Unsupported protocol "+f+":",m.ERR_BAD_REQUEST,e));return}u.send(s||null)})},X={http:St,xhr:vt};a.forEach(X,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const de=e=>`- ${e}`,Qt=e=>a.isFunction(e)||e===null||e===!1,Le={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Qt(n)&&(r=X[(i=String(n)).toLowerCase()],r===void 0))throw new m(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,p])=>`adapter ${c} `+(p===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
4
|
-
`+o.map(de).join(`
|
|
5
|
-
`):" "+de(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:X};function W(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new B(null,e)}function pe(e){return W(e),e.headers=T.from(e.headers),e.data=$.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Le.getAdapter(e.adapter||te.adapter)(e).then(function(r){return W(e),r.data=$.call(e,e.transformResponse,r),r.headers=T.from(r.headers),r},function(r){return De(r)||(W(e),r&&r.response&&(r.response.data=$.call(e,e.transformResponse,r.response),r.response.headers=T.from(r.response.headers))),Promise.reject(r)})}const he=e=>e instanceof T?{...e}:e;function P(e,t){t=t||{};const n={};function r(h,l,u){return a.isPlainObject(h)&&a.isPlainObject(l)?a.merge.call({caseless:u},h,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(h,l,u){if(a.isUndefined(l)){if(!a.isUndefined(h))return r(void 0,h,u)}else return r(h,l,u)}function o(h,l){if(!a.isUndefined(l))return r(void 0,l)}function i(h,l){if(a.isUndefined(l)){if(!a.isUndefined(h))return r(void 0,h)}else return r(void 0,l)}function c(h,l,u){if(u in t)return r(h,l);if(u in e)return r(void 0,h)}const p={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(h,l)=>s(he(h),he(l),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=p[l]||s,E=u(e[l],t[l],l);a.isUndefined(E)&&u!==c||(n[l]=E)}),n}const Ue="1.6.8",ne={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ne[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const me={};ne.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ue+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!me[i]&&(me[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function Zt(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],p=c===void 0||i(c,o,e);if(p!==!0)throw new m("option "+o+" must be "+p,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const v={assertOptions:Zt,validators:ne},N=v.validators;class j{constructor(t){this.defaults=t,this.interceptors={request:new ue,response:new ue}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
-
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=P(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&v.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:v.assertOptions(s,{encode:N.function,serialize:N.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=T.concat(i,o);const c=[];let p=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(p=p&&d.synchronous,c.unshift(d.fulfilled,d.rejected))});const h=[];this.interceptors.response.forEach(function(d){h.push(d.fulfilled,d.rejected)});let l,u=0,E;if(!p){const f=[pe.bind(this),void 0];for(f.unshift.apply(f,c),f.push.apply(f,h),E=f.length,l=Promise.resolve(n);u<E;)l=l.then(f[u++],f[u++]);return l}E=c.length;let S=n;for(u=0;u<E;){const f=c[u++],d=c[u++];try{S=f(S)}catch(b){d.call(this,b);break}}try{l=pe.call(this,S)}catch(f){return Promise.reject(f)}for(u=0,E=h.length;u<E;)l=l.then(h[u++],h[u++]);return l}getUri(t){t=P(this.defaults,t);const n=Be(t.baseURL,t.url);return Pe(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){j.prototype[t]=function(n,r){return this.request(P(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(P(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}j.prototype[t]=n(),j.prototype[t+"Form"]=n(!0)});const k=j;class re{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new B(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new re(function(s){t=s}),cancel:t}}}const Yt=re;function en(e){return function(n){return e.apply(null,n)}}function tn(e){return a.isObject(e)&&e.isAxiosError===!0}const Q={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Q).forEach(([e,t])=>{Q[t]=e});const nn=Q;function ke(e){const t=new k(e),n=ye(k.prototype.request,t);return a.extend(n,k.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return ke(P(e,s))},n}const y=ke(te);y.Axios=k;y.CanceledError=B;y.CancelToken=Yt;y.isCancel=De;y.VERSION=Ue;y.toFormData=M;y.AxiosError=m;y.Cancel=y.CanceledError;y.all=function(t){return Promise.all(t)};y.spread=en;y.isAxiosError=tn;y.mergeConfig=P;y.AxiosHeaders=T;y.formToJSON=e=>Fe(a.isHTMLForm(e)?new FormData(e):e);y.getAdapter=Le.getAdapter;y.HttpStatusCode=nn;y.default=y;const rn=y;function se(e,t){const n=e.toLocaleString(void 0,{maximumFractionDigits:t});return n==="-0"?"0":n}function je(e,t,n,r=!0){let s=se(e,t);return r&&(s=s+=` ${n}`),s}async function He(){return(await rn.get("https://dolarapi.com/v1/dolares/blue")).data.venta}const sn=Object.freeze(Object.defineProperty({__proto__:null,displayValue:se,getAmountToDisplay:je,getDollarValue:He},Symbol.toStringTag,{value:"Module"}));exports.coins=sn;exports.displayValue=se;exports.getAmountToDisplay=je;exports.getDollarValue=He;
|
package/dist/coins.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./coins-57a3ecf7.cjs");exports.displayValue=e.displayValue;exports.getAmountToDisplay=e.getAmountToDisplay;exports.getDollarValue=e.getDollarValue;
|
package/dist/coins.es.js
DELETED
package/dist/types/coins.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './helpers/coins'
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function displayValue(value: number, maximumFractionDigits: number): string;
|
|
2
|
-
export declare function getAmountToDisplay(amount: number, significantDigits: number, coinName: string, withCoinName?: boolean): string;
|
|
3
|
-
export declare function getDollarValue(): Promise<number>;
|
package/dist/url-8700ca4a.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function o(t){if(!t)return!1;let e=t;const l=["http://","https://"];for(const r of l)if(t.startsWith(r)){e=t.replace(r,"");break}return e=e.replace(/:(\d*)$/,""),window.location.href.includes(e)}const n=Object.freeze(Object.defineProperty({__proto__:null,isCurrentUrl:o},Symbol.toStringTag,{value:"Module"}));exports.isCurrentUrl=o;exports.url=n;
|
package/dist/url-af97fdaa.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function n(t) {
|
|
2
|
-
if (!t)
|
|
3
|
-
return !1;
|
|
4
|
-
let e = t;
|
|
5
|
-
const r = ["http://", "https://"];
|
|
6
|
-
for (const o of r)
|
|
7
|
-
if (t.startsWith(o)) {
|
|
8
|
-
e = t.replace(o, "");
|
|
9
|
-
break;
|
|
10
|
-
}
|
|
11
|
-
return e = e.replace(/:(\d*)$/, ""), window.location.href.includes(e);
|
|
12
|
-
}
|
|
13
|
-
const l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14
|
-
__proto__: null,
|
|
15
|
-
isCurrentUrl: n
|
|
16
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
-
export {
|
|
18
|
-
n as i,
|
|
19
|
-
l as u
|
|
20
|
-
};
|