aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-06-28 11:46:17 -0400
committerGravatar dave caruso <me@paperdave.net> 2023-06-29 23:40:38 -0400
commitbb697687467b33b47f16d33d2dc8dfcc6ccf7274 (patch)
treeb8bbbdfbbf276d645765ba772399ddde4f1f3700
parent9e2e3732127ea77803e87cc8768c9040d1717ca7 (diff)
downloadbun-bb697687467b33b47f16d33d2dc8dfcc6ccf7274.tar.gz
bun-bb697687467b33b47f16d33d2dc8dfcc6ccf7274.tar.zst
bun-bb697687467b33b47f16d33d2dc8dfcc6ccf7274.zip
stuff
-rw-r--r--src/bun.js/api/server.zig10
-rw-r--r--src/bun.js/bindings/bindings.cpp4
-rw-r--r--src/bun.js/webcore/response.zig35
-rw-r--r--src/js/builtins/BunBuiltinNames.h1
-rw-r--r--src/js/builtins/EventStream.ts7
-rw-r--r--src/js/out/WebCoreJSBuiltins.cpp152
-rw-r--r--src/js/out/modules/node/crypto.js8
-rw-r--r--src/js/out/modules/node/fs.promises.js2
-rw-r--r--src/js/out/modules/node/path.js2
-rw-r--r--src/js/out/modules/node/path.posix.js2
-rw-r--r--src/js/out/modules/node/path.win32.js2
-rw-r--r--src/js/out/modules/node/stream.js4
-rw-r--r--src/js/out/modules/node/stream.web.js2
-rw-r--r--test/js/bun/http/node.js8
-rw-r--r--test/js/bun/http/sse-demo.ts33
-rw-r--r--test/js/bun/http/sse.test.ts16
16 files changed, 183 insertions, 105 deletions
diff --git a/src/bun.js/api/server.zig b/src/bun.js/api/server.zig
index e35759245..0e39a23f2 100644
--- a/src/bun.js/api/server.zig
+++ b/src/bun.js/api/server.zig
@@ -1436,16 +1436,13 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp
// this request was already finalized
if (this.sink) |wrapper| {
wrapper.sink.abort();
- this.markComplete();
- this.deinit();
+ this.finalize();
return;
}
// if we can, free the request now.
if (this.isDeadRequest()) {
- this.finalizeWithoutDeinit();
- this.markComplete();
- this.deinit();
+ this.finalize();
return;
}
@@ -2110,8 +2107,7 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp
// }
this.setAbortHandler();
- streamLog("is in progress, but did not return a Promise. Finalizing request context", .{});
- this.finalizeWithoutDeinit();
+ streamLog("is in progress, but did not return a Promise", .{});
stream.value.unprotect();
}
diff --git a/src/bun.js/bindings/bindings.cpp b/src/bun.js/bindings/bindings.cpp
index be3408555..7c6d295d0 100644
--- a/src/bun.js/bindings/bindings.cpp
+++ b/src/bun.js/bindings/bindings.cpp
@@ -3937,6 +3937,7 @@ enum class BuiltinNamesMap : uint8_t {
data,
toString,
redirect,
+ contentType
};
static JSC::Identifier builtinNameMap(JSC::JSGlobalObject* globalObject, unsigned char name)
@@ -3968,6 +3969,9 @@ static JSC::Identifier builtinNameMap(JSC::JSGlobalObject* globalObject, unsigne
case BuiltinNamesMap::redirect: {
return clientData->builtinNames().redirectPublicName();
}
+ case BuiltinNamesMap::contentType: {
+ return clientData->builtinNames().connectPrivateName();
+ }
}
}
diff --git a/src/bun.js/webcore/response.zig b/src/bun.js/webcore/response.zig
index b4ea08579..0dce5bfa3 100644
--- a/src/bun.js/webcore/response.zig
+++ b/src/bun.js/webcore/response.zig
@@ -222,6 +222,14 @@ pub const Response = struct {
if (content_type.len > 0) {
this.body.init.headers.?.put("content-type", content_type, globalThis);
}
+ } else if (this.body.value == .Locked) {
+ // EventStream defines "contentType"
+ const locked = this.body.value.Locked;
+ if (locked.readable) |readable| {
+ if (readable.value.getOptional(locked.global, "contentType", ZigString.Slice) catch null) |slice| {
+ this.body.init.headers.?.put("content-type", slice.slice(), globalThis);
+ }
+ }
}
}
@@ -536,12 +544,22 @@ pub const Response = struct {
.url = "",
};
- if (response.body.value == .Blob and
- response.body.init.headers != null and
- response.body.value.Blob.content_type.len > 0 and
- !response.body.init.headers.?.fastHas(.ContentType))
- {
- response.body.init.headers.?.put("content-type", response.body.value.Blob.content_type, globalThis);
+ if (response.body.init.headers != null) {
+ if (response.body.value == .Blob and
+ response.body.value.Blob.content_type.len > 0 and
+ !response.body.init.headers.?.fastHas(.ContentType))
+ {
+ response.body.init.headers.?.put("content-type", response.body.value.Blob.content_type, globalThis);
+ } else if (response.body.value == .Locked) {
+ const locked = response.body.value.Locked;
+ if (locked.readable) |readable| {
+ if (readable.value.fastGetDirect(locked.global, .contentType) catch null) |value| {
+ if (value.isString()) {
+ response.body.init.headers.?.put("content-type", value.toBunString(locked.global).toSlice(), globalThis);
+ }
+ }
+ }
+ }
}
return response;
@@ -1725,14 +1743,11 @@ pub const FetchEvent = struct {
if (strings.eqlComptime(name, "content-length")) {
content_length = std.fmt.parseInt(usize, headers.asStr(header.value), 10) catch null;
- continue;
}
// Some headers need to be managed by bun
if (strings.eqlComptime(name, "transfer-encoding") or
- strings.eqlComptime(name, "content-encoding") or
- strings.eqlComptime(name, "strict-transport-security") or
- strings.eqlComptime(name, "content-security-policy"))
+ strings.eqlComptime(name, "content-encoding"))
{
continue;
}
diff --git a/src/js/builtins/BunBuiltinNames.h b/src/js/builtins/BunBuiltinNames.h
index 1897f939e..776f39fec 100644
--- a/src/js/builtins/BunBuiltinNames.h
+++ b/src/js/builtins/BunBuiltinNames.h
@@ -71,6 +71,7 @@ using namespace JSC;
macro(consumeReadableStream) \
macro(controlledReadableStream) \
macro(controller) \
+ macro(contentType) \
macro(cork) \
macro(createCommonJSModule) \
macro(createEmptyReadableStream) \
diff --git a/src/js/builtins/EventStream.ts b/src/js/builtins/EventStream.ts
index c2ce30f17..c9d574836 100644
--- a/src/js/builtins/EventStream.ts
+++ b/src/js/builtins/EventStream.ts
@@ -16,12 +16,13 @@ export function getEventStream() {
this.#ctrl = undefined;
},
});
+ $putByIdDirectPrivate(this, "contentType", "text/event-stream");
}
send(event?: unknown, data?: unknown): void {
var ctrl = this.#ctrl!;
if (!ctrl) {
- throw new Error("EventStream has ended");
+ throw new Error("EventStream is closed");
}
if (!data) {
data = event;
@@ -42,5 +43,9 @@ export function getEventStream() {
}
ctrl.flush();
}
+
+ close() {
+ this.#ctrl?.close();
+ }
};
}
diff --git a/src/js/out/WebCoreJSBuiltins.cpp b/src/js/out/WebCoreJSBuiltins.cpp
index 18362698e..bcee5e7dc 100644
--- a/src/js/out/WebCoreJSBuiltins.cpp
+++ b/src/js/out/WebCoreJSBuiltins.cpp
@@ -164,7 +164,7 @@ const JSC::ConstructorKind s_writableStreamInternalsWritableStreamAbortCodeConst
const JSC::ImplementationVisibility s_writableStreamInternalsWritableStreamAbortCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_writableStreamInternalsWritableStreamAbortCodeLength = 501;
static const JSC::Intrinsic s_writableStreamInternalsWritableStreamAbortCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_writableStreamInternalsWritableStreamAbortCode = "(function (c,B){\"use strict\";const _=@getByIdDirectPrivate(c,\"state\");if(_===\"closed\"||_===\"errored\")return @Promise.@resolve();const h=@getByIdDirectPrivate(c,\"pendingAbortRequest\");if(h!==@undefined)return h.promise.@promise;@assert(_===\"writable\"||_===\"erroring\");let f=!1;if(_===\"erroring\")f=!0,B=@undefined;const j=@newPromiseCapability(@Promise);if(@putByIdDirectPrivate(c,\"pendingAbortRequest\",{promise:j,reason:B,wasAlreadyErroring:f}),!f)@writableStreamStartErroring(c,B);return j.@promise})\n";
+const char* const s_writableStreamInternalsWritableStreamAbortCode = "(function (c,h){\"use strict\";const B=@getByIdDirectPrivate(c,\"state\");if(B===\"closed\"||B===\"errored\")return @Promise.@resolve();const _=@getByIdDirectPrivate(c,\"pendingAbortRequest\");if(_!==@undefined)return _.promise.@promise;@assert(B===\"writable\"||B===\"erroring\");let f=!1;if(B===\"erroring\")f=!0,h=@undefined;const j=@newPromiseCapability(@Promise);if(@putByIdDirectPrivate(c,\"pendingAbortRequest\",{promise:j,reason:h,wasAlreadyErroring:f}),!f)@writableStreamStartErroring(c,h);return j.@promise})\n";
// writableStreamClose
const JSC::ConstructAbility s_writableStreamInternalsWritableStreamCloseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -308,7 +308,7 @@ const JSC::ConstructorKind s_writableStreamInternalsWritableStreamDefaultWriterC
const JSC::ImplementationVisibility s_writableStreamInternalsWritableStreamDefaultWriterCloseWithErrorPropagationCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_writableStreamInternalsWritableStreamDefaultWriterCloseWithErrorPropagationCodeLength = 385;
static const JSC::Intrinsic s_writableStreamInternalsWritableStreamDefaultWriterCloseWithErrorPropagationCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_writableStreamInternalsWritableStreamDefaultWriterCloseWithErrorPropagationCode = "(function (c){\"use strict\";const l=@getByIdDirectPrivate(c,\"stream\");@assert(l!==@undefined);const u=@getByIdDirectPrivate(l,\"state\");if(@writableStreamCloseQueuedOrInFlight(l)||u===\"closed\")return @Promise.@resolve();if(u===\"errored\")return @Promise.@reject(@getByIdDirectPrivate(l,\"storedError\"));return @assert(u===\"writable\"||u===\"erroring\"),@writableStreamDefaultWriterClose(c)})\n";
+const char* const s_writableStreamInternalsWritableStreamDefaultWriterCloseWithErrorPropagationCode = "(function (l){\"use strict\";const u=@getByIdDirectPrivate(l,\"stream\");@assert(u!==@undefined);const c=@getByIdDirectPrivate(u,\"state\");if(@writableStreamCloseQueuedOrInFlight(u)||c===\"closed\")return @Promise.@resolve();if(c===\"errored\")return @Promise.@reject(@getByIdDirectPrivate(u,\"storedError\"));return @assert(c===\"writable\"||c===\"erroring\"),@writableStreamDefaultWriterClose(l)})\n";
// writableStreamDefaultWriterEnsureClosedPromiseRejected
const JSC::ConstructAbility s_writableStreamInternalsWritableStreamDefaultWriterEnsureClosedPromiseRejectedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -372,7 +372,7 @@ const JSC::ConstructorKind s_writableStreamInternalsSetUpWritableStreamDefaultCo
const JSC::ImplementationVisibility s_writableStreamInternalsSetUpWritableStreamDefaultControllerFromUnderlyingSinkCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_writableStreamInternalsSetUpWritableStreamDefaultControllerFromUnderlyingSinkCodeLength = 573;
static const JSC::Intrinsic s_writableStreamInternalsSetUpWritableStreamDefaultControllerFromUnderlyingSinkCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_writableStreamInternalsSetUpWritableStreamDefaultControllerFromUnderlyingSinkCode = "(function (f,j,P,p,q){\"use strict\";const x=new @WritableStreamDefaultController;let B=()=>{},C=()=>{return @Promise.@resolve()},E=()=>{return @Promise.@resolve()},F=()=>{return @Promise.@resolve()};if(\"start\"in P){const v=P[\"start\"];B=()=>@promiseInvokeOrNoopMethodNoCatch(j,v,[x])}if(\"write\"in P){const v=P[\"write\"];C=(_)=>@promiseInvokeOrNoopMethod(j,v,[_,x])}if(\"close\"in P){const v=P[\"close\"];E=()=>@promiseInvokeOrNoopMethod(j,v,[])}if(\"abort\"in P){const v=P[\"abort\"];F=(_)=>@promiseInvokeOrNoopMethod(j,v,[_])}@setUpWritableStreamDefaultController(f,x,B,C,E,F,p,q)})\n";
+const char* const s_writableStreamInternalsSetUpWritableStreamDefaultControllerFromUnderlyingSinkCode = "(function (v,P,_,j,p){\"use strict\";const q=new @WritableStreamDefaultController;let x=()=>{},B=()=>{return @Promise.@resolve()},C=()=>{return @Promise.@resolve()},f=()=>{return @Promise.@resolve()};if(\"start\"in _){const E=_[\"start\"];x=()=>@promiseInvokeOrNoopMethodNoCatch(P,E,[q])}if(\"write\"in _){const E=_[\"write\"];B=(F)=>@promiseInvokeOrNoopMethod(P,E,[F,q])}if(\"close\"in _){const E=_[\"close\"];C=()=>@promiseInvokeOrNoopMethod(P,E,[])}if(\"abort\"in _){const E=_[\"abort\"];f=(F)=>@promiseInvokeOrNoopMethod(P,E,[F])}@setUpWritableStreamDefaultController(v,q,x,B,C,f,j,p)})\n";
// writableStreamDefaultControllerAdvanceQueueIfNeeded
const JSC::ConstructAbility s_writableStreamInternalsWritableStreamDefaultControllerAdvanceQueueIfNeededCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -380,7 +380,7 @@ const JSC::ConstructorKind s_writableStreamInternalsWritableStreamDefaultControl
const JSC::ImplementationVisibility s_writableStreamInternalsWritableStreamDefaultControllerAdvanceQueueIfNeededCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_writableStreamInternalsWritableStreamDefaultControllerAdvanceQueueIfNeededCodeLength = 582;
static const JSC::Intrinsic s_writableStreamInternalsWritableStreamDefaultControllerAdvanceQueueIfNeededCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_writableStreamInternalsWritableStreamDefaultControllerAdvanceQueueIfNeededCode = "(function (_){\"use strict\";const d=@getByIdDirectPrivate(_,\"stream\");if(@getByIdDirectPrivate(_,\"started\")!==1)return;if(@assert(d!==@undefined),@getByIdDirectPrivate(d,\"inFlightWriteRequest\")!==@undefined)return;const f=@getByIdDirectPrivate(d,\"state\");if(@assert(f!==\"closed\"||f!==\"errored\"),f===\"erroring\"){@writableStreamFinishErroring(d);return}const h=@getByIdDirectPrivate(_,\"queue\");if(h.content\?.isEmpty()\?\?!1)return;const i=@peekQueueValue(h);if(i===@isCloseSentinel)@writableStreamDefaultControllerProcessClose(_);else @writableStreamDefaultControllerProcessWrite(_,i)})\n";
+const char* const s_writableStreamInternalsWritableStreamDefaultControllerAdvanceQueueIfNeededCode = "(function (_){\"use strict\";const d=@getByIdDirectPrivate(_,\"stream\");if(@getByIdDirectPrivate(_,\"started\")!==1)return;if(@assert(d!==@undefined),@getByIdDirectPrivate(d,\"inFlightWriteRequest\")!==@undefined)return;const h=@getByIdDirectPrivate(d,\"state\");if(@assert(h!==\"closed\"||h!==\"errored\"),h===\"erroring\"){@writableStreamFinishErroring(d);return}const f=@getByIdDirectPrivate(_,\"queue\");if(f.content\?.isEmpty()\?\?!1)return;const i=@peekQueueValue(f);if(i===@isCloseSentinel)@writableStreamDefaultControllerProcessClose(_);else @writableStreamDefaultControllerProcessWrite(_,i)})\n";
// isCloseSentinel
const JSC::ConstructAbility s_writableStreamInternalsIsCloseSentinelCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -460,7 +460,7 @@ const JSC::ConstructorKind s_writableStreamInternalsWritableStreamDefaultControl
const JSC::ImplementationVisibility s_writableStreamInternalsWritableStreamDefaultControllerProcessWriteCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_writableStreamInternalsWritableStreamDefaultControllerProcessWriteCodeLength = 734;
static const JSC::Intrinsic s_writableStreamInternalsWritableStreamDefaultControllerProcessWriteCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_writableStreamInternalsWritableStreamDefaultControllerProcessWriteCode = "(function (i,d){\"use strict\";const q=@getByIdDirectPrivate(i,\"stream\");@writableStreamMarkFirstWriteRequestInFlight(q),@getByIdDirectPrivate(i,\"writeAlgorithm\").@call(@undefined,d).@then(()=>{@writableStreamFinishInFlightWrite(q);const v=@getByIdDirectPrivate(q,\"state\");if(@assert(v===\"writable\"||v===\"erroring\"),@dequeueValue(@getByIdDirectPrivate(i,\"queue\")),!@writableStreamCloseQueuedOrInFlight(q)&&v===\"writable\"){const M=@writableStreamDefaultControllerGetBackpressure(i);@writableStreamUpdateBackpressure(q,M)}@writableStreamDefaultControllerAdvanceQueueIfNeeded(i)},(v)=>{if(@getByIdDirectPrivate(q,\"state\")===\"writable\")@writableStreamDefaultControllerClearAlgorithms(i);@writableStreamFinishInFlightWriteWithError(q,v)})})\n";
+const char* const s_writableStreamInternalsWritableStreamDefaultControllerProcessWriteCode = "(function (i,d){\"use strict\";const _=@getByIdDirectPrivate(i,\"stream\");@writableStreamMarkFirstWriteRequestInFlight(_),@getByIdDirectPrivate(i,\"writeAlgorithm\").@call(@undefined,d).@then(()=>{@writableStreamFinishInFlightWrite(_);const v=@getByIdDirectPrivate(_,\"state\");if(@assert(v===\"writable\"||v===\"erroring\"),@dequeueValue(@getByIdDirectPrivate(i,\"queue\")),!@writableStreamCloseQueuedOrInFlight(_)&&v===\"writable\"){const M=@writableStreamDefaultControllerGetBackpressure(i);@writableStreamUpdateBackpressure(_,M)}@writableStreamDefaultControllerAdvanceQueueIfNeeded(i)},(v)=>{if(@getByIdDirectPrivate(_,\"state\")===\"writable\")@writableStreamDefaultControllerClearAlgorithms(i);@writableStreamFinishInFlightWriteWithError(_,v)})})\n";
// writableStreamDefaultControllerWrite
const JSC::ConstructAbility s_writableStreamInternalsWritableStreamDefaultControllerWriteCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -468,7 +468,7 @@ const JSC::ConstructorKind s_writableStreamInternalsWritableStreamDefaultControl
const JSC::ImplementationVisibility s_writableStreamInternalsWritableStreamDefaultControllerWriteCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_writableStreamInternalsWritableStreamDefaultControllerWriteCodeLength = 450;
static const JSC::Intrinsic s_writableStreamInternalsWritableStreamDefaultControllerWriteCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_writableStreamInternalsWritableStreamDefaultControllerWriteCode = "(function (d,B,D){\"use strict\";try{@enqueueValueWithSize(@getByIdDirectPrivate(d,\"queue\"),B,D);const y=@getByIdDirectPrivate(d,\"stream\"),I=@getByIdDirectPrivate(y,\"state\");if(!@writableStreamCloseQueuedOrInFlight(y)&&I===\"writable\"){const _=@writableStreamDefaultControllerGetBackpressure(d);@writableStreamUpdateBackpressure(y,_)}@writableStreamDefaultControllerAdvanceQueueIfNeeded(d)}catch(y){@writableStreamDefaultControllerErrorIfNeeded(d,y)}})\n";
+const char* const s_writableStreamInternalsWritableStreamDefaultControllerWriteCode = "(function (d,y,B){\"use strict\";try{@enqueueValueWithSize(@getByIdDirectPrivate(d,\"queue\"),y,B);const D=@getByIdDirectPrivate(d,\"stream\"),I=@getByIdDirectPrivate(D,\"state\");if(!@writableStreamCloseQueuedOrInFlight(D)&&I===\"writable\"){const _=@writableStreamDefaultControllerGetBackpressure(d);@writableStreamUpdateBackpressure(D,_)}@writableStreamDefaultControllerAdvanceQueueIfNeeded(d)}catch(D){@writableStreamDefaultControllerErrorIfNeeded(d,D)}})\n";
#define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \
JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \
@@ -502,7 +502,7 @@ const JSC::ConstructorKind s_transformStreamInternalsCreateTransformStreamCodeCo
const JSC::ImplementationVisibility s_transformStreamInternalsCreateTransformStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_transformStreamInternalsCreateTransformStreamCodeLength = 513;
static const JSC::Intrinsic s_transformStreamInternalsCreateTransformStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_transformStreamInternalsCreateTransformStreamCode = "(function (j,_,x,B,q,E,D){\"use strict\";if(B===@undefined)B=1;if(q===@undefined)q=()=>1;if(E===@undefined)E=0;if(D===@undefined)D=()=>1;@assert(B>=0),@assert(E>=0);const F={};@putByIdDirectPrivate(F,\"TransformStream\",!0);const v=new @TransformStream(F),G=@newPromiseCapability(@Promise);@initializeTransformStream(v,G.@promise,B,q,E,D);const I=new @TransformStreamDefaultController;return @setUpTransformStreamDefaultController(v,I,_,x),j().@then(()=>{G.@resolve.@call()},(c)=>{G.@reject.@call(@undefined,c)}),v})\n";
+const char* const s_transformStreamInternalsCreateTransformStreamCode = "(function (_,c,j,q,v,x,B){\"use strict\";if(q===@undefined)q=1;if(v===@undefined)v=()=>1;if(x===@undefined)x=0;if(B===@undefined)B=()=>1;@assert(q>=0),@assert(x>=0);const D={};@putByIdDirectPrivate(D,\"TransformStream\",!0);const E=new @TransformStream(D),F=@newPromiseCapability(@Promise);@initializeTransformStream(E,F.@promise,q,v,x,B);const G=new @TransformStreamDefaultController;return @setUpTransformStreamDefaultController(E,G,c,j),_().@then(()=>{F.@resolve.@call()},(I)=>{F.@reject.@call(@undefined,I)}),E})\n";
// initializeTransformStream
const JSC::ConstructAbility s_transformStreamInternalsInitializeTransformStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -510,7 +510,7 @@ const JSC::ConstructorKind s_transformStreamInternalsInitializeTransformStreamCo
const JSC::ImplementationVisibility s_transformStreamInternalsInitializeTransformStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_transformStreamInternalsInitializeTransformStreamCodeLength = 1015;
static const JSC::Intrinsic s_transformStreamInternalsInitializeTransformStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_transformStreamInternalsInitializeTransformStreamCode = "(function (f,N,L,B,T,j){\"use strict\";const q=()=>{return N},v=(K)=>{return @transformStreamDefaultSinkWriteAlgorithm(f,K)},x=(K)=>{return @transformStreamDefaultSinkAbortAlgorithm(f,K)},C=()=>{return @transformStreamDefaultSinkCloseAlgorithm(f)},D=@createWritableStream(q,v,C,x,L,B),E=()=>{return @transformStreamDefaultSourcePullAlgorithm(f)},F=(K)=>{return @transformStreamErrorWritableAndUnblockWrite(f,K),@Promise.@resolve()},G={};@putByIdDirectPrivate(G,\"start\",q),@putByIdDirectPrivate(G,\"pull\",E),@putByIdDirectPrivate(G,\"cancel\",F);const I={};@putByIdDirectPrivate(I,\"size\",j),@putByIdDirectPrivate(I,\"highWaterMark\",T);const J=new @ReadableStream(G,I);@putByIdDirectPrivate(f,\"writable\",D),@putByIdDirectPrivate(f,\"internalWritable\",@getInternalWritableStream(D)),@putByIdDirectPrivate(f,\"readable\",J),@putByIdDirectPrivate(f,\"backpressure\",@undefined),@putByIdDirectPrivate(f,\"backpressureChangePromise\",@undefined),@transformStreamSetBackpressure(f,!0),@putByIdDirectPrivate(f,\"controller\",@undefined)})\n";
+const char* const s_transformStreamInternalsInitializeTransformStreamCode = "(function (f,G,B,T,C,F){\"use strict\";const I=()=>{return G},J=(x)=>{return @transformStreamDefaultSinkWriteAlgorithm(f,x)},K=(x)=>{return @transformStreamDefaultSinkAbortAlgorithm(f,x)},j=()=>{return @transformStreamDefaultSinkCloseAlgorithm(f)},L=@createWritableStream(I,J,j,K,B,T),N=()=>{return @transformStreamDefaultSourcePullAlgorithm(f)},q=(x)=>{return @transformStreamErrorWritableAndUnblockWrite(f,x),@Promise.@resolve()},D={};@putByIdDirectPrivate(D,\"start\",I),@putByIdDirectPrivate(D,\"pull\",N),@putByIdDirectPrivate(D,\"cancel\",q);const E={};@putByIdDirectPrivate(E,\"size\",F),@putByIdDirectPrivate(E,\"highWaterMark\",C);const v=new @ReadableStream(D,E);@putByIdDirectPrivate(f,\"writable\",L),@putByIdDirectPrivate(f,\"internalWritable\",@getInternalWritableStream(L)),@putByIdDirectPrivate(f,\"readable\",v),@putByIdDirectPrivate(f,\"backpressure\",@undefined),@putByIdDirectPrivate(f,\"backpressureChangePromise\",@undefined),@transformStreamSetBackpressure(f,!0),@putByIdDirectPrivate(f,\"controller\",@undefined)})\n";
// transformStreamError
const JSC::ConstructAbility s_transformStreamInternalsTransformStreamErrorCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -526,7 +526,7 @@ const JSC::ConstructorKind s_transformStreamInternalsTransformStreamErrorWritabl
const JSC::ImplementationVisibility s_transformStreamInternalsTransformStreamErrorWritableAndUnblockWriteCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_transformStreamInternalsTransformStreamErrorWritableAndUnblockWriteCodeLength = 339;
static const JSC::Intrinsic s_transformStreamInternalsTransformStreamErrorWritableAndUnblockWriteCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_transformStreamInternalsTransformStreamErrorWritableAndUnblockWriteCode = "(function (_,o){\"use strict\";@transformStreamDefaultControllerClearAlgorithms(@getByIdDirectPrivate(_,\"controller\"));const n=@getByIdDirectPrivate(_,\"internalWritable\");if(@writableStreamDefaultControllerErrorIfNeeded(@getByIdDirectPrivate(n,\"controller\"),o),@getByIdDirectPrivate(_,\"backpressure\"))@transformStreamSetBackpressure(_,!1)})\n";
+const char* const s_transformStreamInternalsTransformStreamErrorWritableAndUnblockWriteCode = "(function (_,n){\"use strict\";@transformStreamDefaultControllerClearAlgorithms(@getByIdDirectPrivate(_,\"controller\"));const o=@getByIdDirectPrivate(_,\"internalWritable\");if(@writableStreamDefaultControllerErrorIfNeeded(@getByIdDirectPrivate(o,\"controller\"),n),@getByIdDirectPrivate(_,\"backpressure\"))@transformStreamSetBackpressure(_,!1)})\n";
// transformStreamSetBackpressure
const JSC::ConstructAbility s_transformStreamInternalsTransformStreamSetBackpressureCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -566,7 +566,7 @@ const JSC::ConstructorKind s_transformStreamInternalsTransformStreamDefaultContr
const JSC::ImplementationVisibility s_transformStreamInternalsTransformStreamDefaultControllerEnqueueCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_transformStreamInternalsTransformStreamDefaultControllerEnqueueCodeLength = 622;
static const JSC::Intrinsic s_transformStreamInternalsTransformStreamDefaultControllerEnqueueCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_transformStreamInternalsTransformStreamDefaultControllerEnqueueCode = "(function (S,W){\"use strict\";const f=@getByIdDirectPrivate(S,\"stream\"),g=@getByIdDirectPrivate(f,\"readable\"),j=@getByIdDirectPrivate(g,\"readableStreamController\");if(@assert(j!==@undefined),!@readableStreamDefaultControllerCanCloseOrEnqueue(j))@throwTypeError(\"TransformStream.readable cannot close or enqueue\");try{@readableStreamDefaultControllerEnqueue(j,W)}catch(i){throw @transformStreamErrorWritableAndUnblockWrite(f,i),@getByIdDirectPrivate(g,\"storedError\")}const _=!@readableStreamDefaultControllerShouldCallPull(j);if(_!==@getByIdDirectPrivate(f,\"backpressure\"))@assert(_),@transformStreamSetBackpressure(f,!0)})\n";
+const char* const s_transformStreamInternalsTransformStreamDefaultControllerEnqueueCode = "(function (_,S){\"use strict\";const W=@getByIdDirectPrivate(_,\"stream\"),f=@getByIdDirectPrivate(W,\"readable\"),g=@getByIdDirectPrivate(f,\"readableStreamController\");if(@assert(g!==@undefined),!@readableStreamDefaultControllerCanCloseOrEnqueue(g))@throwTypeError(\"TransformStream.readable cannot close or enqueue\");try{@readableStreamDefaultControllerEnqueue(g,S)}catch(j){throw @transformStreamErrorWritableAndUnblockWrite(W,j),@getByIdDirectPrivate(f,\"storedError\")}const i=!@readableStreamDefaultControllerShouldCallPull(g);if(i!==@getByIdDirectPrivate(W,\"backpressure\"))@assert(i),@transformStreamSetBackpressure(W,!0)})\n";
// transformStreamDefaultControllerError
const JSC::ConstructAbility s_transformStreamInternalsTransformStreamDefaultControllerErrorCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -598,7 +598,7 @@ const JSC::ConstructorKind s_transformStreamInternalsTransformStreamDefaultSinkW
const JSC::ImplementationVisibility s_transformStreamInternalsTransformStreamDefaultSinkWriteAlgorithmCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_transformStreamInternalsTransformStreamDefaultSinkWriteAlgorithmCodeLength = 764;
static const JSC::Intrinsic s_transformStreamInternalsTransformStreamDefaultSinkWriteAlgorithmCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_transformStreamInternalsTransformStreamDefaultSinkWriteAlgorithmCode = "(function (d,v){\"use strict\";const f=@getByIdDirectPrivate(d,\"internalWritable\");@assert(@getByIdDirectPrivate(f,\"state\")===\"writable\");const j=@getByIdDirectPrivate(d,\"controller\");if(@getByIdDirectPrivate(d,\"backpressure\")){const x=@newPromiseCapability(@Promise),_=@getByIdDirectPrivate(d,\"backpressureChangePromise\");return @assert(_!==@undefined),_.@promise.@then(()=>{const q=@getByIdDirectPrivate(f,\"state\");if(q===\"erroring\"){x.@reject.@call(@undefined,@getByIdDirectPrivate(f,\"storedError\"));return}@assert(q===\"writable\"),@transformStreamDefaultControllerPerformTransform(j,v).@then(()=>{x.@resolve()},(z)=>{x.@reject.@call(@undefined,z)})},(q)=>{x.@reject.@call(@undefined,q)}),x.@promise}return @transformStreamDefaultControllerPerformTransform(j,v)})\n";
+const char* const s_transformStreamInternalsTransformStreamDefaultSinkWriteAlgorithmCode = "(function (_,d){\"use strict\";const v=@getByIdDirectPrivate(_,\"internalWritable\");@assert(@getByIdDirectPrivate(v,\"state\")===\"writable\");const f=@getByIdDirectPrivate(_,\"controller\");if(@getByIdDirectPrivate(_,\"backpressure\")){const j=@newPromiseCapability(@Promise),q=@getByIdDirectPrivate(_,\"backpressureChangePromise\");return @assert(q!==@undefined),q.@promise.@then(()=>{const x=@getByIdDirectPrivate(v,\"state\");if(x===\"erroring\"){j.@reject.@call(@undefined,@getByIdDirectPrivate(v,\"storedError\"));return}@assert(x===\"writable\"),@transformStreamDefaultControllerPerformTransform(f,d).@then(()=>{j.@resolve()},(z)=>{j.@reject.@call(@undefined,z)})},(x)=>{j.@reject.@call(@undefined,x)}),j.@promise}return @transformStreamDefaultControllerPerformTransform(f,d)})\n";
// transformStreamDefaultSinkAbortAlgorithm
const JSC::ConstructAbility s_transformStreamInternalsTransformStreamDefaultSinkAbortAlgorithmCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -614,7 +614,7 @@ const JSC::ConstructorKind s_transformStreamInternalsTransformStreamDefaultSinkC
const JSC::ImplementationVisibility s_transformStreamInternalsTransformStreamDefaultSinkCloseAlgorithmCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_transformStreamInternalsTransformStreamDefaultSinkCloseAlgorithmCodeLength = 789;
static const JSC::Intrinsic s_transformStreamInternalsTransformStreamDefaultSinkCloseAlgorithmCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_transformStreamInternalsTransformStreamDefaultSinkCloseAlgorithmCode = "(function (_){\"use strict\";const q=@getByIdDirectPrivate(_,\"readable\"),I=@getByIdDirectPrivate(_,\"controller\"),f=@getByIdDirectPrivate(q,\"readableStreamController\"),j=@getByIdDirectPrivate(I,\"flushAlgorithm\");@assert(j!==@undefined);const k=@getByIdDirectPrivate(I,\"flushAlgorithm\").@call();@transformStreamDefaultControllerClearAlgorithms(I);const u=@newPromiseCapability(@Promise);return k.@then(()=>{if(@getByIdDirectPrivate(q,\"state\")===@streamErrored){u.@reject.@call(@undefined,@getByIdDirectPrivate(q,\"storedError\"));return}if(@readableStreamDefaultControllerCanCloseOrEnqueue(f))@readableStreamDefaultControllerClose(f);u.@resolve()},(v)=>{@transformStreamError(@getByIdDirectPrivate(I,\"stream\"),v),u.@reject.@call(@undefined,@getByIdDirectPrivate(q,\"storedError\"))}),u.@promise})\n";
+const char* const s_transformStreamInternalsTransformStreamDefaultSinkCloseAlgorithmCode = "(function (q){\"use strict\";const I=@getByIdDirectPrivate(q,\"readable\"),f=@getByIdDirectPrivate(q,\"controller\"),j=@getByIdDirectPrivate(I,\"readableStreamController\"),u=@getByIdDirectPrivate(f,\"flushAlgorithm\");@assert(u!==@undefined);const _=@getByIdDirectPrivate(f,\"flushAlgorithm\").@call();@transformStreamDefaultControllerClearAlgorithms(f);const k=@newPromiseCapability(@Promise);return _.@then(()=>{if(@getByIdDirectPrivate(I,\"state\")===@streamErrored){k.@reject.@call(@undefined,@getByIdDirectPrivate(I,\"storedError\"));return}if(@readableStreamDefaultControllerCanCloseOrEnqueue(j))@readableStreamDefaultControllerClose(j);k.@resolve()},(v)=>{@transformStreamError(@getByIdDirectPrivate(f,\"stream\"),v),k.@reject.@call(@undefined,@getByIdDirectPrivate(I,\"storedError\"))}),k.@promise})\n";
// transformStreamDefaultSourcePullAlgorithm
const JSC::ConstructAbility s_transformStreamInternalsTransformStreamDefaultSourcePullAlgorithmCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -640,7 +640,7 @@ const JSC::ConstructorKind s_processObjectInternalsBindingCodeConstructorKind =
const JSC::ImplementationVisibility s_processObjectInternalsBindingCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_processObjectInternalsBindingCodeLength = 473;
static const JSC::Intrinsic s_processObjectInternalsBindingCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_processObjectInternalsBindingCode = "(function (l){\"use strict\";if(l!==\"constants\")@throwTypeError(\"process.binding() is not supported in Bun. If that breaks something, please file an issue and include a reproducible code sample.\");var d=globalThis.Symbol.for(\"process.bindings.constants\"),I=globalThis[d];if(!I){const{constants:r}=globalThis[globalThis.Symbol.for(\"Bun.lazy\")](\"createImportMeta\",\"node:process\").require(\"node:fs\");I={fs:r,zlib:{},crypto:{},os:@Bun._Os().constants},globalThis[d]=I}return I})\n";
+const char* const s_processObjectInternalsBindingCode = "(function (l){\"use strict\";if(l!==\"constants\")@throwTypeError(\"process.binding() is not supported in Bun. If that breaks something, please file an issue and include a reproducible code sample.\");var r=globalThis.Symbol.for(\"process.bindings.constants\"),I=globalThis[r];if(!I){const{constants:d}=globalThis[globalThis.Symbol.for(\"Bun.lazy\")](\"createImportMeta\",\"node:process\").require(\"node:fs\");I={fs:d,zlib:{},crypto:{},os:@Bun._Os().constants},globalThis[r]=I}return I})\n";
// getStdioWriteStream
const JSC::ConstructAbility s_processObjectInternalsGetStdioWriteStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -648,7 +648,7 @@ const JSC::ConstructorKind s_processObjectInternalsGetStdioWriteStreamCodeConstr
const JSC::ImplementationVisibility s_processObjectInternalsGetStdioWriteStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_processObjectInternalsGetStdioWriteStreamCodeLength = 4250;
static const JSC::Intrinsic s_processObjectInternalsGetStdioWriteStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_processObjectInternalsGetStdioWriteStreamCode = "(function (j,z){\"use strict\";var L={path:\"node:process\",require:z},J=(N)=>L.require(N);function G(N){var{Duplex:O,eos:Q,destroy:U}=J(\"node:stream\"),V=class X extends O{#$;#B;#j=!0;#z=!0;#G;#H;#J;#K;#L;#M;get isTTY(){return this.#M\?\?=J(\"node:tty\").isatty(N)}get fd(){return N}constructor(Z){super({readable:!0,writable:!0});this.#G=`/dev/fd/${Z}`}#N(Z){const Y=this.#H;if(this.#H=null,Y)Y(Z);else if(Z)this.destroy(Z);else if(!this.#j&&!this.#z)this.destroy()}_destroy(Z,Y){if(!Z&&this.#H!==null){var P=class A extends Error{code;name;constructor(T=\"The operation was aborted\",x=void 0){if(x!==void 0&&typeof x!==\"object\")throw new Error(`Invalid AbortError options:\\n\\n${JSON.stringify(x,null,2)}`);super(T,x);this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};Z=new P}if(this.#J=null,this.#K=null,this.#H===null)Y(Z);else{if(this.#H=Y,this.#$)U(this.#$,Z);if(this.#B)U(this.#B,Z)}}_write(Z,Y,P){if(!this.#$){var{createWriteStream:A}=J(\"node:fs\"),T=this.#$=A(this.#G);T.on(\"finish\",()=>{if(this.#K){const x=this.#K;this.#K=null,x()}}),T.on(\"drain\",()=>{if(this.#J){const x=this.#J;this.#J=null,x()}}),Q(T,(x)=>{if(this.#z=!1,x)U(T,x);this.#N(x)})}if(T.write(Z,Y))P();else this.#J=P}_final(Z){this.#$&&this.#$.end(),this.#K=Z}#O(){var{createReadStream:Z}=J(\"node:fs\"),Y=this.#B=Z(this.#G);return Y.on(\"readable\",()=>{if(this.#L){const P=this.#L;this.#L=null,P()}else this.read()}),Y.on(\"end\",()=>{this.push(null)}),Q(Y,(P)=>{if(this.#j=!1,P)U(Y,P);this.#N(P)}),Y}_read(){var Z=this.#B;if(!Z)Z=this.#O();while(!0){const Y=Z.read();if(Y===null||!this.push(Y))return}}};return new V(N)}var{EventEmitter:H}=J(\"node:events\");function M(N){if(!N)return!0;var O=N.toLowerCase();return O===\"utf8\"||O===\"utf-8\"||O===\"buffer\"||O===\"binary\"}var K,B=class N extends H{#$;#B;#j;#z;bytesWritten=0;setDefaultEncoding(O){if(this.#B||!M(O))return this.#J(),this.#B.setDefaultEncoding(O)}#G(){switch(this.#$){case 1:{var O=@Bun.stdout.writer({highWaterMark:0});return O.unref(),O}case 2:{var O=@Bun.stderr.writer({highWaterMark:0});return O.unref(),O}default:throw new Error(\"Unsupported writer\")}}#H(){return this.#j\?\?=this.#G()}constructor(O){super();this.#$=O}get fd(){return this.#$}get isTTY(){return this.#z\?\?=J(\"node:tty\").isatty(this.#$)}cursorTo(O,Q,U){return(K\?\?=J(\"readline\")).cursorTo(this,O,Q,U)}moveCursor(O,Q,U){return(K\?\?=J(\"readline\")).moveCursor(this,O,Q,U)}clearLine(O,Q){return(K\?\?=J(\"readline\")).clearLine(this,O,Q)}clearScreenDown(O){return(K\?\?=J(\"readline\")).clearScreenDown(this,O)}ref(){this.#H().ref()}unref(){this.#H().unref()}on(O,Q){if(O===\"close\"||O===\"finish\")return this.#J(),this.#B.on(O,Q);if(O===\"drain\")return super.on(\"drain\",Q);if(O===\"error\")return super.on(\"error\",Q);return super.on(O,Q)}get _writableState(){return this.#J(),this.#B._writableState}get _readableState(){return this.#J(),this.#B._readableState}pipe(O){return this.#J(),this.#B.pipe(O)}unpipe(O){return this.#J(),this.#B.unpipe(O)}#J(){if(this.#B)return;this.#B=G(this.#$);const O=this.eventNames();for(let Q of O)this.#B.on(Q,(...U)=>{this.emit(Q,...U)})}#K(O){var Q=this.#H();const U=Q.write(O);this.bytesWritten+=U;const V=Q.flush(!1);return!!(U||V)}#L(O,Q){if(!M(Q))return this.#J(),this.#B.write(O,Q);return this.#K(O)}#M(O,Q){if(Q)this.emit(\"error\",Q);try{O(Q\?Q:null)}catch(U){this.emit(\"error\",U)}}#N(O,Q,U){if(!M(Q))return this.#J(),this.#B.write(O,Q,U);var V=this.#H();const X=V.write(O),Z=V.flush(!0);if(Z\?.then)return Z.then(()=>{this.#M(U),this.emit(\"drain\")},(Y)=>this.#M(U,Y)),!1;return queueMicrotask(()=>{this.#M(U)}),!!(X||Z)}write(O,Q,U){const V=this._write(O,Q,U);if(V)this.emit(\"drain\");return V}get hasColors(){return @Bun.tty[this.#$].hasColors}_write(O,Q,U){var V=this.#B;if(V)return V.write(O,Q,U);switch(arguments.length){case 0:{var X=new Error(\"Invalid arguments\");throw X.code=\"ERR_INVALID_ARG_TYPE\",X}case 1:return this.#K(O);case 2:if(typeof Q===\"function\")return this.#N(O,\"\",Q);else if(typeof Q===\"string\")return this.#L(O,Q);default:{if(typeof Q!==\"undefined\"&&typeof Q!==\"string\"||typeof U!==\"undefined\"&&typeof U!==\"function\"){var X=new Error(\"Invalid arguments\");throw X.code=\"ERR_INVALID_ARG_TYPE\",X}if(typeof U===\"undefined\")return this.#L(O,Q);return this.#N(O,Q,U)}}}destroy(){return this}end(){return this}};return new B(j)})\n";
+const char* const s_processObjectInternalsGetStdioWriteStreamCode = "(function (j,z){\"use strict\";var L={path:\"node:process\",require:z},K=(N)=>L.require(N);function G(N){var{Duplex:O,eos:Q,destroy:U}=K(\"node:stream\"),V=class X extends O{#$;#B;#j=!0;#z=!0;#G;#H;#J;#K;#L;#M;get isTTY(){return this.#M\?\?=K(\"node:tty\").isatty(N)}get fd(){return N}constructor(Z){super({readable:!0,writable:!0});this.#G=`/dev/fd/${Z}`}#N(Z){const Y=this.#H;if(this.#H=null,Y)Y(Z);else if(Z)this.destroy(Z);else if(!this.#j&&!this.#z)this.destroy()}_destroy(Z,Y){if(!Z&&this.#H!==null){var P=class A extends Error{code;name;constructor(T=\"The operation was aborted\",x=void 0){if(x!==void 0&&typeof x!==\"object\")throw new Error(`Invalid AbortError options:\\n\\n${JSON.stringify(x,null,2)}`);super(T,x);this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};Z=new P}if(this.#J=null,this.#K=null,this.#H===null)Y(Z);else{if(this.#H=Y,this.#$)U(this.#$,Z);if(this.#B)U(this.#B,Z)}}_write(Z,Y,P){if(!this.#$){var{createWriteStream:A}=K(\"node:fs\"),T=this.#$=A(this.#G);T.on(\"finish\",()=>{if(this.#K){const x=this.#K;this.#K=null,x()}}),T.on(\"drain\",()=>{if(this.#J){const x=this.#J;this.#J=null,x()}}),Q(T,(x)=>{if(this.#z=!1,x)U(T,x);this.#N(x)})}if(T.write(Z,Y))P();else this.#J=P}_final(Z){this.#$&&this.#$.end(),this.#K=Z}#O(){var{createReadStream:Z}=K(\"node:fs\"),Y=this.#B=Z(this.#G);return Y.on(\"readable\",()=>{if(this.#L){const P=this.#L;this.#L=null,P()}else this.read()}),Y.on(\"end\",()=>{this.push(null)}),Q(Y,(P)=>{if(this.#j=!1,P)U(Y,P);this.#N(P)}),Y}_read(){var Z=this.#B;if(!Z)Z=this.#O();while(!0){const Y=Z.read();if(Y===null||!this.push(Y))return}}};return new V(N)}var{EventEmitter:H}=K(\"node:events\");function M(N){if(!N)return!0;var O=N.toLowerCase();return O===\"utf8\"||O===\"utf-8\"||O===\"buffer\"||O===\"binary\"}var J,B=class N extends H{#$;#B;#j;#z;bytesWritten=0;setDefaultEncoding(O){if(this.#B||!M(O))return this.#J(),this.#B.setDefaultEncoding(O)}#G(){switch(this.#$){case 1:{var O=@Bun.stdout.writer({highWaterMark:0});return O.unref(),O}case 2:{var O=@Bun.stderr.writer({highWaterMark:0});return O.unref(),O}default:throw new Error(\"Unsupported writer\")}}#H(){return this.#j\?\?=this.#G()}constructor(O){super();this.#$=O}get fd(){return this.#$}get isTTY(){return this.#z\?\?=K(\"node:tty\").isatty(this.#$)}cursorTo(O,Q,U){return(J\?\?=K(\"readline\")).cursorTo(this,O,Q,U)}moveCursor(O,Q,U){return(J\?\?=K(\"readline\")).moveCursor(this,O,Q,U)}clearLine(O,Q){return(J\?\?=K(\"readline\")).clearLine(this,O,Q)}clearScreenDown(O){return(J\?\?=K(\"readline\")).clearScreenDown(this,O)}ref(){this.#H().ref()}unref(){this.#H().unref()}on(O,Q){if(O===\"close\"||O===\"finish\")return this.#J(),this.#B.on(O,Q);if(O===\"drain\")return super.on(\"drain\",Q);if(O===\"error\")return super.on(\"error\",Q);return super.on(O,Q)}get _writableState(){return this.#J(),this.#B._writableState}get _readableState(){return this.#J(),this.#B._readableState}pipe(O){return this.#J(),this.#B.pipe(O)}unpipe(O){return this.#J(),this.#B.unpipe(O)}#J(){if(this.#B)return;this.#B=G(this.#$);const O=this.eventNames();for(let Q of O)this.#B.on(Q,(...U)=>{this.emit(Q,...U)})}#K(O){var Q=this.#H();const U=Q.write(O);this.bytesWritten+=U;const V=Q.flush(!1);return!!(U||V)}#L(O,Q){if(!M(Q))return this.#J(),this.#B.write(O,Q);return this.#K(O)}#M(O,Q){if(Q)this.emit(\"error\",Q);try{O(Q\?Q:null)}catch(U){this.emit(\"error\",U)}}#N(O,Q,U){if(!M(Q))return this.#J(),this.#B.write(O,Q,U);var V=this.#H();const X=V.write(O),Z=V.flush(!0);if(Z\?.then)return Z.then(()=>{this.#M(U),this.emit(\"drain\")},(Y)=>this.#M(U,Y)),!1;return queueMicrotask(()=>{this.#M(U)}),!!(X||Z)}write(O,Q,U){const V=this._write(O,Q,U);if(V)this.emit(\"drain\");return V}get hasColors(){return @Bun.tty[this.#$].hasColors}_write(O,Q,U){var V=this.#B;if(V)return V.write(O,Q,U);switch(arguments.length){case 0:{var X=new Error(\"Invalid arguments\");throw X.code=\"ERR_INVALID_ARG_TYPE\",X}case 1:return this.#K(O);case 2:if(typeof Q===\"function\")return this.#N(O,\"\",Q);else if(typeof Q===\"string\")return this.#L(O,Q);default:{if(typeof Q!==\"undefined\"&&typeof Q!==\"string\"||typeof U!==\"undefined\"&&typeof U!==\"function\"){var X=new Error(\"Invalid arguments\");throw X.code=\"ERR_INVALID_ARG_TYPE\",X}if(typeof U===\"undefined\")return this.#L(O,Q);return this.#N(O,Q,U)}}}destroy(){return this}end(){return this}};return new B(j)})\n";
// getStdinStream
const JSC::ConstructAbility s_processObjectInternalsGetStdinStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -656,7 +656,7 @@ const JSC::ConstructorKind s_processObjectInternalsGetStdinStreamCodeConstructor
const JSC::ImplementationVisibility s_processObjectInternalsGetStdinStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_processObjectInternalsGetStdinStreamCodeLength = 1799;
static const JSC::Intrinsic s_processObjectInternalsGetStdinStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_processObjectInternalsGetStdinStreamCode = "(function (z,Y,I){\"use strict\";var M={path:\"node:process\",require:Y},J=(U)=>M.require(U),{Duplex:N,eos:T,destroy:P}=J(\"node:stream\"),G=class U extends N{#Y;#$;#j;#z=!0;#G=!1;#H=!0;#I;#J;#K;get isTTY(){return J(\"tty\").isatty(z)}get fd(){return z}constructor(){super({readable:!0,writable:!0})}#L(V){const j=this.#J;if(this.#J=null,j)j(V);else if(V)this.destroy(V);else if(!this.#z&&!this.#H)this.destroy()}_destroy(V,j){if(!V&&this.#J!==null){var H=class Q extends Error{constructor(K=\"The operation was aborted\",L=void 0){if(L!==void 0&&typeof L!==\"object\")throw new Error(`Invalid AbortError options:\\n\\n${JSON.stringify(L,null,2)}`);super(K,L);this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};V=new H}if(this.#J===null)j(V);else if(this.#J=j,this.#j)P(this.#j,V)}setRawMode(V){}on(V,j){if(V===\"readable\")this.ref(),this.#G=!0;return super.on(V,j)}pause(){return this.unref(),super.pause()}resume(){return this.ref(),super.resume()}ref(){this.#Y\?\?=I.stdin.stream().getReader(),this.#$\?\?=setInterval(()=>{},1<<30)}unref(){if(this.#$)clearInterval(this.#$),this.#$=null}async#M(){try{var V,j;const H=this.#Y.readMany();if(!H\?.then)({done:V,value:j}=H);else({done:V,value:j}=await H);if(!V){this.push(j[0]);const Q=j.length;for(let K=1;K<Q;K++)this.push(j[K])}else this.push(null),this.pause(),this.#z=!1,this.#L()}catch(H){this.#z=!1,this.#L(H)}}_read(V){if(this.#G)this.unref(),this.#G=!1;this.#M()}#N(){var{createWriteStream:V}=J(\"node:fs\"),j=this.#j=V(\"/dev/fd/0\");return j.on(\"finish\",()=>{if(this.#I){const H=this.#I;this.#I=null,H()}}),j.on(\"drain\",()=>{if(this.#K){const H=this.#K;this.#K=null,H()}}),T(j,(H)=>{if(this.#H=!1,H)P(j,H);this.#L(H)}),j}_write(V,j,H){var Q=this.#j;if(!Q)Q=this.#N();if(Q.write(V,j))H();else this.#K=H}_final(V){this.#j.end(),this.#I=(...j)=>V(...j)}};return new G})\n";
+const char* const s_processObjectInternalsGetStdinStreamCode = "(function (z,G,H){\"use strict\";var K={path:\"node:process\",require:G},L=(T)=>K.require(T),{Duplex:M,eos:N,destroy:P}=L(\"node:stream\"),Q=class T extends M{#Y;#$;#j;#z=!0;#G=!1;#H=!0;#I;#J;#K;get isTTY(){return L(\"tty\").isatty(z)}get fd(){return z}constructor(){super({readable:!0,writable:!0})}#L(Y){const j=this.#J;if(this.#J=null,j)j(Y);else if(Y)this.destroy(Y);else if(!this.#z&&!this.#H)this.destroy()}_destroy(Y,j){if(!Y&&this.#J!==null){var I=class J extends Error{constructor(U=\"The operation was aborted\",V=void 0){if(V!==void 0&&typeof V!==\"object\")throw new Error(`Invalid AbortError options:\\n\\n${JSON.stringify(V,null,2)}`);super(U,V);this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};Y=new I}if(this.#J===null)j(Y);else if(this.#J=j,this.#j)P(this.#j,Y)}setRawMode(Y){}on(Y,j){if(Y===\"readable\")this.ref(),this.#G=!0;return super.on(Y,j)}pause(){return this.unref(),super.pause()}resume(){return this.ref(),super.resume()}ref(){this.#Y\?\?=H.stdin.stream().getReader(),this.#$\?\?=setInterval(()=>{},1<<30)}unref(){if(this.#$)clearInterval(this.#$),this.#$=null}async#M(){try{var Y,j;const I=this.#Y.readMany();if(!I\?.then)({done:Y,value:j}=I);else({done:Y,value:j}=await I);if(!Y){this.push(j[0]);const J=j.length;for(let U=1;U<J;U++)this.push(j[U])}else this.push(null),this.pause(),this.#z=!1,this.#L()}catch(I){this.#z=!1,this.#L(I)}}_read(Y){if(this.#G)this.unref(),this.#G=!1;this.#M()}#N(){var{createWriteStream:Y}=L(\"node:fs\"),j=this.#j=Y(\"/dev/fd/0\");return j.on(\"finish\",()=>{if(this.#I){const I=this.#I;this.#I=null,I()}}),j.on(\"drain\",()=>{if(this.#K){const I=this.#K;this.#K=null,I()}}),N(j,(I)=>{if(this.#H=!1,I)P(j,I);this.#L(I)}),j}_write(Y,j,I){var J=this.#j;if(!J)J=this.#N();if(J.write(Y,j))I();else this.#K=I}_final(Y){this.#j.end(),this.#I=(...j)=>Y(...j)}};return new Q})\n";
#define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \
JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \
@@ -674,7 +674,7 @@ const JSC::ConstructorKind s_transformStreamInitializeTransformStreamCodeConstru
const JSC::ImplementationVisibility s_transformStreamInitializeTransformStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_transformStreamInitializeTransformStreamCodeLength = 1334;
static const JSC::Intrinsic s_transformStreamInitializeTransformStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_transformStreamInitializeTransformStreamCode = "(function (){\"use strict\";let _=arguments[0];if(@isObject(_)&&@getByIdDirectPrivate(_,\"TransformStream\"))return this;let B=arguments[1],u=arguments[2];if(_===@undefined)_=null;if(u===@undefined)u={};if(B===@undefined)B={};let j={};if(_!==null){if(\"start\"in _){if(j[\"start\"]=_[\"start\"],typeof j[\"start\"]!==\"function\")@throwTypeError(\"transformer.start should be a function\")}if(\"transform\"in _){if(j[\"transform\"]=_[\"transform\"],typeof j[\"transform\"]!==\"function\")@throwTypeError(\"transformer.transform should be a function\")}if(\"flush\"in _){if(j[\"flush\"]=_[\"flush\"],typeof j[\"flush\"]!==\"function\")@throwTypeError(\"transformer.flush should be a function\")}if(\"readableType\"in _)@throwRangeError(\"TransformStream transformer has a readableType\");if(\"writableType\"in _)@throwRangeError(\"TransformStream transformer has a writableType\")}const v=@extractHighWaterMark(u,0),x=@extractSizeAlgorithm(u),E=@extractHighWaterMark(B,1),F=@extractSizeAlgorithm(B),G=@newPromiseCapability(@Promise);if(@initializeTransformStream(this,G.@promise,E,F,v,x),@setUpTransformStreamDefaultControllerFromTransformer(this,_,j),(\"start\"in j)){const q=@getByIdDirectPrivate(this,\"controller\");(()=>@promiseInvokeOrNoopMethodNoCatch(_,j[\"start\"],[q]))().@then(()=>{G.@resolve.@call()},(J)=>{G.@reject.@call(@undefined,J)})}else G.@resolve.@call();return this})\n";
+const char* const s_transformStreamInitializeTransformStreamCode = "(function (){\"use strict\";let _=arguments[0];if(@isObject(_)&&@getByIdDirectPrivate(_,\"TransformStream\"))return this;let B=arguments[1],u=arguments[2];if(_===@undefined)_=null;if(u===@undefined)u={};if(B===@undefined)B={};let E={};if(_!==null){if(\"start\"in _){if(E[\"start\"]=_[\"start\"],typeof E[\"start\"]!==\"function\")@throwTypeError(\"transformer.start should be a function\")}if(\"transform\"in _){if(E[\"transform\"]=_[\"transform\"],typeof E[\"transform\"]!==\"function\")@throwTypeError(\"transformer.transform should be a function\")}if(\"flush\"in _){if(E[\"flush\"]=_[\"flush\"],typeof E[\"flush\"]!==\"function\")@throwTypeError(\"transformer.flush should be a function\")}if(\"readableType\"in _)@throwRangeError(\"TransformStream transformer has a readableType\");if(\"writableType\"in _)@throwRangeError(\"TransformStream transformer has a writableType\")}const j=@extractHighWaterMark(u,0),F=@extractSizeAlgorithm(u),q=@extractHighWaterMark(B,1),G=@extractSizeAlgorithm(B),v=@newPromiseCapability(@Promise);if(@initializeTransformStream(this,v.@promise,q,G,j,F),@setUpTransformStreamDefaultControllerFromTransformer(this,_,E),(\"start\"in E)){const I=@getByIdDirectPrivate(this,\"controller\");(()=>@promiseInvokeOrNoopMethodNoCatch(_,E[\"start\"],[I]))().@then(()=>{v.@resolve.@call()},(J)=>{v.@reject.@call(@undefined,J)})}else v.@resolve.@call();return this})\n";
// readable
const JSC::ConstructAbility s_transformStreamReadableCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -838,7 +838,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeReadIntBECodeConstructorKind = JSC
const JSC::ImplementationVisibility s_jsBufferPrototypeReadIntBECodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_jsBufferPrototypeReadIntBECodeLength = 528;
static const JSC::Intrinsic s_jsBufferPrototypeReadIntBECodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_jsBufferPrototypeReadIntBECode = "(function (r,d){\"use strict\";const u=this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength);switch(d){case 1:return u.getInt8(r);case 2:return u.getInt16(r,!1);case 3:{const c=u.getUint16(r+1,!1)+u.getUint8(r)*65536;return c|(c&8388608)*510}case 4:return u.getInt32(r,!1);case 5:{const c=u.getUint8(r);return(c|(c&128)*33554430)*4294967296+u.getUint32(r+1,!1)}case 6:{const c=u.getUint16(r,!1);return(c|(c&32768)*131070)*4294967296+u.getUint32(r+2,!1)}}@throwRangeError(\"byteLength must be >= 1 and <= 6\")})\n";
+const char* const s_jsBufferPrototypeReadIntBECode = "(function (r,c){\"use strict\";const d=this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength);switch(c){case 1:return d.getInt8(r);case 2:return d.getInt16(r,!1);case 3:{const u=d.getUint16(r+1,!1)+d.getUint8(r)*65536;return u|(u&8388608)*510}case 4:return d.getInt32(r,!1);case 5:{const u=d.getUint8(r);return(u|(u&128)*33554430)*4294967296+d.getUint32(r+1,!1)}case 6:{const u=d.getUint16(r,!1);return(u|(u&32768)*131070)*4294967296+d.getUint32(r+2,!1)}}@throwRangeError(\"byteLength must be >= 1 and <= 6\")})\n";
// readUIntLE
const JSC::ConstructAbility s_jsBufferPrototypeReadUIntLECodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -966,7 +966,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeWriteUInt16BECodeConstructorKind =
const JSC::ImplementationVisibility s_jsBufferPrototypeWriteUInt16BECodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_jsBufferPrototypeWriteUInt16BECodeLength = 136;
static const JSC::Intrinsic s_jsBufferPrototypeWriteUInt16BECodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_jsBufferPrototypeWriteUInt16BECode = "(function (c,d){\"use strict\";return(this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength)).setUint16(d,c,!1),d+2})\n";
+const char* const s_jsBufferPrototypeWriteUInt16BECode = "(function (d,c){\"use strict\";return(this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength)).setUint16(c,d,!1),c+2})\n";
// writeInt32LE
const JSC::ConstructAbility s_jsBufferPrototypeWriteInt32LECodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -990,7 +990,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeWriteUInt32LECodeConstructorKind =
const JSC::ImplementationVisibility s_jsBufferPrototypeWriteUInt32LECodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_jsBufferPrototypeWriteUInt32LECodeLength = 136;
static const JSC::Intrinsic s_jsBufferPrototypeWriteUInt32LECodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_jsBufferPrototypeWriteUInt32LECode = "(function (d,c){\"use strict\";return(this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength)).setUint32(c,d,!0),c+4})\n";
+const char* const s_jsBufferPrototypeWriteUInt32LECode = "(function (c,d){\"use strict\";return(this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength)).setUint32(d,c,!0),d+4})\n";
// writeUInt32BE
const JSC::ConstructAbility s_jsBufferPrototypeWriteUInt32BECodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1006,7 +1006,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeWriteIntLECodeConstructorKind = JS
const JSC::ImplementationVisibility s_jsBufferPrototypeWriteIntLECodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_jsBufferPrototypeWriteIntLECodeLength = 573;
static const JSC::Intrinsic s_jsBufferPrototypeWriteIntLECodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_jsBufferPrototypeWriteIntLECode = "(function (d,r,c){\"use strict\";const j=this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength);switch(c){case 1:{j.setInt8(r,d);break}case 2:{j.setInt16(r,d,!0);break}case 3:{j.setUint16(r,d&65535,!0),j.setInt8(r+2,Math.floor(d*0.0000152587890625));break}case 4:{j.setInt32(r,d,!0);break}case 5:{j.setUint32(r,d|0,!0),j.setInt8(r+4,Math.floor(d*0.00000000023283064365386964));break}case 6:{j.setUint32(r,d|0,!0),j.setInt16(r+4,Math.floor(d*0.00000000023283064365386964),!0);break}default:@throwRangeError(\"byteLength must be >= 1 and <= 6\")}return r+c})\n";
+const char* const s_jsBufferPrototypeWriteIntLECode = "(function (r,c,j){\"use strict\";const d=this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength);switch(j){case 1:{d.setInt8(c,r);break}case 2:{d.setInt16(c,r,!0);break}case 3:{d.setUint16(c,r&65535,!0),d.setInt8(c+2,Math.floor(r*0.0000152587890625));break}case 4:{d.setInt32(c,r,!0);break}case 5:{d.setUint32(c,r|0,!0),d.setInt8(c+4,Math.floor(r*0.00000000023283064365386964));break}case 6:{d.setUint32(c,r|0,!0),d.setInt16(c+4,Math.floor(r*0.00000000023283064365386964),!0);break}default:@throwRangeError(\"byteLength must be >= 1 and <= 6\")}return c+j})\n";
// writeIntBE
const JSC::ConstructAbility s_jsBufferPrototypeWriteIntBECodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1102,7 +1102,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeUtf8WriteCodeConstructorKind = JSC
const JSC::ImplementationVisibility s_jsBufferPrototypeUtf8WriteCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_jsBufferPrototypeUtf8WriteCodeLength = 65;
static const JSC::Intrinsic s_jsBufferPrototypeUtf8WriteCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_jsBufferPrototypeUtf8WriteCode = "(function (r,d,a){\"use strict\";return this.write(r,d,a,\"utf8\")})\n";
+const char* const s_jsBufferPrototypeUtf8WriteCode = "(function (d,r,a){\"use strict\";return this.write(d,r,a,\"utf8\")})\n";
// ucs2Write
const JSC::ConstructAbility s_jsBufferPrototypeUcs2WriteCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1110,7 +1110,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeUcs2WriteCodeConstructorKind = JSC
const JSC::ImplementationVisibility s_jsBufferPrototypeUcs2WriteCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_jsBufferPrototypeUcs2WriteCodeLength = 65;
static const JSC::Intrinsic s_jsBufferPrototypeUcs2WriteCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_jsBufferPrototypeUcs2WriteCode = "(function (c,d,r){\"use strict\";return this.write(c,d,r,\"ucs2\")})\n";
+const char* const s_jsBufferPrototypeUcs2WriteCode = "(function (r,d,c){\"use strict\";return this.write(r,d,c,\"ucs2\")})\n";
// utf16leWrite
const JSC::ConstructAbility s_jsBufferPrototypeUtf16leWriteCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1134,7 +1134,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeAsciiWriteCodeConstructorKind = JS
const JSC::ImplementationVisibility s_jsBufferPrototypeAsciiWriteCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_jsBufferPrototypeAsciiWriteCodeLength = 66;
static const JSC::Intrinsic s_jsBufferPrototypeAsciiWriteCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_jsBufferPrototypeAsciiWriteCode = "(function (c,d,i){\"use strict\";return this.write(c,d,i,\"ascii\")})\n";
+const char* const s_jsBufferPrototypeAsciiWriteCode = "(function (c,i,d){\"use strict\";return this.write(c,i,d,\"ascii\")})\n";
// base64Write
const JSC::ConstructAbility s_jsBufferPrototypeBase64WriteCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1238,7 +1238,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeSliceCodeConstructorKind = JSC::Co
const JSC::ImplementationVisibility s_jsBufferPrototypeSliceCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_jsBufferPrototypeSliceCodeLength = 260;
static const JSC::Intrinsic s_jsBufferPrototypeSliceCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_jsBufferPrototypeSliceCode = "(function (i,k){\"use strict\";var{buffer:m,byteOffset:q,byteLength:c}=this;function v(x,z){if(x=@trunc(x),x===0||@isNaN(x))return 0;else if(x<0)return x+=z,x>0\?x:0;else return x<z\?x:z}var p=v(i,c),w=k!==@undefined\?v(k,c):c;return new @Buffer(m,q+p,w>p\?w-p:0)})\n";
+const char* const s_jsBufferPrototypeSliceCode = "(function (i,q){\"use strict\";var{buffer:c,byteOffset:v,byteLength:p}=this;function w(z,m){if(z=@trunc(z),z===0||@isNaN(z))return 0;else if(z<0)return z+=m,z>0\?z:0;else return z<m\?z:m}var k=w(i,p),x=q!==@undefined\?w(q,p):p;return new @Buffer(c,v+k,x>k\?x-k:0)})\n";
// parent
const JSC::ConstructAbility s_jsBufferPrototypeParentCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1338,7 +1338,7 @@ const JSC::ConstructorKind s_consoleObjectAsyncIteratorCodeConstructorKind = JSC
const JSC::ImplementationVisibility s_consoleObjectAsyncIteratorCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_consoleObjectAsyncIteratorCodeLength = 577;
static const JSC::Intrinsic s_consoleObjectAsyncIteratorCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_consoleObjectAsyncIteratorCode = "(function (){\"use strict\";const j=async function*w(){var _=@Bun.stdin.stream().getReader(),D=new globalThis.TextDecoder(\"utf-8\",{fatal:!1}),m,F=@Bun.indexOfLine;try{while(!0){var G,q,H;const L=_.readMany();if(@isPromise(L))({done:G,value:q}=await L);else({done:G,value:q}=L);if(G){if(H)yield D.decode(H);return}var J;for(let M of q){if(J=M,H)J=@Buffer.concat([H,M]),H=null;var z=0,K=F(J,z);while(K!==-1)yield D.decode(J.subarray(z,K)),z=K+1,K=F(J,z);H=J.subarray(z)}}}catch(L){m=L}finally{if(_.releaseLock(),m)throw m}},A=globalThis.Symbol.asyncIterator;return this[A]=j,j()})\n";
+const char* const s_consoleObjectAsyncIteratorCode = "(function (){\"use strict\";const j=async function*w(){var _=@Bun.stdin.stream().getReader(),B=new globalThis.TextDecoder(\"utf-8\",{fatal:!1}),m,D=@Bun.indexOfLine;try{while(!0){var F,q,G;const L=_.readMany();if(@isPromise(L))({done:F,value:q}=await L);else({done:F,value:q}=L);if(F){if(G)yield B.decode(G);return}var H;for(let M of q){if(H=M,G)H=@Buffer.concat([G,M]),G=null;var J=0,K=D(H,J);while(K!==-1)yield B.decode(H.subarray(J,K)),J=K+1,K=D(H,J);G=H.subarray(J)}}}catch(L){m=L}finally{if(_.releaseLock(),m)throw m}},z=globalThis.Symbol.asyncIterator;return this[z]=j,j()})\n";
// write
const JSC::ConstructAbility s_consoleObjectWriteCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1346,7 +1346,7 @@ const JSC::ConstructorKind s_consoleObjectWriteCodeConstructorKind = JSC::Constr
const JSC::ImplementationVisibility s_consoleObjectWriteCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_consoleObjectWriteCodeLength = 310;
static const JSC::Intrinsic s_consoleObjectWriteCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_consoleObjectWriteCode = "(function (d){\"use strict\";var _=@getByIdDirectPrivate(this,\"writer\");if(!_){var b=@toLength(d\?.length\?\?0);_=@Bun.stdout.writer({highWaterMark:b>65536\?b:65536}),@putByIdDirectPrivate(this,\"writer\",_)}var c=_.write(d);const f=@argumentCount();for(var a=1;a<f;a++)c+=_.write(@argument(a));return _.flush(!0),c})\n";
+const char* const s_consoleObjectWriteCode = "(function (c){\"use strict\";var _=@getByIdDirectPrivate(this,\"writer\");if(!_){var f=@toLength(c\?.length\?\?0);_=@Bun.stdout.writer({highWaterMark:f>65536\?f:65536}),@putByIdDirectPrivate(this,\"writer\",_)}var b=_.write(c);const d=@argumentCount();for(var a=1;a<d;a++)b+=_.write(@argument(a));return _.flush(!0),b})\n";
#define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \
JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \
@@ -1372,7 +1372,7 @@ const JSC::ConstructorKind s_readableStreamInternalsPrivateInitializeReadableStr
const JSC::ImplementationVisibility s_readableStreamInternalsPrivateInitializeReadableStreamDefaultControllerCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsPrivateInitializeReadableStreamDefaultControllerCodeLength = 675;
static const JSC::Intrinsic s_readableStreamInternalsPrivateInitializeReadableStreamDefaultControllerCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsPrivateInitializeReadableStreamDefaultControllerCode = "(function (P,_,b,d){\"use strict\";if(!@isReadableStream(P))@throwTypeError(\"ReadableStreamDefaultController needs a ReadableStream\");if(@getByIdDirectPrivate(P,\"readableStreamController\")!==null)@throwTypeError(\"ReadableStream already has a controller\");return @putByIdDirectPrivate(this,\"controlledReadableStream\",P),@putByIdDirectPrivate(this,\"underlyingSource\",_),@putByIdDirectPrivate(this,\"queue\",@newQueue()),@putByIdDirectPrivate(this,\"started\",-1),@putByIdDirectPrivate(this,\"closeRequested\",!1),@putByIdDirectPrivate(this,\"pullAgain\",!1),@putByIdDirectPrivate(this,\"pulling\",!1),@putByIdDirectPrivate(this,\"strategy\",@validateAndNormalizeQueuingStrategy(b,d)),this})\n";
+const char* const s_readableStreamInternalsPrivateInitializeReadableStreamDefaultControllerCode = "(function (d,P,_,b){\"use strict\";if(!@isReadableStream(d))@throwTypeError(\"ReadableStreamDefaultController needs a ReadableStream\");if(@getByIdDirectPrivate(d,\"readableStreamController\")!==null)@throwTypeError(\"ReadableStream already has a controller\");return @putByIdDirectPrivate(this,\"controlledReadableStream\",d),@putByIdDirectPrivate(this,\"underlyingSource\",P),@putByIdDirectPrivate(this,\"queue\",@newQueue()),@putByIdDirectPrivate(this,\"started\",-1),@putByIdDirectPrivate(this,\"closeRequested\",!1),@putByIdDirectPrivate(this,\"pullAgain\",!1),@putByIdDirectPrivate(this,\"pulling\",!1),@putByIdDirectPrivate(this,\"strategy\",@validateAndNormalizeQueuingStrategy(_,b)),this})\n";
// readableStreamDefaultControllerError
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamDefaultControllerErrorCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1380,7 +1380,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamDefaultControl
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamDefaultControllerErrorCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamDefaultControllerErrorCodeLength = 223;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamDefaultControllerErrorCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamDefaultControllerErrorCode = "(function (i,d){\"use strict\";const u=@getByIdDirectPrivate(i,\"controlledReadableStream\");if(@getByIdDirectPrivate(u,\"state\")!==@streamReadable)return;@putByIdDirectPrivate(i,\"queue\",@newQueue()),@readableStreamError(u,d)})\n";
+const char* const s_readableStreamInternalsReadableStreamDefaultControllerErrorCode = "(function (i,u){\"use strict\";const d=@getByIdDirectPrivate(i,\"controlledReadableStream\");if(@getByIdDirectPrivate(d,\"state\")!==@streamReadable)return;@putByIdDirectPrivate(i,\"queue\",@newQueue()),@readableStreamError(d,u)})\n";
// readableStreamPipeTo
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamPipeToCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1404,7 +1404,7 @@ const JSC::ConstructorKind s_readableStreamInternalsSetupReadableStreamDefaultCo
const JSC::ImplementationVisibility s_readableStreamInternalsSetupReadableStreamDefaultControllerCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsSetupReadableStreamDefaultControllerCodeLength = 523;
static const JSC::Intrinsic s_readableStreamInternalsSetupReadableStreamDefaultControllerCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsSetupReadableStreamDefaultControllerCode = "(function (_,w,f,b,q,v,x){\"use strict\";const B=new @ReadableStreamDefaultController(_,w,f,b,@isReadableStream),C=()=>@promiseInvokeOrNoopMethod(w,v,[B]),j=(D)=>@promiseInvokeOrNoopMethod(w,x,[D]);@putByIdDirectPrivate(B,\"pullAlgorithm\",C),@putByIdDirectPrivate(B,\"cancelAlgorithm\",j),@putByIdDirectPrivate(B,\"pull\",@readableStreamDefaultControllerPull),@putByIdDirectPrivate(B,\"cancel\",@readableStreamDefaultControllerCancel),@putByIdDirectPrivate(_,\"readableStreamController\",B),@readableStreamDefaultControllerStart(B)})\n";
+const char* const s_readableStreamInternalsSetupReadableStreamDefaultControllerCode = "(function (b,v,_,w,f,x,j){\"use strict\";const B=new @ReadableStreamDefaultController(b,v,_,w,@isReadableStream),C=()=>@promiseInvokeOrNoopMethod(v,x,[B]),q=(D)=>@promiseInvokeOrNoopMethod(v,j,[D]);@putByIdDirectPrivate(B,\"pullAlgorithm\",C),@putByIdDirectPrivate(B,\"cancelAlgorithm\",q),@putByIdDirectPrivate(B,\"pull\",@readableStreamDefaultControllerPull),@putByIdDirectPrivate(B,\"cancel\",@readableStreamDefaultControllerCancel),@putByIdDirectPrivate(b,\"readableStreamController\",B),@readableStreamDefaultControllerStart(B)})\n";
// createReadableStreamController
const JSC::ConstructAbility s_readableStreamInternalsCreateReadableStreamControllerCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1420,7 +1420,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamDefaultControl
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamDefaultControllerStartCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamDefaultControllerStartCodeLength = 465;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamDefaultControllerStartCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamDefaultControllerStartCode = "(function (m){\"use strict\";if(@getByIdDirectPrivate(m,\"started\")!==-1)return;const B=@getByIdDirectPrivate(m,\"underlyingSource\"),p=B.start;@putByIdDirectPrivate(m,\"started\",0),@promiseInvokeOrNoopMethodNoCatch(B,p,[m]).@then(()=>{@putByIdDirectPrivate(m,\"started\",1),@assert(!@getByIdDirectPrivate(m,\"pulling\")),@assert(!@getByIdDirectPrivate(m,\"pullAgain\")),@readableStreamDefaultControllerCallPullIfNeeded(m)},(a)=>{@readableStreamDefaultControllerError(m,a)})})\n";
+const char* const s_readableStreamInternalsReadableStreamDefaultControllerStartCode = "(function (m){\"use strict\";if(@getByIdDirectPrivate(m,\"started\")!==-1)return;const B=@getByIdDirectPrivate(m,\"underlyingSource\"),a=B.start;@putByIdDirectPrivate(m,\"started\",0),@promiseInvokeOrNoopMethodNoCatch(B,a,[m]).@then(()=>{@putByIdDirectPrivate(m,\"started\",1),@assert(!@getByIdDirectPrivate(m,\"pulling\")),@assert(!@getByIdDirectPrivate(m,\"pullAgain\")),@readableStreamDefaultControllerCallPullIfNeeded(m)},(p)=>{@readableStreamDefaultControllerError(m,p)})})\n";
// readableStreamPipeToWritableStream
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamPipeToWritableStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1428,7 +1428,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamPipeToWritable
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamPipeToWritableStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamPipeToWritableStreamCodeLength = 1631;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamPipeToWritableStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamPipeToWritableStreamCode = "(function (D,E,k,w,x,z){\"use strict\";if(@assert(@isReadableStream(D)),@assert(@isWritableStream(E)),@assert(!@isReadableStreamLocked(D)),@assert(!@isWritableStreamLocked(E)),@assert(z===@undefined||@isAbortSignal(z)),@getByIdDirectPrivate(D,\"underlyingByteSource\")!==@undefined)return @Promise.@reject(\"Piping to a readable bytestream is not supported\");let B={source:D,destination:E,preventAbort:w,preventCancel:x,preventClose:k,signal:z};if(B.reader=@acquireReadableStreamDefaultReader(D),B.writer=@acquireWritableStreamDefaultWriter(E),@putByIdDirectPrivate(D,\"disturbed\",!0),B.finalized=!1,B.shuttingDown=!1,B.promiseCapability=@newPromiseCapability(@Promise),B.pendingReadPromiseCapability=@newPromiseCapability(@Promise),B.pendingReadPromiseCapability.@resolve.@call(),B.pendingWritePromise=@Promise.@resolve(),z!==@undefined){const F=(G)=>{if(B.finalized)return;@pipeToShutdownWithAction(B,()=>{const _=!B.preventAbort&&@getByIdDirectPrivate(B.destination,\"state\")===\"writable\"\?@writableStreamAbort(B.destination,G):@Promise.@resolve(),T=!B.preventCancel&&@getByIdDirectPrivate(B.source,\"state\")===@streamReadable\?@readableStreamCancel(B.source,G):@Promise.@resolve();let q=@newPromiseCapability(@Promise),I=!0,J=()=>{if(I){I=!1;return}q.@resolve.@call()},K=(L)=>{q.@reject.@call(@undefined,L)};return _.@then(J,K),T.@then(J,K),q.@promise},G)};if(@whenSignalAborted(z,F))return B.promiseCapability.@promise}return @pipeToErrorsMustBePropagatedForward(B),@pipeToErrorsMustBePropagatedBackward(B),@pipeToClosingMustBePropagatedForward(B),@pipeToClosingMustBePropagatedBackward(B),@pipeToLoop(B),B.promiseCapability.@promise})\n";
+const char* const s_readableStreamInternalsReadableStreamPipeToWritableStreamCode = "(function (_,F,f,D,w,B){\"use strict\";if(@assert(@isReadableStream(_)),@assert(@isWritableStream(F)),@assert(!@isReadableStreamLocked(_)),@assert(!@isWritableStreamLocked(F)),@assert(B===@undefined||@isAbortSignal(B)),@getByIdDirectPrivate(_,\"underlyingByteSource\")!==@undefined)return @Promise.@reject(\"Piping to a readable bytestream is not supported\");let G={source:_,destination:F,preventAbort:D,preventCancel:w,preventClose:f,signal:B};if(G.reader=@acquireReadableStreamDefaultReader(_),G.writer=@acquireWritableStreamDefaultWriter(F),@putByIdDirectPrivate(_,\"disturbed\",!0),G.finalized=!1,G.shuttingDown=!1,G.promiseCapability=@newPromiseCapability(@Promise),G.pendingReadPromiseCapability=@newPromiseCapability(@Promise),G.pendingReadPromiseCapability.@resolve.@call(),G.pendingWritePromise=@Promise.@resolve(),B!==@undefined){const H=(I)=>{if(G.finalized)return;@pipeToShutdownWithAction(G,()=>{const J=!G.preventAbort&&@getByIdDirectPrivate(G.destination,\"state\")===\"writable\"\?@writableStreamAbort(G.destination,I):@Promise.@resolve(),T=!G.preventCancel&&@getByIdDirectPrivate(G.source,\"state\")===@streamReadable\?@readableStreamCancel(G.source,I):@Promise.@resolve();let x=@newPromiseCapability(@Promise),z=!0,k=()=>{if(z){z=!1;return}x.@resolve.@call()},q=(L)=>{x.@reject.@call(@undefined,L)};return J.@then(k,q),T.@then(k,q),x.@promise},I)};if(@whenSignalAborted(B,H))return G.promiseCapability.@promise}return @pipeToErrorsMustBePropagatedForward(G),@pipeToErrorsMustBePropagatedBackward(G),@pipeToClosingMustBePropagatedForward(G),@pipeToClosingMustBePropagatedBackward(G),@pipeToLoop(G),G.promiseCapability.@promise})\n";
// pipeToLoop
const JSC::ConstructAbility s_readableStreamInternalsPipeToLoopCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1436,7 +1436,7 @@ const JSC::ConstructorKind s_readableStreamInternalsPipeToLoopCodeConstructorKin
const JSC::ImplementationVisibility s_readableStreamInternalsPipeToLoopCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsPipeToLoopCodeLength = 110;
static const JSC::Intrinsic s_readableStreamInternalsPipeToLoopCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsPipeToLoopCode = "(function (c){\"use strict\";if(c.shuttingDown)return;@pipeToDoReadWrite(c).@then((d)=>{if(d)@pipeToLoop(c)})})\n";
+const char* const s_readableStreamInternalsPipeToLoopCode = "(function (d){\"use strict\";if(d.shuttingDown)return;@pipeToDoReadWrite(d).@then((c)=>{if(c)@pipeToLoop(d)})})\n";
// pipeToDoReadWrite
const JSC::ConstructAbility s_readableStreamInternalsPipeToDoReadWriteCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1444,7 +1444,7 @@ const JSC::ConstructorKind s_readableStreamInternalsPipeToDoReadWriteCodeConstru
const JSC::ImplementationVisibility s_readableStreamInternalsPipeToDoReadWriteCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsPipeToDoReadWriteCodeLength = 731;
static const JSC::Intrinsic s_readableStreamInternalsPipeToDoReadWriteCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsPipeToDoReadWriteCode = "(function (m){\"use strict\";return @assert(!m.shuttingDown),m.pendingReadPromiseCapability=@newPromiseCapability(@Promise),@getByIdDirectPrivate(m.writer,\"readyPromise\").@promise.@then(()=>{if(m.shuttingDown){m.pendingReadPromiseCapability.@resolve.@call(@undefined,!1);return}@readableStreamDefaultReaderRead(m.reader).@then((_)=>{const d=!_.done&&@getByIdDirectPrivate(m.writer,\"stream\")!==@undefined;if(m.pendingReadPromiseCapability.@resolve.@call(@undefined,d),!d)return;m.pendingWritePromise=@writableStreamDefaultWriterWrite(m.writer,_.value)},(_)=>{m.pendingReadPromiseCapability.@resolve.@call(@undefined,!1)})},(_)=>{m.pendingReadPromiseCapability.@resolve.@call(@undefined,!1)}),m.pendingReadPromiseCapability.@promise})\n";
+const char* const s_readableStreamInternalsPipeToDoReadWriteCode = "(function (_){\"use strict\";return @assert(!_.shuttingDown),_.pendingReadPromiseCapability=@newPromiseCapability(@Promise),@getByIdDirectPrivate(_.writer,\"readyPromise\").@promise.@then(()=>{if(_.shuttingDown){_.pendingReadPromiseCapability.@resolve.@call(@undefined,!1);return}@readableStreamDefaultReaderRead(_.reader).@then((m)=>{const d=!m.done&&@getByIdDirectPrivate(_.writer,\"stream\")!==@undefined;if(_.pendingReadPromiseCapability.@resolve.@call(@undefined,d),!d)return;_.pendingWritePromise=@writableStreamDefaultWriterWrite(_.writer,m.value)},(m)=>{_.pendingReadPromiseCapability.@resolve.@call(@undefined,!1)})},(m)=>{_.pendingReadPromiseCapability.@resolve.@call(@undefined,!1)}),_.pendingReadPromiseCapability.@promise})\n";
// pipeToErrorsMustBePropagatedForward
const JSC::ConstructAbility s_readableStreamInternalsPipeToErrorsMustBePropagatedForwardCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1484,7 +1484,7 @@ const JSC::ConstructorKind s_readableStreamInternalsPipeToShutdownWithActionCode
const JSC::ImplementationVisibility s_readableStreamInternalsPipeToShutdownWithActionCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsPipeToShutdownWithActionCodeLength = 458;
static const JSC::Intrinsic s_readableStreamInternalsPipeToShutdownWithActionCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsPipeToShutdownWithActionCode = "(function (m,b){\"use strict\";if(m.shuttingDown)return;m.shuttingDown=!0;const d=arguments.length>2,g=arguments[2],j=()=>{b().@then(()=>{if(d)@pipeToFinalize(m,g);else @pipeToFinalize(m)},(h)=>{@pipeToFinalize(m,h)})};if(@getByIdDirectPrivate(m.destination,\"state\")===\"writable\"&&!@writableStreamCloseQueuedOrInFlight(m.destination)){m.pendingReadPromiseCapability.@promise.@then(()=>{m.pendingWritePromise.@then(j,j)},(_)=>@pipeToFinalize(m,_));return}j()})\n";
+const char* const s_readableStreamInternalsPipeToShutdownWithActionCode = "(function (_,m){\"use strict\";if(_.shuttingDown)return;_.shuttingDown=!0;const b=arguments.length>2,d=arguments[2],g=()=>{m().@then(()=>{if(b)@pipeToFinalize(_,d);else @pipeToFinalize(_)},(j)=>{@pipeToFinalize(_,j)})};if(@getByIdDirectPrivate(_.destination,\"state\")===\"writable\"&&!@writableStreamCloseQueuedOrInFlight(_.destination)){_.pendingReadPromiseCapability.@promise.@then(()=>{_.pendingWritePromise.@then(g,g)},(h)=>@pipeToFinalize(_,h));return}g()})\n";
// pipeToShutdown
const JSC::ConstructAbility s_readableStreamInternalsPipeToShutdownCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1508,7 +1508,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamTeeCodeConstru
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamTeeCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamTeeCodeLength = 1104;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamTeeCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamTeeCode = "(function (i,g){\"use strict\";@assert(@isReadableStream(i)),@assert(typeof g===\"boolean\");var _=@getByIdDirectPrivate(i,\"start\");if(_)@putByIdDirectPrivate(i,\"start\",@undefined),_();const j=new @ReadableStreamDefaultReader(i),f={closedOrErrored:!1,canceled1:!1,canceled2:!1,reason1:@undefined,reason2:@undefined};f.cancelPromiseCapability=@newPromiseCapability(@Promise);const k=@readableStreamTeePullFunction(f,j,g),v={};@putByIdDirectPrivate(v,\"pull\",k),@putByIdDirectPrivate(v,\"cancel\",@readableStreamTeeBranch1CancelFunction(f,i));const w={};@putByIdDirectPrivate(w,\"pull\",k),@putByIdDirectPrivate(w,\"cancel\",@readableStreamTeeBranch2CancelFunction(f,i));const x=new @ReadableStream(v),y=new @ReadableStream(w);return @getByIdDirectPrivate(j,\"closedPromiseCapability\").@promise.@then(@undefined,function(q){if(f.closedOrErrored)return;if(@readableStreamDefaultControllerError(x.@readableStreamController,q),@readableStreamDefaultControllerError(y.@readableStreamController,q),f.closedOrErrored=!0,!f.canceled1||!f.canceled2)f.cancelPromiseCapability.@resolve.@call()}),f.branch1=x,f.branch2=y,[x,y]})\n";
+const char* const s_readableStreamInternalsReadableStreamTeeCode = "(function (f,k){\"use strict\";@assert(@isReadableStream(f)),@assert(typeof k===\"boolean\");var i=@getByIdDirectPrivate(f,\"start\");if(i)@putByIdDirectPrivate(f,\"start\",@undefined),i();const q=new @ReadableStreamDefaultReader(f),_={closedOrErrored:!1,canceled1:!1,canceled2:!1,reason1:@undefined,reason2:@undefined};_.cancelPromiseCapability=@newPromiseCapability(@Promise);const v=@readableStreamTeePullFunction(_,q,k),g={};@putByIdDirectPrivate(g,\"pull\",v),@putByIdDirectPrivate(g,\"cancel\",@readableStreamTeeBranch1CancelFunction(_,f));const w={};@putByIdDirectPrivate(w,\"pull\",v),@putByIdDirectPrivate(w,\"cancel\",@readableStreamTeeBranch2CancelFunction(_,f));const x=new @ReadableStream(g),j=new @ReadableStream(w);return @getByIdDirectPrivate(q,\"closedPromiseCapability\").@promise.@then(@undefined,function(y){if(_.closedOrErrored)return;if(@readableStreamDefaultControllerError(x.@readableStreamController,y),@readableStreamDefaultControllerError(j.@readableStreamController,y),_.closedOrErrored=!0,!_.canceled1||!_.canceled2)_.cancelPromiseCapability.@resolve.@call()}),_.branch1=x,_.branch2=j,[x,j]})\n";
// readableStreamTeePullFunction
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamTeePullFunctionCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1516,7 +1516,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamTeePullFunctio
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamTeePullFunctionCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamTeePullFunctionCodeLength = 764;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamTeePullFunctionCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamTeePullFunctionCode = "(function (i,_,f){\"use strict\";return function(){@Promise.prototype.@then.@call(@readableStreamDefaultReaderRead(_),function(m){if(@assert(@isObject(m)),@assert(typeof m.done===\"boolean\"),m.done&&!i.closedOrErrored){if(!i.canceled1)@readableStreamDefaultControllerClose(i.branch1.@readableStreamController);if(!i.canceled2)@readableStreamDefaultControllerClose(i.branch2.@readableStreamController);if(i.closedOrErrored=!0,!i.canceled1||!i.canceled2)i.cancelPromiseCapability.@resolve.@call()}if(i.closedOrErrored)return;if(!i.canceled1)@readableStreamDefaultControllerEnqueue(i.branch1.@readableStreamController,m.value);if(!i.canceled2)@readableStreamDefaultControllerEnqueue(i.branch2.@readableStreamController,f\?@structuredCloneForStream(m.value):m.value)})}})\n";
+const char* const s_readableStreamInternalsReadableStreamTeePullFunctionCode = "(function (i,_,m){\"use strict\";return function(){@Promise.prototype.@then.@call(@readableStreamDefaultReaderRead(_),function(f){if(@assert(@isObject(f)),@assert(typeof f.done===\"boolean\"),f.done&&!i.closedOrErrored){if(!i.canceled1)@readableStreamDefaultControllerClose(i.branch1.@readableStreamController);if(!i.canceled2)@readableStreamDefaultControllerClose(i.branch2.@readableStreamController);if(i.closedOrErrored=!0,!i.canceled1||!i.canceled2)i.cancelPromiseCapability.@resolve.@call()}if(i.closedOrErrored)return;if(!i.canceled1)@readableStreamDefaultControllerEnqueue(i.branch1.@readableStreamController,f.value);if(!i.canceled2)@readableStreamDefaultControllerEnqueue(i.branch2.@readableStreamController,m\?@structuredCloneForStream(f.value):f.value)})}})\n";
// readableStreamTeeBranch1CancelFunction
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamTeeBranch1CancelFunctionCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1564,7 +1564,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadDirectStreamCodeConstruc
const JSC::ImplementationVisibility s_readableStreamInternalsReadDirectStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadDirectStreamCodeLength = 903;
static const JSC::Intrinsic s_readableStreamInternalsReadDirectStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadDirectStreamCode = "(function (B,v,_){\"use strict\";@putByIdDirectPrivate(B,\"underlyingSource\",@undefined),@putByIdDirectPrivate(B,\"start\",@undefined);function w(j,z){var A=_\?.cancel;if(A){try{var q=A.@apply(_,z);if(@isPromise(q))@markPromiseAsHandled(q)}catch(C){}_=@undefined}if(j)if(@putByIdDirectPrivate(j,\"readableStreamController\",@undefined),@putByIdDirectPrivate(j,\"reader\",@undefined),z)@putByIdDirectPrivate(j,\"state\",@streamErrored),@putByIdDirectPrivate(j,\"storedError\",z);else @putByIdDirectPrivate(j,\"state\",@streamClosed)}if(!_.pull){w(B);return}if(!@isCallable(_.pull))w(B),@throwTypeError(\"pull is not a function\");@putByIdDirectPrivate(B,\"readableStreamController\",v);const f=@getByIdDirectPrivate(B,\"highWaterMark\");v.start({highWaterMark:!f||f<64\?64:f}),@startDirectStream.@call(v,B,_.pull,w),@putByIdDirectPrivate(B,\"reader\",{});var x=_.pull(v);if(v=@undefined,x&&@isPromise(x))return x.@then(()=>{})})\n";
+const char* const s_readableStreamInternalsReadDirectStreamCode = "(function (_,f,B){\"use strict\";@putByIdDirectPrivate(_,\"underlyingSource\",@undefined),@putByIdDirectPrivate(_,\"start\",@undefined);function j(w,x){var z=B\?.cancel;if(z){try{var A=z.@apply(B,x);if(@isPromise(A))@markPromiseAsHandled(A)}catch(C){}B=@undefined}if(w)if(@putByIdDirectPrivate(w,\"readableStreamController\",@undefined),@putByIdDirectPrivate(w,\"reader\",@undefined),x)@putByIdDirectPrivate(w,\"state\",@streamErrored),@putByIdDirectPrivate(w,\"storedError\",x);else @putByIdDirectPrivate(w,\"state\",@streamClosed)}if(!B.pull){j(_);return}if(!@isCallable(B.pull))j(_),@throwTypeError(\"pull is not a function\");@putByIdDirectPrivate(_,\"readableStreamController\",f);const q=@getByIdDirectPrivate(_,\"highWaterMark\");f.start({highWaterMark:!q||q<64\?64:q}),@startDirectStream.@call(f,_,B.pull,j),@putByIdDirectPrivate(_,\"reader\",{});var v=B.pull(f);if(f=@undefined,v&&@isPromise(v))return v.@then(()=>{})})\n";
// assignToStream
const JSC::ConstructAbility s_readableStreamInternalsAssignToStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1588,7 +1588,7 @@ const JSC::ConstructorKind s_readableStreamInternalsHandleDirectStreamErrorCodeC
const JSC::ImplementationVisibility s_readableStreamInternalsHandleDirectStreamErrorCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsHandleDirectStreamErrorCodeLength = 496;
static const JSC::Intrinsic s_readableStreamInternalsHandleDirectStreamErrorCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsHandleDirectStreamErrorCode = "(function (i){\"use strict\";var _=this,h=_.@sink;if(h){@putByIdDirectPrivate(_,\"sink\",@undefined);try{h.close(i)}catch(a){}}if(this.error=this.flush=this.write=this.close=this.end=@onReadableStreamDirectControllerClosed,typeof this.@underlyingSource.close===\"function\")try{this.@underlyingSource.close.@call(this.@underlyingSource,i)}catch(a){}try{var u=_._pendingRead;if(u)_._pendingRead=@undefined,@rejectPromise(u,i)}catch(a){}var R=_.@controlledReadableStream;if(R)@readableStreamError(R,i)})\n";
+const char* const s_readableStreamInternalsHandleDirectStreamErrorCode = "(function (i){\"use strict\";var u=this,h=u.@sink;if(h){@putByIdDirectPrivate(u,\"sink\",@undefined);try{h.close(i)}catch(a){}}if(this.error=this.flush=this.write=this.close=this.end=@onReadableStreamDirectControllerClosed,typeof this.@underlyingSource.close===\"function\")try{this.@underlyingSource.close.@call(this.@underlyingSource,i)}catch(a){}try{var _=u._pendingRead;if(_)u._pendingRead=@undefined,@rejectPromise(_,i)}catch(a){}var R=u.@controlledReadableStream;if(R)@readableStreamError(R,i)})\n";
// handleDirectStreamErrorReject
const JSC::ConstructAbility s_readableStreamInternalsHandleDirectStreamErrorRejectCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1604,7 +1604,7 @@ const JSC::ConstructorKind s_readableStreamInternalsOnPullDirectStreamCodeConstr
const JSC::ImplementationVisibility s_readableStreamInternalsOnPullDirectStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsOnPullDirectStreamCodeLength = 785;
static const JSC::Intrinsic s_readableStreamInternalsOnPullDirectStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsOnPullDirectStreamCode = "(function (g){\"use strict\";var h=g.@controlledReadableStream;if(!h||@getByIdDirectPrivate(h,\"state\")!==@streamReadable)return;if(g._deferClose===-1)return;g._deferClose=-1,g._deferFlush=-1;var i,y;try{var _=g.@underlyingSource.pull(g);if(_&&@isPromise(_)){if(g._handleError===@undefined)g._handleError=@handleDirectStreamErrorReject.bind(g);@Promise.prototype.catch.@call(_,g._handleError)}}catch(k){return @handleDirectStreamErrorReject.@call(g,k)}finally{i=g._deferClose,y=g._deferFlush,g._deferFlush=g._deferClose=0}var b;if(g._pendingRead===@undefined)g._pendingRead=b=@newPromise();else b=@readableStreamAddReadRequest(h);if(i===1){var j=g._deferCloseReason;return g._deferCloseReason=@undefined,@onCloseDirectStream.@call(g,j),b}if(y===1)@onFlushDirectStream.@call(g);return b})\n";
+const char* const s_readableStreamInternalsOnPullDirectStreamCode = "(function (h){\"use strict\";var i=h.@controlledReadableStream;if(!i||@getByIdDirectPrivate(i,\"state\")!==@streamReadable)return;if(h._deferClose===-1)return;h._deferClose=-1,h._deferFlush=-1;var y,_;try{var j=h.@underlyingSource.pull(h);if(j&&@isPromise(j)){if(h._handleError===@undefined)h._handleError=@handleDirectStreamErrorReject.bind(h);@Promise.prototype.catch.@call(j,h._handleError)}}catch(k){return @handleDirectStreamErrorReject.@call(h,k)}finally{y=h._deferClose,_=h._deferFlush,h._deferFlush=h._deferClose=0}var g;if(h._pendingRead===@undefined)h._pendingRead=g=@newPromise();else g=@readableStreamAddReadRequest(i);if(y===1){var b=h._deferCloseReason;return h._deferCloseReason=@undefined,@onCloseDirectStream.@call(h,b),g}if(_===1)@onFlushDirectStream.@call(h);return g})\n";
// noopDoneFunction
const JSC::ConstructAbility s_readableStreamInternalsNoopDoneFunctionCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1628,7 +1628,7 @@ const JSC::ConstructorKind s_readableStreamInternalsOnCloseDirectStreamCodeConst
const JSC::ImplementationVisibility s_readableStreamInternalsOnCloseDirectStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsOnCloseDirectStreamCodeLength = 1460;
static const JSC::Intrinsic s_readableStreamInternalsOnCloseDirectStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsOnCloseDirectStreamCode = "(function (c){\"use strict\";var v=this.@controlledReadableStream;if(!v||@getByIdDirectPrivate(v,\"state\")!==@streamReadable)return;if(this._deferClose!==0){this._deferClose=1,this._deferCloseReason=c;return}if(@putByIdDirectPrivate(v,\"state\",@streamClosing),typeof this.@underlyingSource.close===\"function\")try{this.@underlyingSource.close.@call(this.@underlyingSource,c)}catch(j){}var b;try{b=this.@sink.end(),@putByIdDirectPrivate(this,\"sink\",@undefined)}catch(j){if(this._pendingRead){var y=this._pendingRead;this._pendingRead=@undefined,@rejectPromise(y,j)}@readableStreamError(v,j);return}this.error=this.flush=this.write=this.close=this.end=@onReadableStreamDirectControllerClosed;var B=@getByIdDirectPrivate(v,\"reader\");if(B&&@isReadableStreamDefaultReader(B)){var S=this._pendingRead;if(S&&@isPromise(S)&&b\?.byteLength){this._pendingRead=@undefined,@fulfillPromise(S,{value:b,done:!1}),@readableStreamClose(v);return}}if(b\?.byteLength){var C=@getByIdDirectPrivate(B,\"readRequests\");if(C\?.isNotEmpty()){@readableStreamFulfillReadRequest(v,b,!1),@readableStreamClose(v);return}@putByIdDirectPrivate(v,\"state\",@streamReadable),this.@pull=()=>{var j=@createFulfilledPromise({value:b,done:!1});return b=@undefined,@readableStreamClose(v),v=@undefined,j}}else if(this._pendingRead){var y=this._pendingRead;this._pendingRead=@undefined,@putByIdDirectPrivate(this,\"pull\",@noopDoneFunction),@fulfillPromise(y,{value:@undefined,done:!0})}@readableStreamClose(v)})\n";
+const char* const s_readableStreamInternalsOnCloseDirectStreamCode = "(function (c){\"use strict\";var B=this.@controlledReadableStream;if(!B||@getByIdDirectPrivate(B,\"state\")!==@streamReadable)return;if(this._deferClose!==0){this._deferClose=1,this._deferCloseReason=c;return}if(@putByIdDirectPrivate(B,\"state\",@streamClosing),typeof this.@underlyingSource.close===\"function\")try{this.@underlyingSource.close.@call(this.@underlyingSource,c)}catch(y){}var C;try{C=this.@sink.end(),@putByIdDirectPrivate(this,\"sink\",@undefined)}catch(y){if(this._pendingRead){var b=this._pendingRead;this._pendingRead=@undefined,@rejectPromise(b,y)}@readableStreamError(B,y);return}this.error=this.flush=this.write=this.close=this.end=@onReadableStreamDirectControllerClosed;var S=@getByIdDirectPrivate(B,\"reader\");if(S&&@isReadableStreamDefaultReader(S)){var j=this._pendingRead;if(j&&@isPromise(j)&&C\?.byteLength){this._pendingRead=@undefined,@fulfillPromise(j,{value:C,done:!1}),@readableStreamClose(B);return}}if(C\?.byteLength){var v=@getByIdDirectPrivate(S,\"readRequests\");if(v\?.isNotEmpty()){@readableStreamFulfillReadRequest(B,C,!1),@readableStreamClose(B);return}@putByIdDirectPrivate(B,\"state\",@streamReadable),this.@pull=()=>{var y=@createFulfilledPromise({value:C,done:!1});return C=@undefined,@readableStreamClose(B),B=@undefined,y}}else if(this._pendingRead){var b=this._pendingRead;this._pendingRead=@undefined,@putByIdDirectPrivate(this,\"pull\",@noopDoneFunction),@fulfillPromise(b,{value:@undefined,done:!0})}@readableStreamClose(B)})\n";
// onFlushDirectStream
const JSC::ConstructAbility s_readableStreamInternalsOnFlushDirectStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1644,7 +1644,7 @@ const JSC::ConstructorKind s_readableStreamInternalsCreateTextStreamCodeConstruc
const JSC::ImplementationVisibility s_readableStreamInternalsCreateTextStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsCreateTextStreamCodeLength = 984;
static const JSC::Intrinsic s_readableStreamInternalsCreateTextStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsCreateTextStreamCode = "(function (q){\"use strict\";var x,_=[],z=!1,j=!1,A=\"\",v=@toLength(0),C=@newPromiseCapability(@Promise),E=!1;return x={start(){},write(w){if(typeof w===\"string\"){var F=@toLength(w.length);if(F>0)A+=w,z=!0,v+=F;return F}if(!w||!(@ArrayBuffer.@isView(w)||w instanceof @ArrayBuffer))@throwTypeError(\"Expected text, ArrayBuffer or ArrayBufferView\");const G=@toLength(w.byteLength);if(G>0)if(j=!0,A.length>0)@arrayPush(_,A,w),A=\"\";else @arrayPush(_,w);return v+=G,G},flush(){return 0},end(){if(E)return\"\";return x.fulfill()},fulfill(){E=!0;const w=x.finishInternal();return @fulfillPromise(C.@promise,w),w},finishInternal(){if(!z&&!j)return\"\";if(z&&!j)return A;if(j&&!z)return new globalThis.TextDecoder().decode(@Bun.concatArrayBuffers(_));var w=new @Bun.ArrayBufferSink;w.start({highWaterMark:v,asUint8Array:!0});for(let F of _)w.write(F);if(_.length=0,A.length>0)w.write(A),A=\"\";return new globalThis.TextDecoder().decode(w.end())},close(){try{if(!E)E=!0,x.fulfill()}catch(w){}}},[x,C]})\n";
+const char* const s_readableStreamInternalsCreateTextStreamCode = "(function (_){\"use strict\";var v,w=[],j=!1,q=!1,x=\"\",z=@toLength(0),A=@newPromiseCapability(@Promise),C=!1;return v={start(){},write(E){if(typeof E===\"string\"){var F=@toLength(E.length);if(F>0)x+=E,j=!0,z+=F;return F}if(!E||!(@ArrayBuffer.@isView(E)||E instanceof @ArrayBuffer))@throwTypeError(\"Expected text, ArrayBuffer or ArrayBufferView\");const G=@toLength(E.byteLength);if(G>0)if(q=!0,x.length>0)@arrayPush(w,x,E),x=\"\";else @arrayPush(w,E);return z+=G,G},flush(){return 0},end(){if(C)return\"\";return v.fulfill()},fulfill(){C=!0;const E=v.finishInternal();return @fulfillPromise(A.@promise,E),E},finishInternal(){if(!j&&!q)return\"\";if(j&&!q)return x;if(q&&!j)return new globalThis.TextDecoder().decode(@Bun.concatArrayBuffers(w));var E=new @Bun.ArrayBufferSink;E.start({highWaterMark:z,asUint8Array:!0});for(let F of w)E.write(F);if(w.length=0,x.length>0)E.write(x),x=\"\";return new globalThis.TextDecoder().decode(E.end())},close(){try{if(!C)C=!0,v.fulfill()}catch(E){}}},[v,A]})\n";
// initializeTextStream
const JSC::ConstructAbility s_readableStreamInternalsInitializeTextStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1652,7 +1652,7 @@ const JSC::ConstructorKind s_readableStreamInternalsInitializeTextStreamCodeCons
const JSC::ImplementationVisibility s_readableStreamInternalsInitializeTextStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsInitializeTextStreamCodeLength = 578;
static const JSC::Intrinsic s_readableStreamInternalsInitializeTextStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsInitializeTextStreamCode = "(function (_,m){\"use strict\";var[b,f]=@createTextStream(m),p={@underlyingSource:_,@pull:@onPullDirectStream,@controlledReadableStream:this,@sink:b,close:@onCloseDirectStream,write:b.write,error:@handleDirectStreamError,end:@onCloseDirectStream,@close:@onCloseDirectStream,flush:@onFlushDirectStream,_pendingRead:@undefined,_deferClose:0,_deferFlush:0,_deferCloseReason:@undefined,_handleError:@undefined};return @putByIdDirectPrivate(this,\"readableStreamController\",p),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"start\",@undefined),f})\n";
+const char* const s_readableStreamInternalsInitializeTextStreamCode = "(function (m,p){\"use strict\";var[b,f]=@createTextStream(p),_={@underlyingSource:m,@pull:@onPullDirectStream,@controlledReadableStream:this,@sink:b,close:@onCloseDirectStream,write:b.write,error:@handleDirectStreamError,end:@onCloseDirectStream,@close:@onCloseDirectStream,flush:@onFlushDirectStream,_pendingRead:@undefined,_deferClose:0,_deferFlush:0,_deferCloseReason:@undefined,_handleError:@undefined};return @putByIdDirectPrivate(this,\"readableStreamController\",_),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"start\",@undefined),f})\n";
// initializeArrayStream
const JSC::ConstructAbility s_readableStreamInternalsInitializeArrayStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1660,7 +1660,7 @@ const JSC::ConstructorKind s_readableStreamInternalsInitializeArrayStreamCodeCon
const JSC::ImplementationVisibility s_readableStreamInternalsInitializeArrayStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsInitializeArrayStreamCodeLength = 797;
static const JSC::Intrinsic s_readableStreamInternalsInitializeArrayStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsInitializeArrayStreamCode = "(function (_,j){\"use strict\";var t=[],p=@newPromiseCapability(@Promise),b=!1;function d(){return b=!0,p.@resolve.@call(@undefined,t),t}var m={start(){},write(v){return @arrayPush(t,v),v.byteLength||v.length},flush(){return 0},end(){if(b)return[];return d()},close(){if(!b)d()}},q={@underlyingSource:_,@pull:@onPullDirectStream,@controlledReadableStream:this,@sink:m,close:@onCloseDirectStream,write:m.write,error:@handleDirectStreamError,end:@onCloseDirectStream,@close:@onCloseDirectStream,flush:@onFlushDirectStream,_pendingRead:@undefined,_deferClose:0,_deferFlush:0,_deferCloseReason:@undefined,_handleError:@undefined};return @putByIdDirectPrivate(this,\"readableStreamController\",q),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"start\",@undefined),p})\n";
+const char* const s_readableStreamInternalsInitializeArrayStreamCode = "(function (_,t){\"use strict\";var p=[],b=@newPromiseCapability(@Promise),d=!1;function j(){return d=!0,b.@resolve.@call(@undefined,p),p}var m={start(){},write(v){return @arrayPush(p,v),v.byteLength||v.length},flush(){return 0},end(){if(d)return[];return j()},close(){if(!d)j()}},q={@underlyingSource:_,@pull:@onPullDirectStream,@controlledReadableStream:this,@sink:m,close:@onCloseDirectStream,write:m.write,error:@handleDirectStreamError,end:@onCloseDirectStream,@close:@onCloseDirectStream,flush:@onFlushDirectStream,_pendingRead:@undefined,_deferClose:0,_deferFlush:0,_deferCloseReason:@undefined,_handleError:@undefined};return @putByIdDirectPrivate(this,\"readableStreamController\",q),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"start\",@undefined),b})\n";
// initializeArrayBufferStream
const JSC::ConstructAbility s_readableStreamInternalsInitializeArrayBufferStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1676,7 +1676,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamErrorCodeConst
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamErrorCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamErrorCodeLength = 840;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamErrorCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamErrorCode = "(function (_,n){\"use strict\";@assert(@isReadableStream(_)),@assert(@getByIdDirectPrivate(_,\"state\")===@streamReadable),@putByIdDirectPrivate(_,\"state\",@streamErrored),@putByIdDirectPrivate(_,\"storedError\",n);const f=@getByIdDirectPrivate(_,\"reader\");if(!f)return;if(@isReadableStreamDefaultReader(f)){const v=@getByIdDirectPrivate(f,\"readRequests\");@putByIdDirectPrivate(f,\"readRequests\",@createFIFO());for(var c=v.shift();c;c=v.shift())@rejectPromise(c,n)}else{@assert(@isReadableStreamBYOBReader(f));const v=@getByIdDirectPrivate(f,\"readIntoRequests\");@putByIdDirectPrivate(f,\"readIntoRequests\",@createFIFO());for(var c=v.shift();c;c=v.shift())@rejectPromise(c,n)}@getByIdDirectPrivate(f,\"closedPromiseCapability\").@reject.@call(@undefined,n);const h=@getByIdDirectPrivate(f,\"closedPromiseCapability\").@promise;@markPromiseAsHandled(h)})\n";
+const char* const s_readableStreamInternalsReadableStreamErrorCode = "(function (i,c){\"use strict\";@assert(@isReadableStream(i)),@assert(@getByIdDirectPrivate(i,\"state\")===@streamReadable),@putByIdDirectPrivate(i,\"state\",@streamErrored),@putByIdDirectPrivate(i,\"storedError\",c);const n=@getByIdDirectPrivate(i,\"reader\");if(!n)return;if(@isReadableStreamDefaultReader(n)){const _=@getByIdDirectPrivate(n,\"readRequests\");@putByIdDirectPrivate(n,\"readRequests\",@createFIFO());for(var f=_.shift();f;f=_.shift())@rejectPromise(f,c)}else{@assert(@isReadableStreamBYOBReader(n));const _=@getByIdDirectPrivate(n,\"readIntoRequests\");@putByIdDirectPrivate(n,\"readIntoRequests\",@createFIFO());for(var f=_.shift();f;f=_.shift())@rejectPromise(f,c)}@getByIdDirectPrivate(n,\"closedPromiseCapability\").@reject.@call(@undefined,c);const v=@getByIdDirectPrivate(n,\"closedPromiseCapability\").@promise;@markPromiseAsHandled(v)})\n";
// readableStreamDefaultControllerShouldCallPull
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamDefaultControllerShouldCallPullCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1692,7 +1692,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamDefaultControl
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamDefaultControllerCallPullIfNeededCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamDefaultControllerCallPullIfNeededCodeLength = 859;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamDefaultControllerCallPullIfNeededCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamDefaultControllerCallPullIfNeededCode = "(function (i){\"use strict\";const _=@getByIdDirectPrivate(i,\"controlledReadableStream\");if(!@readableStreamDefaultControllerCanCloseOrEnqueue(i))return;if(@getByIdDirectPrivate(i,\"started\")!==1)return;if((!@isReadableStreamLocked(_)||!@getByIdDirectPrivate(@getByIdDirectPrivate(_,\"reader\"),\"readRequests\")\?.isNotEmpty())&&@readableStreamDefaultControllerGetDesiredSize(i)<=0)return;if(@getByIdDirectPrivate(i,\"pulling\")){@putByIdDirectPrivate(i,\"pullAgain\",!0);return}@assert(!@getByIdDirectPrivate(i,\"pullAgain\")),@putByIdDirectPrivate(i,\"pulling\",!0),@getByIdDirectPrivate(i,\"pullAlgorithm\").@call(@undefined).@then(function(){if(@putByIdDirectPrivate(i,\"pulling\",!1),@getByIdDirectPrivate(i,\"pullAgain\"))@putByIdDirectPrivate(i,\"pullAgain\",!1),@readableStreamDefaultControllerCallPullIfNeeded(i)},function(d){@readableStreamDefaultControllerError(i,d)})})\n";
+const char* const s_readableStreamInternalsReadableStreamDefaultControllerCallPullIfNeededCode = "(function (_){\"use strict\";const d=@getByIdDirectPrivate(_,\"controlledReadableStream\");if(!@readableStreamDefaultControllerCanCloseOrEnqueue(_))return;if(@getByIdDirectPrivate(_,\"started\")!==1)return;if((!@isReadableStreamLocked(d)||!@getByIdDirectPrivate(@getByIdDirectPrivate(d,\"reader\"),\"readRequests\")\?.isNotEmpty())&&@readableStreamDefaultControllerGetDesiredSize(_)<=0)return;if(@getByIdDirectPrivate(_,\"pulling\")){@putByIdDirectPrivate(_,\"pullAgain\",!0);return}@assert(!@getByIdDirectPrivate(_,\"pullAgain\")),@putByIdDirectPrivate(_,\"pulling\",!0),@getByIdDirectPrivate(_,\"pullAlgorithm\").@call(@undefined).@then(function(){if(@putByIdDirectPrivate(_,\"pulling\",!1),@getByIdDirectPrivate(_,\"pullAgain\"))@putByIdDirectPrivate(_,\"pullAgain\",!1),@readableStreamDefaultControllerCallPullIfNeeded(_)},function(i){@readableStreamDefaultControllerError(_,i)})})\n";
// isReadableStreamLocked
const JSC::ConstructAbility s_readableStreamInternalsIsReadableStreamLockedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1716,7 +1716,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamReaderGenericC
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamReaderGenericCancelCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamReaderGenericCancelCodeLength = 133;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamReaderGenericCancelCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamReaderGenericCancelCode = "(function (c,h){\"use strict\";const i=@getByIdDirectPrivate(c,\"ownerReadableStream\");return @assert(!!i),@readableStreamCancel(i,h)})\n";
+const char* const s_readableStreamInternalsReadableStreamReaderGenericCancelCode = "(function (c,i){\"use strict\";const h=@getByIdDirectPrivate(c,\"ownerReadableStream\");return @assert(!!h),@readableStreamCancel(h,i)})\n";
// readableStreamCancel
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamCancelCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1724,7 +1724,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamCancelCodeCons
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamCancelCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamCancelCodeLength = 533;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamCancelCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamCancelCode = "(function (i,_){\"use strict\";@putByIdDirectPrivate(i,\"disturbed\",!0);const h=@getByIdDirectPrivate(i,\"state\");if(h===@streamClosed)return @Promise.@resolve();if(h===@streamErrored)return @Promise.@reject(@getByIdDirectPrivate(i,\"storedError\"));@readableStreamClose(i);var d=@getByIdDirectPrivate(i,\"readableStreamController\"),j=d.@cancel;if(j)return j(d,_).@then(function(){});var p=d.close;if(p)return @Promise.@resolve(d.close(_));return @Promise.@reject(@makeTypeError(\"ReadableStreamController has no cancel or close method\"))})\n";
+const char* const s_readableStreamInternalsReadableStreamCancelCode = "(function (_,d){\"use strict\";@putByIdDirectPrivate(_,\"disturbed\",!0);const h=@getByIdDirectPrivate(_,\"state\");if(h===@streamClosed)return @Promise.@resolve();if(h===@streamErrored)return @Promise.@reject(@getByIdDirectPrivate(_,\"storedError\"));@readableStreamClose(_);var j=@getByIdDirectPrivate(_,\"readableStreamController\"),p=j.@cancel;if(p)return p(j,d).@then(function(){});var i=j.close;if(i)return @Promise.@resolve(j.close(d));return @Promise.@reject(@makeTypeError(\"ReadableStreamController has no cancel or close method\"))})\n";
// readableStreamDefaultControllerCancel
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamDefaultControllerCancelCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1740,7 +1740,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamDefaultControl
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamDefaultControllerPullCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamDefaultControllerPullCodeLength = 519;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamDefaultControllerPullCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamDefaultControllerPullCode = "(function (a){\"use strict\";var _=@getByIdDirectPrivate(a,\"queue\");if(_.content.isNotEmpty()){const f=@dequeueValue(_);if(@getByIdDirectPrivate(a,\"closeRequested\")&&_.content.isEmpty())@readableStreamClose(@getByIdDirectPrivate(a,\"controlledReadableStream\"));else @readableStreamDefaultControllerCallPullIfNeeded(a);return @createFulfilledPromise({value:f,done:!1})}const d=@readableStreamAddReadRequest(@getByIdDirectPrivate(a,\"controlledReadableStream\"));return @readableStreamDefaultControllerCallPullIfNeeded(a),d})\n";
+const char* const s_readableStreamInternalsReadableStreamDefaultControllerPullCode = "(function (a){\"use strict\";var d=@getByIdDirectPrivate(a,\"queue\");if(d.content.isNotEmpty()){const _=@dequeueValue(d);if(@getByIdDirectPrivate(a,\"closeRequested\")&&d.content.isEmpty())@readableStreamClose(@getByIdDirectPrivate(a,\"controlledReadableStream\"));else @readableStreamDefaultControllerCallPullIfNeeded(a);return @createFulfilledPromise({value:_,done:!1})}const f=@readableStreamAddReadRequest(@getByIdDirectPrivate(a,\"controlledReadableStream\"));return @readableStreamDefaultControllerCallPullIfNeeded(a),f})\n";
// readableStreamDefaultControllerClose
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamDefaultControllerCloseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1820,7 +1820,7 @@ const JSC::ConstructorKind s_readableStreamInternalsLazyLoadStreamCodeConstructo
const JSC::ImplementationVisibility s_readableStreamInternalsLazyLoadStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsLazyLoadStreamCodeLength = 1589;
static const JSC::Intrinsic s_readableStreamInternalsLazyLoadStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsLazyLoadStreamCode = "(function (L,D){\"use strict\";var J=@getByIdDirectPrivate(L,\"bunNativeType\"),E=@getByIdDirectPrivate(L,\"bunNativePtr\"),F=@lazyStreamPrototypeMap.@get(J);if(F===@undefined){let b=function(_){var{c:p,v:z}=this;this.c=@undefined,this.v=@undefined,P(_,p,z)},m=function(_){try{_.close()}catch(p){globalThis.reportError(p)}},I=function(_,p,z,q){q[0]=!1;var A;try{A=y(_,z,q)}catch(x){return p.error(x)}return P(A,p,z)};var X=b,Y=m,W=I,[y,M,B,f,G,K,N]=@lazyLoad(J),O=[!1],P;P=function _(p,z,q){if(p&&@isPromise(p))return p.then(b.bind({c:z,v:q}),(A)=>z.error(A));else if(typeof p===\"number\")if(q&&q.byteLength===p&&q.buffer===z.byobRequest\?.view\?.buffer)z.byobRequest.respondWithNewView(q);else z.byobRequest.respond(p);else if(p.constructor===@Uint8Array)z.enqueue(p);if(O[0]||p===!1)@enqueueJob(m,z),O[0]=!1};const Z=G\?new FinalizationRegistry(G):null;F=class _{constructor(p,z,q){if(this.#f=p,this.#b={},this.pull=this.#j.bind(this),this.cancel=this.#m.bind(this),this.autoAllocateChunkSize=z,q!==@undefined)this.start=(A)=>{A.enqueue(q)};if(Z)Z.register(this,p,this.#b)}#b;pull;cancel;start;#f;type=\"bytes\";autoAllocateChunkSize=0;static startSync=M;#j(p){var z=this.#f;if(!z){p.close();return}I(z,p,p.byobRequest.view,O)}#m(p){var z=this.#f;Z&&Z.unregister(this.#b),K&&K(z,!1),B(z,p)}static deinit=G;static drain=N},@lazyStreamPrototypeMap.@set(J,F)}const Q=F.startSync(E,D);var U;const{drain:j,deinit:H}=F;if(j)U=j(E);if(Q===0){if(G&&E&&@enqueueJob(G,E),(U\?.byteLength\?\?0)>0)return{start(b){b.enqueue(U),b.close()},type:\"bytes\"};return{start(b){b.close()},type:\"bytes\"}}return new F(E,Q,U)})\n";
+const char* const s_readableStreamInternalsLazyLoadStreamCode = "(function (J,y){\"use strict\";var B=@getByIdDirectPrivate(J,\"bunNativeType\"),D=@getByIdDirectPrivate(J,\"bunNativePtr\"),E=@lazyStreamPrototypeMap.@get(B);if(E===@undefined){let Z=function(_){var{c:p,v:z}=this;this.c=@undefined,this.v=@undefined,P(_,p,z)},j=function(_){try{_.close()}catch(p){globalThis.reportError(p)}},H=function(_,p,z,q){q[0]=!1;var A;try{A=K(_,z,q)}catch(x){return p.error(x)}return P(A,p,z)};var X=Z,Y=j,W=H,[K,L,M,b,F,I,N]=@lazyLoad(B),O=[!1],P;P=function _(p,z,q){if(p&&@isPromise(p))return p.then(Z.bind({c:z,v:q}),(A)=>z.error(A));else if(typeof p===\"number\")if(q&&q.byteLength===p&&q.buffer===z.byobRequest\?.view\?.buffer)z.byobRequest.respondWithNewView(q);else z.byobRequest.respond(p);else if(p.constructor===@Uint8Array)z.enqueue(p);if(O[0]||p===!1)@enqueueJob(j,z),O[0]=!1};const m=F\?new FinalizationRegistry(F):null;E=class _{constructor(p,z,q){if(this.#f=p,this.#b={},this.pull=this.#j.bind(this),this.cancel=this.#m.bind(this),this.autoAllocateChunkSize=z,q!==@undefined)this.start=(A)=>{A.enqueue(q)};if(m)m.register(this,p,this.#b)}#b;pull;cancel;start;#f;type=\"bytes\";autoAllocateChunkSize=0;static startSync=L;#j(p){var z=this.#f;if(!z){p.close();return}H(z,p,p.byobRequest.view,O)}#m(p){var z=this.#f;m&&m.unregister(this.#b),I&&I(z,!1),M(z,p)}static deinit=F;static drain=N},@lazyStreamPrototypeMap.@set(B,E)}const Q=E.startSync(D,y);var U;const{drain:f,deinit:G}=E;if(f)U=f(D);if(Q===0){if(F&&D&&@enqueueJob(F,D),(U\?.byteLength\?\?0)>0)return{start(Z){Z.enqueue(U),Z.close()},type:\"bytes\"};return{start(Z){Z.close()},type:\"bytes\"}}return new E(D,Q,U)})\n";
// readableStreamIntoArray
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamIntoArrayCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1828,7 +1828,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamIntoArrayCodeC
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamIntoArrayCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamIntoArrayCodeLength = 247;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamIntoArrayCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamIntoArrayCode = "(function (_){\"use strict\";var b=_.getReader(),g=b.readMany();async function j(q){if(q.done)return[];var f=q.value||[];while(!0){var p=await b.read();if(p.done)break;f=f.concat(p.value)}return f}if(g&&@isPromise(g))return g.@then(j);return j(g)})\n";
+const char* const s_readableStreamInternalsReadableStreamIntoArrayCode = "(function (f){\"use strict\";var _=f.getReader(),b=_.readMany();async function g(j){if(j.done)return[];var p=j.value||[];while(!0){var q=await _.read();if(q.done)break;p=p.concat(q.value)}return p}if(b&&@isPromise(b))return b.@then(g);return g(b)})\n";
// readableStreamIntoText
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamIntoTextCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1836,7 +1836,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamIntoTextCodeCo
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamIntoTextCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamIntoTextCodeLength = 214;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamIntoTextCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamIntoTextCode = "(function (i){\"use strict\";const[d,h]=@createTextStream(@getByIdDirectPrivate(i,\"highWaterMark\")),_=@readStreamIntoSink(i,d,!1);if(_&&@isPromise(_))return @Promise.@resolve(_).@then(h.@promise);return h.@promise})\n";
+const char* const s_readableStreamInternalsReadableStreamIntoTextCode = "(function (i){\"use strict\";const[_,d]=@createTextStream(@getByIdDirectPrivate(i,\"highWaterMark\")),h=@readStreamIntoSink(i,_,!1);if(h&&@isPromise(h))return @Promise.@resolve(h).@then(d.@promise);return d.@promise})\n";
// readableStreamToArrayBufferDirect
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamToArrayBufferDirectCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1844,7 +1844,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamToArrayBufferD
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamToArrayBufferDirectCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamToArrayBufferDirectCodeLength = 727;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamToArrayBufferDirectCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamToArrayBufferDirectCode = "(function (j,w){\"use strict\";var _=new @Bun.ArrayBufferSink;@putByIdDirectPrivate(j,\"underlyingSource\",@undefined);var x=@getByIdDirectPrivate(j,\"highWaterMark\");_.start(x\?{highWaterMark:x}:{});var O=@newPromiseCapability(@Promise),z=!1,q=w.pull,A=w.close,B={start(){},close(C){if(!z){if(z=!0,A)A();@fulfillPromise(O.@promise,_.end())}},end(){if(!z){if(z=!0,A)A();@fulfillPromise(O.@promise,_.end())}},flush(){return 0},write:_.write.bind(_)},v=!1;try{const C=q(B);if(C&&@isObject(C)&&@isPromise(C))return async function(D,F,G){while(!z)await G(D);return await F}(B,promise,q);return O.@promise}catch(C){return v=!0,@readableStreamError(j,C),@Promise.@reject(C)}finally{if(!v&&j)@readableStreamClose(j);B=A=_=q=j=@undefined}})\n";
+const char* const s_readableStreamInternalsReadableStreamToArrayBufferDirectCode = "(function (_,A){\"use strict\";var O=new @Bun.ArrayBufferSink;@putByIdDirectPrivate(_,\"underlyingSource\",@undefined);var j=@getByIdDirectPrivate(_,\"highWaterMark\");O.start(j\?{highWaterMark:j}:{});var w=@newPromiseCapability(@Promise),z=!1,B=A.pull,C=A.close,D={start(){},close(F){if(!z){if(z=!0,C)C();@fulfillPromise(w.@promise,O.end())}},end(){if(!z){if(z=!0,C)C();@fulfillPromise(w.@promise,O.end())}},flush(){return 0},write:O.write.bind(O)},q=!1;try{const F=B(D);if(F&&@isObject(F)&&@isPromise(F))return async function(G,v,x){while(!z)await x(G);return await v}(D,promise,B);return w.@promise}catch(F){return q=!0,@readableStreamError(_,F),@Promise.@reject(F)}finally{if(!q&&_)@readableStreamClose(_);D=C=O=B=_=@undefined}})\n";
// readableStreamToTextDirect
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamToTextDirectCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1860,7 +1860,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamToArrayDirectC
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamToArrayDirectCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamToArrayDirectCodeLength = 354;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamToArrayDirectCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamToArrayDirectCode = "(async function (_,j){\"use strict\";const k=@initializeArrayStream.@call(_,j,@undefined);j=@undefined;var p=_.getReader();try{while(@getByIdDirectPrivate(_,\"state\")===@streamReadable){var q=await p.read();if(q.done)break}try{p.releaseLock()}catch(f){}return p=@undefined,@Promise.@resolve(k.@promise)}catch(f){throw f}finally{_=@undefined,p=@undefined}})\n";
+const char* const s_readableStreamInternalsReadableStreamToArrayDirectCode = "(async function (f,_){\"use strict\";const j=@initializeArrayStream.@call(f,_,@undefined);_=@undefined;var k=f.getReader();try{while(@getByIdDirectPrivate(f,\"state\")===@streamReadable){var p=await k.read();if(p.done)break}try{k.releaseLock()}catch(q){}return k=@undefined,@Promise.@resolve(j.@promise)}catch(q){throw q}finally{f=@undefined,k=@undefined}})\n";
// readableStreamDefineLazyIterators
const JSC::ConstructAbility s_readableStreamInternalsReadableStreamDefineLazyIteratorsCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -1868,7 +1868,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamDefineLazyIter
const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamDefineLazyIteratorsCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamInternalsReadableStreamDefineLazyIteratorsCodeLength = 516;
static const JSC::Intrinsic s_readableStreamInternalsReadableStreamDefineLazyIteratorsCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamInternalsReadableStreamDefineLazyIteratorsCode = "(function (g){\"use strict\";var q=globalThis.Symbol.asyncIterator,h=async function*x(i,z){var B=i.getReader(),j;try{while(!0){var D,F;const G=B.readMany();if(@isPromise(G))({done:D,value:F}=await G);else({done:D,value:F}=G);if(D)return;yield*F}}catch(G){j=G}finally{if(B.releaseLock(),!z)i.cancel(j);if(j)throw j}},w=function x(){return h(this,!1)},k=function x({preventCancel:i=!1}={preventCancel:!1}){return h(this,i)};return @Object.@defineProperty(g,q,{value:w}),@Object.@defineProperty(g,\"values\",{value:k}),g})\n";
+const char* const s_readableStreamInternalsReadableStreamDefineLazyIteratorsCode = "(function (h){\"use strict\";var F=globalThis.Symbol.asyncIterator,k=async function*z(i,B){var j=i.getReader(),G;try{while(!0){var q,D;const w=j.readMany();if(@isPromise(w))({done:q,value:D}=await w);else({done:q,value:D}=w);if(q)return;yield*D}}catch(w){G=w}finally{if(j.releaseLock(),!B)i.cancel(G);if(G)throw G}},x=function z(){return k(this,!1)},g=function z({preventCancel:i=!1}={preventCancel:!1}){return k(this,i)};return @Object.@defineProperty(h,F,{value:x}),@Object.@defineProperty(h,\"values\",{value:g}),h})\n";
#define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \
JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \
@@ -1934,9 +1934,9 @@ WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_CODE(DEFINE_BUILTIN_GEN
const JSC::ConstructAbility s_eventStreamGetEventStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
const JSC::ConstructorKind s_eventStreamGetEventStreamCodeConstructorKind = JSC::ConstructorKind::None;
const JSC::ImplementationVisibility s_eventStreamGetEventStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
-const int s_eventStreamGetEventStreamCodeLength = 574;
+const int s_eventStreamGetEventStreamCodeLength = 661;
static const JSC::Intrinsic s_eventStreamGetEventStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_eventStreamGetEventStreamCode = "(function (){\"use strict\";return class h extends @ReadableStream{#h;constructor(i){super({type:\"direct\",pull:(m)=>{this.#h=m,i\?.start\?.(this)},cancel:()=>{i\?.cancel\?.(this),this.#h=@undefined}})}send(i,m){var _=this.#h;if(!_)throw new Error(\"EventStream has ended\");if(!m)m=i,i=@undefined;else if(i===\"message\")i=@undefined;if(m===@undefined)@throwTypeError(\"EventStream.send() requires a data argument\");if(typeof m===\"string\")_.write(\"data: \"+m.replace(/\\n/g,\"\\ndata: \")+\"\\n\\n\");else{if(i)_.write(\"event: \"+i+\"\\n\");_.write(\"data: \"+JSON.stringify(m)+\"\\n\\n\")}_.flush()}}})\n";
+const char* const s_eventStreamGetEventStreamCode = "(function (){\"use strict\";return class h extends @ReadableStream{#h;constructor(m){super({type:\"direct\",pull:(b)=>{this.#h=b,m\?.start\?.(this)},cancel:()=>{m\?.cancel\?.(this),this.#h=@undefined}});@putByIdDirectPrivate(this,\"contentType\",\"text/event-stream\")}send(m,b){var f=this.#h;if(!f)throw new Error(\"EventStream is closed\");if(!b)b=m,m=@undefined;else if(m===\"message\")m=@undefined;if(b===@undefined)@throwTypeError(\"EventStream.send() requires a data argument\");if(typeof b===\"string\")f.write(\"data: \"+b.replace(/\\n/g,\"\\ndata: \")+\"\\n\\n\");else{if(m)f.write(\"event: \"+m+\"\\n\");f.write(\"data: \"+JSON.stringify(b)+\"\\n\\n\")}f.flush()}close(){this.#h\?.close()}}})\n";
#define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \
JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \
@@ -2038,7 +2038,7 @@ const JSC::ConstructorKind s_readableStreamDefaultReaderReadManyCodeConstructorK
const JSC::ImplementationVisibility s_readableStreamDefaultReaderReadManyCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamDefaultReaderReadManyCodeLength = 2598;
static const JSC::Intrinsic s_readableStreamDefaultReaderReadManyCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamDefaultReaderReadManyCode = "(function (){\"use strict\";if(!@isReadableStreamDefaultReader(this))@throwTypeError(\"ReadableStreamDefaultReader.readMany() should not be called directly\");const E=@getByIdDirectPrivate(this,\"ownerReadableStream\");if(!E)@throwTypeError(\"readMany() called on a reader owned by no readable stream\");const I=@getByIdDirectPrivate(E,\"state\");if(@putByIdDirectPrivate(E,\"disturbed\",!0),I===@streamClosed)return{value:[],size:0,done:!0};else if(I===@streamErrored)throw @getByIdDirectPrivate(E,\"storedError\");var j=@getByIdDirectPrivate(E,\"readableStreamController\"),k=@getByIdDirectPrivate(j,\"queue\");if(!k)return j.@pull(j).@then(function({done:K,value:N}){return K\?{done:!0,value:[],size:0}:{value:[N],size:1,done:!1}});const x=k.content;var F=k.size,G=x.toArray(!1),H=G.length;if(H>0){var w=@newArrayWithSize(H);if(@isReadableByteStreamController(j)){{const K=G[0];if(!(@ArrayBuffer.@isView(K)||K instanceof @ArrayBuffer))@putByValDirect(w,0,new @Uint8Array(K.buffer,K.byteOffset,K.byteLength));else @putByValDirect(w,0,K)}for(var A=1;A<H;A++){const K=G[A];if(!(@ArrayBuffer.@isView(K)||K instanceof @ArrayBuffer))@putByValDirect(w,A,new @Uint8Array(K.buffer,K.byteOffset,K.byteLength));else @putByValDirect(w,A,K)}}else{@putByValDirect(w,0,G[0].value);for(var A=1;A<H;A++)@putByValDirect(w,A,G[A].value)}if(@resetQueue(@getByIdDirectPrivate(j,\"queue\")),@getByIdDirectPrivate(j,\"closeRequested\"))@readableStreamClose(@getByIdDirectPrivate(j,\"controlledReadableStream\"));else if(@isReadableStreamDefaultController(j))@readableStreamDefaultControllerCallPullIfNeeded(j);else if(@isReadableByteStreamController(j))@readableByteStreamControllerCallPullIfNeeded(j);return{value:w,size:F,done:!1}}var D=(K)=>{if(K.done)return{value:[],size:0,done:!0};var N=@getByIdDirectPrivate(E,\"readableStreamController\"),O=@getByIdDirectPrivate(N,\"queue\"),Q=[K.value].concat(O.content.toArray(!1)),d=Q.length;if(@isReadableByteStreamController(N))for(var C=0;C<d;C++){const T=Q[C];if(!(@ArrayBuffer.@isView(T)||T instanceof @ArrayBuffer)){const{buffer:U,byteOffset:_,byteLength:B}=T;@putByValDirect(Q,C,new @Uint8Array(U,_,B))}}else for(var C=1;C<d;C++)@putByValDirect(Q,C,Q[C].value);var S=O.size;if(@resetQueue(O),@getByIdDirectPrivate(N,\"closeRequested\"))@readableStreamClose(@getByIdDirectPrivate(N,\"controlledReadableStream\"));else if(@isReadableStreamDefaultController(N))@readableStreamDefaultControllerCallPullIfNeeded(N);else if(@isReadableByteStreamController(N))@readableByteStreamControllerCallPullIfNeeded(N);return{value:Q,size:S,done:!1}},J=j.@pull(j);if(J&&@isPromise(J))return J.@then(D);return D(J)})\n";
+const char* const s_readableStreamDefaultReaderReadManyCode = "(function (){\"use strict\";if(!@isReadableStreamDefaultReader(this))@throwTypeError(\"ReadableStreamDefaultReader.readMany() should not be called directly\");const J=@getByIdDirectPrivate(this,\"ownerReadableStream\");if(!J)@throwTypeError(\"readMany() called on a reader owned by no readable stream\");const E=@getByIdDirectPrivate(J,\"state\");if(@putByIdDirectPrivate(J,\"disturbed\",!0),E===@streamClosed)return{value:[],size:0,done:!0};else if(E===@streamErrored)throw @getByIdDirectPrivate(J,\"storedError\");var H=@getByIdDirectPrivate(J,\"readableStreamController\"),F=@getByIdDirectPrivate(H,\"queue\");if(!F)return H.@pull(H).@then(function({done:O,value:d}){return O\?{done:!0,value:[],size:0}:{value:[d],size:1,done:!1}});const G=F.content;var _=F.size,j=G.toArray(!1),K=j.length;if(K>0){var k=@newArrayWithSize(K);if(@isReadableByteStreamController(H)){{const O=j[0];if(!(@ArrayBuffer.@isView(O)||O instanceof @ArrayBuffer))@putByValDirect(k,0,new @Uint8Array(O.buffer,O.byteOffset,O.byteLength));else @putByValDirect(k,0,O)}for(var w=1;w<K;w++){const O=j[w];if(!(@ArrayBuffer.@isView(O)||O instanceof @ArrayBuffer))@putByValDirect(k,w,new @Uint8Array(O.buffer,O.byteOffset,O.byteLength));else @putByValDirect(k,w,O)}}else{@putByValDirect(k,0,j[0].value);for(var w=1;w<K;w++)@putByValDirect(k,w,j[w].value)}if(@resetQueue(@getByIdDirectPrivate(H,\"queue\")),@getByIdDirectPrivate(H,\"closeRequested\"))@readableStreamClose(@getByIdDirectPrivate(H,\"controlledReadableStream\"));else if(@isReadableStreamDefaultController(H))@readableStreamDefaultControllerCallPullIfNeeded(H);else if(@isReadableByteStreamController(H))@readableByteStreamControllerCallPullIfNeeded(H);return{value:k,size:_,done:!1}}var x=(O)=>{if(O.done)return{value:[],size:0,done:!0};var d=@getByIdDirectPrivate(J,\"readableStreamController\"),A=@getByIdDirectPrivate(d,\"queue\"),Q=[O.value].concat(A.content.toArray(!1)),S=Q.length;if(@isReadableByteStreamController(d))for(var B=0;B<S;B++){const T=Q[B];if(!(@ArrayBuffer.@isView(T)||T instanceof @ArrayBuffer)){const{buffer:U,byteOffset:I,byteLength:D}=T;@putByValDirect(Q,B,new @Uint8Array(U,I,D))}}else for(var B=1;B<S;B++)@putByValDirect(Q,B,Q[B].value);var C=A.size;if(@resetQueue(A),@getByIdDirectPrivate(d,\"closeRequested\"))@readableStreamClose(@getByIdDirectPrivate(d,\"controlledReadableStream\"));else if(@isReadableStreamDefaultController(d))@readableStreamDefaultControllerCallPullIfNeeded(d);else if(@isReadableByteStreamController(d))@readableByteStreamControllerCallPullIfNeeded(d);return{value:Q,size:C,done:!1}},N=H.@pull(H);if(N&&@isPromise(N))return N.@then(x);return x(N)})\n";
// read
const JSC::ConstructAbility s_readableStreamDefaultReaderReadCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2128,7 +2128,7 @@ const JSC::ConstructorKind s_streamInternalsPromiseInvokeOrFallbackOrNoopCodeCon
const JSC::ImplementationVisibility s_streamInternalsPromiseInvokeOrFallbackOrNoopCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_streamInternalsPromiseInvokeOrFallbackOrNoopCodeLength = 198;
static const JSC::Intrinsic s_streamInternalsPromiseInvokeOrFallbackOrNoopCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_streamInternalsPromiseInvokeOrFallbackOrNoopCode = "(function (n,_,l,p,u){\"use strict\";try{const v=n[_];if(v===@undefined)return @promiseInvokeOrNoopNoCatch(n,p,u);return @shieldingPromiseResolve(v.@apply(n,l))}catch(v){return @Promise.@reject(v)}})\n";
+const char* const s_streamInternalsPromiseInvokeOrFallbackOrNoopCode = "(function (_,p,l,u,v){\"use strict\";try{const n=_[p];if(n===@undefined)return @promiseInvokeOrNoopNoCatch(_,u,v);return @shieldingPromiseResolve(n.@apply(_,l))}catch(n){return @Promise.@reject(n)}})\n";
// validateAndNormalizeQueuingStrategy
const JSC::ConstructAbility s_streamInternalsValidateAndNormalizeQueuingStrategyCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2144,7 +2144,7 @@ const JSC::ConstructorKind s_streamInternalsCreateFIFOCodeConstructorKind = JSC:
const JSC::ImplementationVisibility s_streamInternalsCreateFIFOCodeImplementationVisibility = JSC::ImplementationVisibility::Private;
const int s_streamInternalsCreateFIFOCodeLength = 1472;
static const JSC::Intrinsic s_streamInternalsCreateFIFOCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_streamInternalsCreateFIFOCode = "(function (){\"use strict\";var b=@Array.prototype.slice;class z{constructor(){this._head=0,this._tail=0,this._capacityMask=3,this._list=@newArrayWithSize(4)}_head;_tail;_capacityMask;_list;size(){if(this._head===this._tail)return 0;if(this._head<this._tail)return this._tail-this._head;else return this._capacityMask+1-(this._head-this._tail)}isEmpty(){return this.size()==0}isNotEmpty(){return this.size()>0}shift(){var{_head:v,_tail:x,_list:k,_capacityMask:w}=this;if(v===x)return @undefined;var A=k[v];if(@putByValDirect(k,v,@undefined),v=this._head=v+1&w,v<2&&x>1e4&&x<=k.length>>>2)this._shrinkArray();return A}peek(){if(this._head===this._tail)return @undefined;return this._list[this._head]}push(v){var x=this._tail;if(@putByValDirect(this._list,x,v),this._tail=x+1&this._capacityMask,this._tail===this._head)this._growArray()}toArray(v){var x=this._list,k=@toLength(x.length);if(v||this._head>this._tail){var w=@toLength(this._head),A=@toLength(this._tail),B=@toLength(k-w+A),E=@newArrayWithSize(B),g=0;for(var F=w;F<k;F++)@putByValDirect(E,g++,x[F]);for(var F=0;F<A;F++)@putByValDirect(E,g++,x[F]);return E}else return b.@call(x,this._head,this._tail)}clear(){this._head=0,this._tail=0,this._list.fill(@undefined)}_growArray(){if(this._head)this._list=this.toArray(!0),this._head=0;this._tail=@toLength(this._list.length),this._list.length<<=1,this._capacityMask=this._capacityMask<<1|1}shrinkArray(){this._list.length>>>=1,this._capacityMask>>>=1}}return new z})\n";
+const char* const s_streamInternalsCreateFIFOCode = "(function (){\"use strict\";var b=@Array.prototype.slice;class k{constructor(){this._head=0,this._tail=0,this._capacityMask=3,this._list=@newArrayWithSize(4)}_head;_tail;_capacityMask;_list;size(){if(this._head===this._tail)return 0;if(this._head<this._tail)return this._tail-this._head;else return this._capacityMask+1-(this._head-this._tail)}isEmpty(){return this.size()==0}isNotEmpty(){return this.size()>0}shift(){var{_head:z,_tail:v,_list:g,_capacityMask:w}=this;if(z===v)return @undefined;var A=g[z];if(@putByValDirect(g,z,@undefined),z=this._head=z+1&w,z<2&&v>1e4&&v<=g.length>>>2)this._shrinkArray();return A}peek(){if(this._head===this._tail)return @undefined;return this._list[this._head]}push(z){var v=this._tail;if(@putByValDirect(this._list,v,z),this._tail=v+1&this._capacityMask,this._tail===this._head)this._growArray()}toArray(z){var v=this._list,g=@toLength(v.length);if(z||this._head>this._tail){var w=@toLength(this._head),A=@toLength(this._tail),B=@toLength(g-w+A),E=@newArrayWithSize(B),x=0;for(var F=w;F<g;F++)@putByValDirect(E,x++,v[F]);for(var F=0;F<A;F++)@putByValDirect(E,x++,v[F]);return E}else return b.@call(v,this._head,this._tail)}clear(){this._head=0,this._tail=0,this._list.fill(@undefined)}_growArray(){if(this._head)this._list=this.toArray(!0),this._head=0;this._tail=@toLength(this._list.length),this._list.length<<=1,this._capacityMask=this._capacityMask<<1|1}shrinkArray(){this._list.length>>>=1,this._capacityMask>>>=1}}return new k})\n";
// newQueue
const JSC::ConstructAbility s_streamInternalsNewQueueCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2168,7 +2168,7 @@ const JSC::ConstructorKind s_streamInternalsEnqueueValueWithSizeCodeConstructorK
const JSC::ImplementationVisibility s_streamInternalsEnqueueValueWithSizeCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_streamInternalsEnqueueValueWithSizeCodeLength = 161;
static const JSC::Intrinsic s_streamInternalsEnqueueValueWithSizeCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_streamInternalsEnqueueValueWithSizeCode = "(function (n,o,d){\"use strict\";if(d=@toNumber(d),!@isFinite(d)||d<0)@throwRangeError(\"size has an incorrect value\");n.content.push({value:o,size:d}),n.size+=d})\n";
+const char* const s_streamInternalsEnqueueValueWithSizeCode = "(function (n,d,o){\"use strict\";if(o=@toNumber(o),!@isFinite(o)||o<0)@throwRangeError(\"size has an incorrect value\");n.content.push({value:d,size:o}),n.size+=o})\n";
// peekQueueValue
const JSC::ConstructAbility s_streamInternalsPeekQueueValueCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2242,7 +2242,7 @@ const JSC::ConstructorKind s_importMetaObjectLoadCJS2ESMCodeConstructorKind = JS
const JSC::ImplementationVisibility s_importMetaObjectLoadCJS2ESMCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_importMetaObjectLoadCJS2ESMCodeLength = 1387;
static const JSC::Intrinsic s_importMetaObjectLoadCJS2ESMCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_importMetaObjectLoadCJS2ESMCode = "(function (_){\"use strict\";var w=@Loader,D=@createFIFO(),J=_;while(J){var x=w.registry.@get(J);if((x\?.state\?\?0)<=@ModuleFetch)@fulfillModuleSync(J),x=w.registry.@get(J);var z=@getPromiseInternalField(x.fetch,@promiseFieldReactionsOrResult),B=w.parseModule(J,z),F=x.module;if(B&&@isPromise(B)){var G=@getPromiseInternalField(B,@promiseFieldReactionsOrResult),H=@getPromiseInternalField(B,@promiseFieldFlags),I=H&@promiseStateMask;if(I===@promiseStatePending||G&&@isPromise(G))@throwTypeError(`require() async module \"${J}\" is unsupported. use \"await import()\" instead.`);else if(I===@promiseStateRejected){if(!G\?.message)@throwTypeError(`${G+\"\"\?G:\"An error occurred\"} occurred while parsing module \\\"${J}\\\"`);throw G}x.module=F=G}else if(B&&!F)x.module=F=B;@setStateToMax(x,@ModuleLink);var L=F.dependenciesMap,Q=w.requestedModules(F),T=@newArrayWithSize(Q.length);for(var U=0,V=Q.length;U<V;++U){var W=Q[U],X=W[0]===\"/\"\?W:w.resolve(W,J),Y=w.ensureRegistered(X);if(Y.state<@ModuleLink)D.push(X);@putByValDirect(T,U,Y),L.@set(W,Y)}x.dependencies=T,x.instantiate=@Promise.resolve(x),x.satisfy=@Promise.resolve(x),J=D.shift();while(J&&(w.registry.@get(J)\?.state\?\?@ModuleFetch)>=@ModuleLink)J=D.shift()}var Z=w.linkAndEvaluateModule(_,@undefined);if(Z&&@isPromise(Z))@throwTypeError(`require() async module \\\"${_}\\\" is unsupported. use \"await import()\" instead.`);return w.registry.@get(_)})\n";
+const char* const s_importMetaObjectLoadCJS2ESMCode = "(function (D){\"use strict\";var H=@Loader,_=@createFIFO(),I=D;while(I){var w=H.registry.@get(I);if((w\?.state\?\?0)<=@ModuleFetch)@fulfillModuleSync(I),w=H.registry.@get(I);var L=@getPromiseInternalField(w.fetch,@promiseFieldReactionsOrResult),J=H.parseModule(I,L),Q=w.module;if(J&&@isPromise(J)){var T=@getPromiseInternalField(J,@promiseFieldReactionsOrResult),x=@getPromiseInternalField(J,@promiseFieldFlags),U=x&@promiseStateMask;if(U===@promiseStatePending||T&&@isPromise(T))@throwTypeError(`require() async module \"${I}\" is unsupported. use \"await import()\" instead.`);else if(U===@promiseStateRejected){if(!T\?.message)@throwTypeError(`${T+\"\"\?T:\"An error occurred\"} occurred while parsing module \\\"${I}\\\"`);throw T}w.module=Q=T}else if(J&&!Q)w.module=Q=J;@setStateToMax(w,@ModuleLink);var V=Q.dependenciesMap,W=H.requestedModules(Q),X=@newArrayWithSize(W.length);for(var Y=0,Z=W.length;Y<Z;++Y){var z=W[Y],B=z[0]===\"/\"\?z:H.resolve(z,I),F=H.ensureRegistered(B);if(F.state<@ModuleLink)_.push(B);@putByValDirect(X,Y,F),V.@set(z,F)}w.dependencies=X,w.instantiate=@Promise.resolve(w),w.satisfy=@Promise.resolve(w),I=_.shift();while(I&&(H.registry.@get(I)\?.state\?\?@ModuleFetch)>=@ModuleLink)I=_.shift()}var G=H.linkAndEvaluateModule(D,@undefined);if(G&&@isPromise(G))@throwTypeError(`require() async module \\\"${D}\\\" is unsupported. use \"await import()\" instead.`);return H.registry.@get(D)})\n";
// requireESM
const JSC::ConstructAbility s_importMetaObjectRequireESMCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2250,7 +2250,7 @@ const JSC::ConstructorKind s_importMetaObjectRequireESMCodeConstructorKind = JSC
const JSC::ImplementationVisibility s_importMetaObjectRequireESMCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_importMetaObjectRequireESMCodeLength = 325;
static const JSC::Intrinsic s_importMetaObjectRequireESMCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_importMetaObjectRequireESMCode = "(function (a){\"use strict\";var c=@Loader.registry.@get(a);if(!c||!c.evaluated)c=@loadCJS2ESM(a);if(!c||!c.evaluated||!c.module)@throwTypeError(`require() failed to evaluate module \"${a}\". This is an internal consistentency error.`);var _=@Loader.getModuleNamespaceObject(c.module);if(_[@commonJSSymbol]===0)return;return _})\n";
+const char* const s_importMetaObjectRequireESMCode = "(function (a){\"use strict\";var _=@Loader.registry.@get(a);if(!_||!_.evaluated)_=@loadCJS2ESM(a);if(!_||!_.evaluated||!_.module)@throwTypeError(`require() failed to evaluate module \"${a}\". This is an internal consistentency error.`);var c=@Loader.getModuleNamespaceObject(_.module);if(c[@commonJSSymbol]===0)return;return c})\n";
// internalRequire
const JSC::ConstructAbility s_importMetaObjectInternalRequireCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2258,7 +2258,7 @@ const JSC::ConstructorKind s_importMetaObjectInternalRequireCodeConstructorKind
const JSC::ImplementationVisibility s_importMetaObjectInternalRequireCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_importMetaObjectInternalRequireCodeLength = 747;
static const JSC::Intrinsic s_importMetaObjectInternalRequireCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_importMetaObjectInternalRequireCode = "(function (_){\"use strict\";var k=@requireMap.@get(_);const q=_.substring(_.length-5);if(k)return k.exports;if(q===\".json\"){var b=globalThis[Symbol.for(\"_fs\")]||=@Bun.fs(),g=JSON.parse(b.readFileSync(_,\"utf8\"));return @requireMap.@set(_,@createCommonJSModule(_,g,!0)),g}else if(q===\".node\"){const v=@createCommonJSModule(_,{},!0);return process.dlopen(v,_),@requireMap.@set(_,v),v.exports}else if(q===\".toml\"){var b=globalThis[Symbol.for(\"_fs\")]||=@Bun.fs(),g=@Bun.TOML.parse(b.readFileSync(_,\"utf8\"));return @requireMap.@set(_,@createCommonJSModule(_,g,!0)),g}else{var g=@requireESM(_);const j=@requireMap.@get(_);if(j)return j.exports;var n=g\?.default;if(n\?.[@commonJSSymbol]===0)g=n;return @requireMap.@set(_,@createCommonJSModule(_,g,!0)),g}})\n";
+const char* const s_importMetaObjectInternalRequireCode = "(function (b){\"use strict\";var g=@requireMap.@get(b);const j=b.substring(b.length-5);if(g)return g.exports;if(j===\".json\"){var k=globalThis[Symbol.for(\"_fs\")]||=@Bun.fs(),q=JSON.parse(k.readFileSync(b,\"utf8\"));return @requireMap.@set(b,@createCommonJSModule(b,q,!0)),q}else if(j===\".node\"){const n=@createCommonJSModule(b,{},!0);return process.dlopen(n,b),@requireMap.@set(b,n),n.exports}else if(j===\".toml\"){var k=globalThis[Symbol.for(\"_fs\")]||=@Bun.fs(),q=@Bun.TOML.parse(k.readFileSync(b,\"utf8\"));return @requireMap.@set(b,@createCommonJSModule(b,q,!0)),q}else{var q=@requireESM(b);const v=@requireMap.@get(b);if(v)return v.exports;var _=q\?.default;if(_\?.[@commonJSSymbol]===0)q=_;return @requireMap.@set(b,@createCommonJSModule(b,q,!0)),q}})\n";
// createRequireCache
const JSC::ConstructAbility s_importMetaObjectCreateRequireCacheCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2266,7 +2266,7 @@ const JSC::ConstructorKind s_importMetaObjectCreateRequireCacheCodeConstructorKi
const JSC::ImplementationVisibility s_importMetaObjectCreateRequireCacheCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_importMetaObjectCreateRequireCacheCodeLength = 854;
static const JSC::Intrinsic s_importMetaObjectCreateRequireCacheCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_importMetaObjectCreateRequireCacheCode = "(function (){\"use strict\";var _=new Map,f={};return new Proxy(f,{get(h,b){const t=@requireMap.@get(b);if(t)return t;const c=@Loader.registry.@get(b);if(c\?.evaluated){const u=@Loader.getModuleNamespaceObject(c.module),g=u[@commonJSSymbol]===0||u.default\?.[@commonJSSymbol]\?u.default:u,L=@createCommonJSModule(b,g,!0);return @requireMap.@set(b,L),L}return f[b]},set(h,b,t){return @requireMap.@set(b,t),!0},has(h,b){return @requireMap.@has(b)||@Loader.registry.@has(b)},deleteProperty(h,b){return _.@delete(b),@requireMap.@delete(b),@Loader.registry.@delete(b),!0},ownKeys(h){var b=[...@requireMap.@keys()];const t=[...@Loader.registry.@keys()];for(let c of t)if(!b.includes(c))@arrayPush(b,c);return b},getPrototypeOf(h){return null},getOwnPropertyDescriptor(h,b){if(@requireMap.@has(b)||@Loader.registry.@has(b))return{configurable:!0,enumerable:!0}}})})\n";
+const char* const s_importMetaObjectCreateRequireCacheCode = "(function (){\"use strict\";var _=new Map,f={};return new Proxy(f,{get(h,t){const u=@requireMap.@get(t);if(u)return u;const L=@Loader.registry.@get(t);if(L\?.evaluated){const b=@Loader.getModuleNamespaceObject(L.module),c=b[@commonJSSymbol]===0||b.default\?.[@commonJSSymbol]\?b.default:b,g=@createCommonJSModule(t,c,!0);return @requireMap.@set(t,g),g}return f[t]},set(h,t,u){return @requireMap.@set(t,u),!0},has(h,t){return @requireMap.@has(t)||@Loader.registry.@has(t)},deleteProperty(h,t){return _.@delete(t),@requireMap.@delete(t),@Loader.registry.@delete(t),!0},ownKeys(h){var t=[...@requireMap.@keys()];const u=[...@Loader.registry.@keys()];for(let L of u)if(!t.includes(L))@arrayPush(t,L);return t},getPrototypeOf(h){return null},getOwnPropertyDescriptor(h,t){if(@requireMap.@has(t)||@Loader.registry.@has(t))return{configurable:!0,enumerable:!0}}})})\n";
// require
const JSC::ConstructAbility s_importMetaObjectRequireCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2334,7 +2334,7 @@ const JSC::ConstructorKind s_readableStreamBYOBRequestInitializeReadableStreamBY
const JSC::ImplementationVisibility s_readableStreamBYOBRequestInitializeReadableStreamBYOBRequestCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamBYOBRequestInitializeReadableStreamBYOBRequestCodeLength = 243;
static const JSC::Intrinsic s_readableStreamBYOBRequestInitializeReadableStreamBYOBRequestCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamBYOBRequestInitializeReadableStreamBYOBRequestCode = "(function (c,a){\"use strict\";if(arguments.length!==3&&arguments[2]!==@isReadableStream)@throwTypeError(\"ReadableStreamBYOBRequest constructor should not be called directly\");return @privateInitializeReadableStreamBYOBRequest.@call(this,c,a)})\n";
+const char* const s_readableStreamBYOBRequestInitializeReadableStreamBYOBRequestCode = "(function (a,c){\"use strict\";if(arguments.length!==3&&arguments[2]!==@isReadableStream)@throwTypeError(\"ReadableStreamBYOBRequest constructor should not be called directly\");return @privateInitializeReadableStreamBYOBRequest.@call(this,a,c)})\n";
// respond
const JSC::ConstructAbility s_readableStreamBYOBRequestRespondCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2458,7 +2458,7 @@ const JSC::ConstructorKind s_readableStreamReadableStreamToArrayCodeConstructorK
const JSC::ImplementationVisibility s_readableStreamReadableStreamToArrayCodeImplementationVisibility = JSC::ImplementationVisibility::Private;
const int s_readableStreamReadableStreamToArrayCodeLength = 173;
static const JSC::Intrinsic s_readableStreamReadableStreamToArrayCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamReadableStreamToArrayCode = "(function (_){\"use strict\";var b=@getByIdDirectPrivate(_,\"underlyingSource\");if(b!==@undefined)return @readableStreamToArrayDirect(_,b);return @readableStreamIntoArray(_)})\n";
+const char* const s_readableStreamReadableStreamToArrayCode = "(function (b){\"use strict\";var _=@getByIdDirectPrivate(b,\"underlyingSource\");if(_!==@undefined)return @readableStreamToArrayDirect(b,_);return @readableStreamIntoArray(b)})\n";
// readableStreamToText
const JSC::ConstructAbility s_readableStreamReadableStreamToTextCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2466,7 +2466,7 @@ const JSC::ConstructorKind s_readableStreamReadableStreamToTextCodeConstructorKi
const JSC::ImplementationVisibility s_readableStreamReadableStreamToTextCodeImplementationVisibility = JSC::ImplementationVisibility::Private;
const int s_readableStreamReadableStreamToTextCodeLength = 171;
static const JSC::Intrinsic s_readableStreamReadableStreamToTextCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamReadableStreamToTextCode = "(function (p){\"use strict\";var _=@getByIdDirectPrivate(p,\"underlyingSource\");if(_!==@undefined)return @readableStreamToTextDirect(p,_);return @readableStreamIntoText(p)})\n";
+const char* const s_readableStreamReadableStreamToTextCode = "(function (_){\"use strict\";var p=@getByIdDirectPrivate(_,\"underlyingSource\");if(p!==@undefined)return @readableStreamToTextDirect(_,p);return @readableStreamIntoText(_)})\n";
// readableStreamToArrayBuffer
const JSC::ConstructAbility s_readableStreamReadableStreamToArrayBufferCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2498,7 +2498,7 @@ const JSC::ConstructorKind s_readableStreamConsumeReadableStreamCodeConstructorK
const JSC::ImplementationVisibility s_readableStreamConsumeReadableStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Private;
const int s_readableStreamConsumeReadableStreamCodeLength = 1603;
static const JSC::Intrinsic s_readableStreamConsumeReadableStreamCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamConsumeReadableStreamCode = "(function (q,x,A){\"use strict\";const B=globalThis.Symbol.for(\"Bun.consumeReadableStreamPrototype\");var F=globalThis[B];if(!F)F=globalThis[B]=[];var J=F[x];if(J===@undefined){var[j,K,L,w,H,_]=globalThis[globalThis.Symbol.for(\"Bun.lazy\")](x);J=class I{handleError;handleClosed;processResult;constructor(G,N){this.#_=N,this.#F=G,this.#$=!1,this.handleError=this._handleError.bind(this),this.handleClosed=this._handleClosed.bind(this),this.processResult=this._processResult.bind(this),G.closed.then(this.handleClosed,this.handleError)}_handleClosed(){if(this.#$)return;this.#$=!0;var G=this.#_;this.#_=0,w(G),_(G)}_handleError(G){if(this.#$)return;this.#$=!0;var N=this.#_;this.#_=0,K(N,G),_(N)}#_;#$=!1;#F;_handleReadMany({value:G,done:N,size:k}){if(N){this.handleClosed();return}if(this.#$)return;L(this.#_,G,N,k)}read(){if(!this.#_)return @throwTypeError(\"ReadableStreamSink is already closed\");return this.processResult(this.#F.read())}_processResult(G){if(G&&@isPromise(G)){if(@getPromiseInternalField(G,@promiseFieldFlags)&@promiseStateFulfilled){const k=@getPromiseInternalField(G,@promiseFieldReactionsOrResult);if(k)G=k}}if(G&&@isPromise(G))return G.then(this.processResult,this.handleError),null;if(G.done)return this.handleClosed(),0;else if(G.value)return G.value;else return-1}readMany(){if(!this.#_)return @throwTypeError(\"ReadableStreamSink is already closed\");return this.processResult(this.#F.readMany())}};const D=x+1;if(F.length<D)F.length=D;@putByValDirect(F,x,J)}if(@isReadableStreamLocked(A))@throwTypeError(\"Cannot start reading from a locked stream\");return new J(A.getReader(),q)})\n";
+const char* const s_readableStreamConsumeReadableStreamCode = "(function (_,F,j){\"use strict\";const k=globalThis.Symbol.for(\"Bun.consumeReadableStreamPrototype\");var q=globalThis[k];if(!q)q=globalThis[k]=[];var w=q[F];if(w===@undefined){var[x,A,B,D,G,H]=globalThis[globalThis.Symbol.for(\"Bun.lazy\")](F);w=class J{handleError;handleClosed;processResult;constructor(K,L){this.#_=L,this.#F=K,this.#$=!1,this.handleError=this._handleError.bind(this),this.handleClosed=this._handleClosed.bind(this),this.processResult=this._processResult.bind(this),K.closed.then(this.handleClosed,this.handleError)}_handleClosed(){if(this.#$)return;this.#$=!0;var K=this.#_;this.#_=0,D(K),H(K)}_handleError(K){if(this.#$)return;this.#$=!0;var L=this.#_;this.#_=0,A(L,K),H(L)}#_;#$=!1;#F;_handleReadMany({value:K,done:L,size:N}){if(L){this.handleClosed();return}if(this.#$)return;B(this.#_,K,L,N)}read(){if(!this.#_)return @throwTypeError(\"ReadableStreamSink is already closed\");return this.processResult(this.#F.read())}_processResult(K){if(K&&@isPromise(K)){if(@getPromiseInternalField(K,@promiseFieldFlags)&@promiseStateFulfilled){const N=@getPromiseInternalField(K,@promiseFieldReactionsOrResult);if(N)K=N}}if(K&&@isPromise(K))return K.then(this.processResult,this.handleError),null;if(K.done)return this.handleClosed(),0;else if(K.value)return K.value;else return-1}readMany(){if(!this.#_)return @throwTypeError(\"ReadableStreamSink is already closed\");return this.processResult(this.#F.readMany())}};const I=F+1;if(q.length<I)q.length=I;@putByValDirect(q,F,w)}if(@isReadableStreamLocked(j))@throwTypeError(\"Cannot start reading from a locked stream\");return new w(j.getReader(),_)})\n";
// createEmptyReadableStream
const JSC::ConstructAbility s_readableStreamCreateEmptyReadableStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2538,7 +2538,7 @@ const JSC::ConstructorKind s_readableStreamPipeThroughCodeConstructorKind = JSC:
const JSC::ImplementationVisibility s_readableStreamPipeThroughCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableStreamPipeThroughCodeLength = 847;
static const JSC::Intrinsic s_readableStreamPipeThroughCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableStreamPipeThroughCode = "(function (u,y){\"use strict\";const O=u,_=O[\"readable\"];if(!@isReadableStream(_))@throwTypeError(\"readable should be ReadableStream\");const S=O[\"writable\"],c=@getInternalWritableStream(S);if(!@isWritableStream(c))@throwTypeError(\"writable should be WritableStream\");let d=!1,h=!1,j=!1,k;if(!@isUndefinedOrNull(y)){if(!@isObject(y))@throwTypeError(\"options must be an object\");if(h=!!y[\"preventAbort\"],j=!!y[\"preventCancel\"],d=!!y[\"preventClose\"],k=y[\"signal\"],k!==@undefined&&!@isAbortSignal(k))@throwTypeError(\"options.signal must be AbortSignal\")}if(!@isReadableStream(this))throw @makeThisTypeError(\"ReadableStream\",\"pipeThrough\");if(@isReadableStreamLocked(this))@throwTypeError(\"ReadableStream is locked\");if(@isWritableStreamLocked(c))@throwTypeError(\"WritableStream is locked\");return @readableStreamPipeToWritableStream(this,c,d,h,j,k),_})\n";
+const char* const s_readableStreamPipeThroughCode = "(function (_,u){\"use strict\";const d=_,y=d[\"readable\"];if(!@isReadableStream(y))@throwTypeError(\"readable should be ReadableStream\");const h=d[\"writable\"],O=@getInternalWritableStream(h);if(!@isWritableStream(O))@throwTypeError(\"writable should be WritableStream\");let j=!1,S=!1,k=!1,c;if(!@isUndefinedOrNull(u)){if(!@isObject(u))@throwTypeError(\"options must be an object\");if(S=!!u[\"preventAbort\"],k=!!u[\"preventCancel\"],j=!!u[\"preventClose\"],c=u[\"signal\"],c!==@undefined&&!@isAbortSignal(c))@throwTypeError(\"options.signal must be AbortSignal\")}if(!@isReadableStream(this))throw @makeThisTypeError(\"ReadableStream\",\"pipeThrough\");if(@isReadableStreamLocked(this))@throwTypeError(\"ReadableStream is locked\");if(@isWritableStreamLocked(O))@throwTypeError(\"WritableStream is locked\");return @readableStreamPipeToWritableStream(this,O,j,S,k,c),y})\n";
// pipeTo
const JSC::ConstructAbility s_readableStreamPipeToCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2646,7 +2646,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsPrivateInitializeReadabl
const JSC::ImplementationVisibility s_readableByteStreamInternalsPrivateInitializeReadableByteStreamControllerCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableByteStreamInternalsPrivateInitializeReadableByteStreamControllerCodeLength = 1654;
static const JSC::Intrinsic s_readableByteStreamInternalsPrivateInitializeReadableByteStreamControllerCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableByteStreamInternalsPrivateInitializeReadableByteStreamControllerCode = "(function (v,R,b){\"use strict\";if(!@isReadableStream(v))@throwTypeError(\"ReadableByteStreamController needs a ReadableStream\");if(@getByIdDirectPrivate(v,\"readableStreamController\")!==null)@throwTypeError(\"ReadableStream already has a controller\");@putByIdDirectPrivate(this,\"controlledReadableStream\",v),@putByIdDirectPrivate(this,\"underlyingByteSource\",R),@putByIdDirectPrivate(this,\"pullAgain\",!1),@putByIdDirectPrivate(this,\"pulling\",!1),@readableByteStreamControllerClearPendingPullIntos(this),@putByIdDirectPrivate(this,\"queue\",@newQueue()),@putByIdDirectPrivate(this,\"started\",0),@putByIdDirectPrivate(this,\"closeRequested\",!1);let f=@toNumber(b);if(@isNaN(f)||f<0)@throwRangeError(\"highWaterMark value is negative or not a number\");@putByIdDirectPrivate(this,\"strategyHWM\",f);let d=R.autoAllocateChunkSize;if(d!==@undefined){if(d=@toNumber(d),d<=0||d===@Infinity||d===-@Infinity)@throwRangeError(\"autoAllocateChunkSize value is negative or equal to positive or negative infinity\")}@putByIdDirectPrivate(this,\"autoAllocateChunkSize\",d),@putByIdDirectPrivate(this,\"pendingPullIntos\",@createFIFO());const _=this;return @promiseInvokeOrNoopNoCatch(@getByIdDirectPrivate(_,\"underlyingByteSource\"),\"start\",[_]).@then(()=>{@putByIdDirectPrivate(_,\"started\",1),@assert(!@getByIdDirectPrivate(_,\"pulling\")),@assert(!@getByIdDirectPrivate(_,\"pullAgain\")),@readableByteStreamControllerCallPullIfNeeded(_)},(p)=>{if(@getByIdDirectPrivate(v,\"state\")===@streamReadable)@readableByteStreamControllerError(_,p)}),@putByIdDirectPrivate(this,\"cancel\",@readableByteStreamControllerCancel),@putByIdDirectPrivate(this,\"pull\",@readableByteStreamControllerPull),this})\n";
+const char* const s_readableByteStreamInternalsPrivateInitializeReadableByteStreamControllerCode = "(function (_,v,b){\"use strict\";if(!@isReadableStream(_))@throwTypeError(\"ReadableByteStreamController needs a ReadableStream\");if(@getByIdDirectPrivate(_,\"readableStreamController\")!==null)@throwTypeError(\"ReadableStream already has a controller\");@putByIdDirectPrivate(this,\"controlledReadableStream\",_),@putByIdDirectPrivate(this,\"underlyingByteSource\",v),@putByIdDirectPrivate(this,\"pullAgain\",!1),@putByIdDirectPrivate(this,\"pulling\",!1),@readableByteStreamControllerClearPendingPullIntos(this),@putByIdDirectPrivate(this,\"queue\",@newQueue()),@putByIdDirectPrivate(this,\"started\",0),@putByIdDirectPrivate(this,\"closeRequested\",!1);let f=@toNumber(b);if(@isNaN(f)||f<0)@throwRangeError(\"highWaterMark value is negative or not a number\");@putByIdDirectPrivate(this,\"strategyHWM\",f);let p=v.autoAllocateChunkSize;if(p!==@undefined){if(p=@toNumber(p),p<=0||p===@Infinity||p===-@Infinity)@throwRangeError(\"autoAllocateChunkSize value is negative or equal to positive or negative infinity\")}@putByIdDirectPrivate(this,\"autoAllocateChunkSize\",p),@putByIdDirectPrivate(this,\"pendingPullIntos\",@createFIFO());const d=this;return @promiseInvokeOrNoopNoCatch(@getByIdDirectPrivate(d,\"underlyingByteSource\"),\"start\",[d]).@then(()=>{@putByIdDirectPrivate(d,\"started\",1),@assert(!@getByIdDirectPrivate(d,\"pulling\")),@assert(!@getByIdDirectPrivate(d,\"pullAgain\")),@readableByteStreamControllerCallPullIfNeeded(d)},(R)=>{if(@getByIdDirectPrivate(_,\"state\")===@streamReadable)@readableByteStreamControllerError(d,R)}),@putByIdDirectPrivate(this,\"cancel\",@readableByteStreamControllerCancel),@putByIdDirectPrivate(this,\"pull\",@readableByteStreamControllerPull),this})\n";
// readableStreamByteStreamControllerStart
const JSC::ConstructAbility s_readableByteStreamInternalsReadableStreamByteStreamControllerStartCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2758,7 +2758,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsReadableByteStreamContro
const JSC::ImplementationVisibility s_readableByteStreamInternalsReadableByteStreamControllerPullCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableByteStreamInternalsReadableByteStreamControllerPullCodeLength = 1005;
static const JSC::Intrinsic s_readableByteStreamInternalsReadableByteStreamControllerPullCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableByteStreamInternalsReadableByteStreamControllerPullCode = "(function (_){\"use strict\";const d=@getByIdDirectPrivate(_,\"controlledReadableStream\");if(@assert(@readableStreamHasDefaultReader(d)),@getByIdDirectPrivate(_,\"queue\").content\?.isNotEmpty()){const F=@getByIdDirectPrivate(_,\"queue\").content.shift();@getByIdDirectPrivate(_,\"queue\").size-=F.byteLength,@readableByteStreamControllerHandleQueueDrain(_);let P;try{P=new @Uint8Array(F.buffer,F.byteOffset,F.byteLength)}catch(R){return @Promise.@reject(R)}return @createFulfilledPromise({value:P,done:!1})}if(@getByIdDirectPrivate(_,\"autoAllocateChunkSize\")!==@undefined){let F;try{F=@createUninitializedArrayBuffer(@getByIdDirectPrivate(_,\"autoAllocateChunkSize\"))}catch(R){return @Promise.@reject(R)}const P={buffer:F,byteOffset:0,byteLength:@getByIdDirectPrivate(_,\"autoAllocateChunkSize\"),bytesFilled:0,elementSize:1,ctor:@Uint8Array,readerType:\"default\"};@getByIdDirectPrivate(_,\"pendingPullIntos\").push(P)}const h=@readableStreamAddReadRequest(d);return @readableByteStreamControllerCallPullIfNeeded(_),h})\n";
+const char* const s_readableByteStreamInternalsReadableByteStreamControllerPullCode = "(function (d){\"use strict\";const h=@getByIdDirectPrivate(d,\"controlledReadableStream\");if(@assert(@readableStreamHasDefaultReader(h)),@getByIdDirectPrivate(d,\"queue\").content\?.isNotEmpty()){const F=@getByIdDirectPrivate(d,\"queue\").content.shift();@getByIdDirectPrivate(d,\"queue\").size-=F.byteLength,@readableByteStreamControllerHandleQueueDrain(d);let R;try{R=new @Uint8Array(F.buffer,F.byteOffset,F.byteLength)}catch(_){return @Promise.@reject(_)}return @createFulfilledPromise({value:R,done:!1})}if(@getByIdDirectPrivate(d,\"autoAllocateChunkSize\")!==@undefined){let F;try{F=@createUninitializedArrayBuffer(@getByIdDirectPrivate(d,\"autoAllocateChunkSize\"))}catch(_){return @Promise.@reject(_)}const R={buffer:F,byteOffset:0,byteLength:@getByIdDirectPrivate(d,\"autoAllocateChunkSize\"),bytesFilled:0,elementSize:1,ctor:@Uint8Array,readerType:\"default\"};@getByIdDirectPrivate(d,\"pendingPullIntos\").push(R)}const P=@readableStreamAddReadRequest(h);return @readableByteStreamControllerCallPullIfNeeded(d),P})\n";
// readableByteStreamControllerShouldCallPull
const JSC::ConstructAbility s_readableByteStreamInternalsReadableByteStreamControllerShouldCallPullCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2838,7 +2838,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsReadableByteStreamContro
const JSC::ImplementationVisibility s_readableByteStreamInternalsReadableByteStreamControllerRespondInReadableStateCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableByteStreamInternalsReadableByteStreamControllerRespondInReadableStateCodeLength = 799;
static const JSC::Intrinsic s_readableByteStreamInternalsReadableByteStreamControllerRespondInReadableStateCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableByteStreamInternalsReadableByteStreamControllerRespondInReadableStateCode = "(function (f,w,R){\"use strict\";if(R.bytesFilled+w>R.byteLength)@throwRangeError(\"bytesWritten value is too great\");if(@assert(@getByIdDirectPrivate(f,\"pendingPullIntos\").isEmpty()||@getByIdDirectPrivate(f,\"pendingPullIntos\").peek()===R),@readableByteStreamControllerInvalidateBYOBRequest(f),R.bytesFilled+=w,R.bytesFilled<R.elementSize)return;@readableByteStreamControllerShiftPendingDescriptor(f);const _=R.bytesFilled%R.elementSize;if(_>0){const g=R.byteOffset+R.bytesFilled,h=@cloneArrayBuffer(R.buffer,g-_,_);@readableByteStreamControllerEnqueueChunk(f,h,0,h.byteLength)}R.buffer=@transferBufferToCurrentRealm(R.buffer),R.bytesFilled-=_,@readableByteStreamControllerCommitDescriptor(@getByIdDirectPrivate(f,\"controlledReadableStream\"),R),@readableByteStreamControllerProcessPullDescriptors(f)})\n";
+const char* const s_readableByteStreamInternalsReadableByteStreamControllerRespondInReadableStateCode = "(function (w,R,_){\"use strict\";if(_.bytesFilled+R>_.byteLength)@throwRangeError(\"bytesWritten value is too great\");if(@assert(@getByIdDirectPrivate(w,\"pendingPullIntos\").isEmpty()||@getByIdDirectPrivate(w,\"pendingPullIntos\").peek()===_),@readableByteStreamControllerInvalidateBYOBRequest(w),_.bytesFilled+=R,_.bytesFilled<_.elementSize)return;@readableByteStreamControllerShiftPendingDescriptor(w);const g=_.bytesFilled%_.elementSize;if(g>0){const h=_.byteOffset+_.bytesFilled,f=@cloneArrayBuffer(_.buffer,h-g,g);@readableByteStreamControllerEnqueueChunk(w,f,0,f.byteLength)}_.buffer=@transferBufferToCurrentRealm(_.buffer),_.bytesFilled-=g,@readableByteStreamControllerCommitDescriptor(@getByIdDirectPrivate(w,\"controlledReadableStream\"),_),@readableByteStreamControllerProcessPullDescriptors(w)})\n";
// readableByteStreamControllerRespondInClosedState
const JSC::ConstructAbility s_readableByteStreamInternalsReadableByteStreamControllerRespondInClosedStateCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2886,7 +2886,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsReadableByteStreamContro
const JSC::ImplementationVisibility s_readableByteStreamInternalsReadableByteStreamControllerCommitDescriptorCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableByteStreamInternalsReadableByteStreamControllerCommitDescriptorCodeLength = 386;
static const JSC::Intrinsic s_readableByteStreamInternalsReadableByteStreamControllerCommitDescriptorCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableByteStreamInternalsReadableByteStreamControllerCommitDescriptorCode = "(function (_,b){\"use strict\";@assert(@getByIdDirectPrivate(_,\"state\")!==@streamErrored);let g=!1;if(@getByIdDirectPrivate(_,\"state\")===@streamClosed)@assert(!b.bytesFilled),g=!0;let h=@readableByteStreamControllerConvertDescriptor(b);if(b.readerType===\"default\")@readableStreamFulfillReadRequest(_,h,g);else @assert(b.readerType===\"byob\"),@readableStreamFulfillReadIntoRequest(_,h,g)})\n";
+const char* const s_readableByteStreamInternalsReadableByteStreamControllerCommitDescriptorCode = "(function (g,h){\"use strict\";@assert(@getByIdDirectPrivate(g,\"state\")!==@streamErrored);let _=!1;if(@getByIdDirectPrivate(g,\"state\")===@streamClosed)@assert(!h.bytesFilled),_=!0;let b=@readableByteStreamControllerConvertDescriptor(h);if(h.readerType===\"default\")@readableStreamFulfillReadRequest(g,b,_);else @assert(h.readerType===\"byob\"),@readableStreamFulfillReadIntoRequest(g,b,_)})\n";
// readableByteStreamControllerConvertDescriptor
const JSC::ConstructAbility s_readableByteStreamInternalsReadableByteStreamControllerConvertDescriptorCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2902,7 +2902,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsReadableStreamFulfillRea
const JSC::ImplementationVisibility s_readableByteStreamInternalsReadableStreamFulfillReadIntoRequestCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableByteStreamInternalsReadableStreamFulfillReadIntoRequestCodeLength = 161;
static const JSC::Intrinsic s_readableByteStreamInternalsReadableStreamFulfillReadIntoRequestCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableByteStreamInternalsReadableStreamFulfillReadIntoRequestCode = "(function (l,i,p){\"use strict\";const _=@getByIdDirectPrivate(@getByIdDirectPrivate(l,\"reader\"),\"readIntoRequests\").shift();@fulfillPromise(_,{value:i,done:p})})\n";
+const char* const s_readableByteStreamInternalsReadableStreamFulfillReadIntoRequestCode = "(function (i,l,p){\"use strict\";const _=@getByIdDirectPrivate(@getByIdDirectPrivate(i,\"reader\"),\"readIntoRequests\").shift();@fulfillPromise(_,{value:l,done:p})})\n";
// readableStreamBYOBReaderRead
const JSC::ConstructAbility s_readableByteStreamInternalsReadableStreamBYOBReaderReadCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2918,7 +2918,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsReadableByteStreamContro
const JSC::ImplementationVisibility s_readableByteStreamInternalsReadableByteStreamControllerPullIntoCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_readableByteStreamInternalsReadableByteStreamControllerPullIntoCodeLength = 1255;
static const JSC::Intrinsic s_readableByteStreamInternalsReadableByteStreamControllerPullIntoCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_readableByteStreamInternalsReadableByteStreamControllerPullIntoCode = "(function (b,A){\"use strict\";const _=@getByIdDirectPrivate(b,\"controlledReadableStream\");let d=1;if(A.BYTES_PER_ELEMENT!==@undefined)d=A.BYTES_PER_ELEMENT;const k=A.constructor,E={buffer:A.buffer,byteOffset:A.byteOffset,byteLength:A.byteLength,bytesFilled:0,elementSize:d,ctor:k,readerType:\"byob\"};var L=@getByIdDirectPrivate(b,\"pendingPullIntos\");if(L\?.isNotEmpty())return E.buffer=@transferBufferToCurrentRealm(E.buffer),L.push(E),@readableStreamAddReadIntoRequest(_);if(@getByIdDirectPrivate(_,\"state\")===@streamClosed){const R=new k(E.buffer,E.byteOffset,0);return @createFulfilledPromise({value:R,done:!0})}if(@getByIdDirectPrivate(b,\"queue\").size>0){if(@readableByteStreamControllerFillDescriptorFromQueue(b,E)){const R=@readableByteStreamControllerConvertDescriptor(E);return @readableByteStreamControllerHandleQueueDrain(b),@createFulfilledPromise({value:R,done:!1})}if(@getByIdDirectPrivate(b,\"closeRequested\")){const R=@makeTypeError(\"Closing stream has been requested\");return @readableByteStreamControllerError(b,R),@Promise.@reject(R)}}E.buffer=@transferBufferToCurrentRealm(E.buffer),@getByIdDirectPrivate(b,\"pendingPullIntos\").push(E);const N=@readableStreamAddReadIntoRequest(_);return @readableByteStreamControllerCallPullIfNeeded(b),N})\n";
+const char* const s_readableByteStreamInternalsReadableByteStreamControllerPullIntoCode = "(function (d,_){\"use strict\";const k=@getByIdDirectPrivate(d,\"controlledReadableStream\");let E=1;if(_.BYTES_PER_ELEMENT!==@undefined)E=_.BYTES_PER_ELEMENT;const L=_.constructor,b={buffer:_.buffer,byteOffset:_.byteOffset,byteLength:_.byteLength,bytesFilled:0,elementSize:E,ctor:L,readerType:\"byob\"};var A=@getByIdDirectPrivate(d,\"pendingPullIntos\");if(A\?.isNotEmpty())return b.buffer=@transferBufferToCurrentRealm(b.buffer),A.push(b),@readableStreamAddReadIntoRequest(k);if(@getByIdDirectPrivate(k,\"state\")===@streamClosed){const R=new L(b.buffer,b.byteOffset,0);return @createFulfilledPromise({value:R,done:!0})}if(@getByIdDirectPrivate(d,\"queue\").size>0){if(@readableByteStreamControllerFillDescriptorFromQueue(d,b)){const R=@readableByteStreamControllerConvertDescriptor(b);return @readableByteStreamControllerHandleQueueDrain(d),@createFulfilledPromise({value:R,done:!1})}if(@getByIdDirectPrivate(d,\"closeRequested\")){const R=@makeTypeError(\"Closing stream has been requested\");return @readableByteStreamControllerError(d,R),@Promise.@reject(R)}}b.buffer=@transferBufferToCurrentRealm(b.buffer),@getByIdDirectPrivate(d,\"pendingPullIntos\").push(b);const N=@readableStreamAddReadIntoRequest(k);return @readableByteStreamControllerCallPullIfNeeded(d),N})\n";
// readableStreamAddReadIntoRequest
const JSC::ConstructAbility s_readableByteStreamInternalsReadableStreamAddReadIntoRequestCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
@@ -2970,7 +2970,7 @@ const JSC::ConstructorKind s_eventSourceGetEventSourceCodeConstructorKind = JSC:
const JSC::ImplementationVisibility s_eventSourceGetEventSourceCodeImplementationVisibility = JSC::ImplementationVisibility::Public;
const int s_eventSourceGetEventSourceCodeLength = 5477;
static const JSC::Intrinsic s_eventSourceGetEventSourceCodeIntrinsic = JSC::NoIntrinsic;
-const char* const s_eventSourceGetEventSourceCode = "(function (){\"use strict\";class B extends EventTarget{#$;#j;#w;#A;#B;#F=!1;#G=null;#J=\"\";#K=\"\";#L=\"\";#M=!0;#O=0;#Q=0;#U=0;#V=null;static#W(K){K.#H()}static#X(K,L){const M=K.data,F=M.#L\?`Last-Event-ID: ${M.#L}\\r\\n`:\"\",O=`GET ${L.pathname}${L.search} HTTP/1.1\\r\\nHost: bun\\r\\nContent-type: text/event-stream\\r\\nContent-length: 0\\r\\n${F}\\r\\n`,j=K.write(O);if(j!==O.length)M.#K=O.substring(j)}static#Y(K,L,M){for(;;){if(M>=L.length)return;let F=-1,O=L.indexOf(\"\\r\\n\",M);const j=O+2;if(O>0)if(K.#O===0){const V=parseInt(L.substring(M,O),16);if(V===0){K.#j=2,K.#G\?.end();return}F=j+V}else F=L.length;else{if(K.#J.length===0){K.#J+=L.substring(M);return}F=L.length}let Q=L.substring(j,F);M=F+2;let w=0,U=Q.indexOf(\"\\n\\n\");if(U==-1){K.#J+=L.substring(j);return}if(K.#J.length)K.#J+=Q,Q=K.#J,K.#J=\"\";let G=!0;while(G){const V=Q.substring(w,U);let W,J=\"\",X,Y=0,Z=-1;for(;;){let H=V.indexOf(\"\\n\",Y);if(H===-1){if(Y>=V.length)break;H=V.length}const A=V.substring(Y,H);if(A.startsWith(\"data:\"))if(J.length)J+=`\\n${A.substring(5).trim()}`;else J=A.substring(5).trim();else if(A.startsWith(\"event:\"))W=A.substring(6).trim();else if(A.startsWith(\"id:\"))X=A.substring(3).trim();else if(A.startsWith(\"retry:\")){if(Z=parseInt(A.substring(6).trim(),10),@isNaN(Z))Z=-1}Y=H+1}if(K.#L=X||\"\",Z>=0)K.#U=Z;if(J||X||W)K.dispatchEvent(new MessageEvent(W||\"message\",{data:J||\"\",origin:K.#$.origin,source:K,lastEventId:X}));if(Q.length===U+2){G=!1;break}const z=Q.indexOf(\"\\n\\n\",U+1);if(z===-1)break;w=U,U=z}}}static#Z={open(K){const L=K.data;if(L.#G=K,!L.#F)B.#X(K,L.#$)},handshake(K,L,M){const F=K.data;if(L)B.#X(K,F.#$);else F.#j=2,F.dispatchEvent(new ErrorEvent(\"error\",{error:M})),K.end()},data(K,L){const M=K.data;switch(M.#j){case 0:{let F=L.toString();const O=F.indexOf(\"\\r\\n\\r\\n\");if(O===-1){M.#J+=F;return}if(M.#J.length)M.#J+=F,F=M.#J,M.#J=\"\";const j=F.substring(0,O),Q=j.indexOf(\"\\r\\n\");if(Q===-1){M.#j=2,M.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Invalid HTTP request\")})),K.end();return}const w=j.substring(0,Q);if(w!==\"HTTP/1.1 200 OK\"){M.#j=2,M.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(w)})),K.end();return}let U=Q+1,G=!1,V=-1;for(;;){let J=j.indexOf(\"\\r\\n\",U);if(J===-1){if(U>=j.length){if(!G)M.#j=2,M.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's response has no MIME type and \"text/event-stream\" is required. Aborting the connection.`)})),K.end();return}J=j.length}const X=j.substring(U+1,J),Y=X.indexOf(\":\"),Z=X.substring(0,Y),z=Z.localeCompare(\"content-type\",@undefined,{sensitivity:\"accent\"})===0;if(U=J+1,z)if(X.endsWith(\" text/event-stream\"))G=!0;else{M.#j=2,M.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's response has a MIME type that is not \"text/event-stream\". Aborting the connection.`)})),K.end();return}else if(Z.localeCompare(\"content-length\",@undefined,{sensitivity:\"accent\"})===0){if(V=parseInt(X.substring(Y+1).trim(),10),@isNaN(V)||V<=0){M.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's Content-Length is invalid. Aborting the connection.`)})),K.end();return}if(G)break}else if(Z.localeCompare(\"transfer-encoding\",@undefined,{sensitivity:\"accent\"})===0){if(X.substring(Y+1).trim()!==\"chunked\"){M.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's Transfer-Encoding is invalid. Aborting the connection.`)})),K.end();return}if(V=0,G)break}}M.#O=V,M.#j=1,M.dispatchEvent(new Event(\"open\"));const W=F.substring(O+4);if(B.#Y(M,W,0),M.#O>0){if(M.#Q+=W.length,M.#Q>=M.#O)M.#j=2,K.end()}return}case 1:if(B.#Y(M,L.toString(),2),M.#O>0){if(M.#Q+=L.byteLength,M.#Q>=M.#O)M.#j=2,K.end()}return;default:break}},drain(K){const L=K.data;if(L.#j===0){const M=L.#J;if(M.length){const F=K.write(M);if(F!==M.length)K.data.#K=M.substring(F);else K.data.#K=\"\"}}},close:B.#z,end(K){B.#z(K).dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Connection closed by server\")}))},timeout(K){B.#z(K).dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Timeout\")}))},binaryType:\"buffer\"};static#z(K){const L=K.data;if(L.#G=null,L.#Q=0,L.#j=2,L.#M){if(L.#V)clearTimeout(L.#V);L.#V=setTimeout(B.#W,L.#U,L)}return L}constructor(K,L=@undefined){super();const M=new URL(K);this.#F=M.protocol===\"https:\",this.#$=M,this.#j=2,process.nextTick(B.#W,this)}ref(){this.#V\?.ref(),this.#G\?.ref()}unref(){this.#V\?.unref(),this.#G\?.unref()}#H(){if(this.#j!==2)return;const K=this.#$,L=this.#F;this.#j=0,@Bun.connect({data:this,socket:B.#Z,hostname:K.hostname,port:parseInt(K.port||(L\?\"443\":\"80\"),10),tls:L\?{requestCert:!0,rejectUnauthorized:!1}:!1}).catch((M)=>{if(super.dispatchEvent(new ErrorEvent(\"error\",{error:M})),this.#M){if(this.#V)this.#V.unref\?.();this.#V=setTimeout(B.#W,1000,this)}})}get url(){return this.#$.href}get readyState(){return this.#j}close(){this.#M=!1,this.#j=2,this.#G\?.unref(),this.#G\?.end()}get onopen(){return this.#B}get onerror(){return this.#w}get onmessage(){return this.#A}set onopen(K){if(this.#B)super.removeEventListener(\"close\",this.#B);super.addEventListener(\"open\",K),this.#B=K}set onerror(K){if(this.#w)super.removeEventListener(\"error\",this.#w);super.addEventListener(\"error\",K),this.#w=K}set onmessage(K){if(this.#A)super.removeEventListener(\"message\",this.#A);super.addEventListener(\"message\",K),this.#A=K}}return Object.defineProperty(B.prototype,\"CONNECTING\",{enumerable:!0,value:0}),Object.defineProperty(B.prototype,\"OPEN\",{enumerable:!0,value:1}),Object.defineProperty(B.prototype,\"CLOSED\",{enumerable:!0,value:2}),B[Symbol.for(\"CommonJS\")]=0,B})\n";
+const char* const s_eventSourceGetEventSourceCode = "(function (){\"use strict\";class F extends EventTarget{#$;#j;#w;#A;#B;#F=!1;#G=null;#J=\"\";#K=\"\";#L=\"\";#M=!0;#O=0;#Q=0;#U=0;#V=null;static#W(j){j.#H()}static#X(j,V){const L=j.data,G=L.#L\?`Last-Event-ID: ${L.#L}\\r\\n`:\"\",X=`GET ${V.pathname}${V.search} HTTP/1.1\\r\\nHost: bun\\r\\nContent-type: text/event-stream\\r\\nContent-length: 0\\r\\n${G}\\r\\n`,M=j.write(X);if(M!==X.length)L.#K=X.substring(M)}static#Y(j,V,L){for(;;){if(L>=V.length)return;let G=-1,X=V.indexOf(\"\\r\\n\",L);const M=X+2;if(X>0)if(j.#O===0){const z=parseInt(V.substring(L,X),16);if(z===0){j.#j=2,j.#G\?.end();return}G=M+z}else G=V.length;else{if(j.#J.length===0){j.#J+=V.substring(L);return}G=V.length}let Y=V.substring(M,G);L=G+2;let W=0,Z=Y.indexOf(\"\\n\\n\");if(Z==-1){j.#J+=V.substring(M);return}if(j.#J.length)j.#J+=Y,Y=j.#J,j.#J=\"\";let J=!0;while(J){const z=Y.substring(W,Z);let O,H=\"\",K,B=0,w=-1;for(;;){let Q=z.indexOf(\"\\n\",B);if(Q===-1){if(B>=z.length)break;Q=z.length}const U=z.substring(B,Q);if(U.startsWith(\"data:\"))if(H.length)H+=`\\n${U.substring(5).trim()}`;else H=U.substring(5).trim();else if(U.startsWith(\"event:\"))O=U.substring(6).trim();else if(U.startsWith(\"id:\"))K=U.substring(3).trim();else if(U.startsWith(\"retry:\")){if(w=parseInt(U.substring(6).trim(),10),@isNaN(w))w=-1}B=Q+1}if(j.#L=K||\"\",w>=0)j.#U=w;if(H||K||O)j.dispatchEvent(new MessageEvent(O||\"message\",{data:H||\"\",origin:j.#$.origin,source:j,lastEventId:K}));if(Y.length===Z+2){J=!1;break}const A=Y.indexOf(\"\\n\\n\",Z+1);if(A===-1)break;W=Z,Z=A}}}static#Z={open(j){const V=j.data;if(V.#G=j,!V.#F)F.#X(j,V.#$)},handshake(j,V,L){const G=j.data;if(V)F.#X(j,G.#$);else G.#j=2,G.dispatchEvent(new ErrorEvent(\"error\",{error:L})),j.end()},data(j,V){const L=j.data;switch(L.#j){case 0:{let G=V.toString();const X=G.indexOf(\"\\r\\n\\r\\n\");if(X===-1){L.#J+=G;return}if(L.#J.length)L.#J+=G,G=L.#J,L.#J=\"\";const M=G.substring(0,X),Y=M.indexOf(\"\\r\\n\");if(Y===-1){L.#j=2,L.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Invalid HTTP request\")})),j.end();return}const W=M.substring(0,Y);if(W!==\"HTTP/1.1 200 OK\"){L.#j=2,L.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(W)})),j.end();return}let Z=Y+1,J=!1,z=-1;for(;;){let H=M.indexOf(\"\\r\\n\",Z);if(H===-1){if(Z>=M.length){if(!J)L.#j=2,L.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's response has no MIME type and \"text/event-stream\" is required. Aborting the connection.`)})),j.end();return}H=M.length}const K=M.substring(Z+1,H),B=K.indexOf(\":\"),w=K.substring(0,B),A=w.localeCompare(\"content-type\",@undefined,{sensitivity:\"accent\"})===0;if(Z=H+1,A)if(K.endsWith(\" text/event-stream\"))J=!0;else{L.#j=2,L.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's response has a MIME type that is not \"text/event-stream\". Aborting the connection.`)})),j.end();return}else if(w.localeCompare(\"content-length\",@undefined,{sensitivity:\"accent\"})===0){if(z=parseInt(K.substring(B+1).trim(),10),@isNaN(z)||z<=0){L.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's Content-Length is invalid. Aborting the connection.`)})),j.end();return}if(J)break}else if(w.localeCompare(\"transfer-encoding\",@undefined,{sensitivity:\"accent\"})===0){if(K.substring(B+1).trim()!==\"chunked\"){L.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's Transfer-Encoding is invalid. Aborting the connection.`)})),j.end();return}if(z=0,J)break}}L.#O=z,L.#j=1,L.dispatchEvent(new Event(\"open\"));const O=G.substring(X+4);if(F.#Y(L,O,0),L.#O>0){if(L.#Q+=O.length,L.#Q>=L.#O)L.#j=2,j.end()}return}case 1:if(F.#Y(L,V.toString(),2),L.#O>0){if(L.#Q+=V.byteLength,L.#Q>=L.#O)L.#j=2,j.end()}return;default:break}},drain(j){const V=j.data;if(V.#j===0){const L=V.#J;if(L.length){const G=j.write(L);if(G!==L.length)j.data.#K=L.substring(G);else j.data.#K=\"\"}}},close:F.#z,end(j){F.#z(j).dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Connection closed by server\")}))},timeout(j){F.#z(j).dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Timeout\")}))},binaryType:\"buffer\"};static#z(j){const V=j.data;if(V.#G=null,V.#Q=0,V.#j=2,V.#M){if(V.#V)clearTimeout(V.#V);V.#V=setTimeout(F.#W,V.#U,V)}return V}constructor(j,V=@undefined){super();const L=new URL(j);this.#F=L.protocol===\"https:\",this.#$=L,this.#j=2,process.nextTick(F.#W,this)}ref(){this.#V\?.ref(),this.#G\?.ref()}unref(){this.#V\?.unref(),this.#G\?.unref()}#H(){if(this.#j!==2)return;const j=this.#$,V=this.#F;this.#j=0,@Bun.connect({data:this,socket:F.#Z,hostname:j.hostname,port:parseInt(j.port||(V\?\"443\":\"80\"),10),tls:V\?{requestCert:!0,rejectUnauthorized:!1}:!1}).catch((L)=>{if(super.dispatchEvent(new ErrorEvent(\"error\",{error:L})),this.#M){if(this.#V)this.#V.unref\?.();this.#V=setTimeout(F.#W,1000,this)}})}get url(){return this.#$.href}get readyState(){return this.#j}close(){this.#M=!1,this.#j=2,this.#G\?.unref(),this.#G\?.end()}get onopen(){return this.#B}get onerror(){return this.#w}get onmessage(){return this.#A}set onopen(j){if(this.#B)super.removeEventListener(\"close\",this.#B);super.addEventListener(\"open\",j),this.#B=j}set onerror(j){if(this.#w)super.removeEventListener(\"error\",this.#w);super.addEventListener(\"error\",j),this.#w=j}set onmessage(j){if(this.#A)super.removeEventListener(\"message\",this.#A);super.addEventListener(\"message\",j),this.#A=j}}return Object.defineProperty(F.prototype,\"CONNECTING\",{enumerable:!0,value:0}),Object.defineProperty(F.prototype,\"OPEN\",{enumerable:!0,value:1}),Object.defineProperty(F.prototype,\"CLOSED\",{enumerable:!0,value:2}),F[Symbol.for(\"CommonJS\")]=0,F})\n";
#define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \
JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \
diff --git a/src/js/out/modules/node/crypto.js b/src/js/out/modules/node/crypto.js
index ed1935be8..0e806596b 100644
--- a/src/js/out/modules/node/crypto.js
+++ b/src/js/out/modules/node/crypto.js
@@ -1,4 +1,4 @@
-import{StringDecoder as z$} from"node:string_decoder";import*as M$ from"node:buffer";import*as A$ from"node:stream";var L$=Object.defineProperty;var R$=Object.getOwnPropertyNames;var S$=536870888,F$=globalThis.Buffer,H$=globalThis.crypto,v$=H$;var q$=($,Q)=>function(){return Q||(0,$[R$($)[0]])((Q={exports:{}}).exports,Q),Q.exports},j$=($,Q)=>{for(var Y in Q)L$($,Y,{get:Q[Y],enumerable:!0})};var k$=q$({"node_modules/safe-buffer/index.js"($,Q){var Y=M$,Z=Y.Buffer;function G(U,X){for(var K in U)X[K]=U[K]}Z.from&&Z.alloc&&Z.allocUnsafe&&Z.allocUnsafeSlow?Q.exports=Y:(G(Y,$),$.Buffer=V);function V(U,X,K){return Z(U,X,K)}V.prototype=Object.create(Z.prototype),G(Z,V),V.from=function(U,X,K){if(typeof U=="number")throw new TypeError("Argument must not be a number");return Z(U,X,K)},V.alloc=function(U,X,K){if(typeof U!="number")throw new TypeError("Argument must be a number");var I=Z(U);return X!==void 0?typeof K=="string"?I.fill(X,K):I.fill(X):I.fill(0),I},V.allocUnsafe=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return Z(U)},V.allocUnsafeSlow=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return Y.SlowBuffer(U)}}}),g$=q$({"node_modules/randombytes/browser.js"($,Q){var Y=65536,Z=4294967295;function G(){throw new Error(`Secure random number generation is not supported by this browser.
-Use Chrome, Firefox or Internet Explorer 11`)}var V=k$().Buffer,U=v$;U&&U.getRandomValues?Q.exports=X:Q.exports=G;function X(K,I){if(K>Z)throw new RangeError("requested too many random bytes");var O=V.allocUnsafe(K);if(K>0)if(K>Y)for(var J=0;J<K;J+=Y)U.getRandomValues(O.slice(J,J+Y));else U.getRandomValues(O);return typeof I=="function"?process.nextTick(function(){I(null,O)}):O}}}),_$=q$({"node_modules/inherits/inherits_browser.js"($,Q){typeof Object.create=="function"?Q.exports=function(Y,Z){Z&&(Y.super_=Z,Y.prototype=Object.create(Z.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}))}:Q.exports=function(Y,Z){if(Z){Y.super_=Z;var G=function(){};G.prototype=Z.prototype,Y.prototype=new G,Y.prototype.constructor=Y}}}}),N$=q$({"node_modules/hash-base/index.js"($,Q){var Y=k$().Buffer,Z=_$();function G(U,X){if(!Y.isBuffer(U)&&typeof U!="string")throw new TypeError(X+" must be a string or a buffer")}function V(U){A$.Transform.call(this),this._block=Y.allocUnsafe(U),this._blockSize=U,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Z(V,A$.Transform),V.prototype._transform=function(U,X,K){var I=null;try{this.update(U,X)}catch(O){I=O}K(I)},V.prototype._flush=function(U){var X=null;try{this.push(this.digest())}catch(K){X=K}U(X)},V.prototype.update=function(U,X){if(G(U,"Data"),this._finalized)throw new Error("Digest already called");Y.isBuffer(U)||(U=Y.from(U,X));for(var K=this._block,I=0;this._blockOffset+U.length-I>=this._blockSize;){for(var O=this._blockOffset;O<this._blockSize;)K[O++]=U[I++];this._update(),this._blockOffset=0}for(;I<U.length;)K[this._blockOffset++]=U[I++];for(var J=0,F=U.length*8;F>0;++J)this._length[J]+=F,F=this._length[J]/4294967296|0,F>0&&(this._length[J]-=4294967296*F);return this},V.prototype._update=function(){throw new Error("_update is not implemented")},V.prototype.digest=function(U){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var X=this._digest();U!==void 0&&(X=X.toString(U)),this._block.fill(0),this._blockOffset=0;for(var K=0;K<4;++K)this._length[K]=0;return X},V.prototype._digest=function(){throw new Error("_digest is not implemented")},Q.exports=V}}),x$=q$({"node_modules/md5.js/index.js"($,Q){var Y=_$(),Z=N$(),G=k$().Buffer,V=new Array(16);function U(){Z.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Y(U,Z),U.prototype._update=function(){for(var F=V,A=0;A<16;++A)F[A]=this._block.readInt32LE(A*4);var H=this._a,W=this._b,E=this._c,T=this._d;H=K(H,W,E,T,F[0],3614090360,7),T=K(T,H,W,E,F[1],3905402710,12),E=K(E,T,H,W,F[2],606105819,17),W=K(W,E,T,H,F[3],3250441966,22),H=K(H,W,E,T,F[4],4118548399,7),T=K(T,H,W,E,F[5],1200080426,12),E=K(E,T,H,W,F[6],2821735955,17),W=K(W,E,T,H,F[7],4249261313,22),H=K(H,W,E,T,F[8],1770035416,7),T=K(T,H,W,E,F[9],2336552879,12),E=K(E,T,H,W,F[10],4294925233,17),W=K(W,E,T,H,F[11],2304563134,22),H=K(H,W,E,T,F[12],1804603682,7),T=K(T,H,W,E,F[13],4254626195,12),E=K(E,T,H,W,F[14],2792965006,17),W=K(W,E,T,H,F[15],1236535329,22),H=I(H,W,E,T,F[1],4129170786,5),T=I(T,H,W,E,F[6],3225465664,9),E=I(E,T,H,W,F[11],643717713,14),W=I(W,E,T,H,F[0],3921069994,20),H=I(H,W,E,T,F[5],3593408605,5),T=I(T,H,W,E,F[10],38016083,9),E=I(E,T,H,W,F[15],3634488961,14),W=I(W,E,T,H,F[4],3889429448,20),H=I(H,W,E,T,F[9],568446438,5),T=I(T,H,W,E,F[14],3275163606,9),E=I(E,T,H,W,F[3],4107603335,14),W=I(W,E,T,H,F[8],1163531501,20),H=I(H,W,E,T,F[13],2850285829,5),T=I(T,H,W,E,F[2],4243563512,9),E=I(E,T,H,W,F[7],1735328473,14),W=I(W,E,T,H,F[12],2368359562,20),H=O(H,W,E,T,F[5],4294588738,4),T=O(T,H,W,E,F[8],2272392833,11),E=O(E,T,H,W,F[11],1839030562,16),W=O(W,E,T,H,F[14],4259657740,23),H=O(H,W,E,T,F[1],2763975236,4),T=O(T,H,W,E,F[4],1272893353,11),E=O(E,T,H,W,F[7],4139469664,16),W=O(W,E,T,H,F[10],3200236656,23),H=O(H,W,E,T,F[13],681279174,4),T=O(T,H,W,E,F[0],3936430074,11),E=O(E,T,H,W,F[3],3572445317,16),W=O(W,E,T,H,F[6],76029189,23),H=O(H,W,E,T,F[9],3654602809,4),T=O(T,H,W,E,F[12],3873151461,11),E=O(E,T,H,W,F[15],530742520,16),W=O(W,E,T,H,F[2],3299628645,23),H=J(H,W,E,T,F[0],4096336452,6),T=J(T,H,W,E,F[7],1126891415,10),E=J(E,T,H,W,F[14],2878612391,15),W=J(W,E,T,H,F[5],4237533241,21),H=J(H,W,E,T,F[12],1700485571,6),T=J(T,H,W,E,F[3],2399980690,10),E=J(E,T,H,W,F[10],4293915773,15),W=J(W,E,T,H,F[1],2240044497,21),H=J(H,W,E,T,F[8],1873313359,6),T=J(T,H,W,E,F[15],4264355552,10),E=J(E,T,H,W,F[6],2734768916,15),W=J(W,E,T,H,F[13],1309151649,21),H=J(H,W,E,T,F[4],4149444226,6),T=J(T,H,W,E,F[11],3174756917,10),E=J(E,T,H,W,F[2],718787259,15),W=J(W,E,T,H,F[9],3951481745,21),this._a=this._a+H|0,this._b=this._b+W|0,this._c=this._c+E|0,this._d=this._d+T|0},U.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var F=G.allocUnsafe(16);return F.writeInt32LE(this._a,0),F.writeInt32LE(this._b,4),F.writeInt32LE(this._c,8),F.writeInt32LE(this._d,12),F};function X(F,A){return F<<A|F>>>32-A}function K(F,A,H,W,E,T,D){return X(F+(A&H|~A&W)+E+T|0,D)+A|0}function I(F,A,H,W,E,T,D){return X(F+(A&W|H&~W)+E+T|0,D)+A|0}function O(F,A,H,W,E,T,D){return X(F+(A^H^W)+E+T|0,D)+A|0}function J(F,A,H,W,E,T,D){return X(F+(H^(A|~W))+E+T|0,D)+A|0}Q.exports=U}}),B$=q$({"node_modules/ripemd160/index.js"($,Q){var Y=F$,Z=_$(),G=N$(),V=new Array(16),U=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],X=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],K=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],I=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],O=[0,1518500249,1859775393,2400959708,2840853838],J=[1352829926,1548603684,1836072691,2053994217,0];function F(){G.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Z(F,G),F.prototype._update=function(){for(var C=V,L=0;L<16;++L)C[L]=this._block.readInt32LE(L*4);for(var R=this._a|0,P=this._b|0,z=this._c|0,M=this._d|0,S=this._e|0,v=this._a|0,q=this._b|0,j=this._c|0,k=this._d|0,g=this._e|0,_=0;_<80;_+=1){var N,x;_<16?(N=H(R,P,z,M,S,C[U[_]],O[0],K[_]),x=D(v,q,j,k,g,C[X[_]],J[0],I[_])):_<32?(N=W(R,P,z,M,S,C[U[_]],O[1],K[_]),x=T(v,q,j,k,g,C[X[_]],J[1],I[_])):_<48?(N=E(R,P,z,M,S,C[U[_]],O[2],K[_]),x=E(v,q,j,k,g,C[X[_]],J[2],I[_])):_<64?(N=T(R,P,z,M,S,C[U[_]],O[3],K[_]),x=W(v,q,j,k,g,C[X[_]],J[3],I[_])):(N=D(R,P,z,M,S,C[U[_]],O[4],K[_]),x=H(v,q,j,k,g,C[X[_]],J[4],I[_])),R=S,S=M,M=A(z,10),z=P,P=N,v=g,g=k,k=A(j,10),j=q,q=x}var B=this._b+z+k|0;this._b=this._c+M+g|0,this._c=this._d+S+v|0,this._d=this._e+R+q|0,this._e=this._a+P+j|0,this._a=B},F.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var C=Y.alloc?Y.alloc(20):new Y(20);return C.writeInt32LE(this._a,0),C.writeInt32LE(this._b,4),C.writeInt32LE(this._c,8),C.writeInt32LE(this._d,12),C.writeInt32LE(this._e,16),C};function A(C,L){return C<<L|C>>>32-L}function H(C,L,R,P,z,M,S,v){return A(C+(L^R^P)+M+S|0,v)+z|0}function W(C,L,R,P,z,M,S,v){return A(C+(L&R|~L&P)+M+S|0,v)+z|0}function E(C,L,R,P,z,M,S,v){return A(C+((L|~R)^P)+M+S|0,v)+z|0}function T(C,L,R,P,z,M,S,v){return A(C+(L&P|R&~P)+M+S|0,v)+z|0}function D(C,L,R,P,z,M,S,v){return A(C+(L^(R|~P))+M+S|0,v)+z|0}Q.exports=F}}),y$=q$({"node_modules/sha.js/hash.js"($,Q){var Y=k$().Buffer;function Z(G,V){this._block=Y.alloc(G),this._finalSize=V,this._blockSize=G,this._len=0}Z.prototype.update=function(G,V){typeof G=="string"&&(V=V||"utf8",G=Y.from(G,V));for(var U=this._block,X=this._blockSize,K=G.length,I=this._len,O=0;O<K;){for(var J=I%X,F=Math.min(K-O,X-J),A=0;A<F;A++)U[J+A]=G[O+A];I+=F,O+=F,I%X===0&&this._update(U)}return this._len+=K,this},Z.prototype.digest=function(G){var V=this._len%this._blockSize;this._block[V]=128,this._block.fill(0,V+1),V>=this._finalSize&&(this._update(this._block),this._block.fill(0));var U=this._len*8;if(U<=4294967295)this._block.writeUInt32BE(U,this._blockSize-4);else{var X=(U&4294967295)>>>0,K=(U-X)/4294967296;this._block.writeUInt32BE(K,this._blockSize-8),this._block.writeUInt32BE(X,this._blockSize-4)}this._update(this._block);var I=this._hash();return G?I.toString(G):I},Z.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Q.exports=Z}}),w$=q$({"node_modules/sha.js/sha.js"($,Q){var Y=_$(),Z=y$(),G=k$().Buffer,V=[1518500249,1859775393,-1894007588,-899497514],U=new Array(80);function X(){this.init(),this._w=U,Z.call(this,64,56)}Y(X,Z),X.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function K(J){return J<<5|J>>>27}function I(J){return J<<30|J>>>2}function O(J,F,A,H){return J===0?F&A|~F&H:J===2?F&A|F&H|A&H:F^A^H}X.prototype._update=function(J){for(var F=this._w,A=this._a|0,H=this._b|0,W=this._c|0,E=this._d|0,T=this._e|0,D=0;D<16;++D)F[D]=J.readInt32BE(D*4);for(;D<80;++D)F[D]=F[D-3]^F[D-8]^F[D-14]^F[D-16];for(var C=0;C<80;++C){var L=~~(C/20),R=K(A)+O(L,H,W,E)+T+F[C]+V[L]|0;T=E,E=W,W=I(H),H=A,A=R}this._a=A+this._a|0,this._b=H+this._b|0,this._c=W+this._c|0,this._d=E+this._d|0,this._e=T+this._e|0},X.prototype._hash=function(){var J=G.allocUnsafe(20);return J.writeInt32BE(this._a|0,0),J.writeInt32BE(this._b|0,4),J.writeInt32BE(this._c|0,8),J.writeInt32BE(this._d|0,12),J.writeInt32BE(this._e|0,16),J},Q.exports=X}}),p$=q$({"node_modules/sha.js/sha1.js"($,Q){var Y=_$(),Z=y$(),G=k$().Buffer,V=[1518500249,1859775393,-1894007588,-899497514],U=new Array(80);function X(){this.init(),this._w=U,Z.call(this,64,56)}Y(X,Z),X.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function K(F){return F<<1|F>>>31}function I(F){return F<<5|F>>>27}function O(F){return F<<30|F>>>2}function J(F,A,H,W){return F===0?A&H|~A&W:F===2?A&H|A&W|H&W:A^H^W}X.prototype._update=function(F){for(var A=this._w,H=this._a|0,W=this._b|0,E=this._c|0,T=this._d|0,D=this._e|0,C=0;C<16;++C)A[C]=F.readInt32BE(C*4);for(;C<80;++C)A[C]=K(A[C-3]^A[C-8]^A[C-14]^A[C-16]);for(var L=0;L<80;++L){var R=~~(L/20),P=I(H)+J(R,W,E,T)+D+A[L]+V[R]|0;D=T,T=E,E=O(W),W=H,H=P}this._a=H+this._a|0,this._b=W+this._b|0,this._c=E+this._c|0,this._d=T+this._d|0,this._e=D+this._e|0},X.prototype._hash=function(){var F=G.allocUnsafe(20);return F.writeInt32BE(this._a|0,0),F.writeInt32BE(this._b|0,4),F.writeInt32BE(this._c|0,8),F.writeInt32BE(this._d|0,12),F.writeInt32BE(this._e|0,16),F},Q.exports=X}}),f$=q$({"node_modules/sha.js/sha256.js"($,Q){var Y=_$(),Z=y$(),G=k$().Buffer,V=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],U=new Array(64);function X(){this.init(),this._w=U,Z.call(this,64,56)}Y(X,Z),X.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function K(H,W,E){return E^H&(W^E)}function I(H,W,E){return H&W|E&(H|W)}function O(H){return(H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10)}function J(H){return(H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7)}function F(H){return(H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3}function A(H){return(H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10}X.prototype._update=function(H){for(var W=this._w,E=this._a|0,T=this._b|0,D=this._c|0,C=this._d|0,L=this._e|0,R=this._f|0,P=this._g|0,z=this._h|0,M=0;M<16;++M)W[M]=H.readInt32BE(M*4);for(;M<64;++M)W[M]=A(W[M-2])+W[M-7]+F(W[M-15])+W[M-16]|0;for(var S=0;S<64;++S){var v=z+J(L)+K(L,R,P)+V[S]+W[S]|0,q=O(E)+I(E,T,D)|0;z=P,P=R,R=L,L=C+v|0,C=D,D=T,T=E,E=v+q|0}this._a=E+this._a|0,this._b=T+this._b|0,this._c=D+this._c|0,this._d=C+this._d|0,this._e=L+this._e|0,this._f=R+this._f|0,this._g=P+this._g|0,this._h=z+this._h|0},X.prototype._hash=function(){var H=G.allocUnsafe(32);return H.writeInt32BE(this._a,0),H.writeInt32BE(this._b,4),H.writeInt32BE(this._c,8),H.writeInt32BE(this._d,12),H.writeInt32BE(this._e,16),H.writeInt32BE(this._f,20),H.writeInt32BE(this._g,24),H.writeInt32BE(this._h,28),H},Q.exports=X}}),c$=q$({"node_modules/sha.js/sha224.js"($,Q){var Y=_$(),Z=f$(),G=y$(),V=k$().Buffer,U=new Array(64);function X(){this.init(),this._w=U,G.call(this,64,56)}Y(X,Z),X.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},X.prototype._hash=function(){var K=V.allocUnsafe(28);return K.writeInt32BE(this._a,0),K.writeInt32BE(this._b,4),K.writeInt32BE(this._c,8),K.writeInt32BE(this._d,12),K.writeInt32BE(this._e,16),K.writeInt32BE(this._f,20),K.writeInt32BE(this._g,24),K},Q.exports=X}}),h$=q$({"node_modules/sha.js/sha512.js"($,Q){var Y=_$(),Z=y$(),G=k$().Buffer,V=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],U=new Array(160);function X(){this.init(),this._w=U,Z.call(this,128,112)}Y(X,Z),X.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function K(T,D,C){return C^T&(D^C)}function I(T,D,C){return T&D|C&(T|D)}function O(T,D){return(T>>>28|D<<4)^(D>>>2|T<<30)^(D>>>7|T<<25)}function J(T,D){return(T>>>14|D<<18)^(T>>>18|D<<14)^(D>>>9|T<<23)}function F(T,D){return(T>>>1|D<<31)^(T>>>8|D<<24)^T>>>7}function A(T,D){return(T>>>1|D<<31)^(T>>>8|D<<24)^(T>>>7|D<<25)}function H(T,D){return(T>>>19|D<<13)^(D>>>29|T<<3)^T>>>6}function W(T,D){return(T>>>19|D<<13)^(D>>>29|T<<3)^(T>>>6|D<<26)}function E(T,D){return T>>>0<D>>>0?1:0}X.prototype._update=function(T){for(var D=this._w,C=this._ah|0,L=this._bh|0,R=this._ch|0,P=this._dh|0,z=this._eh|0,M=this._fh|0,S=this._gh|0,v=this._hh|0,q=this._al|0,j=this._bl|0,k=this._cl|0,g=this._dl|0,_=this._el|0,N=this._fl|0,x=this._gl|0,B=this._hl|0,y=0;y<32;y+=2)D[y]=T.readInt32BE(y*4),D[y+1]=T.readInt32BE(y*4+4);for(;y<160;y+=2){var w=D[y-30],p=D[y-30+1],f=F(w,p),c=A(p,w);w=D[y-4],p=D[y-4+1];var h=H(w,p),d=W(p,w),b=D[y-14],l=D[y-14+1],o=D[y-32],u=D[y-32+1],n=c+l|0,s=f+b+E(n,c)|0;n=n+d|0,s=s+h+E(n,d)|0,n=n+u|0,s=s+o+E(n,u)|0,D[y]=s,D[y+1]=n}for(var t=0;t<160;t+=2){s=D[t],n=D[t+1];var m=I(C,L,R),a=I(q,j,k),e=O(C,q),r=O(q,C),i=J(z,_),$0=J(_,z),Q0=V[t],Y0=V[t+1],Z0=K(z,M,S),G0=K(_,N,x),V0=B+$0|0,U0=v+i+E(V0,B)|0;V0=V0+G0|0,U0=U0+Z0+E(V0,G0)|0,V0=V0+Y0|0,U0=U0+Q0+E(V0,Y0)|0,V0=V0+n|0,U0=U0+s+E(V0,n)|0;var X0=r+a|0,K0=e+m+E(X0,r)|0;v=S,B=x,S=M,x=N,M=z,N=_,_=g+V0|0,z=P+U0+E(_,g)|0,P=R,g=k,R=L,k=j,L=C,j=q,q=V0+X0|0,C=U0+K0+E(q,V0)|0}this._al=this._al+q|0,this._bl=this._bl+j|0,this._cl=this._cl+k|0,this._dl=this._dl+g|0,this._el=this._el+_|0,this._fl=this._fl+N|0,this._gl=this._gl+x|0,this._hl=this._hl+B|0,this._ah=this._ah+C+E(this._al,q)|0,this._bh=this._bh+L+E(this._bl,j)|0,this._ch=this._ch+R+E(this._cl,k)|0,this._dh=this._dh+P+E(this._dl,g)|0,this._eh=this._eh+z+E(this._el,_)|0,this._fh=this._fh+M+E(this._fl,N)|0,this._gh=this._gh+S+E(this._gl,x)|0,this._hh=this._hh+v+E(this._hl,B)|0},X.prototype._hash=function(){var T=G.allocUnsafe(64);function D(C,L,R){T.writeInt32BE(C,R),T.writeInt32BE(L,R+4)}return D(this._ah,this._al,0),D(this._bh,this._bl,8),D(this._ch,this._cl,16),D(this._dh,this._dl,24),D(this._eh,this._el,32),D(this._fh,this._fl,40),D(this._gh,this._gl,48),D(this._hh,this._hl,56),T},Q.exports=X}}),d$=q$({"node_modules/sha.js/sha384.js"($,Q){var Y=_$(),Z=h$(),G=y$(),V=k$().Buffer,U=new Array(160);function X(){this.init(),this._w=U,G.call(this,128,112)}Y(X,Z),X.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},X.prototype._hash=function(){var K=V.allocUnsafe(48);function I(O,J,F){K.writeInt32BE(O,F),K.writeInt32BE(J,F+4)}return I(this._ah,this._al,0),I(this._bh,this._bl,8),I(this._ch,this._cl,16),I(this._dh,this._dl,24),I(this._eh,this._el,32),I(this._fh,this._fl,40),K},Q.exports=X}}),b$=q$({"node_modules/sha.js/index.js"(Y,Q){var Y=Q.exports=function(Z){Z=Z.toLowerCase();var G=Y[Z];if(!G)throw new Error(Z+" is not supported (we accept pull requests)");return new G};Y.sha=w$(),Y.sha1=p$(),Y.sha224=c$(),Y.sha256=f$(),Y.sha384=d$(),Y.sha512=h$()}}),l$=q$({"node_modules/cipher-base/index.js"($,Q){var Y=k$().Buffer,Z=_$();function G(V){A$.Transform.call(this),this.hashMode=typeof V=="string",this.hashMode?this[V]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}Z(G,A$.Transform),G.prototype.update=function(V,U,X){typeof V=="string"&&(V=Y.from(V,U));var K=this._update(V);return this.hashMode?this:(X&&(K=this._toString(K,X)),K)},G.prototype.setAutoPadding=function(){},G.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},G.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},G.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},G.prototype._transform=function(V,U,X){var K;try{this.hashMode?this._update(V):this.push(this._update(V))}catch(I){K=I}finally{X(K)}},G.prototype._flush=function(V){var U;try{this.push(this.__final())}catch(X){U=X}V(U)},G.prototype._finalOrDigest=function(V){var U=this.__final()||Y.alloc(0);return V&&(U=this._toString(U,V,!0)),U},G.prototype._toString=function(V,U,X){if(this._decoder||(this._decoder=new z$(U),this._encoding=U),this._encoding!==U)throw new Error("can't switch encodings");var K=this._decoder.write(V);return X&&(K+=this._decoder.end()),K},Q.exports=G}}),o$=q$({"node_modules/create-hash/browser.js"($,Q){const Y=function V(U,X){this._options=X,this._hasher=new sY(U,X),this._finalized=!1};Y.prototype=Object.create(A$.Transform.prototype),Y.prototype.update=function V(U,X){return this._checkFinalized(),this._hasher.update(U,X),this},Y.prototype.digest=function V(U,X){return this._checkFinalized(),this._finalized=!0,this._hasher.digest(U,X)},Y.prototype._checkFinalized=function V(){if(this._finalized){var U=new Error("Digest already called");throw U.code="ERR_CRYPTO_HASH_FINALIZED",U}},Y.prototype.copy=function V(){const U=Object.create(Y.prototype);return U._options=this._options,U._hasher=this._hasher.copy(),U._finalized=this._finalized,U};const Z={__proto__:A$.Transform.prototype,...Y.prototype,_transform(V,U,X){this.update(V,U),X&&X()},_flush(V){this.push(this.digest()),V()}},G=["_events","_eventsCount","_final","_maxListeners","_maxListeners","_read","_undestroy","_writableState","_write","_writev","addListener","asIndexedPairs","closed","compose","constructor","cork","destroy","destroyed","drop","emit","end","errored","eventNames","every","filter","find","flatMap","forEach","getMaxListeners","hasOwnProperty","isPaused","isPrototypeOf","iterator","listenerCount","listeners","map","off","on","once","pause","pipe","prependListener","prependOnceListener","propertyIsEnumerable","push","rawListeners","read","readable","readableAborted","readableBuffer","readableDidRead","readableEncoding","readableEnded","readableFlowing","readableHighWaterMark","readableLength","readableObjectMode","reduce","removeAllListeners","removeListener","resume","setDefaultEncoding","setEncoding","setMaxListeners","some","take","toArray","toLocaleString","toString","uncork","unpipe","unshift","valueOf","wrap","writable","writableBuffer","writableCorked","writableEnded","writableFinished","writableHighWaterMark","writableLength","writableNeedDrain","writableObjectMode","write"];for(let V of G)Object.defineProperty(Y.prototype,V,{get(){return Object.setPrototypeOf(this,Z),A$.Transform.call(this,this._options),this[V]},enumerable:!1,configurable:!0});Q.exports=function V(U){return new Y(U)},Q.exports.createHash=Q.exports,Q.exports.Hash=Y}}),u$=q$({"node_modules/create-hmac/legacy.js"($,Q){var Y=_$(),Z=k$().Buffer,G=l$(),V=Z.alloc(128),U=64;function X(K,I){G.call(this,"digest"),typeof I=="string"&&(I=Z.from(I)),this._alg=K,this._key=I,I.length>U?I=K(I):I.length<U&&(I=Z.concat([I,V],U));for(var O=this._ipad=Z.allocUnsafe(U),J=this._opad=Z.allocUnsafe(U),F=0;F<U;F++)O[F]=I[F]^54,J[F]=I[F]^92;this._hash=[O]}Y(X,G),X.prototype._update=function(K){this._hash.push(K)},X.prototype._final=function(){var K=this._alg(Z.concat(this._hash));return this._alg(Z.concat([this._opad,K]))},Q.exports=X}}),n$=q$({"node_modules/create-hash/md5.js"($,Q){var Y=x$();Q.exports=function(Z){return new Y().update(Z).digest()}}}),s$=q$({"node_modules/create-hmac/browser.js"($,Q){var Y=_$(),Z=u$(),G=l$(),V=k$().Buffer,U=n$(),X=B$(),K=b$(),I=V.alloc(128);function O(J,F){G.call(this,"digest"),typeof F=="string"&&(F=V.from(F));var A=J==="sha512"||J==="sha384"?128:64;if(this._alg=J,this._key=F,F.length>A){var H=J==="rmd160"?new X:K(J);F=H.update(F).digest()}else F.length<A&&(F=V.concat([F,I],A));for(var W=this._ipad=V.allocUnsafe(A),E=this._opad=V.allocUnsafe(A),T=0;T<A;T++)W[T]=F[T]^54,E[T]=F[T]^92;this._hash=J==="rmd160"?new X:K(J),this._hash.update(W)}Y(O,G),O.prototype._update=function(J){this._hash.update(J)},O.prototype._final=function(){var J=this._hash.digest(),F=this._alg==="rmd160"?new X:K(this._alg);return F.update(this._opad).update(J).digest()},Q.exports=function(J,F){return J=J.toLowerCase(),J==="rmd160"||J==="ripemd160"?new O("rmd160",F):J==="md5"?new Z(U,F):new O(J,F)}}}),t$=q$({"node_modules/browserify-sign/browser/algorithms.json"($,Q){Q.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}}),m$=q$({"node_modules/browserify-sign/algos.js"($,Q){Q.exports=t$()}}),a$=q$({"node_modules/pbkdf2/lib/precondition.js"($,Q){var Y=Math.pow(2,30)-1;Q.exports=function(Z,G){if(typeof Z!="number")throw new TypeError("Iterations not a number");if(Z<0)throw new TypeError("Bad iterations");if(typeof G!="number")throw new TypeError("Key length not a number");if(G<0||G>Y||G!==G)throw new TypeError("Bad key length")}}}),e$=q$({"node_modules/pbkdf2/lib/default-encoding.js"($,Q){var Y;global.process&&global.process.browser?Y="utf-8":global.process&&global.process.version?(Z=parseInt(process.version.split(".")[0].slice(1),10),Y=Z>=6?"utf-8":"binary"):Y="utf-8";var Z;Q.exports=Y}}),r$=q$({"node_modules/pbkdf2/lib/to-buffer.js"($,Q){var Y=k$().Buffer;Q.exports=function(Z,G,V){if(Y.isBuffer(Z))return Z;if(typeof Z=="string")return Y.from(Z,G);if(ArrayBuffer.isView(Z))return Y.from(Z.buffer);throw new TypeError(V+" must be a string, a Buffer, a typed array or a DataView")}}}),i$=q$({"node_modules/pbkdf2/lib/sync-browser.js"($,Q){var Y=n$(),Z=B$(),G=b$(),V=k$().Buffer,U=a$(),X=e$(),K=r$(),I=V.alloc(128),O={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function J(H,W,E){var T=F(H),D=H==="sha512"||H==="sha384"?128:64;W.length>D?W=T(W):W.length<D&&(W=V.concat([W,I],D));for(var C=V.allocUnsafe(D+O[H]),L=V.allocUnsafe(D+O[H]),R=0;R<D;R++)C[R]=W[R]^54,L[R]=W[R]^92;var P=V.allocUnsafe(D+E+4);C.copy(P,0,0,D),this.ipad1=P,this.ipad2=C,this.opad=L,this.alg=H,this.blocksize=D,this.hash=T,this.size=O[H]}J.prototype.run=function(H,W){H.copy(W,this.blocksize);var E=this.hash(W);return E.copy(this.opad,this.blocksize),this.hash(this.opad)};function F(H){function W(T){return G(H).update(T).digest()}function E(T){return new Z().update(T).digest()}return H==="rmd160"||H==="ripemd160"?E:H==="md5"?Y:W}function A(H,W,E,T,D){U(E,T),H=K(H,X,"Password"),W=K(W,X,"Salt"),D=D||"sha1";var C=new J(D,H,W.length),L=V.allocUnsafe(T),R=V.allocUnsafe(W.length+4);W.copy(R,0,0,W.length);for(var P=0,z=O[D],M=Math.ceil(T/z),S=1;S<=M;S++){R.writeUInt32BE(S,W.length);for(var v=C.run(R,C.ipad1),q=v,j=1;j<E;j++){q=C.run(q,C.ipad2);for(var k=0;k<z;k++)v[k]^=q[k]}v.copy(L,P),P+=z}return L}Q.exports=A}}),$Q=q$({"node_modules/pbkdf2/lib/async.js"($,Q){var Y=k$().Buffer,Z=a$(),G=e$(),V=i$(),U=r$(),X,K=v$.subtle,I={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},O=[];function J(E){if(global.process&&!global.process.browser||!K||!K.importKey||!K.deriveBits)return Promise.resolve(!1);if(O[E]!==void 0)return O[E];X=X||Y.alloc(8);var T=H(X,X,10,128,E).then(function(){return!0}).catch(function(){return!1});return O[E]=T,T}var F;function A(){return F||(global.process&&global.process.nextTick?F=global.process.nextTick:global.queueMicrotask?F=global.queueMicrotask:global.setImmediate?F=global.setImmediate:F=global.setTimeout,F)}function H(E,T,D,C,L){return K.importKey("raw",E,{name:"PBKDF2"},!1,["deriveBits"]).then(function(R){return K.deriveBits({name:"PBKDF2",salt:T,iterations:D,hash:{name:L}},R,C<<3)}).then(function(R){return Y.from(R)})}function W(E,T){E.then(function(D){A()(function(){T(null,D)})},function(D){A()(function(){T(D)})})}Q.exports=function(E,T,D,C,L,R){typeof L=="function"&&(R=L,L=void 0),L=L||"sha1";var P=I[L.toLowerCase()];if(!P||typeof global.Promise!="function"){A()(function(){var z;try{z=V(E,T,D,C,L)}catch(M){return R(M)}R(null,z)});return}if(Z(D,C),E=U(E,G,"Password"),T=U(T,G,"Salt"),typeof R!="function")throw new Error("No callback provided to pbkdf2");W(J(P).then(function(z){return z?H(E,T,D,C,P):V(E,T,D,C,L)}),R)}}}),QQ=q$({"node_modules/pbkdf2/browser.js"($){$.pbkdf2=$Q(),$.pbkdf2Sync=i$()}}),YQ=q$({"node_modules/des.js/lib/des/utils.js"($){$.readUInt32BE=function(G,V){var U=G[0+V]<<24|G[1+V]<<16|G[2+V]<<8|G[3+V];return U>>>0},$.writeUInt32BE=function(G,V,U){G[0+U]=V>>>24,G[1+U]=V>>>16&255,G[2+U]=V>>>8&255,G[3+U]=V&255},$.ip=function(G,V,U,X){for(var K=0,I=0,O=6;O>=0;O-=2){for(var J=0;J<=24;J+=8)K<<=1,K|=V>>>J+O&1;for(var J=0;J<=24;J+=8)K<<=1,K|=G>>>J+O&1}for(var O=6;O>=0;O-=2){for(var J=1;J<=25;J+=8)I<<=1,I|=V>>>J+O&1;for(var J=1;J<=25;J+=8)I<<=1,I|=G>>>J+O&1}U[X+0]=K>>>0,U[X+1]=I>>>0},$.rip=function(G,V,U,X){for(var K=0,I=0,O=0;O<4;O++)for(var J=24;J>=0;J-=8)K<<=1,K|=V>>>J+O&1,K<<=1,K|=G>>>J+O&1;for(var O=4;O<8;O++)for(var J=24;J>=0;J-=8)I<<=1,I|=V>>>J+O&1,I<<=1,I|=G>>>J+O&1;U[X+0]=K>>>0,U[X+1]=I>>>0},$.pc1=function(G,V,U,X){for(var K=0,I=0,O=7;O>=5;O--){for(var J=0;J<=24;J+=8)K<<=1,K|=V>>J+O&1;for(var J=0;J<=24;J+=8)K<<=1,K|=G>>J+O&1}for(var J=0;J<=24;J+=8)K<<=1,K|=V>>J+O&1;for(var O=1;O<=3;O++){for(var J=0;J<=24;J+=8)I<<=1,I|=V>>J+O&1;for(var J=0;J<=24;J+=8)I<<=1,I|=G>>J+O&1}for(var J=0;J<=24;J+=8)I<<=1,I|=G>>J+O&1;U[X+0]=K>>>0,U[X+1]=I>>>0},$.r28shl=function(G,V){return G<<V&268435455|G>>>28-V};var Q=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];$.pc2=function(G,V,U,X){for(var K=0,I=0,O=Q.length>>>1,J=0;J<O;J++)K<<=1,K|=G>>>Q[J]&1;for(var J=O;J<Q.length;J++)I<<=1,I|=V>>>Q[J]&1;U[X+0]=K>>>0,U[X+1]=I>>>0},$.expand=function(G,V,U){var X=0,K=0;X=(G&1)<<5|G>>>27;for(var I=23;I>=15;I-=4)X<<=6,X|=G>>>I&63;for(var I=11;I>=3;I-=4)K|=G>>>I&63,K<<=6;K|=(G&31)<<1|G>>>31,V[U+0]=X>>>0,V[U+1]=K>>>0};var Y=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];$.substitute=function(G,V){for(var U=0,X=0;X<4;X++){var K=G>>>18-X*6&63,I=Y[X*64+K];U<<=4,U|=I}for(var X=0;X<4;X++){var K=V>>>18-X*6&63,I=Y[256+X*64+K];U<<=4,U|=I}return U>>>0};var Z=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];$.permute=function(G){for(var V=0,U=0;U<Z.length;U++)V<<=1,V|=G>>>Z[U]&1;return V>>>0},$.padSplit=function(G,V,U){for(var X=G.toString(2);X.length<V;)X="0"+X;for(var K=[],I=0;I<V;I+=U)K.push(X.slice(I,I+U));return K.join(" ")}}}),ZQ=q$({"node_modules/minimalistic-assert/index.js"($,Q){Q.exports=Y;function Y(Z,G){if(!Z)throw new Error(G||"Assertion failed")}Y.equal=function(Z,G,V){if(Z!=G)throw new Error(V||"Assertion failed: "+Z+" != "+G)}}}),GQ=q$({"node_modules/des.js/lib/des/cipher.js"($,Q){var Y=ZQ();function Z(G){this.options=G,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Q.exports=Z,Z.prototype._init=function(){},Z.prototype.update=function(G){return G.length===0?[]:this.type==="decrypt"?this._updateDecrypt(G):this._updateEncrypt(G)},Z.prototype._buffer=function(G,V){for(var U=Math.min(this.buffer.length-this.bufferOff,G.length-V),X=0;X<U;X++)this.buffer[this.bufferOff+X]=G[V+X];return this.bufferOff+=U,U},Z.prototype._flushBuffer=function(G,V){return this._update(this.buffer,0,G,V),this.bufferOff=0,this.blockSize},Z.prototype._updateEncrypt=function(G){var V=0,U=0,X=(this.bufferOff+G.length)/this.blockSize|0,K=new Array(X*this.blockSize);this.bufferOff!==0&&(V+=this._buffer(G,V),this.bufferOff===this.buffer.length&&(U+=this._flushBuffer(K,U)));for(var I=G.length-(G.length-V)%this.blockSize;V<I;V+=this.blockSize)this._update(G,V,K,U),U+=this.blockSize;for(;V<G.length;V++,this.bufferOff++)this.buffer[this.bufferOff]=G[V];return K},Z.prototype._updateDecrypt=function(G){for(var V=0,U=0,X=Math.ceil((this.bufferOff+G.length)/this.blockSize)-1,K=new Array(X*this.blockSize);X>0;X--)V+=this._buffer(G,V),U+=this._flushBuffer(K,U);return V+=this._buffer(G,V),K},Z.prototype.final=function(G){var V;G&&(V=this.update(G));var U;return this.type==="encrypt"?U=this._finalEncrypt():U=this._finalDecrypt(),V?V.concat(U):U},Z.prototype._pad=function(G,V){if(V===0)return!1;for(;V<G.length;)G[V++]=0;return!0},Z.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var G=new Array(this.blockSize);return this._update(this.buffer,0,G,0),G},Z.prototype._unpad=function(G){return G},Z.prototype._finalDecrypt=function(){Y.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var G=new Array(this.blockSize);return this._flushBuffer(G,0),this._unpad(G)}}}),VQ=q$({"node_modules/des.js/lib/des/des.js"($,Q){var Y=ZQ(),Z=_$(),G=YQ(),V=GQ();function U(){this.tmp=new Array(2),this.keys=null}function X(I){V.call(this,I);var O=new U;this._desState=O,this.deriveKeys(O,I.key)}Z(X,V),Q.exports=X,X.create=function(I){return new X(I)};var K=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];X.prototype.deriveKeys=function(I,O){I.keys=new Array(32),Y.equal(O.length,this.blockSize,"Invalid key length");var J=G.readUInt32BE(O,0),F=G.readUInt32BE(O,4);G.pc1(J,F,I.tmp,0),J=I.tmp[0],F=I.tmp[1];for(var A=0;A<I.keys.length;A+=2){var H=K[A>>>1];J=G.r28shl(J,H),F=G.r28shl(F,H),G.pc2(J,F,I.keys,A)}},X.prototype._update=function(I,O,J,F){var A=this._desState,H=G.readUInt32BE(I,O),W=G.readUInt32BE(I,O+4);G.ip(H,W,A.tmp,0),H=A.tmp[0],W=A.tmp[1],this.type==="encrypt"?this._encrypt(A,H,W,A.tmp,0):this._decrypt(A,H,W,A.tmp,0),H=A.tmp[0],W=A.tmp[1],G.writeUInt32BE(J,H,F),G.writeUInt32BE(J,W,F+4)},X.prototype._pad=function(I,O){for(var J=I.length-O,F=O;F<I.length;F++)I[F]=J;return!0},X.prototype._unpad=function(I){for(var O=I[I.length-1],J=I.length-O;J<I.length;J++)Y.equal(I[J],O);return I.slice(0,I.length-O)},X.prototype._encrypt=function(I,O,J,F,A){for(var H=O,W=J,E=0;E<I.keys.length;E+=2){var T=I.keys[E],D=I.keys[E+1];G.expand(W,I.tmp,0),T^=I.tmp[0],D^=I.tmp[1];var C=G.substitute(T,D),L=G.permute(C),R=W;W=(H^L)>>>0,H=R}G.rip(W,H,F,A)},X.prototype._decrypt=function(I,O,J,F,A){for(var H=J,W=O,E=I.keys.length-2;E>=0;E-=2){var T=I.keys[E],D=I.keys[E+1];G.expand(H,I.tmp,0),T^=I.tmp[0],D^=I.tmp[1];var C=G.substitute(T,D),L=G.permute(C),R=H;H=(W^L)>>>0,W=R}G.rip(H,W,F,A)}}}),UQ=q$({"node_modules/des.js/lib/des/cbc.js"($){var Q=ZQ(),Y=_$(),Z={};function G(U){Q.equal(U.length,8,"Invalid IV length"),this.iv=new Array(8);for(var X=0;X<this.iv.length;X++)this.iv[X]=U[X]}function V(U){function X(J){U.call(this,J),this._cbcInit()}Y(X,U);for(var K=Object.keys(Z),I=0;I<K.length;I++){var O=K[I];X.prototype[O]=Z[O]}return X.create=function(J){return new X(J)},X}$.instantiate=V,Z._cbcInit=function(){var U=new G(this.options.iv);this._cbcState=U},Z._update=function(U,X,K,I){var O=this._cbcState,J=this.constructor.super_.prototype,F=O.iv;if(this.type==="encrypt"){for(var A=0;A<this.blockSize;A++)F[A]^=U[X+A];J._update.call(this,F,0,K,I);for(var A=0;A<this.blockSize;A++)F[A]=K[I+A]}else{J._update.call(this,U,X,K,I);for(var A=0;A<this.blockSize;A++)K[I+A]^=F[A];for(var A=0;A<this.blockSize;A++)F[A]=U[X+A]}}}}),XQ=q$({"node_modules/des.js/lib/des/ede.js"($,Q){var Y=ZQ(),Z=_$(),G=GQ(),V=VQ();function U(K,I){Y.equal(I.length,24,"Invalid key length");var O=I.slice(0,8),J=I.slice(8,16),F=I.slice(16,24);K==="encrypt"?this.ciphers=[V.create({type:"encrypt",key:O}),V.create({type:"decrypt",key:J}),V.create({type:"encrypt",key:F})]:this.ciphers=[V.create({type:"decrypt",key:F}),V.create({type:"encrypt",key:J}),V.create({type:"decrypt",key:O})]}function X(K){G.call(this,K);var I=new U(this.type,this.options.key);this._edeState=I}Z(X,G),Q.exports=X,X.create=function(K){return new X(K)},X.prototype._update=function(K,I,O,J){var F=this._edeState;F.ciphers[0]._update(K,I,O,J),F.ciphers[1]._update(O,J,O,J),F.ciphers[2]._update(O,J,O,J)},X.prototype._pad=V.prototype._pad,X.prototype._unpad=V.prototype._unpad}}),KQ=q$({"node_modules/des.js/lib/des.js"($){$.utils=YQ(),$.Cipher=GQ(),$.DES=VQ(),$.CBC=UQ(),$.EDE=XQ()}}),IQ=q$({"node_modules/browserify-des/index.js"($,Q){var Y=l$(),Z=KQ(),G=_$(),V=k$().Buffer,U={"des-ede3-cbc":Z.CBC.instantiate(Z.EDE),"des-ede3":Z.EDE,"des-ede-cbc":Z.CBC.instantiate(Z.EDE),"des-ede":Z.EDE,"des-cbc":Z.CBC.instantiate(Z.DES),"des-ecb":Z.DES};U.des=U["des-cbc"],U.des3=U["des-ede3-cbc"],Q.exports=X,G(X,Y);function X(K){Y.call(this);var I=K.mode.toLowerCase(),O=U[I],J;K.decrypt?J="decrypt":J="encrypt";var F=K.key;V.isBuffer(F)||(F=V.from(F)),(I==="des-ede"||I==="des-ede-cbc")&&(F=V.concat([F,F.slice(0,8)]));var A=K.iv;V.isBuffer(A)||(A=V.from(A)),this._des=O.create({key:F,iv:A,type:J})}X.prototype._update=function(K){return V.from(this._des.update(K))},X.prototype._final=function(){return V.from(this._des.final())}}}),OQ=q$({"node_modules/browserify-aes/modes/ecb.js"($){$.encrypt=function(Q,Y){return Q._cipher.encryptBlock(Y)},$.decrypt=function(Q,Y){return Q._cipher.decryptBlock(Y)}}}),JQ=q$({"node_modules/buffer-xor/index.js"($,Q){Q.exports=function(Y,Z){for(var G=Math.min(Y.length,Z.length),V=new F$(G),U=0;U<G;++U)V[U]=Y[U]^Z[U];return V}}}),FQ=q$({"node_modules/browserify-aes/modes/cbc.js"($){var Q=JQ();$.encrypt=function(Y,Z){var G=Q(Z,Y._prev);return Y._prev=Y._cipher.encryptBlock(G),Y._prev},$.decrypt=function(Y,Z){var G=Y._prev;Y._prev=Z;var V=Y._cipher.decryptBlock(Z);return Q(V,G)}}}),AQ=q$({"node_modules/browserify-aes/modes/cfb.js"($){var Q=k$().Buffer,Y=JQ();function Z(G,V,U){var X=V.length,K=Y(V,G._cache);return G._cache=G._cache.slice(X),G._prev=Q.concat([G._prev,U?V:K]),K}$.encrypt=function(G,V,U){for(var X=Q.allocUnsafe(0),K;V.length;)if(G._cache.length===0&&(G._cache=G._cipher.encryptBlock(G._prev),G._prev=Q.allocUnsafe(0)),G._cache.length<=V.length)K=G._cache.length,X=Q.concat([X,Z(G,V.slice(0,K),U)]),V=V.slice(K);else{X=Q.concat([X,Z(G,V,U)]);break}return X}}}),HQ=q$({"node_modules/browserify-aes/modes/cfb8.js"($){var Q=k$().Buffer;function Y(Z,G,V){var U=Z._cipher.encryptBlock(Z._prev),X=U[0]^G;return Z._prev=Q.concat([Z._prev.slice(1),Q.from([V?G:X])]),X}$.encrypt=function(Z,G,V){for(var U=G.length,X=Q.allocUnsafe(U),K=-1;++K<U;)X[K]=Y(Z,G[K],V);return X}}}),WQ=q$({"node_modules/browserify-aes/modes/cfb1.js"($){var Q=k$().Buffer;function Y(G,V,U){for(var X,K=-1,I=8,O=0,J,F;++K<I;)X=G._cipher.encryptBlock(G._prev),J=V&1<<7-K?128:0,F=X[0]^J,O+=(F&128)>>K%8,G._prev=Z(G._prev,U?J:F);return O}function Z(G,V){var U=G.length,X=-1,K=Q.allocUnsafe(G.length);for(G=Q.concat([G,Q.from([V])]);++X<U;)K[X]=G[X]<<1|G[X+1]>>7;return K}$.encrypt=function(G,V,U){for(var X=V.length,K=Q.allocUnsafe(X),I=-1;++I<X;)K[I]=Y(G,V[I],U);return K}}}),EQ=q$({"node_modules/browserify-aes/modes/ofb.js"($){var Q=JQ();function Y(Z){return Z._prev=Z._cipher.encryptBlock(Z._prev),Z._prev}$.encrypt=function(Z,G){for(;Z._cache.length<G.length;)Z._cache=F$.concat([Z._cache,Y(Z)]);var V=Z._cache.slice(0,G.length);return Z._cache=Z._cache.slice(G.length),Q(G,V)}}}),TQ=q$({"node_modules/browserify-aes/incr32.js"($,Q){function Y(Z){for(var G=Z.length,V;G--;)if(V=Z.readUInt8(G),V===255)Z.writeUInt8(0,G);else{V++,Z.writeUInt8(V,G);break}}Q.exports=Y}}),W$=q$({"node_modules/browserify-aes/modes/ctr.js"($){var Q=JQ(),Y=k$().Buffer,Z=TQ();function G(U){var X=U._cipher.encryptBlockRaw(U._prev);return Z(U._prev),X}var V=16;$.encrypt=function(U,X){var K=Math.ceil(X.length/V),I=U._cache.length;U._cache=Y.concat([U._cache,Y.allocUnsafe(K*V)]);for(var O=0;O<K;O++){var J=G(U),F=I+O*V;U._cache.writeUInt32BE(J[0],F+0),U._cache.writeUInt32BE(J[1],F+4),U._cache.writeUInt32BE(J[2],F+8),U._cache.writeUInt32BE(J[3],F+12)}var A=U._cache.slice(0,X.length);return U._cache=U._cache.slice(X.length),Q(X,A)}}}),DQ=q$({"node_modules/browserify-aes/modes/list.json"($,Q){Q.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}}}),CQ=q$({"node_modules/browserify-aes/modes/index.js"($,Q){var Y={ECB:OQ(),CBC:FQ(),CFB:AQ(),CFB8:HQ(),CFB1:WQ(),OFB:EQ(),CTR:W$(),GCM:W$()},Z=DQ();for(G in Z)Z[G].module=Y[Z[G].mode];var G;Q.exports=Z}}),LQ=q$({"node_modules/browserify-aes/aes.js"($,Q){var Y=k$().Buffer;function Z(I){Y.isBuffer(I)||(I=Y.from(I));for(var O=I.length/4|0,J=new Array(O),F=0;F<O;F++)J[F]=I.readUInt32BE(F*4);return J}function G(I){for(var O=0;O<I.length;I++)I[O]=0}function V(I,O,J,F,A){for(var H=J[0],W=J[1],E=J[2],T=J[3],D=I[0]^O[0],C=I[1]^O[1],L=I[2]^O[2],R=I[3]^O[3],P,z,M,S,v=4,q=1;q<A;q++)P=H[D>>>24]^W[C>>>16&255]^E[L>>>8&255]^T[R&255]^O[v++],z=H[C>>>24]^W[L>>>16&255]^E[R>>>8&255]^T[D&255]^O[v++],M=H[L>>>24]^W[R>>>16&255]^E[D>>>8&255]^T[C&255]^O[v++],S=H[R>>>24]^W[D>>>16&255]^E[C>>>8&255]^T[L&255]^O[v++],D=P,C=z,L=M,R=S;return P=(F[D>>>24]<<24|F[C>>>16&255]<<16|F[L>>>8&255]<<8|F[R&255])^O[v++],z=(F[C>>>24]<<24|F[L>>>16&255]<<16|F[R>>>8&255]<<8|F[D&255])^O[v++],M=(F[L>>>24]<<24|F[R>>>16&255]<<16|F[D>>>8&255]<<8|F[C&255])^O[v++],S=(F[R>>>24]<<24|F[D>>>16&255]<<16|F[C>>>8&255]<<8|F[L&255])^O[v++],P=P>>>0,z=z>>>0,M=M>>>0,S=S>>>0,[P,z,M,S]}var U=[0,1,2,4,8,16,32,64,128,27,54],X=function(){for(var I=new Array(256),O=0;O<256;O++)O<128?I[O]=O<<1:I[O]=O<<1^283;for(var J=[],F=[],A=[[],[],[],[]],H=[[],[],[],[]],W=0,E=0,T=0;T<256;++T){var D=E^E<<1^E<<2^E<<3^E<<4;D=D>>>8^D&255^99,J[W]=D,F[D]=W;var C=I[W],L=I[C],R=I[L],P=I[D]*257^D*16843008;A[0][W]=P<<24|P>>>8,A[1][W]=P<<16|P>>>16,A[2][W]=P<<8|P>>>24,A[3][W]=P,P=R*16843009^L*65537^C*257^W*16843008,H[0][D]=P<<24|P>>>8,H[1][D]=P<<16|P>>>16,H[2][D]=P<<8|P>>>24,H[3][D]=P,W===0?W=E=1:(W=C^I[I[I[R^C]]],E^=I[I[E]])}return{SBOX:J,INV_SBOX:F,SUB_MIX:A,INV_SUB_MIX:H}}();function K(I){this._key=Z(I),this._reset()}K.blockSize=16,K.keySize=32,K.prototype.blockSize=K.blockSize,K.prototype.keySize=K.keySize,K.prototype._reset=function(){for(var I=this._key,O=I.length,J=O+6,F=(J+1)*4,A=[],H=0;H<O;H++)A[H]=I[H];for(H=O;H<F;H++){var W=A[H-1];H%O===0?(W=W<<8|W>>>24,W=X.SBOX[W>>>24]<<24|X.SBOX[W>>>16&255]<<16|X.SBOX[W>>>8&255]<<8|X.SBOX[W&255],W^=U[H/O|0]<<24):O>6&&H%O===4&&(W=X.SBOX[W>>>24]<<24|X.SBOX[W>>>16&255]<<16|X.SBOX[W>>>8&255]<<8|X.SBOX[W&255]),A[H]=A[H-O]^W}for(var E=[],T=0;T<F;T++){var D=F-T,C=A[D-(T%4?0:4)];T<4||D<=4?E[T]=C:E[T]=X.INV_SUB_MIX[0][X.SBOX[C>>>24]]^X.INV_SUB_MIX[1][X.SBOX[C>>>16&255]]^X.INV_SUB_MIX[2][X.SBOX[C>>>8&255]]^X.INV_SUB_MIX[3][X.SBOX[C&255]]}this._nRounds=J,this._keySchedule=A,this._invKeySchedule=E},K.prototype.encryptBlockRaw=function(I){return I=Z(I),V(I,this._keySchedule,X.SUB_MIX,X.SBOX,this._nRounds)},K.prototype.encryptBlock=function(I){var O=this.encryptBlockRaw(I),J=Y.allocUnsafe(16);return J.writeUInt32BE(O[0],0),J.writeUInt32BE(O[1],4),J.writeUInt32BE(O[2],8),J.writeUInt32BE(O[3],12),J},K.prototype.decryptBlock=function(I){I=Z(I);var O=I[1];I[1]=I[3],I[3]=O;var J=V(I,this._invKeySchedule,X.INV_SUB_MIX,X.INV_SBOX,this._nRounds),F=Y.allocUnsafe(16);return F.writeUInt32BE(J[0],0),F.writeUInt32BE(J[3],4),F.writeUInt32BE(J[2],8),F.writeUInt32BE(J[1],12),F},K.prototype.scrub=function(){G(this._keySchedule),G(this._invKeySchedule),G(this._key)},Q.exports.AES=K}}),RQ=q$({"node_modules/browserify-aes/ghash.js"($,Q){var Y=k$().Buffer,Z=Y.alloc(16,0);function G(X){return[X.readUInt32BE(0),X.readUInt32BE(4),X.readUInt32BE(8),X.readUInt32BE(12)]}function V(X){var K=Y.allocUnsafe(16);return K.writeUInt32BE(X[0]>>>0,0),K.writeUInt32BE(X[1]>>>0,4),K.writeUInt32BE(X[2]>>>0,8),K.writeUInt32BE(X[3]>>>0,12),K}function U(X){this.h=X,this.state=Y.alloc(16,0),this.cache=Y.allocUnsafe(0)}U.prototype.ghash=function(X){for(var K=-1;++K<X.length;)this.state[K]^=X[K];this._multiply()},U.prototype._multiply=function(){for(var X=G(this.h),K=[0,0,0,0],I,O,J,F=-1;++F<128;){for(O=(this.state[~~(F/8)]&1<<7-F%8)!==0,O&&(K[0]^=X[0],K[1]^=X[1],K[2]^=X[2],K[3]^=X[3]),J=(X[3]&1)!==0,I=3;I>0;I--)X[I]=X[I]>>>1|(X[I-1]&1)<<31;X[0]=X[0]>>>1,J&&(X[0]=X[0]^225<<24)}this.state=V(K)},U.prototype.update=function(X){this.cache=Y.concat([this.cache,X]);for(var K;this.cache.length>=16;)K=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(K)},U.prototype.final=function(X,K){return this.cache.length&&this.ghash(Y.concat([this.cache,Z],16)),this.ghash(V([0,X,0,K])),this.state},Q.exports=U}}),PQ=q$({"node_modules/browserify-aes/authCipher.js"($,Q){var Y=LQ(),Z=k$().Buffer,G=l$(),V=_$(),U=RQ(),X=JQ(),K=TQ();function I(F,A){var H=0;F.length!==A.length&&H++;for(var W=Math.min(F.length,A.length),E=0;E<W;++E)H+=F[E]^A[E];return H}function O(F,A,H){if(A.length===12)return F._finID=Z.concat([A,Z.from([0,0,0,1])]),Z.concat([A,Z.from([0,0,0,2])]);var W=new U(H),E=A.length,T=E%16;W.update(A),T&&(T=16-T,W.update(Z.alloc(T,0))),W.update(Z.alloc(8,0));var D=E*8,C=Z.alloc(8);C.writeUIntBE(D,0,8),W.update(C),F._finID=W.state;var L=Z.from(F._finID);return K(L),L}function J(F,A,H,W){G.call(this);var E=Z.alloc(4,0);this._cipher=new Y.AES(A);var T=this._cipher.encryptBlock(E);this._ghash=new U(T),H=O(this,H,T),this._prev=Z.from(H),this._cache=Z.allocUnsafe(0),this._secCache=Z.allocUnsafe(0),this._decrypt=W,this._alen=0,this._len=0,this._mode=F,this._authTag=null,this._called=!1}V(J,G),J.prototype._update=function(F){if(!this._called&&this._alen){var A=16-this._alen%16;A<16&&(A=Z.alloc(A,0),this._ghash.update(A))}this._called=!0;var H=this._mode.encrypt(this,F);return this._decrypt?this._ghash.update(F):this._ghash.update(H),this._len+=F.length,H},J.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var F=X(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&I(F,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=F,this._cipher.scrub()},J.prototype.getAuthTag=function(){if(this._decrypt||!Z.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},J.prototype.setAuthTag=function(F){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=F},J.prototype.setAAD=function(F){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(F),this._alen+=F.length},Q.exports=J}}),zQ=q$({"node_modules/browserify-aes/streamCipher.js"($,Q){var Y=LQ(),Z=k$().Buffer,G=l$(),V=_$();function U(X,K,I,O){G.call(this),this._cipher=new Y.AES(K),this._prev=Z.from(I),this._cache=Z.allocUnsafe(0),this._secCache=Z.allocUnsafe(0),this._decrypt=O,this._mode=X}V(U,G),U.prototype._update=function(X){return this._mode.encrypt(this,X,this._decrypt)},U.prototype._final=function(){this._cipher.scrub()},Q.exports=U}}),MQ=q$({"node_modules/evp_bytestokey/index.js"($,Q){var Y=k$().Buffer,Z=x$();function G(V,U,X,K){if(Y.isBuffer(V)||(V=Y.from(V,"binary")),U&&(Y.isBuffer(U)||(U=Y.from(U,"binary")),U.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var I=X/8,O=Y.alloc(I),J=Y.alloc(K||0),F=Y.alloc(0);I>0||K>0;){var A=new Z;A.update(F),A.update(V),U&&A.update(U),F=A.digest();var H=0;if(I>0){var W=O.length-I;H=Math.min(I,F.length),F.copy(O,W,0,H),I-=H}if(H<F.length&&K>0){var E=J.length-K,T=Math.min(K,F.length-H);F.copy(J,E,H,H+T),K-=T}}return F.fill(0),{key:O,iv:J}}Q.exports=G}}),SQ=q$({"node_modules/browserify-aes/encrypter.js"($){var Q=CQ(),Y=PQ(),Z=k$().Buffer,G=zQ(),V=l$(),U=LQ(),X=MQ(),K=_$();function I(H,W,E){V.call(this),this._cache=new J,this._cipher=new U.AES(W),this._prev=Z.from(E),this._mode=H,this._autopadding=!0}K(I,V),I.prototype._update=function(H){this._cache.add(H);for(var W,E,T=[];W=this._cache.get();)E=this._mode.encrypt(this,W),T.push(E);return Z.concat(T)};var O=Z.alloc(16,16);I.prototype._final=function(){var H=this._cache.flush();if(this._autopadding)return H=this._mode.encrypt(this,H),this._cipher.scrub(),H;if(!H.equals(O))throw this._cipher.scrub(),new Error("data not multiple of block length")},I.prototype.setAutoPadding=function(H){return this._autopadding=!!H,this};function J(){this.cache=Z.allocUnsafe(0)}J.prototype.add=function(H){this.cache=Z.concat([this.cache,H])},J.prototype.get=function(){if(this.cache.length>15){var H=this.cache.slice(0,16);return this.cache=this.cache.slice(16),H}return null},J.prototype.flush=function(){for(var H=16-this.cache.length,W=Z.allocUnsafe(H),E=-1;++E<H;)W.writeUInt8(H,E);return Z.concat([this.cache,W])};function F(H,W,E){var T=Q[H.toLowerCase()];if(!T)throw new TypeError("invalid suite type");if(typeof W=="string"&&(W=Z.from(W)),W.length!==T.key/8)throw new TypeError("invalid key length "+W.length);if(typeof E=="string"&&(E=Z.from(E)),T.mode!=="GCM"&&E.length!==T.iv)throw new TypeError("invalid iv length "+E.length);return T.type==="stream"?new G(T.module,W,E):T.type==="auth"?new Y(T.module,W,E):new I(T.module,W,E)}function A(H,W){var E=Q[H.toLowerCase()];if(!E)throw new TypeError("invalid suite type");var T=X(W,!1,E.key,E.iv);return F(H,T.key,T.iv)}$.createCipheriv=F,$.createCipher=A}}),vQ=q$({"node_modules/browserify-aes/decrypter.js"($){var Q=PQ(),Y=k$().Buffer,Z=CQ(),G=zQ(),V=l$(),U=LQ(),X=MQ(),K=_$();function I(H,W,E){V.call(this),this._cache=new O,this._last=void 0,this._cipher=new U.AES(W),this._prev=Y.from(E),this._mode=H,this._autopadding=!0}K(I,V),I.prototype._update=function(H){this._cache.add(H);for(var W,E,T=[];W=this._cache.get(this._autopadding);)E=this._mode.decrypt(this,W),T.push(E);return Y.concat(T)},I.prototype._final=function(){var H=this._cache.flush();if(this._autopadding)return J(this._mode.decrypt(this,H));if(H)throw new Error("data not multiple of block length")},I.prototype.setAutoPadding=function(H){return this._autopadding=!!H,this};function O(){this.cache=Y.allocUnsafe(0)}O.prototype.add=function(H){this.cache=Y.concat([this.cache,H])},O.prototype.get=function(H){var W;if(H){if(this.cache.length>16)return W=this.cache.slice(0,16),this.cache=this.cache.slice(16),W}else if(this.cache.length>=16)return W=this.cache.slice(0,16),this.cache=this.cache.slice(16),W;return null},O.prototype.flush=function(){if(this.cache.length)return this.cache};function J(H){var W=H[15];if(W<1||W>16)throw new Error("unable to decrypt data");for(var E=-1;++E<W;)if(H[E+(16-W)]!==W)throw new Error("unable to decrypt data");if(W!==16)return H.slice(0,16-W)}function F(H,W,E){var T=Z[H.toLowerCase()];if(!T)throw new TypeError("invalid suite type");if(typeof E=="string"&&(E=Y.from(E)),T.mode!=="GCM"&&E.length!==T.iv)throw new TypeError("invalid iv length "+E.length);if(typeof W=="string"&&(W=Y.from(W)),W.length!==T.key/8)throw new TypeError("invalid key length "+W.length);return T.type==="stream"?new G(T.module,W,E,!0):T.type==="auth"?new Q(T.module,W,E,!0):new I(T.module,W,E)}function A(H,W){var E=Z[H.toLowerCase()];if(!E)throw new TypeError("invalid suite type");var T=X(W,!1,E.key,E.iv);return F(H,T.key,T.iv)}$.createDecipher=A,$.createDecipheriv=F}}),qQ=q$({"node_modules/browserify-aes/browser.js"($){var Q=SQ(),Y=vQ(),Z=DQ();function G(){return Object.keys(Z)}$.createCipher=$.Cipher=Q.createCipher,$.createCipheriv=$.Cipheriv=Q.createCipheriv,$.createDecipher=$.Decipher=Y.createDecipher,$.createDecipheriv=$.Decipheriv=Y.createDecipheriv,$.listCiphers=$.getCiphers=G}}),jQ=q$({"node_modules/browserify-des/modes.js"($){$["des-ecb"]={key:8,iv:0},$["des-cbc"]=$.des={key:8,iv:8},$["des-ede3-cbc"]=$.des3={key:24,iv:8},$["des-ede3"]={key:24,iv:0},$["des-ede-cbc"]={key:16,iv:8},$["des-ede"]={key:16,iv:0}}}),kQ=q$({"node_modules/browserify-cipher/browser.js"($){var Q=IQ(),Y=qQ(),Z=CQ(),G=jQ(),V=MQ();function U(J,F){J=J.toLowerCase();var A,H;if(Z[J])A=Z[J].key,H=Z[J].iv;else if(G[J])A=G[J].key*8,H=G[J].iv;else throw new TypeError("invalid suite type");var W=V(F,!1,A,H);return K(J,W.key,W.iv)}function X(J,F){J=J.toLowerCase();var A,H;if(Z[J])A=Z[J].key,H=Z[J].iv;else if(G[J])A=G[J].key*8,H=G[J].iv;else throw new TypeError("invalid suite type");var W=V(F,!1,A,H);return I(J,W.key,W.iv)}function K(J,F,A){if(J=J.toLowerCase(),Z[J])return Y.createCipheriv(J,F,A);if(G[J])return new Q({key:F,iv:A,mode:J});throw new TypeError("invalid suite type")}function I(J,F,A){if(J=J.toLowerCase(),Z[J])return Y.createDecipheriv(J,F,A);if(G[J])return new Q({key:F,iv:A,mode:J,decrypt:!0});throw new TypeError("invalid suite type")}function O(){return Object.keys(G).concat(Y.getCiphers())}$.createCipher=$.Cipher=U,$.createCipheriv=$.Cipheriv=K,$.createDecipher=$.Decipher=X,$.createDecipheriv=$.Decipheriv=I,$.listCiphers=$.getCiphers=O}}),gQ=q$({"node_modules/diffie-hellman/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X=F$;U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_<j.length&&(k===16?this._parseHex(j,_,g):(this._parseBase(j,k,_),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N,x,B=0;if(g==="be")for(_=j.length-1,N=0;_>=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_<j.length;_+=3)x=j[_]|j[_+1]<<8|j[_+2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N=0,x=0,B;if(g==="be")for(_=j.length-1;_>=k;_-=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_<j.length;_+=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B<x;B++){var y=j.charCodeAt(B)-48;N*=_,y>=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p<y;p+=_)w=O(j,p,p+_,k),this.imuln(N),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var f=1;for(w=O(j,p,j.length,k),p=0;p<B;p++)f*=k;this.imuln(f),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x<this.length;x++){var B=this.words[x],y=((B<<_|N)&16777215).toString(16);N=B>>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w<N;w++)B[w]=0}else{for(w=0;w<N-_;w++)B[w]=0;for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[N-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var _=g/26|0,N=g%26;k[g]=(j.words[_]&1<<N)>>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_<g.length;_++)this.words[_]=k.words[_]^g.words[_];if(this!==k)for(;_<k.length;_++)this.words[_]=k.words[_];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_<k;_++)this.words[_]=~this.words[_]&67108863;return g>0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x<g.length;x++)k=(g.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;x<g.length;x++)this.words[x]=g.words[x];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B<N.length;B++)k=(_.words[B]|0)-(N.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x<g.length-1;x++){var B=N;N=0;for(var y=_&67108863,w=Math.min(x,k.length-1),p=Math.max(0,x-j.length+1);p<=w;p++){var f=x-p,c=j.words[f]|0,h=k.words[p]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_<j;_++)k[_]=this.revBin(_,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var _=0,N=0;N<k;N++)_|=(j&1)<<k-N-1,j>>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B<x;B++)_[B]=k[j[B]],N[B]=g[j[B]]},C.prototype.transform=function(j,k,g,_,N,x){this.permute(x,j,k,g,_,N);for(var B=1;B<N;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),p=Math.sin(2*Math.PI/y),f=0;f<N;f+=y)for(var c=w,h=p,d=0;d<B;d++){var b=g[f+d],l=_[f+d],o=g[f+d+B],u=_[f+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[f+d]=b+o,_[f+d]=l+u,g[f+d+B]=b-o,_[f+d+B]=l-u,d!==y&&(n=w*c-p*h,h=w*h+p*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,_=g&1,N=0;for(g=g/2|0;g;g=g>>>1)N++;return 1<<N+1+_},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var _=0;_<g/2;_++){var N=j[_];j[_]=j[g-_-1],j[g-_-1]=N,N=k[_],k[_]=-k[g-_-1],k[g-_-1]=-N}},C.prototype.normalize13b=function(j,k){for(var g=0,_=0;_<k/2;_++){var N=Math.round(j[2*_+1]/k)*8192+Math.round(j[2*_]/k)+g;j[_]=N&67108863,N<67108864?g=0:g=N/67108864|0}return j},C.prototype.convert13b=function(j,k,g,_){for(var N=0,x=0;x<k;x++)N=N+(j[x]|0),g[2*x]=N&8191,N=N>>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var _=2*this.guessLen13b(j.length,k.length),N=this.makeRBT(_),x=this.stub(_),B=new Array(_),y=new Array(_),w=new Array(_),p=new Array(_),f=new Array(_),c=new Array(_),h=g.words;h.length=_,this.convert13b(j.words,j.length,B,_),this.convert13b(k.words,k.length,p,_),this.transform(B,x,y,w,_,N),this.transform(p,x,f,c,_,N);for(var d=0;d<_;d++){var b=y[d]*f[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*f[d],y[d]=b}return this.conjugate(y,w,_),this.transform(y,w,h,x,_,N),this.conjugate(h,x,_),this.normalize13b(h,_),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var _=(this.words[g]|0)*j,N=(_&67108863)+(k&67108863);k>>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_<k.length&&k[_]===0;_++,g=g.sqr());if(++_<k.length)for(var N=g.sqr();_<k.length;_++,N=N.sqr())k[_]!==0&&(g=g.mul(N));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N<this.length;N++){var B=this.words[N]&_,y=(this.words[N]|0)-B<<k;this.words[N]=y|x,x=B>>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N<g;N++)this.words[N]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<<N,y=g;if(_-=x,_=Math.max(0,_),y){for(var w=0;w<x;w++)y.words[w]=this.words[w];y.length=x}if(x!==0)if(this.length>x)for(this.length-=x,w=0;w<this.length;w++)this.words[w]=this.words[w+x];else this.words[0]=0,this.length=1;var p=0;for(w=this.length-1;w>=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return!1;var N=this.words[g];return!!(N&_)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<<k;this.words[this.length-1]&=_}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var _=j.length+g,N;this._expand(_);var x,B=0;for(N=0;N<j.length;N++){x=(this.words[N+g]|0)+B;var y=(j.words[N]|0)*k;x-=y&67108863,B=(x>>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N<this.length-g;N++)x=(this.words[N+g]|0)+B,B=x>>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+B,B=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p<w.length;p++)w.words[p]=0}var f=_.clone()._ishlnsubmul(N,1,y);f.negative===0&&(_=f,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=_,this;for(var N=_,x=g;N!==0&&x<this.length;x++){var B=this.words[x]|0;B+=N,N=B>>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_<N?k=-1:_>N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g<this.n?-1:k.ucmp(this.p);return _===0?(k.words[0]=0,k.length=1):_>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N<j.length;N++){var B=j.words[N]|0;j.words[N-10]=(B&g)<<4|x>>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var _=j.words[g]|0;k+=_*977,j.words[g]=k&67108863,k=_*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var _=(j.words[g]|0)*19+k,N=_&67108863;_>>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(p,new U(1).iushln(h-b-1));f=f.redMul(l),p=l.redSqr(),c=c.redMul(p),h=b}return f},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,_=new Array(1<<g);_[0]=new U(1).toRed(this),_[1]=j;for(var N=2;N<_.length;N++)_[N]=this.mul(_[N-1],j);var x=_[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),N=k.length-1;N>=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),_Q=q$({"node_modules/miller-rabin/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X=F$;U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_<j.length&&(k===16?this._parseHex(j,_,g):(this._parseBase(j,k,_),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N,x,B=0;if(g==="be")for(_=j.length-1,N=0;_>=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_<j.length;_+=3)x=j[_]|j[_+1]<<8|j[_+2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N=0,x=0,B;if(g==="be")for(_=j.length-1;_>=k;_-=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_<j.length;_+=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B<x;B++){var y=j.charCodeAt(B)-48;N*=_,y>=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p<y;p+=_)w=O(j,p,p+_,k),this.imuln(N),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var f=1;for(w=O(j,p,j.length,k),p=0;p<B;p++)f*=k;this.imuln(f),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x<this.length;x++){var B=this.words[x],y=((B<<_|N)&16777215).toString(16);N=B>>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w<N;w++)B[w]=0}else{for(w=0;w<N-_;w++)B[w]=0;for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[N-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var _=g/26|0,N=g%26;k[g]=(j.words[_]&1<<N)>>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_<g.length;_++)this.words[_]=k.words[_]^g.words[_];if(this!==k)for(;_<k.length;_++)this.words[_]=k.words[_];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_<k;_++)this.words[_]=~this.words[_]&67108863;return g>0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x<g.length;x++)k=(g.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;x<g.length;x++)this.words[x]=g.words[x];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B<N.length;B++)k=(_.words[B]|0)-(N.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x<g.length-1;x++){var B=N;N=0;for(var y=_&67108863,w=Math.min(x,k.length-1),p=Math.max(0,x-j.length+1);p<=w;p++){var f=x-p,c=j.words[f]|0,h=k.words[p]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_<j;_++)k[_]=this.revBin(_,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var _=0,N=0;N<k;N++)_|=(j&1)<<k-N-1,j>>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B<x;B++)_[B]=k[j[B]],N[B]=g[j[B]]},C.prototype.transform=function(j,k,g,_,N,x){this.permute(x,j,k,g,_,N);for(var B=1;B<N;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),p=Math.sin(2*Math.PI/y),f=0;f<N;f+=y)for(var c=w,h=p,d=0;d<B;d++){var b=g[f+d],l=_[f+d],o=g[f+d+B],u=_[f+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[f+d]=b+o,_[f+d]=l+u,g[f+d+B]=b-o,_[f+d+B]=l-u,d!==y&&(n=w*c-p*h,h=w*h+p*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,_=g&1,N=0;for(g=g/2|0;g;g=g>>>1)N++;return 1<<N+1+_},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var _=0;_<g/2;_++){var N=j[_];j[_]=j[g-_-1],j[g-_-1]=N,N=k[_],k[_]=-k[g-_-1],k[g-_-1]=-N}},C.prototype.normalize13b=function(j,k){for(var g=0,_=0;_<k/2;_++){var N=Math.round(j[2*_+1]/k)*8192+Math.round(j[2*_]/k)+g;j[_]=N&67108863,N<67108864?g=0:g=N/67108864|0}return j},C.prototype.convert13b=function(j,k,g,_){for(var N=0,x=0;x<k;x++)N=N+(j[x]|0),g[2*x]=N&8191,N=N>>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var _=2*this.guessLen13b(j.length,k.length),N=this.makeRBT(_),x=this.stub(_),B=new Array(_),y=new Array(_),w=new Array(_),p=new Array(_),f=new Array(_),c=new Array(_),h=g.words;h.length=_,this.convert13b(j.words,j.length,B,_),this.convert13b(k.words,k.length,p,_),this.transform(B,x,y,w,_,N),this.transform(p,x,f,c,_,N);for(var d=0;d<_;d++){var b=y[d]*f[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*f[d],y[d]=b}return this.conjugate(y,w,_),this.transform(y,w,h,x,_,N),this.conjugate(h,x,_),this.normalize13b(h,_),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var _=(this.words[g]|0)*j,N=(_&67108863)+(k&67108863);k>>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_<k.length&&k[_]===0;_++,g=g.sqr());if(++_<k.length)for(var N=g.sqr();_<k.length;_++,N=N.sqr())k[_]!==0&&(g=g.mul(N));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N<this.length;N++){var B=this.words[N]&_,y=(this.words[N]|0)-B<<k;this.words[N]=y|x,x=B>>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N<g;N++)this.words[N]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<<N,y=g;if(_-=x,_=Math.max(0,_),y){for(var w=0;w<x;w++)y.words[w]=this.words[w];y.length=x}if(x!==0)if(this.length>x)for(this.length-=x,w=0;w<this.length;w++)this.words[w]=this.words[w+x];else this.words[0]=0,this.length=1;var p=0;for(w=this.length-1;w>=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return!1;var N=this.words[g];return!!(N&_)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<<k;this.words[this.length-1]&=_}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var _=j.length+g,N;this._expand(_);var x,B=0;for(N=0;N<j.length;N++){x=(this.words[N+g]|0)+B;var y=(j.words[N]|0)*k;x-=y&67108863,B=(x>>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N<this.length-g;N++)x=(this.words[N+g]|0)+B,B=x>>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+B,B=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p<w.length;p++)w.words[p]=0}var f=_.clone()._ishlnsubmul(N,1,y);f.negative===0&&(_=f,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=_,this;for(var N=_,x=g;N!==0&&x<this.length;x++){var B=this.words[x]|0;B+=N,N=B>>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_<N?k=-1:_>N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g<this.n?-1:k.ucmp(this.p);return _===0?(k.words[0]=0,k.length=1):_>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N<j.length;N++){var B=j.words[N]|0;j.words[N-10]=(B&g)<<4|x>>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var _=j.words[g]|0;k+=_*977,j.words[g]=k&67108863,k=_*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var _=(j.words[g]|0)*19+k,N=_&67108863;_>>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(p,new U(1).iushln(h-b-1));f=f.redMul(l),p=l.redSqr(),c=c.redMul(p),h=b}return f},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,_=new Array(1<<g);_[0]=new U(1).toRed(this),_[1]=j;for(var N=2;N<_.length;N++)_[N]=this.mul(_[N-1],j);var x=_[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),N=k.length-1;N>=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),NQ=q$({"(disabled):node_modules/crypto-browserify/index.js"(){}}),xQ=q$({"node_modules/brorand/index.js"($,Q){var Y;Q.exports=function(G){return Y||(Y=new Z(null)),Y.generate(G)};function Z(G){this.rand=G}Q.exports.Rand=Z,Z.prototype.generate=function(G){return this._rand(G)},Z.prototype._rand=function(G){var V=new F$(G);return H$.getRandomValues(V),V}}}),BQ=q$({"node_modules/miller-rabin/lib/mr.js"($,Q){var Y=_Q(),Z=xQ();function G(V){this.rand=V||new Z.Rand}Q.exports=G,G.create=function(V){return new G(V)},G.prototype._randbelow=function(V){var U=V.bitLength(),X=Math.ceil(U/8);do var K=new Y(this.rand.generate(X));while(K.cmp(V)>=0);return K},G.prototype._randrange=function(V,U){var X=U.sub(V);return V.add(this._randbelow(X))},G.prototype.test=function(V,U,X){var K=V.bitLength(),I=Y.mont(V),O=new Y(1).toRed(I);U||(U=Math.max(1,K/48|0));for(var J=V.subn(1),F=0;!J.testn(F);F++);for(var A=V.shrn(F),H=J.toRed(I),W=!0;U>0;U--){var E=this._randrange(new Y(2),J);X&&X(E);var T=E.toRed(I).redPow(A);if(!(T.cmp(O)===0||T.cmp(H)===0)){for(var D=1;D<F;D++){if(T=T.redSqr(),T.cmp(O)===0)return!1;if(T.cmp(H)===0)break}if(D===F)return!1}}return W},G.prototype.getDivisor=function(V,U){var X=V.bitLength(),K=Y.mont(V),I=new Y(1).toRed(K);U||(U=Math.max(1,X/48|0));for(var O=V.subn(1),J=0;!O.testn(J);J++);for(var F=V.shrn(J),A=O.toRed(K);U>0;U--){var H=this._randrange(new Y(2),O),W=V.gcd(H);if(W.cmpn(1)!==0)return W;var E=H.toRed(K).redPow(F);if(!(E.cmp(I)===0||E.cmp(A)===0)){for(var T=1;T<J;T++){if(E=E.redSqr(),E.cmp(I)===0)return E.fromRed().subn(1).gcd(V);if(E.cmp(A)===0)break}if(T===J)return E=E.redSqr(),E.fromRed().subn(1).gcd(V)}}return!1}}}),yQ=q$({"node_modules/diffie-hellman/lib/generatePrime.js"($,Q){var Y=g$();Q.exports=P,P.simpleSieve=L,P.fermatTest=R;var Z=gQ(),G=new Z(24),V=BQ(),U=new V,X=new Z(1),K=new Z(2),I=new Z(5),O=new Z(16),J=new Z(8),F=new Z(10),A=new Z(3),H=new Z(7),W=new Z(11),E=new Z(4),T=new Z(12),D=null;function C(){if(D!==null)return D;var z=1048576,M=[];M[0]=2;for(var S=1,v=3;v<z;v+=2){for(var q=Math.ceil(Math.sqrt(v)),j=0;j<S&&M[j]<=q&&v%M[j]!==0;j++);S!==j&&M[j]<=q||(M[S++]=v)}return D=M,M}function L(z){for(var M=C(),S=0;S<M.length;S++)if(z.modn(M[S])===0)return z.cmpn(M[S])===0;return!0}function R(z){var M=Z.mont(z);return K.toRed(M).redPow(z.subn(1)).fromRed().cmpn(1)===0}function P(z,M){if(z<16)return M===2||M===5?new Z([140,123]):new Z([140,39]);M=new Z(M);for(var S,v;;){for(S=new Z(Y(Math.ceil(z/8)));S.bitLength()>z;)S.ishrn(1);if(S.isEven()&&S.iadd(X),S.testn(1)||S.iadd(K),M.cmp(K)){if(!M.cmp(I))for(;S.mod(F).cmp(A);)S.iadd(E)}else for(;S.mod(G).cmp(W);)S.iadd(E);if(v=S.shrn(1),L(v)&&L(S)&&R(v)&&R(S)&&U.test(v)&&U.test(S))return S}}}}),wQ=q$({"node_modules/diffie-hellman/lib/primes.json"($,Q){Q.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}}),pQ=q$({"node_modules/diffie-hellman/lib/dh.js"($,Q){var Y=gQ(),Z=BQ(),G=new Z,V=new Y(24),U=new Y(11),X=new Y(10),K=new Y(3),I=new Y(7),O=yQ(),J=g$();Q.exports=E;function F(D,C){return C=C||"utf8",F$.isBuffer(D)||(D=new F$(D,C)),this._pub=new Y(D),this}function A(D,C){return C=C||"utf8",F$.isBuffer(D)||(D=new F$(D,C)),this._priv=new Y(D),this}var H={};function W(D,C){var L=C.toString("hex"),R=[L,D.toString(16)].join("_");if(R in H)return H[R];var P=0;if(D.isEven()||!O.simpleSieve||!O.fermatTest(D)||!G.test(D))return P+=1,L==="02"||L==="05"?P+=8:P+=4,H[R]=P,P;G.test(D.shrn(1))||(P+=2);var z;switch(L){case"02":D.mod(V).cmp(U)&&(P+=8);break;case"05":z=D.mod(X),z.cmp(K)&&z.cmp(I)&&(P+=8);break;default:P+=4}return H[R]=P,P}function E(D,C,L){this.setGenerator(C),this.__prime=new Y(D),this._prime=Y.mont(this.__prime),this._primeLen=D.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,L?(this.setPublicKey=F,this.setPrivateKey=A):this._primeCode=8}Object.defineProperty(E.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=W(this.__prime,this.__gen)),this._primeCode}}),E.prototype.generateKeys=function(){return this._priv||(this._priv=new Y(J(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},E.prototype.computeSecret=function(D){D=new Y(D),D=D.toRed(this._prime);var C=D.redPow(this._priv).fromRed(),L=new F$(C.toArray()),R=this.getPrime();if(L.length<R.length){var P=new F$(R.length-L.length);P.fill(0),L=F$.concat([P,L])}return L},E.prototype.getPublicKey=function(D){return T(this._pub,D)},E.prototype.getPrivateKey=function(D){return T(this._priv,D)},E.prototype.getPrime=function(D){return T(this.__prime,D)},E.prototype.getGenerator=function(D){return T(this._gen,D)},E.prototype.setGenerator=function(D,C){return C=C||"utf8",F$.isBuffer(D)||(D=new F$(D,C)),this.__gen=D,this._gen=new Y(D),this};function T(D,C){var L=new F$(D.toArray());return C?L.toString(C):L}}}),fQ=q$({"node_modules/diffie-hellman/browser.js"($){var Q=yQ(),Y=wQ(),Z=pQ();function G(X){var K=new F$(Y[X].prime,"hex"),I=new F$(Y[X].gen,"hex");return new Z(K,I)}var V={binary:!0,hex:!0,base64:!0};function U(X,K,I,O){return F$.isBuffer(K)||V[K]===void 0?U(X,"binary",K,I):(K=K||"binary",O=O||"binary",I=I||new F$([2]),F$.isBuffer(I)||(I=new F$(I,O)),typeof X=="number"?new Z(Q(X,I),I,!0):(F$.isBuffer(X)||(X=new F$(X,K)),new Z(X,I,!0)))}$.DiffieHellmanGroup=$.createDiffieHellmanGroup=$.getDiffieHellman=G,$.createDiffieHellman=$.DiffieHellman=U}}),cQ=q$({"node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(_,N){if(!_)throw new Error(N||"Assertion failed")}function V(_,N){_.super_=N;var x=function(){};x.prototype=N.prototype,_.prototype=new x,_.prototype.constructor=_}function U(_,N,x){if(U.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((N==="le"||N==="be")&&(x=N,N=10),this._init(_||0,N||10,x||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X=F$;U.isBN=function(_){return _ instanceof U?!0:_!==null&&typeof _=="object"&&_.constructor.wordSize===U.wordSize&&Array.isArray(_.words)},U.max=function(_,N){return _.cmp(N)>0?_:N},U.min=function(_,N){return _.cmp(N)<0?_:N},U.prototype._init=function(_,N,x){if(typeof _=="number")return this._initNumber(_,N,x);if(typeof _=="object")return this._initArray(_,N,x);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),_=_.toString().replace(/\s+/g,"");var B=0;_[0]==="-"&&(B++,this.negative=1),B<_.length&&(N===16?this._parseHex(_,B,x):(this._parseBase(_,N,B),x==="le"&&this._initArray(this.toArray(),N,x)))},U.prototype._initNumber=function(_,N,x){_<0&&(this.negative=1,_=-_),_<67108864?(this.words=[_&67108863],this.length=1):_<4503599627370496?(this.words=[_&67108863,_/67108864&67108863],this.length=2):(G(_<9007199254740992),this.words=[_&67108863,_/67108864&67108863,1],this.length=3),x==="le"&&this._initArray(this.toArray(),N,x)},U.prototype._initArray=function(_,N,x){if(G(typeof _.length=="number"),_.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(_.length/3),this.words=new Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var y,w,p=0;if(x==="be")for(B=_.length-1,y=0;B>=0;B-=3)w=_[B]|_[B-1]<<8|_[B-2]<<16,this.words[y]|=w<<p&67108863,this.words[y+1]=w>>>26-p&67108863,p+=24,p>=26&&(p-=26,y++);else if(x==="le")for(B=0,y=0;B<_.length;B+=3)w=_[B]|_[B+1]<<8|_[B+2]<<16,this.words[y]|=w<<p&67108863,this.words[y+1]=w>>>26-p&67108863,p+=24,p>=26&&(p-=26,y++);return this._strip()};function K(_,N){var x=_.charCodeAt(N);if(x>=48&&x<=57)return x-48;if(x>=65&&x<=70)return x-55;if(x>=97&&x<=102)return x-87;G(!1,"Invalid character in "+_)}function I(_,N,x){var B=K(_,x);return x-1>=N&&(B|=K(_,x-1)<<4),B}U.prototype._parseHex=function(_,N,x){this.length=Math.ceil((_.length-N)/6),this.words=new Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var y=0,w=0,p;if(x==="be")for(B=_.length-1;B>=N;B-=2)p=I(_,N,B)<<y,this.words[w]|=p&67108863,y>=18?(y-=18,w+=1,this.words[w]|=p>>>26):y+=8;else{var f=_.length-N;for(B=f%2===0?N+1:N;B<_.length;B+=2)p=I(_,N,B)<<y,this.words[w]|=p&67108863,y>=18?(y-=18,w+=1,this.words[w]|=p>>>26):y+=8}this._strip()};function O(_,N,x,B){for(var y=0,w=0,p=Math.min(_.length,x),f=N;f<p;f++){var c=_.charCodeAt(f)-48;y*=B,c>=49?w=c-49+10:c>=17?w=c-17+10:w=c,G(c>=0&&w<B,"Invalid character"),y+=w}return y}U.prototype._parseBase=function(_,N,x){this.words=[0],this.length=1;for(var B=0,y=1;y<=67108863;y*=N)B++;B--,y=y/N|0;for(var w=_.length-x,p=w%B,f=Math.min(w,w-p)+x,c=0,h=x;h<f;h+=B)c=O(_,h,h+B,N),this.imuln(y),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(p!==0){var d=1;for(c=O(_,h,_.length,N),h=0;h<p;h++)d*=N;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},U.prototype.copy=function(_){_.words=new Array(this.length);for(var N=0;N<this.length;N++)_.words[N]=this.words[N];_.length=this.length,_.negative=this.negative,_.red=this.red};function J(_,N){_.words=N.words,_.length=N.length,_.negative=N.negative,_.red=N.red}if(U.prototype._move=function(_){J(_,this)},U.prototype.clone=function(){var _=new U(null);return this.copy(_),_},U.prototype._expand=function(_){for(;this.length<_;)this.words[this.length++]=0;return this},U.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{U.prototype[Symbol.for("nodejs.util.inspect.custom")]=F}catch{U.prototype.inspect=F}else U.prototype.inspect=F;function F(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],H=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],W=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(_,N){_=_||10,N=N|0||1;var x;if(_===16||_==="hex"){x="";for(var B=0,y=0,w=0;w<this.length;w++){var p=this.words[w],f=((p<<B|y)&16777215).toString(16);y=p>>>24-B&16777215,B+=2,B>=26&&(B-=26,w--),y!==0||w!==this.length-1?x=A[6-f.length]+f+x:x=f+x}for(y!==0&&(x=y.toString(16)+x);x.length%N!==0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}if(_===(_|0)&&_>=2&&_<=36){var c=H[_],h=W[_];x="";var d=this.clone();for(d.negative=0;!d.isZero();){var b=d.modrn(h).toString(_);d=d.idivn(h),d.isZero()?x=b+x:x=A[c-b.length]+b+x}for(this.isZero()&&(x="0"+x);x.length%N!==0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var _=this.words[0];return this.length===2?_+=this.words[1]*67108864:this.length===3&&this.words[2]===1?_+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-_:_},U.prototype.toJSON=function(){return this.toString(16,2)},X&&(U.prototype.toBuffer=function(_,N){return this.toArrayLike(X,_,N)}),U.prototype.toArray=function(_,N){return this.toArrayLike(Array,_,N)};var E=function(_,N){return _.allocUnsafe?_.allocUnsafe(N):new _(N)};U.prototype.toArrayLike=function(_,N,x){this._strip();var B=this.byteLength(),y=x||Math.max(1,B);G(B<=y,"byte array longer than desired length"),G(y>0,"Requested array length <= 0");var w=E(_,y),p=N==="le"?"LE":"BE";return this["_toArrayLike"+p](w,B),w},U.prototype._toArrayLikeLE=function(_,N){for(var x=0,B=0,y=0,w=0;y<this.length;y++){var p=this.words[y]<<w|B;_[x++]=p&255,x<_.length&&(_[x++]=p>>8&255),x<_.length&&(_[x++]=p>>16&255),w===6?(x<_.length&&(_[x++]=p>>24&255),B=0,w=0):(B=p>>>24,w+=2)}if(x<_.length)for(_[x++]=B;x<_.length;)_[x++]=0},U.prototype._toArrayLikeBE=function(_,N){for(var x=_.length-1,B=0,y=0,w=0;y<this.length;y++){var p=this.words[y]<<w|B;_[x--]=p&255,x>=0&&(_[x--]=p>>8&255),x>=0&&(_[x--]=p>>16&255),w===6?(x>=0&&(_[x--]=p>>24&255),B=0,w=0):(B=p>>>24,w+=2)}if(x>=0)for(_[x--]=B;x>=0;)_[x--]=0},Math.clz32?U.prototype._countBits=function(_){return 32-Math.clz32(_)}:U.prototype._countBits=function(_){var N=_,x=0;return N>=4096&&(x+=13,N>>>=13),N>=64&&(x+=7,N>>>=7),N>=8&&(x+=4,N>>>=4),N>=2&&(x+=2,N>>>=2),x+N},U.prototype._zeroBits=function(_){if(_===0)return 26;var N=_,x=0;return(N&8191)===0&&(x+=13,N>>>=13),(N&127)===0&&(x+=7,N>>>=7),(N&15)===0&&(x+=4,N>>>=4),(N&3)===0&&(x+=2,N>>>=2),(N&1)===0&&x++,x},U.prototype.bitLength=function(){var _=this.words[this.length-1],N=this._countBits(_);return(this.length-1)*26+N};function T(_){for(var N=new Array(_.bitLength()),x=0;x<N.length;x++){var B=x/26|0,y=x%26;N[x]=_.words[B]>>>y&1}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var _=0,N=0;N<this.length;N++){var x=this._zeroBits(this.words[N]);if(_+=x,x!==26)break}return _},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(_){return this.negative!==0?this.abs().inotn(_).iaddn(1):this.clone()},U.prototype.fromTwos=function(_){return this.testn(_-1)?this.notn(_).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(_){for(;this.length<_.length;)this.words[this.length++]=0;for(var N=0;N<_.length;N++)this.words[N]=this.words[N]|_.words[N];return this._strip()},U.prototype.ior=function(_){return G((this.negative|_.negative)===0),this.iuor(_)},U.prototype.or=function(_){return this.length>_.length?this.clone().ior(_):_.clone().ior(this)},U.prototype.uor=function(_){return this.length>_.length?this.clone().iuor(_):_.clone().iuor(this)},U.prototype.iuand=function(_){var N;this.length>_.length?N=_:N=this;for(var x=0;x<N.length;x++)this.words[x]=this.words[x]&_.words[x];return this.length=N.length,this._strip()},U.prototype.iand=function(_){return G((this.negative|_.negative)===0),this.iuand(_)},U.prototype.and=function(_){return this.length>_.length?this.clone().iand(_):_.clone().iand(this)},U.prototype.uand=function(_){return this.length>_.length?this.clone().iuand(_):_.clone().iuand(this)},U.prototype.iuxor=function(_){var N,x;this.length>_.length?(N=this,x=_):(N=_,x=this);for(var B=0;B<x.length;B++)this.words[B]=N.words[B]^x.words[B];if(this!==N)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=N.length,this._strip()},U.prototype.ixor=function(_){return G((this.negative|_.negative)===0),this.iuxor(_)},U.prototype.xor=function(_){return this.length>_.length?this.clone().ixor(_):_.clone().ixor(this)},U.prototype.uxor=function(_){return this.length>_.length?this.clone().iuxor(_):_.clone().iuxor(this)},U.prototype.inotn=function(_){G(typeof _=="number"&&_>=0);var N=Math.ceil(_/26)|0,x=_%26;this._expand(N),x>0&&N--;for(var B=0;B<N;B++)this.words[B]=~this.words[B]&67108863;return x>0&&(this.words[B]=~this.words[B]&67108863>>26-x),this._strip()},U.prototype.notn=function(_){return this.clone().inotn(_)},U.prototype.setn=function(_,N){G(typeof _=="number"&&_>=0);var x=_/26|0,B=_%26;return this._expand(x+1),N?this.words[x]=this.words[x]|1<<B:this.words[x]=this.words[x]&~(1<<B),this._strip()},U.prototype.iadd=function(_){var N;if(this.negative!==0&&_.negative===0)return this.negative=0,N=this.isub(_),this.negative^=1,this._normSign();if(this.negative===0&&_.negative!==0)return _.negative=0,N=this.isub(_),_.negative=1,N._normSign();var x,B;this.length>_.length?(x=this,B=_):(x=_,B=this);for(var y=0,w=0;w<B.length;w++)N=(x.words[w]|0)+(B.words[w]|0)+y,this.words[w]=N&67108863,y=N>>>26;for(;y!==0&&w<x.length;w++)N=(x.words[w]|0)+y,this.words[w]=N&67108863,y=N>>>26;if(this.length=x.length,y!==0)this.words[this.length]=y,this.length++;else if(x!==this)for(;w<x.length;w++)this.words[w]=x.words[w];return this},U.prototype.add=function(_){var N;return _.negative!==0&&this.negative===0?(_.negative=0,N=this.sub(_),_.negative^=1,N):_.negative===0&&this.negative!==0?(this.negative=0,N=_.sub(this),this.negative=1,N):this.length>_.length?this.clone().iadd(_):_.clone().iadd(this)},U.prototype.isub=function(_){if(_.negative!==0){_.negative=0;var N=this.iadd(_);return _.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(_),this.negative=1,this._normSign();var x=this.cmp(_);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var B,y;x>0?(B=this,y=_):(B=_,y=this);for(var w=0,p=0;p<y.length;p++)N=(B.words[p]|0)-(y.words[p]|0)+w,w=N>>26,this.words[p]=N&67108863;for(;w!==0&&p<B.length;p++)N=(B.words[p]|0)+w,w=N>>26,this.words[p]=N&67108863;if(w===0&&p<B.length&&B!==this)for(;p<B.length;p++)this.words[p]=B.words[p];return this.length=Math.max(this.length,p),B!==this&&(this.negative=1),this._strip()},U.prototype.sub=function(_){return this.clone().isub(_)};function D(_,N,x){x.negative=N.negative^_.negative;var B=_.length+N.length|0;x.length=B,B=B-1|0;var y=_.words[0]|0,w=N.words[0]|0,p=y*w,f=p&67108863,c=p/67108864|0;x.words[0]=f;for(var h=1;h<B;h++){for(var d=c>>>26,b=c&67108863,l=Math.min(h,N.length-1),o=Math.max(0,h-_.length+1);o<=l;o++){var u=h-o|0;y=_.words[u]|0,w=N.words[o]|0,p=y*w+b,d+=p/67108864|0,b=p&67108863}x.words[h]=b|0,c=d|0}return c!==0?x.words[h]=c|0:x.length--,x._strip()}var C=function(_,N,x){var B=_.words,y=N.words,w=x.words,p=0,f,c,h,d=B[0]|0,b=d&8191,l=d>>>13,o=B[1]|0,u=o&8191,n=o>>>13,s=B[2]|0,t=s&8191,m=s>>>13,a=B[3]|0,e=a&8191,r=a>>>13,i=B[4]|0,$0=i&8191,Q0=i>>>13,Y0=B[5]|0,Z0=Y0&8191,G0=Y0>>>13,V0=B[6]|0,U0=V0&8191,X0=V0>>>13,K0=B[7]|0,I0=K0&8191,O0=K0>>>13,J0=B[8]|0,F0=J0&8191,A0=J0>>>13,H0=B[9]|0,W0=H0&8191,E0=H0>>>13,T0=y[0]|0,D0=T0&8191,C0=T0>>>13,L0=y[1]|0,R0=L0&8191,P0=L0>>>13,z0=y[2]|0,M0=z0&8191,S0=z0>>>13,v0=y[3]|0,q0=v0&8191,j0=v0>>>13,k0=y[4]|0,g0=k0&8191,_0=k0>>>13,N0=y[5]|0,x0=N0&8191,B0=N0>>>13,y0=y[6]|0,w0=y0&8191,p0=y0>>>13,f0=y[7]|0,c0=f0&8191,h0=f0>>>13,d0=y[8]|0,b0=d0&8191,l0=d0>>>13,o0=y[9]|0,u0=o0&8191,n0=o0>>>13;x.negative=_.negative^N.negative,x.length=19,f=Math.imul(b,D0),c=Math.imul(b,C0),c=c+Math.imul(l,D0)|0,h=Math.imul(l,C0);var s0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(s0>>>26)|0,s0&=67108863,f=Math.imul(u,D0),c=Math.imul(u,C0),c=c+Math.imul(n,D0)|0,h=Math.imul(n,C0),f=f+Math.imul(b,R0)|0,c=c+Math.imul(b,P0)|0,c=c+Math.imul(l,R0)|0,h=h+Math.imul(l,P0)|0;var t0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(t0>>>26)|0,t0&=67108863,f=Math.imul(t,D0),c=Math.imul(t,C0),c=c+Math.imul(m,D0)|0,h=Math.imul(m,C0),f=f+Math.imul(u,R0)|0,c=c+Math.imul(u,P0)|0,c=c+Math.imul(n,R0)|0,h=h+Math.imul(n,P0)|0,f=f+Math.imul(b,M0)|0,c=c+Math.imul(b,S0)|0,c=c+Math.imul(l,M0)|0,h=h+Math.imul(l,S0)|0;var m0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(m0>>>26)|0,m0&=67108863,f=Math.imul(e,D0),c=Math.imul(e,C0),c=c+Math.imul(r,D0)|0,h=Math.imul(r,C0),f=f+Math.imul(t,R0)|0,c=c+Math.imul(t,P0)|0,c=c+Math.imul(m,R0)|0,h=h+Math.imul(m,P0)|0,f=f+Math.imul(u,M0)|0,c=c+Math.imul(u,S0)|0,c=c+Math.imul(n,M0)|0,h=h+Math.imul(n,S0)|0,f=f+Math.imul(b,q0)|0,c=c+Math.imul(b,j0)|0,c=c+Math.imul(l,q0)|0,h=h+Math.imul(l,j0)|0;var a0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(a0>>>26)|0,a0&=67108863,f=Math.imul($0,D0),c=Math.imul($0,C0),c=c+Math.imul(Q0,D0)|0,h=Math.imul(Q0,C0),f=f+Math.imul(e,R0)|0,c=c+Math.imul(e,P0)|0,c=c+Math.imul(r,R0)|0,h=h+Math.imul(r,P0)|0,f=f+Math.imul(t,M0)|0,c=c+Math.imul(t,S0)|0,c=c+Math.imul(m,M0)|0,h=h+Math.imul(m,S0)|0,f=f+Math.imul(u,q0)|0,c=c+Math.imul(u,j0)|0,c=c+Math.imul(n,q0)|0,h=h+Math.imul(n,j0)|0,f=f+Math.imul(b,g0)|0,c=c+Math.imul(b,_0)|0,c=c+Math.imul(l,g0)|0,h=h+Math.imul(l,_0)|0;var e0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(e0>>>26)|0,e0&=67108863,f=Math.imul(Z0,D0),c=Math.imul(Z0,C0),c=c+Math.imul(G0,D0)|0,h=Math.imul(G0,C0),f=f+Math.imul($0,R0)|0,c=c+Math.imul($0,P0)|0,c=c+Math.imul(Q0,R0)|0,h=h+Math.imul(Q0,P0)|0,f=f+Math.imul(e,M0)|0,c=c+Math.imul(e,S0)|0,c=c+Math.imul(r,M0)|0,h=h+Math.imul(r,S0)|0,f=f+Math.imul(t,q0)|0,c=c+Math.imul(t,j0)|0,c=c+Math.imul(m,q0)|0,h=h+Math.imul(m,j0)|0,f=f+Math.imul(u,g0)|0,c=c+Math.imul(u,_0)|0,c=c+Math.imul(n,g0)|0,h=h+Math.imul(n,_0)|0,f=f+Math.imul(b,x0)|0,c=c+Math.imul(b,B0)|0,c=c+Math.imul(l,x0)|0,h=h+Math.imul(l,B0)|0;var r0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(r0>>>26)|0,r0&=67108863,f=Math.imul(U0,D0),c=Math.imul(U0,C0),c=c+Math.imul(X0,D0)|0,h=Math.imul(X0,C0),f=f+Math.imul(Z0,R0)|0,c=c+Math.imul(Z0,P0)|0,c=c+Math.imul(G0,R0)|0,h=h+Math.imul(G0,P0)|0,f=f+Math.imul($0,M0)|0,c=c+Math.imul($0,S0)|0,c=c+Math.imul(Q0,M0)|0,h=h+Math.imul(Q0,S0)|0,f=f+Math.imul(e,q0)|0,c=c+Math.imul(e,j0)|0,c=c+Math.imul(r,q0)|0,h=h+Math.imul(r,j0)|0,f=f+Math.imul(t,g0)|0,c=c+Math.imul(t,_0)|0,c=c+Math.imul(m,g0)|0,h=h+Math.imul(m,_0)|0,f=f+Math.imul(u,x0)|0,c=c+Math.imul(u,B0)|0,c=c+Math.imul(n,x0)|0,h=h+Math.imul(n,B0)|0,f=f+Math.imul(b,w0)|0,c=c+Math.imul(b,p0)|0,c=c+Math.imul(l,w0)|0,h=h+Math.imul(l,p0)|0;var i0=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(i0>>>26)|0,i0&=67108863,f=Math.imul(I0,D0),c=Math.imul(I0,C0),c=c+Math.imul(O0,D0)|0,h=Math.imul(O0,C0),f=f+Math.imul(U0,R0)|0,c=c+Math.imul(U0,P0)|0,c=c+Math.imul(X0,R0)|0,h=h+Math.imul(X0,P0)|0,f=f+Math.imul(Z0,M0)|0,c=c+Math.imul(Z0,S0)|0,c=c+Math.imul(G0,M0)|0,h=h+Math.imul(G0,S0)|0,f=f+Math.imul($0,q0)|0,c=c+Math.imul($0,j0)|0,c=c+Math.imul(Q0,q0)|0,h=h+Math.imul(Q0,j0)|0,f=f+Math.imul(e,g0)|0,c=c+Math.imul(e,_0)|0,c=c+Math.imul(r,g0)|0,h=h+Math.imul(r,_0)|0,f=f+Math.imul(t,x0)|0,c=c+Math.imul(t,B0)|0,c=c+Math.imul(m,x0)|0,h=h+Math.imul(m,B0)|0,f=f+Math.imul(u,w0)|0,c=c+Math.imul(u,p0)|0,c=c+Math.imul(n,w0)|0,h=h+Math.imul(n,p0)|0,f=f+Math.imul(b,c0)|0,c=c+Math.imul(b,h0)|0,c=c+Math.imul(l,c0)|0,h=h+Math.imul(l,h0)|0;var $$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+($$>>>26)|0,$$&=67108863,f=Math.imul(F0,D0),c=Math.imul(F0,C0),c=c+Math.imul(A0,D0)|0,h=Math.imul(A0,C0),f=f+Math.imul(I0,R0)|0,c=c+Math.imul(I0,P0)|0,c=c+Math.imul(O0,R0)|0,h=h+Math.imul(O0,P0)|0,f=f+Math.imul(U0,M0)|0,c=c+Math.imul(U0,S0)|0,c=c+Math.imul(X0,M0)|0,h=h+Math.imul(X0,S0)|0,f=f+Math.imul(Z0,q0)|0,c=c+Math.imul(Z0,j0)|0,c=c+Math.imul(G0,q0)|0,h=h+Math.imul(G0,j0)|0,f=f+Math.imul($0,g0)|0,c=c+Math.imul($0,_0)|0,c=c+Math.imul(Q0,g0)|0,h=h+Math.imul(Q0,_0)|0,f=f+Math.imul(e,x0)|0,c=c+Math.imul(e,B0)|0,c=c+Math.imul(r,x0)|0,h=h+Math.imul(r,B0)|0,f=f+Math.imul(t,w0)|0,c=c+Math.imul(t,p0)|0,c=c+Math.imul(m,w0)|0,h=h+Math.imul(m,p0)|0,f=f+Math.imul(u,c0)|0,c=c+Math.imul(u,h0)|0,c=c+Math.imul(n,c0)|0,h=h+Math.imul(n,h0)|0,f=f+Math.imul(b,b0)|0,c=c+Math.imul(b,l0)|0,c=c+Math.imul(l,b0)|0,h=h+Math.imul(l,l0)|0;var Q$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,f=Math.imul(W0,D0),c=Math.imul(W0,C0),c=c+Math.imul(E0,D0)|0,h=Math.imul(E0,C0),f=f+Math.imul(F0,R0)|0,c=c+Math.imul(F0,P0)|0,c=c+Math.imul(A0,R0)|0,h=h+Math.imul(A0,P0)|0,f=f+Math.imul(I0,M0)|0,c=c+Math.imul(I0,S0)|0,c=c+Math.imul(O0,M0)|0,h=h+Math.imul(O0,S0)|0,f=f+Math.imul(U0,q0)|0,c=c+Math.imul(U0,j0)|0,c=c+Math.imul(X0,q0)|0,h=h+Math.imul(X0,j0)|0,f=f+Math.imul(Z0,g0)|0,c=c+Math.imul(Z0,_0)|0,c=c+Math.imul(G0,g0)|0,h=h+Math.imul(G0,_0)|0,f=f+Math.imul($0,x0)|0,c=c+Math.imul($0,B0)|0,c=c+Math.imul(Q0,x0)|0,h=h+Math.imul(Q0,B0)|0,f=f+Math.imul(e,w0)|0,c=c+Math.imul(e,p0)|0,c=c+Math.imul(r,w0)|0,h=h+Math.imul(r,p0)|0,f=f+Math.imul(t,c0)|0,c=c+Math.imul(t,h0)|0,c=c+Math.imul(m,c0)|0,h=h+Math.imul(m,h0)|0,f=f+Math.imul(u,b0)|0,c=c+Math.imul(u,l0)|0,c=c+Math.imul(n,b0)|0,h=h+Math.imul(n,l0)|0,f=f+Math.imul(b,u0)|0,c=c+Math.imul(b,n0)|0,c=c+Math.imul(l,u0)|0,h=h+Math.imul(l,n0)|0;var Y$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,f=Math.imul(W0,R0),c=Math.imul(W0,P0),c=c+Math.imul(E0,R0)|0,h=Math.imul(E0,P0),f=f+Math.imul(F0,M0)|0,c=c+Math.imul(F0,S0)|0,c=c+Math.imul(A0,M0)|0,h=h+Math.imul(A0,S0)|0,f=f+Math.imul(I0,q0)|0,c=c+Math.imul(I0,j0)|0,c=c+Math.imul(O0,q0)|0,h=h+Math.imul(O0,j0)|0,f=f+Math.imul(U0,g0)|0,c=c+Math.imul(U0,_0)|0,c=c+Math.imul(X0,g0)|0,h=h+Math.imul(X0,_0)|0,f=f+Math.imul(Z0,x0)|0,c=c+Math.imul(Z0,B0)|0,c=c+Math.imul(G0,x0)|0,h=h+Math.imul(G0,B0)|0,f=f+Math.imul($0,w0)|0,c=c+Math.imul($0,p0)|0,c=c+Math.imul(Q0,w0)|0,h=h+Math.imul(Q0,p0)|0,f=f+Math.imul(e,c0)|0,c=c+Math.imul(e,h0)|0,c=c+Math.imul(r,c0)|0,h=h+Math.imul(r,h0)|0,f=f+Math.imul(t,b0)|0,c=c+Math.imul(t,l0)|0,c=c+Math.imul(m,b0)|0,h=h+Math.imul(m,l0)|0,f=f+Math.imul(u,u0)|0,c=c+Math.imul(u,n0)|0,c=c+Math.imul(n,u0)|0,h=h+Math.imul(n,n0)|0;var Z$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,f=Math.imul(W0,M0),c=Math.imul(W0,S0),c=c+Math.imul(E0,M0)|0,h=Math.imul(E0,S0),f=f+Math.imul(F0,q0)|0,c=c+Math.imul(F0,j0)|0,c=c+Math.imul(A0,q0)|0,h=h+Math.imul(A0,j0)|0,f=f+Math.imul(I0,g0)|0,c=c+Math.imul(I0,_0)|0,c=c+Math.imul(O0,g0)|0,h=h+Math.imul(O0,_0)|0,f=f+Math.imul(U0,x0)|0,c=c+Math.imul(U0,B0)|0,c=c+Math.imul(X0,x0)|0,h=h+Math.imul(X0,B0)|0,f=f+Math.imul(Z0,w0)|0,c=c+Math.imul(Z0,p0)|0,c=c+Math.imul(G0,w0)|0,h=h+Math.imul(G0,p0)|0,f=f+Math.imul($0,c0)|0,c=c+Math.imul($0,h0)|0,c=c+Math.imul(Q0,c0)|0,h=h+Math.imul(Q0,h0)|0,f=f+Math.imul(e,b0)|0,c=c+Math.imul(e,l0)|0,c=c+Math.imul(r,b0)|0,h=h+Math.imul(r,l0)|0,f=f+Math.imul(t,u0)|0,c=c+Math.imul(t,n0)|0,c=c+Math.imul(m,u0)|0,h=h+Math.imul(m,n0)|0;var G$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(G$>>>26)|0,G$&=67108863,f=Math.imul(W0,q0),c=Math.imul(W0,j0),c=c+Math.imul(E0,q0)|0,h=Math.imul(E0,j0),f=f+Math.imul(F0,g0)|0,c=c+Math.imul(F0,_0)|0,c=c+Math.imul(A0,g0)|0,h=h+Math.imul(A0,_0)|0,f=f+Math.imul(I0,x0)|0,c=c+Math.imul(I0,B0)|0,c=c+Math.imul(O0,x0)|0,h=h+Math.imul(O0,B0)|0,f=f+Math.imul(U0,w0)|0,c=c+Math.imul(U0,p0)|0,c=c+Math.imul(X0,w0)|0,h=h+Math.imul(X0,p0)|0,f=f+Math.imul(Z0,c0)|0,c=c+Math.imul(Z0,h0)|0,c=c+Math.imul(G0,c0)|0,h=h+Math.imul(G0,h0)|0,f=f+Math.imul($0,b0)|0,c=c+Math.imul($0,l0)|0,c=c+Math.imul(Q0,b0)|0,h=h+Math.imul(Q0,l0)|0,f=f+Math.imul(e,u0)|0,c=c+Math.imul(e,n0)|0,c=c+Math.imul(r,u0)|0,h=h+Math.imul(r,n0)|0;var V$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(V$>>>26)|0,V$&=67108863,f=Math.imul(W0,g0),c=Math.imul(W0,_0),c=c+Math.imul(E0,g0)|0,h=Math.imul(E0,_0),f=f+Math.imul(F0,x0)|0,c=c+Math.imul(F0,B0)|0,c=c+Math.imul(A0,x0)|0,h=h+Math.imul(A0,B0)|0,f=f+Math.imul(I0,w0)|0,c=c+Math.imul(I0,p0)|0,c=c+Math.imul(O0,w0)|0,h=h+Math.imul(O0,p0)|0,f=f+Math.imul(U0,c0)|0,c=c+Math.imul(U0,h0)|0,c=c+Math.imul(X0,c0)|0,h=h+Math.imul(X0,h0)|0,f=f+Math.imul(Z0,b0)|0,c=c+Math.imul(Z0,l0)|0,c=c+Math.imul(G0,b0)|0,h=h+Math.imul(G0,l0)|0,f=f+Math.imul($0,u0)|0,c=c+Math.imul($0,n0)|0,c=c+Math.imul(Q0,u0)|0,h=h+Math.imul(Q0,n0)|0;var U$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(U$>>>26)|0,U$&=67108863,f=Math.imul(W0,x0),c=Math.imul(W0,B0),c=c+Math.imul(E0,x0)|0,h=Math.imul(E0,B0),f=f+Math.imul(F0,w0)|0,c=c+Math.imul(F0,p0)|0,c=c+Math.imul(A0,w0)|0,h=h+Math.imul(A0,p0)|0,f=f+Math.imul(I0,c0)|0,c=c+Math.imul(I0,h0)|0,c=c+Math.imul(O0,c0)|0,h=h+Math.imul(O0,h0)|0,f=f+Math.imul(U0,b0)|0,c=c+Math.imul(U0,l0)|0,c=c+Math.imul(X0,b0)|0,h=h+Math.imul(X0,l0)|0,f=f+Math.imul(Z0,u0)|0,c=c+Math.imul(Z0,n0)|0,c=c+Math.imul(G0,u0)|0,h=h+Math.imul(G0,n0)|0;var X$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(X$>>>26)|0,X$&=67108863,f=Math.imul(W0,w0),c=Math.imul(W0,p0),c=c+Math.imul(E0,w0)|0,h=Math.imul(E0,p0),f=f+Math.imul(F0,c0)|0,c=c+Math.imul(F0,h0)|0,c=c+Math.imul(A0,c0)|0,h=h+Math.imul(A0,h0)|0,f=f+Math.imul(I0,b0)|0,c=c+Math.imul(I0,l0)|0,c=c+Math.imul(O0,b0)|0,h=h+Math.imul(O0,l0)|0,f=f+Math.imul(U0,u0)|0,c=c+Math.imul(U0,n0)|0,c=c+Math.imul(X0,u0)|0,h=h+Math.imul(X0,n0)|0;var K$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(K$>>>26)|0,K$&=67108863,f=Math.imul(W0,c0),c=Math.imul(W0,h0),c=c+Math.imul(E0,c0)|0,h=Math.imul(E0,h0),f=f+Math.imul(F0,b0)|0,c=c+Math.imul(F0,l0)|0,c=c+Math.imul(A0,b0)|0,h=h+Math.imul(A0,l0)|0,f=f+Math.imul(I0,u0)|0,c=c+Math.imul(I0,n0)|0,c=c+Math.imul(O0,u0)|0,h=h+Math.imul(O0,n0)|0;var I$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(I$>>>26)|0,I$&=67108863,f=Math.imul(W0,b0),c=Math.imul(W0,l0),c=c+Math.imul(E0,b0)|0,h=Math.imul(E0,l0),f=f+Math.imul(F0,u0)|0,c=c+Math.imul(F0,n0)|0,c=c+Math.imul(A0,u0)|0,h=h+Math.imul(A0,n0)|0;var O$=(p+f|0)+((c&8191)<<13)|0;p=(h+(c>>>13)|0)+(O$>>>26)|0,O$&=67108863,f=Math.imul(W0,u0),c=Math.imul(W0,n0),c=c+Math.imul(E0,u0)|0,h=Math.imul(E0,n0);var J$=(p+f|0)+((c&8191)<<13)|0;return p=(h+(c>>>13)|0)+(J$>>>26)|0,J$&=67108863,w[0]=s0,w[1]=t0,w[2]=m0,w[3]=a0,w[4]=e0,w[5]=r0,w[6]=i0,w[7]=$$,w[8]=Q$,w[9]=Y$,w[10]=Z$,w[11]=G$,w[12]=V$,w[13]=U$,w[14]=X$,w[15]=K$,w[16]=I$,w[17]=O$,w[18]=J$,p!==0&&(w[19]=p,x.length++),x};Math.imul||(C=D);function L(_,N,x){x.negative=N.negative^_.negative,x.length=_.length+N.length;for(var B=0,y=0,w=0;w<x.length-1;w++){var p=y;y=0;for(var f=B&67108863,c=Math.min(w,N.length-1),h=Math.max(0,w-_.length+1);h<=c;h++){var d=w-h,b=_.words[d]|0,l=N.words[h]|0,o=b*l,u=o&67108863;p=p+(o/67108864|0)|0,u=u+f|0,f=u&67108863,p=p+(u>>>26)|0,y+=p>>>26,p&=67108863}x.words[w]=f,B=p,p=y}return B!==0?x.words[w]=B:x.length--,x._strip()}function R(_,N,x){return L(_,N,x)}U.prototype.mulTo=function(_,N){var x,B=this.length+_.length;return this.length===10&&_.length===10?x=C(this,_,N):B<63?x=D(this,_,N):B<1024?x=L(this,_,N):x=R(this,_,N),x};function P(_,N){this.x=_,this.y=N}P.prototype.makeRBT=function(_){for(var N=new Array(_),x=U.prototype._countBits(_)-1,B=0;B<_;B++)N[B]=this.revBin(B,x,_);return N},P.prototype.revBin=function(_,N,x){if(_===0||_===x-1)return _;for(var B=0,y=0;y<N;y++)B|=(_&1)<<N-y-1,_>>=1;return B},P.prototype.permute=function(_,N,x,B,y,w){for(var p=0;p<w;p++)B[p]=N[_[p]],y[p]=x[_[p]]},P.prototype.transform=function(_,N,x,B,y,w){this.permute(w,_,N,x,B,y);for(var p=1;p<y;p<<=1)for(var f=p<<1,c=Math.cos(2*Math.PI/f),h=Math.sin(2*Math.PI/f),d=0;d<y;d+=f)for(var b=c,l=h,o=0;o<p;o++){var u=x[d+o],n=B[d+o],s=x[d+o+p],t=B[d+o+p],m=b*s-l*t;t=b*t+l*s,s=m,x[d+o]=u+s,B[d+o]=n+t,x[d+o+p]=u-s,B[d+o+p]=n-t,o!==f&&(m=c*b-h*l,l=c*l+h*b,b=m)}},P.prototype.guessLen13b=function(_,N){var x=Math.max(N,_)|1,B=x&1,y=0;for(x=x/2|0;x;x=x>>>1)y++;return 1<<y+1+B},P.prototype.conjugate=function(_,N,x){if(!(x<=1))for(var B=0;B<x/2;B++){var y=_[B];_[B]=_[x-B-1],_[x-B-1]=y,y=N[B],N[B]=-N[x-B-1],N[x-B-1]=-y}},P.prototype.normalize13b=function(_,N){for(var x=0,B=0;B<N/2;B++){var y=Math.round(_[2*B+1]/N)*8192+Math.round(_[2*B]/N)+x;_[B]=y&67108863,y<67108864?x=0:x=y/67108864|0}return _},P.prototype.convert13b=function(_,N,x,B){for(var y=0,w=0;w<N;w++)y=y+(_[w]|0),x[2*w]=y&8191,y=y>>>13,x[2*w+1]=y&8191,y=y>>>13;for(w=2*N;w<B;++w)x[w]=0;G(y===0),G((y&-8192)===0)},P.prototype.stub=function(_){for(var N=new Array(_),x=0;x<_;x++)N[x]=0;return N},P.prototype.mulp=function(_,N,x){var B=2*this.guessLen13b(_.length,N.length),y=this.makeRBT(B),w=this.stub(B),p=new Array(B),f=new Array(B),c=new Array(B),h=new Array(B),d=new Array(B),b=new Array(B),l=x.words;l.length=B,this.convert13b(_.words,_.length,p,B),this.convert13b(N.words,N.length,h,B),this.transform(p,w,f,c,B,y),this.transform(h,w,d,b,B,y);for(var o=0;o<B;o++){var u=f[o]*d[o]-c[o]*b[o];c[o]=f[o]*b[o]+c[o]*d[o],f[o]=u}return this.conjugate(f,c,B),this.transform(f,c,l,w,B,y),this.conjugate(l,w,B),this.normalize13b(l,B),x.negative=_.negative^N.negative,x.length=_.length+N.length,x._strip()},U.prototype.mul=function(_){var N=new U(null);return N.words=new Array(this.length+_.length),this.mulTo(_,N)},U.prototype.mulf=function(_){var N=new U(null);return N.words=new Array(this.length+_.length),R(this,_,N)},U.prototype.imul=function(_){return this.clone().mulTo(_,this)},U.prototype.imuln=function(_){var N=_<0;N&&(_=-_),G(typeof _=="number"),G(_<67108864);for(var x=0,B=0;B<this.length;B++){var y=(this.words[B]|0)*_,w=(y&67108863)+(x&67108863);x>>=26,x+=y/67108864|0,x+=w>>>26,this.words[B]=w&67108863}return x!==0&&(this.words[B]=x,this.length++),N?this.ineg():this},U.prototype.muln=function(_){return this.clone().imuln(_)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(_){var N=T(_);if(N.length===0)return new U(1);for(var x=this,B=0;B<N.length&&N[B]===0;B++,x=x.sqr());if(++B<N.length)for(var y=x.sqr();B<N.length;B++,y=y.sqr())N[B]!==0&&(x=x.mul(y));return x},U.prototype.iushln=function(_){G(typeof _=="number"&&_>=0);var N=_%26,x=(_-N)/26,B=67108863>>>26-N<<26-N,y;if(N!==0){var w=0;for(y=0;y<this.length;y++){var p=this.words[y]&B,f=(this.words[y]|0)-p<<N;this.words[y]=f|w,w=p>>>26-N}w&&(this.words[y]=w,this.length++)}if(x!==0){for(y=this.length-1;y>=0;y--)this.words[y+x]=this.words[y];for(y=0;y<x;y++)this.words[y]=0;this.length+=x}return this._strip()},U.prototype.ishln=function(_){return G(this.negative===0),this.iushln(_)},U.prototype.iushrn=function(_,N,x){G(typeof _=="number"&&_>=0);var B;N?B=(N-N%26)/26:B=0;var y=_%26,w=Math.min((_-y)/26,this.length),p=67108863^67108863>>>y<<y,f=x;if(B-=w,B=Math.max(0,B),f){for(var c=0;c<w;c++)f.words[c]=this.words[c];f.length=w}if(w!==0)if(this.length>w)for(this.length-=w,c=0;c<this.length;c++)this.words[c]=this.words[c+w];else this.words[0]=0,this.length=1;var h=0;for(c=this.length-1;c>=0&&(h!==0||c>=B);c--){var d=this.words[c]|0;this.words[c]=h<<26-y|d>>>y,h=d&p}return f&&h!==0&&(f.words[f.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},U.prototype.ishrn=function(_,N,x){return G(this.negative===0),this.iushrn(_,N,x)},U.prototype.shln=function(_){return this.clone().ishln(_)},U.prototype.ushln=function(_){return this.clone().iushln(_)},U.prototype.shrn=function(_){return this.clone().ishrn(_)},U.prototype.ushrn=function(_){return this.clone().iushrn(_)},U.prototype.testn=function(_){G(typeof _=="number"&&_>=0);var N=_%26,x=(_-N)/26,B=1<<N;if(this.length<=x)return!1;var y=this.words[x];return!!(y&B)},U.prototype.imaskn=function(_){G(typeof _=="number"&&_>=0);var N=_%26,x=(_-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(N!==0&&x++,this.length=Math.min(x,this.length),N!==0){var B=67108863^67108863>>>N<<N;this.words[this.length-1]&=B}return this._strip()},U.prototype.maskn=function(_){return this.clone().imaskn(_)},U.prototype.iaddn=function(_){return G(typeof _=="number"),G(_<67108864),_<0?this.isubn(-_):this.negative!==0?this.length===1&&(this.words[0]|0)<=_?(this.words[0]=_-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(_),this.negative=1,this):this._iaddn(_)},U.prototype._iaddn=function(_){this.words[0]+=_;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(_){if(G(typeof _=="number"),G(_<67108864),_<0)return this.iaddn(-_);if(this.negative!==0)return this.negative=0,this.iaddn(_),this.negative=1,this;if(this.words[0]-=_,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this._strip()},U.prototype.addn=function(_){return this.clone().iaddn(_)},U.prototype.subn=function(_){return this.clone().isubn(_)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(_,N,x){var B=_.length+x,y;this._expand(B);var w,p=0;for(y=0;y<_.length;y++){w=(this.words[y+x]|0)+p;var f=(_.words[y]|0)*N;w-=f&67108863,p=(w>>26)-(f/67108864|0),this.words[y+x]=w&67108863}for(;y<this.length-x;y++)w=(this.words[y+x]|0)+p,p=w>>26,this.words[y+x]=w&67108863;if(p===0)return this._strip();for(G(p===-1),p=0,y=0;y<this.length;y++)w=-(this.words[y]|0)+p,p=w>>26,this.words[y]=w&67108863;return this.negative=1,this._strip()},U.prototype._wordDiv=function(_,N){var x=this.length-_.length,B=this.clone(),y=_,w=y.words[y.length-1]|0,p=this._countBits(w);x=26-p,x!==0&&(y=y.ushln(x),B.iushln(x),w=y.words[y.length-1]|0);var f=B.length-y.length,c;if(N!=="mod"){c=new U(null),c.length=f+1,c.words=new Array(c.length);for(var h=0;h<c.length;h++)c.words[h]=0}var d=B.clone()._ishlnsubmul(y,1,f);d.negative===0&&(B=d,c&&(c.words[f]=1));for(var b=f-1;b>=0;b--){var l=(B.words[y.length+b]|0)*67108864+(B.words[y.length+b-1]|0);for(l=Math.min(l/w|0,67108863),B._ishlnsubmul(y,l,b);B.negative!==0;)l--,B.negative=0,B._ishlnsubmul(y,1,b),B.isZero()||(B.negative^=1);c&&(c.words[b]=l)}return c&&c._strip(),B._strip(),N!=="div"&&x!==0&&B.iushrn(x),{div:c||null,mod:B}},U.prototype.divmod=function(_,N,x){if(G(!_.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var B,y,w;return this.negative!==0&&_.negative===0?(w=this.neg().divmod(_,N),N!=="mod"&&(B=w.div.neg()),N!=="div"&&(y=w.mod.neg(),x&&y.negative!==0&&y.iadd(_)),{div:B,mod:y}):this.negative===0&&_.negative!==0?(w=this.divmod(_.neg(),N),N!=="mod"&&(B=w.div.neg()),{div:B,mod:w.mod}):(this.negative&_.negative)!==0?(w=this.neg().divmod(_.neg(),N),N!=="div"&&(y=w.mod.neg(),x&&y.negative!==0&&y.isub(_)),{div:w.div,mod:y}):_.length>this.length||this.cmp(_)<0?{div:new U(0),mod:this}:_.length===1?N==="div"?{div:this.divn(_.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modrn(_.words[0]))}:{div:this.divn(_.words[0]),mod:new U(this.modrn(_.words[0]))}:this._wordDiv(_,N)},U.prototype.div=function(_){return this.divmod(_,"div",!1).div},U.prototype.mod=function(_){return this.divmod(_,"mod",!1).mod},U.prototype.umod=function(_){return this.divmod(_,"mod",!0).mod},U.prototype.divRound=function(_){var N=this.divmod(_);if(N.mod.isZero())return N.div;var x=N.div.negative!==0?N.mod.isub(_):N.mod,B=_.ushrn(1),y=_.andln(1),w=x.cmp(B);return w<0||y===1&&w===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modrn=function(_){var N=_<0;N&&(_=-_),G(_<=67108863);for(var x=(1<<26)%_,B=0,y=this.length-1;y>=0;y--)B=(x*B+(this.words[y]|0))%_;return N?-B:B},U.prototype.modn=function(_){return this.modrn(_)},U.prototype.idivn=function(_){var N=_<0;N&&(_=-_),G(_<=67108863);for(var x=0,B=this.length-1;B>=0;B--){var y=(this.words[B]|0)+x*67108864;this.words[B]=y/_|0,x=y%_}return this._strip(),N?this.ineg():this},U.prototype.divn=function(_){return this.clone().idivn(_)},U.prototype.egcd=function(_){G(_.negative===0),G(!_.isZero());var N=this,x=_.clone();N.negative!==0?N=N.umod(_):N=N.clone();for(var B=new U(1),y=new U(0),w=new U(0),p=new U(1),f=0;N.isEven()&&x.isEven();)N.iushrn(1),x.iushrn(1),++f;for(var c=x.clone(),h=N.clone();!N.isZero();){for(var d=0,b=1;(N.words[0]&b)===0&&d<26;++d,b<<=1);if(d>0)for(N.iushrn(d);d-- >0;)(B.isOdd()||y.isOdd())&&(B.iadd(c),y.isub(h)),B.iushrn(1),y.iushrn(1);for(var l=0,o=1;(x.words[0]&o)===0&&l<26;++l,o<<=1);if(l>0)for(x.iushrn(l);l-- >0;)(w.isOdd()||p.isOdd())&&(w.iadd(c),p.isub(h)),w.iushrn(1),p.iushrn(1);N.cmp(x)>=0?(N.isub(x),B.isub(w),y.isub(p)):(x.isub(N),w.isub(B),p.isub(y))}return{a:w,b:p,gcd:x.iushln(f)}},U.prototype._invmp=function(_){G(_.negative===0),G(!_.isZero());var N=this,x=_.clone();N.negative!==0?N=N.umod(_):N=N.clone();for(var B=new U(1),y=new U(0),w=x.clone();N.cmpn(1)>0&&x.cmpn(1)>0;){for(var p=0,f=1;(N.words[0]&f)===0&&p<26;++p,f<<=1);if(p>0)for(N.iushrn(p);p-- >0;)B.isOdd()&&B.iadd(w),B.iushrn(1);for(var c=0,h=1;(x.words[0]&h)===0&&c<26;++c,h<<=1);if(c>0)for(x.iushrn(c);c-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);N.cmp(x)>=0?(N.isub(x),B.isub(y)):(x.isub(N),y.isub(B))}var d;return N.cmpn(1)===0?d=B:d=y,d.cmpn(0)<0&&d.iadd(_),d},U.prototype.gcd=function(_){if(this.isZero())return _.abs();if(_.isZero())return this.abs();var N=this.clone(),x=_.clone();N.negative=0,x.negative=0;for(var B=0;N.isEven()&&x.isEven();B++)N.iushrn(1),x.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;x.isEven();)x.iushrn(1);var y=N.cmp(x);if(y<0){var w=N;N=x,x=w}else if(y===0||x.cmpn(1)===0)break;N.isub(x)}while(!0);return x.iushln(B)},U.prototype.invm=function(_){return this.egcd(_).a.umod(_)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(_){return this.words[0]&_},U.prototype.bincn=function(_){G(typeof _=="number");var N=_%26,x=(_-N)/26,B=1<<N;if(this.length<=x)return this._expand(x+1),this.words[x]|=B,this;for(var y=B,w=x;y!==0&&w<this.length;w++){var p=this.words[w]|0;p+=y,y=p>>>26,p&=67108863,this.words[w]=p}return y!==0&&(this.words[w]=y,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(_){var N=_<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this._strip();var x;if(this.length>1)x=1;else{N&&(_=-_),G(_<=67108863,"Number is too big");var B=this.words[0]|0;x=B===_?0:B<_?-1:1}return this.negative!==0?-x|0:x},U.prototype.cmp=function(_){if(this.negative!==0&&_.negative===0)return-1;if(this.negative===0&&_.negative!==0)return 1;var N=this.ucmp(_);return this.negative!==0?-N|0:N},U.prototype.ucmp=function(_){if(this.length>_.length)return 1;if(this.length<_.length)return-1;for(var N=0,x=this.length-1;x>=0;x--){var B=this.words[x]|0,y=_.words[x]|0;if(B!==y){B<y?N=-1:B>y&&(N=1);break}}return N},U.prototype.gtn=function(_){return this.cmpn(_)===1},U.prototype.gt=function(_){return this.cmp(_)===1},U.prototype.gten=function(_){return this.cmpn(_)>=0},U.prototype.gte=function(_){return this.cmp(_)>=0},U.prototype.ltn=function(_){return this.cmpn(_)===-1},U.prototype.lt=function(_){return this.cmp(_)===-1},U.prototype.lten=function(_){return this.cmpn(_)<=0},U.prototype.lte=function(_){return this.cmp(_)<=0},U.prototype.eqn=function(_){return this.cmpn(_)===0},U.prototype.eq=function(_){return this.cmp(_)===0},U.red=function(_){return new k(_)},U.prototype.toRed=function(_){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),_.convertTo(this)._forceRed(_)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(_){return this.red=_,this},U.prototype.forceRed=function(_){return G(!this.red,"Already a number in reduction context"),this._forceRed(_)},U.prototype.redAdd=function(_){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,_)},U.prototype.redIAdd=function(_){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,_)},U.prototype.redSub=function(_){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,_)},U.prototype.redISub=function(_){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,_)},U.prototype.redShl=function(_){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,_)},U.prototype.redMul=function(_){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,_),this.red.mul(this,_)},U.prototype.redIMul=function(_){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,_),this.red.imul(this,_)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(_){return G(this.red&&!_.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,_)};var z={k256:null,p224:null,p192:null,p25519:null};function M(_,N){this.name=_,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}M.prototype._tmp=function(){var _=new U(null);return _.words=new Array(Math.ceil(this.n/13)),_},M.prototype.ireduce=function(_){var N=_,x;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),x=N.bitLength();while(x>this.n);var B=x<this.n?-1:N.ucmp(this.p);return B===0?(N.words[0]=0,N.length=1):B>0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},M.prototype.split=function(_,N){_.iushrn(this.n,0,N)},M.prototype.imulK=function(_){return _.imul(this.k)};function S(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(S,M),S.prototype.split=function(_,N){for(var x=4194303,B=Math.min(_.length,9),y=0;y<B;y++)N.words[y]=_.words[y];if(N.length=B,_.length<=9){_.words[0]=0,_.length=1;return}var w=_.words[9];for(N.words[N.length++]=w&x,y=10;y<_.length;y++){var p=_.words[y]|0;_.words[y-10]=(p&x)<<4|w>>>22,w=p}w>>>=22,_.words[y-10]=w,w===0&&_.length>10?_.length-=10:_.length-=9},S.prototype.imulK=function(_){_.words[_.length]=0,_.words[_.length+1]=0,_.length+=2;for(var N=0,x=0;x<_.length;x++){var B=_.words[x]|0;N+=B*977,_.words[x]=N&67108863,N=B*64+(N/67108864|0)}return _.words[_.length-1]===0&&(_.length--,_.words[_.length-1]===0&&_.length--),_};function v(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(v,M);function q(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(q,M);function j(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(j,M),j.prototype.imulK=function(_){for(var N=0,x=0;x<_.length;x++){var B=(_.words[x]|0)*19+N,y=B&67108863;B>>>=26,_.words[x]=y,N=B}return N!==0&&(_.words[_.length++]=N),_},U._prime=function(_){if(z[_])return z[_];var N;if(_==="k256")N=new S;else if(_==="p224")N=new v;else if(_==="p192")N=new q;else if(_==="p25519")N=new j;else throw new Error("Unknown prime "+_);return z[_]=N,N};function k(_){if(typeof _=="string"){var N=U._prime(_);this.m=N.p,this.prime=N}else G(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}k.prototype._verify1=function(_){G(_.negative===0,"red works only with positives"),G(_.red,"red works only with red numbers")},k.prototype._verify2=function(_,N){G((_.negative|N.negative)===0,"red works only with positives"),G(_.red&&_.red===N.red,"red works only with red numbers")},k.prototype.imod=function(_){return this.prime?this.prime.ireduce(_)._forceRed(this):(J(_,_.umod(this.m)._forceRed(this)),_)},k.prototype.neg=function(_){return _.isZero()?_.clone():this.m.sub(_)._forceRed(this)},k.prototype.add=function(_,N){this._verify2(_,N);var x=_.add(N);return x.cmp(this.m)>=0&&x.isub(this.m),x._forceRed(this)},k.prototype.iadd=function(_,N){this._verify2(_,N);var x=_.iadd(N);return x.cmp(this.m)>=0&&x.isub(this.m),x},k.prototype.sub=function(_,N){this._verify2(_,N);var x=_.sub(N);return x.cmpn(0)<0&&x.iadd(this.m),x._forceRed(this)},k.prototype.isub=function(_,N){this._verify2(_,N);var x=_.isub(N);return x.cmpn(0)<0&&x.iadd(this.m),x},k.prototype.shl=function(_,N){return this._verify1(_),this.imod(_.ushln(N))},k.prototype.imul=function(_,N){return this._verify2(_,N),this.imod(_.imul(N))},k.prototype.mul=function(_,N){return this._verify2(_,N),this.imod(_.mul(N))},k.prototype.isqr=function(_){return this.imul(_,_.clone())},k.prototype.sqr=function(_){return this.mul(_,_)},k.prototype.sqrt=function(_){if(_.isZero())return _.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var x=this.m.add(new U(1)).iushrn(2);return this.pow(_,x)}for(var B=this.m.subn(1),y=0;!B.isZero()&&B.andln(1)===0;)y++,B.iushrn(1);G(!B.isZero());var w=new U(1).toRed(this),p=w.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new U(2*c*c).toRed(this);this.pow(c,f).cmp(p)!==0;)c.redIAdd(p);for(var h=this.pow(c,B),d=this.pow(_,B.addn(1).iushrn(1)),b=this.pow(_,B),l=y;b.cmp(w)!==0;){for(var o=b,u=0;o.cmp(w)!==0;u++)o=o.redSqr();G(u<l);var n=this.pow(h,new U(1).iushln(l-u-1));d=d.redMul(n),h=n.redSqr(),b=b.redMul(h),l=u}return d},k.prototype.invm=function(_){var N=_._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},k.prototype.pow=function(_,N){if(N.isZero())return new U(1).toRed(this);if(N.cmpn(1)===0)return _.clone();var x=4,B=new Array(1<<x);B[0]=new U(1).toRed(this),B[1]=_;for(var y=2;y<B.length;y++)B[y]=this.mul(B[y-1],_);var w=B[0],p=0,f=0,c=N.bitLength()%26;for(c===0&&(c=26),y=N.length-1;y>=0;y--){for(var h=N.words[y],d=c-1;d>=0;d--){var b=h>>d&1;if(w!==B[0]&&(w=this.sqr(w)),b===0&&p===0){f=0;continue}p<<=1,p|=b,f++,!(f!==x&&(y!==0||d!==0))&&(w=this.mul(w,B[p]),f=0,p=0)}c=26}return w},k.prototype.convertTo=function(_){var N=_.umod(this.m);return N===_?N.clone():N},k.prototype.convertFrom=function(_){var N=_.clone();return N.red=null,N},U.mont=function(_){return new g(_)};function g(_){k.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(g,k),g.prototype.convertTo=function(_){return this.imod(_.ushln(this.shift))},g.prototype.convertFrom=function(_){var N=this.imod(_.mul(this.rinv));return N.red=null,N},g.prototype.imul=function(_,N){if(_.isZero()||N.isZero())return _.words[0]=0,_.length=1,_;var x=_.imul(N),B=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=x.isub(B).iushrn(this.shift),w=y;return y.cmp(this.m)>=0?w=y.isub(this.m):y.cmpn(0)<0&&(w=y.iadd(this.m)),w._forceRed(this)},g.prototype.mul=function(_,N){if(_.isZero()||N.isZero())return new U(0)._forceRed(this);var x=_.mul(N),B=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=x.isub(B).iushrn(this.shift),w=y;return y.cmp(this.m)>=0?w=y.isub(this.m):y.cmpn(0)<0&&(w=y.iadd(this.m)),w._forceRed(this)},g.prototype.invm=function(_){var N=this.imod(_._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof Q>"u"||Q,$)}}),hQ=q$({"node_modules/browserify-rsa/index.js"($,Q){var Y=cQ(),Z=g$();function G(X){var K=V(X),I=K.toRed(Y.mont(X.modulus)).redPow(new Y(X.publicExponent)).fromRed();return{blinder:I,unblinder:K.invm(X.modulus)}}function V(X){var K=X.modulus.byteLength(),I;do I=new Y(Z(K));while(I.cmp(X.modulus)>=0||!I.umod(X.prime1)||!I.umod(X.prime2));return I}function U(X,K){var I=G(K),O=K.modulus.byteLength(),J=new Y(X).mul(I.blinder).umod(K.modulus),F=J.toRed(Y.mont(K.prime1)),A=J.toRed(Y.mont(K.prime2)),H=K.coefficient,W=K.prime1,E=K.prime2,T=F.redPow(K.exponent1).fromRed(),D=A.redPow(K.exponent2).fromRed(),C=T.isub(D).imul(H).umod(W).imul(E);return D.iadd(C).imul(I.unblinder).umod(K.modulus).toArrayLike(F$,"be",O)}U.getr=V,Q.exports=U}}),dQ=q$({"node_modules/elliptic/package.json"($,Q){Q.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}}),bQ=q$({"node_modules/elliptic/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X=F$;U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_<j.length&&(k===16?this._parseHex(j,_,g):(this._parseBase(j,k,_),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N,x,B=0;if(g==="be")for(_=j.length-1,N=0;_>=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_<j.length;_+=3)x=j[_]|j[_+1]<<8|j[_+2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N=0,x=0,B;if(g==="be")for(_=j.length-1;_>=k;_-=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_<j.length;_+=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B<x;B++){var y=j.charCodeAt(B)-48;N*=_,y>=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p<y;p+=_)w=O(j,p,p+_,k),this.imuln(N),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var f=1;for(w=O(j,p,j.length,k),p=0;p<B;p++)f*=k;this.imuln(f),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x<this.length;x++){var B=this.words[x],y=((B<<_|N)&16777215).toString(16);N=B>>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w<N;w++)B[w]=0}else{for(w=0;w<N-_;w++)B[w]=0;for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[N-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var _=g/26|0,N=g%26;k[g]=(j.words[_]&1<<N)>>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_<g.length;_++)this.words[_]=k.words[_]^g.words[_];if(this!==k)for(;_<k.length;_++)this.words[_]=k.words[_];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_<k;_++)this.words[_]=~this.words[_]&67108863;return g>0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x<g.length;x++)k=(g.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;x<g.length;x++)this.words[x]=g.words[x];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B<N.length;B++)k=(_.words[B]|0)-(N.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x<g.length-1;x++){var B=N;N=0;for(var y=_&67108863,w=Math.min(x,k.length-1),p=Math.max(0,x-j.length+1);p<=w;p++){var f=x-p,c=j.words[f]|0,h=k.words[p]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_<j;_++)k[_]=this.revBin(_,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var _=0,N=0;N<k;N++)_|=(j&1)<<k-N-1,j>>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B<x;B++)_[B]=k[j[B]],N[B]=g[j[B]]},C.prototype.transform=function(j,k,g,_,N,x){this.permute(x,j,k,g,_,N);for(var B=1;B<N;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),p=Math.sin(2*Math.PI/y),f=0;f<N;f+=y)for(var c=w,h=p,d=0;d<B;d++){var b=g[f+d],l=_[f+d],o=g[f+d+B],u=_[f+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[f+d]=b+o,_[f+d]=l+u,g[f+d+B]=b-o,_[f+d+B]=l-u,d!==y&&(n=w*c-p*h,h=w*h+p*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,_=g&1,N=0;for(g=g/2|0;g;g=g>>>1)N++;return 1<<N+1+_},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var _=0;_<g/2;_++){var N=j[_];j[_]=j[g-_-1],j[g-_-1]=N,N=k[_],k[_]=-k[g-_-1],k[g-_-1]=-N}},C.prototype.normalize13b=function(j,k){for(var g=0,_=0;_<k/2;_++){var N=Math.round(j[2*_+1]/k)*8192+Math.round(j[2*_]/k)+g;j[_]=N&67108863,N<67108864?g=0:g=N/67108864|0}return j},C.prototype.convert13b=function(j,k,g,_){for(var N=0,x=0;x<k;x++)N=N+(j[x]|0),g[2*x]=N&8191,N=N>>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var _=2*this.guessLen13b(j.length,k.length),N=this.makeRBT(_),x=this.stub(_),B=new Array(_),y=new Array(_),w=new Array(_),p=new Array(_),f=new Array(_),c=new Array(_),h=g.words;h.length=_,this.convert13b(j.words,j.length,B,_),this.convert13b(k.words,k.length,p,_),this.transform(B,x,y,w,_,N),this.transform(p,x,f,c,_,N);for(var d=0;d<_;d++){var b=y[d]*f[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*f[d],y[d]=b}return this.conjugate(y,w,_),this.transform(y,w,h,x,_,N),this.conjugate(h,x,_),this.normalize13b(h,_),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var _=(this.words[g]|0)*j,N=(_&67108863)+(k&67108863);k>>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_<k.length&&k[_]===0;_++,g=g.sqr());if(++_<k.length)for(var N=g.sqr();_<k.length;_++,N=N.sqr())k[_]!==0&&(g=g.mul(N));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N<this.length;N++){var B=this.words[N]&_,y=(this.words[N]|0)-B<<k;this.words[N]=y|x,x=B>>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N<g;N++)this.words[N]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<<N,y=g;if(_-=x,_=Math.max(0,_),y){for(var w=0;w<x;w++)y.words[w]=this.words[w];y.length=x}if(x!==0)if(this.length>x)for(this.length-=x,w=0;w<this.length;w++)this.words[w]=this.words[w+x];else this.words[0]=0,this.length=1;var p=0;for(w=this.length-1;w>=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return!1;var N=this.words[g];return!!(N&_)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<<k;this.words[this.length-1]&=_}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var _=j.length+g,N;this._expand(_);var x,B=0;for(N=0;N<j.length;N++){x=(this.words[N+g]|0)+B;var y=(j.words[N]|0)*k;x-=y&67108863,B=(x>>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N<this.length-g;N++)x=(this.words[N+g]|0)+B,B=x>>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+B,B=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p<w.length;p++)w.words[p]=0}var f=_.clone()._ishlnsubmul(N,1,y);f.negative===0&&(_=f,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=_,this;for(var N=_,x=g;N!==0&&x<this.length;x++){var B=this.words[x]|0;B+=N,N=B>>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_<N?k=-1:_>N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g<this.n?-1:k.ucmp(this.p);return _===0?(k.words[0]=0,k.length=1):_>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N<j.length;N++){var B=j.words[N]|0;j.words[N-10]=(B&g)<<4|x>>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var _=j.words[g]|0;k+=_*977,j.words[g]=k&67108863,k=_*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var _=(j.words[g]|0)*19+k,N=_&67108863;_>>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(p,new U(1).iushln(h-b-1));f=f.redMul(l),p=l.redSqr(),c=c.redMul(p),h=b}return f},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,_=new Array(1<<g);_[0]=new U(1).toRed(this),_[1]=j;for(var N=2;N<_.length;N++)_[N]=this.mul(_[N-1],j);var x=_[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),N=k.length-1;N>=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),lQ=q$({"node_modules/minimalistic-crypto-utils/lib/utils.js"($){var Q=$;function Y(V,U){if(Array.isArray(V))return V.slice();if(!V)return[];var X=[];if(typeof V!="string"){for(var K=0;K<V.length;K++)X[K]=V[K]|0;return X}if(U==="hex"){V=V.replace(/[^a-z0-9]+/gi,""),V.length%2!==0&&(V="0"+V);for(var K=0;K<V.length;K+=2)X.push(parseInt(V[K]+V[K+1],16))}else for(var K=0;K<V.length;K++){var I=V.charCodeAt(K),O=I>>8,J=I&255;O?X.push(O,J):X.push(J)}return X}Q.toArray=Y;function Z(V){return V.length===1?"0"+V:V}Q.zero2=Z;function G(V){for(var U="",X=0;X<V.length;X++)U+=Z(V[X].toString(16));return U}Q.toHex=G,Q.encode=function(V,U){return U==="hex"?G(V):V}}}),oQ=q$({"node_modules/elliptic/lib/elliptic/utils.js"($){var Q=$,Y=bQ(),Z=ZQ(),G=lQ();Q.assert=Z,Q.toArray=G.toArray,Q.zero2=G.zero2,Q.toHex=G.toHex,Q.encode=G.encode;function V(O,J,F){var A=new Array(Math.max(O.bitLength(),F)+1);A.fill(0);for(var H=1<<J+1,W=O.clone(),E=0;E<A.length;E++){var T,D=W.andln(H-1);W.isOdd()?(D>(H>>1)-1?T=(H>>1)-D:T=D,W.isubn(T)):T=0,A[E]=T,W.iushrn(1)}return A}Q.getNAF=V;function U(O,J){var F=[[],[]];O=O.clone(),J=J.clone();for(var A=0,H=0,W;O.cmpn(-A)>0||J.cmpn(-H)>0;){var E=O.andln(3)+A&3,T=J.andln(3)+H&3;E===3&&(E=-1),T===3&&(T=-1);var D;(E&1)===0?D=0:(W=O.andln(7)+A&7,(W===3||W===5)&&T===2?D=-E:D=E),F[0].push(D);var C;(T&1)===0?C=0:(W=J.andln(7)+H&7,(W===3||W===5)&&E===2?C=-T:C=T),F[1].push(C),2*A===D+1&&(A=1-A),2*H===C+1&&(H=1-H),O.iushrn(1),J.iushrn(1)}return F}Q.getJSF=U;function X(O,J,F){var A="_"+J;O.prototype[J]=function(){return this[A]!==void 0?this[A]:this[A]=F.call(this)}}Q.cachedProperty=X;function K(O){return typeof O=="string"?Q.toArray(O,"hex"):O}Q.parseBytes=K;function I(O){return new Y(O,"hex","le")}Q.intFromLE=I}}),uQ=q$({"node_modules/elliptic/lib/elliptic/curve/base.js"($,Q){var Y=bQ(),Z=oQ(),G=Z.getNAF,V=Z.getJSF,U=Z.assert;function X(I,O){this.type=I,this.p=new Y(O.p,16),this.red=O.prime?Y.red(O.prime):Y.mont(this.p),this.zero=new Y(0).toRed(this.red),this.one=new Y(1).toRed(this.red),this.two=new Y(2).toRed(this.red),this.n=O.n&&new Y(O.n,16),this.g=O.g&&this.pointFromJSON(O.g,O.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var J=this.n&&this.p.div(this.n);!J||J.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Q.exports=X,X.prototype.point=function(){throw new Error("Not implemented")},X.prototype.validate=function(){throw new Error("Not implemented")},X.prototype._fixedNafMul=function(I,O){U(I.precomputed);var J=I._getDoubles(),F=G(O,1,this._bitLength),A=(1<<J.step+1)-(J.step%2===0?2:1);A/=3;var H=[],W,E;for(W=0;W<F.length;W+=J.step){E=0;for(var T=W+J.step-1;T>=W;T--)E=(E<<1)+F[T];H.push(E)}for(var D=this.jpoint(null,null,null),C=this.jpoint(null,null,null),L=A;L>0;L--){for(W=0;W<H.length;W++)E=H[W],E===L?C=C.mixedAdd(J.points[W]):E===-L&&(C=C.mixedAdd(J.points[W].neg()));D=D.add(C)}return D.toP()},X.prototype._wnafMul=function(I,O){var J=4,F=I._getNAFPoints(J);J=F.wnd;for(var A=F.points,H=G(O,J,this._bitLength),W=this.jpoint(null,null,null),E=H.length-1;E>=0;E--){for(var T=0;E>=0&&H[E]===0;E--)T++;if(E>=0&&T++,W=W.dblp(T),E<0)break;var D=H[E];U(D!==0),I.type==="affine"?D>0?W=W.mixedAdd(A[D-1>>1]):W=W.mixedAdd(A[-D-1>>1].neg()):D>0?W=W.add(A[D-1>>1]):W=W.add(A[-D-1>>1].neg())}return I.type==="affine"?W.toP():W},X.prototype._wnafMulAdd=function(I,O,J,F,A){var H=this._wnafT1,W=this._wnafT2,E=this._wnafT3,T=0,D,C,L;for(D=0;D<F;D++){L=O[D];var R=L._getNAFPoints(I);H[D]=R.wnd,W[D]=R.points}for(D=F-1;D>=1;D-=2){var P=D-1,z=D;if(H[P]!==1||H[z]!==1){E[P]=G(J[P],H[P],this._bitLength),E[z]=G(J[z],H[z],this._bitLength),T=Math.max(E[P].length,T),T=Math.max(E[z].length,T);continue}var M=[O[P],null,null,O[z]];O[P].y.cmp(O[z].y)===0?(M[1]=O[P].add(O[z]),M[2]=O[P].toJ().mixedAdd(O[z].neg())):O[P].y.cmp(O[z].y.redNeg())===0?(M[1]=O[P].toJ().mixedAdd(O[z]),M[2]=O[P].add(O[z].neg())):(M[1]=O[P].toJ().mixedAdd(O[z]),M[2]=O[P].toJ().mixedAdd(O[z].neg()));var S=[-3,-1,-5,-7,0,7,5,1,3],v=V(J[P],J[z]);for(T=Math.max(v[0].length,T),E[P]=new Array(T),E[z]=new Array(T),C=0;C<T;C++){var q=v[0][C]|0,j=v[1][C]|0;E[P][C]=S[(q+1)*3+(j+1)],E[z][C]=0,W[P]=M}}var k=this.jpoint(null,null,null),g=this._wnafT4;for(D=T;D>=0;D--){for(var _=0;D>=0;){var N=!0;for(C=0;C<F;C++)g[C]=E[C][D]|0,g[C]!==0&&(N=!1);if(!N)break;_++,D--}if(D>=0&&_++,k=k.dblp(_),D<0)break;for(C=0;C<F;C++){var x=g[C];x!==0&&(x>0?L=W[C][x-1>>1]:x<0&&(L=W[C][-x-1>>1].neg()),L.type==="affine"?k=k.mixedAdd(L):k=k.add(L))}}for(D=0;D<F;D++)W[D]=null;return A?k:k.toP()};function K(I,O){this.curve=I,this.type=O,this.precomputed=null}X.BasePoint=K,K.prototype.eq=function(){throw new Error("Not implemented")},K.prototype.validate=function(){return this.curve.validate(this)},X.prototype.decodePoint=function(I,O){I=Z.toArray(I,O);var J=this.p.byteLength();if((I[0]===4||I[0]===6||I[0]===7)&&I.length-1===2*J){I[0]===6?U(I[I.length-1]%2===0):I[0]===7&&U(I[I.length-1]%2===1);var F=this.point(I.slice(1,1+J),I.slice(1+J,1+2*J));return F}else if((I[0]===2||I[0]===3)&&I.length-1===J)return this.pointFromX(I.slice(1,1+J),I[0]===3);throw new Error("Unknown point format")},K.prototype.encodeCompressed=function(I){return this.encode(I,!0)},K.prototype._encode=function(I){var O=this.curve.p.byteLength(),J=this.getX().toArray("be",O);return I?[this.getY().isEven()?2:3].concat(J):[4].concat(J,this.getY().toArray("be",O))},K.prototype.encode=function(I,O){return Z.encode(this._encode(O),I)},K.prototype.precompute=function(I){if(this.precomputed)return this;var O={doubles:null,naf:null,beta:null};return O.naf=this._getNAFPoints(8),O.doubles=this._getDoubles(4,I),O.beta=this._getBeta(),this.precomputed=O,this},K.prototype._hasDoubles=function(I){if(!this.precomputed)return!1;var O=this.precomputed.doubles;return O?O.points.length>=Math.ceil((I.bitLength()+1)/O.step):!1},K.prototype._getDoubles=function(I,O){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var J=[this],F=this,A=0;A<O;A+=I){for(var H=0;H<I;H++)F=F.dbl();J.push(F)}return{step:I,points:J}},K.prototype._getNAFPoints=function(I){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var O=[this],J=(1<<I)-1,F=J===1?null:this.dbl(),A=1;A<J;A++)O[A]=O[A-1].add(F);return{wnd:I,points:O}},K.prototype._getBeta=function(){return null},K.prototype.dblp=function(I){for(var O=this,J=0;J<I;J++)O=O.dbl();return O}}}),nQ=q$({"node_modules/elliptic/lib/elliptic/curve/short.js"($,Q){var Y=oQ(),Z=bQ(),G=_$(),V=uQ(),U=Y.assert;function X(O){V.call(this,"short",O),this.a=new Z(O.a,16).toRed(this.red),this.b=new Z(O.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(O),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}G(X,V),Q.exports=X,X.prototype._getEndomorphism=function(O){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var J,F;if(O.beta)J=new Z(O.beta,16).toRed(this.red);else{var A=this._getEndoRoots(this.p);J=A[0].cmp(A[1])<0?A[0]:A[1],J=J.toRed(this.red)}if(O.lambda)F=new Z(O.lambda,16);else{var H=this._getEndoRoots(this.n);this.g.mul(H[0]).x.cmp(this.g.x.redMul(J))===0?F=H[0]:(F=H[1],U(this.g.mul(F).x.cmp(this.g.x.redMul(J))===0))}var W;return O.basis?W=O.basis.map(function(E){return{a:new Z(E.a,16),b:new Z(E.b,16)}}):W=this._getEndoBasis(F),{beta:J,lambda:F,basis:W}}},X.prototype._getEndoRoots=function(O){var J=O===this.p?this.red:Z.mont(O),F=new Z(2).toRed(J).redInvm(),A=F.redNeg(),H=new Z(3).toRed(J).redNeg().redSqrt().redMul(F),W=A.redAdd(H).fromRed(),E=A.redSub(H).fromRed();return[W,E]},X.prototype._getEndoBasis=function(O){for(var J=this.n.ushrn(Math.floor(this.n.bitLength()/2)),F=O,A=this.n.clone(),H=new Z(1),W=new Z(0),E=new Z(0),T=new Z(1),D,C,L,R,P,z,M,S=0,v,q;F.cmpn(0)!==0;){var j=A.div(F);v=A.sub(j.mul(F)),q=E.sub(j.mul(H));var k=T.sub(j.mul(W));if(!L&&v.cmp(J)<0)D=M.neg(),C=H,L=v.neg(),R=q;else if(L&&++S===2)break;M=v,A=F,F=v,E=H,H=q,T=W,W=k}P=v.neg(),z=q;var g=L.sqr().add(R.sqr()),_=P.sqr().add(z.sqr());return _.cmp(g)>=0&&(P=D,z=C),L.negative&&(L=L.neg(),R=R.neg()),P.negative&&(P=P.neg(),z=z.neg()),[{a:L,b:R},{a:P,b:z}]},X.prototype._endoSplit=function(O){var J=this.endo.basis,F=J[0],A=J[1],H=A.b.mul(O).divRound(this.n),W=F.b.neg().mul(O).divRound(this.n),E=H.mul(F.a),T=W.mul(A.a),D=H.mul(F.b),C=W.mul(A.b),L=O.sub(E).sub(T),R=D.add(C).neg();return{k1:L,k2:R}},X.prototype.pointFromX=function(O,J){O=new Z(O,16),O.red||(O=O.toRed(this.red));var F=O.redSqr().redMul(O).redIAdd(O.redMul(this.a)).redIAdd(this.b),A=F.redSqrt();if(A.redSqr().redSub(F).cmp(this.zero)!==0)throw new Error("invalid point");var H=A.fromRed().isOdd();return(J&&!H||!J&&H)&&(A=A.redNeg()),this.point(O,A)},X.prototype.validate=function(O){if(O.inf)return!0;var{x:J,y:F}=O,A=this.a.redMul(J),H=J.redSqr().redMul(J).redIAdd(A).redIAdd(this.b);return F.redSqr().redISub(H).cmpn(0)===0},X.prototype._endoWnafMulAdd=function(O,J,F){for(var A=this._endoWnafT1,H=this._endoWnafT2,W=0;W<O.length;W++){var E=this._endoSplit(J[W]),T=O[W],D=T._getBeta();E.k1.negative&&(E.k1.ineg(),T=T.neg(!0)),E.k2.negative&&(E.k2.ineg(),D=D.neg(!0)),A[W*2]=T,A[W*2+1]=D,H[W*2]=E.k1,H[W*2+1]=E.k2}for(var C=this._wnafMulAdd(1,A,H,W*2,F),L=0;L<W*2;L++)A[L]=null,H[L]=null;return C};function K(O,J,F,A){V.BasePoint.call(this,O,"affine"),J===null&&F===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Z(J,16),this.y=new Z(F,16),A&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}G(K,V.BasePoint),X.prototype.point=function(O,J,F){return new K(this,O,J,F)},X.prototype.pointFromJSON=function(O,J){return K.fromJSON(this,O,J)},K.prototype._getBeta=function(){if(this.curve.endo){var O=this.precomputed;if(O&&O.beta)return O.beta;var J=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(O){var F=this.curve,A=function(H){return F.point(H.x.redMul(F.endo.beta),H.y)};O.beta=J,J.precomputed={beta:null,naf:O.naf&&{wnd:O.naf.wnd,points:O.naf.points.map(A)},doubles:O.doubles&&{step:O.doubles.step,points:O.doubles.points.map(A)}}}return J}},K.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},K.fromJSON=function(O,J,F){typeof J=="string"&&(J=JSON.parse(J));var A=O.point(J[0],J[1],F);if(!J[2])return A;function H(E){return O.point(E[0],E[1],F)}var W=J[2];return A.precomputed={beta:null,doubles:W.doubles&&{step:W.doubles.step,points:[A].concat(W.doubles.points.map(H))},naf:W.naf&&{wnd:W.naf.wnd,points:[A].concat(W.naf.points.map(H))}},A},K.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},K.prototype.isInfinity=function(){return this.inf},K.prototype.add=function(O){if(this.inf)return O;if(O.inf)return this;if(this.eq(O))return this.dbl();if(this.neg().eq(O))return this.curve.point(null,null);if(this.x.cmp(O.x)===0)return this.curve.point(null,null);var J=this.y.redSub(O.y);J.cmpn(0)!==0&&(J=J.redMul(this.x.redSub(O.x).redInvm()));var F=J.redSqr().redISub(this.x).redISub(O.x),A=J.redMul(this.x.redSub(F)).redISub(this.y);return this.curve.point(F,A)},K.prototype.dbl=function(){if(this.inf)return this;var O=this.y.redAdd(this.y);if(O.cmpn(0)===0)return this.curve.point(null,null);var J=this.curve.a,F=this.x.redSqr(),A=O.redInvm(),H=F.redAdd(F).redIAdd(F).redIAdd(J).redMul(A),W=H.redSqr().redISub(this.x.redAdd(this.x)),E=H.redMul(this.x.redSub(W)).redISub(this.y);return this.curve.point(W,E)},K.prototype.getX=function(){return this.x.fromRed()},K.prototype.getY=function(){return this.y.fromRed()},K.prototype.mul=function(O){return O=new Z(O,16),this.isInfinity()?this:this._hasDoubles(O)?this.curve._fixedNafMul(this,O):this.curve.endo?this.curve._endoWnafMulAdd([this],[O]):this.curve._wnafMul(this,O)},K.prototype.mulAdd=function(O,J,F){var A=[this,J],H=[O,F];return this.curve.endo?this.curve._endoWnafMulAdd(A,H):this.curve._wnafMulAdd(1,A,H,2)},K.prototype.jmulAdd=function(O,J,F){var A=[this,J],H=[O,F];return this.curve.endo?this.curve._endoWnafMulAdd(A,H,!0):this.curve._wnafMulAdd(1,A,H,2,!0)},K.prototype.eq=function(O){return this===O||this.inf===O.inf&&(this.inf||this.x.cmp(O.x)===0&&this.y.cmp(O.y)===0)},K.prototype.neg=function(O){if(this.inf)return this;var J=this.curve.point(this.x,this.y.redNeg());if(O&&this.precomputed){var F=this.precomputed,A=function(H){return H.neg()};J.precomputed={naf:F.naf&&{wnd:F.naf.wnd,points:F.naf.points.map(A)},doubles:F.doubles&&{step:F.doubles.step,points:F.doubles.points.map(A)}}}return J},K.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var O=this.curve.jpoint(this.x,this.y,this.curve.one);return O};function I(O,J,F,A){V.BasePoint.call(this,O,"jacobian"),J===null&&F===null&&A===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Z(0)):(this.x=new Z(J,16),this.y=new Z(F,16),this.z=new Z(A,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}G(I,V.BasePoint),X.prototype.jpoint=function(O,J,F){return new I(this,O,J,F)},I.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var O=this.z.redInvm(),J=O.redSqr(),F=this.x.redMul(J),A=this.y.redMul(J).redMul(O);return this.curve.point(F,A)},I.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},I.prototype.add=function(O){if(this.isInfinity())return O;if(O.isInfinity())return this;var J=O.z.redSqr(),F=this.z.redSqr(),A=this.x.redMul(J),H=O.x.redMul(F),W=this.y.redMul(J.redMul(O.z)),E=O.y.redMul(F.redMul(this.z)),T=A.redSub(H),D=W.redSub(E);if(T.cmpn(0)===0)return D.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var C=T.redSqr(),L=C.redMul(T),R=A.redMul(C),P=D.redSqr().redIAdd(L).redISub(R).redISub(R),z=D.redMul(R.redISub(P)).redISub(W.redMul(L)),M=this.z.redMul(O.z).redMul(T);return this.curve.jpoint(P,z,M)},I.prototype.mixedAdd=function(O){if(this.isInfinity())return O.toJ();if(O.isInfinity())return this;var J=this.z.redSqr(),F=this.x,A=O.x.redMul(J),H=this.y,W=O.y.redMul(J).redMul(this.z),E=F.redSub(A),T=H.redSub(W);if(E.cmpn(0)===0)return T.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var D=E.redSqr(),C=D.redMul(E),L=F.redMul(D),R=T.redSqr().redIAdd(C).redISub(L).redISub(L),P=T.redMul(L.redISub(R)).redISub(H.redMul(C)),z=this.z.redMul(E);return this.curve.jpoint(R,P,z)},I.prototype.dblp=function(O){if(O===0)return this;if(this.isInfinity())return this;if(!O)return this.dbl();var J;if(this.curve.zeroA||this.curve.threeA){var F=this;for(J=0;J<O;J++)F=F.dbl();return F}var A=this.curve.a,H=this.curve.tinv,W=this.x,E=this.y,T=this.z,D=T.redSqr().redSqr(),C=E.redAdd(E);for(J=0;J<O;J++){var L=W.redSqr(),R=C.redSqr(),P=R.redSqr(),z=L.redAdd(L).redIAdd(L).redIAdd(A.redMul(D)),M=W.redMul(R),S=z.redSqr().redISub(M.redAdd(M)),v=M.redISub(S),q=z.redMul(v);q=q.redIAdd(q).redISub(P);var j=C.redMul(T);J+1<O&&(D=D.redMul(P)),W=S,T=j,C=q}return this.curve.jpoint(W,C.redMul(H),T)},I.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},I.prototype._zeroDbl=function(){var O,J,F;if(this.zOne){var A=this.x.redSqr(),H=this.y.redSqr(),W=H.redSqr(),E=this.x.redAdd(H).redSqr().redISub(A).redISub(W);E=E.redIAdd(E);var T=A.redAdd(A).redIAdd(A),D=T.redSqr().redISub(E).redISub(E),C=W.redIAdd(W);C=C.redIAdd(C),C=C.redIAdd(C),O=D,J=T.redMul(E.redISub(D)).redISub(C),F=this.y.redAdd(this.y)}else{var L=this.x.redSqr(),R=this.y.redSqr(),P=R.redSqr(),z=this.x.redAdd(R).redSqr().redISub(L).redISub(P);z=z.redIAdd(z);var M=L.redAdd(L).redIAdd(L),S=M.redSqr(),v=P.redIAdd(P);v=v.redIAdd(v),v=v.redIAdd(v),O=S.redISub(z).redISub(z),J=M.redMul(z.redISub(O)).redISub(v),F=this.y.redMul(this.z),F=F.redIAdd(F)}return this.curve.jpoint(O,J,F)},I.prototype._threeDbl=function(){var O,J,F;if(this.zOne){var A=this.x.redSqr(),H=this.y.redSqr(),W=H.redSqr(),E=this.x.redAdd(H).redSqr().redISub(A).redISub(W);E=E.redIAdd(E);var T=A.redAdd(A).redIAdd(A).redIAdd(this.curve.a),D=T.redSqr().redISub(E).redISub(E);O=D;var C=W.redIAdd(W);C=C.redIAdd(C),C=C.redIAdd(C),J=T.redMul(E.redISub(D)).redISub(C),F=this.y.redAdd(this.y)}else{var L=this.z.redSqr(),R=this.y.redSqr(),P=this.x.redMul(R),z=this.x.redSub(L).redMul(this.x.redAdd(L));z=z.redAdd(z).redIAdd(z);var M=P.redIAdd(P);M=M.redIAdd(M);var S=M.redAdd(M);O=z.redSqr().redISub(S),F=this.y.redAdd(this.z).redSqr().redISub(R).redISub(L);var v=R.redSqr();v=v.redIAdd(v),v=v.redIAdd(v),v=v.redIAdd(v),J=z.redMul(M.redISub(O)).redISub(v)}return this.curve.jpoint(O,J,F)},I.prototype._dbl=function(){var O=this.curve.a,J=this.x,F=this.y,A=this.z,H=A.redSqr().redSqr(),W=J.redSqr(),E=F.redSqr(),T=W.redAdd(W).redIAdd(W).redIAdd(O.redMul(H)),D=J.redAdd(J);D=D.redIAdd(D);var C=D.redMul(E),L=T.redSqr().redISub(C.redAdd(C)),R=C.redISub(L),P=E.redSqr();P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P);var z=T.redMul(R).redISub(P),M=F.redAdd(F).redMul(A);return this.curve.jpoint(L,z,M)},I.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var O=this.x.redSqr(),J=this.y.redSqr(),F=this.z.redSqr(),A=J.redSqr(),H=O.redAdd(O).redIAdd(O),W=H.redSqr(),E=this.x.redAdd(J).redSqr().redISub(O).redISub(A);E=E.redIAdd(E),E=E.redAdd(E).redIAdd(E),E=E.redISub(W);var T=E.redSqr(),D=A.redIAdd(A);D=D.redIAdd(D),D=D.redIAdd(D),D=D.redIAdd(D);var C=H.redIAdd(E).redSqr().redISub(W).redISub(T).redISub(D),L=J.redMul(C);L=L.redIAdd(L),L=L.redIAdd(L);var R=this.x.redMul(T).redISub(L);R=R.redIAdd(R),R=R.redIAdd(R);var P=this.y.redMul(C.redMul(D.redISub(C)).redISub(E.redMul(T)));P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P);var z=this.z.redAdd(E).redSqr().redISub(F).redISub(T);return this.curve.jpoint(R,P,z)},I.prototype.mul=function(O,J){return O=new Z(O,J),this.curve._wnafMul(this,O)},I.prototype.eq=function(O){if(O.type==="affine")return this.eq(O.toJ());if(this===O)return!0;var J=this.z.redSqr(),F=O.z.redSqr();if(this.x.redMul(F).redISub(O.x.redMul(J)).cmpn(0)!==0)return!1;var A=J.redMul(this.z),H=F.redMul(O.z);return this.y.redMul(H).redISub(O.y.redMul(A)).cmpn(0)===0},I.prototype.eqXToP=function(O){var J=this.z.redSqr(),F=O.toRed(this.curve.red).redMul(J);if(this.x.cmp(F)===0)return!0;for(var A=O.clone(),H=this.curve.redN.redMul(J);;){if(A.iadd(this.curve.n),A.cmp(this.curve.p)>=0)return!1;if(F.redIAdd(H),this.x.cmp(F)===0)return!0}},I.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},I.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}}),sQ=q$({"node_modules/elliptic/lib/elliptic/curve/mont.js"($,Q){var Y=bQ(),Z=_$(),G=uQ(),V=oQ();function U(K){G.call(this,"mont",K),this.a=new Y(K.a,16).toRed(this.red),this.b=new Y(K.b,16).toRed(this.red),this.i4=new Y(4).toRed(this.red).redInvm(),this.two=new Y(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Z(U,G),Q.exports=U,U.prototype.validate=function(K){var I=K.normalize().x,O=I.redSqr(),J=O.redMul(I).redAdd(O.redMul(this.a)).redAdd(I),F=J.redSqrt();return F.redSqr().cmp(J)===0};function X(K,I,O){G.BasePoint.call(this,K,"projective"),I===null&&O===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Y(I,16),this.z=new Y(O,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Z(X,G.BasePoint),U.prototype.decodePoint=function(K,I){return this.point(V.toArray(K,I),1)},U.prototype.point=function(K,I){return new X(this,K,I)},U.prototype.pointFromJSON=function(K){return X.fromJSON(this,K)},X.prototype.precompute=function(){},X.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},X.fromJSON=function(K,I){return new X(K,I[0],I[1]||K.one)},X.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},X.prototype.isInfinity=function(){return this.z.cmpn(0)===0},X.prototype.dbl=function(){var K=this.x.redAdd(this.z),I=K.redSqr(),O=this.x.redSub(this.z),J=O.redSqr(),F=I.redSub(J),A=I.redMul(J),H=F.redMul(J.redAdd(this.curve.a24.redMul(F)));return this.curve.point(A,H)},X.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},X.prototype.diffAdd=function(K,I){var O=this.x.redAdd(this.z),J=this.x.redSub(this.z),F=K.x.redAdd(K.z),A=K.x.redSub(K.z),H=A.redMul(O),W=F.redMul(J),E=I.z.redMul(H.redAdd(W).redSqr()),T=I.x.redMul(H.redISub(W).redSqr());return this.curve.point(E,T)},X.prototype.mul=function(K){for(var I=K.clone(),O=this,J=this.curve.point(null,null),F=this,A=[];I.cmpn(0)!==0;I.iushrn(1))A.push(I.andln(1));for(var H=A.length-1;H>=0;H--)A[H]===0?(O=O.diffAdd(J,F),J=J.dbl()):(J=O.diffAdd(J,F),O=O.dbl());return J},X.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},X.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},X.prototype.eq=function(K){return this.getX().cmp(K.getX())===0},X.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},X.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}}),tQ=q$({"node_modules/elliptic/lib/elliptic/curve/edwards.js"($,Q){var Y=oQ(),Z=bQ(),G=_$(),V=uQ(),U=Y.assert;function X(I){this.twisted=(I.a|0)!==1,this.mOneA=this.twisted&&(I.a|0)===-1,this.extended=this.mOneA,V.call(this,"edwards",I),this.a=new Z(I.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Z(I.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Z(I.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),U(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(I.c|0)===1}G(X,V),Q.exports=X,X.prototype._mulA=function(I){return this.mOneA?I.redNeg():this.a.redMul(I)},X.prototype._mulC=function(I){return this.oneC?I:this.c.redMul(I)},X.prototype.jpoint=function(I,O,J,F){return this.point(I,O,J,F)},X.prototype.pointFromX=function(I,O){I=new Z(I,16),I.red||(I=I.toRed(this.red));var J=I.redSqr(),F=this.c2.redSub(this.a.redMul(J)),A=this.one.redSub(this.c2.redMul(this.d).redMul(J)),H=F.redMul(A.redInvm()),W=H.redSqrt();if(W.redSqr().redSub(H).cmp(this.zero)!==0)throw new Error("invalid point");var E=W.fromRed().isOdd();return(O&&!E||!O&&E)&&(W=W.redNeg()),this.point(I,W)},X.prototype.pointFromY=function(I,O){I=new Z(I,16),I.red||(I=I.toRed(this.red));var J=I.redSqr(),F=J.redSub(this.c2),A=J.redMul(this.d).redMul(this.c2).redSub(this.a),H=F.redMul(A.redInvm());if(H.cmp(this.zero)===0){if(O)throw new Error("invalid point");return this.point(this.zero,I)}var W=H.redSqrt();if(W.redSqr().redSub(H).cmp(this.zero)!==0)throw new Error("invalid point");return W.fromRed().isOdd()!==O&&(W=W.redNeg()),this.point(W,I)},X.prototype.validate=function(I){if(I.isInfinity())return!0;I.normalize();var O=I.x.redSqr(),J=I.y.redSqr(),F=O.redMul(this.a).redAdd(J),A=this.c2.redMul(this.one.redAdd(this.d.redMul(O).redMul(J)));return F.cmp(A)===0};function K(I,O,J,F,A){V.BasePoint.call(this,I,"projective"),O===null&&J===null&&F===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Z(O,16),this.y=new Z(J,16),this.z=F?new Z(F,16):this.curve.one,this.t=A&&new Z(A,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}G(K,V.BasePoint),X.prototype.pointFromJSON=function(I){return K.fromJSON(this,I)},X.prototype.point=function(I,O,J,F){return new K(this,I,O,J,F)},K.fromJSON=function(I,O){return new K(I,O[0],O[1],O[2])},K.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},K.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},K.prototype._extDbl=function(){var I=this.x.redSqr(),O=this.y.redSqr(),J=this.z.redSqr();J=J.redIAdd(J);var F=this.curve._mulA(I),A=this.x.redAdd(this.y).redSqr().redISub(I).redISub(O),H=F.redAdd(O),W=H.redSub(J),E=F.redSub(O),T=A.redMul(W),D=H.redMul(E),C=A.redMul(E),L=W.redMul(H);return this.curve.point(T,D,L,C)},K.prototype._projDbl=function(){var I=this.x.redAdd(this.y).redSqr(),O=this.x.redSqr(),J=this.y.redSqr(),F,A,H,W,E,T;if(this.curve.twisted){W=this.curve._mulA(O);var D=W.redAdd(J);this.zOne?(F=I.redSub(O).redSub(J).redMul(D.redSub(this.curve.two)),A=D.redMul(W.redSub(J)),H=D.redSqr().redSub(D).redSub(D)):(E=this.z.redSqr(),T=D.redSub(E).redISub(E),F=I.redSub(O).redISub(J).redMul(T),A=D.redMul(W.redSub(J)),H=D.redMul(T))}else W=O.redAdd(J),E=this.curve._mulC(this.z).redSqr(),T=W.redSub(E).redSub(E),F=this.curve._mulC(I.redISub(W)).redMul(T),A=this.curve._mulC(W).redMul(O.redISub(J)),H=W.redMul(T);return this.curve.point(F,A,H)},K.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},K.prototype._extAdd=function(I){var O=this.y.redSub(this.x).redMul(I.y.redSub(I.x)),J=this.y.redAdd(this.x).redMul(I.y.redAdd(I.x)),F=this.t.redMul(this.curve.dd).redMul(I.t),A=this.z.redMul(I.z.redAdd(I.z)),H=J.redSub(O),W=A.redSub(F),E=A.redAdd(F),T=J.redAdd(O),D=H.redMul(W),C=E.redMul(T),L=H.redMul(T),R=W.redMul(E);return this.curve.point(D,C,R,L)},K.prototype._projAdd=function(I){var O=this.z.redMul(I.z),J=O.redSqr(),F=this.x.redMul(I.x),A=this.y.redMul(I.y),H=this.curve.d.redMul(F).redMul(A),W=J.redSub(H),E=J.redAdd(H),T=this.x.redAdd(this.y).redMul(I.x.redAdd(I.y)).redISub(F).redISub(A),D=O.redMul(W).redMul(T),C,L;return this.curve.twisted?(C=O.redMul(E).redMul(A.redSub(this.curve._mulA(F))),L=W.redMul(E)):(C=O.redMul(E).redMul(A.redSub(F)),L=this.curve._mulC(W).redMul(E)),this.curve.point(D,C,L)},K.prototype.add=function(I){return this.isInfinity()?I:I.isInfinity()?this:this.curve.extended?this._extAdd(I):this._projAdd(I)},K.prototype.mul=function(I){return this._hasDoubles(I)?this.curve._fixedNafMul(this,I):this.curve._wnafMul(this,I)},K.prototype.mulAdd=function(I,O,J){return this.curve._wnafMulAdd(1,[this,O],[I,J],2,!1)},K.prototype.jmulAdd=function(I,O,J){return this.curve._wnafMulAdd(1,[this,O],[I,J],2,!0)},K.prototype.normalize=function(){if(this.zOne)return this;var I=this.z.redInvm();return this.x=this.x.redMul(I),this.y=this.y.redMul(I),this.t&&(this.t=this.t.redMul(I)),this.z=this.curve.one,this.zOne=!0,this},K.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},K.prototype.getX=function(){return this.normalize(),this.x.fromRed()},K.prototype.getY=function(){return this.normalize(),this.y.fromRed()},K.prototype.eq=function(I){return this===I||this.getX().cmp(I.getX())===0&&this.getY().cmp(I.getY())===0},K.prototype.eqXToP=function(I){var O=I.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(O)===0)return!0;for(var J=I.clone(),F=this.curve.redN.redMul(this.z);;){if(J.iadd(this.curve.n),J.cmp(this.curve.p)>=0)return!1;if(O.redIAdd(F),this.x.cmp(O)===0)return!0}},K.prototype.toP=K.prototype.normalize,K.prototype.mixedAdd=K.prototype.add}}),mQ=q$({"node_modules/elliptic/lib/elliptic/curve/index.js"($){var Q=$;Q.base=uQ(),Q.short=nQ(),Q.mont=sQ(),Q.edwards=tQ()}}),aQ=q$({"node_modules/hash.js/lib/hash/utils.js"($){var Q=ZQ(),Y=_$();$.inherits=Y;function Z(k,g){return(k.charCodeAt(g)&64512)!==55296||g<0||g+1>=k.length?!1:(k.charCodeAt(g+1)&64512)===56320}function G(k,g){if(Array.isArray(k))return k.slice();if(!k)return[];var _=[];if(typeof k=="string")if(g){if(g==="hex")for(k=k.replace(/[^a-z0-9]+/gi,""),k.length%2!==0&&(k="0"+k),x=0;x<k.length;x+=2)_.push(parseInt(k[x]+k[x+1],16))}else for(var N=0,x=0;x<k.length;x++){var B=k.charCodeAt(x);B<128?_[N++]=B:B<2048?(_[N++]=B>>6|192,_[N++]=B&63|128):Z(k,x)?(B=65536+((B&1023)<<10)+(k.charCodeAt(++x)&1023),_[N++]=B>>18|240,_[N++]=B>>12&63|128,_[N++]=B>>6&63|128,_[N++]=B&63|128):(_[N++]=B>>12|224,_[N++]=B>>6&63|128,_[N++]=B&63|128)}else for(x=0;x<k.length;x++)_[x]=k[x]|0;return _}$.toArray=G;function V(k){for(var g="",_=0;_<k.length;_++)g+=K(k[_].toString(16));return g}$.toHex=V;function U(k){var g=k>>>24|k>>>8&65280|k<<8&16711680|(k&255)<<24;return g>>>0}$.htonl=U;function X(k,g){for(var _="",N=0;N<k.length;N++){var x=k[N];g==="little"&&(x=U(x)),_+=I(x.toString(16))}return _}$.toHex32=X;function K(k){return k.length===1?"0"+k:k}$.zero2=K;function I(k){return k.length===7?"0"+k:k.length===6?"00"+k:k.length===5?"000"+k:k.length===4?"0000"+k:k.length===3?"00000"+k:k.length===2?"000000"+k:k.length===1?"0000000"+k:k}$.zero8=I;function O(k,g,_,N){var x=_-g;Q(x%4===0);for(var B=new Array(x/4),y=0,w=g;y<B.length;y++,w+=4){var p;N==="big"?p=k[w]<<24|k[w+1]<<16|k[w+2]<<8|k[w+3]:p=k[w+3]<<24|k[w+2]<<16|k[w+1]<<8|k[w],B[y]=p>>>0}return B}$.join32=O;function J(k,g){for(var _=new Array(k.length*4),N=0,x=0;N<k.length;N++,x+=4){var B=k[N];g==="big"?(_[x]=B>>>24,_[x+1]=B>>>16&255,_[x+2]=B>>>8&255,_[x+3]=B&255):(_[x+3]=B>>>24,_[x+2]=B>>>16&255,_[x+1]=B>>>8&255,_[x]=B&255)}return _}$.split32=J;function F(k,g){return k>>>g|k<<32-g}$.rotr32=F;function A(k,g){return k<<g|k>>>32-g}$.rotl32=A;function H(k,g){return k+g>>>0}$.sum32=H;function W(k,g,_){return k+g+_>>>0}$.sum32_3=W;function E(k,g,_,N){return k+g+_+N>>>0}$.sum32_4=E;function T(k,g,_,N,x){return k+g+_+N+x>>>0}$.sum32_5=T;function D(k,g,_,N){var x=k[g],B=k[g+1],y=N+B>>>0,w=(y<N?1:0)+_+x;k[g]=w>>>0,k[g+1]=y}$.sum64=D;function C(k,g,_,N){var x=g+N>>>0,B=(x<g?1:0)+k+_;return B>>>0}$.sum64_hi=C;function L(k,g,_,N){var x=g+N;return x>>>0}$.sum64_lo=L;function R(k,g,_,N,x,B,y,w){var p=0,f=g;f=f+N>>>0,p+=f<g?1:0,f=f+B>>>0,p+=f<B?1:0,f=f+w>>>0,p+=f<w?1:0;var c=k+_+x+y+p;return c>>>0}$.sum64_4_hi=R;function P(k,g,_,N,x,B,y,w){var p=g+N+B+w;return p>>>0}$.sum64_4_lo=P;function z(k,g,_,N,x,B,y,w,p,f){var c=0,h=g;h=h+N>>>0,c+=h<g?1:0,h=h+B>>>0,c+=h<B?1:0,h=h+w>>>0,c+=h<w?1:0,h=h+f>>>0,c+=h<f?1:0;var d=k+_+x+y+p+c;return d>>>0}$.sum64_5_hi=z;function M(k,g,_,N,x,B,y,w,p,f){var c=g+N+B+w+f;return c>>>0}$.sum64_5_lo=M;function S(k,g,_){var N=g<<32-_|k>>>_;return N>>>0}$.rotr64_hi=S;function v(k,g,_){var N=k<<32-_|g>>>_;return N>>>0}$.rotr64_lo=v;function q(k,g,_){return k>>>_}$.shr64_hi=q;function j(k,g,_){var N=k<<32-_|g>>>_;return N>>>0}$.shr64_lo=j}}),eQ=q$({"node_modules/hash.js/lib/hash/common.js"($){var Q=aQ(),Y=ZQ();function Z(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}$.BlockHash=Z,Z.prototype.update=function(G,V){if(G=Q.toArray(G,V),this.pending?this.pending=this.pending.concat(G):this.pending=G,this.pendingTotal+=G.length,this.pending.length>=this._delta8){G=this.pending;var U=G.length%this._delta8;this.pending=G.slice(G.length-U,G.length),this.pending.length===0&&(this.pending=null),G=Q.join32(G,0,G.length-U,this.endian);for(var X=0;X<G.length;X+=this._delta32)this._update(G,X,X+this._delta32)}return this},Z.prototype.digest=function(G){return this.update(this._pad()),Y(this.pending===null),this._digest(G)},Z.prototype._pad=function(){var G=this.pendingTotal,V=this._delta8,U=V-(G+this.padLength)%V,X=new Array(U+this.padLength);X[0]=128;for(var K=1;K<U;K++)X[K]=0;if(G<<=3,this.endian==="big"){for(var I=8;I<this.padLength;I++)X[K++]=0;X[K++]=0,X[K++]=0,X[K++]=0,X[K++]=0,X[K++]=G>>>24&255,X[K++]=G>>>16&255,X[K++]=G>>>8&255,X[K++]=G&255}else for(X[K++]=G&255,X[K++]=G>>>8&255,X[K++]=G>>>16&255,X[K++]=G>>>24&255,X[K++]=0,X[K++]=0,X[K++]=0,X[K++]=0,I=8;I<this.padLength;I++)X[K++]=0;return X}}}),rQ=q$({"node_modules/hash.js/lib/hash/sha/common.js"($){var Q=aQ(),Y=Q.rotr32;function Z(J,F,A,H){if(J===0)return G(F,A,H);if(J===1||J===3)return U(F,A,H);if(J===2)return V(F,A,H)}$.ft_1=Z;function G(J,F,A){return J&F^~J&A}$.ch32=G;function V(J,F,A){return J&F^J&A^F&A}$.maj32=V;function U(J,F,A){return J^F^A}$.p32=U;function X(J){return Y(J,2)^Y(J,13)^Y(J,22)}$.s0_256=X;function K(J){return Y(J,6)^Y(J,11)^Y(J,25)}$.s1_256=K;function I(J){return Y(J,7)^Y(J,18)^J>>>3}$.g0_256=I;function O(J){return Y(J,17)^Y(J,19)^J>>>10}$.g1_256=O}}),iQ=q$({"node_modules/hash.js/lib/hash/sha/1.js"($,Q){var Y=aQ(),Z=eQ(),G=rQ(),V=Y.rotl32,U=Y.sum32,X=Y.sum32_5,K=G.ft_1,I=Z.BlockHash,O=[1518500249,1859775393,2400959708,3395469782];function J(){if(!(this instanceof J))return new J;I.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Y.inherits(J,I),Q.exports=J,J.blockSize=512,J.outSize=160,J.hmacStrength=80,J.padLength=64,J.prototype._update=function(F,A){for(var H=this.W,W=0;W<16;W++)H[W]=F[A+W];for(;W<H.length;W++)H[W]=V(H[W-3]^H[W-8]^H[W-14]^H[W-16],1);var E=this.h[0],T=this.h[1],D=this.h[2],C=this.h[3],L=this.h[4];for(W=0;W<H.length;W++){var R=~~(W/20),P=X(V(E,5),K(R,T,D,C),L,H[W],O[R]);L=C,C=D,D=V(T,30),T=E,E=P}this.h[0]=U(this.h[0],E),this.h[1]=U(this.h[1],T),this.h[2]=U(this.h[2],D),this.h[3]=U(this.h[3],C),this.h[4]=U(this.h[4],L)},J.prototype._digest=function(F){return F==="hex"?Y.toHex32(this.h,"big"):Y.split32(this.h,"big")}}}),$Y=q$({"node_modules/hash.js/lib/hash/sha/256.js"($,Q){var Y=aQ(),Z=eQ(),G=rQ(),V=ZQ(),U=Y.sum32,X=Y.sum32_4,K=Y.sum32_5,I=G.ch32,O=G.maj32,J=G.s0_256,F=G.s1_256,A=G.g0_256,H=G.g1_256,W=Z.BlockHash,E=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function T(){if(!(this instanceof T))return new T;W.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=E,this.W=new Array(64)}Y.inherits(T,W),Q.exports=T,T.blockSize=512,T.outSize=256,T.hmacStrength=192,T.padLength=64,T.prototype._update=function(D,C){for(var L=this.W,R=0;R<16;R++)L[R]=D[C+R];for(;R<L.length;R++)L[R]=X(H(L[R-2]),L[R-7],A(L[R-15]),L[R-16]);var P=this.h[0],z=this.h[1],M=this.h[2],S=this.h[3],v=this.h[4],q=this.h[5],j=this.h[6],k=this.h[7];for(V(this.k.length===L.length),R=0;R<L.length;R++){var g=K(k,F(v),I(v,q,j),this.k[R],L[R]),_=U(J(P),O(P,z,M));k=j,j=q,q=v,v=U(S,g),S=M,M=z,z=P,P=U(g,_)}this.h[0]=U(this.h[0],P),this.h[1]=U(this.h[1],z),this.h[2]=U(this.h[2],M),this.h[3]=U(this.h[3],S),this.h[4]=U(this.h[4],v),this.h[5]=U(this.h[5],q),this.h[6]=U(this.h[6],j),this.h[7]=U(this.h[7],k)},T.prototype._digest=function(D){return D==="hex"?Y.toHex32(this.h,"big"):Y.split32(this.h,"big")}}}),QY=q$({"node_modules/hash.js/lib/hash/sha/224.js"($,Q){var Y=aQ(),Z=$Y();function G(){if(!(this instanceof G))return new G;Z.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Y.inherits(G,Z),Q.exports=G,G.blockSize=512,G.outSize=224,G.hmacStrength=192,G.padLength=64,G.prototype._digest=function(V){return V==="hex"?Y.toHex32(this.h.slice(0,7),"big"):Y.split32(this.h.slice(0,7),"big")}}}),YY=q$({"node_modules/hash.js/lib/hash/sha/512.js"($,Q){var Y=aQ(),Z=eQ(),G=ZQ(),V=Y.rotr64_hi,U=Y.rotr64_lo,X=Y.shr64_hi,K=Y.shr64_lo,I=Y.sum64,O=Y.sum64_hi,J=Y.sum64_lo,F=Y.sum64_4_hi,A=Y.sum64_4_lo,H=Y.sum64_5_hi,W=Y.sum64_5_lo,E=Z.BlockHash,T=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function D(){if(!(this instanceof D))return new D;E.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=T,this.W=new Array(160)}Y.inherits(D,E),Q.exports=D,D.blockSize=1024,D.outSize=512,D.hmacStrength=192,D.padLength=128,D.prototype._prepareBlock=function(_,N){for(var x=this.W,B=0;B<32;B++)x[B]=_[N+B];for(;B<x.length;B+=2){var y=k(x[B-4],x[B-3]),w=g(x[B-4],x[B-3]),p=x[B-14],f=x[B-13],c=q(x[B-30],x[B-29]),h=j(x[B-30],x[B-29]),d=x[B-32],b=x[B-31];x[B]=F(y,w,p,f,c,h,d,b),x[B+1]=A(y,w,p,f,c,h,d,b)}},D.prototype._update=function(_,N){this._prepareBlock(_,N);var x=this.W,B=this.h[0],y=this.h[1],w=this.h[2],p=this.h[3],f=this.h[4],c=this.h[5],h=this.h[6],d=this.h[7],b=this.h[8],l=this.h[9],o=this.h[10],u=this.h[11],n=this.h[12],s=this.h[13],t=this.h[14],m=this.h[15];G(this.k.length===x.length);for(var a=0;a<x.length;a+=2){var e=t,r=m,i=S(b,l),$0=v(b,l),Q0=C(b,l,o,u,n,s),Y0=L(b,l,o,u,n,s),Z0=this.k[a],G0=this.k[a+1],V0=x[a],U0=x[a+1],X0=H(e,r,i,$0,Q0,Y0,Z0,G0,V0,U0),K0=W(e,r,i,$0,Q0,Y0,Z0,G0,V0,U0);e=z(B,y),r=M(B,y),i=R(B,y,w,p,f,c),$0=P(B,y,w,p,f,c);var I0=O(e,r,i,$0),O0=J(e,r,i,$0);t=n,m=s,n=o,s=u,o=b,u=l,b=O(h,d,X0,K0),l=J(d,d,X0,K0),h=f,d=c,f=w,c=p,w=B,p=y,B=O(X0,K0,I0,O0),y=J(X0,K0,I0,O0)}I(this.h,0,B,y),I(this.h,2,w,p),I(this.h,4,f,c),I(this.h,6,h,d),I(this.h,8,b,l),I(this.h,10,o,u),I(this.h,12,n,s),I(this.h,14,t,m)},D.prototype._digest=function(_){return _==="hex"?Y.toHex32(this.h,"big"):Y.split32(this.h,"big")};function C(_,N,x,B,y){var w=_&x^~_&y;return w<0&&(w+=4294967296),w}function L(_,N,x,B,y,w){var p=N&B^~N&w;return p<0&&(p+=4294967296),p}function R(_,N,x,B,y){var w=_&x^_&y^x&y;return w<0&&(w+=4294967296),w}function P(_,N,x,B,y,w){var p=N&B^N&w^B&w;return p<0&&(p+=4294967296),p}function z(_,N){var x=V(_,N,28),B=V(N,_,2),y=V(N,_,7),w=x^B^y;return w<0&&(w+=4294967296),w}function M(_,N){var x=U(_,N,28),B=U(N,_,2),y=U(N,_,7),w=x^B^y;return w<0&&(w+=4294967296),w}function S(_,N){var x=V(_,N,14),B=V(_,N,18),y=V(N,_,9),w=x^B^y;return w<0&&(w+=4294967296),w}function v(_,N){var x=U(_,N,14),B=U(_,N,18),y=U(N,_,9),w=x^B^y;return w<0&&(w+=4294967296),w}function q(_,N){var x=V(_,N,1),B=V(_,N,8),y=X(_,N,7),w=x^B^y;return w<0&&(w+=4294967296),w}function j(_,N){var x=U(_,N,1),B=U(_,N,8),y=K(_,N,7),w=x^B^y;return w<0&&(w+=4294967296),w}function k(_,N){var x=V(_,N,19),B=V(N,_,29),y=X(_,N,6),w=x^B^y;return w<0&&(w+=4294967296),w}function g(_,N){var x=U(_,N,19),B=U(N,_,29),y=K(_,N,6),w=x^B^y;return w<0&&(w+=4294967296),w}}}),ZY=q$({"node_modules/hash.js/lib/hash/sha/384.js"($,Q){var Y=aQ(),Z=YY();function G(){if(!(this instanceof G))return new G;Z.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Y.inherits(G,Z),Q.exports=G,G.blockSize=1024,G.outSize=384,G.hmacStrength=192,G.padLength=128,G.prototype._digest=function(V){return V==="hex"?Y.toHex32(this.h.slice(0,12),"big"):Y.split32(this.h.slice(0,12),"big")}}}),GY=q$({"node_modules/hash.js/lib/hash/sha.js"($){$.sha1=iQ(),$.sha224=QY(),$.sha256=$Y(),$.sha384=ZY(),$.sha512=YY()}}),VY=q$({"node_modules/hash.js/lib/hash/ripemd.js"($){var Q=aQ(),Y=eQ(),Z=Q.rotl32,G=Q.sum32,V=Q.sum32_3,U=Q.sum32_4,X=Y.BlockHash;function K(){if(!(this instanceof K))return new K;X.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Q.inherits(K,X),$.ripemd160=K,K.blockSize=512,K.outSize=160,K.hmacStrength=192,K.padLength=64,K.prototype._update=function(E,T){for(var D=this.h[0],C=this.h[1],L=this.h[2],R=this.h[3],P=this.h[4],z=D,M=C,S=L,v=R,q=P,j=0;j<80;j++){var k=G(Z(U(D,I(j,C,L,R),E[F[j]+T],O(j)),H[j]),P);D=P,P=R,R=Z(L,10),L=C,C=k,k=G(Z(U(z,I(79-j,M,S,v),E[A[j]+T],J(j)),W[j]),q),z=q,q=v,v=Z(S,10),S=M,M=k}k=V(this.h[1],L,v),this.h[1]=V(this.h[2],R,q),this.h[2]=V(this.h[3],P,z),this.h[3]=V(this.h[4],D,M),this.h[4]=V(this.h[0],C,S),this.h[0]=k},K.prototype._digest=function(E){return E==="hex"?Q.toHex32(this.h,"little"):Q.split32(this.h,"little")};function I(E,T,D,C){return E<=15?T^D^C:E<=31?T&D|~T&C:E<=47?(T|~D)^C:E<=63?T&C|D&~C:T^(D|~C)}function O(E){return E<=15?0:E<=31?1518500249:E<=47?1859775393:E<=63?2400959708:2840853838}function J(E){return E<=15?1352829926:E<=31?1548603684:E<=47?1836072691:E<=63?2053994217:0}var F=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],A=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],H=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],W=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]}}),UY=q$({"node_modules/hash.js/lib/hash/hmac.js"($,Q){var Y=aQ(),Z=ZQ();function G(V,U,X){if(!(this instanceof G))return new G(V,U,X);this.Hash=V,this.blockSize=V.blockSize/8,this.outSize=V.outSize/8,this.inner=null,this.outer=null,this._init(Y.toArray(U,X))}Q.exports=G,G.prototype._init=function(V){V.length>this.blockSize&&(V=new this.Hash().update(V).digest()),Z(V.length<=this.blockSize);for(var U=V.length;U<this.blockSize;U++)V.push(0);for(U=0;U<V.length;U++)V[U]^=54;for(this.inner=new this.Hash().update(V),U=0;U<V.length;U++)V[U]^=106;this.outer=new this.Hash().update(V)},G.prototype.update=function(V,U){return this.inner.update(V,U),this},G.prototype.digest=function(V){return this.outer.update(this.inner.digest()),this.outer.digest(V)}}}),XY=q$({"node_modules/hash.js/lib/hash.js"($){var Q=$;Q.utils=aQ(),Q.common=eQ(),Q.sha=GY(),Q.ripemd=VY(),Q.hmac=UY(),Q.sha1=Q.sha.sha1,Q.sha256=Q.sha.sha256,Q.sha224=Q.sha.sha224,Q.sha384=Q.sha.sha384,Q.sha512=Q.sha.sha512,Q.ripemd160=Q.ripemd.ripemd160}}),KY=q$({"node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js"($,Q){Q.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}}),IY=q$({"node_modules/elliptic/lib/elliptic/curves.js"($){var Q=$,Y=XY(),Z=mQ(),G=oQ(),V=G.assert;function U(I){I.type==="short"?this.curve=new Z.short(I):I.type==="edwards"?this.curve=new Z.edwards(I):this.curve=new Z.mont(I),this.g=this.curve.g,this.n=this.curve.n,this.hash=I.hash,V(this.g.validate(),"Invalid curve"),V(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}Q.PresetCurve=U;function X(I,O){Object.defineProperty(Q,I,{configurable:!0,enumerable:!0,get:function(){var J=new U(O);return Object.defineProperty(Q,I,{configurable:!0,enumerable:!0,value:J}),J}})}X("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Y.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),X("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Y.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),X("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Y.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),X("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Y.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),X("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Y.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),X("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Y.sha256,gRed:!1,g:["9"]}),X("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Y.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var K;try{K=KY()}catch{K=void 0}X("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Y.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",K]})}}),OY=q$({"node_modules/hmac-drbg/lib/hmac-drbg.js"($,Q){var Y=XY(),Z=lQ(),G=ZQ();function V(U){if(!(this instanceof V))return new V(U);this.hash=U.hash,this.predResist=!!U.predResist,this.outLen=this.hash.outSize,this.minEntropy=U.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var X=Z.toArray(U.entropy,U.entropyEnc||"hex"),K=Z.toArray(U.nonce,U.nonceEnc||"hex"),I=Z.toArray(U.pers,U.persEnc||"hex");G(X.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(X,K,I)}Q.exports=V,V.prototype._init=function(U,X,K){var I=U.concat(X).concat(K);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var O=0;O<this.V.length;O++)this.K[O]=0,this.V[O]=1;this._update(I),this._reseed=1,this.reseedInterval=281474976710656},V.prototype._hmac=function(){return new Y.hmac(this.hash,this.K)},V.prototype._update=function(U){var X=this._hmac().update(this.V).update([0]);U&&(X=X.update(U)),this.K=X.digest(),this.V=this._hmac().update(this.V).digest(),U&&(this.K=this._hmac().update(this.V).update([1]).update(U).digest(),this.V=this._hmac().update(this.V).digest())},V.prototype.reseed=function(U,X,K,I){typeof X!="string"&&(I=K,K=X,X=null),U=Z.toArray(U,X),K=Z.toArray(K,I),G(U.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(U.concat(K||[])),this._reseed=1},V.prototype.generate=function(U,X,K,I){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof X!="string"&&(I=K,K=X,X=null),K&&(K=Z.toArray(K,I||"hex"),this._update(K));for(var O=[];O.length<U;)this.V=this._hmac().update(this.V).digest(),O=O.concat(this.V);var J=O.slice(0,U);return this._update(K),this._reseed++,Z.encode(J,X)}}}),JY=q$({"node_modules/elliptic/lib/elliptic/ec/key.js"($,Q){var Y=bQ(),Z=oQ(),G=Z.assert;function V(U,X){this.ec=U,this.priv=null,this.pub=null,X.priv&&this._importPrivate(X.priv,X.privEnc),X.pub&&this._importPublic(X.pub,X.pubEnc)}Q.exports=V,V.fromPublic=function(U,X,K){return X instanceof V?X:new V(U,{pub:X,pubEnc:K})},V.fromPrivate=function(U,X,K){return X instanceof V?X:new V(U,{priv:X,privEnc:K})},V.prototype.validate=function(){var U=this.getPublic();return U.isInfinity()?{result:!1,reason:"Invalid public key"}:U.validate()?U.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},V.prototype.getPublic=function(U,X){return typeof U=="string"&&(X=U,U=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),X?this.pub.encode(X,U):this.pub},V.prototype.getPrivate=function(U){return U==="hex"?this.priv.toString(16,2):this.priv},V.prototype._importPrivate=function(U,X){this.priv=new Y(U,X||16),this.priv=this.priv.umod(this.ec.curve.n)},V.prototype._importPublic=function(U,X){if(U.x||U.y){this.ec.curve.type==="mont"?G(U.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&G(U.x&&U.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(U.x,U.y);return}this.pub=this.ec.curve.decodePoint(U,X)},V.prototype.derive=function(U){return U.validate()||G(U.validate(),"public point not validated"),U.mul(this.priv).getX()},V.prototype.sign=function(U,X,K){return this.ec.sign(U,this,X,K)},V.prototype.verify=function(U,X){return this.ec.verify(U,X,this)},V.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}}),FY=q$({"node_modules/elliptic/lib/elliptic/ec/signature.js"($,Q){var Y=bQ(),Z=oQ(),G=Z.assert;function V(O,J){if(O instanceof V)return O;this._importDER(O,J)||(G(O.r&&O.s,"Signature without r or s"),this.r=new Y(O.r,16),this.s=new Y(O.s,16),O.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=O.recoveryParam)}Q.exports=V;function U(){this.place=0}function X(O,J){var F=O[J.place++];if(!(F&128))return F;var A=F&15;if(A===0||A>4)return!1;for(var H=0,W=0,E=J.place;W<A;W++,E++)H<<=8,H|=O[E],H>>>=0;return H<=127?!1:(J.place=E,H)}function K(O){for(var J=0,F=O.length-1;!O[J]&&!(O[J+1]&128)&&J<F;)J++;return J===0?O:O.slice(J)}V.prototype._importDER=function(O,J){O=Z.toArray(O,J);var F=new U;if(O[F.place++]!==48)return!1;var A=X(O,F);if(A===!1||A+F.place!==O.length||O[F.place++]!==2)return!1;var H=X(O,F);if(H===!1)return!1;var W=O.slice(F.place,H+F.place);if(F.place+=H,O[F.place++]!==2)return!1;var E=X(O,F);if(E===!1||O.length!==E+F.place)return!1;var T=O.slice(F.place,E+F.place);if(W[0]===0)if(W[1]&128)W=W.slice(1);else return!1;if(T[0]===0)if(T[1]&128)T=T.slice(1);else return!1;return this.r=new Y(W),this.s=new Y(T),this.recoveryParam=null,!0};function I(O,J){if(J<128){O.push(J);return}var F=1+(Math.log(J)/Math.LN2>>>3);for(O.push(F|128);--F;)O.push(J>>>(F<<3)&255);O.push(J)}V.prototype.toDER=function(O){var J=this.r.toArray(),F=this.s.toArray();for(J[0]&128&&(J=[0].concat(J)),F[0]&128&&(F=[0].concat(F)),J=K(J),F=K(F);!F[0]&&!(F[1]&128);)F=F.slice(1);var A=[2];I(A,J.length),A=A.concat(J),A.push(2),I(A,F.length);var H=A.concat(F),W=[48];return I(W,H.length),W=W.concat(H),Z.encode(W,O)}}}),AY=q$({"node_modules/elliptic/lib/elliptic/ec/index.js"($,Q){var Y=bQ(),Z=OY(),G=oQ(),V=IY(),U=xQ(),X=G.assert,K=JY(),I=FY();function O(J){if(!(this instanceof O))return new O(J);typeof J=="string"&&(X(Object.prototype.hasOwnProperty.call(V,J),"Unknown curve "+J),J=V[J]),J instanceof V.PresetCurve&&(J={curve:J}),this.curve=J.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=J.curve.g,this.g.precompute(J.curve.n.bitLength()+1),this.hash=J.hash||J.curve.hash}Q.exports=O,O.prototype.keyPair=function(J){return new K(this,J)},O.prototype.keyFromPrivate=function(J,F){return K.fromPrivate(this,J,F)},O.prototype.keyFromPublic=function(J,F){return K.fromPublic(this,J,F)},O.prototype.genKeyPair=function(J){J||(J={});for(var F=new Z({hash:this.hash,pers:J.pers,persEnc:J.persEnc||"utf8",entropy:J.entropy||U(this.hash.hmacStrength),entropyEnc:J.entropy&&J.entropyEnc||"utf8",nonce:this.n.toArray()}),A=this.n.byteLength(),H=this.n.sub(new Y(2));;){var W=new Y(F.generate(A));if(!(W.cmp(H)>0))return W.iaddn(1),this.keyFromPrivate(W)}},O.prototype._truncateToN=function(J,F){var A=J.byteLength()*8-this.n.bitLength();return A>0&&(J=J.ushrn(A)),!F&&J.cmp(this.n)>=0?J.sub(this.n):J},O.prototype.sign=function(J,F,A,H){typeof A=="object"&&(H=A,A=null),H||(H={}),F=this.keyFromPrivate(F,A),J=this._truncateToN(new Y(J,16));for(var W=this.n.byteLength(),E=F.getPrivate().toArray("be",W),T=J.toArray("be",W),D=new Z({hash:this.hash,entropy:E,nonce:T,pers:H.pers,persEnc:H.persEnc||"utf8"}),C=this.n.sub(new Y(1)),L=0;;L++){var R=H.k?H.k(L):new Y(D.generate(this.n.byteLength()));if(R=this._truncateToN(R,!0),!(R.cmpn(1)<=0||R.cmp(C)>=0)){var P=this.g.mul(R);if(!P.isInfinity()){var z=P.getX(),M=z.umod(this.n);if(M.cmpn(0)!==0){var S=R.invm(this.n).mul(M.mul(F.getPrivate()).iadd(J));if(S=S.umod(this.n),S.cmpn(0)!==0){var v=(P.getY().isOdd()?1:0)|(z.cmp(M)!==0?2:0);return H.canonical&&S.cmp(this.nh)>0&&(S=this.n.sub(S),v^=1),new I({r:M,s:S,recoveryParam:v})}}}}}},O.prototype.verify=function(J,F,A,H){J=this._truncateToN(new Y(J,16)),A=this.keyFromPublic(A,H),F=new I(F,"hex");var{r:W,s:E}=F;if(W.cmpn(1)<0||W.cmp(this.n)>=0||E.cmpn(1)<0||E.cmp(this.n)>=0)return!1;var T=E.invm(this.n),D=T.mul(J).umod(this.n),C=T.mul(W).umod(this.n),L;return this.curve._maxwellTrick?(L=this.g.jmulAdd(D,A.getPublic(),C),L.isInfinity()?!1:L.eqXToP(W)):(L=this.g.mulAdd(D,A.getPublic(),C),L.isInfinity()?!1:L.getX().umod(this.n).cmp(W)===0)},O.prototype.recoverPubKey=function(J,F,A,H){X((3&A)===A,"The recovery param is more than two bits"),F=new I(F,H);var W=this.n,E=new Y(J),T=F.r,D=F.s,C=A&1,L=A>>1;if(T.cmp(this.curve.p.umod(this.curve.n))>=0&&L)throw new Error("Unable to find sencond key candinate");L?T=this.curve.pointFromX(T.add(this.curve.n),C):T=this.curve.pointFromX(T,C);var R=F.r.invm(W),P=W.sub(E).mul(R).umod(W),z=D.mul(R).umod(W);return this.g.mulAdd(P,T,z)},O.prototype.getKeyRecoveryParam=function(J,F,A,H){if(F=new I(F,H),F.recoveryParam!==null)return F.recoveryParam;for(var W=0;W<4;W++){var E;try{E=this.recoverPubKey(J,F,W)}catch{continue}if(E.eq(A))return W}throw new Error("Unable to find valid recovery factor")}}}),HY=q$({"node_modules/elliptic/lib/elliptic/eddsa/key.js"($,Q){var Y=oQ(),Z=Y.assert,G=Y.parseBytes,V=Y.cachedProperty;function U(X,K){this.eddsa=X,this._secret=G(K.secret),X.isPoint(K.pub)?this._pub=K.pub:this._pubBytes=G(K.pub)}U.fromPublic=function(X,K){return K instanceof U?K:new U(X,{pub:K})},U.fromSecret=function(X,K){return K instanceof U?K:new U(X,{secret:K})},U.prototype.secret=function(){return this._secret},V(U,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),V(U,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),V(U,"privBytes",function(){var X=this.eddsa,K=this.hash(),I=X.encodingLength-1,O=K.slice(0,X.encodingLength);return O[0]&=248,O[I]&=127,O[I]|=64,O}),V(U,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),V(U,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),V(U,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),U.prototype.sign=function(X){return Z(this._secret,"KeyPair can only verify"),this.eddsa.sign(X,this)},U.prototype.verify=function(X,K){return this.eddsa.verify(X,K,this)},U.prototype.getSecret=function(X){return Z(this._secret,"KeyPair is public only"),Y.encode(this.secret(),X)},U.prototype.getPublic=function(X){return Y.encode(this.pubBytes(),X)},Q.exports=U}}),WY=q$({"node_modules/elliptic/lib/elliptic/eddsa/signature.js"($,Q){var Y=bQ(),Z=oQ(),G=Z.assert,V=Z.cachedProperty,U=Z.parseBytes;function X(K,I){this.eddsa=K,typeof I!="object"&&(I=U(I)),Array.isArray(I)&&(I={R:I.slice(0,K.encodingLength),S:I.slice(K.encodingLength)}),G(I.R&&I.S,"Signature without R or S"),K.isPoint(I.R)&&(this._R=I.R),I.S instanceof Y&&(this._S=I.S),this._Rencoded=Array.isArray(I.R)?I.R:I.Rencoded,this._Sencoded=Array.isArray(I.S)?I.S:I.Sencoded}V(X,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),V(X,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),V(X,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),V(X,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),X.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},X.prototype.toHex=function(){return Z.encode(this.toBytes(),"hex").toUpperCase()},Q.exports=X}}),EY=q$({"node_modules/elliptic/lib/elliptic/eddsa/index.js"($,Q){var Y=XY(),Z=IY(),G=oQ(),V=G.assert,U=G.parseBytes,X=HY(),K=WY();function I(O){if(V(O==="ed25519","only tested with ed25519 so far"),!(this instanceof I))return new I(O);O=Z[O].curve,this.curve=O,this.g=O.g,this.g.precompute(O.n.bitLength()+1),this.pointClass=O.point().constructor,this.encodingLength=Math.ceil(O.n.bitLength()/8),this.hash=Y.sha512}Q.exports=I,I.prototype.sign=function(O,J){O=U(O);var F=this.keyFromSecret(J),A=this.hashInt(F.messagePrefix(),O),H=this.g.mul(A),W=this.encodePoint(H),E=this.hashInt(W,F.pubBytes(),O).mul(F.priv()),T=A.add(E).umod(this.curve.n);return this.makeSignature({R:H,S:T,Rencoded:W})},I.prototype.verify=function(O,J,F){O=U(O),J=this.makeSignature(J);var A=this.keyFromPublic(F),H=this.hashInt(J.Rencoded(),A.pubBytes(),O),W=this.g.mul(J.S()),E=J.R().add(A.pub().mul(H));return E.eq(W)},I.prototype.hashInt=function(){for(var O=this.hash(),J=0;J<arguments.length;J++)O.update(arguments[J]);return G.intFromLE(O.digest()).umod(this.curve.n)},I.prototype.keyFromPublic=function(O){return X.fromPublic(this,O)},I.prototype.keyFromSecret=function(O){return X.fromSecret(this,O)},I.prototype.makeSignature=function(O){return O instanceof K?O:new K(this,O)},I.prototype.encodePoint=function(O){var J=O.getY().toArray("le",this.encodingLength);return J[this.encodingLength-1]|=O.getX().isOdd()?128:0,J},I.prototype.decodePoint=function(O){O=G.parseBytes(O);var J=O.length-1,F=O.slice(0,J).concat(O[J]&-129),A=(O[J]&128)!==0,H=G.intFromLE(F);return this.curve.pointFromY(H,A)},I.prototype.encodeInt=function(O){return O.toArray("le",this.encodingLength)},I.prototype.decodeInt=function(O){return G.intFromLE(O)},I.prototype.isPoint=function(O){return O instanceof this.pointClass}}}),TY=q$({"node_modules/elliptic/lib/elliptic.js"($){var Q=$;Q.version=dQ().version,Q.utils=oQ(),Q.rand=xQ(),Q.curve=mQ(),Q.curves=IY(),Q.ec=AY(),Q.eddsa=EY()}}),DY=q$({"node_modules/asn1.js/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X=F$;U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_<j.length&&(k===16?this._parseHex(j,_,g):(this._parseBase(j,k,_),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N,x,B=0;if(g==="be")for(_=j.length-1,N=0;_>=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_<j.length;_+=3)x=j[_]|j[_+1]<<8|j[_+2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N=0,x=0,B;if(g==="be")for(_=j.length-1;_>=k;_-=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_<j.length;_+=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B<x;B++){var y=j.charCodeAt(B)-48;N*=_,y>=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p<y;p+=_)w=O(j,p,p+_,k),this.imuln(N),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var f=1;for(w=O(j,p,j.length,k),p=0;p<B;p++)f*=k;this.imuln(f),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x<this.length;x++){var B=this.words[x],y=((B<<_|N)&16777215).toString(16);N=B>>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w<N;w++)B[w]=0}else{for(w=0;w<N-_;w++)B[w]=0;for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[N-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var _=g/26|0,N=g%26;k[g]=(j.words[_]&1<<N)>>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_<g.length;_++)this.words[_]=k.words[_]^g.words[_];if(this!==k)for(;_<k.length;_++)this.words[_]=k.words[_];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_<k;_++)this.words[_]=~this.words[_]&67108863;return g>0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x<g.length;x++)k=(g.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;x<g.length;x++)this.words[x]=g.words[x];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B<N.length;B++)k=(_.words[B]|0)-(N.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x<g.length-1;x++){var B=N;N=0;for(var y=_&67108863,w=Math.min(x,k.length-1),p=Math.max(0,x-j.length+1);p<=w;p++){var f=x-p,c=j.words[f]|0,h=k.words[p]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_<j;_++)k[_]=this.revBin(_,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var _=0,N=0;N<k;N++)_|=(j&1)<<k-N-1,j>>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B<x;B++)_[B]=k[j[B]],N[B]=g[j[B]]},C.prototype.transform=function(j,k,g,_,N,x){this.permute(x,j,k,g,_,N);for(var B=1;B<N;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),p=Math.sin(2*Math.PI/y),f=0;f<N;f+=y)for(var c=w,h=p,d=0;d<B;d++){var b=g[f+d],l=_[f+d],o=g[f+d+B],u=_[f+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[f+d]=b+o,_[f+d]=l+u,g[f+d+B]=b-o,_[f+d+B]=l-u,d!==y&&(n=w*c-p*h,h=w*h+p*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,_=g&1,N=0;for(g=g/2|0;g;g=g>>>1)N++;return 1<<N+1+_},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var _=0;_<g/2;_++){var N=j[_];j[_]=j[g-_-1],j[g-_-1]=N,N=k[_],k[_]=-k[g-_-1],k[g-_-1]=-N}},C.prototype.normalize13b=function(j,k){for(var g=0,_=0;_<k/2;_++){var N=Math.round(j[2*_+1]/k)*8192+Math.round(j[2*_]/k)+g;j[_]=N&67108863,N<67108864?g=0:g=N/67108864|0}return j},C.prototype.convert13b=function(j,k,g,_){for(var N=0,x=0;x<k;x++)N=N+(j[x]|0),g[2*x]=N&8191,N=N>>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var _=2*this.guessLen13b(j.length,k.length),N=this.makeRBT(_),x=this.stub(_),B=new Array(_),y=new Array(_),w=new Array(_),p=new Array(_),f=new Array(_),c=new Array(_),h=g.words;h.length=_,this.convert13b(j.words,j.length,B,_),this.convert13b(k.words,k.length,p,_),this.transform(B,x,y,w,_,N),this.transform(p,x,f,c,_,N);for(var d=0;d<_;d++){var b=y[d]*f[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*f[d],y[d]=b}return this.conjugate(y,w,_),this.transform(y,w,h,x,_,N),this.conjugate(h,x,_),this.normalize13b(h,_),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var _=(this.words[g]|0)*j,N=(_&67108863)+(k&67108863);k>>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_<k.length&&k[_]===0;_++,g=g.sqr());if(++_<k.length)for(var N=g.sqr();_<k.length;_++,N=N.sqr())k[_]!==0&&(g=g.mul(N));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N<this.length;N++){var B=this.words[N]&_,y=(this.words[N]|0)-B<<k;this.words[N]=y|x,x=B>>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N<g;N++)this.words[N]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<<N,y=g;if(_-=x,_=Math.max(0,_),y){for(var w=0;w<x;w++)y.words[w]=this.words[w];y.length=x}if(x!==0)if(this.length>x)for(this.length-=x,w=0;w<this.length;w++)this.words[w]=this.words[w+x];else this.words[0]=0,this.length=1;var p=0;for(w=this.length-1;w>=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return!1;var N=this.words[g];return!!(N&_)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<<k;this.words[this.length-1]&=_}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var _=j.length+g,N;this._expand(_);var x,B=0;for(N=0;N<j.length;N++){x=(this.words[N+g]|0)+B;var y=(j.words[N]|0)*k;x-=y&67108863,B=(x>>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N<this.length-g;N++)x=(this.words[N+g]|0)+B,B=x>>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+B,B=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p<w.length;p++)w.words[p]=0}var f=_.clone()._ishlnsubmul(N,1,y);f.negative===0&&(_=f,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=_,this;for(var N=_,x=g;N!==0&&x<this.length;x++){var B=this.words[x]|0;B+=N,N=B>>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_<N?k=-1:_>N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g<this.n?-1:k.ucmp(this.p);return _===0?(k.words[0]=0,k.length=1):_>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N<j.length;N++){var B=j.words[N]|0;j.words[N-10]=(B&g)<<4|x>>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var _=j.words[g]|0;k+=_*977,j.words[g]=k&67108863,k=_*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var _=(j.words[g]|0)*19+k,N=_&67108863;_>>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(p,new U(1).iushln(h-b-1));f=f.redMul(l),p=l.redSqr(),c=c.redMul(p),h=b}return f},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,_=new Array(1<<g);_[0]=new U(1).toRed(this),_[1]=j;for(var N=2;N<_.length;N++)_[N]=this.mul(_[N-1],j);var x=_[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),N=k.length-1;N>=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),CY=q$({"node_modules/safer-buffer/safer.js"($,Q){var Y=M$,Z=F$,G={},V;for(V in Y)!Y.hasOwnProperty(V)||V==="SlowBuffer"||V==="Buffer"||(G[V]=Y[V]);var U=G.Buffer={};for(V in Z)!Z.hasOwnProperty(V)||V==="allocUnsafe"||V==="allocUnsafeSlow"||(U[V]=Z[V]);if(G.Buffer.prototype=Z.prototype,(!U.from||U.from===Uint8Array.from)&&(U.from=function(X,K,I){if(typeof X=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof X);if(X&&typeof X.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);return Z(X,K,I)}),U.alloc||(U.alloc=function(X,K,I){if(typeof X!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof X);if(X<0||X>=2*(1<<30))throw new RangeError('The value "'+X+'" is invalid for option "size"');var O=Z(X);return!K||K.length===0?O.fill(0):typeof I=="string"?O.fill(K,I):O.fill(K),O}),!G.kStringMaxLength)try{G.kStringMaxLength=S$}catch{}G.constants||(G.constants={MAX_LENGTH:G.kMaxLength},G.kStringMaxLength&&(G.constants.MAX_STRING_LENGTH=G.kStringMaxLength)),Q.exports=G}}),LY=q$({"node_modules/asn1.js/lib/asn1/base/reporter.js"($){var Q=_$();function Y(G){this._reporterState={obj:null,path:[],options:G||{},errors:[]}}$.Reporter=Y,Y.prototype.isError=function(G){return G instanceof Z},Y.prototype.save=function(){let G=this._reporterState;return{obj:G.obj,pathLen:G.path.length}},Y.prototype.restore=function(G){let V=this._reporterState;V.obj=G.obj,V.path=V.path.slice(0,G.pathLen)},Y.prototype.enterKey=function(G){return this._reporterState.path.push(G)},Y.prototype.exitKey=function(G){let V=this._reporterState;V.path=V.path.slice(0,G-1)},Y.prototype.leaveKey=function(G,V,U){let X=this._reporterState;this.exitKey(G),X.obj!==null&&(X.obj[V]=U)},Y.prototype.path=function(){return this._reporterState.path.join("/")},Y.prototype.enterObject=function(){let G=this._reporterState,V=G.obj;return G.obj={},V},Y.prototype.leaveObject=function(G){let V=this._reporterState,U=V.obj;return V.obj=G,U},Y.prototype.error=function(G){let V,U=this._reporterState,X=G instanceof Z;if(X?V=G:V=new Z(U.path.map(function(K){return"["+JSON.stringify(K)+"]"}).join(""),G.message||G,G.stack),!U.options.partial)throw V;return X||U.errors.push(V),V},Y.prototype.wrapResult=function(G){let V=this._reporterState;return V.options.partial?{result:this.isError(G)?null:G,errors:V.errors}:G};function Z(G,V){this.path=G,this.rethrow(V)}Q(Z,Error),Z.prototype.rethrow=function(G){if(this.message=G+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Z),!this.stack)try{throw new Error(this.message)}catch(V){this.stack=V.stack}return this}}}),E$=q$({"node_modules/asn1.js/lib/asn1/base/buffer.js"($){var Q=_$(),Y=LY().Reporter,Z=CY().Buffer;function G(U,X){if(Y.call(this,X),!Z.isBuffer(U)){this.error("Input not Buffer");return}this.base=U,this.offset=0,this.length=U.length}Q(G,Y),$.DecoderBuffer=G,G.isDecoderBuffer=function(U){return U instanceof G?!0:typeof U=="object"&&Z.isBuffer(U.base)&&U.constructor.name==="DecoderBuffer"&&typeof U.offset=="number"&&typeof U.length=="number"&&typeof U.save=="function"&&typeof U.restore=="function"&&typeof U.isEmpty=="function"&&typeof U.readUInt8=="function"&&typeof U.skip=="function"&&typeof U.raw=="function"},G.prototype.save=function(){return{offset:this.offset,reporter:Y.prototype.save.call(this)}},G.prototype.restore=function(U){let X=new G(this.base);return X.offset=U.offset,X.length=this.offset,this.offset=U.offset,Y.prototype.restore.call(this,U.reporter),X},G.prototype.isEmpty=function(){return this.offset===this.length},G.prototype.readUInt8=function(U){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(U||"DecoderBuffer overrun")},G.prototype.skip=function(U,X){if(!(this.offset+U<=this.length))return this.error(X||"DecoderBuffer overrun");let K=new G(this.base);return K._reporterState=this._reporterState,K.offset=this.offset,K.length=this.offset+U,this.offset+=U,K},G.prototype.raw=function(U){return this.base.slice(U?U.offset:this.offset,this.length)};function V(U,X){if(Array.isArray(U))this.length=0,this.value=U.map(function(K){return V.isEncoderBuffer(K)||(K=new V(K,X)),this.length+=K.length,K},this);else if(typeof U=="number"){if(!(0<=U&&U<=255))return X.error("non-byte EncoderBuffer value");this.value=U,this.length=1}else if(typeof U=="string")this.value=U,this.length=Z.byteLength(U);else if(Z.isBuffer(U))this.value=U,this.length=U.length;else return X.error("Unsupported type: "+typeof U)}$.EncoderBuffer=V,V.isEncoderBuffer=function(U){return U instanceof V?!0:typeof U=="object"&&U.constructor.name==="EncoderBuffer"&&typeof U.length=="number"&&typeof U.join=="function"},V.prototype.join=function(U,X){return U||(U=Z.alloc(this.length)),X||(X=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(K){K.join(U,X),X+=K.length}):(typeof this.value=="number"?U[X]=this.value:typeof this.value=="string"?U.write(this.value,X):Z.isBuffer(this.value)&&this.value.copy(U,X),X+=this.length)),U}}}),RY=q$({"node_modules/asn1.js/lib/asn1/base/node.js"($,Q){var Y=LY().Reporter,Z=E$().EncoderBuffer,G=E$().DecoderBuffer,V=ZQ(),U=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],X=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(U),K=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function I(J,F,A){let H={};this._baseState=H,H.name=A,H.enc=J,H.parent=F||null,H.children=null,H.tag=null,H.args=null,H.reverseArgs=null,H.choice=null,H.optional=!1,H.any=!1,H.obj=!1,H.use=null,H.useDecoder=null,H.key=null,H.default=null,H.explicit=null,H.implicit=null,H.contains=null,H.parent||(H.children=[],this._wrap())}Q.exports=I;var O=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];I.prototype.clone=function(){let J=this._baseState,F={};O.forEach(function(H){F[H]=J[H]});let A=new this.constructor(F.parent);return A._baseState=F,A},I.prototype._wrap=function(){let J=this._baseState;X.forEach(function(F){this[F]=function(){let A=new this.constructor(this);return J.children.push(A),A[F].apply(A,arguments)}},this)},I.prototype._init=function(J){let F=this._baseState;V(F.parent===null),J.call(this),F.children=F.children.filter(function(A){return A._baseState.parent===this},this),V.equal(F.children.length,1,"Root node can have only one child")},I.prototype._useArgs=function(J){let F=this._baseState,A=J.filter(function(H){return H instanceof this.constructor},this);J=J.filter(function(H){return!(H instanceof this.constructor)},this),A.length!==0&&(V(F.children===null),F.children=A,A.forEach(function(H){H._baseState.parent=this},this)),J.length!==0&&(V(F.args===null),F.args=J,F.reverseArgs=J.map(function(H){if(typeof H!="object"||H.constructor!==Object)return H;let W={};return Object.keys(H).forEach(function(E){E==(E|0)&&(E|=0);let T=H[E];W[T]=E}),W}))},K.forEach(function(J){I.prototype[J]=function(){let F=this._baseState;throw new Error(J+" not implemented for encoding: "+F.enc)}}),U.forEach(function(J){I.prototype[J]=function(){let F=this._baseState,A=Array.prototype.slice.call(arguments);return V(F.tag===null),F.tag=J,this._useArgs(A),this}}),I.prototype.use=function(J){V(J);let F=this._baseState;return V(F.use===null),F.use=J,this},I.prototype.optional=function(){let J=this._baseState;return J.optional=!0,this},I.prototype.def=function(J){let F=this._baseState;return V(F.default===null),F.default=J,F.optional=!0,this},I.prototype.explicit=function(J){let F=this._baseState;return V(F.explicit===null&&F.implicit===null),F.explicit=J,this},I.prototype.implicit=function(J){let F=this._baseState;return V(F.explicit===null&&F.implicit===null),F.implicit=J,this},I.prototype.obj=function(){let J=this._baseState,F=Array.prototype.slice.call(arguments);return J.obj=!0,F.length!==0&&this._useArgs(F),this},I.prototype.key=function(J){let F=this._baseState;return V(F.key===null),F.key=J,this},I.prototype.any=function(){let J=this._baseState;return J.any=!0,this},I.prototype.choice=function(J){let F=this._baseState;return V(F.choice===null),F.choice=J,this._useArgs(Object.keys(J).map(function(A){return J[A]})),this},I.prototype.contains=function(J){let F=this._baseState;return V(F.use===null),F.contains=J,this},I.prototype._decode=function(J,F){let A=this._baseState;if(A.parent===null)return J.wrapResult(A.children[0]._decode(J,F));let H=A.default,W=!0,E=null;if(A.key!==null&&(E=J.enterKey(A.key)),A.optional){let D=null;if(A.explicit!==null?D=A.explicit:A.implicit!==null?D=A.implicit:A.tag!==null&&(D=A.tag),D===null&&!A.any){let C=J.save();try{A.choice===null?this._decodeGeneric(A.tag,J,F):this._decodeChoice(J,F),W=!0}catch{W=!1}J.restore(C)}else if(W=this._peekTag(J,D,A.any),J.isError(W))return W}let T;if(A.obj&&W&&(T=J.enterObject()),W){if(A.explicit!==null){let C=this._decodeTag(J,A.explicit);if(J.isError(C))return C;J=C}let D=J.offset;if(A.use===null&&A.choice===null){let C;A.any&&(C=J.save());let L=this._decodeTag(J,A.implicit!==null?A.implicit:A.tag,A.any);if(J.isError(L))return L;A.any?H=J.raw(C):J=L}if(F&&F.track&&A.tag!==null&&F.track(J.path(),D,J.length,"tagged"),F&&F.track&&A.tag!==null&&F.track(J.path(),J.offset,J.length,"content"),A.any||(A.choice===null?H=this._decodeGeneric(A.tag,J,F):H=this._decodeChoice(J,F)),J.isError(H))return H;if(!A.any&&A.choice===null&&A.children!==null&&A.children.forEach(function(C){C._decode(J,F)}),A.contains&&(A.tag==="octstr"||A.tag==="bitstr")){let C=new G(H);H=this._getUse(A.contains,J._reporterState.obj)._decode(C,F)}}return A.obj&&W&&(H=J.leaveObject(T)),A.key!==null&&(H!==null||W===!0)?J.leaveKey(E,A.key,H):E!==null&&J.exitKey(E),H},I.prototype._decodeGeneric=function(J,F,A){let H=this._baseState;return J==="seq"||J==="set"?null:J==="seqof"||J==="setof"?this._decodeList(F,J,H.args[0],A):/str$/.test(J)?this._decodeStr(F,J,A):J==="objid"&&H.args?this._decodeObjid(F,H.args[0],H.args[1],A):J==="objid"?this._decodeObjid(F,null,null,A):J==="gentime"||J==="utctime"?this._decodeTime(F,J,A):J==="null_"?this._decodeNull(F,A):J==="bool"?this._decodeBool(F,A):J==="objDesc"?this._decodeStr(F,J,A):J==="int"||J==="enum"?this._decodeInt(F,H.args&&H.args[0],A):H.use!==null?this._getUse(H.use,F._reporterState.obj)._decode(F,A):F.error("unknown tag: "+J)},I.prototype._getUse=function(J,F){let A=this._baseState;return A.useDecoder=this._use(J,F),V(A.useDecoder._baseState.parent===null),A.useDecoder=A.useDecoder._baseState.children[0],A.implicit!==A.useDecoder._baseState.implicit&&(A.useDecoder=A.useDecoder.clone(),A.useDecoder._baseState.implicit=A.implicit),A.useDecoder},I.prototype._decodeChoice=function(J,F){let A=this._baseState,H=null,W=!1;return Object.keys(A.choice).some(function(E){let T=J.save(),D=A.choice[E];try{let C=D._decode(J,F);if(J.isError(C))return!1;H={type:E,value:C},W=!0}catch{return J.restore(T),!1}return!0},this),W?H:J.error("Choice not matched")},I.prototype._createEncoderBuffer=function(J){return new Z(J,this.reporter)},I.prototype._encode=function(J,F,A){let H=this._baseState;if(H.default!==null&&H.default===J)return;let W=this._encodeValue(J,F,A);if(W!==void 0&&!this._skipDefault(W,F,A))return W},I.prototype._encodeValue=function(J,F,A){let H=this._baseState;if(H.parent===null)return H.children[0]._encode(J,F||new Y);let W=null;if(this.reporter=F,H.optional&&J===void 0)if(H.default!==null)J=H.default;else return;let E=null,T=!1;if(H.any)W=this._createEncoderBuffer(J);else if(H.choice)W=this._encodeChoice(J,F);else if(H.contains)E=this._getUse(H.contains,A)._encode(J,F),T=!0;else if(H.children)E=H.children.map(function(D){if(D._baseState.tag==="null_")return D._encode(null,F,J);if(D._baseState.key===null)return F.error("Child should have a key");let C=F.enterKey(D._baseState.key);if(typeof J!="object")return F.error("Child expected, but input is not object");let L=D._encode(J[D._baseState.key],F,J);return F.leaveKey(C),L},this).filter(function(D){return D}),E=this._createEncoderBuffer(E);else if(H.tag==="seqof"||H.tag==="setof"){if(!(H.args&&H.args.length===1))return F.error("Too many args for : "+H.tag);if(!Array.isArray(J))return F.error("seqof/setof, but data is not Array");let D=this.clone();D._baseState.implicit=null,E=this._createEncoderBuffer(J.map(function(C){let L=this._baseState;return this._getUse(L.args[0],J)._encode(C,F)},D))}else H.use!==null?W=this._getUse(H.use,A)._encode(J,F):(E=this._encodePrimitive(H.tag,J),T=!0);if(!H.any&&H.choice===null){let D=H.implicit!==null?H.implicit:H.tag,C=H.implicit===null?"universal":"context";D===null?H.use===null&&F.error("Tag could be omitted only for .use()"):H.use===null&&(W=this._encodeComposite(D,T,C,E))}return H.explicit!==null&&(W=this._encodeComposite(H.explicit,!1,"context",W)),W},I.prototype._encodeChoice=function(J,F){let A=this._baseState,H=A.choice[J.type];return H||V(!1,J.type+" not found in "+JSON.stringify(Object.keys(A.choice))),H._encode(J.value,F)},I.prototype._encodePrimitive=function(J,F){let A=this._baseState;if(/str$/.test(J))return this._encodeStr(F,J);if(J==="objid"&&A.args)return this._encodeObjid(F,A.reverseArgs[0],A.args[1]);if(J==="objid")return this._encodeObjid(F,null,null);if(J==="gentime"||J==="utctime")return this._encodeTime(F,J);if(J==="null_")return this._encodeNull();if(J==="int"||J==="enum")return this._encodeInt(F,A.args&&A.reverseArgs[0]);if(J==="bool")return this._encodeBool(F);if(J==="objDesc")return this._encodeStr(F,J);throw new Error("Unsupported tag: "+J)},I.prototype._isNumstr=function(J){return/^[0-9 ]*$/.test(J)},I.prototype._isPrintstr=function(J){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(J)}}}),PY=q$({"node_modules/asn1.js/lib/asn1/constants/der.js"($){function Q(Y){let Z={};return Object.keys(Y).forEach(function(G){(G|0)==G&&(G=G|0);let V=Y[G];Z[V]=G}),Z}$.tagClass={0:"universal",1:"application",2:"context",3:"private"},$.tagClassByName=Q($.tagClass),$.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},$.tagByName=Q($.tag)}}),zY=q$({"node_modules/asn1.js/lib/asn1/encoders/der.js"($,Q){var Y=_$(),Z=CY().Buffer,G=RY(),V=PY();function U(O){this.enc="der",this.name=O.name,this.entity=O,this.tree=new X,this.tree._init(O.body)}Q.exports=U,U.prototype.encode=function(O,J){return this.tree._encode(O,J).join()};function X(O){G.call(this,"der",O)}Y(X,G),X.prototype._encodeComposite=function(O,J,F,A){let H=I(O,J,F,this.reporter);if(A.length<128){let T=Z.alloc(2);return T[0]=H,T[1]=A.length,this._createEncoderBuffer([T,A])}let W=1;for(let T=A.length;T>=256;T>>=8)W++;let E=Z.alloc(2+W);E[0]=H,E[1]=128|W;for(let T=1+W,D=A.length;D>0;T--,D>>=8)E[T]=D&255;return this._createEncoderBuffer([E,A])},X.prototype._encodeStr=function(O,J){if(J==="bitstr")return this._createEncoderBuffer([O.unused|0,O.data]);if(J==="bmpstr"){let F=Z.alloc(O.length*2);for(let A=0;A<O.length;A++)F.writeUInt16BE(O.charCodeAt(A),A*2);return this._createEncoderBuffer(F)}else return J==="numstr"?this._isNumstr(O)?this._createEncoderBuffer(O):this.reporter.error("Encoding of string type: numstr supports only digits and space"):J==="printstr"?this._isPrintstr(O)?this._createEncoderBuffer(O):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(J)?this._createEncoderBuffer(O):J==="objDesc"?this._createEncoderBuffer(O):this.reporter.error("Encoding of string type: "+J+" unsupported")},X.prototype._encodeObjid=function(O,J,F){if(typeof O=="string"){if(!J)return this.reporter.error("string objid given, but no values map found");if(!J.hasOwnProperty(O))return this.reporter.error("objid not found in values map");O=J[O].split(/[\s.]+/g);for(let E=0;E<O.length;E++)O[E]|=0}else if(Array.isArray(O)){O=O.slice();for(let E=0;E<O.length;E++)O[E]|=0}if(!Array.isArray(O))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(O));if(!F){if(O[1]>=40)return this.reporter.error("Second objid identifier OOB");O.splice(0,2,O[0]*40+O[1])}let A=0;for(let E=0;E<O.length;E++){let T=O[E];for(A++;T>=128;T>>=7)A++}let H=Z.alloc(A),W=H.length-1;for(let E=O.length-1;E>=0;E--){let T=O[E];for(H[W--]=T&127;(T>>=7)>0;)H[W--]=128|T&127}return this._createEncoderBuffer(H)};function K(O){return O<10?"0"+O:O}X.prototype._encodeTime=function(O,J){let F,A=new Date(O);return J==="gentime"?F=[K(A.getUTCFullYear()),K(A.getUTCMonth()+1),K(A.getUTCDate()),K(A.getUTCHours()),K(A.getUTCMinutes()),K(A.getUTCSeconds()),"Z"].join(""):J==="utctime"?F=[K(A.getUTCFullYear()%100),K(A.getUTCMonth()+1),K(A.getUTCDate()),K(A.getUTCHours()),K(A.getUTCMinutes()),K(A.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+J+" time is not supported yet"),this._encodeStr(F,"octstr")},X.prototype._encodeNull=function(){return this._createEncoderBuffer("")},X.prototype._encodeInt=function(O,J){if(typeof O=="string"){if(!J)return this.reporter.error("String int or enum given, but no values map");if(!J.hasOwnProperty(O))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(O));O=J[O]}if(typeof O!="number"&&!Z.isBuffer(O)){let H=O.toArray();!O.sign&&H[0]&128&&H.unshift(0),O=Z.from(H)}if(Z.isBuffer(O)){let H=O.length;O.length===0&&H++;let W=Z.alloc(H);return O.copy(W),O.length===0&&(W[0]=0),this._createEncoderBuffer(W)}if(O<128)return this._createEncoderBuffer(O);if(O<256)return this._createEncoderBuffer([0,O]);let F=1;for(let H=O;H>=256;H>>=8)F++;let A=new Array(F);for(let H=A.length-1;H>=0;H--)A[H]=O&255,O>>=8;return A[0]&128&&A.unshift(0),this._createEncoderBuffer(Z.from(A))},X.prototype._encodeBool=function(O){return this._createEncoderBuffer(O?255:0)},X.prototype._use=function(O,J){return typeof O=="function"&&(O=O(J)),O._getEncoder("der").tree},X.prototype._skipDefault=function(O,J,F){let A=this._baseState,H;if(A.default===null)return!1;let W=O.join();if(A.defaultBuffer===void 0&&(A.defaultBuffer=this._encodeValue(A.default,J,F).join()),W.length!==A.defaultBuffer.length)return!1;for(H=0;H<W.length;H++)if(W[H]!==A.defaultBuffer[H])return!1;return!0};function I(O,J,F,A){let H;if(O==="seqof"?O="seq":O==="setof"&&(O="set"),V.tagByName.hasOwnProperty(O))H=V.tagByName[O];else if(typeof O=="number"&&(O|0)===O)H=O;else return A.error("Unknown tag: "+O);return H>=31?A.error("Multi-octet tag encoding unsupported"):(J||(H|=32),H|=V.tagClassByName[F||"universal"]<<6,H)}}}),MY=q$({"node_modules/asn1.js/lib/asn1/encoders/pem.js"($,Q){var Y=_$(),Z=zY();function G(V){Z.call(this,V),this.enc="pem"}Y(G,Z),Q.exports=G,G.prototype.encode=function(V,U){let X=Z.prototype.encode.call(this,V).toString("base64"),K=["-----BEGIN "+U.label+"-----"];for(let I=0;I<X.length;I+=64)K.push(X.slice(I,I+64));return K.push("-----END "+U.label+"-----"),K.join(`
-`)}}}),SY=q$({"node_modules/asn1.js/lib/asn1/encoders/index.js"($){var Q=$;Q.der=zY(),Q.pem=MY()}}),vY=q$({"node_modules/asn1.js/lib/asn1/decoders/der.js"($,Q){var Y=_$(),Z=DY(),G=E$().DecoderBuffer,V=RY(),U=PY();function X(J){this.enc="der",this.name=J.name,this.entity=J,this.tree=new K,this.tree._init(J.body)}Q.exports=X,X.prototype.decode=function(J,F){return G.isDecoderBuffer(J)||(J=new G(J,F)),this.tree._decode(J,F)};function K(J){V.call(this,"der",J)}Y(K,V),K.prototype._peekTag=function(J,F,A){if(J.isEmpty())return!1;let H=J.save(),W=I(J,'Failed to peek tag: "'+F+'"');return J.isError(W)?W:(J.restore(H),W.tag===F||W.tagStr===F||W.tagStr+"of"===F||A)},K.prototype._decodeTag=function(J,F,A){let H=I(J,'Failed to decode tag of "'+F+'"');if(J.isError(H))return H;let W=O(J,H.primitive,'Failed to get length of "'+F+'"');if(J.isError(W))return W;if(!A&&H.tag!==F&&H.tagStr!==F&&H.tagStr+"of"!==F)return J.error('Failed to match tag: "'+F+'"');if(H.primitive||W!==null)return J.skip(W,'Failed to match body of: "'+F+'"');let E=J.save(),T=this._skipUntilEnd(J,'Failed to skip indefinite length body: "'+this.tag+'"');return J.isError(T)?T:(W=J.offset-E.offset,J.restore(E),J.skip(W,'Failed to match body of: "'+F+'"'))},K.prototype._skipUntilEnd=function(J,F){for(;;){let A=I(J,F);if(J.isError(A))return A;let H=O(J,A.primitive,F);if(J.isError(H))return H;let W;if(A.primitive||H!==null?W=J.skip(H):W=this._skipUntilEnd(J,F),J.isError(W))return W;if(A.tagStr==="end")break}},K.prototype._decodeList=function(J,F,A,H){let W=[];for(;!J.isEmpty();){let E=this._peekTag(J,"end");if(J.isError(E))return E;let T=A.decode(J,"der",H);if(J.isError(T)&&E)break;W.push(T)}return W},K.prototype._decodeStr=function(J,F){if(F==="bitstr"){let A=J.readUInt8();return J.isError(A)?A:{unused:A,data:J.raw()}}else if(F==="bmpstr"){let A=J.raw();if(A.length%2===1)return J.error("Decoding of string type: bmpstr length mismatch");let H="";for(let W=0;W<A.length/2;W++)H+=String.fromCharCode(A.readUInt16BE(W*2));return H}else if(F==="numstr"){let A=J.raw().toString("ascii");return this._isNumstr(A)?A:J.error("Decoding of string type: numstr unsupported characters")}else{if(F==="octstr")return J.raw();if(F==="objDesc")return J.raw();if(F==="printstr"){let A=J.raw().toString("ascii");return this._isPrintstr(A)?A:J.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(F)?J.raw().toString():J.error("Decoding of string type: "+F+" unsupported")}},K.prototype._decodeObjid=function(J,F,A){let H,W=[],E=0,T=0;for(;!J.isEmpty();)T=J.readUInt8(),E<<=7,E|=T&127,(T&128)===0&&(W.push(E),E=0);T&128&&W.push(E);let D=W[0]/40|0,C=W[0]%40;if(A?H=W:H=[D,C].concat(W.slice(1)),F){let L=F[H.join(" ")];L===void 0&&(L=F[H.join(".")]),L!==void 0&&(H=L)}return H},K.prototype._decodeTime=function(J,F){let A=J.raw().toString(),H,W,E,T,D,C;if(F==="gentime")H=A.slice(0,4)|0,W=A.slice(4,6)|0,E=A.slice(6,8)|0,T=A.slice(8,10)|0,D=A.slice(10,12)|0,C=A.slice(12,14)|0;else if(F==="utctime")H=A.slice(0,2)|0,W=A.slice(2,4)|0,E=A.slice(4,6)|0,T=A.slice(6,8)|0,D=A.slice(8,10)|0,C=A.slice(10,12)|0,H<70?H=2000+H:H=1900+H;else return J.error("Decoding "+F+" time is not supported yet");return Date.UTC(H,W-1,E,T,D,C,0)},K.prototype._decodeNull=function(){return null},K.prototype._decodeBool=function(J){let F=J.readUInt8();return J.isError(F)?F:F!==0},K.prototype._decodeInt=function(J,F){let A=J.raw(),H=new Z(A);return F&&(H=F[H.toString(10)]||H),H},K.prototype._use=function(J,F){return typeof J=="function"&&(J=J(F)),J._getDecoder("der").tree};function I(J,F){let A=J.readUInt8(F);if(J.isError(A))return A;let H=U.tagClass[A>>6],W=(A&32)===0;if((A&31)===31){let T=A;for(A=0;(T&128)===128;){if(T=J.readUInt8(F),J.isError(T))return T;A<<=7,A|=T&127}}else A&=31;let E=U.tag[A];return{cls:H,primitive:W,tag:A,tagStr:E}}function O(J,F,A){let H=J.readUInt8(A);if(J.isError(H))return H;if(!F&&H===128)return null;if((H&128)===0)return H;let W=H&127;if(W>4)return J.error("length octect is too long");H=0;for(let E=0;E<W;E++){H<<=8;let T=J.readUInt8(A);if(J.isError(T))return T;H|=T}return H}}}),qY=q$({"node_modules/asn1.js/lib/asn1/decoders/pem.js"($,Q){var Y=_$(),Z=CY().Buffer,G=vY();function V(U){G.call(this,U),this.enc="pem"}Y(V,G),Q.exports=V,V.prototype.decode=function(U,X){let K=U.toString().split(/[\r\n]+/g),I=X.label.toUpperCase(),O=/^-----(BEGIN|END) ([^-]+)-----$/,J=-1,F=-1;for(let W=0;W<K.length;W++){let E=K[W].match(O);if(E!==null&&E[2]===I)if(J===-1){if(E[1]!=="BEGIN")break;J=W}else{if(E[1]!=="END")break;F=W;break}}if(J===-1||F===-1)throw new Error("PEM section not found for: "+I);let A=K.slice(J+1,F).join("");A.replace(/[^a-z0-9+/=]+/gi,"");let H=Z.from(A,"base64");return G.prototype.decode.call(this,H,X)}}}),jY=q$({"node_modules/asn1.js/lib/asn1/decoders/index.js"($){var Q=$;Q.der=vY(),Q.pem=qY()}}),kY=q$({"node_modules/asn1.js/lib/asn1/api.js"($){var Q=SY(),Y=jY(),Z=_$(),G=$;G.define=function(U,X){return new V(U,X)};function V(U,X){this.name=U,this.body=X,this.decoders={},this.encoders={}}V.prototype._createNamed=function(U){let X=this.name;function K(I){this._initNamed(I,X)}return Z(K,U),K.prototype._initNamed=function(I,O){U.call(this,I,O)},new K(this)},V.prototype._getDecoder=function(U){return U=U||"der",this.decoders.hasOwnProperty(U)||(this.decoders[U]=this._createNamed(Y[U])),this.decoders[U]},V.prototype.decode=function(U,X,K){return this._getDecoder(X).decode(U,K)},V.prototype._getEncoder=function(U){return U=U||"der",this.encoders.hasOwnProperty(U)||(this.encoders[U]=this._createNamed(Q[U])),this.encoders[U]},V.prototype.encode=function(U,X,K){return this._getEncoder(X).encode(U,K)}}}),gY=q$({"node_modules/asn1.js/lib/asn1/base/index.js"($){var Q=$;Q.Reporter=LY().Reporter,Q.DecoderBuffer=E$().DecoderBuffer,Q.EncoderBuffer=E$().EncoderBuffer,Q.Node=RY()}}),_Y=q$({"node_modules/asn1.js/lib/asn1/constants/index.js"($){var Q=$;Q._reverse=function(Y){let Z={};return Object.keys(Y).forEach(function(G){(G|0)==G&&(G=G|0);let V=Y[G];Z[V]=G}),Z},Q.der=PY()}}),NY=q$({"node_modules/asn1.js/lib/asn1.js"($){var Q=$;Q.bignum=DY(),Q.define=kY().define,Q.base=gY(),Q.constants=_Y(),Q.decoders=jY(),Q.encoders=SY()}}),xY=q$({"node_modules/parse-asn1/certificate.js"($,Q){var Y=NY(),Z=Y.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),G=Y.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),V=Y.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),U=Y.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(V),this.key("subjectPublicKey").bitstr())}),X=Y.define("RelativeDistinguishedName",function(){this.setof(G)}),K=Y.define("RDNSequence",function(){this.seqof(X)}),I=Y.define("Name",function(){this.choice({rdnSequence:this.use(K)})}),O=Y.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Z),this.key("notAfter").use(Z))}),J=Y.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),F=Y.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(V),this.key("issuer").use(I),this.key("validity").use(O),this.key("subject").use(I),this.key("subjectPublicKeyInfo").use(U),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(J).optional())}),A=Y.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(F),this.key("signatureAlgorithm").use(V),this.key("signatureValue").bitstr())});Q.exports=A}}),BY=q$({"node_modules/parse-asn1/asn1.js"($){var Q=NY();$.certificate=xY();var Y=Q.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});$.RSAPrivateKey=Y;var Z=Q.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});$.RSAPublicKey=Z;var G=Q.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(V),this.key("subjectPublicKey").bitstr())});$.PublicKey=G;var V=Q.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),U=Q.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(V),this.key("subjectPrivateKey").octstr())});$.PrivateKey=U;var X=Q.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});$.EncryptedPrivateKey=X;var K=Q.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});$.DSAPrivateKey=K,$.DSAparam=Q.define("DSAparam",function(){this.int()});var I=Q.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(O),this.key("publicKey").optional().explicit(1).bitstr())});$.ECPrivateKey=I;var O=Q.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});$.signature=Q.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}}),yY=q$({"node_modules/parse-asn1/aesid.json"($,Q){Q.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}}),wY=q$({"node_modules/parse-asn1/fixProc.js"($,Q){var Y=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,Z=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,G=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,V=MQ(),U=qQ(),X=k$().Buffer;Q.exports=function(K,I){var O=K.toString(),J=O.match(Y),F;if(J){var A="aes"+J[1],H=X.from(J[2],"hex"),W=X.from(J[3].replace(/[\r\n]/g,""),"base64"),E=V(I,H.slice(0,8),parseInt(J[1],10)).key,T=[],D=U.createDecipheriv(A,E,H);T.push(D.update(W)),T.push(D.final()),F=X.concat(T)}else{var C=O.match(G);F=X.from(C[2].replace(/[\r\n]/g,""),"base64")}var L=O.match(Z)[1];return{tag:L,data:F}}}}),pY=q$({"node_modules/parse-asn1/index.js"($,Q){var Y=BY(),Z=yY(),G=wY(),V=qQ(),U=QQ(),X=k$().Buffer;Q.exports=K;function K(O){var J;typeof O=="object"&&!X.isBuffer(O)&&(J=O.passphrase,O=O.key),typeof O=="string"&&(O=X.from(O));var F=G(O,J),A=F.tag,H=F.data,W,E;switch(A){case"CERTIFICATE":E=Y.certificate.decode(H,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(E||(E=Y.PublicKey.decode(H,"der")),W=E.algorithm.algorithm.join("."),W){case"1.2.840.113549.1.1.1":return Y.RSAPublicKey.decode(E.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return E.subjectPrivateKey=E.subjectPublicKey,{type:"ec",data:E};case"1.2.840.10040.4.1":return E.algorithm.params.pub_key=Y.DSAparam.decode(E.subjectPublicKey.data,"der"),{type:"dsa",data:E.algorithm.params};default:throw new Error("unknown key id "+W)}case"ENCRYPTED PRIVATE KEY":H=Y.EncryptedPrivateKey.decode(H,"der"),H=I(H,J);case"PRIVATE KEY":switch(E=Y.PrivateKey.decode(H,"der"),W=E.algorithm.algorithm.join("."),W){case"1.2.840.113549.1.1.1":return Y.RSAPrivateKey.decode(E.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:E.algorithm.curve,privateKey:Y.ECPrivateKey.decode(E.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return E.algorithm.params.priv_key=Y.DSAparam.decode(E.subjectPrivateKey,"der"),{type:"dsa",params:E.algorithm.params};default:throw new Error("unknown key id "+W)}case"RSA PUBLIC KEY":return Y.RSAPublicKey.decode(H,"der");case"RSA PRIVATE KEY":return Y.RSAPrivateKey.decode(H,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Y.DSAPrivateKey.decode(H,"der")};case"EC PRIVATE KEY":return H=Y.ECPrivateKey.decode(H,"der"),{curve:H.parameters.value,privateKey:H.privateKey};default:throw new Error("unknown key type "+A)}}K.signature=Y.signature;function I(O,J){var F=O.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(O.algorithm.decrypt.kde.kdeparams.iters.toString(),10),H=Z[O.algorithm.decrypt.cipher.algo.join(".")],W=O.algorithm.decrypt.cipher.iv,E=O.subjectPrivateKey,T=parseInt(H.split("-")[1],10)/8,D=U.pbkdf2Sync(J,F,A,T,"sha1"),C=V.createDecipheriv(H,D,W),L=[];return L.push(C.update(E)),L.push(C.final()),X.concat(L)}}}),fY=q$({"node_modules/browserify-sign/browser/curves.json"($,Q){Q.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}}),cY=q$({"node_modules/browserify-sign/browser/sign.js"($,Q){var Y=k$().Buffer,Z=s$(),G=hQ(),V=TY().ec,U=cQ(),X=pY(),K=fY();function I(D,C,L,R,P){var z=X(C);if(z.curve){if(R!=="ecdsa"&&R!=="ecdsa/rsa")throw new Error("wrong private key type");return O(D,z)}else if(z.type==="dsa"){if(R!=="dsa")throw new Error("wrong private key type");return J(D,z,L)}else if(R!=="rsa"&&R!=="ecdsa/rsa")throw new Error("wrong private key type");D=Y.concat([P,D]);for(var M=z.modulus.byteLength(),S=[0,1];D.length+S.length+1<M;)S.push(255);S.push(0);for(var v=-1;++v<D.length;)S.push(D[v]);var q=G(S,z);return q}function O(D,C){var L=K[C.curve.join(".")];if(!L)throw new Error("unknown curve "+C.curve.join("."));var R=new V(L),P=R.keyFromPrivate(C.privateKey),z=P.sign(D);return Y.from(z.toDER())}function J(D,C,L){for(var R=C.params.priv_key,P=C.params.p,z=C.params.q,M=C.params.g,S=new U(0),v,q=H(D,z).mod(z),j=!1,k=A(R,z,D,L);j===!1;)v=E(z,k,L),S=T(M,v,P,z),j=v.invm(z).imul(q.add(R.mul(S))).mod(z),j.cmpn(0)===0&&(j=!1,S=new U(0));return F(S,j)}function F(D,C){D=D.toArray(),C=C.toArray(),D[0]&128&&(D=[0].concat(D)),C[0]&128&&(C=[0].concat(C));var L=D.length+C.length+4,R=[48,L,2,D.length];return R=R.concat(D,[2,C.length],C),Y.from(R)}function A(D,C,L,R){if(D=Y.from(D.toArray()),D.length<C.byteLength()){var P=Y.alloc(C.byteLength()-D.length);D=Y.concat([P,D])}var z=L.length,M=W(L,C),S=Y.alloc(z);S.fill(1);var v=Y.alloc(z);return v=Z(R,v).update(S).update(Y.from([0])).update(D).update(M).digest(),S=Z(R,v).update(S).digest(),v=Z(R,v).update(S).update(Y.from([1])).update(D).update(M).digest(),S=Z(R,v).update(S).digest(),{k:v,v:S}}function H(D,C){var L=new U(D),R=(D.length<<3)-C.bitLength();return R>0&&L.ishrn(R),L}function W(D,C){D=H(D,C),D=D.mod(C);var L=Y.from(D.toArray());if(L.length<C.byteLength()){var R=Y.alloc(C.byteLength()-L.length);L=Y.concat([R,L])}return L}function E(D,C,L){var R,P;do{for(R=Y.alloc(0);R.length*8<D.bitLength();)C.v=Z(L,C.k).update(C.v).digest(),R=Y.concat([R,C.v]);P=H(R,D),C.k=Z(L,C.k).update(C.v).update(Y.from([0])).digest(),C.v=Z(L,C.k).update(C.v).digest()}while(P.cmp(D)!==-1);return P}function T(D,C,L,R){return D.toRed(U.mont(L)).redPow(C).fromRed().mod(R)}Q.exports=I,Q.exports.getKey=A,Q.exports.makeKey=E}}),hY=q$({"node_modules/browserify-sign/browser/verify.js"($,Q){var Y=k$().Buffer,Z=cQ(),G=TY().ec,V=pY(),U=fY();function X(J,F,A,H,W){var E=V(A);if(E.type==="ec"){if(H!=="ecdsa"&&H!=="ecdsa/rsa")throw new Error("wrong public key type");return K(J,F,E)}else if(E.type==="dsa"){if(H!=="dsa")throw new Error("wrong public key type");return I(J,F,E)}else if(H!=="rsa"&&H!=="ecdsa/rsa")throw new Error("wrong public key type");F=Y.concat([W,F]);for(var T=E.modulus.byteLength(),D=[1],C=0;F.length+D.length+2<T;)D.push(255),C++;D.push(0);for(var L=-1;++L<F.length;)D.push(F[L]);D=Y.from(D);var R=Z.mont(E.modulus);J=new Z(J).toRed(R),J=J.redPow(new Z(E.publicExponent)),J=Y.from(J.fromRed().toArray());var P=C<8?1:0;for(T=Math.min(J.length,D.length),J.length!==D.length&&(P=1),L=-1;++L<T;)P|=J[L]^D[L];return P===0}function K(J,F,A){var H=U[A.data.algorithm.curve.join(".")];if(!H)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));var W=new G(H),E=A.data.subjectPrivateKey.data;return W.verify(F,J,E)}function I(J,F,A){var H=A.data.p,W=A.data.q,E=A.data.g,T=A.data.pub_key,D=V.signature.decode(J,"der"),C=D.s,L=D.r;O(C,W),O(L,W);var R=Z.mont(H),P=C.invm(W),z=E.toRed(R).redPow(new Z(F).mul(P).mod(W)).fromRed().mul(T.toRed(R).redPow(L.mul(P).mod(W)).fromRed()).mod(H).mod(W);return z.cmp(L)===0}function O(J,F){if(J.cmpn(0)<=0)throw new Error("invalid sig");if(J.cmp(F)>=F)throw new Error("invalid sig")}Q.exports=X}}),dY=q$({"node_modules/browserify-sign/browser/index.js"($,Q){var Y=k$().Buffer,Z=o$(),G=_$(),V=cY(),U=hY(),X=t$();Object.keys(X).forEach(function(F){X[F].id=Y.from(X[F].id,"hex"),X[F.toLowerCase()]=X[F]});function K(F){A$.Writable.call(this);var A=X[F];if(!A)throw new Error("Unknown message digest");this._hashType=A.hash,this._hash=Z(A.hash),this._tag=A.id,this._signType=A.sign}G(K,A$.Writable),K.prototype._write=function(F,A,H){this._hash.update(F),H()},K.prototype.update=function(F,A){return typeof F=="string"&&(F=Y.from(F,A)),this._hash.update(F),this},K.prototype.sign=function(F,A){this.end();var H=this._hash.digest(),W=V(H,F,this._hashType,this._signType,this._tag);return A?W.toString(A):W};function I(F){A$.Writable.call(this);var A=X[F];if(!A)throw new Error("Unknown message digest");this._hash=Z(A.hash),this._tag=A.id,this._signType=A.sign}G(I,A$.Writable),I.prototype._write=function(F,A,H){this._hash.update(F),H()},I.prototype.update=function(F,A){return typeof F=="string"&&(F=Y.from(F,A)),this._hash.update(F),this},I.prototype.verify=function(F,A,H){typeof A=="string"&&(A=Y.from(A,H)),this.end();var W=this._hash.digest();return U(A,W,F,this._signType,this._tag)};function O(F){return new K(F)}function J(F){return new I(F)}Q.exports={Sign:O,Verify:J,createSign:O,createVerify:J}}}),bY=q$({"node_modules/create-ecdh/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X=F$;U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_<j.length&&(k===16?this._parseHex(j,_,g):(this._parseBase(j,k,_),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N,x,B=0;if(g==="be")for(_=j.length-1,N=0;_>=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_<j.length;_+=3)x=j[_]|j[_+1]<<8|j[_+2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N=0,x=0,B;if(g==="be")for(_=j.length-1;_>=k;_-=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_<j.length;_+=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B<x;B++){var y=j.charCodeAt(B)-48;N*=_,y>=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p<y;p+=_)w=O(j,p,p+_,k),this.imuln(N),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var f=1;for(w=O(j,p,j.length,k),p=0;p<B;p++)f*=k;this.imuln(f),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x<this.length;x++){var B=this.words[x],y=((B<<_|N)&16777215).toString(16);N=B>>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w<N;w++)B[w]=0}else{for(w=0;w<N-_;w++)B[w]=0;for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[N-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var _=g/26|0,N=g%26;k[g]=(j.words[_]&1<<N)>>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_<g.length;_++)this.words[_]=k.words[_]^g.words[_];if(this!==k)for(;_<k.length;_++)this.words[_]=k.words[_];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_<k;_++)this.words[_]=~this.words[_]&67108863;return g>0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x<g.length;x++)k=(g.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;x<g.length;x++)this.words[x]=g.words[x];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B<N.length;B++)k=(_.words[B]|0)-(N.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x<g.length-1;x++){var B=N;N=0;for(var y=_&67108863,w=Math.min(x,k.length-1),p=Math.max(0,x-j.length+1);p<=w;p++){var f=x-p,c=j.words[f]|0,h=k.words[p]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_<j;_++)k[_]=this.revBin(_,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var _=0,N=0;N<k;N++)_|=(j&1)<<k-N-1,j>>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B<x;B++)_[B]=k[j[B]],N[B]=g[j[B]]},C.prototype.transform=function(j,k,g,_,N,x){this.permute(x,j,k,g,_,N);for(var B=1;B<N;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),p=Math.sin(2*Math.PI/y),f=0;f<N;f+=y)for(var c=w,h=p,d=0;d<B;d++){var b=g[f+d],l=_[f+d],o=g[f+d+B],u=_[f+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[f+d]=b+o,_[f+d]=l+u,g[f+d+B]=b-o,_[f+d+B]=l-u,d!==y&&(n=w*c-p*h,h=w*h+p*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,_=g&1,N=0;for(g=g/2|0;g;g=g>>>1)N++;return 1<<N+1+_},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var _=0;_<g/2;_++){var N=j[_];j[_]=j[g-_-1],j[g-_-1]=N,N=k[_],k[_]=-k[g-_-1],k[g-_-1]=-N}},C.prototype.normalize13b=function(j,k){for(var g=0,_=0;_<k/2;_++){var N=Math.round(j[2*_+1]/k)*8192+Math.round(j[2*_]/k)+g;j[_]=N&67108863,N<67108864?g=0:g=N/67108864|0}return j},C.prototype.convert13b=function(j,k,g,_){for(var N=0,x=0;x<k;x++)N=N+(j[x]|0),g[2*x]=N&8191,N=N>>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var _=2*this.guessLen13b(j.length,k.length),N=this.makeRBT(_),x=this.stub(_),B=new Array(_),y=new Array(_),w=new Array(_),p=new Array(_),f=new Array(_),c=new Array(_),h=g.words;h.length=_,this.convert13b(j.words,j.length,B,_),this.convert13b(k.words,k.length,p,_),this.transform(B,x,y,w,_,N),this.transform(p,x,f,c,_,N);for(var d=0;d<_;d++){var b=y[d]*f[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*f[d],y[d]=b}return this.conjugate(y,w,_),this.transform(y,w,h,x,_,N),this.conjugate(h,x,_),this.normalize13b(h,_),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var _=(this.words[g]|0)*j,N=(_&67108863)+(k&67108863);k>>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_<k.length&&k[_]===0;_++,g=g.sqr());if(++_<k.length)for(var N=g.sqr();_<k.length;_++,N=N.sqr())k[_]!==0&&(g=g.mul(N));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N<this.length;N++){var B=this.words[N]&_,y=(this.words[N]|0)-B<<k;this.words[N]=y|x,x=B>>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N<g;N++)this.words[N]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<<N,y=g;if(_-=x,_=Math.max(0,_),y){for(var w=0;w<x;w++)y.words[w]=this.words[w];y.length=x}if(x!==0)if(this.length>x)for(this.length-=x,w=0;w<this.length;w++)this.words[w]=this.words[w+x];else this.words[0]=0,this.length=1;var p=0;for(w=this.length-1;w>=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return!1;var N=this.words[g];return!!(N&_)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<<k;this.words[this.length-1]&=_}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var _=j.length+g,N;this._expand(_);var x,B=0;for(N=0;N<j.length;N++){x=(this.words[N+g]|0)+B;var y=(j.words[N]|0)*k;x-=y&67108863,B=(x>>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N<this.length-g;N++)x=(this.words[N+g]|0)+B,B=x>>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+B,B=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p<w.length;p++)w.words[p]=0}var f=_.clone()._ishlnsubmul(N,1,y);f.negative===0&&(_=f,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=_,this;for(var N=_,x=g;N!==0&&x<this.length;x++){var B=this.words[x]|0;B+=N,N=B>>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_<N?k=-1:_>N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g<this.n?-1:k.ucmp(this.p);return _===0?(k.words[0]=0,k.length=1):_>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N<j.length;N++){var B=j.words[N]|0;j.words[N-10]=(B&g)<<4|x>>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var _=j.words[g]|0;k+=_*977,j.words[g]=k&67108863,k=_*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var _=(j.words[g]|0)*19+k,N=_&67108863;_>>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(p,new U(1).iushln(h-b-1));f=f.redMul(l),p=l.redSqr(),c=c.redMul(p),h=b}return f},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,_=new Array(1<<g);_[0]=new U(1).toRed(this),_[1]=j;for(var N=2;N<_.length;N++)_[N]=this.mul(_[N-1],j);var x=_[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),N=k.length-1;N>=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),lY=q$({"node_modules/create-ecdh/browser.js"($,Q){var Y=TY(),Z=bY();Q.exports=function(X){return new V(X)};var G={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};G.p224=G.secp224r1,G.p256=G.secp256r1=G.prime256v1,G.p192=G.secp192r1=G.prime192v1,G.p384=G.secp384r1,G.p521=G.secp521r1;function V(X){this.curveType=G[X],this.curveType||(this.curveType={name:X}),this.curve=new Y.ec(this.curveType.name),this.keys=void 0}V.prototype.generateKeys=function(X,K){return this.keys=this.curve.genKeyPair(),this.getPublicKey(X,K)},V.prototype.computeSecret=function(X,K,I){K=K||"utf8",F$.isBuffer(X)||(X=new F$(X,K));var O=this.curve.keyFromPublic(X).getPublic(),J=O.mul(this.keys.getPrivate()).getX();return U(J,I,this.curveType.byteLength)},V.prototype.getPublicKey=function(X,K){var I=this.keys.getPublic(K==="compressed",!0);return K==="hybrid"&&(I[I.length-1]%2?I[0]=7:I[0]=6),U(I,X)},V.prototype.getPrivateKey=function(X){return U(this.keys.getPrivate(),X)},V.prototype.setPublicKey=function(X,K){return K=K||"utf8",F$.isBuffer(X)||(X=new F$(X,K)),this.keys._importPublic(X),this},V.prototype.setPrivateKey=function(X,K){K=K||"utf8",F$.isBuffer(X)||(X=new F$(X,K));var I=new Z(X);return I=I.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(I),this};function U(X,K,I){Array.isArray(X)||(X=X.toArray());var O=new F$(X);if(I&&O.length<I){var J=new F$(I-O.length);J.fill(0),O=F$.concat([J,O])}return K?O.toString(K):O}}}),oY=q$({"node_modules/public-encrypt/mgf.js"($,Q){var Y=o$(),Z=k$().Buffer;Q.exports=function(V,U){for(var X=Z.alloc(0),K=0,I;X.length<U;)I=G(K++),X=Z.concat([X,Y("sha1").update(V).update(I).digest()]);return X.slice(0,U)};function G(V){var U=Z.allocUnsafe(4);return U.writeUInt32BE(V,0),U}}}),uY=q$({"node_modules/public-encrypt/xor.js"($,Q){Q.exports=function(Y,Z){for(var G=Y.length,V=-1;++V<G;)Y[V]^=Z[V];return Y}}}),nY=q$({"node_modules/public-encrypt/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X=globalThis.Buffer;U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var _=0;j[0]==="-"&&(_++,this.negative=1),_<j.length&&(k===16?this._parseHex(j,_,g):(this._parseBase(j,k,_),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N,x,B=0;if(g==="be")for(_=j.length-1,N=0;_>=0;_-=3)x=j[_]|j[_-1]<<8|j[_-2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(g==="le")for(_=0,N=0;_<j.length;_+=3)x=j[_]|j[_+1]<<8|j[_+2]<<16,this.words[N]|=x<<B&67108863,this.words[N+1]=x>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var _=K(j,g);return g-1>=k&&(_|=K(j,g-1)<<4),_}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var N=0,x=0,B;if(g==="be")for(_=j.length-1;_>=k;_-=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8;else{var y=j.length-k;for(_=y%2===0?k+1:k;_<j.length;_+=2)B=I(j,k,_)<<N,this.words[x]|=B&67108863,N>=18?(N-=18,x+=1,this.words[x]|=B>>>26):N+=8}this.strip()};function O(j,k,g,_){for(var N=0,x=Math.min(j.length,g),B=k;B<x;B++){var y=j.charCodeAt(B)-48;N*=_,y>=49?N+=y-49+10:y>=17?N+=y-17+10:N+=y}return N}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var _=0,N=1;N<=67108863;N*=k)_++;_--,N=N/k|0;for(var x=j.length-g,B=x%_,y=Math.min(x,x-B)+g,w=0,p=g;p<y;p+=_)w=O(j,p,p+_,k),this.imuln(N),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var f=1;for(w=O(j,p,j.length,k),p=0;p<B;p++)f*=k;this.imuln(f),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var _=0,N=0,x=0;x<this.length;x++){var B=this.words[x],y=((B<<_|N)&16777215).toString(16);N=B>>>24-_&16777215,N!==0||x!==this.length-1?g=J[6-y.length]+y+g:g=y+g,_+=2,_>=26&&(_-=26,x--)}for(N!==0&&(g=N.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],p=A[j];g="";var f=this.clone();for(f.negative=0;!f.isZero();){var c=f.modn(p).toString(j);f=f.idivn(p),f.isZero()?g=c+g:g=J[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var _=this.byteLength(),N=g||Math.max(1,_);G(_<=N,"byte array longer than desired length"),G(N>0,"Requested array length <= 0"),this.strip();var x=k==="le",B=new j(N),y,w,p=this.clone();if(x){for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[w]=y;for(;w<N;w++)B[w]=0}else{for(w=0;w<N-_;w++)B[w]=0;for(w=0;!p.isZero();w++)y=p.andln(255),p.iushrn(8),B[N-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function H(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var _=g/26|0,N=g%26;k[g]=(j.words[_]&1<<N)>>>N}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var _=0;_<g.length;_++)this.words[_]=k.words[_]^g.words[_];if(this!==k)for(;_<k.length;_++)this.words[_]=k.words[_];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var _=0;_<k;_++)this.words[_]=~this.words[_]&67108863;return g>0&&(this.words[_]=~this.words[_]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,_=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<_:this.words[g]=this.words[g]&~(1<<_),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,_;this.length>j.length?(g=this,_=j):(g=j,_=this);for(var N=0,x=0;x<_.length;x++)k=(g.words[x]|0)+(_.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;for(;N!==0&&x<g.length;x++)k=(g.words[x]|0)+N,this.words[x]=k&67108863,N=k>>>26;if(this.length=g.length,N!==0)this.words[this.length]=N,this.length++;else if(g!==this)for(;x<g.length;x++)this.words[x]=g.words[x];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,N;g>0?(_=this,N=j):(_=j,N=this);for(var x=0,B=0;B<N.length;B++)k=(_.words[B]|0)-(N.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;for(;x!==0&&B<_.length;B++)k=(_.words[B]|0)+x,x=k>>26,this.words[B]=k&67108863;if(x===0&&B<_.length&&_!==this)for(;B<_.length;B++)this.words[B]=_.words[B];return this.length=Math.max(this.length,B),_!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function W(j,k,g){g.negative=k.negative^j.negative;var _=j.length+k.length|0;g.length=_,_=_-1|0;var N=j.words[0]|0,x=k.words[0]|0,B=N*x,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var p=1;p<_;p++){for(var f=w>>>26,c=w&67108863,h=Math.min(p,k.length-1),d=Math.max(0,p-j.length+1);d<=h;d++){var b=p-d|0;N=j.words[b]|0,x=k.words[d]|0,B=N*x+c,f+=B/67108864|0,c=B&67108863}g.words[p]=c|0,w=f|0}return w!==0?g.words[p]=w|0:g.length--,g.strip()}var E=function(j,k,g){var _=j.words,N=k.words,x=g.words,B=0,y,w,p,f=_[0]|0,c=f&8191,h=f>>>13,d=_[1]|0,b=d&8191,l=d>>>13,o=_[2]|0,u=o&8191,n=o>>>13,s=_[3]|0,t=s&8191,m=s>>>13,a=_[4]|0,e=a&8191,r=a>>>13,i=_[5]|0,$0=i&8191,Q0=i>>>13,Y0=_[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=_[7]|0,U0=V0&8191,X0=V0>>>13,K0=_[8]|0,I0=K0&8191,O0=K0>>>13,J0=_[9]|0,F0=J0&8191,A0=J0>>>13,H0=N[0]|0,W0=H0&8191,E0=H0>>>13,T0=N[1]|0,D0=T0&8191,C0=T0>>>13,L0=N[2]|0,R0=L0&8191,P0=L0>>>13,z0=N[3]|0,M0=z0&8191,S0=z0>>>13,v0=N[4]|0,q0=v0&8191,j0=v0>>>13,k0=N[5]|0,g0=k0&8191,_0=k0>>>13,N0=N[6]|0,x0=N0&8191,B0=N0>>>13,y0=N[7]|0,w0=y0&8191,p0=y0>>>13,f0=N[8]|0,c0=f0&8191,h0=f0>>>13,d0=N[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,W0),w=Math.imul(c,E0),w=w+Math.imul(h,W0)|0,p=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,W0),w=Math.imul(b,E0),w=w+Math.imul(l,W0)|0,p=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,p=p+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,W0),w=Math.imul(u,E0),w=w+Math.imul(n,W0)|0,p=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,p=p+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,p=p+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,W0),w=Math.imul(t,E0),w=w+Math.imul(m,W0)|0,p=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,p=p+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,p=p+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,p=p+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(e,W0),w=Math.imul(e,E0),w=w+Math.imul(r,W0)|0,p=Math.imul(r,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,p=p+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,p=p+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,p=p+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,p=p+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,W0),w=Math.imul($0,E0),w=w+Math.imul(Q0,W0)|0,p=Math.imul(Q0,E0),y=y+Math.imul(e,D0)|0,w=w+Math.imul(e,C0)|0,w=w+Math.imul(r,D0)|0,p=p+Math.imul(r,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,p=p+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,p=p+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,p=p+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,_0)|0,w=w+Math.imul(h,g0)|0,p=p+Math.imul(h,_0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,W0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,W0)|0,p=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,p=p+Math.imul(Q0,C0)|0,y=y+Math.imul(e,R0)|0,w=w+Math.imul(e,P0)|0,w=w+Math.imul(r,R0)|0,p=p+Math.imul(r,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,p=p+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,p=p+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,_0)|0,w=w+Math.imul(l,g0)|0,p=p+Math.imul(l,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,x0)|0,p=p+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,W0),w=Math.imul(U0,E0),w=w+Math.imul(X0,W0)|0,p=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,p=p+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,p=p+Math.imul(Q0,P0)|0,y=y+Math.imul(e,M0)|0,w=w+Math.imul(e,S0)|0,w=w+Math.imul(r,M0)|0,p=p+Math.imul(r,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,p=p+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,_0)|0,w=w+Math.imul(n,g0)|0,p=p+Math.imul(n,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,x0)|0,p=p+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,p0)|0,w=w+Math.imul(h,w0)|0,p=p+Math.imul(h,p0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(I0,W0),w=Math.imul(I0,E0),w=w+Math.imul(O0,W0)|0,p=Math.imul(O0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,p=p+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,p=p+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,p=p+Math.imul(Q0,S0)|0,y=y+Math.imul(e,q0)|0,w=w+Math.imul(e,j0)|0,w=w+Math.imul(r,q0)|0,p=p+Math.imul(r,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,_0)|0,w=w+Math.imul(m,g0)|0,p=p+Math.imul(m,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,x0)|0,p=p+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,p0)|0,w=w+Math.imul(l,w0)|0,p=p+Math.imul(l,p0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,p=p+Math.imul(h,h0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(F0,W0),w=Math.imul(F0,E0),w=w+Math.imul(A0,W0)|0,p=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(O0,D0)|0,p=p+Math.imul(O0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,p=p+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,p=p+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,p=p+Math.imul(Q0,j0)|0,y=y+Math.imul(e,g0)|0,w=w+Math.imul(e,_0)|0,w=w+Math.imul(r,g0)|0,p=p+Math.imul(r,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,x0)|0,p=p+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,p0)|0,w=w+Math.imul(n,w0)|0,p=p+Math.imul(n,p0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,p=p+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,p=p+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,p=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(O0,R0)|0,p=p+Math.imul(O0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,p=p+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,p=p+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,_0)|0,w=w+Math.imul(Q0,g0)|0,p=p+Math.imul(Q0,_0)|0,y=y+Math.imul(e,x0)|0,w=w+Math.imul(e,B0)|0,w=w+Math.imul(r,x0)|0,p=p+Math.imul(r,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,p0)|0,w=w+Math.imul(m,w0)|0,p=p+Math.imul(m,p0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,p=p+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,p=p+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,p=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(O0,M0)|0,p=p+Math.imul(O0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,p=p+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,_0)|0,w=w+Math.imul(G0,g0)|0,p=p+Math.imul(G0,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,x0)|0,p=p+Math.imul(Q0,B0)|0,y=y+Math.imul(e,w0)|0,w=w+Math.imul(e,p0)|0,w=w+Math.imul(r,w0)|0,p=p+Math.imul(r,p0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,p=p+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,p=p+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,p=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(O0,q0)|0,p=p+Math.imul(O0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,_0)|0,w=w+Math.imul(X0,g0)|0,p=p+Math.imul(X0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,x0)|0,p=p+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,p0)|0,w=w+Math.imul(Q0,w0)|0,p=p+Math.imul(Q0,p0)|0,y=y+Math.imul(e,c0)|0,w=w+Math.imul(e,h0)|0,w=w+Math.imul(r,c0)|0,p=p+Math.imul(r,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,p=p+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,p=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,_0)|0,w=w+Math.imul(O0,g0)|0,p=p+Math.imul(O0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,x0)|0,p=p+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,p0)|0,w=w+Math.imul(G0,w0)|0,p=p+Math.imul(G0,p0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,p=p+Math.imul(Q0,h0)|0,y=y+Math.imul(e,b0)|0,w=w+Math.imul(e,l0)|0,w=w+Math.imul(r,b0)|0,p=p+Math.imul(r,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,_0),w=w+Math.imul(A0,g0)|0,p=Math.imul(A0,_0),y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(O0,x0)|0,p=p+Math.imul(O0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,p0)|0,w=w+Math.imul(X0,w0)|0,p=p+Math.imul(X0,p0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,p=p+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,p=p+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,x0),w=Math.imul(F0,B0),w=w+Math.imul(A0,x0)|0,p=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,p0)|0,w=w+Math.imul(O0,w0)|0,p=p+Math.imul(O0,p0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,p=p+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,p=p+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,p0),w=w+Math.imul(A0,w0)|0,p=Math.imul(A0,p0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(O0,c0)|0,p=p+Math.imul(O0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,p=p+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,p=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(O0,b0)|0,p=p+Math.imul(O0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(p+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,p=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(p+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,x[0]=o0,x[1]=u0,x[2]=n0,x[3]=s0,x[4]=t0,x[5]=m0,x[6]=a0,x[7]=e0,x[8]=r0,x[9]=i0,x[10]=$$,x[11]=Q$,x[12]=Y$,x[13]=Z$,x[14]=G$,x[15]=V$,x[16]=U$,x[17]=X$,x[18]=K$,B!==0&&(x[19]=B,g.length++),g};Math.imul||(E=W);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var _=0,N=0,x=0;x<g.length-1;x++){var B=N;N=0;for(var y=_&67108863,w=Math.min(x,k.length-1),p=Math.max(0,x-j.length+1);p<=w;p++){var f=x-p,c=j.words[f]|0,h=k.words[p]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,N+=B>>>26,B&=67108863}g.words[x]=y,_=B,B=N}return _!==0?g.words[x]=_:g.length--,g.strip()}function D(j,k,g){var _=new C;return _.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,_=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):_<63?g=W(this,j,k):_<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,_=0;_<j;_++)k[_]=this.revBin(_,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var _=0,N=0;N<k;N++)_|=(j&1)<<k-N-1,j>>=1;return _},C.prototype.permute=function(j,k,g,_,N,x){for(var B=0;B<x;B++)_[B]=k[j[B]],N[B]=g[j[B]]},C.prototype.transform=function(j,k,g,_,N,x){this.permute(x,j,k,g,_,N);for(var B=1;B<N;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),p=Math.sin(2*Math.PI/y),f=0;f<N;f+=y)for(var c=w,h=p,d=0;d<B;d++){var b=g[f+d],l=_[f+d],o=g[f+d+B],u=_[f+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[f+d]=b+o,_[f+d]=l+u,g[f+d+B]=b-o,_[f+d+B]=l-u,d!==y&&(n=w*c-p*h,h=w*h+p*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,_=g&1,N=0;for(g=g/2|0;g;g=g>>>1)N++;return 1<<N+1+_},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var _=0;_<g/2;_++){var N=j[_];j[_]=j[g-_-1],j[g-_-1]=N,N=k[_],k[_]=-k[g-_-1],k[g-_-1]=-N}},C.prototype.normalize13b=function(j,k){for(var g=0,_=0;_<k/2;_++){var N=Math.round(j[2*_+1]/k)*8192+Math.round(j[2*_]/k)+g;j[_]=N&67108863,N<67108864?g=0:g=N/67108864|0}return j},C.prototype.convert13b=function(j,k,g,_){for(var N=0,x=0;x<k;x++)N=N+(j[x]|0),g[2*x]=N&8191,N=N>>>13,g[2*x+1]=N&8191,N=N>>>13;for(x=2*k;x<_;++x)g[x]=0;G(N===0),G((N&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var _=2*this.guessLen13b(j.length,k.length),N=this.makeRBT(_),x=this.stub(_),B=new Array(_),y=new Array(_),w=new Array(_),p=new Array(_),f=new Array(_),c=new Array(_),h=g.words;h.length=_,this.convert13b(j.words,j.length,B,_),this.convert13b(k.words,k.length,p,_),this.transform(B,x,y,w,_,N),this.transform(p,x,f,c,_,N);for(var d=0;d<_;d++){var b=y[d]*f[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*f[d],y[d]=b}return this.conjugate(y,w,_),this.transform(y,w,h,x,_,N),this.conjugate(h,x,_),this.normalize13b(h,_),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var _=(this.words[g]|0)*j,N=(_&67108863)+(k&67108863);k>>=26,k+=_/67108864|0,k+=N>>>26,this.words[g]=N&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=H(j);if(k.length===0)return new U(1);for(var g=this,_=0;_<k.length&&k[_]===0;_++,g=g.sqr());if(++_<k.length)for(var N=g.sqr();_<k.length;_++,N=N.sqr())k[_]!==0&&(g=g.mul(N));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=67108863>>>26-k<<26-k,N;if(k!==0){var x=0;for(N=0;N<this.length;N++){var B=this.words[N]&_,y=(this.words[N]|0)-B<<k;this.words[N]=y|x,x=B>>>26-k}x&&(this.words[N]=x,this.length++)}if(g!==0){for(N=this.length-1;N>=0;N--)this.words[N+g]=this.words[N];for(N=0;N<g;N++)this.words[N]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var _;k?_=(k-k%26)/26:_=0;var N=j%26,x=Math.min((j-N)/26,this.length),B=67108863^67108863>>>N<<N,y=g;if(_-=x,_=Math.max(0,_),y){for(var w=0;w<x;w++)y.words[w]=this.words[w];y.length=x}if(x!==0)if(this.length>x)for(this.length-=x,w=0;w<this.length;w++)this.words[w]=this.words[w+x];else this.words[0]=0,this.length=1;var p=0;for(w=this.length-1;w>=0&&(p!==0||w>=_);w--){var f=this.words[w]|0;this.words[w]=p<<26-N|f>>>N,p=f&B}return y&&p!==0&&(y.words[y.length++]=p),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return!1;var N=this.words[g];return!!(N&_)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var _=67108863^67108863>>>k<<k;this.words[this.length-1]&=_}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var _=j.length+g,N;this._expand(_);var x,B=0;for(N=0;N<j.length;N++){x=(this.words[N+g]|0)+B;var y=(j.words[N]|0)*k;x-=y&67108863,B=(x>>26)-(y/67108864|0),this.words[N+g]=x&67108863}for(;N<this.length-g;N++)x=(this.words[N+g]|0)+B,B=x>>26,this.words[N+g]=x&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+B,B=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,_=this.clone(),N=j,x=N.words[N.length-1]|0,B=this._countBits(x);g=26-B,g!==0&&(N=N.ushln(g),_.iushln(g),x=N.words[N.length-1]|0);var y=_.length-N.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var p=0;p<w.length;p++)w.words[p]=0}var f=_.clone()._ishlnsubmul(N,1,y);f.negative===0&&(_=f,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(_.words[N.length+c]|0)*67108864+(_.words[N.length+c-1]|0);for(h=Math.min(h/x|0,67108863),_._ishlnsubmul(N,h,c);_.negative!==0;)h--,_.negative=0,_._ishlnsubmul(N,1,c),_.isZero()||(_.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),_.strip(),k!=="div"&&g!==0&&_.iushrn(g),{div:w||null,mod:_}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var _,N,x;return this.negative!==0&&j.negative===0?(x=this.neg().divmod(j,k),k!=="mod"&&(_=x.div.neg()),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.iadd(j)),{div:_,mod:N}):this.negative===0&&j.negative!==0?(x=this.divmod(j.neg(),k),k!=="mod"&&(_=x.div.neg()),{div:_,mod:x.mod}):(this.negative&j.negative)!==0?(x=this.neg().divmod(j.neg(),k),k!=="div"&&(N=x.mod.neg(),g&&N.negative!==0&&N.isub(j)),{div:x.div,mod:N}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,_=j.ushrn(1),N=j.andln(1),x=g.cmp(_);return x<0||N===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,_=this.length-1;_>=0;_--)g=(k*g+(this.words[_]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var _=(this.words[g]|0)+k*67108864;this.words[g]=_/j|0,k=_%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),p=k.clone();!k.isZero();){for(var f=0,c=1;(k.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0)for(k.iushrn(f);f-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(w),N.isub(p)),_.iushrn(1),N.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(x.isOdd()||B.isOdd())&&(x.iadd(w),B.isub(p)),x.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(x),N.isub(B)):(g.isub(k),x.isub(_),B.isub(N))}return{a:x,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var _=new U(1),N=new U(0),x=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)_.isOdd()&&_.iadd(x),_.iushrn(1);for(var w=0,p=1;(g.words[0]&p)===0&&w<26;++w,p<<=1);if(w>0)for(g.iushrn(w);w-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);k.cmp(g)>=0?(k.isub(g),_.isub(N)):(g.isub(k),N.isub(_))}var f;return k.cmpn(1)===0?f=_:f=N,f.cmpn(0)<0&&f.iadd(j),f},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var _=0;k.isEven()&&g.isEven();_++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var N=k.cmp(g);if(N<0){var x=k;k=g,g=x}else if(N===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(_)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,_=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=_,this;for(var N=_,x=g;N!==0&&x<this.length;x++){var B=this.words[x]|0;B+=N,N=B>>>26,B&=67108863,this.words[x]=B}return N!==0&&(this.words[x]=N,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var _=this.words[0]|0;g=_===j?0:_<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var _=this.words[g]|0,N=j.words[g]|0;if(_!==N){_<N?k=-1:_>N&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var _=g<this.n?-1:k.ucmp(this.p);return _===0?(k.words[0]=0,k.length=1):_>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,_=Math.min(j.length,9),N=0;N<_;N++)k.words[N]=j.words[N];if(k.length=_,j.length<=9){j.words[0]=0,j.length=1;return}var x=j.words[9];for(k.words[k.length++]=x&g,N=10;N<j.length;N++){var B=j.words[N]|0;j.words[N-10]=(B&g)<<4|x>>>22,x=B}x>>>=22,j.words[N-10]=x,x===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var _=j.words[g]|0;k+=_*977,j.words[g]=k&67108863,k=_*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var _=(j.words[g]|0)*19+k,N=_&67108863;_>>>=26,j.words[g]=N,k=_}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var _=this.m.subn(1),N=0;!_.isZero()&&_.andln(1)===0;)N++,_.iushrn(1);G(!_.isZero());var x=new U(1).toRed(this),B=x.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var p=this.pow(w,_),f=this.pow(j,_.addn(1).iushrn(1)),c=this.pow(j,_),h=N;c.cmp(x)!==0;){for(var d=c,b=0;d.cmp(x)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(p,new U(1).iushln(h-b-1));f=f.redMul(l),p=l.redSqr(),c=c.redMul(p),h=b}return f},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,_=new Array(1<<g);_[0]=new U(1).toRed(this),_[1]=j;for(var N=2;N<_.length;N++)_[N]=this.mul(_[N-1],j);var x=_[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),N=k.length-1;N>=0;N--){for(var p=k.words[N],f=w-1;f>=0;f--){var c=p>>f&1;if(x!==_[0]&&(x=this.sqr(x)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(N!==0||f!==0))&&(x=this.mul(x,_[B]),y=0,B=0)}w=26}return x},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),_=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=g.isub(_).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),{CryptoHasher:sY}=globalThis.Bun,tY=q$({"node_modules/public-encrypt/withPublic.js"($,Q){var Y=nY(),Z=k$().Buffer;function G(V,U){return Z.from(V.toRed(Y.mont(U.modulus)).redPow(new Y(U.publicExponent)).fromRed().toArray())}Q.exports=G}}),mY=q$({"node_modules/public-encrypt/publicEncrypt.js"($,Q){var Y=pY(),Z=g$(),G=o$(),V=oY(),U=uY(),X=nY(),K=tY(),I=hQ(),O=k$().Buffer;Q.exports=function(H,W,E){var T;H.padding?T=H.padding:E?T=1:T=4;var D=Y(H),C;if(T===4)C=J(D,W);else if(T===1)C=F(D,W,E);else if(T===3){if(C=new X(W),C.cmp(D.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return E?I(C,D):K(C,D)};function J(H,W){var E=H.modulus.byteLength(),T=W.length,D=G("sha1").update(O.alloc(0)).digest(),C=D.length,L=2*C;if(T>E-L-2)throw new Error("message too long");var R=O.alloc(E-T-L-2),P=E-C-1,z=Z(C),M=U(O.concat([D,R,O.alloc(1,1),W],P),V(z,P)),S=U(z,V(M,C));return new X(O.concat([O.alloc(1),S,M],E))}function F(H,W,E){var T=W.length,D=H.modulus.byteLength();if(T>D-11)throw new Error("message too long");var C;return E?C=O.alloc(D-T-3,255):C=A(D-T-3),new X(O.concat([O.from([0,E?1:2]),C,O.alloc(1),W],D))}function A(H){for(var W=O.allocUnsafe(H),E=0,T=Z(H*2),D=0,C;E<H;)D===T.length&&(T=Z(H*2),D=0),C=T[D++],C&&(W[E++]=C);return W}}}),aY=q$({"node_modules/public-encrypt/privateDecrypt.js"($,Q){var Y=pY(),Z=oY(),G=uY(),V=nY(),U=hQ(),X=o$(),K=tY(),I=k$().Buffer;Q.exports=function(A,H,W){var E;A.padding?E=A.padding:W?E=1:E=4;var T=Y(A),D=T.modulus.byteLength();if(H.length>D||new V(H).cmp(T.modulus)>=0)throw new Error("decryption error");var C;W?C=K(new V(H),T):C=U(H,T);var L=I.alloc(D-C.length);if(C=I.concat([L,C],D),E===4)return O(T,C);if(E===1)return J(T,C,W);if(E===3)return C;throw new Error("unknown padding")};function O(A,H){var W=A.modulus.byteLength(),E=X("sha1").update(I.alloc(0)).digest(),T=E.length;if(H[0]!==0)throw new Error("decryption error");var D=H.slice(1,T+1),C=H.slice(T+1),L=G(D,Z(C,T)),R=G(C,Z(L,W-T-1));if(F(E,R.slice(0,T)))throw new Error("decryption error");for(var P=T;R[P]===0;)P++;if(R[P++]!==1)throw new Error("decryption error");return R.slice(P)}function J(A,H,W){for(var E=H.slice(0,2),T=2,D=0;H[T++]!==0;)if(T>=H.length){D++;break}var C=H.slice(2,T-1);if((E.toString("hex")!=="0002"&&!W||E.toString("hex")!=="0001"&&W)&&D++,C.length<8&&D++,D)throw new Error("decryption error");return H.slice(T)}function F(A,H){A=I.from(A),H=I.from(H);var W=0,E=A.length;A.length!==H.length&&(W++,E=Math.min(A.length,H.length));for(var T=-1;++T<E;)W+=A[T]^H[T];return W}}}),eY=q$({"node_modules/public-encrypt/browser.js"($){$.publicEncrypt=mY(),$.privateDecrypt=aY(),$.privateEncrypt=function(Q,Y){return $.publicEncrypt(Q,Y,!0)},$.publicDecrypt=function(Q,Y){return $.privateDecrypt(Q,Y,!0)}}}),rY=q$({"node_modules/randomfill/browser.js"($){var Q=k$(),Y=g$(),Z=Q.Buffer,G=Q.kMaxLength,V=Math.pow(2,32)-1;function U(J,F){if(typeof J!="number"||J!==J)throw new TypeError("offset must be a number");if(J>V||J<0)throw new TypeError("offset must be a uint32");if(J>G||J>F)throw new RangeError("offset out of range")}function X(J,F,A){if(typeof J!="number"||J!==J)throw new TypeError("size must be a number");if(J>V||J<0)throw new TypeError("size must be a uint32");if(J+F>A||J>G)throw new RangeError("buffer too small")}$.randomFill=K,$.randomFillSync=O;function K(J,F,A,H){if(!Z.isBuffer(J)&&!(J instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof F=="function")H=F,F=0,A=J.length;else if(typeof A=="function")H=A,A=J.length-F;else if(typeof H!="function")throw new TypeError('"cb" argument must be a function');return U(F,J.length),X(A,F,J.length),I(J,F,A,H)}function I(J,F,A,H){if(H){Y(A,function(E,T){if(E)return H(E);T.copy(J,F),H(null,J)});return}var W=Y(A);return W.copy(J,F),J}function O(J,F,A){if(typeof F>"u"&&(F=0),!Z.isBuffer(J)&&!(J instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return U(F,J.length),A===void 0&&(A=J.length-F),X(A,F,J.length),I(J,F,A)}}}),iY=q$({"node_modules/crypto-browserify/index.js"($){$.randomBytes=$.rng=$.pseudoRandomBytes=$.prng=g$(),$.createHash=o$(),$.Hash=$.createHash.Hash,$.createHmac=$.Hmac=s$();var Q=m$(),Y=Object.keys(Q),Z=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Y);$.getHashes=function(){return Z};var G=QQ();$.pbkdf2=G.pbkdf2,$.pbkdf2Sync=G.pbkdf2Sync;var V=kQ();$.Cipher=V.Cipher,$.createCipher=V.createCipher,$.Cipheriv=V.Cipheriv,$.createCipheriv=V.createCipheriv,$.Decipher=V.Decipher,$.createDecipher=V.createDecipher,$.Decipheriv=V.Decipheriv,$.createDecipheriv=V.createDecipheriv,$.getCiphers=V.getCiphers,$.listCiphers=V.listCiphers;var U=fQ();$.DiffieHellmanGroup=U.DiffieHellmanGroup,$.createDiffieHellmanGroup=U.createDiffieHellmanGroup,$.getDiffieHellman=U.getDiffieHellman,$.createDiffieHellman=U.createDiffieHellman,$.DiffieHellman=U.DiffieHellman;var X=dY();$.createSign=X.createSign,$.Sign=X.Sign,$.createVerify=X.createVerify,$.Verify=X.Verify,$.createECDH=lY();var K=eY();$.publicEncrypt=K.publicEncrypt,$.privateEncrypt=K.privateEncrypt,$.publicDecrypt=K.publicDecrypt,$.privateDecrypt=K.privateDecrypt,$.getRandomValues=(O)=>H$.getRandomValues(O);var I=rY();$.randomFill=I.randomFill,$.randomFillSync=I.randomFillSync,$.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
-`))},$.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}}),$Z={...iY(),[Symbol.for("CommonJS")]:0},T$="buffer",QZ=($)=>H$.getRandomValues($),YZ=()=>H$.randomUUID(),ZZ=(...$)=>H$.randomInt(...$),D$="timingSafeEqual"in H$?($,Q)=>{let{byteLength:Y}=$,{byteLength:Z}=Q;if(typeof Y!="number"||typeof Z!="number")throw new TypeError("Input must be an array buffer view");if(Y!==Z)throw new RangeError("Input buffers must have the same length");return H$.timingSafeEqual($,Q)}:void 0,GZ="scryptSync"in H$?($,Q,Y,Z)=>{let G=H$.scryptSync($,Q,Y,Z);return T$!=="buffer"?new F$(G).toString(T$):new F$(G)}:void 0,VZ="scryptSync"in H$?function($,Q,Y,Z,G){if(typeof Z=="function"&&(G=Z,Z=void 0),typeof G!="function"){var V=new TypeError("callback must be a function");throw V.code="ERR_INVALID_CALLBACK",V}try{let U=H$.scryptSync($,Q,Y,Z);process.nextTick(G,null,T$!=="buffer"?new F$(U).toString(T$):new F$(U))}catch(U){throw U}}:void 0;D$&&(Object.defineProperty(D$,"name",{value:"::bunternal::"}),Object.defineProperty(VZ,"name",{value:"::bunternal::"}),Object.defineProperty(GZ,"name",{value:"::bunternal::"}));var C$=H$;j$($Z,{DEFAULT_ENCODING:()=>T$,getRandomValues:()=>QZ,randomUUID:()=>YZ,randomInt:()=>ZZ,scrypt:()=>VZ,scryptSync:()=>GZ,timingSafeEqual:()=>D$,webcrypto:()=>C$,subtle:()=>C$.subtle});var{randomBytes:UZ,rng:XZ,pseudoRandomBytes:KZ,prng:IZ,Hash:OZ,createHash:JZ,createHmac:FZ,Hmac:AZ,getHashes:HZ,pbkdf2:WZ,pbkdf2Sync:EZ,Cipher:TZ,createCipher:DZ,Cipheriv:CZ,createCipheriv:LZ,Decipher:RZ,createDecipher:PZ,Decipheriv:zZ,createDecipheriv:MZ,getCiphers:SZ,listCiphers:vZ,DiffieHellmanGroup:qZ,createDiffieHellmanGroup:jZ,getDiffieHellman:kZ,createDiffieHellman:gZ,DiffieHellman:_Z,createSign:NZ,Sign:xZ,createVerify:BZ,Verify:yZ,createECDH:wZ,publicEncrypt:pZ,privateEncrypt:fZ,publicDecrypt:cZ,privateDecrypt:hZ,randomFill:dZ,randomFillSync:bZ,createCredentials:lZ,constants:oZ}=$Z;var nZ=$Z;/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */export{C$ as webcrypto,D$ as timingSafeEqual,GZ as scryptSync,VZ as scrypt,XZ as rng,YZ as randomUUID,ZZ as randomInt,bZ as randomFillSync,dZ as randomFill,UZ as randomBytes,pZ as publicEncrypt,cZ as publicDecrypt,KZ as pseudoRandomBytes,IZ as prng,fZ as privateEncrypt,hZ as privateDecrypt,EZ as pbkdf2Sync,WZ as pbkdf2,vZ as listCiphers,QZ as getRandomValues,HZ as getHashes,kZ as getDiffieHellman,SZ as getCiphers,nZ as default,BZ as createVerify,NZ as createSign,FZ as createHmac,JZ as createHash,wZ as createECDH,jZ as createDiffieHellmanGroup,gZ as createDiffieHellman,MZ as createDecipheriv,PZ as createDecipher,lZ as createCredentials,LZ as createCipheriv,DZ as createCipher,oZ as constants,yZ as Verify,xZ as Sign,AZ as Hmac,OZ as Hash,qZ as DiffieHellmanGroup,_Z as DiffieHellman,zZ as Decipheriv,RZ as Decipher,T$ as DEFAULT_ENCODING,CZ as Cipheriv,TZ as Cipher};
+import{StringDecoder as $Y} from"node:string_decoder";import*as QY from"node:buffer";import*as oQ from"node:stream";var eQ=Object.defineProperty;var rQ=Object.getOwnPropertyNames;var YY=536870888,lQ=globalThis.Buffer,uQ=globalThis.crypto,ZY=uQ;var GY=(H,W)=>function(){return W||(0,H[rQ(H)[0]])((W={exports:{}}).exports,W),W.exports},VY=(H,W)=>{for(var p$ in W)eQ(H,p$,{get:W[p$],enumerable:!0})};var UY=GY({"node_modules/safe-buffer/index.js"(H,W){var p$=QY,K=p$.Buffer;function G(U,Y){for(var F in U)Y[F]=U[F]}K.from&&K.alloc&&K.allocUnsafe&&K.allocUnsafeSlow?W.exports=p$:(G(p$,H),H.Buffer=$);function $(U,Y,F){return K(U,Y,F)}$.prototype=Object.create(K.prototype),G(K,$),$.from=function(U,Y,F){if(typeof U=="number")throw new TypeError("Argument must not be a number");return K(U,Y,F)},$.alloc=function(U,Y,F){if(typeof U!="number")throw new TypeError("Argument must be a number");var O=K(U);return Y!==void 0?typeof F=="string"?O.fill(Y,F):O.fill(Y):O.fill(0),O},$.allocUnsafe=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return K(U)},$.allocUnsafeSlow=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return p$.SlowBuffer(U)}}}),XY=GY({"node_modules/randombytes/browser.js"(H,W){var p$=65536,K=4294967295;function G(){throw new Error(`Secure random number generation is not supported by this browser.
+Use Chrome, Firefox or Internet Explorer 11`)}var $=UY().Buffer,U=ZY;U&&U.getRandomValues?W.exports=Y:W.exports=G;function Y(F,O){if(F>K)throw new RangeError("requested too many random bytes");var f$=$.allocUnsafe(F);if(F>0)if(F>p$)for(var z=0;z<F;z+=p$)U.getRandomValues(f$.slice(z,z+p$));else U.getRandomValues(f$);return typeof O=="function"?process.nextTick(function(){O(null,f$)}):f$}}}),C0=GY({"node_modules/inherits/inherits_browser.js"(H,W){typeof Object.create=="function"?W.exports=function(p$,K){K&&(p$.super_=K,p$.prototype=Object.create(K.prototype,{constructor:{value:p$,enumerable:!1,writable:!0,configurable:!0}}))}:W.exports=function(p$,K){if(K){p$.super_=K;var G=function(){};G.prototype=K.prototype,p$.prototype=new G,p$.prototype.constructor=p$}}}}),L0=GY({"node_modules/hash-base/index.js"(H,W){var p$=UY().Buffer,K=C0();function G(U,Y){if(!p$.isBuffer(U)&&typeof U!="string")throw new TypeError(Y+" must be a string or a buffer")}function $(U){oQ.Transform.call(this),this._block=p$.allocUnsafe(U),this._blockSize=U,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}K($,oQ.Transform),$.prototype._transform=function(U,Y,F){var O=null;try{this.update(U,Y)}catch(f$){O=f$}F(O)},$.prototype._flush=function(U){var Y=null;try{this.push(this.digest())}catch(F){Y=F}U(Y)},$.prototype.update=function(U,Y){if(G(U,"Data"),this._finalized)throw new Error("Digest already called");p$.isBuffer(U)||(U=p$.from(U,Y));for(var F=this._block,O=0;this._blockOffset+U.length-O>=this._blockSize;){for(var f$=this._blockOffset;f$<this._blockSize;)F[f$++]=U[O++];this._update(),this._blockOffset=0}for(;O<U.length;)F[this._blockOffset++]=U[O++];for(var z=0,c$=U.length*8;c$>0;++z)this._length[z]+=c$,c$=this._length[z]/4294967296|0,c$>0&&(this._length[z]-=4294967296*c$);return this},$.prototype._update=function(){throw new Error("_update is not implemented")},$.prototype.digest=function(U){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var Y=this._digest();U!==void 0&&(Y=Y.toString(U)),this._block.fill(0),this._blockOffset=0;for(var F=0;F<4;++F)this._length[F]=0;return Y},$.prototype._digest=function(){throw new Error("_digest is not implemented")},W.exports=$}}),R0=GY({"node_modules/md5.js/index.js"(H,W){var p$=C0(),K=L0(),G=UY().Buffer,$=new Array(16);function U(){K.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}p$(U,K),U.prototype._update=function(){for(var c$=$,M=0;M<16;++M)c$[M]=this._block.readInt32LE(M*4);var h$=this._a,S=this._b,d$=this._c,v=this._d;h$=F(h$,S,d$,v,c$[0],3614090360,7),v=F(v,h$,S,d$,c$[1],3905402710,12),d$=F(d$,v,h$,S,c$[2],606105819,17),S=F(S,d$,v,h$,c$[3],3250441966,22),h$=F(h$,S,d$,v,c$[4],4118548399,7),v=F(v,h$,S,d$,c$[5],1200080426,12),d$=F(d$,v,h$,S,c$[6],2821735955,17),S=F(S,d$,v,h$,c$[7],4249261313,22),h$=F(h$,S,d$,v,c$[8],1770035416,7),v=F(v,h$,S,d$,c$[9],2336552879,12),d$=F(d$,v,h$,S,c$[10],4294925233,17),S=F(S,d$,v,h$,c$[11],2304563134,22),h$=F(h$,S,d$,v,c$[12],1804603682,7),v=F(v,h$,S,d$,c$[13],4254626195,12),d$=F(d$,v,h$,S,c$[14],2792965006,17),S=F(S,d$,v,h$,c$[15],1236535329,22),h$=O(h$,S,d$,v,c$[1],4129170786,5),v=O(v,h$,S,d$,c$[6],3225465664,9),d$=O(d$,v,h$,S,c$[11],643717713,14),S=O(S,d$,v,h$,c$[0],3921069994,20),h$=O(h$,S,d$,v,c$[5],3593408605,5),v=O(v,h$,S,d$,c$[10],38016083,9),d$=O(d$,v,h$,S,c$[15],3634488961,14),S=O(S,d$,v,h$,c$[4],3889429448,20),h$=O(h$,S,d$,v,c$[9],568446438,5),v=O(v,h$,S,d$,c$[14],3275163606,9),d$=O(d$,v,h$,S,c$[3],4107603335,14),S=O(S,d$,v,h$,c$[8],1163531501,20),h$=O(h$,S,d$,v,c$[13],2850285829,5),v=O(v,h$,S,d$,c$[2],4243563512,9),d$=O(d$,v,h$,S,c$[7],1735328473,14),S=O(S,d$,v,h$,c$[12],2368359562,20),h$=f$(h$,S,d$,v,c$[5],4294588738,4),v=f$(v,h$,S,d$,c$[8],2272392833,11),d$=f$(d$,v,h$,S,c$[11],1839030562,16),S=f$(S,d$,v,h$,c$[14],4259657740,23),h$=f$(h$,S,d$,v,c$[1],2763975236,4),v=f$(v,h$,S,d$,c$[4],1272893353,11),d$=f$(d$,v,h$,S,c$[7],4139469664,16),S=f$(S,d$,v,h$,c$[10],3200236656,23),h$=f$(h$,S,d$,v,c$[13],681279174,4),v=f$(v,h$,S,d$,c$[0],3936430074,11),d$=f$(d$,v,h$,S,c$[3],3572445317,16),S=f$(S,d$,v,h$,c$[6],76029189,23),h$=f$(h$,S,d$,v,c$[9],3654602809,4),v=f$(v,h$,S,d$,c$[12],3873151461,11),d$=f$(d$,v,h$,S,c$[15],530742520,16),S=f$(S,d$,v,h$,c$[2],3299628645,23),h$=z(h$,S,d$,v,c$[0],4096336452,6),v=z(v,h$,S,d$,c$[7],1126891415,10),d$=z(d$,v,h$,S,c$[14],2878612391,15),S=z(S,d$,v,h$,c$[5],4237533241,21),h$=z(h$,S,d$,v,c$[12],1700485571,6),v=z(v,h$,S,d$,c$[3],2399980690,10),d$=z(d$,v,h$,S,c$[10],4293915773,15),S=z(S,d$,v,h$,c$[1],2240044497,21),h$=z(h$,S,d$,v,c$[8],1873313359,6),v=z(v,h$,S,d$,c$[15],4264355552,10),d$=z(d$,v,h$,S,c$[6],2734768916,15),S=z(S,d$,v,h$,c$[13],1309151649,21),h$=z(h$,S,d$,v,c$[4],4149444226,6),v=z(v,h$,S,d$,c$[11],3174756917,10),d$=z(d$,v,h$,S,c$[2],718787259,15),S=z(S,d$,v,h$,c$[9],3951481745,21),this._a=this._a+h$|0,this._b=this._b+S|0,this._c=this._c+d$|0,this._d=this._d+v|0},U.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var c$=G.allocUnsafe(16);return c$.writeInt32LE(this._a,0),c$.writeInt32LE(this._b,4),c$.writeInt32LE(this._c,8),c$.writeInt32LE(this._d,12),c$};function Y(c$,M){return c$<<M|c$>>>32-M}function F(c$,M,h$,S,d$,v,b$){return Y(c$+(M&h$|~M&S)+d$+v|0,b$)+M|0}function O(c$,M,h$,S,d$,v,b$){return Y(c$+(M&S|h$&~S)+d$+v|0,b$)+M|0}function f$(c$,M,h$,S,d$,v,b$){return Y(c$+(M^h$^S)+d$+v|0,b$)+M|0}function z(c$,M,h$,S,d$,v,b$){return Y(c$+(h$^(M|~S))+d$+v|0,b$)+M|0}W.exports=U}}),P0=GY({"node_modules/ripemd160/index.js"(H,W){var p$=lQ,K=C0(),G=L0(),$=new Array(16),U=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],Y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],F=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],O=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f$=[0,1518500249,1859775393,2400959708,2840853838],z=[1352829926,1548603684,1836072691,2053994217,0];function c$(){G.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}K(c$,G),c$.prototype._update=function(){for(var q=$,l$=0;l$<16;++l$)q[l$]=this._block.readInt32LE(l$*4);for(var j=this._a|0,o$=this._b|0,k=this._c|0,u$=this._d|0,g=this._e|0,n$=this._a|0,_=this._b|0,s$=this._c|0,N=this._d|0,t$=this._e|0,x=0;x<80;x+=1){var m$,B;x<16?(m$=h$(j,o$,k,u$,g,q[U[x]],f$[0],F[x]),B=b$(n$,_,s$,N,t$,q[Y[x]],z[0],O[x])):x<32?(m$=S(j,o$,k,u$,g,q[U[x]],f$[1],F[x]),B=v(n$,_,s$,N,t$,q[Y[x]],z[1],O[x])):x<48?(m$=d$(j,o$,k,u$,g,q[U[x]],f$[2],F[x]),B=d$(n$,_,s$,N,t$,q[Y[x]],z[2],O[x])):x<64?(m$=v(j,o$,k,u$,g,q[U[x]],f$[3],F[x]),B=S(n$,_,s$,N,t$,q[Y[x]],z[3],O[x])):(m$=b$(j,o$,k,u$,g,q[U[x]],f$[4],F[x]),B=h$(n$,_,s$,N,t$,q[Y[x]],z[4],O[x])),j=g,g=u$,u$=M(k,10),k=o$,o$=m$,n$=t$,t$=N,N=M(s$,10),s$=_,_=B}var a$=this._b+k+N|0;this._b=this._c+u$+t$|0,this._c=this._d+g+n$|0,this._d=this._e+j+_|0,this._e=this._a+o$+s$|0,this._a=a$},c$.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var q=p$.alloc?p$.alloc(20):new p$(20);return q.writeInt32LE(this._a,0),q.writeInt32LE(this._b,4),q.writeInt32LE(this._c,8),q.writeInt32LE(this._d,12),q.writeInt32LE(this._e,16),q};function M(q,l$){return q<<l$|q>>>32-l$}function h$(q,l$,j,o$,k,u$,g,n$){return M(q+(l$^j^o$)+u$+g|0,n$)+k|0}function S(q,l$,j,o$,k,u$,g,n$){return M(q+(l$&j|~l$&o$)+u$+g|0,n$)+k|0}function d$(q,l$,j,o$,k,u$,g,n$){return M(q+((l$|~j)^o$)+u$+g|0,n$)+k|0}function v(q,l$,j,o$,k,u$,g,n$){return M(q+(l$&o$|j&~o$)+u$+g|0,n$)+k|0}function b$(q,l$,j,o$,k,u$,g,n$){return M(q+(l$^(j|~o$))+u$+g|0,n$)+k|0}W.exports=c$}}),z0=GY({"node_modules/sha.js/hash.js"(H,W){var p$=UY().Buffer;function K(G,$){this._block=p$.alloc(G),this._finalSize=$,this._blockSize=G,this._len=0}K.prototype.update=function(G,$){typeof G=="string"&&($=$||"utf8",G=p$.from(G,$));for(var U=this._block,Y=this._blockSize,F=G.length,O=this._len,f$=0;f$<F;){for(var z=O%Y,c$=Math.min(F-f$,Y-z),M=0;M<c$;M++)U[z+M]=G[f$+M];O+=c$,f$+=c$,O%Y===0&&this._update(U)}return this._len+=F,this},K.prototype.digest=function(G){var $=this._len%this._blockSize;this._block[$]=128,this._block.fill(0,$+1),$>=this._finalSize&&(this._update(this._block),this._block.fill(0));var U=this._len*8;if(U<=4294967295)this._block.writeUInt32BE(U,this._blockSize-4);else{var Y=(U&4294967295)>>>0,F=(U-Y)/4294967296;this._block.writeUInt32BE(F,this._blockSize-8),this._block.writeUInt32BE(Y,this._blockSize-4)}this._update(this._block);var O=this._hash();return G?O.toString(G):O},K.prototype._update=function(){throw new Error("_update must be implemented by subclass")},W.exports=K}}),M0=GY({"node_modules/sha.js/sha.js"(H,W){var p$=C0(),K=z0(),G=UY().Buffer,$=[1518500249,1859775393,-1894007588,-899497514],U=new Array(80);function Y(){this.init(),this._w=U,K.call(this,64,56)}p$(Y,K),Y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function F(z){return z<<5|z>>>27}function O(z){return z<<30|z>>>2}function f$(z,c$,M,h$){return z===0?c$&M|~c$&h$:z===2?c$&M|c$&h$|M&h$:c$^M^h$}Y.prototype._update=function(z){for(var c$=this._w,M=this._a|0,h$=this._b|0,S=this._c|0,d$=this._d|0,v=this._e|0,b$=0;b$<16;++b$)c$[b$]=z.readInt32BE(b$*4);for(;b$<80;++b$)c$[b$]=c$[b$-3]^c$[b$-8]^c$[b$-14]^c$[b$-16];for(var q=0;q<80;++q){var l$=~~(q/20),j=F(M)+f$(l$,h$,S,d$)+v+c$[q]+$[l$]|0;v=d$,d$=S,S=O(h$),h$=M,M=j}this._a=M+this._a|0,this._b=h$+this._b|0,this._c=S+this._c|0,this._d=d$+this._d|0,this._e=v+this._e|0},Y.prototype._hash=function(){var z=G.allocUnsafe(20);return z.writeInt32BE(this._a|0,0),z.writeInt32BE(this._b|0,4),z.writeInt32BE(this._c|0,8),z.writeInt32BE(this._d|0,12),z.writeInt32BE(this._e|0,16),z},W.exports=Y}}),S0=GY({"node_modules/sha.js/sha1.js"(H,W){var p$=C0(),K=z0(),G=UY().Buffer,$=[1518500249,1859775393,-1894007588,-899497514],U=new Array(80);function Y(){this.init(),this._w=U,K.call(this,64,56)}p$(Y,K),Y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function F(c$){return c$<<1|c$>>>31}function O(c$){return c$<<5|c$>>>27}function f$(c$){return c$<<30|c$>>>2}function z(c$,M,h$,S){return c$===0?M&h$|~M&S:c$===2?M&h$|M&S|h$&S:M^h$^S}Y.prototype._update=function(c$){for(var M=this._w,h$=this._a|0,S=this._b|0,d$=this._c|0,v=this._d|0,b$=this._e|0,q=0;q<16;++q)M[q]=c$.readInt32BE(q*4);for(;q<80;++q)M[q]=F(M[q-3]^M[q-8]^M[q-14]^M[q-16]);for(var l$=0;l$<80;++l$){var j=~~(l$/20),o$=O(h$)+z(j,S,d$,v)+b$+M[l$]+$[j]|0;b$=v,v=d$,d$=f$(S),S=h$,h$=o$}this._a=h$+this._a|0,this._b=S+this._b|0,this._c=d$+this._c|0,this._d=v+this._d|0,this._e=b$+this._e|0},Y.prototype._hash=function(){var c$=G.allocUnsafe(20);return c$.writeInt32BE(this._a|0,0),c$.writeInt32BE(this._b|0,4),c$.writeInt32BE(this._c|0,8),c$.writeInt32BE(this._d|0,12),c$.writeInt32BE(this._e|0,16),c$},W.exports=Y}}),v0=GY({"node_modules/sha.js/sha256.js"(H,W){var p$=C0(),K=z0(),G=UY().Buffer,$=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],U=new Array(64);function Y(){this.init(),this._w=U,K.call(this,64,56)}p$(Y,K),Y.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function F(h$,S,d$){return d$^h$&(S^d$)}function O(h$,S,d$){return h$&S|d$&(h$|S)}function f$(h$){return(h$>>>2|h$<<30)^(h$>>>13|h$<<19)^(h$>>>22|h$<<10)}function z(h$){return(h$>>>6|h$<<26)^(h$>>>11|h$<<21)^(h$>>>25|h$<<7)}function c$(h$){return(h$>>>7|h$<<25)^(h$>>>18|h$<<14)^h$>>>3}function M(h$){return(h$>>>17|h$<<15)^(h$>>>19|h$<<13)^h$>>>10}Y.prototype._update=function(h$){for(var S=this._w,d$=this._a|0,v=this._b|0,b$=this._c|0,q=this._d|0,l$=this._e|0,j=this._f|0,o$=this._g|0,k=this._h|0,u$=0;u$<16;++u$)S[u$]=h$.readInt32BE(u$*4);for(;u$<64;++u$)S[u$]=M(S[u$-2])+S[u$-7]+c$(S[u$-15])+S[u$-16]|0;for(var g=0;g<64;++g){var n$=k+z(l$)+F(l$,j,o$)+$[g]+S[g]|0,_=f$(d$)+O(d$,v,b$)|0;k=o$,o$=j,j=l$,l$=q+n$|0,q=b$,b$=v,v=d$,d$=n$+_|0}this._a=d$+this._a|0,this._b=v+this._b|0,this._c=b$+this._c|0,this._d=q+this._d|0,this._e=l$+this._e|0,this._f=j+this._f|0,this._g=o$+this._g|0,this._h=k+this._h|0},Y.prototype._hash=function(){var h$=G.allocUnsafe(32);return h$.writeInt32BE(this._a,0),h$.writeInt32BE(this._b,4),h$.writeInt32BE(this._c,8),h$.writeInt32BE(this._d,12),h$.writeInt32BE(this._e,16),h$.writeInt32BE(this._f,20),h$.writeInt32BE(this._g,24),h$.writeInt32BE(this._h,28),h$},W.exports=Y}}),q0=GY({"node_modules/sha.js/sha224.js"(H,W){var p$=C0(),K=v0(),G=z0(),$=UY().Buffer,U=new Array(64);function Y(){this.init(),this._w=U,G.call(this,64,56)}p$(Y,K),Y.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Y.prototype._hash=function(){var F=$.allocUnsafe(28);return F.writeInt32BE(this._a,0),F.writeInt32BE(this._b,4),F.writeInt32BE(this._c,8),F.writeInt32BE(this._d,12),F.writeInt32BE(this._e,16),F.writeInt32BE(this._f,20),F.writeInt32BE(this._g,24),F},W.exports=Y}}),j0=GY({"node_modules/sha.js/sha512.js"(H,W){var p$=C0(),K=z0(),G=UY().Buffer,$=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],U=new Array(160);function Y(){this.init(),this._w=U,K.call(this,128,112)}p$(Y,K),Y.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function F(v,b$,q){return q^v&(b$^q)}function O(v,b$,q){return v&b$|q&(v|b$)}function f$(v,b$){return(v>>>28|b$<<4)^(b$>>>2|v<<30)^(b$>>>7|v<<25)}function z(v,b$){return(v>>>14|b$<<18)^(v>>>18|b$<<14)^(b$>>>9|v<<23)}function c$(v,b$){return(v>>>1|b$<<31)^(v>>>8|b$<<24)^v>>>7}function M(v,b$){return(v>>>1|b$<<31)^(v>>>8|b$<<24)^(v>>>7|b$<<25)}function h$(v,b$){return(v>>>19|b$<<13)^(b$>>>29|v<<3)^v>>>6}function S(v,b$){return(v>>>19|b$<<13)^(b$>>>29|v<<3)^(v>>>6|b$<<26)}function d$(v,b$){return v>>>0<b$>>>0?1:0}Y.prototype._update=function(v){for(var b$=this._w,q=this._ah|0,l$=this._bh|0,j=this._ch|0,o$=this._dh|0,k=this._eh|0,u$=this._fh|0,g=this._gh|0,n$=this._hh|0,_=this._al|0,s$=this._bl|0,N=this._cl|0,t$=this._dl|0,x=this._el|0,m$=this._fl|0,B=this._gl|0,a$=this._hl|0,y=0;y<32;y+=2)b$[y]=v.readInt32BE(y*4),b$[y+1]=v.readInt32BE(y*4+4);for(;y<160;y+=2){var e$=b$[y-30],w=b$[y-30+1],r$=c$(e$,w),E=M(w,e$);e$=b$[y-4],w=b$[y-4+1];var i$=h$(e$,w),p=S(w,e$),$Q=b$[y-14],f=b$[y-14+1],QQ=b$[y-32],c=b$[y-32+1],YQ=E+f|0,h=r$+$Q+d$(YQ,E)|0;YQ=YQ+p|0,h=h+i$+d$(YQ,p)|0,YQ=YQ+c|0,h=h+QQ+d$(YQ,c)|0,b$[y]=h,b$[y+1]=YQ}for(var ZQ=0;ZQ<160;ZQ+=2){h=b$[ZQ],YQ=b$[ZQ+1];var d=O(q,l$,j),GQ=O(_,s$,N),b=f$(q,_),VQ=f$(_,q),l=z(k,x),UQ=z(x,k),o=$[ZQ],XQ=$[ZQ+1],u=F(k,u$,g),KQ=F(x,m$,B),n=a$+UQ|0,IQ=n$+l+d$(n,a$)|0;n=n+KQ|0,IQ=IQ+u+d$(n,KQ)|0,n=n+XQ|0,IQ=IQ+o+d$(n,XQ)|0,n=n+YQ|0,IQ=IQ+h+d$(n,YQ)|0;var s=VQ+GQ|0,OQ=b+d+d$(s,VQ)|0;n$=g,a$=B,g=u$,B=m$,u$=k,m$=x,x=t$+n|0,k=o$+IQ+d$(x,t$)|0,o$=j,t$=N,j=l$,N=s$,l$=q,s$=_,_=n+s|0,q=IQ+OQ+d$(_,n)|0}this._al=this._al+_|0,this._bl=this._bl+s$|0,this._cl=this._cl+N|0,this._dl=this._dl+t$|0,this._el=this._el+x|0,this._fl=this._fl+m$|0,this._gl=this._gl+B|0,this._hl=this._hl+a$|0,this._ah=this._ah+q+d$(this._al,_)|0,this._bh=this._bh+l$+d$(this._bl,s$)|0,this._ch=this._ch+j+d$(this._cl,N)|0,this._dh=this._dh+o$+d$(this._dl,t$)|0,this._eh=this._eh+k+d$(this._el,x)|0,this._fh=this._fh+u$+d$(this._fl,m$)|0,this._gh=this._gh+g+d$(this._gl,B)|0,this._hh=this._hh+n$+d$(this._hl,a$)|0},Y.prototype._hash=function(){var v=G.allocUnsafe(64);function b$(q,l$,j){v.writeInt32BE(q,j),v.writeInt32BE(l$,j+4)}return b$(this._ah,this._al,0),b$(this._bh,this._bl,8),b$(this._ch,this._cl,16),b$(this._dh,this._dl,24),b$(this._eh,this._el,32),b$(this._fh,this._fl,40),b$(this._gh,this._gl,48),b$(this._hh,this._hl,56),v},W.exports=Y}}),k0=GY({"node_modules/sha.js/sha384.js"(H,W){var p$=C0(),K=j0(),G=z0(),$=UY().Buffer,U=new Array(160);function Y(){this.init(),this._w=U,G.call(this,128,112)}p$(Y,K),Y.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Y.prototype._hash=function(){var F=$.allocUnsafe(48);function O(f$,z,c$){F.writeInt32BE(f$,c$),F.writeInt32BE(z,c$+4)}return O(this._ah,this._al,0),O(this._bh,this._bl,8),O(this._ch,this._cl,16),O(this._dh,this._dl,24),O(this._eh,this._el,32),O(this._fh,this._fl,40),F},W.exports=Y}}),g0=GY({"node_modules/sha.js/index.js"(p$,W){var p$=W.exports=function(K){K=K.toLowerCase();var G=p$[K];if(!G)throw new Error(K+" is not supported (we accept pull requests)");return new G};p$.sha=M0(),p$.sha1=S0(),p$.sha224=q0(),p$.sha256=v0(),p$.sha384=k0(),p$.sha512=j0()}}),_0=GY({"node_modules/cipher-base/index.js"(H,W){var p$=UY().Buffer,K=C0();function G($){oQ.Transform.call(this),this.hashMode=typeof $=="string",this.hashMode?this[$]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}K(G,oQ.Transform),G.prototype.update=function($,U,Y){typeof $=="string"&&($=p$.from($,U));var F=this._update($);return this.hashMode?this:(Y&&(F=this._toString(F,Y)),F)},G.prototype.setAutoPadding=function(){},G.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},G.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},G.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},G.prototype._transform=function($,U,Y){var F;try{this.hashMode?this._update($):this.push(this._update($))}catch(O){F=O}finally{Y(F)}},G.prototype._flush=function($){var U;try{this.push(this.__final())}catch(Y){U=Y}$(U)},G.prototype._finalOrDigest=function($){var U=this.__final()||p$.alloc(0);return $&&(U=this._toString(U,$,!0)),U},G.prototype._toString=function($,U,Y){if(this._decoder||(this._decoder=new $Y(U),this._encoding=U),this._encoding!==U)throw new Error("can't switch encodings");var F=this._decoder.write($);return Y&&(F+=this._decoder.end()),F},W.exports=G}}),N0=GY({"node_modules/create-hash/browser.js"(H,W){const p$=function $(U,Y){this._options=Y,this._hasher=new T$(U,Y),this._finalized=!1};p$.prototype=Object.create(oQ.Transform.prototype),p$.prototype.update=function $(U,Y){return this._checkFinalized(),this._hasher.update(U,Y),this},p$.prototype.digest=function $(U,Y){return this._checkFinalized(),this._finalized=!0,this._hasher.digest(U,Y)},p$.prototype._checkFinalized=function $(){if(this._finalized){var U=new Error("Digest already called");throw U.code="ERR_CRYPTO_HASH_FINALIZED",U}},p$.prototype.copy=function $(){const U=Object.create(p$.prototype);return U._options=this._options,U._hasher=this._hasher.copy(),U._finalized=this._finalized,U};const K={__proto__:oQ.Transform.prototype,...p$.prototype,_transform($,U,Y){this.update($,U),Y&&Y()},_flush($){this.push(this.digest()),$()}},G=["_events","_eventsCount","_final","_maxListeners","_maxListeners","_read","_undestroy","_writableState","_write","_writev","addListener","asIndexedPairs","closed","compose","constructor","cork","destroy","destroyed","drop","emit","end","errored","eventNames","every","filter","find","flatMap","forEach","getMaxListeners","hasOwnProperty","isPaused","isPrototypeOf","iterator","listenerCount","listeners","map","off","on","once","pause","pipe","prependListener","prependOnceListener","propertyIsEnumerable","push","rawListeners","read","readable","readableAborted","readableBuffer","readableDidRead","readableEncoding","readableEnded","readableFlowing","readableHighWaterMark","readableLength","readableObjectMode","reduce","removeAllListeners","removeListener","resume","setDefaultEncoding","setEncoding","setMaxListeners","some","take","toArray","toLocaleString","toString","uncork","unpipe","unshift","valueOf","wrap","writable","writableBuffer","writableCorked","writableEnded","writableFinished","writableHighWaterMark","writableLength","writableNeedDrain","writableObjectMode","write"];for(let $ of G)Object.defineProperty(p$.prototype,$,{get(){return Object.setPrototypeOf(this,K),oQ.Transform.call(this,this._options),this[$]},enumerable:!1,configurable:!0});W.exports=function $(U){return new p$(U)},W.exports.createHash=W.exports,W.exports.Hash=p$}}),x0=GY({"node_modules/create-hmac/legacy.js"(H,W){var p$=C0(),K=UY().Buffer,G=_0(),$=K.alloc(128),U=64;function Y(F,O){G.call(this,"digest"),typeof O=="string"&&(O=K.from(O)),this._alg=F,this._key=O,O.length>U?O=F(O):O.length<U&&(O=K.concat([O,$],U));for(var f$=this._ipad=K.allocUnsafe(U),z=this._opad=K.allocUnsafe(U),c$=0;c$<U;c$++)f$[c$]=O[c$]^54,z[c$]=O[c$]^92;this._hash=[f$]}p$(Y,G),Y.prototype._update=function(F){this._hash.push(F)},Y.prototype._final=function(){var F=this._alg(K.concat(this._hash));return this._alg(K.concat([this._opad,F]))},W.exports=Y}}),B0=GY({"node_modules/create-hash/md5.js"(H,W){var p$=R0();W.exports=function(K){return new p$().update(K).digest()}}}),y0=GY({"node_modules/create-hmac/browser.js"(H,W){var p$=C0(),K=x0(),G=_0(),$=UY().Buffer,U=B0(),Y=P0(),F=g0(),O=$.alloc(128);function f$(z,c$){G.call(this,"digest"),typeof c$=="string"&&(c$=$.from(c$));var M=z==="sha512"||z==="sha384"?128:64;if(this._alg=z,this._key=c$,c$.length>M){var h$=z==="rmd160"?new Y:F(z);c$=h$.update(c$).digest()}else c$.length<M&&(c$=$.concat([c$,O],M));for(var S=this._ipad=$.allocUnsafe(M),d$=this._opad=$.allocUnsafe(M),v=0;v<M;v++)S[v]=c$[v]^54,d$[v]=c$[v]^92;this._hash=z==="rmd160"?new Y:F(z),this._hash.update(S)}p$(f$,G),f$.prototype._update=function(z){this._hash.update(z)},f$.prototype._final=function(){var z=this._hash.digest(),c$=this._alg==="rmd160"?new Y:F(this._alg);return c$.update(this._opad).update(z).digest()},W.exports=function(z,c$){return z=z.toLowerCase(),z==="rmd160"||z==="ripemd160"?new f$("rmd160",c$):z==="md5"?new K(U,c$):new f$(z,c$)}}}),w0=GY({"node_modules/browserify-sign/browser/algorithms.json"(H,W){W.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}}),p0=GY({"node_modules/browserify-sign/algos.js"(H,W){W.exports=w0()}}),f0=GY({"node_modules/pbkdf2/lib/precondition.js"(H,W){var p$=Math.pow(2,30)-1;W.exports=function(K,G){if(typeof K!="number")throw new TypeError("Iterations not a number");if(K<0)throw new TypeError("Bad iterations");if(typeof G!="number")throw new TypeError("Key length not a number");if(G<0||G>p$||G!==G)throw new TypeError("Bad key length")}}}),c0=GY({"node_modules/pbkdf2/lib/default-encoding.js"(H,W){var p$;global.process&&global.process.browser?p$="utf-8":global.process&&global.process.version?(K=parseInt(process.version.split(".")[0].slice(1),10),p$=K>=6?"utf-8":"binary"):p$="utf-8";var K;W.exports=p$}}),KY=GY({"node_modules/pbkdf2/lib/to-buffer.js"(H,W){var p$=UY().Buffer;W.exports=function(K,G,$){if(p$.isBuffer(K))return K;if(typeof K=="string")return p$.from(K,G);if(ArrayBuffer.isView(K))return p$.from(K.buffer);throw new TypeError($+" must be a string, a Buffer, a typed array or a DataView")}}}),h0=GY({"node_modules/pbkdf2/lib/sync-browser.js"(H,W){var p$=B0(),K=P0(),G=g0(),$=UY().Buffer,U=f0(),Y=c0(),F=KY(),O=$.alloc(128),f$={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function z(h$,S,d$){var v=c$(h$),b$=h$==="sha512"||h$==="sha384"?128:64;S.length>b$?S=v(S):S.length<b$&&(S=$.concat([S,O],b$));for(var q=$.allocUnsafe(b$+f$[h$]),l$=$.allocUnsafe(b$+f$[h$]),j=0;j<b$;j++)q[j]=S[j]^54,l$[j]=S[j]^92;var o$=$.allocUnsafe(b$+d$+4);q.copy(o$,0,0,b$),this.ipad1=o$,this.ipad2=q,this.opad=l$,this.alg=h$,this.blocksize=b$,this.hash=v,this.size=f$[h$]}z.prototype.run=function(h$,S){h$.copy(S,this.blocksize);var d$=this.hash(S);return d$.copy(this.opad,this.blocksize),this.hash(this.opad)};function c$(h$){function S(v){return G(h$).update(v).digest()}function d$(v){return new K().update(v).digest()}return h$==="rmd160"||h$==="ripemd160"?d$:h$==="md5"?p$:S}function M(h$,S,d$,v,b$){U(d$,v),h$=F(h$,Y,"Password"),S=F(S,Y,"Salt"),b$=b$||"sha1";var q=new z(b$,h$,S.length),l$=$.allocUnsafe(v),j=$.allocUnsafe(S.length+4);S.copy(j,0,0,S.length);for(var o$=0,k=f$[b$],u$=Math.ceil(v/k),g=1;g<=u$;g++){j.writeUInt32BE(g,S.length);for(var n$=q.run(j,q.ipad1),_=n$,s$=1;s$<d$;s$++){_=q.run(_,q.ipad2);for(var N=0;N<k;N++)n$[N]^=_[N]}n$.copy(l$,o$),o$+=k}return l$}W.exports=M}}),IY=GY({"node_modules/pbkdf2/lib/async.js"(H,W){var p$=UY().Buffer,K=f0(),G=c0(),$=h0(),U=KY(),Y,F=ZY.subtle,O={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f$=[];function z(d$){if(global.process&&!global.process.browser||!F||!F.importKey||!F.deriveBits)return Promise.resolve(!1);if(f$[d$]!==void 0)return f$[d$];Y=Y||p$.alloc(8);var v=h$(Y,Y,10,128,d$).then(function(){return!0}).catch(function(){return!1});return f$[d$]=v,v}var c$;function M(){return c$||(global.process&&global.process.nextTick?c$=global.process.nextTick:global.queueMicrotask?c$=global.queueMicrotask:global.setImmediate?c$=global.setImmediate:c$=global.setTimeout,c$)}function h$(d$,v,b$,q,l$){return F.importKey("raw",d$,{name:"PBKDF2"},!1,["deriveBits"]).then(function(j){return F.deriveBits({name:"PBKDF2",salt:v,iterations:b$,hash:{name:l$}},j,q<<3)}).then(function(j){return p$.from(j)})}function S(d$,v){d$.then(function(b$){M()(function(){v(null,b$)})},function(b$){M()(function(){v(b$)})})}W.exports=function(d$,v,b$,q,l$,j){typeof l$=="function"&&(j=l$,l$=void 0),l$=l$||"sha1";var o$=O[l$.toLowerCase()];if(!o$||typeof global.Promise!="function"){M()(function(){var k;try{k=$(d$,v,b$,q,l$)}catch(u$){return j(u$)}j(null,k)});return}if(K(b$,q),d$=U(d$,G,"Password"),v=U(v,G,"Salt"),typeof j!="function")throw new Error("No callback provided to pbkdf2");S(z(o$).then(function(k){return k?h$(d$,v,b$,q,o$):$(d$,v,b$,q,l$)}),j)}}}),d0=GY({"node_modules/pbkdf2/browser.js"(H){H.pbkdf2=IY(),H.pbkdf2Sync=h0()}}),b0=GY({"node_modules/des.js/lib/des/utils.js"(H){H.readUInt32BE=function(G,$){var U=G[0+$]<<24|G[1+$]<<16|G[2+$]<<8|G[3+$];return U>>>0},H.writeUInt32BE=function(G,$,U){G[0+U]=$>>>24,G[1+U]=$>>>16&255,G[2+U]=$>>>8&255,G[3+U]=$&255},H.ip=function(G,$,U,Y){for(var F=0,O=0,f$=6;f$>=0;f$-=2){for(var z=0;z<=24;z+=8)F<<=1,F|=$>>>z+f$&1;for(var z=0;z<=24;z+=8)F<<=1,F|=G>>>z+f$&1}for(var f$=6;f$>=0;f$-=2){for(var z=1;z<=25;z+=8)O<<=1,O|=$>>>z+f$&1;for(var z=1;z<=25;z+=8)O<<=1,O|=G>>>z+f$&1}U[Y+0]=F>>>0,U[Y+1]=O>>>0},H.rip=function(G,$,U,Y){for(var F=0,O=0,f$=0;f$<4;f$++)for(var z=24;z>=0;z-=8)F<<=1,F|=$>>>z+f$&1,F<<=1,F|=G>>>z+f$&1;for(var f$=4;f$<8;f$++)for(var z=24;z>=0;z-=8)O<<=1,O|=$>>>z+f$&1,O<<=1,O|=G>>>z+f$&1;U[Y+0]=F>>>0,U[Y+1]=O>>>0},H.pc1=function(G,$,U,Y){for(var F=0,O=0,f$=7;f$>=5;f$--){for(var z=0;z<=24;z+=8)F<<=1,F|=$>>z+f$&1;for(var z=0;z<=24;z+=8)F<<=1,F|=G>>z+f$&1}for(var z=0;z<=24;z+=8)F<<=1,F|=$>>z+f$&1;for(var f$=1;f$<=3;f$++){for(var z=0;z<=24;z+=8)O<<=1,O|=$>>z+f$&1;for(var z=0;z<=24;z+=8)O<<=1,O|=G>>z+f$&1}for(var z=0;z<=24;z+=8)O<<=1,O|=G>>z+f$&1;U[Y+0]=F>>>0,U[Y+1]=O>>>0},H.r28shl=function(G,$){return G<<$&268435455|G>>>28-$};var W=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];H.pc2=function(G,$,U,Y){for(var F=0,O=0,f$=W.length>>>1,z=0;z<f$;z++)F<<=1,F|=G>>>W[z]&1;for(var z=f$;z<W.length;z++)O<<=1,O|=$>>>W[z]&1;U[Y+0]=F>>>0,U[Y+1]=O>>>0},H.expand=function(G,$,U){var Y=0,F=0;Y=(G&1)<<5|G>>>27;for(var O=23;O>=15;O-=4)Y<<=6,Y|=G>>>O&63;for(var O=11;O>=3;O-=4)F|=G>>>O&63,F<<=6;F|=(G&31)<<1|G>>>31,$[U+0]=Y>>>0,$[U+1]=F>>>0};var p$=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];H.substitute=function(G,$){for(var U=0,Y=0;Y<4;Y++){var F=G>>>18-Y*6&63,O=p$[Y*64+F];U<<=4,U|=O}for(var Y=0;Y<4;Y++){var F=$>>>18-Y*6&63,O=p$[256+Y*64+F];U<<=4,U|=O}return U>>>0};var K=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];H.permute=function(G){for(var $=0,U=0;U<K.length;U++)$<<=1,$|=G>>>K[U]&1;return $>>>0},H.padSplit=function(G,$,U){for(var Y=G.toString(2);Y.length<$;)Y="0"+Y;for(var F=[],O=0;O<$;O+=U)F.push(Y.slice(O,O+U));return F.join(" ")}}}),l0=GY({"node_modules/minimalistic-assert/index.js"(H,W){W.exports=p$;function p$(K,G){if(!K)throw new Error(G||"Assertion failed")}p$.equal=function(K,G,$){if(K!=G)throw new Error($||"Assertion failed: "+K+" != "+G)}}}),OY=GY({"node_modules/des.js/lib/des/cipher.js"(H,W){var p$=l0();function K(G){this.options=G,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}W.exports=K,K.prototype._init=function(){},K.prototype.update=function(G){return G.length===0?[]:this.type==="decrypt"?this._updateDecrypt(G):this._updateEncrypt(G)},K.prototype._buffer=function(G,$){for(var U=Math.min(this.buffer.length-this.bufferOff,G.length-$),Y=0;Y<U;Y++)this.buffer[this.bufferOff+Y]=G[$+Y];return this.bufferOff+=U,U},K.prototype._flushBuffer=function(G,$){return this._update(this.buffer,0,G,$),this.bufferOff=0,this.blockSize},K.prototype._updateEncrypt=function(G){var $=0,U=0,Y=(this.bufferOff+G.length)/this.blockSize|0,F=new Array(Y*this.blockSize);this.bufferOff!==0&&($+=this._buffer(G,$),this.bufferOff===this.buffer.length&&(U+=this._flushBuffer(F,U)));for(var O=G.length-(G.length-$)%this.blockSize;$<O;$+=this.blockSize)this._update(G,$,F,U),U+=this.blockSize;for(;$<G.length;$++,this.bufferOff++)this.buffer[this.bufferOff]=G[$];return F},K.prototype._updateDecrypt=function(G){for(var $=0,U=0,Y=Math.ceil((this.bufferOff+G.length)/this.blockSize)-1,F=new Array(Y*this.blockSize);Y>0;Y--)$+=this._buffer(G,$),U+=this._flushBuffer(F,U);return $+=this._buffer(G,$),F},K.prototype.final=function(G){var $;G&&($=this.update(G));var U;return this.type==="encrypt"?U=this._finalEncrypt():U=this._finalDecrypt(),$?$.concat(U):U},K.prototype._pad=function(G,$){if($===0)return!1;for(;$<G.length;)G[$++]=0;return!0},K.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var G=new Array(this.blockSize);return this._update(this.buffer,0,G,0),G},K.prototype._unpad=function(G){return G},K.prototype._finalDecrypt=function(){p$.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var G=new Array(this.blockSize);return this._flushBuffer(G,0),this._unpad(G)}}}),JY=GY({"node_modules/des.js/lib/des/des.js"(H,W){var p$=l0(),K=C0(),G=b0(),$=OY();function U(){this.tmp=new Array(2),this.keys=null}function Y(O){$.call(this,O);var f$=new U;this._desState=f$,this.deriveKeys(f$,O.key)}K(Y,$),W.exports=Y,Y.create=function(O){return new Y(O)};var F=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Y.prototype.deriveKeys=function(O,f$){O.keys=new Array(32),p$.equal(f$.length,this.blockSize,"Invalid key length");var z=G.readUInt32BE(f$,0),c$=G.readUInt32BE(f$,4);G.pc1(z,c$,O.tmp,0),z=O.tmp[0],c$=O.tmp[1];for(var M=0;M<O.keys.length;M+=2){var h$=F[M>>>1];z=G.r28shl(z,h$),c$=G.r28shl(c$,h$),G.pc2(z,c$,O.keys,M)}},Y.prototype._update=function(O,f$,z,c$){var M=this._desState,h$=G.readUInt32BE(O,f$),S=G.readUInt32BE(O,f$+4);G.ip(h$,S,M.tmp,0),h$=M.tmp[0],S=M.tmp[1],this.type==="encrypt"?this._encrypt(M,h$,S,M.tmp,0):this._decrypt(M,h$,S,M.tmp,0),h$=M.tmp[0],S=M.tmp[1],G.writeUInt32BE(z,h$,c$),G.writeUInt32BE(z,S,c$+4)},Y.prototype._pad=function(O,f$){for(var z=O.length-f$,c$=f$;c$<O.length;c$++)O[c$]=z;return!0},Y.prototype._unpad=function(O){for(var f$=O[O.length-1],z=O.length-f$;z<O.length;z++)p$.equal(O[z],f$);return O.slice(0,O.length-f$)},Y.prototype._encrypt=function(O,f$,z,c$,M){for(var h$=f$,S=z,d$=0;d$<O.keys.length;d$+=2){var v=O.keys[d$],b$=O.keys[d$+1];G.expand(S,O.tmp,0),v^=O.tmp[0],b$^=O.tmp[1];var q=G.substitute(v,b$),l$=G.permute(q),j=S;S=(h$^l$)>>>0,h$=j}G.rip(S,h$,c$,M)},Y.prototype._decrypt=function(O,f$,z,c$,M){for(var h$=z,S=f$,d$=O.keys.length-2;d$>=0;d$-=2){var v=O.keys[d$],b$=O.keys[d$+1];G.expand(h$,O.tmp,0),v^=O.tmp[0],b$^=O.tmp[1];var q=G.substitute(v,b$),l$=G.permute(q),j=h$;h$=(S^l$)>>>0,S=j}G.rip(h$,S,c$,M)}}}),FY=GY({"node_modules/des.js/lib/des/cbc.js"(H){var W=l0(),p$=C0(),K={};function G(U){W.equal(U.length,8,"Invalid IV length"),this.iv=new Array(8);for(var Y=0;Y<this.iv.length;Y++)this.iv[Y]=U[Y]}function $(U){function Y(z){U.call(this,z),this._cbcInit()}p$(Y,U);for(var F=Object.keys(K),O=0;O<F.length;O++){var f$=F[O];Y.prototype[f$]=K[f$]}return Y.create=function(z){return new Y(z)},Y}H.instantiate=$,K._cbcInit=function(){var U=new G(this.options.iv);this._cbcState=U},K._update=function(U,Y,F,O){var f$=this._cbcState,z=this.constructor.super_.prototype,c$=f$.iv;if(this.type==="encrypt"){for(var M=0;M<this.blockSize;M++)c$[M]^=U[Y+M];z._update.call(this,c$,0,F,O);for(var M=0;M<this.blockSize;M++)c$[M]=F[O+M]}else{z._update.call(this,U,Y,F,O);for(var M=0;M<this.blockSize;M++)F[O+M]^=c$[M];for(var M=0;M<this.blockSize;M++)c$[M]=U[Y+M]}}}}),AY=GY({"node_modules/des.js/lib/des/ede.js"(H,W){var p$=l0(),K=C0(),G=OY(),$=JY();function U(F,O){p$.equal(O.length,24,"Invalid key length");var f$=O.slice(0,8),z=O.slice(8,16),c$=O.slice(16,24);F==="encrypt"?this.ciphers=[$.create({type:"encrypt",key:f$}),$.create({type:"decrypt",key:z}),$.create({type:"encrypt",key:c$})]:this.ciphers=[$.create({type:"decrypt",key:c$}),$.create({type:"encrypt",key:z}),$.create({type:"decrypt",key:f$})]}function Y(F){G.call(this,F);var O=new U(this.type,this.options.key);this._edeState=O}K(Y,G),W.exports=Y,Y.create=function(F){return new Y(F)},Y.prototype._update=function(F,O,f$,z){var c$=this._edeState;c$.ciphers[0]._update(F,O,f$,z),c$.ciphers[1]._update(f$,z,f$,z),c$.ciphers[2]._update(f$,z,f$,z)},Y.prototype._pad=$.prototype._pad,Y.prototype._unpad=$.prototype._unpad}}),HY=GY({"node_modules/des.js/lib/des.js"(H){H.utils=b0(),H.Cipher=OY(),H.DES=JY(),H.CBC=FY(),H.EDE=AY()}}),WY=GY({"node_modules/browserify-des/index.js"(H,W){var p$=_0(),K=HY(),G=C0(),$=UY().Buffer,U={"des-ede3-cbc":K.CBC.instantiate(K.EDE),"des-ede3":K.EDE,"des-ede-cbc":K.CBC.instantiate(K.EDE),"des-ede":K.EDE,"des-cbc":K.CBC.instantiate(K.DES),"des-ecb":K.DES};U.des=U["des-cbc"],U.des3=U["des-ede3-cbc"],W.exports=Y,G(Y,p$);function Y(F){p$.call(this);var O=F.mode.toLowerCase(),f$=U[O],z;F.decrypt?z="decrypt":z="encrypt";var c$=F.key;$.isBuffer(c$)||(c$=$.from(c$)),(O==="des-ede"||O==="des-ede-cbc")&&(c$=$.concat([c$,c$.slice(0,8)]));var M=F.iv;$.isBuffer(M)||(M=$.from(M)),this._des=f$.create({key:c$,iv:M,type:z})}Y.prototype._update=function(F){return $.from(this._des.update(F))},Y.prototype._final=function(){return $.from(this._des.final())}}}),EY=GY({"node_modules/browserify-aes/modes/ecb.js"(H){H.encrypt=function(W,p$){return W._cipher.encryptBlock(p$)},H.decrypt=function(W,p$){return W._cipher.decryptBlock(p$)}}}),TY=GY({"node_modules/buffer-xor/index.js"(H,W){W.exports=function(p$,K){for(var G=Math.min(p$.length,K.length),$=new lQ(G),U=0;U<G;++U)$[U]=p$[U]^K[U];return $}}}),DY=GY({"node_modules/browserify-aes/modes/cbc.js"(H){var W=TY();H.encrypt=function(p$,K){var G=W(K,p$._prev);return p$._prev=p$._cipher.encryptBlock(G),p$._prev},H.decrypt=function(p$,K){var G=p$._prev;p$._prev=K;var $=p$._cipher.decryptBlock(K);return W($,G)}}}),CY=GY({"node_modules/browserify-aes/modes/cfb.js"(H){var W=UY().Buffer,p$=TY();function K(G,$,U){var Y=$.length,F=p$($,G._cache);return G._cache=G._cache.slice(Y),G._prev=W.concat([G._prev,U?$:F]),F}H.encrypt=function(G,$,U){for(var Y=W.allocUnsafe(0),F;$.length;)if(G._cache.length===0&&(G._cache=G._cipher.encryptBlock(G._prev),G._prev=W.allocUnsafe(0)),G._cache.length<=$.length)F=G._cache.length,Y=W.concat([Y,K(G,$.slice(0,F),U)]),$=$.slice(F);else{Y=W.concat([Y,K(G,$,U)]);break}return Y}}}),LY=GY({"node_modules/browserify-aes/modes/cfb8.js"(H){var W=UY().Buffer;function p$(K,G,$){var U=K._cipher.encryptBlock(K._prev),Y=U[0]^G;return K._prev=W.concat([K._prev.slice(1),W.from([$?G:Y])]),Y}H.encrypt=function(K,G,$){for(var U=G.length,Y=W.allocUnsafe(U),F=-1;++F<U;)Y[F]=p$(K,G[F],$);return Y}}}),RY=GY({"node_modules/browserify-aes/modes/cfb1.js"(H){var W=UY().Buffer;function p$(G,$,U){for(var Y,F=-1,O=8,f$=0,z,c$;++F<O;)Y=G._cipher.encryptBlock(G._prev),z=$&1<<7-F?128:0,c$=Y[0]^z,f$+=(c$&128)>>F%8,G._prev=K(G._prev,U?z:c$);return f$}function K(G,$){var U=G.length,Y=-1,F=W.allocUnsafe(G.length);for(G=W.concat([G,W.from([$])]);++Y<U;)F[Y]=G[Y]<<1|G[Y+1]>>7;return F}H.encrypt=function(G,$,U){for(var Y=$.length,F=W.allocUnsafe(Y),O=-1;++O<Y;)F[O]=p$(G,$[O],U);return F}}}),PY=GY({"node_modules/browserify-aes/modes/ofb.js"(H){var W=TY();function p$(K){return K._prev=K._cipher.encryptBlock(K._prev),K._prev}H.encrypt=function(K,G){for(;K._cache.length<G.length;)K._cache=lQ.concat([K._cache,p$(K)]);var $=K._cache.slice(0,G.length);return K._cache=K._cache.slice(G.length),W(G,$)}}}),zY=GY({"node_modules/browserify-aes/incr32.js"(H,W){function p$(K){for(var G=K.length,$;G--;)if($=K.readUInt8(G),$===255)K.writeUInt8(0,G);else{$++,K.writeUInt8($,G);break}}W.exports=p$}}),nQ=GY({"node_modules/browserify-aes/modes/ctr.js"(H){var W=TY(),p$=UY().Buffer,K=zY();function G(U){var Y=U._cipher.encryptBlockRaw(U._prev);return K(U._prev),Y}var $=16;H.encrypt=function(U,Y){var F=Math.ceil(Y.length/$),O=U._cache.length;U._cache=p$.concat([U._cache,p$.allocUnsafe(F*$)]);for(var f$=0;f$<F;f$++){var z=G(U),c$=O+f$*$;U._cache.writeUInt32BE(z[0],c$+0),U._cache.writeUInt32BE(z[1],c$+4),U._cache.writeUInt32BE(z[2],c$+8),U._cache.writeUInt32BE(z[3],c$+12)}var M=U._cache.slice(0,Y.length);return U._cache=U._cache.slice(Y.length),W(Y,M)}}}),MY=GY({"node_modules/browserify-aes/modes/list.json"(H,W){W.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}}}),SY=GY({"node_modules/browserify-aes/modes/index.js"(H,W){var p$={ECB:EY(),CBC:DY(),CFB:CY(),CFB8:LY(),CFB1:RY(),OFB:PY(),CTR:nQ(),GCM:nQ()},K=MY();for(G in K)K[G].module=p$[K[G].mode];var G;W.exports=K}}),vY=GY({"node_modules/browserify-aes/aes.js"(H,W){var p$=UY().Buffer;function K(O){p$.isBuffer(O)||(O=p$.from(O));for(var f$=O.length/4|0,z=new Array(f$),c$=0;c$<f$;c$++)z[c$]=O.readUInt32BE(c$*4);return z}function G(O){for(var f$=0;f$<O.length;O++)O[f$]=0}function $(O,f$,z,c$,M){for(var h$=z[0],S=z[1],d$=z[2],v=z[3],b$=O[0]^f$[0],q=O[1]^f$[1],l$=O[2]^f$[2],j=O[3]^f$[3],o$,k,u$,g,n$=4,_=1;_<M;_++)o$=h$[b$>>>24]^S[q>>>16&255]^d$[l$>>>8&255]^v[j&255]^f$[n$++],k=h$[q>>>24]^S[l$>>>16&255]^d$[j>>>8&255]^v[b$&255]^f$[n$++],u$=h$[l$>>>24]^S[j>>>16&255]^d$[b$>>>8&255]^v[q&255]^f$[n$++],g=h$[j>>>24]^S[b$>>>16&255]^d$[q>>>8&255]^v[l$&255]^f$[n$++],b$=o$,q=k,l$=u$,j=g;return o$=(c$[b$>>>24]<<24|c$[q>>>16&255]<<16|c$[l$>>>8&255]<<8|c$[j&255])^f$[n$++],k=(c$[q>>>24]<<24|c$[l$>>>16&255]<<16|c$[j>>>8&255]<<8|c$[b$&255])^f$[n$++],u$=(c$[l$>>>24]<<24|c$[j>>>16&255]<<16|c$[b$>>>8&255]<<8|c$[q&255])^f$[n$++],g=(c$[j>>>24]<<24|c$[b$>>>16&255]<<16|c$[q>>>8&255]<<8|c$[l$&255])^f$[n$++],o$=o$>>>0,k=k>>>0,u$=u$>>>0,g=g>>>0,[o$,k,u$,g]}var U=[0,1,2,4,8,16,32,64,128,27,54],Y=function(){for(var O=new Array(256),f$=0;f$<256;f$++)f$<128?O[f$]=f$<<1:O[f$]=f$<<1^283;for(var z=[],c$=[],M=[[],[],[],[]],h$=[[],[],[],[]],S=0,d$=0,v=0;v<256;++v){var b$=d$^d$<<1^d$<<2^d$<<3^d$<<4;b$=b$>>>8^b$&255^99,z[S]=b$,c$[b$]=S;var q=O[S],l$=O[q],j=O[l$],o$=O[b$]*257^b$*16843008;M[0][S]=o$<<24|o$>>>8,M[1][S]=o$<<16|o$>>>16,M[2][S]=o$<<8|o$>>>24,M[3][S]=o$,o$=j*16843009^l$*65537^q*257^S*16843008,h$[0][b$]=o$<<24|o$>>>8,h$[1][b$]=o$<<16|o$>>>16,h$[2][b$]=o$<<8|o$>>>24,h$[3][b$]=o$,S===0?S=d$=1:(S=q^O[O[O[j^q]]],d$^=O[O[d$]])}return{SBOX:z,INV_SBOX:c$,SUB_MIX:M,INV_SUB_MIX:h$}}();function F(O){this._key=K(O),this._reset()}F.blockSize=16,F.keySize=32,F.prototype.blockSize=F.blockSize,F.prototype.keySize=F.keySize,F.prototype._reset=function(){for(var O=this._key,f$=O.length,z=f$+6,c$=(z+1)*4,M=[],h$=0;h$<f$;h$++)M[h$]=O[h$];for(h$=f$;h$<c$;h$++){var S=M[h$-1];h$%f$===0?(S=S<<8|S>>>24,S=Y.SBOX[S>>>24]<<24|Y.SBOX[S>>>16&255]<<16|Y.SBOX[S>>>8&255]<<8|Y.SBOX[S&255],S^=U[h$/f$|0]<<24):f$>6&&h$%f$===4&&(S=Y.SBOX[S>>>24]<<24|Y.SBOX[S>>>16&255]<<16|Y.SBOX[S>>>8&255]<<8|Y.SBOX[S&255]),M[h$]=M[h$-f$]^S}for(var d$=[],v=0;v<c$;v++){var b$=c$-v,q=M[b$-(v%4?0:4)];v<4||b$<=4?d$[v]=q:d$[v]=Y.INV_SUB_MIX[0][Y.SBOX[q>>>24]]^Y.INV_SUB_MIX[1][Y.SBOX[q>>>16&255]]^Y.INV_SUB_MIX[2][Y.SBOX[q>>>8&255]]^Y.INV_SUB_MIX[3][Y.SBOX[q&255]]}this._nRounds=z,this._keySchedule=M,this._invKeySchedule=d$},F.prototype.encryptBlockRaw=function(O){return O=K(O),$(O,this._keySchedule,Y.SUB_MIX,Y.SBOX,this._nRounds)},F.prototype.encryptBlock=function(O){var f$=this.encryptBlockRaw(O),z=p$.allocUnsafe(16);return z.writeUInt32BE(f$[0],0),z.writeUInt32BE(f$[1],4),z.writeUInt32BE(f$[2],8),z.writeUInt32BE(f$[3],12),z},F.prototype.decryptBlock=function(O){O=K(O);var f$=O[1];O[1]=O[3],O[3]=f$;var z=$(O,this._invKeySchedule,Y.INV_SUB_MIX,Y.INV_SBOX,this._nRounds),c$=p$.allocUnsafe(16);return c$.writeUInt32BE(z[0],0),c$.writeUInt32BE(z[3],4),c$.writeUInt32BE(z[2],8),c$.writeUInt32BE(z[1],12),c$},F.prototype.scrub=function(){G(this._keySchedule),G(this._invKeySchedule),G(this._key)},W.exports.AES=F}}),qY=GY({"node_modules/browserify-aes/ghash.js"(H,W){var p$=UY().Buffer,K=p$.alloc(16,0);function G(Y){return[Y.readUInt32BE(0),Y.readUInt32BE(4),Y.readUInt32BE(8),Y.readUInt32BE(12)]}function $(Y){var F=p$.allocUnsafe(16);return F.writeUInt32BE(Y[0]>>>0,0),F.writeUInt32BE(Y[1]>>>0,4),F.writeUInt32BE(Y[2]>>>0,8),F.writeUInt32BE(Y[3]>>>0,12),F}function U(Y){this.h=Y,this.state=p$.alloc(16,0),this.cache=p$.allocUnsafe(0)}U.prototype.ghash=function(Y){for(var F=-1;++F<Y.length;)this.state[F]^=Y[F];this._multiply()},U.prototype._multiply=function(){for(var Y=G(this.h),F=[0,0,0,0],O,f$,z,c$=-1;++c$<128;){for(f$=(this.state[~~(c$/8)]&1<<7-c$%8)!==0,f$&&(F[0]^=Y[0],F[1]^=Y[1],F[2]^=Y[2],F[3]^=Y[3]),z=(Y[3]&1)!==0,O=3;O>0;O--)Y[O]=Y[O]>>>1|(Y[O-1]&1)<<31;Y[0]=Y[0]>>>1,z&&(Y[0]=Y[0]^225<<24)}this.state=$(F)},U.prototype.update=function(Y){this.cache=p$.concat([this.cache,Y]);for(var F;this.cache.length>=16;)F=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(F)},U.prototype.final=function(Y,F){return this.cache.length&&this.ghash(p$.concat([this.cache,K],16)),this.ghash($([0,Y,0,F])),this.state},W.exports=U}}),jY=GY({"node_modules/browserify-aes/authCipher.js"(H,W){var p$=vY(),K=UY().Buffer,G=_0(),$=C0(),U=qY(),Y=TY(),F=zY();function O(c$,M){var h$=0;c$.length!==M.length&&h$++;for(var S=Math.min(c$.length,M.length),d$=0;d$<S;++d$)h$+=c$[d$]^M[d$];return h$}function f$(c$,M,h$){if(M.length===12)return c$._finID=K.concat([M,K.from([0,0,0,1])]),K.concat([M,K.from([0,0,0,2])]);var S=new U(h$),d$=M.length,v=d$%16;S.update(M),v&&(v=16-v,S.update(K.alloc(v,0))),S.update(K.alloc(8,0));var b$=d$*8,q=K.alloc(8);q.writeUIntBE(b$,0,8),S.update(q),c$._finID=S.state;var l$=K.from(c$._finID);return F(l$),l$}function z(c$,M,h$,S){G.call(this);var d$=K.alloc(4,0);this._cipher=new p$.AES(M);var v=this._cipher.encryptBlock(d$);this._ghash=new U(v),h$=f$(this,h$,v),this._prev=K.from(h$),this._cache=K.allocUnsafe(0),this._secCache=K.allocUnsafe(0),this._decrypt=S,this._alen=0,this._len=0,this._mode=c$,this._authTag=null,this._called=!1}$(z,G),z.prototype._update=function(c$){if(!this._called&&this._alen){var M=16-this._alen%16;M<16&&(M=K.alloc(M,0),this._ghash.update(M))}this._called=!0;var h$=this._mode.encrypt(this,c$);return this._decrypt?this._ghash.update(c$):this._ghash.update(h$),this._len+=c$.length,h$},z.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var c$=Y(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&O(c$,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=c$,this._cipher.scrub()},z.prototype.getAuthTag=function(){if(this._decrypt||!K.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},z.prototype.setAuthTag=function(c$){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=c$},z.prototype.setAAD=function(c$){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(c$),this._alen+=c$.length},W.exports=z}}),kY=GY({"node_modules/browserify-aes/streamCipher.js"(H,W){var p$=vY(),K=UY().Buffer,G=_0(),$=C0();function U(Y,F,O,f$){G.call(this),this._cipher=new p$.AES(F),this._prev=K.from(O),this._cache=K.allocUnsafe(0),this._secCache=K.allocUnsafe(0),this._decrypt=f$,this._mode=Y}$(U,G),U.prototype._update=function(Y){return this._mode.encrypt(this,Y,this._decrypt)},U.prototype._final=function(){this._cipher.scrub()},W.exports=U}}),gY=GY({"node_modules/evp_bytestokey/index.js"(H,W){var p$=UY().Buffer,K=R0();function G($,U,Y,F){if(p$.isBuffer($)||($=p$.from($,"binary")),U&&(p$.isBuffer(U)||(U=p$.from(U,"binary")),U.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var O=Y/8,f$=p$.alloc(O),z=p$.alloc(F||0),c$=p$.alloc(0);O>0||F>0;){var M=new K;M.update(c$),M.update($),U&&M.update(U),c$=M.digest();var h$=0;if(O>0){var S=f$.length-O;h$=Math.min(O,c$.length),c$.copy(f$,S,0,h$),O-=h$}if(h$<c$.length&&F>0){var d$=z.length-F,v=Math.min(F,c$.length-h$);c$.copy(z,d$,h$,h$+v),F-=v}}return c$.fill(0),{key:f$,iv:z}}W.exports=G}}),_Y=GY({"node_modules/browserify-aes/encrypter.js"(H){var W=SY(),p$=jY(),K=UY().Buffer,G=kY(),$=_0(),U=vY(),Y=gY(),F=C0();function O(h$,S,d$){$.call(this),this._cache=new z,this._cipher=new U.AES(S),this._prev=K.from(d$),this._mode=h$,this._autopadding=!0}F(O,$),O.prototype._update=function(h$){this._cache.add(h$);for(var S,d$,v=[];S=this._cache.get();)d$=this._mode.encrypt(this,S),v.push(d$);return K.concat(v)};var f$=K.alloc(16,16);O.prototype._final=function(){var h$=this._cache.flush();if(this._autopadding)return h$=this._mode.encrypt(this,h$),this._cipher.scrub(),h$;if(!h$.equals(f$))throw this._cipher.scrub(),new Error("data not multiple of block length")},O.prototype.setAutoPadding=function(h$){return this._autopadding=!!h$,this};function z(){this.cache=K.allocUnsafe(0)}z.prototype.add=function(h$){this.cache=K.concat([this.cache,h$])},z.prototype.get=function(){if(this.cache.length>15){var h$=this.cache.slice(0,16);return this.cache=this.cache.slice(16),h$}return null},z.prototype.flush=function(){for(var h$=16-this.cache.length,S=K.allocUnsafe(h$),d$=-1;++d$<h$;)S.writeUInt8(h$,d$);return K.concat([this.cache,S])};function c$(h$,S,d$){var v=W[h$.toLowerCase()];if(!v)throw new TypeError("invalid suite type");if(typeof S=="string"&&(S=K.from(S)),S.length!==v.key/8)throw new TypeError("invalid key length "+S.length);if(typeof d$=="string"&&(d$=K.from(d$)),v.mode!=="GCM"&&d$.length!==v.iv)throw new TypeError("invalid iv length "+d$.length);return v.type==="stream"?new G(v.module,S,d$):v.type==="auth"?new p$(v.module,S,d$):new O(v.module,S,d$)}function M(h$,S){var d$=W[h$.toLowerCase()];if(!d$)throw new TypeError("invalid suite type");var v=Y(S,!1,d$.key,d$.iv);return c$(h$,v.key,v.iv)}H.createCipheriv=c$,H.createCipher=M}}),NY=GY({"node_modules/browserify-aes/decrypter.js"(H){var W=jY(),p$=UY().Buffer,K=SY(),G=kY(),$=_0(),U=vY(),Y=gY(),F=C0();function O(h$,S,d$){$.call(this),this._cache=new f$,this._last=void 0,this._cipher=new U.AES(S),this._prev=p$.from(d$),this._mode=h$,this._autopadding=!0}F(O,$),O.prototype._update=function(h$){this._cache.add(h$);for(var S,d$,v=[];S=this._cache.get(this._autopadding);)d$=this._mode.decrypt(this,S),v.push(d$);return p$.concat(v)},O.prototype._final=function(){var h$=this._cache.flush();if(this._autopadding)return z(this._mode.decrypt(this,h$));if(h$)throw new Error("data not multiple of block length")},O.prototype.setAutoPadding=function(h$){return this._autopadding=!!h$,this};function f$(){this.cache=p$.allocUnsafe(0)}f$.prototype.add=function(h$){this.cache=p$.concat([this.cache,h$])},f$.prototype.get=function(h$){var S;if(h$){if(this.cache.length>16)return S=this.cache.slice(0,16),this.cache=this.cache.slice(16),S}else if(this.cache.length>=16)return S=this.cache.slice(0,16),this.cache=this.cache.slice(16),S;return null},f$.prototype.flush=function(){if(this.cache.length)return this.cache};function z(h$){var S=h$[15];if(S<1||S>16)throw new Error("unable to decrypt data");for(var d$=-1;++d$<S;)if(h$[d$+(16-S)]!==S)throw new Error("unable to decrypt data");if(S!==16)return h$.slice(0,16-S)}function c$(h$,S,d$){var v=K[h$.toLowerCase()];if(!v)throw new TypeError("invalid suite type");if(typeof d$=="string"&&(d$=p$.from(d$)),v.mode!=="GCM"&&d$.length!==v.iv)throw new TypeError("invalid iv length "+d$.length);if(typeof S=="string"&&(S=p$.from(S)),S.length!==v.key/8)throw new TypeError("invalid key length "+S.length);return v.type==="stream"?new G(v.module,S,d$,!0):v.type==="auth"?new W(v.module,S,d$,!0):new O(v.module,S,d$)}function M(h$,S){var d$=K[h$.toLowerCase()];if(!d$)throw new TypeError("invalid suite type");var v=Y(S,!1,d$.key,d$.iv);return c$(h$,v.key,v.iv)}H.createDecipher=M,H.createDecipheriv=c$}}),xY=GY({"node_modules/browserify-aes/browser.js"(H){var W=_Y(),p$=NY(),K=MY();function G(){return Object.keys(K)}H.createCipher=H.Cipher=W.createCipher,H.createCipheriv=H.Cipheriv=W.createCipheriv,H.createDecipher=H.Decipher=p$.createDecipher,H.createDecipheriv=H.Decipheriv=p$.createDecipheriv,H.listCiphers=H.getCiphers=G}}),BY=GY({"node_modules/browserify-des/modes.js"(H){H["des-ecb"]={key:8,iv:0},H["des-cbc"]=H.des={key:8,iv:8},H["des-ede3-cbc"]=H.des3={key:24,iv:8},H["des-ede3"]={key:24,iv:0},H["des-ede-cbc"]={key:16,iv:8},H["des-ede"]={key:16,iv:0}}}),yY=GY({"node_modules/browserify-cipher/browser.js"(H){var W=WY(),p$=xY(),K=SY(),G=BY(),$=gY();function U(z,c$){z=z.toLowerCase();var M,h$;if(K[z])M=K[z].key,h$=K[z].iv;else if(G[z])M=G[z].key*8,h$=G[z].iv;else throw new TypeError("invalid suite type");var S=$(c$,!1,M,h$);return F(z,S.key,S.iv)}function Y(z,c$){z=z.toLowerCase();var M,h$;if(K[z])M=K[z].key,h$=K[z].iv;else if(G[z])M=G[z].key*8,h$=G[z].iv;else throw new TypeError("invalid suite type");var S=$(c$,!1,M,h$);return O(z,S.key,S.iv)}function F(z,c$,M){if(z=z.toLowerCase(),K[z])return p$.createCipheriv(z,c$,M);if(G[z])return new W({key:c$,iv:M,mode:z});throw new TypeError("invalid suite type")}function O(z,c$,M){if(z=z.toLowerCase(),K[z])return p$.createDecipheriv(z,c$,M);if(G[z])return new W({key:c$,iv:M,mode:z,decrypt:!0});throw new TypeError("invalid suite type")}function f$(){return Object.keys(G).concat(p$.getCiphers())}H.createCipher=H.Cipher=U,H.createCipheriv=H.Cipheriv=F,H.createDecipher=H.Decipher=Y,H.createDecipheriv=H.Decipheriv=O,H.listCiphers=H.getCiphers=f$}}),T=GY({"node_modules/diffie-hellman/node_modules/bn.js/lib/bn.js"(H,W){(function(p$,K){function G(s$,N){if(!s$)throw new Error(N||"Assertion failed")}function $(s$,N){s$.super_=N;var t$=function(){};t$.prototype=N.prototype,s$.prototype=new t$,s$.prototype.constructor=s$}function U(s$,N,t$){if(U.isBN(s$))return s$;this.negative=0,this.words=null,this.length=0,this.red=null,s$!==null&&((N==="le"||N==="be")&&(t$=N,N=10),this._init(s$||0,N||10,t$||"be"))}typeof p$=="object"?p$.exports=U:K.BN=U,U.BN=U,U.wordSize=26;var Y=lQ;U.isBN=function(s$){return s$ instanceof U?!0:s$!==null&&typeof s$=="object"&&s$.constructor.wordSize===U.wordSize&&Array.isArray(s$.words)},U.max=function(s$,N){return s$.cmp(N)>0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x<s$.length&&(N===16?this._parseHex(s$,x,t$):(this._parseBase(s$,N,x),t$==="le"&&this._initArray(this.toArray(),N,t$)))},U.prototype._initNumber=function(s$,N,t$){s$<0&&(this.negative=1,s$=-s$),s$<67108864?(this.words=[s$&67108863],this.length=1):s$<4503599627370496?(this.words=[s$&67108863,s$/67108864&67108863],this.length=2):(G(s$<9007199254740992),this.words=[s$&67108863,s$/67108864&67108863,1],this.length=3),t$==="le"&&this._initArray(this.toArray(),N,t$)},U.prototype._initArray=function(s$,N,t$){if(G(typeof s$.length=="number"),s$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s$.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$,B,a$=0;if(t$==="be")for(x=s$.length-1,m$=0;x>=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x<s$.length;x+=3)B=s$[x]|s$[x+1]<<8|s$[x+2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$=0,B=0,a$;if(t$==="be")for(x=s$.length-1;x>=N;x-=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x<s$.length;x+=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$<B;a$++){var y=s$.charCodeAt(a$)-48;m$*=x,y>=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w<y;w+=x)e$=f$(s$,w,w+x,N),this.imuln(m$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$);if(a$!==0){var r$=1;for(e$=f$(s$,w,s$.length,N),w=0;w<a$;w++)r$*=N;this.imuln(r$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$)}this.strip()},U.prototype.copy=function(s$){s$.words=new Array(this.length);for(var N=0;N<this.length;N++)s$.words[N]=this.words[N];s$.length=this.length,s$.negative=this.negative,s$.red=this.red},U.prototype.clone=function(){var s$=new U(null);return this.copy(s$),s$},U.prototype._expand=function(s$){for(;this.length<s$;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var z=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c$=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B<this.length;B++){var a$=this.words[B],y=((a$<<x|m$)&16777215).toString(16);m$=a$>>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$<m$;e$++)a$[e$]=0}else{for(e$=0;e$<m$-x;e$++)a$[e$]=0;for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[m$-e$-1]=y}return a$},Math.clz32?U.prototype._countBits=function(s$){return 32-Math.clz32(s$)}:U.prototype._countBits=function(s$){var N=s$,t$=0;return N>=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$<N.length;t$++){var x=t$/26|0,m$=t$%26;N[t$]=(s$.words[x]&1<<m$)>>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;N<this.length;N++){var t$=this._zeroBits(this.words[N]);if(s$+=t$,t$!==26)break}return s$},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(s$){return this.negative!==0?this.abs().inotn(s$).iaddn(1):this.clone()},U.prototype.fromTwos=function(s$){return this.testn(s$-1)?this.notn(s$).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(s$){for(;this.length<s$.length;)this.words[this.length++]=0;for(var N=0;N<s$.length;N++)this.words[N]=this.words[N]|s$.words[N];return this.strip()},U.prototype.ior=function(s$){return G((this.negative|s$.negative)===0),this.iuor(s$)},U.prototype.or=function(s$){return this.length>s$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$<N.length;t$++)this.words[t$]=this.words[t$]&s$.words[t$];return this.length=N.length,this.strip()},U.prototype.iand=function(s$){return G((this.negative|s$.negative)===0),this.iuand(s$)},U.prototype.and=function(s$){return this.length>s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;x<t$.length;x++)this.words[x]=N.words[x]^t$.words[x];if(this!==N)for(;x<N.length;x++)this.words[x]=N.words[x];return this.length=N.length,this.strip()},U.prototype.ixor=function(s$){return G((this.negative|s$.negative)===0),this.iuxor(s$)},U.prototype.xor=function(s$){return this.length>s$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x<N;x++)this.words[x]=~this.words[x]&67108863;return t$>0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<<x:this.words[t$]=this.words[t$]&~(1<<x),this.strip()},U.prototype.iadd=function(s$){var N;if(this.negative!==0&&s$.negative===0)return this.negative=0,N=this.isub(s$),this.negative^=1,this._normSign();if(this.negative===0&&s$.negative!==0)return s$.negative=0,N=this.isub(s$),s$.negative=1,N._normSign();var t$,x;this.length>s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B<x.length;B++)N=(t$.words[B]|0)+(x.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;for(;m$!==0&&B<t$.length;B++)N=(t$.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;B<t$.length;B++)this.words[B]=t$.words[B];return this},U.prototype.add=function(s$){var N;return s$.negative!==0&&this.negative===0?(s$.negative=0,N=this.sub(s$),s$.negative^=1,N):s$.negative===0&&this.negative!==0?(this.negative=0,N=s$.sub(this),this.negative=1,N):this.length>s$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$<m$.length;a$++)N=(x.words[a$]|0)-(m$.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;for(;B!==0&&a$<x.length;a$++)N=(x.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;if(B===0&&a$<x.length&&x!==this)for(;a$<x.length;a$++)this.words[a$]=x.words[a$];return this.length=Math.max(this.length,a$),x!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(s$){return this.clone().isub(s$)};function S(s$,N,t$){t$.negative=N.negative^s$.negative;var x=s$.length+N.length|0;t$.length=x,x=x-1|0;var m$=s$.words[0]|0,B=N.words[0]|0,a$=m$*B,y=a$&67108863,e$=a$/67108864|0;t$.words[0]=y;for(var w=1;w<x;w++){for(var r$=e$>>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B<t$.length-1;B++){var a$=m$;m$=0;for(var y=x&67108863,e$=Math.min(B,N.length-1),w=Math.max(0,B-s$.length+1);w<=e$;w++){var r$=B-w,E=s$.words[r$]|0,i$=N.words[w]|0,p=E*i$,$Q=p&67108863;a$=a$+(p/67108864|0)|0,$Q=$Q+y|0,y=$Q&67108863,a$=a$+($Q>>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x<s$;x++)N[x]=this.revBin(x,t$,s$);return N},q.prototype.revBin=function(s$,N,t$){if(s$===0||s$===t$-1)return s$;for(var x=0,m$=0;m$<N;m$++)x|=(s$&1)<<N-m$-1,s$>>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$<B;a$++)x[a$]=N[s$[a$]],m$[a$]=t$[s$[a$]]},q.prototype.transform=function(s$,N,t$,x,m$,B){this.permute(B,s$,N,t$,x,m$);for(var a$=1;a$<m$;a$<<=1)for(var y=a$<<1,e$=Math.cos(2*Math.PI/y),w=Math.sin(2*Math.PI/y),r$=0;r$<m$;r$+=y)for(var E=e$,i$=w,p=0;p<a$;p++){var $Q=t$[r$+p],f=x[r$+p],QQ=t$[r$+p+a$],c=x[r$+p+a$],YQ=E*QQ-i$*c;c=E*c+i$*QQ,QQ=YQ,t$[r$+p]=$Q+QQ,x[r$+p]=f+c,t$[r$+p+a$]=$Q-QQ,x[r$+p+a$]=f-c,p!==y&&(YQ=e$*E-w*i$,i$=e$*i$+w*E,E=YQ)}},q.prototype.guessLen13b=function(s$,N){var t$=Math.max(N,s$)|1,x=t$&1,m$=0;for(t$=t$/2|0;t$;t$=t$>>>1)m$++;return 1<<m$+1+x},q.prototype.conjugate=function(s$,N,t$){if(!(t$<=1))for(var x=0;x<t$/2;x++){var m$=s$[x];s$[x]=s$[t$-x-1],s$[t$-x-1]=m$,m$=N[x],N[x]=-N[t$-x-1],N[t$-x-1]=-m$}},q.prototype.normalize13b=function(s$,N){for(var t$=0,x=0;x<N/2;x++){var m$=Math.round(s$[2*x+1]/N)*8192+Math.round(s$[2*x]/N)+t$;s$[x]=m$&67108863,m$<67108864?t$=0:t$=m$/67108864|0}return s$},q.prototype.convert13b=function(s$,N,t$,x){for(var m$=0,B=0;B<N;B++)m$=m$+(s$[B]|0),t$[2*B]=m$&8191,m$=m$>>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B<x;++B)t$[B]=0;G(m$===0),G((m$&-8192)===0)},q.prototype.stub=function(s$){for(var N=new Array(s$),t$=0;t$<s$;t$++)N[t$]=0;return N},q.prototype.mulp=function(s$,N,t$){var x=2*this.guessLen13b(s$.length,N.length),m$=this.makeRBT(x),B=this.stub(x),a$=new Array(x),y=new Array(x),e$=new Array(x),w=new Array(x),r$=new Array(x),E=new Array(x),i$=t$.words;i$.length=x,this.convert13b(s$.words,s$.length,a$,x),this.convert13b(N.words,N.length,w,x),this.transform(a$,B,y,e$,x,m$),this.transform(w,B,r$,E,x,m$);for(var p=0;p<x;p++){var $Q=y[p]*r$[p]-e$[p]*E[p];e$[p]=y[p]*E[p]+e$[p]*r$[p],y[p]=$Q}return this.conjugate(y,e$,x),this.transform(y,e$,i$,B,x,m$),this.conjugate(i$,B,x),this.normalize13b(i$,x),t$.negative=s$.negative^N.negative,t$.length=s$.length+N.length,t$.strip()},U.prototype.mul=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),this.mulTo(s$,N)},U.prototype.mulf=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),b$(this,s$,N)},U.prototype.imul=function(s$){return this.clone().mulTo(s$,this)},U.prototype.imuln=function(s$){G(typeof s$=="number"),G(s$<67108864);for(var N=0,t$=0;t$<this.length;t$++){var x=(this.words[t$]|0)*s$,m$=(x&67108863)+(N&67108863);N>>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x<N.length&&N[x]===0;x++,t$=t$.sqr());if(++x<N.length)for(var m$=t$.sqr();x<N.length;x++,m$=m$.sqr())N[x]!==0&&(t$=t$.mul(m$));return t$},U.prototype.iushln=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$<this.length;m$++){var a$=this.words[m$]&x,y=(this.words[m$]|0)-a$<<N;this.words[m$]=y|B,B=a$>>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$<t$;m$++)this.words[m$]=0;this.length+=t$}return this.strip()},U.prototype.ishln=function(s$){return G(this.negative===0),this.iushln(s$)},U.prototype.iushrn=function(s$,N,t$){G(typeof s$=="number"&&s$>=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<<m$,y=t$;if(x-=B,x=Math.max(0,x),y){for(var e$=0;e$<B;e$++)y.words[e$]=this.words[e$];y.length=B}if(B!==0)if(this.length>B)for(this.length-=B,e$=0;e$<this.length;e$++)this.words[e$]=this.words[e$+B];else this.words[0]=0,this.length=1;var w=0;for(e$=this.length-1;e$>=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return!1;var m$=this.words[t$];return!!(m$&x)},U.prototype.imaskn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<<N;this.words[this.length-1]&=x}return this.strip()},U.prototype.maskn=function(s$){return this.clone().imaskn(s$)},U.prototype.iaddn=function(s$){return G(typeof s$=="number"),G(s$<67108864),s$<0?this.isubn(-s$):this.negative!==0?this.length===1&&(this.words[0]|0)<s$?(this.words[0]=s$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s$),this.negative=1,this):this._iaddn(s$)},U.prototype._iaddn=function(s$){this.words[0]+=s$;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this.strip()},U.prototype.addn=function(s$){return this.clone().iaddn(s$)},U.prototype.subn=function(s$){return this.clone().isubn(s$)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(s$,N,t$){var x=s$.length+t$,m$;this._expand(x);var B,a$=0;for(m$=0;m$<s$.length;m$++){B=(this.words[m$+t$]|0)+a$;var y=(s$.words[m$]|0)*N;B-=y&67108863,a$=(B>>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$<this.length-t$;m$++)B=(this.words[m$+t$]|0)+a$,a$=B>>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$<this.length;m$++)B=-(this.words[m$]|0)+a$,a$=B>>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w<e$.length;w++)e$.words[w]=0}var r$=x.clone()._ishlnsubmul(m$,1,y);r$.negative===0&&(x=r$,e$&&(e$.words[y]=1));for(var E=y-1;E>=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return this._expand(t$+1),this.words[t$]|=x,this;for(var m$=x,B=t$;m$!==0&&B<this.length;B++){var a$=this.words[B]|0;a$+=m$,m$=a$>>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:x<s$?-1:1}return this.negative!==0?-t$|0:t$},U.prototype.cmp=function(s$){if(this.negative!==0&&s$.negative===0)return-1;if(this.negative===0&&s$.negative!==0)return 1;var N=this.ucmp(s$);return this.negative!==0?-N|0:N},U.prototype.ucmp=function(s$){if(this.length>s$.length)return 1;if(this.length<s$.length)return-1;for(var N=0,t$=this.length-1;t$>=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){x<m$?N=-1:x>m$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$<this.n?-1:N.ucmp(this.p);return x===0?(N.words[0]=0,N.length=1):x>0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$<x;m$++)N.words[m$]=s$.words[m$];if(N.length=x,s$.length<=9){s$.words[0]=0,s$.length=1;return}var B=s$.words[9];for(N.words[N.length++]=B&t$,m$=10;m$<s$.length;m$++){var a$=s$.words[m$]|0;s$.words[m$-10]=(a$&t$)<<4|B>>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$<s$.length;t$++){var x=s$.words[t$]|0;N+=x*977,s$.words[t$]=N&67108863,N=x*64+(N/67108864|0)}return s$.words[s$.length-1]===0&&(s$.length--,s$.words[s$.length-1]===0&&s$.length--),s$};function k(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$(k,j);function u$(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$(u$,j);function g(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$(g,j),g.prototype.imulK=function(s$){for(var N=0,t$=0;t$<s$.length;t$++){var x=(s$.words[t$]|0)*19+N,m$=x&67108863;x>>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q<i$);var f=this.pow(w,new U(1).iushln(i$-$Q-1));r$=r$.redMul(f),w=f.redSqr(),E=E.redMul(w),i$=$Q}return r$},n$.prototype.invm=function(s$){var N=s$._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},n$.prototype.pow=function(s$,N){if(N.isZero())return new U(1).toRed(this);if(N.cmpn(1)===0)return s$.clone();var t$=4,x=new Array(1<<t$);x[0]=new U(1).toRed(this),x[1]=s$;for(var m$=2;m$<x.length;m$++)x[m$]=this.mul(x[m$-1],s$);var B=x[0],a$=0,y=0,e$=N.bitLength()%26;for(e$===0&&(e$=26),m$=N.length-1;m$>=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),D=GY({"node_modules/miller-rabin/node_modules/bn.js/lib/bn.js"(H,W){(function(p$,K){function G(s$,N){if(!s$)throw new Error(N||"Assertion failed")}function $(s$,N){s$.super_=N;var t$=function(){};t$.prototype=N.prototype,s$.prototype=new t$,s$.prototype.constructor=s$}function U(s$,N,t$){if(U.isBN(s$))return s$;this.negative=0,this.words=null,this.length=0,this.red=null,s$!==null&&((N==="le"||N==="be")&&(t$=N,N=10),this._init(s$||0,N||10,t$||"be"))}typeof p$=="object"?p$.exports=U:K.BN=U,U.BN=U,U.wordSize=26;var Y=lQ;U.isBN=function(s$){return s$ instanceof U?!0:s$!==null&&typeof s$=="object"&&s$.constructor.wordSize===U.wordSize&&Array.isArray(s$.words)},U.max=function(s$,N){return s$.cmp(N)>0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x<s$.length&&(N===16?this._parseHex(s$,x,t$):(this._parseBase(s$,N,x),t$==="le"&&this._initArray(this.toArray(),N,t$)))},U.prototype._initNumber=function(s$,N,t$){s$<0&&(this.negative=1,s$=-s$),s$<67108864?(this.words=[s$&67108863],this.length=1):s$<4503599627370496?(this.words=[s$&67108863,s$/67108864&67108863],this.length=2):(G(s$<9007199254740992),this.words=[s$&67108863,s$/67108864&67108863,1],this.length=3),t$==="le"&&this._initArray(this.toArray(),N,t$)},U.prototype._initArray=function(s$,N,t$){if(G(typeof s$.length=="number"),s$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s$.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$,B,a$=0;if(t$==="be")for(x=s$.length-1,m$=0;x>=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x<s$.length;x+=3)B=s$[x]|s$[x+1]<<8|s$[x+2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$=0,B=0,a$;if(t$==="be")for(x=s$.length-1;x>=N;x-=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x<s$.length;x+=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$<B;a$++){var y=s$.charCodeAt(a$)-48;m$*=x,y>=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w<y;w+=x)e$=f$(s$,w,w+x,N),this.imuln(m$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$);if(a$!==0){var r$=1;for(e$=f$(s$,w,s$.length,N),w=0;w<a$;w++)r$*=N;this.imuln(r$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$)}this.strip()},U.prototype.copy=function(s$){s$.words=new Array(this.length);for(var N=0;N<this.length;N++)s$.words[N]=this.words[N];s$.length=this.length,s$.negative=this.negative,s$.red=this.red},U.prototype.clone=function(){var s$=new U(null);return this.copy(s$),s$},U.prototype._expand=function(s$){for(;this.length<s$;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var z=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c$=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B<this.length;B++){var a$=this.words[B],y=((a$<<x|m$)&16777215).toString(16);m$=a$>>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$<m$;e$++)a$[e$]=0}else{for(e$=0;e$<m$-x;e$++)a$[e$]=0;for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[m$-e$-1]=y}return a$},Math.clz32?U.prototype._countBits=function(s$){return 32-Math.clz32(s$)}:U.prototype._countBits=function(s$){var N=s$,t$=0;return N>=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$<N.length;t$++){var x=t$/26|0,m$=t$%26;N[t$]=(s$.words[x]&1<<m$)>>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;N<this.length;N++){var t$=this._zeroBits(this.words[N]);if(s$+=t$,t$!==26)break}return s$},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(s$){return this.negative!==0?this.abs().inotn(s$).iaddn(1):this.clone()},U.prototype.fromTwos=function(s$){return this.testn(s$-1)?this.notn(s$).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(s$){for(;this.length<s$.length;)this.words[this.length++]=0;for(var N=0;N<s$.length;N++)this.words[N]=this.words[N]|s$.words[N];return this.strip()},U.prototype.ior=function(s$){return G((this.negative|s$.negative)===0),this.iuor(s$)},U.prototype.or=function(s$){return this.length>s$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$<N.length;t$++)this.words[t$]=this.words[t$]&s$.words[t$];return this.length=N.length,this.strip()},U.prototype.iand=function(s$){return G((this.negative|s$.negative)===0),this.iuand(s$)},U.prototype.and=function(s$){return this.length>s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;x<t$.length;x++)this.words[x]=N.words[x]^t$.words[x];if(this!==N)for(;x<N.length;x++)this.words[x]=N.words[x];return this.length=N.length,this.strip()},U.prototype.ixor=function(s$){return G((this.negative|s$.negative)===0),this.iuxor(s$)},U.prototype.xor=function(s$){return this.length>s$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x<N;x++)this.words[x]=~this.words[x]&67108863;return t$>0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<<x:this.words[t$]=this.words[t$]&~(1<<x),this.strip()},U.prototype.iadd=function(s$){var N;if(this.negative!==0&&s$.negative===0)return this.negative=0,N=this.isub(s$),this.negative^=1,this._normSign();if(this.negative===0&&s$.negative!==0)return s$.negative=0,N=this.isub(s$),s$.negative=1,N._normSign();var t$,x;this.length>s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B<x.length;B++)N=(t$.words[B]|0)+(x.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;for(;m$!==0&&B<t$.length;B++)N=(t$.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;B<t$.length;B++)this.words[B]=t$.words[B];return this},U.prototype.add=function(s$){var N;return s$.negative!==0&&this.negative===0?(s$.negative=0,N=this.sub(s$),s$.negative^=1,N):s$.negative===0&&this.negative!==0?(this.negative=0,N=s$.sub(this),this.negative=1,N):this.length>s$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$<m$.length;a$++)N=(x.words[a$]|0)-(m$.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;for(;B!==0&&a$<x.length;a$++)N=(x.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;if(B===0&&a$<x.length&&x!==this)for(;a$<x.length;a$++)this.words[a$]=x.words[a$];return this.length=Math.max(this.length,a$),x!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(s$){return this.clone().isub(s$)};function S(s$,N,t$){t$.negative=N.negative^s$.negative;var x=s$.length+N.length|0;t$.length=x,x=x-1|0;var m$=s$.words[0]|0,B=N.words[0]|0,a$=m$*B,y=a$&67108863,e$=a$/67108864|0;t$.words[0]=y;for(var w=1;w<x;w++){for(var r$=e$>>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B<t$.length-1;B++){var a$=m$;m$=0;for(var y=x&67108863,e$=Math.min(B,N.length-1),w=Math.max(0,B-s$.length+1);w<=e$;w++){var r$=B-w,E=s$.words[r$]|0,i$=N.words[w]|0,p=E*i$,$Q=p&67108863;a$=a$+(p/67108864|0)|0,$Q=$Q+y|0,y=$Q&67108863,a$=a$+($Q>>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x<s$;x++)N[x]=this.revBin(x,t$,s$);return N},q.prototype.revBin=function(s$,N,t$){if(s$===0||s$===t$-1)return s$;for(var x=0,m$=0;m$<N;m$++)x|=(s$&1)<<N-m$-1,s$>>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$<B;a$++)x[a$]=N[s$[a$]],m$[a$]=t$[s$[a$]]},q.prototype.transform=function(s$,N,t$,x,m$,B){this.permute(B,s$,N,t$,x,m$);for(var a$=1;a$<m$;a$<<=1)for(var y=a$<<1,e$=Math.cos(2*Math.PI/y),w=Math.sin(2*Math.PI/y),r$=0;r$<m$;r$+=y)for(var E=e$,i$=w,p=0;p<a$;p++){var $Q=t$[r$+p],f=x[r$+p],QQ=t$[r$+p+a$],c=x[r$+p+a$],YQ=E*QQ-i$*c;c=E*c+i$*QQ,QQ=YQ,t$[r$+p]=$Q+QQ,x[r$+p]=f+c,t$[r$+p+a$]=$Q-QQ,x[r$+p+a$]=f-c,p!==y&&(YQ=e$*E-w*i$,i$=e$*i$+w*E,E=YQ)}},q.prototype.guessLen13b=function(s$,N){var t$=Math.max(N,s$)|1,x=t$&1,m$=0;for(t$=t$/2|0;t$;t$=t$>>>1)m$++;return 1<<m$+1+x},q.prototype.conjugate=function(s$,N,t$){if(!(t$<=1))for(var x=0;x<t$/2;x++){var m$=s$[x];s$[x]=s$[t$-x-1],s$[t$-x-1]=m$,m$=N[x],N[x]=-N[t$-x-1],N[t$-x-1]=-m$}},q.prototype.normalize13b=function(s$,N){for(var t$=0,x=0;x<N/2;x++){var m$=Math.round(s$[2*x+1]/N)*8192+Math.round(s$[2*x]/N)+t$;s$[x]=m$&67108863,m$<67108864?t$=0:t$=m$/67108864|0}return s$},q.prototype.convert13b=function(s$,N,t$,x){for(var m$=0,B=0;B<N;B++)m$=m$+(s$[B]|0),t$[2*B]=m$&8191,m$=m$>>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B<x;++B)t$[B]=0;G(m$===0),G((m$&-8192)===0)},q.prototype.stub=function(s$){for(var N=new Array(s$),t$=0;t$<s$;t$++)N[t$]=0;return N},q.prototype.mulp=function(s$,N,t$){var x=2*this.guessLen13b(s$.length,N.length),m$=this.makeRBT(x),B=this.stub(x),a$=new Array(x),y=new Array(x),e$=new Array(x),w=new Array(x),r$=new Array(x),E=new Array(x),i$=t$.words;i$.length=x,this.convert13b(s$.words,s$.length,a$,x),this.convert13b(N.words,N.length,w,x),this.transform(a$,B,y,e$,x,m$),this.transform(w,B,r$,E,x,m$);for(var p=0;p<x;p++){var $Q=y[p]*r$[p]-e$[p]*E[p];e$[p]=y[p]*E[p]+e$[p]*r$[p],y[p]=$Q}return this.conjugate(y,e$,x),this.transform(y,e$,i$,B,x,m$),this.conjugate(i$,B,x),this.normalize13b(i$,x),t$.negative=s$.negative^N.negative,t$.length=s$.length+N.length,t$.strip()},U.prototype.mul=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),this.mulTo(s$,N)},U.prototype.mulf=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),b$(this,s$,N)},U.prototype.imul=function(s$){return this.clone().mulTo(s$,this)},U.prototype.imuln=function(s$){G(typeof s$=="number"),G(s$<67108864);for(var N=0,t$=0;t$<this.length;t$++){var x=(this.words[t$]|0)*s$,m$=(x&67108863)+(N&67108863);N>>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x<N.length&&N[x]===0;x++,t$=t$.sqr());if(++x<N.length)for(var m$=t$.sqr();x<N.length;x++,m$=m$.sqr())N[x]!==0&&(t$=t$.mul(m$));return t$},U.prototype.iushln=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$<this.length;m$++){var a$=this.words[m$]&x,y=(this.words[m$]|0)-a$<<N;this.words[m$]=y|B,B=a$>>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$<t$;m$++)this.words[m$]=0;this.length+=t$}return this.strip()},U.prototype.ishln=function(s$){return G(this.negative===0),this.iushln(s$)},U.prototype.iushrn=function(s$,N,t$){G(typeof s$=="number"&&s$>=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<<m$,y=t$;if(x-=B,x=Math.max(0,x),y){for(var e$=0;e$<B;e$++)y.words[e$]=this.words[e$];y.length=B}if(B!==0)if(this.length>B)for(this.length-=B,e$=0;e$<this.length;e$++)this.words[e$]=this.words[e$+B];else this.words[0]=0,this.length=1;var w=0;for(e$=this.length-1;e$>=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return!1;var m$=this.words[t$];return!!(m$&x)},U.prototype.imaskn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<<N;this.words[this.length-1]&=x}return this.strip()},U.prototype.maskn=function(s$){return this.clone().imaskn(s$)},U.prototype.iaddn=function(s$){return G(typeof s$=="number"),G(s$<67108864),s$<0?this.isubn(-s$):this.negative!==0?this.length===1&&(this.words[0]|0)<s$?(this.words[0]=s$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s$),this.negative=1,this):this._iaddn(s$)},U.prototype._iaddn=function(s$){this.words[0]+=s$;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this.strip()},U.prototype.addn=function(s$){return this.clone().iaddn(s$)},U.prototype.subn=function(s$){return this.clone().isubn(s$)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(s$,N,t$){var x=s$.length+t$,m$;this._expand(x);var B,a$=0;for(m$=0;m$<s$.length;m$++){B=(this.words[m$+t$]|0)+a$;var y=(s$.words[m$]|0)*N;B-=y&67108863,a$=(B>>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$<this.length-t$;m$++)B=(this.words[m$+t$]|0)+a$,a$=B>>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$<this.length;m$++)B=-(this.words[m$]|0)+a$,a$=B>>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w<e$.length;w++)e$.words[w]=0}var r$=x.clone()._ishlnsubmul(m$,1,y);r$.negative===0&&(x=r$,e$&&(e$.words[y]=1));for(var E=y-1;E>=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return this._expand(t$+1),this.words[t$]|=x,this;for(var m$=x,B=t$;m$!==0&&B<this.length;B++){var a$=this.words[B]|0;a$+=m$,m$=a$>>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:x<s$?-1:1}return this.negative!==0?-t$|0:t$},U.prototype.cmp=function(s$){if(this.negative!==0&&s$.negative===0)return-1;if(this.negative===0&&s$.negative!==0)return 1;var N=this.ucmp(s$);return this.negative!==0?-N|0:N},U.prototype.ucmp=function(s$){if(this.length>s$.length)return 1;if(this.length<s$.length)return-1;for(var N=0,t$=this.length-1;t$>=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){x<m$?N=-1:x>m$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$<this.n?-1:N.ucmp(this.p);return x===0?(N.words[0]=0,N.length=1):x>0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$<x;m$++)N.words[m$]=s$.words[m$];if(N.length=x,s$.length<=9){s$.words[0]=0,s$.length=1;return}var B=s$.words[9];for(N.words[N.length++]=B&t$,m$=10;m$<s$.length;m$++){var a$=s$.words[m$]|0;s$.words[m$-10]=(a$&t$)<<4|B>>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$<s$.length;t$++){var x=s$.words[t$]|0;N+=x*977,s$.words[t$]=N&67108863,N=x*64+(N/67108864|0)}return s$.words[s$.length-1]===0&&(s$.length--,s$.words[s$.length-1]===0&&s$.length--),s$};function k(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$(k,j);function u$(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$(u$,j);function g(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$(g,j),g.prototype.imulK=function(s$){for(var N=0,t$=0;t$<s$.length;t$++){var x=(s$.words[t$]|0)*19+N,m$=x&67108863;x>>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q<i$);var f=this.pow(w,new U(1).iushln(i$-$Q-1));r$=r$.redMul(f),w=f.redSqr(),E=E.redMul(w),i$=$Q}return r$},n$.prototype.invm=function(s$){var N=s$._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},n$.prototype.pow=function(s$,N){if(N.isZero())return new U(1).toRed(this);if(N.cmpn(1)===0)return s$.clone();var t$=4,x=new Array(1<<t$);x[0]=new U(1).toRed(this),x[1]=s$;for(var m$=2;m$<x.length;m$++)x[m$]=this.mul(x[m$-1],s$);var B=x[0],a$=0,y=0,e$=N.bitLength()%26;for(e$===0&&(e$=26),m$=N.length-1;m$>=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),wY=GY({"(disabled):node_modules/crypto-browserify/index.js"(){}}),I=GY({"node_modules/brorand/index.js"(H,W){var p$;W.exports=function(G){return p$||(p$=new K(null)),p$.generate(G)};function K(G){this.rand=G}W.exports.Rand=K,K.prototype.generate=function(G){return this._rand(G)},K.prototype._rand=function(G){var $=new lQ(G);return uQ.getRandomValues($),$}}}),V=GY({"node_modules/miller-rabin/lib/mr.js"(H,W){var p$=D(),K=I();function G($){this.rand=$||new K.Rand}W.exports=G,G.create=function($){return new G($)},G.prototype._randbelow=function($){var U=$.bitLength(),Y=Math.ceil(U/8);do var F=new p$(this.rand.generate(Y));while(F.cmp($)>=0);return F},G.prototype._randrange=function($,U){var Y=U.sub($);return $.add(this._randbelow(Y))},G.prototype.test=function($,U,Y){var F=$.bitLength(),O=p$.mont($),f$=new p$(1).toRed(O);U||(U=Math.max(1,F/48|0));for(var z=$.subn(1),c$=0;!z.testn(c$);c$++);for(var M=$.shrn(c$),h$=z.toRed(O),S=!0;U>0;U--){var d$=this._randrange(new p$(2),z);Y&&Y(d$);var v=d$.toRed(O).redPow(M);if(!(v.cmp(f$)===0||v.cmp(h$)===0)){for(var b$=1;b$<c$;b$++){if(v=v.redSqr(),v.cmp(f$)===0)return!1;if(v.cmp(h$)===0)break}if(b$===c$)return!1}}return S},G.prototype.getDivisor=function($,U){var Y=$.bitLength(),F=p$.mont($),O=new p$(1).toRed(F);U||(U=Math.max(1,Y/48|0));for(var f$=$.subn(1),z=0;!f$.testn(z);z++);for(var c$=$.shrn(z),M=f$.toRed(F);U>0;U--){var h$=this._randrange(new p$(2),f$),S=$.gcd(h$);if(S.cmpn(1)!==0)return S;var d$=h$.toRed(F).redPow(c$);if(!(d$.cmp(O)===0||d$.cmp(M)===0)){for(var v=1;v<z;v++){if(d$=d$.redSqr(),d$.cmp(O)===0)return d$.fromRed().subn(1).gcd($);if(d$.cmp(M)===0)break}if(v===z)return d$=d$.redSqr(),d$.fromRed().subn(1).gcd($)}}return!1}}}),Q=GY({"node_modules/diffie-hellman/lib/generatePrime.js"(H,W){var p$=XY();W.exports=o$,o$.simpleSieve=l$,o$.fermatTest=j;var K=T(),G=new K(24),$=V(),U=new $,Y=new K(1),F=new K(2),O=new K(5),f$=new K(16),z=new K(8),c$=new K(10),M=new K(3),h$=new K(7),S=new K(11),d$=new K(4),v=new K(12),b$=null;function q(){if(b$!==null)return b$;var k=1048576,u$=[];u$[0]=2;for(var g=1,n$=3;n$<k;n$+=2){for(var _=Math.ceil(Math.sqrt(n$)),s$=0;s$<g&&u$[s$]<=_&&n$%u$[s$]!==0;s$++);g!==s$&&u$[s$]<=_||(u$[g++]=n$)}return b$=u$,u$}function l$(k){for(var u$=q(),g=0;g<u$.length;g++)if(k.modn(u$[g])===0)return k.cmpn(u$[g])===0;return!0}function j(k){var u$=K.mont(k);return F.toRed(u$).redPow(k.subn(1)).fromRed().cmpn(1)===0}function o$(k,u$){if(k<16)return u$===2||u$===5?new K([140,123]):new K([140,39]);u$=new K(u$);for(var g,n$;;){for(g=new K(p$(Math.ceil(k/8)));g.bitLength()>k;)g.ishrn(1);if(g.isEven()&&g.iadd(Y),g.testn(1)||g.iadd(F),u$.cmp(F)){if(!u$.cmp(O))for(;g.mod(c$).cmp(M);)g.iadd(d$)}else for(;g.mod(G).cmp(S);)g.iadd(d$);if(n$=g.shrn(1),l$(n$)&&l$(g)&&j(n$)&&j(g)&&U.test(n$)&&U.test(g))return g}}}}),X=GY({"node_modules/diffie-hellman/lib/primes.json"(H,W){W.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}}),Z=GY({"node_modules/diffie-hellman/lib/dh.js"(H,W){var p$=T(),K=V(),G=new K,$=new p$(24),U=new p$(11),Y=new p$(10),F=new p$(3),O=new p$(7),f$=Q(),z=XY();W.exports=d$;function c$(b$,q){return q=q||"utf8",lQ.isBuffer(b$)||(b$=new lQ(b$,q)),this._pub=new p$(b$),this}function M(b$,q){return q=q||"utf8",lQ.isBuffer(b$)||(b$=new lQ(b$,q)),this._priv=new p$(b$),this}var h$={};function S(b$,q){var l$=q.toString("hex"),j=[l$,b$.toString(16)].join("_");if(j in h$)return h$[j];var o$=0;if(b$.isEven()||!f$.simpleSieve||!f$.fermatTest(b$)||!G.test(b$))return o$+=1,l$==="02"||l$==="05"?o$+=8:o$+=4,h$[j]=o$,o$;G.test(b$.shrn(1))||(o$+=2);var k;switch(l$){case"02":b$.mod($).cmp(U)&&(o$+=8);break;case"05":k=b$.mod(Y),k.cmp(F)&&k.cmp(O)&&(o$+=8);break;default:o$+=4}return h$[j]=o$,o$}function d$(b$,q,l$){this.setGenerator(q),this.__prime=new p$(b$),this._prime=p$.mont(this.__prime),this._primeLen=b$.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,l$?(this.setPublicKey=c$,this.setPrivateKey=M):this._primeCode=8}Object.defineProperty(d$.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=S(this.__prime,this.__gen)),this._primeCode}}),d$.prototype.generateKeys=function(){return this._priv||(this._priv=new p$(z(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},d$.prototype.computeSecret=function(b$){b$=new p$(b$),b$=b$.toRed(this._prime);var q=b$.redPow(this._priv).fromRed(),l$=new lQ(q.toArray()),j=this.getPrime();if(l$.length<j.length){var o$=new lQ(j.length-l$.length);o$.fill(0),l$=lQ.concat([o$,l$])}return l$},d$.prototype.getPublicKey=function(b$){return v(this._pub,b$)},d$.prototype.getPrivateKey=function(b$){return v(this._priv,b$)},d$.prototype.getPrime=function(b$){return v(this.__prime,b$)},d$.prototype.getGenerator=function(b$){return v(this._gen,b$)},d$.prototype.setGenerator=function(b$,q){return q=q||"utf8",lQ.isBuffer(b$)||(b$=new lQ(b$,q)),this.__gen=b$,this._gen=new p$(b$),this};function v(b$,q){var l$=new lQ(b$.toArray());return q?l$.toString(q):l$}}}),A=GY({"node_modules/diffie-hellman/browser.js"(H){var W=Q(),p$=X(),K=Z();function G(Y){var F=new lQ(p$[Y].prime,"hex"),O=new lQ(p$[Y].gen,"hex");return new K(F,O)}var $={binary:!0,hex:!0,base64:!0};function U(Y,F,O,f$){return lQ.isBuffer(F)||$[F]===void 0?U(Y,"binary",F,O):(F=F||"binary",f$=f$||"binary",O=O||new lQ([2]),lQ.isBuffer(O)||(O=new lQ(O,f$)),typeof Y=="number"?new K(W(Y,O),O,!0):(lQ.isBuffer(Y)||(Y=new lQ(Y,F)),new K(Y,O,!0)))}H.DiffieHellmanGroup=H.createDiffieHellmanGroup=H.getDiffieHellman=G,H.createDiffieHellman=H.DiffieHellman=U}}),J=GY({"node_modules/bn.js/lib/bn.js"(H,W){(function(p$,K){function G(x,m$){if(!x)throw new Error(m$||"Assertion failed")}function $(x,m$){x.super_=m$;var B=function(){};B.prototype=m$.prototype,x.prototype=new B,x.prototype.constructor=x}function U(x,m$,B){if(U.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&((m$==="le"||m$==="be")&&(B=m$,m$=10),this._init(x||0,m$||10,B||"be"))}typeof p$=="object"?p$.exports=U:K.BN=U,U.BN=U,U.wordSize=26;var Y=lQ;U.isBN=function(x){return x instanceof U?!0:x!==null&&typeof x=="object"&&x.constructor.wordSize===U.wordSize&&Array.isArray(x.words)},U.max=function(x,m$){return x.cmp(m$)>0?x:m$},U.min=function(x,m$){return x.cmp(m$)<0?x:m$},U.prototype._init=function(x,m$,B){if(typeof x=="number")return this._initNumber(x,m$,B);if(typeof x=="object")return this._initArray(x,m$,B);m$==="hex"&&(m$=16),G(m$===(m$|0)&&m$>=2&&m$<=36),x=x.toString().replace(/\s+/g,"");var a$=0;x[0]==="-"&&(a$++,this.negative=1),a$<x.length&&(m$===16?this._parseHex(x,a$,B):(this._parseBase(x,m$,a$),B==="le"&&this._initArray(this.toArray(),m$,B)))},U.prototype._initNumber=function(x,m$,B){x<0&&(this.negative=1,x=-x),x<67108864?(this.words=[x&67108863],this.length=1):x<4503599627370496?(this.words=[x&67108863,x/67108864&67108863],this.length=2):(G(x<9007199254740992),this.words=[x&67108863,x/67108864&67108863,1],this.length=3),B==="le"&&this._initArray(this.toArray(),m$,B)},U.prototype._initArray=function(x,m$,B){if(G(typeof x.length=="number"),x.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(x.length/3),this.words=new Array(this.length);for(var a$=0;a$<this.length;a$++)this.words[a$]=0;var y,e$,w=0;if(B==="be")for(a$=x.length-1,y=0;a$>=0;a$-=3)e$=x[a$]|x[a$-1]<<8|x[a$-2]<<16,this.words[y]|=e$<<w&67108863,this.words[y+1]=e$>>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);else if(B==="le")for(a$=0,y=0;a$<x.length;a$+=3)e$=x[a$]|x[a$+1]<<8|x[a$+2]<<16,this.words[y]|=e$<<w&67108863,this.words[y+1]=e$>>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);return this._strip()};function F(x,m$){var B=x.charCodeAt(m$);if(B>=48&&B<=57)return B-48;if(B>=65&&B<=70)return B-55;if(B>=97&&B<=102)return B-87;G(!1,"Invalid character in "+x)}function O(x,m$,B){var a$=F(x,B);return B-1>=m$&&(a$|=F(x,B-1)<<4),a$}U.prototype._parseHex=function(x,m$,B){this.length=Math.ceil((x.length-m$)/6),this.words=new Array(this.length);for(var a$=0;a$<this.length;a$++)this.words[a$]=0;var y=0,e$=0,w;if(B==="be")for(a$=x.length-1;a$>=m$;a$-=2)w=O(x,m$,a$)<<y,this.words[e$]|=w&67108863,y>=18?(y-=18,e$+=1,this.words[e$]|=w>>>26):y+=8;else{var r$=x.length-m$;for(a$=r$%2===0?m$+1:m$;a$<x.length;a$+=2)w=O(x,m$,a$)<<y,this.words[e$]|=w&67108863,y>=18?(y-=18,e$+=1,this.words[e$]|=w>>>26):y+=8}this._strip()};function f$(x,m$,B,a$){for(var y=0,e$=0,w=Math.min(x.length,B),r$=m$;r$<w;r$++){var E=x.charCodeAt(r$)-48;y*=a$,E>=49?e$=E-49+10:E>=17?e$=E-17+10:e$=E,G(E>=0&&e$<a$,"Invalid character"),y+=e$}return y}U.prototype._parseBase=function(x,m$,B){this.words=[0],this.length=1;for(var a$=0,y=1;y<=67108863;y*=m$)a$++;a$--,y=y/m$|0;for(var e$=x.length-B,w=e$%a$,r$=Math.min(e$,e$-w)+B,E=0,i$=B;i$<r$;i$+=a$)E=f$(x,i$,i$+a$,m$),this.imuln(y),this.words[0]+E<67108864?this.words[0]+=E:this._iaddn(E);if(w!==0){var p=1;for(E=f$(x,i$,x.length,m$),i$=0;i$<w;i$++)p*=m$;this.imuln(p),this.words[0]+E<67108864?this.words[0]+=E:this._iaddn(E)}this._strip()},U.prototype.copy=function(x){x.words=new Array(this.length);for(var m$=0;m$<this.length;m$++)x.words[m$]=this.words[m$];x.length=this.length,x.negative=this.negative,x.red=this.red};function z(x,m$){x.words=m$.words,x.length=m$.length,x.negative=m$.negative,x.red=m$.red}if(U.prototype._move=function(x){z(x,this)},U.prototype.clone=function(){var x=new U(null);return this.copy(x),x},U.prototype._expand=function(x){for(;this.length<x;)this.words[this.length++]=0;return this},U.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{U.prototype[Symbol.for("nodejs.util.inspect.custom")]=c$}catch{U.prototype.inspect=c$}else U.prototype.inspect=c$;function c$(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h$=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(x,m$){x=x||10,m$=m$|0||1;var B;if(x===16||x==="hex"){B="";for(var a$=0,y=0,e$=0;e$<this.length;e$++){var w=this.words[e$],r$=((w<<a$|y)&16777215).toString(16);y=w>>>24-a$&16777215,a$+=2,a$>=26&&(a$-=26,e$--),y!==0||e$!==this.length-1?B=M[6-r$.length]+r$+B:B=r$+B}for(y!==0&&(B=y.toString(16)+B);B.length%m$!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(x===(x|0)&&x>=2&&x<=36){var E=h$[x],i$=S[x];B="";var p=this.clone();for(p.negative=0;!p.isZero();){var $Q=p.modrn(i$).toString(x);p=p.idivn(i$),p.isZero()?B=$Q+B:B=M[E-$Q.length]+$Q+B}for(this.isZero()&&(B="0"+B);B.length%m$!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var x=this.words[0];return this.length===2?x+=this.words[1]*67108864:this.length===3&&this.words[2]===1?x+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-x:x},U.prototype.toJSON=function(){return this.toString(16,2)},Y&&(U.prototype.toBuffer=function(x,m$){return this.toArrayLike(Y,x,m$)}),U.prototype.toArray=function(x,m$){return this.toArrayLike(Array,x,m$)};var d$=function(x,m$){return x.allocUnsafe?x.allocUnsafe(m$):new x(m$)};U.prototype.toArrayLike=function(x,m$,B){this._strip();var a$=this.byteLength(),y=B||Math.max(1,a$);G(a$<=y,"byte array longer than desired length"),G(y>0,"Requested array length <= 0");var e$=d$(x,y),w=m$==="le"?"LE":"BE";return this["_toArrayLike"+w](e$,a$),e$},U.prototype._toArrayLikeLE=function(x,m$){for(var B=0,a$=0,y=0,e$=0;y<this.length;y++){var w=this.words[y]<<e$|a$;x[B++]=w&255,B<x.length&&(x[B++]=w>>8&255),B<x.length&&(x[B++]=w>>16&255),e$===6?(B<x.length&&(x[B++]=w>>24&255),a$=0,e$=0):(a$=w>>>24,e$+=2)}if(B<x.length)for(x[B++]=a$;B<x.length;)x[B++]=0},U.prototype._toArrayLikeBE=function(x,m$){for(var B=x.length-1,a$=0,y=0,e$=0;y<this.length;y++){var w=this.words[y]<<e$|a$;x[B--]=w&255,B>=0&&(x[B--]=w>>8&255),B>=0&&(x[B--]=w>>16&255),e$===6?(B>=0&&(x[B--]=w>>24&255),a$=0,e$=0):(a$=w>>>24,e$+=2)}if(B>=0)for(x[B--]=a$;B>=0;)x[B--]=0},Math.clz32?U.prototype._countBits=function(x){return 32-Math.clz32(x)}:U.prototype._countBits=function(x){var m$=x,B=0;return m$>=4096&&(B+=13,m$>>>=13),m$>=64&&(B+=7,m$>>>=7),m$>=8&&(B+=4,m$>>>=4),m$>=2&&(B+=2,m$>>>=2),B+m$},U.prototype._zeroBits=function(x){if(x===0)return 26;var m$=x,B=0;return(m$&8191)===0&&(B+=13,m$>>>=13),(m$&127)===0&&(B+=7,m$>>>=7),(m$&15)===0&&(B+=4,m$>>>=4),(m$&3)===0&&(B+=2,m$>>>=2),(m$&1)===0&&B++,B},U.prototype.bitLength=function(){var x=this.words[this.length-1],m$=this._countBits(x);return(this.length-1)*26+m$};function v(x){for(var m$=new Array(x.bitLength()),B=0;B<m$.length;B++){var a$=B/26|0,y=B%26;m$[B]=x.words[a$]>>>y&1}return m$}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var x=0,m$=0;m$<this.length;m$++){var B=this._zeroBits(this.words[m$]);if(x+=B,B!==26)break}return x},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(x){return this.negative!==0?this.abs().inotn(x).iaddn(1):this.clone()},U.prototype.fromTwos=function(x){return this.testn(x-1)?this.notn(x).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(x){for(;this.length<x.length;)this.words[this.length++]=0;for(var m$=0;m$<x.length;m$++)this.words[m$]=this.words[m$]|x.words[m$];return this._strip()},U.prototype.ior=function(x){return G((this.negative|x.negative)===0),this.iuor(x)},U.prototype.or=function(x){return this.length>x.length?this.clone().ior(x):x.clone().ior(this)},U.prototype.uor=function(x){return this.length>x.length?this.clone().iuor(x):x.clone().iuor(this)},U.prototype.iuand=function(x){var m$;this.length>x.length?m$=x:m$=this;for(var B=0;B<m$.length;B++)this.words[B]=this.words[B]&x.words[B];return this.length=m$.length,this._strip()},U.prototype.iand=function(x){return G((this.negative|x.negative)===0),this.iuand(x)},U.prototype.and=function(x){return this.length>x.length?this.clone().iand(x):x.clone().iand(this)},U.prototype.uand=function(x){return this.length>x.length?this.clone().iuand(x):x.clone().iuand(this)},U.prototype.iuxor=function(x){var m$,B;this.length>x.length?(m$=this,B=x):(m$=x,B=this);for(var a$=0;a$<B.length;a$++)this.words[a$]=m$.words[a$]^B.words[a$];if(this!==m$)for(;a$<m$.length;a$++)this.words[a$]=m$.words[a$];return this.length=m$.length,this._strip()},U.prototype.ixor=function(x){return G((this.negative|x.negative)===0),this.iuxor(x)},U.prototype.xor=function(x){return this.length>x.length?this.clone().ixor(x):x.clone().ixor(this)},U.prototype.uxor=function(x){return this.length>x.length?this.clone().iuxor(x):x.clone().iuxor(this)},U.prototype.inotn=function(x){G(typeof x=="number"&&x>=0);var m$=Math.ceil(x/26)|0,B=x%26;this._expand(m$),B>0&&m$--;for(var a$=0;a$<m$;a$++)this.words[a$]=~this.words[a$]&67108863;return B>0&&(this.words[a$]=~this.words[a$]&67108863>>26-B),this._strip()},U.prototype.notn=function(x){return this.clone().inotn(x)},U.prototype.setn=function(x,m$){G(typeof x=="number"&&x>=0);var B=x/26|0,a$=x%26;return this._expand(B+1),m$?this.words[B]=this.words[B]|1<<a$:this.words[B]=this.words[B]&~(1<<a$),this._strip()},U.prototype.iadd=function(x){var m$;if(this.negative!==0&&x.negative===0)return this.negative=0,m$=this.isub(x),this.negative^=1,this._normSign();if(this.negative===0&&x.negative!==0)return x.negative=0,m$=this.isub(x),x.negative=1,m$._normSign();var B,a$;this.length>x.length?(B=this,a$=x):(B=x,a$=this);for(var y=0,e$=0;e$<a$.length;e$++)m$=(B.words[e$]|0)+(a$.words[e$]|0)+y,this.words[e$]=m$&67108863,y=m$>>>26;for(;y!==0&&e$<B.length;e$++)m$=(B.words[e$]|0)+y,this.words[e$]=m$&67108863,y=m$>>>26;if(this.length=B.length,y!==0)this.words[this.length]=y,this.length++;else if(B!==this)for(;e$<B.length;e$++)this.words[e$]=B.words[e$];return this},U.prototype.add=function(x){var m$;return x.negative!==0&&this.negative===0?(x.negative=0,m$=this.sub(x),x.negative^=1,m$):x.negative===0&&this.negative!==0?(this.negative=0,m$=x.sub(this),this.negative=1,m$):this.length>x.length?this.clone().iadd(x):x.clone().iadd(this)},U.prototype.isub=function(x){if(x.negative!==0){x.negative=0;var m$=this.iadd(x);return x.negative=1,m$._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(x),this.negative=1,this._normSign();var B=this.cmp(x);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a$,y;B>0?(a$=this,y=x):(a$=x,y=this);for(var e$=0,w=0;w<y.length;w++)m$=(a$.words[w]|0)-(y.words[w]|0)+e$,e$=m$>>26,this.words[w]=m$&67108863;for(;e$!==0&&w<a$.length;w++)m$=(a$.words[w]|0)+e$,e$=m$>>26,this.words[w]=m$&67108863;if(e$===0&&w<a$.length&&a$!==this)for(;w<a$.length;w++)this.words[w]=a$.words[w];return this.length=Math.max(this.length,w),a$!==this&&(this.negative=1),this._strip()},U.prototype.sub=function(x){return this.clone().isub(x)};function b$(x,m$,B){B.negative=m$.negative^x.negative;var a$=x.length+m$.length|0;B.length=a$,a$=a$-1|0;var y=x.words[0]|0,e$=m$.words[0]|0,w=y*e$,r$=w&67108863,E=w/67108864|0;B.words[0]=r$;for(var i$=1;i$<a$;i$++){for(var p=E>>>26,$Q=E&67108863,f=Math.min(i$,m$.length-1),QQ=Math.max(0,i$-x.length+1);QQ<=f;QQ++){var c=i$-QQ|0;y=x.words[c]|0,e$=m$.words[QQ]|0,w=y*e$+$Q,p+=w/67108864|0,$Q=w&67108863}B.words[i$]=$Q|0,E=p|0}return E!==0?B.words[i$]=E|0:B.length--,B._strip()}var q=function(x,m$,B){var a$=x.words,y=m$.words,e$=B.words,w=0,r$,E,i$,p=a$[0]|0,$Q=p&8191,f=p>>>13,QQ=a$[1]|0,c=QQ&8191,YQ=QQ>>>13,h=a$[2]|0,ZQ=h&8191,d=h>>>13,GQ=a$[3]|0,b=GQ&8191,VQ=GQ>>>13,l=a$[4]|0,UQ=l&8191,o=l>>>13,XQ=a$[5]|0,u=XQ&8191,KQ=XQ>>>13,n=a$[6]|0,IQ=n&8191,s=n>>>13,OQ=a$[7]|0,t=OQ&8191,JQ=OQ>>>13,m=a$[8]|0,FQ=m&8191,a=m>>>13,AQ=a$[9]|0,e=AQ&8191,HQ=AQ>>>13,r=y[0]|0,WQ=r&8191,i=r>>>13,EQ=y[1]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=y[2]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=y[3]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=y[4]|0,RQ=G0&8191,V0=G0>>>13,PQ=y[5]|0,U0=PQ&8191,zQ=PQ>>>13,X0=y[6]|0,MQ=X0&8191,K0=X0>>>13,SQ=y[7]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=y[8]|0,jQ=qQ&8191,kQ=qQ>>>13,gQ=y[9]|0,O0=gQ&8191,_Q=gQ>>>13;B.negative=x.negative^m$.negative,B.length=19,r$=Math.imul($Q,WQ),E=Math.imul($Q,i),E=E+Math.imul(f,WQ)|0,i$=Math.imul(f,i);var J0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(J0>>>26)|0,J0&=67108863,r$=Math.imul(c,WQ),E=Math.imul(c,i),E=E+Math.imul(YQ,WQ)|0,i$=Math.imul(YQ,i),r$=r$+Math.imul($Q,$0)|0,E=E+Math.imul($Q,TQ)|0,E=E+Math.imul(f,$0)|0,i$=i$+Math.imul(f,TQ)|0;var NQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,r$=Math.imul(ZQ,WQ),E=Math.imul(ZQ,i),E=E+Math.imul(d,WQ)|0,i$=Math.imul(d,i),r$=r$+Math.imul(c,$0)|0,E=E+Math.imul(c,TQ)|0,E=E+Math.imul(YQ,$0)|0,i$=i$+Math.imul(YQ,TQ)|0,r$=r$+Math.imul($Q,DQ)|0,E=E+Math.imul($Q,Y0)|0,E=E+Math.imul(f,DQ)|0,i$=i$+Math.imul(f,Y0)|0;var xQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,r$=Math.imul(b,WQ),E=Math.imul(b,i),E=E+Math.imul(VQ,WQ)|0,i$=Math.imul(VQ,i),r$=r$+Math.imul(ZQ,$0)|0,E=E+Math.imul(ZQ,TQ)|0,E=E+Math.imul(d,$0)|0,i$=i$+Math.imul(d,TQ)|0,r$=r$+Math.imul(c,DQ)|0,E=E+Math.imul(c,Y0)|0,E=E+Math.imul(YQ,DQ)|0,i$=i$+Math.imul(YQ,Y0)|0,r$=r$+Math.imul($Q,Z0)|0,E=E+Math.imul($Q,LQ)|0,E=E+Math.imul(f,Z0)|0,i$=i$+Math.imul(f,LQ)|0;var BQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,r$=Math.imul(UQ,WQ),E=Math.imul(UQ,i),E=E+Math.imul(o,WQ)|0,i$=Math.imul(o,i),r$=r$+Math.imul(b,$0)|0,E=E+Math.imul(b,TQ)|0,E=E+Math.imul(VQ,$0)|0,i$=i$+Math.imul(VQ,TQ)|0,r$=r$+Math.imul(ZQ,DQ)|0,E=E+Math.imul(ZQ,Y0)|0,E=E+Math.imul(d,DQ)|0,i$=i$+Math.imul(d,Y0)|0,r$=r$+Math.imul(c,Z0)|0,E=E+Math.imul(c,LQ)|0,E=E+Math.imul(YQ,Z0)|0,i$=i$+Math.imul(YQ,LQ)|0,r$=r$+Math.imul($Q,RQ)|0,E=E+Math.imul($Q,V0)|0,E=E+Math.imul(f,RQ)|0,i$=i$+Math.imul(f,V0)|0;var yQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,r$=Math.imul(u,WQ),E=Math.imul(u,i),E=E+Math.imul(KQ,WQ)|0,i$=Math.imul(KQ,i),r$=r$+Math.imul(UQ,$0)|0,E=E+Math.imul(UQ,TQ)|0,E=E+Math.imul(o,$0)|0,i$=i$+Math.imul(o,TQ)|0,r$=r$+Math.imul(b,DQ)|0,E=E+Math.imul(b,Y0)|0,E=E+Math.imul(VQ,DQ)|0,i$=i$+Math.imul(VQ,Y0)|0,r$=r$+Math.imul(ZQ,Z0)|0,E=E+Math.imul(ZQ,LQ)|0,E=E+Math.imul(d,Z0)|0,i$=i$+Math.imul(d,LQ)|0,r$=r$+Math.imul(c,RQ)|0,E=E+Math.imul(c,V0)|0,E=E+Math.imul(YQ,RQ)|0,i$=i$+Math.imul(YQ,V0)|0,r$=r$+Math.imul($Q,U0)|0,E=E+Math.imul($Q,zQ)|0,E=E+Math.imul(f,U0)|0,i$=i$+Math.imul(f,zQ)|0;var wQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,r$=Math.imul(IQ,WQ),E=Math.imul(IQ,i),E=E+Math.imul(s,WQ)|0,i$=Math.imul(s,i),r$=r$+Math.imul(u,$0)|0,E=E+Math.imul(u,TQ)|0,E=E+Math.imul(KQ,$0)|0,i$=i$+Math.imul(KQ,TQ)|0,r$=r$+Math.imul(UQ,DQ)|0,E=E+Math.imul(UQ,Y0)|0,E=E+Math.imul(o,DQ)|0,i$=i$+Math.imul(o,Y0)|0,r$=r$+Math.imul(b,Z0)|0,E=E+Math.imul(b,LQ)|0,E=E+Math.imul(VQ,Z0)|0,i$=i$+Math.imul(VQ,LQ)|0,r$=r$+Math.imul(ZQ,RQ)|0,E=E+Math.imul(ZQ,V0)|0,E=E+Math.imul(d,RQ)|0,i$=i$+Math.imul(d,V0)|0,r$=r$+Math.imul(c,U0)|0,E=E+Math.imul(c,zQ)|0,E=E+Math.imul(YQ,U0)|0,i$=i$+Math.imul(YQ,zQ)|0,r$=r$+Math.imul($Q,MQ)|0,E=E+Math.imul($Q,K0)|0,E=E+Math.imul(f,MQ)|0,i$=i$+Math.imul(f,K0)|0;var F0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(F0>>>26)|0,F0&=67108863,r$=Math.imul(t,WQ),E=Math.imul(t,i),E=E+Math.imul(JQ,WQ)|0,i$=Math.imul(JQ,i),r$=r$+Math.imul(IQ,$0)|0,E=E+Math.imul(IQ,TQ)|0,E=E+Math.imul(s,$0)|0,i$=i$+Math.imul(s,TQ)|0,r$=r$+Math.imul(u,DQ)|0,E=E+Math.imul(u,Y0)|0,E=E+Math.imul(KQ,DQ)|0,i$=i$+Math.imul(KQ,Y0)|0,r$=r$+Math.imul(UQ,Z0)|0,E=E+Math.imul(UQ,LQ)|0,E=E+Math.imul(o,Z0)|0,i$=i$+Math.imul(o,LQ)|0,r$=r$+Math.imul(b,RQ)|0,E=E+Math.imul(b,V0)|0,E=E+Math.imul(VQ,RQ)|0,i$=i$+Math.imul(VQ,V0)|0,r$=r$+Math.imul(ZQ,U0)|0,E=E+Math.imul(ZQ,zQ)|0,E=E+Math.imul(d,U0)|0,i$=i$+Math.imul(d,zQ)|0,r$=r$+Math.imul(c,MQ)|0,E=E+Math.imul(c,K0)|0,E=E+Math.imul(YQ,MQ)|0,i$=i$+Math.imul(YQ,K0)|0,r$=r$+Math.imul($Q,I0)|0,E=E+Math.imul($Q,vQ)|0,E=E+Math.imul(f,I0)|0,i$=i$+Math.imul(f,vQ)|0;var pQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,r$=Math.imul(FQ,WQ),E=Math.imul(FQ,i),E=E+Math.imul(a,WQ)|0,i$=Math.imul(a,i),r$=r$+Math.imul(t,$0)|0,E=E+Math.imul(t,TQ)|0,E=E+Math.imul(JQ,$0)|0,i$=i$+Math.imul(JQ,TQ)|0,r$=r$+Math.imul(IQ,DQ)|0,E=E+Math.imul(IQ,Y0)|0,E=E+Math.imul(s,DQ)|0,i$=i$+Math.imul(s,Y0)|0,r$=r$+Math.imul(u,Z0)|0,E=E+Math.imul(u,LQ)|0,E=E+Math.imul(KQ,Z0)|0,i$=i$+Math.imul(KQ,LQ)|0,r$=r$+Math.imul(UQ,RQ)|0,E=E+Math.imul(UQ,V0)|0,E=E+Math.imul(o,RQ)|0,i$=i$+Math.imul(o,V0)|0,r$=r$+Math.imul(b,U0)|0,E=E+Math.imul(b,zQ)|0,E=E+Math.imul(VQ,U0)|0,i$=i$+Math.imul(VQ,zQ)|0,r$=r$+Math.imul(ZQ,MQ)|0,E=E+Math.imul(ZQ,K0)|0,E=E+Math.imul(d,MQ)|0,i$=i$+Math.imul(d,K0)|0,r$=r$+Math.imul(c,I0)|0,E=E+Math.imul(c,vQ)|0,E=E+Math.imul(YQ,I0)|0,i$=i$+Math.imul(YQ,vQ)|0,r$=r$+Math.imul($Q,jQ)|0,E=E+Math.imul($Q,kQ)|0,E=E+Math.imul(f,jQ)|0,i$=i$+Math.imul(f,kQ)|0;var A0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(A0>>>26)|0,A0&=67108863,r$=Math.imul(e,WQ),E=Math.imul(e,i),E=E+Math.imul(HQ,WQ)|0,i$=Math.imul(HQ,i),r$=r$+Math.imul(FQ,$0)|0,E=E+Math.imul(FQ,TQ)|0,E=E+Math.imul(a,$0)|0,i$=i$+Math.imul(a,TQ)|0,r$=r$+Math.imul(t,DQ)|0,E=E+Math.imul(t,Y0)|0,E=E+Math.imul(JQ,DQ)|0,i$=i$+Math.imul(JQ,Y0)|0,r$=r$+Math.imul(IQ,Z0)|0,E=E+Math.imul(IQ,LQ)|0,E=E+Math.imul(s,Z0)|0,i$=i$+Math.imul(s,LQ)|0,r$=r$+Math.imul(u,RQ)|0,E=E+Math.imul(u,V0)|0,E=E+Math.imul(KQ,RQ)|0,i$=i$+Math.imul(KQ,V0)|0,r$=r$+Math.imul(UQ,U0)|0,E=E+Math.imul(UQ,zQ)|0,E=E+Math.imul(o,U0)|0,i$=i$+Math.imul(o,zQ)|0,r$=r$+Math.imul(b,MQ)|0,E=E+Math.imul(b,K0)|0,E=E+Math.imul(VQ,MQ)|0,i$=i$+Math.imul(VQ,K0)|0,r$=r$+Math.imul(ZQ,I0)|0,E=E+Math.imul(ZQ,vQ)|0,E=E+Math.imul(d,I0)|0,i$=i$+Math.imul(d,vQ)|0,r$=r$+Math.imul(c,jQ)|0,E=E+Math.imul(c,kQ)|0,E=E+Math.imul(YQ,jQ)|0,i$=i$+Math.imul(YQ,kQ)|0,r$=r$+Math.imul($Q,O0)|0,E=E+Math.imul($Q,_Q)|0,E=E+Math.imul(f,O0)|0,i$=i$+Math.imul(f,_Q)|0;var fQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,r$=Math.imul(e,$0),E=Math.imul(e,TQ),E=E+Math.imul(HQ,$0)|0,i$=Math.imul(HQ,TQ),r$=r$+Math.imul(FQ,DQ)|0,E=E+Math.imul(FQ,Y0)|0,E=E+Math.imul(a,DQ)|0,i$=i$+Math.imul(a,Y0)|0,r$=r$+Math.imul(t,Z0)|0,E=E+Math.imul(t,LQ)|0,E=E+Math.imul(JQ,Z0)|0,i$=i$+Math.imul(JQ,LQ)|0,r$=r$+Math.imul(IQ,RQ)|0,E=E+Math.imul(IQ,V0)|0,E=E+Math.imul(s,RQ)|0,i$=i$+Math.imul(s,V0)|0,r$=r$+Math.imul(u,U0)|0,E=E+Math.imul(u,zQ)|0,E=E+Math.imul(KQ,U0)|0,i$=i$+Math.imul(KQ,zQ)|0,r$=r$+Math.imul(UQ,MQ)|0,E=E+Math.imul(UQ,K0)|0,E=E+Math.imul(o,MQ)|0,i$=i$+Math.imul(o,K0)|0,r$=r$+Math.imul(b,I0)|0,E=E+Math.imul(b,vQ)|0,E=E+Math.imul(VQ,I0)|0,i$=i$+Math.imul(VQ,vQ)|0,r$=r$+Math.imul(ZQ,jQ)|0,E=E+Math.imul(ZQ,kQ)|0,E=E+Math.imul(d,jQ)|0,i$=i$+Math.imul(d,kQ)|0,r$=r$+Math.imul(c,O0)|0,E=E+Math.imul(c,_Q)|0,E=E+Math.imul(YQ,O0)|0,i$=i$+Math.imul(YQ,_Q)|0;var H0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(H0>>>26)|0,H0&=67108863,r$=Math.imul(e,DQ),E=Math.imul(e,Y0),E=E+Math.imul(HQ,DQ)|0,i$=Math.imul(HQ,Y0),r$=r$+Math.imul(FQ,Z0)|0,E=E+Math.imul(FQ,LQ)|0,E=E+Math.imul(a,Z0)|0,i$=i$+Math.imul(a,LQ)|0,r$=r$+Math.imul(t,RQ)|0,E=E+Math.imul(t,V0)|0,E=E+Math.imul(JQ,RQ)|0,i$=i$+Math.imul(JQ,V0)|0,r$=r$+Math.imul(IQ,U0)|0,E=E+Math.imul(IQ,zQ)|0,E=E+Math.imul(s,U0)|0,i$=i$+Math.imul(s,zQ)|0,r$=r$+Math.imul(u,MQ)|0,E=E+Math.imul(u,K0)|0,E=E+Math.imul(KQ,MQ)|0,i$=i$+Math.imul(KQ,K0)|0,r$=r$+Math.imul(UQ,I0)|0,E=E+Math.imul(UQ,vQ)|0,E=E+Math.imul(o,I0)|0,i$=i$+Math.imul(o,vQ)|0,r$=r$+Math.imul(b,jQ)|0,E=E+Math.imul(b,kQ)|0,E=E+Math.imul(VQ,jQ)|0,i$=i$+Math.imul(VQ,kQ)|0,r$=r$+Math.imul(ZQ,O0)|0,E=E+Math.imul(ZQ,_Q)|0,E=E+Math.imul(d,O0)|0,i$=i$+Math.imul(d,_Q)|0;var cQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,r$=Math.imul(e,Z0),E=Math.imul(e,LQ),E=E+Math.imul(HQ,Z0)|0,i$=Math.imul(HQ,LQ),r$=r$+Math.imul(FQ,RQ)|0,E=E+Math.imul(FQ,V0)|0,E=E+Math.imul(a,RQ)|0,i$=i$+Math.imul(a,V0)|0,r$=r$+Math.imul(t,U0)|0,E=E+Math.imul(t,zQ)|0,E=E+Math.imul(JQ,U0)|0,i$=i$+Math.imul(JQ,zQ)|0,r$=r$+Math.imul(IQ,MQ)|0,E=E+Math.imul(IQ,K0)|0,E=E+Math.imul(s,MQ)|0,i$=i$+Math.imul(s,K0)|0,r$=r$+Math.imul(u,I0)|0,E=E+Math.imul(u,vQ)|0,E=E+Math.imul(KQ,I0)|0,i$=i$+Math.imul(KQ,vQ)|0,r$=r$+Math.imul(UQ,jQ)|0,E=E+Math.imul(UQ,kQ)|0,E=E+Math.imul(o,jQ)|0,i$=i$+Math.imul(o,kQ)|0,r$=r$+Math.imul(b,O0)|0,E=E+Math.imul(b,_Q)|0,E=E+Math.imul(VQ,O0)|0,i$=i$+Math.imul(VQ,_Q)|0;var W0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(W0>>>26)|0,W0&=67108863,r$=Math.imul(e,RQ),E=Math.imul(e,V0),E=E+Math.imul(HQ,RQ)|0,i$=Math.imul(HQ,V0),r$=r$+Math.imul(FQ,U0)|0,E=E+Math.imul(FQ,zQ)|0,E=E+Math.imul(a,U0)|0,i$=i$+Math.imul(a,zQ)|0,r$=r$+Math.imul(t,MQ)|0,E=E+Math.imul(t,K0)|0,E=E+Math.imul(JQ,MQ)|0,i$=i$+Math.imul(JQ,K0)|0,r$=r$+Math.imul(IQ,I0)|0,E=E+Math.imul(IQ,vQ)|0,E=E+Math.imul(s,I0)|0,i$=i$+Math.imul(s,vQ)|0,r$=r$+Math.imul(u,jQ)|0,E=E+Math.imul(u,kQ)|0,E=E+Math.imul(KQ,jQ)|0,i$=i$+Math.imul(KQ,kQ)|0,r$=r$+Math.imul(UQ,O0)|0,E=E+Math.imul(UQ,_Q)|0,E=E+Math.imul(o,O0)|0,i$=i$+Math.imul(o,_Q)|0;var hQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,r$=Math.imul(e,U0),E=Math.imul(e,zQ),E=E+Math.imul(HQ,U0)|0,i$=Math.imul(HQ,zQ),r$=r$+Math.imul(FQ,MQ)|0,E=E+Math.imul(FQ,K0)|0,E=E+Math.imul(a,MQ)|0,i$=i$+Math.imul(a,K0)|0,r$=r$+Math.imul(t,I0)|0,E=E+Math.imul(t,vQ)|0,E=E+Math.imul(JQ,I0)|0,i$=i$+Math.imul(JQ,vQ)|0,r$=r$+Math.imul(IQ,jQ)|0,E=E+Math.imul(IQ,kQ)|0,E=E+Math.imul(s,jQ)|0,i$=i$+Math.imul(s,kQ)|0,r$=r$+Math.imul(u,O0)|0,E=E+Math.imul(u,_Q)|0,E=E+Math.imul(KQ,O0)|0,i$=i$+Math.imul(KQ,_Q)|0;var E0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(E0>>>26)|0,E0&=67108863,r$=Math.imul(e,MQ),E=Math.imul(e,K0),E=E+Math.imul(HQ,MQ)|0,i$=Math.imul(HQ,K0),r$=r$+Math.imul(FQ,I0)|0,E=E+Math.imul(FQ,vQ)|0,E=E+Math.imul(a,I0)|0,i$=i$+Math.imul(a,vQ)|0,r$=r$+Math.imul(t,jQ)|0,E=E+Math.imul(t,kQ)|0,E=E+Math.imul(JQ,jQ)|0,i$=i$+Math.imul(JQ,kQ)|0,r$=r$+Math.imul(IQ,O0)|0,E=E+Math.imul(IQ,_Q)|0,E=E+Math.imul(s,O0)|0,i$=i$+Math.imul(s,_Q)|0;var dQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,r$=Math.imul(e,I0),E=Math.imul(e,vQ),E=E+Math.imul(HQ,I0)|0,i$=Math.imul(HQ,vQ),r$=r$+Math.imul(FQ,jQ)|0,E=E+Math.imul(FQ,kQ)|0,E=E+Math.imul(a,jQ)|0,i$=i$+Math.imul(a,kQ)|0,r$=r$+Math.imul(t,O0)|0,E=E+Math.imul(t,_Q)|0,E=E+Math.imul(JQ,O0)|0,i$=i$+Math.imul(JQ,_Q)|0;var T0=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(T0>>>26)|0,T0&=67108863,r$=Math.imul(e,jQ),E=Math.imul(e,kQ),E=E+Math.imul(HQ,jQ)|0,i$=Math.imul(HQ,kQ),r$=r$+Math.imul(FQ,O0)|0,E=E+Math.imul(FQ,_Q)|0,E=E+Math.imul(a,O0)|0,i$=i$+Math.imul(a,_Q)|0;var bQ=(w+r$|0)+((E&8191)<<13)|0;w=(i$+(E>>>13)|0)+(bQ>>>26)|0,bQ&=67108863,r$=Math.imul(e,O0),E=Math.imul(e,_Q),E=E+Math.imul(HQ,O0)|0,i$=Math.imul(HQ,_Q);var D0=(w+r$|0)+((E&8191)<<13)|0;return w=(i$+(E>>>13)|0)+(D0>>>26)|0,D0&=67108863,e$[0]=J0,e$[1]=NQ,e$[2]=xQ,e$[3]=BQ,e$[4]=yQ,e$[5]=wQ,e$[6]=F0,e$[7]=pQ,e$[8]=A0,e$[9]=fQ,e$[10]=H0,e$[11]=cQ,e$[12]=W0,e$[13]=hQ,e$[14]=E0,e$[15]=dQ,e$[16]=T0,e$[17]=bQ,e$[18]=D0,w!==0&&(e$[19]=w,B.length++),B};Math.imul||(q=b$);function l$(x,m$,B){B.negative=m$.negative^x.negative,B.length=x.length+m$.length;for(var a$=0,y=0,e$=0;e$<B.length-1;e$++){var w=y;y=0;for(var r$=a$&67108863,E=Math.min(e$,m$.length-1),i$=Math.max(0,e$-x.length+1);i$<=E;i$++){var p=e$-i$,$Q=x.words[p]|0,f=m$.words[i$]|0,QQ=$Q*f,c=QQ&67108863;w=w+(QQ/67108864|0)|0,c=c+r$|0,r$=c&67108863,w=w+(c>>>26)|0,y+=w>>>26,w&=67108863}B.words[e$]=r$,a$=w,w=y}return a$!==0?B.words[e$]=a$:B.length--,B._strip()}function j(x,m$,B){return l$(x,m$,B)}U.prototype.mulTo=function(x,m$){var B,a$=this.length+x.length;return this.length===10&&x.length===10?B=q(this,x,m$):a$<63?B=b$(this,x,m$):a$<1024?B=l$(this,x,m$):B=j(this,x,m$),B};function o$(x,m$){this.x=x,this.y=m$}o$.prototype.makeRBT=function(x){for(var m$=new Array(x),B=U.prototype._countBits(x)-1,a$=0;a$<x;a$++)m$[a$]=this.revBin(a$,B,x);return m$},o$.prototype.revBin=function(x,m$,B){if(x===0||x===B-1)return x;for(var a$=0,y=0;y<m$;y++)a$|=(x&1)<<m$-y-1,x>>=1;return a$},o$.prototype.permute=function(x,m$,B,a$,y,e$){for(var w=0;w<e$;w++)a$[w]=m$[x[w]],y[w]=B[x[w]]},o$.prototype.transform=function(x,m$,B,a$,y,e$){this.permute(e$,x,m$,B,a$,y);for(var w=1;w<y;w<<=1)for(var r$=w<<1,E=Math.cos(2*Math.PI/r$),i$=Math.sin(2*Math.PI/r$),p=0;p<y;p+=r$)for(var $Q=E,f=i$,QQ=0;QQ<w;QQ++){var c=B[p+QQ],YQ=a$[p+QQ],h=B[p+QQ+w],ZQ=a$[p+QQ+w],d=$Q*h-f*ZQ;ZQ=$Q*ZQ+f*h,h=d,B[p+QQ]=c+h,a$[p+QQ]=YQ+ZQ,B[p+QQ+w]=c-h,a$[p+QQ+w]=YQ-ZQ,QQ!==r$&&(d=E*$Q-i$*f,f=E*f+i$*$Q,$Q=d)}},o$.prototype.guessLen13b=function(x,m$){var B=Math.max(m$,x)|1,a$=B&1,y=0;for(B=B/2|0;B;B=B>>>1)y++;return 1<<y+1+a$},o$.prototype.conjugate=function(x,m$,B){if(!(B<=1))for(var a$=0;a$<B/2;a$++){var y=x[a$];x[a$]=x[B-a$-1],x[B-a$-1]=y,y=m$[a$],m$[a$]=-m$[B-a$-1],m$[B-a$-1]=-y}},o$.prototype.normalize13b=function(x,m$){for(var B=0,a$=0;a$<m$/2;a$++){var y=Math.round(x[2*a$+1]/m$)*8192+Math.round(x[2*a$]/m$)+B;x[a$]=y&67108863,y<67108864?B=0:B=y/67108864|0}return x},o$.prototype.convert13b=function(x,m$,B,a$){for(var y=0,e$=0;e$<m$;e$++)y=y+(x[e$]|0),B[2*e$]=y&8191,y=y>>>13,B[2*e$+1]=y&8191,y=y>>>13;for(e$=2*m$;e$<a$;++e$)B[e$]=0;G(y===0),G((y&-8192)===0)},o$.prototype.stub=function(x){for(var m$=new Array(x),B=0;B<x;B++)m$[B]=0;return m$},o$.prototype.mulp=function(x,m$,B){var a$=2*this.guessLen13b(x.length,m$.length),y=this.makeRBT(a$),e$=this.stub(a$),w=new Array(a$),r$=new Array(a$),E=new Array(a$),i$=new Array(a$),p=new Array(a$),$Q=new Array(a$),f=B.words;f.length=a$,this.convert13b(x.words,x.length,w,a$),this.convert13b(m$.words,m$.length,i$,a$),this.transform(w,e$,r$,E,a$,y),this.transform(i$,e$,p,$Q,a$,y);for(var QQ=0;QQ<a$;QQ++){var c=r$[QQ]*p[QQ]-E[QQ]*$Q[QQ];E[QQ]=r$[QQ]*$Q[QQ]+E[QQ]*p[QQ],r$[QQ]=c}return this.conjugate(r$,E,a$),this.transform(r$,E,f,e$,a$,y),this.conjugate(f,e$,a$),this.normalize13b(f,a$),B.negative=x.negative^m$.negative,B.length=x.length+m$.length,B._strip()},U.prototype.mul=function(x){var m$=new U(null);return m$.words=new Array(this.length+x.length),this.mulTo(x,m$)},U.prototype.mulf=function(x){var m$=new U(null);return m$.words=new Array(this.length+x.length),j(this,x,m$)},U.prototype.imul=function(x){return this.clone().mulTo(x,this)},U.prototype.imuln=function(x){var m$=x<0;m$&&(x=-x),G(typeof x=="number"),G(x<67108864);for(var B=0,a$=0;a$<this.length;a$++){var y=(this.words[a$]|0)*x,e$=(y&67108863)+(B&67108863);B>>=26,B+=y/67108864|0,B+=e$>>>26,this.words[a$]=e$&67108863}return B!==0&&(this.words[a$]=B,this.length++),m$?this.ineg():this},U.prototype.muln=function(x){return this.clone().imuln(x)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(x){var m$=v(x);if(m$.length===0)return new U(1);for(var B=this,a$=0;a$<m$.length&&m$[a$]===0;a$++,B=B.sqr());if(++a$<m$.length)for(var y=B.sqr();a$<m$.length;a$++,y=y.sqr())m$[a$]!==0&&(B=B.mul(y));return B},U.prototype.iushln=function(x){G(typeof x=="number"&&x>=0);var m$=x%26,B=(x-m$)/26,a$=67108863>>>26-m$<<26-m$,y;if(m$!==0){var e$=0;for(y=0;y<this.length;y++){var w=this.words[y]&a$,r$=(this.words[y]|0)-w<<m$;this.words[y]=r$|e$,e$=w>>>26-m$}e$&&(this.words[y]=e$,this.length++)}if(B!==0){for(y=this.length-1;y>=0;y--)this.words[y+B]=this.words[y];for(y=0;y<B;y++)this.words[y]=0;this.length+=B}return this._strip()},U.prototype.ishln=function(x){return G(this.negative===0),this.iushln(x)},U.prototype.iushrn=function(x,m$,B){G(typeof x=="number"&&x>=0);var a$;m$?a$=(m$-m$%26)/26:a$=0;var y=x%26,e$=Math.min((x-y)/26,this.length),w=67108863^67108863>>>y<<y,r$=B;if(a$-=e$,a$=Math.max(0,a$),r$){for(var E=0;E<e$;E++)r$.words[E]=this.words[E];r$.length=e$}if(e$!==0)if(this.length>e$)for(this.length-=e$,E=0;E<this.length;E++)this.words[E]=this.words[E+e$];else this.words[0]=0,this.length=1;var i$=0;for(E=this.length-1;E>=0&&(i$!==0||E>=a$);E--){var p=this.words[E]|0;this.words[E]=i$<<26-y|p>>>y,i$=p&w}return r$&&i$!==0&&(r$.words[r$.length++]=i$),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},U.prototype.ishrn=function(x,m$,B){return G(this.negative===0),this.iushrn(x,m$,B)},U.prototype.shln=function(x){return this.clone().ishln(x)},U.prototype.ushln=function(x){return this.clone().iushln(x)},U.prototype.shrn=function(x){return this.clone().ishrn(x)},U.prototype.ushrn=function(x){return this.clone().iushrn(x)},U.prototype.testn=function(x){G(typeof x=="number"&&x>=0);var m$=x%26,B=(x-m$)/26,a$=1<<m$;if(this.length<=B)return!1;var y=this.words[B];return!!(y&a$)},U.prototype.imaskn=function(x){G(typeof x=="number"&&x>=0);var m$=x%26,B=(x-m$)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(m$!==0&&B++,this.length=Math.min(B,this.length),m$!==0){var a$=67108863^67108863>>>m$<<m$;this.words[this.length-1]&=a$}return this._strip()},U.prototype.maskn=function(x){return this.clone().imaskn(x)},U.prototype.iaddn=function(x){return G(typeof x=="number"),G(x<67108864),x<0?this.isubn(-x):this.negative!==0?this.length===1&&(this.words[0]|0)<=x?(this.words[0]=x-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(x),this.negative=1,this):this._iaddn(x)},U.prototype._iaddn=function(x){this.words[0]+=x;for(var m$=0;m$<this.length&&this.words[m$]>=67108864;m$++)this.words[m$]-=67108864,m$===this.length-1?this.words[m$+1]=1:this.words[m$+1]++;return this.length=Math.max(this.length,m$+1),this},U.prototype.isubn=function(x){if(G(typeof x=="number"),G(x<67108864),x<0)return this.iaddn(-x);if(this.negative!==0)return this.negative=0,this.iaddn(x),this.negative=1,this;if(this.words[0]-=x,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var m$=0;m$<this.length&&this.words[m$]<0;m$++)this.words[m$]+=67108864,this.words[m$+1]-=1;return this._strip()},U.prototype.addn=function(x){return this.clone().iaddn(x)},U.prototype.subn=function(x){return this.clone().isubn(x)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(x,m$,B){var a$=x.length+B,y;this._expand(a$);var e$,w=0;for(y=0;y<x.length;y++){e$=(this.words[y+B]|0)+w;var r$=(x.words[y]|0)*m$;e$-=r$&67108863,w=(e$>>26)-(r$/67108864|0),this.words[y+B]=e$&67108863}for(;y<this.length-B;y++)e$=(this.words[y+B]|0)+w,w=e$>>26,this.words[y+B]=e$&67108863;if(w===0)return this._strip();for(G(w===-1),w=0,y=0;y<this.length;y++)e$=-(this.words[y]|0)+w,w=e$>>26,this.words[y]=e$&67108863;return this.negative=1,this._strip()},U.prototype._wordDiv=function(x,m$){var B=this.length-x.length,a$=this.clone(),y=x,e$=y.words[y.length-1]|0,w=this._countBits(e$);B=26-w,B!==0&&(y=y.ushln(B),a$.iushln(B),e$=y.words[y.length-1]|0);var r$=a$.length-y.length,E;if(m$!=="mod"){E=new U(null),E.length=r$+1,E.words=new Array(E.length);for(var i$=0;i$<E.length;i$++)E.words[i$]=0}var p=a$.clone()._ishlnsubmul(y,1,r$);p.negative===0&&(a$=p,E&&(E.words[r$]=1));for(var $Q=r$-1;$Q>=0;$Q--){var f=(a$.words[y.length+$Q]|0)*67108864+(a$.words[y.length+$Q-1]|0);for(f=Math.min(f/e$|0,67108863),a$._ishlnsubmul(y,f,$Q);a$.negative!==0;)f--,a$.negative=0,a$._ishlnsubmul(y,1,$Q),a$.isZero()||(a$.negative^=1);E&&(E.words[$Q]=f)}return E&&E._strip(),a$._strip(),m$!=="div"&&B!==0&&a$.iushrn(B),{div:E||null,mod:a$}},U.prototype.divmod=function(x,m$,B){if(G(!x.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var a$,y,e$;return this.negative!==0&&x.negative===0?(e$=this.neg().divmod(x,m$),m$!=="mod"&&(a$=e$.div.neg()),m$!=="div"&&(y=e$.mod.neg(),B&&y.negative!==0&&y.iadd(x)),{div:a$,mod:y}):this.negative===0&&x.negative!==0?(e$=this.divmod(x.neg(),m$),m$!=="mod"&&(a$=e$.div.neg()),{div:a$,mod:e$.mod}):(this.negative&x.negative)!==0?(e$=this.neg().divmod(x.neg(),m$),m$!=="div"&&(y=e$.mod.neg(),B&&y.negative!==0&&y.isub(x)),{div:e$.div,mod:y}):x.length>this.length||this.cmp(x)<0?{div:new U(0),mod:this}:x.length===1?m$==="div"?{div:this.divn(x.words[0]),mod:null}:m$==="mod"?{div:null,mod:new U(this.modrn(x.words[0]))}:{div:this.divn(x.words[0]),mod:new U(this.modrn(x.words[0]))}:this._wordDiv(x,m$)},U.prototype.div=function(x){return this.divmod(x,"div",!1).div},U.prototype.mod=function(x){return this.divmod(x,"mod",!1).mod},U.prototype.umod=function(x){return this.divmod(x,"mod",!0).mod},U.prototype.divRound=function(x){var m$=this.divmod(x);if(m$.mod.isZero())return m$.div;var B=m$.div.negative!==0?m$.mod.isub(x):m$.mod,a$=x.ushrn(1),y=x.andln(1),e$=B.cmp(a$);return e$<0||y===1&&e$===0?m$.div:m$.div.negative!==0?m$.div.isubn(1):m$.div.iaddn(1)},U.prototype.modrn=function(x){var m$=x<0;m$&&(x=-x),G(x<=67108863);for(var B=(1<<26)%x,a$=0,y=this.length-1;y>=0;y--)a$=(B*a$+(this.words[y]|0))%x;return m$?-a$:a$},U.prototype.modn=function(x){return this.modrn(x)},U.prototype.idivn=function(x){var m$=x<0;m$&&(x=-x),G(x<=67108863);for(var B=0,a$=this.length-1;a$>=0;a$--){var y=(this.words[a$]|0)+B*67108864;this.words[a$]=y/x|0,B=y%x}return this._strip(),m$?this.ineg():this},U.prototype.divn=function(x){return this.clone().idivn(x)},U.prototype.egcd=function(x){G(x.negative===0),G(!x.isZero());var m$=this,B=x.clone();m$.negative!==0?m$=m$.umod(x):m$=m$.clone();for(var a$=new U(1),y=new U(0),e$=new U(0),w=new U(1),r$=0;m$.isEven()&&B.isEven();)m$.iushrn(1),B.iushrn(1),++r$;for(var E=B.clone(),i$=m$.clone();!m$.isZero();){for(var p=0,$Q=1;(m$.words[0]&$Q)===0&&p<26;++p,$Q<<=1);if(p>0)for(m$.iushrn(p);p-- >0;)(a$.isOdd()||y.isOdd())&&(a$.iadd(E),y.isub(i$)),a$.iushrn(1),y.iushrn(1);for(var f=0,QQ=1;(B.words[0]&QQ)===0&&f<26;++f,QQ<<=1);if(f>0)for(B.iushrn(f);f-- >0;)(e$.isOdd()||w.isOdd())&&(e$.iadd(E),w.isub(i$)),e$.iushrn(1),w.iushrn(1);m$.cmp(B)>=0?(m$.isub(B),a$.isub(e$),y.isub(w)):(B.isub(m$),e$.isub(a$),w.isub(y))}return{a:e$,b:w,gcd:B.iushln(r$)}},U.prototype._invmp=function(x){G(x.negative===0),G(!x.isZero());var m$=this,B=x.clone();m$.negative!==0?m$=m$.umod(x):m$=m$.clone();for(var a$=new U(1),y=new U(0),e$=B.clone();m$.cmpn(1)>0&&B.cmpn(1)>0;){for(var w=0,r$=1;(m$.words[0]&r$)===0&&w<26;++w,r$<<=1);if(w>0)for(m$.iushrn(w);w-- >0;)a$.isOdd()&&a$.iadd(e$),a$.iushrn(1);for(var E=0,i$=1;(B.words[0]&i$)===0&&E<26;++E,i$<<=1);if(E>0)for(B.iushrn(E);E-- >0;)y.isOdd()&&y.iadd(e$),y.iushrn(1);m$.cmp(B)>=0?(m$.isub(B),a$.isub(y)):(B.isub(m$),y.isub(a$))}var p;return m$.cmpn(1)===0?p=a$:p=y,p.cmpn(0)<0&&p.iadd(x),p},U.prototype.gcd=function(x){if(this.isZero())return x.abs();if(x.isZero())return this.abs();var m$=this.clone(),B=x.clone();m$.negative=0,B.negative=0;for(var a$=0;m$.isEven()&&B.isEven();a$++)m$.iushrn(1),B.iushrn(1);do{for(;m$.isEven();)m$.iushrn(1);for(;B.isEven();)B.iushrn(1);var y=m$.cmp(B);if(y<0){var e$=m$;m$=B,B=e$}else if(y===0||B.cmpn(1)===0)break;m$.isub(B)}while(!0);return B.iushln(a$)},U.prototype.invm=function(x){return this.egcd(x).a.umod(x)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(x){return this.words[0]&x},U.prototype.bincn=function(x){G(typeof x=="number");var m$=x%26,B=(x-m$)/26,a$=1<<m$;if(this.length<=B)return this._expand(B+1),this.words[B]|=a$,this;for(var y=a$,e$=B;y!==0&&e$<this.length;e$++){var w=this.words[e$]|0;w+=y,y=w>>>26,w&=67108863,this.words[e$]=w}return y!==0&&(this.words[e$]=y,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(x){var m$=x<0;if(this.negative!==0&&!m$)return-1;if(this.negative===0&&m$)return 1;this._strip();var B;if(this.length>1)B=1;else{m$&&(x=-x),G(x<=67108863,"Number is too big");var a$=this.words[0]|0;B=a$===x?0:a$<x?-1:1}return this.negative!==0?-B|0:B},U.prototype.cmp=function(x){if(this.negative!==0&&x.negative===0)return-1;if(this.negative===0&&x.negative!==0)return 1;var m$=this.ucmp(x);return this.negative!==0?-m$|0:m$},U.prototype.ucmp=function(x){if(this.length>x.length)return 1;if(this.length<x.length)return-1;for(var m$=0,B=this.length-1;B>=0;B--){var a$=this.words[B]|0,y=x.words[B]|0;if(a$!==y){a$<y?m$=-1:a$>y&&(m$=1);break}}return m$},U.prototype.gtn=function(x){return this.cmpn(x)===1},U.prototype.gt=function(x){return this.cmp(x)===1},U.prototype.gten=function(x){return this.cmpn(x)>=0},U.prototype.gte=function(x){return this.cmp(x)>=0},U.prototype.ltn=function(x){return this.cmpn(x)===-1},U.prototype.lt=function(x){return this.cmp(x)===-1},U.prototype.lten=function(x){return this.cmpn(x)<=0},U.prototype.lte=function(x){return this.cmp(x)<=0},U.prototype.eqn=function(x){return this.cmpn(x)===0},U.prototype.eq=function(x){return this.cmp(x)===0},U.red=function(x){return new N(x)},U.prototype.toRed=function(x){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),x.convertTo(this)._forceRed(x)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(x){return this.red=x,this},U.prototype.forceRed=function(x){return G(!this.red,"Already a number in reduction context"),this._forceRed(x)},U.prototype.redAdd=function(x){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,x)},U.prototype.redIAdd=function(x){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,x)},U.prototype.redSub=function(x){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,x)},U.prototype.redISub=function(x){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,x)},U.prototype.redShl=function(x){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,x)},U.prototype.redMul=function(x){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.mul(this,x)},U.prototype.redIMul=function(x){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.imul(this,x)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(x){return G(this.red&&!x.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,x)};var k={k256:null,p224:null,p192:null,p25519:null};function u$(x,m$){this.name=x,this.p=new U(m$,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}u$.prototype._tmp=function(){var x=new U(null);return x.words=new Array(Math.ceil(this.n/13)),x},u$.prototype.ireduce=function(x){var m$=x,B;do this.split(m$,this.tmp),m$=this.imulK(m$),m$=m$.iadd(this.tmp),B=m$.bitLength();while(B>this.n);var a$=B<this.n?-1:m$.ucmp(this.p);return a$===0?(m$.words[0]=0,m$.length=1):a$>0?m$.isub(this.p):m$.strip!==void 0?m$.strip():m$._strip(),m$},u$.prototype.split=function(x,m$){x.iushrn(this.n,0,m$)},u$.prototype.imulK=function(x){return x.imul(this.k)};function g(){u$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(g,u$),g.prototype.split=function(x,m$){for(var B=4194303,a$=Math.min(x.length,9),y=0;y<a$;y++)m$.words[y]=x.words[y];if(m$.length=a$,x.length<=9){x.words[0]=0,x.length=1;return}var e$=x.words[9];for(m$.words[m$.length++]=e$&B,y=10;y<x.length;y++){var w=x.words[y]|0;x.words[y-10]=(w&B)<<4|e$>>>22,e$=w}e$>>>=22,x.words[y-10]=e$,e$===0&&x.length>10?x.length-=10:x.length-=9},g.prototype.imulK=function(x){x.words[x.length]=0,x.words[x.length+1]=0,x.length+=2;for(var m$=0,B=0;B<x.length;B++){var a$=x.words[B]|0;m$+=a$*977,x.words[B]=m$&67108863,m$=a$*64+(m$/67108864|0)}return x.words[x.length-1]===0&&(x.length--,x.words[x.length-1]===0&&x.length--),x};function n$(){u$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$(n$,u$);function _(){u$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$(_,u$);function s$(){u$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$(s$,u$),s$.prototype.imulK=function(x){for(var m$=0,B=0;B<x.length;B++){var a$=(x.words[B]|0)*19+m$,y=a$&67108863;a$>>>=26,x.words[B]=y,m$=a$}return m$!==0&&(x.words[x.length++]=m$),x},U._prime=function(x){if(k[x])return k[x];var m$;if(x==="k256")m$=new g;else if(x==="p224")m$=new n$;else if(x==="p192")m$=new _;else if(x==="p25519")m$=new s$;else throw new Error("Unknown prime "+x);return k[x]=m$,m$};function N(x){if(typeof x=="string"){var m$=U._prime(x);this.m=m$.p,this.prime=m$}else G(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}N.prototype._verify1=function(x){G(x.negative===0,"red works only with positives"),G(x.red,"red works only with red numbers")},N.prototype._verify2=function(x,m$){G((x.negative|m$.negative)===0,"red works only with positives"),G(x.red&&x.red===m$.red,"red works only with red numbers")},N.prototype.imod=function(x){return this.prime?this.prime.ireduce(x)._forceRed(this):(z(x,x.umod(this.m)._forceRed(this)),x)},N.prototype.neg=function(x){return x.isZero()?x.clone():this.m.sub(x)._forceRed(this)},N.prototype.add=function(x,m$){this._verify2(x,m$);var B=x.add(m$);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},N.prototype.iadd=function(x,m$){this._verify2(x,m$);var B=x.iadd(m$);return B.cmp(this.m)>=0&&B.isub(this.m),B},N.prototype.sub=function(x,m$){this._verify2(x,m$);var B=x.sub(m$);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},N.prototype.isub=function(x,m$){this._verify2(x,m$);var B=x.isub(m$);return B.cmpn(0)<0&&B.iadd(this.m),B},N.prototype.shl=function(x,m$){return this._verify1(x),this.imod(x.ushln(m$))},N.prototype.imul=function(x,m$){return this._verify2(x,m$),this.imod(x.imul(m$))},N.prototype.mul=function(x,m$){return this._verify2(x,m$),this.imod(x.mul(m$))},N.prototype.isqr=function(x){return this.imul(x,x.clone())},N.prototype.sqr=function(x){return this.mul(x,x)},N.prototype.sqrt=function(x){if(x.isZero())return x.clone();var m$=this.m.andln(3);if(G(m$%2===1),m$===3){var B=this.m.add(new U(1)).iushrn(2);return this.pow(x,B)}for(var a$=this.m.subn(1),y=0;!a$.isZero()&&a$.andln(1)===0;)y++,a$.iushrn(1);G(!a$.isZero());var e$=new U(1).toRed(this),w=e$.redNeg(),r$=this.m.subn(1).iushrn(1),E=this.m.bitLength();for(E=new U(2*E*E).toRed(this);this.pow(E,r$).cmp(w)!==0;)E.redIAdd(w);for(var i$=this.pow(E,a$),p=this.pow(x,a$.addn(1).iushrn(1)),$Q=this.pow(x,a$),f=y;$Q.cmp(e$)!==0;){for(var QQ=$Q,c=0;QQ.cmp(e$)!==0;c++)QQ=QQ.redSqr();G(c<f);var YQ=this.pow(i$,new U(1).iushln(f-c-1));p=p.redMul(YQ),i$=YQ.redSqr(),$Q=$Q.redMul(i$),f=c}return p},N.prototype.invm=function(x){var m$=x._invmp(this.m);return m$.negative!==0?(m$.negative=0,this.imod(m$).redNeg()):this.imod(m$)},N.prototype.pow=function(x,m$){if(m$.isZero())return new U(1).toRed(this);if(m$.cmpn(1)===0)return x.clone();var B=4,a$=new Array(1<<B);a$[0]=new U(1).toRed(this),a$[1]=x;for(var y=2;y<a$.length;y++)a$[y]=this.mul(a$[y-1],x);var e$=a$[0],w=0,r$=0,E=m$.bitLength()%26;for(E===0&&(E=26),y=m$.length-1;y>=0;y--){for(var i$=m$.words[y],p=E-1;p>=0;p--){var $Q=i$>>p&1;if(e$!==a$[0]&&(e$=this.sqr(e$)),$Q===0&&w===0){r$=0;continue}w<<=1,w|=$Q,r$++,!(r$!==B&&(y!==0||p!==0))&&(e$=this.mul(e$,a$[w]),r$=0,w=0)}E=26}return e$},N.prototype.convertTo=function(x){var m$=x.umod(this.m);return m$===x?m$.clone():m$},N.prototype.convertFrom=function(x){var m$=x.clone();return m$.red=null,m$},U.mont=function(x){return new t$(x)};function t$(x){N.call(this,x),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$(t$,N),t$.prototype.convertTo=function(x){return this.imod(x.ushln(this.shift))},t$.prototype.convertFrom=function(x){var m$=this.imod(x.mul(this.rinv));return m$.red=null,m$},t$.prototype.imul=function(x,m$){if(x.isZero()||m$.isZero())return x.words[0]=0,x.length=1,x;var B=x.imul(m$),a$=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=B.isub(a$).iushrn(this.shift),e$=y;return y.cmp(this.m)>=0?e$=y.isub(this.m):y.cmpn(0)<0&&(e$=y.iadd(this.m)),e$._forceRed(this)},t$.prototype.mul=function(x,m$){if(x.isZero()||m$.isZero())return new U(0)._forceRed(this);var B=x.mul(m$),a$=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=B.isub(a$).iushrn(this.shift),e$=y;return y.cmp(this.m)>=0?e$=y.isub(this.m):y.cmpn(0)<0&&(e$=y.iadd(this.m)),e$._forceRed(this)},t$.prototype.invm=function(x){var m$=this.imod(x._invmp(this.m).mul(this.r2));return m$._forceRed(this)}})(typeof W>"u"||W,H)}}),pY=GY({"node_modules/browserify-rsa/index.js"(H,W){var p$=J(),K=XY();function G(Y){var F=$(Y),O=F.toRed(p$.mont(Y.modulus)).redPow(new p$(Y.publicExponent)).fromRed();return{blinder:O,unblinder:F.invm(Y.modulus)}}function $(Y){var F=Y.modulus.byteLength(),O;do O=new p$(K(F));while(O.cmp(Y.modulus)>=0||!O.umod(Y.prime1)||!O.umod(Y.prime2));return O}function U(Y,F){var O=G(F),f$=F.modulus.byteLength(),z=new p$(Y).mul(O.blinder).umod(F.modulus),c$=z.toRed(p$.mont(F.prime1)),M=z.toRed(p$.mont(F.prime2)),h$=F.coefficient,S=F.prime1,d$=F.prime2,v=c$.redPow(F.exponent1).fromRed(),b$=M.redPow(F.exponent2).fromRed(),q=v.isub(b$).imul(h$).umod(S).imul(d$);return b$.iadd(q).imul(O.unblinder).umod(F.modulus).toArrayLike(lQ,"be",f$)}U.getr=$,W.exports=U}}),o0=GY({"node_modules/elliptic/package.json"(H,W){W.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}}),fY=GY({"node_modules/elliptic/node_modules/bn.js/lib/bn.js"(H,W){(function(p$,K){function G(s$,N){if(!s$)throw new Error(N||"Assertion failed")}function $(s$,N){s$.super_=N;var t$=function(){};t$.prototype=N.prototype,s$.prototype=new t$,s$.prototype.constructor=s$}function U(s$,N,t$){if(U.isBN(s$))return s$;this.negative=0,this.words=null,this.length=0,this.red=null,s$!==null&&((N==="le"||N==="be")&&(t$=N,N=10),this._init(s$||0,N||10,t$||"be"))}typeof p$=="object"?p$.exports=U:K.BN=U,U.BN=U,U.wordSize=26;var Y=lQ;U.isBN=function(s$){return s$ instanceof U?!0:s$!==null&&typeof s$=="object"&&s$.constructor.wordSize===U.wordSize&&Array.isArray(s$.words)},U.max=function(s$,N){return s$.cmp(N)>0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x<s$.length&&(N===16?this._parseHex(s$,x,t$):(this._parseBase(s$,N,x),t$==="le"&&this._initArray(this.toArray(),N,t$)))},U.prototype._initNumber=function(s$,N,t$){s$<0&&(this.negative=1,s$=-s$),s$<67108864?(this.words=[s$&67108863],this.length=1):s$<4503599627370496?(this.words=[s$&67108863,s$/67108864&67108863],this.length=2):(G(s$<9007199254740992),this.words=[s$&67108863,s$/67108864&67108863,1],this.length=3),t$==="le"&&this._initArray(this.toArray(),N,t$)},U.prototype._initArray=function(s$,N,t$){if(G(typeof s$.length=="number"),s$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s$.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$,B,a$=0;if(t$==="be")for(x=s$.length-1,m$=0;x>=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x<s$.length;x+=3)B=s$[x]|s$[x+1]<<8|s$[x+2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$=0,B=0,a$;if(t$==="be")for(x=s$.length-1;x>=N;x-=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x<s$.length;x+=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$<B;a$++){var y=s$.charCodeAt(a$)-48;m$*=x,y>=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w<y;w+=x)e$=f$(s$,w,w+x,N),this.imuln(m$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$);if(a$!==0){var r$=1;for(e$=f$(s$,w,s$.length,N),w=0;w<a$;w++)r$*=N;this.imuln(r$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$)}this.strip()},U.prototype.copy=function(s$){s$.words=new Array(this.length);for(var N=0;N<this.length;N++)s$.words[N]=this.words[N];s$.length=this.length,s$.negative=this.negative,s$.red=this.red},U.prototype.clone=function(){var s$=new U(null);return this.copy(s$),s$},U.prototype._expand=function(s$){for(;this.length<s$;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var z=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c$=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B<this.length;B++){var a$=this.words[B],y=((a$<<x|m$)&16777215).toString(16);m$=a$>>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$<m$;e$++)a$[e$]=0}else{for(e$=0;e$<m$-x;e$++)a$[e$]=0;for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[m$-e$-1]=y}return a$},Math.clz32?U.prototype._countBits=function(s$){return 32-Math.clz32(s$)}:U.prototype._countBits=function(s$){var N=s$,t$=0;return N>=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$<N.length;t$++){var x=t$/26|0,m$=t$%26;N[t$]=(s$.words[x]&1<<m$)>>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;N<this.length;N++){var t$=this._zeroBits(this.words[N]);if(s$+=t$,t$!==26)break}return s$},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(s$){return this.negative!==0?this.abs().inotn(s$).iaddn(1):this.clone()},U.prototype.fromTwos=function(s$){return this.testn(s$-1)?this.notn(s$).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(s$){for(;this.length<s$.length;)this.words[this.length++]=0;for(var N=0;N<s$.length;N++)this.words[N]=this.words[N]|s$.words[N];return this.strip()},U.prototype.ior=function(s$){return G((this.negative|s$.negative)===0),this.iuor(s$)},U.prototype.or=function(s$){return this.length>s$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$<N.length;t$++)this.words[t$]=this.words[t$]&s$.words[t$];return this.length=N.length,this.strip()},U.prototype.iand=function(s$){return G((this.negative|s$.negative)===0),this.iuand(s$)},U.prototype.and=function(s$){return this.length>s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;x<t$.length;x++)this.words[x]=N.words[x]^t$.words[x];if(this!==N)for(;x<N.length;x++)this.words[x]=N.words[x];return this.length=N.length,this.strip()},U.prototype.ixor=function(s$){return G((this.negative|s$.negative)===0),this.iuxor(s$)},U.prototype.xor=function(s$){return this.length>s$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x<N;x++)this.words[x]=~this.words[x]&67108863;return t$>0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<<x:this.words[t$]=this.words[t$]&~(1<<x),this.strip()},U.prototype.iadd=function(s$){var N;if(this.negative!==0&&s$.negative===0)return this.negative=0,N=this.isub(s$),this.negative^=1,this._normSign();if(this.negative===0&&s$.negative!==0)return s$.negative=0,N=this.isub(s$),s$.negative=1,N._normSign();var t$,x;this.length>s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B<x.length;B++)N=(t$.words[B]|0)+(x.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;for(;m$!==0&&B<t$.length;B++)N=(t$.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;B<t$.length;B++)this.words[B]=t$.words[B];return this},U.prototype.add=function(s$){var N;return s$.negative!==0&&this.negative===0?(s$.negative=0,N=this.sub(s$),s$.negative^=1,N):s$.negative===0&&this.negative!==0?(this.negative=0,N=s$.sub(this),this.negative=1,N):this.length>s$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$<m$.length;a$++)N=(x.words[a$]|0)-(m$.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;for(;B!==0&&a$<x.length;a$++)N=(x.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;if(B===0&&a$<x.length&&x!==this)for(;a$<x.length;a$++)this.words[a$]=x.words[a$];return this.length=Math.max(this.length,a$),x!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(s$){return this.clone().isub(s$)};function S(s$,N,t$){t$.negative=N.negative^s$.negative;var x=s$.length+N.length|0;t$.length=x,x=x-1|0;var m$=s$.words[0]|0,B=N.words[0]|0,a$=m$*B,y=a$&67108863,e$=a$/67108864|0;t$.words[0]=y;for(var w=1;w<x;w++){for(var r$=e$>>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B<t$.length-1;B++){var a$=m$;m$=0;for(var y=x&67108863,e$=Math.min(B,N.length-1),w=Math.max(0,B-s$.length+1);w<=e$;w++){var r$=B-w,E=s$.words[r$]|0,i$=N.words[w]|0,p=E*i$,$Q=p&67108863;a$=a$+(p/67108864|0)|0,$Q=$Q+y|0,y=$Q&67108863,a$=a$+($Q>>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x<s$;x++)N[x]=this.revBin(x,t$,s$);return N},q.prototype.revBin=function(s$,N,t$){if(s$===0||s$===t$-1)return s$;for(var x=0,m$=0;m$<N;m$++)x|=(s$&1)<<N-m$-1,s$>>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$<B;a$++)x[a$]=N[s$[a$]],m$[a$]=t$[s$[a$]]},q.prototype.transform=function(s$,N,t$,x,m$,B){this.permute(B,s$,N,t$,x,m$);for(var a$=1;a$<m$;a$<<=1)for(var y=a$<<1,e$=Math.cos(2*Math.PI/y),w=Math.sin(2*Math.PI/y),r$=0;r$<m$;r$+=y)for(var E=e$,i$=w,p=0;p<a$;p++){var $Q=t$[r$+p],f=x[r$+p],QQ=t$[r$+p+a$],c=x[r$+p+a$],YQ=E*QQ-i$*c;c=E*c+i$*QQ,QQ=YQ,t$[r$+p]=$Q+QQ,x[r$+p]=f+c,t$[r$+p+a$]=$Q-QQ,x[r$+p+a$]=f-c,p!==y&&(YQ=e$*E-w*i$,i$=e$*i$+w*E,E=YQ)}},q.prototype.guessLen13b=function(s$,N){var t$=Math.max(N,s$)|1,x=t$&1,m$=0;for(t$=t$/2|0;t$;t$=t$>>>1)m$++;return 1<<m$+1+x},q.prototype.conjugate=function(s$,N,t$){if(!(t$<=1))for(var x=0;x<t$/2;x++){var m$=s$[x];s$[x]=s$[t$-x-1],s$[t$-x-1]=m$,m$=N[x],N[x]=-N[t$-x-1],N[t$-x-1]=-m$}},q.prototype.normalize13b=function(s$,N){for(var t$=0,x=0;x<N/2;x++){var m$=Math.round(s$[2*x+1]/N)*8192+Math.round(s$[2*x]/N)+t$;s$[x]=m$&67108863,m$<67108864?t$=0:t$=m$/67108864|0}return s$},q.prototype.convert13b=function(s$,N,t$,x){for(var m$=0,B=0;B<N;B++)m$=m$+(s$[B]|0),t$[2*B]=m$&8191,m$=m$>>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B<x;++B)t$[B]=0;G(m$===0),G((m$&-8192)===0)},q.prototype.stub=function(s$){for(var N=new Array(s$),t$=0;t$<s$;t$++)N[t$]=0;return N},q.prototype.mulp=function(s$,N,t$){var x=2*this.guessLen13b(s$.length,N.length),m$=this.makeRBT(x),B=this.stub(x),a$=new Array(x),y=new Array(x),e$=new Array(x),w=new Array(x),r$=new Array(x),E=new Array(x),i$=t$.words;i$.length=x,this.convert13b(s$.words,s$.length,a$,x),this.convert13b(N.words,N.length,w,x),this.transform(a$,B,y,e$,x,m$),this.transform(w,B,r$,E,x,m$);for(var p=0;p<x;p++){var $Q=y[p]*r$[p]-e$[p]*E[p];e$[p]=y[p]*E[p]+e$[p]*r$[p],y[p]=$Q}return this.conjugate(y,e$,x),this.transform(y,e$,i$,B,x,m$),this.conjugate(i$,B,x),this.normalize13b(i$,x),t$.negative=s$.negative^N.negative,t$.length=s$.length+N.length,t$.strip()},U.prototype.mul=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),this.mulTo(s$,N)},U.prototype.mulf=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),b$(this,s$,N)},U.prototype.imul=function(s$){return this.clone().mulTo(s$,this)},U.prototype.imuln=function(s$){G(typeof s$=="number"),G(s$<67108864);for(var N=0,t$=0;t$<this.length;t$++){var x=(this.words[t$]|0)*s$,m$=(x&67108863)+(N&67108863);N>>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x<N.length&&N[x]===0;x++,t$=t$.sqr());if(++x<N.length)for(var m$=t$.sqr();x<N.length;x++,m$=m$.sqr())N[x]!==0&&(t$=t$.mul(m$));return t$},U.prototype.iushln=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$<this.length;m$++){var a$=this.words[m$]&x,y=(this.words[m$]|0)-a$<<N;this.words[m$]=y|B,B=a$>>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$<t$;m$++)this.words[m$]=0;this.length+=t$}return this.strip()},U.prototype.ishln=function(s$){return G(this.negative===0),this.iushln(s$)},U.prototype.iushrn=function(s$,N,t$){G(typeof s$=="number"&&s$>=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<<m$,y=t$;if(x-=B,x=Math.max(0,x),y){for(var e$=0;e$<B;e$++)y.words[e$]=this.words[e$];y.length=B}if(B!==0)if(this.length>B)for(this.length-=B,e$=0;e$<this.length;e$++)this.words[e$]=this.words[e$+B];else this.words[0]=0,this.length=1;var w=0;for(e$=this.length-1;e$>=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return!1;var m$=this.words[t$];return!!(m$&x)},U.prototype.imaskn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<<N;this.words[this.length-1]&=x}return this.strip()},U.prototype.maskn=function(s$){return this.clone().imaskn(s$)},U.prototype.iaddn=function(s$){return G(typeof s$=="number"),G(s$<67108864),s$<0?this.isubn(-s$):this.negative!==0?this.length===1&&(this.words[0]|0)<s$?(this.words[0]=s$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s$),this.negative=1,this):this._iaddn(s$)},U.prototype._iaddn=function(s$){this.words[0]+=s$;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this.strip()},U.prototype.addn=function(s$){return this.clone().iaddn(s$)},U.prototype.subn=function(s$){return this.clone().isubn(s$)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(s$,N,t$){var x=s$.length+t$,m$;this._expand(x);var B,a$=0;for(m$=0;m$<s$.length;m$++){B=(this.words[m$+t$]|0)+a$;var y=(s$.words[m$]|0)*N;B-=y&67108863,a$=(B>>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$<this.length-t$;m$++)B=(this.words[m$+t$]|0)+a$,a$=B>>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$<this.length;m$++)B=-(this.words[m$]|0)+a$,a$=B>>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w<e$.length;w++)e$.words[w]=0}var r$=x.clone()._ishlnsubmul(m$,1,y);r$.negative===0&&(x=r$,e$&&(e$.words[y]=1));for(var E=y-1;E>=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return this._expand(t$+1),this.words[t$]|=x,this;for(var m$=x,B=t$;m$!==0&&B<this.length;B++){var a$=this.words[B]|0;a$+=m$,m$=a$>>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:x<s$?-1:1}return this.negative!==0?-t$|0:t$},U.prototype.cmp=function(s$){if(this.negative!==0&&s$.negative===0)return-1;if(this.negative===0&&s$.negative!==0)return 1;var N=this.ucmp(s$);return this.negative!==0?-N|0:N},U.prototype.ucmp=function(s$){if(this.length>s$.length)return 1;if(this.length<s$.length)return-1;for(var N=0,t$=this.length-1;t$>=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){x<m$?N=-1:x>m$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$<this.n?-1:N.ucmp(this.p);return x===0?(N.words[0]=0,N.length=1):x>0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$<x;m$++)N.words[m$]=s$.words[m$];if(N.length=x,s$.length<=9){s$.words[0]=0,s$.length=1;return}var B=s$.words[9];for(N.words[N.length++]=B&t$,m$=10;m$<s$.length;m$++){var a$=s$.words[m$]|0;s$.words[m$-10]=(a$&t$)<<4|B>>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$<s$.length;t$++){var x=s$.words[t$]|0;N+=x*977,s$.words[t$]=N&67108863,N=x*64+(N/67108864|0)}return s$.words[s$.length-1]===0&&(s$.length--,s$.words[s$.length-1]===0&&s$.length--),s$};function k(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$(k,j);function u$(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$(u$,j);function g(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$(g,j),g.prototype.imulK=function(s$){for(var N=0,t$=0;t$<s$.length;t$++){var x=(s$.words[t$]|0)*19+N,m$=x&67108863;x>>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q<i$);var f=this.pow(w,new U(1).iushln(i$-$Q-1));r$=r$.redMul(f),w=f.redSqr(),E=E.redMul(w),i$=$Q}return r$},n$.prototype.invm=function(s$){var N=s$._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},n$.prototype.pow=function(s$,N){if(N.isZero())return new U(1).toRed(this);if(N.cmpn(1)===0)return s$.clone();var t$=4,x=new Array(1<<t$);x[0]=new U(1).toRed(this),x[1]=s$;for(var m$=2;m$<x.length;m$++)x[m$]=this.mul(x[m$-1],s$);var B=x[0],a$=0,y=0,e$=N.bitLength()%26;for(e$===0&&(e$=26),m$=N.length-1;m$>=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),u0=GY({"node_modules/minimalistic-crypto-utils/lib/utils.js"(H){var W=H;function p$($,U){if(Array.isArray($))return $.slice();if(!$)return[];var Y=[];if(typeof $!="string"){for(var F=0;F<$.length;F++)Y[F]=$[F]|0;return Y}if(U==="hex"){$=$.replace(/[^a-z0-9]+/gi,""),$.length%2!==0&&($="0"+$);for(var F=0;F<$.length;F+=2)Y.push(parseInt($[F]+$[F+1],16))}else for(var F=0;F<$.length;F++){var O=$.charCodeAt(F),f$=O>>8,z=O&255;f$?Y.push(f$,z):Y.push(z)}return Y}W.toArray=p$;function K($){return $.length===1?"0"+$:$}W.zero2=K;function G($){for(var U="",Y=0;Y<$.length;Y++)U+=K($[Y].toString(16));return U}W.toHex=G,W.encode=function($,U){return U==="hex"?G($):$}}}),cY=GY({"node_modules/elliptic/lib/elliptic/utils.js"(H){var W=H,p$=fY(),K=l0(),G=u0();W.assert=K,W.toArray=G.toArray,W.zero2=G.zero2,W.toHex=G.toHex,W.encode=G.encode;function $(f$,z,c$){var M=new Array(Math.max(f$.bitLength(),c$)+1);M.fill(0);for(var h$=1<<z+1,S=f$.clone(),d$=0;d$<M.length;d$++){var v,b$=S.andln(h$-1);S.isOdd()?(b$>(h$>>1)-1?v=(h$>>1)-b$:v=b$,S.isubn(v)):v=0,M[d$]=v,S.iushrn(1)}return M}W.getNAF=$;function U(f$,z){var c$=[[],[]];f$=f$.clone(),z=z.clone();for(var M=0,h$=0,S;f$.cmpn(-M)>0||z.cmpn(-h$)>0;){var d$=f$.andln(3)+M&3,v=z.andln(3)+h$&3;d$===3&&(d$=-1),v===3&&(v=-1);var b$;(d$&1)===0?b$=0:(S=f$.andln(7)+M&7,(S===3||S===5)&&v===2?b$=-d$:b$=d$),c$[0].push(b$);var q;(v&1)===0?q=0:(S=z.andln(7)+h$&7,(S===3||S===5)&&d$===2?q=-v:q=v),c$[1].push(q),2*M===b$+1&&(M=1-M),2*h$===q+1&&(h$=1-h$),f$.iushrn(1),z.iushrn(1)}return c$}W.getJSF=U;function Y(f$,z,c$){var M="_"+z;f$.prototype[z]=function(){return this[M]!==void 0?this[M]:this[M]=c$.call(this)}}W.cachedProperty=Y;function F(f$){return typeof f$=="string"?W.toArray(f$,"hex"):f$}W.parseBytes=F;function O(f$){return new p$(f$,"hex","le")}W.intFromLE=O}}),n0=GY({"node_modules/elliptic/lib/elliptic/curve/base.js"(H,W){var p$=fY(),K=cY(),G=K.getNAF,$=K.getJSF,U=K.assert;function Y(O,f$){this.type=O,this.p=new p$(f$.p,16),this.red=f$.prime?p$.red(f$.prime):p$.mont(this.p),this.zero=new p$(0).toRed(this.red),this.one=new p$(1).toRed(this.red),this.two=new p$(2).toRed(this.red),this.n=f$.n&&new p$(f$.n,16),this.g=f$.g&&this.pointFromJSON(f$.g,f$.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var z=this.n&&this.p.div(this.n);!z||z.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}W.exports=Y,Y.prototype.point=function(){throw new Error("Not implemented")},Y.prototype.validate=function(){throw new Error("Not implemented")},Y.prototype._fixedNafMul=function(O,f$){U(O.precomputed);var z=O._getDoubles(),c$=G(f$,1,this._bitLength),M=(1<<z.step+1)-(z.step%2===0?2:1);M/=3;var h$=[],S,d$;for(S=0;S<c$.length;S+=z.step){d$=0;for(var v=S+z.step-1;v>=S;v--)d$=(d$<<1)+c$[v];h$.push(d$)}for(var b$=this.jpoint(null,null,null),q=this.jpoint(null,null,null),l$=M;l$>0;l$--){for(S=0;S<h$.length;S++)d$=h$[S],d$===l$?q=q.mixedAdd(z.points[S]):d$===-l$&&(q=q.mixedAdd(z.points[S].neg()));b$=b$.add(q)}return b$.toP()},Y.prototype._wnafMul=function(O,f$){var z=4,c$=O._getNAFPoints(z);z=c$.wnd;for(var M=c$.points,h$=G(f$,z,this._bitLength),S=this.jpoint(null,null,null),d$=h$.length-1;d$>=0;d$--){for(var v=0;d$>=0&&h$[d$]===0;d$--)v++;if(d$>=0&&v++,S=S.dblp(v),d$<0)break;var b$=h$[d$];U(b$!==0),O.type==="affine"?b$>0?S=S.mixedAdd(M[b$-1>>1]):S=S.mixedAdd(M[-b$-1>>1].neg()):b$>0?S=S.add(M[b$-1>>1]):S=S.add(M[-b$-1>>1].neg())}return O.type==="affine"?S.toP():S},Y.prototype._wnafMulAdd=function(O,f$,z,c$,M){var h$=this._wnafT1,S=this._wnafT2,d$=this._wnafT3,v=0,b$,q,l$;for(b$=0;b$<c$;b$++){l$=f$[b$];var j=l$._getNAFPoints(O);h$[b$]=j.wnd,S[b$]=j.points}for(b$=c$-1;b$>=1;b$-=2){var o$=b$-1,k=b$;if(h$[o$]!==1||h$[k]!==1){d$[o$]=G(z[o$],h$[o$],this._bitLength),d$[k]=G(z[k],h$[k],this._bitLength),v=Math.max(d$[o$].length,v),v=Math.max(d$[k].length,v);continue}var u$=[f$[o$],null,null,f$[k]];f$[o$].y.cmp(f$[k].y)===0?(u$[1]=f$[o$].add(f$[k]),u$[2]=f$[o$].toJ().mixedAdd(f$[k].neg())):f$[o$].y.cmp(f$[k].y.redNeg())===0?(u$[1]=f$[o$].toJ().mixedAdd(f$[k]),u$[2]=f$[o$].add(f$[k].neg())):(u$[1]=f$[o$].toJ().mixedAdd(f$[k]),u$[2]=f$[o$].toJ().mixedAdd(f$[k].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],n$=$(z[o$],z[k]);for(v=Math.max(n$[0].length,v),d$[o$]=new Array(v),d$[k]=new Array(v),q=0;q<v;q++){var _=n$[0][q]|0,s$=n$[1][q]|0;d$[o$][q]=g[(_+1)*3+(s$+1)],d$[k][q]=0,S[o$]=u$}}var N=this.jpoint(null,null,null),t$=this._wnafT4;for(b$=v;b$>=0;b$--){for(var x=0;b$>=0;){var m$=!0;for(q=0;q<c$;q++)t$[q]=d$[q][b$]|0,t$[q]!==0&&(m$=!1);if(!m$)break;x++,b$--}if(b$>=0&&x++,N=N.dblp(x),b$<0)break;for(q=0;q<c$;q++){var B=t$[q];B!==0&&(B>0?l$=S[q][B-1>>1]:B<0&&(l$=S[q][-B-1>>1].neg()),l$.type==="affine"?N=N.mixedAdd(l$):N=N.add(l$))}}for(b$=0;b$<c$;b$++)S[b$]=null;return M?N:N.toP()};function F(O,f$){this.curve=O,this.type=f$,this.precomputed=null}Y.BasePoint=F,F.prototype.eq=function(){throw new Error("Not implemented")},F.prototype.validate=function(){return this.curve.validate(this)},Y.prototype.decodePoint=function(O,f$){O=K.toArray(O,f$);var z=this.p.byteLength();if((O[0]===4||O[0]===6||O[0]===7)&&O.length-1===2*z){O[0]===6?U(O[O.length-1]%2===0):O[0]===7&&U(O[O.length-1]%2===1);var c$=this.point(O.slice(1,1+z),O.slice(1+z,1+2*z));return c$}else if((O[0]===2||O[0]===3)&&O.length-1===z)return this.pointFromX(O.slice(1,1+z),O[0]===3);throw new Error("Unknown point format")},F.prototype.encodeCompressed=function(O){return this.encode(O,!0)},F.prototype._encode=function(O){var f$=this.curve.p.byteLength(),z=this.getX().toArray("be",f$);return O?[this.getY().isEven()?2:3].concat(z):[4].concat(z,this.getY().toArray("be",f$))},F.prototype.encode=function(O,f$){return K.encode(this._encode(f$),O)},F.prototype.precompute=function(O){if(this.precomputed)return this;var f$={doubles:null,naf:null,beta:null};return f$.naf=this._getNAFPoints(8),f$.doubles=this._getDoubles(4,O),f$.beta=this._getBeta(),this.precomputed=f$,this},F.prototype._hasDoubles=function(O){if(!this.precomputed)return!1;var f$=this.precomputed.doubles;return f$?f$.points.length>=Math.ceil((O.bitLength()+1)/f$.step):!1},F.prototype._getDoubles=function(O,f$){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var z=[this],c$=this,M=0;M<f$;M+=O){for(var h$=0;h$<O;h$++)c$=c$.dbl();z.push(c$)}return{step:O,points:z}},F.prototype._getNAFPoints=function(O){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f$=[this],z=(1<<O)-1,c$=z===1?null:this.dbl(),M=1;M<z;M++)f$[M]=f$[M-1].add(c$);return{wnd:O,points:f$}},F.prototype._getBeta=function(){return null},F.prototype.dblp=function(O){for(var f$=this,z=0;z<O;z++)f$=f$.dbl();return f$}}}),hY=GY({"node_modules/elliptic/lib/elliptic/curve/short.js"(H,W){var p$=cY(),K=fY(),G=C0(),$=n0(),U=p$.assert;function Y(f$){$.call(this,"short",f$),this.a=new K(f$.a,16).toRed(this.red),this.b=new K(f$.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(f$),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}G(Y,$),W.exports=Y,Y.prototype._getEndomorphism=function(f$){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var z,c$;if(f$.beta)z=new K(f$.beta,16).toRed(this.red);else{var M=this._getEndoRoots(this.p);z=M[0].cmp(M[1])<0?M[0]:M[1],z=z.toRed(this.red)}if(f$.lambda)c$=new K(f$.lambda,16);else{var h$=this._getEndoRoots(this.n);this.g.mul(h$[0]).x.cmp(this.g.x.redMul(z))===0?c$=h$[0]:(c$=h$[1],U(this.g.mul(c$).x.cmp(this.g.x.redMul(z))===0))}var S;return f$.basis?S=f$.basis.map(function(d$){return{a:new K(d$.a,16),b:new K(d$.b,16)}}):S=this._getEndoBasis(c$),{beta:z,lambda:c$,basis:S}}},Y.prototype._getEndoRoots=function(f$){var z=f$===this.p?this.red:K.mont(f$),c$=new K(2).toRed(z).redInvm(),M=c$.redNeg(),h$=new K(3).toRed(z).redNeg().redSqrt().redMul(c$),S=M.redAdd(h$).fromRed(),d$=M.redSub(h$).fromRed();return[S,d$]},Y.prototype._getEndoBasis=function(f$){for(var z=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c$=f$,M=this.n.clone(),h$=new K(1),S=new K(0),d$=new K(0),v=new K(1),b$,q,l$,j,o$,k,u$,g=0,n$,_;c$.cmpn(0)!==0;){var s$=M.div(c$);n$=M.sub(s$.mul(c$)),_=d$.sub(s$.mul(h$));var N=v.sub(s$.mul(S));if(!l$&&n$.cmp(z)<0)b$=u$.neg(),q=h$,l$=n$.neg(),j=_;else if(l$&&++g===2)break;u$=n$,M=c$,c$=n$,d$=h$,h$=_,v=S,S=N}o$=n$.neg(),k=_;var t$=l$.sqr().add(j.sqr()),x=o$.sqr().add(k.sqr());return x.cmp(t$)>=0&&(o$=b$,k=q),l$.negative&&(l$=l$.neg(),j=j.neg()),o$.negative&&(o$=o$.neg(),k=k.neg()),[{a:l$,b:j},{a:o$,b:k}]},Y.prototype._endoSplit=function(f$){var z=this.endo.basis,c$=z[0],M=z[1],h$=M.b.mul(f$).divRound(this.n),S=c$.b.neg().mul(f$).divRound(this.n),d$=h$.mul(c$.a),v=S.mul(M.a),b$=h$.mul(c$.b),q=S.mul(M.b),l$=f$.sub(d$).sub(v),j=b$.add(q).neg();return{k1:l$,k2:j}},Y.prototype.pointFromX=function(f$,z){f$=new K(f$,16),f$.red||(f$=f$.toRed(this.red));var c$=f$.redSqr().redMul(f$).redIAdd(f$.redMul(this.a)).redIAdd(this.b),M=c$.redSqrt();if(M.redSqr().redSub(c$).cmp(this.zero)!==0)throw new Error("invalid point");var h$=M.fromRed().isOdd();return(z&&!h$||!z&&h$)&&(M=M.redNeg()),this.point(f$,M)},Y.prototype.validate=function(f$){if(f$.inf)return!0;var{x:z,y:c$}=f$,M=this.a.redMul(z),h$=z.redSqr().redMul(z).redIAdd(M).redIAdd(this.b);return c$.redSqr().redISub(h$).cmpn(0)===0},Y.prototype._endoWnafMulAdd=function(f$,z,c$){for(var M=this._endoWnafT1,h$=this._endoWnafT2,S=0;S<f$.length;S++){var d$=this._endoSplit(z[S]),v=f$[S],b$=v._getBeta();d$.k1.negative&&(d$.k1.ineg(),v=v.neg(!0)),d$.k2.negative&&(d$.k2.ineg(),b$=b$.neg(!0)),M[S*2]=v,M[S*2+1]=b$,h$[S*2]=d$.k1,h$[S*2+1]=d$.k2}for(var q=this._wnafMulAdd(1,M,h$,S*2,c$),l$=0;l$<S*2;l$++)M[l$]=null,h$[l$]=null;return q};function F(f$,z,c$,M){$.BasePoint.call(this,f$,"affine"),z===null&&c$===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new K(z,16),this.y=new K(c$,16),M&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}G(F,$.BasePoint),Y.prototype.point=function(f$,z,c$){return new F(this,f$,z,c$)},Y.prototype.pointFromJSON=function(f$,z){return F.fromJSON(this,f$,z)},F.prototype._getBeta=function(){if(this.curve.endo){var f$=this.precomputed;if(f$&&f$.beta)return f$.beta;var z=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(f$){var c$=this.curve,M=function(h$){return c$.point(h$.x.redMul(c$.endo.beta),h$.y)};f$.beta=z,z.precomputed={beta:null,naf:f$.naf&&{wnd:f$.naf.wnd,points:f$.naf.points.map(M)},doubles:f$.doubles&&{step:f$.doubles.step,points:f$.doubles.points.map(M)}}}return z}},F.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},F.fromJSON=function(f$,z,c$){typeof z=="string"&&(z=JSON.parse(z));var M=f$.point(z[0],z[1],c$);if(!z[2])return M;function h$(d$){return f$.point(d$[0],d$[1],c$)}var S=z[2];return M.precomputed={beta:null,doubles:S.doubles&&{step:S.doubles.step,points:[M].concat(S.doubles.points.map(h$))},naf:S.naf&&{wnd:S.naf.wnd,points:[M].concat(S.naf.points.map(h$))}},M},F.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},F.prototype.isInfinity=function(){return this.inf},F.prototype.add=function(f$){if(this.inf)return f$;if(f$.inf)return this;if(this.eq(f$))return this.dbl();if(this.neg().eq(f$))return this.curve.point(null,null);if(this.x.cmp(f$.x)===0)return this.curve.point(null,null);var z=this.y.redSub(f$.y);z.cmpn(0)!==0&&(z=z.redMul(this.x.redSub(f$.x).redInvm()));var c$=z.redSqr().redISub(this.x).redISub(f$.x),M=z.redMul(this.x.redSub(c$)).redISub(this.y);return this.curve.point(c$,M)},F.prototype.dbl=function(){if(this.inf)return this;var f$=this.y.redAdd(this.y);if(f$.cmpn(0)===0)return this.curve.point(null,null);var z=this.curve.a,c$=this.x.redSqr(),M=f$.redInvm(),h$=c$.redAdd(c$).redIAdd(c$).redIAdd(z).redMul(M),S=h$.redSqr().redISub(this.x.redAdd(this.x)),d$=h$.redMul(this.x.redSub(S)).redISub(this.y);return this.curve.point(S,d$)},F.prototype.getX=function(){return this.x.fromRed()},F.prototype.getY=function(){return this.y.fromRed()},F.prototype.mul=function(f$){return f$=new K(f$,16),this.isInfinity()?this:this._hasDoubles(f$)?this.curve._fixedNafMul(this,f$):this.curve.endo?this.curve._endoWnafMulAdd([this],[f$]):this.curve._wnafMul(this,f$)},F.prototype.mulAdd=function(f$,z,c$){var M=[this,z],h$=[f$,c$];return this.curve.endo?this.curve._endoWnafMulAdd(M,h$):this.curve._wnafMulAdd(1,M,h$,2)},F.prototype.jmulAdd=function(f$,z,c$){var M=[this,z],h$=[f$,c$];return this.curve.endo?this.curve._endoWnafMulAdd(M,h$,!0):this.curve._wnafMulAdd(1,M,h$,2,!0)},F.prototype.eq=function(f$){return this===f$||this.inf===f$.inf&&(this.inf||this.x.cmp(f$.x)===0&&this.y.cmp(f$.y)===0)},F.prototype.neg=function(f$){if(this.inf)return this;var z=this.curve.point(this.x,this.y.redNeg());if(f$&&this.precomputed){var c$=this.precomputed,M=function(h$){return h$.neg()};z.precomputed={naf:c$.naf&&{wnd:c$.naf.wnd,points:c$.naf.points.map(M)},doubles:c$.doubles&&{step:c$.doubles.step,points:c$.doubles.points.map(M)}}}return z},F.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var f$=this.curve.jpoint(this.x,this.y,this.curve.one);return f$};function O(f$,z,c$,M){$.BasePoint.call(this,f$,"jacobian"),z===null&&c$===null&&M===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new K(0)):(this.x=new K(z,16),this.y=new K(c$,16),this.z=new K(M,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}G(O,$.BasePoint),Y.prototype.jpoint=function(f$,z,c$){return new O(this,f$,z,c$)},O.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f$=this.z.redInvm(),z=f$.redSqr(),c$=this.x.redMul(z),M=this.y.redMul(z).redMul(f$);return this.curve.point(c$,M)},O.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},O.prototype.add=function(f$){if(this.isInfinity())return f$;if(f$.isInfinity())return this;var z=f$.z.redSqr(),c$=this.z.redSqr(),M=this.x.redMul(z),h$=f$.x.redMul(c$),S=this.y.redMul(z.redMul(f$.z)),d$=f$.y.redMul(c$.redMul(this.z)),v=M.redSub(h$),b$=S.redSub(d$);if(v.cmpn(0)===0)return b$.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var q=v.redSqr(),l$=q.redMul(v),j=M.redMul(q),o$=b$.redSqr().redIAdd(l$).redISub(j).redISub(j),k=b$.redMul(j.redISub(o$)).redISub(S.redMul(l$)),u$=this.z.redMul(f$.z).redMul(v);return this.curve.jpoint(o$,k,u$)},O.prototype.mixedAdd=function(f$){if(this.isInfinity())return f$.toJ();if(f$.isInfinity())return this;var z=this.z.redSqr(),c$=this.x,M=f$.x.redMul(z),h$=this.y,S=f$.y.redMul(z).redMul(this.z),d$=c$.redSub(M),v=h$.redSub(S);if(d$.cmpn(0)===0)return v.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b$=d$.redSqr(),q=b$.redMul(d$),l$=c$.redMul(b$),j=v.redSqr().redIAdd(q).redISub(l$).redISub(l$),o$=v.redMul(l$.redISub(j)).redISub(h$.redMul(q)),k=this.z.redMul(d$);return this.curve.jpoint(j,o$,k)},O.prototype.dblp=function(f$){if(f$===0)return this;if(this.isInfinity())return this;if(!f$)return this.dbl();var z;if(this.curve.zeroA||this.curve.threeA){var c$=this;for(z=0;z<f$;z++)c$=c$.dbl();return c$}var M=this.curve.a,h$=this.curve.tinv,S=this.x,d$=this.y,v=this.z,b$=v.redSqr().redSqr(),q=d$.redAdd(d$);for(z=0;z<f$;z++){var l$=S.redSqr(),j=q.redSqr(),o$=j.redSqr(),k=l$.redAdd(l$).redIAdd(l$).redIAdd(M.redMul(b$)),u$=S.redMul(j),g=k.redSqr().redISub(u$.redAdd(u$)),n$=u$.redISub(g),_=k.redMul(n$);_=_.redIAdd(_).redISub(o$);var s$=q.redMul(v);z+1<f$&&(b$=b$.redMul(o$)),S=g,v=s$,q=_}return this.curve.jpoint(S,q.redMul(h$),v)},O.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},O.prototype._zeroDbl=function(){var f$,z,c$;if(this.zOne){var M=this.x.redSqr(),h$=this.y.redSqr(),S=h$.redSqr(),d$=this.x.redAdd(h$).redSqr().redISub(M).redISub(S);d$=d$.redIAdd(d$);var v=M.redAdd(M).redIAdd(M),b$=v.redSqr().redISub(d$).redISub(d$),q=S.redIAdd(S);q=q.redIAdd(q),q=q.redIAdd(q),f$=b$,z=v.redMul(d$.redISub(b$)).redISub(q),c$=this.y.redAdd(this.y)}else{var l$=this.x.redSqr(),j=this.y.redSqr(),o$=j.redSqr(),k=this.x.redAdd(j).redSqr().redISub(l$).redISub(o$);k=k.redIAdd(k);var u$=l$.redAdd(l$).redIAdd(l$),g=u$.redSqr(),n$=o$.redIAdd(o$);n$=n$.redIAdd(n$),n$=n$.redIAdd(n$),f$=g.redISub(k).redISub(k),z=u$.redMul(k.redISub(f$)).redISub(n$),c$=this.y.redMul(this.z),c$=c$.redIAdd(c$)}return this.curve.jpoint(f$,z,c$)},O.prototype._threeDbl=function(){var f$,z,c$;if(this.zOne){var M=this.x.redSqr(),h$=this.y.redSqr(),S=h$.redSqr(),d$=this.x.redAdd(h$).redSqr().redISub(M).redISub(S);d$=d$.redIAdd(d$);var v=M.redAdd(M).redIAdd(M).redIAdd(this.curve.a),b$=v.redSqr().redISub(d$).redISub(d$);f$=b$;var q=S.redIAdd(S);q=q.redIAdd(q),q=q.redIAdd(q),z=v.redMul(d$.redISub(b$)).redISub(q),c$=this.y.redAdd(this.y)}else{var l$=this.z.redSqr(),j=this.y.redSqr(),o$=this.x.redMul(j),k=this.x.redSub(l$).redMul(this.x.redAdd(l$));k=k.redAdd(k).redIAdd(k);var u$=o$.redIAdd(o$);u$=u$.redIAdd(u$);var g=u$.redAdd(u$);f$=k.redSqr().redISub(g),c$=this.y.redAdd(this.z).redSqr().redISub(j).redISub(l$);var n$=j.redSqr();n$=n$.redIAdd(n$),n$=n$.redIAdd(n$),n$=n$.redIAdd(n$),z=k.redMul(u$.redISub(f$)).redISub(n$)}return this.curve.jpoint(f$,z,c$)},O.prototype._dbl=function(){var f$=this.curve.a,z=this.x,c$=this.y,M=this.z,h$=M.redSqr().redSqr(),S=z.redSqr(),d$=c$.redSqr(),v=S.redAdd(S).redIAdd(S).redIAdd(f$.redMul(h$)),b$=z.redAdd(z);b$=b$.redIAdd(b$);var q=b$.redMul(d$),l$=v.redSqr().redISub(q.redAdd(q)),j=q.redISub(l$),o$=d$.redSqr();o$=o$.redIAdd(o$),o$=o$.redIAdd(o$),o$=o$.redIAdd(o$);var k=v.redMul(j).redISub(o$),u$=c$.redAdd(c$).redMul(M);return this.curve.jpoint(l$,k,u$)},O.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var f$=this.x.redSqr(),z=this.y.redSqr(),c$=this.z.redSqr(),M=z.redSqr(),h$=f$.redAdd(f$).redIAdd(f$),S=h$.redSqr(),d$=this.x.redAdd(z).redSqr().redISub(f$).redISub(M);d$=d$.redIAdd(d$),d$=d$.redAdd(d$).redIAdd(d$),d$=d$.redISub(S);var v=d$.redSqr(),b$=M.redIAdd(M);b$=b$.redIAdd(b$),b$=b$.redIAdd(b$),b$=b$.redIAdd(b$);var q=h$.redIAdd(d$).redSqr().redISub(S).redISub(v).redISub(b$),l$=z.redMul(q);l$=l$.redIAdd(l$),l$=l$.redIAdd(l$);var j=this.x.redMul(v).redISub(l$);j=j.redIAdd(j),j=j.redIAdd(j);var o$=this.y.redMul(q.redMul(b$.redISub(q)).redISub(d$.redMul(v)));o$=o$.redIAdd(o$),o$=o$.redIAdd(o$),o$=o$.redIAdd(o$);var k=this.z.redAdd(d$).redSqr().redISub(c$).redISub(v);return this.curve.jpoint(j,o$,k)},O.prototype.mul=function(f$,z){return f$=new K(f$,z),this.curve._wnafMul(this,f$)},O.prototype.eq=function(f$){if(f$.type==="affine")return this.eq(f$.toJ());if(this===f$)return!0;var z=this.z.redSqr(),c$=f$.z.redSqr();if(this.x.redMul(c$).redISub(f$.x.redMul(z)).cmpn(0)!==0)return!1;var M=z.redMul(this.z),h$=c$.redMul(f$.z);return this.y.redMul(h$).redISub(f$.y.redMul(M)).cmpn(0)===0},O.prototype.eqXToP=function(f$){var z=this.z.redSqr(),c$=f$.toRed(this.curve.red).redMul(z);if(this.x.cmp(c$)===0)return!0;for(var M=f$.clone(),h$=this.curve.redN.redMul(z);;){if(M.iadd(this.curve.n),M.cmp(this.curve.p)>=0)return!1;if(c$.redIAdd(h$),this.x.cmp(c$)===0)return!0}},O.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},O.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}}),s0=GY({"node_modules/elliptic/lib/elliptic/curve/mont.js"(H,W){var p$=fY(),K=C0(),G=n0(),$=cY();function U(F){G.call(this,"mont",F),this.a=new p$(F.a,16).toRed(this.red),this.b=new p$(F.b,16).toRed(this.red),this.i4=new p$(4).toRed(this.red).redInvm(),this.two=new p$(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}K(U,G),W.exports=U,U.prototype.validate=function(F){var O=F.normalize().x,f$=O.redSqr(),z=f$.redMul(O).redAdd(f$.redMul(this.a)).redAdd(O),c$=z.redSqrt();return c$.redSqr().cmp(z)===0};function Y(F,O,f$){G.BasePoint.call(this,F,"projective"),O===null&&f$===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new p$(O,16),this.z=new p$(f$,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}K(Y,G.BasePoint),U.prototype.decodePoint=function(F,O){return this.point($.toArray(F,O),1)},U.prototype.point=function(F,O){return new Y(this,F,O)},U.prototype.pointFromJSON=function(F){return Y.fromJSON(this,F)},Y.prototype.precompute=function(){},Y.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Y.fromJSON=function(F,O){return new Y(F,O[0],O[1]||F.one)},Y.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Y.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Y.prototype.dbl=function(){var F=this.x.redAdd(this.z),O=F.redSqr(),f$=this.x.redSub(this.z),z=f$.redSqr(),c$=O.redSub(z),M=O.redMul(z),h$=c$.redMul(z.redAdd(this.curve.a24.redMul(c$)));return this.curve.point(M,h$)},Y.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Y.prototype.diffAdd=function(F,O){var f$=this.x.redAdd(this.z),z=this.x.redSub(this.z),c$=F.x.redAdd(F.z),M=F.x.redSub(F.z),h$=M.redMul(f$),S=c$.redMul(z),d$=O.z.redMul(h$.redAdd(S).redSqr()),v=O.x.redMul(h$.redISub(S).redSqr());return this.curve.point(d$,v)},Y.prototype.mul=function(F){for(var O=F.clone(),f$=this,z=this.curve.point(null,null),c$=this,M=[];O.cmpn(0)!==0;O.iushrn(1))M.push(O.andln(1));for(var h$=M.length-1;h$>=0;h$--)M[h$]===0?(f$=f$.diffAdd(z,c$),z=z.dbl()):(z=f$.diffAdd(z,c$),f$=f$.dbl());return z},Y.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Y.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Y.prototype.eq=function(F){return this.getX().cmp(F.getX())===0},Y.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Y.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}}),dY=GY({"node_modules/elliptic/lib/elliptic/curve/edwards.js"(H,W){var p$=cY(),K=fY(),G=C0(),$=n0(),U=p$.assert;function Y(O){this.twisted=(O.a|0)!==1,this.mOneA=this.twisted&&(O.a|0)===-1,this.extended=this.mOneA,$.call(this,"edwards",O),this.a=new K(O.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new K(O.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new K(O.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),U(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(O.c|0)===1}G(Y,$),W.exports=Y,Y.prototype._mulA=function(O){return this.mOneA?O.redNeg():this.a.redMul(O)},Y.prototype._mulC=function(O){return this.oneC?O:this.c.redMul(O)},Y.prototype.jpoint=function(O,f$,z,c$){return this.point(O,f$,z,c$)},Y.prototype.pointFromX=function(O,f$){O=new K(O,16),O.red||(O=O.toRed(this.red));var z=O.redSqr(),c$=this.c2.redSub(this.a.redMul(z)),M=this.one.redSub(this.c2.redMul(this.d).redMul(z)),h$=c$.redMul(M.redInvm()),S=h$.redSqrt();if(S.redSqr().redSub(h$).cmp(this.zero)!==0)throw new Error("invalid point");var d$=S.fromRed().isOdd();return(f$&&!d$||!f$&&d$)&&(S=S.redNeg()),this.point(O,S)},Y.prototype.pointFromY=function(O,f$){O=new K(O,16),O.red||(O=O.toRed(this.red));var z=O.redSqr(),c$=z.redSub(this.c2),M=z.redMul(this.d).redMul(this.c2).redSub(this.a),h$=c$.redMul(M.redInvm());if(h$.cmp(this.zero)===0){if(f$)throw new Error("invalid point");return this.point(this.zero,O)}var S=h$.redSqrt();if(S.redSqr().redSub(h$).cmp(this.zero)!==0)throw new Error("invalid point");return S.fromRed().isOdd()!==f$&&(S=S.redNeg()),this.point(S,O)},Y.prototype.validate=function(O){if(O.isInfinity())return!0;O.normalize();var f$=O.x.redSqr(),z=O.y.redSqr(),c$=f$.redMul(this.a).redAdd(z),M=this.c2.redMul(this.one.redAdd(this.d.redMul(f$).redMul(z)));return c$.cmp(M)===0};function F(O,f$,z,c$,M){$.BasePoint.call(this,O,"projective"),f$===null&&z===null&&c$===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new K(f$,16),this.y=new K(z,16),this.z=c$?new K(c$,16):this.curve.one,this.t=M&&new K(M,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}G(F,$.BasePoint),Y.prototype.pointFromJSON=function(O){return F.fromJSON(this,O)},Y.prototype.point=function(O,f$,z,c$){return new F(this,O,f$,z,c$)},F.fromJSON=function(O,f$){return new F(O,f$[0],f$[1],f$[2])},F.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},F.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},F.prototype._extDbl=function(){var O=this.x.redSqr(),f$=this.y.redSqr(),z=this.z.redSqr();z=z.redIAdd(z);var c$=this.curve._mulA(O),M=this.x.redAdd(this.y).redSqr().redISub(O).redISub(f$),h$=c$.redAdd(f$),S=h$.redSub(z),d$=c$.redSub(f$),v=M.redMul(S),b$=h$.redMul(d$),q=M.redMul(d$),l$=S.redMul(h$);return this.curve.point(v,b$,l$,q)},F.prototype._projDbl=function(){var O=this.x.redAdd(this.y).redSqr(),f$=this.x.redSqr(),z=this.y.redSqr(),c$,M,h$,S,d$,v;if(this.curve.twisted){S=this.curve._mulA(f$);var b$=S.redAdd(z);this.zOne?(c$=O.redSub(f$).redSub(z).redMul(b$.redSub(this.curve.two)),M=b$.redMul(S.redSub(z)),h$=b$.redSqr().redSub(b$).redSub(b$)):(d$=this.z.redSqr(),v=b$.redSub(d$).redISub(d$),c$=O.redSub(f$).redISub(z).redMul(v),M=b$.redMul(S.redSub(z)),h$=b$.redMul(v))}else S=f$.redAdd(z),d$=this.curve._mulC(this.z).redSqr(),v=S.redSub(d$).redSub(d$),c$=this.curve._mulC(O.redISub(S)).redMul(v),M=this.curve._mulC(S).redMul(f$.redISub(z)),h$=S.redMul(v);return this.curve.point(c$,M,h$)},F.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},F.prototype._extAdd=function(O){var f$=this.y.redSub(this.x).redMul(O.y.redSub(O.x)),z=this.y.redAdd(this.x).redMul(O.y.redAdd(O.x)),c$=this.t.redMul(this.curve.dd).redMul(O.t),M=this.z.redMul(O.z.redAdd(O.z)),h$=z.redSub(f$),S=M.redSub(c$),d$=M.redAdd(c$),v=z.redAdd(f$),b$=h$.redMul(S),q=d$.redMul(v),l$=h$.redMul(v),j=S.redMul(d$);return this.curve.point(b$,q,j,l$)},F.prototype._projAdd=function(O){var f$=this.z.redMul(O.z),z=f$.redSqr(),c$=this.x.redMul(O.x),M=this.y.redMul(O.y),h$=this.curve.d.redMul(c$).redMul(M),S=z.redSub(h$),d$=z.redAdd(h$),v=this.x.redAdd(this.y).redMul(O.x.redAdd(O.y)).redISub(c$).redISub(M),b$=f$.redMul(S).redMul(v),q,l$;return this.curve.twisted?(q=f$.redMul(d$).redMul(M.redSub(this.curve._mulA(c$))),l$=S.redMul(d$)):(q=f$.redMul(d$).redMul(M.redSub(c$)),l$=this.curve._mulC(S).redMul(d$)),this.curve.point(b$,q,l$)},F.prototype.add=function(O){return this.isInfinity()?O:O.isInfinity()?this:this.curve.extended?this._extAdd(O):this._projAdd(O)},F.prototype.mul=function(O){return this._hasDoubles(O)?this.curve._fixedNafMul(this,O):this.curve._wnafMul(this,O)},F.prototype.mulAdd=function(O,f$,z){return this.curve._wnafMulAdd(1,[this,f$],[O,z],2,!1)},F.prototype.jmulAdd=function(O,f$,z){return this.curve._wnafMulAdd(1,[this,f$],[O,z],2,!0)},F.prototype.normalize=function(){if(this.zOne)return this;var O=this.z.redInvm();return this.x=this.x.redMul(O),this.y=this.y.redMul(O),this.t&&(this.t=this.t.redMul(O)),this.z=this.curve.one,this.zOne=!0,this},F.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},F.prototype.getX=function(){return this.normalize(),this.x.fromRed()},F.prototype.getY=function(){return this.normalize(),this.y.fromRed()},F.prototype.eq=function(O){return this===O||this.getX().cmp(O.getX())===0&&this.getY().cmp(O.getY())===0},F.prototype.eqXToP=function(O){var f$=O.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f$)===0)return!0;for(var z=O.clone(),c$=this.curve.redN.redMul(this.z);;){if(z.iadd(this.curve.n),z.cmp(this.curve.p)>=0)return!1;if(f$.redIAdd(c$),this.x.cmp(f$)===0)return!0}},F.prototype.toP=F.prototype.normalize,F.prototype.mixedAdd=F.prototype.add}}),t0=GY({"node_modules/elliptic/lib/elliptic/curve/index.js"(H){var W=H;W.base=n0(),W.short=hY(),W.mont=s0(),W.edwards=dY()}}),bY=GY({"node_modules/hash.js/lib/hash/utils.js"(H){var W=l0(),p$=C0();H.inherits=p$;function K(N,t$){return(N.charCodeAt(t$)&64512)!==55296||t$<0||t$+1>=N.length?!1:(N.charCodeAt(t$+1)&64512)===56320}function G(N,t$){if(Array.isArray(N))return N.slice();if(!N)return[];var x=[];if(typeof N=="string")if(t$){if(t$==="hex")for(N=N.replace(/[^a-z0-9]+/gi,""),N.length%2!==0&&(N="0"+N),B=0;B<N.length;B+=2)x.push(parseInt(N[B]+N[B+1],16))}else for(var m$=0,B=0;B<N.length;B++){var a$=N.charCodeAt(B);a$<128?x[m$++]=a$:a$<2048?(x[m$++]=a$>>6|192,x[m$++]=a$&63|128):K(N,B)?(a$=65536+((a$&1023)<<10)+(N.charCodeAt(++B)&1023),x[m$++]=a$>>18|240,x[m$++]=a$>>12&63|128,x[m$++]=a$>>6&63|128,x[m$++]=a$&63|128):(x[m$++]=a$>>12|224,x[m$++]=a$>>6&63|128,x[m$++]=a$&63|128)}else for(B=0;B<N.length;B++)x[B]=N[B]|0;return x}H.toArray=G;function $(N){for(var t$="",x=0;x<N.length;x++)t$+=F(N[x].toString(16));return t$}H.toHex=$;function U(N){var t$=N>>>24|N>>>8&65280|N<<8&16711680|(N&255)<<24;return t$>>>0}H.htonl=U;function Y(N,t$){for(var x="",m$=0;m$<N.length;m$++){var B=N[m$];t$==="little"&&(B=U(B)),x+=O(B.toString(16))}return x}H.toHex32=Y;function F(N){return N.length===1?"0"+N:N}H.zero2=F;function O(N){return N.length===7?"0"+N:N.length===6?"00"+N:N.length===5?"000"+N:N.length===4?"0000"+N:N.length===3?"00000"+N:N.length===2?"000000"+N:N.length===1?"0000000"+N:N}H.zero8=O;function f$(N,t$,x,m$){var B=x-t$;W(B%4===0);for(var a$=new Array(B/4),y=0,e$=t$;y<a$.length;y++,e$+=4){var w;m$==="big"?w=N[e$]<<24|N[e$+1]<<16|N[e$+2]<<8|N[e$+3]:w=N[e$+3]<<24|N[e$+2]<<16|N[e$+1]<<8|N[e$],a$[y]=w>>>0}return a$}H.join32=f$;function z(N,t$){for(var x=new Array(N.length*4),m$=0,B=0;m$<N.length;m$++,B+=4){var a$=N[m$];t$==="big"?(x[B]=a$>>>24,x[B+1]=a$>>>16&255,x[B+2]=a$>>>8&255,x[B+3]=a$&255):(x[B+3]=a$>>>24,x[B+2]=a$>>>16&255,x[B+1]=a$>>>8&255,x[B]=a$&255)}return x}H.split32=z;function c$(N,t$){return N>>>t$|N<<32-t$}H.rotr32=c$;function M(N,t$){return N<<t$|N>>>32-t$}H.rotl32=M;function h$(N,t$){return N+t$>>>0}H.sum32=h$;function S(N,t$,x){return N+t$+x>>>0}H.sum32_3=S;function d$(N,t$,x,m$){return N+t$+x+m$>>>0}H.sum32_4=d$;function v(N,t$,x,m$,B){return N+t$+x+m$+B>>>0}H.sum32_5=v;function b$(N,t$,x,m$){var B=N[t$],a$=N[t$+1],y=m$+a$>>>0,e$=(y<m$?1:0)+x+B;N[t$]=e$>>>0,N[t$+1]=y}H.sum64=b$;function q(N,t$,x,m$){var B=t$+m$>>>0,a$=(B<t$?1:0)+N+x;return a$>>>0}H.sum64_hi=q;function l$(N,t$,x,m$){var B=t$+m$;return B>>>0}H.sum64_lo=l$;function j(N,t$,x,m$,B,a$,y,e$){var w=0,r$=t$;r$=r$+m$>>>0,w+=r$<t$?1:0,r$=r$+a$>>>0,w+=r$<a$?1:0,r$=r$+e$>>>0,w+=r$<e$?1:0;var E=N+x+B+y+w;return E>>>0}H.sum64_4_hi=j;function o$(N,t$,x,m$,B,a$,y,e$){var w=t$+m$+a$+e$;return w>>>0}H.sum64_4_lo=o$;function k(N,t$,x,m$,B,a$,y,e$,w,r$){var E=0,i$=t$;i$=i$+m$>>>0,E+=i$<t$?1:0,i$=i$+a$>>>0,E+=i$<a$?1:0,i$=i$+e$>>>0,E+=i$<e$?1:0,i$=i$+r$>>>0,E+=i$<r$?1:0;var p=N+x+B+y+w+E;return p>>>0}H.sum64_5_hi=k;function u$(N,t$,x,m$,B,a$,y,e$,w,r$){var E=t$+m$+a$+e$+r$;return E>>>0}H.sum64_5_lo=u$;function g(N,t$,x){var m$=t$<<32-x|N>>>x;return m$>>>0}H.rotr64_hi=g;function n$(N,t$,x){var m$=N<<32-x|t$>>>x;return m$>>>0}H.rotr64_lo=n$;function _(N,t$,x){return N>>>x}H.shr64_hi=_;function s$(N,t$,x){var m$=N<<32-x|t$>>>x;return m$>>>0}H.shr64_lo=s$}}),m0=GY({"node_modules/hash.js/lib/hash/common.js"(H){var W=bY(),p$=l0();function K(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}H.BlockHash=K,K.prototype.update=function(G,$){if(G=W.toArray(G,$),this.pending?this.pending=this.pending.concat(G):this.pending=G,this.pendingTotal+=G.length,this.pending.length>=this._delta8){G=this.pending;var U=G.length%this._delta8;this.pending=G.slice(G.length-U,G.length),this.pending.length===0&&(this.pending=null),G=W.join32(G,0,G.length-U,this.endian);for(var Y=0;Y<G.length;Y+=this._delta32)this._update(G,Y,Y+this._delta32)}return this},K.prototype.digest=function(G){return this.update(this._pad()),p$(this.pending===null),this._digest(G)},K.prototype._pad=function(){var G=this.pendingTotal,$=this._delta8,U=$-(G+this.padLength)%$,Y=new Array(U+this.padLength);Y[0]=128;for(var F=1;F<U;F++)Y[F]=0;if(G<<=3,this.endian==="big"){for(var O=8;O<this.padLength;O++)Y[F++]=0;Y[F++]=0,Y[F++]=0,Y[F++]=0,Y[F++]=0,Y[F++]=G>>>24&255,Y[F++]=G>>>16&255,Y[F++]=G>>>8&255,Y[F++]=G&255}else for(Y[F++]=G&255,Y[F++]=G>>>8&255,Y[F++]=G>>>16&255,Y[F++]=G>>>24&255,Y[F++]=0,Y[F++]=0,Y[F++]=0,Y[F++]=0,O=8;O<this.padLength;O++)Y[F++]=0;return Y}}}),lY=GY({"node_modules/hash.js/lib/hash/sha/common.js"(H){var W=bY(),p$=W.rotr32;function K(z,c$,M,h$){if(z===0)return G(c$,M,h$);if(z===1||z===3)return U(c$,M,h$);if(z===2)return $(c$,M,h$)}H.ft_1=K;function G(z,c$,M){return z&c$^~z&M}H.ch32=G;function $(z,c$,M){return z&c$^z&M^c$&M}H.maj32=$;function U(z,c$,M){return z^c$^M}H.p32=U;function Y(z){return p$(z,2)^p$(z,13)^p$(z,22)}H.s0_256=Y;function F(z){return p$(z,6)^p$(z,11)^p$(z,25)}H.s1_256=F;function O(z){return p$(z,7)^p$(z,18)^z>>>3}H.g0_256=O;function f$(z){return p$(z,17)^p$(z,19)^z>>>10}H.g1_256=f$}}),a0=GY({"node_modules/hash.js/lib/hash/sha/1.js"(H,W){var p$=bY(),K=m0(),G=lY(),$=p$.rotl32,U=p$.sum32,Y=p$.sum32_5,F=G.ft_1,O=K.BlockHash,f$=[1518500249,1859775393,2400959708,3395469782];function z(){if(!(this instanceof z))return new z;O.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}p$.inherits(z,O),W.exports=z,z.blockSize=512,z.outSize=160,z.hmacStrength=80,z.padLength=64,z.prototype._update=function(c$,M){for(var h$=this.W,S=0;S<16;S++)h$[S]=c$[M+S];for(;S<h$.length;S++)h$[S]=$(h$[S-3]^h$[S-8]^h$[S-14]^h$[S-16],1);var d$=this.h[0],v=this.h[1],b$=this.h[2],q=this.h[3],l$=this.h[4];for(S=0;S<h$.length;S++){var j=~~(S/20),o$=Y($(d$,5),F(j,v,b$,q),l$,h$[S],f$[j]);l$=q,q=b$,b$=$(v,30),v=d$,d$=o$}this.h[0]=U(this.h[0],d$),this.h[1]=U(this.h[1],v),this.h[2]=U(this.h[2],b$),this.h[3]=U(this.h[3],q),this.h[4]=U(this.h[4],l$)},z.prototype._digest=function(c$){return c$==="hex"?p$.toHex32(this.h,"big"):p$.split32(this.h,"big")}}}),oY=GY({"node_modules/hash.js/lib/hash/sha/256.js"(H,W){var p$=bY(),K=m0(),G=lY(),$=l0(),U=p$.sum32,Y=p$.sum32_4,F=p$.sum32_5,O=G.ch32,f$=G.maj32,z=G.s0_256,c$=G.s1_256,M=G.g0_256,h$=G.g1_256,S=K.BlockHash,d$=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;S.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=d$,this.W=new Array(64)}p$.inherits(v,S),W.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(b$,q){for(var l$=this.W,j=0;j<16;j++)l$[j]=b$[q+j];for(;j<l$.length;j++)l$[j]=Y(h$(l$[j-2]),l$[j-7],M(l$[j-15]),l$[j-16]);var o$=this.h[0],k=this.h[1],u$=this.h[2],g=this.h[3],n$=this.h[4],_=this.h[5],s$=this.h[6],N=this.h[7];for($(this.k.length===l$.length),j=0;j<l$.length;j++){var t$=F(N,c$(n$),O(n$,_,s$),this.k[j],l$[j]),x=U(z(o$),f$(o$,k,u$));N=s$,s$=_,_=n$,n$=U(g,t$),g=u$,u$=k,k=o$,o$=U(t$,x)}this.h[0]=U(this.h[0],o$),this.h[1]=U(this.h[1],k),this.h[2]=U(this.h[2],u$),this.h[3]=U(this.h[3],g),this.h[4]=U(this.h[4],n$),this.h[5]=U(this.h[5],_),this.h[6]=U(this.h[6],s$),this.h[7]=U(this.h[7],N)},v.prototype._digest=function(b$){return b$==="hex"?p$.toHex32(this.h,"big"):p$.split32(this.h,"big")}}}),e0=GY({"node_modules/hash.js/lib/hash/sha/224.js"(H,W){var p$=bY(),K=oY();function G(){if(!(this instanceof G))return new G;K.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}p$.inherits(G,K),W.exports=G,G.blockSize=512,G.outSize=224,G.hmacStrength=192,G.padLength=64,G.prototype._digest=function($){return $==="hex"?p$.toHex32(this.h.slice(0,7),"big"):p$.split32(this.h.slice(0,7),"big")}}}),uY=GY({"node_modules/hash.js/lib/hash/sha/512.js"(H,W){var p$=bY(),K=m0(),G=l0(),$=p$.rotr64_hi,U=p$.rotr64_lo,Y=p$.shr64_hi,F=p$.shr64_lo,O=p$.sum64,f$=p$.sum64_hi,z=p$.sum64_lo,c$=p$.sum64_4_hi,M=p$.sum64_4_lo,h$=p$.sum64_5_hi,S=p$.sum64_5_lo,d$=K.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b$(){if(!(this instanceof b$))return new b$;d$.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}p$.inherits(b$,d$),W.exports=b$,b$.blockSize=1024,b$.outSize=512,b$.hmacStrength=192,b$.padLength=128,b$.prototype._prepareBlock=function(x,m$){for(var B=this.W,a$=0;a$<32;a$++)B[a$]=x[m$+a$];for(;a$<B.length;a$+=2){var y=N(B[a$-4],B[a$-3]),e$=t$(B[a$-4],B[a$-3]),w=B[a$-14],r$=B[a$-13],E=_(B[a$-30],B[a$-29]),i$=s$(B[a$-30],B[a$-29]),p=B[a$-32],$Q=B[a$-31];B[a$]=c$(y,e$,w,r$,E,i$,p,$Q),B[a$+1]=M(y,e$,w,r$,E,i$,p,$Q)}},b$.prototype._update=function(x,m$){this._prepareBlock(x,m$);var B=this.W,a$=this.h[0],y=this.h[1],e$=this.h[2],w=this.h[3],r$=this.h[4],E=this.h[5],i$=this.h[6],p=this.h[7],$Q=this.h[8],f=this.h[9],QQ=this.h[10],c=this.h[11],YQ=this.h[12],h=this.h[13],ZQ=this.h[14],d=this.h[15];G(this.k.length===B.length);for(var GQ=0;GQ<B.length;GQ+=2){var b=ZQ,VQ=d,l=g($Q,f),UQ=n$($Q,f),o=q($Q,f,QQ,c,YQ,h),XQ=l$($Q,f,QQ,c,YQ,h),u=this.k[GQ],KQ=this.k[GQ+1],n=B[GQ],IQ=B[GQ+1],s=h$(b,VQ,l,UQ,o,XQ,u,KQ,n,IQ),OQ=S(b,VQ,l,UQ,o,XQ,u,KQ,n,IQ);b=k(a$,y),VQ=u$(a$,y),l=j(a$,y,e$,w,r$,E),UQ=o$(a$,y,e$,w,r$,E);var t=f$(b,VQ,l,UQ),JQ=z(b,VQ,l,UQ);ZQ=YQ,d=h,YQ=QQ,h=c,QQ=$Q,c=f,$Q=f$(i$,p,s,OQ),f=z(p,p,s,OQ),i$=r$,p=E,r$=e$,E=w,e$=a$,w=y,a$=f$(s,OQ,t,JQ),y=z(s,OQ,t,JQ)}O(this.h,0,a$,y),O(this.h,2,e$,w),O(this.h,4,r$,E),O(this.h,6,i$,p),O(this.h,8,$Q,f),O(this.h,10,QQ,c),O(this.h,12,YQ,h),O(this.h,14,ZQ,d)},b$.prototype._digest=function(x){return x==="hex"?p$.toHex32(this.h,"big"):p$.split32(this.h,"big")};function q(x,m$,B,a$,y){var e$=x&B^~x&y;return e$<0&&(e$+=4294967296),e$}function l$(x,m$,B,a$,y,e$){var w=m$&a$^~m$&e$;return w<0&&(w+=4294967296),w}function j(x,m$,B,a$,y){var e$=x&B^x&y^B&y;return e$<0&&(e$+=4294967296),e$}function o$(x,m$,B,a$,y,e$){var w=m$&a$^m$&e$^a$&e$;return w<0&&(w+=4294967296),w}function k(x,m$){var B=$(x,m$,28),a$=$(m$,x,2),y=$(m$,x,7),e$=B^a$^y;return e$<0&&(e$+=4294967296),e$}function u$(x,m$){var B=U(x,m$,28),a$=U(m$,x,2),y=U(m$,x,7),e$=B^a$^y;return e$<0&&(e$+=4294967296),e$}function g(x,m$){var B=$(x,m$,14),a$=$(x,m$,18),y=$(m$,x,9),e$=B^a$^y;return e$<0&&(e$+=4294967296),e$}function n$(x,m$){var B=U(x,m$,14),a$=U(x,m$,18),y=U(m$,x,9),e$=B^a$^y;return e$<0&&(e$+=4294967296),e$}function _(x,m$){var B=$(x,m$,1),a$=$(x,m$,8),y=Y(x,m$,7),e$=B^a$^y;return e$<0&&(e$+=4294967296),e$}function s$(x,m$){var B=U(x,m$,1),a$=U(x,m$,8),y=F(x,m$,7),e$=B^a$^y;return e$<0&&(e$+=4294967296),e$}function N(x,m$){var B=$(x,m$,19),a$=$(m$,x,29),y=Y(x,m$,6),e$=B^a$^y;return e$<0&&(e$+=4294967296),e$}function t$(x,m$){var B=U(x,m$,19),a$=U(m$,x,29),y=F(x,m$,6),e$=B^a$^y;return e$<0&&(e$+=4294967296),e$}}}),r0=GY({"node_modules/hash.js/lib/hash/sha/384.js"(H,W){var p$=bY(),K=uY();function G(){if(!(this instanceof G))return new G;K.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}p$.inherits(G,K),W.exports=G,G.blockSize=1024,G.outSize=384,G.hmacStrength=192,G.padLength=128,G.prototype._digest=function($){return $==="hex"?p$.toHex32(this.h.slice(0,12),"big"):p$.split32(this.h.slice(0,12),"big")}}}),nY=GY({"node_modules/hash.js/lib/hash/sha.js"(H){H.sha1=a0(),H.sha224=e0(),H.sha256=oY(),H.sha384=r0(),H.sha512=uY()}}),i0=GY({"node_modules/hash.js/lib/hash/ripemd.js"(H){var W=bY(),p$=m0(),K=W.rotl32,G=W.sum32,$=W.sum32_3,U=W.sum32_4,Y=p$.BlockHash;function F(){if(!(this instanceof F))return new F;Y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}W.inherits(F,Y),H.ripemd160=F,F.blockSize=512,F.outSize=160,F.hmacStrength=192,F.padLength=64,F.prototype._update=function(d$,v){for(var b$=this.h[0],q=this.h[1],l$=this.h[2],j=this.h[3],o$=this.h[4],k=b$,u$=q,g=l$,n$=j,_=o$,s$=0;s$<80;s$++){var N=G(K(U(b$,O(s$,q,l$,j),d$[c$[s$]+v],f$(s$)),h$[s$]),o$);b$=o$,o$=j,j=K(l$,10),l$=q,q=N,N=G(K(U(k,O(79-s$,u$,g,n$),d$[M[s$]+v],z(s$)),S[s$]),_),k=_,_=n$,n$=K(g,10),g=u$,u$=N}N=$(this.h[1],l$,n$),this.h[1]=$(this.h[2],j,_),this.h[2]=$(this.h[3],o$,k),this.h[3]=$(this.h[4],b$,u$),this.h[4]=$(this.h[0],q,g),this.h[0]=N},F.prototype._digest=function(d$){return d$==="hex"?W.toHex32(this.h,"little"):W.split32(this.h,"little")};function O(d$,v,b$,q){return d$<=15?v^b$^q:d$<=31?v&b$|~v&q:d$<=47?(v|~b$)^q:d$<=63?v&q|b$&~q:v^(b$|~q)}function f$(d$){return d$<=15?0:d$<=31?1518500249:d$<=47?1859775393:d$<=63?2400959708:2840853838}function z(d$){return d$<=15?1352829926:d$<=31?1548603684:d$<=47?1836072691:d$<=63?2053994217:0}var c$=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],M=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h$=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],S=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]}}),sY=GY({"node_modules/hash.js/lib/hash/hmac.js"(H,W){var p$=bY(),K=l0();function G($,U,Y){if(!(this instanceof G))return new G($,U,Y);this.Hash=$,this.blockSize=$.blockSize/8,this.outSize=$.outSize/8,this.inner=null,this.outer=null,this._init(p$.toArray(U,Y))}W.exports=G,G.prototype._init=function($){$.length>this.blockSize&&($=new this.Hash().update($).digest()),K($.length<=this.blockSize);for(var U=$.length;U<this.blockSize;U++)$.push(0);for(U=0;U<$.length;U++)$[U]^=54;for(this.inner=new this.Hash().update($),U=0;U<$.length;U++)$[U]^=106;this.outer=new this.Hash().update($)},G.prototype.update=function($,U){return this.inner.update($,U),this},G.prototype.digest=function($){return this.outer.update(this.inner.digest()),this.outer.digest($)}}}),$$=GY({"node_modules/hash.js/lib/hash.js"(H){var W=H;W.utils=bY(),W.common=m0(),W.sha=nY(),W.ripemd=i0(),W.hmac=sY(),W.sha1=W.sha.sha1,W.sha256=W.sha.sha256,W.sha224=W.sha.sha224,W.sha384=W.sha.sha384,W.sha512=W.sha.sha512,W.ripemd160=W.ripemd.ripemd160}}),tY=GY({"node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js"(H,W){W.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}}),Q$=GY({"node_modules/elliptic/lib/elliptic/curves.js"(H){var W=H,p$=$$(),K=t0(),G=cY(),$=G.assert;function U(O){O.type==="short"?this.curve=new K.short(O):O.type==="edwards"?this.curve=new K.edwards(O):this.curve=new K.mont(O),this.g=this.curve.g,this.n=this.curve.n,this.hash=O.hash,$(this.g.validate(),"Invalid curve"),$(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}W.PresetCurve=U;function Y(O,f$){Object.defineProperty(W,O,{configurable:!0,enumerable:!0,get:function(){var z=new U(f$);return Object.defineProperty(W,O,{configurable:!0,enumerable:!0,value:z}),z}})}Y("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:p$.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),Y("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:p$.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),Y("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:p$.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),Y("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:p$.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),Y("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:p$.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),Y("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:p$.sha256,gRed:!1,g:["9"]}),Y("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:p$.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var F;try{F=tY()}catch{F=void 0}Y("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:p$.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",F]})}}),mY=GY({"node_modules/hmac-drbg/lib/hmac-drbg.js"(H,W){var p$=$$(),K=u0(),G=l0();function $(U){if(!(this instanceof $))return new $(U);this.hash=U.hash,this.predResist=!!U.predResist,this.outLen=this.hash.outSize,this.minEntropy=U.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var Y=K.toArray(U.entropy,U.entropyEnc||"hex"),F=K.toArray(U.nonce,U.nonceEnc||"hex"),O=K.toArray(U.pers,U.persEnc||"hex");G(Y.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(Y,F,O)}W.exports=$,$.prototype._init=function(U,Y,F){var O=U.concat(Y).concat(F);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var f$=0;f$<this.V.length;f$++)this.K[f$]=0,this.V[f$]=1;this._update(O),this._reseed=1,this.reseedInterval=281474976710656},$.prototype._hmac=function(){return new p$.hmac(this.hash,this.K)},$.prototype._update=function(U){var Y=this._hmac().update(this.V).update([0]);U&&(Y=Y.update(U)),this.K=Y.digest(),this.V=this._hmac().update(this.V).digest(),U&&(this.K=this._hmac().update(this.V).update([1]).update(U).digest(),this.V=this._hmac().update(this.V).digest())},$.prototype.reseed=function(U,Y,F,O){typeof Y!="string"&&(O=F,F=Y,Y=null),U=K.toArray(U,Y),F=K.toArray(F,O),G(U.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(U.concat(F||[])),this._reseed=1},$.prototype.generate=function(U,Y,F,O){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof Y!="string"&&(O=F,F=Y,Y=null),F&&(F=K.toArray(F,O||"hex"),this._update(F));for(var f$=[];f$.length<U;)this.V=this._hmac().update(this.V).digest(),f$=f$.concat(this.V);var z=f$.slice(0,U);return this._update(F),this._reseed++,K.encode(z,Y)}}}),Y$=GY({"node_modules/elliptic/lib/elliptic/ec/key.js"(H,W){var p$=fY(),K=cY(),G=K.assert;function $(U,Y){this.ec=U,this.priv=null,this.pub=null,Y.priv&&this._importPrivate(Y.priv,Y.privEnc),Y.pub&&this._importPublic(Y.pub,Y.pubEnc)}W.exports=$,$.fromPublic=function(U,Y,F){return Y instanceof $?Y:new $(U,{pub:Y,pubEnc:F})},$.fromPrivate=function(U,Y,F){return Y instanceof $?Y:new $(U,{priv:Y,privEnc:F})},$.prototype.validate=function(){var U=this.getPublic();return U.isInfinity()?{result:!1,reason:"Invalid public key"}:U.validate()?U.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},$.prototype.getPublic=function(U,Y){return typeof U=="string"&&(Y=U,U=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),Y?this.pub.encode(Y,U):this.pub},$.prototype.getPrivate=function(U){return U==="hex"?this.priv.toString(16,2):this.priv},$.prototype._importPrivate=function(U,Y){this.priv=new p$(U,Y||16),this.priv=this.priv.umod(this.ec.curve.n)},$.prototype._importPublic=function(U,Y){if(U.x||U.y){this.ec.curve.type==="mont"?G(U.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&G(U.x&&U.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(U.x,U.y);return}this.pub=this.ec.curve.decodePoint(U,Y)},$.prototype.derive=function(U){return U.validate()||G(U.validate(),"public point not validated"),U.mul(this.priv).getX()},$.prototype.sign=function(U,Y,F){return this.ec.sign(U,this,Y,F)},$.prototype.verify=function(U,Y){return this.ec.verify(U,Y,this)},$.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}}),aY=GY({"node_modules/elliptic/lib/elliptic/ec/signature.js"(H,W){var p$=fY(),K=cY(),G=K.assert;function $(f$,z){if(f$ instanceof $)return f$;this._importDER(f$,z)||(G(f$.r&&f$.s,"Signature without r or s"),this.r=new p$(f$.r,16),this.s=new p$(f$.s,16),f$.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=f$.recoveryParam)}W.exports=$;function U(){this.place=0}function Y(f$,z){var c$=f$[z.place++];if(!(c$&128))return c$;var M=c$&15;if(M===0||M>4)return!1;for(var h$=0,S=0,d$=z.place;S<M;S++,d$++)h$<<=8,h$|=f$[d$],h$>>>=0;return h$<=127?!1:(z.place=d$,h$)}function F(f$){for(var z=0,c$=f$.length-1;!f$[z]&&!(f$[z+1]&128)&&z<c$;)z++;return z===0?f$:f$.slice(z)}$.prototype._importDER=function(f$,z){f$=K.toArray(f$,z);var c$=new U;if(f$[c$.place++]!==48)return!1;var M=Y(f$,c$);if(M===!1||M+c$.place!==f$.length||f$[c$.place++]!==2)return!1;var h$=Y(f$,c$);if(h$===!1)return!1;var S=f$.slice(c$.place,h$+c$.place);if(c$.place+=h$,f$[c$.place++]!==2)return!1;var d$=Y(f$,c$);if(d$===!1||f$.length!==d$+c$.place)return!1;var v=f$.slice(c$.place,d$+c$.place);if(S[0]===0)if(S[1]&128)S=S.slice(1);else return!1;if(v[0]===0)if(v[1]&128)v=v.slice(1);else return!1;return this.r=new p$(S),this.s=new p$(v),this.recoveryParam=null,!0};function O(f$,z){if(z<128){f$.push(z);return}var c$=1+(Math.log(z)/Math.LN2>>>3);for(f$.push(c$|128);--c$;)f$.push(z>>>(c$<<3)&255);f$.push(z)}$.prototype.toDER=function(f$){var z=this.r.toArray(),c$=this.s.toArray();for(z[0]&128&&(z=[0].concat(z)),c$[0]&128&&(c$=[0].concat(c$)),z=F(z),c$=F(c$);!c$[0]&&!(c$[1]&128);)c$=c$.slice(1);var M=[2];O(M,z.length),M=M.concat(z),M.push(2),O(M,c$.length);var h$=M.concat(c$),S=[48];return O(S,h$.length),S=S.concat(h$),K.encode(S,f$)}}}),C=GY({"node_modules/elliptic/lib/elliptic/ec/index.js"(H,W){var p$=fY(),K=mY(),G=cY(),$=Q$(),U=I(),Y=G.assert,F=Y$(),O=aY();function f$(z){if(!(this instanceof f$))return new f$(z);typeof z=="string"&&(Y(Object.prototype.hasOwnProperty.call($,z),"Unknown curve "+z),z=$[z]),z instanceof $.PresetCurve&&(z={curve:z}),this.curve=z.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=z.curve.g,this.g.precompute(z.curve.n.bitLength()+1),this.hash=z.hash||z.curve.hash}W.exports=f$,f$.prototype.keyPair=function(z){return new F(this,z)},f$.prototype.keyFromPrivate=function(z,c$){return F.fromPrivate(this,z,c$)},f$.prototype.keyFromPublic=function(z,c$){return F.fromPublic(this,z,c$)},f$.prototype.genKeyPair=function(z){z||(z={});for(var c$=new K({hash:this.hash,pers:z.pers,persEnc:z.persEnc||"utf8",entropy:z.entropy||U(this.hash.hmacStrength),entropyEnc:z.entropy&&z.entropyEnc||"utf8",nonce:this.n.toArray()}),M=this.n.byteLength(),h$=this.n.sub(new p$(2));;){var S=new p$(c$.generate(M));if(!(S.cmp(h$)>0))return S.iaddn(1),this.keyFromPrivate(S)}},f$.prototype._truncateToN=function(z,c$){var M=z.byteLength()*8-this.n.bitLength();return M>0&&(z=z.ushrn(M)),!c$&&z.cmp(this.n)>=0?z.sub(this.n):z},f$.prototype.sign=function(z,c$,M,h$){typeof M=="object"&&(h$=M,M=null),h$||(h$={}),c$=this.keyFromPrivate(c$,M),z=this._truncateToN(new p$(z,16));for(var S=this.n.byteLength(),d$=c$.getPrivate().toArray("be",S),v=z.toArray("be",S),b$=new K({hash:this.hash,entropy:d$,nonce:v,pers:h$.pers,persEnc:h$.persEnc||"utf8"}),q=this.n.sub(new p$(1)),l$=0;;l$++){var j=h$.k?h$.k(l$):new p$(b$.generate(this.n.byteLength()));if(j=this._truncateToN(j,!0),!(j.cmpn(1)<=0||j.cmp(q)>=0)){var o$=this.g.mul(j);if(!o$.isInfinity()){var k=o$.getX(),u$=k.umod(this.n);if(u$.cmpn(0)!==0){var g=j.invm(this.n).mul(u$.mul(c$.getPrivate()).iadd(z));if(g=g.umod(this.n),g.cmpn(0)!==0){var n$=(o$.getY().isOdd()?1:0)|(k.cmp(u$)!==0?2:0);return h$.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),n$^=1),new O({r:u$,s:g,recoveryParam:n$})}}}}}},f$.prototype.verify=function(z,c$,M,h$){z=this._truncateToN(new p$(z,16)),M=this.keyFromPublic(M,h$),c$=new O(c$,"hex");var{r:S,s:d$}=c$;if(S.cmpn(1)<0||S.cmp(this.n)>=0||d$.cmpn(1)<0||d$.cmp(this.n)>=0)return!1;var v=d$.invm(this.n),b$=v.mul(z).umod(this.n),q=v.mul(S).umod(this.n),l$;return this.curve._maxwellTrick?(l$=this.g.jmulAdd(b$,M.getPublic(),q),l$.isInfinity()?!1:l$.eqXToP(S)):(l$=this.g.mulAdd(b$,M.getPublic(),q),l$.isInfinity()?!1:l$.getX().umod(this.n).cmp(S)===0)},f$.prototype.recoverPubKey=function(z,c$,M,h$){Y((3&M)===M,"The recovery param is more than two bits"),c$=new O(c$,h$);var S=this.n,d$=new p$(z),v=c$.r,b$=c$.s,q=M&1,l$=M>>1;if(v.cmp(this.curve.p.umod(this.curve.n))>=0&&l$)throw new Error("Unable to find sencond key candinate");l$?v=this.curve.pointFromX(v.add(this.curve.n),q):v=this.curve.pointFromX(v,q);var j=c$.r.invm(S),o$=S.sub(d$).mul(j).umod(S),k=b$.mul(j).umod(S);return this.g.mulAdd(o$,v,k)},f$.prototype.getKeyRecoveryParam=function(z,c$,M,h$){if(c$=new O(c$,h$),c$.recoveryParam!==null)return c$.recoveryParam;for(var S=0;S<4;S++){var d$;try{d$=this.recoverPubKey(z,c$,S)}catch{continue}if(d$.eq(M))return S}throw new Error("Unable to find valid recovery factor")}}}),eY=GY({"node_modules/elliptic/lib/elliptic/eddsa/key.js"(H,W){var p$=cY(),K=p$.assert,G=p$.parseBytes,$=p$.cachedProperty;function U(Y,F){this.eddsa=Y,this._secret=G(F.secret),Y.isPoint(F.pub)?this._pub=F.pub:this._pubBytes=G(F.pub)}U.fromPublic=function(Y,F){return F instanceof U?F:new U(Y,{pub:F})},U.fromSecret=function(Y,F){return F instanceof U?F:new U(Y,{secret:F})},U.prototype.secret=function(){return this._secret},$(U,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),$(U,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),$(U,"privBytes",function(){var Y=this.eddsa,F=this.hash(),O=Y.encodingLength-1,f$=F.slice(0,Y.encodingLength);return f$[0]&=248,f$[O]&=127,f$[O]|=64,f$}),$(U,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),$(U,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),$(U,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),U.prototype.sign=function(Y){return K(this._secret,"KeyPair can only verify"),this.eddsa.sign(Y,this)},U.prototype.verify=function(Y,F){return this.eddsa.verify(Y,F,this)},U.prototype.getSecret=function(Y){return K(this._secret,"KeyPair is public only"),p$.encode(this.secret(),Y)},U.prototype.getPublic=function(Y){return p$.encode(this.pubBytes(),Y)},W.exports=U}}),rY=GY({"node_modules/elliptic/lib/elliptic/eddsa/signature.js"(H,W){var p$=fY(),K=cY(),G=K.assert,$=K.cachedProperty,U=K.parseBytes;function Y(F,O){this.eddsa=F,typeof O!="object"&&(O=U(O)),Array.isArray(O)&&(O={R:O.slice(0,F.encodingLength),S:O.slice(F.encodingLength)}),G(O.R&&O.S,"Signature without R or S"),F.isPoint(O.R)&&(this._R=O.R),O.S instanceof p$&&(this._S=O.S),this._Rencoded=Array.isArray(O.R)?O.R:O.Rencoded,this._Sencoded=Array.isArray(O.S)?O.S:O.Sencoded}$(Y,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),$(Y,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),$(Y,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),$(Y,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),Y.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Y.prototype.toHex=function(){return K.encode(this.toBytes(),"hex").toUpperCase()},W.exports=Y}}),iY=GY({"node_modules/elliptic/lib/elliptic/eddsa/index.js"(H,W){var p$=$$(),K=Q$(),G=cY(),$=G.assert,U=G.parseBytes,Y=eY(),F=rY();function O(f$){if($(f$==="ed25519","only tested with ed25519 so far"),!(this instanceof O))return new O(f$);f$=K[f$].curve,this.curve=f$,this.g=f$.g,this.g.precompute(f$.n.bitLength()+1),this.pointClass=f$.point().constructor,this.encodingLength=Math.ceil(f$.n.bitLength()/8),this.hash=p$.sha512}W.exports=O,O.prototype.sign=function(f$,z){f$=U(f$);var c$=this.keyFromSecret(z),M=this.hashInt(c$.messagePrefix(),f$),h$=this.g.mul(M),S=this.encodePoint(h$),d$=this.hashInt(S,c$.pubBytes(),f$).mul(c$.priv()),v=M.add(d$).umod(this.curve.n);return this.makeSignature({R:h$,S:v,Rencoded:S})},O.prototype.verify=function(f$,z,c$){f$=U(f$),z=this.makeSignature(z);var M=this.keyFromPublic(c$),h$=this.hashInt(z.Rencoded(),M.pubBytes(),f$),S=this.g.mul(z.S()),d$=z.R().add(M.pub().mul(h$));return d$.eq(S)},O.prototype.hashInt=function(){for(var f$=this.hash(),z=0;z<arguments.length;z++)f$.update(arguments[z]);return G.intFromLE(f$.digest()).umod(this.curve.n)},O.prototype.keyFromPublic=function(f$){return Y.fromPublic(this,f$)},O.prototype.keyFromSecret=function(f$){return Y.fromSecret(this,f$)},O.prototype.makeSignature=function(f$){return f$ instanceof F?f$:new F(this,f$)},O.prototype.encodePoint=function(f$){var z=f$.getY().toArray("le",this.encodingLength);return z[this.encodingLength-1]|=f$.getX().isOdd()?128:0,z},O.prototype.decodePoint=function(f$){f$=G.parseBytes(f$);var z=f$.length-1,c$=f$.slice(0,z).concat(f$[z]&-129),M=(f$[z]&128)!==0,h$=G.intFromLE(c$);return this.curve.pointFromY(h$,M)},O.prototype.encodeInt=function(f$){return f$.toArray("le",this.encodingLength)},O.prototype.decodeInt=function(f$){return G.intFromLE(f$)},O.prototype.isPoint=function(f$){return f$ instanceof this.pointClass}}}),Z$=GY({"node_modules/elliptic/lib/elliptic.js"(H){var W=H;W.version=o0().version,W.utils=cY(),W.rand=I(),W.curve=t0(),W.curves=Q$(),W.ec=C(),W.eddsa=iY()}}),$Z=GY({"node_modules/asn1.js/node_modules/bn.js/lib/bn.js"(H,W){(function(p$,K){function G(s$,N){if(!s$)throw new Error(N||"Assertion failed")}function $(s$,N){s$.super_=N;var t$=function(){};t$.prototype=N.prototype,s$.prototype=new t$,s$.prototype.constructor=s$}function U(s$,N,t$){if(U.isBN(s$))return s$;this.negative=0,this.words=null,this.length=0,this.red=null,s$!==null&&((N==="le"||N==="be")&&(t$=N,N=10),this._init(s$||0,N||10,t$||"be"))}typeof p$=="object"?p$.exports=U:K.BN=U,U.BN=U,U.wordSize=26;var Y=lQ;U.isBN=function(s$){return s$ instanceof U?!0:s$!==null&&typeof s$=="object"&&s$.constructor.wordSize===U.wordSize&&Array.isArray(s$.words)},U.max=function(s$,N){return s$.cmp(N)>0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x<s$.length&&(N===16?this._parseHex(s$,x,t$):(this._parseBase(s$,N,x),t$==="le"&&this._initArray(this.toArray(),N,t$)))},U.prototype._initNumber=function(s$,N,t$){s$<0&&(this.negative=1,s$=-s$),s$<67108864?(this.words=[s$&67108863],this.length=1):s$<4503599627370496?(this.words=[s$&67108863,s$/67108864&67108863],this.length=2):(G(s$<9007199254740992),this.words=[s$&67108863,s$/67108864&67108863,1],this.length=3),t$==="le"&&this._initArray(this.toArray(),N,t$)},U.prototype._initArray=function(s$,N,t$){if(G(typeof s$.length=="number"),s$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s$.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$,B,a$=0;if(t$==="be")for(x=s$.length-1,m$=0;x>=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x<s$.length;x+=3)B=s$[x]|s$[x+1]<<8|s$[x+2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$=0,B=0,a$;if(t$==="be")for(x=s$.length-1;x>=N;x-=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x<s$.length;x+=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$<B;a$++){var y=s$.charCodeAt(a$)-48;m$*=x,y>=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w<y;w+=x)e$=f$(s$,w,w+x,N),this.imuln(m$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$);if(a$!==0){var r$=1;for(e$=f$(s$,w,s$.length,N),w=0;w<a$;w++)r$*=N;this.imuln(r$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$)}this.strip()},U.prototype.copy=function(s$){s$.words=new Array(this.length);for(var N=0;N<this.length;N++)s$.words[N]=this.words[N];s$.length=this.length,s$.negative=this.negative,s$.red=this.red},U.prototype.clone=function(){var s$=new U(null);return this.copy(s$),s$},U.prototype._expand=function(s$){for(;this.length<s$;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var z=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c$=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B<this.length;B++){var a$=this.words[B],y=((a$<<x|m$)&16777215).toString(16);m$=a$>>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$<m$;e$++)a$[e$]=0}else{for(e$=0;e$<m$-x;e$++)a$[e$]=0;for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[m$-e$-1]=y}return a$},Math.clz32?U.prototype._countBits=function(s$){return 32-Math.clz32(s$)}:U.prototype._countBits=function(s$){var N=s$,t$=0;return N>=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$<N.length;t$++){var x=t$/26|0,m$=t$%26;N[t$]=(s$.words[x]&1<<m$)>>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;N<this.length;N++){var t$=this._zeroBits(this.words[N]);if(s$+=t$,t$!==26)break}return s$},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(s$){return this.negative!==0?this.abs().inotn(s$).iaddn(1):this.clone()},U.prototype.fromTwos=function(s$){return this.testn(s$-1)?this.notn(s$).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(s$){for(;this.length<s$.length;)this.words[this.length++]=0;for(var N=0;N<s$.length;N++)this.words[N]=this.words[N]|s$.words[N];return this.strip()},U.prototype.ior=function(s$){return G((this.negative|s$.negative)===0),this.iuor(s$)},U.prototype.or=function(s$){return this.length>s$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$<N.length;t$++)this.words[t$]=this.words[t$]&s$.words[t$];return this.length=N.length,this.strip()},U.prototype.iand=function(s$){return G((this.negative|s$.negative)===0),this.iuand(s$)},U.prototype.and=function(s$){return this.length>s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;x<t$.length;x++)this.words[x]=N.words[x]^t$.words[x];if(this!==N)for(;x<N.length;x++)this.words[x]=N.words[x];return this.length=N.length,this.strip()},U.prototype.ixor=function(s$){return G((this.negative|s$.negative)===0),this.iuxor(s$)},U.prototype.xor=function(s$){return this.length>s$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x<N;x++)this.words[x]=~this.words[x]&67108863;return t$>0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<<x:this.words[t$]=this.words[t$]&~(1<<x),this.strip()},U.prototype.iadd=function(s$){var N;if(this.negative!==0&&s$.negative===0)return this.negative=0,N=this.isub(s$),this.negative^=1,this._normSign();if(this.negative===0&&s$.negative!==0)return s$.negative=0,N=this.isub(s$),s$.negative=1,N._normSign();var t$,x;this.length>s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B<x.length;B++)N=(t$.words[B]|0)+(x.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;for(;m$!==0&&B<t$.length;B++)N=(t$.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;B<t$.length;B++)this.words[B]=t$.words[B];return this},U.prototype.add=function(s$){var N;return s$.negative!==0&&this.negative===0?(s$.negative=0,N=this.sub(s$),s$.negative^=1,N):s$.negative===0&&this.negative!==0?(this.negative=0,N=s$.sub(this),this.negative=1,N):this.length>s$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$<m$.length;a$++)N=(x.words[a$]|0)-(m$.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;for(;B!==0&&a$<x.length;a$++)N=(x.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;if(B===0&&a$<x.length&&x!==this)for(;a$<x.length;a$++)this.words[a$]=x.words[a$];return this.length=Math.max(this.length,a$),x!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(s$){return this.clone().isub(s$)};function S(s$,N,t$){t$.negative=N.negative^s$.negative;var x=s$.length+N.length|0;t$.length=x,x=x-1|0;var m$=s$.words[0]|0,B=N.words[0]|0,a$=m$*B,y=a$&67108863,e$=a$/67108864|0;t$.words[0]=y;for(var w=1;w<x;w++){for(var r$=e$>>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B<t$.length-1;B++){var a$=m$;m$=0;for(var y=x&67108863,e$=Math.min(B,N.length-1),w=Math.max(0,B-s$.length+1);w<=e$;w++){var r$=B-w,E=s$.words[r$]|0,i$=N.words[w]|0,p=E*i$,$Q=p&67108863;a$=a$+(p/67108864|0)|0,$Q=$Q+y|0,y=$Q&67108863,a$=a$+($Q>>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x<s$;x++)N[x]=this.revBin(x,t$,s$);return N},q.prototype.revBin=function(s$,N,t$){if(s$===0||s$===t$-1)return s$;for(var x=0,m$=0;m$<N;m$++)x|=(s$&1)<<N-m$-1,s$>>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$<B;a$++)x[a$]=N[s$[a$]],m$[a$]=t$[s$[a$]]},q.prototype.transform=function(s$,N,t$,x,m$,B){this.permute(B,s$,N,t$,x,m$);for(var a$=1;a$<m$;a$<<=1)for(var y=a$<<1,e$=Math.cos(2*Math.PI/y),w=Math.sin(2*Math.PI/y),r$=0;r$<m$;r$+=y)for(var E=e$,i$=w,p=0;p<a$;p++){var $Q=t$[r$+p],f=x[r$+p],QQ=t$[r$+p+a$],c=x[r$+p+a$],YQ=E*QQ-i$*c;c=E*c+i$*QQ,QQ=YQ,t$[r$+p]=$Q+QQ,x[r$+p]=f+c,t$[r$+p+a$]=$Q-QQ,x[r$+p+a$]=f-c,p!==y&&(YQ=e$*E-w*i$,i$=e$*i$+w*E,E=YQ)}},q.prototype.guessLen13b=function(s$,N){var t$=Math.max(N,s$)|1,x=t$&1,m$=0;for(t$=t$/2|0;t$;t$=t$>>>1)m$++;return 1<<m$+1+x},q.prototype.conjugate=function(s$,N,t$){if(!(t$<=1))for(var x=0;x<t$/2;x++){var m$=s$[x];s$[x]=s$[t$-x-1],s$[t$-x-1]=m$,m$=N[x],N[x]=-N[t$-x-1],N[t$-x-1]=-m$}},q.prototype.normalize13b=function(s$,N){for(var t$=0,x=0;x<N/2;x++){var m$=Math.round(s$[2*x+1]/N)*8192+Math.round(s$[2*x]/N)+t$;s$[x]=m$&67108863,m$<67108864?t$=0:t$=m$/67108864|0}return s$},q.prototype.convert13b=function(s$,N,t$,x){for(var m$=0,B=0;B<N;B++)m$=m$+(s$[B]|0),t$[2*B]=m$&8191,m$=m$>>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B<x;++B)t$[B]=0;G(m$===0),G((m$&-8192)===0)},q.prototype.stub=function(s$){for(var N=new Array(s$),t$=0;t$<s$;t$++)N[t$]=0;return N},q.prototype.mulp=function(s$,N,t$){var x=2*this.guessLen13b(s$.length,N.length),m$=this.makeRBT(x),B=this.stub(x),a$=new Array(x),y=new Array(x),e$=new Array(x),w=new Array(x),r$=new Array(x),E=new Array(x),i$=t$.words;i$.length=x,this.convert13b(s$.words,s$.length,a$,x),this.convert13b(N.words,N.length,w,x),this.transform(a$,B,y,e$,x,m$),this.transform(w,B,r$,E,x,m$);for(var p=0;p<x;p++){var $Q=y[p]*r$[p]-e$[p]*E[p];e$[p]=y[p]*E[p]+e$[p]*r$[p],y[p]=$Q}return this.conjugate(y,e$,x),this.transform(y,e$,i$,B,x,m$),this.conjugate(i$,B,x),this.normalize13b(i$,x),t$.negative=s$.negative^N.negative,t$.length=s$.length+N.length,t$.strip()},U.prototype.mul=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),this.mulTo(s$,N)},U.prototype.mulf=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),b$(this,s$,N)},U.prototype.imul=function(s$){return this.clone().mulTo(s$,this)},U.prototype.imuln=function(s$){G(typeof s$=="number"),G(s$<67108864);for(var N=0,t$=0;t$<this.length;t$++){var x=(this.words[t$]|0)*s$,m$=(x&67108863)+(N&67108863);N>>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x<N.length&&N[x]===0;x++,t$=t$.sqr());if(++x<N.length)for(var m$=t$.sqr();x<N.length;x++,m$=m$.sqr())N[x]!==0&&(t$=t$.mul(m$));return t$},U.prototype.iushln=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$<this.length;m$++){var a$=this.words[m$]&x,y=(this.words[m$]|0)-a$<<N;this.words[m$]=y|B,B=a$>>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$<t$;m$++)this.words[m$]=0;this.length+=t$}return this.strip()},U.prototype.ishln=function(s$){return G(this.negative===0),this.iushln(s$)},U.prototype.iushrn=function(s$,N,t$){G(typeof s$=="number"&&s$>=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<<m$,y=t$;if(x-=B,x=Math.max(0,x),y){for(var e$=0;e$<B;e$++)y.words[e$]=this.words[e$];y.length=B}if(B!==0)if(this.length>B)for(this.length-=B,e$=0;e$<this.length;e$++)this.words[e$]=this.words[e$+B];else this.words[0]=0,this.length=1;var w=0;for(e$=this.length-1;e$>=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return!1;var m$=this.words[t$];return!!(m$&x)},U.prototype.imaskn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<<N;this.words[this.length-1]&=x}return this.strip()},U.prototype.maskn=function(s$){return this.clone().imaskn(s$)},U.prototype.iaddn=function(s$){return G(typeof s$=="number"),G(s$<67108864),s$<0?this.isubn(-s$):this.negative!==0?this.length===1&&(this.words[0]|0)<s$?(this.words[0]=s$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s$),this.negative=1,this):this._iaddn(s$)},U.prototype._iaddn=function(s$){this.words[0]+=s$;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this.strip()},U.prototype.addn=function(s$){return this.clone().iaddn(s$)},U.prototype.subn=function(s$){return this.clone().isubn(s$)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(s$,N,t$){var x=s$.length+t$,m$;this._expand(x);var B,a$=0;for(m$=0;m$<s$.length;m$++){B=(this.words[m$+t$]|0)+a$;var y=(s$.words[m$]|0)*N;B-=y&67108863,a$=(B>>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$<this.length-t$;m$++)B=(this.words[m$+t$]|0)+a$,a$=B>>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$<this.length;m$++)B=-(this.words[m$]|0)+a$,a$=B>>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w<e$.length;w++)e$.words[w]=0}var r$=x.clone()._ishlnsubmul(m$,1,y);r$.negative===0&&(x=r$,e$&&(e$.words[y]=1));for(var E=y-1;E>=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return this._expand(t$+1),this.words[t$]|=x,this;for(var m$=x,B=t$;m$!==0&&B<this.length;B++){var a$=this.words[B]|0;a$+=m$,m$=a$>>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:x<s$?-1:1}return this.negative!==0?-t$|0:t$},U.prototype.cmp=function(s$){if(this.negative!==0&&s$.negative===0)return-1;if(this.negative===0&&s$.negative!==0)return 1;var N=this.ucmp(s$);return this.negative!==0?-N|0:N},U.prototype.ucmp=function(s$){if(this.length>s$.length)return 1;if(this.length<s$.length)return-1;for(var N=0,t$=this.length-1;t$>=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){x<m$?N=-1:x>m$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$<this.n?-1:N.ucmp(this.p);return x===0?(N.words[0]=0,N.length=1):x>0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$<x;m$++)N.words[m$]=s$.words[m$];if(N.length=x,s$.length<=9){s$.words[0]=0,s$.length=1;return}var B=s$.words[9];for(N.words[N.length++]=B&t$,m$=10;m$<s$.length;m$++){var a$=s$.words[m$]|0;s$.words[m$-10]=(a$&t$)<<4|B>>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$<s$.length;t$++){var x=s$.words[t$]|0;N+=x*977,s$.words[t$]=N&67108863,N=x*64+(N/67108864|0)}return s$.words[s$.length-1]===0&&(s$.length--,s$.words[s$.length-1]===0&&s$.length--),s$};function k(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$(k,j);function u$(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$(u$,j);function g(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$(g,j),g.prototype.imulK=function(s$){for(var N=0,t$=0;t$<s$.length;t$++){var x=(s$.words[t$]|0)*19+N,m$=x&67108863;x>>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q<i$);var f=this.pow(w,new U(1).iushln(i$-$Q-1));r$=r$.redMul(f),w=f.redSqr(),E=E.redMul(w),i$=$Q}return r$},n$.prototype.invm=function(s$){var N=s$._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},n$.prototype.pow=function(s$,N){if(N.isZero())return new U(1).toRed(this);if(N.cmpn(1)===0)return s$.clone();var t$=4,x=new Array(1<<t$);x[0]=new U(1).toRed(this),x[1]=s$;for(var m$=2;m$<x.length;m$++)x[m$]=this.mul(x[m$-1],s$);var B=x[0],a$=0,y=0,e$=N.bitLength()%26;for(e$===0&&(e$=26),m$=N.length-1;m$>=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),QZ=GY({"node_modules/safer-buffer/safer.js"(H,W){var p$=QY,K=lQ,G={},$;for($ in p$)!p$.hasOwnProperty($)||$==="SlowBuffer"||$==="Buffer"||(G[$]=p$[$]);var U=G.Buffer={};for($ in K)!K.hasOwnProperty($)||$==="allocUnsafe"||$==="allocUnsafeSlow"||(U[$]=K[$]);if(G.Buffer.prototype=K.prototype,(!U.from||U.from===Uint8Array.from)&&(U.from=function(Y,F,O){if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof Y);if(Y&&typeof Y.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);return K(Y,F,O)}),U.alloc||(U.alloc=function(Y,F,O){if(typeof Y!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof Y);if(Y<0||Y>=2*(1<<30))throw new RangeError('The value "'+Y+'" is invalid for option "size"');var f$=K(Y);return!F||F.length===0?f$.fill(0):typeof O=="string"?f$.fill(F,O):f$.fill(F),f$}),!G.kStringMaxLength)try{G.kStringMaxLength=YY}catch{}G.constants||(G.constants={MAX_LENGTH:G.kMaxLength},G.kStringMaxLength&&(G.constants.MAX_STRING_LENGTH=G.kStringMaxLength)),W.exports=G}}),YZ=GY({"node_modules/asn1.js/lib/asn1/base/reporter.js"(H){var W=C0();function p$(G){this._reporterState={obj:null,path:[],options:G||{},errors:[]}}H.Reporter=p$,p$.prototype.isError=function(G){return G instanceof K},p$.prototype.save=function(){let G=this._reporterState;return{obj:G.obj,pathLen:G.path.length}},p$.prototype.restore=function(G){let $=this._reporterState;$.obj=G.obj,$.path=$.path.slice(0,G.pathLen)},p$.prototype.enterKey=function(G){return this._reporterState.path.push(G)},p$.prototype.exitKey=function(G){let $=this._reporterState;$.path=$.path.slice(0,G-1)},p$.prototype.leaveKey=function(G,$,U){let Y=this._reporterState;this.exitKey(G),Y.obj!==null&&(Y.obj[$]=U)},p$.prototype.path=function(){return this._reporterState.path.join("/")},p$.prototype.enterObject=function(){let G=this._reporterState,$=G.obj;return G.obj={},$},p$.prototype.leaveObject=function(G){let $=this._reporterState,U=$.obj;return $.obj=G,U},p$.prototype.error=function(G){let $,U=this._reporterState,Y=G instanceof K;if(Y?$=G:$=new K(U.path.map(function(F){return"["+JSON.stringify(F)+"]"}).join(""),G.message||G,G.stack),!U.options.partial)throw $;return Y||U.errors.push($),$},p$.prototype.wrapResult=function(G){let $=this._reporterState;return $.options.partial?{result:this.isError(G)?null:G,errors:$.errors}:G};function K(G,$){this.path=G,this.rethrow($)}W(K,Error),K.prototype.rethrow=function(G){if(this.message=G+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,K),!this.stack)try{throw new Error(this.message)}catch($){this.stack=$.stack}return this}}}),sQ=GY({"node_modules/asn1.js/lib/asn1/base/buffer.js"(H){var W=C0(),p$=YZ().Reporter,K=QZ().Buffer;function G(U,Y){if(p$.call(this,Y),!K.isBuffer(U)){this.error("Input not Buffer");return}this.base=U,this.offset=0,this.length=U.length}W(G,p$),H.DecoderBuffer=G,G.isDecoderBuffer=function(U){return U instanceof G?!0:typeof U=="object"&&K.isBuffer(U.base)&&U.constructor.name==="DecoderBuffer"&&typeof U.offset=="number"&&typeof U.length=="number"&&typeof U.save=="function"&&typeof U.restore=="function"&&typeof U.isEmpty=="function"&&typeof U.readUInt8=="function"&&typeof U.skip=="function"&&typeof U.raw=="function"},G.prototype.save=function(){return{offset:this.offset,reporter:p$.prototype.save.call(this)}},G.prototype.restore=function(U){let Y=new G(this.base);return Y.offset=U.offset,Y.length=this.offset,this.offset=U.offset,p$.prototype.restore.call(this,U.reporter),Y},G.prototype.isEmpty=function(){return this.offset===this.length},G.prototype.readUInt8=function(U){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(U||"DecoderBuffer overrun")},G.prototype.skip=function(U,Y){if(!(this.offset+U<=this.length))return this.error(Y||"DecoderBuffer overrun");let F=new G(this.base);return F._reporterState=this._reporterState,F.offset=this.offset,F.length=this.offset+U,this.offset+=U,F},G.prototype.raw=function(U){return this.base.slice(U?U.offset:this.offset,this.length)};function $(U,Y){if(Array.isArray(U))this.length=0,this.value=U.map(function(F){return $.isEncoderBuffer(F)||(F=new $(F,Y)),this.length+=F.length,F},this);else if(typeof U=="number"){if(!(0<=U&&U<=255))return Y.error("non-byte EncoderBuffer value");this.value=U,this.length=1}else if(typeof U=="string")this.value=U,this.length=K.byteLength(U);else if(K.isBuffer(U))this.value=U,this.length=U.length;else return Y.error("Unsupported type: "+typeof U)}H.EncoderBuffer=$,$.isEncoderBuffer=function(U){return U instanceof $?!0:typeof U=="object"&&U.constructor.name==="EncoderBuffer"&&typeof U.length=="number"&&typeof U.join=="function"},$.prototype.join=function(U,Y){return U||(U=K.alloc(this.length)),Y||(Y=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(F){F.join(U,Y),Y+=F.length}):(typeof this.value=="number"?U[Y]=this.value:typeof this.value=="string"?U.write(this.value,Y):K.isBuffer(this.value)&&this.value.copy(U,Y),Y+=this.length)),U}}}),G$=GY({"node_modules/asn1.js/lib/asn1/base/node.js"(H,W){var p$=YZ().Reporter,K=sQ().EncoderBuffer,G=sQ().DecoderBuffer,$=l0(),U=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],Y=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(U),F=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function O(z,c$,M){let h$={};this._baseState=h$,h$.name=M,h$.enc=z,h$.parent=c$||null,h$.children=null,h$.tag=null,h$.args=null,h$.reverseArgs=null,h$.choice=null,h$.optional=!1,h$.any=!1,h$.obj=!1,h$.use=null,h$.useDecoder=null,h$.key=null,h$.default=null,h$.explicit=null,h$.implicit=null,h$.contains=null,h$.parent||(h$.children=[],this._wrap())}W.exports=O;var f$=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];O.prototype.clone=function(){let z=this._baseState,c$={};f$.forEach(function(h$){c$[h$]=z[h$]});let M=new this.constructor(c$.parent);return M._baseState=c$,M},O.prototype._wrap=function(){let z=this._baseState;Y.forEach(function(c$){this[c$]=function(){let M=new this.constructor(this);return z.children.push(M),M[c$].apply(M,arguments)}},this)},O.prototype._init=function(z){let c$=this._baseState;$(c$.parent===null),z.call(this),c$.children=c$.children.filter(function(M){return M._baseState.parent===this},this),$.equal(c$.children.length,1,"Root node can have only one child")},O.prototype._useArgs=function(z){let c$=this._baseState,M=z.filter(function(h$){return h$ instanceof this.constructor},this);z=z.filter(function(h$){return!(h$ instanceof this.constructor)},this),M.length!==0&&($(c$.children===null),c$.children=M,M.forEach(function(h$){h$._baseState.parent=this},this)),z.length!==0&&($(c$.args===null),c$.args=z,c$.reverseArgs=z.map(function(h$){if(typeof h$!="object"||h$.constructor!==Object)return h$;let S={};return Object.keys(h$).forEach(function(d$){d$==(d$|0)&&(d$|=0);let v=h$[d$];S[v]=d$}),S}))},F.forEach(function(z){O.prototype[z]=function(){let c$=this._baseState;throw new Error(z+" not implemented for encoding: "+c$.enc)}}),U.forEach(function(z){O.prototype[z]=function(){let c$=this._baseState,M=Array.prototype.slice.call(arguments);return $(c$.tag===null),c$.tag=z,this._useArgs(M),this}}),O.prototype.use=function(z){$(z);let c$=this._baseState;return $(c$.use===null),c$.use=z,this},O.prototype.optional=function(){let z=this._baseState;return z.optional=!0,this},O.prototype.def=function(z){let c$=this._baseState;return $(c$.default===null),c$.default=z,c$.optional=!0,this},O.prototype.explicit=function(z){let c$=this._baseState;return $(c$.explicit===null&&c$.implicit===null),c$.explicit=z,this},O.prototype.implicit=function(z){let c$=this._baseState;return $(c$.explicit===null&&c$.implicit===null),c$.implicit=z,this},O.prototype.obj=function(){let z=this._baseState,c$=Array.prototype.slice.call(arguments);return z.obj=!0,c$.length!==0&&this._useArgs(c$),this},O.prototype.key=function(z){let c$=this._baseState;return $(c$.key===null),c$.key=z,this},O.prototype.any=function(){let z=this._baseState;return z.any=!0,this},O.prototype.choice=function(z){let c$=this._baseState;return $(c$.choice===null),c$.choice=z,this._useArgs(Object.keys(z).map(function(M){return z[M]})),this},O.prototype.contains=function(z){let c$=this._baseState;return $(c$.use===null),c$.contains=z,this},O.prototype._decode=function(z,c$){let M=this._baseState;if(M.parent===null)return z.wrapResult(M.children[0]._decode(z,c$));let h$=M.default,S=!0,d$=null;if(M.key!==null&&(d$=z.enterKey(M.key)),M.optional){let b$=null;if(M.explicit!==null?b$=M.explicit:M.implicit!==null?b$=M.implicit:M.tag!==null&&(b$=M.tag),b$===null&&!M.any){let q=z.save();try{M.choice===null?this._decodeGeneric(M.tag,z,c$):this._decodeChoice(z,c$),S=!0}catch{S=!1}z.restore(q)}else if(S=this._peekTag(z,b$,M.any),z.isError(S))return S}let v;if(M.obj&&S&&(v=z.enterObject()),S){if(M.explicit!==null){let q=this._decodeTag(z,M.explicit);if(z.isError(q))return q;z=q}let b$=z.offset;if(M.use===null&&M.choice===null){let q;M.any&&(q=z.save());let l$=this._decodeTag(z,M.implicit!==null?M.implicit:M.tag,M.any);if(z.isError(l$))return l$;M.any?h$=z.raw(q):z=l$}if(c$&&c$.track&&M.tag!==null&&c$.track(z.path(),b$,z.length,"tagged"),c$&&c$.track&&M.tag!==null&&c$.track(z.path(),z.offset,z.length,"content"),M.any||(M.choice===null?h$=this._decodeGeneric(M.tag,z,c$):h$=this._decodeChoice(z,c$)),z.isError(h$))return h$;if(!M.any&&M.choice===null&&M.children!==null&&M.children.forEach(function(q){q._decode(z,c$)}),M.contains&&(M.tag==="octstr"||M.tag==="bitstr")){let q=new G(h$);h$=this._getUse(M.contains,z._reporterState.obj)._decode(q,c$)}}return M.obj&&S&&(h$=z.leaveObject(v)),M.key!==null&&(h$!==null||S===!0)?z.leaveKey(d$,M.key,h$):d$!==null&&z.exitKey(d$),h$},O.prototype._decodeGeneric=function(z,c$,M){let h$=this._baseState;return z==="seq"||z==="set"?null:z==="seqof"||z==="setof"?this._decodeList(c$,z,h$.args[0],M):/str$/.test(z)?this._decodeStr(c$,z,M):z==="objid"&&h$.args?this._decodeObjid(c$,h$.args[0],h$.args[1],M):z==="objid"?this._decodeObjid(c$,null,null,M):z==="gentime"||z==="utctime"?this._decodeTime(c$,z,M):z==="null_"?this._decodeNull(c$,M):z==="bool"?this._decodeBool(c$,M):z==="objDesc"?this._decodeStr(c$,z,M):z==="int"||z==="enum"?this._decodeInt(c$,h$.args&&h$.args[0],M):h$.use!==null?this._getUse(h$.use,c$._reporterState.obj)._decode(c$,M):c$.error("unknown tag: "+z)},O.prototype._getUse=function(z,c$){let M=this._baseState;return M.useDecoder=this._use(z,c$),$(M.useDecoder._baseState.parent===null),M.useDecoder=M.useDecoder._baseState.children[0],M.implicit!==M.useDecoder._baseState.implicit&&(M.useDecoder=M.useDecoder.clone(),M.useDecoder._baseState.implicit=M.implicit),M.useDecoder},O.prototype._decodeChoice=function(z,c$){let M=this._baseState,h$=null,S=!1;return Object.keys(M.choice).some(function(d$){let v=z.save(),b$=M.choice[d$];try{let q=b$._decode(z,c$);if(z.isError(q))return!1;h$={type:d$,value:q},S=!0}catch{return z.restore(v),!1}return!0},this),S?h$:z.error("Choice not matched")},O.prototype._createEncoderBuffer=function(z){return new K(z,this.reporter)},O.prototype._encode=function(z,c$,M){let h$=this._baseState;if(h$.default!==null&&h$.default===z)return;let S=this._encodeValue(z,c$,M);if(S!==void 0&&!this._skipDefault(S,c$,M))return S},O.prototype._encodeValue=function(z,c$,M){let h$=this._baseState;if(h$.parent===null)return h$.children[0]._encode(z,c$||new p$);let S=null;if(this.reporter=c$,h$.optional&&z===void 0)if(h$.default!==null)z=h$.default;else return;let d$=null,v=!1;if(h$.any)S=this._createEncoderBuffer(z);else if(h$.choice)S=this._encodeChoice(z,c$);else if(h$.contains)d$=this._getUse(h$.contains,M)._encode(z,c$),v=!0;else if(h$.children)d$=h$.children.map(function(b$){if(b$._baseState.tag==="null_")return b$._encode(null,c$,z);if(b$._baseState.key===null)return c$.error("Child should have a key");let q=c$.enterKey(b$._baseState.key);if(typeof z!="object")return c$.error("Child expected, but input is not object");let l$=b$._encode(z[b$._baseState.key],c$,z);return c$.leaveKey(q),l$},this).filter(function(b$){return b$}),d$=this._createEncoderBuffer(d$);else if(h$.tag==="seqof"||h$.tag==="setof"){if(!(h$.args&&h$.args.length===1))return c$.error("Too many args for : "+h$.tag);if(!Array.isArray(z))return c$.error("seqof/setof, but data is not Array");let b$=this.clone();b$._baseState.implicit=null,d$=this._createEncoderBuffer(z.map(function(q){let l$=this._baseState;return this._getUse(l$.args[0],z)._encode(q,c$)},b$))}else h$.use!==null?S=this._getUse(h$.use,M)._encode(z,c$):(d$=this._encodePrimitive(h$.tag,z),v=!0);if(!h$.any&&h$.choice===null){let b$=h$.implicit!==null?h$.implicit:h$.tag,q=h$.implicit===null?"universal":"context";b$===null?h$.use===null&&c$.error("Tag could be omitted only for .use()"):h$.use===null&&(S=this._encodeComposite(b$,v,q,d$))}return h$.explicit!==null&&(S=this._encodeComposite(h$.explicit,!1,"context",S)),S},O.prototype._encodeChoice=function(z,c$){let M=this._baseState,h$=M.choice[z.type];return h$||$(!1,z.type+" not found in "+JSON.stringify(Object.keys(M.choice))),h$._encode(z.value,c$)},O.prototype._encodePrimitive=function(z,c$){let M=this._baseState;if(/str$/.test(z))return this._encodeStr(c$,z);if(z==="objid"&&M.args)return this._encodeObjid(c$,M.reverseArgs[0],M.args[1]);if(z==="objid")return this._encodeObjid(c$,null,null);if(z==="gentime"||z==="utctime")return this._encodeTime(c$,z);if(z==="null_")return this._encodeNull();if(z==="int"||z==="enum")return this._encodeInt(c$,M.args&&M.reverseArgs[0]);if(z==="bool")return this._encodeBool(c$);if(z==="objDesc")return this._encodeStr(c$,z);throw new Error("Unsupported tag: "+z)},O.prototype._isNumstr=function(z){return/^[0-9 ]*$/.test(z)},O.prototype._isPrintstr=function(z){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(z)}}}),ZZ=GY({"node_modules/asn1.js/lib/asn1/constants/der.js"(H){function W(p$){let K={};return Object.keys(p$).forEach(function(G){(G|0)==G&&(G=G|0);let $=p$[G];K[$]=G}),K}H.tagClass={0:"universal",1:"application",2:"context",3:"private"},H.tagClassByName=W(H.tagClass),H.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},H.tagByName=W(H.tag)}}),V$=GY({"node_modules/asn1.js/lib/asn1/encoders/der.js"(H,W){var p$=C0(),K=QZ().Buffer,G=G$(),$=ZZ();function U(f$){this.enc="der",this.name=f$.name,this.entity=f$,this.tree=new Y,this.tree._init(f$.body)}W.exports=U,U.prototype.encode=function(f$,z){return this.tree._encode(f$,z).join()};function Y(f$){G.call(this,"der",f$)}p$(Y,G),Y.prototype._encodeComposite=function(f$,z,c$,M){let h$=O(f$,z,c$,this.reporter);if(M.length<128){let v=K.alloc(2);return v[0]=h$,v[1]=M.length,this._createEncoderBuffer([v,M])}let S=1;for(let v=M.length;v>=256;v>>=8)S++;let d$=K.alloc(2+S);d$[0]=h$,d$[1]=128|S;for(let v=1+S,b$=M.length;b$>0;v--,b$>>=8)d$[v]=b$&255;return this._createEncoderBuffer([d$,M])},Y.prototype._encodeStr=function(f$,z){if(z==="bitstr")return this._createEncoderBuffer([f$.unused|0,f$.data]);if(z==="bmpstr"){let c$=K.alloc(f$.length*2);for(let M=0;M<f$.length;M++)c$.writeUInt16BE(f$.charCodeAt(M),M*2);return this._createEncoderBuffer(c$)}else return z==="numstr"?this._isNumstr(f$)?this._createEncoderBuffer(f$):this.reporter.error("Encoding of string type: numstr supports only digits and space"):z==="printstr"?this._isPrintstr(f$)?this._createEncoderBuffer(f$):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(z)?this._createEncoderBuffer(f$):z==="objDesc"?this._createEncoderBuffer(f$):this.reporter.error("Encoding of string type: "+z+" unsupported")},Y.prototype._encodeObjid=function(f$,z,c$){if(typeof f$=="string"){if(!z)return this.reporter.error("string objid given, but no values map found");if(!z.hasOwnProperty(f$))return this.reporter.error("objid not found in values map");f$=z[f$].split(/[\s.]+/g);for(let d$=0;d$<f$.length;d$++)f$[d$]|=0}else if(Array.isArray(f$)){f$=f$.slice();for(let d$=0;d$<f$.length;d$++)f$[d$]|=0}if(!Array.isArray(f$))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(f$));if(!c$){if(f$[1]>=40)return this.reporter.error("Second objid identifier OOB");f$.splice(0,2,f$[0]*40+f$[1])}let M=0;for(let d$=0;d$<f$.length;d$++){let v=f$[d$];for(M++;v>=128;v>>=7)M++}let h$=K.alloc(M),S=h$.length-1;for(let d$=f$.length-1;d$>=0;d$--){let v=f$[d$];for(h$[S--]=v&127;(v>>=7)>0;)h$[S--]=128|v&127}return this._createEncoderBuffer(h$)};function F(f$){return f$<10?"0"+f$:f$}Y.prototype._encodeTime=function(f$,z){let c$,M=new Date(f$);return z==="gentime"?c$=[F(M.getUTCFullYear()),F(M.getUTCMonth()+1),F(M.getUTCDate()),F(M.getUTCHours()),F(M.getUTCMinutes()),F(M.getUTCSeconds()),"Z"].join(""):z==="utctime"?c$=[F(M.getUTCFullYear()%100),F(M.getUTCMonth()+1),F(M.getUTCDate()),F(M.getUTCHours()),F(M.getUTCMinutes()),F(M.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+z+" time is not supported yet"),this._encodeStr(c$,"octstr")},Y.prototype._encodeNull=function(){return this._createEncoderBuffer("")},Y.prototype._encodeInt=function(f$,z){if(typeof f$=="string"){if(!z)return this.reporter.error("String int or enum given, but no values map");if(!z.hasOwnProperty(f$))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(f$));f$=z[f$]}if(typeof f$!="number"&&!K.isBuffer(f$)){let h$=f$.toArray();!f$.sign&&h$[0]&128&&h$.unshift(0),f$=K.from(h$)}if(K.isBuffer(f$)){let h$=f$.length;f$.length===0&&h$++;let S=K.alloc(h$);return f$.copy(S),f$.length===0&&(S[0]=0),this._createEncoderBuffer(S)}if(f$<128)return this._createEncoderBuffer(f$);if(f$<256)return this._createEncoderBuffer([0,f$]);let c$=1;for(let h$=f$;h$>=256;h$>>=8)c$++;let M=new Array(c$);for(let h$=M.length-1;h$>=0;h$--)M[h$]=f$&255,f$>>=8;return M[0]&128&&M.unshift(0),this._createEncoderBuffer(K.from(M))},Y.prototype._encodeBool=function(f$){return this._createEncoderBuffer(f$?255:0)},Y.prototype._use=function(f$,z){return typeof f$=="function"&&(f$=f$(z)),f$._getEncoder("der").tree},Y.prototype._skipDefault=function(f$,z,c$){let M=this._baseState,h$;if(M.default===null)return!1;let S=f$.join();if(M.defaultBuffer===void 0&&(M.defaultBuffer=this._encodeValue(M.default,z,c$).join()),S.length!==M.defaultBuffer.length)return!1;for(h$=0;h$<S.length;h$++)if(S[h$]!==M.defaultBuffer[h$])return!1;return!0};function O(f$,z,c$,M){let h$;if(f$==="seqof"?f$="seq":f$==="setof"&&(f$="set"),$.tagByName.hasOwnProperty(f$))h$=$.tagByName[f$];else if(typeof f$=="number"&&(f$|0)===f$)h$=f$;else return M.error("Unknown tag: "+f$);return h$>=31?M.error("Multi-octet tag encoding unsupported"):(z||(h$|=32),h$|=$.tagClassByName[c$||"universal"]<<6,h$)}}}),GZ=GY({"node_modules/asn1.js/lib/asn1/encoders/pem.js"(H,W){var p$=C0(),K=V$();function G($){K.call(this,$),this.enc="pem"}p$(G,K),W.exports=G,G.prototype.encode=function($,U){let Y=K.prototype.encode.call(this,$).toString("base64"),F=["-----BEGIN "+U.label+"-----"];for(let O=0;O<Y.length;O+=64)F.push(Y.slice(O,O+64));return F.push("-----END "+U.label+"-----"),F.join(`
+`)}}}),U$=GY({"node_modules/asn1.js/lib/asn1/encoders/index.js"(H){var W=H;W.der=V$(),W.pem=GZ()}}),VZ=GY({"node_modules/asn1.js/lib/asn1/decoders/der.js"(H,W){var p$=C0(),K=$Z(),G=sQ().DecoderBuffer,$=G$(),U=ZZ();function Y(z){this.enc="der",this.name=z.name,this.entity=z,this.tree=new F,this.tree._init(z.body)}W.exports=Y,Y.prototype.decode=function(z,c$){return G.isDecoderBuffer(z)||(z=new G(z,c$)),this.tree._decode(z,c$)};function F(z){$.call(this,"der",z)}p$(F,$),F.prototype._peekTag=function(z,c$,M){if(z.isEmpty())return!1;let h$=z.save(),S=O(z,'Failed to peek tag: "'+c$+'"');return z.isError(S)?S:(z.restore(h$),S.tag===c$||S.tagStr===c$||S.tagStr+"of"===c$||M)},F.prototype._decodeTag=function(z,c$,M){let h$=O(z,'Failed to decode tag of "'+c$+'"');if(z.isError(h$))return h$;let S=f$(z,h$.primitive,'Failed to get length of "'+c$+'"');if(z.isError(S))return S;if(!M&&h$.tag!==c$&&h$.tagStr!==c$&&h$.tagStr+"of"!==c$)return z.error('Failed to match tag: "'+c$+'"');if(h$.primitive||S!==null)return z.skip(S,'Failed to match body of: "'+c$+'"');let d$=z.save(),v=this._skipUntilEnd(z,'Failed to skip indefinite length body: "'+this.tag+'"');return z.isError(v)?v:(S=z.offset-d$.offset,z.restore(d$),z.skip(S,'Failed to match body of: "'+c$+'"'))},F.prototype._skipUntilEnd=function(z,c$){for(;;){let M=O(z,c$);if(z.isError(M))return M;let h$=f$(z,M.primitive,c$);if(z.isError(h$))return h$;let S;if(M.primitive||h$!==null?S=z.skip(h$):S=this._skipUntilEnd(z,c$),z.isError(S))return S;if(M.tagStr==="end")break}},F.prototype._decodeList=function(z,c$,M,h$){let S=[];for(;!z.isEmpty();){let d$=this._peekTag(z,"end");if(z.isError(d$))return d$;let v=M.decode(z,"der",h$);if(z.isError(v)&&d$)break;S.push(v)}return S},F.prototype._decodeStr=function(z,c$){if(c$==="bitstr"){let M=z.readUInt8();return z.isError(M)?M:{unused:M,data:z.raw()}}else if(c$==="bmpstr"){let M=z.raw();if(M.length%2===1)return z.error("Decoding of string type: bmpstr length mismatch");let h$="";for(let S=0;S<M.length/2;S++)h$+=String.fromCharCode(M.readUInt16BE(S*2));return h$}else if(c$==="numstr"){let M=z.raw().toString("ascii");return this._isNumstr(M)?M:z.error("Decoding of string type: numstr unsupported characters")}else{if(c$==="octstr")return z.raw();if(c$==="objDesc")return z.raw();if(c$==="printstr"){let M=z.raw().toString("ascii");return this._isPrintstr(M)?M:z.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(c$)?z.raw().toString():z.error("Decoding of string type: "+c$+" unsupported")}},F.prototype._decodeObjid=function(z,c$,M){let h$,S=[],d$=0,v=0;for(;!z.isEmpty();)v=z.readUInt8(),d$<<=7,d$|=v&127,(v&128)===0&&(S.push(d$),d$=0);v&128&&S.push(d$);let b$=S[0]/40|0,q=S[0]%40;if(M?h$=S:h$=[b$,q].concat(S.slice(1)),c$){let l$=c$[h$.join(" ")];l$===void 0&&(l$=c$[h$.join(".")]),l$!==void 0&&(h$=l$)}return h$},F.prototype._decodeTime=function(z,c$){let M=z.raw().toString(),h$,S,d$,v,b$,q;if(c$==="gentime")h$=M.slice(0,4)|0,S=M.slice(4,6)|0,d$=M.slice(6,8)|0,v=M.slice(8,10)|0,b$=M.slice(10,12)|0,q=M.slice(12,14)|0;else if(c$==="utctime")h$=M.slice(0,2)|0,S=M.slice(2,4)|0,d$=M.slice(4,6)|0,v=M.slice(6,8)|0,b$=M.slice(8,10)|0,q=M.slice(10,12)|0,h$<70?h$=2000+h$:h$=1900+h$;else return z.error("Decoding "+c$+" time is not supported yet");return Date.UTC(h$,S-1,d$,v,b$,q,0)},F.prototype._decodeNull=function(){return null},F.prototype._decodeBool=function(z){let c$=z.readUInt8();return z.isError(c$)?c$:c$!==0},F.prototype._decodeInt=function(z,c$){let M=z.raw(),h$=new K(M);return c$&&(h$=c$[h$.toString(10)]||h$),h$},F.prototype._use=function(z,c$){return typeof z=="function"&&(z=z(c$)),z._getDecoder("der").tree};function O(z,c$){let M=z.readUInt8(c$);if(z.isError(M))return M;let h$=U.tagClass[M>>6],S=(M&32)===0;if((M&31)===31){let v=M;for(M=0;(v&128)===128;){if(v=z.readUInt8(c$),z.isError(v))return v;M<<=7,M|=v&127}}else M&=31;let d$=U.tag[M];return{cls:h$,primitive:S,tag:M,tagStr:d$}}function f$(z,c$,M){let h$=z.readUInt8(M);if(z.isError(h$))return h$;if(!c$&&h$===128)return null;if((h$&128)===0)return h$;let S=h$&127;if(S>4)return z.error("length octect is too long");h$=0;for(let d$=0;d$<S;d$++){h$<<=8;let v=z.readUInt8(M);if(z.isError(v))return v;h$|=v}return h$}}}),X$=GY({"node_modules/asn1.js/lib/asn1/decoders/pem.js"(H,W){var p$=C0(),K=QZ().Buffer,G=VZ();function $(U){G.call(this,U),this.enc="pem"}p$($,G),W.exports=$,$.prototype.decode=function(U,Y){let F=U.toString().split(/[\r\n]+/g),O=Y.label.toUpperCase(),f$=/^-----(BEGIN|END) ([^-]+)-----$/,z=-1,c$=-1;for(let S=0;S<F.length;S++){let d$=F[S].match(f$);if(d$!==null&&d$[2]===O)if(z===-1){if(d$[1]!=="BEGIN")break;z=S}else{if(d$[1]!=="END")break;c$=S;break}}if(z===-1||c$===-1)throw new Error("PEM section not found for: "+O);let M=F.slice(z+1,c$).join("");M.replace(/[^a-z0-9+/=]+/gi,"");let h$=K.from(M,"base64");return G.prototype.decode.call(this,h$,Y)}}}),UZ=GY({"node_modules/asn1.js/lib/asn1/decoders/index.js"(H){var W=H;W.der=VZ(),W.pem=X$()}}),K$=GY({"node_modules/asn1.js/lib/asn1/api.js"(H){var W=U$(),p$=UZ(),K=C0(),G=H;G.define=function(U,Y){return new $(U,Y)};function $(U,Y){this.name=U,this.body=Y,this.decoders={},this.encoders={}}$.prototype._createNamed=function(U){let Y=this.name;function F(O){this._initNamed(O,Y)}return K(F,U),F.prototype._initNamed=function(O,f$){U.call(this,O,f$)},new F(this)},$.prototype._getDecoder=function(U){return U=U||"der",this.decoders.hasOwnProperty(U)||(this.decoders[U]=this._createNamed(p$[U])),this.decoders[U]},$.prototype.decode=function(U,Y,F){return this._getDecoder(Y).decode(U,F)},$.prototype._getEncoder=function(U){return U=U||"der",this.encoders.hasOwnProperty(U)||(this.encoders[U]=this._createNamed(W[U])),this.encoders[U]},$.prototype.encode=function(U,Y,F){return this._getEncoder(Y).encode(U,F)}}}),XZ=GY({"node_modules/asn1.js/lib/asn1/base/index.js"(H){var W=H;W.Reporter=YZ().Reporter,W.DecoderBuffer=sQ().DecoderBuffer,W.EncoderBuffer=sQ().EncoderBuffer,W.Node=G$()}}),I$=GY({"node_modules/asn1.js/lib/asn1/constants/index.js"(H){var W=H;W._reverse=function(p$){let K={};return Object.keys(p$).forEach(function(G){(G|0)==G&&(G=G|0);let $=p$[G];K[$]=G}),K},W.der=ZZ()}}),KZ=GY({"node_modules/asn1.js/lib/asn1.js"(H){var W=H;W.bignum=$Z(),W.define=K$().define,W.base=XZ(),W.constants=I$(),W.decoders=UZ(),W.encoders=U$()}}),O$=GY({"node_modules/parse-asn1/certificate.js"(H,W){var p$=KZ(),K=p$.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),G=p$.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),$=p$.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),U=p$.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use($),this.key("subjectPublicKey").bitstr())}),Y=p$.define("RelativeDistinguishedName",function(){this.setof(G)}),F=p$.define("RDNSequence",function(){this.seqof(Y)}),O=p$.define("Name",function(){this.choice({rdnSequence:this.use(F)})}),f$=p$.define("Validity",function(){this.seq().obj(this.key("notBefore").use(K),this.key("notAfter").use(K))}),z=p$.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),c$=p$.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use($),this.key("issuer").use(O),this.key("validity").use(f$),this.key("subject").use(O),this.key("subjectPublicKeyInfo").use(U),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(z).optional())}),M=p$.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(c$),this.key("signatureAlgorithm").use($),this.key("signatureValue").bitstr())});W.exports=M}}),IZ=GY({"node_modules/parse-asn1/asn1.js"(H){var W=KZ();H.certificate=O$();var p$=W.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});H.RSAPrivateKey=p$;var K=W.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});H.RSAPublicKey=K;var G=W.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use($),this.key("subjectPublicKey").bitstr())});H.PublicKey=G;var $=W.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),U=W.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use($),this.key("subjectPrivateKey").octstr())});H.PrivateKey=U;var Y=W.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});H.EncryptedPrivateKey=Y;var F=W.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});H.DSAPrivateKey=F,H.DSAparam=W.define("DSAparam",function(){this.int()});var O=W.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f$),this.key("publicKey").optional().explicit(1).bitstr())});H.ECPrivateKey=O;var f$=W.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});H.signature=W.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}}),J$=GY({"node_modules/parse-asn1/aesid.json"(H,W){W.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}}),OZ=GY({"node_modules/parse-asn1/fixProc.js"(H,W){var p$=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,K=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,G=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,$=gY(),U=xY(),Y=UY().Buffer;W.exports=function(F,O){var f$=F.toString(),z=f$.match(p$),c$;if(z){var M="aes"+z[1],h$=Y.from(z[2],"hex"),S=Y.from(z[3].replace(/[\r\n]/g,""),"base64"),d$=$(O,h$.slice(0,8),parseInt(z[1],10)).key,v=[],b$=U.createDecipheriv(M,d$,h$);v.push(b$.update(S)),v.push(b$.final()),c$=Y.concat(v)}else{var q=f$.match(G);c$=Y.from(q[2].replace(/[\r\n]/g,""),"base64")}var l$=f$.match(K)[1];return{tag:l$,data:c$}}}}),F$=GY({"node_modules/parse-asn1/index.js"(H,W){var p$=IZ(),K=J$(),G=OZ(),$=xY(),U=d0(),Y=UY().Buffer;W.exports=F;function F(f$){var z;typeof f$=="object"&&!Y.isBuffer(f$)&&(z=f$.passphrase,f$=f$.key),typeof f$=="string"&&(f$=Y.from(f$));var c$=G(f$,z),M=c$.tag,h$=c$.data,S,d$;switch(M){case"CERTIFICATE":d$=p$.certificate.decode(h$,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d$||(d$=p$.PublicKey.decode(h$,"der")),S=d$.algorithm.algorithm.join("."),S){case"1.2.840.113549.1.1.1":return p$.RSAPublicKey.decode(d$.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d$.subjectPrivateKey=d$.subjectPublicKey,{type:"ec",data:d$};case"1.2.840.10040.4.1":return d$.algorithm.params.pub_key=p$.DSAparam.decode(d$.subjectPublicKey.data,"der"),{type:"dsa",data:d$.algorithm.params};default:throw new Error("unknown key id "+S)}case"ENCRYPTED PRIVATE KEY":h$=p$.EncryptedPrivateKey.decode(h$,"der"),h$=O(h$,z);case"PRIVATE KEY":switch(d$=p$.PrivateKey.decode(h$,"der"),S=d$.algorithm.algorithm.join("."),S){case"1.2.840.113549.1.1.1":return p$.RSAPrivateKey.decode(d$.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d$.algorithm.curve,privateKey:p$.ECPrivateKey.decode(d$.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d$.algorithm.params.priv_key=p$.DSAparam.decode(d$.subjectPrivateKey,"der"),{type:"dsa",params:d$.algorithm.params};default:throw new Error("unknown key id "+S)}case"RSA PUBLIC KEY":return p$.RSAPublicKey.decode(h$,"der");case"RSA PRIVATE KEY":return p$.RSAPrivateKey.decode(h$,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:p$.DSAPrivateKey.decode(h$,"der")};case"EC PRIVATE KEY":return h$=p$.ECPrivateKey.decode(h$,"der"),{curve:h$.parameters.value,privateKey:h$.privateKey};default:throw new Error("unknown key type "+M)}}F.signature=p$.signature;function O(f$,z){var c$=f$.algorithm.decrypt.kde.kdeparams.salt,M=parseInt(f$.algorithm.decrypt.kde.kdeparams.iters.toString(),10),h$=K[f$.algorithm.decrypt.cipher.algo.join(".")],S=f$.algorithm.decrypt.cipher.iv,d$=f$.subjectPrivateKey,v=parseInt(h$.split("-")[1],10)/8,b$=U.pbkdf2Sync(z,c$,M,v,"sha1"),q=$.createDecipheriv(h$,b$,S),l$=[];return l$.push(q.update(d$)),l$.push(q.final()),Y.concat(l$)}}}),JZ=GY({"node_modules/browserify-sign/browser/curves.json"(H,W){W.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}}),A$=GY({"node_modules/browserify-sign/browser/sign.js"(H,W){var p$=UY().Buffer,K=y0(),G=pY(),$=Z$().ec,U=J(),Y=F$(),F=JZ();function O(b$,q,l$,j,o$){var k=Y(q);if(k.curve){if(j!=="ecdsa"&&j!=="ecdsa/rsa")throw new Error("wrong private key type");return f$(b$,k)}else if(k.type==="dsa"){if(j!=="dsa")throw new Error("wrong private key type");return z(b$,k,l$)}else if(j!=="rsa"&&j!=="ecdsa/rsa")throw new Error("wrong private key type");b$=p$.concat([o$,b$]);for(var u$=k.modulus.byteLength(),g=[0,1];b$.length+g.length+1<u$;)g.push(255);g.push(0);for(var n$=-1;++n$<b$.length;)g.push(b$[n$]);var _=G(g,k);return _}function f$(b$,q){var l$=F[q.curve.join(".")];if(!l$)throw new Error("unknown curve "+q.curve.join("."));var j=new $(l$),o$=j.keyFromPrivate(q.privateKey),k=o$.sign(b$);return p$.from(k.toDER())}function z(b$,q,l$){for(var j=q.params.priv_key,o$=q.params.p,k=q.params.q,u$=q.params.g,g=new U(0),n$,_=h$(b$,k).mod(k),s$=!1,N=M(j,k,b$,l$);s$===!1;)n$=d$(k,N,l$),g=v(u$,n$,o$,k),s$=n$.invm(k).imul(_.add(j.mul(g))).mod(k),s$.cmpn(0)===0&&(s$=!1,g=new U(0));return c$(g,s$)}function c$(b$,q){b$=b$.toArray(),q=q.toArray(),b$[0]&128&&(b$=[0].concat(b$)),q[0]&128&&(q=[0].concat(q));var l$=b$.length+q.length+4,j=[48,l$,2,b$.length];return j=j.concat(b$,[2,q.length],q),p$.from(j)}function M(b$,q,l$,j){if(b$=p$.from(b$.toArray()),b$.length<q.byteLength()){var o$=p$.alloc(q.byteLength()-b$.length);b$=p$.concat([o$,b$])}var k=l$.length,u$=S(l$,q),g=p$.alloc(k);g.fill(1);var n$=p$.alloc(k);return n$=K(j,n$).update(g).update(p$.from([0])).update(b$).update(u$).digest(),g=K(j,n$).update(g).digest(),n$=K(j,n$).update(g).update(p$.from([1])).update(b$).update(u$).digest(),g=K(j,n$).update(g).digest(),{k:n$,v:g}}function h$(b$,q){var l$=new U(b$),j=(b$.length<<3)-q.bitLength();return j>0&&l$.ishrn(j),l$}function S(b$,q){b$=h$(b$,q),b$=b$.mod(q);var l$=p$.from(b$.toArray());if(l$.length<q.byteLength()){var j=p$.alloc(q.byteLength()-l$.length);l$=p$.concat([j,l$])}return l$}function d$(b$,q,l$){var j,o$;do{for(j=p$.alloc(0);j.length*8<b$.bitLength();)q.v=K(l$,q.k).update(q.v).digest(),j=p$.concat([j,q.v]);o$=h$(j,b$),q.k=K(l$,q.k).update(q.v).update(p$.from([0])).digest(),q.v=K(l$,q.k).update(q.v).digest()}while(o$.cmp(b$)!==-1);return o$}function v(b$,q,l$,j){return b$.toRed(U.mont(l$)).redPow(q).fromRed().mod(j)}W.exports=O,W.exports.getKey=M,W.exports.makeKey=d$}}),FZ=GY({"node_modules/browserify-sign/browser/verify.js"(H,W){var p$=UY().Buffer,K=J(),G=Z$().ec,$=F$(),U=JZ();function Y(z,c$,M,h$,S){var d$=$(M);if(d$.type==="ec"){if(h$!=="ecdsa"&&h$!=="ecdsa/rsa")throw new Error("wrong public key type");return F(z,c$,d$)}else if(d$.type==="dsa"){if(h$!=="dsa")throw new Error("wrong public key type");return O(z,c$,d$)}else if(h$!=="rsa"&&h$!=="ecdsa/rsa")throw new Error("wrong public key type");c$=p$.concat([S,c$]);for(var v=d$.modulus.byteLength(),b$=[1],q=0;c$.length+b$.length+2<v;)b$.push(255),q++;b$.push(0);for(var l$=-1;++l$<c$.length;)b$.push(c$[l$]);b$=p$.from(b$);var j=K.mont(d$.modulus);z=new K(z).toRed(j),z=z.redPow(new K(d$.publicExponent)),z=p$.from(z.fromRed().toArray());var o$=q<8?1:0;for(v=Math.min(z.length,b$.length),z.length!==b$.length&&(o$=1),l$=-1;++l$<v;)o$|=z[l$]^b$[l$];return o$===0}function F(z,c$,M){var h$=U[M.data.algorithm.curve.join(".")];if(!h$)throw new Error("unknown curve "+M.data.algorithm.curve.join("."));var S=new G(h$),d$=M.data.subjectPrivateKey.data;return S.verify(c$,z,d$)}function O(z,c$,M){var h$=M.data.p,S=M.data.q,d$=M.data.g,v=M.data.pub_key,b$=$.signature.decode(z,"der"),q=b$.s,l$=b$.r;f$(q,S),f$(l$,S);var j=K.mont(h$),o$=q.invm(S),k=d$.toRed(j).redPow(new K(c$).mul(o$).mod(S)).fromRed().mul(v.toRed(j).redPow(l$.mul(o$).mod(S)).fromRed()).mod(h$).mod(S);return k.cmp(l$)===0}function f$(z,c$){if(z.cmpn(0)<=0)throw new Error("invalid sig");if(z.cmp(c$)>=c$)throw new Error("invalid sig")}W.exports=Y}}),H$=GY({"node_modules/browserify-sign/browser/index.js"(H,W){var p$=UY().Buffer,K=N0(),G=C0(),$=A$(),U=FZ(),Y=w0();Object.keys(Y).forEach(function(c$){Y[c$].id=p$.from(Y[c$].id,"hex"),Y[c$.toLowerCase()]=Y[c$]});function F(c$){oQ.Writable.call(this);var M=Y[c$];if(!M)throw new Error("Unknown message digest");this._hashType=M.hash,this._hash=K(M.hash),this._tag=M.id,this._signType=M.sign}G(F,oQ.Writable),F.prototype._write=function(c$,M,h$){this._hash.update(c$),h$()},F.prototype.update=function(c$,M){return typeof c$=="string"&&(c$=p$.from(c$,M)),this._hash.update(c$),this},F.prototype.sign=function(c$,M){this.end();var h$=this._hash.digest(),S=$(h$,c$,this._hashType,this._signType,this._tag);return M?S.toString(M):S};function O(c$){oQ.Writable.call(this);var M=Y[c$];if(!M)throw new Error("Unknown message digest");this._hash=K(M.hash),this._tag=M.id,this._signType=M.sign}G(O,oQ.Writable),O.prototype._write=function(c$,M,h$){this._hash.update(c$),h$()},O.prototype.update=function(c$,M){return typeof c$=="string"&&(c$=p$.from(c$,M)),this._hash.update(c$),this},O.prototype.verify=function(c$,M,h$){typeof M=="string"&&(M=p$.from(M,h$)),this.end();var S=this._hash.digest();return U(M,S,c$,this._signType,this._tag)};function f$(c$){return new F(c$)}function z(c$){return new O(c$)}W.exports={Sign:f$,Verify:z,createSign:f$,createVerify:z}}}),AZ=GY({"node_modules/create-ecdh/node_modules/bn.js/lib/bn.js"(H,W){(function(p$,K){function G(s$,N){if(!s$)throw new Error(N||"Assertion failed")}function $(s$,N){s$.super_=N;var t$=function(){};t$.prototype=N.prototype,s$.prototype=new t$,s$.prototype.constructor=s$}function U(s$,N,t$){if(U.isBN(s$))return s$;this.negative=0,this.words=null,this.length=0,this.red=null,s$!==null&&((N==="le"||N==="be")&&(t$=N,N=10),this._init(s$||0,N||10,t$||"be"))}typeof p$=="object"?p$.exports=U:K.BN=U,U.BN=U,U.wordSize=26;var Y=lQ;U.isBN=function(s$){return s$ instanceof U?!0:s$!==null&&typeof s$=="object"&&s$.constructor.wordSize===U.wordSize&&Array.isArray(s$.words)},U.max=function(s$,N){return s$.cmp(N)>0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x<s$.length&&(N===16?this._parseHex(s$,x,t$):(this._parseBase(s$,N,x),t$==="le"&&this._initArray(this.toArray(),N,t$)))},U.prototype._initNumber=function(s$,N,t$){s$<0&&(this.negative=1,s$=-s$),s$<67108864?(this.words=[s$&67108863],this.length=1):s$<4503599627370496?(this.words=[s$&67108863,s$/67108864&67108863],this.length=2):(G(s$<9007199254740992),this.words=[s$&67108863,s$/67108864&67108863,1],this.length=3),t$==="le"&&this._initArray(this.toArray(),N,t$)},U.prototype._initArray=function(s$,N,t$){if(G(typeof s$.length=="number"),s$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s$.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$,B,a$=0;if(t$==="be")for(x=s$.length-1,m$=0;x>=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x<s$.length;x+=3)B=s$[x]|s$[x+1]<<8|s$[x+2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$=0,B=0,a$;if(t$==="be")for(x=s$.length-1;x>=N;x-=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x<s$.length;x+=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$<B;a$++){var y=s$.charCodeAt(a$)-48;m$*=x,y>=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w<y;w+=x)e$=f$(s$,w,w+x,N),this.imuln(m$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$);if(a$!==0){var r$=1;for(e$=f$(s$,w,s$.length,N),w=0;w<a$;w++)r$*=N;this.imuln(r$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$)}this.strip()},U.prototype.copy=function(s$){s$.words=new Array(this.length);for(var N=0;N<this.length;N++)s$.words[N]=this.words[N];s$.length=this.length,s$.negative=this.negative,s$.red=this.red},U.prototype.clone=function(){var s$=new U(null);return this.copy(s$),s$},U.prototype._expand=function(s$){for(;this.length<s$;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var z=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c$=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B<this.length;B++){var a$=this.words[B],y=((a$<<x|m$)&16777215).toString(16);m$=a$>>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$<m$;e$++)a$[e$]=0}else{for(e$=0;e$<m$-x;e$++)a$[e$]=0;for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[m$-e$-1]=y}return a$},Math.clz32?U.prototype._countBits=function(s$){return 32-Math.clz32(s$)}:U.prototype._countBits=function(s$){var N=s$,t$=0;return N>=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$<N.length;t$++){var x=t$/26|0,m$=t$%26;N[t$]=(s$.words[x]&1<<m$)>>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;N<this.length;N++){var t$=this._zeroBits(this.words[N]);if(s$+=t$,t$!==26)break}return s$},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(s$){return this.negative!==0?this.abs().inotn(s$).iaddn(1):this.clone()},U.prototype.fromTwos=function(s$){return this.testn(s$-1)?this.notn(s$).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(s$){for(;this.length<s$.length;)this.words[this.length++]=0;for(var N=0;N<s$.length;N++)this.words[N]=this.words[N]|s$.words[N];return this.strip()},U.prototype.ior=function(s$){return G((this.negative|s$.negative)===0),this.iuor(s$)},U.prototype.or=function(s$){return this.length>s$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$<N.length;t$++)this.words[t$]=this.words[t$]&s$.words[t$];return this.length=N.length,this.strip()},U.prototype.iand=function(s$){return G((this.negative|s$.negative)===0),this.iuand(s$)},U.prototype.and=function(s$){return this.length>s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;x<t$.length;x++)this.words[x]=N.words[x]^t$.words[x];if(this!==N)for(;x<N.length;x++)this.words[x]=N.words[x];return this.length=N.length,this.strip()},U.prototype.ixor=function(s$){return G((this.negative|s$.negative)===0),this.iuxor(s$)},U.prototype.xor=function(s$){return this.length>s$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x<N;x++)this.words[x]=~this.words[x]&67108863;return t$>0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<<x:this.words[t$]=this.words[t$]&~(1<<x),this.strip()},U.prototype.iadd=function(s$){var N;if(this.negative!==0&&s$.negative===0)return this.negative=0,N=this.isub(s$),this.negative^=1,this._normSign();if(this.negative===0&&s$.negative!==0)return s$.negative=0,N=this.isub(s$),s$.negative=1,N._normSign();var t$,x;this.length>s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B<x.length;B++)N=(t$.words[B]|0)+(x.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;for(;m$!==0&&B<t$.length;B++)N=(t$.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;B<t$.length;B++)this.words[B]=t$.words[B];return this},U.prototype.add=function(s$){var N;return s$.negative!==0&&this.negative===0?(s$.negative=0,N=this.sub(s$),s$.negative^=1,N):s$.negative===0&&this.negative!==0?(this.negative=0,N=s$.sub(this),this.negative=1,N):this.length>s$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$<m$.length;a$++)N=(x.words[a$]|0)-(m$.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;for(;B!==0&&a$<x.length;a$++)N=(x.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;if(B===0&&a$<x.length&&x!==this)for(;a$<x.length;a$++)this.words[a$]=x.words[a$];return this.length=Math.max(this.length,a$),x!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(s$){return this.clone().isub(s$)};function S(s$,N,t$){t$.negative=N.negative^s$.negative;var x=s$.length+N.length|0;t$.length=x,x=x-1|0;var m$=s$.words[0]|0,B=N.words[0]|0,a$=m$*B,y=a$&67108863,e$=a$/67108864|0;t$.words[0]=y;for(var w=1;w<x;w++){for(var r$=e$>>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B<t$.length-1;B++){var a$=m$;m$=0;for(var y=x&67108863,e$=Math.min(B,N.length-1),w=Math.max(0,B-s$.length+1);w<=e$;w++){var r$=B-w,E=s$.words[r$]|0,i$=N.words[w]|0,p=E*i$,$Q=p&67108863;a$=a$+(p/67108864|0)|0,$Q=$Q+y|0,y=$Q&67108863,a$=a$+($Q>>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x<s$;x++)N[x]=this.revBin(x,t$,s$);return N},q.prototype.revBin=function(s$,N,t$){if(s$===0||s$===t$-1)return s$;for(var x=0,m$=0;m$<N;m$++)x|=(s$&1)<<N-m$-1,s$>>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$<B;a$++)x[a$]=N[s$[a$]],m$[a$]=t$[s$[a$]]},q.prototype.transform=function(s$,N,t$,x,m$,B){this.permute(B,s$,N,t$,x,m$);for(var a$=1;a$<m$;a$<<=1)for(var y=a$<<1,e$=Math.cos(2*Math.PI/y),w=Math.sin(2*Math.PI/y),r$=0;r$<m$;r$+=y)for(var E=e$,i$=w,p=0;p<a$;p++){var $Q=t$[r$+p],f=x[r$+p],QQ=t$[r$+p+a$],c=x[r$+p+a$],YQ=E*QQ-i$*c;c=E*c+i$*QQ,QQ=YQ,t$[r$+p]=$Q+QQ,x[r$+p]=f+c,t$[r$+p+a$]=$Q-QQ,x[r$+p+a$]=f-c,p!==y&&(YQ=e$*E-w*i$,i$=e$*i$+w*E,E=YQ)}},q.prototype.guessLen13b=function(s$,N){var t$=Math.max(N,s$)|1,x=t$&1,m$=0;for(t$=t$/2|0;t$;t$=t$>>>1)m$++;return 1<<m$+1+x},q.prototype.conjugate=function(s$,N,t$){if(!(t$<=1))for(var x=0;x<t$/2;x++){var m$=s$[x];s$[x]=s$[t$-x-1],s$[t$-x-1]=m$,m$=N[x],N[x]=-N[t$-x-1],N[t$-x-1]=-m$}},q.prototype.normalize13b=function(s$,N){for(var t$=0,x=0;x<N/2;x++){var m$=Math.round(s$[2*x+1]/N)*8192+Math.round(s$[2*x]/N)+t$;s$[x]=m$&67108863,m$<67108864?t$=0:t$=m$/67108864|0}return s$},q.prototype.convert13b=function(s$,N,t$,x){for(var m$=0,B=0;B<N;B++)m$=m$+(s$[B]|0),t$[2*B]=m$&8191,m$=m$>>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B<x;++B)t$[B]=0;G(m$===0),G((m$&-8192)===0)},q.prototype.stub=function(s$){for(var N=new Array(s$),t$=0;t$<s$;t$++)N[t$]=0;return N},q.prototype.mulp=function(s$,N,t$){var x=2*this.guessLen13b(s$.length,N.length),m$=this.makeRBT(x),B=this.stub(x),a$=new Array(x),y=new Array(x),e$=new Array(x),w=new Array(x),r$=new Array(x),E=new Array(x),i$=t$.words;i$.length=x,this.convert13b(s$.words,s$.length,a$,x),this.convert13b(N.words,N.length,w,x),this.transform(a$,B,y,e$,x,m$),this.transform(w,B,r$,E,x,m$);for(var p=0;p<x;p++){var $Q=y[p]*r$[p]-e$[p]*E[p];e$[p]=y[p]*E[p]+e$[p]*r$[p],y[p]=$Q}return this.conjugate(y,e$,x),this.transform(y,e$,i$,B,x,m$),this.conjugate(i$,B,x),this.normalize13b(i$,x),t$.negative=s$.negative^N.negative,t$.length=s$.length+N.length,t$.strip()},U.prototype.mul=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),this.mulTo(s$,N)},U.prototype.mulf=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),b$(this,s$,N)},U.prototype.imul=function(s$){return this.clone().mulTo(s$,this)},U.prototype.imuln=function(s$){G(typeof s$=="number"),G(s$<67108864);for(var N=0,t$=0;t$<this.length;t$++){var x=(this.words[t$]|0)*s$,m$=(x&67108863)+(N&67108863);N>>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x<N.length&&N[x]===0;x++,t$=t$.sqr());if(++x<N.length)for(var m$=t$.sqr();x<N.length;x++,m$=m$.sqr())N[x]!==0&&(t$=t$.mul(m$));return t$},U.prototype.iushln=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$<this.length;m$++){var a$=this.words[m$]&x,y=(this.words[m$]|0)-a$<<N;this.words[m$]=y|B,B=a$>>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$<t$;m$++)this.words[m$]=0;this.length+=t$}return this.strip()},U.prototype.ishln=function(s$){return G(this.negative===0),this.iushln(s$)},U.prototype.iushrn=function(s$,N,t$){G(typeof s$=="number"&&s$>=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<<m$,y=t$;if(x-=B,x=Math.max(0,x),y){for(var e$=0;e$<B;e$++)y.words[e$]=this.words[e$];y.length=B}if(B!==0)if(this.length>B)for(this.length-=B,e$=0;e$<this.length;e$++)this.words[e$]=this.words[e$+B];else this.words[0]=0,this.length=1;var w=0;for(e$=this.length-1;e$>=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return!1;var m$=this.words[t$];return!!(m$&x)},U.prototype.imaskn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<<N;this.words[this.length-1]&=x}return this.strip()},U.prototype.maskn=function(s$){return this.clone().imaskn(s$)},U.prototype.iaddn=function(s$){return G(typeof s$=="number"),G(s$<67108864),s$<0?this.isubn(-s$):this.negative!==0?this.length===1&&(this.words[0]|0)<s$?(this.words[0]=s$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s$),this.negative=1,this):this._iaddn(s$)},U.prototype._iaddn=function(s$){this.words[0]+=s$;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this.strip()},U.prototype.addn=function(s$){return this.clone().iaddn(s$)},U.prototype.subn=function(s$){return this.clone().isubn(s$)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(s$,N,t$){var x=s$.length+t$,m$;this._expand(x);var B,a$=0;for(m$=0;m$<s$.length;m$++){B=(this.words[m$+t$]|0)+a$;var y=(s$.words[m$]|0)*N;B-=y&67108863,a$=(B>>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$<this.length-t$;m$++)B=(this.words[m$+t$]|0)+a$,a$=B>>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$<this.length;m$++)B=-(this.words[m$]|0)+a$,a$=B>>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w<e$.length;w++)e$.words[w]=0}var r$=x.clone()._ishlnsubmul(m$,1,y);r$.negative===0&&(x=r$,e$&&(e$.words[y]=1));for(var E=y-1;E>=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return this._expand(t$+1),this.words[t$]|=x,this;for(var m$=x,B=t$;m$!==0&&B<this.length;B++){var a$=this.words[B]|0;a$+=m$,m$=a$>>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:x<s$?-1:1}return this.negative!==0?-t$|0:t$},U.prototype.cmp=function(s$){if(this.negative!==0&&s$.negative===0)return-1;if(this.negative===0&&s$.negative!==0)return 1;var N=this.ucmp(s$);return this.negative!==0?-N|0:N},U.prototype.ucmp=function(s$){if(this.length>s$.length)return 1;if(this.length<s$.length)return-1;for(var N=0,t$=this.length-1;t$>=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){x<m$?N=-1:x>m$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$<this.n?-1:N.ucmp(this.p);return x===0?(N.words[0]=0,N.length=1):x>0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$<x;m$++)N.words[m$]=s$.words[m$];if(N.length=x,s$.length<=9){s$.words[0]=0,s$.length=1;return}var B=s$.words[9];for(N.words[N.length++]=B&t$,m$=10;m$<s$.length;m$++){var a$=s$.words[m$]|0;s$.words[m$-10]=(a$&t$)<<4|B>>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$<s$.length;t$++){var x=s$.words[t$]|0;N+=x*977,s$.words[t$]=N&67108863,N=x*64+(N/67108864|0)}return s$.words[s$.length-1]===0&&(s$.length--,s$.words[s$.length-1]===0&&s$.length--),s$};function k(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$(k,j);function u$(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$(u$,j);function g(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$(g,j),g.prototype.imulK=function(s$){for(var N=0,t$=0;t$<s$.length;t$++){var x=(s$.words[t$]|0)*19+N,m$=x&67108863;x>>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q<i$);var f=this.pow(w,new U(1).iushln(i$-$Q-1));r$=r$.redMul(f),w=f.redSqr(),E=E.redMul(w),i$=$Q}return r$},n$.prototype.invm=function(s$){var N=s$._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},n$.prototype.pow=function(s$,N){if(N.isZero())return new U(1).toRed(this);if(N.cmpn(1)===0)return s$.clone();var t$=4,x=new Array(1<<t$);x[0]=new U(1).toRed(this),x[1]=s$;for(var m$=2;m$<x.length;m$++)x[m$]=this.mul(x[m$-1],s$);var B=x[0],a$=0,y=0,e$=N.bitLength()%26;for(e$===0&&(e$=26),m$=N.length-1;m$>=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),W$=GY({"node_modules/create-ecdh/browser.js"(H,W){var p$=Z$(),K=AZ();W.exports=function(Y){return new $(Y)};var G={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};G.p224=G.secp224r1,G.p256=G.secp256r1=G.prime256v1,G.p192=G.secp192r1=G.prime192v1,G.p384=G.secp384r1,G.p521=G.secp521r1;function $(Y){this.curveType=G[Y],this.curveType||(this.curveType={name:Y}),this.curve=new p$.ec(this.curveType.name),this.keys=void 0}$.prototype.generateKeys=function(Y,F){return this.keys=this.curve.genKeyPair(),this.getPublicKey(Y,F)},$.prototype.computeSecret=function(Y,F,O){F=F||"utf8",lQ.isBuffer(Y)||(Y=new lQ(Y,F));var f$=this.curve.keyFromPublic(Y).getPublic(),z=f$.mul(this.keys.getPrivate()).getX();return U(z,O,this.curveType.byteLength)},$.prototype.getPublicKey=function(Y,F){var O=this.keys.getPublic(F==="compressed",!0);return F==="hybrid"&&(O[O.length-1]%2?O[0]=7:O[0]=6),U(O,Y)},$.prototype.getPrivateKey=function(Y){return U(this.keys.getPrivate(),Y)},$.prototype.setPublicKey=function(Y,F){return F=F||"utf8",lQ.isBuffer(Y)||(Y=new lQ(Y,F)),this.keys._importPublic(Y),this},$.prototype.setPrivateKey=function(Y,F){F=F||"utf8",lQ.isBuffer(Y)||(Y=new lQ(Y,F));var O=new K(Y);return O=O.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(O),this};function U(Y,F,O){Array.isArray(Y)||(Y=Y.toArray());var f$=new lQ(Y);if(O&&f$.length<O){var z=new lQ(O-f$.length);z.fill(0),f$=lQ.concat([z,f$])}return F?f$.toString(F):f$}}}),HZ=GY({"node_modules/public-encrypt/mgf.js"(H,W){var p$=N0(),K=UY().Buffer;W.exports=function($,U){for(var Y=K.alloc(0),F=0,O;Y.length<U;)O=G(F++),Y=K.concat([Y,p$("sha1").update($).update(O).digest()]);return Y.slice(0,U)};function G($){var U=K.allocUnsafe(4);return U.writeUInt32BE($,0),U}}}),E$=GY({"node_modules/public-encrypt/xor.js"(H,W){W.exports=function(p$,K){for(var G=p$.length,$=-1;++$<G;)p$[$]^=K[$];return p$}}}),WZ=GY({"node_modules/public-encrypt/node_modules/bn.js/lib/bn.js"(H,W){(function(p$,K){function G(s$,N){if(!s$)throw new Error(N||"Assertion failed")}function $(s$,N){s$.super_=N;var t$=function(){};t$.prototype=N.prototype,s$.prototype=new t$,s$.prototype.constructor=s$}function U(s$,N,t$){if(U.isBN(s$))return s$;this.negative=0,this.words=null,this.length=0,this.red=null,s$!==null&&((N==="le"||N==="be")&&(t$=N,N=10),this._init(s$||0,N||10,t$||"be"))}typeof p$=="object"?p$.exports=U:K.BN=U,U.BN=U,U.wordSize=26;var Y=globalThis.Buffer;U.isBN=function(s$){return s$ instanceof U?!0:s$!==null&&typeof s$=="object"&&s$.constructor.wordSize===U.wordSize&&Array.isArray(s$.words)},U.max=function(s$,N){return s$.cmp(N)>0?s$:N},U.min=function(s$,N){return s$.cmp(N)<0?s$:N},U.prototype._init=function(s$,N,t$){if(typeof s$=="number")return this._initNumber(s$,N,t$);if(typeof s$=="object")return this._initArray(s$,N,t$);N==="hex"&&(N=16),G(N===(N|0)&&N>=2&&N<=36),s$=s$.toString().replace(/\s+/g,"");var x=0;s$[0]==="-"&&(x++,this.negative=1),x<s$.length&&(N===16?this._parseHex(s$,x,t$):(this._parseBase(s$,N,x),t$==="le"&&this._initArray(this.toArray(),N,t$)))},U.prototype._initNumber=function(s$,N,t$){s$<0&&(this.negative=1,s$=-s$),s$<67108864?(this.words=[s$&67108863],this.length=1):s$<4503599627370496?(this.words=[s$&67108863,s$/67108864&67108863],this.length=2):(G(s$<9007199254740992),this.words=[s$&67108863,s$/67108864&67108863,1],this.length=3),t$==="le"&&this._initArray(this.toArray(),N,t$)},U.prototype._initArray=function(s$,N,t$){if(G(typeof s$.length=="number"),s$.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(s$.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$,B,a$=0;if(t$==="be")for(x=s$.length-1,m$=0;x>=0;x-=3)B=s$[x]|s$[x-1]<<8|s$[x-2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);else if(t$==="le")for(x=0,m$=0;x<s$.length;x+=3)B=s$[x]|s$[x+1]<<8|s$[x+2]<<16,this.words[m$]|=B<<a$&67108863,this.words[m$+1]=B>>>26-a$&67108863,a$+=24,a$>=26&&(a$-=26,m$++);return this.strip()};function F(s$,N){var t$=s$.charCodeAt(N);return t$>=65&&t$<=70?t$-55:t$>=97&&t$<=102?t$-87:t$-48&15}function O(s$,N,t$){var x=F(s$,t$);return t$-1>=N&&(x|=F(s$,t$-1)<<4),x}U.prototype._parseHex=function(s$,N,t$){this.length=Math.ceil((s$.length-N)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var m$=0,B=0,a$;if(t$==="be")for(x=s$.length-1;x>=N;x-=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8;else{var y=s$.length-N;for(x=y%2===0?N+1:N;x<s$.length;x+=2)a$=O(s$,N,x)<<m$,this.words[B]|=a$&67108863,m$>=18?(m$-=18,B+=1,this.words[B]|=a$>>>26):m$+=8}this.strip()};function f$(s$,N,t$,x){for(var m$=0,B=Math.min(s$.length,t$),a$=N;a$<B;a$++){var y=s$.charCodeAt(a$)-48;m$*=x,y>=49?m$+=y-49+10:y>=17?m$+=y-17+10:m$+=y}return m$}U.prototype._parseBase=function(s$,N,t$){this.words=[0],this.length=1;for(var x=0,m$=1;m$<=67108863;m$*=N)x++;x--,m$=m$/N|0;for(var B=s$.length-t$,a$=B%x,y=Math.min(B,B-a$)+t$,e$=0,w=t$;w<y;w+=x)e$=f$(s$,w,w+x,N),this.imuln(m$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$);if(a$!==0){var r$=1;for(e$=f$(s$,w,s$.length,N),w=0;w<a$;w++)r$*=N;this.imuln(r$),this.words[0]+e$<67108864?this.words[0]+=e$:this._iaddn(e$)}this.strip()},U.prototype.copy=function(s$){s$.words=new Array(this.length);for(var N=0;N<this.length;N++)s$.words[N]=this.words[N];s$.length=this.length,s$.negative=this.negative,s$.red=this.red},U.prototype.clone=function(){var s$=new U(null);return this.copy(s$),s$},U.prototype._expand=function(s$){for(;this.length<s$;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var z=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c$=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(s$,N){s$=s$||10,N=N|0||1;var t$;if(s$===16||s$==="hex"){t$="";for(var x=0,m$=0,B=0;B<this.length;B++){var a$=this.words[B],y=((a$<<x|m$)&16777215).toString(16);m$=a$>>>24-x&16777215,m$!==0||B!==this.length-1?t$=z[6-y.length]+y+t$:t$=y+t$,x+=2,x>=26&&(x-=26,B--)}for(m$!==0&&(t$=m$.toString(16)+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}if(s$===(s$|0)&&s$>=2&&s$<=36){var e$=c$[s$],w=M[s$];t$="";var r$=this.clone();for(r$.negative=0;!r$.isZero();){var E=r$.modn(w).toString(s$);r$=r$.idivn(w),r$.isZero()?t$=E+t$:t$=z[e$-E.length]+E+t$}for(this.isZero()&&(t$="0"+t$);t$.length%N!==0;)t$="0"+t$;return this.negative!==0&&(t$="-"+t$),t$}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var s$=this.words[0];return this.length===2?s$+=this.words[1]*67108864:this.length===3&&this.words[2]===1?s$+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-s$:s$},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(s$,N){return G(typeof Y<"u"),this.toArrayLike(Y,s$,N)},U.prototype.toArray=function(s$,N){return this.toArrayLike(Array,s$,N)},U.prototype.toArrayLike=function(s$,N,t$){var x=this.byteLength(),m$=t$||Math.max(1,x);G(x<=m$,"byte array longer than desired length"),G(m$>0,"Requested array length <= 0"),this.strip();var B=N==="le",a$=new s$(m$),y,e$,w=this.clone();if(B){for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[e$]=y;for(;e$<m$;e$++)a$[e$]=0}else{for(e$=0;e$<m$-x;e$++)a$[e$]=0;for(e$=0;!w.isZero();e$++)y=w.andln(255),w.iushrn(8),a$[m$-e$-1]=y}return a$},Math.clz32?U.prototype._countBits=function(s$){return 32-Math.clz32(s$)}:U.prototype._countBits=function(s$){var N=s$,t$=0;return N>=4096&&(t$+=13,N>>>=13),N>=64&&(t$+=7,N>>>=7),N>=8&&(t$+=4,N>>>=4),N>=2&&(t$+=2,N>>>=2),t$+N},U.prototype._zeroBits=function(s$){if(s$===0)return 26;var N=s$,t$=0;return(N&8191)===0&&(t$+=13,N>>>=13),(N&127)===0&&(t$+=7,N>>>=7),(N&15)===0&&(t$+=4,N>>>=4),(N&3)===0&&(t$+=2,N>>>=2),(N&1)===0&&t$++,t$},U.prototype.bitLength=function(){var s$=this.words[this.length-1],N=this._countBits(s$);return(this.length-1)*26+N};function h$(s$){for(var N=new Array(s$.bitLength()),t$=0;t$<N.length;t$++){var x=t$/26|0,m$=t$%26;N[t$]=(s$.words[x]&1<<m$)>>>m$}return N}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var s$=0,N=0;N<this.length;N++){var t$=this._zeroBits(this.words[N]);if(s$+=t$,t$!==26)break}return s$},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(s$){return this.negative!==0?this.abs().inotn(s$).iaddn(1):this.clone()},U.prototype.fromTwos=function(s$){return this.testn(s$-1)?this.notn(s$).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(s$){for(;this.length<s$.length;)this.words[this.length++]=0;for(var N=0;N<s$.length;N++)this.words[N]=this.words[N]|s$.words[N];return this.strip()},U.prototype.ior=function(s$){return G((this.negative|s$.negative)===0),this.iuor(s$)},U.prototype.or=function(s$){return this.length>s$.length?this.clone().ior(s$):s$.clone().ior(this)},U.prototype.uor=function(s$){return this.length>s$.length?this.clone().iuor(s$):s$.clone().iuor(this)},U.prototype.iuand=function(s$){var N;this.length>s$.length?N=s$:N=this;for(var t$=0;t$<N.length;t$++)this.words[t$]=this.words[t$]&s$.words[t$];return this.length=N.length,this.strip()},U.prototype.iand=function(s$){return G((this.negative|s$.negative)===0),this.iuand(s$)},U.prototype.and=function(s$){return this.length>s$.length?this.clone().iand(s$):s$.clone().iand(this)},U.prototype.uand=function(s$){return this.length>s$.length?this.clone().iuand(s$):s$.clone().iuand(this)},U.prototype.iuxor=function(s$){var N,t$;this.length>s$.length?(N=this,t$=s$):(N=s$,t$=this);for(var x=0;x<t$.length;x++)this.words[x]=N.words[x]^t$.words[x];if(this!==N)for(;x<N.length;x++)this.words[x]=N.words[x];return this.length=N.length,this.strip()},U.prototype.ixor=function(s$){return G((this.negative|s$.negative)===0),this.iuxor(s$)},U.prototype.xor=function(s$){return this.length>s$.length?this.clone().ixor(s$):s$.clone().ixor(this)},U.prototype.uxor=function(s$){return this.length>s$.length?this.clone().iuxor(s$):s$.clone().iuxor(this)},U.prototype.inotn=function(s$){G(typeof s$=="number"&&s$>=0);var N=Math.ceil(s$/26)|0,t$=s$%26;this._expand(N),t$>0&&N--;for(var x=0;x<N;x++)this.words[x]=~this.words[x]&67108863;return t$>0&&(this.words[x]=~this.words[x]&67108863>>26-t$),this.strip()},U.prototype.notn=function(s$){return this.clone().inotn(s$)},U.prototype.setn=function(s$,N){G(typeof s$=="number"&&s$>=0);var t$=s$/26|0,x=s$%26;return this._expand(t$+1),N?this.words[t$]=this.words[t$]|1<<x:this.words[t$]=this.words[t$]&~(1<<x),this.strip()},U.prototype.iadd=function(s$){var N;if(this.negative!==0&&s$.negative===0)return this.negative=0,N=this.isub(s$),this.negative^=1,this._normSign();if(this.negative===0&&s$.negative!==0)return s$.negative=0,N=this.isub(s$),s$.negative=1,N._normSign();var t$,x;this.length>s$.length?(t$=this,x=s$):(t$=s$,x=this);for(var m$=0,B=0;B<x.length;B++)N=(t$.words[B]|0)+(x.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;for(;m$!==0&&B<t$.length;B++)N=(t$.words[B]|0)+m$,this.words[B]=N&67108863,m$=N>>>26;if(this.length=t$.length,m$!==0)this.words[this.length]=m$,this.length++;else if(t$!==this)for(;B<t$.length;B++)this.words[B]=t$.words[B];return this},U.prototype.add=function(s$){var N;return s$.negative!==0&&this.negative===0?(s$.negative=0,N=this.sub(s$),s$.negative^=1,N):s$.negative===0&&this.negative!==0?(this.negative=0,N=s$.sub(this),this.negative=1,N):this.length>s$.length?this.clone().iadd(s$):s$.clone().iadd(this)},U.prototype.isub=function(s$){if(s$.negative!==0){s$.negative=0;var N=this.iadd(s$);return s$.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(s$),this.negative=1,this._normSign();var t$=this.cmp(s$);if(t$===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,m$;t$>0?(x=this,m$=s$):(x=s$,m$=this);for(var B=0,a$=0;a$<m$.length;a$++)N=(x.words[a$]|0)-(m$.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;for(;B!==0&&a$<x.length;a$++)N=(x.words[a$]|0)+B,B=N>>26,this.words[a$]=N&67108863;if(B===0&&a$<x.length&&x!==this)for(;a$<x.length;a$++)this.words[a$]=x.words[a$];return this.length=Math.max(this.length,a$),x!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(s$){return this.clone().isub(s$)};function S(s$,N,t$){t$.negative=N.negative^s$.negative;var x=s$.length+N.length|0;t$.length=x,x=x-1|0;var m$=s$.words[0]|0,B=N.words[0]|0,a$=m$*B,y=a$&67108863,e$=a$/67108864|0;t$.words[0]=y;for(var w=1;w<x;w++){for(var r$=e$>>>26,E=e$&67108863,i$=Math.min(w,N.length-1),p=Math.max(0,w-s$.length+1);p<=i$;p++){var $Q=w-p|0;m$=s$.words[$Q]|0,B=N.words[p]|0,a$=m$*B+E,r$+=a$/67108864|0,E=a$&67108863}t$.words[w]=E|0,e$=r$|0}return e$!==0?t$.words[w]=e$|0:t$.length--,t$.strip()}var d$=function(s$,N,t$){var x=s$.words,m$=N.words,B=t$.words,a$=0,y,e$,w,r$=x[0]|0,E=r$&8191,i$=r$>>>13,p=x[1]|0,$Q=p&8191,f=p>>>13,QQ=x[2]|0,c=QQ&8191,YQ=QQ>>>13,h=x[3]|0,ZQ=h&8191,d=h>>>13,GQ=x[4]|0,b=GQ&8191,VQ=GQ>>>13,l=x[5]|0,UQ=l&8191,o=l>>>13,XQ=x[6]|0,u=XQ&8191,KQ=XQ>>>13,n=x[7]|0,IQ=n&8191,s=n>>>13,OQ=x[8]|0,t=OQ&8191,JQ=OQ>>>13,m=x[9]|0,FQ=m&8191,a=m>>>13,AQ=m$[0]|0,e=AQ&8191,HQ=AQ>>>13,r=m$[1]|0,WQ=r&8191,i=r>>>13,EQ=m$[2]|0,$0=EQ&8191,TQ=EQ>>>13,Q0=m$[3]|0,DQ=Q0&8191,Y0=Q0>>>13,CQ=m$[4]|0,Z0=CQ&8191,LQ=CQ>>>13,G0=m$[5]|0,RQ=G0&8191,V0=G0>>>13,PQ=m$[6]|0,U0=PQ&8191,zQ=PQ>>>13,X0=m$[7]|0,MQ=X0&8191,K0=X0>>>13,SQ=m$[8]|0,I0=SQ&8191,vQ=SQ>>>13,qQ=m$[9]|0,jQ=qQ&8191,kQ=qQ>>>13;t$.negative=s$.negative^N.negative,t$.length=19,y=Math.imul(E,e),e$=Math.imul(E,HQ),e$=e$+Math.imul(i$,e)|0,w=Math.imul(i$,HQ);var gQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(gQ>>>26)|0,gQ&=67108863,y=Math.imul($Q,e),e$=Math.imul($Q,HQ),e$=e$+Math.imul(f,e)|0,w=Math.imul(f,HQ),y=y+Math.imul(E,WQ)|0,e$=e$+Math.imul(E,i)|0,e$=e$+Math.imul(i$,WQ)|0,w=w+Math.imul(i$,i)|0;var O0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(O0>>>26)|0,O0&=67108863,y=Math.imul(c,e),e$=Math.imul(c,HQ),e$=e$+Math.imul(YQ,e)|0,w=Math.imul(YQ,HQ),y=y+Math.imul($Q,WQ)|0,e$=e$+Math.imul($Q,i)|0,e$=e$+Math.imul(f,WQ)|0,w=w+Math.imul(f,i)|0,y=y+Math.imul(E,$0)|0,e$=e$+Math.imul(E,TQ)|0,e$=e$+Math.imul(i$,$0)|0,w=w+Math.imul(i$,TQ)|0;var _Q=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(_Q>>>26)|0,_Q&=67108863,y=Math.imul(ZQ,e),e$=Math.imul(ZQ,HQ),e$=e$+Math.imul(d,e)|0,w=Math.imul(d,HQ),y=y+Math.imul(c,WQ)|0,e$=e$+Math.imul(c,i)|0,e$=e$+Math.imul(YQ,WQ)|0,w=w+Math.imul(YQ,i)|0,y=y+Math.imul($Q,$0)|0,e$=e$+Math.imul($Q,TQ)|0,e$=e$+Math.imul(f,$0)|0,w=w+Math.imul(f,TQ)|0,y=y+Math.imul(E,DQ)|0,e$=e$+Math.imul(E,Y0)|0,e$=e$+Math.imul(i$,DQ)|0,w=w+Math.imul(i$,Y0)|0;var J0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(J0>>>26)|0,J0&=67108863,y=Math.imul(b,e),e$=Math.imul(b,HQ),e$=e$+Math.imul(VQ,e)|0,w=Math.imul(VQ,HQ),y=y+Math.imul(ZQ,WQ)|0,e$=e$+Math.imul(ZQ,i)|0,e$=e$+Math.imul(d,WQ)|0,w=w+Math.imul(d,i)|0,y=y+Math.imul(c,$0)|0,e$=e$+Math.imul(c,TQ)|0,e$=e$+Math.imul(YQ,$0)|0,w=w+Math.imul(YQ,TQ)|0,y=y+Math.imul($Q,DQ)|0,e$=e$+Math.imul($Q,Y0)|0,e$=e$+Math.imul(f,DQ)|0,w=w+Math.imul(f,Y0)|0,y=y+Math.imul(E,Z0)|0,e$=e$+Math.imul(E,LQ)|0,e$=e$+Math.imul(i$,Z0)|0,w=w+Math.imul(i$,LQ)|0;var NQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(NQ>>>26)|0,NQ&=67108863,y=Math.imul(UQ,e),e$=Math.imul(UQ,HQ),e$=e$+Math.imul(o,e)|0,w=Math.imul(o,HQ),y=y+Math.imul(b,WQ)|0,e$=e$+Math.imul(b,i)|0,e$=e$+Math.imul(VQ,WQ)|0,w=w+Math.imul(VQ,i)|0,y=y+Math.imul(ZQ,$0)|0,e$=e$+Math.imul(ZQ,TQ)|0,e$=e$+Math.imul(d,$0)|0,w=w+Math.imul(d,TQ)|0,y=y+Math.imul(c,DQ)|0,e$=e$+Math.imul(c,Y0)|0,e$=e$+Math.imul(YQ,DQ)|0,w=w+Math.imul(YQ,Y0)|0,y=y+Math.imul($Q,Z0)|0,e$=e$+Math.imul($Q,LQ)|0,e$=e$+Math.imul(f,Z0)|0,w=w+Math.imul(f,LQ)|0,y=y+Math.imul(E,RQ)|0,e$=e$+Math.imul(E,V0)|0,e$=e$+Math.imul(i$,RQ)|0,w=w+Math.imul(i$,V0)|0;var xQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(xQ>>>26)|0,xQ&=67108863,y=Math.imul(u,e),e$=Math.imul(u,HQ),e$=e$+Math.imul(KQ,e)|0,w=Math.imul(KQ,HQ),y=y+Math.imul(UQ,WQ)|0,e$=e$+Math.imul(UQ,i)|0,e$=e$+Math.imul(o,WQ)|0,w=w+Math.imul(o,i)|0,y=y+Math.imul(b,$0)|0,e$=e$+Math.imul(b,TQ)|0,e$=e$+Math.imul(VQ,$0)|0,w=w+Math.imul(VQ,TQ)|0,y=y+Math.imul(ZQ,DQ)|0,e$=e$+Math.imul(ZQ,Y0)|0,e$=e$+Math.imul(d,DQ)|0,w=w+Math.imul(d,Y0)|0,y=y+Math.imul(c,Z0)|0,e$=e$+Math.imul(c,LQ)|0,e$=e$+Math.imul(YQ,Z0)|0,w=w+Math.imul(YQ,LQ)|0,y=y+Math.imul($Q,RQ)|0,e$=e$+Math.imul($Q,V0)|0,e$=e$+Math.imul(f,RQ)|0,w=w+Math.imul(f,V0)|0,y=y+Math.imul(E,U0)|0,e$=e$+Math.imul(E,zQ)|0,e$=e$+Math.imul(i$,U0)|0,w=w+Math.imul(i$,zQ)|0;var BQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(BQ>>>26)|0,BQ&=67108863,y=Math.imul(IQ,e),e$=Math.imul(IQ,HQ),e$=e$+Math.imul(s,e)|0,w=Math.imul(s,HQ),y=y+Math.imul(u,WQ)|0,e$=e$+Math.imul(u,i)|0,e$=e$+Math.imul(KQ,WQ)|0,w=w+Math.imul(KQ,i)|0,y=y+Math.imul(UQ,$0)|0,e$=e$+Math.imul(UQ,TQ)|0,e$=e$+Math.imul(o,$0)|0,w=w+Math.imul(o,TQ)|0,y=y+Math.imul(b,DQ)|0,e$=e$+Math.imul(b,Y0)|0,e$=e$+Math.imul(VQ,DQ)|0,w=w+Math.imul(VQ,Y0)|0,y=y+Math.imul(ZQ,Z0)|0,e$=e$+Math.imul(ZQ,LQ)|0,e$=e$+Math.imul(d,Z0)|0,w=w+Math.imul(d,LQ)|0,y=y+Math.imul(c,RQ)|0,e$=e$+Math.imul(c,V0)|0,e$=e$+Math.imul(YQ,RQ)|0,w=w+Math.imul(YQ,V0)|0,y=y+Math.imul($Q,U0)|0,e$=e$+Math.imul($Q,zQ)|0,e$=e$+Math.imul(f,U0)|0,w=w+Math.imul(f,zQ)|0,y=y+Math.imul(E,MQ)|0,e$=e$+Math.imul(E,K0)|0,e$=e$+Math.imul(i$,MQ)|0,w=w+Math.imul(i$,K0)|0;var yQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(yQ>>>26)|0,yQ&=67108863,y=Math.imul(t,e),e$=Math.imul(t,HQ),e$=e$+Math.imul(JQ,e)|0,w=Math.imul(JQ,HQ),y=y+Math.imul(IQ,WQ)|0,e$=e$+Math.imul(IQ,i)|0,e$=e$+Math.imul(s,WQ)|0,w=w+Math.imul(s,i)|0,y=y+Math.imul(u,$0)|0,e$=e$+Math.imul(u,TQ)|0,e$=e$+Math.imul(KQ,$0)|0,w=w+Math.imul(KQ,TQ)|0,y=y+Math.imul(UQ,DQ)|0,e$=e$+Math.imul(UQ,Y0)|0,e$=e$+Math.imul(o,DQ)|0,w=w+Math.imul(o,Y0)|0,y=y+Math.imul(b,Z0)|0,e$=e$+Math.imul(b,LQ)|0,e$=e$+Math.imul(VQ,Z0)|0,w=w+Math.imul(VQ,LQ)|0,y=y+Math.imul(ZQ,RQ)|0,e$=e$+Math.imul(ZQ,V0)|0,e$=e$+Math.imul(d,RQ)|0,w=w+Math.imul(d,V0)|0,y=y+Math.imul(c,U0)|0,e$=e$+Math.imul(c,zQ)|0,e$=e$+Math.imul(YQ,U0)|0,w=w+Math.imul(YQ,zQ)|0,y=y+Math.imul($Q,MQ)|0,e$=e$+Math.imul($Q,K0)|0,e$=e$+Math.imul(f,MQ)|0,w=w+Math.imul(f,K0)|0,y=y+Math.imul(E,I0)|0,e$=e$+Math.imul(E,vQ)|0,e$=e$+Math.imul(i$,I0)|0,w=w+Math.imul(i$,vQ)|0;var wQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(wQ>>>26)|0,wQ&=67108863,y=Math.imul(FQ,e),e$=Math.imul(FQ,HQ),e$=e$+Math.imul(a,e)|0,w=Math.imul(a,HQ),y=y+Math.imul(t,WQ)|0,e$=e$+Math.imul(t,i)|0,e$=e$+Math.imul(JQ,WQ)|0,w=w+Math.imul(JQ,i)|0,y=y+Math.imul(IQ,$0)|0,e$=e$+Math.imul(IQ,TQ)|0,e$=e$+Math.imul(s,$0)|0,w=w+Math.imul(s,TQ)|0,y=y+Math.imul(u,DQ)|0,e$=e$+Math.imul(u,Y0)|0,e$=e$+Math.imul(KQ,DQ)|0,w=w+Math.imul(KQ,Y0)|0,y=y+Math.imul(UQ,Z0)|0,e$=e$+Math.imul(UQ,LQ)|0,e$=e$+Math.imul(o,Z0)|0,w=w+Math.imul(o,LQ)|0,y=y+Math.imul(b,RQ)|0,e$=e$+Math.imul(b,V0)|0,e$=e$+Math.imul(VQ,RQ)|0,w=w+Math.imul(VQ,V0)|0,y=y+Math.imul(ZQ,U0)|0,e$=e$+Math.imul(ZQ,zQ)|0,e$=e$+Math.imul(d,U0)|0,w=w+Math.imul(d,zQ)|0,y=y+Math.imul(c,MQ)|0,e$=e$+Math.imul(c,K0)|0,e$=e$+Math.imul(YQ,MQ)|0,w=w+Math.imul(YQ,K0)|0,y=y+Math.imul($Q,I0)|0,e$=e$+Math.imul($Q,vQ)|0,e$=e$+Math.imul(f,I0)|0,w=w+Math.imul(f,vQ)|0,y=y+Math.imul(E,jQ)|0,e$=e$+Math.imul(E,kQ)|0,e$=e$+Math.imul(i$,jQ)|0,w=w+Math.imul(i$,kQ)|0;var F0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(F0>>>26)|0,F0&=67108863,y=Math.imul(FQ,WQ),e$=Math.imul(FQ,i),e$=e$+Math.imul(a,WQ)|0,w=Math.imul(a,i),y=y+Math.imul(t,$0)|0,e$=e$+Math.imul(t,TQ)|0,e$=e$+Math.imul(JQ,$0)|0,w=w+Math.imul(JQ,TQ)|0,y=y+Math.imul(IQ,DQ)|0,e$=e$+Math.imul(IQ,Y0)|0,e$=e$+Math.imul(s,DQ)|0,w=w+Math.imul(s,Y0)|0,y=y+Math.imul(u,Z0)|0,e$=e$+Math.imul(u,LQ)|0,e$=e$+Math.imul(KQ,Z0)|0,w=w+Math.imul(KQ,LQ)|0,y=y+Math.imul(UQ,RQ)|0,e$=e$+Math.imul(UQ,V0)|0,e$=e$+Math.imul(o,RQ)|0,w=w+Math.imul(o,V0)|0,y=y+Math.imul(b,U0)|0,e$=e$+Math.imul(b,zQ)|0,e$=e$+Math.imul(VQ,U0)|0,w=w+Math.imul(VQ,zQ)|0,y=y+Math.imul(ZQ,MQ)|0,e$=e$+Math.imul(ZQ,K0)|0,e$=e$+Math.imul(d,MQ)|0,w=w+Math.imul(d,K0)|0,y=y+Math.imul(c,I0)|0,e$=e$+Math.imul(c,vQ)|0,e$=e$+Math.imul(YQ,I0)|0,w=w+Math.imul(YQ,vQ)|0,y=y+Math.imul($Q,jQ)|0,e$=e$+Math.imul($Q,kQ)|0,e$=e$+Math.imul(f,jQ)|0,w=w+Math.imul(f,kQ)|0;var pQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(pQ>>>26)|0,pQ&=67108863,y=Math.imul(FQ,$0),e$=Math.imul(FQ,TQ),e$=e$+Math.imul(a,$0)|0,w=Math.imul(a,TQ),y=y+Math.imul(t,DQ)|0,e$=e$+Math.imul(t,Y0)|0,e$=e$+Math.imul(JQ,DQ)|0,w=w+Math.imul(JQ,Y0)|0,y=y+Math.imul(IQ,Z0)|0,e$=e$+Math.imul(IQ,LQ)|0,e$=e$+Math.imul(s,Z0)|0,w=w+Math.imul(s,LQ)|0,y=y+Math.imul(u,RQ)|0,e$=e$+Math.imul(u,V0)|0,e$=e$+Math.imul(KQ,RQ)|0,w=w+Math.imul(KQ,V0)|0,y=y+Math.imul(UQ,U0)|0,e$=e$+Math.imul(UQ,zQ)|0,e$=e$+Math.imul(o,U0)|0,w=w+Math.imul(o,zQ)|0,y=y+Math.imul(b,MQ)|0,e$=e$+Math.imul(b,K0)|0,e$=e$+Math.imul(VQ,MQ)|0,w=w+Math.imul(VQ,K0)|0,y=y+Math.imul(ZQ,I0)|0,e$=e$+Math.imul(ZQ,vQ)|0,e$=e$+Math.imul(d,I0)|0,w=w+Math.imul(d,vQ)|0,y=y+Math.imul(c,jQ)|0,e$=e$+Math.imul(c,kQ)|0,e$=e$+Math.imul(YQ,jQ)|0,w=w+Math.imul(YQ,kQ)|0;var A0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(A0>>>26)|0,A0&=67108863,y=Math.imul(FQ,DQ),e$=Math.imul(FQ,Y0),e$=e$+Math.imul(a,DQ)|0,w=Math.imul(a,Y0),y=y+Math.imul(t,Z0)|0,e$=e$+Math.imul(t,LQ)|0,e$=e$+Math.imul(JQ,Z0)|0,w=w+Math.imul(JQ,LQ)|0,y=y+Math.imul(IQ,RQ)|0,e$=e$+Math.imul(IQ,V0)|0,e$=e$+Math.imul(s,RQ)|0,w=w+Math.imul(s,V0)|0,y=y+Math.imul(u,U0)|0,e$=e$+Math.imul(u,zQ)|0,e$=e$+Math.imul(KQ,U0)|0,w=w+Math.imul(KQ,zQ)|0,y=y+Math.imul(UQ,MQ)|0,e$=e$+Math.imul(UQ,K0)|0,e$=e$+Math.imul(o,MQ)|0,w=w+Math.imul(o,K0)|0,y=y+Math.imul(b,I0)|0,e$=e$+Math.imul(b,vQ)|0,e$=e$+Math.imul(VQ,I0)|0,w=w+Math.imul(VQ,vQ)|0,y=y+Math.imul(ZQ,jQ)|0,e$=e$+Math.imul(ZQ,kQ)|0,e$=e$+Math.imul(d,jQ)|0,w=w+Math.imul(d,kQ)|0;var fQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(fQ>>>26)|0,fQ&=67108863,y=Math.imul(FQ,Z0),e$=Math.imul(FQ,LQ),e$=e$+Math.imul(a,Z0)|0,w=Math.imul(a,LQ),y=y+Math.imul(t,RQ)|0,e$=e$+Math.imul(t,V0)|0,e$=e$+Math.imul(JQ,RQ)|0,w=w+Math.imul(JQ,V0)|0,y=y+Math.imul(IQ,U0)|0,e$=e$+Math.imul(IQ,zQ)|0,e$=e$+Math.imul(s,U0)|0,w=w+Math.imul(s,zQ)|0,y=y+Math.imul(u,MQ)|0,e$=e$+Math.imul(u,K0)|0,e$=e$+Math.imul(KQ,MQ)|0,w=w+Math.imul(KQ,K0)|0,y=y+Math.imul(UQ,I0)|0,e$=e$+Math.imul(UQ,vQ)|0,e$=e$+Math.imul(o,I0)|0,w=w+Math.imul(o,vQ)|0,y=y+Math.imul(b,jQ)|0,e$=e$+Math.imul(b,kQ)|0,e$=e$+Math.imul(VQ,jQ)|0,w=w+Math.imul(VQ,kQ)|0;var H0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(H0>>>26)|0,H0&=67108863,y=Math.imul(FQ,RQ),e$=Math.imul(FQ,V0),e$=e$+Math.imul(a,RQ)|0,w=Math.imul(a,V0),y=y+Math.imul(t,U0)|0,e$=e$+Math.imul(t,zQ)|0,e$=e$+Math.imul(JQ,U0)|0,w=w+Math.imul(JQ,zQ)|0,y=y+Math.imul(IQ,MQ)|0,e$=e$+Math.imul(IQ,K0)|0,e$=e$+Math.imul(s,MQ)|0,w=w+Math.imul(s,K0)|0,y=y+Math.imul(u,I0)|0,e$=e$+Math.imul(u,vQ)|0,e$=e$+Math.imul(KQ,I0)|0,w=w+Math.imul(KQ,vQ)|0,y=y+Math.imul(UQ,jQ)|0,e$=e$+Math.imul(UQ,kQ)|0,e$=e$+Math.imul(o,jQ)|0,w=w+Math.imul(o,kQ)|0;var cQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(cQ>>>26)|0,cQ&=67108863,y=Math.imul(FQ,U0),e$=Math.imul(FQ,zQ),e$=e$+Math.imul(a,U0)|0,w=Math.imul(a,zQ),y=y+Math.imul(t,MQ)|0,e$=e$+Math.imul(t,K0)|0,e$=e$+Math.imul(JQ,MQ)|0,w=w+Math.imul(JQ,K0)|0,y=y+Math.imul(IQ,I0)|0,e$=e$+Math.imul(IQ,vQ)|0,e$=e$+Math.imul(s,I0)|0,w=w+Math.imul(s,vQ)|0,y=y+Math.imul(u,jQ)|0,e$=e$+Math.imul(u,kQ)|0,e$=e$+Math.imul(KQ,jQ)|0,w=w+Math.imul(KQ,kQ)|0;var W0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(W0>>>26)|0,W0&=67108863,y=Math.imul(FQ,MQ),e$=Math.imul(FQ,K0),e$=e$+Math.imul(a,MQ)|0,w=Math.imul(a,K0),y=y+Math.imul(t,I0)|0,e$=e$+Math.imul(t,vQ)|0,e$=e$+Math.imul(JQ,I0)|0,w=w+Math.imul(JQ,vQ)|0,y=y+Math.imul(IQ,jQ)|0,e$=e$+Math.imul(IQ,kQ)|0,e$=e$+Math.imul(s,jQ)|0,w=w+Math.imul(s,kQ)|0;var hQ=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(hQ>>>26)|0,hQ&=67108863,y=Math.imul(FQ,I0),e$=Math.imul(FQ,vQ),e$=e$+Math.imul(a,I0)|0,w=Math.imul(a,vQ),y=y+Math.imul(t,jQ)|0,e$=e$+Math.imul(t,kQ)|0,e$=e$+Math.imul(JQ,jQ)|0,w=w+Math.imul(JQ,kQ)|0;var E0=(a$+y|0)+((e$&8191)<<13)|0;a$=(w+(e$>>>13)|0)+(E0>>>26)|0,E0&=67108863,y=Math.imul(FQ,jQ),e$=Math.imul(FQ,kQ),e$=e$+Math.imul(a,jQ)|0,w=Math.imul(a,kQ);var dQ=(a$+y|0)+((e$&8191)<<13)|0;return a$=(w+(e$>>>13)|0)+(dQ>>>26)|0,dQ&=67108863,B[0]=gQ,B[1]=O0,B[2]=_Q,B[3]=J0,B[4]=NQ,B[5]=xQ,B[6]=BQ,B[7]=yQ,B[8]=wQ,B[9]=F0,B[10]=pQ,B[11]=A0,B[12]=fQ,B[13]=H0,B[14]=cQ,B[15]=W0,B[16]=hQ,B[17]=E0,B[18]=dQ,a$!==0&&(B[19]=a$,t$.length++),t$};Math.imul||(d$=S);function v(s$,N,t$){t$.negative=N.negative^s$.negative,t$.length=s$.length+N.length;for(var x=0,m$=0,B=0;B<t$.length-1;B++){var a$=m$;m$=0;for(var y=x&67108863,e$=Math.min(B,N.length-1),w=Math.max(0,B-s$.length+1);w<=e$;w++){var r$=B-w,E=s$.words[r$]|0,i$=N.words[w]|0,p=E*i$,$Q=p&67108863;a$=a$+(p/67108864|0)|0,$Q=$Q+y|0,y=$Q&67108863,a$=a$+($Q>>>26)|0,m$+=a$>>>26,a$&=67108863}t$.words[B]=y,x=a$,a$=m$}return x!==0?t$.words[B]=x:t$.length--,t$.strip()}function b$(s$,N,t$){var x=new q;return x.mulp(s$,N,t$)}U.prototype.mulTo=function(s$,N){var t$,x=this.length+s$.length;return this.length===10&&s$.length===10?t$=d$(this,s$,N):x<63?t$=S(this,s$,N):x<1024?t$=v(this,s$,N):t$=b$(this,s$,N),t$};function q(s$,N){this.x=s$,this.y=N}q.prototype.makeRBT=function(s$){for(var N=new Array(s$),t$=U.prototype._countBits(s$)-1,x=0;x<s$;x++)N[x]=this.revBin(x,t$,s$);return N},q.prototype.revBin=function(s$,N,t$){if(s$===0||s$===t$-1)return s$;for(var x=0,m$=0;m$<N;m$++)x|=(s$&1)<<N-m$-1,s$>>=1;return x},q.prototype.permute=function(s$,N,t$,x,m$,B){for(var a$=0;a$<B;a$++)x[a$]=N[s$[a$]],m$[a$]=t$[s$[a$]]},q.prototype.transform=function(s$,N,t$,x,m$,B){this.permute(B,s$,N,t$,x,m$);for(var a$=1;a$<m$;a$<<=1)for(var y=a$<<1,e$=Math.cos(2*Math.PI/y),w=Math.sin(2*Math.PI/y),r$=0;r$<m$;r$+=y)for(var E=e$,i$=w,p=0;p<a$;p++){var $Q=t$[r$+p],f=x[r$+p],QQ=t$[r$+p+a$],c=x[r$+p+a$],YQ=E*QQ-i$*c;c=E*c+i$*QQ,QQ=YQ,t$[r$+p]=$Q+QQ,x[r$+p]=f+c,t$[r$+p+a$]=$Q-QQ,x[r$+p+a$]=f-c,p!==y&&(YQ=e$*E-w*i$,i$=e$*i$+w*E,E=YQ)}},q.prototype.guessLen13b=function(s$,N){var t$=Math.max(N,s$)|1,x=t$&1,m$=0;for(t$=t$/2|0;t$;t$=t$>>>1)m$++;return 1<<m$+1+x},q.prototype.conjugate=function(s$,N,t$){if(!(t$<=1))for(var x=0;x<t$/2;x++){var m$=s$[x];s$[x]=s$[t$-x-1],s$[t$-x-1]=m$,m$=N[x],N[x]=-N[t$-x-1],N[t$-x-1]=-m$}},q.prototype.normalize13b=function(s$,N){for(var t$=0,x=0;x<N/2;x++){var m$=Math.round(s$[2*x+1]/N)*8192+Math.round(s$[2*x]/N)+t$;s$[x]=m$&67108863,m$<67108864?t$=0:t$=m$/67108864|0}return s$},q.prototype.convert13b=function(s$,N,t$,x){for(var m$=0,B=0;B<N;B++)m$=m$+(s$[B]|0),t$[2*B]=m$&8191,m$=m$>>>13,t$[2*B+1]=m$&8191,m$=m$>>>13;for(B=2*N;B<x;++B)t$[B]=0;G(m$===0),G((m$&-8192)===0)},q.prototype.stub=function(s$){for(var N=new Array(s$),t$=0;t$<s$;t$++)N[t$]=0;return N},q.prototype.mulp=function(s$,N,t$){var x=2*this.guessLen13b(s$.length,N.length),m$=this.makeRBT(x),B=this.stub(x),a$=new Array(x),y=new Array(x),e$=new Array(x),w=new Array(x),r$=new Array(x),E=new Array(x),i$=t$.words;i$.length=x,this.convert13b(s$.words,s$.length,a$,x),this.convert13b(N.words,N.length,w,x),this.transform(a$,B,y,e$,x,m$),this.transform(w,B,r$,E,x,m$);for(var p=0;p<x;p++){var $Q=y[p]*r$[p]-e$[p]*E[p];e$[p]=y[p]*E[p]+e$[p]*r$[p],y[p]=$Q}return this.conjugate(y,e$,x),this.transform(y,e$,i$,B,x,m$),this.conjugate(i$,B,x),this.normalize13b(i$,x),t$.negative=s$.negative^N.negative,t$.length=s$.length+N.length,t$.strip()},U.prototype.mul=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),this.mulTo(s$,N)},U.prototype.mulf=function(s$){var N=new U(null);return N.words=new Array(this.length+s$.length),b$(this,s$,N)},U.prototype.imul=function(s$){return this.clone().mulTo(s$,this)},U.prototype.imuln=function(s$){G(typeof s$=="number"),G(s$<67108864);for(var N=0,t$=0;t$<this.length;t$++){var x=(this.words[t$]|0)*s$,m$=(x&67108863)+(N&67108863);N>>=26,N+=x/67108864|0,N+=m$>>>26,this.words[t$]=m$&67108863}return N!==0&&(this.words[t$]=N,this.length++),this},U.prototype.muln=function(s$){return this.clone().imuln(s$)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(s$){var N=h$(s$);if(N.length===0)return new U(1);for(var t$=this,x=0;x<N.length&&N[x]===0;x++,t$=t$.sqr());if(++x<N.length)for(var m$=t$.sqr();x<N.length;x++,m$=m$.sqr())N[x]!==0&&(t$=t$.mul(m$));return t$},U.prototype.iushln=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=67108863>>>26-N<<26-N,m$;if(N!==0){var B=0;for(m$=0;m$<this.length;m$++){var a$=this.words[m$]&x,y=(this.words[m$]|0)-a$<<N;this.words[m$]=y|B,B=a$>>>26-N}B&&(this.words[m$]=B,this.length++)}if(t$!==0){for(m$=this.length-1;m$>=0;m$--)this.words[m$+t$]=this.words[m$];for(m$=0;m$<t$;m$++)this.words[m$]=0;this.length+=t$}return this.strip()},U.prototype.ishln=function(s$){return G(this.negative===0),this.iushln(s$)},U.prototype.iushrn=function(s$,N,t$){G(typeof s$=="number"&&s$>=0);var x;N?x=(N-N%26)/26:x=0;var m$=s$%26,B=Math.min((s$-m$)/26,this.length),a$=67108863^67108863>>>m$<<m$,y=t$;if(x-=B,x=Math.max(0,x),y){for(var e$=0;e$<B;e$++)y.words[e$]=this.words[e$];y.length=B}if(B!==0)if(this.length>B)for(this.length-=B,e$=0;e$<this.length;e$++)this.words[e$]=this.words[e$+B];else this.words[0]=0,this.length=1;var w=0;for(e$=this.length-1;e$>=0&&(w!==0||e$>=x);e$--){var r$=this.words[e$]|0;this.words[e$]=w<<26-m$|r$>>>m$,w=r$&a$}return y&&w!==0&&(y.words[y.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(s$,N,t$){return G(this.negative===0),this.iushrn(s$,N,t$)},U.prototype.shln=function(s$){return this.clone().ishln(s$)},U.prototype.ushln=function(s$){return this.clone().iushln(s$)},U.prototype.shrn=function(s$){return this.clone().ishrn(s$)},U.prototype.ushrn=function(s$){return this.clone().iushrn(s$)},U.prototype.testn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return!1;var m$=this.words[t$];return!!(m$&x)},U.prototype.imaskn=function(s$){G(typeof s$=="number"&&s$>=0);var N=s$%26,t$=(s$-N)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=t$)return this;if(N!==0&&t$++,this.length=Math.min(t$,this.length),N!==0){var x=67108863^67108863>>>N<<N;this.words[this.length-1]&=x}return this.strip()},U.prototype.maskn=function(s$){return this.clone().imaskn(s$)},U.prototype.iaddn=function(s$){return G(typeof s$=="number"),G(s$<67108864),s$<0?this.isubn(-s$):this.negative!==0?this.length===1&&(this.words[0]|0)<s$?(this.words[0]=s$-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(s$),this.negative=1,this):this._iaddn(s$)},U.prototype._iaddn=function(s$){this.words[0]+=s$;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},U.prototype.isubn=function(s$){if(G(typeof s$=="number"),G(s$<67108864),s$<0)return this.iaddn(-s$);if(this.negative!==0)return this.negative=0,this.iaddn(s$),this.negative=1,this;if(this.words[0]-=s$,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this.strip()},U.prototype.addn=function(s$){return this.clone().iaddn(s$)},U.prototype.subn=function(s$){return this.clone().isubn(s$)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(s$,N,t$){var x=s$.length+t$,m$;this._expand(x);var B,a$=0;for(m$=0;m$<s$.length;m$++){B=(this.words[m$+t$]|0)+a$;var y=(s$.words[m$]|0)*N;B-=y&67108863,a$=(B>>26)-(y/67108864|0),this.words[m$+t$]=B&67108863}for(;m$<this.length-t$;m$++)B=(this.words[m$+t$]|0)+a$,a$=B>>26,this.words[m$+t$]=B&67108863;if(a$===0)return this.strip();for(G(a$===-1),a$=0,m$=0;m$<this.length;m$++)B=-(this.words[m$]|0)+a$,a$=B>>26,this.words[m$]=B&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(s$,N){var t$=this.length-s$.length,x=this.clone(),m$=s$,B=m$.words[m$.length-1]|0,a$=this._countBits(B);t$=26-a$,t$!==0&&(m$=m$.ushln(t$),x.iushln(t$),B=m$.words[m$.length-1]|0);var y=x.length-m$.length,e$;if(N!=="mod"){e$=new U(null),e$.length=y+1,e$.words=new Array(e$.length);for(var w=0;w<e$.length;w++)e$.words[w]=0}var r$=x.clone()._ishlnsubmul(m$,1,y);r$.negative===0&&(x=r$,e$&&(e$.words[y]=1));for(var E=y-1;E>=0;E--){var i$=(x.words[m$.length+E]|0)*67108864+(x.words[m$.length+E-1]|0);for(i$=Math.min(i$/B|0,67108863),x._ishlnsubmul(m$,i$,E);x.negative!==0;)i$--,x.negative=0,x._ishlnsubmul(m$,1,E),x.isZero()||(x.negative^=1);e$&&(e$.words[E]=i$)}return e$&&e$.strip(),x.strip(),N!=="div"&&t$!==0&&x.iushrn(t$),{div:e$||null,mod:x}},U.prototype.divmod=function(s$,N,t$){if(G(!s$.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var x,m$,B;return this.negative!==0&&s$.negative===0?(B=this.neg().divmod(s$,N),N!=="mod"&&(x=B.div.neg()),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.iadd(s$)),{div:x,mod:m$}):this.negative===0&&s$.negative!==0?(B=this.divmod(s$.neg(),N),N!=="mod"&&(x=B.div.neg()),{div:x,mod:B.mod}):(this.negative&s$.negative)!==0?(B=this.neg().divmod(s$.neg(),N),N!=="div"&&(m$=B.mod.neg(),t$&&m$.negative!==0&&m$.isub(s$)),{div:B.div,mod:m$}):s$.length>this.length||this.cmp(s$)<0?{div:new U(0),mod:this}:s$.length===1?N==="div"?{div:this.divn(s$.words[0]),mod:null}:N==="mod"?{div:null,mod:new U(this.modn(s$.words[0]))}:{div:this.divn(s$.words[0]),mod:new U(this.modn(s$.words[0]))}:this._wordDiv(s$,N)},U.prototype.div=function(s$){return this.divmod(s$,"div",!1).div},U.prototype.mod=function(s$){return this.divmod(s$,"mod",!1).mod},U.prototype.umod=function(s$){return this.divmod(s$,"mod",!0).mod},U.prototype.divRound=function(s$){var N=this.divmod(s$);if(N.mod.isZero())return N.div;var t$=N.div.negative!==0?N.mod.isub(s$):N.mod,x=s$.ushrn(1),m$=s$.andln(1),B=t$.cmp(x);return B<0||m$===1&&B===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},U.prototype.modn=function(s$){G(s$<=67108863);for(var N=(1<<26)%s$,t$=0,x=this.length-1;x>=0;x--)t$=(N*t$+(this.words[x]|0))%s$;return t$},U.prototype.idivn=function(s$){G(s$<=67108863);for(var N=0,t$=this.length-1;t$>=0;t$--){var x=(this.words[t$]|0)+N*67108864;this.words[t$]=x/s$|0,N=x%s$}return this.strip()},U.prototype.divn=function(s$){return this.clone().idivn(s$)},U.prototype.egcd=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=new U(0),a$=new U(1),y=0;N.isEven()&&t$.isEven();)N.iushrn(1),t$.iushrn(1),++y;for(var e$=t$.clone(),w=N.clone();!N.isZero();){for(var r$=0,E=1;(N.words[0]&E)===0&&r$<26;++r$,E<<=1);if(r$>0)for(N.iushrn(r$);r$-- >0;)(x.isOdd()||m$.isOdd())&&(x.iadd(e$),m$.isub(w)),x.iushrn(1),m$.iushrn(1);for(var i$=0,p=1;(t$.words[0]&p)===0&&i$<26;++i$,p<<=1);if(i$>0)for(t$.iushrn(i$);i$-- >0;)(B.isOdd()||a$.isOdd())&&(B.iadd(e$),a$.isub(w)),B.iushrn(1),a$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(B),m$.isub(a$)):(t$.isub(N),B.isub(x),a$.isub(m$))}return{a:B,b:a$,gcd:t$.iushln(y)}},U.prototype._invmp=function(s$){G(s$.negative===0),G(!s$.isZero());var N=this,t$=s$.clone();N.negative!==0?N=N.umod(s$):N=N.clone();for(var x=new U(1),m$=new U(0),B=t$.clone();N.cmpn(1)>0&&t$.cmpn(1)>0;){for(var a$=0,y=1;(N.words[0]&y)===0&&a$<26;++a$,y<<=1);if(a$>0)for(N.iushrn(a$);a$-- >0;)x.isOdd()&&x.iadd(B),x.iushrn(1);for(var e$=0,w=1;(t$.words[0]&w)===0&&e$<26;++e$,w<<=1);if(e$>0)for(t$.iushrn(e$);e$-- >0;)m$.isOdd()&&m$.iadd(B),m$.iushrn(1);N.cmp(t$)>=0?(N.isub(t$),x.isub(m$)):(t$.isub(N),m$.isub(x))}var r$;return N.cmpn(1)===0?r$=x:r$=m$,r$.cmpn(0)<0&&r$.iadd(s$),r$},U.prototype.gcd=function(s$){if(this.isZero())return s$.abs();if(s$.isZero())return this.abs();var N=this.clone(),t$=s$.clone();N.negative=0,t$.negative=0;for(var x=0;N.isEven()&&t$.isEven();x++)N.iushrn(1),t$.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;t$.isEven();)t$.iushrn(1);var m$=N.cmp(t$);if(m$<0){var B=N;N=t$,t$=B}else if(m$===0||t$.cmpn(1)===0)break;N.isub(t$)}while(!0);return t$.iushln(x)},U.prototype.invm=function(s$){return this.egcd(s$).a.umod(s$)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(s$){return this.words[0]&s$},U.prototype.bincn=function(s$){G(typeof s$=="number");var N=s$%26,t$=(s$-N)/26,x=1<<N;if(this.length<=t$)return this._expand(t$+1),this.words[t$]|=x,this;for(var m$=x,B=t$;m$!==0&&B<this.length;B++){var a$=this.words[B]|0;a$+=m$,m$=a$>>>26,a$&=67108863,this.words[B]=a$}return m$!==0&&(this.words[B]=m$,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(s$){var N=s$<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var t$;if(this.length>1)t$=1;else{N&&(s$=-s$),G(s$<=67108863,"Number is too big");var x=this.words[0]|0;t$=x===s$?0:x<s$?-1:1}return this.negative!==0?-t$|0:t$},U.prototype.cmp=function(s$){if(this.negative!==0&&s$.negative===0)return-1;if(this.negative===0&&s$.negative!==0)return 1;var N=this.ucmp(s$);return this.negative!==0?-N|0:N},U.prototype.ucmp=function(s$){if(this.length>s$.length)return 1;if(this.length<s$.length)return-1;for(var N=0,t$=this.length-1;t$>=0;t$--){var x=this.words[t$]|0,m$=s$.words[t$]|0;if(x!==m$){x<m$?N=-1:x>m$&&(N=1);break}}return N},U.prototype.gtn=function(s$){return this.cmpn(s$)===1},U.prototype.gt=function(s$){return this.cmp(s$)===1},U.prototype.gten=function(s$){return this.cmpn(s$)>=0},U.prototype.gte=function(s$){return this.cmp(s$)>=0},U.prototype.ltn=function(s$){return this.cmpn(s$)===-1},U.prototype.lt=function(s$){return this.cmp(s$)===-1},U.prototype.lten=function(s$){return this.cmpn(s$)<=0},U.prototype.lte=function(s$){return this.cmp(s$)<=0},U.prototype.eqn=function(s$){return this.cmpn(s$)===0},U.prototype.eq=function(s$){return this.cmp(s$)===0},U.red=function(s$){return new n$(s$)},U.prototype.toRed=function(s$){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),s$.convertTo(this)._forceRed(s$)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(s$){return this.red=s$,this},U.prototype.forceRed=function(s$){return G(!this.red,"Already a number in reduction context"),this._forceRed(s$)},U.prototype.redAdd=function(s$){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,s$)},U.prototype.redIAdd=function(s$){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,s$)},U.prototype.redSub=function(s$){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,s$)},U.prototype.redISub=function(s$){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,s$)},U.prototype.redShl=function(s$){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,s$)},U.prototype.redMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.mul(this,s$)},U.prototype.redIMul=function(s$){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,s$),this.red.imul(this,s$)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(s$){return G(this.red&&!s$.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,s$)};var l$={k256:null,p224:null,p192:null,p25519:null};function j(s$,N){this.name=s$,this.p=new U(N,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var s$=new U(null);return s$.words=new Array(Math.ceil(this.n/13)),s$},j.prototype.ireduce=function(s$){var N=s$,t$;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),t$=N.bitLength();while(t$>this.n);var x=t$<this.n?-1:N.ucmp(this.p);return x===0?(N.words[0]=0,N.length=1):x>0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},j.prototype.split=function(s$,N){s$.iushrn(this.n,0,N)},j.prototype.imulK=function(s$){return s$.imul(this.k)};function o$(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}$(o$,j),o$.prototype.split=function(s$,N){for(var t$=4194303,x=Math.min(s$.length,9),m$=0;m$<x;m$++)N.words[m$]=s$.words[m$];if(N.length=x,s$.length<=9){s$.words[0]=0,s$.length=1;return}var B=s$.words[9];for(N.words[N.length++]=B&t$,m$=10;m$<s$.length;m$++){var a$=s$.words[m$]|0;s$.words[m$-10]=(a$&t$)<<4|B>>>22,B=a$}B>>>=22,s$.words[m$-10]=B,B===0&&s$.length>10?s$.length-=10:s$.length-=9},o$.prototype.imulK=function(s$){s$.words[s$.length]=0,s$.words[s$.length+1]=0,s$.length+=2;for(var N=0,t$=0;t$<s$.length;t$++){var x=s$.words[t$]|0;N+=x*977,s$.words[t$]=N&67108863,N=x*64+(N/67108864|0)}return s$.words[s$.length-1]===0&&(s$.length--,s$.words[s$.length-1]===0&&s$.length--),s$};function k(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}$(k,j);function u$(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}$(u$,j);function g(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}$(g,j),g.prototype.imulK=function(s$){for(var N=0,t$=0;t$<s$.length;t$++){var x=(s$.words[t$]|0)*19+N,m$=x&67108863;x>>>=26,s$.words[t$]=m$,N=x}return N!==0&&(s$.words[s$.length++]=N),s$},U._prime=function(s$){if(l$[s$])return l$[s$];var N;if(s$==="k256")N=new o$;else if(s$==="p224")N=new k;else if(s$==="p192")N=new u$;else if(s$==="p25519")N=new g;else throw new Error("Unknown prime "+s$);return l$[s$]=N,N};function n$(s$){if(typeof s$=="string"){var N=U._prime(s$);this.m=N.p,this.prime=N}else G(s$.gtn(1),"modulus must be greater than 1"),this.m=s$,this.prime=null}n$.prototype._verify1=function(s$){G(s$.negative===0,"red works only with positives"),G(s$.red,"red works only with red numbers")},n$.prototype._verify2=function(s$,N){G((s$.negative|N.negative)===0,"red works only with positives"),G(s$.red&&s$.red===N.red,"red works only with red numbers")},n$.prototype.imod=function(s$){return this.prime?this.prime.ireduce(s$)._forceRed(this):s$.umod(this.m)._forceRed(this)},n$.prototype.neg=function(s$){return s$.isZero()?s$.clone():this.m.sub(s$)._forceRed(this)},n$.prototype.add=function(s$,N){this._verify2(s$,N);var t$=s$.add(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$._forceRed(this)},n$.prototype.iadd=function(s$,N){this._verify2(s$,N);var t$=s$.iadd(N);return t$.cmp(this.m)>=0&&t$.isub(this.m),t$},n$.prototype.sub=function(s$,N){this._verify2(s$,N);var t$=s$.sub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$._forceRed(this)},n$.prototype.isub=function(s$,N){this._verify2(s$,N);var t$=s$.isub(N);return t$.cmpn(0)<0&&t$.iadd(this.m),t$},n$.prototype.shl=function(s$,N){return this._verify1(s$),this.imod(s$.ushln(N))},n$.prototype.imul=function(s$,N){return this._verify2(s$,N),this.imod(s$.imul(N))},n$.prototype.mul=function(s$,N){return this._verify2(s$,N),this.imod(s$.mul(N))},n$.prototype.isqr=function(s$){return this.imul(s$,s$.clone())},n$.prototype.sqr=function(s$){return this.mul(s$,s$)},n$.prototype.sqrt=function(s$){if(s$.isZero())return s$.clone();var N=this.m.andln(3);if(G(N%2===1),N===3){var t$=this.m.add(new U(1)).iushrn(2);return this.pow(s$,t$)}for(var x=this.m.subn(1),m$=0;!x.isZero()&&x.andln(1)===0;)m$++,x.iushrn(1);G(!x.isZero());var B=new U(1).toRed(this),a$=B.redNeg(),y=this.m.subn(1).iushrn(1),e$=this.m.bitLength();for(e$=new U(2*e$*e$).toRed(this);this.pow(e$,y).cmp(a$)!==0;)e$.redIAdd(a$);for(var w=this.pow(e$,x),r$=this.pow(s$,x.addn(1).iushrn(1)),E=this.pow(s$,x),i$=m$;E.cmp(B)!==0;){for(var p=E,$Q=0;p.cmp(B)!==0;$Q++)p=p.redSqr();G($Q<i$);var f=this.pow(w,new U(1).iushln(i$-$Q-1));r$=r$.redMul(f),w=f.redSqr(),E=E.redMul(w),i$=$Q}return r$},n$.prototype.invm=function(s$){var N=s$._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},n$.prototype.pow=function(s$,N){if(N.isZero())return new U(1).toRed(this);if(N.cmpn(1)===0)return s$.clone();var t$=4,x=new Array(1<<t$);x[0]=new U(1).toRed(this),x[1]=s$;for(var m$=2;m$<x.length;m$++)x[m$]=this.mul(x[m$-1],s$);var B=x[0],a$=0,y=0,e$=N.bitLength()%26;for(e$===0&&(e$=26),m$=N.length-1;m$>=0;m$--){for(var w=N.words[m$],r$=e$-1;r$>=0;r$--){var E=w>>r$&1;if(B!==x[0]&&(B=this.sqr(B)),E===0&&a$===0){y=0;continue}a$<<=1,a$|=E,y++,!(y!==t$&&(m$!==0||r$!==0))&&(B=this.mul(B,x[a$]),y=0,a$=0)}e$=26}return B},n$.prototype.convertTo=function(s$){var N=s$.umod(this.m);return N===s$?N.clone():N},n$.prototype.convertFrom=function(s$){var N=s$.clone();return N.red=null,N},U.mont=function(s$){return new _(s$)};function _(s$){n$.call(this,s$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$(_,n$),_.prototype.convertTo=function(s$){return this.imod(s$.ushln(this.shift))},_.prototype.convertFrom=function(s$){var N=this.imod(s$.mul(this.rinv));return N.red=null,N},_.prototype.imul=function(s$,N){if(s$.isZero()||N.isZero())return s$.words[0]=0,s$.length=1,s$;var t$=s$.imul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.mul=function(s$,N){if(s$.isZero()||N.isZero())return new U(0)._forceRed(this);var t$=s$.mul(N),x=t$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m$=t$.isub(x).iushrn(this.shift),B=m$;return m$.cmp(this.m)>=0?B=m$.isub(this.m):m$.cmpn(0)<0&&(B=m$.iadd(this.m)),B._forceRed(this)},_.prototype.invm=function(s$){var N=this.imod(s$._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof W>"u"||W,H)}}),{CryptoHasher:T$}=globalThis.Bun,EZ=GY({"node_modules/public-encrypt/withPublic.js"(H,W){var p$=WZ(),K=UY().Buffer;function G($,U){return K.from($.toRed(p$.mont(U.modulus)).redPow(new p$(U.publicExponent)).fromRed().toArray())}W.exports=G}}),D$=GY({"node_modules/public-encrypt/publicEncrypt.js"(H,W){var p$=F$(),K=XY(),G=N0(),$=HZ(),U=E$(),Y=WZ(),F=EZ(),O=pY(),f$=UY().Buffer;W.exports=function(h$,S,d$){var v;h$.padding?v=h$.padding:d$?v=1:v=4;var b$=p$(h$),q;if(v===4)q=z(b$,S);else if(v===1)q=c$(b$,S,d$);else if(v===3){if(q=new Y(S),q.cmp(b$.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return d$?O(q,b$):F(q,b$)};function z(h$,S){var d$=h$.modulus.byteLength(),v=S.length,b$=G("sha1").update(f$.alloc(0)).digest(),q=b$.length,l$=2*q;if(v>d$-l$-2)throw new Error("message too long");var j=f$.alloc(d$-v-l$-2),o$=d$-q-1,k=K(q),u$=U(f$.concat([b$,j,f$.alloc(1,1),S],o$),$(k,o$)),g=U(k,$(u$,q));return new Y(f$.concat([f$.alloc(1),g,u$],d$))}function c$(h$,S,d$){var v=S.length,b$=h$.modulus.byteLength();if(v>b$-11)throw new Error("message too long");var q;return d$?q=f$.alloc(b$-v-3,255):q=M(b$-v-3),new Y(f$.concat([f$.from([0,d$?1:2]),q,f$.alloc(1),S],b$))}function M(h$){for(var S=f$.allocUnsafe(h$),d$=0,v=K(h$*2),b$=0,q;d$<h$;)b$===v.length&&(v=K(h$*2),b$=0),q=v[b$++],q&&(S[d$++]=q);return S}}}),TZ=GY({"node_modules/public-encrypt/privateDecrypt.js"(H,W){var p$=F$(),K=HZ(),G=E$(),$=WZ(),U=pY(),Y=N0(),F=EZ(),O=UY().Buffer;W.exports=function(M,h$,S){var d$;M.padding?d$=M.padding:S?d$=1:d$=4;var v=p$(M),b$=v.modulus.byteLength();if(h$.length>b$||new $(h$).cmp(v.modulus)>=0)throw new Error("decryption error");var q;S?q=F(new $(h$),v):q=U(h$,v);var l$=O.alloc(b$-q.length);if(q=O.concat([l$,q],b$),d$===4)return f$(v,q);if(d$===1)return z(v,q,S);if(d$===3)return q;throw new Error("unknown padding")};function f$(M,h$){var S=M.modulus.byteLength(),d$=Y("sha1").update(O.alloc(0)).digest(),v=d$.length;if(h$[0]!==0)throw new Error("decryption error");var b$=h$.slice(1,v+1),q=h$.slice(v+1),l$=G(b$,K(q,v)),j=G(q,K(l$,S-v-1));if(c$(d$,j.slice(0,v)))throw new Error("decryption error");for(var o$=v;j[o$]===0;)o$++;if(j[o$++]!==1)throw new Error("decryption error");return j.slice(o$)}function z(M,h$,S){for(var d$=h$.slice(0,2),v=2,b$=0;h$[v++]!==0;)if(v>=h$.length){b$++;break}var q=h$.slice(2,v-1);if((d$.toString("hex")!=="0002"&&!S||d$.toString("hex")!=="0001"&&S)&&b$++,q.length<8&&b$++,b$)throw new Error("decryption error");return h$.slice(v)}function c$(M,h$){M=O.from(M),h$=O.from(h$);var S=0,d$=M.length;M.length!==h$.length&&(S++,d$=Math.min(M.length,h$.length));for(var v=-1;++v<d$;)S+=M[v]^h$[v];return S}}}),C$=GY({"node_modules/public-encrypt/browser.js"(H){H.publicEncrypt=D$(),H.privateDecrypt=TZ(),H.privateEncrypt=function(W,p$){return H.publicEncrypt(W,p$,!0)},H.publicDecrypt=function(W,p$){return H.privateDecrypt(W,p$,!0)}}}),DZ=GY({"node_modules/randomfill/browser.js"(H){var W=UY(),p$=XY(),K=W.Buffer,G=W.kMaxLength,$=Math.pow(2,32)-1;function U(z,c$){if(typeof z!="number"||z!==z)throw new TypeError("offset must be a number");if(z>$||z<0)throw new TypeError("offset must be a uint32");if(z>G||z>c$)throw new RangeError("offset out of range")}function Y(z,c$,M){if(typeof z!="number"||z!==z)throw new TypeError("size must be a number");if(z>$||z<0)throw new TypeError("size must be a uint32");if(z+c$>M||z>G)throw new RangeError("buffer too small")}H.randomFill=F,H.randomFillSync=f$;function F(z,c$,M,h$){if(!K.isBuffer(z)&&!(z instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof c$=="function")h$=c$,c$=0,M=z.length;else if(typeof M=="function")h$=M,M=z.length-c$;else if(typeof h$!="function")throw new TypeError('"cb" argument must be a function');return U(c$,z.length),Y(M,c$,z.length),O(z,c$,M,h$)}function O(z,c$,M,h$){if(h$){p$(M,function(d$,v){if(d$)return h$(d$);v.copy(z,c$),h$(null,z)});return}var S=p$(M);return S.copy(z,c$),z}function f$(z,c$,M){if(typeof c$>"u"&&(c$=0),!K.isBuffer(z)&&!(z instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return U(c$,z.length),M===void 0&&(M=z.length-c$),Y(M,c$,z.length),O(z,c$,M)}}}),L$=GY({"node_modules/crypto-browserify/index.js"(H){H.randomBytes=H.rng=H.pseudoRandomBytes=H.prng=XY(),H.createHash=N0(),H.Hash=H.createHash.Hash,H.createHmac=H.Hmac=y0();var W=p0(),p$=Object.keys(W),K=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(p$);H.getHashes=function(){return K};var G=d0();H.pbkdf2=G.pbkdf2,H.pbkdf2Sync=G.pbkdf2Sync;var $=yY();H.Cipher=$.Cipher,H.createCipher=$.createCipher,H.Cipheriv=$.Cipheriv,H.createCipheriv=$.createCipheriv,H.Decipher=$.Decipher,H.createDecipher=$.createDecipher,H.Decipheriv=$.Decipheriv,H.createDecipheriv=$.createDecipheriv,H.getCiphers=$.getCiphers,H.listCiphers=$.listCiphers;var U=A();H.DiffieHellmanGroup=U.DiffieHellmanGroup,H.createDiffieHellmanGroup=U.createDiffieHellmanGroup,H.getDiffieHellman=U.getDiffieHellman,H.createDiffieHellman=U.createDiffieHellman,H.DiffieHellman=U.DiffieHellman;var Y=H$();H.createSign=Y.createSign,H.Sign=Y.Sign,H.createVerify=Y.createVerify,H.Verify=Y.Verify,H.createECDH=W$();var F=C$();H.publicEncrypt=F.publicEncrypt,H.privateEncrypt=F.privateEncrypt,H.publicDecrypt=F.publicDecrypt,H.privateDecrypt=F.privateDecrypt,H.getRandomValues=(f$)=>uQ.getRandomValues(f$);var O=DZ();H.randomFill=O.randomFill,H.randomFillSync=O.randomFillSync,H.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
+`))},H.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}}),CZ={...L$(),[Symbol.for("CommonJS")]:0},tQ="buffer",R$=(H)=>uQ.getRandomValues(H),LZ=()=>uQ.randomUUID(),P$=(...H)=>uQ.randomInt(...H),mQ="timingSafeEqual"in uQ?(H,W)=>{let{byteLength:p$}=H,{byteLength:K}=W;if(typeof p$!="number"||typeof K!="number")throw new TypeError("Input must be an array buffer view");if(p$!==K)throw new RangeError("Input buffers must have the same length");return uQ.timingSafeEqual(H,W)}:void 0,RZ="scryptSync"in uQ?(H,W,p$,K)=>{let G=uQ.scryptSync(H,W,p$,K);return tQ!=="buffer"?new lQ(G).toString(tQ):new lQ(G)}:void 0,z$="scryptSync"in uQ?function(H,W,p$,K,G){if(typeof K=="function"&&(G=K,K=void 0),typeof G!="function"){var $=new TypeError("callback must be a function");throw $.code="ERR_INVALID_CALLBACK",$}try{let U=uQ.scryptSync(H,W,p$,K);process.nextTick(G,null,tQ!=="buffer"?new lQ(U).toString(tQ):new lQ(U))}catch(U){throw U}}:void 0;mQ&&(Object.defineProperty(mQ,"name",{value:"::bunternal::"}),Object.defineProperty(z$,"name",{value:"::bunternal::"}),Object.defineProperty(RZ,"name",{value:"::bunternal::"}));var aQ=uQ;VY(CZ,{DEFAULT_ENCODING:()=>tQ,getRandomValues:()=>R$,randomUUID:()=>LZ,randomInt:()=>P$,scrypt:()=>z$,scryptSync:()=>RZ,timingSafeEqual:()=>mQ,webcrypto:()=>aQ,subtle:()=>aQ.subtle});var{randomBytes:PZ,rng:M$,pseudoRandomBytes:zZ,prng:S$,Hash:MZ,createHash:v$,createHmac:SZ,Hmac:L,getHashes:vZ,pbkdf2:q$,pbkdf2Sync:qZ,Cipher:R,createCipher:jZ,Cipheriv:P,createCipheriv:kZ,Decipher:j$,createDecipher:gZ,Decipheriv:k$,createDecipheriv:_Z,getCiphers:NZ,listCiphers:xZ,DiffieHellmanGroup:BZ,createDiffieHellmanGroup:yZ,getDiffieHellman:g$,createDiffieHellman:wZ,DiffieHellman:_$,createSign:pZ,Sign:N$,createVerify:fZ,Verify:x$,createECDH:cZ,publicEncrypt:B$,privateEncrypt:hZ,publicDecrypt:y$,privateDecrypt:dZ,randomFill:w$,randomFillSync:bZ,createCredentials:lZ,constants:oZ}=CZ;var nZ=CZ;/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */export{aQ as webcrypto,mQ as timingSafeEqual,RZ as scryptSync,z$ as scrypt,M$ as rng,LZ as randomUUID,P$ as randomInt,bZ as randomFillSync,w$ as randomFill,PZ as randomBytes,B$ as publicEncrypt,y$ as publicDecrypt,zZ as pseudoRandomBytes,S$ as prng,hZ as privateEncrypt,dZ as privateDecrypt,qZ as pbkdf2Sync,q$ as pbkdf2,xZ as listCiphers,R$ as getRandomValues,vZ as getHashes,g$ as getDiffieHellman,NZ as getCiphers,nZ as default,fZ as createVerify,pZ as createSign,SZ as createHmac,v$ as createHash,cZ as createECDH,yZ as createDiffieHellmanGroup,wZ as createDiffieHellman,_Z as createDecipheriv,gZ as createDecipher,lZ as createCredentials,kZ as createCipheriv,jZ as createCipher,oZ as constants,x$ as Verify,N$ as Sign,L as Hmac,MZ as Hash,BZ as DiffieHellmanGroup,_$ as DiffieHellman,k$ as Decipheriv,j$ as Decipher,tQ as DEFAULT_ENCODING,P as Cipheriv,R as Cipher};
diff --git a/src/js/out/modules/node/fs.promises.js b/src/js/out/modules/node/fs.promises.js
index dea54f013..5c15c5bd8 100644
--- a/src/js/out/modules/node/fs.promises.js
+++ b/src/js/out/modules/node/fs.promises.js
@@ -1 +1 @@
-function B(i,W={}){const S=[];if(i instanceof URL)throw new TypeError("Watch URLs are not supported yet");else if(Buffer.isBuffer(i))i=i.toString();else if(typeof i!=="string")throw new TypeError("Expected path to be a string or Buffer");let k=null;if(typeof W==="string")W={encoding:W};return A.watch(i,W||{},(q,E)=>{if(S.push({eventType:q,filename:E}),k){const z=k;k=null,z()}}),{async*[Symbol.asyncIterator](){let q=!1;while(!q){while(S.length){let E=S.shift();if(E.eventType==="close"){q=!0;break}if(E.eventType==="error")throw q=!0,E.filename;yield E}await new Promise((E)=>k=E)}}}}var A=Bun.fs(),x="::bunternal::",F={[x]:(i)=>{var W={[x]:function(S,k,q){var E;try{E=i.apply(A,q),q=void 0}catch(z){q=void 0,k(z);return}S(E)}}[x];return async function(...S){return await new Promise((k,q)=>{process.nextTick(W,k,q,S)})}}}[x],T=F(A.accessSync),C=F(A.appendFileSync),R=F(A.closeSync),D=F(A.copyFileSync),g=F(A.existsSync),G=F(A.chownSync),h=F(A.chmodSync),H=F(A.fchmodSync),j=F(A.fchownSync),I=F(A.fstatSync),w=F(A.fsyncSync),J=F(A.ftruncateSync),b=F(A.futimesSync),K=F(A.lchmodSync),u=F(A.lchownSync),L=F(A.linkSync),d=F(A.lstatSync),M=F(A.mkdirSync),c=F(A.mkdtempSync),N=F(A.openSync),v=F(A.readSync),O=F(A.writeSync),a=F(A.readdirSync),P=F(A.readFileSync),y=F(A.writeFileSync),Q=F(A.readlinkSync),l=F(A.realpathSync),U=F(A.renameSync),p=F(A.statSync),V=F(A.symlinkSync),m=F(A.truncateSync),X=F(A.unlinkSync),n=F(A.utimesSync),Y=F(A.lutimesSync),t=F(A.rmSync),Z=F(A.rmdirSync),o=(i,W,S)=>{return new Promise((k,q)=>{try{var E=A.writevSync(i,W,S)}catch(z){q(z);return}k({bytesWritten:E,buffers:W})})},_=(i,W,S)=>{return new Promise((k,q)=>{try{var E=A.readvSync(i,W,S)}catch(z){q(z);return}k({bytesRead:E,buffers:W})})},r={access:T,appendFile:C,close:R,copyFile:D,exists:g,chown:G,chmod:h,fchmod:H,fchown:j,fstat:I,fsync:w,ftruncate:J,futimes:b,lchmod:K,lchown:u,link:L,lstat:d,mkdir:M,mkdtemp:c,open:N,read:v,write:O,readdir:a,readFile:P,writeFile:y,readlink:Q,realpath:l,rename:U,stat:p,symlink:V,truncate:m,unlink:X,utimes:n,lutimes:Y,rm:t,rmdir:Z,watch:B,writev:o,readv:_,constants,[Symbol.for("CommonJS")]:0};export{o as writev,y as writeFile,O as write,B as watch,n as utimes,X as unlink,m as truncate,V as symlink,p as stat,Z as rmdir,t as rm,U as rename,l as realpath,_ as readv,Q as readlink,a as readdir,P as readFile,v as read,N as open,c as mkdtemp,M as mkdir,Y as lutimes,d as lstat,L as link,u as lchown,K as lchmod,b as futimes,J as ftruncate,w as fsync,I as fstat,j as fchown,H as fchmod,g as exists,r as default,D as copyFile,R as close,G as chown,h as chmod,C as appendFile,T as access};
+function P(B,C={}){const D=[];if(B instanceof URL)throw new TypeError("Watch URLs are not supported yet");else if(Buffer.isBuffer(B))B=B.toString();else if(typeof B!=="string")throw new TypeError("Expected path to be a string or Buffer");let z=null;if(typeof C==="string")C={encoding:C};return N.watch(B,C||{},(A,S)=>{if(D.push({eventType:A,filename:S}),z){const q=z;z=null,q()}}),{async*[Symbol.asyncIterator](){let A=!1;while(!A){while(D.length){let S=D.shift();if(S.eventType==="close"){A=!0;break}if(S.eventType==="error")throw A=!0,S.filename;yield S}await new Promise((S)=>z=S)}}}}var N=Bun.fs(),M="::bunternal::",O={[M]:(B)=>{var C={[M]:function(D,z,A){var S;try{S=B.apply(N,A),A=void 0}catch(q){A=void 0,z(q);return}D(S)}}[M];return async function(...D){return await new Promise((z,A)=>{process.nextTick(C,z,A,D)})}}}[M],Q=O(N.accessSync),U=O(N.appendFileSync),V=O(N.closeSync),X=O(N.copyFileSync),d=O(N.existsSync),G=O(N.chownSync),Y=O(N.chmodSync),H=O(N.fchmodSync),Z=O(N.fchownSync),_=O(N.fstatSync),$=O(N.fsyncSync),T=O(N.ftruncateSync),W=O(N.futimesSync),k=O(N.lchmodSync),E=O(N.lchownSync),x=O(N.linkSync),F=O(N.lstatSync),R=O(N.mkdirSync),g=O(N.mkdtempSync),h=O(N.openSync),c=O(N.readSync),j=O(N.writeSync),w=O(N.readdirSync),I=O(N.readFileSync),v=O(N.writeFileSync),J=O(N.readlinkSync),b=O(N.realpathSync),u=O(N.renameSync),y=O(N.statSync),l=O(N.symlinkSync),p=O(N.truncateSync),m=O(N.unlinkSync),n=O(N.utimesSync),t=O(N.lutimesSync),o=O(N.rmSync),r=O(N.rmdirSync),a=(B,C,D)=>{return new Promise((z,A)=>{try{var S=N.writevSync(B,C,D)}catch(q){A(q);return}z({bytesWritten:S,buffers:C})})},K=(B,C,D)=>{return new Promise((z,A)=>{try{var S=N.readvSync(B,C,D)}catch(q){A(q);return}z({bytesRead:S,buffers:C})})},i={access:Q,appendFile:U,close:V,copyFile:X,exists:d,chown:G,chmod:Y,fchmod:H,fchown:Z,fstat:_,fsync:$,ftruncate:T,futimes:W,lchmod:k,lchown:E,link:x,lstat:F,mkdir:R,mkdtemp:g,open:h,read:c,write:j,readdir:w,readFile:I,writeFile:v,readlink:J,realpath:b,rename:u,stat:y,symlink:l,truncate:p,unlink:m,utimes:n,lutimes:t,rm:o,rmdir:r,watch:P,writev:a,readv:K,constants,[Symbol.for("CommonJS")]:0};export{a as writev,v as writeFile,j as write,P as watch,n as utimes,m as unlink,p as truncate,l as symlink,y as stat,r as rmdir,o as rm,u as rename,b as realpath,K as readv,J as readlink,w as readdir,I as readFile,c as read,h as open,g as mkdtemp,R as mkdir,t as lutimes,F as lstat,x as link,E as lchown,k as lchmod,W as futimes,T as ftruncate,$ as fsync,_ as fstat,Z as fchown,H as fchmod,d as exists,i as default,X as copyFile,V as close,G as chown,Y as chmod,U as appendFile,Q as access};
diff --git a/src/js/out/modules/node/path.js b/src/js/out/modules/node/path.js
index 474c3e414..ac8f6e704 100644
--- a/src/js/out/modules/node/path.js
+++ b/src/js/out/modules/node/path.js
@@ -1 +1 @@
-var C=function(k){var A=B({basename:k.basename.bind(k),dirname:k.dirname.bind(k),extname:k.extname.bind(k),format:k.format.bind(k),isAbsolute:k.isAbsolute.bind(k),join:k.join.bind(k),normalize:k.normalize.bind(k),parse:k.parse.bind(k),relative:k.relative.bind(k),resolve:k.resolve.bind(k),toNamespacedPath:k.toNamespacedPath.bind(k),sep:k.sep,delimiter:k.delimiter});return A.default=A,A},B=(k)=>Object.assign(Object.create(null),k),D=C(Bun._Path()),q=C(Bun._Path(!1)),H=C(Bun._Path(!0));D.win32=H;D.posix=q;var{basename:E,dirname:m,extname:i,format:v,isAbsolute:I,join:F,normalize:g,parse:f,relative:y,resolve:J,toNamespacedPath:K,sep:z,delimiter:G,__esModule:L}=D;D[Symbol.for("CommonJS")]=0;D.__esModule=!0;var O=D;export{H as win32,K as toNamespacedPath,z as sep,J as resolve,y as relative,q as posix,f as parse,g as normalize,F as join,I as isAbsolute,v as format,i as extname,m as dirname,G as delimiter,O as default,B as createModule,E as basename,L as __esModule};
+var i=function(A){var f=B({basename:A.basename.bind(A),dirname:A.dirname.bind(A),extname:A.extname.bind(A),format:A.format.bind(A),isAbsolute:A.isAbsolute.bind(A),join:A.join.bind(A),normalize:A.normalize.bind(A),parse:A.parse.bind(A),relative:A.relative.bind(A),resolve:A.resolve.bind(A),toNamespacedPath:A.toNamespacedPath.bind(A),sep:A.sep,delimiter:A.delimiter});return f.default=f,f},B=(A)=>Object.assign(Object.create(null),A),m=i(Bun._Path()),C=i(Bun._Path(!1)),D=i(Bun._Path(!0));m.win32=D;m.posix=C;var{basename:E,dirname:g,extname:F,format:k,isAbsolute:G,join:q,normalize:H,parse:v,relative:I,resolve:J,toNamespacedPath:K,sep:y,delimiter:L,__esModule:z}=m;m[Symbol.for("CommonJS")]=0;m.__esModule=!0;var O=m;export{D as win32,K as toNamespacedPath,y as sep,J as resolve,I as relative,C as posix,v as parse,H as normalize,q as join,G as isAbsolute,k as format,F as extname,g as dirname,L as delimiter,O as default,B as createModule,E as basename,z as __esModule};
diff --git a/src/js/out/modules/node/path.posix.js b/src/js/out/modules/node/path.posix.js
index 64e8a62f5..0f82d9f8b 100644
--- a/src/js/out/modules/node/path.posix.js
+++ b/src/js/out/modules/node/path.posix.js
@@ -1 +1 @@
-var i=function(e){return{basename:e.basename.bind(e),dirname:e.dirname.bind(e),extname:e.extname.bind(e),format:e.format.bind(e),isAbsolute:e.isAbsolute.bind(e),join:e.join.bind(e),normalize:e.normalize.bind(e),parse:e.parse.bind(e),relative:e.relative.bind(e),resolve:e.resolve.bind(e),toNamespacedPath:e.toNamespacedPath.bind(e),sep:e.sep,delimiter:e.delimiter}},r=i(Bun._Path(!1));r[Symbol.for("CommonJS")]=0;var{basename:d,dirname:l,extname:s,format:c,isAbsolute:f,join:g,normalize:k,parse:m,relative:q,resolve:t,toNamespacedPath:v,sep:w,delimiter:x}=r,z=r;export{v as toNamespacedPath,w as sep,t as resolve,q as relative,m as parse,k as normalize,g as join,f as isAbsolute,c as format,s as extname,l as dirname,x as delimiter,z as default,d as basename};
+var r=function(i){return{basename:i.basename.bind(i),dirname:i.dirname.bind(i),extname:i.extname.bind(i),format:i.format.bind(i),isAbsolute:i.isAbsolute.bind(i),join:i.join.bind(i),normalize:i.normalize.bind(i),parse:i.parse.bind(i),relative:i.relative.bind(i),resolve:i.resolve.bind(i),toNamespacedPath:i.toNamespacedPath.bind(i),sep:i.sep,delimiter:i.delimiter}},d=r(Bun._Path(!1));d[Symbol.for("CommonJS")]=0;var{basename:e,dirname:g,extname:l,format:k,isAbsolute:s,join:m,normalize:q,parse:t,relative:v,resolve:w,toNamespacedPath:c,sep:x,delimiter:f}=d,z=d;export{c as toNamespacedPath,x as sep,w as resolve,v as relative,t as parse,q as normalize,m as join,s as isAbsolute,k as format,l as extname,g as dirname,f as delimiter,z as default,e as basename};
diff --git a/src/js/out/modules/node/path.win32.js b/src/js/out/modules/node/path.win32.js
index 03d7b81c8..7d5c17a8f 100644
--- a/src/js/out/modules/node/path.win32.js
+++ b/src/js/out/modules/node/path.win32.js
@@ -1 +1 @@
-var e=function(i){return{basename:i.basename.bind(i),dirname:i.dirname.bind(i),extname:i.extname.bind(i),format:i.format.bind(i),isAbsolute:i.isAbsolute.bind(i),join:i.join.bind(i),normalize:i.normalize.bind(i),parse:i.parse.bind(i),relative:i.relative.bind(i),resolve:i.resolve.bind(i),toNamespacedPath:i.toNamespacedPath.bind(i),sep:i.sep,delimiter:i.delimiter}},r=e(Bun._Path(!0)),{basename:s,dirname:t,extname:c,format:d,isAbsolute:f,join:g,normalize:k,parse:l,relative:m,resolve:n,toNamespacedPath:q,sep:v,delimiter:w}=r,y=r;export{q as toNamespacedPath,v as sep,n as resolve,m as relative,l as parse,k as normalize,g as join,f as isAbsolute,d as format,c as extname,t as dirname,w as delimiter,y as default,s as basename};
+var t=function(i){return{basename:i.basename.bind(i),dirname:i.dirname.bind(i),extname:i.extname.bind(i),format:i.format.bind(i),isAbsolute:i.isAbsolute.bind(i),join:i.join.bind(i),normalize:i.normalize.bind(i),parse:i.parse.bind(i),relative:i.relative.bind(i),resolve:i.resolve.bind(i),toNamespacedPath:i.toNamespacedPath.bind(i),sep:i.sep,delimiter:i.delimiter}},m=t(Bun._Path(!0)),{basename:l,dirname:n,extname:q,format:d,isAbsolute:r,join:c,normalize:x,parse:s,relative:f,resolve:w,toNamespacedPath:v,sep:e,delimiter:y}=m,g=m;export{v as toNamespacedPath,e as sep,w as resolve,f as relative,s as parse,x as normalize,c as join,r as isAbsolute,d as format,q as extname,n as dirname,y as delimiter,g as default,l as basename};
diff --git a/src/js/out/modules/node/stream.js b/src/js/out/modules/node/stream.js
index f96818bd6..da45679f6 100644
--- a/src/js/out/modules/node/stream.js
+++ b/src/js/out/modules/node/stream.js
@@ -1,2 +1,2 @@
-import{EventEmitter as Pq} from"bun:events_native";import{StringDecoder as Sq} from"node:string_decoder";var cq=function(q){return typeof q==="object"&&q!==null&&q instanceof ReadableStream},dq=function(q,Q){if(typeof q!=="boolean")throw new iq(Q,"boolean",q)};var iq=function(q,Q,X){return new Error(`The argument '${q}' is invalid. Received '${X}' for type '${Q}'`)},nq=function(q,Q,X){return new Error(`The value '${Q}' is invalid for argument '${q}'. Reason: ${X}`)},FQ=function(q,Q){var[X,J,H,K,Z,B,Y]=globalThis[Symbol.for("Bun.lazy")](q),$=[!1],z=function(F,L,j,N){if(L>0){const A=j.subarray(0,L),E=j.subarray(L);if(A.byteLength>0)F.push(A);if(N)F.push(null);return E.byteLength>0?E:void 0}if(N)F.push(null);return j},V=function(F,L,j,N){if(L.byteLength>0)F.push(L);if(N)F.push(null);return j},U=process.env.BUN_DISABLE_DYNAMIC_CHUNK_SIZE!=="1";const W=new FinalizationRegistry((F)=>F&&Z(F)),G=512;var M=class F extends Q{#q;#Q=1;#X=!1;#J=void 0;#H;#K=!1;#Z=!U;#B;constructor(L,j={}){super(j);if(typeof j.highWaterMark==="number")this.#H=j.highWaterMark;else this.#H=262144;this.#q=L,this.#X=!1,this.#J=void 0,this.#K=!1,this.#B={},W.register(this,this.#q,this.#B)}_read(L){if(Aq&&Nq("NativeReadable._read",this.__id),this.#K){Aq&&Nq("pendingRead is true",this.__id);return}var j=this.#q;if(Aq&&Nq("ptr @ NativeReadable._read",j,this.__id),j===0){this.push(null);return}if(!this.#X)Aq&&Nq("NativeReadable not constructed yet",this.__id),this.#Y(j);return this.#V(this.#$(L),j)}#Y(L){this.#X=!0;const j=J(L,this.#H);if(Aq&&Nq("NativeReadable internal `start` result",j,this.__id),typeof j==="number"&&j>1)this.#Z=!0,Aq&&Nq("NativeReadable resized",this.__id),this.#H=Math.min(this.#H,j);if(Y){const N=Y(L);if(Aq&&Nq("NativeReadable drain result",N,this.__id),(N?.byteLength??0)>0)this.push(N)}}#$(L=this.#H){var j=this.#J;if(Aq&&Nq("chunk @ #getRemainingChunk",j,this.__id),j?.byteLength??0<G){var N=L>G?L:G;this.#J=j=new Buffer(N)}return j}push(L,j){return Aq&&Nq("NativeReadable push -- result, encoding",L,j,this.__id),super.push(...arguments)}#z(L,j,N){if(Aq&&Nq("result, isClosed @ #handleResult",L,N,this.__id),typeof L==="number"){if(L>=this.#H&&!this.#Z&&!N)this.#H*=2,this.#Z=!0;return z(this,L,j,N)}else if(typeof L==="boolean")return this.push(null),j?.byteLength??0>0?j:void 0;else if(ArrayBuffer.isView(L)){if(L.byteLength>=this.#H&&!this.#Z&&!N)this.#H*=2,this.#Z=!0,Aq&&Nq("Resized",this.__id);return V(this,L,j,N)}else throw Aq&&Nq("Unknown result type",L,this.__id),new Error("Invalid result from pull")}#V(L,j){Aq&&Nq("#internalRead()",this.__id),$[0]=!1;var N=X(j,L,$);if(xq(N))return this.#K=!0,N.then((A)=>{this.#K=!1,Aq&&Nq("pending no longerrrrrrrr (result returned from pull)",this.__id),this.#J=this.#z(A,L,$[0])},(A)=>{Aq&&Nq("error from pull",A,this.__id),errorOrDestroy(this,A)});else this.#J=this.#z(N,L,$[0])}_destroy(L,j){var N=this.#q;if(N===0){j(L);return}if(W.unregister(this.#B),this.#q=0,B)B(N,!1);Aq&&Nq("NativeReadable destroyed",this.__id),H(N,L),j(L)}ref(){var L=this.#q;if(L===0)return;if(this.#Q++===0)B(L,!0)}unref(){var L=this.#q;if(L===0)return;if(this.#Q--===1)B(L,!1)}};if(!B)M.prototype.ref=void 0,M.prototype.unref=void 0;return M},jQ=function(q,Q){return LQ[q]||=FQ(q,Q)},NQ=function(q,Q,X){if(!(Q&&typeof Q==="object"&&Q instanceof ReadableStream))return;const J=wq(Q);if(!J){Nq("no native readable stream");return}const{stream:H,data:K}=J;return new(jQ(K,q))(H,X)},{isPromise:xq,isCallable:Dq,direct:wq,Object:Tq}=globalThis[Symbol.for("Bun.lazy")]("primordials");globalThis.__IDS_TO_TRACK=process.env.DEBUG_TRACK_EE?.length?process.env.DEBUG_TRACK_EE.split(","):process.env.DEBUG_STREAMS?.length?process.env.DEBUG_STREAMS.split(","):null;var gq=!!process.env.DEBUG_TRACK_EE,Aq=!!(process.env.DEBUG||process.env.DEBUG_STREAMS||gq),Nq=Aq?globalThis.__IDS_TO_TRACK?(...q)=>{const Q=q[q.length-1];if(!globalThis.__IDS_TO_TRACK.includes(Q))return;console.log(`ID: ${Q}`,...q.slice(0,-1))}:(...q)=>console.log(...q.slice(0,-1)):()=>{},fq=Tq.create,kq=Tq.defineProperty,yq=Tq.getOwnPropertyDescriptor,hq=Tq.getOwnPropertyNames,pq=Tq.getPrototypeOf,uq=Tq.prototype.hasOwnProperty,bq=Tq.setPrototypeOf,mq=(q,Q)=>function X(){return Q||(0,q[hq(q)[0]])((Q={exports:{}}).exports,Q),Q.exports};var Iq=process.nextTick;var lq=Array.isArray,Oq=mq({"node_modules/readable-stream/lib/ours/primordials.js"(q,Q){Q.exports={ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,J){return X.includes(J)},ArrayPrototypeIndexOf(X,J){return X.indexOf(J)},ArrayPrototypeJoin(X,J){return X.join(J)},ArrayPrototypeMap(X,J){return X.map(J)},ArrayPrototypePop(X,J){return X.pop(J)},ArrayPrototypePush(X,J){return X.push(J)},ArrayPrototypeSlice(X,J,H){return X.slice(J,H)},Error,FunctionPrototypeCall(X,J,...H){return X.call(J,...H)},FunctionPrototypeSymbolHasInstance(X,J){return Function.prototype[Symbol.hasInstance].call(X,J)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(X,J){return Tq.defineProperties(X,J)},ObjectDefineProperty(X,J,H){return Tq.defineProperty(X,J,H)},ObjectGetOwnPropertyDescriptor(X,J){return Tq.getOwnPropertyDescriptor(X,J)},ObjectKeys(X){return Tq.keys(X)},ObjectSetPrototypeOf(X,J){return Tq.setPrototypeOf(X,J)},Promise,PromisePrototypeCatch(X,J){return X.catch(J)},PromisePrototypeThen(X,J,H){return X.then(J,H)},PromiseReject(X){return Promise.reject(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,J){return X.test(J)},SafeSet:Set,String,StringPrototypeSlice(X,J,H){return X.slice(J,H)},StringPrototypeToLowerCase(X){return X.toLowerCase()},StringPrototypeToUpperCase(X){return X.toUpperCase()},StringPrototypeTrim(X){return X.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(X,J,H){return X.set(J,H)},Uint8Array}}}),_q=mq({"node_modules/readable-stream/lib/ours/util.js"(q,Q){var X=Tq.getPrototypeOf(async function(){}).constructor,J=typeof Blob!=="undefined"?function K(Z){return Z instanceof Blob}:function K(Z){return!1},H=class extends Error{constructor(K){if(!Array.isArray(K))throw new TypeError(`Expected input to be an Array, got ${typeof K}`);let Z="";for(let B=0;B<K.length;B++)Z+=` ${K[B].stack}
-`;super(Z);this.name="AggregateError",this.errors=K}};Q.exports={AggregateError:H,once(K){let Z=!1;return function(...B){if(Z)return;Z=!0,K.apply(this,B)}},createDeferredPromise:function(){let K,Z;return{promise:new Promise((Y,$)=>{K=Y,Z=$}),resolve:K,reject:Z}},promisify(K){return new Promise((Z,B)=>{K((Y,...$)=>{if(Y)return B(Y);return Z(...$)})})},debuglog(){return function(){}},format(K,...Z){return K.replace(/%([sdifj])/g,function(...[B,Y]){const $=Z.shift();if(Y==="f")return $.toFixed(6);else if(Y==="j")return JSON.stringify($);else if(Y==="s"&&typeof $==="object")return`${$.constructor!==Tq?$.constructor.name:""} {}`.trim();else return $.toString()})},inspect(K){switch(typeof K){case"string":if(K.includes("'")){if(!K.includes('"'))return`"${K}"`;else if(!K.includes("`")&&!K.includes("${"))return`\`${K}\``}return`'${K}'`;case"number":if(isNaN(K))return"NaN";else if(Tq.is(K,-0))return String(K);return K;case"bigint":return`${String(K)}n`;case"boolean":case"undefined":return String(K);case"object":return"{}"}},types:{isAsyncFunction(K){return K instanceof X},isArrayBufferView(K){return ArrayBuffer.isView(K)}},isBlob:J},Q.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}}),oq=mq({"node_modules/readable-stream/lib/ours/errors.js"(q,Q){var{format:X,inspect:J,AggregateError:H}=_q(),K=globalThis.AggregateError||H,Z=Symbol("kIsNodeError"),B=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Y=/^([A-Z][a-z0-9]*)+$/,$="__node_internal_",z={};function V(j,N){if(!j)throw new z.ERR_INTERNAL_ASSERTION(N)}function U(j){let N="",A=j.length;const E=j[0]==="-"?1:0;for(;A>=E+4;A-=3)N=`_${j.slice(A-3,A)}${N}`;return`${j.slice(0,A)}${N}`}function W(j,N,A){if(typeof N==="function")return V(N.length<=A.length,`Code: ${j}; The provided arguments length (${A.length}) does not match the required ones (${N.length}).`),N(...A);const E=(N.match(/%[dfijoOs]/g)||[]).length;if(V(E===A.length,`Code: ${j}; The provided arguments length (${A.length}) does not match the required ones (${E}).`),A.length===0)return N;return X(N,...A)}function G(j,N,A){if(!A)A=Error;class E extends A{constructor(...I){super(W(j,N,I))}toString(){return`${this.name} [${j}]: ${this.message}`}}Tq.defineProperties(E.prototype,{name:{value:A.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${j}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),E.prototype.code=j,E.prototype[Z]=!0,z[j]=E}function M(j){const N=$+j.name;return Tq.defineProperty(j,"name",{value:N}),j}function F(j,N){if(j&&N&&j!==N){if(Array.isArray(N.errors))return N.errors.push(j),N;const A=new K([N,j],N.message);return A.code=N.code,A}return j||N}var L=class extends Error{constructor(j="The operation was aborted",N=void 0){if(N!==void 0&&typeof N!=="object")throw new z.ERR_INVALID_ARG_TYPE("options","Object",N);super(j,N);this.code="ABORT_ERR",this.name="AbortError"}};G("ERR_ASSERTION","%s",Error),G("ERR_INVALID_ARG_TYPE",(j,N,A)=>{if(V(typeof j==="string","'name' must be a string"),!Array.isArray(N))N=[N];let E="The ";if(j.endsWith(" argument"))E+=`${j} `;else E+=`"${j}" ${j.includes(".")?"property":"argument"} `;E+="must be ";const I=[],T=[],P=[];for(let O of N)if(V(typeof O==="string","All expected entries have to be of type string"),B.includes(O))I.push(O.toLowerCase());else if(Y.test(O))T.push(O);else V(O!=="object",'The value "object" should be written as "Object"'),P.push(O);if(T.length>0){const O=I.indexOf("object");if(O!==-1)I.splice(I,O,1),T.push("Object")}if(I.length>0){switch(I.length){case 1:E+=`of type ${I[0]}`;break;case 2:E+=`one of type ${I[0]} or ${I[1]}`;break;default:{const O=I.pop();E+=`one of type ${I.join(", ")}, or ${O}`}}if(T.length>0||P.length>0)E+=" or "}if(T.length>0){switch(T.length){case 1:E+=`an instance of ${T[0]}`;break;case 2:E+=`an instance of ${T[0]} or ${T[1]}`;break;default:{const O=T.pop();E+=`an instance of ${T.join(", ")}, or ${O}`}}if(P.length>0)E+=" or "}switch(P.length){case 0:break;case 1:if(P[0].toLowerCase()!==P[0])E+="an ";E+=`${P[0]}`;break;case 2:E+=`one of ${P[0]} or ${P[1]}`;break;default:{const O=P.pop();E+=`one of ${P.join(", ")}, or ${O}`}}if(A==null)E+=`. Received ${A}`;else if(typeof A==="function"&&A.name)E+=`. Received function ${A.name}`;else if(typeof A==="object"){var x;if((x=A.constructor)!==null&&x!==void 0&&x.name)E+=`. Received an instance of ${A.constructor.name}`;else{const O=J(A,{depth:-1});E+=`. Received ${O}`}}else{let O=J(A,{colors:!1});if(O.length>25)O=`${O.slice(0,25)}...`;E+=`. Received type ${typeof A} (${O})`}return E},TypeError),G("ERR_INVALID_ARG_VALUE",(j,N,A="is invalid")=>{let E=J(N);if(E.length>128)E=E.slice(0,128)+"...";return`The ${j.includes(".")?"property":"argument"} '${j}' ${A}. Received ${E}`},TypeError),G("ERR_INVALID_RETURN_VALUE",(j,N,A)=>{var E;const I=A!==null&&A!==void 0&&(E=A.constructor)!==null&&E!==void 0&&E.name?`instance of ${A.constructor.name}`:`type ${typeof A}`;return`Expected ${j} to be returned from the "${N}" function but got ${I}.`},TypeError),G("ERR_MISSING_ARGS",(...j)=>{V(j.length>0,"At least one arg needs to be specified");let N;const A=j.length;switch(j=(Array.isArray(j)?j:[j]).map((E)=>`"${E}"`).join(" or "),A){case 1:N+=`The ${j[0]} argument`;break;case 2:N+=`The ${j[0]} and ${j[1]} arguments`;break;default:{const E=j.pop();N+=`The ${j.join(", ")}, and ${E} arguments`}break}return`${N} must be specified`},TypeError),G("ERR_OUT_OF_RANGE",(j,N,A)=>{V(N,'Missing "range" argument');let E;if(Number.isInteger(A)&&Math.abs(A)>4294967296)E=U(String(A));else if(typeof A==="bigint"){if(E=String(A),A>2n**32n||A<-(2n**32n))E=U(E);E+="n"}else E=J(A);return`The value of "${j}" is out of range. It must be ${N}. Received ${E}`},RangeError),G("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),G("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),G("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),G("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),G("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),G("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),G("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),G("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),G("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),G("ERR_STREAM_WRITE_AFTER_END","write after end",Error),G("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Q.exports={AbortError:L,aggregateTwoErrors:M(F),hideStackFrames:M,codes:z}}}),sq=mq({"node_modules/readable-stream/lib/internal/validators.js"(q,Q){var{ArrayIsArray:X,ArrayPrototypeIncludes:J,ArrayPrototypeJoin:H,ArrayPrototypeMap:K,NumberIsInteger:Z,NumberMAX_SAFE_INTEGER:B,NumberMIN_SAFE_INTEGER:Y,NumberParseInt:$,RegExpPrototypeTest:z,String:V,StringPrototypeToUpperCase:U,StringPrototypeTrim:W}=Oq(),{hideStackFrames:G,codes:{ERR_SOCKET_BAD_PORT:M,ERR_INVALID_ARG_TYPE:F,ERR_INVALID_ARG_VALUE:L,ERR_OUT_OF_RANGE:j,ERR_UNKNOWN_SIGNAL:N}}=oq(),{normalizeEncoding:A}=_q(),{isAsyncFunction:E,isArrayBufferView:I}=_q().types,T={};function P(i){return i===(i|0)}function x(i){return i===i>>>0}var O=/^[0-7]+$/,_="must be a 32-bit unsigned integer or an octal string";function C(i,n,o){if(typeof i==="undefined")i=o;if(typeof i==="string"){if(!z(O,i))throw new L(n,i,_);i=$(i,8)}return w(i,n,0,4294967295),i}var D=G((i,n,o=Y,s=B)=>{if(typeof i!=="number")throw new F(n,"number",i);if(!Z(i))throw new j(n,"an integer",i);if(i<o||i>s)throw new j(n,`>= ${o} && <= ${s}`,i)}),w=G((i,n,o=-2147483648,s=2147483647)=>{if(typeof i!=="number")throw new F(n,"number",i);if(!P(i)){if(!Z(i))throw new j(n,"an integer",i);throw new j(n,`>= ${o} && <= ${s}`,i)}if(i<o||i>s)throw new j(n,`>= ${o} && <= ${s}`,i)}),v=G((i,n,o)=>{if(typeof i!=="number")throw new F(n,"number",i);if(!x(i)){if(!Z(i))throw new j(n,"an integer",i);throw new j(n,`>= ${o?1:0} && < 4294967296`,i)}if(o&&i===0)throw new j(n,">= 1 && < 4294967296",i)});function R(i,n){if(typeof i!=="string")throw new F(n,"string",i)}function S(i,n){if(typeof i!=="number")throw new F(n,"number",i)}var g=G((i,n,o)=>{if(!J(o,i)){const a="must be one of: "+H(K(o,(r)=>typeof r==="string"?`'${r}'`:V(r)),", ");throw new L(n,i,a)}});function f(i,n){if(typeof i!=="boolean")throw new F(n,"boolean",i)}var k=G((i,n,o)=>{const s=o==null,a=s?!1:o.allowArray,r=s?!1:o.allowFunction;if(!(s?!1:o.nullable)&&i===null||!a&&X(i)||typeof i!=="object"&&(!r||typeof i!=="function"))throw new F(n,"Object",i)}),y=G((i,n,o=0)=>{if(!X(i))throw new F(n,"Array",i);if(i.length<o){const s=`must be longer than ${o}`;throw new L(n,i,s)}});function h(i,n="signal"){if(R(i,n),T[i]===void 0){if(T[U(i)]!==void 0)throw new N(i+" (signals must use all capital letters)");throw new N(i)}}var p=G((i,n="buffer")=>{if(!I(i))throw new F(n,["Buffer","TypedArray","DataView"],i)});function u(i,n){const o=A(n),s=i.length;if(o==="hex"&&s%2!==0)throw new L("encoding",n,`is invalid for data of length ${s}`)}function b(i,n="Port",o=!0){if(typeof i!=="number"&&typeof i!=="string"||typeof i==="string"&&W(i).length===0||+i!==+i>>>0||i>65535||i===0&&!o)throw new M(n,i,o);return i|0}var m=G((i,n)=>{if(i!==void 0&&(i===null||typeof i!=="object"||!("aborted"in i)))throw new F(n,"AbortSignal",i)}),c=G((i,n)=>{if(typeof i!=="function")throw new F(n,"Function",i)}),d=G((i,n)=>{if(typeof i!=="function"||E(i))throw new F(n,"Function",i)}),l=G((i,n)=>{if(i!==void 0)throw new F(n,"undefined",i)});Q.exports={isInt32:P,isUint32:x,parseFileMode:C,validateArray:y,validateBoolean:f,validateBuffer:p,validateEncoding:u,validateFunction:c,validateInt32:w,validateInteger:D,validateNumber:S,validateObject:k,validateOneOf:g,validatePlainFunction:d,validatePort:b,validateSignalName:h,validateString:R,validateUint32:v,validateUndefined:l,validateAbortSignal:m}}}),aq=mq({"node_modules/readable-stream/lib/internal/streams/utils.js"(q,Q){var{Symbol:X,SymbolAsyncIterator:J,SymbolIterator:H}=Oq(),K=X("kDestroyed"),Z=X("kIsErrored"),B=X("kIsReadable"),Y=X("kIsDisturbed");function $(v,R=!1){var S;return!!(v&&typeof v.pipe==="function"&&typeof v.on==="function"&&(!R||typeof v.pause==="function"&&typeof v.resume==="function")&&(!v._writableState||((S=v._readableState)===null||S===void 0?void 0:S.readable)!==!1)&&(!v._writableState||v._readableState))}function z(v){var R;return!!(v&&typeof v.write==="function"&&typeof v.on==="function"&&(!v._readableState||((R=v._writableState)===null||R===void 0?void 0:R.writable)!==!1))}function V(v){return!!(v&&typeof v.pipe==="function"&&v._readableState&&typeof v.on==="function"&&typeof v.write==="function")}function U(v){return v&&(v._readableState||v._writableState||typeof v.write==="function"&&typeof v.on==="function"||typeof v.pipe==="function"&&typeof v.on==="function")}function W(v,R){if(v==null)return!1;if(R===!0)return typeof v[J]==="function";if(R===!1)return typeof v[H]==="function";return typeof v[J]==="function"||typeof v[H]==="function"}function G(v){if(!U(v))return null;const{_writableState:R,_readableState:S}=v,g=R||S;return!!(v.destroyed||v[K]||g!==null&&g!==void 0&&g.destroyed)}function M(v){if(!z(v))return null;if(v.writableEnded===!0)return!0;const R=v._writableState;if(R!==null&&R!==void 0&&R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function F(v,R){if(!z(v))return null;if(v.writableFinished===!0)return!0;const S=v._writableState;if(S!==null&&S!==void 0&&S.errored)return!1;if(typeof(S===null||S===void 0?void 0:S.finished)!=="boolean")return null;return!!(S.finished||R===!1&&S.ended===!0&&S.length===0)}function L(v){if(!$(v))return null;if(v.readableEnded===!0)return!0;const R=v._readableState;if(!R||R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function j(v,R){if(!$(v))return null;const S=v._readableState;if(S!==null&&S!==void 0&&S.errored)return!1;if(typeof(S===null||S===void 0?void 0:S.endEmitted)!=="boolean")return null;return!!(S.endEmitted||R===!1&&S.ended===!0&&S.length===0)}function N(v){if(v&&v[B]!=null)return v[B];if(typeof(v===null||v===void 0?void 0:v.readable)!=="boolean")return null;if(G(v))return!1;return $(v)&&v.readable&&!j(v)}function A(v){if(typeof(v===null||v===void 0?void 0:v.writable)!=="boolean")return null;if(G(v))return!1;return z(v)&&v.writable&&!M(v)}function E(v,R){if(!U(v))return null;if(G(v))return!0;if((R===null||R===void 0?void 0:R.readable)!==!1&&N(v))return!1;if((R===null||R===void 0?void 0:R.writable)!==!1&&A(v))return!1;return!0}function I(v){var R,S;if(!U(v))return null;if(v.writableErrored)return v.writableErrored;return(R=(S=v._writableState)===null||S===void 0?void 0:S.errored)!==null&&R!==void 0?R:null}function T(v){var R,S;if(!U(v))return null;if(v.readableErrored)return v.readableErrored;return(R=(S=v._readableState)===null||S===void 0?void 0:S.errored)!==null&&R!==void 0?R:null}function P(v){if(!U(v))return null;if(typeof v.closed==="boolean")return v.closed;const{_writableState:R,_readableState:S}=v;if(typeof(R===null||R===void 0?void 0:R.closed)==="boolean"||typeof(S===null||S===void 0?void 0:S.closed)==="boolean")return(R===null||R===void 0?void 0:R.closed)||(S===null||S===void 0?void 0:S.closed);if(typeof v._closed==="boolean"&&x(v))return v._closed;return null}function x(v){return typeof v._closed==="boolean"&&typeof v._defaultKeepAlive==="boolean"&&typeof v._removedConnection==="boolean"&&typeof v._removedContLen==="boolean"}function O(v){return typeof v._sent100==="boolean"&&x(v)}function _(v){var R;return typeof v._consuming==="boolean"&&typeof v._dumped==="boolean"&&((R=v.req)===null||R===void 0?void 0:R.upgradeOrConnect)===void 0}function C(v){if(!U(v))return null;const{_writableState:R,_readableState:S}=v,g=R||S;return!g&&O(v)||!!(g&&g.autoDestroy&&g.emitClose&&g.closed===!1)}function D(v){var R;return!!(v&&((R=v[Y])!==null&&R!==void 0?R:v.readableDidRead||v.readableAborted))}function w(v){var R,S,g,f,k,y,h,p,u,b;return!!(v&&((R=(S=(g=(f=(k=(y=v[Z])!==null&&y!==void 0?y:v.readableErrored)!==null&&k!==void 0?k:v.writableErrored)!==null&&f!==void 0?f:(h=v._readableState)===null||h===void 0?void 0:h.errorEmitted)!==null&&g!==void 0?g:(p=v._writableState)===null||p===void 0?void 0:p.errorEmitted)!==null&&S!==void 0?S:(u=v._readableState)===null||u===void 0?void 0:u.errored)!==null&&R!==void 0?R:(b=v._writableState)===null||b===void 0?void 0:b.errored))}Q.exports={kDestroyed:K,isDisturbed:D,kIsDisturbed:Y,isErrored:w,kIsErrored:Z,isReadable:N,kIsReadable:B,isClosed:P,isDestroyed:G,isDuplexNodeStream:V,isFinished:E,isIterable:W,isReadableNodeStream:$,isReadableEnded:L,isReadableFinished:j,isReadableErrored:T,isNodeStream:U,isWritable:A,isWritableNodeStream:z,isWritableEnded:M,isWritableFinished:F,isWritableErrored:I,isServerRequest:_,isServerResponse:O,willEmitClose:C}}}),rq=mq({"node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(q,Q){var{AbortError:X,codes:J}=oq(),{ERR_INVALID_ARG_TYPE:H,ERR_STREAM_PREMATURE_CLOSE:K}=J,{once:Z}=_q(),{validateAbortSignal:B,validateFunction:Y,validateObject:$}=sq(),{Promise:z}=Oq(),{isClosed:V,isReadable:U,isReadableNodeStream:W,isReadableFinished:G,isReadableErrored:M,isWritable:F,isWritableNodeStream:L,isWritableFinished:j,isWritableErrored:N,isNodeStream:A,willEmitClose:E}=aq();function I(O){return O.setHeader&&typeof O.abort==="function"}var T=()=>{};function P(O,_,C){var D,w;if(arguments.length===2)C=_,_={};else if(_==null)_={};else $(_,"options");Y(C,"callback"),B(_.signal,"options.signal"),C=Z(C);const v=(D=_.readable)!==null&&D!==void 0?D:W(O),R=(w=_.writable)!==null&&w!==void 0?w:L(O);if(!A(O))throw new H("stream","Stream",O);const{_writableState:S,_readableState:g}=O,f=()=>{if(!O.writable)h()};let k=E(O)&&W(O)===v&&L(O)===R,y=j(O,!1);const h=()=>{if(y=!0,O.destroyed)k=!1;if(k&&(!O.readable||v))return;if(!v||p)C.call(O)};let p=G(O,!1);const u=()=>{if(p=!0,O.destroyed)k=!1;if(k&&(!O.writable||R))return;if(!R||y)C.call(O)},b=(i)=>{C.call(O,i)};let m=V(O);const c=()=>{m=!0;const i=N(O)||M(O);if(i&&typeof i!=="boolean")return C.call(O,i);if(v&&!p&&W(O,!0)){if(!G(O,!1))return C.call(O,new K)}if(R&&!y){if(!j(O,!1))return C.call(O,new K)}C.call(O)},d=()=>{O.req.on("finish",h)};if(I(O)){if(O.on("complete",h),!k)O.on("abort",c);if(O.req)d();else O.on("request",d)}else if(R&&!S)O.on("end",f),O.on("close",f);if(!k&&typeof O.aborted==="boolean")O.on("aborted",c);if(O.on("end",u),O.on("finish",h),_.error!==!1)O.on("error",b);if(O.on("close",c),m)Iq(c);else if(S!==null&&S!==void 0&&S.errorEmitted||g!==null&&g!==void 0&&g.errorEmitted){if(!k)Iq(c)}else if(!v&&(!k||U(O))&&(y||F(O)===!1))Iq(c);else if(!R&&(!k||F(O))&&(p||U(O)===!1))Iq(c);else if(g&&O.req&&O.aborted)Iq(c);const l=()=>{if(C=T,O.removeListener("aborted",c),O.removeListener("complete",h),O.removeListener("abort",c),O.removeListener("request",d),O.req)O.req.removeListener("finish",h);O.removeListener("end",f),O.removeListener("close",f),O.removeListener("finish",h),O.removeListener("end",u),O.removeListener("error",b),O.removeListener("close",c)};if(_.signal&&!m){const i=()=>{const n=C;l(),n.call(O,new X(void 0,{cause:_.signal.reason}))};if(_.signal.aborted)Iq(i);else{const n=C;C=Z((...o)=>{_.signal.removeEventListener("abort",i),n.apply(O,o)}),_.signal.addEventListener("abort",i)}}return l}function x(O,_){return new z((C,D)=>{P(O,_,(w)=>{if(w)D(w);else C()})})}Q.exports=P,Q.exports.finished=x}}),tq=mq({"node_modules/readable-stream/lib/internal/streams/operators.js"(q,Q){var{codes:{ERR_INVALID_ARG_TYPE:X,ERR_MISSING_ARGS:J,ERR_OUT_OF_RANGE:H},AbortError:K}=oq(),{validateAbortSignal:Z,validateInteger:B,validateObject:Y}=sq(),$=Oq().Symbol("kWeak"),{finished:z}=rq(),{ArrayPrototypePush:V,MathFloor:U,Number:W,NumberIsNaN:G,Promise:M,PromiseReject:F,PromisePrototypeCatch:L,Symbol:j}=Oq(),N=j("kEmpty"),A=j("kEof");function E(f,k){if(typeof f!=="function")throw new X("fn",["Function","AsyncFunction"],f);if(k!=null)Y(k,"options");if((k===null||k===void 0?void 0:k.signal)!=null)Z(k.signal,"options.signal");let y=1;if((k===null||k===void 0?void 0:k.concurrency)!=null)y=U(k.concurrency);return B(y,"concurrency",1),async function*h(){var p,u;const b=new AbortController,m=this,c=[],d=b.signal,l={signal:d},i=()=>b.abort();if(k!==null&&k!==void 0&&(p=k.signal)!==null&&p!==void 0&&p.aborted)i();k===null||k===void 0||(u=k.signal)===null||u===void 0||u.addEventListener("abort",i);let n,o,s=!1;function a(){s=!0}async function r(){try{for await(let qq of m){var t;if(s)return;if(d.aborted)throw new K;try{qq=f(qq,l)}catch(Qq){qq=F(Qq)}if(qq===N)continue;if(typeof((t=qq)===null||t===void 0?void 0:t.catch)==="function")qq.catch(a);if(c.push(qq),n)n(),n=null;if(!s&&c.length&&c.length>=y)await new M((Qq)=>{o=Qq})}c.push(A)}catch(qq){const Qq=F(qq);L(Qq,a),c.push(Qq)}finally{var e;if(s=!0,n)n(),n=null;k===null||k===void 0||(e=k.signal)===null||e===void 0||e.removeEventListener("abort",i)}}r();try{while(!0){while(c.length>0){const t=await c[0];if(t===A)return;if(d.aborted)throw new K;if(t!==N)yield t;if(c.shift(),o)o(),o=null}await new M((t)=>{n=t})}}finally{if(b.abort(),s=!0,o)o(),o=null}}.call(this)}function I(f=void 0){if(f!=null)Y(f,"options");if((f===null||f===void 0?void 0:f.signal)!=null)Z(f.signal,"options.signal");return async function*k(){let y=0;for await(let p of this){var h;if(f!==null&&f!==void 0&&(h=f.signal)!==null&&h!==void 0&&h.aborted)throw new K({cause:f.signal.reason});yield[y++,p]}}.call(this)}async function T(f,k=void 0){for await(let y of _.call(this,f,k))return!0;return!1}async function P(f,k=void 0){if(typeof f!=="function")throw new X("fn",["Function","AsyncFunction"],f);return!await T.call(this,async(...y)=>{return!await f(...y)},k)}async function x(f,k){for await(let y of _.call(this,f,k))return y;return}async function O(f,k){if(typeof f!=="function")throw new X("fn",["Function","AsyncFunction"],f);async function y(h,p){return await f(h,p),N}for await(let h of E.call(this,y,k));}function _(f,k){if(typeof f!=="function")throw new X("fn",["Function","AsyncFunction"],f);async function y(h,p){if(await f(h,p))return h;return N}return E.call(this,y,k)}var C=class extends J{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}};async function D(f,k,y){var h;if(typeof f!=="function")throw new X("reducer",["Function","AsyncFunction"],f);if(y!=null)Y(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)Z(y.signal,"options.signal");let p=arguments.length>1;if(y!==null&&y!==void 0&&(h=y.signal)!==null&&h!==void 0&&h.aborted){const d=new K(void 0,{cause:y.signal.reason});throw this.once("error",()=>{}),await z(this.destroy(d)),d}const u=new AbortController,b=u.signal;if(y!==null&&y!==void 0&&y.signal){const d={once:!0,[$]:this};y.signal.addEventListener("abort",()=>u.abort(),d)}let m=!1;try{for await(let d of this){var c;if(m=!0,y!==null&&y!==void 0&&(c=y.signal)!==null&&c!==void 0&&c.aborted)throw new K;if(!p)k=d,p=!0;else k=await f(k,d,{signal:b})}if(!m&&!p)throw new C}finally{u.abort()}return k}async function w(f){if(f!=null)Y(f,"options");if((f===null||f===void 0?void 0:f.signal)!=null)Z(f.signal,"options.signal");const k=[];for await(let h of this){var y;if(f!==null&&f!==void 0&&(y=f.signal)!==null&&y!==void 0&&y.aborted)throw new K(void 0,{cause:f.signal.reason});V(k,h)}return k}function v(f,k){const y=E.call(this,f,k);return async function*h(){for await(let p of y)yield*p}.call(this)}function R(f){if(f=W(f),G(f))return 0;if(f<0)throw new H("number",">= 0",f);return f}function S(f,k=void 0){if(k!=null)Y(k,"options");if((k===null||k===void 0?void 0:k.signal)!=null)Z(k.signal,"options.signal");return f=R(f),async function*y(){var h;if(k!==null&&k!==void 0&&(h=k.signal)!==null&&h!==void 0&&h.aborted)throw new K;for await(let u of this){var p;if(k!==null&&k!==void 0&&(p=k.signal)!==null&&p!==void 0&&p.aborted)throw new K;if(f--<=0)yield u}}.call(this)}function g(f,k=void 0){if(k!=null)Y(k,"options");if((k===null||k===void 0?void 0:k.signal)!=null)Z(k.signal,"options.signal");return f=R(f),async function*y(){var h;if(k!==null&&k!==void 0&&(h=k.signal)!==null&&h!==void 0&&h.aborted)throw new K;for await(let u of this){var p;if(k!==null&&k!==void 0&&(p=k.signal)!==null&&p!==void 0&&p.aborted)throw new K;if(f-- >0)yield u;else return}}.call(this)}Q.exports.streamReturningOperators={asIndexedPairs:I,drop:S,filter:_,flatMap:v,map:E,take:g},Q.exports.promiseReturningOperators={every:P,forEach:O,reduce:D,toArray:w,some:T,find:x}}}),eq=mq({"node_modules/readable-stream/lib/internal/streams/destroy.js"(q,Q){var{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:J},AbortError:H}=oq(),{Symbol:K}=Oq(),{kDestroyed:Z,isDestroyed:B,isFinished:Y,isServerRequest:$}=aq(),z="#kDestroy",V="#kConstruct";function U(_,C,D){if(_){if(_.stack,C&&!C.errored)C.errored=_;if(D&&!D.errored)D.errored=_}}function W(_,C){const D=this._readableState,w=this._writableState,v=w||D;if(w&&w.destroyed||D&&D.destroyed){if(typeof C==="function")C();return this}if(U(_,w,D),w)w.destroyed=!0;if(D)D.destroyed=!0;if(!v.constructed)this.once(z,(R)=>{G(this,X(R,_),C)});else G(this,_,C);return this}function G(_,C,D){let w=!1;function v(R){if(w)return;w=!0;const{_readableState:S,_writableState:g}=_;if(U(R,g,S),g)g.closed=!0;if(S)S.closed=!0;if(typeof D==="function")D(R);if(R)Iq(M,_,R);else Iq(F,_)}try{_._destroy(C||null,v)}catch(R){v(R)}}function M(_,C){L(_,C),F(_)}function F(_){const{_readableState:C,_writableState:D}=_;if(D)D.closeEmitted=!0;if(C)C.closeEmitted=!0;if(D&&D.emitClose||C&&C.emitClose)_.emit("close")}function L(_,C){const D=_?._readableState,w=_?._writableState;if(w?.errorEmitted||D?.errorEmitted)return;if(w)w.errorEmitted=!0;if(D)D.errorEmitted=!0;_?.emit?.("error",C)}function j(){const _=this._readableState,C=this._writableState;if(_)_.constructed=!0,_.closed=!1,_.closeEmitted=!1,_.destroyed=!1,_.errored=null,_.errorEmitted=!1,_.reading=!1,_.ended=_.readable===!1,_.endEmitted=_.readable===!1;if(C)C.constructed=!0,C.destroyed=!1,C.closed=!1,C.closeEmitted=!1,C.errored=null,C.errorEmitted=!1,C.finalCalled=!1,C.prefinished=!1,C.ended=C.writable===!1,C.ending=C.writable===!1,C.finished=C.writable===!1}function N(_,C,D){const w=_?._readableState,v=_?._writableState;if(v&&v.destroyed||w&&w.destroyed)return this;if(w&&w.autoDestroy||v&&v.autoDestroy)_.destroy(C);else if(C){if(Error.captureStackTrace(C),v&&!v.errored)v.errored=C;if(w&&!w.errored)w.errored=C;if(D)Iq(L,_,C);else L(_,C)}}function A(_,C){if(typeof _._construct!=="function")return;const{_readableState:D,_writableState:w}=_;if(D)D.constructed=!1;if(w)w.constructed=!1;if(_.once(V,C),_.listenerCount(V)>1)return;Iq(E,_)}function E(_){let C=!1;function D(w){if(C){N(_,w!==null&&w!==void 0?w:new J);return}C=!0;const{_readableState:v,_writableState:R}=_,S=R||v;if(v)v.constructed=!0;if(R)R.constructed=!0;if(S.destroyed)_.emit(z,w);else if(w)N(_,w,!0);else Iq(I,_)}try{_._construct(D)}catch(w){D(w)}}function I(_){_.emit(V)}function T(_){return _&&_.setHeader&&typeof _.abort==="function"}function P(_){_.emit("close")}function x(_,C){_.emit("error",C),Iq(P,_)}function O(_,C){if(!_||B(_))return;if(!C&&!Y(_))C=new H;if($(_))_.socket=null,_.destroy(C);else if(T(_))_.abort();else if(T(_.req))_.req.abort();else if(typeof _.destroy==="function")_.destroy(C);else if(typeof _.close==="function")_.close();else if(C)Iq(x,_);else Iq(P,_);if(!_.destroyed)_[Z]=!0}Q.exports={construct:A,destroyer:O,destroy:W,undestroy:j,errorOrDestroy:N}}}),qQ=mq({"node_modules/readable-stream/lib/internal/streams/legacy.js"(q,Q){var{ArrayIsArray:X,ObjectSetPrototypeOf:J}=Oq();function H(Z){if(!(this instanceof H))return new H(Z);Pq.call(this,Z)}J(H.prototype,Pq.prototype),J(H,Pq),H.prototype.pipe=function(Z,B){const Y=this;function $(F){if(Z.writable&&Z.write(F)===!1&&Y.pause)Y.pause()}Y.on("data",$);function z(){if(Y.readable&&Y.resume)Y.resume()}if(Z.on("drain",z),!Z._isStdio&&(!B||B.end!==!1))Y.on("end",U),Y.on("close",W);let V=!1;function U(){if(V)return;V=!0,Z.end()}function W(){if(V)return;if(V=!0,typeof Z.destroy==="function")Z.destroy()}function G(F){if(M(),Pq.listenerCount(this,"error")===0)this.emit("error",F)}K(Y,"error",G),K(Z,"error",G);function M(){Y.removeListener("data",$),Z.removeListener("drain",z),Y.removeListener("end",U),Y.removeListener("close",W),Y.removeListener("error",G),Z.removeListener("error",G),Y.removeListener("end",M),Y.removeListener("close",M),Z.removeListener("close",M)}return Y.on("end",M),Y.on("close",M),Z.on("close",M),Z.emit("pipe",Y),Z};function K(Z,B,Y){if(typeof Z.prependListener==="function")return Z.prependListener(B,Y);if(!Z._events||!Z._events[B])Z.on(B,Y);else if(X(Z._events[B]))Z._events[B].unshift(Y);else Z._events[B]=[Y,Z._events[B]]}Q.exports={Stream:H,prependListener:K}}}),QQ=mq({"node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(q,Q){var{AbortError:X,codes:J}=oq(),H=rq(),{ERR_INVALID_ARG_TYPE:K}=J,Z=(Y,$)=>{if(typeof Y!=="object"||!("aborted"in Y))throw new K($,"AbortSignal",Y)};function B(Y){return!!(Y&&typeof Y.pipe==="function")}Q.exports.addAbortSignal=function Y($,z){if(Z($,"signal"),!B(z))throw new K("stream","stream.Stream",z);return Q.exports.addAbortSignalNoValidate($,z)},Q.exports.addAbortSignalNoValidate=function(Y,$){if(typeof Y!=="object"||!("aborted"in Y))return $;const z=()=>{$.destroy(new X(void 0,{cause:Y.reason}))};if(Y.aborted)z();else Y.addEventListener("abort",z),H($,()=>Y.removeEventListener("abort",z));return $}}}),XQ=mq({"node_modules/readable-stream/lib/internal/streams/state.js"(q,Q){var{MathFloor:X,NumberIsInteger:J}=Oq(),{ERR_INVALID_ARG_VALUE:H}=oq().codes;function K(Y,$,z){return Y.highWaterMark!=null?Y.highWaterMark:$?Y[z]:null}function Z(Y){return Y?16:16384}function B(Y,$,z,V){const U=K($,V,z);if(U!=null){if(!J(U)||U<0){const W=V?`options.${z}`:"options.highWaterMark";throw new H(W,U)}return X(U)}return Z(Y.objectMode)}Q.exports={getHighWaterMark:B,getDefaultHighWaterMark:Z}}}),JQ=mq({"node_modules/readable-stream/lib/internal/streams/from.js"(q,Q){var{PromisePrototypeThen:X,SymbolAsyncIterator:J,SymbolIterator:H}=Oq(),{ERR_INVALID_ARG_TYPE:K,ERR_STREAM_NULL_VALUES:Z}=oq().codes;function B(Y,$,z){let V;if(typeof $==="string"||$ instanceof Buffer)return new Y({objectMode:!0,...z,read(){this.push($),this.push(null)}});let U;if($&&$[J])U=!0,V=$[J]();else if($&&$[H])U=!1,V=$[H]();else throw new K("iterable",["Iterable"],$);const W=new Y({objectMode:!0,highWaterMark:1,...z});let G=!1;W._read=function(){if(!G)G=!0,F()},W._destroy=function(L,j){X(M(L),()=>Iq(j,L),(N)=>Iq(j,N||L))};async function M(L){const j=L!==void 0&&L!==null,N=typeof V.throw==="function";if(j&&N){const{value:A,done:E}=await V.throw(L);if(await A,E)return}if(typeof V.return==="function"){const{value:A}=await V.return();await A}}async function F(){for(;;){try{const{value:L,done:j}=U?await V.next():V.next();if(j)W.push(null);else{const N=L&&typeof L.then==="function"?await L:L;if(N===null)throw G=!1,new Z;else if(W.push(N))continue;else G=!1}}catch(L){W.destroy(L)}break}}return W}Q.exports=B}}),HQ,KQ,ZQ=mq({"node_modules/readable-stream/lib/internal/streams/readable.js"(q,Q){var{ArrayPrototypeIndexOf:X,NumberIsInteger:J,NumberIsNaN:H,NumberParseInt:K,ObjectDefineProperties:Z,ObjectKeys:B,ObjectSetPrototypeOf:Y,Promise:$,SafeSet:z,SymbolAsyncIterator:V,Symbol:U}=Oq(),W=globalThis[Symbol.for("Bun.lazy")]("bun:stream").ReadableState,{Stream:G,prependListener:M}=qQ();function F(qq){if(!(this instanceof F))return new F(qq);const Qq=this instanceof Cq();if(this._readableState=new W(qq,this,Qq),qq){const{read:Xq,destroy:Jq,construct:Hq,signal:Kq}=qq;if(typeof Xq==="function")this._read=Xq;if(typeof Jq==="function")this._destroy=Jq;if(typeof Hq==="function")this._construct=Hq;if(Kq&&!Qq)N(Kq,this)}G.call(this,qq),_.construct(this,()=>{if(this._readableState.needReadable)x(this,this._readableState)})}Y(F.prototype,G.prototype),Y(F,G),F.prototype.on=function(qq,Qq){const Xq=G.prototype.on.call(this,qq,Qq),Jq=this._readableState;if(qq==="data")if(Jq.readableListening=this.listenerCount("readable")>0,Jq.flowing!==!1)Aq&&Nq("in flowing mode!",this.__id),this.resume();else Aq&&Nq("in readable mode!",this.__id);else if(qq==="readable"){if(Aq&&Nq("readable listener added!",this.__id),!Jq.endEmitted&&!Jq.readableListening){if(Jq.readableListening=Jq.needReadable=!0,Jq.flowing=!1,Jq.emittedReadable=!1,Aq&&Nq("on readable - state.length, reading, emittedReadable",Jq.length,Jq.reading,Jq.emittedReadable,this.__id),Jq.length)O(this,Jq);else if(!Jq.reading)Iq(l,this)}else if(Jq.endEmitted)Aq&&Nq("end already emitted...",this.__id)}return Xq};class L extends F{#q;#Q;#X;#J;constructor(qq,Qq){const{objectMode:Xq,highWaterMark:Jq,encoding:Hq,signal:Kq}=qq;super({objectMode:Xq,highWaterMark:Jq,encoding:Hq,signal:Kq});this.#X=[],this.#q=void 0,this.#J=Qq,this.#Q=!1}#H(){var qq=this.#X,Qq=0,Xq=qq.length;for(;Qq<Xq;Qq++){const Jq=qq[Qq];if(qq[Qq]=void 0,!this.push(Jq,void 0))return this.#X=qq.slice(Qq+1),!0}if(Xq>0)this.#X=[];return!1}#K(qq){qq.releaseLock(),this.#q=void 0,this.#Q=!0,this.push(null);return}async _read(){Aq&&Nq("ReadableFromWeb _read()",this.__id);var qq=this.#J,Qq=this.#q;if(qq)Qq=this.#q=qq.getReader(),this.#J=void 0;else if(this.#H())return;var Xq;try{do{var Jq=!1,Hq;const Kq=Qq.readMany();if(xq(Kq)){if({done:Jq,value:Hq}=await Kq,this.#Q){this.#X.push(...Hq);return}}else({done:Jq,value:Hq}=Kq);if(Jq){this.#K(Qq);return}if(!this.push(Hq[0])){this.#X=Hq.slice(1);return}for(let Zq=1,Bq=Hq.length;Zq<Bq;Zq++)if(!this.push(Hq[Zq])){this.#X=Hq.slice(Zq+1);return}}while(!this.#Q)}catch(Kq){Xq=Kq}finally{if(Xq)throw Xq}}_destroy(qq,Qq){if(!this.#Q){var Xq=this.#q;if(Xq)this.#q=void 0,Xq.cancel(qq).finally(()=>{this.#Q=!0,Qq(qq)});return}try{Qq(qq)}catch(Jq){globalThis.reportError(Jq)}}}KQ=L;function j(qq,Qq={}){if(!cq(qq))throw new D("readableStream","ReadableStream",qq);g(Qq,"options");const{highWaterMark:Xq,encoding:Jq,objectMode:Hq=!1,signal:Kq}=Qq;if(Jq!==void 0&&!Buffer.isEncoding(Jq))throw new nq(Jq,"options.encoding");return dq(Hq,"options.objectMode"),NQ(F,qq,Qq)||new L({highWaterMark:Xq,encoding:Jq,objectMode:Hq,signal:Kq},qq)}Q.exports=F,HQ=j;var{addAbortSignal:N}=QQ(),A=rq();const{maybeReadMore:E,resume:I,emitReadable:T,onEofChunk:P}=globalThis[Symbol.for("Bun.lazy")]("bun:stream");function x(qq,Qq){process.nextTick(E,qq,Qq)}function O(qq,Qq){Aq&&Nq("NativeReadable - emitReadable",qq.__id),T(qq,Qq)}var _=eq(),{aggregateTwoErrors:C,codes:{ERR_INVALID_ARG_TYPE:D,ERR_METHOD_NOT_IMPLEMENTED:w,ERR_OUT_OF_RANGE:v,ERR_STREAM_PUSH_AFTER_EOF:R,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:S}}=oq(),{validateObject:g}=sq(),f=JQ(),k=()=>{},{errorOrDestroy:y}=_;F.prototype.destroy=_.destroy,F.prototype._undestroy=_.undestroy,F.prototype._destroy=function(qq,Qq){Qq(qq)},F.prototype[Pq.captureRejectionSymbol]=function(qq){this.destroy(qq)},F.prototype.push=function(qq,Qq){return h(this,qq,Qq,!1)},F.prototype.unshift=function(qq,Qq){return h(this,qq,Qq,!0)};function h(qq,Qq,Xq,Jq){Aq&&Nq("readableAddChunk",Qq,qq.__id);const Hq=qq._readableState;let Kq;if(!Hq.objectMode){if(typeof Qq==="string"){if(Xq=Xq||Hq.defaultEncoding,Hq.encoding!==Xq)if(Jq&&Hq.encoding)Qq=Buffer.from(Qq,Xq).toString(Hq.encoding);else Qq=Buffer.from(Qq,Xq),Xq=""}else if(Qq instanceof Buffer)Xq="";else if(G._isUint8Array(Qq)){if(Jq||!Hq.decoder)Qq=G._uint8ArrayToBuffer(Qq);Xq=""}else if(Qq!=null)Kq=new D("chunk",["string","Buffer","Uint8Array"],Qq)}if(Kq)y(qq,Kq);else if(Qq===null)Hq.reading=!1,P(qq,Hq);else if(Hq.objectMode||Qq&&Qq.length>0)if(Jq)if(Hq.endEmitted)y(qq,new S);else if(Hq.destroyed||Hq.errored)return!1;else p(qq,Hq,Qq,!0);else if(Hq.ended)y(qq,new R);else if(Hq.destroyed||Hq.errored)return!1;else if(Hq.reading=!1,Hq.decoder&&!Xq)if(Qq=Hq.decoder.write(Qq),Hq.objectMode||Qq.length!==0)p(qq,Hq,Qq,!1);else x(qq,Hq);else p(qq,Hq,Qq,!1);else if(!Jq)Hq.reading=!1,x(qq,Hq);return!Hq.ended&&(Hq.length<Hq.highWaterMark||Hq.length===0)}function p(qq,Qq,Xq,Jq){if(Aq&&Nq("adding chunk",qq.__id),Aq&&Nq("chunk",Xq.toString(),qq.__id),Qq.flowing&&Qq.length===0&&!Qq.sync&&qq.listenerCount("data")>0){if(Qq.multiAwaitDrain)Qq.awaitDrainWriters.clear();else Qq.awaitDrainWriters=null;Qq.dataEmitted=!0,qq.emit("data",Xq)}else{if(Qq.length+=Qq.objectMode?1:Xq.length,Jq)Qq.buffer.unshift(Xq);else Qq.buffer.push(Xq);if(Aq&&Nq("needReadable @ addChunk",Qq.needReadable,qq.__id),Qq.needReadable)O(qq,Qq)}x(qq,Qq)}F.prototype.isPaused=function(){const qq=this._readableState;return qq.paused===!0||qq.flowing===!1},F.prototype.setEncoding=function(qq){const Qq=new Sq(qq);this._readableState.decoder=Qq,this._readableState.encoding=this._readableState.decoder.encoding;const Xq=this._readableState.buffer;let Jq="";for(let Hq=Xq.length;Hq>0;Hq--)Jq+=Qq.write(Xq.shift());if(Jq!=="")Xq.push(Jq);return this._readableState.length=Jq.length,this};var u=1073741824;function b(qq){if(qq>u)throw new v("size","<= 1GiB",qq);else qq--,qq|=qq>>>1,qq|=qq>>>2,qq|=qq>>>4,qq|=qq>>>8,qq|=qq>>>16,qq++;return qq}function m(qq,Qq){if(qq<=0||Qq.length===0&&Qq.ended)return 0;if(Qq.objectMode)return 1;if(H(qq)){if(Qq.flowing&&Qq.length)return Qq.buffer.first().length;return Qq.length}if(qq<=Qq.length)return qq;return Qq.ended?Qq.length:0}F.prototype.read=function(qq){if(Aq&&Nq("read - n =",qq,this.__id),!J(qq))qq=K(qq,10);const Qq=this._readableState,Xq=qq;if(qq>Qq.highWaterMark)Qq.highWaterMark=b(qq);if(qq!==0)Qq.emittedReadable=!1;if(qq===0&&Qq.needReadable&&((Qq.highWaterMark!==0?Qq.length>=Qq.highWaterMark:Qq.length>0)||Qq.ended)){if(Aq&&Nq("read: emitReadable or endReadable",Qq.length,Qq.ended,this.__id),Qq.length===0&&Qq.ended)s(this);else O(this,Qq);return null}if(qq=m(qq,Qq),qq===0&&Qq.ended){if(Aq&&Nq("read: calling endReadable if length 0 -- length, state.ended",Qq.length,Qq.ended,this.__id),Qq.length===0)s(this);return null}let Jq=Qq.needReadable;if(Aq&&Nq("need readable",Jq,this.__id),Qq.length===0||Qq.length-qq<Qq.highWaterMark)Jq=!0,Aq&&Nq("length less than watermark",Jq,this.__id);if(Qq.ended||Qq.reading||Qq.destroyed||Qq.errored||!Qq.constructed)Aq&&Nq("state.constructed?",Qq.constructed,this.__id),Jq=!1,Aq&&Nq("reading, ended or constructing",Jq,this.__id);else if(Jq){if(Aq&&Nq("do read",this.__id),Qq.reading=!0,Qq.sync=!0,Qq.length===0)Qq.needReadable=!0;try{var Hq=this._read(Qq.highWaterMark);if(xq(Hq)){Aq&&Nq("async _read",this.__id);const Zq=Bun.peek(Hq);if(Aq&&Nq("peeked promise",Zq,this.__id),Zq!==Hq)Hq=Zq}if(xq(Hq)&&Hq?.then&&Dq(Hq.then))Aq&&Nq("async _read result.then setup",this.__id),Hq.then(k,function(Zq){y(this,Zq)})}catch(Zq){y(this,Zq)}if(Qq.sync=!1,!Qq.reading)qq=m(Xq,Qq)}Aq&&Nq("n @ fromList",qq,this.__id);let Kq;if(qq>0)Kq=o(qq,Qq);else Kq=null;if(Aq&&Nq("ret @ read",Kq,this.__id),Kq===null)Qq.needReadable=Qq.length<=Qq.highWaterMark,Aq&&Nq("state.length while ret = null",Qq.length,this.__id),qq=0;else if(Qq.length-=qq,Qq.multiAwaitDrain)Qq.awaitDrainWriters.clear();else Qq.awaitDrainWriters=null;if(Qq.length===0){if(!Qq.ended)Qq.needReadable=!0;if(Xq!==qq&&Qq.ended)s(this)}if(Kq!==null&&!Qq.errorEmitted&&!Qq.closeEmitted)Qq.dataEmitted=!0,this.emit("data",Kq);return Kq},F.prototype._read=function(qq){throw new w("_read()")},F.prototype.pipe=function(qq,Qq){const Xq=this,Jq=this._readableState;if(Jq.pipes.length===1){if(!Jq.multiAwaitDrain)Jq.multiAwaitDrain=!0,Jq.awaitDrainWriters=new z(Jq.awaitDrainWriters?[Jq.awaitDrainWriters]:[])}Jq.pipes.push(qq),Aq&&Nq("pipe count=%d opts=%j",Jq.pipes.length,Qq,Xq.__id);const Kq=(!Qq||Qq.end!==!1)&&qq!==process.stdout&&qq!==process.stderr?Bq:Fq;if(Jq.endEmitted)Iq(Kq);else Xq.once("end",Kq);qq.on("unpipe",Zq);function Zq(Lq,jq){if(Aq&&Nq("onunpipe",Xq.__id),Lq===Xq){if(jq&&jq.hasUnpiped===!1)jq.hasUnpiped=!0,zq()}}function Bq(){Aq&&Nq("onend",Xq.__id),qq.end()}let Yq,$q=!1;function zq(){if(Aq&&Nq("cleanup",Xq.__id),qq.removeListener("close",Gq),qq.removeListener("finish",Mq),Yq)qq.removeListener("drain",Yq);if(qq.removeListener("error",Wq),qq.removeListener("unpipe",Zq),Xq.removeListener("end",Bq),Xq.removeListener("end",Fq),Xq.removeListener("data",Uq),$q=!0,Yq&&Jq.awaitDrainWriters&&(!qq._writableState||qq._writableState.needDrain))Yq()}function Vq(){if(!$q){if(Jq.pipes.length===1&&Jq.pipes[0]===qq)Aq&&Nq("false write response, pause",0,Xq.__id),Jq.awaitDrainWriters=qq,Jq.multiAwaitDrain=!1;else if(Jq.pipes.length>1&&Jq.pipes.includes(qq))Aq&&Nq("false write response, pause",Jq.awaitDrainWriters.size,Xq.__id),Jq.awaitDrainWriters.add(qq);Xq.pause()}if(!Yq)Yq=c(Xq,qq),qq.on("drain",Yq)}Xq.on("data",Uq);function Uq(Lq){Aq&&Nq("ondata",Xq.__id);const jq=qq.write(Lq);if(Aq&&Nq("dest.write",jq,Xq.__id),jq===!1)Vq()}function Wq(Lq){if(Nq("onerror",Lq),Fq(),qq.removeListener("error",Wq),qq.listenerCount("error")===0){const jq=qq._writableState||qq._readableState;if(jq&&!jq.errorEmitted)y(qq,Lq);else qq.emit("error",Lq)}}M(qq,"error",Wq);function Gq(){qq.removeListener("finish",Mq),Fq()}qq.once("close",Gq);function Mq(){Nq("onfinish"),qq.removeListener("close",Gq),Fq()}qq.once("finish",Mq);function Fq(){Nq("unpipe"),Xq.unpipe(qq)}if(qq.emit("pipe",Xq),qq.writableNeedDrain===!0){if(Jq.flowing)Vq()}else if(!Jq.flowing)Nq("pipe resume"),Xq.resume();return qq};function c(qq,Qq){return function Xq(){const Jq=qq._readableState;if(Jq.awaitDrainWriters===Qq)Nq("pipeOnDrain",1),Jq.awaitDrainWriters=null;else if(Jq.multiAwaitDrain)Nq("pipeOnDrain",Jq.awaitDrainWriters.size),Jq.awaitDrainWriters.delete(Qq);if((!Jq.awaitDrainWriters||Jq.awaitDrainWriters.size===0)&&qq.listenerCount("data"))qq.resume()}}F.prototype.unpipe=function(qq){const Qq=this._readableState,Xq={hasUnpiped:!1};if(Qq.pipes.length===0)return this;if(!qq){const Hq=Qq.pipes;Qq.pipes=[],this.pause();for(let Kq=0;Kq<Hq.length;Kq++)Hq[Kq].emit("unpipe",this,{hasUnpiped:!1});return this}const Jq=X(Qq.pipes,qq);if(Jq===-1)return this;if(Qq.pipes.splice(Jq,1),Qq.pipes.length===0)this.pause();return qq.emit("unpipe",this,Xq),this},F.prototype.addListener=F.prototype.on,F.prototype.removeListener=function(qq,Qq){const Xq=G.prototype.removeListener.call(this,qq,Qq);if(qq==="readable")Iq(d,this);return Xq},F.prototype.off=F.prototype.removeListener,F.prototype.removeAllListeners=function(qq){const Qq=G.prototype.removeAllListeners.apply(this,arguments);if(qq==="readable"||qq===void 0)Iq(d,this);return Qq};function d(qq){const Qq=qq._readableState;if(Qq.readableListening=qq.listenerCount("readable")>0,Qq.resumeScheduled&&Qq.paused===!1)Qq.flowing=!0;else if(qq.listenerCount("data")>0)qq.resume();else if(!Qq.readableListening)Qq.flowing=null}function l(qq){Aq&&Nq("on readable nextTick, calling read(0)",qq.__id),qq.read(0)}F.prototype.resume=function(){const qq=this._readableState;if(!qq.flowing)Aq&&Nq("resume",this.__id),qq.flowing=!qq.readableListening,I(this,qq);return qq.paused=!1,this},F.prototype.pause=function(){if(Aq&&Nq("call pause flowing=%j",this._readableState.flowing,this.__id),this._readableState.flowing!==!1)Aq&&Nq("pause",this.__id),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this},F.prototype.wrap=function(qq){let Qq=!1;qq.on("data",(Jq)=>{if(!this.push(Jq)&&qq.pause)Qq=!0,qq.pause()}),qq.on("end",()=>{this.push(null)}),qq.on("error",(Jq)=>{y(this,Jq)}),qq.on("close",()=>{this.destroy()}),qq.on("destroy",()=>{this.destroy()}),this._read=()=>{if(Qq&&qq.resume)Qq=!1,qq.resume()};const Xq=B(qq);for(let Jq=1;Jq<Xq.length;Jq++){const Hq=Xq[Jq];if(this[Hq]===void 0&&typeof qq[Hq]==="function")this[Hq]=qq[Hq].bind(qq)}return this},F.prototype[V]=function(){return i(this)},F.prototype.iterator=function(qq){if(qq!==void 0)g(qq,"options");return i(this,qq)};function i(qq,Qq){if(typeof qq.read!=="function")qq=F.wrap(qq,{objectMode:!0});const Xq=n(qq,Qq);return Xq.stream=qq,Xq}async function*n(qq,Qq){let Xq=k;function Jq(Zq){if(this===qq)Xq(),Xq=k;else Xq=Zq}qq.on("readable",Jq);let Hq;const Kq=A(qq,{writable:!1},(Zq)=>{Hq=Zq?C(Hq,Zq):null,Xq(),Xq=k});try{while(!0){const Zq=qq.destroyed?null:qq.read();if(Zq!==null)yield Zq;else if(Hq)throw Hq;else if(Hq===null)return;else await new $(Jq)}}catch(Zq){throw Hq=C(Hq,Zq),Hq}finally{if((Hq||(Qq===null||Qq===void 0?void 0:Qq.destroyOnReturn)!==!1)&&(Hq===void 0||qq._readableState.autoDestroy))_.destroyer(qq,null);else qq.off("readable",Jq),Kq()}}Z(F.prototype,{readable:{get(){const qq=this._readableState;return!!qq&&qq.readable!==!1&&!qq.destroyed&&!qq.errorEmitted&&!qq.endEmitted},set(qq){if(this._readableState)this._readableState.readable=!!qq}},readableDidRead:{enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{enumerable:!1,get:function(){return this._readableState.flowing},set:function(qq){if(this._readableState)this._readableState.flowing=qq}},readableLength:{enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{get(){return this._readableState?this._readableState.closed:!1}},destroyed:{enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(qq){if(!this._readableState)return;this._readableState.destroyed=qq}},readableEnded:{enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),F._fromList=o;function o(qq,Qq){if(Qq.length===0)return null;let Xq;if(Qq.objectMode)Xq=Qq.buffer.shift();else if(!qq||qq>=Qq.length){if(Qq.decoder)Xq=Qq.buffer.join("");else if(Qq.buffer.length===1)Xq=Qq.buffer.first();else Xq=Qq.buffer.concat(Qq.length);Qq.buffer.clear()}else Xq=Qq.buffer.consume(qq,Qq.decoder);return Xq}function s(qq){const Qq=qq._readableState;if(Aq&&Nq("endEmitted @ endReadable",Qq.endEmitted,qq.__id),!Qq.endEmitted)Qq.ended=!0,Iq(a,Qq,qq)}function a(qq,Qq){if(Aq&&Nq("endReadableNT -- endEmitted, state.length",qq.endEmitted,qq.length,Qq.__id),!qq.errored&&!qq.closeEmitted&&!qq.endEmitted&&qq.length===0){if(qq.endEmitted=!0,Qq.emit("end"),Aq&&Nq("end emitted @ endReadableNT",Qq.__id),Qq.writable&&Qq.allowHalfOpen===!1)Iq(r,Qq);else if(qq.autoDestroy){const Xq=Qq._writableState;if(!Xq||Xq.autoDestroy&&(Xq.finished||Xq.writable===!1))Qq.destroy()}}}function r(qq){if(qq.writable&&!qq.writableEnded&&!qq.destroyed)qq.end()}F.from=function(qq,Qq){return f(F,qq,Qq)};var t={newStreamReadableFromReadableStream:j};function e(){if(t===void 0)t={};return t}F.fromWeb=function(qq,Qq){return e().newStreamReadableFromReadableStream(qq,Qq)},F.toWeb=function(qq){return e().newReadableStreamFromStreamReadable(qq)},F.wrap=function(qq,Qq){var Xq,Jq;return new F({objectMode:(Xq=(Jq=qq.readableObjectMode)!==null&&Jq!==void 0?Jq:qq.objectMode)!==null&&Xq!==void 0?Xq:!0,...Qq,destroy(Hq,Kq){_.destroyer(qq,Hq),Kq(Hq)}}).wrap(qq)}}}),BQ=mq({"node_modules/readable-stream/lib/internal/streams/writable.js"(q,Q){var{ArrayPrototypeSlice:X,Error:J,FunctionPrototypeSymbolHasInstance:H,ObjectDefineProperty:K,ObjectDefineProperties:Z,ObjectSetPrototypeOf:B,StringPrototypeToLowerCase:Y,Symbol:$,SymbolHasInstance:z}=Oq(),V=qQ().Stream,U=eq(),{addAbortSignal:W}=QQ(),{getHighWaterMark:G,getDefaultHighWaterMark:M}=XQ(),{ERR_INVALID_ARG_TYPE:F,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:N,ERR_STREAM_DESTROYED:A,ERR_STREAM_ALREADY_FINISHED:E,ERR_STREAM_NULL_VALUES:I,ERR_STREAM_WRITE_AFTER_END:T,ERR_UNKNOWN_ENCODING:P}=oq().codes,{errorOrDestroy:x}=U;function O(o={}){const s=this instanceof Cq();if(!s&&!H(O,this))return new O(o);if(this._writableState=new D(o,this,s),o){if(typeof o.write==="function")this._write=o.write;if(typeof o.writev==="function")this._writev=o.writev;if(typeof o.destroy==="function")this._destroy=o.destroy;if(typeof o.final==="function")this._final=o.final;if(typeof o.construct==="function")this._construct=o.construct;if(o.signal)W(o.signal,this)}V.call(this,o),U.construct(this,()=>{const a=this._writableState;if(!a.writing)p(this,a);c(this,a)})}B(O.prototype,V.prototype),B(O,V),Q.exports=O;function _(){}var C=$("kOnFinished");function D(o,s,a){if(typeof a!=="boolean")a=s instanceof Cq();if(this.objectMode=!!(o&&o.objectMode),a)this.objectMode=this.objectMode||!!(o&&o.writableObjectMode);this.highWaterMark=o?G(this,o,"writableHighWaterMark",a):M(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const r=!!(o&&o.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=o&&o.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=f.bind(void 0,s),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,w(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!o||o.emitClose!==!1,this.autoDestroy=!o||o.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[C]=[]}function w(o){o.buffered=[],o.bufferedIndex=0,o.allBuffers=!0,o.allNoop=!0}D.prototype.getBuffer=function o(){return X(this.buffered,this.bufferedIndex)},K(D.prototype,"bufferedRequestCount",{get(){return this.buffered.length-this.bufferedIndex}}),K(O,z,{value:function(o){if(H(this,o))return!0;if(this!==O)return!1;return o&&o._writableState instanceof D}}),O.prototype.pipe=function(){x(this,new N)};function v(o,s,a,r){const t=o._writableState;if(typeof a==="function")r=a,a=t.defaultEncoding;else{if(!a)a=t.defaultEncoding;else if(a!=="buffer"&&!Buffer.isEncoding(a))throw new P(a);if(typeof r!=="function")r=_}if(s===null)throw new I;else if(!t.objectMode)if(typeof s==="string"){if(t.decodeStrings!==!1)s=Buffer.from(s,a),a="buffer"}else if(s instanceof Buffer)a="buffer";else if(V._isUint8Array(s))s=V._uint8ArrayToBuffer(s),a="buffer";else throw new F("chunk",["string","Buffer","Uint8Array"],s);let e;if(t.ending)e=new T;else if(t.destroyed)e=new A("write");if(e)return Iq(r,e),x(o,e,!0),e;return t.pendingcb++,R(o,t,s,a,r)}O.prototype.write=function(o,s,a){return v(this,o,s,a)===!0},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){const o=this._writableState;if(o.corked){if(o.corked--,!o.writing)p(this,o)}},O.prototype.setDefaultEncoding=function o(s){if(typeof s==="string")s=Y(s);if(!Buffer.isEncoding(s))throw new P(s);return this._writableState.defaultEncoding=s,this};function R(o,s,a,r,t){const e=s.objectMode?1:a.length;s.length+=e;const qq=s.length<s.highWaterMark;if(!qq)s.needDrain=!0;if(s.writing||s.corked||s.errored||!s.constructed){if(s.buffered.push({chunk:a,encoding:r,callback:t}),s.allBuffers&&r!=="buffer")s.allBuffers=!1;if(s.allNoop&&t!==_)s.allNoop=!1}else s.writelen=e,s.writecb=t,s.writing=!0,s.sync=!0,o._write(a,r,s.onwrite),s.sync=!1;return qq&&!s.errored&&!s.destroyed}function S(o,s,a,r,t,e,qq){if(s.writelen=r,s.writecb=qq,s.writing=!0,s.sync=!0,s.destroyed)s.onwrite(new A("write"));else if(a)o._writev(t,s.onwrite);else o._write(t,e,s.onwrite);s.sync=!1}function g(o,s,a,r){--s.pendingcb,r(a),h(s),x(o,a)}function f(o,s){const a=o._writableState,r=a.sync,t=a.writecb;if(typeof t!=="function"){x(o,new j);return}if(a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0,s){if(Error.captureStackTrace(s),!a.errored)a.errored=s;if(o._readableState&&!o._readableState.errored)o._readableState.errored=s;if(r)Iq(g,o,a,s,t);else g(o,a,s,t)}else{if(a.buffered.length>a.bufferedIndex)p(o,a);if(r)if(a.afterWriteTickInfo!==null&&a.afterWriteTickInfo.cb===t)a.afterWriteTickInfo.count++;else a.afterWriteTickInfo={count:1,cb:t,stream:o,state:a},Iq(k,a.afterWriteTickInfo);else y(o,a,1,t)}}function k({stream:o,state:s,count:a,cb:r}){return s.afterWriteTickInfo=null,y(o,s,a,r)}function y(o,s,a,r){if(!s.ending&&!o.destroyed&&s.length===0&&s.needDrain)s.needDrain=!1,o.emit("drain");while(a-- >0)s.pendingcb--,r();if(s.destroyed)h(s);c(o,s)}function h(o){if(o.writing)return;for(let t=o.bufferedIndex;t<o.buffered.length;++t){var s;const{chunk:e,callback:qq}=o.buffered[t],Qq=o.objectMode?1:e.length;o.length-=Qq,qq((s=o.errored)!==null&&s!==void 0?s:new A("write"))}const a=o[C].splice(0);for(let t=0;t<a.length;t++){var r;a[t]((r=o.errored)!==null&&r!==void 0?r:new A("end"))}w(o)}function p(o,s){if(s.corked||s.bufferProcessing||s.destroyed||!s.constructed)return;const{buffered:a,bufferedIndex:r,objectMode:t}=s,e=a.length-r;if(!e)return;let qq=r;if(s.bufferProcessing=!0,e>1&&o._writev){s.pendingcb-=e-1;const Qq=s.allNoop?_:(Jq)=>{for(let Hq=qq;Hq<a.length;++Hq)a[Hq].callback(Jq)},Xq=s.allNoop&&qq===0?a:X(a,qq);Xq.allBuffers=s.allBuffers,S(o,s,!0,s.length,Xq,"",Qq),w(s)}else{do{const{chunk:Qq,encoding:Xq,callback:Jq}=a[qq];a[qq++]=null;const Hq=t?1:Qq.length;S(o,s,!1,Hq,Qq,Xq,Jq)}while(qq<a.length&&!s.writing);if(qq===a.length)w(s);else if(qq>256)a.splice(0,qq),s.bufferedIndex=0;else s.bufferedIndex=qq}s.bufferProcessing=!1}O.prototype._write=function(o,s,a){if(this._writev)this._writev([{chunk:o,encoding:s}],a);else throw new L("_write()")},O.prototype._writev=null,O.prototype.end=function(o,s,a,r=!1){const t=this._writableState;if(Aq&&Nq("end",t,this.__id),typeof o==="function")a=o,o=null,s=null;else if(typeof s==="function")a=s,s=null;let e;if(o!==null&&o!==void 0){let qq;if(!r)qq=v(this,o,s);else qq=this.write(o,s);if(qq instanceof J)e=qq}if(t.corked)t.corked=1,this.uncork();if(e)this.emit("error",e);else if(!t.errored&&!t.ending)t.ending=!0,c(this,t,!0),t.ended=!0;else if(t.finished)e=new E("end");else if(t.destroyed)e=new A("end");if(typeof a==="function")if(e||t.finished)Iq(a,e);else t[C].push(a);return this};function u(o,s){var a=o.ending&&!o.destroyed&&o.constructed&&o.length===0&&!o.errored&&o.buffered.length===0&&!o.finished&&!o.writing&&!o.errorEmitted&&!o.closeEmitted;return Nq("needFinish",a,s),a}function b(o,s){let a=!1;function r(t){if(a){x(o,t!==null&&t!==void 0?t:j());return}if(a=!0,s.pendingcb--,t){const e=s[C].splice(0);for(let qq=0;qq<e.length;qq++)e[qq](t);x(o,t,s.sync)}else if(u(s))s.prefinished=!0,o.emit("prefinish"),s.pendingcb++,Iq(d,o,s)}s.sync=!0,s.pendingcb++;try{o._final(r)}catch(t){r(t)}s.sync=!1}function m(o,s){if(!s.prefinished&&!s.finalCalled)if(typeof o._final==="function"&&!s.destroyed)s.finalCalled=!0,b(o,s);else s.prefinished=!0,o.emit("prefinish")}function c(o,s,a){if(Aq&&Nq("finishMaybe -- state, sync",s,a,o.__id),!u(s,o.__id))return;if(m(o,s),s.pendingcb===0){if(a)s.pendingcb++,Iq((r,t)=>{if(u(t))d(r,t);else t.pendingcb--},o,s);else if(u(s))s.pendingcb++,d(o,s)}}function d(o,s){s.pendingcb--,s.finished=!0;const a=s[C].splice(0);for(let r=0;r<a.length;r++)a[r]();if(o.emit("finish"),s.autoDestroy){const r=o._readableState;if(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))o.destroy()}}Z(O.prototype,{closed:{get(){return this._writableState?this._writableState.closed:!1}},destroyed:{get(){return this._writableState?this._writableState.destroyed:!1},set(o){if(this._writableState)this._writableState.destroyed=o}},writable:{get(){const o=this._writableState;return!!o&&o.writable!==!1&&!o.destroyed&&!o.errored&&!o.ending&&!o.ended},set(o){if(this._writableState)this._writableState.writable=!!o}},writableFinished:{get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{get(){const o=this._writableState;if(!o)return!1;return!o.destroyed&&!o.ending&&o.needDrain}},writableHighWaterMark:{get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{get(){return this._writableState?this._writableState.corked:0}},writableLength:{get(){return this._writableState&&this._writableState.length}},errored:{enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var l=U.destroy;O.prototype.destroy=function(o,s){const a=this._writableState;if(!a.destroyed&&(a.bufferedIndex<a.buffered.length||a[C].length))Iq(h,a);return l.call(this,o,s),this},O.prototype._undestroy=U.undestroy,O.prototype._destroy=function(o,s){s(o)},O.prototype[Pq.captureRejectionSymbol]=function(o){this.destroy(o)};var i;function n(){if(i===void 0)i={};return i}O.fromWeb=function(o,s){return n().newStreamWritableFromWritableStream(o,s)},O.toWeb=function(o){return n().newWritableStreamFromStreamWritable(o)}}}),YQ=mq({"node_modules/readable-stream/lib/internal/streams/duplexify.js"(q,Q){var{isReadable:X,isWritable:J,isIterable:H,isNodeStream:K,isReadableNodeStream:Z,isWritableNodeStream:B,isDuplexNodeStream:Y}=aq(),$=rq(),{AbortError:z,codes:{ERR_INVALID_ARG_TYPE:V,ERR_INVALID_RETURN_VALUE:U}}=oq(),{destroyer:W}=eq(),G=Cq(),M=ZQ(),{createDeferredPromise:F}=_q(),L=JQ(),j=typeof Blob!=="undefined"?function T(P){return P instanceof Blob}:function T(P){return!1},{FunctionPrototypeCall:N}=Oq();class A extends G{constructor(T){super(T);if((T===null||T===void 0?void 0:T.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((T===null||T===void 0?void 0:T.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}Q.exports=function T(P,x){if(Y(P))return P;if(Z(P))return I({readable:P});if(B(P))return I({writable:P});if(K(P))return I({writable:!1,readable:!1});if(typeof P==="function"){const{value:_,write:C,final:D,destroy:w}=E(P);if(H(_))return L(A,_,{objectMode:!0,write:C,final:D,destroy:w});const v=_===null||_===void 0?void 0:_.then;if(typeof v==="function"){let R;const S=N(v,_,(g)=>{if(g!=null)throw new U("nully","body",g)},(g)=>{W(R,g)});return R=new A({objectMode:!0,readable:!1,write:C,final(g){D(async()=>{try{await S,Iq(g,null)}catch(f){Iq(g,f)}})},destroy:w})}throw new U("Iterable, AsyncIterable or AsyncFunction",x,_)}if(j(P))return T(P.arrayBuffer());if(H(P))return L(A,P,{objectMode:!0,writable:!1});if(typeof(P===null||P===void 0?void 0:P.writable)==="object"||typeof(P===null||P===void 0?void 0:P.readable)==="object"){const _=P!==null&&P!==void 0&&P.readable?Z(P===null||P===void 0?void 0:P.readable)?P===null||P===void 0?void 0:P.readable:T(P.readable):void 0,C=P!==null&&P!==void 0&&P.writable?B(P===null||P===void 0?void 0:P.writable)?P===null||P===void 0?void 0:P.writable:T(P.writable):void 0;return I({readable:_,writable:C})}const O=P===null||P===void 0?void 0:P.then;if(typeof O==="function"){let _;return N(O,P,(C)=>{if(C!=null)_.push(C);_.push(null)},(C)=>{W(_,C)}),_=new A({objectMode:!0,writable:!1,read(){}})}throw new V(x,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],P)};function E(T){let{promise:P,resolve:x}=F();const O=new AbortController,_=O.signal;return{value:T(async function*(){while(!0){const D=P;P=null;const{chunk:w,done:v,cb:R}=await D;if(Iq(R),v)return;if(_.aborted)throw new z(void 0,{cause:_.reason});({promise:P,resolve:x}=F()),yield w}}(),{signal:_}),write(D,w,v){const R=x;x=null,R({chunk:D,done:!1,cb:v})},final(D){const w=x;x=null,w({done:!0,cb:D})},destroy(D,w){O.abort(),w(D)}}}function I(T){const P=T.readable&&typeof T.readable.read!=="function"?M.wrap(T.readable):T.readable,x=T.writable;let O=!!X(P),_=!!J(x),C,D,w,v,R;function S(g){const f=v;if(v=null,f)f(g);else if(g)R.destroy(g);else if(!O&&!_)R.destroy()}if(R=new A({readableObjectMode:!!(P!==null&&P!==void 0&&P.readableObjectMode),writableObjectMode:!!(x!==null&&x!==void 0&&x.writableObjectMode),readable:O,writable:_}),_)$(x,(g)=>{if(_=!1,g)W(P,g);S(g)}),R._write=function(g,f,k){if(x.write(g,f))k();else C=k},R._final=function(g){x.end(),D=g},x.on("drain",function(){if(C){const g=C;C=null,g()}}),x.on("finish",function(){if(D){const g=D;D=null,g()}});if(O)$(P,(g)=>{if(O=!1,g)W(P,g);S(g)}),P.on("readable",function(){if(w){const g=w;w=null,g()}}),P.on("end",function(){R.push(null)}),R._read=function(){while(!0){const g=P.read();if(g===null){w=R._read;return}if(!R.push(g))return}};return R._destroy=function(g,f){if(!g&&v!==null)g=new z;if(w=null,C=null,D=null,v===null)f(g);else v=f,W(x,g),W(P,g)},R}}}),Cq=mq({"node_modules/readable-stream/lib/internal/streams/duplex.js"(q,Q){var{ObjectDefineProperties:X,ObjectGetOwnPropertyDescriptor:J,ObjectKeys:H,ObjectSetPrototypeOf:K}=Oq(),Z=ZQ();function B(U){if(!(this instanceof B))return new B(U);if(Z.call(this,U),Eq.call(this,U),U){if(this.allowHalfOpen=U.allowHalfOpen!==!1,U.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(U.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}Q.exports=B,K(B.prototype,Z.prototype),K(B,Z);for(var Y in Eq.prototype)if(!B.prototype[Y])B.prototype[Y]=Eq.prototype[Y];X(B.prototype,{writable:J(Eq.prototype,"writable"),writableHighWaterMark:J(Eq.prototype,"writableHighWaterMark"),writableObjectMode:J(Eq.prototype,"writableObjectMode"),writableBuffer:J(Eq.prototype,"writableBuffer"),writableLength:J(Eq.prototype,"writableLength"),writableFinished:J(Eq.prototype,"writableFinished"),writableCorked:J(Eq.prototype,"writableCorked"),writableEnded:J(Eq.prototype,"writableEnded"),writableNeedDrain:J(Eq.prototype,"writableNeedDrain"),destroyed:{get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(U){if(this._readableState&&this._writableState)this._readableState.destroyed=U,this._writableState.destroyed=U}}});var $;function z(){if($===void 0)$={};return $}B.fromWeb=function(U,W){return z().newStreamDuplexFromReadableWritablePair(U,W)},B.toWeb=function(U){return z().newReadableWritablePairFromDuplex(U)};var V;B.from=function(U){if(!V)V=YQ();return V(U,"body")}}}),$Q=mq({"node_modules/readable-stream/lib/internal/streams/transform.js"(q,Q){var{ObjectSetPrototypeOf:X,Symbol:J}=Oq(),{ERR_METHOD_NOT_IMPLEMENTED:H}=oq().codes,K=Cq();function Z(z){if(!(this instanceof Z))return new Z(z);if(K.call(this,z),this._readableState.sync=!1,this[B]=null,z){if(typeof z.transform==="function")this._transform=z.transform;if(typeof z.flush==="function")this._flush=z.flush}this.on("prefinish",$.bind(this))}X(Z.prototype,K.prototype),X(Z,K),Q.exports=Z;var B=J("kCallback");function Y(z){if(typeof this._flush==="function"&&!this.destroyed)this._flush((V,U)=>{if(V){if(z)z(V);else this.destroy(V);return}if(U!=null)this.push(U);if(this.push(null),z)z()});else if(this.push(null),z)z()}function $(){if(this._final!==Y)Y.call(this)}Z.prototype._final=Y,Z.prototype._transform=function(z,V,U){throw new H("_transform()")},Z.prototype._write=function(z,V,U){const W=this._readableState,G=this._writableState,M=W.length;this._transform(z,V,(F,L)=>{if(F){U(F);return}if(L!=null)this.push(L);if(G.ended||M===W.length||W.length<W.highWaterMark||W.highWaterMark===0||W.length===0)U();else this[B]=U})},Z.prototype._read=function(){if(this[B]){const z=this[B];this[B]=null,z()}}}}),zQ=mq({"node_modules/readable-stream/lib/internal/streams/passthrough.js"(q,Q){var{ObjectSetPrototypeOf:X}=Oq(),J=$Q();function H(K){if(!(this instanceof H))return new H(K);J.call(this,K)}X(H.prototype,J.prototype),X(H,J),H.prototype._transform=function(K,Z,B){B(null,K)},Q.exports=H}}),VQ=mq({"node_modules/readable-stream/lib/internal/streams/pipeline.js"(q,Q){var{ArrayIsArray:X,Promise:J,SymbolAsyncIterator:H}=Oq(),K=rq(),{once:Z}=_q(),B=eq(),Y=Cq(),{aggregateTwoErrors:$,codes:{ERR_INVALID_ARG_TYPE:z,ERR_INVALID_RETURN_VALUE:V,ERR_MISSING_ARGS:U,ERR_STREAM_DESTROYED:W},AbortError:G}=oq(),{validateFunction:M,validateAbortSignal:F}=sq(),{isIterable:L,isReadable:j,isReadableNodeStream:N,isNodeStream:A}=aq(),E,I;function T(v,R,S){let g=!1;v.on("close",()=>{g=!0});const f=K(v,{readable:R,writable:S},(k)=>{g=!k});return{destroy:(k)=>{if(g)return;g=!0,B.destroyer(v,k||new W("pipe"))},cleanup:f}}function P(v){return M(v[v.length-1],"streams[stream.length - 1]"),v.pop()}function x(v){if(L(v))return v;else if(N(v))return O(v);throw new z("val",["Readable","Iterable","AsyncIterable"],v)}async function*O(v){if(!I)I=ZQ();yield*I.prototype[H].call(v)}async function _(v,R,S,{end:g}){let f,k=null;const y=(u)=>{if(u)f=u;if(k){const b=k;k=null,b()}},h=()=>new J((u,b)=>{if(f)b(f);else k=()=>{if(f)b(f);else u()}});R.on("drain",y);const p=K(R,{readable:!1},y);try{if(R.writableNeedDrain)await h();for await(let u of v)if(!R.write(u))await h();if(g)R.end();await h(),S()}catch(u){S(f!==u?$(f,u):u)}finally{p(),R.off("drain",y)}}function C(...v){return D(v,Z(P(v)))}function D(v,R,S){if(v.length===1&&X(v[0]))v=v[0];if(v.length<2)throw new U("streams");const g=new AbortController,f=g.signal,k=S===null||S===void 0?void 0:S.signal,y=[];F(k,"options.signal");function h(){d(new G)}k===null||k===void 0||k.addEventListener("abort",h);let p,u;const b=[];let m=0;function c(n){d(n,--m===0)}function d(n,o){if(n&&(!p||p.code==="ERR_STREAM_PREMATURE_CLOSE"))p=n;if(!p&&!o)return;while(b.length)b.shift()(p);if(k===null||k===void 0||k.removeEventListener("abort",h),g.abort(),o){if(!p)y.forEach((s)=>s());Iq(R,p,u)}}let l;for(let n=0;n<v.length;n++){const o=v[n],s=n<v.length-1,a=n>0,r=s||(S===null||S===void 0?void 0:S.end)!==!1,t=n===v.length-1;if(A(o)){let e=function(qq){if(qq&&qq.name!=="AbortError"&&qq.code!=="ERR_STREAM_PREMATURE_CLOSE")c(qq)};if(r){const{destroy:qq,cleanup:Qq}=T(o,s,a);if(b.push(qq),j(o)&&t)y.push(Qq)}if(o.on("error",e),j(o)&&t)y.push(()=>{o.removeListener("error",e)})}if(n===0)if(typeof o==="function"){if(l=o({signal:f}),!L(l))throw new V("Iterable, AsyncIterable or Stream","source",l)}else if(L(o)||N(o))l=o;else l=Y.from(o);else if(typeof o==="function")if(l=x(l),l=o(l,{signal:f}),s){if(!L(l,!0))throw new V("AsyncIterable",`transform[${n-1}]`,l)}else{var i;if(!E)E=zQ();const e=new E({objectMode:!0}),qq=(i=l)===null||i===void 0?void 0:i.then;if(typeof qq==="function")m++,qq.call(l,(Jq)=>{if(u=Jq,Jq!=null)e.write(Jq);if(r)e.end();Iq(c)},(Jq)=>{e.destroy(Jq),Iq(c,Jq)});else if(L(l,!0))m++,_(l,e,c,{end:r});else throw new V("AsyncIterable or Promise","destination",l);l=e;const{destroy:Qq,cleanup:Xq}=T(l,!1,!0);if(b.push(Qq),t)y.push(Xq)}else if(A(o)){if(N(l)){m+=2;const e=w(l,o,c,{end:r});if(j(o)&&t)y.push(e)}else if(L(l))m++,_(l,o,c,{end:r});else throw new z("val",["Readable","Iterable","AsyncIterable"],l);l=o}else l=Y.from(o)}if(f!==null&&f!==void 0&&f.aborted||k!==null&&k!==void 0&&k.aborted)Iq(h);return l}function w(v,R,S,{end:g}){if(v.pipe(R,{end:g}),g)v.once("end",()=>R.end());else S();return K(v,{readable:!0,writable:!1},(f)=>{const k=v._readableState;if(f&&f.code==="ERR_STREAM_PREMATURE_CLOSE"&&k&&k.ended&&!k.errored&&!k.errorEmitted)v.once("end",S).once("error",S);else S(f)}),K(R,{readable:!1,writable:!0},S)}Q.exports={pipelineImpl:D,pipeline:C}}}),UQ=mq({"node_modules/readable-stream/lib/internal/streams/compose.js"(q,Q){var{pipeline:X}=VQ(),J=Cq(),{destroyer:H}=eq(),{isNodeStream:K,isReadable:Z,isWritable:B}=aq(),{AbortError:Y,codes:{ERR_INVALID_ARG_VALUE:$,ERR_MISSING_ARGS:z}}=oq();Q.exports=function V(...U){if(U.length===0)throw new z("streams");if(U.length===1)return J.from(U[0]);const W=[...U];if(typeof U[0]==="function")U[0]=J.from(U[0]);if(typeof U[U.length-1]==="function"){const P=U.length-1;U[P]=J.from(U[P])}for(let P=0;P<U.length;++P){if(!K(U[P]))continue;if(P<U.length-1&&!Z(U[P]))throw new $(`streams[${P}]`,W[P],"must be readable");if(P>0&&!B(U[P]))throw new $(`streams[${P}]`,W[P],"must be writable")}let G,M,F,L,j;function N(P){const x=L;if(L=null,x)x(P);else if(P)j.destroy(P);else if(!T&&!I)j.destroy()}const A=U[0],E=X(U,N),I=!!B(A),T=!!Z(E);if(j=new J({writableObjectMode:!!(A!==null&&A!==void 0&&A.writableObjectMode),readableObjectMode:!!(E!==null&&E!==void 0&&E.writableObjectMode),writable:I,readable:T}),I)j._write=function(P,x,O){if(A.write(P,x))O();else G=O},j._final=function(P){A.end(),M=P},A.on("drain",function(){if(G){const P=G;G=null,P()}}),E.on("finish",function(){if(M){const P=M;M=null,P()}});if(T)E.on("readable",function(){if(F){const P=F;F=null,P()}}),E.on("end",function(){j.push(null)}),j._read=function(){while(!0){const P=E.read();if(P===null){F=j._read;return}if(!j.push(P))return}};return j._destroy=function(P,x){if(!P&&L!==null)P=new Y;if(F=null,G=null,M=null,L===null)x(P);else L=x,H(E,P)},j}}}),WQ=mq({"node_modules/readable-stream/lib/stream/promises.js"(q,Q){var{ArrayPrototypePop:X,Promise:J}=Oq(),{isIterable:H,isNodeStream:K}=aq(),{pipelineImpl:Z}=VQ(),{finished:B}=rq();function Y(...$){return new J((z,V)=>{let U,W;const G=$[$.length-1];if(G&&typeof G==="object"&&!K(G)&&!H(G)){const M=X($);U=M.signal,W=M.end}Z($,(M,F)=>{if(M)V(M);else z(F)},{signal:U,end:W})})}Q.exports={finished:B,pipeline:Y}}}),GQ=mq({"node_modules/readable-stream/lib/stream.js"(q,Q){var{ObjectDefineProperty:X,ObjectKeys:J,ReflectApply:H}=Oq(),{promisify:{custom:K}}=_q(),{streamReturningOperators:Z,promiseReturningOperators:B}=tq(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Y}}=oq(),$=UQ(),{pipeline:z}=VQ(),{destroyer:V}=eq(),U=rq(),W=WQ(),G=aq(),M=Q.exports=qQ().Stream;M.isDisturbed=G.isDisturbed,M.isErrored=G.isErrored,M.isWritable=G.isWritable,M.isReadable=G.isReadable,M.Readable=ZQ();for(let L of J(Z)){let j=function(...A){if(new.target)throw Y();return M.Readable.from(H(N,this,A))};const N=Z[L];X(j,"name",{value:N.name}),X(j,"length",{value:N.length}),X(M.Readable.prototype,L,{value:j,enumerable:!1,configurable:!0,writable:!0})}for(let L of J(B)){let j=function(...A){if(new.target)throw Y();return H(N,this,A)};const N=B[L];X(j,"name",{value:N.name}),X(j,"length",{value:N.length}),X(M.Readable.prototype,L,{value:j,enumerable:!1,configurable:!0,writable:!0})}M.Writable=BQ(),M.Duplex=Cq(),M.Transform=$Q(),M.PassThrough=zQ(),M.pipeline=z;var{addAbortSignal:F}=QQ();M.addAbortSignal=F,M.finished=U,M.destroy=V,M.compose=$,X(M,"promises",{configurable:!0,enumerable:!0,get(){return W}}),X(z,K,{enumerable:!0,get(){return W.pipeline}}),X(U,K,{enumerable:!0,get(){return W.finished}}),M.Stream=M,M._isUint8Array=function L(j){return j instanceof Uint8Array},M._uint8ArrayToBuffer=function L(j){return new Buffer(j.buffer,j.byteOffset,j.byteLength)}}}),MQ=mq({"node_modules/readable-stream/lib/ours/index.js"(q,Q){const X=GQ(),J=WQ(),H=X.Readable.destroy;Q.exports=X,Q.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,Q.exports._isUint8Array=X._isUint8Array,Q.exports.isDisturbed=X.isDisturbed,Q.exports.isErrored=X.isErrored,Q.exports.isWritable=X.isWritable,Q.exports.isReadable=X.isReadable,Q.exports.Readable=X.Readable,Q.exports.Writable=X.Writable,Q.exports.Duplex=X.Duplex,Q.exports.Transform=X.Transform,Q.exports.PassThrough=X.PassThrough,Q.exports.addAbortSignal=X.addAbortSignal,Q.exports.finished=X.finished,Q.exports.destroy=X.destroy,Q.exports.destroy=H,Q.exports.pipeline=X.pipeline,Q.exports.compose=X.compose,Q.exports._getNativeReadableStreamPrototype=jQ,Q.exports.NativeWritable=pQ,Tq.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return J}}),Q.exports.Stream=X.Stream,Q.exports.default=Q.exports}}),LQ={0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,5:void 0},Eq=BQ(),pQ=class q extends Eq{#q;#Q;#X=!0;_construct;_destroy;_final;constructor(Q,X={}){super(X);this._construct=this.#J,this._destroy=this.#K,this._final=this.#Z,this.#q=Q}#J(Q){this._writableState.constructed=!0,this.constructed=!0,Q()}#H(){if(typeof this.#q==="object")if(typeof this.#q.write==="function")this.#Q=this.#q;else throw new Error("Invalid FileSink");else this.#Q=Bun.file(this.#q).writer()}write(Q,X,J,H=this.#X){if(!H)return this.#X=!1,super.write(Q,X,J);if(!this.#Q)this.#H();var K=this.#Q,Z=K.write(Q);if(xq(Z))return Z.then(()=>{this.emit("drain"),K.flush(!0)}),!1;if(K.flush(!0),J)J(null,Q.byteLength);return!0}end(Q,X,J,H=this.#X){return super.end(Q,X,J,H)}#K(Q,X){if(this._writableState.destroyed=!0,X)X(Q)}#Z(Q){if(this.#Q)this.#Q.end();if(Q)Q()}ref(){if(!this.#Q)this.#H();this.#Q.ref()}unref(){if(!this.#Q)return;this.#Q.unref()}},AQ=MQ();AQ[Symbol.for("CommonJS")]=0;AQ[Symbol.for("::bunternal::")]={_ReadableFromWeb:HQ,_ReadableFromWebForUndici:KQ};var lQ=AQ,EQ=AQ._uint8ArrayToBuffer,IQ=AQ._isUint8Array,TQ=AQ.isDisturbed,PQ=AQ.isErrored,xQ=AQ.isWritable,OQ=AQ.isReadable,_Q=AQ.Readable,Eq=AQ.Writable,CQ=AQ.Duplex,DQ=AQ.Transform,wQ=AQ.PassThrough,vQ=AQ.addAbortSignal,RQ=AQ.finished,SQ=AQ.destroy,gQ=AQ.pipeline,fQ=AQ.compose,kQ=AQ.Stream,yQ=AQ["eos"]=rq,hQ=AQ._getNativeReadableStreamPrototype,pQ=AQ.NativeWritable,uQ=kQ.promises;export{uQ as promises,gQ as pipeline,xQ as isWritable,OQ as isReadable,PQ as isErrored,TQ as isDisturbed,RQ as finished,yQ as eos,SQ as destroy,lQ as default,fQ as compose,vQ as addAbortSignal,EQ as _uint8ArrayToBuffer,IQ as _isUint8Array,hQ as _getNativeReadableStreamPrototype,Eq as Writable,DQ as Transform,kQ as Stream,_Q as Readable,wQ as PassThrough,pQ as NativeWritable,CQ as Duplex};
+import{EventEmitter as Zq} from"bun:events_native";import{StringDecoder as Gq} from"node:string_decoder";var Eq=function(B){return typeof B==="object"&&B!==null&&B instanceof ReadableStream},Iq=function(B,IQ){if(typeof B!=="boolean")throw new Pq(IQ,"boolean",B)};var Pq=function(B,IQ,Y){return new Error(`The argument '${B}' is invalid. Received '${Y}' for type '${IQ}'`)},xq=function(B,IQ,Y){return new Error(`The value '${IQ}' is invalid for argument '${B}'. Reason: ${Y}`)},H=function(B,IQ){var[Y,kQ,yQ,$,TQ,z,hQ]=globalThis[Symbol.for("Bun.lazy")](B),pQ=[!1],V=function(G,M,ZQ,F){if(M>0){const L=ZQ.subarray(0,M),j=ZQ.subarray(M);if(L.byteLength>0)G.push(L);if(F)G.push(null);return j.byteLength>0?j:void 0}if(F)G.push(null);return ZQ},PQ=function(G,M,ZQ,F){if(M.byteLength>0)G.push(M);if(F)G.push(null);return ZQ},U=process.env.BUN_DISABLE_DYNAMIC_CHUNK_SIZE!=="1";const uQ=new FinalizationRegistry((G)=>G&&TQ(G)),bQ=512;var W=class G extends IQ{#q;#Q=1;#X=!1;#J=void 0;#H;#K=!1;#Z=!U;#B;constructor(M,ZQ={}){super(ZQ);if(typeof ZQ.highWaterMark==="number")this.#H=ZQ.highWaterMark;else this.#H=262144;this.#q=M,this.#X=!1,this.#J=void 0,this.#K=!1,this.#B={},uQ.register(this,this.#q,this.#B)}_read(M){if(Jq&&VQ("NativeReadable._read",this.__id),this.#K){Jq&&VQ("pendingRead is true",this.__id);return}var ZQ=this.#q;if(Jq&&VQ("ptr @ NativeReadable._read",ZQ,this.__id),ZQ===0){this.push(null);return}if(!this.#X)Jq&&VQ("NativeReadable not constructed yet",this.__id),this.#Y(ZQ);return this.#V(this.#$(M),ZQ)}#Y(M){this.#X=!0;const ZQ=kQ(M,this.#H);if(Jq&&VQ("NativeReadable internal `start` result",ZQ,this.__id),typeof ZQ==="number"&&ZQ>1)this.#Z=!0,Jq&&VQ("NativeReadable resized",this.__id),this.#H=Math.min(this.#H,ZQ);if(hQ){const F=hQ(M);if(Jq&&VQ("NativeReadable drain result",F,this.__id),(F?.byteLength??0)>0)this.push(F)}}#$(M=this.#H){var ZQ=this.#J;if(Jq&&VQ("chunk @ #getRemainingChunk",ZQ,this.__id),ZQ?.byteLength??0<bQ){var F=M>bQ?M:bQ;this.#J=ZQ=new Buffer(F)}return ZQ}push(M,ZQ){return Jq&&VQ("NativeReadable push -- result, encoding",M,ZQ,this.__id),super.push(...arguments)}#z(M,ZQ,F){if(Jq&&VQ("result, isClosed @ #handleResult",M,F,this.__id),typeof M==="number"){if(M>=this.#H&&!this.#Z&&!F)this.#H*=2,this.#Z=!0;return V(this,M,ZQ,F)}else if(typeof M==="boolean")return this.push(null),ZQ?.byteLength??0>0?ZQ:void 0;else if(ArrayBuffer.isView(M)){if(M.byteLength>=this.#H&&!this.#Z&&!F)this.#H*=2,this.#Z=!0,Jq&&VQ("Resized",this.__id);return PQ(this,M,ZQ,F)}else throw Jq&&VQ("Unknown result type",M,this.__id),new Error("Invalid result from pull")}#V(M,ZQ){Jq&&VQ("#internalRead()",this.__id),pQ[0]=!1;var F=Y(ZQ,M,pQ);if(Bq(F))return this.#K=!0,F.then((L)=>{this.#K=!1,Jq&&VQ("pending no longerrrrrrrr (result returned from pull)",this.__id),this.#J=this.#z(L,M,pQ[0])},(L)=>{Jq&&VQ("error from pull",L,this.__id),errorOrDestroy(this,L)});else this.#J=this.#z(F,M,pQ[0])}_destroy(M,ZQ){var F=this.#q;if(F===0){ZQ(M);return}if(uQ.unregister(this.#B),this.#q=0,z)z(F,!1);Jq&&VQ("NativeReadable destroyed",this.__id),yQ(F,M),ZQ(M)}ref(){var M=this.#q;if(M===0)return;if(this.#Q++===0)z(M,!0)}unref(){var M=this.#q;if(M===0)return;if(this.#Q--===1)z(M,!1)}};if(!z)W.prototype.ref=void 0,W.prototype.unref=void 0;return W},cq=function(B,IQ){return mq[B]||=H(B,IQ)},dq=function(B,IQ,Y){if(!(IQ&&typeof IQ==="object"&&IQ instanceof ReadableStream))return;const kQ=Vq(IQ);if(!kQ){VQ("no native readable stream");return}const{stream:yQ,data:$}=kQ;return new(cq($,B))(yQ,Y)},{isPromise:Bq,isCallable:X,direct:Vq,Object:Kq}=globalThis[Symbol.for("Bun.lazy")]("primordials");globalThis.__IDS_TO_TRACK=process.env.DEBUG_TRACK_EE?.length?process.env.DEBUG_TRACK_EE.split(","):process.env.DEBUG_STREAMS?.length?process.env.DEBUG_STREAMS.split(","):null;var UQ=!!process.env.DEBUG_TRACK_EE,Jq=!!(process.env.DEBUG||process.env.DEBUG_STREAMS||UQ),VQ=Jq?globalThis.__IDS_TO_TRACK?(...B)=>{const IQ=B[B.length-1];if(!globalThis.__IDS_TO_TRACK.includes(IQ))return;console.log(`ID: ${IQ}`,...B.slice(0,-1))}:(...B)=>console.log(...B.slice(0,-1)):()=>{},Mq=Kq.create,Fq=Kq.defineProperty,SQ=Kq.getOwnPropertyDescriptor,Lq=Kq.getOwnPropertyNames,jq=Kq.getPrototypeOf,Nq=Kq.prototype.hasOwnProperty,Aq=Kq.setPrototypeOf,gQ=(B,IQ)=>function Y(){return IQ||(0,B[Lq(B)[0]])((IQ={exports:{}}).exports,IQ),IQ.exports};var RQ=process.nextTick;var Tq=Array.isArray,Yq=gQ({"node_modules/readable-stream/lib/ours/primordials.js"(B,IQ){IQ.exports={ArrayIsArray(Y){return Array.isArray(Y)},ArrayPrototypeIncludes(Y,kQ){return Y.includes(kQ)},ArrayPrototypeIndexOf(Y,kQ){return Y.indexOf(kQ)},ArrayPrototypeJoin(Y,kQ){return Y.join(kQ)},ArrayPrototypeMap(Y,kQ){return Y.map(kQ)},ArrayPrototypePop(Y,kQ){return Y.pop(kQ)},ArrayPrototypePush(Y,kQ){return Y.push(kQ)},ArrayPrototypeSlice(Y,kQ,yQ){return Y.slice(kQ,yQ)},Error,FunctionPrototypeCall(Y,kQ,...yQ){return Y.call(kQ,...yQ)},FunctionPrototypeSymbolHasInstance(Y,kQ){return Function.prototype[Symbol.hasInstance].call(Y,kQ)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(Y,kQ){return Kq.defineProperties(Y,kQ)},ObjectDefineProperty(Y,kQ,yQ){return Kq.defineProperty(Y,kQ,yQ)},ObjectGetOwnPropertyDescriptor(Y,kQ){return Kq.getOwnPropertyDescriptor(Y,kQ)},ObjectKeys(Y){return Kq.keys(Y)},ObjectSetPrototypeOf(Y,kQ){return Kq.setPrototypeOf(Y,kQ)},Promise,PromisePrototypeCatch(Y,kQ){return Y.catch(kQ)},PromisePrototypeThen(Y,kQ,yQ){return Y.then(kQ,yQ)},PromiseReject(Y){return Promise.reject(Y)},ReflectApply:Reflect.apply,RegExpPrototypeTest(Y,kQ){return Y.test(kQ)},SafeSet:Set,String,StringPrototypeSlice(Y,kQ,yQ){return Y.slice(kQ,yQ)},StringPrototypeToLowerCase(Y){return Y.toLowerCase()},StringPrototypeToUpperCase(Y){return Y.toUpperCase()},StringPrototypeTrim(Y){return Y.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(Y,kQ,yQ){return Y.set(kQ,yQ)},Uint8Array}}}),$q=gQ({"node_modules/readable-stream/lib/ours/util.js"(B,IQ){var Y=Kq.getPrototypeOf(async function(){}).constructor,kQ=typeof Blob!=="undefined"?function $(TQ){return TQ instanceof Blob}:function $(TQ){return!1},yQ=class extends Error{constructor($){if(!Array.isArray($))throw new TypeError(`Expected input to be an Array, got ${typeof $}`);let TQ="";for(let z=0;z<$.length;z++)TQ+=` ${$[z].stack}
+`;super(TQ);this.name="AggregateError",this.errors=$}};IQ.exports={AggregateError:yQ,once($){let TQ=!1;return function(...z){if(TQ)return;TQ=!0,$.apply(this,z)}},createDeferredPromise:function(){let $,TQ;return{promise:new Promise((hQ,pQ)=>{$=hQ,TQ=pQ}),resolve:$,reject:TQ}},promisify($){return new Promise((TQ,z)=>{$((hQ,...pQ)=>{if(hQ)return z(hQ);return TQ(...pQ)})})},debuglog(){return function(){}},format($,...TQ){return $.replace(/%([sdifj])/g,function(...[z,hQ]){const pQ=TQ.shift();if(hQ==="f")return pQ.toFixed(6);else if(hQ==="j")return JSON.stringify(pQ);else if(hQ==="s"&&typeof pQ==="object")return`${pQ.constructor!==Kq?pQ.constructor.name:""} {}`.trim();else return pQ.toString()})},inspect($){switch(typeof $){case"string":if($.includes("'")){if(!$.includes('"'))return`"${$}"`;else if(!$.includes("`")&&!$.includes("${"))return`\`${$}\``}return`'${$}'`;case"number":if(isNaN($))return"NaN";else if(Kq.is($,-0))return String($);return $;case"bigint":return`${String($)}n`;case"boolean":case"undefined":return String($);case"object":return"{}"}},types:{isAsyncFunction($){return $ instanceof Y},isArrayBufferView($){return ArrayBuffer.isView($)}},isBlob:kQ},IQ.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}}),Oq=gQ({"node_modules/readable-stream/lib/ours/errors.js"(B,IQ){var{format:Y,inspect:kQ,AggregateError:yQ}=$q(),$=globalThis.AggregateError||yQ,TQ=Symbol("kIsNodeError"),z=["string","function","number","object","Function","Object","boolean","bigint","symbol"],hQ=/^([A-Z][a-z0-9]*)+$/,pQ="__node_internal_",V={};function PQ(ZQ,F){if(!ZQ)throw new V.ERR_INTERNAL_ASSERTION(F)}function U(ZQ){let F="",L=ZQ.length;const j=ZQ[0]==="-"?1:0;for(;L>=j+4;L-=3)F=`_${ZQ.slice(L-3,L)}${F}`;return`${ZQ.slice(0,L)}${F}`}function uQ(ZQ,F,L){if(typeof F==="function")return PQ(F.length<=L.length,`Code: ${ZQ}; The provided arguments length (${L.length}) does not match the required ones (${F.length}).`),F(...L);const j=(F.match(/%[dfijoOs]/g)||[]).length;if(PQ(j===L.length,`Code: ${ZQ}; The provided arguments length (${L.length}) does not match the required ones (${j}).`),L.length===0)return F;return Y(F,...L)}function bQ(ZQ,F,L){if(!L)L=Error;class j extends L{constructor(...N){super(uQ(ZQ,F,N))}toString(){return`${this.name} [${ZQ}]: ${this.message}`}}Kq.defineProperties(j.prototype,{name:{value:L.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${ZQ}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),j.prototype.code=ZQ,j.prototype[TQ]=!0,V[ZQ]=j}function W(ZQ){const F=pQ+ZQ.name;return Kq.defineProperty(ZQ,"name",{value:F}),ZQ}function G(ZQ,F){if(ZQ&&F&&ZQ!==F){if(Array.isArray(F.errors))return F.errors.push(ZQ),F;const L=new $([F,ZQ],F.message);return L.code=F.code,L}return ZQ||F}var M=class extends Error{constructor(ZQ="The operation was aborted",F=void 0){if(F!==void 0&&typeof F!=="object")throw new V.ERR_INVALID_ARG_TYPE("options","Object",F);super(ZQ,F);this.code="ABORT_ERR",this.name="AbortError"}};bQ("ERR_ASSERTION","%s",Error),bQ("ERR_INVALID_ARG_TYPE",(ZQ,F,L)=>{if(PQ(typeof ZQ==="string","'name' must be a string"),!Array.isArray(F))F=[F];let j="The ";if(ZQ.endsWith(" argument"))j+=`${ZQ} `;else j+=`"${ZQ}" ${ZQ.includes(".")?"property":"argument"} `;j+="must be ";const N=[],q=[],A=[];for(let I of F)if(PQ(typeof I==="string","All expected entries have to be of type string"),z.includes(I))N.push(I.toLowerCase());else if(hQ.test(I))q.push(I);else PQ(I!=="object",'The value "object" should be written as "Object"'),A.push(I);if(q.length>0){const I=N.indexOf("object");if(I!==-1)N.splice(N,I,1),q.push("Object")}if(N.length>0){switch(N.length){case 1:j+=`of type ${N[0]}`;break;case 2:j+=`one of type ${N[0]} or ${N[1]}`;break;default:{const I=N.pop();j+=`one of type ${N.join(", ")}, or ${I}`}}if(q.length>0||A.length>0)j+=" or "}if(q.length>0){switch(q.length){case 1:j+=`an instance of ${q[0]}`;break;case 2:j+=`an instance of ${q[0]} or ${q[1]}`;break;default:{const I=q.pop();j+=`an instance of ${q.join(", ")}, or ${I}`}}if(A.length>0)j+=" or "}switch(A.length){case 0:break;case 1:if(A[0].toLowerCase()!==A[0])j+="an ";j+=`${A[0]}`;break;case 2:j+=`one of ${A[0]} or ${A[1]}`;break;default:{const I=A.pop();j+=`one of ${A.join(", ")}, or ${I}`}}if(L==null)j+=`. Received ${L}`;else if(typeof L==="function"&&L.name)j+=`. Received function ${L.name}`;else if(typeof L==="object"){var E;if((E=L.constructor)!==null&&E!==void 0&&E.name)j+=`. Received an instance of ${L.constructor.name}`;else{const I=kQ(L,{depth:-1});j+=`. Received ${I}`}}else{let I=kQ(L,{colors:!1});if(I.length>25)I=`${I.slice(0,25)}...`;j+=`. Received type ${typeof L} (${I})`}return j},TypeError),bQ("ERR_INVALID_ARG_VALUE",(ZQ,F,L="is invalid")=>{let j=kQ(F);if(j.length>128)j=j.slice(0,128)+"...";return`The ${ZQ.includes(".")?"property":"argument"} '${ZQ}' ${L}. Received ${j}`},TypeError),bQ("ERR_INVALID_RETURN_VALUE",(ZQ,F,L)=>{var j;const N=L!==null&&L!==void 0&&(j=L.constructor)!==null&&j!==void 0&&j.name?`instance of ${L.constructor.name}`:`type ${typeof L}`;return`Expected ${ZQ} to be returned from the "${F}" function but got ${N}.`},TypeError),bQ("ERR_MISSING_ARGS",(...ZQ)=>{PQ(ZQ.length>0,"At least one arg needs to be specified");let F;const L=ZQ.length;switch(ZQ=(Array.isArray(ZQ)?ZQ:[ZQ]).map((j)=>`"${j}"`).join(" or "),L){case 1:F+=`The ${ZQ[0]} argument`;break;case 2:F+=`The ${ZQ[0]} and ${ZQ[1]} arguments`;break;default:{const j=ZQ.pop();F+=`The ${ZQ.join(", ")}, and ${j} arguments`}break}return`${F} must be specified`},TypeError),bQ("ERR_OUT_OF_RANGE",(ZQ,F,L)=>{PQ(F,'Missing "range" argument');let j;if(Number.isInteger(L)&&Math.abs(L)>4294967296)j=U(String(L));else if(typeof L==="bigint"){if(j=String(L),L>2n**32n||L<-(2n**32n))j=U(j);j+="n"}else j=kQ(L);return`The value of "${ZQ}" is out of range. It must be ${F}. Received ${j}`},RangeError),bQ("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),bQ("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),bQ("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),bQ("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),bQ("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),bQ("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),bQ("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),bQ("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),bQ("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),bQ("ERR_STREAM_WRITE_AFTER_END","write after end",Error),bQ("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),IQ.exports={AbortError:M,aggregateTwoErrors:W(G),hideStackFrames:W,codes:V}}}),WQ=gQ({"node_modules/readable-stream/lib/internal/validators.js"(B,IQ){var{ArrayIsArray:Y,ArrayPrototypeIncludes:kQ,ArrayPrototypeJoin:yQ,ArrayPrototypeMap:$,NumberIsInteger:TQ,NumberMAX_SAFE_INTEGER:z,NumberMIN_SAFE_INTEGER:hQ,NumberParseInt:pQ,RegExpPrototypeTest:V,String:PQ,StringPrototypeToUpperCase:U,StringPrototypeTrim:uQ}=Yq(),{hideStackFrames:bQ,codes:{ERR_SOCKET_BAD_PORT:W,ERR_INVALID_ARG_TYPE:G,ERR_INVALID_ARG_VALUE:M,ERR_OUT_OF_RANGE:ZQ,ERR_UNKNOWN_SIGNAL:F}}=Oq(),{normalizeEncoding:L}=$q(),{isAsyncFunction:j,isArrayBufferView:N}=$q().types,q={};function A(DQ){return DQ===(DQ|0)}function E(DQ){return DQ===DQ>>>0}var I=/^[0-7]+$/,T="must be a 32-bit unsigned integer or an octal string";function BQ(DQ,k,y){if(typeof DQ==="undefined")DQ=y;if(typeof DQ==="string"){if(!V(I,DQ))throw new M(k,DQ,T);DQ=pQ(DQ,8)}return x(DQ,k,0,4294967295),DQ}var P=bQ((DQ,k,y=hQ,wQ=z)=>{if(typeof DQ!=="number")throw new G(k,"number",DQ);if(!TQ(DQ))throw new ZQ(k,"an integer",DQ);if(DQ<y||DQ>wQ)throw new ZQ(k,`>= ${y} && <= ${wQ}`,DQ)}),x=bQ((DQ,k,y=-2147483648,wQ=2147483647)=>{if(typeof DQ!=="number")throw new G(k,"number",DQ);if(!A(DQ)){if(!TQ(DQ))throw new ZQ(k,"an integer",DQ);throw new ZQ(k,`>= ${y} && <= ${wQ}`,DQ)}if(DQ<y||DQ>wQ)throw new ZQ(k,`>= ${y} && <= ${wQ}`,DQ)}),xQ=bQ((DQ,k,y)=>{if(typeof DQ!=="number")throw new G(k,"number",DQ);if(!E(DQ)){if(!TQ(DQ))throw new ZQ(k,"an integer",DQ);throw new ZQ(k,`>= ${y?1:0} && < 4294967296`,DQ)}if(y&&DQ===0)throw new ZQ(k,">= 1 && < 4294967296",DQ)});function O(DQ,k){if(typeof DQ!=="string")throw new G(k,"string",DQ)}function _(DQ,k){if(typeof DQ!=="number")throw new G(k,"number",DQ)}var OQ=bQ((DQ,k,y)=>{if(!kQ(y,DQ)){const h="must be one of: "+yQ($(y,(p)=>typeof p==="string"?`'${p}'`:PQ(p)),", ");throw new M(k,DQ,h)}});function C(DQ,k){if(typeof DQ!=="boolean")throw new G(k,"boolean",DQ)}var _Q=bQ((DQ,k,y)=>{const wQ=y==null,h=wQ?!1:y.allowArray,p=wQ?!1:y.allowFunction;if(!(wQ?!1:y.nullable)&&DQ===null||!h&&Y(DQ)||typeof DQ!=="object"&&(!p||typeof DQ!=="function"))throw new G(k,"Object",DQ)}),D=bQ((DQ,k,y=0)=>{if(!Y(DQ))throw new G(k,"Array",DQ);if(DQ.length<y){const wQ=`must be longer than ${y}`;throw new M(k,DQ,wQ)}});function w(DQ,k="signal"){if(O(DQ,k),q[DQ]===void 0){if(q[U(DQ)]!==void 0)throw new F(DQ+" (signals must use all capital letters)");throw new F(DQ)}}var CQ=bQ((DQ,k="buffer")=>{if(!N(DQ))throw new G(k,["Buffer","TypedArray","DataView"],DQ)});function v(DQ,k){const y=L(k),wQ=DQ.length;if(y==="hex"&&wQ%2!==0)throw new M("encoding",k,`is invalid for data of length ${wQ}`)}function R(DQ,k="Port",y=!0){if(typeof DQ!=="number"&&typeof DQ!=="string"||typeof DQ==="string"&&uQ(DQ).length===0||+DQ!==+DQ>>>0||DQ>65535||DQ===0&&!y)throw new W(k,DQ,y);return DQ|0}var S=bQ((DQ,k)=>{if(DQ!==void 0&&(DQ===null||typeof DQ!=="object"||!("aborted"in DQ)))throw new G(k,"AbortSignal",DQ)}),YQ=bQ((DQ,k)=>{if(typeof DQ!=="function")throw new G(k,"Function",DQ)}),g=bQ((DQ,k)=>{if(typeof DQ!=="function"||j(DQ))throw new G(k,"Function",DQ)}),f=bQ((DQ,k)=>{if(DQ!==void 0)throw new G(k,"undefined",DQ)});IQ.exports={isInt32:A,isUint32:E,parseFileMode:BQ,validateArray:D,validateBoolean:C,validateBuffer:CQ,validateEncoding:v,validateFunction:YQ,validateInt32:x,validateInteger:P,validateNumber:_,validateObject:_Q,validateOneOf:OQ,validatePlainFunction:g,validatePort:R,validateSignalName:w,validateString:O,validateUint32:xQ,validateUndefined:f,validateAbortSignal:S}}}),_q=gQ({"node_modules/readable-stream/lib/internal/streams/utils.js"(B,IQ){var{Symbol:Y,SymbolAsyncIterator:kQ,SymbolIterator:yQ}=Yq(),$=Y("kDestroyed"),TQ=Y("kIsErrored"),z=Y("kIsReadable"),hQ=Y("kIsDisturbed");function pQ(xQ,O=!1){var _;return!!(xQ&&typeof xQ.pipe==="function"&&typeof xQ.on==="function"&&(!O||typeof xQ.pause==="function"&&typeof xQ.resume==="function")&&(!xQ._writableState||((_=xQ._readableState)===null||_===void 0?void 0:_.readable)!==!1)&&(!xQ._writableState||xQ._readableState))}function V(xQ){var O;return!!(xQ&&typeof xQ.write==="function"&&typeof xQ.on==="function"&&(!xQ._readableState||((O=xQ._writableState)===null||O===void 0?void 0:O.writable)!==!1))}function PQ(xQ){return!!(xQ&&typeof xQ.pipe==="function"&&xQ._readableState&&typeof xQ.on==="function"&&typeof xQ.write==="function")}function U(xQ){return xQ&&(xQ._readableState||xQ._writableState||typeof xQ.write==="function"&&typeof xQ.on==="function"||typeof xQ.pipe==="function"&&typeof xQ.on==="function")}function uQ(xQ,O){if(xQ==null)return!1;if(O===!0)return typeof xQ[kQ]==="function";if(O===!1)return typeof xQ[yQ]==="function";return typeof xQ[kQ]==="function"||typeof xQ[yQ]==="function"}function bQ(xQ){if(!U(xQ))return null;const{_writableState:O,_readableState:_}=xQ,OQ=O||_;return!!(xQ.destroyed||xQ[$]||OQ!==null&&OQ!==void 0&&OQ.destroyed)}function W(xQ){if(!V(xQ))return null;if(xQ.writableEnded===!0)return!0;const O=xQ._writableState;if(O!==null&&O!==void 0&&O.errored)return!1;if(typeof(O===null||O===void 0?void 0:O.ended)!=="boolean")return null;return O.ended}function G(xQ,O){if(!V(xQ))return null;if(xQ.writableFinished===!0)return!0;const _=xQ._writableState;if(_!==null&&_!==void 0&&_.errored)return!1;if(typeof(_===null||_===void 0?void 0:_.finished)!=="boolean")return null;return!!(_.finished||O===!1&&_.ended===!0&&_.length===0)}function M(xQ){if(!pQ(xQ))return null;if(xQ.readableEnded===!0)return!0;const O=xQ._readableState;if(!O||O.errored)return!1;if(typeof(O===null||O===void 0?void 0:O.ended)!=="boolean")return null;return O.ended}function ZQ(xQ,O){if(!pQ(xQ))return null;const _=xQ._readableState;if(_!==null&&_!==void 0&&_.errored)return!1;if(typeof(_===null||_===void 0?void 0:_.endEmitted)!=="boolean")return null;return!!(_.endEmitted||O===!1&&_.ended===!0&&_.length===0)}function F(xQ){if(xQ&&xQ[z]!=null)return xQ[z];if(typeof(xQ===null||xQ===void 0?void 0:xQ.readable)!=="boolean")return null;if(bQ(xQ))return!1;return pQ(xQ)&&xQ.readable&&!ZQ(xQ)}function L(xQ){if(typeof(xQ===null||xQ===void 0?void 0:xQ.writable)!=="boolean")return null;if(bQ(xQ))return!1;return V(xQ)&&xQ.writable&&!W(xQ)}function j(xQ,O){if(!U(xQ))return null;if(bQ(xQ))return!0;if((O===null||O===void 0?void 0:O.readable)!==!1&&F(xQ))return!1;if((O===null||O===void 0?void 0:O.writable)!==!1&&L(xQ))return!1;return!0}function N(xQ){var O,_;if(!U(xQ))return null;if(xQ.writableErrored)return xQ.writableErrored;return(O=(_=xQ._writableState)===null||_===void 0?void 0:_.errored)!==null&&O!==void 0?O:null}function q(xQ){var O,_;if(!U(xQ))return null;if(xQ.readableErrored)return xQ.readableErrored;return(O=(_=xQ._readableState)===null||_===void 0?void 0:_.errored)!==null&&O!==void 0?O:null}function A(xQ){if(!U(xQ))return null;if(typeof xQ.closed==="boolean")return xQ.closed;const{_writableState:O,_readableState:_}=xQ;if(typeof(O===null||O===void 0?void 0:O.closed)==="boolean"||typeof(_===null||_===void 0?void 0:_.closed)==="boolean")return(O===null||O===void 0?void 0:O.closed)||(_===null||_===void 0?void 0:_.closed);if(typeof xQ._closed==="boolean"&&E(xQ))return xQ._closed;return null}function E(xQ){return typeof xQ._closed==="boolean"&&typeof xQ._defaultKeepAlive==="boolean"&&typeof xQ._removedConnection==="boolean"&&typeof xQ._removedContLen==="boolean"}function I(xQ){return typeof xQ._sent100==="boolean"&&E(xQ)}function T(xQ){var O;return typeof xQ._consuming==="boolean"&&typeof xQ._dumped==="boolean"&&((O=xQ.req)===null||O===void 0?void 0:O.upgradeOrConnect)===void 0}function BQ(xQ){if(!U(xQ))return null;const{_writableState:O,_readableState:_}=xQ,OQ=O||_;return!OQ&&I(xQ)||!!(OQ&&OQ.autoDestroy&&OQ.emitClose&&OQ.closed===!1)}function P(xQ){var O;return!!(xQ&&((O=xQ[hQ])!==null&&O!==void 0?O:xQ.readableDidRead||xQ.readableAborted))}function x(xQ){var O,_,OQ,C,_Q,D,w,CQ,v,R;return!!(xQ&&((O=(_=(OQ=(C=(_Q=(D=xQ[TQ])!==null&&D!==void 0?D:xQ.readableErrored)!==null&&_Q!==void 0?_Q:xQ.writableErrored)!==null&&C!==void 0?C:(w=xQ._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&OQ!==void 0?OQ:(CQ=xQ._writableState)===null||CQ===void 0?void 0:CQ.errorEmitted)!==null&&_!==void 0?_:(v=xQ._readableState)===null||v===void 0?void 0:v.errored)!==null&&O!==void 0?O:(R=xQ._writableState)===null||R===void 0?void 0:R.errored))}IQ.exports={kDestroyed:$,isDisturbed:P,kIsDisturbed:hQ,isErrored:x,kIsErrored:TQ,isReadable:F,kIsReadable:z,isClosed:A,isDestroyed:bQ,isDuplexNodeStream:PQ,isFinished:j,isIterable:uQ,isReadableNodeStream:pQ,isReadableEnded:M,isReadableFinished:ZQ,isReadableErrored:q,isNodeStream:U,isWritable:L,isWritableNodeStream:V,isWritableEnded:W,isWritableFinished:G,isWritableErrored:N,isServerRequest:T,isServerResponse:I,willEmitClose:BQ}}}),Cq=gQ({"node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(B,IQ){var{AbortError:Y,codes:kQ}=Oq(),{ERR_INVALID_ARG_TYPE:yQ,ERR_STREAM_PREMATURE_CLOSE:$}=kQ,{once:TQ}=$q(),{validateAbortSignal:z,validateFunction:hQ,validateObject:pQ}=WQ(),{Promise:V}=Yq(),{isClosed:PQ,isReadable:U,isReadableNodeStream:uQ,isReadableFinished:bQ,isReadableErrored:W,isWritable:G,isWritableNodeStream:M,isWritableFinished:ZQ,isWritableErrored:F,isNodeStream:L,willEmitClose:j}=_q();function N(I){return I.setHeader&&typeof I.abort==="function"}var q=()=>{};function A(I,T,BQ){var P,x;if(arguments.length===2)BQ=T,T={};else if(T==null)T={};else pQ(T,"options");hQ(BQ,"callback"),z(T.signal,"options.signal"),BQ=TQ(BQ);const xQ=(P=T.readable)!==null&&P!==void 0?P:uQ(I),O=(x=T.writable)!==null&&x!==void 0?x:M(I);if(!L(I))throw new yQ("stream","Stream",I);const{_writableState:_,_readableState:OQ}=I,C=()=>{if(!I.writable)w()};let _Q=j(I)&&uQ(I)===xQ&&M(I)===O,D=ZQ(I,!1);const w=()=>{if(D=!0,I.destroyed)_Q=!1;if(_Q&&(!I.readable||xQ))return;if(!xQ||CQ)BQ.call(I)};let CQ=bQ(I,!1);const v=()=>{if(CQ=!0,I.destroyed)_Q=!1;if(_Q&&(!I.writable||O))return;if(!O||D)BQ.call(I)},R=(DQ)=>{BQ.call(I,DQ)};let S=PQ(I);const YQ=()=>{S=!0;const DQ=F(I)||W(I);if(DQ&&typeof DQ!=="boolean")return BQ.call(I,DQ);if(xQ&&!CQ&&uQ(I,!0)){if(!bQ(I,!1))return BQ.call(I,new $)}if(O&&!D){if(!ZQ(I,!1))return BQ.call(I,new $)}BQ.call(I)},g=()=>{I.req.on("finish",w)};if(N(I)){if(I.on("complete",w),!_Q)I.on("abort",YQ);if(I.req)g();else I.on("request",g)}else if(O&&!_)I.on("end",C),I.on("close",C);if(!_Q&&typeof I.aborted==="boolean")I.on("aborted",YQ);if(I.on("end",v),I.on("finish",w),T.error!==!1)I.on("error",R);if(I.on("close",YQ),S)RQ(YQ);else if(_!==null&&_!==void 0&&_.errorEmitted||OQ!==null&&OQ!==void 0&&OQ.errorEmitted){if(!_Q)RQ(YQ)}else if(!xQ&&(!_Q||U(I))&&(D||G(I)===!1))RQ(YQ);else if(!O&&(!_Q||G(I))&&(CQ||U(I)===!1))RQ(YQ);else if(OQ&&I.req&&I.aborted)RQ(YQ);const f=()=>{if(BQ=q,I.removeListener("aborted",YQ),I.removeListener("complete",w),I.removeListener("abort",YQ),I.removeListener("request",g),I.req)I.req.removeListener("finish",w);I.removeListener("end",C),I.removeListener("close",C),I.removeListener("finish",w),I.removeListener("end",v),I.removeListener("error",R),I.removeListener("close",YQ)};if(T.signal&&!S){const DQ=()=>{const k=BQ;f(),k.call(I,new Y(void 0,{cause:T.signal.reason}))};if(T.signal.aborted)RQ(DQ);else{const k=BQ;BQ=TQ((...y)=>{T.signal.removeEventListener("abort",DQ),k.apply(I,y)}),T.signal.addEventListener("abort",DQ)}}return f}function E(I,T){return new V((BQ,P)=>{A(I,T,(x)=>{if(x)P(x);else BQ()})})}IQ.exports=A,IQ.exports.finished=E}}),fQ=gQ({"node_modules/readable-stream/lib/internal/streams/operators.js"(B,IQ){var{codes:{ERR_INVALID_ARG_TYPE:Y,ERR_MISSING_ARGS:kQ,ERR_OUT_OF_RANGE:yQ},AbortError:$}=Oq(),{validateAbortSignal:TQ,validateInteger:z,validateObject:hQ}=WQ(),pQ=Yq().Symbol("kWeak"),{finished:V}=Cq(),{ArrayPrototypePush:PQ,MathFloor:U,Number:uQ,NumberIsNaN:bQ,Promise:W,PromiseReject:G,PromisePrototypeCatch:M,Symbol:ZQ}=Yq(),F=ZQ("kEmpty"),L=ZQ("kEof");function j(C,_Q){if(typeof C!=="function")throw new Y("fn",["Function","AsyncFunction"],C);if(_Q!=null)hQ(_Q,"options");if((_Q===null||_Q===void 0?void 0:_Q.signal)!=null)TQ(_Q.signal,"options.signal");let D=1;if((_Q===null||_Q===void 0?void 0:_Q.concurrency)!=null)D=U(_Q.concurrency);return z(D,"concurrency",1),async function*w(){var CQ,v;const R=new AbortController,S=this,YQ=[],g=R.signal,f={signal:g},DQ=()=>R.abort();if(_Q!==null&&_Q!==void 0&&(CQ=_Q.signal)!==null&&CQ!==void 0&&CQ.aborted)DQ();_Q===null||_Q===void 0||(v=_Q.signal)===null||v===void 0||v.addEventListener("abort",DQ);let k,y,wQ=!1;function h(){wQ=!0}async function p(){try{for await(let b of S){var u;if(wQ)return;if(g.aborted)throw new $;try{b=C(b,f)}catch(m){b=G(m)}if(b===F)continue;if(typeof((u=b)===null||u===void 0?void 0:u.catch)==="function")b.catch(h);if(YQ.push(b),k)k(),k=null;if(!wQ&&YQ.length&&YQ.length>=D)await new W((m)=>{y=m})}YQ.push(L)}catch(b){const m=G(b);M(m,h),YQ.push(m)}finally{var $Q;if(wQ=!0,k)k(),k=null;_Q===null||_Q===void 0||($Q=_Q.signal)===null||$Q===void 0||$Q.removeEventListener("abort",DQ)}}p();try{while(!0){while(YQ.length>0){const u=await YQ[0];if(u===L)return;if(g.aborted)throw new $;if(u!==F)yield u;if(YQ.shift(),y)y(),y=null}await new W((u)=>{k=u})}}finally{if(R.abort(),wQ=!0,y)y(),y=null}}.call(this)}function N(C=void 0){if(C!=null)hQ(C,"options");if((C===null||C===void 0?void 0:C.signal)!=null)TQ(C.signal,"options.signal");return async function*_Q(){let D=0;for await(let CQ of this){var w;if(C!==null&&C!==void 0&&(w=C.signal)!==null&&w!==void 0&&w.aborted)throw new $({cause:C.signal.reason});yield[D++,CQ]}}.call(this)}async function q(C,_Q=void 0){for await(let D of T.call(this,C,_Q))return!0;return!1}async function A(C,_Q=void 0){if(typeof C!=="function")throw new Y("fn",["Function","AsyncFunction"],C);return!await q.call(this,async(...D)=>{return!await C(...D)},_Q)}async function E(C,_Q){for await(let D of T.call(this,C,_Q))return D;return}async function I(C,_Q){if(typeof C!=="function")throw new Y("fn",["Function","AsyncFunction"],C);async function D(w,CQ){return await C(w,CQ),F}for await(let w of j.call(this,D,_Q));}function T(C,_Q){if(typeof C!=="function")throw new Y("fn",["Function","AsyncFunction"],C);async function D(w,CQ){if(await C(w,CQ))return w;return F}return j.call(this,D,_Q)}var BQ=class extends kQ{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}};async function P(C,_Q,D){var w;if(typeof C!=="function")throw new Y("reducer",["Function","AsyncFunction"],C);if(D!=null)hQ(D,"options");if((D===null||D===void 0?void 0:D.signal)!=null)TQ(D.signal,"options.signal");let CQ=arguments.length>1;if(D!==null&&D!==void 0&&(w=D.signal)!==null&&w!==void 0&&w.aborted){const g=new $(void 0,{cause:D.signal.reason});throw this.once("error",()=>{}),await V(this.destroy(g)),g}const v=new AbortController,R=v.signal;if(D!==null&&D!==void 0&&D.signal){const g={once:!0,[pQ]:this};D.signal.addEventListener("abort",()=>v.abort(),g)}let S=!1;try{for await(let g of this){var YQ;if(S=!0,D!==null&&D!==void 0&&(YQ=D.signal)!==null&&YQ!==void 0&&YQ.aborted)throw new $;if(!CQ)_Q=g,CQ=!0;else _Q=await C(_Q,g,{signal:R})}if(!S&&!CQ)throw new BQ}finally{v.abort()}return _Q}async function x(C){if(C!=null)hQ(C,"options");if((C===null||C===void 0?void 0:C.signal)!=null)TQ(C.signal,"options.signal");const _Q=[];for await(let w of this){var D;if(C!==null&&C!==void 0&&(D=C.signal)!==null&&D!==void 0&&D.aborted)throw new $(void 0,{cause:C.signal.reason});PQ(_Q,w)}return _Q}function xQ(C,_Q){const D=j.call(this,C,_Q);return async function*w(){for await(let CQ of D)yield*CQ}.call(this)}function O(C){if(C=uQ(C),bQ(C))return 0;if(C<0)throw new yQ("number",">= 0",C);return C}function _(C,_Q=void 0){if(_Q!=null)hQ(_Q,"options");if((_Q===null||_Q===void 0?void 0:_Q.signal)!=null)TQ(_Q.signal,"options.signal");return C=O(C),async function*D(){var w;if(_Q!==null&&_Q!==void 0&&(w=_Q.signal)!==null&&w!==void 0&&w.aborted)throw new $;for await(let v of this){var CQ;if(_Q!==null&&_Q!==void 0&&(CQ=_Q.signal)!==null&&CQ!==void 0&&CQ.aborted)throw new $;if(C--<=0)yield v}}.call(this)}function OQ(C,_Q=void 0){if(_Q!=null)hQ(_Q,"options");if((_Q===null||_Q===void 0?void 0:_Q.signal)!=null)TQ(_Q.signal,"options.signal");return C=O(C),async function*D(){var w;if(_Q!==null&&_Q!==void 0&&(w=_Q.signal)!==null&&w!==void 0&&w.aborted)throw new $;for await(let v of this){var CQ;if(_Q!==null&&_Q!==void 0&&(CQ=_Q.signal)!==null&&CQ!==void 0&&CQ.aborted)throw new $;if(C-- >0)yield v;else return}}.call(this)}IQ.exports.streamReturningOperators={asIndexedPairs:N,drop:_,filter:T,flatMap:xQ,map:j,take:OQ},IQ.exports.promiseReturningOperators={every:A,forEach:I,reduce:P,toArray:x,some:q,find:E}}}),Dq=gQ({"node_modules/readable-stream/lib/internal/streams/destroy.js"(B,IQ){var{aggregateTwoErrors:Y,codes:{ERR_MULTIPLE_CALLBACK:kQ},AbortError:yQ}=Oq(),{Symbol:$}=Yq(),{kDestroyed:TQ,isDestroyed:z,isFinished:hQ,isServerRequest:pQ}=_q(),V="#kDestroy",PQ="#kConstruct";function U(T,BQ,P){if(T){if(T.stack,BQ&&!BQ.errored)BQ.errored=T;if(P&&!P.errored)P.errored=T}}function uQ(T,BQ){const P=this._readableState,x=this._writableState,xQ=x||P;if(x&&x.destroyed||P&&P.destroyed){if(typeof BQ==="function")BQ();return this}if(U(T,x,P),x)x.destroyed=!0;if(P)P.destroyed=!0;if(!xQ.constructed)this.once(V,(O)=>{bQ(this,Y(O,T),BQ)});else bQ(this,T,BQ);return this}function bQ(T,BQ,P){let x=!1;function xQ(O){if(x)return;x=!0;const{_readableState:_,_writableState:OQ}=T;if(U(O,OQ,_),OQ)OQ.closed=!0;if(_)_.closed=!0;if(typeof P==="function")P(O);if(O)RQ(W,T,O);else RQ(G,T)}try{T._destroy(BQ||null,xQ)}catch(O){xQ(O)}}function W(T,BQ){M(T,BQ),G(T)}function G(T){const{_readableState:BQ,_writableState:P}=T;if(P)P.closeEmitted=!0;if(BQ)BQ.closeEmitted=!0;if(P&&P.emitClose||BQ&&BQ.emitClose)T.emit("close")}function M(T,BQ){const P=T?._readableState,x=T?._writableState;if(x?.errorEmitted||P?.errorEmitted)return;if(x)x.errorEmitted=!0;if(P)P.errorEmitted=!0;T?.emit?.("error",BQ)}function ZQ(){const T=this._readableState,BQ=this._writableState;if(T)T.constructed=!0,T.closed=!1,T.closeEmitted=!1,T.destroyed=!1,T.errored=null,T.errorEmitted=!1,T.reading=!1,T.ended=T.readable===!1,T.endEmitted=T.readable===!1;if(BQ)BQ.constructed=!0,BQ.destroyed=!1,BQ.closed=!1,BQ.closeEmitted=!1,BQ.errored=null,BQ.errorEmitted=!1,BQ.finalCalled=!1,BQ.prefinished=!1,BQ.ended=BQ.writable===!1,BQ.ending=BQ.writable===!1,BQ.finished=BQ.writable===!1}function F(T,BQ,P){const x=T?._readableState,xQ=T?._writableState;if(xQ&&xQ.destroyed||x&&x.destroyed)return this;if(x&&x.autoDestroy||xQ&&xQ.autoDestroy)T.destroy(BQ);else if(BQ){if(Error.captureStackTrace(BQ),xQ&&!xQ.errored)xQ.errored=BQ;if(x&&!x.errored)x.errored=BQ;if(P)RQ(M,T,BQ);else M(T,BQ)}}function L(T,BQ){if(typeof T._construct!=="function")return;const{_readableState:P,_writableState:x}=T;if(P)P.constructed=!1;if(x)x.constructed=!1;if(T.once(PQ,BQ),T.listenerCount(PQ)>1)return;RQ(j,T)}function j(T){let BQ=!1;function P(x){if(BQ){F(T,x!==null&&x!==void 0?x:new kQ);return}BQ=!0;const{_readableState:xQ,_writableState:O}=T,_=O||xQ;if(xQ)xQ.constructed=!0;if(O)O.constructed=!0;if(_.destroyed)T.emit(V,x);else if(x)F(T,x,!0);else RQ(N,T)}try{T._construct(P)}catch(x){P(x)}}function N(T){T.emit(PQ)}function q(T){return T&&T.setHeader&&typeof T.abort==="function"}function A(T){T.emit("close")}function E(T,BQ){T.emit("error",BQ),RQ(A,T)}function I(T,BQ){if(!T||z(T))return;if(!BQ&&!hQ(T))BQ=new yQ;if(pQ(T))T.socket=null,T.destroy(BQ);else if(q(T))T.abort();else if(q(T.req))T.req.abort();else if(typeof T.destroy==="function")T.destroy(BQ);else if(typeof T.close==="function")T.close();else if(BQ)RQ(E,T);else RQ(A,T);if(!T.destroyed)T[TQ]=!0}IQ.exports={construct:L,destroyer:I,destroy:uQ,undestroy:ZQ,errorOrDestroy:F}}}),wq=gQ({"node_modules/readable-stream/lib/internal/streams/legacy.js"(B,IQ){var{ArrayIsArray:Y,ObjectSetPrototypeOf:kQ}=Yq();function yQ(TQ){if(!(this instanceof yQ))return new yQ(TQ);Zq.call(this,TQ)}kQ(yQ.prototype,Zq.prototype),kQ(yQ,Zq),yQ.prototype.pipe=function(TQ,z){const hQ=this;function pQ(G){if(TQ.writable&&TQ.write(G)===!1&&hQ.pause)hQ.pause()}hQ.on("data",pQ);function V(){if(hQ.readable&&hQ.resume)hQ.resume()}if(TQ.on("drain",V),!TQ._isStdio&&(!z||z.end!==!1))hQ.on("end",U),hQ.on("close",uQ);let PQ=!1;function U(){if(PQ)return;PQ=!0,TQ.end()}function uQ(){if(PQ)return;if(PQ=!0,typeof TQ.destroy==="function")TQ.destroy()}function bQ(G){if(W(),Zq.listenerCount(this,"error")===0)this.emit("error",G)}$(hQ,"error",bQ),$(TQ,"error",bQ);function W(){hQ.removeListener("data",pQ),TQ.removeListener("drain",V),hQ.removeListener("end",U),hQ.removeListener("close",uQ),hQ.removeListener("error",bQ),TQ.removeListener("error",bQ),hQ.removeListener("end",W),hQ.removeListener("close",W),TQ.removeListener("close",W)}return hQ.on("end",W),hQ.on("close",W),TQ.on("close",W),TQ.emit("pipe",hQ),TQ};function $(TQ,z,hQ){if(typeof TQ.prependListener==="function")return TQ.prependListener(z,hQ);if(!TQ._events||!TQ._events[z])TQ.on(z,hQ);else if(Y(TQ._events[z]))TQ._events[z].unshift(hQ);else TQ._events[z]=[hQ,TQ._events[z]]}IQ.exports={Stream:yQ,prependListener:$}}}),vq=gQ({"node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(B,IQ){var{AbortError:Y,codes:kQ}=Oq(),yQ=Cq(),{ERR_INVALID_ARG_TYPE:$}=kQ,TQ=(hQ,pQ)=>{if(typeof hQ!=="object"||!("aborted"in hQ))throw new $(pQ,"AbortSignal",hQ)};function z(hQ){return!!(hQ&&typeof hQ.pipe==="function")}IQ.exports.addAbortSignal=function hQ(pQ,V){if(TQ(pQ,"signal"),!z(V))throw new $("stream","stream.Stream",V);return IQ.exports.addAbortSignalNoValidate(pQ,V)},IQ.exports.addAbortSignalNoValidate=function(hQ,pQ){if(typeof hQ!=="object"||!("aborted"in hQ))return pQ;const V=()=>{pQ.destroy(new Y(void 0,{cause:hQ.reason}))};if(hQ.aborted)V();else hQ.addEventListener("abort",V),yQ(pQ,()=>hQ.removeEventListener("abort",V));return pQ}}}),Rq=gQ({"node_modules/readable-stream/lib/internal/streams/state.js"(B,IQ){var{MathFloor:Y,NumberIsInteger:kQ}=Yq(),{ERR_INVALID_ARG_VALUE:yQ}=Oq().codes;function $(hQ,pQ,V){return hQ.highWaterMark!=null?hQ.highWaterMark:pQ?hQ[V]:null}function TQ(hQ){return hQ?16:16384}function z(hQ,pQ,V,PQ){const U=$(pQ,PQ,V);if(U!=null){if(!kQ(U)||U<0){const uQ=PQ?`options.${V}`:"options.highWaterMark";throw new yQ(uQ,U)}return Y(U)}return TQ(hQ.objectMode)}IQ.exports={getHighWaterMark:z,getDefaultHighWaterMark:TQ}}}),Sq=gQ({"node_modules/readable-stream/lib/internal/streams/from.js"(B,IQ){var{PromisePrototypeThen:Y,SymbolAsyncIterator:kQ,SymbolIterator:yQ}=Yq(),{ERR_INVALID_ARG_TYPE:$,ERR_STREAM_NULL_VALUES:TQ}=Oq().codes;function z(hQ,pQ,V){let PQ;if(typeof pQ==="string"||pQ instanceof Buffer)return new hQ({objectMode:!0,...V,read(){this.push(pQ),this.push(null)}});let U;if(pQ&&pQ[kQ])U=!0,PQ=pQ[kQ]();else if(pQ&&pQ[yQ])U=!1,PQ=pQ[yQ]();else throw new $("iterable",["Iterable"],pQ);const uQ=new hQ({objectMode:!0,highWaterMark:1,...V});let bQ=!1;uQ._read=function(){if(!bQ)bQ=!0,G()},uQ._destroy=function(M,ZQ){Y(W(M),()=>RQ(ZQ,M),(F)=>RQ(ZQ,F||M))};async function W(M){const ZQ=M!==void 0&&M!==null,F=typeof PQ.throw==="function";if(ZQ&&F){const{value:L,done:j}=await PQ.throw(M);if(await L,j)return}if(typeof PQ.return==="function"){const{value:L}=await PQ.return();await L}}async function G(){for(;;){try{const{value:M,done:ZQ}=U?await PQ.next():PQ.next();if(ZQ)uQ.push(null);else{const F=M&&typeof M.then==="function"?await M:M;if(F===null)throw bQ=!1,new TQ;else if(uQ.push(F))continue;else bQ=!1}}catch(M){uQ.destroy(M)}break}}return uQ}IQ.exports=z}}),gq,GQ,fq=gQ({"node_modules/readable-stream/lib/internal/streams/readable.js"(B,IQ){var{ArrayPrototypeIndexOf:Y,NumberIsInteger:kQ,NumberIsNaN:yQ,NumberParseInt:$,ObjectDefineProperties:TQ,ObjectKeys:z,ObjectSetPrototypeOf:hQ,Promise:pQ,SafeSet:V,SymbolAsyncIterator:PQ,Symbol:U}=Yq(),uQ=globalThis[Symbol.for("Bun.lazy")]("bun:stream").ReadableState,{Stream:bQ,prependListener:W}=wq();function G(b){if(!(this instanceof G))return new G(b);const m=this instanceof zq();if(this._readableState=new uQ(b,this,m),b){const{read:c,destroy:d,construct:Q,signal:l}=b;if(typeof c==="function")this._read=c;if(typeof d==="function")this._destroy=d;if(typeof Q==="function")this._construct=Q;if(l&&!m)F(l,this)}bQ.call(this,b),T.construct(this,()=>{if(this._readableState.needReadable)E(this,this._readableState)})}hQ(G.prototype,bQ.prototype),hQ(G,bQ),G.prototype.on=function(b,m){const c=bQ.prototype.on.call(this,b,m),d=this._readableState;if(b==="data")if(d.readableListening=this.listenerCount("readable")>0,d.flowing!==!1)Jq&&VQ("in flowing mode!",this.__id),this.resume();else Jq&&VQ("in readable mode!",this.__id);else if(b==="readable"){if(Jq&&VQ("readable listener added!",this.__id),!d.endEmitted&&!d.readableListening){if(d.readableListening=d.needReadable=!0,d.flowing=!1,d.emittedReadable=!1,Jq&&VQ("on readable - state.length, reading, emittedReadable",d.length,d.reading,d.emittedReadable,this.__id),d.length)I(this,d);else if(!d.reading)RQ(f,this)}else if(d.endEmitted)Jq&&VQ("end already emitted...",this.__id)}return c};class M extends G{#q;#Q;#X;#J;constructor(b,m){const{objectMode:c,highWaterMark:d,encoding:Q,signal:l}=b;super({objectMode:c,highWaterMark:d,encoding:Q,signal:l});this.#X=[],this.#q=void 0,this.#J=m,this.#Q=!1}#H(){var b=this.#X,m=0,c=b.length;for(;m<c;m++){const d=b[m];if(b[m]=void 0,!this.push(d,void 0))return this.#X=b.slice(m+1),!0}if(c>0)this.#X=[];return!1}#K(b){b.releaseLock(),this.#q=void 0,this.#Q=!0,this.push(null);return}async _read(){Jq&&VQ("ReadableFromWeb _read()",this.__id);var b=this.#J,m=this.#q;if(b)m=this.#q=b.getReader(),this.#J=void 0;else if(this.#H())return;var c;try{do{var d=!1,Q;const l=m.readMany();if(Bq(l)){if({done:d,value:Q}=await l,this.#Q){this.#X.push(...Q);return}}else({done:d,value:Q}=l);if(d){this.#K(m);return}if(!this.push(Q[0])){this.#X=Q.slice(1);return}for(let i=1,n=Q.length;i<n;i++)if(!this.push(Q[i])){this.#X=Q.slice(i+1);return}}while(!this.#Q)}catch(l){c=l}finally{if(c)throw c}}_destroy(b,m){if(!this.#Q){var c=this.#q;if(c)this.#q=void 0,c.cancel(b).finally(()=>{this.#Q=!0,m(b)});return}try{m(b)}catch(d){globalThis.reportError(d)}}}GQ=M;function ZQ(b,m={}){if(!Eq(b))throw new P("readableStream","ReadableStream",b);OQ(m,"options");const{highWaterMark:c,encoding:d,objectMode:Q=!1,signal:l}=m;if(d!==void 0&&!Buffer.isEncoding(d))throw new xq(d,"options.encoding");return Iq(Q,"options.objectMode"),dq(G,b,m)||new M({highWaterMark:c,encoding:d,objectMode:Q,signal:l},b)}IQ.exports=G,gq=ZQ;var{addAbortSignal:F}=vq(),L=Cq();const{maybeReadMore:j,resume:N,emitReadable:q,onEofChunk:A}=globalThis[Symbol.for("Bun.lazy")]("bun:stream");function E(b,m){process.nextTick(j,b,m)}function I(b,m){Jq&&VQ("NativeReadable - emitReadable",b.__id),q(b,m)}var T=Dq(),{aggregateTwoErrors:BQ,codes:{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:x,ERR_OUT_OF_RANGE:xQ,ERR_STREAM_PUSH_AFTER_EOF:O,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:_}}=Oq(),{validateObject:OQ}=WQ(),C=Sq(),_Q=()=>{},{errorOrDestroy:D}=T;G.prototype.destroy=T.destroy,G.prototype._undestroy=T.undestroy,G.prototype._destroy=function(b,m){m(b)},G.prototype[Zq.captureRejectionSymbol]=function(b){this.destroy(b)},G.prototype.push=function(b,m){return w(this,b,m,!1)},G.prototype.unshift=function(b,m){return w(this,b,m,!0)};function w(b,m,c,d){Jq&&VQ("readableAddChunk",m,b.__id);const Q=b._readableState;let l;if(!Q.objectMode){if(typeof m==="string"){if(c=c||Q.defaultEncoding,Q.encoding!==c)if(d&&Q.encoding)m=Buffer.from(m,c).toString(Q.encoding);else m=Buffer.from(m,c),c=""}else if(m instanceof Buffer)c="";else if(bQ._isUint8Array(m)){if(d||!Q.decoder)m=bQ._uint8ArrayToBuffer(m);c=""}else if(m!=null)l=new P("chunk",["string","Buffer","Uint8Array"],m)}if(l)D(b,l);else if(m===null)Q.reading=!1,A(b,Q);else if(Q.objectMode||m&&m.length>0)if(d)if(Q.endEmitted)D(b,new _);else if(Q.destroyed||Q.errored)return!1;else CQ(b,Q,m,!0);else if(Q.ended)D(b,new O);else if(Q.destroyed||Q.errored)return!1;else if(Q.reading=!1,Q.decoder&&!c)if(m=Q.decoder.write(m),Q.objectMode||m.length!==0)CQ(b,Q,m,!1);else E(b,Q);else CQ(b,Q,m,!1);else if(!d)Q.reading=!1,E(b,Q);return!Q.ended&&(Q.length<Q.highWaterMark||Q.length===0)}function CQ(b,m,c,d){if(Jq&&VQ("adding chunk",b.__id),Jq&&VQ("chunk",c.toString(),b.__id),m.flowing&&m.length===0&&!m.sync&&b.listenerCount("data")>0){if(m.multiAwaitDrain)m.awaitDrainWriters.clear();else m.awaitDrainWriters=null;m.dataEmitted=!0,b.emit("data",c)}else{if(m.length+=m.objectMode?1:c.length,d)m.buffer.unshift(c);else m.buffer.push(c);if(Jq&&VQ("needReadable @ addChunk",m.needReadable,b.__id),m.needReadable)I(b,m)}E(b,m)}G.prototype.isPaused=function(){const b=this._readableState;return b.paused===!0||b.flowing===!1},G.prototype.setEncoding=function(b){const m=new Gq(b);this._readableState.decoder=m,this._readableState.encoding=this._readableState.decoder.encoding;const c=this._readableState.buffer;let d="";for(let Q=c.length;Q>0;Q--)d+=m.write(c.shift());if(d!=="")c.push(d);return this._readableState.length=d.length,this};var v=1073741824;function R(b){if(b>v)throw new xQ("size","<= 1GiB",b);else b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++;return b}function S(b,m){if(b<=0||m.length===0&&m.ended)return 0;if(m.objectMode)return 1;if(yQ(b)){if(m.flowing&&m.length)return m.buffer.first().length;return m.length}if(b<=m.length)return b;return m.ended?m.length:0}G.prototype.read=function(b){if(Jq&&VQ("read - n =",b,this.__id),!kQ(b))b=$(b,10);const m=this._readableState,c=b;if(b>m.highWaterMark)m.highWaterMark=R(b);if(b!==0)m.emittedReadable=!1;if(b===0&&m.needReadable&&((m.highWaterMark!==0?m.length>=m.highWaterMark:m.length>0)||m.ended)){if(Jq&&VQ("read: emitReadable or endReadable",m.length,m.ended,this.__id),m.length===0&&m.ended)wQ(this);else I(this,m);return null}if(b=S(b,m),b===0&&m.ended){if(Jq&&VQ("read: calling endReadable if length 0 -- length, state.ended",m.length,m.ended,this.__id),m.length===0)wQ(this);return null}let d=m.needReadable;if(Jq&&VQ("need readable",d,this.__id),m.length===0||m.length-b<m.highWaterMark)d=!0,Jq&&VQ("length less than watermark",d,this.__id);if(m.ended||m.reading||m.destroyed||m.errored||!m.constructed)Jq&&VQ("state.constructed?",m.constructed,this.__id),d=!1,Jq&&VQ("reading, ended or constructing",d,this.__id);else if(d){if(Jq&&VQ("do read",this.__id),m.reading=!0,m.sync=!0,m.length===0)m.needReadable=!0;try{var Q=this._read(m.highWaterMark);if(Bq(Q)){Jq&&VQ("async _read",this.__id);const i=Bun.peek(Q);if(Jq&&VQ("peeked promise",i,this.__id),i!==Q)Q=i}if(Bq(Q)&&Q?.then&&X(Q.then))Jq&&VQ("async _read result.then setup",this.__id),Q.then(_Q,function(i){D(this,i)})}catch(i){D(this,i)}if(m.sync=!1,!m.reading)b=S(c,m)}Jq&&VQ("n @ fromList",b,this.__id);let l;if(b>0)l=y(b,m);else l=null;if(Jq&&VQ("ret @ read",l,this.__id),l===null)m.needReadable=m.length<=m.highWaterMark,Jq&&VQ("state.length while ret = null",m.length,this.__id),b=0;else if(m.length-=b,m.multiAwaitDrain)m.awaitDrainWriters.clear();else m.awaitDrainWriters=null;if(m.length===0){if(!m.ended)m.needReadable=!0;if(c!==b&&m.ended)wQ(this)}if(l!==null&&!m.errorEmitted&&!m.closeEmitted)m.dataEmitted=!0,this.emit("data",l);return l},G.prototype._read=function(b){throw new x("_read()")},G.prototype.pipe=function(b,m){const c=this,d=this._readableState;if(d.pipes.length===1){if(!d.multiAwaitDrain)d.multiAwaitDrain=!0,d.awaitDrainWriters=new V(d.awaitDrainWriters?[d.awaitDrainWriters]:[])}d.pipes.push(b),Jq&&VQ("pipe count=%d opts=%j",d.pipes.length,m,c.__id);const l=(!m||m.end!==!1)&&b!==process.stdout&&b!==process.stderr?n:qq;if(d.endEmitted)RQ(l);else c.once("end",l);b.on("unpipe",i);function i(Qq,Xq){if(Jq&&VQ("onunpipe",c.__id),Qq===c){if(Xq&&Xq.hasUnpiped===!1)Xq.hasUnpiped=!0,s()}}function n(){Jq&&VQ("onend",c.__id),b.end()}let o,zQ=!1;function s(){if(Jq&&VQ("cleanup",c.__id),b.removeListener("close",t),b.removeListener("finish",e),o)b.removeListener("drain",o);if(b.removeListener("error",r),b.removeListener("unpipe",i),c.removeListener("end",n),c.removeListener("end",qq),c.removeListener("data",vQ),zQ=!0,o&&d.awaitDrainWriters&&(!b._writableState||b._writableState.needDrain))o()}function a(){if(!zQ){if(d.pipes.length===1&&d.pipes[0]===b)Jq&&VQ("false write response, pause",0,c.__id),d.awaitDrainWriters=b,d.multiAwaitDrain=!1;else if(d.pipes.length>1&&d.pipes.includes(b))Jq&&VQ("false write response, pause",d.awaitDrainWriters.size,c.__id),d.awaitDrainWriters.add(b);c.pause()}if(!o)o=YQ(c,b),b.on("drain",o)}c.on("data",vQ);function vQ(Qq){Jq&&VQ("ondata",c.__id);const Xq=b.write(Qq);if(Jq&&VQ("dest.write",Xq,c.__id),Xq===!1)a()}function r(Qq){if(VQ("onerror",Qq),qq(),b.removeListener("error",r),b.listenerCount("error")===0){const Xq=b._writableState||b._readableState;if(Xq&&!Xq.errorEmitted)D(b,Qq);else b.emit("error",Qq)}}W(b,"error",r);function t(){b.removeListener("finish",e),qq()}b.once("close",t);function e(){VQ("onfinish"),b.removeListener("close",t),qq()}b.once("finish",e);function qq(){VQ("unpipe"),c.unpipe(b)}if(b.emit("pipe",c),b.writableNeedDrain===!0){if(d.flowing)a()}else if(!d.flowing)VQ("pipe resume"),c.resume();return b};function YQ(b,m){return function c(){const d=b._readableState;if(d.awaitDrainWriters===m)VQ("pipeOnDrain",1),d.awaitDrainWriters=null;else if(d.multiAwaitDrain)VQ("pipeOnDrain",d.awaitDrainWriters.size),d.awaitDrainWriters.delete(m);if((!d.awaitDrainWriters||d.awaitDrainWriters.size===0)&&b.listenerCount("data"))b.resume()}}G.prototype.unpipe=function(b){const m=this._readableState,c={hasUnpiped:!1};if(m.pipes.length===0)return this;if(!b){const Q=m.pipes;m.pipes=[],this.pause();for(let l=0;l<Q.length;l++)Q[l].emit("unpipe",this,{hasUnpiped:!1});return this}const d=Y(m.pipes,b);if(d===-1)return this;if(m.pipes.splice(d,1),m.pipes.length===0)this.pause();return b.emit("unpipe",this,c),this},G.prototype.addListener=G.prototype.on,G.prototype.removeListener=function(b,m){const c=bQ.prototype.removeListener.call(this,b,m);if(b==="readable")RQ(g,this);return c},G.prototype.off=G.prototype.removeListener,G.prototype.removeAllListeners=function(b){const m=bQ.prototype.removeAllListeners.apply(this,arguments);if(b==="readable"||b===void 0)RQ(g,this);return m};function g(b){const m=b._readableState;if(m.readableListening=b.listenerCount("readable")>0,m.resumeScheduled&&m.paused===!1)m.flowing=!0;else if(b.listenerCount("data")>0)b.resume();else if(!m.readableListening)m.flowing=null}function f(b){Jq&&VQ("on readable nextTick, calling read(0)",b.__id),b.read(0)}G.prototype.resume=function(){const b=this._readableState;if(!b.flowing)Jq&&VQ("resume",this.__id),b.flowing=!b.readableListening,N(this,b);return b.paused=!1,this},G.prototype.pause=function(){if(Jq&&VQ("call pause flowing=%j",this._readableState.flowing,this.__id),this._readableState.flowing!==!1)Jq&&VQ("pause",this.__id),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this},G.prototype.wrap=function(b){let m=!1;b.on("data",(d)=>{if(!this.push(d)&&b.pause)m=!0,b.pause()}),b.on("end",()=>{this.push(null)}),b.on("error",(d)=>{D(this,d)}),b.on("close",()=>{this.destroy()}),b.on("destroy",()=>{this.destroy()}),this._read=()=>{if(m&&b.resume)m=!1,b.resume()};const c=z(b);for(let d=1;d<c.length;d++){const Q=c[d];if(this[Q]===void 0&&typeof b[Q]==="function")this[Q]=b[Q].bind(b)}return this},G.prototype[PQ]=function(){return DQ(this)},G.prototype.iterator=function(b){if(b!==void 0)OQ(b,"options");return DQ(this,b)};function DQ(b,m){if(typeof b.read!=="function")b=G.wrap(b,{objectMode:!0});const c=k(b,m);return c.stream=b,c}async function*k(b,m){let c=_Q;function d(i){if(this===b)c(),c=_Q;else c=i}b.on("readable",d);let Q;const l=L(b,{writable:!1},(i)=>{Q=i?BQ(Q,i):null,c(),c=_Q});try{while(!0){const i=b.destroyed?null:b.read();if(i!==null)yield i;else if(Q)throw Q;else if(Q===null)return;else await new pQ(d)}}catch(i){throw Q=BQ(Q,i),Q}finally{if((Q||(m===null||m===void 0?void 0:m.destroyOnReturn)!==!1)&&(Q===void 0||b._readableState.autoDestroy))T.destroyer(b,null);else b.off("readable",d),l()}}TQ(G.prototype,{readable:{get(){const b=this._readableState;return!!b&&b.readable!==!1&&!b.destroyed&&!b.errorEmitted&&!b.endEmitted},set(b){if(this._readableState)this._readableState.readable=!!b}},readableDidRead:{enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{enumerable:!1,get:function(){return this._readableState.flowing},set:function(b){if(this._readableState)this._readableState.flowing=b}},readableLength:{enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{get(){return this._readableState?this._readableState.closed:!1}},destroyed:{enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(b){if(!this._readableState)return;this._readableState.destroyed=b}},readableEnded:{enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),G._fromList=y;function y(b,m){if(m.length===0)return null;let c;if(m.objectMode)c=m.buffer.shift();else if(!b||b>=m.length){if(m.decoder)c=m.buffer.join("");else if(m.buffer.length===1)c=m.buffer.first();else c=m.buffer.concat(m.length);m.buffer.clear()}else c=m.buffer.consume(b,m.decoder);return c}function wQ(b){const m=b._readableState;if(Jq&&VQ("endEmitted @ endReadable",m.endEmitted,b.__id),!m.endEmitted)m.ended=!0,RQ(h,m,b)}function h(b,m){if(Jq&&VQ("endReadableNT -- endEmitted, state.length",b.endEmitted,b.length,m.__id),!b.errored&&!b.closeEmitted&&!b.endEmitted&&b.length===0){if(b.endEmitted=!0,m.emit("end"),Jq&&VQ("end emitted @ endReadableNT",m.__id),m.writable&&m.allowHalfOpen===!1)RQ(p,m);else if(b.autoDestroy){const c=m._writableState;if(!c||c.autoDestroy&&(c.finished||c.writable===!1))m.destroy()}}}function p(b){if(b.writable&&!b.writableEnded&&!b.destroyed)b.end()}G.from=function(b,m){return C(G,b,m)};var u={newStreamReadableFromReadableStream:ZQ};function $Q(){if(u===void 0)u={};return u}G.fromWeb=function(b,m){return $Q().newStreamReadableFromReadableStream(b,m)},G.toWeb=function(b){return $Q().newReadableStreamFromStreamReadable(b)},G.wrap=function(b,m){var c,d;return new G({objectMode:(c=(d=b.readableObjectMode)!==null&&d!==void 0?d:b.objectMode)!==null&&c!==void 0?c:!0,...m,destroy(Q,l){T.destroyer(b,Q),l(Q)}}).wrap(b)}}}),kq=gQ({"node_modules/readable-stream/lib/internal/streams/writable.js"(B,IQ){var{ArrayPrototypeSlice:Y,Error:kQ,FunctionPrototypeSymbolHasInstance:yQ,ObjectDefineProperty:$,ObjectDefineProperties:TQ,ObjectSetPrototypeOf:z,StringPrototypeToLowerCase:hQ,Symbol:pQ,SymbolHasInstance:V}=Yq(),PQ=wq().Stream,U=Dq(),{addAbortSignal:uQ}=vq(),{getHighWaterMark:bQ,getDefaultHighWaterMark:W}=Rq(),{ERR_INVALID_ARG_TYPE:G,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_MULTIPLE_CALLBACK:ZQ,ERR_STREAM_CANNOT_PIPE:F,ERR_STREAM_DESTROYED:L,ERR_STREAM_ALREADY_FINISHED:j,ERR_STREAM_NULL_VALUES:N,ERR_STREAM_WRITE_AFTER_END:q,ERR_UNKNOWN_ENCODING:A}=Oq().codes,{errorOrDestroy:E}=U;function I(y={}){const wQ=this instanceof zq();if(!wQ&&!yQ(I,this))return new I(y);if(this._writableState=new P(y,this,wQ),y){if(typeof y.write==="function")this._write=y.write;if(typeof y.writev==="function")this._writev=y.writev;if(typeof y.destroy==="function")this._destroy=y.destroy;if(typeof y.final==="function")this._final=y.final;if(typeof y.construct==="function")this._construct=y.construct;if(y.signal)uQ(y.signal,this)}PQ.call(this,y),U.construct(this,()=>{const h=this._writableState;if(!h.writing)CQ(this,h);YQ(this,h)})}z(I.prototype,PQ.prototype),z(I,PQ),IQ.exports=I;function T(){}var BQ=pQ("kOnFinished");function P(y,wQ,h){if(typeof h!=="boolean")h=wQ instanceof zq();if(this.objectMode=!!(y&&y.objectMode),h)this.objectMode=this.objectMode||!!(y&&y.writableObjectMode);this.highWaterMark=y?bQ(this,y,"writableHighWaterMark",h):W(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const p=!!(y&&y.decodeStrings===!1);this.decodeStrings=!p,this.defaultEncoding=y&&y.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=C.bind(void 0,wQ),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,x(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!y||y.emitClose!==!1,this.autoDestroy=!y||y.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[BQ]=[]}function x(y){y.buffered=[],y.bufferedIndex=0,y.allBuffers=!0,y.allNoop=!0}P.prototype.getBuffer=function y(){return Y(this.buffered,this.bufferedIndex)},$(P.prototype,"bufferedRequestCount",{get(){return this.buffered.length-this.bufferedIndex}}),$(I,V,{value:function(y){if(yQ(this,y))return!0;if(this!==I)return!1;return y&&y._writableState instanceof P}}),I.prototype.pipe=function(){E(this,new F)};function xQ(y,wQ,h,p){const u=y._writableState;if(typeof h==="function")p=h,h=u.defaultEncoding;else{if(!h)h=u.defaultEncoding;else if(h!=="buffer"&&!Buffer.isEncoding(h))throw new A(h);if(typeof p!=="function")p=T}if(wQ===null)throw new N;else if(!u.objectMode)if(typeof wQ==="string"){if(u.decodeStrings!==!1)wQ=Buffer.from(wQ,h),h="buffer"}else if(wQ instanceof Buffer)h="buffer";else if(PQ._isUint8Array(wQ))wQ=PQ._uint8ArrayToBuffer(wQ),h="buffer";else throw new G("chunk",["string","Buffer","Uint8Array"],wQ);let $Q;if(u.ending)$Q=new q;else if(u.destroyed)$Q=new L("write");if($Q)return RQ(p,$Q),E(y,$Q,!0),$Q;return u.pendingcb++,O(y,u,wQ,h,p)}I.prototype.write=function(y,wQ,h){return xQ(this,y,wQ,h)===!0},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){const y=this._writableState;if(y.corked){if(y.corked--,!y.writing)CQ(this,y)}},I.prototype.setDefaultEncoding=function y(wQ){if(typeof wQ==="string")wQ=hQ(wQ);if(!Buffer.isEncoding(wQ))throw new A(wQ);return this._writableState.defaultEncoding=wQ,this};function O(y,wQ,h,p,u){const $Q=wQ.objectMode?1:h.length;wQ.length+=$Q;const b=wQ.length<wQ.highWaterMark;if(!b)wQ.needDrain=!0;if(wQ.writing||wQ.corked||wQ.errored||!wQ.constructed){if(wQ.buffered.push({chunk:h,encoding:p,callback:u}),wQ.allBuffers&&p!=="buffer")wQ.allBuffers=!1;if(wQ.allNoop&&u!==T)wQ.allNoop=!1}else wQ.writelen=$Q,wQ.writecb=u,wQ.writing=!0,wQ.sync=!0,y._write(h,p,wQ.onwrite),wQ.sync=!1;return b&&!wQ.errored&&!wQ.destroyed}function _(y,wQ,h,p,u,$Q,b){if(wQ.writelen=p,wQ.writecb=b,wQ.writing=!0,wQ.sync=!0,wQ.destroyed)wQ.onwrite(new L("write"));else if(h)y._writev(u,wQ.onwrite);else y._write(u,$Q,wQ.onwrite);wQ.sync=!1}function OQ(y,wQ,h,p){--wQ.pendingcb,p(h),w(wQ),E(y,h)}function C(y,wQ){const h=y._writableState,p=h.sync,u=h.writecb;if(typeof u!=="function"){E(y,new ZQ);return}if(h.writing=!1,h.writecb=null,h.length-=h.writelen,h.writelen=0,wQ){if(Error.captureStackTrace(wQ),!h.errored)h.errored=wQ;if(y._readableState&&!y._readableState.errored)y._readableState.errored=wQ;if(p)RQ(OQ,y,h,wQ,u);else OQ(y,h,wQ,u)}else{if(h.buffered.length>h.bufferedIndex)CQ(y,h);if(p)if(h.afterWriteTickInfo!==null&&h.afterWriteTickInfo.cb===u)h.afterWriteTickInfo.count++;else h.afterWriteTickInfo={count:1,cb:u,stream:y,state:h},RQ(_Q,h.afterWriteTickInfo);else D(y,h,1,u)}}function _Q({stream:y,state:wQ,count:h,cb:p}){return wQ.afterWriteTickInfo=null,D(y,wQ,h,p)}function D(y,wQ,h,p){if(!wQ.ending&&!y.destroyed&&wQ.length===0&&wQ.needDrain)wQ.needDrain=!1,y.emit("drain");while(h-- >0)wQ.pendingcb--,p();if(wQ.destroyed)w(wQ);YQ(y,wQ)}function w(y){if(y.writing)return;for(let u=y.bufferedIndex;u<y.buffered.length;++u){var wQ;const{chunk:$Q,callback:b}=y.buffered[u],m=y.objectMode?1:$Q.length;y.length-=m,b((wQ=y.errored)!==null&&wQ!==void 0?wQ:new L("write"))}const h=y[BQ].splice(0);for(let u=0;u<h.length;u++){var p;h[u]((p=y.errored)!==null&&p!==void 0?p:new L("end"))}x(y)}function CQ(y,wQ){if(wQ.corked||wQ.bufferProcessing||wQ.destroyed||!wQ.constructed)return;const{buffered:h,bufferedIndex:p,objectMode:u}=wQ,$Q=h.length-p;if(!$Q)return;let b=p;if(wQ.bufferProcessing=!0,$Q>1&&y._writev){wQ.pendingcb-=$Q-1;const m=wQ.allNoop?T:(d)=>{for(let Q=b;Q<h.length;++Q)h[Q].callback(d)},c=wQ.allNoop&&b===0?h:Y(h,b);c.allBuffers=wQ.allBuffers,_(y,wQ,!0,wQ.length,c,"",m),x(wQ)}else{do{const{chunk:m,encoding:c,callback:d}=h[b];h[b++]=null;const Q=u?1:m.length;_(y,wQ,!1,Q,m,c,d)}while(b<h.length&&!wQ.writing);if(b===h.length)x(wQ);else if(b>256)h.splice(0,b),wQ.bufferedIndex=0;else wQ.bufferedIndex=b}wQ.bufferProcessing=!1}I.prototype._write=function(y,wQ,h){if(this._writev)this._writev([{chunk:y,encoding:wQ}],h);else throw new M("_write()")},I.prototype._writev=null,I.prototype.end=function(y,wQ,h,p=!1){const u=this._writableState;if(Jq&&VQ("end",u,this.__id),typeof y==="function")h=y,y=null,wQ=null;else if(typeof wQ==="function")h=wQ,wQ=null;let $Q;if(y!==null&&y!==void 0){let b;if(!p)b=xQ(this,y,wQ);else b=this.write(y,wQ);if(b instanceof kQ)$Q=b}if(u.corked)u.corked=1,this.uncork();if($Q)this.emit("error",$Q);else if(!u.errored&&!u.ending)u.ending=!0,YQ(this,u,!0),u.ended=!0;else if(u.finished)$Q=new j("end");else if(u.destroyed)$Q=new L("end");if(typeof h==="function")if($Q||u.finished)RQ(h,$Q);else u[BQ].push(h);return this};function v(y,wQ){var h=y.ending&&!y.destroyed&&y.constructed&&y.length===0&&!y.errored&&y.buffered.length===0&&!y.finished&&!y.writing&&!y.errorEmitted&&!y.closeEmitted;return VQ("needFinish",h,wQ),h}function R(y,wQ){let h=!1;function p(u){if(h){E(y,u!==null&&u!==void 0?u:ZQ());return}if(h=!0,wQ.pendingcb--,u){const $Q=wQ[BQ].splice(0);for(let b=0;b<$Q.length;b++)$Q[b](u);E(y,u,wQ.sync)}else if(v(wQ))wQ.prefinished=!0,y.emit("prefinish"),wQ.pendingcb++,RQ(g,y,wQ)}wQ.sync=!0,wQ.pendingcb++;try{y._final(p)}catch(u){p(u)}wQ.sync=!1}function S(y,wQ){if(!wQ.prefinished&&!wQ.finalCalled)if(typeof y._final==="function"&&!wQ.destroyed)wQ.finalCalled=!0,R(y,wQ);else wQ.prefinished=!0,y.emit("prefinish")}function YQ(y,wQ,h){if(Jq&&VQ("finishMaybe -- state, sync",wQ,h,y.__id),!v(wQ,y.__id))return;if(S(y,wQ),wQ.pendingcb===0){if(h)wQ.pendingcb++,RQ((p,u)=>{if(v(u))g(p,u);else u.pendingcb--},y,wQ);else if(v(wQ))wQ.pendingcb++,g(y,wQ)}}function g(y,wQ){wQ.pendingcb--,wQ.finished=!0;const h=wQ[BQ].splice(0);for(let p=0;p<h.length;p++)h[p]();if(y.emit("finish"),wQ.autoDestroy){const p=y._readableState;if(!p||p.autoDestroy&&(p.endEmitted||p.readable===!1))y.destroy()}}TQ(I.prototype,{closed:{get(){return this._writableState?this._writableState.closed:!1}},destroyed:{get(){return this._writableState?this._writableState.destroyed:!1},set(y){if(this._writableState)this._writableState.destroyed=y}},writable:{get(){const y=this._writableState;return!!y&&y.writable!==!1&&!y.destroyed&&!y.errored&&!y.ending&&!y.ended},set(y){if(this._writableState)this._writableState.writable=!!y}},writableFinished:{get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{get(){const y=this._writableState;if(!y)return!1;return!y.destroyed&&!y.ending&&y.needDrain}},writableHighWaterMark:{get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{get(){return this._writableState?this._writableState.corked:0}},writableLength:{get(){return this._writableState&&this._writableState.length}},errored:{enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var f=U.destroy;I.prototype.destroy=function(y,wQ){const h=this._writableState;if(!h.destroyed&&(h.bufferedIndex<h.buffered.length||h[BQ].length))RQ(w,h);return f.call(this,y,wQ),this},I.prototype._undestroy=U.undestroy,I.prototype._destroy=function(y,wQ){wQ(y)},I.prototype[Zq.captureRejectionSymbol]=function(y){this.destroy(y)};var DQ;function k(){if(DQ===void 0)DQ={};return DQ}I.fromWeb=function(y,wQ){return k().newStreamWritableFromWritableStream(y,wQ)},I.toWeb=function(y){return k().newWritableStreamFromStreamWritable(y)}}}),yq=gQ({"node_modules/readable-stream/lib/internal/streams/duplexify.js"(B,IQ){var{isReadable:Y,isWritable:kQ,isIterable:yQ,isNodeStream:$,isReadableNodeStream:TQ,isWritableNodeStream:z,isDuplexNodeStream:hQ}=_q(),pQ=Cq(),{AbortError:V,codes:{ERR_INVALID_ARG_TYPE:PQ,ERR_INVALID_RETURN_VALUE:U}}=Oq(),{destroyer:uQ}=Dq(),bQ=zq(),W=fq(),{createDeferredPromise:G}=$q(),M=Sq(),ZQ=typeof Blob!=="undefined"?function q(A){return A instanceof Blob}:function q(A){return!1},{FunctionPrototypeCall:F}=Yq();class L extends bQ{constructor(q){super(q);if((q===null||q===void 0?void 0:q.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((q===null||q===void 0?void 0:q.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}IQ.exports=function q(A,E){if(hQ(A))return A;if(TQ(A))return N({readable:A});if(z(A))return N({writable:A});if($(A))return N({writable:!1,readable:!1});if(typeof A==="function"){const{value:T,write:BQ,final:P,destroy:x}=j(A);if(yQ(T))return M(L,T,{objectMode:!0,write:BQ,final:P,destroy:x});const xQ=T===null||T===void 0?void 0:T.then;if(typeof xQ==="function"){let O;const _=F(xQ,T,(OQ)=>{if(OQ!=null)throw new U("nully","body",OQ)},(OQ)=>{uQ(O,OQ)});return O=new L({objectMode:!0,readable:!1,write:BQ,final(OQ){P(async()=>{try{await _,RQ(OQ,null)}catch(C){RQ(OQ,C)}})},destroy:x})}throw new U("Iterable, AsyncIterable or AsyncFunction",E,T)}if(ZQ(A))return q(A.arrayBuffer());if(yQ(A))return M(L,A,{objectMode:!0,writable:!1});if(typeof(A===null||A===void 0?void 0:A.writable)==="object"||typeof(A===null||A===void 0?void 0:A.readable)==="object"){const T=A!==null&&A!==void 0&&A.readable?TQ(A===null||A===void 0?void 0:A.readable)?A===null||A===void 0?void 0:A.readable:q(A.readable):void 0,BQ=A!==null&&A!==void 0&&A.writable?z(A===null||A===void 0?void 0:A.writable)?A===null||A===void 0?void 0:A.writable:q(A.writable):void 0;return N({readable:T,writable:BQ})}const I=A===null||A===void 0?void 0:A.then;if(typeof I==="function"){let T;return F(I,A,(BQ)=>{if(BQ!=null)T.push(BQ);T.push(null)},(BQ)=>{uQ(T,BQ)}),T=new L({objectMode:!0,writable:!1,read(){}})}throw new PQ(E,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],A)};function j(q){let{promise:A,resolve:E}=G();const I=new AbortController,T=I.signal;return{value:q(async function*(){while(!0){const P=A;A=null;const{chunk:x,done:xQ,cb:O}=await P;if(RQ(O),xQ)return;if(T.aborted)throw new V(void 0,{cause:T.reason});({promise:A,resolve:E}=G()),yield x}}(),{signal:T}),write(P,x,xQ){const O=E;E=null,O({chunk:P,done:!1,cb:xQ})},final(P){const x=E;E=null,x({done:!0,cb:P})},destroy(P,x){I.abort(),x(P)}}}function N(q){const A=q.readable&&typeof q.readable.read!=="function"?W.wrap(q.readable):q.readable,E=q.writable;let I=!!Y(A),T=!!kQ(E),BQ,P,x,xQ,O;function _(OQ){const C=xQ;if(xQ=null,C)C(OQ);else if(OQ)O.destroy(OQ);else if(!I&&!T)O.destroy()}if(O=new L({readableObjectMode:!!(A!==null&&A!==void 0&&A.readableObjectMode),writableObjectMode:!!(E!==null&&E!==void 0&&E.writableObjectMode),readable:I,writable:T}),T)pQ(E,(OQ)=>{if(T=!1,OQ)uQ(A,OQ);_(OQ)}),O._write=function(OQ,C,_Q){if(E.write(OQ,C))_Q();else BQ=_Q},O._final=function(OQ){E.end(),P=OQ},E.on("drain",function(){if(BQ){const OQ=BQ;BQ=null,OQ()}}),E.on("finish",function(){if(P){const OQ=P;P=null,OQ()}});if(I)pQ(A,(OQ)=>{if(I=!1,OQ)uQ(A,OQ);_(OQ)}),A.on("readable",function(){if(x){const OQ=x;x=null,OQ()}}),A.on("end",function(){O.push(null)}),O._read=function(){while(!0){const OQ=A.read();if(OQ===null){x=O._read;return}if(!O.push(OQ))return}};return O._destroy=function(OQ,C){if(!OQ&&xQ!==null)OQ=new V;if(x=null,BQ=null,P=null,xQ===null)C(OQ);else xQ=C,uQ(E,OQ),uQ(A,OQ)},O}}}),zq=gQ({"node_modules/readable-stream/lib/internal/streams/duplex.js"(B,IQ){var{ObjectDefineProperties:Y,ObjectGetOwnPropertyDescriptor:kQ,ObjectKeys:yQ,ObjectSetPrototypeOf:$}=Yq(),TQ=fq();function z(U){if(!(this instanceof z))return new z(U);if(TQ.call(this,U),Hq.call(this,U),U){if(this.allowHalfOpen=U.allowHalfOpen!==!1,U.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(U.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}IQ.exports=z,$(z.prototype,TQ.prototype),$(z,TQ);for(var hQ in Hq.prototype)if(!z.prototype[hQ])z.prototype[hQ]=Hq.prototype[hQ];Y(z.prototype,{writable:kQ(Hq.prototype,"writable"),writableHighWaterMark:kQ(Hq.prototype,"writableHighWaterMark"),writableObjectMode:kQ(Hq.prototype,"writableObjectMode"),writableBuffer:kQ(Hq.prototype,"writableBuffer"),writableLength:kQ(Hq.prototype,"writableLength"),writableFinished:kQ(Hq.prototype,"writableFinished"),writableCorked:kQ(Hq.prototype,"writableCorked"),writableEnded:kQ(Hq.prototype,"writableEnded"),writableNeedDrain:kQ(Hq.prototype,"writableNeedDrain"),destroyed:{get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(U){if(this._readableState&&this._writableState)this._readableState.destroyed=U,this._writableState.destroyed=U}}});var pQ;function V(){if(pQ===void 0)pQ={};return pQ}z.fromWeb=function(U,uQ){return V().newStreamDuplexFromReadableWritablePair(U,uQ)},z.toWeb=function(U){return V().newReadableWritablePairFromDuplex(U)};var PQ;z.from=function(U){if(!PQ)PQ=yq();return PQ(U,"body")}}}),hq=gQ({"node_modules/readable-stream/lib/internal/streams/transform.js"(B,IQ){var{ObjectSetPrototypeOf:Y,Symbol:kQ}=Yq(),{ERR_METHOD_NOT_IMPLEMENTED:yQ}=Oq().codes,$=zq();function TQ(V){if(!(this instanceof TQ))return new TQ(V);if($.call(this,V),this._readableState.sync=!1,this[z]=null,V){if(typeof V.transform==="function")this._transform=V.transform;if(typeof V.flush==="function")this._flush=V.flush}this.on("prefinish",pQ.bind(this))}Y(TQ.prototype,$.prototype),Y(TQ,$),IQ.exports=TQ;var z=kQ("kCallback");function hQ(V){if(typeof this._flush==="function"&&!this.destroyed)this._flush((PQ,U)=>{if(PQ){if(V)V(PQ);else this.destroy(PQ);return}if(U!=null)this.push(U);if(this.push(null),V)V()});else if(this.push(null),V)V()}function pQ(){if(this._final!==hQ)hQ.call(this)}TQ.prototype._final=hQ,TQ.prototype._transform=function(V,PQ,U){throw new yQ("_transform()")},TQ.prototype._write=function(V,PQ,U){const uQ=this._readableState,bQ=this._writableState,W=uQ.length;this._transform(V,PQ,(G,M)=>{if(G){U(G);return}if(M!=null)this.push(M);if(bQ.ended||W===uQ.length||uQ.length<uQ.highWaterMark||uQ.highWaterMark===0||uQ.length===0)U();else this[z]=U})},TQ.prototype._read=function(){if(this[z]){const V=this[z];this[z]=null,V()}}}}),J=gQ({"node_modules/readable-stream/lib/internal/streams/passthrough.js"(B,IQ){var{ObjectSetPrototypeOf:Y}=Yq(),kQ=hq();function yQ($){if(!(this instanceof yQ))return new yQ($);kQ.call(this,$)}Y(yQ.prototype,kQ.prototype),Y(yQ,kQ),yQ.prototype._transform=function($,TQ,z){z(null,$)},IQ.exports=yQ}}),pq=gQ({"node_modules/readable-stream/lib/internal/streams/pipeline.js"(B,IQ){var{ArrayIsArray:Y,Promise:kQ,SymbolAsyncIterator:yQ}=Yq(),$=Cq(),{once:TQ}=$q(),z=Dq(),hQ=zq(),{aggregateTwoErrors:pQ,codes:{ERR_INVALID_ARG_TYPE:V,ERR_INVALID_RETURN_VALUE:PQ,ERR_MISSING_ARGS:U,ERR_STREAM_DESTROYED:uQ},AbortError:bQ}=Oq(),{validateFunction:W,validateAbortSignal:G}=WQ(),{isIterable:M,isReadable:ZQ,isReadableNodeStream:F,isNodeStream:L}=_q(),j,N;function q(xQ,O,_){let OQ=!1;xQ.on("close",()=>{OQ=!0});const C=$(xQ,{readable:O,writable:_},(_Q)=>{OQ=!_Q});return{destroy:(_Q)=>{if(OQ)return;OQ=!0,z.destroyer(xQ,_Q||new uQ("pipe"))},cleanup:C}}function A(xQ){return W(xQ[xQ.length-1],"streams[stream.length - 1]"),xQ.pop()}function E(xQ){if(M(xQ))return xQ;else if(F(xQ))return I(xQ);throw new V("val",["Readable","Iterable","AsyncIterable"],xQ)}async function*I(xQ){if(!N)N=fq();yield*N.prototype[yQ].call(xQ)}async function T(xQ,O,_,{end:OQ}){let C,_Q=null;const D=(v)=>{if(v)C=v;if(_Q){const R=_Q;_Q=null,R()}},w=()=>new kQ((v,R)=>{if(C)R(C);else _Q=()=>{if(C)R(C);else v()}});O.on("drain",D);const CQ=$(O,{readable:!1},D);try{if(O.writableNeedDrain)await w();for await(let v of xQ)if(!O.write(v))await w();if(OQ)O.end();await w(),_()}catch(v){_(C!==v?pQ(C,v):v)}finally{CQ(),O.off("drain",D)}}function BQ(...xQ){return P(xQ,TQ(A(xQ)))}function P(xQ,O,_){if(xQ.length===1&&Y(xQ[0]))xQ=xQ[0];if(xQ.length<2)throw new U("streams");const OQ=new AbortController,C=OQ.signal,_Q=_===null||_===void 0?void 0:_.signal,D=[];G(_Q,"options.signal");function w(){g(new bQ)}_Q===null||_Q===void 0||_Q.addEventListener("abort",w);let CQ,v;const R=[];let S=0;function YQ(k){g(k,--S===0)}function g(k,y){if(k&&(!CQ||CQ.code==="ERR_STREAM_PREMATURE_CLOSE"))CQ=k;if(!CQ&&!y)return;while(R.length)R.shift()(CQ);if(_Q===null||_Q===void 0||_Q.removeEventListener("abort",w),OQ.abort(),y){if(!CQ)D.forEach((wQ)=>wQ());RQ(O,CQ,v)}}let f;for(let k=0;k<xQ.length;k++){const y=xQ[k],wQ=k<xQ.length-1,h=k>0,p=wQ||(_===null||_===void 0?void 0:_.end)!==!1,u=k===xQ.length-1;if(L(y)){let $Q=function(b){if(b&&b.name!=="AbortError"&&b.code!=="ERR_STREAM_PREMATURE_CLOSE")YQ(b)};if(p){const{destroy:b,cleanup:m}=q(y,wQ,h);if(R.push(b),ZQ(y)&&u)D.push(m)}if(y.on("error",$Q),ZQ(y)&&u)D.push(()=>{y.removeListener("error",$Q)})}if(k===0)if(typeof y==="function"){if(f=y({signal:C}),!M(f))throw new PQ("Iterable, AsyncIterable or Stream","source",f)}else if(M(y)||F(y))f=y;else f=hQ.from(y);else if(typeof y==="function")if(f=E(f),f=y(f,{signal:C}),wQ){if(!M(f,!0))throw new PQ("AsyncIterable",`transform[${k-1}]`,f)}else{var DQ;if(!j)j=J();const $Q=new j({objectMode:!0}),b=(DQ=f)===null||DQ===void 0?void 0:DQ.then;if(typeof b==="function")S++,b.call(f,(d)=>{if(v=d,d!=null)$Q.write(d);if(p)$Q.end();RQ(YQ)},(d)=>{$Q.destroy(d),RQ(YQ,d)});else if(M(f,!0))S++,T(f,$Q,YQ,{end:p});else throw new PQ("AsyncIterable or Promise","destination",f);f=$Q;const{destroy:m,cleanup:c}=q(f,!1,!0);if(R.push(m),u)D.push(c)}else if(L(y)){if(F(f)){S+=2;const $Q=x(f,y,YQ,{end:p});if(ZQ(y)&&u)D.push($Q)}else if(M(f))S++,T(f,y,YQ,{end:p});else throw new V("val",["Readable","Iterable","AsyncIterable"],f);f=y}else f=hQ.from(y)}if(C!==null&&C!==void 0&&C.aborted||_Q!==null&&_Q!==void 0&&_Q.aborted)RQ(w);return f}function x(xQ,O,_,{end:OQ}){if(xQ.pipe(O,{end:OQ}),OQ)xQ.once("end",()=>O.end());else _();return $(xQ,{readable:!0,writable:!1},(C)=>{const _Q=xQ._readableState;if(C&&C.code==="ERR_STREAM_PREMATURE_CLOSE"&&_Q&&_Q.ended&&!_Q.errored&&!_Q.errorEmitted)xQ.once("end",_).once("error",_);else _(C)}),$(O,{readable:!1,writable:!0},_)}IQ.exports={pipelineImpl:P,pipeline:BQ}}}),uq=gQ({"node_modules/readable-stream/lib/internal/streams/compose.js"(B,IQ){var{pipeline:Y}=pq(),kQ=zq(),{destroyer:yQ}=Dq(),{isNodeStream:$,isReadable:TQ,isWritable:z}=_q(),{AbortError:hQ,codes:{ERR_INVALID_ARG_VALUE:pQ,ERR_MISSING_ARGS:V}}=Oq();IQ.exports=function PQ(...U){if(U.length===0)throw new V("streams");if(U.length===1)return kQ.from(U[0]);const uQ=[...U];if(typeof U[0]==="function")U[0]=kQ.from(U[0]);if(typeof U[U.length-1]==="function"){const A=U.length-1;U[A]=kQ.from(U[A])}for(let A=0;A<U.length;++A){if(!$(U[A]))continue;if(A<U.length-1&&!TQ(U[A]))throw new pQ(`streams[${A}]`,uQ[A],"must be readable");if(A>0&&!z(U[A]))throw new pQ(`streams[${A}]`,uQ[A],"must be writable")}let bQ,W,G,M,ZQ;function F(A){const E=M;if(M=null,E)E(A);else if(A)ZQ.destroy(A);else if(!q&&!N)ZQ.destroy()}const L=U[0],j=Y(U,F),N=!!z(L),q=!!TQ(j);if(ZQ=new kQ({writableObjectMode:!!(L!==null&&L!==void 0&&L.writableObjectMode),readableObjectMode:!!(j!==null&&j!==void 0&&j.writableObjectMode),writable:N,readable:q}),N)ZQ._write=function(A,E,I){if(L.write(A,E))I();else bQ=I},ZQ._final=function(A){L.end(),W=A},L.on("drain",function(){if(bQ){const A=bQ;bQ=null,A()}}),j.on("finish",function(){if(W){const A=W;W=null,A()}});if(q)j.on("readable",function(){if(G){const A=G;G=null,A()}}),j.on("end",function(){ZQ.push(null)}),ZQ._read=function(){while(!0){const A=j.read();if(A===null){G=ZQ._read;return}if(!ZQ.push(A))return}};return ZQ._destroy=function(A,E){if(!A&&M!==null)A=new hQ;if(G=null,bQ=null,W=null,M===null)E(A);else M=E,yQ(j,A)},ZQ}}}),mQ=gQ({"node_modules/readable-stream/lib/stream/promises.js"(B,IQ){var{ArrayPrototypePop:Y,Promise:kQ}=Yq(),{isIterable:yQ,isNodeStream:$}=_q(),{pipelineImpl:TQ}=pq(),{finished:z}=Cq();function hQ(...pQ){return new kQ((V,PQ)=>{let U,uQ;const bQ=pQ[pQ.length-1];if(bQ&&typeof bQ==="object"&&!$(bQ)&&!yQ(bQ)){const W=Y(pQ);U=W.signal,uQ=W.end}TQ(pQ,(W,G)=>{if(W)PQ(W);else V(G)},{signal:U,end:uQ})})}IQ.exports={finished:z,pipeline:hQ}}}),MQ=gQ({"node_modules/readable-stream/lib/stream.js"(B,IQ){var{ObjectDefineProperty:Y,ObjectKeys:kQ,ReflectApply:yQ}=Yq(),{promisify:{custom:$}}=$q(),{streamReturningOperators:TQ,promiseReturningOperators:z}=fQ(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:hQ}}=Oq(),pQ=uq(),{pipeline:V}=pq(),{destroyer:PQ}=Dq(),U=Cq(),uQ=mQ(),bQ=_q(),W=IQ.exports=wq().Stream;W.isDisturbed=bQ.isDisturbed,W.isErrored=bQ.isErrored,W.isWritable=bQ.isWritable,W.isReadable=bQ.isReadable,W.Readable=fq();for(let M of kQ(TQ)){let ZQ=function(...L){if(new.target)throw hQ();return W.Readable.from(yQ(F,this,L))};const F=TQ[M];Y(ZQ,"name",{value:F.name}),Y(ZQ,"length",{value:F.length}),Y(W.Readable.prototype,M,{value:ZQ,enumerable:!1,configurable:!0,writable:!0})}for(let M of kQ(z)){let ZQ=function(...L){if(new.target)throw hQ();return yQ(F,this,L)};const F=z[M];Y(ZQ,"name",{value:F.name}),Y(ZQ,"length",{value:F.length}),Y(W.Readable.prototype,M,{value:ZQ,enumerable:!1,configurable:!0,writable:!0})}W.Writable=kq(),W.Duplex=zq(),W.Transform=hq(),W.PassThrough=J(),W.pipeline=V;var{addAbortSignal:G}=vq();W.addAbortSignal=G,W.finished=U,W.destroy=PQ,W.compose=pQ,Y(W,"promises",{configurable:!0,enumerable:!0,get(){return uQ}}),Y(V,$,{enumerable:!0,get(){return uQ.pipeline}}),Y(U,$,{enumerable:!0,get(){return uQ.finished}}),W.Stream=W,W._isUint8Array=function M(ZQ){return ZQ instanceof Uint8Array},W._uint8ArrayToBuffer=function M(ZQ){return new Buffer(ZQ.buffer,ZQ.byteOffset,ZQ.byteLength)}}}),bq=gQ({"node_modules/readable-stream/lib/ours/index.js"(B,IQ){const Y=MQ(),kQ=mQ(),yQ=Y.Readable.destroy;IQ.exports=Y,IQ.exports._uint8ArrayToBuffer=Y._uint8ArrayToBuffer,IQ.exports._isUint8Array=Y._isUint8Array,IQ.exports.isDisturbed=Y.isDisturbed,IQ.exports.isErrored=Y.isErrored,IQ.exports.isWritable=Y.isWritable,IQ.exports.isReadable=Y.isReadable,IQ.exports.Readable=Y.Readable,IQ.exports.Writable=Y.Writable,IQ.exports.Duplex=Y.Duplex,IQ.exports.Transform=Y.Transform,IQ.exports.PassThrough=Y.PassThrough,IQ.exports.addAbortSignal=Y.addAbortSignal,IQ.exports.finished=Y.finished,IQ.exports.destroy=Y.destroy,IQ.exports.destroy=yQ,IQ.exports.pipeline=Y.pipeline,IQ.exports.compose=Y.compose,IQ.exports._getNativeReadableStreamPrototype=cq,IQ.exports.NativeWritable=XQ,Kq.defineProperty(Y,"promises",{configurable:!0,enumerable:!0,get(){return kQ}}),IQ.exports.Stream=Y.Stream,IQ.exports.default=IQ.exports}}),mq={0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,5:void 0},Hq=kq(),XQ=class B extends Hq{#q;#Q;#X=!0;_construct;_destroy;_final;constructor(IQ,Y={}){super(Y);this._construct=this.#J,this._destroy=this.#K,this._final=this.#Z,this.#q=IQ}#J(IQ){this._writableState.constructed=!0,this.constructed=!0,IQ()}#H(){if(typeof this.#q==="object")if(typeof this.#q.write==="function")this.#Q=this.#q;else throw new Error("Invalid FileSink");else this.#Q=Bun.file(this.#q).writer()}write(IQ,Y,kQ,yQ=this.#X){if(!yQ)return this.#X=!1,super.write(IQ,Y,kQ);if(!this.#Q)this.#H();var $=this.#Q,TQ=$.write(IQ);if(Bq(TQ))return TQ.then(()=>{this.emit("drain"),$.flush(!0)}),!1;if($.flush(!0),kQ)kQ(null,IQ.byteLength);return!0}end(IQ,Y,kQ,yQ=this.#X){return super.end(IQ,Y,kQ,yQ)}#K(IQ,Y){if(this._writableState.destroyed=!0,Y)Y(IQ)}#Z(IQ){if(this.#Q)this.#Q.end();if(IQ)IQ()}ref(){if(!this.#Q)this.#H();this.#Q.ref()}unref(){if(!this.#Q)return;this.#Q.unref()}},FQ=bq();FQ[Symbol.for("CommonJS")]=0;FQ[Symbol.for("::bunternal::")]={_ReadableFromWeb:gq,_ReadableFromWebForUndici:GQ};var KQ=FQ,lq=FQ._uint8ArrayToBuffer,iq=FQ._isUint8Array,cQ=FQ.isDisturbed,LQ=FQ.isErrored,nq=FQ.isWritable,K=FQ.isReadable,oq=FQ.Readable,Hq=FQ.Writable,sq=FQ.Duplex,aq=FQ.Transform,jQ=FQ.PassThrough,rq=FQ.addAbortSignal,tq=FQ.finished,dQ=FQ.destroy,NQ=FQ.pipeline,eq=FQ.compose,Z=FQ.Stream,qQ=FQ["eos"]=Cq,QQ=FQ._getNativeReadableStreamPrototype,XQ=FQ.NativeWritable,AQ=Z.promises;export{AQ as promises,NQ as pipeline,nq as isWritable,K as isReadable,LQ as isErrored,cQ as isDisturbed,tq as finished,qQ as eos,dQ as destroy,KQ as default,eq as compose,rq as addAbortSignal,lq as _uint8ArrayToBuffer,iq as _isUint8Array,QQ as _getNativeReadableStreamPrototype,Hq as Writable,aq as Transform,Z as Stream,oq as Readable,jQ as PassThrough,XQ as NativeWritable,sq as Duplex};
diff --git a/src/js/out/modules/node/stream.web.js b/src/js/out/modules/node/stream.web.js
index 113832804..bb906418c 100644
--- a/src/js/out/modules/node/stream.web.js
+++ b/src/js/out/modules/node/stream.web.js
@@ -1 +1 @@
-var{ReadableStream:c,ReadableStreamDefaultController:p,WritableStream:A,WritableStreamDefaultController:z,WritableStreamDefaultWriter:E,TransformStream:F,TransformStreamDefaultController:w,ByteLengthQueuingStrategy:j,CountQueuingStrategy:v,ReadableStreamBYOBReader:I,ReadableStreamBYOBRequest:k,ReadableStreamDefaultReader:x}=globalThis,H={ReadableStream:c,ReadableStreamDefaultController:p,WritableStream:A,WritableStreamDefaultController:z,WritableStreamDefaultWriter:E,TransformStream:F,TransformStreamDefaultController:w,ByteLengthQueuingStrategy:j,CountQueuingStrategy:v,ReadableStreamBYOBReader:I,ReadableStreamBYOBRequest:k,ReadableStreamDefaultReader:x,[Symbol.for("CommonJS")]:0};export{H as default,E as WritableStreamDefaultWriter,z as WritableStreamDefaultController,A as WritableStream,w as TransformStreamDefaultController,F as TransformStream,x as ReadableStreamDefaultReader,p as ReadableStreamDefaultController,k as ReadableStreamBYOBRequest,I as ReadableStreamBYOBReader,c as ReadableStream,v as CountQueuingStrategy,j as ByteLengthQueuingStrategy};
+var{ReadableStream:c,ReadableStreamDefaultController:j,WritableStream:k,WritableStreamDefaultController:p,WritableStreamDefaultWriter:v,TransformStream:w,TransformStreamDefaultController:x,ByteLengthQueuingStrategy:z,CountQueuingStrategy:A,ReadableStreamBYOBReader:E,ReadableStreamBYOBRequest:F,ReadableStreamDefaultReader:G}=globalThis,H={ReadableStream:c,ReadableStreamDefaultController:j,WritableStream:k,WritableStreamDefaultController:p,WritableStreamDefaultWriter:v,TransformStream:w,TransformStreamDefaultController:x,ByteLengthQueuingStrategy:z,CountQueuingStrategy:A,ReadableStreamBYOBReader:E,ReadableStreamBYOBRequest:F,ReadableStreamDefaultReader:G,[Symbol.for("CommonJS")]:0};export{H as default,v as WritableStreamDefaultWriter,p as WritableStreamDefaultController,k as WritableStream,x as TransformStreamDefaultController,w as TransformStream,G as ReadableStreamDefaultReader,j as ReadableStreamDefaultController,F as ReadableStreamBYOBRequest,E as ReadableStreamBYOBReader,c as ReadableStream,A as CountQueuingStrategy,z as ByteLengthQueuingStrategy};
diff --git a/test/js/bun/http/node.js b/test/js/bun/http/node.js
new file mode 100644
index 000000000..0a1102098
--- /dev/null
+++ b/test/js/bun/http/node.js
@@ -0,0 +1,8 @@
+// import { createServer } from "http";
+
+// const s = createServer((req, res) => {
+// res.writeHead(200, { "Content-Type": "bruh" });
+// res.end("bruh");
+// });
+
+// s.listen(3000, () => {});
diff --git a/test/js/bun/http/sse-demo.ts b/test/js/bun/http/sse-demo.ts
new file mode 100644
index 000000000..adec1420b
--- /dev/null
+++ b/test/js/bun/http/sse-demo.ts
@@ -0,0 +1,33 @@
+import { EventStream, serve } from "bun";
+
+serve({
+ port: 3000,
+ fetch(req) {
+ return new Response(
+ new EventStream({
+ start(controller) {
+ setTimeout(() => {
+ controller.send("hi");
+ // controller.close();
+ }, 1000);
+ },
+ cancel() {
+ console.log("CANCEL");
+ },
+ }),
+ {
+ headers: {
+ "Content-Bruh": "text/bruh",
+ "Content-Length": "452",
+ },
+ },
+ );
+ },
+});
+
+// // serve({
+// // port: 3000,
+// // fetch(req) {
+// // return new Response(new Blob(["hello world"], { type: "custom/type" }));
+// // },
+// // });
diff --git a/test/js/bun/http/sse.test.ts b/test/js/bun/http/sse.test.ts
new file mode 100644
index 000000000..470444ed4
--- /dev/null
+++ b/test/js/bun/http/sse.test.ts
@@ -0,0 +1,16 @@
+import { describe, test, jest } from "bun:test";
+
+test("aborted readable stream calls cancel", async () => {
+ const pull = jest.fn((ctrl: ReadableStreamDirectController) => {
+ console.log("fetch");
+ ctrl.write("hello");
+ ctrl.flush();
+ ctrl.write("hello");
+ ctrl.flush();
+ ctrl.write("hello");
+ ctrl.flush();
+ });
+ const cancel = jest.fn();
+
+ // server.stop();
+});