@ledgerhq/live-cli 24.18.7-next.1 → 24.18.7-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +478 -580
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -35767,7 +35767,7 @@ var require_range = __commonJS({
|
|
|
35767
35767
|
parseRange(range5) {
|
|
35768
35768
|
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
35769
35769
|
const memoKey = memoOpts + ":" + range5;
|
|
35770
|
-
const cached2 =
|
|
35770
|
+
const cached2 = cache8.get(memoKey);
|
|
35771
35771
|
if (cached2) {
|
|
35772
35772
|
return cached2;
|
|
35773
35773
|
}
|
|
@@ -35801,7 +35801,7 @@ var require_range = __commonJS({
|
|
|
35801
35801
|
rangeMap.delete("");
|
|
35802
35802
|
}
|
|
35803
35803
|
const result2 = [...rangeMap.values()];
|
|
35804
|
-
|
|
35804
|
+
cache8.set(memoKey, result2);
|
|
35805
35805
|
return result2;
|
|
35806
35806
|
}
|
|
35807
35807
|
intersects(range5, options22) {
|
|
@@ -35840,7 +35840,7 @@ var require_range = __commonJS({
|
|
|
35840
35840
|
};
|
|
35841
35841
|
module2.exports = Range2;
|
|
35842
35842
|
var LRU = require_lru_cache();
|
|
35843
|
-
var
|
|
35843
|
+
var cache8 = new LRU({ max: 1e3 });
|
|
35844
35844
|
var parseOptions = require_parse_options();
|
|
35845
35845
|
var Comparator = require_comparator();
|
|
35846
35846
|
var debug = require_debug2();
|
|
@@ -52108,7 +52108,7 @@ var require_range3 = __commonJS({
|
|
|
52108
52108
|
parseRange(range5) {
|
|
52109
52109
|
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
52110
52110
|
const memoKey = memoOpts + ":" + range5;
|
|
52111
|
-
const cached2 =
|
|
52111
|
+
const cached2 = cache8.get(memoKey);
|
|
52112
52112
|
if (cached2) {
|
|
52113
52113
|
return cached2;
|
|
52114
52114
|
}
|
|
@@ -52142,7 +52142,7 @@ var require_range3 = __commonJS({
|
|
|
52142
52142
|
rangeMap.delete("");
|
|
52143
52143
|
}
|
|
52144
52144
|
const result2 = [...rangeMap.values()];
|
|
52145
|
-
|
|
52145
|
+
cache8.set(memoKey, result2);
|
|
52146
52146
|
return result2;
|
|
52147
52147
|
}
|
|
52148
52148
|
intersects(range5, options22) {
|
|
@@ -52181,7 +52181,7 @@ var require_range3 = __commonJS({
|
|
|
52181
52181
|
};
|
|
52182
52182
|
module2.exports = Range2;
|
|
52183
52183
|
var LRU = require_lrucache();
|
|
52184
|
-
var
|
|
52184
|
+
var cache8 = new LRU();
|
|
52185
52185
|
var parseOptions = require_parse_options2();
|
|
52186
52186
|
var Comparator = require_comparator2();
|
|
52187
52187
|
var debug = require_debug3();
|
|
@@ -57730,7 +57730,7 @@ var require_source3 = __commonJS({
|
|
|
57730
57730
|
var all8 = { all: true };
|
|
57731
57731
|
var CacheableLookup = class {
|
|
57732
57732
|
constructor({
|
|
57733
|
-
cache:
|
|
57733
|
+
cache: cache8 = /* @__PURE__ */ new Map(),
|
|
57734
57734
|
maxTtl = Infinity,
|
|
57735
57735
|
fallbackDuration = 3600,
|
|
57736
57736
|
errorTtl = 0.15,
|
|
@@ -57739,7 +57739,7 @@ var require_source3 = __commonJS({
|
|
|
57739
57739
|
} = {}) {
|
|
57740
57740
|
this.maxTtl = maxTtl;
|
|
57741
57741
|
this.errorTtl = errorTtl;
|
|
57742
|
-
this._cache =
|
|
57742
|
+
this._cache = cache8;
|
|
57743
57743
|
this._resolver = resolver46;
|
|
57744
57744
|
this._dnsLookup = promisify2(lookup);
|
|
57745
57745
|
if (this._resolver instanceof AsyncResolver) {
|
|
@@ -60801,7 +60801,7 @@ var require_auto = __commonJS({
|
|
|
60801
60801
|
var Http2ClientRequest = require_client_request();
|
|
60802
60802
|
var calculateServerName = require_calculate_server_name();
|
|
60803
60803
|
var urlToOptions = require_url_to_options();
|
|
60804
|
-
var
|
|
60804
|
+
var cache8 = new QuickLRU({ maxSize: 100 });
|
|
60805
60805
|
var queue = /* @__PURE__ */ new Map();
|
|
60806
60806
|
var installSocket = (agent2, socket, options22) => {
|
|
60807
60807
|
socket._httpMessage = { shouldKeepAlive: true };
|
|
@@ -60824,7 +60824,7 @@ var require_auto = __commonJS({
|
|
|
60824
60824
|
};
|
|
60825
60825
|
var resolveProtocol = async (options22) => {
|
|
60826
60826
|
const name3 = `${options22.host}:${options22.port}:${options22.ALPNProtocols.sort()}`;
|
|
60827
|
-
if (!
|
|
60827
|
+
if (!cache8.has(name3)) {
|
|
60828
60828
|
if (queue.has(name3)) {
|
|
60829
60829
|
const result2 = await queue.get(name3);
|
|
60830
60830
|
return result2.alpnProtocol;
|
|
@@ -60835,7 +60835,7 @@ var require_auto = __commonJS({
|
|
|
60835
60835
|
queue.set(name3, resultPromise);
|
|
60836
60836
|
try {
|
|
60837
60837
|
const { socket, alpnProtocol } = await resultPromise;
|
|
60838
|
-
|
|
60838
|
+
cache8.set(name3, alpnProtocol);
|
|
60839
60839
|
options22.path = path4;
|
|
60840
60840
|
if (alpnProtocol === "h2") {
|
|
60841
60841
|
socket.destroy();
|
|
@@ -60861,7 +60861,7 @@ var require_auto = __commonJS({
|
|
|
60861
60861
|
throw error;
|
|
60862
60862
|
}
|
|
60863
60863
|
}
|
|
60864
|
-
return
|
|
60864
|
+
return cache8.get(name3);
|
|
60865
60865
|
};
|
|
60866
60866
|
module2.exports = async (input, options22, callback) => {
|
|
60867
60867
|
if (typeof input === "string" || input instanceof URL) {
|
|
@@ -60905,7 +60905,7 @@ var require_auto = __commonJS({
|
|
|
60905
60905
|
}
|
|
60906
60906
|
return http9.request(options22, callback);
|
|
60907
60907
|
};
|
|
60908
|
-
module2.exports.protocolCache =
|
|
60908
|
+
module2.exports.protocolCache = cache8;
|
|
60909
60909
|
}
|
|
60910
60910
|
});
|
|
60911
60911
|
|
|
@@ -61940,10 +61940,10 @@ var require_core = __commonJS({
|
|
|
61940
61940
|
};
|
|
61941
61941
|
}
|
|
61942
61942
|
}
|
|
61943
|
-
const { cache:
|
|
61944
|
-
if (
|
|
61945
|
-
if (!cacheableStore.has(
|
|
61946
|
-
cacheableStore.set(
|
|
61943
|
+
const { cache: cache8 } = options22;
|
|
61944
|
+
if (cache8) {
|
|
61945
|
+
if (!cacheableStore.has(cache8)) {
|
|
61946
|
+
cacheableStore.set(cache8, new CacheableRequest((requestOptions, handler) => {
|
|
61947
61947
|
const result2 = requestOptions[kRequest](requestOptions, handler);
|
|
61948
61948
|
if (is_1.default.promise(result2)) {
|
|
61949
61949
|
result2.once = (event, handler2) => {
|
|
@@ -61964,7 +61964,7 @@ var require_core = __commonJS({
|
|
|
61964
61964
|
};
|
|
61965
61965
|
}
|
|
61966
61966
|
return result2;
|
|
61967
|
-
},
|
|
61967
|
+
}, cache8));
|
|
61968
61968
|
}
|
|
61969
61969
|
}
|
|
61970
61970
|
options22.cacheOptions = { ...options22.cacheOptions };
|
|
@@ -78836,8 +78836,8 @@ var require_psbt2 = __commonJS({
|
|
|
78836
78836
|
return false;
|
|
78837
78837
|
}
|
|
78838
78838
|
}
|
|
78839
|
-
function checkCache(
|
|
78840
|
-
if (
|
|
78839
|
+
function checkCache(cache8) {
|
|
78840
|
+
if (cache8.__UNSAFE_SIGN_NONSEGWIT !== false) {
|
|
78841
78841
|
throw new Error("Not BIP174 compliant, can not export");
|
|
78842
78842
|
}
|
|
78843
78843
|
}
|
|
@@ -78890,9 +78890,9 @@ var require_psbt2 = __commonJS({
|
|
|
78890
78890
|
throw new Error("Invalid 32 bit integer");
|
|
78891
78891
|
}
|
|
78892
78892
|
}
|
|
78893
|
-
function checkFees(psbt,
|
|
78894
|
-
const feeRate =
|
|
78895
|
-
const vsize =
|
|
78893
|
+
function checkFees(psbt, cache8, opts) {
|
|
78894
|
+
const feeRate = cache8.__FEE_RATE || psbt.getFeeRate();
|
|
78895
|
+
const vsize = cache8.__EXTRACTED_TX.virtualSize();
|
|
78896
78896
|
const satoshis = feeRate * vsize;
|
|
78897
78897
|
if (feeRate >= opts.maximumFeeRate) {
|
|
78898
78898
|
throw new Error(
|
|
@@ -78962,16 +78962,16 @@ var require_psbt2 = __commonJS({
|
|
|
78962
78962
|
throw new Error("Format Error: Transaction ScriptSigs are not empty");
|
|
78963
78963
|
}
|
|
78964
78964
|
}
|
|
78965
|
-
function checkTxForDupeIns(tx,
|
|
78965
|
+
function checkTxForDupeIns(tx, cache8) {
|
|
78966
78966
|
tx.ins.forEach((input) => {
|
|
78967
|
-
checkTxInputCache(
|
|
78967
|
+
checkTxInputCache(cache8, input);
|
|
78968
78968
|
});
|
|
78969
78969
|
}
|
|
78970
|
-
function checkTxInputCache(
|
|
78970
|
+
function checkTxInputCache(cache8, input) {
|
|
78971
78971
|
const key2 = bufferutils_1.reverseBuffer(Buffer.from(input.hash)).toString("hex") + ":" + input.index;
|
|
78972
|
-
if (
|
|
78972
|
+
if (cache8.__TX_IN_CACHE[key2])
|
|
78973
78973
|
throw new Error("Duplicate input detected.");
|
|
78974
|
-
|
|
78974
|
+
cache8.__TX_IN_CACHE[key2] = 1;
|
|
78975
78975
|
}
|
|
78976
78976
|
function scriptCheckerFactory(payment, paymentScriptName) {
|
|
78977
78977
|
return (inputIndex, scriptPubKey, redeemScript, ioType) => {
|
|
@@ -79051,12 +79051,12 @@ var require_psbt2 = __commonJS({
|
|
|
79051
79051
|
finalScriptWitness
|
|
79052
79052
|
};
|
|
79053
79053
|
}
|
|
79054
|
-
function getHashAndSighashType(inputs, inputIndex, pubkey,
|
|
79054
|
+
function getHashAndSighashType(inputs, inputIndex, pubkey, cache8, sighashTypes) {
|
|
79055
79055
|
const input = utils_12.checkForInput(inputs, inputIndex);
|
|
79056
79056
|
const { hash: hash12, sighashType, script: script3 } = getHashForSig(
|
|
79057
79057
|
inputIndex,
|
|
79058
79058
|
input,
|
|
79059
|
-
|
|
79059
|
+
cache8,
|
|
79060
79060
|
false,
|
|
79061
79061
|
sighashTypes
|
|
79062
79062
|
);
|
|
@@ -79066,8 +79066,8 @@ var require_psbt2 = __commonJS({
|
|
|
79066
79066
|
sighashType
|
|
79067
79067
|
};
|
|
79068
79068
|
}
|
|
79069
|
-
function getHashForSig(inputIndex, input,
|
|
79070
|
-
const unsignedTx =
|
|
79069
|
+
function getHashForSig(inputIndex, input, cache8, forValidate, sighashTypes) {
|
|
79070
|
+
const unsignedTx = cache8.__TX;
|
|
79071
79071
|
const sighashType = input.sighashType || transaction_1.Transaction.SIGHASH_ALL;
|
|
79072
79072
|
if (sighashTypes && sighashTypes.indexOf(sighashType) < 0) {
|
|
79073
79073
|
const str = sighashTypeToString(sighashType);
|
|
@@ -79079,7 +79079,7 @@ var require_psbt2 = __commonJS({
|
|
|
79079
79079
|
let prevout;
|
|
79080
79080
|
if (input.nonWitnessUtxo) {
|
|
79081
79081
|
const nonWitnessUtxoTx = nonWitnessUtxoTxFromCache(
|
|
79082
|
-
|
|
79082
|
+
cache8,
|
|
79083
79083
|
input,
|
|
79084
79084
|
inputIndex
|
|
79085
79085
|
);
|
|
@@ -79120,11 +79120,11 @@ var require_psbt2 = __commonJS({
|
|
|
79120
79120
|
sighashType
|
|
79121
79121
|
);
|
|
79122
79122
|
} else {
|
|
79123
|
-
if (input.nonWitnessUtxo === void 0 &&
|
|
79123
|
+
if (input.nonWitnessUtxo === void 0 && cache8.__UNSAFE_SIGN_NONSEGWIT === false)
|
|
79124
79124
|
throw new Error(
|
|
79125
79125
|
`Input #${inputIndex} has witnessUtxo but non-segwit script: ${meaningfulScript.toString("hex")}`
|
|
79126
79126
|
);
|
|
79127
|
-
if (!forValidate &&
|
|
79127
|
+
if (!forValidate && cache8.__UNSAFE_SIGN_NONSEGWIT !== false)
|
|
79128
79128
|
console.warn(
|
|
79129
79129
|
"Warning: Signing non-segwit inputs without the full parent transaction means there is a chance that a miner could feed you incorrect information to trick you into paying large fees. This behavior is the same as the old TransactionBuilder class when signing non-segwit scripts. You are not able to export this Psbt with toBuffer|toBase64|toHex since it is not BIP174 compliant.\n*********************\nPROCEED WITH CAUTION!\n*********************"
|
|
79130
79130
|
);
|
|
@@ -79180,8 +79180,8 @@ var require_psbt2 = __commonJS({
|
|
|
79180
79180
|
return Buffer.isBuffer(item) && bscript.isCanonicalScriptSignature(item);
|
|
79181
79181
|
}).map((sig2) => ({ signature: sig2 }));
|
|
79182
79182
|
}
|
|
79183
|
-
function getScriptFromInput(inputIndex, input,
|
|
79184
|
-
const unsignedTx =
|
|
79183
|
+
function getScriptFromInput(inputIndex, input, cache8) {
|
|
79184
|
+
const unsignedTx = cache8.__TX;
|
|
79185
79185
|
const res = {
|
|
79186
79186
|
script: null,
|
|
79187
79187
|
isSegwit: false,
|
|
@@ -79197,7 +79197,7 @@ var require_psbt2 = __commonJS({
|
|
|
79197
79197
|
} else {
|
|
79198
79198
|
if (input.nonWitnessUtxo) {
|
|
79199
79199
|
const nonWitnessUtxoTx = nonWitnessUtxoTxFromCache(
|
|
79200
|
-
|
|
79200
|
+
cache8,
|
|
79201
79201
|
input,
|
|
79202
79202
|
inputIndex
|
|
79203
79203
|
);
|
|
@@ -79307,11 +79307,11 @@ var require_psbt2 = __commonJS({
|
|
|
79307
79307
|
writeVector(witness);
|
|
79308
79308
|
return buffer2;
|
|
79309
79309
|
}
|
|
79310
|
-
function addNonWitnessTxCache(
|
|
79311
|
-
|
|
79310
|
+
function addNonWitnessTxCache(cache8, input, inputIndex) {
|
|
79311
|
+
cache8.__NON_WITNESS_UTXO_BUF_CACHE[inputIndex] = input.nonWitnessUtxo;
|
|
79312
79312
|
const tx = transaction_1.Transaction.fromBuffer(input.nonWitnessUtxo);
|
|
79313
|
-
|
|
79314
|
-
const self2 =
|
|
79313
|
+
cache8.__NON_WITNESS_UTXO_TX_CACHE[inputIndex] = tx;
|
|
79314
|
+
const self2 = cache8;
|
|
79315
79315
|
const selfIndex = inputIndex;
|
|
79316
79316
|
delete input.nonWitnessUtxo;
|
|
79317
79317
|
Object.defineProperty(input, "nonWitnessUtxo", {
|
|
@@ -79332,7 +79332,7 @@ var require_psbt2 = __commonJS({
|
|
|
79332
79332
|
}
|
|
79333
79333
|
});
|
|
79334
79334
|
}
|
|
79335
|
-
function inputFinalizeGetAmts(inputs, tx,
|
|
79335
|
+
function inputFinalizeGetAmts(inputs, tx, cache8, mustFinalize) {
|
|
79336
79336
|
let inputAmount = 0;
|
|
79337
79337
|
inputs.forEach((input, idx) => {
|
|
79338
79338
|
if (mustFinalize && input.finalScriptSig)
|
|
@@ -79345,7 +79345,7 @@ var require_psbt2 = __commonJS({
|
|
|
79345
79345
|
if (input.witnessUtxo) {
|
|
79346
79346
|
inputAmount += input.witnessUtxo.value;
|
|
79347
79347
|
} else if (input.nonWitnessUtxo) {
|
|
79348
|
-
const nwTx = nonWitnessUtxoTxFromCache(
|
|
79348
|
+
const nwTx = nonWitnessUtxoTxFromCache(cache8, input, idx);
|
|
79349
79349
|
const vout = tx.ins[idx].index;
|
|
79350
79350
|
const out = nwTx.outs[vout];
|
|
79351
79351
|
inputAmount += out.value;
|
|
@@ -79357,33 +79357,33 @@ var require_psbt2 = __commonJS({
|
|
|
79357
79357
|
throw new Error("Outputs are spending more than Inputs");
|
|
79358
79358
|
}
|
|
79359
79359
|
const bytes7 = tx.virtualSize();
|
|
79360
|
-
|
|
79361
|
-
|
|
79362
|
-
|
|
79360
|
+
cache8.__FEE = fee;
|
|
79361
|
+
cache8.__EXTRACTED_TX = tx;
|
|
79362
|
+
cache8.__FEE_RATE = Math.floor(fee / bytes7);
|
|
79363
79363
|
}
|
|
79364
|
-
function nonWitnessUtxoTxFromCache(
|
|
79365
|
-
const c56 =
|
|
79364
|
+
function nonWitnessUtxoTxFromCache(cache8, input, inputIndex) {
|
|
79365
|
+
const c56 = cache8.__NON_WITNESS_UTXO_TX_CACHE;
|
|
79366
79366
|
if (!c56[inputIndex]) {
|
|
79367
|
-
addNonWitnessTxCache(
|
|
79367
|
+
addNonWitnessTxCache(cache8, input, inputIndex);
|
|
79368
79368
|
}
|
|
79369
79369
|
return c56[inputIndex];
|
|
79370
79370
|
}
|
|
79371
|
-
function getScriptFromUtxo(inputIndex, input,
|
|
79371
|
+
function getScriptFromUtxo(inputIndex, input, cache8) {
|
|
79372
79372
|
if (input.witnessUtxo !== void 0) {
|
|
79373
79373
|
return input.witnessUtxo.script;
|
|
79374
79374
|
} else if (input.nonWitnessUtxo !== void 0) {
|
|
79375
79375
|
const nonWitnessUtxoTx = nonWitnessUtxoTxFromCache(
|
|
79376
|
-
|
|
79376
|
+
cache8,
|
|
79377
79377
|
input,
|
|
79378
79378
|
inputIndex
|
|
79379
79379
|
);
|
|
79380
|
-
return nonWitnessUtxoTx.outs[
|
|
79380
|
+
return nonWitnessUtxoTx.outs[cache8.__TX.ins[inputIndex].index].script;
|
|
79381
79381
|
} else {
|
|
79382
79382
|
throw new Error("Can't find pubkey in input without Utxo data");
|
|
79383
79383
|
}
|
|
79384
79384
|
}
|
|
79385
|
-
function pubkeyInInput(pubkey, input, inputIndex,
|
|
79386
|
-
const script3 = getScriptFromUtxo(inputIndex, input,
|
|
79385
|
+
function pubkeyInInput(pubkey, input, inputIndex, cache8) {
|
|
79386
|
+
const script3 = getScriptFromUtxo(inputIndex, input, cache8);
|
|
79387
79387
|
const { meaningfulScript } = getMeaningfulScript(
|
|
79388
79388
|
script3,
|
|
79389
79389
|
inputIndex,
|
|
@@ -79393,8 +79393,8 @@ var require_psbt2 = __commonJS({
|
|
|
79393
79393
|
);
|
|
79394
79394
|
return pubkeyInScript(pubkey, meaningfulScript);
|
|
79395
79395
|
}
|
|
79396
|
-
function pubkeyInOutput(pubkey, output5, outputIndex,
|
|
79397
|
-
const script3 =
|
|
79396
|
+
function pubkeyInOutput(pubkey, output5, outputIndex, cache8) {
|
|
79397
|
+
const script3 = cache8.__TX.outs[outputIndex].script;
|
|
79398
79398
|
const { meaningfulScript } = getMeaningfulScript(
|
|
79399
79399
|
script3,
|
|
79400
79400
|
outputIndex,
|
|
@@ -112775,9 +112775,9 @@ var require_axios = __commonJS({
|
|
|
112775
112775
|
}
|
|
112776
112776
|
var { toString: toString12 } = Object.prototype;
|
|
112777
112777
|
var { getPrototypeOf: getPrototypeOf3 } = Object;
|
|
112778
|
-
var kindOf3 = /* @__PURE__ */ ((
|
|
112778
|
+
var kindOf3 = /* @__PURE__ */ ((cache8) => (thing) => {
|
|
112779
112779
|
const str = toString12.call(thing);
|
|
112780
|
-
return
|
|
112780
|
+
return cache8[str] || (cache8[str] = str.slice(8, -1).toLowerCase());
|
|
112781
112781
|
})(/* @__PURE__ */ Object.create(null));
|
|
112782
112782
|
var kindOfTest3 = (type4) => {
|
|
112783
112783
|
type4 = type4.toLowerCase();
|
|
@@ -138223,9 +138223,9 @@ var require_abstract3 = __commonJS({
|
|
|
138223
138223
|
if (dontTransferCache) {
|
|
138224
138224
|
return this.type.getViewDU(this.node);
|
|
138225
138225
|
} else {
|
|
138226
|
-
const
|
|
138226
|
+
const cache8 = this.cache;
|
|
138227
138227
|
this.clearCache();
|
|
138228
|
-
return this.type.getViewDU(this.node,
|
|
138228
|
+
return this.type.getViewDU(this.node, cache8);
|
|
138229
138229
|
}
|
|
138230
138230
|
}
|
|
138231
138231
|
};
|
|
@@ -139207,17 +139207,17 @@ var require_container2 = __commonJS({
|
|
|
139207
139207
|
var composite_1 = require_composite();
|
|
139208
139208
|
var abstract_1 = require_abstract3();
|
|
139209
139209
|
var ContainerTreeViewDU = class extends abstract_1.TreeViewDU {
|
|
139210
|
-
constructor(type4, _rootNode,
|
|
139210
|
+
constructor(type4, _rootNode, cache8) {
|
|
139211
139211
|
super();
|
|
139212
139212
|
this.type = type4;
|
|
139213
139213
|
this._rootNode = _rootNode;
|
|
139214
139214
|
this.nodes = [];
|
|
139215
139215
|
this.nodesChanged = /* @__PURE__ */ new Set();
|
|
139216
139216
|
this.viewsChanged = /* @__PURE__ */ new Map();
|
|
139217
|
-
if (
|
|
139218
|
-
this.nodes =
|
|
139219
|
-
this.caches =
|
|
139220
|
-
this.nodesPopulated =
|
|
139217
|
+
if (cache8) {
|
|
139218
|
+
this.nodes = cache8.nodes;
|
|
139219
|
+
this.caches = cache8.caches;
|
|
139220
|
+
this.nodesPopulated = cache8.nodesPopulated;
|
|
139221
139221
|
} else {
|
|
139222
139222
|
this.nodes = [];
|
|
139223
139223
|
this.caches = [];
|
|
@@ -139244,9 +139244,9 @@ var require_container2 = __commonJS({
|
|
|
139244
139244
|
const node3 = fieldType.commitViewDU(view);
|
|
139245
139245
|
this.nodes[index] = node3;
|
|
139246
139246
|
nodesChanged.push({ index, node: node3 });
|
|
139247
|
-
const
|
|
139248
|
-
if (
|
|
139249
|
-
this.caches[index] =
|
|
139247
|
+
const cache8 = fieldType.cacheOfViewDU(view);
|
|
139248
|
+
if (cache8)
|
|
139249
|
+
this.caches[index] = cache8;
|
|
139250
139250
|
}
|
|
139251
139251
|
for (const index of this.nodesChanged) {
|
|
139252
139252
|
nodesChanged.push({ index, node: this.nodes[index] });
|
|
@@ -139405,8 +139405,8 @@ var require_container3 = __commonJS({
|
|
|
139405
139405
|
getView(tree) {
|
|
139406
139406
|
return new this.TreeView(this, tree);
|
|
139407
139407
|
}
|
|
139408
|
-
getViewDU(node3,
|
|
139409
|
-
return new this.TreeViewDU(this, node3,
|
|
139408
|
+
getViewDU(node3, cache8) {
|
|
139409
|
+
return new this.TreeViewDU(this, node3, cache8);
|
|
139410
139410
|
}
|
|
139411
139411
|
cacheOfViewDU(view) {
|
|
139412
139412
|
return view.cache;
|
|
@@ -140099,16 +140099,16 @@ var require_arrayBasic3 = __commonJS({
|
|
|
140099
140099
|
var persistent_merkle_tree_1 = require_lib9();
|
|
140100
140100
|
var abstract_1 = require_abstract3();
|
|
140101
140101
|
var ArrayBasicTreeViewDU = class extends abstract_1.TreeViewDU {
|
|
140102
|
-
constructor(type4, _rootNode,
|
|
140102
|
+
constructor(type4, _rootNode, cache8) {
|
|
140103
140103
|
super();
|
|
140104
140104
|
this.type = type4;
|
|
140105
140105
|
this._rootNode = _rootNode;
|
|
140106
140106
|
this.nodesChanged = /* @__PURE__ */ new Set();
|
|
140107
140107
|
this.dirtyLength = false;
|
|
140108
|
-
if (
|
|
140109
|
-
this.nodes =
|
|
140110
|
-
this._length =
|
|
140111
|
-
this.nodesPopulated =
|
|
140108
|
+
if (cache8) {
|
|
140109
|
+
this.nodes = cache8.nodes;
|
|
140110
|
+
this._length = cache8.length;
|
|
140111
|
+
this.nodesPopulated = cache8.nodesPopulated;
|
|
140112
140112
|
} else {
|
|
140113
140113
|
this.nodes = [];
|
|
140114
140114
|
this._length = this.type.tree_getLength(_rootNode);
|
|
@@ -140232,8 +140232,8 @@ var require_listBasic2 = __commonJS({
|
|
|
140232
140232
|
var persistent_merkle_tree_1 = require_lib9();
|
|
140233
140233
|
var arrayBasic_1 = require_arrayBasic3();
|
|
140234
140234
|
var ListBasicTreeViewDU = class extends arrayBasic_1.ArrayBasicTreeViewDU {
|
|
140235
|
-
constructor(type4, _rootNode,
|
|
140236
|
-
super(type4, _rootNode,
|
|
140235
|
+
constructor(type4, _rootNode, cache8) {
|
|
140236
|
+
super(type4, _rootNode, cache8);
|
|
140237
140237
|
this.type = type4;
|
|
140238
140238
|
this._rootNode = _rootNode;
|
|
140239
140239
|
}
|
|
@@ -140385,8 +140385,8 @@ var require_listBasic3 = __commonJS({
|
|
|
140385
140385
|
getView(tree) {
|
|
140386
140386
|
return new listBasic_1.ListBasicTreeView(this, tree);
|
|
140387
140387
|
}
|
|
140388
|
-
getViewDU(node3,
|
|
140389
|
-
return new listBasic_2.ListBasicTreeViewDU(this, node3,
|
|
140388
|
+
getViewDU(node3, cache8) {
|
|
140389
|
+
return new listBasic_2.ListBasicTreeViewDU(this, node3, cache8);
|
|
140390
140390
|
}
|
|
140391
140391
|
commitView(view) {
|
|
140392
140392
|
return view.node;
|
|
@@ -140745,17 +140745,17 @@ var require_arrayComposite3 = __commonJS({
|
|
|
140745
140745
|
var persistent_merkle_tree_1 = require_lib9();
|
|
140746
140746
|
var abstract_1 = require_abstract3();
|
|
140747
140747
|
var ArrayCompositeTreeViewDU = class extends abstract_1.TreeViewDU {
|
|
140748
|
-
constructor(type4, _rootNode,
|
|
140748
|
+
constructor(type4, _rootNode, cache8) {
|
|
140749
140749
|
super();
|
|
140750
140750
|
this.type = type4;
|
|
140751
140751
|
this._rootNode = _rootNode;
|
|
140752
140752
|
this.viewsChanged = /* @__PURE__ */ new Map();
|
|
140753
140753
|
this.dirtyLength = false;
|
|
140754
|
-
if (
|
|
140755
|
-
this.nodes =
|
|
140756
|
-
this.caches =
|
|
140757
|
-
this._length =
|
|
140758
|
-
this.nodesPopulated =
|
|
140754
|
+
if (cache8) {
|
|
140755
|
+
this.nodes = cache8.nodes;
|
|
140756
|
+
this.caches = cache8.caches;
|
|
140757
|
+
this._length = cache8.length;
|
|
140758
|
+
this.nodesPopulated = cache8.nodesPopulated;
|
|
140759
140759
|
} else {
|
|
140760
140760
|
this.nodes = [];
|
|
140761
140761
|
this.caches = [];
|
|
@@ -140865,9 +140865,9 @@ var require_arrayComposite3 = __commonJS({
|
|
|
140865
140865
|
const node3 = this.type.elementType.commitViewDU(view);
|
|
140866
140866
|
this.nodes[index] = node3;
|
|
140867
140867
|
nodesChanged.push({ index, node: node3 });
|
|
140868
|
-
const
|
|
140869
|
-
if (
|
|
140870
|
-
this.caches[index] =
|
|
140868
|
+
const cache8 = this.type.elementType.cacheOfViewDU(view);
|
|
140869
|
+
if (cache8)
|
|
140870
|
+
this.caches[index] = cache8;
|
|
140871
140871
|
}
|
|
140872
140872
|
const nodesChangedSorted = nodesChanged.sort((a65, b19) => a65.index - b19.index);
|
|
140873
140873
|
const indexes3 = nodesChangedSorted.map((entry) => entry.index);
|
|
@@ -140911,8 +140911,8 @@ var require_listComposite2 = __commonJS({
|
|
|
140911
140911
|
var persistent_merkle_tree_1 = require_lib9();
|
|
140912
140912
|
var arrayComposite_1 = require_arrayComposite3();
|
|
140913
140913
|
var ListCompositeTreeViewDU = class extends arrayComposite_1.ArrayCompositeTreeViewDU {
|
|
140914
|
-
constructor(type4, _rootNode,
|
|
140915
|
-
super(type4, _rootNode,
|
|
140914
|
+
constructor(type4, _rootNode, cache8) {
|
|
140915
|
+
super(type4, _rootNode, cache8);
|
|
140916
140916
|
this.type = type4;
|
|
140917
140917
|
this._rootNode = _rootNode;
|
|
140918
140918
|
}
|
|
@@ -140999,8 +140999,8 @@ var require_listComposite3 = __commonJS({
|
|
|
140999
140999
|
getView(tree) {
|
|
141000
141000
|
return new listComposite_1.ListCompositeTreeView(this, tree);
|
|
141001
141001
|
}
|
|
141002
|
-
getViewDU(node3,
|
|
141003
|
-
return new listComposite_2.ListCompositeTreeViewDU(this, node3,
|
|
141002
|
+
getViewDU(node3, cache8) {
|
|
141003
|
+
return new listComposite_2.ListCompositeTreeViewDU(this, node3, cache8);
|
|
141004
141004
|
}
|
|
141005
141005
|
commitView(view) {
|
|
141006
141006
|
return view.node;
|
|
@@ -141639,8 +141639,8 @@ var require_vectorBasic = __commonJS({
|
|
|
141639
141639
|
getView(tree) {
|
|
141640
141640
|
return new arrayBasic_2.ArrayBasicTreeView(this, tree);
|
|
141641
141641
|
}
|
|
141642
|
-
getViewDU(node3,
|
|
141643
|
-
return new arrayBasic_3.ArrayBasicTreeViewDU(this, node3,
|
|
141642
|
+
getViewDU(node3, cache8) {
|
|
141643
|
+
return new arrayBasic_3.ArrayBasicTreeViewDU(this, node3, cache8);
|
|
141644
141644
|
}
|
|
141645
141645
|
commitView(view) {
|
|
141646
141646
|
return view.node;
|
|
@@ -141735,8 +141735,8 @@ var require_vectorComposite = __commonJS({
|
|
|
141735
141735
|
getView(tree) {
|
|
141736
141736
|
return new arrayComposite_2.ArrayCompositeTreeView(this, tree);
|
|
141737
141737
|
}
|
|
141738
|
-
getViewDU(node3,
|
|
141739
|
-
return new arrayComposite_3.ArrayCompositeTreeViewDU(this, node3,
|
|
141738
|
+
getViewDU(node3, cache8) {
|
|
141739
|
+
return new arrayComposite_3.ArrayCompositeTreeViewDU(this, node3, cache8);
|
|
141740
141740
|
}
|
|
141741
141741
|
commitView(view) {
|
|
141742
141742
|
return view.node;
|
|
@@ -143656,13 +143656,13 @@ var init_es6 = __esm({
|
|
|
143656
143656
|
return RecursiveType2;
|
|
143657
143657
|
}(Type);
|
|
143658
143658
|
recursion = function(name3, definition) {
|
|
143659
|
-
var
|
|
143659
|
+
var cache8;
|
|
143660
143660
|
var runDefinition = function() {
|
|
143661
|
-
if (!
|
|
143662
|
-
|
|
143663
|
-
|
|
143661
|
+
if (!cache8) {
|
|
143662
|
+
cache8 = definition(Self);
|
|
143663
|
+
cache8.name = name3;
|
|
143664
143664
|
}
|
|
143665
|
-
return
|
|
143665
|
+
return cache8;
|
|
143666
143666
|
};
|
|
143667
143667
|
var Self = new RecursiveType(name3, function(u49) {
|
|
143668
143668
|
return runDefinition().is(u49);
|
|
@@ -161130,13 +161130,13 @@ var require_lib15 = __commonJS({
|
|
|
161130
161130
|
);
|
|
161131
161131
|
exports2.RecursiveType = RecursiveType2;
|
|
161132
161132
|
exports2.recursion = function(name3, definition) {
|
|
161133
|
-
var
|
|
161133
|
+
var cache8;
|
|
161134
161134
|
var runDefinition = function() {
|
|
161135
|
-
if (!
|
|
161136
|
-
|
|
161137
|
-
|
|
161135
|
+
if (!cache8) {
|
|
161136
|
+
cache8 = definition(Self);
|
|
161137
|
+
cache8.name = name3;
|
|
161138
161138
|
}
|
|
161139
|
-
return
|
|
161139
|
+
return cache8;
|
|
161140
161140
|
};
|
|
161141
161141
|
var Self = new RecursiveType2(name3, function(u49) {
|
|
161142
161142
|
return runDefinition().is(u49);
|
|
@@ -207396,20 +207396,20 @@ var require_call_get = __commonJS({
|
|
|
207396
207396
|
var makeGetter = function(propertyName) {
|
|
207397
207397
|
return new Function("obj", " \n 'use strict'; \n return obj.propertyName; \n ".replace("propertyName", propertyName));
|
|
207398
207398
|
};
|
|
207399
|
-
var getCompiled = function(name3, compiler,
|
|
207400
|
-
var ret2 =
|
|
207399
|
+
var getCompiled = function(name3, compiler, cache8) {
|
|
207400
|
+
var ret2 = cache8[name3];
|
|
207401
207401
|
if (typeof ret2 !== "function") {
|
|
207402
207402
|
if (!isIdentifier2(name3)) {
|
|
207403
207403
|
return null;
|
|
207404
207404
|
}
|
|
207405
207405
|
ret2 = compiler(name3);
|
|
207406
|
-
|
|
207407
|
-
|
|
207408
|
-
if (
|
|
207409
|
-
var keys2 = Object.keys(
|
|
207406
|
+
cache8[name3] = ret2;
|
|
207407
|
+
cache8[" size"]++;
|
|
207408
|
+
if (cache8[" size"] > 512) {
|
|
207409
|
+
var keys2 = Object.keys(cache8);
|
|
207410
207410
|
for (var i85 = 0; i85 < 256; ++i85)
|
|
207411
|
-
delete
|
|
207412
|
-
|
|
207411
|
+
delete cache8[keys2[i85]];
|
|
207412
|
+
cache8[" size"] = keys2.length - 256;
|
|
207413
207413
|
}
|
|
207414
207414
|
}
|
|
207415
207415
|
return ret2;
|
|
@@ -214077,8 +214077,8 @@ var require_mkdir = __commonJS({
|
|
|
214077
214077
|
return "CwdError";
|
|
214078
214078
|
}
|
|
214079
214079
|
};
|
|
214080
|
-
var cGet = (
|
|
214081
|
-
var cSet = (
|
|
214080
|
+
var cGet = (cache8, key2) => cache8.get(normPath(key2));
|
|
214081
|
+
var cSet = (cache8, key2, val) => cache8.set(normPath(key2), val);
|
|
214082
214082
|
var checkCwd = (dir, cb) => {
|
|
214083
214083
|
fs14.stat(dir, (er, st2) => {
|
|
214084
214084
|
if (er || !st2.isDirectory())
|
|
@@ -214096,13 +214096,13 @@ var require_mkdir = __commonJS({
|
|
|
214096
214096
|
const doChown = typeof uid === "number" && typeof gid === "number" && (uid !== opt.processUid || gid !== opt.processGid);
|
|
214097
214097
|
const preserve = opt.preserve;
|
|
214098
214098
|
const unlink = opt.unlink;
|
|
214099
|
-
const
|
|
214099
|
+
const cache8 = opt.cache;
|
|
214100
214100
|
const cwd = normPath(opt.cwd);
|
|
214101
214101
|
const done = (er, created) => {
|
|
214102
214102
|
if (er)
|
|
214103
214103
|
cb(er);
|
|
214104
214104
|
else {
|
|
214105
|
-
cSet(
|
|
214105
|
+
cSet(cache8, dir, true);
|
|
214106
214106
|
if (created && doChown)
|
|
214107
214107
|
chownr(created, uid, gid, (er2) => done(er2));
|
|
214108
214108
|
else if (needChmod)
|
|
@@ -214111,7 +214111,7 @@ var require_mkdir = __commonJS({
|
|
|
214111
214111
|
cb();
|
|
214112
214112
|
}
|
|
214113
214113
|
};
|
|
214114
|
-
if (
|
|
214114
|
+
if (cache8 && cGet(cache8, dir) === true)
|
|
214115
214115
|
return done();
|
|
214116
214116
|
if (dir === cwd)
|
|
214117
214117
|
return checkCwd(dir, done);
|
|
@@ -214119,30 +214119,30 @@ var require_mkdir = __commonJS({
|
|
|
214119
214119
|
return mkdirp(dir, mode, done);
|
|
214120
214120
|
const sub = normPath(path4.relative(cwd, dir));
|
|
214121
214121
|
const parts = sub.split("/");
|
|
214122
|
-
mkdir_(cwd, parts, mode,
|
|
214122
|
+
mkdir_(cwd, parts, mode, cache8, unlink, cwd, null, done);
|
|
214123
214123
|
};
|
|
214124
|
-
var mkdir_ = (base4, parts, mode,
|
|
214124
|
+
var mkdir_ = (base4, parts, mode, cache8, unlink, cwd, created, cb) => {
|
|
214125
214125
|
if (!parts.length)
|
|
214126
214126
|
return cb(null, created);
|
|
214127
214127
|
const p58 = parts.shift();
|
|
214128
214128
|
const part = normPath(path4.resolve(base4 + "/" + p58));
|
|
214129
|
-
if (cGet(
|
|
214130
|
-
return mkdir_(part, parts, mode,
|
|
214131
|
-
fs14.mkdir(part, mode, onmkdir(part, parts, mode,
|
|
214129
|
+
if (cGet(cache8, part))
|
|
214130
|
+
return mkdir_(part, parts, mode, cache8, unlink, cwd, created, cb);
|
|
214131
|
+
fs14.mkdir(part, mode, onmkdir(part, parts, mode, cache8, unlink, cwd, created, cb));
|
|
214132
214132
|
};
|
|
214133
|
-
var onmkdir = (part, parts, mode,
|
|
214133
|
+
var onmkdir = (part, parts, mode, cache8, unlink, cwd, created, cb) => (er) => {
|
|
214134
214134
|
if (er) {
|
|
214135
214135
|
fs14.lstat(part, (statEr, st2) => {
|
|
214136
214136
|
if (statEr) {
|
|
214137
214137
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
214138
214138
|
cb(statEr);
|
|
214139
214139
|
} else if (st2.isDirectory())
|
|
214140
|
-
mkdir_(part, parts, mode,
|
|
214140
|
+
mkdir_(part, parts, mode, cache8, unlink, cwd, created, cb);
|
|
214141
214141
|
else if (unlink)
|
|
214142
214142
|
fs14.unlink(part, (er2) => {
|
|
214143
214143
|
if (er2)
|
|
214144
214144
|
return cb(er2);
|
|
214145
|
-
fs14.mkdir(part, mode, onmkdir(part, parts, mode,
|
|
214145
|
+
fs14.mkdir(part, mode, onmkdir(part, parts, mode, cache8, unlink, cwd, created, cb));
|
|
214146
214146
|
});
|
|
214147
214147
|
else if (st2.isSymbolicLink())
|
|
214148
214148
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -214151,7 +214151,7 @@ var require_mkdir = __commonJS({
|
|
|
214151
214151
|
});
|
|
214152
214152
|
} else {
|
|
214153
214153
|
created = created || part;
|
|
214154
|
-
mkdir_(part, parts, mode,
|
|
214154
|
+
mkdir_(part, parts, mode, cache8, unlink, cwd, created, cb);
|
|
214155
214155
|
}
|
|
214156
214156
|
};
|
|
214157
214157
|
var checkCwdSync = (dir) => {
|
|
@@ -214176,16 +214176,16 @@ var require_mkdir = __commonJS({
|
|
|
214176
214176
|
const doChown = typeof uid === "number" && typeof gid === "number" && (uid !== opt.processUid || gid !== opt.processGid);
|
|
214177
214177
|
const preserve = opt.preserve;
|
|
214178
214178
|
const unlink = opt.unlink;
|
|
214179
|
-
const
|
|
214179
|
+
const cache8 = opt.cache;
|
|
214180
214180
|
const cwd = normPath(opt.cwd);
|
|
214181
214181
|
const done = (created2) => {
|
|
214182
|
-
cSet(
|
|
214182
|
+
cSet(cache8, dir, true);
|
|
214183
214183
|
if (created2 && doChown)
|
|
214184
214184
|
chownr.sync(created2, uid, gid);
|
|
214185
214185
|
if (needChmod)
|
|
214186
214186
|
fs14.chmodSync(dir, mode);
|
|
214187
214187
|
};
|
|
214188
|
-
if (
|
|
214188
|
+
if (cache8 && cGet(cache8, dir) === true)
|
|
214189
214189
|
return done();
|
|
214190
214190
|
if (dir === cwd) {
|
|
214191
214191
|
checkCwdSync(cwd);
|
|
@@ -214198,22 +214198,22 @@ var require_mkdir = __commonJS({
|
|
|
214198
214198
|
let created = null;
|
|
214199
214199
|
for (let p58 = parts.shift(), part = cwd; p58 && (part += "/" + p58); p58 = parts.shift()) {
|
|
214200
214200
|
part = normPath(path4.resolve(part));
|
|
214201
|
-
if (cGet(
|
|
214201
|
+
if (cGet(cache8, part))
|
|
214202
214202
|
continue;
|
|
214203
214203
|
try {
|
|
214204
214204
|
fs14.mkdirSync(part, mode);
|
|
214205
214205
|
created = created || part;
|
|
214206
|
-
cSet(
|
|
214206
|
+
cSet(cache8, part, true);
|
|
214207
214207
|
} catch (er) {
|
|
214208
214208
|
const st2 = fs14.lstatSync(part);
|
|
214209
214209
|
if (st2.isDirectory()) {
|
|
214210
|
-
cSet(
|
|
214210
|
+
cSet(cache8, part, true);
|
|
214211
214211
|
continue;
|
|
214212
214212
|
} else if (unlink) {
|
|
214213
214213
|
fs14.unlinkSync(part);
|
|
214214
214214
|
fs14.mkdirSync(part, mode);
|
|
214215
214215
|
created = created || part;
|
|
214216
|
-
cSet(
|
|
214216
|
+
cSet(cache8, part, true);
|
|
214217
214217
|
continue;
|
|
214218
214218
|
} else if (st2.isSymbolicLink())
|
|
214219
214219
|
return new SymlinkError(part, part + "/" + parts.join("/"));
|
|
@@ -214396,17 +214396,17 @@ var require_unpack = __commonJS({
|
|
|
214396
214396
|
};
|
|
214397
214397
|
var uint32 = (a65, b19, c56) => a65 === a65 >>> 0 ? a65 : b19 === b19 >>> 0 ? b19 : c56;
|
|
214398
214398
|
var cacheKeyNormalize = (path5) => stripSlash(normPath(path5)).normalize("NFKD").toLowerCase();
|
|
214399
|
-
var pruneCache = (
|
|
214399
|
+
var pruneCache = (cache8, abs) => {
|
|
214400
214400
|
abs = cacheKeyNormalize(abs);
|
|
214401
|
-
for (const path5 of
|
|
214401
|
+
for (const path5 of cache8.keys()) {
|
|
214402
214402
|
const pnorm = cacheKeyNormalize(path5);
|
|
214403
214403
|
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0)
|
|
214404
|
-
|
|
214404
|
+
cache8.delete(path5);
|
|
214405
214405
|
}
|
|
214406
214406
|
};
|
|
214407
|
-
var dropCache = (
|
|
214408
|
-
for (const key2 of
|
|
214409
|
-
|
|
214407
|
+
var dropCache = (cache8) => {
|
|
214408
|
+
for (const key2 of cache8.keys())
|
|
214409
|
+
cache8.delete(key2);
|
|
214410
214410
|
};
|
|
214411
214411
|
var Unpack = class extends Parser3 {
|
|
214412
214412
|
constructor(opt) {
|
|
@@ -254056,27 +254056,27 @@ var require_long = __commonJS({
|
|
|
254056
254056
|
var INT_CACHE = {};
|
|
254057
254057
|
var UINT_CACHE = {};
|
|
254058
254058
|
function fromInt(value5, unsigned2) {
|
|
254059
|
-
var obj2, cachedObj,
|
|
254059
|
+
var obj2, cachedObj, cache8;
|
|
254060
254060
|
if (unsigned2) {
|
|
254061
254061
|
value5 >>>= 0;
|
|
254062
|
-
if (
|
|
254062
|
+
if (cache8 = 0 <= value5 && value5 < 256) {
|
|
254063
254063
|
cachedObj = UINT_CACHE[value5];
|
|
254064
254064
|
if (cachedObj)
|
|
254065
254065
|
return cachedObj;
|
|
254066
254066
|
}
|
|
254067
254067
|
obj2 = fromBits(value5, (value5 | 0) < 0 ? -1 : 0, true);
|
|
254068
|
-
if (
|
|
254068
|
+
if (cache8)
|
|
254069
254069
|
UINT_CACHE[value5] = obj2;
|
|
254070
254070
|
return obj2;
|
|
254071
254071
|
} else {
|
|
254072
254072
|
value5 |= 0;
|
|
254073
|
-
if (
|
|
254073
|
+
if (cache8 = -128 <= value5 && value5 < 128) {
|
|
254074
254074
|
cachedObj = INT_CACHE[value5];
|
|
254075
254075
|
if (cachedObj)
|
|
254076
254076
|
return cachedObj;
|
|
254077
254077
|
}
|
|
254078
254078
|
obj2 = fromBits(value5, value5 < 0 ? -1 : 0, false);
|
|
254079
|
-
if (
|
|
254079
|
+
if (cache8)
|
|
254080
254080
|
INT_CACHE[value5] = obj2;
|
|
254081
254081
|
return obj2;
|
|
254082
254082
|
}
|
|
@@ -272347,17 +272347,17 @@ var require_unorm = __commonJS({
|
|
|
272347
272347
|
this.codepoint = cp;
|
|
272348
272348
|
this.feature = feature;
|
|
272349
272349
|
};
|
|
272350
|
-
var
|
|
272350
|
+
var cache8 = {};
|
|
272351
272351
|
var cacheCounter = [];
|
|
272352
272352
|
for (var i85 = 0; i85 <= 255; ++i85) {
|
|
272353
272353
|
cacheCounter[i85] = 0;
|
|
272354
272354
|
}
|
|
272355
272355
|
function fromCache(next, cp, needFeature) {
|
|
272356
|
-
var ret2 =
|
|
272356
|
+
var ret2 = cache8[cp];
|
|
272357
272357
|
if (!ret2) {
|
|
272358
272358
|
ret2 = next(cp, needFeature);
|
|
272359
272359
|
if (!!ret2.feature && ++cacheCounter[cp >> 8 & 255] > CACHE_THRESHOLD) {
|
|
272360
|
-
|
|
272360
|
+
cache8[cp] = ret2;
|
|
272361
272361
|
}
|
|
272362
272362
|
}
|
|
272363
272363
|
return ret2;
|
|
@@ -304984,9 +304984,9 @@ var require_imurmurhash = __commonJS({
|
|
|
304984
304984
|
"../../node_modules/.pnpm/imurmurhash@0.1.4/node_modules/imurmurhash/imurmurhash.js"(exports2, module2) {
|
|
304985
304985
|
"use strict";
|
|
304986
304986
|
(function() {
|
|
304987
|
-
var
|
|
304987
|
+
var cache8;
|
|
304988
304988
|
function MurmurHash3(key2, seed) {
|
|
304989
|
-
var m45 = this instanceof MurmurHash3 ? this :
|
|
304989
|
+
var m45 = this instanceof MurmurHash3 ? this : cache8;
|
|
304990
304990
|
m45.reset(seed);
|
|
304991
304991
|
if (typeof key2 === "string" && key2.length > 0) {
|
|
304992
304992
|
m45.hash(key2);
|
|
@@ -305068,7 +305068,7 @@ var require_imurmurhash = __commonJS({
|
|
|
305068
305068
|
this.rem = this.k1 = this.len = 0;
|
|
305069
305069
|
return this;
|
|
305070
305070
|
};
|
|
305071
|
-
|
|
305071
|
+
cache8 = new MurmurHash3();
|
|
305072
305072
|
if (typeof module2 != "undefined") {
|
|
305073
305073
|
module2.exports = MurmurHash3;
|
|
305074
305074
|
} else {
|
|
@@ -307079,7 +307079,7 @@ var require_range4 = __commonJS({
|
|
|
307079
307079
|
parseRange(range5) {
|
|
307080
307080
|
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
307081
307081
|
const memoKey = memoOpts + ":" + range5;
|
|
307082
|
-
const cached2 =
|
|
307082
|
+
const cached2 = cache8.get(memoKey);
|
|
307083
307083
|
if (cached2) {
|
|
307084
307084
|
return cached2;
|
|
307085
307085
|
}
|
|
@@ -307113,7 +307113,7 @@ var require_range4 = __commonJS({
|
|
|
307113
307113
|
rangeMap.delete("");
|
|
307114
307114
|
}
|
|
307115
307115
|
const result2 = [...rangeMap.values()];
|
|
307116
|
-
|
|
307116
|
+
cache8.set(memoKey, result2);
|
|
307117
307117
|
return result2;
|
|
307118
307118
|
}
|
|
307119
307119
|
intersects(range5, options22) {
|
|
@@ -307152,7 +307152,7 @@ var require_range4 = __commonJS({
|
|
|
307152
307152
|
};
|
|
307153
307153
|
module2.exports = Range2;
|
|
307154
307154
|
var LRU = require_lrucache2();
|
|
307155
|
-
var
|
|
307155
|
+
var cache8 = new LRU();
|
|
307156
307156
|
var parseOptions = require_parse_options3();
|
|
307157
307157
|
var Comparator = require_comparator3();
|
|
307158
307158
|
var debug = require_debug5();
|
|
@@ -336079,11 +336079,11 @@ var init_loadConfig = __esm({
|
|
|
336079
336079
|
});
|
|
336080
336080
|
|
|
336081
336081
|
// ../../node_modules/.pnpm/@ledgerhq+hw-app-eth@6.29.7/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/contracts.js
|
|
336082
|
-
var
|
|
336082
|
+
var import_axios24, __assign4, __awaiter18, __generator2, loadInfosForContractMethod2;
|
|
336083
336083
|
var init_contracts = __esm({
|
|
336084
336084
|
"../../node_modules/.pnpm/@ledgerhq+hw-app-eth@6.29.7/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/contracts.js"() {
|
|
336085
336085
|
"use strict";
|
|
336086
|
-
|
|
336086
|
+
import_axios24 = __toESM(require_axios5());
|
|
336087
336087
|
init_loadConfig();
|
|
336088
336088
|
init_lib_es4();
|
|
336089
336089
|
__assign4 = function() {
|
|
@@ -336212,7 +336212,7 @@ var init_contracts = __esm({
|
|
|
336212
336212
|
if (!pluginBaseURL)
|
|
336213
336213
|
return [3, 2];
|
|
336214
336214
|
url_1 = "".concat(pluginBaseURL, "/plugins/ethereum.json");
|
|
336215
|
-
return [4,
|
|
336215
|
+
return [4, import_axios24.default.get("".concat(pluginBaseURL, "/plugins/ethereum.json")).then(function(r37) {
|
|
336216
336216
|
return r37.data;
|
|
336217
336217
|
})["catch"](function(e35) {
|
|
336218
336218
|
log4("error", "could not fetch from " + url_1 + ": " + String(e35));
|
|
@@ -336277,10 +336277,10 @@ var init_erc20 = __esm({
|
|
|
336277
336277
|
return a65.startsWith("0x") ? a65 : "0x" + a65;
|
|
336278
336278
|
};
|
|
336279
336279
|
get4 = /* @__PURE__ */ function() {
|
|
336280
|
-
var
|
|
336280
|
+
var cache8;
|
|
336281
336281
|
return function() {
|
|
336282
|
-
if (
|
|
336283
|
-
return
|
|
336282
|
+
if (cache8)
|
|
336283
|
+
return cache8;
|
|
336284
336284
|
var buf2 = Buffer.from(import_erc20_signatures20.default, "base64");
|
|
336285
336285
|
var map129 = {};
|
|
336286
336286
|
var entries = [];
|
|
@@ -336321,7 +336321,7 @@ var init_erc20 = __esm({
|
|
|
336321
336321
|
return map129[String(chainId2) + ":" + contractAddress2];
|
|
336322
336322
|
}
|
|
336323
336323
|
};
|
|
336324
|
-
|
|
336324
|
+
cache8 = api7;
|
|
336325
336325
|
return api7;
|
|
336326
336326
|
};
|
|
336327
336327
|
}();
|
|
@@ -336336,11 +336336,11 @@ function axiosErrorHandling(e35) {
|
|
|
336336
336336
|
return null;
|
|
336337
336337
|
throw e35;
|
|
336338
336338
|
}
|
|
336339
|
-
var
|
|
336339
|
+
var import_axios25, __awaiter19, __generator3, getNFTInfo2, loadNftPlugin2;
|
|
336340
336340
|
var init_nfts = __esm({
|
|
336341
336341
|
"../../node_modules/.pnpm/@ledgerhq+hw-app-eth@6.29.7/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/nfts.js"() {
|
|
336342
336342
|
"use strict";
|
|
336343
|
-
|
|
336343
|
+
import_axios25 = __toESM(require_axios5());
|
|
336344
336344
|
init_loadConfig();
|
|
336345
336345
|
__awaiter19 = function(thisArg, _arguments, P20, generator) {
|
|
336346
336346
|
function adopt(value5) {
|
|
@@ -336459,7 +336459,7 @@ var init_nfts = __esm({
|
|
|
336459
336459
|
/*return*/
|
|
336460
336460
|
];
|
|
336461
336461
|
url4 = "".concat(nftExplorerBaseURL, "/").concat(chainId, "/contracts/").concat(contractAddress);
|
|
336462
|
-
return [4,
|
|
336462
|
+
return [4, import_axios25.default.get(url4).then(function(r37) {
|
|
336463
336463
|
return r37.data;
|
|
336464
336464
|
})["catch"](axiosErrorHandling)];
|
|
336465
336465
|
case 1:
|
|
@@ -336497,7 +336497,7 @@ var init_nfts = __esm({
|
|
|
336497
336497
|
/*return*/
|
|
336498
336498
|
];
|
|
336499
336499
|
url4 = "".concat(nftExplorerBaseURL, "/").concat(chainId, "/contracts/").concat(contractAddress, "/plugin-selector/").concat(selector);
|
|
336500
|
-
return [4,
|
|
336500
|
+
return [4, import_axios25.default.get(url4).then(function(r37) {
|
|
336501
336501
|
return r37.data;
|
|
336502
336502
|
})["catch"](axiosErrorHandling)];
|
|
336503
336503
|
case 1:
|
|
@@ -353728,9 +353728,9 @@ var require_axios6 = __commonJS({
|
|
|
353728
353728
|
}
|
|
353729
353729
|
var { toString: toString12 } = Object.prototype;
|
|
353730
353730
|
var { getPrototypeOf: getPrototypeOf3 } = Object;
|
|
353731
|
-
var kindOf3 = /* @__PURE__ */ ((
|
|
353731
|
+
var kindOf3 = /* @__PURE__ */ ((cache8) => (thing) => {
|
|
353732
353732
|
const str = toString12.call(thing);
|
|
353733
|
-
return
|
|
353733
|
+
return cache8[str] || (cache8[str] = str.slice(8, -1).toLowerCase());
|
|
353734
353734
|
})(/* @__PURE__ */ Object.create(null));
|
|
353735
353735
|
var kindOfTest3 = (type4) => {
|
|
353736
353736
|
type4 = type4.toLowerCase();
|
|
@@ -376573,10 +376573,10 @@ var require_mustache = __commonJS({
|
|
|
376573
376573
|
return new Context2(view, this);
|
|
376574
376574
|
};
|
|
376575
376575
|
Context2.prototype.lookup = function lookup(name3) {
|
|
376576
|
-
var
|
|
376576
|
+
var cache8 = this.cache;
|
|
376577
376577
|
var value5;
|
|
376578
|
-
if (
|
|
376579
|
-
value5 =
|
|
376578
|
+
if (cache8.hasOwnProperty(name3)) {
|
|
376579
|
+
value5 = cache8[name3];
|
|
376580
376580
|
} else {
|
|
376581
376581
|
var context = this, intermediateValue, names3, index, lookupHit = false;
|
|
376582
376582
|
while (context) {
|
|
@@ -376599,7 +376599,7 @@ var require_mustache = __commonJS({
|
|
|
376599
376599
|
}
|
|
376600
376600
|
context = context.parent;
|
|
376601
376601
|
}
|
|
376602
|
-
|
|
376602
|
+
cache8[name3] = value5;
|
|
376603
376603
|
}
|
|
376604
376604
|
if (isFunction5(value5))
|
|
376605
376605
|
value5 = value5.call(this.view);
|
|
@@ -376625,13 +376625,13 @@ var require_mustache = __commonJS({
|
|
|
376625
376625
|
}
|
|
376626
376626
|
};
|
|
376627
376627
|
Writer3.prototype.parse = function parse13(template, tags) {
|
|
376628
|
-
var
|
|
376628
|
+
var cache8 = this.templateCache;
|
|
376629
376629
|
var cacheKey = template + ":" + (tags || mustache.tags).join(":");
|
|
376630
|
-
var isCacheEnabled = typeof
|
|
376631
|
-
var tokens8 = isCacheEnabled ?
|
|
376630
|
+
var isCacheEnabled = typeof cache8 !== "undefined";
|
|
376631
|
+
var tokens8 = isCacheEnabled ? cache8.get(cacheKey) : void 0;
|
|
376632
376632
|
if (tokens8 == void 0) {
|
|
376633
376633
|
tokens8 = parseTemplate(template, tags);
|
|
376634
|
-
isCacheEnabled &&
|
|
376634
|
+
isCacheEnabled && cache8.set(cacheKey, tokens8);
|
|
376635
376635
|
}
|
|
376636
376636
|
return tokens8;
|
|
376637
376637
|
};
|
|
@@ -376749,8 +376749,8 @@ var require_mustache = __commonJS({
|
|
|
376749
376749
|
* object with set, get and clear methods. This can also be used to disable
|
|
376750
376750
|
* the cache by setting it to the literal `undefined`.
|
|
376751
376751
|
*/
|
|
376752
|
-
set templateCache(
|
|
376753
|
-
defaultWriter.templateCache =
|
|
376752
|
+
set templateCache(cache8) {
|
|
376753
|
+
defaultWriter.templateCache = cache8;
|
|
376754
376754
|
},
|
|
376755
376755
|
/**
|
|
376756
376756
|
* Gets the default or overridden caching object from the default writer.
|
|
@@ -408799,9 +408799,9 @@ var require_axios7 = __commonJS({
|
|
|
408799
408799
|
}
|
|
408800
408800
|
var { toString: toString12 } = Object.prototype;
|
|
408801
408801
|
var { getPrototypeOf: getPrototypeOf3 } = Object;
|
|
408802
|
-
var kindOf3 = /* @__PURE__ */ ((
|
|
408802
|
+
var kindOf3 = /* @__PURE__ */ ((cache8) => (thing) => {
|
|
408803
408803
|
const str = toString12.call(thing);
|
|
408804
|
-
return
|
|
408804
|
+
return cache8[str] || (cache8[str] = str.slice(8, -1).toLowerCase());
|
|
408805
408805
|
})(/* @__PURE__ */ Object.create(null));
|
|
408806
408806
|
var kindOfTest3 = (type4) => {
|
|
408807
408807
|
type4 = type4.toLowerCase();
|
|
@@ -418431,16 +418431,16 @@ var require_lodash2 = __commonJS({
|
|
|
418431
418431
|
return this.__data__.has(key2);
|
|
418432
418432
|
}
|
|
418433
418433
|
function stackSet(key2, value5) {
|
|
418434
|
-
var
|
|
418435
|
-
if (
|
|
418436
|
-
var pairs =
|
|
418434
|
+
var cache8 = this.__data__;
|
|
418435
|
+
if (cache8 instanceof ListCache) {
|
|
418436
|
+
var pairs = cache8.__data__;
|
|
418437
418437
|
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
418438
418438
|
pairs.push([key2, value5]);
|
|
418439
418439
|
return this;
|
|
418440
418440
|
}
|
|
418441
|
-
|
|
418441
|
+
cache8 = this.__data__ = new MapCache(pairs);
|
|
418442
418442
|
}
|
|
418443
|
-
|
|
418443
|
+
cache8.set(key2, value5);
|
|
418444
418444
|
return this;
|
|
418445
418445
|
}
|
|
418446
418446
|
Stack2.prototype.clear = stackClear;
|
|
@@ -464213,9 +464213,9 @@ var require_HttpApi = __commonJS({
|
|
|
464213
464213
|
transactions: zod_1.z.array(blockShortTxt)
|
|
464214
464214
|
});
|
|
464215
464215
|
var TypedCache = class {
|
|
464216
|
-
constructor(namespace,
|
|
464216
|
+
constructor(namespace, cache8, codec, keyEncoder) {
|
|
464217
464217
|
this.namespace = namespace;
|
|
464218
|
-
this.cache =
|
|
464218
|
+
this.cache = cache8;
|
|
464219
464219
|
this.codec = codec;
|
|
464220
464220
|
this.keyEncoder = keyEncoder;
|
|
464221
464221
|
}
|
|
@@ -478551,11 +478551,11 @@ var require_isTaxID = __commonJS({
|
|
|
478551
478551
|
function _getRequireWildcardCache() {
|
|
478552
478552
|
if (typeof WeakMap !== "function")
|
|
478553
478553
|
return null;
|
|
478554
|
-
var
|
|
478554
|
+
var cache8 = /* @__PURE__ */ new WeakMap();
|
|
478555
478555
|
_getRequireWildcardCache = function _getRequireWildcardCache2() {
|
|
478556
|
-
return
|
|
478556
|
+
return cache8;
|
|
478557
478557
|
};
|
|
478558
|
-
return
|
|
478558
|
+
return cache8;
|
|
478559
478559
|
}
|
|
478560
478560
|
function _interopRequireWildcard(obj2) {
|
|
478561
478561
|
if (obj2 && obj2.__esModule) {
|
|
@@ -478564,9 +478564,9 @@ var require_isTaxID = __commonJS({
|
|
|
478564
478564
|
if (obj2 === null || _typeof(obj2) !== "object" && typeof obj2 !== "function") {
|
|
478565
478565
|
return { default: obj2 };
|
|
478566
478566
|
}
|
|
478567
|
-
var
|
|
478568
|
-
if (
|
|
478569
|
-
return
|
|
478567
|
+
var cache8 = _getRequireWildcardCache();
|
|
478568
|
+
if (cache8 && cache8.has(obj2)) {
|
|
478569
|
+
return cache8.get(obj2);
|
|
478570
478570
|
}
|
|
478571
478571
|
var newObj = {};
|
|
478572
478572
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
@@ -478581,8 +478581,8 @@ var require_isTaxID = __commonJS({
|
|
|
478581
478581
|
}
|
|
478582
478582
|
}
|
|
478583
478583
|
newObj.default = obj2;
|
|
478584
|
-
if (
|
|
478585
|
-
|
|
478584
|
+
if (cache8) {
|
|
478585
|
+
cache8.set(obj2, newObj);
|
|
478586
478586
|
}
|
|
478587
478587
|
return newObj;
|
|
478588
478588
|
}
|
|
@@ -481129,11 +481129,11 @@ var require_isVAT = __commonJS({
|
|
|
481129
481129
|
function _getRequireWildcardCache() {
|
|
481130
481130
|
if (typeof WeakMap !== "function")
|
|
481131
481131
|
return null;
|
|
481132
|
-
var
|
|
481132
|
+
var cache8 = /* @__PURE__ */ new WeakMap();
|
|
481133
481133
|
_getRequireWildcardCache = function _getRequireWildcardCache2() {
|
|
481134
|
-
return
|
|
481134
|
+
return cache8;
|
|
481135
481135
|
};
|
|
481136
|
-
return
|
|
481136
|
+
return cache8;
|
|
481137
481137
|
}
|
|
481138
481138
|
function _interopRequireWildcard(obj2) {
|
|
481139
481139
|
if (obj2 && obj2.__esModule) {
|
|
@@ -481142,9 +481142,9 @@ var require_isVAT = __commonJS({
|
|
|
481142
481142
|
if (obj2 === null || _typeof(obj2) !== "object" && typeof obj2 !== "function") {
|
|
481143
481143
|
return { default: obj2 };
|
|
481144
481144
|
}
|
|
481145
|
-
var
|
|
481146
|
-
if (
|
|
481147
|
-
return
|
|
481145
|
+
var cache8 = _getRequireWildcardCache();
|
|
481146
|
+
if (cache8 && cache8.has(obj2)) {
|
|
481147
|
+
return cache8.get(obj2);
|
|
481148
481148
|
}
|
|
481149
481149
|
var newObj = {};
|
|
481150
481150
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
@@ -481159,8 +481159,8 @@ var require_isVAT = __commonJS({
|
|
|
481159
481159
|
}
|
|
481160
481160
|
}
|
|
481161
481161
|
newObj.default = obj2;
|
|
481162
|
-
if (
|
|
481163
|
-
|
|
481162
|
+
if (cache8) {
|
|
481163
|
+
cache8.set(obj2, newObj);
|
|
481164
481164
|
}
|
|
481165
481165
|
return newObj;
|
|
481166
481166
|
}
|
|
@@ -481539,11 +481539,11 @@ var require_validator4 = __commonJS({
|
|
|
481539
481539
|
function _getRequireWildcardCache() {
|
|
481540
481540
|
if (typeof WeakMap !== "function")
|
|
481541
481541
|
return null;
|
|
481542
|
-
var
|
|
481542
|
+
var cache8 = /* @__PURE__ */ new WeakMap();
|
|
481543
481543
|
_getRequireWildcardCache = function _getRequireWildcardCache2() {
|
|
481544
|
-
return
|
|
481544
|
+
return cache8;
|
|
481545
481545
|
};
|
|
481546
|
-
return
|
|
481546
|
+
return cache8;
|
|
481547
481547
|
}
|
|
481548
481548
|
function _interopRequireWildcard(obj2) {
|
|
481549
481549
|
if (obj2 && obj2.__esModule) {
|
|
@@ -481552,9 +481552,9 @@ var require_validator4 = __commonJS({
|
|
|
481552
481552
|
if (obj2 === null || _typeof(obj2) !== "object" && typeof obj2 !== "function") {
|
|
481553
481553
|
return { default: obj2 };
|
|
481554
481554
|
}
|
|
481555
|
-
var
|
|
481556
|
-
if (
|
|
481557
|
-
return
|
|
481555
|
+
var cache8 = _getRequireWildcardCache();
|
|
481556
|
+
if (cache8 && cache8.has(obj2)) {
|
|
481557
|
+
return cache8.get(obj2);
|
|
481558
481558
|
}
|
|
481559
481559
|
var newObj = {};
|
|
481560
481560
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
@@ -481569,8 +481569,8 @@ var require_validator4 = __commonJS({
|
|
|
481569
481569
|
}
|
|
481570
481570
|
}
|
|
481571
481571
|
newObj.default = obj2;
|
|
481572
|
-
if (
|
|
481573
|
-
|
|
481572
|
+
if (cache8) {
|
|
481573
|
+
cache8.set(obj2, newObj);
|
|
481574
481574
|
}
|
|
481575
481575
|
return newObj;
|
|
481576
481576
|
}
|
|
@@ -514961,9 +514961,9 @@ var require_ReactElement = __commonJS({
|
|
|
514961
514961
|
if (obj2 === null || typeof obj2 !== "object" && typeof obj2 !== "function") {
|
|
514962
514962
|
return { default: obj2 };
|
|
514963
514963
|
}
|
|
514964
|
-
var
|
|
514965
|
-
if (
|
|
514966
|
-
return
|
|
514964
|
+
var cache8 = _getRequireWildcardCache(nodeInterop);
|
|
514965
|
+
if (cache8 && cache8.has(obj2)) {
|
|
514966
|
+
return cache8.get(obj2);
|
|
514967
514967
|
}
|
|
514968
514968
|
var newObj = {};
|
|
514969
514969
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
@@ -514978,8 +514978,8 @@ var require_ReactElement = __commonJS({
|
|
|
514978
514978
|
}
|
|
514979
514979
|
}
|
|
514980
514980
|
newObj.default = obj2;
|
|
514981
|
-
if (
|
|
514982
|
-
|
|
514981
|
+
if (cache8) {
|
|
514982
|
+
cache8.set(obj2, newObj);
|
|
514983
514983
|
}
|
|
514984
514984
|
return newObj;
|
|
514985
514985
|
}
|
|
@@ -518432,9 +518432,9 @@ var require_asymmetricMatchers = __commonJS({
|
|
|
518432
518432
|
if (obj2 === null || typeof obj2 !== "object" && typeof obj2 !== "function") {
|
|
518433
518433
|
return { default: obj2 };
|
|
518434
518434
|
}
|
|
518435
|
-
var
|
|
518436
|
-
if (
|
|
518437
|
-
return
|
|
518435
|
+
var cache8 = _getRequireWildcardCache(nodeInterop);
|
|
518436
|
+
if (cache8 && cache8.has(obj2)) {
|
|
518437
|
+
return cache8.get(obj2);
|
|
518438
518438
|
}
|
|
518439
518439
|
var newObj = {};
|
|
518440
518440
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
@@ -518449,8 +518449,8 @@ var require_asymmetricMatchers = __commonJS({
|
|
|
518449
518449
|
}
|
|
518450
518450
|
}
|
|
518451
518451
|
newObj.default = obj2;
|
|
518452
|
-
if (
|
|
518453
|
-
|
|
518452
|
+
if (cache8) {
|
|
518453
|
+
cache8.set(obj2, newObj);
|
|
518454
518454
|
}
|
|
518455
518455
|
return newObj;
|
|
518456
518456
|
}
|
|
@@ -524503,9 +524503,9 @@ var require_build19 = __commonJS({
|
|
|
524503
524503
|
if (obj2 === null || typeof obj2 !== "object" && typeof obj2 !== "function") {
|
|
524504
524504
|
return { default: obj2 };
|
|
524505
524505
|
}
|
|
524506
|
-
var
|
|
524507
|
-
if (
|
|
524508
|
-
return
|
|
524506
|
+
var cache8 = _getRequireWildcardCache(nodeInterop);
|
|
524507
|
+
if (cache8 && cache8.has(obj2)) {
|
|
524508
|
+
return cache8.get(obj2);
|
|
524509
524509
|
}
|
|
524510
524510
|
var newObj = {};
|
|
524511
524511
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
@@ -524520,8 +524520,8 @@ var require_build19 = __commonJS({
|
|
|
524520
524520
|
}
|
|
524521
524521
|
}
|
|
524522
524522
|
newObj.default = obj2;
|
|
524523
|
-
if (
|
|
524524
|
-
|
|
524523
|
+
if (cache8) {
|
|
524524
|
+
cache8.set(obj2, newObj);
|
|
524525
524525
|
}
|
|
524526
524526
|
return newObj;
|
|
524527
524527
|
}
|
|
@@ -525160,9 +525160,9 @@ var require_build20 = __commonJS({
|
|
|
525160
525160
|
if (obj2 === null || typeof obj2 !== "object" && typeof obj2 !== "function") {
|
|
525161
525161
|
return { default: obj2 };
|
|
525162
525162
|
}
|
|
525163
|
-
var
|
|
525164
|
-
if (
|
|
525165
|
-
return
|
|
525163
|
+
var cache8 = _getRequireWildcardCache(nodeInterop);
|
|
525164
|
+
if (cache8 && cache8.has(obj2)) {
|
|
525165
|
+
return cache8.get(obj2);
|
|
525166
525166
|
}
|
|
525167
525167
|
var newObj = {};
|
|
525168
525168
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
@@ -525177,8 +525177,8 @@ var require_build20 = __commonJS({
|
|
|
525177
525177
|
}
|
|
525178
525178
|
}
|
|
525179
525179
|
newObj.default = obj2;
|
|
525180
|
-
if (
|
|
525181
|
-
|
|
525180
|
+
if (cache8) {
|
|
525181
|
+
cache8.set(obj2, newObj);
|
|
525182
525182
|
}
|
|
525183
525183
|
return newObj;
|
|
525184
525184
|
}
|
|
@@ -529803,7 +529803,7 @@ var require_package8 = __commonJS({
|
|
|
529803
529803
|
module2.exports = {
|
|
529804
529804
|
name: "@ledgerhq/live-common",
|
|
529805
529805
|
description: "Common ground for the Ledger Live apps",
|
|
529806
|
-
version: "34.37.0-next.
|
|
529806
|
+
version: "34.37.0-next.2",
|
|
529807
529807
|
repository: {
|
|
529808
529808
|
type: "git",
|
|
529809
529809
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -536604,7 +536604,7 @@ var require_package9 = __commonJS({
|
|
|
536604
536604
|
"package.json"(exports2, module2) {
|
|
536605
536605
|
module2.exports = {
|
|
536606
536606
|
name: "@ledgerhq/live-cli",
|
|
536607
|
-
version: "24.18.7-next.
|
|
536607
|
+
version: "24.18.7-next.2",
|
|
536608
536608
|
description: "ledger-live CLI version",
|
|
536609
536609
|
repository: {
|
|
536610
536610
|
type: "git",
|
|
@@ -548775,36 +548775,36 @@ var makeLRUCache = (f43, keyExtractor = () => "", lruOpts = {
|
|
|
548775
548775
|
...lruOpts,
|
|
548776
548776
|
ttlAutopurge: true
|
|
548777
548777
|
};
|
|
548778
|
-
const
|
|
548778
|
+
const cache8 = new lru_cache_default(lruOpts);
|
|
548779
548779
|
const result2 = (...args3) => {
|
|
548780
548780
|
const key2 = keyExtractor(...args3);
|
|
548781
|
-
let promise =
|
|
548781
|
+
let promise = cache8.get(key2);
|
|
548782
548782
|
if (promise)
|
|
548783
548783
|
return promise;
|
|
548784
548784
|
promise = f43(...args3).catch((e35) => {
|
|
548785
|
-
|
|
548785
|
+
cache8.delete(key2);
|
|
548786
548786
|
throw e35;
|
|
548787
548787
|
});
|
|
548788
|
-
|
|
548788
|
+
cache8.set(key2, promise);
|
|
548789
548789
|
return promise;
|
|
548790
548790
|
};
|
|
548791
548791
|
result2.force = (...args3) => {
|
|
548792
548792
|
const key2 = keyExtractor(...args3);
|
|
548793
548793
|
const promise = f43(...args3).catch((e35) => {
|
|
548794
|
-
|
|
548794
|
+
cache8.delete(key2);
|
|
548795
548795
|
throw e35;
|
|
548796
548796
|
});
|
|
548797
|
-
|
|
548797
|
+
cache8.set(key2, promise);
|
|
548798
548798
|
return promise;
|
|
548799
548799
|
};
|
|
548800
548800
|
result2.hydrate = (key2, value5) => {
|
|
548801
|
-
|
|
548801
|
+
cache8.set(key2, Promise.resolve(value5));
|
|
548802
548802
|
};
|
|
548803
548803
|
result2.clear = (key2) => {
|
|
548804
|
-
|
|
548804
|
+
cache8.delete(key2);
|
|
548805
548805
|
};
|
|
548806
548806
|
result2.reset = () => {
|
|
548807
|
-
|
|
548807
|
+
cache8.clear();
|
|
548808
548808
|
};
|
|
548809
548809
|
return result2;
|
|
548810
548810
|
};
|
|
@@ -548819,9 +548819,9 @@ function bind(fn3, thisArg) {
|
|
|
548819
548819
|
// ../../node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js
|
|
548820
548820
|
var { toString: toString2 } = Object.prototype;
|
|
548821
548821
|
var { getPrototypeOf } = Object;
|
|
548822
|
-
var kindOf = /* @__PURE__ */ ((
|
|
548822
|
+
var kindOf = /* @__PURE__ */ ((cache8) => (thing) => {
|
|
548823
548823
|
const str = toString2.call(thing);
|
|
548824
|
-
return
|
|
548824
|
+
return cache8[str] || (cache8[str] = str.slice(8, -1).toLowerCase());
|
|
548825
548825
|
})(/* @__PURE__ */ Object.create(null));
|
|
548826
548826
|
var kindOfTest = (type4) => {
|
|
548827
548827
|
type4 = type4.toLowerCase();
|
|
@@ -560345,103 +560345,6 @@ var toTransactionStatusRawCommon = (ts) => ({
|
|
|
560345
560345
|
recipientIsReadOnly: ts.recipientIsReadOnly
|
|
560346
560346
|
});
|
|
560347
560347
|
|
|
560348
|
-
// ../../libs/live-config/lib-es/LiveConfig.js
|
|
560349
|
-
var import_merge = __toESM(require("lodash/merge"));
|
|
560350
|
-
var LiveConfig = class _LiveConfig {
|
|
560351
|
-
provider;
|
|
560352
|
-
config = {};
|
|
560353
|
-
appVersion;
|
|
560354
|
-
platform;
|
|
560355
|
-
environment;
|
|
560356
|
-
static instance = new _LiveConfig();
|
|
560357
|
-
constructor() {
|
|
560358
|
-
}
|
|
560359
|
-
static setAppinfo(params) {
|
|
560360
|
-
_LiveConfig.instance.appVersion = params.appVersion;
|
|
560361
|
-
_LiveConfig.instance.platform = params.platform;
|
|
560362
|
-
_LiveConfig.instance.environment = params.environment;
|
|
560363
|
-
}
|
|
560364
|
-
static setProvider(provider) {
|
|
560365
|
-
_LiveConfig.instance.provider = provider;
|
|
560366
|
-
}
|
|
560367
|
-
static setConfig(config4) {
|
|
560368
|
-
_LiveConfig.instance.config = config4;
|
|
560369
|
-
}
|
|
560370
|
-
static getValueByKey(key2) {
|
|
560371
|
-
if (Object.keys(_LiveConfig.instance.config).length === 0) {
|
|
560372
|
-
throw new Error("Config not set");
|
|
560373
|
-
}
|
|
560374
|
-
if (!_LiveConfig.instance.provider) {
|
|
560375
|
-
return _LiveConfig.instance.config[key2]?.default;
|
|
560376
|
-
}
|
|
560377
|
-
const providerValue = _LiveConfig.instance.provider.getValueByKey(key2, _LiveConfig.instance.config[key2]) ?? _LiveConfig.instance.config[key2]?.default;
|
|
560378
|
-
if (_LiveConfig.instance.config[key2]?.type === "object") {
|
|
560379
|
-
return (0, import_merge.default)(_LiveConfig.instance.config[key2]?.default, providerValue);
|
|
560380
|
-
}
|
|
560381
|
-
return providerValue;
|
|
560382
|
-
}
|
|
560383
|
-
static getDefaultValueByKey(key2) {
|
|
560384
|
-
if (Object.keys(_LiveConfig.instance.config).length === 0) {
|
|
560385
|
-
throw new Error("Config not set");
|
|
560386
|
-
}
|
|
560387
|
-
return _LiveConfig.instance.config[key2]?.default;
|
|
560388
|
-
}
|
|
560389
|
-
};
|
|
560390
|
-
|
|
560391
|
-
// ../../libs/ledger-live-common/lib-es/config/index.js
|
|
560392
|
-
var getSharedConfiguration = () => {
|
|
560393
|
-
const config4 = LiveConfig.getValueByKey("config_currency");
|
|
560394
|
-
if (!config4) {
|
|
560395
|
-
throw new Error("Configuration config_currency not found, please check Firebase Remote Config");
|
|
560396
|
-
}
|
|
560397
|
-
return config4;
|
|
560398
|
-
};
|
|
560399
|
-
var getCurrencyConfiguration = (currency24) => {
|
|
560400
|
-
const currencyData = LiveConfig.getValueByKey(`config_currency_${currency24.id}`);
|
|
560401
|
-
if (!currencyData) {
|
|
560402
|
-
throw new Error(`No currency configuration available for ${currency24.id}`);
|
|
560403
|
-
}
|
|
560404
|
-
return currencyData;
|
|
560405
|
-
};
|
|
560406
|
-
|
|
560407
|
-
// ../../libs/ledger-live-common/lib-es/sanction/index.js
|
|
560408
|
-
var cache = makeLRUCache(fetchSanctionedAddresses, () => "all_sanctioned_addresses", hours(12));
|
|
560409
|
-
async function fetchSanctionedAddresses() {
|
|
560410
|
-
const { data: data6 } = await axios_default.get("https://ofac-compliance.pages.dev/all_sanctioned_addresses.json");
|
|
560411
|
-
return data6;
|
|
560412
|
-
}
|
|
560413
|
-
async function isAddressSanctioned(currency24, address4) {
|
|
560414
|
-
if (!isCheckBlacklistAddressEnabled(currency24)) {
|
|
560415
|
-
return false;
|
|
560416
|
-
}
|
|
560417
|
-
const temporarySanctionedAddresses = LiveConfig.getValueByKey(`tmp_sanctioned_addresses`);
|
|
560418
|
-
const data6 = await cache();
|
|
560419
|
-
const addresses = data6[currency24.ticker] || [];
|
|
560420
|
-
if (temporarySanctionedAddresses) {
|
|
560421
|
-
return addresses.concat(temporarySanctionedAddresses).includes(address4);
|
|
560422
|
-
}
|
|
560423
|
-
return addresses.includes(address4);
|
|
560424
|
-
}
|
|
560425
|
-
function isCheckBlacklistAddressEnabled(currency24) {
|
|
560426
|
-
const currencyConfig = tryGetCurrencyConfig(currency24);
|
|
560427
|
-
if (currencyConfig && "checkBlacklistAddress" in currencyConfig) {
|
|
560428
|
-
return currencyConfig.checkBlacklistAddress === true;
|
|
560429
|
-
} else {
|
|
560430
|
-
const sharedConfiguration = getSharedConfiguration();
|
|
560431
|
-
if ("checkBlacklistAddress" in sharedConfiguration) {
|
|
560432
|
-
return sharedConfiguration.checkBlacklistAddress === true;
|
|
560433
|
-
}
|
|
560434
|
-
}
|
|
560435
|
-
return false;
|
|
560436
|
-
}
|
|
560437
|
-
function tryGetCurrencyConfig(currency24) {
|
|
560438
|
-
try {
|
|
560439
|
-
return getCurrencyConfiguration(currency24);
|
|
560440
|
-
} catch (error) {
|
|
560441
|
-
return void 0;
|
|
560442
|
-
}
|
|
560443
|
-
}
|
|
560444
|
-
|
|
560445
560348
|
// ../../libs/ledger-live-common/lib-es/bridge/impl.js
|
|
560446
560349
|
init_lib_es();
|
|
560447
560350
|
|
|
@@ -585258,35 +585161,35 @@ var WeakCache = class {
|
|
|
585258
585161
|
|
|
585259
585162
|
// ../../node_modules/.pnpm/@apollo+client@3.12.6_graphql@16.10.0_react@18.3.1/node_modules/@apollo/client/utilities/caching/caches.js
|
|
585260
585163
|
var scheduledCleanup = /* @__PURE__ */ new WeakSet();
|
|
585261
|
-
function schedule(
|
|
585262
|
-
if (
|
|
585164
|
+
function schedule(cache8) {
|
|
585165
|
+
if (cache8.size <= (cache8.max || -1)) {
|
|
585263
585166
|
return;
|
|
585264
585167
|
}
|
|
585265
|
-
if (!scheduledCleanup.has(
|
|
585266
|
-
scheduledCleanup.add(
|
|
585168
|
+
if (!scheduledCleanup.has(cache8)) {
|
|
585169
|
+
scheduledCleanup.add(cache8);
|
|
585267
585170
|
setTimeout(function() {
|
|
585268
|
-
|
|
585269
|
-
scheduledCleanup.delete(
|
|
585171
|
+
cache8.clean();
|
|
585172
|
+
scheduledCleanup.delete(cache8);
|
|
585270
585173
|
}, 100);
|
|
585271
585174
|
}
|
|
585272
585175
|
}
|
|
585273
585176
|
var AutoCleanedWeakCache = function(max2, dispose) {
|
|
585274
|
-
var
|
|
585275
|
-
|
|
585177
|
+
var cache8 = new WeakCache(max2, dispose);
|
|
585178
|
+
cache8.set = function(key2, value5) {
|
|
585276
585179
|
var ret2 = WeakCache.prototype.set.call(this, key2, value5);
|
|
585277
585180
|
schedule(this);
|
|
585278
585181
|
return ret2;
|
|
585279
585182
|
};
|
|
585280
|
-
return
|
|
585183
|
+
return cache8;
|
|
585281
585184
|
};
|
|
585282
585185
|
var AutoCleanedStrongCache = function(max2, dispose) {
|
|
585283
|
-
var
|
|
585284
|
-
|
|
585186
|
+
var cache8 = new StrongCache(max2, dispose);
|
|
585187
|
+
cache8.set = function(key2, value5) {
|
|
585285
585188
|
var ret2 = StrongCache.prototype.set.call(this, key2, value5);
|
|
585286
585189
|
schedule(this);
|
|
585287
585190
|
return ret2;
|
|
585288
585191
|
};
|
|
585289
|
-
return
|
|
585192
|
+
return cache8;
|
|
585290
585193
|
};
|
|
585291
585194
|
|
|
585292
585195
|
// ../../node_modules/.pnpm/@apollo+client@3.12.6_graphql@16.10.0_react@18.3.1/node_modules/@apollo/client/utilities/caching/sizes.js
|
|
@@ -585369,8 +585272,8 @@ function isDefined(value5) {
|
|
|
585369
585272
|
return value5 != null;
|
|
585370
585273
|
}
|
|
585371
585274
|
function transformInfo(transform2) {
|
|
585372
|
-
return recurseTransformInfo(transform2).map(function(
|
|
585373
|
-
return { cache:
|
|
585275
|
+
return recurseTransformInfo(transform2).map(function(cache8) {
|
|
585276
|
+
return { cache: cache8 };
|
|
585374
585277
|
});
|
|
585375
585278
|
}
|
|
585376
585279
|
function recurseTransformInfo(transform2) {
|
|
@@ -586107,30 +586010,30 @@ function defaultMakeCacheKey(...args3) {
|
|
|
586107
586010
|
}
|
|
586108
586011
|
var caches = /* @__PURE__ */ new Set();
|
|
586109
586012
|
function wrap3(originalFunction, { max: max2 = Math.pow(2, 16), keyArgs, makeCacheKey = defaultMakeCacheKey, normalizeResult: normalizeResult2, subscribe, cache: cacheOption = StrongCache } = /* @__PURE__ */ Object.create(null)) {
|
|
586110
|
-
const
|
|
586013
|
+
const cache8 = typeof cacheOption === "function" ? new cacheOption(max2, (entry) => entry.dispose()) : cacheOption;
|
|
586111
586014
|
const optimistic = function() {
|
|
586112
586015
|
const key2 = makeCacheKey.apply(null, keyArgs ? keyArgs.apply(null, arguments) : arguments);
|
|
586113
586016
|
if (key2 === void 0) {
|
|
586114
586017
|
return originalFunction.apply(null, arguments);
|
|
586115
586018
|
}
|
|
586116
|
-
let entry =
|
|
586019
|
+
let entry = cache8.get(key2);
|
|
586117
586020
|
if (!entry) {
|
|
586118
|
-
|
|
586021
|
+
cache8.set(key2, entry = new Entry(originalFunction));
|
|
586119
586022
|
entry.normalizeResult = normalizeResult2;
|
|
586120
586023
|
entry.subscribe = subscribe;
|
|
586121
|
-
entry.forget = () =>
|
|
586024
|
+
entry.forget = () => cache8.delete(key2);
|
|
586122
586025
|
}
|
|
586123
586026
|
const value5 = entry.recompute(Array.prototype.slice.call(arguments));
|
|
586124
|
-
|
|
586125
|
-
caches.add(
|
|
586027
|
+
cache8.set(key2, entry);
|
|
586028
|
+
caches.add(cache8);
|
|
586126
586029
|
if (!parentEntrySlot.hasValue()) {
|
|
586127
|
-
caches.forEach((
|
|
586030
|
+
caches.forEach((cache9) => cache9.clean());
|
|
586128
586031
|
caches.clear();
|
|
586129
586032
|
}
|
|
586130
586033
|
return value5;
|
|
586131
586034
|
};
|
|
586132
586035
|
Object.defineProperty(optimistic, "size", {
|
|
586133
|
-
get: () =>
|
|
586036
|
+
get: () => cache8.size,
|
|
586134
586037
|
configurable: false,
|
|
586135
586038
|
enumerable: false
|
|
586136
586039
|
});
|
|
@@ -586140,10 +586043,10 @@ function wrap3(originalFunction, { max: max2 = Math.pow(2, 16), keyArgs, makeCac
|
|
|
586140
586043
|
makeCacheKey,
|
|
586141
586044
|
normalizeResult: normalizeResult2,
|
|
586142
586045
|
subscribe,
|
|
586143
|
-
cache:
|
|
586046
|
+
cache: cache8
|
|
586144
586047
|
});
|
|
586145
586048
|
function dirtyKey(key2) {
|
|
586146
|
-
const entry = key2 &&
|
|
586049
|
+
const entry = key2 && cache8.get(key2);
|
|
586147
586050
|
if (entry) {
|
|
586148
586051
|
entry.setDirty();
|
|
586149
586052
|
}
|
|
@@ -586153,7 +586056,7 @@ function wrap3(originalFunction, { max: max2 = Math.pow(2, 16), keyArgs, makeCac
|
|
|
586153
586056
|
dirtyKey(makeCacheKey.apply(null, arguments));
|
|
586154
586057
|
};
|
|
586155
586058
|
function peekKey(key2) {
|
|
586156
|
-
const entry = key2 &&
|
|
586059
|
+
const entry = key2 && cache8.get(key2);
|
|
586157
586060
|
if (entry) {
|
|
586158
586061
|
return entry.peek();
|
|
586159
586062
|
}
|
|
@@ -586163,7 +586066,7 @@ function wrap3(originalFunction, { max: max2 = Math.pow(2, 16), keyArgs, makeCac
|
|
|
586163
586066
|
return peekKey(makeCacheKey.apply(null, arguments));
|
|
586164
586067
|
};
|
|
586165
586068
|
function forgetKey(key2) {
|
|
586166
|
-
return key2 ?
|
|
586069
|
+
return key2 ? cache8.delete(key2) : false;
|
|
586167
586070
|
}
|
|
586168
586071
|
optimistic.forgetKey = forgetKey;
|
|
586169
586072
|
optimistic.forget = function forget() {
|
|
@@ -588849,8 +588752,8 @@ function getAccessorWarningDescriptor(fieldName, value5, path4, operationName, o
|
|
|
588849
588752
|
}
|
|
588850
588753
|
|
|
588851
588754
|
// ../../node_modules/.pnpm/@apollo+client@3.12.6_graphql@16.10.0_react@18.3.1/node_modules/@apollo/client/masking/maskFragment.js
|
|
588852
|
-
function maskFragment(data6, document2,
|
|
588853
|
-
if (!
|
|
588755
|
+
function maskFragment(data6, document2, cache8, fragmentName) {
|
|
588756
|
+
if (!cache8.fragmentMatches) {
|
|
588854
588757
|
if (globalThis.__DEV__ !== false) {
|
|
588855
588758
|
warnOnImproperCacheImplementation();
|
|
588856
588759
|
}
|
|
@@ -588877,16 +588780,16 @@ function maskFragment(data6, document2, cache9, fragmentName) {
|
|
|
588877
588780
|
operationType: "fragment",
|
|
588878
588781
|
operationName: fragment.name.value,
|
|
588879
588782
|
fragmentMap: createFragmentMap(getFragmentDefinitions(document2)),
|
|
588880
|
-
cache:
|
|
588783
|
+
cache: cache8,
|
|
588881
588784
|
mutableTargets: new MapImpl(),
|
|
588882
588785
|
knownChanged: new SetImpl()
|
|
588883
588786
|
});
|
|
588884
588787
|
}
|
|
588885
588788
|
|
|
588886
588789
|
// ../../node_modules/.pnpm/@apollo+client@3.12.6_graphql@16.10.0_react@18.3.1/node_modules/@apollo/client/masking/maskOperation.js
|
|
588887
|
-
function maskOperation(data6, document2,
|
|
588790
|
+
function maskOperation(data6, document2, cache8) {
|
|
588888
588791
|
var _a7;
|
|
588889
|
-
if (!
|
|
588792
|
+
if (!cache8.fragmentMatches) {
|
|
588890
588793
|
if (globalThis.__DEV__ !== false) {
|
|
588891
588794
|
warnOnImproperCacheImplementation();
|
|
588892
588795
|
}
|
|
@@ -588901,7 +588804,7 @@ function maskOperation(data6, document2, cache9) {
|
|
|
588901
588804
|
operationType: definition.operation,
|
|
588902
588805
|
operationName: (_a7 = definition.name) === null || _a7 === void 0 ? void 0 : _a7.value,
|
|
588903
588806
|
fragmentMap: createFragmentMap(getFragmentDefinitions(document2)),
|
|
588904
|
-
cache:
|
|
588807
|
+
cache: cache8,
|
|
588905
588808
|
mutableTargets: new MapImpl(),
|
|
588906
588809
|
knownChanged: new SetImpl()
|
|
588907
588810
|
});
|
|
@@ -589014,24 +588917,24 @@ var ApolloCache = (
|
|
|
589014
588917
|
};
|
|
589015
588918
|
ApolloCache2.prototype.updateQuery = function(options22, update4) {
|
|
589016
588919
|
return this.batch({
|
|
589017
|
-
update: function(
|
|
589018
|
-
var value5 =
|
|
588920
|
+
update: function(cache8) {
|
|
588921
|
+
var value5 = cache8.readQuery(options22);
|
|
589019
588922
|
var data6 = update4(value5);
|
|
589020
588923
|
if (data6 === void 0 || data6 === null)
|
|
589021
588924
|
return value5;
|
|
589022
|
-
|
|
588925
|
+
cache8.writeQuery(__assign(__assign({}, options22), { data: data6 }));
|
|
589023
588926
|
return data6;
|
|
589024
588927
|
}
|
|
589025
588928
|
});
|
|
589026
588929
|
};
|
|
589027
588930
|
ApolloCache2.prototype.updateFragment = function(options22, update4) {
|
|
589028
588931
|
return this.batch({
|
|
589029
|
-
update: function(
|
|
589030
|
-
var value5 =
|
|
588932
|
+
update: function(cache8) {
|
|
588933
|
+
var value5 = cache8.readFragment(options22);
|
|
589031
588934
|
var data6 = update4(value5);
|
|
589032
588935
|
if (data6 === void 0 || data6 === null)
|
|
589033
588936
|
return value5;
|
|
589034
|
-
|
|
588937
|
+
cache8.writeFragment(__assign(__assign({}, options22), { data: data6 }));
|
|
589035
588938
|
return data6;
|
|
589036
588939
|
}
|
|
589037
588940
|
});
|
|
@@ -590046,24 +589949,24 @@ init_tslib_es6();
|
|
|
590046
589949
|
// ../../node_modules/.pnpm/@apollo+client@3.12.6_graphql@16.10.0_react@18.3.1/node_modules/@apollo/client/cache/inmemory/reactiveVars.js
|
|
590047
589950
|
var cacheSlot = new Slot();
|
|
590048
589951
|
var cacheInfoMap = /* @__PURE__ */ new WeakMap();
|
|
590049
|
-
function getCacheInfo(
|
|
590050
|
-
var info6 = cacheInfoMap.get(
|
|
589952
|
+
function getCacheInfo(cache8) {
|
|
589953
|
+
var info6 = cacheInfoMap.get(cache8);
|
|
590051
589954
|
if (!info6) {
|
|
590052
|
-
cacheInfoMap.set(
|
|
589955
|
+
cacheInfoMap.set(cache8, info6 = {
|
|
590053
589956
|
vars: /* @__PURE__ */ new Set(),
|
|
590054
589957
|
dep: dep()
|
|
590055
589958
|
});
|
|
590056
589959
|
}
|
|
590057
589960
|
return info6;
|
|
590058
589961
|
}
|
|
590059
|
-
function forgetCache(
|
|
590060
|
-
getCacheInfo(
|
|
590061
|
-
return rv.forgetCache(
|
|
589962
|
+
function forgetCache(cache8) {
|
|
589963
|
+
getCacheInfo(cache8).vars.forEach(function(rv) {
|
|
589964
|
+
return rv.forgetCache(cache8);
|
|
590062
589965
|
});
|
|
590063
589966
|
}
|
|
590064
|
-
function recallCache(
|
|
590065
|
-
getCacheInfo(
|
|
590066
|
-
return rv.attachCache(
|
|
589967
|
+
function recallCache(cache8) {
|
|
589968
|
+
getCacheInfo(cache8).vars.forEach(function(rv) {
|
|
589969
|
+
return rv.attachCache(cache8);
|
|
590067
589970
|
});
|
|
590068
589971
|
}
|
|
590069
589972
|
function makeVar(value5) {
|
|
@@ -590073,9 +589976,9 @@ function makeVar(value5) {
|
|
|
590073
589976
|
if (arguments.length > 0) {
|
|
590074
589977
|
if (value5 !== newValue) {
|
|
590075
589978
|
value5 = newValue;
|
|
590076
|
-
caches2.forEach(function(
|
|
590077
|
-
getCacheInfo(
|
|
590078
|
-
broadcast2(
|
|
589979
|
+
caches2.forEach(function(cache9) {
|
|
589980
|
+
getCacheInfo(cache9).dep.dirty(rv);
|
|
589981
|
+
broadcast2(cache9);
|
|
590079
589982
|
});
|
|
590080
589983
|
var oldListeners = Array.from(listeners);
|
|
590081
589984
|
listeners.clear();
|
|
@@ -590084,10 +589987,10 @@ function makeVar(value5) {
|
|
|
590084
589987
|
});
|
|
590085
589988
|
}
|
|
590086
589989
|
} else {
|
|
590087
|
-
var
|
|
590088
|
-
if (
|
|
590089
|
-
attach(
|
|
590090
|
-
getCacheInfo(
|
|
589990
|
+
var cache8 = cacheSlot.getValue();
|
|
589991
|
+
if (cache8) {
|
|
589992
|
+
attach(cache8);
|
|
589993
|
+
getCacheInfo(cache8).dep(rv);
|
|
590091
589994
|
}
|
|
590092
589995
|
}
|
|
590093
589996
|
return value5;
|
|
@@ -590098,19 +590001,19 @@ function makeVar(value5) {
|
|
|
590098
590001
|
listeners.delete(listener);
|
|
590099
590002
|
};
|
|
590100
590003
|
};
|
|
590101
|
-
var attach = rv.attachCache = function(
|
|
590102
|
-
caches2.add(
|
|
590103
|
-
getCacheInfo(
|
|
590004
|
+
var attach = rv.attachCache = function(cache8) {
|
|
590005
|
+
caches2.add(cache8);
|
|
590006
|
+
getCacheInfo(cache8).vars.add(rv);
|
|
590104
590007
|
return rv;
|
|
590105
590008
|
};
|
|
590106
|
-
rv.forgetCache = function(
|
|
590107
|
-
return caches2.delete(
|
|
590009
|
+
rv.forgetCache = function(cache8) {
|
|
590010
|
+
return caches2.delete(cache8);
|
|
590108
590011
|
};
|
|
590109
590012
|
return rv;
|
|
590110
590013
|
}
|
|
590111
|
-
function broadcast2(
|
|
590112
|
-
if (
|
|
590113
|
-
|
|
590014
|
+
function broadcast2(cache8) {
|
|
590015
|
+
if (cache8.broadcastWatches) {
|
|
590016
|
+
cache8.broadcastWatches();
|
|
590114
590017
|
}
|
|
590115
590018
|
}
|
|
590116
590019
|
|
|
@@ -590696,8 +590599,8 @@ function getContextFlavor(context, clientOnly, deferred) {
|
|
|
590696
590599
|
var StoreWriter = (
|
|
590697
590600
|
/** @class */
|
|
590698
590601
|
function() {
|
|
590699
|
-
function StoreWriter2(
|
|
590700
|
-
this.cache =
|
|
590602
|
+
function StoreWriter2(cache8, reader, fragments) {
|
|
590603
|
+
this.cache = cache8;
|
|
590701
590604
|
this.reader = reader;
|
|
590702
590605
|
this.fragments = fragments;
|
|
590703
590606
|
}
|
|
@@ -591672,10 +591575,10 @@ var ObservableQuery = (
|
|
|
591672
591575
|
}
|
|
591673
591576
|
if (isCached) {
|
|
591674
591577
|
_this.queryManager.cache.batch({
|
|
591675
|
-
update: function(
|
|
591578
|
+
update: function(cache8) {
|
|
591676
591579
|
var updateQuery2 = fetchMoreOptions.updateQuery;
|
|
591677
591580
|
if (updateQuery2) {
|
|
591678
|
-
|
|
591581
|
+
cache8.updateQuery({
|
|
591679
591582
|
query: _this.query,
|
|
591680
591583
|
variables: _this.variables,
|
|
591681
591584
|
returnPartialData: true,
|
|
@@ -591687,7 +591590,7 @@ var ObservableQuery = (
|
|
|
591687
591590
|
});
|
|
591688
591591
|
});
|
|
591689
591592
|
} else {
|
|
591690
|
-
|
|
591593
|
+
cache8.writeQuery({
|
|
591691
591594
|
query: combinedOptions.query,
|
|
591692
591595
|
variables: combinedOptions.variables,
|
|
591693
591596
|
data: fetchMoreResult.data
|
|
@@ -592052,17 +591955,17 @@ function skipCacheDataFor(fetchPolicy) {
|
|
|
592052
591955
|
// ../../node_modules/.pnpm/@apollo+client@3.12.6_graphql@16.10.0_react@18.3.1/node_modules/@apollo/client/core/QueryInfo.js
|
|
592053
591956
|
init_tslib_es6();
|
|
592054
591957
|
var destructiveMethodCounts = new (canUseWeakMap ? WeakMap : Map)();
|
|
592055
|
-
function wrapDestructiveCacheMethod(
|
|
592056
|
-
var original =
|
|
591958
|
+
function wrapDestructiveCacheMethod(cache8, methodName) {
|
|
591959
|
+
var original = cache8[methodName];
|
|
592057
591960
|
if (typeof original === "function") {
|
|
592058
|
-
|
|
591961
|
+
cache8[methodName] = function() {
|
|
592059
591962
|
destructiveMethodCounts.set(
|
|
592060
|
-
|
|
591963
|
+
cache8,
|
|
592061
591964
|
// The %1e15 allows the count to wrap around to 0 safely every
|
|
592062
591965
|
// quadrillion evictions, so there's no risk of overflow. To be
|
|
592063
591966
|
// clear, this is more of a pedantic principle than something
|
|
592064
591967
|
// that matters in any conceivable practical scenario.
|
|
592065
|
-
(destructiveMethodCounts.get(
|
|
591968
|
+
(destructiveMethodCounts.get(cache8) + 1) % 1e15
|
|
592066
591969
|
);
|
|
592067
591970
|
return original.apply(this, arguments);
|
|
592068
591971
|
};
|
|
@@ -592088,12 +591991,12 @@ var QueryInfo = (
|
|
|
592088
591991
|
this.stopped = false;
|
|
592089
591992
|
this.dirty = false;
|
|
592090
591993
|
this.observableQuery = null;
|
|
592091
|
-
var
|
|
592092
|
-
if (!destructiveMethodCounts.has(
|
|
592093
|
-
destructiveMethodCounts.set(
|
|
592094
|
-
wrapDestructiveCacheMethod(
|
|
592095
|
-
wrapDestructiveCacheMethod(
|
|
592096
|
-
wrapDestructiveCacheMethod(
|
|
591994
|
+
var cache8 = this.cache = queryManager.cache;
|
|
591995
|
+
if (!destructiveMethodCounts.has(cache8)) {
|
|
591996
|
+
destructiveMethodCounts.set(cache8, 0);
|
|
591997
|
+
wrapDestructiveCacheMethod(cache8, "evict");
|
|
591998
|
+
wrapDestructiveCacheMethod(cache8, "modify");
|
|
591999
|
+
wrapDestructiveCacheMethod(cache8, "reset");
|
|
592097
592000
|
}
|
|
592098
592001
|
}
|
|
592099
592002
|
QueryInfo2.prototype.init = function(query3) {
|
|
@@ -592277,9 +592180,9 @@ var QueryInfo = (
|
|
|
592277
592180
|
this.updateLastDiff({ result: result2.data, complete: true }, this.getDiffOptions(options22.variables));
|
|
592278
592181
|
} else if (cacheWriteBehavior !== 0) {
|
|
592279
592182
|
if (shouldWriteResult(result2, options22.errorPolicy)) {
|
|
592280
|
-
this.cache.performTransaction(function(
|
|
592183
|
+
this.cache.performTransaction(function(cache8) {
|
|
592281
592184
|
if (_this.shouldWrite(result2, options22.variables)) {
|
|
592282
|
-
|
|
592185
|
+
cache8.writeQuery({
|
|
592283
592186
|
query: document2,
|
|
592284
592187
|
data: result2.data,
|
|
592285
592188
|
variables: options22.variables,
|
|
@@ -592297,7 +592200,7 @@ var QueryInfo = (
|
|
|
592297
592200
|
}
|
|
592298
592201
|
}
|
|
592299
592202
|
var diffOptions = _this.getDiffOptions(options22.variables);
|
|
592300
|
-
var diff2 =
|
|
592203
|
+
var diff2 = cache8.diff(diffOptions);
|
|
592301
592204
|
if (!_this.stopped && equal(_this.variables, options22.variables)) {
|
|
592302
592205
|
_this.updateWatch(options22.variables);
|
|
592303
592206
|
}
|
|
@@ -592503,10 +592406,10 @@ var QueryManager = (
|
|
|
592503
592406
|
});
|
|
592504
592407
|
});
|
|
592505
592408
|
};
|
|
592506
|
-
QueryManager2.prototype.markMutationResult = function(mutation,
|
|
592409
|
+
QueryManager2.prototype.markMutationResult = function(mutation, cache8) {
|
|
592507
592410
|
var _this = this;
|
|
592508
|
-
if (
|
|
592509
|
-
|
|
592411
|
+
if (cache8 === void 0) {
|
|
592412
|
+
cache8 = this.cache;
|
|
592510
592413
|
}
|
|
592511
592414
|
var result2 = mutation.result;
|
|
592512
592415
|
var cacheWrites = [];
|
|
@@ -592521,7 +592424,7 @@ var QueryManager = (
|
|
|
592521
592424
|
});
|
|
592522
592425
|
}
|
|
592523
592426
|
if (isExecutionPatchIncrementalResult(result2) && isNonEmptyArray(result2.incremental)) {
|
|
592524
|
-
var diff =
|
|
592427
|
+
var diff = cache8.diff({
|
|
592525
592428
|
id: "ROOT_MUTATION",
|
|
592526
592429
|
// The cache complains if passed a mutation where it expects a
|
|
592527
592430
|
// query, so we transform mutations and subscriptions to queries
|
|
@@ -592555,7 +592458,7 @@ var QueryManager = (
|
|
|
592555
592458
|
}
|
|
592556
592459
|
var updater = updateQueries_1[queryName];
|
|
592557
592460
|
var _b2 = _this.queries.get(queryId), document2 = _b2.document, variables = _b2.variables;
|
|
592558
|
-
var _c =
|
|
592461
|
+
var _c = cache8.diff({
|
|
592559
592462
|
query: document2,
|
|
592560
592463
|
variables,
|
|
592561
592464
|
returnPartialData: true,
|
|
@@ -592582,17 +592485,17 @@ var QueryManager = (
|
|
|
592582
592485
|
if (cacheWrites.length > 0 || (mutation.refetchQueries || "").length > 0 || mutation.update || mutation.onQueryUpdated || mutation.removeOptimistic) {
|
|
592583
592486
|
var results_1 = [];
|
|
592584
592487
|
this.refetchQueries({
|
|
592585
|
-
updateCache: function(
|
|
592488
|
+
updateCache: function(cache9) {
|
|
592586
592489
|
if (!skipCache) {
|
|
592587
592490
|
cacheWrites.forEach(function(write) {
|
|
592588
|
-
return
|
|
592491
|
+
return cache9.write(write);
|
|
592589
592492
|
});
|
|
592590
592493
|
}
|
|
592591
592494
|
var update4 = mutation.update;
|
|
592592
592495
|
var isFinalResult = !isExecutionPatchResult(result2) || isExecutionPatchIncrementalResult(result2) && !result2.hasNext;
|
|
592593
592496
|
if (update4) {
|
|
592594
592497
|
if (!skipCache) {
|
|
592595
|
-
var diff2 =
|
|
592498
|
+
var diff2 = cache9.diff({
|
|
592596
592499
|
id: "ROOT_MUTATION",
|
|
592597
592500
|
// The cache complains if passed a mutation where it expects a
|
|
592598
592501
|
// query, so we transform mutations and subscriptions to queries
|
|
@@ -592613,14 +592516,14 @@ var QueryManager = (
|
|
|
592613
592516
|
}
|
|
592614
592517
|
}
|
|
592615
592518
|
if (isFinalResult) {
|
|
592616
|
-
update4(
|
|
592519
|
+
update4(cache9, result2, {
|
|
592617
592520
|
context: mutation.context,
|
|
592618
592521
|
variables: mutation.variables
|
|
592619
592522
|
});
|
|
592620
592523
|
}
|
|
592621
592524
|
}
|
|
592622
592525
|
if (!skipCache && !mutation.keepRootFields && isFinalResult) {
|
|
592623
|
-
|
|
592526
|
+
cache9.modify({
|
|
592624
592527
|
id: "ROOT_MUTATION",
|
|
592625
592528
|
fields: function(value5, _a7) {
|
|
592626
592529
|
var fieldName = _a7.fieldName, DELETE2 = _a7.DELETE;
|
|
@@ -592657,9 +592560,9 @@ var QueryManager = (
|
|
|
592657
592560
|
if (data6 === IGNORE) {
|
|
592658
592561
|
return false;
|
|
592659
592562
|
}
|
|
592660
|
-
this.cache.recordOptimisticTransaction(function(
|
|
592563
|
+
this.cache.recordOptimisticTransaction(function(cache8) {
|
|
592661
592564
|
try {
|
|
592662
|
-
_this.markMutationResult(__assign(__assign({}, mutation), { result: { data: data6 } }),
|
|
592565
|
+
_this.markMutationResult(__assign(__assign({}, mutation), { result: { data: data6 } }), cache8);
|
|
592663
592566
|
} catch (error) {
|
|
592664
592567
|
globalThis.__DEV__ !== false && invariant10.error(error);
|
|
592665
592568
|
}
|
|
@@ -593383,9 +593286,9 @@ var LocalState = (
|
|
|
593383
593286
|
/** @class */
|
|
593384
593287
|
function() {
|
|
593385
593288
|
function LocalState2(_a7) {
|
|
593386
|
-
var
|
|
593289
|
+
var cache8 = _a7.cache, client = _a7.client, resolvers3 = _a7.resolvers, fragmentMatcher = _a7.fragmentMatcher;
|
|
593387
593290
|
this.selectionsToResolveCache = /* @__PURE__ */ new WeakMap();
|
|
593388
|
-
this.cache =
|
|
593291
|
+
this.cache = cache8;
|
|
593389
593292
|
if (client) {
|
|
593390
593293
|
this.client = client;
|
|
593391
593294
|
}
|
|
@@ -593445,12 +593348,12 @@ var LocalState = (
|
|
|
593445
593348
|
return removeClientSetsFromDocument(document2);
|
|
593446
593349
|
};
|
|
593447
593350
|
LocalState2.prototype.prepareContext = function(context) {
|
|
593448
|
-
var
|
|
593351
|
+
var cache8 = this.cache;
|
|
593449
593352
|
return __assign(__assign({}, context), {
|
|
593450
|
-
cache:
|
|
593353
|
+
cache: cache8,
|
|
593451
593354
|
// Getting an entry's cache key is useful for local state resolvers.
|
|
593452
593355
|
getCacheKey: function(obj2) {
|
|
593453
|
-
return
|
|
593356
|
+
return cache8.identify(obj2);
|
|
593454
593357
|
}
|
|
593455
593358
|
});
|
|
593456
593359
|
};
|
|
@@ -593500,7 +593403,7 @@ var LocalState = (
|
|
|
593500
593403
|
};
|
|
593501
593404
|
LocalState2.prototype.resolveDocument = function(document_1, rootValue_1) {
|
|
593502
593405
|
return __awaiter(this, arguments, void 0, function(document2, rootValue, context, variables, fragmentMatcher, onlyRunForcedResolvers) {
|
|
593503
|
-
var mainDefinition, fragments, fragmentMap, selectionsToResolve, definitionOperation, defaultOperationType, _a7,
|
|
593406
|
+
var mainDefinition, fragments, fragmentMap, selectionsToResolve, definitionOperation, defaultOperationType, _a7, cache8, client, execContext, isClientFieldDescendant;
|
|
593504
593407
|
if (context === void 0) {
|
|
593505
593408
|
context = {};
|
|
593506
593409
|
}
|
|
@@ -593522,10 +593425,10 @@ var LocalState = (
|
|
|
593522
593425
|
selectionsToResolve = this.collectSelectionsToResolve(mainDefinition, fragmentMap);
|
|
593523
593426
|
definitionOperation = mainDefinition.operation;
|
|
593524
593427
|
defaultOperationType = definitionOperation ? definitionOperation.charAt(0).toUpperCase() + definitionOperation.slice(1) : "Query";
|
|
593525
|
-
_a7 = this,
|
|
593428
|
+
_a7 = this, cache8 = _a7.cache, client = _a7.client;
|
|
593526
593429
|
execContext = {
|
|
593527
593430
|
fragmentMap,
|
|
593528
|
-
context: __assign(__assign({}, context), { cache:
|
|
593431
|
+
context: __assign(__assign({}, context), { cache: cache8, client }),
|
|
593529
593432
|
variables,
|
|
593530
593433
|
fragmentMatcher,
|
|
593531
593434
|
defaultOperationType,
|
|
@@ -593741,13 +593644,13 @@ var ApolloClient = (
|
|
|
593741
593644
|
if (!options22.cache) {
|
|
593742
593645
|
throw newInvariantError(16);
|
|
593743
593646
|
}
|
|
593744
|
-
var uri = options22.uri, credentials3 = options22.credentials, headers = options22.headers,
|
|
593647
|
+
var uri = options22.uri, credentials3 = options22.credentials, headers = options22.headers, cache8 = options22.cache, documentTransform = options22.documentTransform, _b2 = options22.ssrMode, ssrMode = _b2 === void 0 ? false : _b2, _c = options22.ssrForceFetchDelay, ssrForceFetchDelay = _c === void 0 ? 0 : _c, connectToDevTools = options22.connectToDevTools, _d = options22.queryDeduplication, queryDeduplication = _d === void 0 ? true : _d, defaultOptions5 = options22.defaultOptions, defaultContext = options22.defaultContext, _e2 = options22.assumeImmutableResults, assumeImmutableResults = _e2 === void 0 ? cache8.assumeImmutableResults : _e2, resolvers3 = options22.resolvers, typeDefs = options22.typeDefs, fragmentMatcher = options22.fragmentMatcher, clientAwarenessName = options22.name, clientAwarenessVersion = options22.version, devtools = options22.devtools, dataMasking = options22.dataMasking;
|
|
593745
593648
|
var link = options22.link;
|
|
593746
593649
|
if (!link) {
|
|
593747
593650
|
link = uri ? new HttpLink({ uri, credentials: credentials3, headers }) : ApolloLink.empty();
|
|
593748
593651
|
}
|
|
593749
593652
|
this.link = link;
|
|
593750
|
-
this.cache =
|
|
593653
|
+
this.cache = cache8;
|
|
593751
593654
|
this.disableNetworkFetches = ssrMode || ssrForceFetchDelay > 0;
|
|
593752
593655
|
this.queryDeduplication = queryDeduplication;
|
|
593753
593656
|
this.defaultOptions = defaultOptions5 || /* @__PURE__ */ Object.create(null);
|
|
@@ -593769,7 +593672,7 @@ var ApolloClient = (
|
|
|
593769
593672
|
this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this);
|
|
593770
593673
|
this.version = version3;
|
|
593771
593674
|
this.localState = new LocalState({
|
|
593772
|
-
cache:
|
|
593675
|
+
cache: cache8,
|
|
593773
593676
|
client: this,
|
|
593774
593677
|
resolvers: resolvers3,
|
|
593775
593678
|
fragmentMatcher
|
|
@@ -602085,6 +601988,58 @@ var signMessage2 = (signerContext3) => async (deviceId, account3, container) =>
|
|
|
602085
601988
|
};
|
|
602086
601989
|
};
|
|
602087
601990
|
|
|
601991
|
+
// ../../libs/live-config/lib-es/LiveConfig.js
|
|
601992
|
+
var import_merge = __toESM(require("lodash/merge"));
|
|
601993
|
+
var LiveConfig = class _LiveConfig {
|
|
601994
|
+
provider;
|
|
601995
|
+
config = {};
|
|
601996
|
+
appVersion;
|
|
601997
|
+
platform;
|
|
601998
|
+
environment;
|
|
601999
|
+
static instance = new _LiveConfig();
|
|
602000
|
+
constructor() {
|
|
602001
|
+
}
|
|
602002
|
+
static setAppinfo(params) {
|
|
602003
|
+
_LiveConfig.instance.appVersion = params.appVersion;
|
|
602004
|
+
_LiveConfig.instance.platform = params.platform;
|
|
602005
|
+
_LiveConfig.instance.environment = params.environment;
|
|
602006
|
+
}
|
|
602007
|
+
static setProvider(provider) {
|
|
602008
|
+
_LiveConfig.instance.provider = provider;
|
|
602009
|
+
}
|
|
602010
|
+
static setConfig(config4) {
|
|
602011
|
+
_LiveConfig.instance.config = config4;
|
|
602012
|
+
}
|
|
602013
|
+
static getValueByKey(key2) {
|
|
602014
|
+
if (Object.keys(_LiveConfig.instance.config).length === 0) {
|
|
602015
|
+
throw new Error("Config not set");
|
|
602016
|
+
}
|
|
602017
|
+
if (!_LiveConfig.instance.provider) {
|
|
602018
|
+
return _LiveConfig.instance.config[key2]?.default;
|
|
602019
|
+
}
|
|
602020
|
+
const providerValue = _LiveConfig.instance.provider.getValueByKey(key2, _LiveConfig.instance.config[key2]) ?? _LiveConfig.instance.config[key2]?.default;
|
|
602021
|
+
if (_LiveConfig.instance.config[key2]?.type === "object") {
|
|
602022
|
+
return (0, import_merge.default)(_LiveConfig.instance.config[key2]?.default, providerValue);
|
|
602023
|
+
}
|
|
602024
|
+
return providerValue;
|
|
602025
|
+
}
|
|
602026
|
+
static getDefaultValueByKey(key2) {
|
|
602027
|
+
if (Object.keys(_LiveConfig.instance.config).length === 0) {
|
|
602028
|
+
throw new Error("Config not set");
|
|
602029
|
+
}
|
|
602030
|
+
return _LiveConfig.instance.config[key2]?.default;
|
|
602031
|
+
}
|
|
602032
|
+
};
|
|
602033
|
+
|
|
602034
|
+
// ../../libs/ledger-live-common/lib-es/config/index.js
|
|
602035
|
+
var getCurrencyConfiguration = (currency24) => {
|
|
602036
|
+
const currencyData = LiveConfig.getValueByKey(`config_currency_${currency24.id}`);
|
|
602037
|
+
if (!currencyData) {
|
|
602038
|
+
throw new Error(`No currency configuration available for ${currency24.id}`);
|
|
602039
|
+
}
|
|
602040
|
+
return currencyData;
|
|
602041
|
+
};
|
|
602042
|
+
|
|
602088
602043
|
// ../../libs/ledger-live-common/lib-es/families/bitcoin/setup.js
|
|
602089
602044
|
var createSigner3 = (transport, currency24) => {
|
|
602090
602045
|
return new Btc({ transport, currency: currency24.id });
|
|
@@ -606170,15 +606125,15 @@ var parse4 = (erc20SignaturesBlob) => {
|
|
|
606170
606125
|
};
|
|
606171
606126
|
};
|
|
606172
606127
|
var get3 = /* @__PURE__ */ (() => {
|
|
606173
|
-
const
|
|
606128
|
+
const cache8 = {};
|
|
606174
606129
|
return (chainId) => {
|
|
606175
|
-
if (
|
|
606176
|
-
return
|
|
606130
|
+
if (cache8[chainId])
|
|
606131
|
+
return cache8[chainId];
|
|
606177
606132
|
const signatureBlob = signatures[chainId];
|
|
606178
606133
|
if (!signatureBlob)
|
|
606179
606134
|
return null;
|
|
606180
606135
|
const api7 = parse4(signatureBlob);
|
|
606181
|
-
|
|
606136
|
+
cache8[chainId] = api7;
|
|
606182
606137
|
return api7;
|
|
606183
606138
|
};
|
|
606184
606139
|
})();
|
|
@@ -617011,8 +616966,8 @@ var JsonRpcProvider = class extends BaseProvider {
|
|
|
617011
616966
|
request: deepCopy(request3),
|
|
617012
616967
|
provider: this
|
|
617013
616968
|
});
|
|
617014
|
-
const
|
|
617015
|
-
if (
|
|
616969
|
+
const cache8 = ["eth_chainId", "eth_blockNumber"].indexOf(method2) >= 0;
|
|
616970
|
+
if (cache8 && this._cache[method2]) {
|
|
617016
616971
|
return this._cache[method2];
|
|
617017
616972
|
}
|
|
617018
616973
|
const result2 = fetchJson(this.connection, JSON.stringify(request3), getResult).then((result3) => {
|
|
@@ -617032,7 +616987,7 @@ var JsonRpcProvider = class extends BaseProvider {
|
|
|
617032
616987
|
});
|
|
617033
616988
|
throw error;
|
|
617034
616989
|
});
|
|
617035
|
-
if (
|
|
616990
|
+
if (cache8) {
|
|
617036
616991
|
this._cache[method2] = result2;
|
|
617037
616992
|
setTimeout(() => {
|
|
617038
616993
|
this._cache[method2] = null;
|
|
@@ -625829,9 +625784,9 @@ function bind3(fn3, thisArg) {
|
|
|
625829
625784
|
// ../../node_modules/.pnpm/axios@1.8.2/node_modules/axios/lib/utils.js
|
|
625830
625785
|
var { toString: toString7 } = Object.prototype;
|
|
625831
625786
|
var { getPrototypeOf: getPrototypeOf2 } = Object;
|
|
625832
|
-
var kindOf2 = /* @__PURE__ */ ((
|
|
625787
|
+
var kindOf2 = /* @__PURE__ */ ((cache8) => (thing) => {
|
|
625833
625788
|
const str = toString7.call(thing);
|
|
625834
|
-
return
|
|
625789
|
+
return cache8[str] || (cache8[str] = str.slice(8, -1).toLowerCase());
|
|
625835
625790
|
})(/* @__PURE__ */ Object.create(null));
|
|
625836
625791
|
var kindOfTest2 = (type4) => {
|
|
625837
625792
|
type4 = type4.toLowerCase();
|
|
@@ -633451,14 +633406,14 @@ function assign2(assignment) {
|
|
|
633451
633406
|
}
|
|
633452
633407
|
|
|
633453
633408
|
// ../../node_modules/.pnpm/xstate@5.19.2/node_modules/xstate/dist/xstate.esm.js
|
|
633454
|
-
var
|
|
633409
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
|
633455
633410
|
function memo(object5, key2, fn3) {
|
|
633456
|
-
let memoizedData =
|
|
633411
|
+
let memoizedData = cache.get(object5);
|
|
633457
633412
|
if (!memoizedData) {
|
|
633458
633413
|
memoizedData = {
|
|
633459
633414
|
[key2]: fn3()
|
|
633460
633415
|
};
|
|
633461
|
-
|
|
633416
|
+
cache.set(object5, memoizedData);
|
|
633462
633417
|
} else if (!(key2 in memoizedData)) {
|
|
633463
633418
|
memoizedData[key2] = fn3();
|
|
633464
633419
|
}
|
|
@@ -703778,12 +703733,12 @@ function format3(link, base4) {
|
|
|
703778
703733
|
return toStringV1(bytes7, baseCache(link), base4 ?? base325.encoder);
|
|
703779
703734
|
}
|
|
703780
703735
|
}
|
|
703781
|
-
var
|
|
703736
|
+
var cache2 = /* @__PURE__ */ new WeakMap();
|
|
703782
703737
|
function baseCache(cid) {
|
|
703783
|
-
const baseCache2 =
|
|
703738
|
+
const baseCache2 = cache2.get(cid);
|
|
703784
703739
|
if (baseCache2 == null) {
|
|
703785
703740
|
const baseCache3 = /* @__PURE__ */ new Map();
|
|
703786
|
-
|
|
703741
|
+
cache2.set(cid, baseCache3);
|
|
703787
703742
|
return baseCache3;
|
|
703788
703743
|
}
|
|
703789
703744
|
return baseCache2;
|
|
@@ -704061,26 +704016,26 @@ function parseCIDtoBytes(source, base4) {
|
|
|
704061
704016
|
}
|
|
704062
704017
|
}
|
|
704063
704018
|
}
|
|
704064
|
-
function toStringV0(bytes7,
|
|
704019
|
+
function toStringV0(bytes7, cache8, base4) {
|
|
704065
704020
|
const { prefix: prefix3 } = base4;
|
|
704066
704021
|
if (prefix3 !== base58btc.prefix) {
|
|
704067
704022
|
throw Error(`Cannot string encode V0 in ${base4.name} encoding`);
|
|
704068
704023
|
}
|
|
704069
|
-
const cid =
|
|
704024
|
+
const cid = cache8.get(prefix3);
|
|
704070
704025
|
if (cid == null) {
|
|
704071
704026
|
const cid2 = base4.encode(bytes7).slice(1);
|
|
704072
|
-
|
|
704027
|
+
cache8.set(prefix3, cid2);
|
|
704073
704028
|
return cid2;
|
|
704074
704029
|
} else {
|
|
704075
704030
|
return cid;
|
|
704076
704031
|
}
|
|
704077
704032
|
}
|
|
704078
|
-
function toStringV1(bytes7,
|
|
704033
|
+
function toStringV1(bytes7, cache8, base4) {
|
|
704079
704034
|
const { prefix: prefix3 } = base4;
|
|
704080
|
-
const cid =
|
|
704035
|
+
const cid = cache8.get(prefix3);
|
|
704081
704036
|
if (cid == null) {
|
|
704082
704037
|
const cid2 = base4.encode(bytes7);
|
|
704083
|
-
|
|
704038
|
+
cache8.set(prefix3, cid2);
|
|
704084
704039
|
return cid2;
|
|
704085
704040
|
} else {
|
|
704086
704041
|
return cid;
|
|
@@ -714312,23 +714267,23 @@ function defaultGetId() {
|
|
|
714312
714267
|
return "none";
|
|
714313
714268
|
}
|
|
714314
714269
|
function memoize2(fn3, { getInstanceId = defaultGetId } = {}) {
|
|
714315
|
-
const
|
|
714270
|
+
const cache8 = {};
|
|
714316
714271
|
const memoized3 = (...args3) => {
|
|
714317
714272
|
const stringParams = stringify6(args3);
|
|
714318
714273
|
const instanceId = getInstanceId();
|
|
714319
|
-
if (!
|
|
714320
|
-
|
|
714274
|
+
if (!cache8[instanceId]) {
|
|
714275
|
+
cache8[instanceId] = {};
|
|
714321
714276
|
}
|
|
714322
|
-
if (
|
|
714323
|
-
|
|
714277
|
+
if (cache8[instanceId][stringParams] === void 0) {
|
|
714278
|
+
cache8[instanceId][stringParams] = fn3(...args3);
|
|
714324
714279
|
}
|
|
714325
|
-
return
|
|
714280
|
+
return cache8[instanceId][stringParams];
|
|
714326
714281
|
};
|
|
714327
714282
|
memoized3.unmemoize = (...args3) => {
|
|
714328
714283
|
const stringParams = stringify6(args3);
|
|
714329
714284
|
const instanceId = getInstanceId();
|
|
714330
|
-
if (
|
|
714331
|
-
delete
|
|
714285
|
+
if (cache8[instanceId]?.[stringParams] !== void 0) {
|
|
714286
|
+
delete cache8[instanceId][stringParams];
|
|
714332
714287
|
}
|
|
714333
714288
|
};
|
|
714334
714289
|
return memoized3;
|
|
@@ -753257,37 +753212,37 @@ var deriveNoopCache = {
|
|
|
753257
753212
|
// ../../node_modules/.pnpm/@polkadot+api-derive@11.2.1/node_modules/@polkadot/api-derive/util/cache.js
|
|
753258
753213
|
var CHACHE_EXPIRY = 7 * (24 * 60) * (60 * 1e3);
|
|
753259
753214
|
var deriveCache;
|
|
753260
|
-
function wrapCache(keyStart,
|
|
753215
|
+
function wrapCache(keyStart, cache8) {
|
|
753261
753216
|
return {
|
|
753262
|
-
del: (partial2) =>
|
|
753263
|
-
forEach:
|
|
753217
|
+
del: (partial2) => cache8.del(`${keyStart}${partial2}`),
|
|
753218
|
+
forEach: cache8.forEach,
|
|
753264
753219
|
get: (partial2) => {
|
|
753265
753220
|
const key2 = `${keyStart}${partial2}`;
|
|
753266
|
-
const cached2 =
|
|
753221
|
+
const cached2 = cache8.get(key2);
|
|
753267
753222
|
if (cached2) {
|
|
753268
753223
|
cached2.x = Date.now();
|
|
753269
|
-
|
|
753224
|
+
cache8.set(key2, cached2);
|
|
753270
753225
|
return cached2.v;
|
|
753271
753226
|
}
|
|
753272
753227
|
return void 0;
|
|
753273
753228
|
},
|
|
753274
753229
|
set: (partial2, v37) => {
|
|
753275
|
-
|
|
753230
|
+
cache8.set(`${keyStart}${partial2}`, { v: v37, x: Date.now() });
|
|
753276
753231
|
}
|
|
753277
753232
|
};
|
|
753278
753233
|
}
|
|
753279
|
-
function clearCache(
|
|
753234
|
+
function clearCache(cache8) {
|
|
753280
753235
|
const now3 = Date.now();
|
|
753281
753236
|
const all8 = [];
|
|
753282
|
-
|
|
753237
|
+
cache8.forEach((key2, { x: x23 }) => {
|
|
753283
753238
|
now3 - x23 > CHACHE_EXPIRY && all8.push(key2);
|
|
753284
753239
|
});
|
|
753285
|
-
all8.forEach((key2) =>
|
|
753240
|
+
all8.forEach((key2) => cache8.del(key2));
|
|
753286
753241
|
}
|
|
753287
|
-
function setDeriveCache(prefix3 = "",
|
|
753288
|
-
deriveCache =
|
|
753289
|
-
if (
|
|
753290
|
-
clearCache(
|
|
753242
|
+
function setDeriveCache(prefix3 = "", cache8) {
|
|
753243
|
+
deriveCache = cache8 ? wrapCache(`derive:${prefix3}:`, cache8) : deriveNoopCache;
|
|
753244
|
+
if (cache8) {
|
|
753245
|
+
clearCache(cache8);
|
|
753291
753246
|
}
|
|
753292
753247
|
}
|
|
753293
753248
|
setDeriveCache();
|
|
@@ -786880,7 +786835,7 @@ var coinConfig12 = config_default();
|
|
|
786880
786835
|
var config_default7 = coinConfig12;
|
|
786881
786836
|
|
|
786882
786837
|
// ../../libs/coin-modules/coin-tezos/lib-es/network/bakers.js
|
|
786883
|
-
var
|
|
786838
|
+
var cache3 = makeLRUCache(async () => {
|
|
786884
786839
|
const bakers = [];
|
|
786885
786840
|
const TEZOS_API_BASE_URL = config_default7.getCoinConfig().baker.url;
|
|
786886
786841
|
const { data: data6 } = await network_default({
|
|
@@ -786903,7 +786858,7 @@ var cache4 = makeLRUCache(async () => {
|
|
|
786903
786858
|
}, () => "");
|
|
786904
786859
|
var _lastBakers = [];
|
|
786905
786860
|
var fetchAllBakers = async () => {
|
|
786906
|
-
const allBakers = await
|
|
786861
|
+
const allBakers = await cache3.force();
|
|
786907
786862
|
_lastBakers = allBakers;
|
|
786908
786863
|
return allBakers;
|
|
786909
786864
|
};
|
|
@@ -786911,7 +786866,7 @@ function whitelist2(all8, addresses) {
|
|
|
786911
786866
|
return all8.filter((baker) => addresses.includes(baker.address));
|
|
786912
786867
|
}
|
|
786913
786868
|
var listBakers = async (whitelistAddresses) => {
|
|
786914
|
-
_lastBakers = await
|
|
786869
|
+
_lastBakers = await cache3();
|
|
786915
786870
|
return whitelist2(_lastBakers, whitelistAddresses);
|
|
786916
786871
|
};
|
|
786917
786872
|
function getAccountDelegationSync(account3) {
|
|
@@ -786951,7 +786906,7 @@ var asBaker = (data6) => {
|
|
|
786951
786906
|
};
|
|
786952
786907
|
var hydrateBakers = (bakers) => {
|
|
786953
786908
|
log2("tezos/bakers", "hydrate " + bakers.length + " bakers");
|
|
786954
|
-
|
|
786909
|
+
cache3.hydrate("", bakers);
|
|
786955
786910
|
};
|
|
786956
786911
|
|
|
786957
786912
|
// ../../libs/coin-modules/coin-tezos/lib-es/bridge/preload.js
|
|
@@ -813952,11 +813907,11 @@ var __privateSet4 = (obj2, member2, value5, setter) => (__accessCheck4(obj2, mem
|
|
|
813952
813907
|
var _prefix;
|
|
813953
813908
|
var _cache;
|
|
813954
813909
|
var _ClientCache = class _ClientCache2 {
|
|
813955
|
-
constructor({ prefix: prefix3, cache:
|
|
813910
|
+
constructor({ prefix: prefix3, cache: cache8 } = {}) {
|
|
813956
813911
|
__privateAdd4(this, _prefix);
|
|
813957
813912
|
__privateAdd4(this, _cache);
|
|
813958
813913
|
__privateSet4(this, _prefix, prefix3 ?? []);
|
|
813959
|
-
__privateSet4(this, _cache,
|
|
813914
|
+
__privateSet4(this, _cache, cache8 ?? /* @__PURE__ */ new Map());
|
|
813960
813915
|
}
|
|
813961
813916
|
read(key2, load) {
|
|
813962
813917
|
const cacheKey = [__privateGet4(this, _prefix), ...key2].join(":");
|
|
@@ -828599,22 +828554,6 @@ var mock_default19 = {
|
|
|
828599
828554
|
xrp: mock_default18
|
|
828600
828555
|
};
|
|
828601
828556
|
|
|
828602
|
-
// ../../libs/ledger-live-common/lib-es/sanction/errors.js
|
|
828603
|
-
var UserAddressSanctionedError = class extends Error {
|
|
828604
|
-
constructor() {
|
|
828605
|
-
super();
|
|
828606
|
-
this.message = this.constructor.name;
|
|
828607
|
-
this.name = this.constructor.name;
|
|
828608
|
-
}
|
|
828609
|
-
};
|
|
828610
|
-
var RecipientAddressSanctionedError = class extends Error {
|
|
828611
|
-
constructor() {
|
|
828612
|
-
super();
|
|
828613
|
-
this.message = this.constructor.name;
|
|
828614
|
-
this.name = this.constructor.name;
|
|
828615
|
-
}
|
|
828616
|
-
};
|
|
828617
|
-
|
|
828618
828557
|
// ../../libs/ledger-live-common/lib-es/bridge/generic-alpaca/getAccountShape.js
|
|
828619
828558
|
var import_bignumber343 = __toESM(require("bignumber.js"));
|
|
828620
828559
|
|
|
@@ -829831,43 +829770,9 @@ function getAccountBridgeByFamily(family, accountId2) {
|
|
|
829831
829770
|
}
|
|
829832
829771
|
const jsBridge = js_default[family];
|
|
829833
829772
|
if (!jsBridge) {
|
|
829834
|
-
throw new CurrencyNotSupported("account
|
|
829773
|
+
throw new CurrencyNotSupported("account bridge not found " + family);
|
|
829835
829774
|
}
|
|
829836
|
-
return
|
|
829837
|
-
}
|
|
829838
|
-
function wrapAccountBridge(bridge27) {
|
|
829839
|
-
return {
|
|
829840
|
-
...bridge27,
|
|
829841
|
-
getTransactionStatus: async (...args3) => {
|
|
829842
|
-
const blockchainSpecific = await bridge27.getTransactionStatus(...args3);
|
|
829843
|
-
const common = await commonGetTransactionStatus(...args3);
|
|
829844
|
-
const merged = mergeResults(blockchainSpecific, common);
|
|
829845
|
-
return merged;
|
|
829846
|
-
}
|
|
829847
|
-
};
|
|
829848
|
-
}
|
|
829849
|
-
function mergeResults(blockchainSpecific, common) {
|
|
829850
|
-
const errors = { ...blockchainSpecific.errors, ...common.errors };
|
|
829851
|
-
const warnings3 = { ...blockchainSpecific.warnings, ...common.warnings };
|
|
829852
|
-
return { ...blockchainSpecific, errors, warnings: warnings3 };
|
|
829853
|
-
}
|
|
829854
|
-
async function commonGetTransactionStatus(account3, transaction) {
|
|
829855
|
-
const errors = {};
|
|
829856
|
-
const warnings3 = {};
|
|
829857
|
-
let recipientIsBlacklisted = false;
|
|
829858
|
-
if (transaction.recipient && transaction.recipient !== "") {
|
|
829859
|
-
recipientIsBlacklisted = await isAddressSanctioned(account3.currency, transaction.recipient);
|
|
829860
|
-
if (recipientIsBlacklisted) {
|
|
829861
|
-
errors.recipient = new RecipientAddressSanctionedError();
|
|
829862
|
-
}
|
|
829863
|
-
}
|
|
829864
|
-
const userIsBlacklisted = await isAddressSanctioned(account3.currency, account3.freshAddress);
|
|
829865
|
-
if (userIsBlacklisted) {
|
|
829866
|
-
errors.amount = new UserAddressSanctionedError();
|
|
829867
|
-
}
|
|
829868
|
-
if (userIsBlacklisted || recipientIsBlacklisted) {
|
|
829869
|
-
}
|
|
829870
|
-
return { errors, warnings: warnings3 };
|
|
829775
|
+
return jsBridge.accountBridge;
|
|
829871
829776
|
}
|
|
829872
829777
|
|
|
829873
829778
|
// ../../libs/ledger-live-common/lib-es/account/serialization.js
|
|
@@ -834287,12 +834192,6 @@ var countervaluesConfig = {
|
|
|
834287
834192
|
default: 20
|
|
834288
834193
|
}
|
|
834289
834194
|
};
|
|
834290
|
-
var sharedCurrencyConfig = {
|
|
834291
|
-
config_currency: {
|
|
834292
|
-
type: "object",
|
|
834293
|
-
default: {}
|
|
834294
|
-
}
|
|
834295
|
-
};
|
|
834296
834195
|
var liveCommonConfig = {
|
|
834297
834196
|
...appConfig
|
|
834298
834197
|
};
|
|
@@ -834322,8 +834221,7 @@ var liveConfig = {
|
|
|
834322
834221
|
...vechainConfig,
|
|
834323
834222
|
...iconConfig,
|
|
834324
834223
|
...tonConfig,
|
|
834325
|
-
...suiConfig
|
|
834326
|
-
...sharedCurrencyConfig
|
|
834224
|
+
...suiConfig
|
|
834327
834225
|
};
|
|
834328
834226
|
|
|
834329
834227
|
// src/live-common-setup.ts
|
|
@@ -841500,9 +841398,9 @@ function makeBridgeCacheSystem({ saveData, getData: getData2 }) {
|
|
|
841500
841398
|
...defaultCacheStrategy,
|
|
841501
841399
|
...bridge27.getPreloadStrategy && bridge27.getPreloadStrategy(currency24)
|
|
841502
841400
|
};
|
|
841503
|
-
let
|
|
841504
|
-
if (!
|
|
841505
|
-
|
|
841401
|
+
let cache8 = lruCaches[currency24.id];
|
|
841402
|
+
if (!cache8) {
|
|
841403
|
+
cache8 = makeLRUCache(async () => {
|
|
841506
841404
|
const preloaded = await bridge27.preload(currency24);
|
|
841507
841405
|
if (preloaded) {
|
|
841508
841406
|
bridge27.hydrate(preloaded, currency24);
|
|
@@ -841512,9 +841410,9 @@ function makeBridgeCacheSystem({ saveData, getData: getData2 }) {
|
|
|
841512
841410
|
}, () => "", {
|
|
841513
841411
|
ttl: preloadMaxAge
|
|
841514
841412
|
});
|
|
841515
|
-
lruCaches[currency24.id] =
|
|
841413
|
+
lruCaches[currency24.id] = cache8;
|
|
841516
841414
|
}
|
|
841517
|
-
return
|
|
841415
|
+
return cache8();
|
|
841518
841416
|
};
|
|
841519
841417
|
return {
|
|
841520
841418
|
hydrateCurrency,
|
|
@@ -841525,7 +841423,7 @@ function makeBridgeCacheSystem({ saveData, getData: getData2 }) {
|
|
|
841525
841423
|
// ../../libs/ledger-live-common/lib-es/bot/engine.js
|
|
841526
841424
|
var appCandidates;
|
|
841527
841425
|
var localCache = {};
|
|
841528
|
-
var
|
|
841426
|
+
var cache4 = makeBridgeCacheSystem({
|
|
841529
841427
|
saveData(c56, d55) {
|
|
841530
841428
|
localCache[c56.id] = d55;
|
|
841531
841429
|
return Promise.resolve();
|
|
@@ -841586,7 +841484,7 @@ async function runWithAppSpec(spec2, reportLog) {
|
|
|
841586
841484
|
paginationConfig: {}
|
|
841587
841485
|
};
|
|
841588
841486
|
let t59 = (0, import_performance_now.default)();
|
|
841589
|
-
const preloadedData = await
|
|
841487
|
+
const preloadedData = await cache4.prepareCurrency(currency24);
|
|
841590
841488
|
const preloadDuration = (0, import_performance_now.default)() - t59;
|
|
841591
841489
|
appReport.preloadDuration = preloadDuration;
|
|
841592
841490
|
const beforeScanTime = (0, import_performance_now.default)();
|
|
@@ -842170,7 +842068,7 @@ var initialState = {
|
|
|
842170
842068
|
var MAX_RETRY_DELAY = 7 * incrementPerGranularity.daily;
|
|
842171
842069
|
async function loadCountervalues(state, settings, batchStrategySolver, granularitiesRates) {
|
|
842172
842070
|
const data6 = { ...state.data };
|
|
842173
|
-
const
|
|
842071
|
+
const cache8 = { ...state.cache };
|
|
842174
842072
|
const status = { ...state.status };
|
|
842175
842073
|
const nowDate = /* @__PURE__ */ new Date();
|
|
842176
842074
|
const latestToFetch = settings.trackingPairs;
|
|
@@ -842182,7 +842080,7 @@ async function loadCountervalues(state, settings, batchStrategySolver, granulari
|
|
|
842182
842080
|
const limit = datapointLimits[granularity];
|
|
842183
842081
|
settings.trackingPairs.forEach(({ from: from91, to: to2, startDate }) => {
|
|
842184
842082
|
const key2 = pairId({ from: from91, to: to2 });
|
|
842185
|
-
const c56 =
|
|
842083
|
+
const c56 = cache8[key2];
|
|
842186
842084
|
const stats2 = c56?.stats;
|
|
842187
842085
|
const s49 = status[key2];
|
|
842188
842086
|
if (s49?.failures && s49.timestamp) {
|
|
@@ -842249,7 +842147,7 @@ async function loadCountervalues(state, settings, batchStrategySolver, granulari
|
|
|
842249
842147
|
};
|
|
842250
842148
|
if (e35.status === 422) {
|
|
842251
842149
|
delete data6[key2];
|
|
842252
|
-
delete
|
|
842150
|
+
delete cache8[key2];
|
|
842253
842151
|
}
|
|
842254
842152
|
}
|
|
842255
842153
|
log2("countervalues-error", `Failed to fetch ${granularity} history for ${pair.from.ticker}-${pair.to.ticker} ${String(e35)}`);
|
|
@@ -842303,11 +842201,11 @@ async function loadCountervalues(state, settings, batchStrategySolver, granulari
|
|
|
842303
842201
|
});
|
|
842304
842202
|
});
|
|
842305
842203
|
Object.keys(changesKeys).forEach((pair) => {
|
|
842306
|
-
|
|
842204
|
+
cache8[pair] = generateCache(pair, data6[pair], settings);
|
|
842307
842205
|
});
|
|
842308
842206
|
return {
|
|
842309
842207
|
data: data6,
|
|
842310
|
-
cache:
|
|
842208
|
+
cache: cache8,
|
|
842311
842209
|
status
|
|
842312
842210
|
};
|
|
842313
842211
|
}
|
|
@@ -843257,7 +843155,7 @@ var currencyOpt = {
|
|
|
843257
843155
|
desc: "Currency name or ticker. If not provided, it will be inferred from the device."
|
|
843258
843156
|
};
|
|
843259
843157
|
var localCache2 = {};
|
|
843260
|
-
var
|
|
843158
|
+
var cache5 = makeBridgeCacheSystem({
|
|
843261
843159
|
saveData(c56, d55) {
|
|
843262
843160
|
localCache2[c56.id] = d55;
|
|
843263
843161
|
return Promise.resolve();
|
|
@@ -843368,7 +843266,7 @@ function requiredCurrency(cur) {
|
|
|
843368
843266
|
var prepareCurrency = (fn3) => (observable) => observable.pipe(
|
|
843369
843267
|
(0, import_operators15.concatMap)((item) => {
|
|
843370
843268
|
const maybeCurrency = fn3(item);
|
|
843371
|
-
return maybeCurrency ? (0, import_rxjs159.from)(
|
|
843269
|
+
return maybeCurrency ? (0, import_rxjs159.from)(cache5.prepareCurrency(maybeCurrency).then(() => item)) : (0, import_rxjs159.of)(item);
|
|
843372
843270
|
})
|
|
843373
843271
|
);
|
|
843374
843272
|
function scan3(arg) {
|
|
@@ -843627,7 +843525,7 @@ var botTransfer_default = {
|
|
|
843627
843525
|
args: [],
|
|
843628
843526
|
job: () => {
|
|
843629
843527
|
const localCache3 = {};
|
|
843630
|
-
const
|
|
843528
|
+
const cache8 = makeBridgeCacheSystem({
|
|
843631
843529
|
saveData(c56, d55) {
|
|
843632
843530
|
localCache3[c56.id] = d55;
|
|
843633
843531
|
return Promise.resolve();
|
|
@@ -843650,7 +843548,7 @@ var botTransfer_default = {
|
|
|
843650
843548
|
if (!r37)
|
|
843651
843549
|
return;
|
|
843652
843550
|
device2 = r37.device;
|
|
843653
|
-
await
|
|
843551
|
+
await cache8.prepareCurrency(currency24);
|
|
843654
843552
|
const maybeAddress = await (0, import_rxjs162.firstValueFrom)(
|
|
843655
843553
|
getCurrencyBridge(currency24).scanAccounts({
|
|
843656
843554
|
currency: currency24,
|
|
@@ -845387,16 +845285,16 @@ function userHashesPerUserId(userId) {
|
|
|
845387
845285
|
endpointOverrides100
|
|
845388
845286
|
};
|
|
845389
845287
|
}
|
|
845390
|
-
var
|
|
845288
|
+
var cache6;
|
|
845391
845289
|
function getUserHashes(userId) {
|
|
845392
|
-
if (
|
|
845393
|
-
return
|
|
845290
|
+
if (cache6 && userId === cache6.userId) {
|
|
845291
|
+
return cache6.value;
|
|
845394
845292
|
}
|
|
845395
|
-
|
|
845293
|
+
cache6 = {
|
|
845396
845294
|
userId,
|
|
845397
845295
|
value: userHashesPerUserId(userId)
|
|
845398
845296
|
};
|
|
845399
|
-
return
|
|
845297
|
+
return cache6.value;
|
|
845400
845298
|
}
|
|
845401
845299
|
|
|
845402
845300
|
// ../../libs/device-core/lib-es/managerApi/repositories/HttpManagerApiRepository.js
|
|
@@ -855936,16 +855834,16 @@ var userHashesPerUserId2 = (userId) => {
|
|
|
855936
855834
|
endpointOverrides100
|
|
855937
855835
|
};
|
|
855938
855836
|
};
|
|
855939
|
-
var
|
|
855837
|
+
var cache7;
|
|
855940
855838
|
var getUserHashes2 = (userId) => {
|
|
855941
|
-
if (
|
|
855942
|
-
return
|
|
855839
|
+
if (cache7 && userId === cache7.userId) {
|
|
855840
|
+
return cache7.value;
|
|
855943
855841
|
}
|
|
855944
|
-
|
|
855842
|
+
cache7 = {
|
|
855945
855843
|
userId,
|
|
855946
855844
|
value: userHashesPerUserId2(userId)
|
|
855947
855845
|
};
|
|
855948
|
-
return
|
|
855846
|
+
return cache7.value;
|
|
855949
855847
|
};
|
|
855950
855848
|
|
|
855951
855849
|
// src/commands/live/user.ts
|