@prosopo/procaptcha-bundle 2.5.5 → 2.6.2
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/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +5 -0
- package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +1 -0
- package/CHANGELOG.md +40 -0
- package/dist/bundle/{ProcaptchaWidget-CCSN3Dxj.js → ProcaptchaWidget---OaFVSu.js} +7 -7
- package/dist/bundle/ProcaptchaWidget-DfzlzDL_.js +360 -0
- package/dist/bundle/{asU8a-CAsEnbuP.js → asU8a-OYI2Rcme.js} +1 -1
- package/dist/bundle/bip39-CaW9jcCq.js +365 -0
- package/dist/bundle/captchaComponentProvider-CJMWWGqv.js +1242 -0
- package/dist/bundle/{captchaRenderer-BBodRhQu.js → captchaRenderer-BmSy0ym0.js} +3 -3
- package/dist/bundle/{emotion-element-5486c51c.browser.esm-CQHFV-dS.js → emotion-element-5486c51c.browser.esm-F-LKH1Q7.js} +287 -285
- package/dist/bundle/{hash-D-64Vz5z.js → hash-COecnuJ8.js} +796 -483
- package/dist/bundle/{i18nFrontend-C_RgmvGh.js → i18nFrontend-CsPT71ro.js} +1 -1
- package/dist/bundle/index-BjRdPnnE.js +1198 -0
- package/dist/bundle/{index-9I1Aae33.js → index-C30GRfJ0.js} +1 -1
- package/dist/bundle/{index-DkQ4njKa.js → index-D-5CyFkP.js} +7 -7
- package/dist/bundle/{index-DxswvPTy.js → index-DXEN8xWW.js} +170 -180
- package/dist/bundle/index-DcOF3IPl.js +4386 -0
- package/dist/bundle/locales/ar/translation.json +56 -0
- package/dist/bundle/locales/az/translation.json +56 -0
- package/dist/bundle/locales/cs/translation.json +56 -0
- package/dist/bundle/locales/el/translation.json +56 -0
- package/dist/bundle/locales/fi/translation.json +56 -0
- package/dist/bundle/locales/fr/translation.json +1 -1
- package/dist/bundle/locales/hi/translation.json +56 -0
- package/dist/bundle/locales/hu/translation.json +56 -0
- package/dist/bundle/locales/id/translation.json +56 -0
- package/dist/bundle/locales/ja/translation.json +56 -0
- package/dist/bundle/locales/jv/translation.json +56 -0
- package/dist/bundle/locales/ko/translation.json +56 -0
- package/dist/bundle/locales/ml/translation.json +56 -0
- package/dist/bundle/locales/ms/translation.json +56 -0
- package/dist/bundle/locales/nl/translation.json +56 -0
- package/dist/bundle/locales/no/translation.json +56 -0
- package/dist/bundle/locales/pl/translation.json +56 -0
- package/dist/bundle/locales/{pt-BR → pt-br}/translation.json +17 -17
- package/dist/bundle/locales/ro/translation.json +56 -0
- package/dist/bundle/locales/ru/translation.json +56 -0
- package/dist/bundle/locales/sr/translation.json +56 -0
- package/dist/bundle/locales/sv/translation.json +56 -0
- package/dist/bundle/locales/th/translation.json +56 -0
- package/dist/bundle/locales/tr/translation.json +56 -0
- package/dist/bundle/locales/uk/translation.json +56 -0
- package/dist/bundle/locales/vi/translation.json +56 -0
- package/dist/bundle/locales/zh-cn/translation.json +56 -0
- package/dist/bundle/procaptcha.bundle.js +1 -1
- package/dist/bundle/toU8a-C68WUzs_.js +24 -0
- package/dist/bundle/{translations-B0P9axY3.js → translations-DEL070wJ.js} +59 -26
- package/dist/bundle/{useTranslation-CEt2t9kE.js → useTranslation-DpuHI3Mv.js} +3 -3
- package/dist/bundle/util/configCreator.d.ts +2 -2
- package/dist/bundle/util/configCreator.d.ts.map +1 -1
- package/dist/cjs/index.cjs +163 -0
- package/dist/cjs/util/captcha/captchaComponentProvider.cjs +19 -0
- package/dist/cjs/util/captcha/captchaComponentsList.cjs +12 -0
- package/dist/cjs/util/captcha/captchaRenderer.cjs +65 -0
- package/dist/cjs/util/captcha/captchaType.cjs +12 -0
- package/dist/cjs/util/captcha/components/frictionlessCaptcha.cjs +24 -0
- package/dist/cjs/util/captcha/components/imageCaptcha.cjs +17 -0
- package/dist/cjs/util/captcha/components/powCaptcha.cjs +17 -0
- package/dist/cjs/util/config.cjs +16 -0
- package/dist/cjs/util/configCreator.cjs +23 -0
- package/dist/cjs/util/language.cjs +18 -0
- package/dist/cjs/util/timeout.cjs +14 -0
- package/dist/cjs/util/widgetFactory.cjs +84 -0
- package/dist/cjs/util/widgetThemeResolver.cjs +16 -0
- package/dist/util/configCreator.d.ts +2 -2
- package/dist/util/configCreator.d.ts.map +1 -1
- package/dist/util/configCreator.js.map +1 -1
- package/dist/util/language.js.map +1 -1
- package/package.json +16 -13
- package/stats.html +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +0 -5
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +0 -1
- package/dist/bundle/ProcaptchaWidget-Dfex8hc8.js +0 -156
- package/dist/bundle/bip39-DCaMcFzo.js +0 -260
- package/dist/bundle/captchaComponentProvider-Dm44AMrY.js +0 -1018
- package/dist/bundle/index-DCHEbWAs.js +0 -1242
- package/dist/bundle/index-nNwZuute.js +0 -4373
- package/dist/bundle/sha256-Cxc9Hrlx.js +0 -171
- package/dist/bundle/toU8a-BWKf-2UU.js +0 -133
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/components.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/index.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts.map +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +0 -0
- /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +0 -0
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { H as B, p as w, e as H, t as y, o as U, g as C, q as a } from "./toU8a-BWKf-2UU.js";
|
|
2
|
-
function m(x, t, n, s) {
|
|
3
|
-
if (typeof x.setBigUint64 == "function")
|
|
4
|
-
return x.setBigUint64(t, n, s);
|
|
5
|
-
const i = BigInt(32), f = BigInt(4294967295), e = Number(n >> i & f), h = Number(n & f), o = s ? 4 : 0, r = s ? 0 : 4;
|
|
6
|
-
x.setUint32(t + o, e, s), x.setUint32(t + r, h, s);
|
|
7
|
-
}
|
|
8
|
-
const _ = (x, t, n) => x & t ^ ~x & n, L = (x, t, n) => x & t ^ x & n ^ t & n;
|
|
9
|
-
class D extends B {
|
|
10
|
-
constructor(t, n, s, i) {
|
|
11
|
-
super(), this.blockLen = t, this.outputLen = n, this.padOffset = s, this.isLE = i, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = w(this.buffer);
|
|
12
|
-
}
|
|
13
|
-
update(t) {
|
|
14
|
-
H(this);
|
|
15
|
-
const { view: n, buffer: s, blockLen: i } = this;
|
|
16
|
-
t = y(t);
|
|
17
|
-
const f = t.length;
|
|
18
|
-
for (let e = 0; e < f; ) {
|
|
19
|
-
const h = Math.min(i - this.pos, f - e);
|
|
20
|
-
if (h === i) {
|
|
21
|
-
const o = w(t);
|
|
22
|
-
for (; i <= f - e; e += i)
|
|
23
|
-
this.process(o, e);
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
s.set(t.subarray(e, e + h), this.pos), this.pos += h, e += h, this.pos === i && (this.process(n, 0), this.pos = 0);
|
|
27
|
-
}
|
|
28
|
-
return this.length += t.length, this.roundClean(), this;
|
|
29
|
-
}
|
|
30
|
-
digestInto(t) {
|
|
31
|
-
H(this), U(t, this), this.finished = !0;
|
|
32
|
-
const { buffer: n, view: s, blockLen: i, isLE: f } = this;
|
|
33
|
-
let { pos: e } = this;
|
|
34
|
-
n[e++] = 128, this.buffer.subarray(e).fill(0), this.padOffset > i - e && (this.process(s, 0), e = 0);
|
|
35
|
-
for (let c = e; c < i; c++)
|
|
36
|
-
n[c] = 0;
|
|
37
|
-
m(s, i - 8, BigInt(this.length * 8), f), this.process(s, 0);
|
|
38
|
-
const h = w(t), o = this.outputLen;
|
|
39
|
-
if (o % 4)
|
|
40
|
-
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
41
|
-
const r = o / 4, b = this.get();
|
|
42
|
-
if (r > b.length)
|
|
43
|
-
throw new Error("_sha2: outputLen bigger than state");
|
|
44
|
-
for (let c = 0; c < r; c++)
|
|
45
|
-
h.setUint32(4 * c, b[c], f);
|
|
46
|
-
}
|
|
47
|
-
digest() {
|
|
48
|
-
const { buffer: t, outputLen: n } = this;
|
|
49
|
-
this.digestInto(t);
|
|
50
|
-
const s = t.slice(0, n);
|
|
51
|
-
return this.destroy(), s;
|
|
52
|
-
}
|
|
53
|
-
_cloneInto(t) {
|
|
54
|
-
t || (t = new this.constructor()), t.set(...this.get());
|
|
55
|
-
const { blockLen: n, buffer: s, length: i, finished: f, destroyed: e, pos: h } = this;
|
|
56
|
-
return t.length = i, t.pos = h, t.finished = f, t.destroyed = e, i % n && t.buffer.set(s), t;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
const I = /* @__PURE__ */ new Uint32Array([
|
|
60
|
-
1116352408,
|
|
61
|
-
1899447441,
|
|
62
|
-
3049323471,
|
|
63
|
-
3921009573,
|
|
64
|
-
961987163,
|
|
65
|
-
1508970993,
|
|
66
|
-
2453635748,
|
|
67
|
-
2870763221,
|
|
68
|
-
3624381080,
|
|
69
|
-
310598401,
|
|
70
|
-
607225278,
|
|
71
|
-
1426881987,
|
|
72
|
-
1925078388,
|
|
73
|
-
2162078206,
|
|
74
|
-
2614888103,
|
|
75
|
-
3248222580,
|
|
76
|
-
3835390401,
|
|
77
|
-
4022224774,
|
|
78
|
-
264347078,
|
|
79
|
-
604807628,
|
|
80
|
-
770255983,
|
|
81
|
-
1249150122,
|
|
82
|
-
1555081692,
|
|
83
|
-
1996064986,
|
|
84
|
-
2554220882,
|
|
85
|
-
2821834349,
|
|
86
|
-
2952996808,
|
|
87
|
-
3210313671,
|
|
88
|
-
3336571891,
|
|
89
|
-
3584528711,
|
|
90
|
-
113926993,
|
|
91
|
-
338241895,
|
|
92
|
-
666307205,
|
|
93
|
-
773529912,
|
|
94
|
-
1294757372,
|
|
95
|
-
1396182291,
|
|
96
|
-
1695183700,
|
|
97
|
-
1986661051,
|
|
98
|
-
2177026350,
|
|
99
|
-
2456956037,
|
|
100
|
-
2730485921,
|
|
101
|
-
2820302411,
|
|
102
|
-
3259730800,
|
|
103
|
-
3345764771,
|
|
104
|
-
3516065817,
|
|
105
|
-
3600352804,
|
|
106
|
-
4094571909,
|
|
107
|
-
275423344,
|
|
108
|
-
430227734,
|
|
109
|
-
506948616,
|
|
110
|
-
659060556,
|
|
111
|
-
883997877,
|
|
112
|
-
958139571,
|
|
113
|
-
1322822218,
|
|
114
|
-
1537002063,
|
|
115
|
-
1747873779,
|
|
116
|
-
1955562222,
|
|
117
|
-
2024104815,
|
|
118
|
-
2227730452,
|
|
119
|
-
2361852424,
|
|
120
|
-
2428436474,
|
|
121
|
-
2756734187,
|
|
122
|
-
3204031479,
|
|
123
|
-
3329325298
|
|
124
|
-
]), u = /* @__PURE__ */ new Uint32Array([
|
|
125
|
-
1779033703,
|
|
126
|
-
3144134277,
|
|
127
|
-
1013904242,
|
|
128
|
-
2773480762,
|
|
129
|
-
1359893119,
|
|
130
|
-
2600822924,
|
|
131
|
-
528734635,
|
|
132
|
-
1541459225
|
|
133
|
-
]), d = /* @__PURE__ */ new Uint32Array(64);
|
|
134
|
-
class E extends D {
|
|
135
|
-
constructor() {
|
|
136
|
-
super(64, 32, 8, !1), this.A = u[0] | 0, this.B = u[1] | 0, this.C = u[2] | 0, this.D = u[3] | 0, this.E = u[4] | 0, this.F = u[5] | 0, this.G = u[6] | 0, this.H = u[7] | 0;
|
|
137
|
-
}
|
|
138
|
-
get() {
|
|
139
|
-
const { A: t, B: n, C: s, D: i, E: f, F: e, G: h, H: o } = this;
|
|
140
|
-
return [t, n, s, i, f, e, h, o];
|
|
141
|
-
}
|
|
142
|
-
// prettier-ignore
|
|
143
|
-
set(t, n, s, i, f, e, h, o) {
|
|
144
|
-
this.A = t | 0, this.B = n | 0, this.C = s | 0, this.D = i | 0, this.E = f | 0, this.F = e | 0, this.G = h | 0, this.H = o | 0;
|
|
145
|
-
}
|
|
146
|
-
process(t, n) {
|
|
147
|
-
for (let c = 0; c < 16; c++, n += 4)
|
|
148
|
-
d[c] = t.getUint32(n, !1);
|
|
149
|
-
for (let c = 16; c < 64; c++) {
|
|
150
|
-
const p = d[c - 15], l = d[c - 2], A = a(p, 7) ^ a(p, 18) ^ p >>> 3, g = a(l, 17) ^ a(l, 19) ^ l >>> 10;
|
|
151
|
-
d[c] = g + d[c - 7] + A + d[c - 16] | 0;
|
|
152
|
-
}
|
|
153
|
-
let { A: s, B: i, C: f, D: e, E: h, F: o, G: r, H: b } = this;
|
|
154
|
-
for (let c = 0; c < 64; c++) {
|
|
155
|
-
const p = a(h, 6) ^ a(h, 11) ^ a(h, 25), l = b + p + _(h, o, r) + I[c] + d[c] | 0, g = (a(s, 2) ^ a(s, 13) ^ a(s, 22)) + L(s, i, f) | 0;
|
|
156
|
-
b = r, r = o, o = h, h = e + l | 0, e = f, f = i, i = s, s = l + g | 0;
|
|
157
|
-
}
|
|
158
|
-
s = s + this.A | 0, i = i + this.B | 0, f = f + this.C | 0, e = e + this.D | 0, h = h + this.E | 0, o = o + this.F | 0, r = r + this.G | 0, b = b + this.H | 0, this.set(s, i, f, e, h, o, r, b);
|
|
159
|
-
}
|
|
160
|
-
roundClean() {
|
|
161
|
-
d.fill(0);
|
|
162
|
-
}
|
|
163
|
-
destroy() {
|
|
164
|
-
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
const G = /* @__PURE__ */ C(() => new E());
|
|
168
|
-
export {
|
|
169
|
-
D as H,
|
|
170
|
-
G as s
|
|
171
|
-
};
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
function f(t) {
|
|
2
|
-
if (!Number.isSafeInteger(t) || t < 0)
|
|
3
|
-
throw new Error(`positive integer expected, not ${t}`);
|
|
4
|
-
}
|
|
5
|
-
function d(t) {
|
|
6
|
-
return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
|
|
7
|
-
}
|
|
8
|
-
function s(t, ...e) {
|
|
9
|
-
if (!d(t))
|
|
10
|
-
throw new Error("Uint8Array expected");
|
|
11
|
-
if (e.length > 0 && !e.includes(t.length))
|
|
12
|
-
throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`);
|
|
13
|
-
}
|
|
14
|
-
function E(t) {
|
|
15
|
-
if (typeof t != "function" || typeof t.create != "function")
|
|
16
|
-
throw new Error("Hash should be wrapped by utils.wrapConstructor");
|
|
17
|
-
f(t.outputLen), f(t.blockLen);
|
|
18
|
-
}
|
|
19
|
-
function L(t, e = !0) {
|
|
20
|
-
if (t.destroyed)
|
|
21
|
-
throw new Error("Hash instance has been destroyed");
|
|
22
|
-
if (e && t.finished)
|
|
23
|
-
throw new Error("Hash#digest() has already been called");
|
|
24
|
-
}
|
|
25
|
-
function A(t, e) {
|
|
26
|
-
s(t);
|
|
27
|
-
const o = e.outputLen;
|
|
28
|
-
if (t.length < o)
|
|
29
|
-
throw new Error(`digestInto() expects output buffer of length at least ${o}`);
|
|
30
|
-
}
|
|
31
|
-
const c = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
32
|
-
const T = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), U = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), k = (t, e) => t << 32 - e | t >>> e, B = (t, e) => t << e | t >>> 32 - e >>> 0, p = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, l = (t) => t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255, O = p ? (t) => t : (t) => l(t);
|
|
33
|
-
function S(t) {
|
|
34
|
-
for (let e = 0; e < t.length; e++)
|
|
35
|
-
t[e] = l(t[e]);
|
|
36
|
-
}
|
|
37
|
-
function y(t) {
|
|
38
|
-
if (typeof t != "string")
|
|
39
|
-
throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
|
|
40
|
-
return new Uint8Array(new TextEncoder().encode(t));
|
|
41
|
-
}
|
|
42
|
-
function i(t) {
|
|
43
|
-
return typeof t == "string" && (t = y(t)), s(t), t;
|
|
44
|
-
}
|
|
45
|
-
function j(...t) {
|
|
46
|
-
let e = 0;
|
|
47
|
-
for (let n = 0; n < t.length; n++) {
|
|
48
|
-
const r = t[n];
|
|
49
|
-
s(r), e += r.length;
|
|
50
|
-
}
|
|
51
|
-
const o = new Uint8Array(e);
|
|
52
|
-
for (let n = 0, r = 0; n < t.length; n++) {
|
|
53
|
-
const u = t[n];
|
|
54
|
-
o.set(u, r), r += u.length;
|
|
55
|
-
}
|
|
56
|
-
return o;
|
|
57
|
-
}
|
|
58
|
-
class $ {
|
|
59
|
-
// Safe version that clones internal state
|
|
60
|
-
clone() {
|
|
61
|
-
return this._cloneInto();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
const g = {}.toString;
|
|
65
|
-
function H(t, e) {
|
|
66
|
-
if (e !== void 0 && g.call(e) !== "[object Object]")
|
|
67
|
-
throw new Error("Options should be object or undefined");
|
|
68
|
-
return Object.assign(t, e);
|
|
69
|
-
}
|
|
70
|
-
function V(t) {
|
|
71
|
-
const e = (n) => t().update(i(n)).digest(), o = t();
|
|
72
|
-
return e.outputLen = o.outputLen, e.blockLen = o.blockLen, e.create = () => t(), e;
|
|
73
|
-
}
|
|
74
|
-
function I(t) {
|
|
75
|
-
const e = (n, r) => t(r).update(i(n)).digest(), o = t({});
|
|
76
|
-
return e.outputLen = o.outputLen, e.blockLen = o.blockLen, e.create = (n) => t(n), e;
|
|
77
|
-
}
|
|
78
|
-
function R(t) {
|
|
79
|
-
const e = (n, r) => t(r).update(i(n)).digest(), o = t({});
|
|
80
|
-
return e.outputLen = o.outputLen, e.blockLen = o.blockLen, e.create = (n) => t(n), e;
|
|
81
|
-
}
|
|
82
|
-
function C(t = 32) {
|
|
83
|
-
if (c && typeof c.getRandomValues == "function")
|
|
84
|
-
return c.getRandomValues(new Uint8Array(t));
|
|
85
|
-
if (c && typeof c.randomBytes == "function")
|
|
86
|
-
return c.randomBytes(t);
|
|
87
|
-
throw new Error("crypto.getRandomValues must be defined");
|
|
88
|
-
}
|
|
89
|
-
function w(t) {
|
|
90
|
-
return t("return this");
|
|
91
|
-
}
|
|
92
|
-
const a = typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : w(Function);
|
|
93
|
-
function b(t, e) {
|
|
94
|
-
return typeof a[t] > "u" ? e : a[t];
|
|
95
|
-
}
|
|
96
|
-
let h = class {
|
|
97
|
-
encode(e) {
|
|
98
|
-
const o = e.length, n = new Uint8Array(o);
|
|
99
|
-
for (let r = 0; r < o; r++)
|
|
100
|
-
n[r] = e.charCodeAt(r);
|
|
101
|
-
return n;
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
const x = /* @__PURE__ */ b("TextEncoder", h), m = new x();
|
|
105
|
-
function W(t) {
|
|
106
|
-
return t ? m.encode(t.toString()) : new Uint8Array();
|
|
107
|
-
}
|
|
108
|
-
export {
|
|
109
|
-
$ as H,
|
|
110
|
-
O as a,
|
|
111
|
-
S as b,
|
|
112
|
-
b as c,
|
|
113
|
-
j as d,
|
|
114
|
-
L as e,
|
|
115
|
-
y as f,
|
|
116
|
-
V as g,
|
|
117
|
-
R as h,
|
|
118
|
-
p as i,
|
|
119
|
-
s as j,
|
|
120
|
-
H as k,
|
|
121
|
-
B as l,
|
|
122
|
-
E as m,
|
|
123
|
-
f as n,
|
|
124
|
-
A as o,
|
|
125
|
-
U as p,
|
|
126
|
-
k as q,
|
|
127
|
-
C as r,
|
|
128
|
-
W as s,
|
|
129
|
-
i as t,
|
|
130
|
-
T as u,
|
|
131
|
-
I as w,
|
|
132
|
-
a as x
|
|
133
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|