jobsys-explore 4.2.9 → 4.2.11
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/.changeset/bright-cycles-cheer.md +5 -0
- package/.changeset/hot-apples-jump.md +5 -0
- package/CHANGELOG.md +31 -0
- package/components/pagination/ExPagination.jsx +1 -0
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{index-5ac7f514.js → index-20463bba.js} +38 -38
- package/dist/index-20463bba.js.map +1 -0
- package/dist/index-f397a67d.cjs +2 -0
- package/dist/index-f397a67d.cjs.map +1 -0
- package/dist/jobsys-explore.cjs +2 -2
- package/dist/jobsys-explore.cjs.map +1 -1
- package/dist/jobsys-explore.js +30 -27
- package/dist/jobsys-explore.js.map +1 -1
- package/hooks/form.js +1 -1
- package/package.json +1 -1
- package/playground/TestPagination.vue +4 -0
- package/dist/index-0de12d0f.cjs +0 -2
- package/dist/index-0de12d0f.cjs.map +0 -1
- package/dist/index-5ac7f514.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# jobsys-explore
|
|
2
2
|
|
|
3
|
+
## 4.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- page
|
|
8
|
+
- select
|
|
9
|
+
- pagination add pullrefresh
|
|
10
|
+
- d
|
|
11
|
+
- fixed format date
|
|
12
|
+
- page
|
|
13
|
+
- useFormFormat
|
|
14
|
+
- rate default null
|
|
15
|
+
- use Dayjs
|
|
16
|
+
- select
|
|
17
|
+
- page
|
|
18
|
+
|
|
19
|
+
## 4.2.10
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- page
|
|
24
|
+
- select
|
|
25
|
+
- pagination add pullrefresh
|
|
26
|
+
- d
|
|
27
|
+
- page
|
|
28
|
+
- useFormFormat
|
|
29
|
+
- rate default null
|
|
30
|
+
- use Dayjs
|
|
31
|
+
- select
|
|
32
|
+
- page
|
|
33
|
+
|
|
3
34
|
## 4.2.9
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/dist/hooks.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-f397a67d.cjs"),r=require("dayjs"),i=require("lodash-es");require("axios");require("vant");function o(e,u,n){return s.sm2_exports.doEncrypt(e,u,n)}function c(e,u){return s.sm32(e,u)}function F(e,u,n){return s.sm4_exports.encrypt(e,u,n)}function a(e,u,n){return s.sm4_exports.encrypt(e,u,n)}function m(e,u){return(/^\d+$/.test(e)||/^-\d+$/.test(e))&&String(e).length<=10&&(e=parseInt(e+"000")),u?r(e,u):r(e)}function t(e,u){return e?(r.isDayjs(e)||(e=r(e)),e.format(u||"YYYY-MM-DD HH:mm")):""}function S(e){return e?(r.isDayjs(e)||(e=r(e)),e.unix()):""}function y(e,u){return e&&i.isString(e)&&(e=parseInt(e)),e<9999999999&&(e*=1e3),t(new Date(e),u)}exports.STATUS=s.STATUS;exports._configStatus=s._configStatus;exports.useCache=s.useCache;exports.useFetch=s.useFetch;exports.useFindLabelsFromPath=s.useFindLabelsFromPath;exports.useFindOptionByValue=s.useFindOptionByValue;exports.useFindParentValues=s.useFindParentValues;exports.useFindPropertyRecursive=s.useFindPropertyRecursive;exports.useFindTextsFromPath=s.useFindTextsFromPath;exports.useFindTextsInValues=s.useFindTextsInValues;exports.useFormFail=s.useFormFail;exports.useFormFormat=s.useFormFormat;exports.useHiddenForm=s.useHiddenForm;exports.useProcessStatus=s.useProcessStatus;exports.useProcessStatusSuccess=s.useProcessStatusSuccess;exports.useTextFromOptionsValue=s.useTextFromOptionsValue;exports.useDateFormat=t;exports.useDateUnix=S;exports.useDayjs=m;exports.useSm2Encrypt=o;exports.useSm3=c;exports.useSm4Decrypt=a;exports.useSm4Encrypt=F;exports.useTimestampFormat=y;
|
|
2
2
|
//# sourceMappingURL=hooks.cjs.map
|
package/dist/hooks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as t, f as o, g as e } from "./index-
|
|
2
|
-
import { S as j, _ as V, u as Y, a as _, j as E, k as H, m as I, l as b, b as M, i as O, e as U, d as $, n as k, o as v, c as w, h as A } from "./index-
|
|
1
|
+
import { s as t, f as o, g as e } from "./index-20463bba.js";
|
|
2
|
+
import { S as j, _ as V, u as Y, a as _, j as E, k as H, m as I, l as b, b as M, i as O, e as U, d as $, n as k, o as v, c as w, h as A } from "./index-20463bba.js";
|
|
3
3
|
import n from "dayjs";
|
|
4
4
|
import { isString as i } from "lodash-es";
|
|
5
5
|
import "axios";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var De = Object.defineProperty;
|
|
2
2
|
var Fe = (t, n, e) => n in t ? De(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
|
|
3
3
|
var L = (t, n, e) => (Fe(t, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
|
-
import { isString as xt, isObject as
|
|
4
|
+
import { isString as xt, isObject as Yt, reduce as Ke, find as ze, flatMapDeep as je, isUndefined as Ae, cloneDeep as Mt, isFunction as Gt, isDate as Ye, isBoolean as Me, isArray as Ge } from "lodash-es";
|
|
5
5
|
import he from "axios";
|
|
6
6
|
import { closeToast as We, allowMultipleToast as kt, showLoadingToast as Zt, showSuccessToast as Qe, showFailToast as Lt } from "vant";
|
|
7
7
|
import de from "dayjs";
|
|
@@ -70,7 +70,7 @@ function xr(t) {
|
|
|
70
70
|
message: e || "加载中...",
|
|
71
71
|
duration: 0,
|
|
72
72
|
forbidClick: !0
|
|
73
|
-
}) :
|
|
73
|
+
}) : Yt(e) ? n = Zt({ duration: 0, ...e }) : n = Zt({
|
|
74
74
|
message: "加载中...",
|
|
75
75
|
duration: 0,
|
|
76
76
|
forbidClick: !0
|
|
@@ -147,7 +147,7 @@ function Ar(t, n, e) {
|
|
|
147
147
|
}, Xe(t, n, e);
|
|
148
148
|
}
|
|
149
149
|
function tn(t, n, e) {
|
|
150
|
-
return
|
|
150
|
+
return je(t, (o, r) => r === n ? o : r === e ? tn(o, n, e) : []);
|
|
151
151
|
}
|
|
152
152
|
function Tr(t, n, e) {
|
|
153
153
|
e = e || {
|
|
@@ -226,8 +226,8 @@ function Cr(t, n) {
|
|
|
226
226
|
var l, s;
|
|
227
227
|
for (let i in r) {
|
|
228
228
|
let u;
|
|
229
|
-
if (de.isDayjs(r[i]) ? u = r[i] :
|
|
230
|
-
xt(n.date) ? r[i] = u.format(n.date) : Gt(n.date) ? r[i] = n.date(u) : r[i] =
|
|
229
|
+
if (de.isDayjs(r[i]) ? u = r[i] : Ye(r[i]) && (u = de(r[i])), u && n.date) {
|
|
230
|
+
xt(n.date) ? r[i] = u.format(n.date) : Gt(n.date) ? r[i] = n.date(u) : r[i] = u.unix();
|
|
231
231
|
continue;
|
|
232
232
|
}
|
|
233
233
|
if (Me(r[i]) && n.boolean) {
|
|
@@ -236,13 +236,13 @@ function Cr(t, n) {
|
|
|
236
236
|
}
|
|
237
237
|
if (n.attachment) {
|
|
238
238
|
const a = n.attachment;
|
|
239
|
-
if (
|
|
239
|
+
if (Yt(r[i]) && xt(a) && !Ae(r[i][a])) {
|
|
240
240
|
r[i] = r[i][a];
|
|
241
241
|
continue;
|
|
242
242
|
} else if (c && xt(r[i]) && xt(a) && a === i) {
|
|
243
243
|
r = r[a];
|
|
244
244
|
continue;
|
|
245
|
-
} else if (
|
|
245
|
+
} else if (Yt(r[i]) && Gt(a)) {
|
|
246
246
|
r[i] = a(r[i]);
|
|
247
247
|
continue;
|
|
248
248
|
}
|
|
@@ -323,7 +323,7 @@ function M(t, n, e) {
|
|
|
323
323
|
throw new Error(`${t} expected ${e} bytes, got ${r}`);
|
|
324
324
|
return o;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function j(...t) {
|
|
327
327
|
const n = new Uint8Array(t.reduce((o, r) => o + r.length, 0));
|
|
328
328
|
let e = 0;
|
|
329
329
|
return t.forEach((o) => {
|
|
@@ -377,7 +377,7 @@ function Oe(t, n, e) {
|
|
|
377
377
|
const b = o.slice();
|
|
378
378
|
m.push(b), f += o.length;
|
|
379
379
|
}
|
|
380
|
-
return
|
|
380
|
+
return j(...m);
|
|
381
381
|
};
|
|
382
382
|
return (f, m) => {
|
|
383
383
|
l(), i(f);
|
|
@@ -421,7 +421,7 @@ const dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
421
421
|
bytesToHex: nt,
|
|
422
422
|
bytesToNumberBE: yt,
|
|
423
423
|
bytesToNumberLE: Xt,
|
|
424
|
-
concatBytes:
|
|
424
|
+
concatBytes: j,
|
|
425
425
|
createHmacDrbg: Oe,
|
|
426
426
|
ensureBytes: M,
|
|
427
427
|
equalBytes: cn,
|
|
@@ -777,7 +777,7 @@ BigInt(4);
|
|
|
777
777
|
function On(t) {
|
|
778
778
|
const n = An(t), { Fp: e } = n, o = n.toBytes || ((g, h, w) => {
|
|
779
779
|
const y = h.toAffine();
|
|
780
|
-
return
|
|
780
|
+
return j(Uint8Array.from([4]), e.toBytes(y.x), e.toBytes(y.y));
|
|
781
781
|
}), r = n.fromBytes || ((g) => {
|
|
782
782
|
const h = g.subarray(1), w = e.fromBytes(h.subarray(0, e.BYTES)), y = e.fromBytes(h.subarray(e.BYTES, 2 * e.BYTES));
|
|
783
783
|
return { x: w, y };
|
|
@@ -909,8 +909,8 @@ function On(t) {
|
|
|
909
909
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
|
910
910
|
double() {
|
|
911
911
|
const { a: h, b: w } = n, y = e.mul(w, me), { px: v, py: S, pz: I } = this;
|
|
912
|
-
let T = e.ZERO, E = e.ZERO, x = e.ZERO, A = e.mul(v, v),
|
|
913
|
-
return O = e.add(O, O), x = e.mul(v, I), x = e.add(x, x), T = e.mul(h, x), E = e.mul(y, C), E = e.add(T, E), T = e.sub(
|
|
912
|
+
let T = e.ZERO, E = e.ZERO, x = e.ZERO, A = e.mul(v, v), Y = e.mul(S, S), C = e.mul(I, I), O = e.mul(v, S);
|
|
913
|
+
return O = e.add(O, O), x = e.mul(v, I), x = e.add(x, x), T = e.mul(h, x), E = e.mul(y, C), E = e.add(T, E), T = e.sub(Y, E), E = e.add(Y, E), E = e.mul(T, E), T = e.mul(O, T), x = e.mul(y, x), C = e.mul(h, C), O = e.sub(A, C), O = e.mul(h, O), O = e.add(O, x), x = e.add(A, A), A = e.add(x, A), A = e.add(A, C), A = e.mul(A, O), E = e.add(E, A), C = e.mul(S, I), C = e.add(C, C), A = e.mul(C, O), T = e.sub(T, A), x = e.mul(C, Y), x = e.add(x, x), x = e.add(x, x), new f(T, E, x);
|
|
914
914
|
}
|
|
915
915
|
// Renes-Costello-Batina exception-free addition formula.
|
|
916
916
|
// There is 30% faster Jacobian formula, but it is not complete.
|
|
@@ -920,11 +920,11 @@ function On(t) {
|
|
|
920
920
|
a(h);
|
|
921
921
|
const { px: w, py: y, pz: v } = this, { px: S, py: I, pz: T } = h;
|
|
922
922
|
let E = e.ZERO, x = e.ZERO, A = e.ZERO;
|
|
923
|
-
const
|
|
923
|
+
const Y = n.a, C = e.mul(n.b, me);
|
|
924
924
|
let O = e.mul(w, S), D = e.mul(y, I), F = e.mul(v, T), rt = e.add(w, y), d = e.add(S, I);
|
|
925
925
|
rt = e.mul(rt, d), d = e.add(O, D), rt = e.sub(rt, d), d = e.add(w, v);
|
|
926
926
|
let p = e.add(S, T);
|
|
927
|
-
return d = e.mul(d, p), p = e.add(O, F), d = e.sub(d, p), p = e.add(y, v), E = e.add(I, T), p = e.mul(p, E), E = e.add(D, F), p = e.sub(p, E), A = e.mul(
|
|
927
|
+
return d = e.mul(d, p), p = e.add(O, F), d = e.sub(d, p), p = e.add(y, v), E = e.add(I, T), p = e.mul(p, E), E = e.add(D, F), p = e.sub(p, E), A = e.mul(Y, d), E = e.mul(C, F), A = e.add(E, A), E = e.sub(D, A), A = e.add(D, A), x = e.mul(E, A), D = e.add(O, O), D = e.add(D, O), F = e.mul(Y, F), d = e.mul(C, d), D = e.add(D, F), F = e.sub(O, F), F = e.mul(Y, F), d = e.add(d, F), O = e.mul(D, d), x = e.add(x, O), O = e.mul(p, d), E = e.mul(rt, E), E = e.sub(E, O), O = e.mul(rt, D), A = e.mul(p, A), A = e.add(A, O), new f(E, x, A);
|
|
928
928
|
}
|
|
929
929
|
subtract(h) {
|
|
930
930
|
return this.add(h.negate());
|
|
@@ -972,8 +972,8 @@ function On(t) {
|
|
|
972
972
|
const { endo: S } = n;
|
|
973
973
|
if (S) {
|
|
974
974
|
const { k1neg: I, k1: T, k2neg: E, k2: x } = S.splitScalar(w);
|
|
975
|
-
let { p: A, f:
|
|
976
|
-
A = b.constTimeNegate(I, A), C = b.constTimeNegate(E, C), C = new f(e.mul(C.px, S.beta), C.py, C.pz), y = A.add(C), v =
|
|
975
|
+
let { p: A, f: Y } = this.wNAF(T), { p: C, f: O } = this.wNAF(x);
|
|
976
|
+
A = b.constTimeNegate(I, A), C = b.constTimeNegate(E, C), C = new f(e.mul(C.px, S.beta), C.py, C.pz), y = A.add(C), v = Y.add(O);
|
|
977
977
|
} else {
|
|
978
978
|
const { p: I, f: T } = this.wNAF(w);
|
|
979
979
|
y = I, v = T;
|
|
@@ -1058,7 +1058,7 @@ function Un(t) {
|
|
|
1058
1058
|
const { ProjectivePoint: u, normPrivateKeyToScalar: a, weierstrassEquation: f, isWithinCurveOrder: m } = On({
|
|
1059
1059
|
...n,
|
|
1060
1060
|
toBytes(d, p, B) {
|
|
1061
|
-
const U = p.toAffine(), P = e.toBytes(U.x), q =
|
|
1061
|
+
const U = p.toAffine(), P = e.toBytes(U.x), q = j;
|
|
1062
1062
|
return B ? q(Uint8Array.from([p.hasEvenY() ? 2 : 3]), P) : q(Uint8Array.from([4]), P, e.toBytes(U.y));
|
|
1063
1063
|
},
|
|
1064
1064
|
fromBytes(d) {
|
|
@@ -1193,7 +1193,7 @@ function Un(t) {
|
|
|
1193
1193
|
}, x = n.bits2int_modN || function(d) {
|
|
1194
1194
|
return s(E(d));
|
|
1195
1195
|
}, A = Jt(n.nBitLength);
|
|
1196
|
-
function
|
|
1196
|
+
function Y(d) {
|
|
1197
1197
|
if (typeof d != "bigint")
|
|
1198
1198
|
throw new Error("bigint expected");
|
|
1199
1199
|
if (!(et <= d && d < A))
|
|
@@ -1206,12 +1206,12 @@ function Un(t) {
|
|
|
1206
1206
|
const { hash: U, randomBytes: P } = n;
|
|
1207
1207
|
let { lowS: q, prehash: K, extraEntropy: z } = B;
|
|
1208
1208
|
q == null && (q = !0), d = M("msgHash", d), K && (d = M("prehashed msgHash", U(d)));
|
|
1209
|
-
const ot = x(d), it = a(p), mt = [
|
|
1209
|
+
const ot = x(d), it = a(p), mt = [Y(it), Y(ot)];
|
|
1210
1210
|
if (z != null) {
|
|
1211
1211
|
const ft = z === !0 ? P(e.BYTES) : z;
|
|
1212
1212
|
mt.push(M("extraEntropy", ft, e.BYTES));
|
|
1213
1213
|
}
|
|
1214
|
-
const It =
|
|
1214
|
+
const It = j(...mt), st = ot;
|
|
1215
1215
|
function $t(ft) {
|
|
1216
1216
|
const Et = E(ft);
|
|
1217
1217
|
if (!m(Et))
|
|
@@ -1412,7 +1412,7 @@ function $n(t = 0) {
|
|
|
1412
1412
|
const n = new Uint8Array(t);
|
|
1413
1413
|
return St ? St.getRandomValues(n) : Vn(t);
|
|
1414
1414
|
}
|
|
1415
|
-
var He = (t) => t instanceof Uint8Array,
|
|
1415
|
+
var He = (t) => t instanceof Uint8Array, jt = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), kn = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
1416
1416
|
if (!kn)
|
|
1417
1417
|
throw new Error("Non little-endian hardware is not supported");
|
|
1418
1418
|
var Zn = Array.from({ length: 256 }, (t, n) => n.toString(16).padStart(2, "0"));
|
|
@@ -1444,7 +1444,7 @@ function Fn(t) {
|
|
|
1444
1444
|
return n.outputLen = e.outputLen, n.blockLen = e.blockLen, n.create = () => t(), n;
|
|
1445
1445
|
}
|
|
1446
1446
|
var Kn = (t, n, e) => t & n | t & e | n & e, ve = (t, n, e) => t ^ n ^ e, zn = (t, n, e) => t & n | ~t & e;
|
|
1447
|
-
function
|
|
1447
|
+
function jn(t, n, e, o) {
|
|
1448
1448
|
if (typeof t.setBigUint64 == "function")
|
|
1449
1449
|
return t.setBigUint64(n, e, o);
|
|
1450
1450
|
const r = BigInt(32), c = BigInt(4294967295), l = Number(e >> r & c), s = Number(e & c), i = o ? 4 : 0, u = o ? 0 : 4;
|
|
@@ -1454,7 +1454,7 @@ function W(t, n) {
|
|
|
1454
1454
|
const e = n & 31;
|
|
1455
1455
|
return t << e | t >>> 32 - e;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Yn(t) {
|
|
1458
1458
|
return t ^ W(t, 9) ^ W(t, 17);
|
|
1459
1459
|
}
|
|
1460
1460
|
function Mn(t) {
|
|
@@ -1469,7 +1469,7 @@ var Gn = class extends _e {
|
|
|
1469
1469
|
L(this, "length", 0);
|
|
1470
1470
|
L(this, "pos", 0);
|
|
1471
1471
|
L(this, "destroyed", !1);
|
|
1472
|
-
this.blockLen = n, this.outputLen = e, this.padOffset = o, this.isLE = r, this.buffer = new Uint8Array(n), this.view =
|
|
1472
|
+
this.blockLen = n, this.outputLen = e, this.padOffset = o, this.isLE = r, this.buffer = new Uint8Array(n), this.view = jt(this.buffer);
|
|
1473
1473
|
}
|
|
1474
1474
|
update(n) {
|
|
1475
1475
|
const { view: e, buffer: o, blockLen: r } = this;
|
|
@@ -1478,7 +1478,7 @@ var Gn = class extends _e {
|
|
|
1478
1478
|
for (let l = 0; l < c; ) {
|
|
1479
1479
|
const s = Math.min(r - this.pos, c - l);
|
|
1480
1480
|
if (s === r) {
|
|
1481
|
-
const i =
|
|
1481
|
+
const i = jt(n);
|
|
1482
1482
|
for (; r <= c - l; l += r)
|
|
1483
1483
|
this.process(i, l);
|
|
1484
1484
|
continue;
|
|
@@ -1494,8 +1494,8 @@ var Gn = class extends _e {
|
|
|
1494
1494
|
e[l++] = 128, this.buffer.subarray(l).fill(0), this.padOffset > r - l && (this.process(o, 0), l = 0);
|
|
1495
1495
|
for (let f = l; f < r; f++)
|
|
1496
1496
|
e[f] = 0;
|
|
1497
|
-
|
|
1498
|
-
const s =
|
|
1497
|
+
jn(o, r - 8, BigInt(this.length * 8), c), this.process(o, 0);
|
|
1498
|
+
const s = jt(n), i = this.outputLen;
|
|
1499
1499
|
if (i % 4)
|
|
1500
1500
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
1501
1501
|
const u = i / 4, a = this.get();
|
|
@@ -1544,7 +1544,7 @@ var Gn = class extends _e {
|
|
|
1544
1544
|
let { A: o, B: r, C: c, D: l, E: s, F: i, G: u, H: a } = this;
|
|
1545
1545
|
for (let f = 0; f < 64; f++) {
|
|
1546
1546
|
let m = f >= 0 && f <= 15, b = m ? Wn : Qn, g = W(W(o, 12) + s + W(b, f), 7), h = g ^ W(o, 12), w = (m ? ve(o, r, c) : Kn(o, r, c)) + l + h + xe[f] | 0, y = (m ? ve(s, i, u) : zn(s, i, u)) + a + g + X[f] | 0;
|
|
1547
|
-
l = c, c = W(r, 9), r = o, o = w, a = u, u = W(i, 19), i = s, s =
|
|
1547
|
+
l = c, c = W(r, 9), r = o, o = w, a = u, u = W(i, 19), i = s, s = Yn(y);
|
|
1548
1548
|
}
|
|
1549
1549
|
o = o ^ this.A | 0, r = r ^ this.B | 0, c = c ^ this.C | 0, l = l ^ this.D | 0, s = s ^ this.E | 0, i = i ^ this.F | 0, u = u ^ this.G | 0, a = a ^ this.H | 0, this.set(o, r, c, l, s, i, u, a);
|
|
1550
1550
|
}
|
|
@@ -1605,7 +1605,7 @@ var Jn = Pe(BigInt("115792089210356248756420345214020892766250353991924191454421
|
|
|
1605
1605
|
Gx: BigInt("22963146547237050559479531362550074578802567295341616970375194840604139615431"),
|
|
1606
1606
|
Gy: BigInt("85132369209828568825618990617112496413088388631904505083283536607588877201568"),
|
|
1607
1607
|
hash: tt,
|
|
1608
|
-
hmac: (t, ...n) => re(tt, t,
|
|
1608
|
+
hmac: (t, ...n) => re(tt, t, j(...n)),
|
|
1609
1609
|
randomBytes: $n
|
|
1610
1610
|
}), J = Pe(BigInt(N.CURVE.n));
|
|
1611
1611
|
function oe(t) {
|
|
@@ -1675,7 +1675,7 @@ var Se = _("80000000000000000000000000000000"), Be = _("7fffffffffffffffffffffff
|
|
|
1675
1675
|
function rr(t, n) {
|
|
1676
1676
|
let e = new Uint8Array(n), o = 1, r = 0, c = se;
|
|
1677
1677
|
const l = new Uint8Array(4), s = () => {
|
|
1678
|
-
l[0] = o >> 24 & 255, l[1] = o >> 16 & 255, l[2] = o >> 8 & 255, l[3] = o & 255, c = tt(
|
|
1678
|
+
l[0] = o >> 24 & 255, l[1] = o >> 16 & 255, l[2] = o >> 8 & 255, l[3] = o & 255, c = tt(j(t, l)), o++, r = 0;
|
|
1679
1679
|
};
|
|
1680
1680
|
s();
|
|
1681
1681
|
for (let i = 0, u = e.length; i < u; i++)
|
|
@@ -1687,14 +1687,14 @@ function or(t, n, e, o, r, c = !1, l = "1234567812345678", s = "1234567812345678
|
|
|
1687
1687
|
let f = _t(t.publicKey, l), m = _t(e, s);
|
|
1688
1688
|
c && ([f, m] = [m, f]);
|
|
1689
1689
|
const b = _(n.privateKey), g = _(t.privateKey), h = i.x, w = Se + (h & Be), y = J.add(g, J.mulN(w, b)), v = u.x, S = J.add(Se, v & Be), I = u.multiply(S).add(a).multiply(y), T = k(R($(I.x), 64)), E = k(R($(I.y), 64));
|
|
1690
|
-
return rr(
|
|
1690
|
+
return rr(j(T, E, f, m), r);
|
|
1691
1691
|
}
|
|
1692
1692
|
var qe = 0, se = new Uint8Array();
|
|
1693
1693
|
function ir(t, n, e = 1) {
|
|
1694
1694
|
const o = typeof t == "string" ? k(Tt(t)) : Uint8Array.from(t), r = typeof n == "string" ? N.ProjectivePoint.fromHex(n) : n, c = oe(), l = _(c.privateKey);
|
|
1695
1695
|
let s = c.publicKey;
|
|
1696
1696
|
s.length > 128 && (s = s.substring(s.length - 128));
|
|
1697
|
-
const i = r.multiply(l), u = k(R($(i.x), 64)), a = k(R($(i.y), 64)), f = At(tt(
|
|
1697
|
+
const i = r.multiply(l), u = k(R($(i.x), 64)), a = k(R($(i.y), 64)), f = At(tt(j(u, o, a)));
|
|
1698
1698
|
Ve(u, a, o);
|
|
1699
1699
|
const m = At(o);
|
|
1700
1700
|
return e === qe ? s + m + f : s + f + m;
|
|
@@ -1702,7 +1702,7 @@ function ir(t, n, e = 1) {
|
|
|
1702
1702
|
function Ve(t, n, e) {
|
|
1703
1703
|
let o = 1, r = 0, c = se;
|
|
1704
1704
|
const l = new Uint8Array(4), s = () => {
|
|
1705
|
-
l[0] = o >> 24 & 255, l[1] = o >> 16 & 255, l[2] = o >> 8 & 255, l[3] = o & 255, c = tt(
|
|
1705
|
+
l[0] = o >> 24 & 255, l[1] = o >> 16 & 255, l[2] = o >> 8 & 255, l[3] = o & 255, c = tt(j(t, n, l)), o++, r = 0;
|
|
1706
1706
|
};
|
|
1707
1707
|
s();
|
|
1708
1708
|
for (let i = 0, u = e.length; i < u; i++)
|
|
@@ -1715,7 +1715,7 @@ function sr(t, n, e = 1, {
|
|
|
1715
1715
|
let c = t.substring(128, 128 + 64), l = t.substring(128 + 64);
|
|
1716
1716
|
e === qe && (c = t.substring(t.length - 64), l = t.substring(128, t.length - 64));
|
|
1717
1717
|
const s = k(l), u = N.ProjectivePoint.fromHex("04" + t.substring(0, 128)).multiply(r), a = k(R($(u.x), 64)), f = k(R($(u.y), 64));
|
|
1718
|
-
return Ve(a, f, s), Vt(Array.from(tt(
|
|
1718
|
+
return Ve(a, f, s), Vt(Array.from(tt(j(a, s, f)))) === c.toLowerCase() ? o === "array" ? s : ie(s) : o === "array" ? [] : "";
|
|
1719
1719
|
}
|
|
1720
1720
|
function cr(t, n, e = {}) {
|
|
1721
1721
|
let {
|
|
@@ -1768,11 +1768,11 @@ function _t(t, n = "1234567812345678") {
|
|
|
1768
1768
|
l = R($(f.x), 64), s = R($(f.y), 64);
|
|
1769
1769
|
}
|
|
1770
1770
|
const i = k(n + e + o + r + c + l + s), u = n.length * 4;
|
|
1771
|
-
return tt(
|
|
1771
|
+
return tt(j(new Uint8Array([u >> 8 & 255, u & 255]), i));
|
|
1772
1772
|
}
|
|
1773
1773
|
function ce(t, n, e = "1234567812345678") {
|
|
1774
1774
|
const o = _t(n, e);
|
|
1775
|
-
return At(tt(
|
|
1775
|
+
return At(tt(j(o, typeof t == "string" ? k(t) : t)));
|
|
1776
1776
|
}
|
|
1777
1777
|
function ur(t, n) {
|
|
1778
1778
|
const e = N.ProjectivePoint.fromHex(t);
|
|
@@ -2203,4 +2203,4 @@ export {
|
|
|
2203
2203
|
Nn as s,
|
|
2204
2204
|
Ir as u
|
|
2205
2205
|
};
|
|
2206
|
-
//# sourceMappingURL=index-
|
|
2206
|
+
//# sourceMappingURL=index-20463bba.js.map
|