@trustwallet/wallet-core 4.0.17 → 4.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5665,6 +5665,12 @@ export namespace TW {
|
|
5665
5665
|
|
5666
5666
|
/** SigningInput isItBrcOperation */
|
5667
5667
|
isItBrcOperation?: (boolean|null);
|
5668
|
+
|
5669
|
+
/** SigningInput planningV2 */
|
5670
|
+
planningV2?: (TW.BitcoinV2.Proto.IComposePlan|null);
|
5671
|
+
|
5672
|
+
/** SigningInput signingV2 */
|
5673
|
+
signingV2?: (TW.BitcoinV2.Proto.ISigningInput|null);
|
5668
5674
|
}
|
5669
5675
|
|
5670
5676
|
/** Represents a SigningInput. */
|
@@ -5730,6 +5736,12 @@ export namespace TW {
|
|
5730
5736
|
/** SigningInput isItBrcOperation. */
|
5731
5737
|
public isItBrcOperation: boolean;
|
5732
5738
|
|
5739
|
+
/** SigningInput planningV2. */
|
5740
|
+
public planningV2?: (TW.BitcoinV2.Proto.IComposePlan|null);
|
5741
|
+
|
5742
|
+
/** SigningInput signingV2. */
|
5743
|
+
public signingV2?: (TW.BitcoinV2.Proto.ISigningInput|null);
|
5744
|
+
|
5733
5745
|
/**
|
5734
5746
|
* Creates a new SigningInput instance using the specified properties.
|
5735
5747
|
* @param [properties] Properties to set
|
@@ -5816,6 +5828,9 @@ export namespace TW {
|
|
5816
5828
|
|
5817
5829
|
/** TransactionPlan preblockheight */
|
5818
5830
|
preblockheight?: (Long|null);
|
5831
|
+
|
5832
|
+
/** TransactionPlan planningResultV2 */
|
5833
|
+
planningResultV2?: (TW.BitcoinV2.Proto.ITransactionPlan|null);
|
5819
5834
|
}
|
5820
5835
|
|
5821
5836
|
/** Represents a TransactionPlan. */
|
@@ -5857,6 +5872,9 @@ export namespace TW {
|
|
5857
5872
|
/** TransactionPlan preblockheight. */
|
5858
5873
|
public preblockheight: Long;
|
5859
5874
|
|
5875
|
+
/** TransactionPlan planningResultV2. */
|
5876
|
+
public planningResultV2?: (TW.BitcoinV2.Proto.ITransactionPlan|null);
|
5877
|
+
|
5860
5878
|
/**
|
5861
5879
|
* Creates a new TransactionPlan instance using the specified properties.
|
5862
5880
|
* @param [properties] Properties to set
|
@@ -5928,6 +5946,9 @@ export namespace TW {
|
|
5928
5946
|
|
5929
5947
|
/** SigningOutput errorMessage */
|
5930
5948
|
errorMessage?: (string|null);
|
5949
|
+
|
5950
|
+
/** SigningOutput signingResultV2 */
|
5951
|
+
signingResultV2?: (TW.BitcoinV2.Proto.ISigningOutput|null);
|
5931
5952
|
}
|
5932
5953
|
|
5933
5954
|
/** Represents a SigningOutput. */
|
@@ -5954,6 +5975,9 @@ export namespace TW {
|
|
5954
5975
|
/** SigningOutput errorMessage. */
|
5955
5976
|
public errorMessage: string;
|
5956
5977
|
|
5978
|
+
/** SigningOutput signingResultV2. */
|
5979
|
+
public signingResultV2?: (TW.BitcoinV2.Proto.ISigningOutput|null);
|
5980
|
+
|
5957
5981
|
/**
|
5958
5982
|
* Creates a new SigningOutput instance using the specified properties.
|
5959
5983
|
* @param [properties] Properties to set
|
@@ -16642,6 +16642,8 @@
|
|
16642
16642
|
* @property {boolean|null} [disableDustFilter] SigningInput disableDustFilter
|
16643
16643
|
* @property {number|null} [time] SigningInput time
|
16644
16644
|
* @property {boolean|null} [isItBrcOperation] SigningInput isItBrcOperation
|
16645
|
+
* @property {TW.BitcoinV2.Proto.IComposePlan|null} [planningV2] SigningInput planningV2
|
16646
|
+
* @property {TW.BitcoinV2.Proto.ISigningInput|null} [signingV2] SigningInput signingV2
|
16645
16647
|
*/
|
16646
16648
|
|
16647
16649
|
/**
|
@@ -16807,6 +16809,22 @@
|
|
16807
16809
|
*/
|
16808
16810
|
SigningInput.prototype.isItBrcOperation = false;
|
16809
16811
|
|
16812
|
+
/**
|
16813
|
+
* SigningInput planningV2.
|
16814
|
+
* @member {TW.BitcoinV2.Proto.IComposePlan|null|undefined} planningV2
|
16815
|
+
* @memberof TW.Bitcoin.Proto.SigningInput
|
16816
|
+
* @instance
|
16817
|
+
*/
|
16818
|
+
SigningInput.prototype.planningV2 = null;
|
16819
|
+
|
16820
|
+
/**
|
16821
|
+
* SigningInput signingV2.
|
16822
|
+
* @member {TW.BitcoinV2.Proto.ISigningInput|null|undefined} signingV2
|
16823
|
+
* @memberof TW.Bitcoin.Proto.SigningInput
|
16824
|
+
* @instance
|
16825
|
+
*/
|
16826
|
+
SigningInput.prototype.signingV2 = null;
|
16827
|
+
|
16810
16828
|
/**
|
16811
16829
|
* Creates a new SigningInput instance using the specified properties.
|
16812
16830
|
* @function create
|
@@ -16871,6 +16889,10 @@
|
|
16871
16889
|
writer.uint32(/* id 17, wireType 0 =*/136).uint32(message.time);
|
16872
16890
|
if (message.isItBrcOperation != null && Object.hasOwnProperty.call(message, "isItBrcOperation"))
|
16873
16891
|
writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isItBrcOperation);
|
16892
|
+
if (message.planningV2 != null && Object.hasOwnProperty.call(message, "planningV2"))
|
16893
|
+
$root.TW.BitcoinV2.Proto.ComposePlan.encode(message.planningV2, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
16894
|
+
if (message.signingV2 != null && Object.hasOwnProperty.call(message, "signingV2"))
|
16895
|
+
$root.TW.BitcoinV2.Proto.SigningInput.encode(message.signingV2, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
16874
16896
|
return writer;
|
16875
16897
|
};
|
16876
16898
|
|
@@ -16971,6 +16993,12 @@
|
|
16971
16993
|
case 18:
|
16972
16994
|
message.isItBrcOperation = reader.bool();
|
16973
16995
|
break;
|
16996
|
+
case 20:
|
16997
|
+
message.planningV2 = $root.TW.BitcoinV2.Proto.ComposePlan.decode(reader, reader.uint32());
|
16998
|
+
break;
|
16999
|
+
case 21:
|
17000
|
+
message.signingV2 = $root.TW.BitcoinV2.Proto.SigningInput.decode(reader, reader.uint32());
|
17001
|
+
break;
|
16974
17002
|
default:
|
16975
17003
|
reader.skipType(tag & 7);
|
16976
17004
|
break;
|
@@ -17067,6 +17095,16 @@
|
|
17067
17095
|
if (message.isItBrcOperation != null && message.hasOwnProperty("isItBrcOperation"))
|
17068
17096
|
if (typeof message.isItBrcOperation !== "boolean")
|
17069
17097
|
return "isItBrcOperation: boolean expected";
|
17098
|
+
if (message.planningV2 != null && message.hasOwnProperty("planningV2")) {
|
17099
|
+
var error = $root.TW.BitcoinV2.Proto.ComposePlan.verify(message.planningV2);
|
17100
|
+
if (error)
|
17101
|
+
return "planningV2." + error;
|
17102
|
+
}
|
17103
|
+
if (message.signingV2 != null && message.hasOwnProperty("signingV2")) {
|
17104
|
+
var error = $root.TW.BitcoinV2.Proto.SigningInput.verify(message.signingV2);
|
17105
|
+
if (error)
|
17106
|
+
return "signingV2." + error;
|
17107
|
+
}
|
17070
17108
|
return null;
|
17071
17109
|
};
|
17072
17110
|
|
@@ -17170,6 +17208,16 @@
|
|
17170
17208
|
message.time = object.time >>> 0;
|
17171
17209
|
if (object.isItBrcOperation != null)
|
17172
17210
|
message.isItBrcOperation = Boolean(object.isItBrcOperation);
|
17211
|
+
if (object.planningV2 != null) {
|
17212
|
+
if (typeof object.planningV2 !== "object")
|
17213
|
+
throw TypeError(".TW.Bitcoin.Proto.SigningInput.planningV2: object expected");
|
17214
|
+
message.planningV2 = $root.TW.BitcoinV2.Proto.ComposePlan.fromObject(object.planningV2);
|
17215
|
+
}
|
17216
|
+
if (object.signingV2 != null) {
|
17217
|
+
if (typeof object.signingV2 !== "object")
|
17218
|
+
throw TypeError(".TW.Bitcoin.Proto.SigningInput.signingV2: object expected");
|
17219
|
+
message.signingV2 = $root.TW.BitcoinV2.Proto.SigningInput.fromObject(object.signingV2);
|
17220
|
+
}
|
17173
17221
|
return message;
|
17174
17222
|
};
|
17175
17223
|
|
@@ -17222,6 +17270,8 @@
|
|
17222
17270
|
object.disableDustFilter = false;
|
17223
17271
|
object.time = 0;
|
17224
17272
|
object.isItBrcOperation = false;
|
17273
|
+
object.planningV2 = null;
|
17274
|
+
object.signingV2 = null;
|
17225
17275
|
}
|
17226
17276
|
if (message.hashType != null && message.hasOwnProperty("hashType"))
|
17227
17277
|
object.hashType = message.hashType;
|
@@ -17278,6 +17328,10 @@
|
|
17278
17328
|
object.time = message.time;
|
17279
17329
|
if (message.isItBrcOperation != null && message.hasOwnProperty("isItBrcOperation"))
|
17280
17330
|
object.isItBrcOperation = message.isItBrcOperation;
|
17331
|
+
if (message.planningV2 != null && message.hasOwnProperty("planningV2"))
|
17332
|
+
object.planningV2 = $root.TW.BitcoinV2.Proto.ComposePlan.toObject(message.planningV2, options);
|
17333
|
+
if (message.signingV2 != null && message.hasOwnProperty("signingV2"))
|
17334
|
+
object.signingV2 = $root.TW.BitcoinV2.Proto.SigningInput.toObject(message.signingV2, options);
|
17281
17335
|
return object;
|
17282
17336
|
};
|
17283
17337
|
|
@@ -17311,6 +17365,7 @@
|
|
17311
17365
|
* @property {Uint8Array|null} [outputOpReturn] TransactionPlan outputOpReturn
|
17312
17366
|
* @property {Uint8Array|null} [preblockhash] TransactionPlan preblockhash
|
17313
17367
|
* @property {Long|null} [preblockheight] TransactionPlan preblockheight
|
17368
|
+
* @property {TW.BitcoinV2.Proto.ITransactionPlan|null} [planningResultV2] TransactionPlan planningResultV2
|
17314
17369
|
*/
|
17315
17370
|
|
17316
17371
|
/**
|
@@ -17409,6 +17464,14 @@
|
|
17409
17464
|
*/
|
17410
17465
|
TransactionPlan.prototype.preblockheight = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
17411
17466
|
|
17467
|
+
/**
|
17468
|
+
* TransactionPlan planningResultV2.
|
17469
|
+
* @member {TW.BitcoinV2.Proto.ITransactionPlan|null|undefined} planningResultV2
|
17470
|
+
* @memberof TW.Bitcoin.Proto.TransactionPlan
|
17471
|
+
* @instance
|
17472
|
+
*/
|
17473
|
+
TransactionPlan.prototype.planningResultV2 = null;
|
17474
|
+
|
17412
17475
|
/**
|
17413
17476
|
* Creates a new TransactionPlan instance using the specified properties.
|
17414
17477
|
* @function create
|
@@ -17454,6 +17517,8 @@
|
|
17454
17517
|
writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.preblockhash);
|
17455
17518
|
if (message.preblockheight != null && Object.hasOwnProperty.call(message, "preblockheight"))
|
17456
17519
|
writer.uint32(/* id 10, wireType 0 =*/80).int64(message.preblockheight);
|
17520
|
+
if (message.planningResultV2 != null && Object.hasOwnProperty.call(message, "planningResultV2"))
|
17521
|
+
$root.TW.BitcoinV2.Proto.TransactionPlan.encode(message.planningResultV2, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
17457
17522
|
return writer;
|
17458
17523
|
};
|
17459
17524
|
|
@@ -17507,6 +17572,9 @@
|
|
17507
17572
|
case 10:
|
17508
17573
|
message.preblockheight = reader.int64();
|
17509
17574
|
break;
|
17575
|
+
case 12:
|
17576
|
+
message.planningResultV2 = $root.TW.BitcoinV2.Proto.TransactionPlan.decode(reader, reader.uint32());
|
17577
|
+
break;
|
17510
17578
|
default:
|
17511
17579
|
reader.skipType(tag & 7);
|
17512
17580
|
break;
|
@@ -17590,6 +17658,11 @@
|
|
17590
17658
|
if (message.preblockheight != null && message.hasOwnProperty("preblockheight"))
|
17591
17659
|
if (!$util.isInteger(message.preblockheight) && !(message.preblockheight && $util.isInteger(message.preblockheight.low) && $util.isInteger(message.preblockheight.high)))
|
17592
17660
|
return "preblockheight: integer|Long expected";
|
17661
|
+
if (message.planningResultV2 != null && message.hasOwnProperty("planningResultV2")) {
|
17662
|
+
var error = $root.TW.BitcoinV2.Proto.TransactionPlan.verify(message.planningResultV2);
|
17663
|
+
if (error)
|
17664
|
+
return "planningResultV2." + error;
|
17665
|
+
}
|
17593
17666
|
return null;
|
17594
17667
|
};
|
17595
17668
|
|
@@ -17777,6 +17850,11 @@
|
|
17777
17850
|
message.preblockheight = object.preblockheight;
|
17778
17851
|
else if (typeof object.preblockheight === "object")
|
17779
17852
|
message.preblockheight = new $util.LongBits(object.preblockheight.low >>> 0, object.preblockheight.high >>> 0).toNumber();
|
17853
|
+
if (object.planningResultV2 != null) {
|
17854
|
+
if (typeof object.planningResultV2 !== "object")
|
17855
|
+
throw TypeError(".TW.Bitcoin.Proto.TransactionPlan.planningResultV2: object expected");
|
17856
|
+
message.planningResultV2 = $root.TW.BitcoinV2.Proto.TransactionPlan.fromObject(object.planningResultV2);
|
17857
|
+
}
|
17780
17858
|
return message;
|
17781
17859
|
};
|
17782
17860
|
|
@@ -17843,6 +17921,7 @@
|
|
17843
17921
|
object.preblockheight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
17844
17922
|
} else
|
17845
17923
|
object.preblockheight = options.longs === String ? "0" : 0;
|
17924
|
+
object.planningResultV2 = null;
|
17846
17925
|
}
|
17847
17926
|
if (message.amount != null && message.hasOwnProperty("amount"))
|
17848
17927
|
if (typeof message.amount === "number")
|
@@ -17882,6 +17961,8 @@
|
|
17882
17961
|
object.preblockheight = options.longs === String ? String(message.preblockheight) : message.preblockheight;
|
17883
17962
|
else
|
17884
17963
|
object.preblockheight = options.longs === String ? $util.Long.prototype.toString.call(message.preblockheight) : options.longs === Number ? new $util.LongBits(message.preblockheight.low >>> 0, message.preblockheight.high >>> 0).toNumber() : message.preblockheight;
|
17964
|
+
if (message.planningResultV2 != null && message.hasOwnProperty("planningResultV2"))
|
17965
|
+
object.planningResultV2 = $root.TW.BitcoinV2.Proto.TransactionPlan.toObject(message.planningResultV2, options);
|
17885
17966
|
return object;
|
17886
17967
|
};
|
17887
17968
|
|
@@ -17910,6 +17991,7 @@
|
|
17910
17991
|
* @property {string|null} [transactionId] SigningOutput transactionId
|
17911
17992
|
* @property {TW.Common.Proto.SigningError|null} [error] SigningOutput error
|
17912
17993
|
* @property {string|null} [errorMessage] SigningOutput errorMessage
|
17994
|
+
* @property {TW.BitcoinV2.Proto.ISigningOutput|null} [signingResultV2] SigningOutput signingResultV2
|
17913
17995
|
*/
|
17914
17996
|
|
17915
17997
|
/**
|
@@ -17967,6 +18049,14 @@
|
|
17967
18049
|
*/
|
17968
18050
|
SigningOutput.prototype.errorMessage = "";
|
17969
18051
|
|
18052
|
+
/**
|
18053
|
+
* SigningOutput signingResultV2.
|
18054
|
+
* @member {TW.BitcoinV2.Proto.ISigningOutput|null|undefined} signingResultV2
|
18055
|
+
* @memberof TW.Bitcoin.Proto.SigningOutput
|
18056
|
+
* @instance
|
18057
|
+
*/
|
18058
|
+
SigningOutput.prototype.signingResultV2 = null;
|
18059
|
+
|
17970
18060
|
/**
|
17971
18061
|
* Creates a new SigningOutput instance using the specified properties.
|
17972
18062
|
* @function create
|
@@ -18001,6 +18091,8 @@
|
|
18001
18091
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.error);
|
18002
18092
|
if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
|
18003
18093
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.errorMessage);
|
18094
|
+
if (message.signingResultV2 != null && Object.hasOwnProperty.call(message, "signingResultV2"))
|
18095
|
+
$root.TW.BitcoinV2.Proto.SigningOutput.encode(message.signingResultV2, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
18004
18096
|
return writer;
|
18005
18097
|
};
|
18006
18098
|
|
@@ -18037,6 +18129,9 @@
|
|
18037
18129
|
case 5:
|
18038
18130
|
message.errorMessage = reader.string();
|
18039
18131
|
break;
|
18132
|
+
case 7:
|
18133
|
+
message.signingResultV2 = $root.TW.BitcoinV2.Proto.SigningOutput.decode(reader, reader.uint32());
|
18134
|
+
break;
|
18040
18135
|
default:
|
18041
18136
|
reader.skipType(tag & 7);
|
18042
18137
|
break;
|
@@ -18101,6 +18196,11 @@
|
|
18101
18196
|
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
18102
18197
|
if (!$util.isString(message.errorMessage))
|
18103
18198
|
return "errorMessage: string expected";
|
18199
|
+
if (message.signingResultV2 != null && message.hasOwnProperty("signingResultV2")) {
|
18200
|
+
var error = $root.TW.BitcoinV2.Proto.SigningOutput.verify(message.signingResultV2);
|
18201
|
+
if (error)
|
18202
|
+
return "signingResultV2." + error;
|
18203
|
+
}
|
18104
18204
|
return null;
|
18105
18205
|
};
|
18106
18206
|
|
@@ -18232,6 +18332,11 @@
|
|
18232
18332
|
}
|
18233
18333
|
if (object.errorMessage != null)
|
18234
18334
|
message.errorMessage = String(object.errorMessage);
|
18335
|
+
if (object.signingResultV2 != null) {
|
18336
|
+
if (typeof object.signingResultV2 !== "object")
|
18337
|
+
throw TypeError(".TW.Bitcoin.Proto.SigningOutput.signingResultV2: object expected");
|
18338
|
+
message.signingResultV2 = $root.TW.BitcoinV2.Proto.SigningOutput.fromObject(object.signingResultV2);
|
18339
|
+
}
|
18235
18340
|
return message;
|
18236
18341
|
};
|
18237
18342
|
|
@@ -18260,6 +18365,7 @@
|
|
18260
18365
|
object.transactionId = "";
|
18261
18366
|
object.error = options.enums === String ? "OK" : 0;
|
18262
18367
|
object.errorMessage = "";
|
18368
|
+
object.signingResultV2 = null;
|
18263
18369
|
}
|
18264
18370
|
if (message.transaction != null && message.hasOwnProperty("transaction"))
|
18265
18371
|
object.transaction = $root.TW.Bitcoin.Proto.Transaction.toObject(message.transaction, options);
|
@@ -18271,6 +18377,8 @@
|
|
18271
18377
|
object.error = options.enums === String ? $root.TW.Common.Proto.SigningError[message.error] : message.error;
|
18272
18378
|
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
18273
18379
|
object.errorMessage = message.errorMessage;
|
18380
|
+
if (message.signingResultV2 != null && message.hasOwnProperty("signingResultV2"))
|
18381
|
+
object.signingResultV2 = $root.TW.BitcoinV2.Proto.SigningOutput.toObject(message.signingResultV2, options);
|
18274
18382
|
return object;
|
18275
18383
|
};
|
18276
18384
|
|
package/dist/lib/wallet-core.js
CHANGED
@@ -34,7 +34,7 @@ function Ua(){Qa++;g.monitorRunDependencies&&g.monitorRunDependencies(Qa);assert
|
|
34
34
|
function Va(){return G.startsWith("data:application/octet-stream;base64,")}function ma(a){return a.startsWith("file://")}function H(a){return function(){var b=g.asm;assert(Oa,"native function `"+a+"` called before runtime initialization");b[a]||assert(b[a],"exported native function `"+a+"` not found");return b[a].apply(null,arguments)}}var G;G="wallet-core.wasm";if(!Va()){var Wa=G;G=g.locateFile?g.locateFile(Wa,w):w+Wa}
|
35
35
|
function Xa(){var a=G;try{if(a==G&&qa)return new Uint8Array(qa);if(ka)return ka(a);throw"both async and sync fetching of the wasm failed";}catch(b){p(b)}}
|
36
36
|
function Ya(){if(!qa&&(ea||fa)){if("function"==typeof fetch&&!ma(G))return fetch(G,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+G+"'";return a.arrayBuffer()}).catch(function(){return Xa()});if(ja)return new Promise(function(a,b){ja(G,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return Xa()})}
|
37
|
-
var Za,$a,ab={
|
37
|
+
var Za,$a,ab={2171988:()=>{if(void 0===g.ea)try{var a="object"===typeof window?window:self,b="undefined"!==typeof a.crypto?a.crypto:a.msCrypto;a=function(){var d=new Uint32Array(1);b.getRandomValues(d);return d[0]>>>0};a();g.ea=a}catch(d){try{var c=require("crypto");a=function(){var e=c.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a();g.ea=a}catch(e){throw"No secure random number generator found";}}},2172710:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
|
38
38
|
function va(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function pa(a){cb||(cb={});cb[a]||(cb[a]=1,v&&(a="warning: "+a),y(a))}var cb,db=0;
|
39
39
|
function eb(a){this.l=a-24;this.Ta=function(b){F[this.l+4>>2]=b};this.Da=function(){return F[this.l+4>>2]};this.Ja=function(b){F[this.l+8>>2]=b};this.Ka=function(){D[this.l>>2]=0};this.Ia=function(){B[this.l+12>>0]=0};this.Na=function(){B[this.l+13>>0]=0};this.Ea=function(b,c){this.F(0);this.Ta(b);this.Ja(c);this.Ka();this.Ia();this.Na()};this.F=function(b){F[this.l+16>>2]=b}}
|
40
40
|
var fb=0,gb=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},hb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=gb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},ib=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},jb=
|
Binary file
|