@strkfarm/sdk 1.1.25 → 1.1.27
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/dist/index.browser.global.js +231 -112
- package/dist/index.browser.mjs +125 -1
- package/dist/index.d.ts +50 -1
- package/dist/index.js +126 -1
- package/dist/index.mjs +125 -1
- package/package.json +1 -1
- package/src/modules/index.ts +2 -1
- package/src/modules/lst-apr.ts +140 -0
- package/src/strategies/universal-strategy.tsx +31 -2
|
@@ -20191,7 +20191,7 @@ ${r2}}` : "}", l2;
|
|
|
20191
20191
|
toHexString: () => toHexString2,
|
|
20192
20192
|
toStorageKey: () => toStorageKey2
|
|
20193
20193
|
});
|
|
20194
|
-
var
|
|
20194
|
+
var import_utils63 = require_utils2();
|
|
20195
20195
|
function isHex3(hex) {
|
|
20196
20196
|
return /^0x[0-9a-f]*$/i.test(hex);
|
|
20197
20197
|
}
|
|
@@ -20264,7 +20264,7 @@ ${r2}}` : "}", l2;
|
|
|
20264
20264
|
if (adaptedValue.length % 2 !== 0) {
|
|
20265
20265
|
adaptedValue = `0${adaptedValue}`;
|
|
20266
20266
|
}
|
|
20267
|
-
return (0,
|
|
20267
|
+
return (0, import_utils63.hexToBytes)(adaptedValue);
|
|
20268
20268
|
}
|
|
20269
20269
|
function addPercent2(number2, percent) {
|
|
20270
20270
|
const bigIntNum = BigInt(number2);
|
|
@@ -28658,6 +28658,7 @@ ${r2}}` : "}", l2;
|
|
|
28658
28658
|
HyperLSTStrategies: () => HyperLSTStrategies,
|
|
28659
28659
|
ILending: () => ILending,
|
|
28660
28660
|
Initializable: () => Initializable,
|
|
28661
|
+
LSTAPRService: () => LSTAPRService,
|
|
28661
28662
|
MarginType: () => MarginType,
|
|
28662
28663
|
Network: () => Network,
|
|
28663
28664
|
PRICE_ROUTER: () => PRICE_ROUTER,
|
|
@@ -53881,6 +53882,108 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
53881
53882
|
}
|
|
53882
53883
|
};
|
|
53883
53884
|
|
|
53885
|
+
// src/modules/lst-apr.ts
|
|
53886
|
+
var LSTAPRService = class {
|
|
53887
|
+
// 5 minutes
|
|
53888
|
+
/**
|
|
53889
|
+
* Fetches LST stats from Endur API with caching
|
|
53890
|
+
* @returns Promise<LSTStats[]> Array of LST statistics
|
|
53891
|
+
*/
|
|
53892
|
+
static async getLSTStats() {
|
|
53893
|
+
const now = Date.now();
|
|
53894
|
+
if (this.cache && now - this.cacheTimestamp < this.CACHE_DURATION) {
|
|
53895
|
+
logger2.verbose(`LSTAPRService: Returning cached LST stats`);
|
|
53896
|
+
return this.cache;
|
|
53897
|
+
}
|
|
53898
|
+
try {
|
|
53899
|
+
logger2.verbose(`LSTAPRService: Fetching LST stats from Endur API`);
|
|
53900
|
+
const response = await fetch(this.ENDUR_API_URL);
|
|
53901
|
+
if (!response.ok) {
|
|
53902
|
+
throw new Error(`Failed to fetch LST stats: ${response.status} ${response.statusText}`);
|
|
53903
|
+
}
|
|
53904
|
+
const data = await response.json();
|
|
53905
|
+
if (!Array.isArray(data)) {
|
|
53906
|
+
throw new Error("Invalid response format: expected array");
|
|
53907
|
+
}
|
|
53908
|
+
this.cache = data;
|
|
53909
|
+
this.cacheTimestamp = now;
|
|
53910
|
+
logger2.verbose(`LSTAPRService: Successfully fetched ${data.length} LST stats`);
|
|
53911
|
+
return data;
|
|
53912
|
+
} catch (error2) {
|
|
53913
|
+
logger2.error(`LSTAPRService: Error fetching LST stats: ${error2}`);
|
|
53914
|
+
if (this.cache) {
|
|
53915
|
+
logger2.warn(`LSTAPRService: Returning stale cached data due to API error`);
|
|
53916
|
+
return this.cache;
|
|
53917
|
+
}
|
|
53918
|
+
throw error2;
|
|
53919
|
+
}
|
|
53920
|
+
}
|
|
53921
|
+
/**
|
|
53922
|
+
* Gets LST APR for a specific asset address
|
|
53923
|
+
* @param assetAddress - The contract address of the underlying asset
|
|
53924
|
+
* @returns Promise<number> The LST APR (not divided by 1e18)
|
|
53925
|
+
*/
|
|
53926
|
+
static async getLSTAPR(assetAddress) {
|
|
53927
|
+
const stats = await this.getLSTStats();
|
|
53928
|
+
const lstStat = stats.find(
|
|
53929
|
+
(stat) => ContractAddr.eqString(stat.assetAddress, assetAddress.address)
|
|
53930
|
+
);
|
|
53931
|
+
if (!lstStat) {
|
|
53932
|
+
logger2.warn(`LSTAPRService: No LST stats found for asset address ${assetAddress.address}`);
|
|
53933
|
+
return 0;
|
|
53934
|
+
}
|
|
53935
|
+
logger2.verbose(`LSTAPRService: Found LST APR for ${lstStat.asset}: ${lstStat.apy} (${lstStat.apyInPercentage})`);
|
|
53936
|
+
return lstStat.apy;
|
|
53937
|
+
}
|
|
53938
|
+
/**
|
|
53939
|
+
* Gets LST APR for multiple asset addresses
|
|
53940
|
+
* @param assetAddresses - Array of contract addresses
|
|
53941
|
+
* @returns Promise<Map<string, number>> Map of asset address to LST APR
|
|
53942
|
+
*/
|
|
53943
|
+
static async getLSTAPRs(assetAddresses) {
|
|
53944
|
+
const stats = await this.getLSTStats();
|
|
53945
|
+
const result2 = /* @__PURE__ */ new Map();
|
|
53946
|
+
for (const assetAddress of assetAddresses) {
|
|
53947
|
+
const lstStat = stats.find(
|
|
53948
|
+
(stat) => ContractAddr.eqString(stat.assetAddress, assetAddress.address)
|
|
53949
|
+
);
|
|
53950
|
+
if (lstStat) {
|
|
53951
|
+
result2.set(assetAddress.address, lstStat.apy);
|
|
53952
|
+
logger2.verbose(`LSTAPRService: Found LST APR for ${lstStat.asset}: ${lstStat.apy}`);
|
|
53953
|
+
} else {
|
|
53954
|
+
result2.set(assetAddress.address, 0);
|
|
53955
|
+
logger2.warn(`LSTAPRService: No LST stats found for asset address ${assetAddress.address}`);
|
|
53956
|
+
}
|
|
53957
|
+
}
|
|
53958
|
+
return result2;
|
|
53959
|
+
}
|
|
53960
|
+
/**
|
|
53961
|
+
* Gets all available LST assets and their APRs
|
|
53962
|
+
* @returns Promise<Map<string, LSTStats>> Map of asset address to LST stats
|
|
53963
|
+
*/
|
|
53964
|
+
static async getAllLSTStats() {
|
|
53965
|
+
const stats = await this.getLSTStats();
|
|
53966
|
+
const result2 = /* @__PURE__ */ new Map();
|
|
53967
|
+
for (const stat of stats) {
|
|
53968
|
+
console.log("stat", stat);
|
|
53969
|
+
result2.set(stat.assetAddress, stat);
|
|
53970
|
+
}
|
|
53971
|
+
return result2;
|
|
53972
|
+
}
|
|
53973
|
+
/**
|
|
53974
|
+
* Clears the cache (useful for testing or forcing refresh)
|
|
53975
|
+
*/
|
|
53976
|
+
static clearCache() {
|
|
53977
|
+
this.cache = null;
|
|
53978
|
+
this.cacheTimestamp = 0;
|
|
53979
|
+
logger2.verbose(`LSTAPRService: Cache cleared`);
|
|
53980
|
+
}
|
|
53981
|
+
};
|
|
53982
|
+
LSTAPRService.ENDUR_API_URL = "https://app.endur.fi/api/lst/stats";
|
|
53983
|
+
LSTAPRService.cache = null;
|
|
53984
|
+
LSTAPRService.cacheTimestamp = 0;
|
|
53985
|
+
LSTAPRService.CACHE_DURATION = 5 * 60 * 1e3;
|
|
53986
|
+
|
|
53884
53987
|
// src/interfaces/common.tsx
|
|
53885
53988
|
var import_jsx_runtime = __toESM(require_jsx_runtime());
|
|
53886
53989
|
var RiskType = /* @__PURE__ */ ((RiskType2) => {
|
|
@@ -67071,10 +67174,10 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67071
67174
|
return old;
|
|
67072
67175
|
}
|
|
67073
67176
|
|
|
67074
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67177
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/version.js
|
|
67075
67178
|
var version4 = "3.11.8";
|
|
67076
67179
|
|
|
67077
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67180
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/globals/maybe.js
|
|
67078
67181
|
function maybe(thunk) {
|
|
67079
67182
|
try {
|
|
67080
67183
|
return thunk();
|
|
@@ -67082,7 +67185,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67082
67185
|
}
|
|
67083
67186
|
}
|
|
67084
67187
|
|
|
67085
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67188
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/globals/global.js
|
|
67086
67189
|
var global_default = maybe(function() {
|
|
67087
67190
|
return globalThis;
|
|
67088
67191
|
}) || maybe(function() {
|
|
@@ -67101,7 +67204,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67101
67204
|
return maybe.constructor("return this")();
|
|
67102
67205
|
});
|
|
67103
67206
|
|
|
67104
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67207
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/makeUniqueId.js
|
|
67105
67208
|
var prefixCounts = /* @__PURE__ */ new Map();
|
|
67106
67209
|
function makeUniqueId(prefix) {
|
|
67107
67210
|
var count = prefixCounts.get(prefix) || 1;
|
|
@@ -67109,7 +67212,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67109
67212
|
return "".concat(prefix, ":").concat(count, ":").concat(Math.random().toString(36).slice(2));
|
|
67110
67213
|
}
|
|
67111
67214
|
|
|
67112
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67215
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/stringifyForDisplay.js
|
|
67113
67216
|
function stringifyForDisplay(value, space) {
|
|
67114
67217
|
if (space === void 0) {
|
|
67115
67218
|
space = 0;
|
|
@@ -67120,7 +67223,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67120
67223
|
}, space).split(JSON.stringify(undefId)).join("<undefined>");
|
|
67121
67224
|
}
|
|
67122
67225
|
|
|
67123
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67226
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/globals/invariantWrappers.js
|
|
67124
67227
|
function wrap(fn) {
|
|
67125
67228
|
return function(message) {
|
|
67126
67229
|
var args = [];
|
|
@@ -67191,10 +67294,10 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67191
67294
|
})));
|
|
67192
67295
|
}
|
|
67193
67296
|
|
|
67194
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67297
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/globals/index.js
|
|
67195
67298
|
var DEV = globalThis.__DEV__ !== false;
|
|
67196
67299
|
|
|
67197
|
-
// node_modules/.pnpm/graphql@16.
|
|
67300
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.mjs
|
|
67198
67301
|
function devAssert(condition, message) {
|
|
67199
67302
|
const booleanCondition = Boolean(condition);
|
|
67200
67303
|
if (!booleanCondition) {
|
|
@@ -67202,12 +67305,12 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67202
67305
|
}
|
|
67203
67306
|
}
|
|
67204
67307
|
|
|
67205
|
-
// node_modules/.pnpm/graphql@16.
|
|
67308
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isObjectLike.mjs
|
|
67206
67309
|
function isObjectLike(value) {
|
|
67207
67310
|
return typeof value == "object" && value !== null;
|
|
67208
67311
|
}
|
|
67209
67312
|
|
|
67210
|
-
// node_modules/.pnpm/graphql@16.
|
|
67313
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/invariant.mjs
|
|
67211
67314
|
function invariant4(condition, message) {
|
|
67212
67315
|
const booleanCondition = Boolean(condition);
|
|
67213
67316
|
if (!booleanCondition) {
|
|
@@ -67217,7 +67320,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67217
67320
|
}
|
|
67218
67321
|
}
|
|
67219
67322
|
|
|
67220
|
-
// node_modules/.pnpm/graphql@16.
|
|
67323
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/location.mjs
|
|
67221
67324
|
var LineRegExp = /\r\n|[\n\r]/g;
|
|
67222
67325
|
function getLocation(source, position) {
|
|
67223
67326
|
let lastLineStart = 0;
|
|
@@ -67236,7 +67339,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67236
67339
|
};
|
|
67237
67340
|
}
|
|
67238
67341
|
|
|
67239
|
-
// node_modules/.pnpm/graphql@16.
|
|
67342
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printLocation.mjs
|
|
67240
67343
|
function printLocation(location) {
|
|
67241
67344
|
return printSourceLocation(
|
|
67242
67345
|
location.source,
|
|
@@ -67283,7 +67386,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67283
67386
|
return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join("\n");
|
|
67284
67387
|
}
|
|
67285
67388
|
|
|
67286
|
-
// node_modules/.pnpm/graphql@16.
|
|
67389
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/GraphQLError.mjs
|
|
67287
67390
|
function toNormalizedOptions(args) {
|
|
67288
67391
|
const firstArg = args[0];
|
|
67289
67392
|
if (firstArg == null || "kind" in firstArg || "length" in firstArg) {
|
|
@@ -67432,7 +67535,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67432
67535
|
return array === void 0 || array.length === 0 ? void 0 : array;
|
|
67433
67536
|
}
|
|
67434
67537
|
|
|
67435
|
-
// node_modules/.pnpm/graphql@16.
|
|
67538
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/syntaxError.mjs
|
|
67436
67539
|
function syntaxError(source, position, description) {
|
|
67437
67540
|
return new GraphQLError(`Syntax Error: ${description}`, {
|
|
67438
67541
|
source,
|
|
@@ -67440,7 +67543,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67440
67543
|
});
|
|
67441
67544
|
}
|
|
67442
67545
|
|
|
67443
|
-
// node_modules/.pnpm/graphql@16.
|
|
67546
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/ast.mjs
|
|
67444
67547
|
var Location = class {
|
|
67445
67548
|
/**
|
|
67446
67549
|
* The character offset at which this Node begins.
|
|
@@ -67610,7 +67713,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67610
67713
|
OperationTypeNode2["SUBSCRIPTION"] = "subscription";
|
|
67611
67714
|
})(OperationTypeNode || (OperationTypeNode = {}));
|
|
67612
67715
|
|
|
67613
|
-
// node_modules/.pnpm/graphql@16.
|
|
67716
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/directiveLocation.mjs
|
|
67614
67717
|
var DirectiveLocation;
|
|
67615
67718
|
(function(DirectiveLocation2) {
|
|
67616
67719
|
DirectiveLocation2["QUERY"] = "QUERY";
|
|
@@ -67634,7 +67737,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67634
67737
|
DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
|
|
67635
67738
|
})(DirectiveLocation || (DirectiveLocation = {}));
|
|
67636
67739
|
|
|
67637
|
-
// node_modules/.pnpm/graphql@16.
|
|
67740
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/kinds.mjs
|
|
67638
67741
|
var Kind;
|
|
67639
67742
|
(function(Kind2) {
|
|
67640
67743
|
Kind2["NAME"] = "Name";
|
|
@@ -67682,7 +67785,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67682
67785
|
Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
|
|
67683
67786
|
})(Kind || (Kind = {}));
|
|
67684
67787
|
|
|
67685
|
-
// node_modules/.pnpm/graphql@16.
|
|
67788
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/characterClasses.mjs
|
|
67686
67789
|
function isWhiteSpace(code) {
|
|
67687
67790
|
return code === 9 || code === 32;
|
|
67688
67791
|
}
|
|
@@ -67700,7 +67803,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67700
67803
|
return isLetter(code) || isDigit2(code) || code === 95;
|
|
67701
67804
|
}
|
|
67702
67805
|
|
|
67703
|
-
// node_modules/.pnpm/graphql@16.
|
|
67806
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/blockString.mjs
|
|
67704
67807
|
function dedentBlockStringLines(lines) {
|
|
67705
67808
|
var _firstNonEmptyLine2;
|
|
67706
67809
|
let commonIndent = Number.MAX_SAFE_INTEGER;
|
|
@@ -67754,7 +67857,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67754
67857
|
return '"""' + result2 + '"""';
|
|
67755
67858
|
}
|
|
67756
67859
|
|
|
67757
|
-
// node_modules/.pnpm/graphql@16.
|
|
67860
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/tokenKind.mjs
|
|
67758
67861
|
var TokenKind;
|
|
67759
67862
|
(function(TokenKind2) {
|
|
67760
67863
|
TokenKind2["SOF"] = "<SOF>";
|
|
@@ -67781,7 +67884,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67781
67884
|
TokenKind2["COMMENT"] = "Comment";
|
|
67782
67885
|
})(TokenKind || (TokenKind = {}));
|
|
67783
67886
|
|
|
67784
|
-
// node_modules/.pnpm/graphql@16.
|
|
67887
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/lexer.mjs
|
|
67785
67888
|
var Lexer = class {
|
|
67786
67889
|
/**
|
|
67787
67890
|
* The previously focused non-ignored token.
|
|
@@ -68313,7 +68416,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68313
68416
|
);
|
|
68314
68417
|
}
|
|
68315
68418
|
|
|
68316
|
-
// node_modules/.pnpm/graphql@16.
|
|
68419
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/inspect.mjs
|
|
68317
68420
|
var MAX_ARRAY_LENGTH = 10;
|
|
68318
68421
|
var MAX_RECURSIVE_DEPTH = 2;
|
|
68319
68422
|
function inspect(value) {
|
|
@@ -68396,7 +68499,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68396
68499
|
return tag;
|
|
68397
68500
|
}
|
|
68398
68501
|
|
|
68399
|
-
// node_modules/.pnpm/graphql@16.
|
|
68502
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/instanceOf.mjs
|
|
68400
68503
|
var isProduction = globalThis.process && // eslint-disable-next-line no-undef
|
|
68401
68504
|
false;
|
|
68402
68505
|
var instanceOf = (
|
|
@@ -68435,7 +68538,7 @@ spurious results.`);
|
|
|
68435
68538
|
}
|
|
68436
68539
|
);
|
|
68437
68540
|
|
|
68438
|
-
// node_modules/.pnpm/graphql@16.
|
|
68541
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/source.mjs
|
|
68439
68542
|
var Source = class {
|
|
68440
68543
|
constructor(body, name = "GraphQL request", locationOffset = {
|
|
68441
68544
|
line: 1,
|
|
@@ -68462,15 +68565,10 @@ spurious results.`);
|
|
|
68462
68565
|
return instanceOf(source, Source);
|
|
68463
68566
|
}
|
|
68464
68567
|
|
|
68465
|
-
// node_modules/.pnpm/graphql@16.
|
|
68568
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/parser.mjs
|
|
68466
68569
|
function parse3(source, options) {
|
|
68467
68570
|
const parser = new Parser(source, options);
|
|
68468
|
-
|
|
68469
|
-
Object.defineProperty(document2, "tokenCount", {
|
|
68470
|
-
enumerable: false,
|
|
68471
|
-
value: parser.tokenCount
|
|
68472
|
-
});
|
|
68473
|
-
return document2;
|
|
68571
|
+
return parser.parseDocument();
|
|
68474
68572
|
}
|
|
68475
68573
|
var Parser = class {
|
|
68476
68574
|
constructor(source, options = {}) {
|
|
@@ -68479,9 +68577,6 @@ spurious results.`);
|
|
|
68479
68577
|
this._options = options;
|
|
68480
68578
|
this._tokenCounter = 0;
|
|
68481
68579
|
}
|
|
68482
|
-
get tokenCount() {
|
|
68483
|
-
return this._tokenCounter;
|
|
68484
|
-
}
|
|
68485
68580
|
/**
|
|
68486
68581
|
* Converts a name lex token into a name parse node.
|
|
68487
68582
|
*/
|
|
@@ -69699,9 +69794,9 @@ spurious results.`);
|
|
|
69699
69794
|
advanceLexer() {
|
|
69700
69795
|
const { maxTokens } = this._options;
|
|
69701
69796
|
const token = this._lexer.advance();
|
|
69702
|
-
if (token.kind !== TokenKind.EOF) {
|
|
69797
|
+
if (maxTokens !== void 0 && token.kind !== TokenKind.EOF) {
|
|
69703
69798
|
++this._tokenCounter;
|
|
69704
|
-
if (
|
|
69799
|
+
if (this._tokenCounter > maxTokens) {
|
|
69705
69800
|
throw syntaxError(
|
|
69706
69801
|
this._lexer.source,
|
|
69707
69802
|
token.start,
|
|
@@ -69719,7 +69814,7 @@ spurious results.`);
|
|
|
69719
69814
|
return isPunctuatorTokenKind(kind) ? `"${kind}"` : kind;
|
|
69720
69815
|
}
|
|
69721
69816
|
|
|
69722
|
-
// node_modules/.pnpm/graphql@16.
|
|
69817
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printString.mjs
|
|
69723
69818
|
function printString(str) {
|
|
69724
69819
|
return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
|
|
69725
69820
|
}
|
|
@@ -69895,7 +69990,7 @@ spurious results.`);
|
|
|
69895
69990
|
"\\u009F"
|
|
69896
69991
|
];
|
|
69897
69992
|
|
|
69898
|
-
// node_modules/.pnpm/graphql@16.
|
|
69993
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/visitor.mjs
|
|
69899
69994
|
var BREAK = Object.freeze({});
|
|
69900
69995
|
function visit(root2, visitor, visitorKeys = QueryDocumentKeys) {
|
|
69901
69996
|
const enterLeaveMap = /* @__PURE__ */ new Map();
|
|
@@ -69934,7 +70029,10 @@ spurious results.`);
|
|
|
69934
70029
|
}
|
|
69935
70030
|
}
|
|
69936
70031
|
} else {
|
|
69937
|
-
node =
|
|
70032
|
+
node = Object.defineProperties(
|
|
70033
|
+
{},
|
|
70034
|
+
Object.getOwnPropertyDescriptors(node)
|
|
70035
|
+
);
|
|
69938
70036
|
for (const [editKey, editValue] of edits) {
|
|
69939
70037
|
node[editKey] = editValue;
|
|
69940
70038
|
}
|
|
@@ -70024,7 +70122,7 @@ spurious results.`);
|
|
|
70024
70122
|
};
|
|
70025
70123
|
}
|
|
70026
70124
|
|
|
70027
|
-
// node_modules/.pnpm/graphql@16.
|
|
70125
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printer.mjs
|
|
70028
70126
|
function print(ast) {
|
|
70029
70127
|
return visit(ast, printDocASTReducer);
|
|
70030
70128
|
}
|
|
@@ -70266,12 +70364,12 @@ spurious results.`);
|
|
|
70266
70364
|
return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
|
|
70267
70365
|
}
|
|
70268
70366
|
|
|
70269
|
-
// node_modules/.pnpm/graphql@16.
|
|
70367
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/predicates.mjs
|
|
70270
70368
|
function isSelectionNode(node) {
|
|
70271
70369
|
return node.kind === Kind.FIELD || node.kind === Kind.FRAGMENT_SPREAD || node.kind === Kind.INLINE_FRAGMENT;
|
|
70272
70370
|
}
|
|
70273
70371
|
|
|
70274
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70372
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/directives.js
|
|
70275
70373
|
function shouldInclude(_a21, variables) {
|
|
70276
70374
|
var directives = _a21.directives;
|
|
70277
70375
|
if (!directives || !directives.length) {
|
|
@@ -70399,7 +70497,7 @@ spurious results.`);
|
|
|
70399
70497
|
return false;
|
|
70400
70498
|
}
|
|
70401
70499
|
|
|
70402
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70500
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/canUse.js
|
|
70403
70501
|
var isReactNative = maybe(function() {
|
|
70404
70502
|
return navigator.product;
|
|
70405
70503
|
}) == "ReactNative";
|
|
@@ -70424,12 +70522,12 @@ spurious results.`);
|
|
|
70424
70522
|
}) || false
|
|
70425
70523
|
);
|
|
70426
70524
|
|
|
70427
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70525
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/objects.js
|
|
70428
70526
|
function isNonNullObject(obj) {
|
|
70429
70527
|
return obj !== null && typeof obj === "object";
|
|
70430
70528
|
}
|
|
70431
70529
|
|
|
70432
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70530
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/fragments.js
|
|
70433
70531
|
function getFragmentQueryDocument(document2, fragmentName) {
|
|
70434
70532
|
var actualFragmentName = fragmentName;
|
|
70435
70533
|
var fragments = [];
|
|
@@ -70725,7 +70823,7 @@ spurious results.`);
|
|
|
70725
70823
|
}
|
|
70726
70824
|
};
|
|
70727
70825
|
|
|
70728
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70826
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/caching/caches.js
|
|
70729
70827
|
var scheduledCleanup = /* @__PURE__ */ new WeakSet();
|
|
70730
70828
|
function schedule(cache) {
|
|
70731
70829
|
if (cache.size <= (cache.max || -1)) {
|
|
@@ -70758,11 +70856,11 @@ spurious results.`);
|
|
|
70758
70856
|
return cache;
|
|
70759
70857
|
};
|
|
70760
70858
|
|
|
70761
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70859
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/caching/sizes.js
|
|
70762
70860
|
var cacheSizeSymbol = Symbol.for("apollo.cacheSize");
|
|
70763
70861
|
var cacheSizes = __assign({}, global_default[cacheSizeSymbol]);
|
|
70764
70862
|
|
|
70765
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70863
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/caching/getMemoryInternals.js
|
|
70766
70864
|
var globalCaches = {};
|
|
70767
70865
|
function registerGlobalCache(name, getSize) {
|
|
70768
70866
|
globalCaches[name] = getSize;
|
|
@@ -70852,7 +70950,7 @@ spurious results.`);
|
|
|
70852
70950
|
], linkInfo(link === null || link === void 0 ? void 0 : link.left), true), linkInfo(link === null || link === void 0 ? void 0 : link.right), true).filter(isDefined) : [];
|
|
70853
70951
|
}
|
|
70854
70952
|
|
|
70855
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70953
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/canonicalStringify.js
|
|
70856
70954
|
var canonicalStringify = Object.assign(function canonicalStringify2(value) {
|
|
70857
70955
|
return JSON.stringify(value, stableObjectReplacer);
|
|
70858
70956
|
}, {
|
|
@@ -70899,7 +70997,7 @@ spurious results.`);
|
|
|
70899
70997
|
return i === 0 || keys[i - 1] <= key;
|
|
70900
70998
|
}
|
|
70901
70999
|
|
|
70902
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71000
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/storeUtils.js
|
|
70903
71001
|
function makeReference(id) {
|
|
70904
71002
|
return { __ref: String(id) };
|
|
70905
71003
|
}
|
|
@@ -71084,7 +71182,7 @@ spurious results.`);
|
|
|
71084
71182
|
return selection.kind === "InlineFragment";
|
|
71085
71183
|
}
|
|
71086
71184
|
|
|
71087
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71185
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/getFromAST.js
|
|
71088
71186
|
function checkDocument(doc) {
|
|
71089
71187
|
invariant2(doc && doc.kind === "Document", 77);
|
|
71090
71188
|
var operations = doc.definitions.filter(function(d) {
|
|
@@ -71643,7 +71741,7 @@ spurious results.`);
|
|
|
71643
71741
|
return Object.freeze(optimistic);
|
|
71644
71742
|
}
|
|
71645
71743
|
|
|
71646
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71744
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/DocumentTransform.js
|
|
71647
71745
|
function identity(document2) {
|
|
71648
71746
|
return document2;
|
|
71649
71747
|
}
|
|
@@ -71727,7 +71825,7 @@ spurious results.`);
|
|
|
71727
71825
|
})()
|
|
71728
71826
|
);
|
|
71729
71827
|
|
|
71730
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71828
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/print.js
|
|
71731
71829
|
var printCache;
|
|
71732
71830
|
var print2 = Object.assign(function(ast) {
|
|
71733
71831
|
var result2 = printCache.get(ast);
|
|
@@ -71751,13 +71849,13 @@ spurious results.`);
|
|
|
71751
71849
|
});
|
|
71752
71850
|
}
|
|
71753
71851
|
|
|
71754
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71852
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/arrays.js
|
|
71755
71853
|
var isArray2 = Array.isArray;
|
|
71756
71854
|
function isNonEmptyArray(value) {
|
|
71757
71855
|
return Array.isArray(value) && value.length > 0;
|
|
71758
71856
|
}
|
|
71759
71857
|
|
|
71760
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71858
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/transform.js
|
|
71761
71859
|
var TYPENAME_FIELD = {
|
|
71762
71860
|
kind: Kind.FIELD,
|
|
71763
71861
|
name: {
|
|
@@ -72049,7 +72147,7 @@ spurious results.`);
|
|
|
72049
72147
|
return modifiedDoc;
|
|
72050
72148
|
}
|
|
72051
72149
|
|
|
72052
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72150
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/mergeDeep.js
|
|
72053
72151
|
var hasOwnProperty4 = Object.prototype.hasOwnProperty;
|
|
72054
72152
|
function mergeDeep() {
|
|
72055
72153
|
var sources = [];
|
|
@@ -72685,7 +72783,7 @@ spurious results.`);
|
|
|
72685
72783
|
}
|
|
72686
72784
|
var result = symbolObservablePonyfill(root);
|
|
72687
72785
|
|
|
72688
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72786
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/observables/Observable.js
|
|
72689
72787
|
var prototype3 = Observable.prototype;
|
|
72690
72788
|
var fakeObsSymbol = "@@observable";
|
|
72691
72789
|
if (!prototype3[fakeObsSymbol]) {
|
|
@@ -72694,7 +72792,7 @@ spurious results.`);
|
|
|
72694
72792
|
};
|
|
72695
72793
|
}
|
|
72696
72794
|
|
|
72697
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72795
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/cloneDeep.js
|
|
72698
72796
|
var toString4 = Object.prototype.toString;
|
|
72699
72797
|
function cloneDeep(value) {
|
|
72700
72798
|
return cloneDeepHelper(value);
|
|
@@ -72728,7 +72826,7 @@ spurious results.`);
|
|
|
72728
72826
|
}
|
|
72729
72827
|
}
|
|
72730
72828
|
|
|
72731
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72829
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/maybeDeepFreeze.js
|
|
72732
72830
|
function deepFreeze(value) {
|
|
72733
72831
|
var workSet = /* @__PURE__ */ new Set([value]);
|
|
72734
72832
|
workSet.forEach(function(obj) {
|
|
@@ -72760,7 +72858,7 @@ spurious results.`);
|
|
|
72760
72858
|
return obj;
|
|
72761
72859
|
}
|
|
72762
72860
|
|
|
72763
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72861
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/observables/iteration.js
|
|
72764
72862
|
function iterateObserversSafely(observers, method, argument) {
|
|
72765
72863
|
var observersWithMethod = [];
|
|
72766
72864
|
observers.forEach(function(obs) {
|
|
@@ -72771,7 +72869,7 @@ spurious results.`);
|
|
|
72771
72869
|
});
|
|
72772
72870
|
}
|
|
72773
72871
|
|
|
72774
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72872
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/observables/asyncMap.js
|
|
72775
72873
|
function asyncMap(observable, mapFn, catchFn) {
|
|
72776
72874
|
return new Observable(function(observer) {
|
|
72777
72875
|
var promiseQueue = {
|
|
@@ -72819,7 +72917,7 @@ spurious results.`);
|
|
|
72819
72917
|
});
|
|
72820
72918
|
}
|
|
72821
72919
|
|
|
72822
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72920
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/observables/subclassing.js
|
|
72823
72921
|
function fixObservableSubclass(subclass) {
|
|
72824
72922
|
function set(key) {
|
|
72825
72923
|
Object.defineProperty(subclass, key, { value: Observable });
|
|
@@ -72831,7 +72929,7 @@ spurious results.`);
|
|
|
72831
72929
|
return subclass;
|
|
72832
72930
|
}
|
|
72833
72931
|
|
|
72834
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72932
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/observables/Concast.js
|
|
72835
72933
|
function isPromiseLike(value) {
|
|
72836
72934
|
return value && typeof value.then === "function";
|
|
72837
72935
|
}
|
|
@@ -72972,7 +73070,7 @@ spurious results.`);
|
|
|
72972
73070
|
);
|
|
72973
73071
|
fixObservableSubclass(Concast);
|
|
72974
73072
|
|
|
72975
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73073
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/incrementalResult.js
|
|
72976
73074
|
function isExecutionPatchIncrementalResult(value) {
|
|
72977
73075
|
return "incremental" in value;
|
|
72978
73076
|
}
|
|
@@ -73004,7 +73102,7 @@ spurious results.`);
|
|
|
73004
73102
|
return mergedData;
|
|
73005
73103
|
}
|
|
73006
73104
|
|
|
73007
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73105
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/errorHandling.js
|
|
73008
73106
|
function graphQLResultHasError(result2) {
|
|
73009
73107
|
var errors2 = getGraphQLErrorsFromResult(result2);
|
|
73010
73108
|
return isNonEmptyArray(errors2);
|
|
@@ -73021,7 +73119,7 @@ spurious results.`);
|
|
|
73021
73119
|
return graphQLErrors;
|
|
73022
73120
|
}
|
|
73023
73121
|
|
|
73024
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73122
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/compact.js
|
|
73025
73123
|
function compact() {
|
|
73026
73124
|
var objects = [];
|
|
73027
73125
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -73041,21 +73139,21 @@ spurious results.`);
|
|
|
73041
73139
|
return result2;
|
|
73042
73140
|
}
|
|
73043
73141
|
|
|
73044
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73142
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/mergeOptions.js
|
|
73045
73143
|
function mergeOptions(defaults2, options) {
|
|
73046
73144
|
return compact(defaults2, options, options.variables && {
|
|
73047
73145
|
variables: compact(__assign(__assign({}, defaults2 && defaults2.variables), options.variables))
|
|
73048
73146
|
});
|
|
73049
73147
|
}
|
|
73050
73148
|
|
|
73051
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73149
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/fromError.js
|
|
73052
73150
|
function fromError(errorValue) {
|
|
73053
73151
|
return new Observable(function(observer) {
|
|
73054
73152
|
observer.error(errorValue);
|
|
73055
73153
|
});
|
|
73056
73154
|
}
|
|
73057
73155
|
|
|
73058
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73156
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/throwServerError.js
|
|
73059
73157
|
var throwServerError = function(response, result2, message) {
|
|
73060
73158
|
var error2 = new Error(message);
|
|
73061
73159
|
error2.name = "ServerError";
|
|
@@ -73065,7 +73163,7 @@ spurious results.`);
|
|
|
73065
73163
|
throw error2;
|
|
73066
73164
|
};
|
|
73067
73165
|
|
|
73068
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73166
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/validateOperation.js
|
|
73069
73167
|
function validateOperation(operation) {
|
|
73070
73168
|
var OPERATION_FIELDS = [
|
|
73071
73169
|
"query",
|
|
@@ -73083,7 +73181,7 @@ spurious results.`);
|
|
|
73083
73181
|
return operation;
|
|
73084
73182
|
}
|
|
73085
73183
|
|
|
73086
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73184
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/createOperation.js
|
|
73087
73185
|
function createOperation(starting, operation) {
|
|
73088
73186
|
var context = __assign({}, starting);
|
|
73089
73187
|
var setContext = function(next) {
|
|
@@ -73107,7 +73205,7 @@ spurious results.`);
|
|
|
73107
73205
|
return operation;
|
|
73108
73206
|
}
|
|
73109
73207
|
|
|
73110
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73208
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/transformOperation.js
|
|
73111
73209
|
function transformOperation(operation) {
|
|
73112
73210
|
var transformedOperation = {
|
|
73113
73211
|
variables: operation.variables || {},
|
|
@@ -73121,7 +73219,7 @@ spurious results.`);
|
|
|
73121
73219
|
return transformedOperation;
|
|
73122
73220
|
}
|
|
73123
73221
|
|
|
73124
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73222
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/filterOperationVariables.js
|
|
73125
73223
|
function filterOperationVariables(variables, query) {
|
|
73126
73224
|
var result2 = __assign({}, variables);
|
|
73127
73225
|
var unusedNames = new Set(Object.keys(variables));
|
|
@@ -73138,7 +73236,7 @@ spurious results.`);
|
|
|
73138
73236
|
return result2;
|
|
73139
73237
|
}
|
|
73140
73238
|
|
|
73141
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73239
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/core/ApolloLink.js
|
|
73142
73240
|
function passthrough(op, forward) {
|
|
73143
73241
|
return forward ? forward(op) : Observable.of();
|
|
73144
73242
|
}
|
|
@@ -73232,10 +73330,10 @@ spurious results.`);
|
|
|
73232
73330
|
})()
|
|
73233
73331
|
);
|
|
73234
73332
|
|
|
73235
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73333
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/core/execute.js
|
|
73236
73334
|
var execute = ApolloLink.execute;
|
|
73237
73335
|
|
|
73238
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73336
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/iterators/async.js
|
|
73239
73337
|
function asyncIterator(source) {
|
|
73240
73338
|
var _a21;
|
|
73241
73339
|
var iterator2 = source[Symbol.asyncIterator]();
|
|
@@ -73248,7 +73346,7 @@ spurious results.`);
|
|
|
73248
73346
|
}, _a21;
|
|
73249
73347
|
}
|
|
73250
73348
|
|
|
73251
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73349
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/iterators/nodeStream.js
|
|
73252
73350
|
function nodeStreamIterator(stream) {
|
|
73253
73351
|
var cleanup = null;
|
|
73254
73352
|
var error2 = null;
|
|
@@ -73319,7 +73417,7 @@ spurious results.`);
|
|
|
73319
73417
|
return iterator2;
|
|
73320
73418
|
}
|
|
73321
73419
|
|
|
73322
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73420
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/iterators/promise.js
|
|
73323
73421
|
function promiseIterator(promise) {
|
|
73324
73422
|
var resolved = false;
|
|
73325
73423
|
var iterator2 = {
|
|
@@ -73345,7 +73443,7 @@ spurious results.`);
|
|
|
73345
73443
|
return iterator2;
|
|
73346
73444
|
}
|
|
73347
73445
|
|
|
73348
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73446
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/iterators/reader.js
|
|
73349
73447
|
function readerIterator(reader) {
|
|
73350
73448
|
var iterator2 = {
|
|
73351
73449
|
next: function() {
|
|
@@ -73360,7 +73458,7 @@ spurious results.`);
|
|
|
73360
73458
|
return iterator2;
|
|
73361
73459
|
}
|
|
73362
73460
|
|
|
73363
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73461
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/responseIterator.js
|
|
73364
73462
|
function isNodeResponse(value) {
|
|
73365
73463
|
return !!value.body;
|
|
73366
73464
|
}
|
|
@@ -73397,7 +73495,7 @@ spurious results.`);
|
|
|
73397
73495
|
throw new Error("Unknown body type for responseIterator. Please pass a streamable response.");
|
|
73398
73496
|
}
|
|
73399
73497
|
|
|
73400
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73498
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/errors/index.js
|
|
73401
73499
|
var PROTOCOL_ERRORS_SYMBOL = Symbol();
|
|
73402
73500
|
function graphQLResultHasProtocolErrors(result2) {
|
|
73403
73501
|
if (result2.extensions) {
|
|
@@ -73442,7 +73540,7 @@ spurious results.`);
|
|
|
73442
73540
|
})(Error)
|
|
73443
73541
|
);
|
|
73444
73542
|
|
|
73445
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73543
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js
|
|
73446
73544
|
var hasOwnProperty5 = Object.prototype.hasOwnProperty;
|
|
73447
73545
|
function readMultipartBody(response, nextValue) {
|
|
73448
73546
|
return __awaiter(this, void 0, void 0, function() {
|
|
@@ -73586,7 +73684,7 @@ spurious results.`);
|
|
|
73586
73684
|
};
|
|
73587
73685
|
}
|
|
73588
73686
|
|
|
73589
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73687
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/serializeFetchParameter.js
|
|
73590
73688
|
var serializeFetchParameter = function(p, label) {
|
|
73591
73689
|
var serialized;
|
|
73592
73690
|
try {
|
|
@@ -73599,7 +73697,7 @@ spurious results.`);
|
|
|
73599
73697
|
return serialized;
|
|
73600
73698
|
};
|
|
73601
73699
|
|
|
73602
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73700
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js
|
|
73603
73701
|
var defaultHttpOptions = {
|
|
73604
73702
|
includeQuery: true,
|
|
73605
73703
|
includeExtensions: false,
|
|
@@ -73683,14 +73781,14 @@ spurious results.`);
|
|
|
73683
73781
|
return normalizedHeaders;
|
|
73684
73782
|
}
|
|
73685
73783
|
|
|
73686
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73784
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/checkFetcher.js
|
|
73687
73785
|
var checkFetcher = function(fetcher) {
|
|
73688
73786
|
if (!fetcher && typeof fetch === "undefined") {
|
|
73689
73787
|
throw newInvariantError(38);
|
|
73690
73788
|
}
|
|
73691
73789
|
};
|
|
73692
73790
|
|
|
73693
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73791
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/selectURI.js
|
|
73694
73792
|
var selectURI = function(operation, fallbackURI) {
|
|
73695
73793
|
var context = operation.getContext();
|
|
73696
73794
|
var contextURI = context.uri;
|
|
@@ -73703,7 +73801,7 @@ spurious results.`);
|
|
|
73703
73801
|
}
|
|
73704
73802
|
};
|
|
73705
73803
|
|
|
73706
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73804
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/rewriteURIForGET.js
|
|
73707
73805
|
function rewriteURIForGET(chosenURI, body) {
|
|
73708
73806
|
var queryParams = [];
|
|
73709
73807
|
var addQueryParam = function(key, value) {
|
|
@@ -73744,7 +73842,7 @@ spurious results.`);
|
|
|
73744
73842
|
return { newURI };
|
|
73745
73843
|
}
|
|
73746
73844
|
|
|
73747
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73845
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/createHttpLink.js
|
|
73748
73846
|
var backupFetch = maybe(function() {
|
|
73749
73847
|
return fetch;
|
|
73750
73848
|
});
|
|
@@ -73864,7 +73962,7 @@ spurious results.`);
|
|
|
73864
73962
|
});
|
|
73865
73963
|
};
|
|
73866
73964
|
|
|
73867
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73965
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/HttpLink.js
|
|
73868
73966
|
var HttpLink = (
|
|
73869
73967
|
/** @class */
|
|
73870
73968
|
(function(_super) {
|
|
@@ -74017,7 +74115,7 @@ spurious results.`);
|
|
|
74017
74115
|
return false;
|
|
74018
74116
|
}
|
|
74019
74117
|
|
|
74020
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74118
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/equalByQuery.js
|
|
74021
74119
|
function equalByQuery(query, _a21, _b, variables) {
|
|
74022
74120
|
var aData = _a21.data, aRest = __rest(_a21, ["data"]);
|
|
74023
74121
|
var bData = _b.data, bRest = __rest(_b, ["data"]);
|
|
@@ -74090,7 +74188,7 @@ spurious results.`);
|
|
|
74090
74188
|
return dir.name.value === "nonreactive";
|
|
74091
74189
|
}
|
|
74092
74190
|
|
|
74093
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74191
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/core/cache.js
|
|
74094
74192
|
var ApolloCache = (
|
|
74095
74193
|
/** @class */
|
|
74096
74194
|
(function() {
|
|
@@ -74222,7 +74320,7 @@ spurious results.`);
|
|
|
74222
74320
|
ApolloCache.prototype.getMemoryInternals = getApolloCacheMemoryInternals;
|
|
74223
74321
|
}
|
|
74224
74322
|
|
|
74225
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74323
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/core/types/common.js
|
|
74226
74324
|
var MissingFieldError = (
|
|
74227
74325
|
/** @class */
|
|
74228
74326
|
(function(_super) {
|
|
@@ -74249,7 +74347,7 @@ spurious results.`);
|
|
|
74249
74347
|
})(Error)
|
|
74250
74348
|
);
|
|
74251
74349
|
|
|
74252
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74350
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/helpers.js
|
|
74253
74351
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
74254
74352
|
function isNullish(value) {
|
|
74255
74353
|
return value === null || value === void 0;
|
|
@@ -74325,7 +74423,7 @@ spurious results.`);
|
|
|
74325
74423
|
};
|
|
74326
74424
|
}
|
|
74327
74425
|
|
|
74328
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74426
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/entityStore.js
|
|
74329
74427
|
var DELETE = /* @__PURE__ */ Object.create(null);
|
|
74330
74428
|
var delModifier = function() {
|
|
74331
74429
|
return DELETE;
|
|
@@ -74842,7 +74940,7 @@ spurious results.`);
|
|
|
74842
74940
|
return !!(store instanceof EntityStore && store.group.caching);
|
|
74843
74941
|
}
|
|
74844
74942
|
|
|
74845
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74943
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/object-canon.js
|
|
74846
74944
|
function shallowCopy(value) {
|
|
74847
74945
|
if (isNonNullObject(value)) {
|
|
74848
74946
|
return isArray2(value) ? value.slice(0) : __assign({ __proto__: Object.getPrototypeOf(value) }, value);
|
|
@@ -74936,7 +75034,7 @@ spurious results.`);
|
|
|
74936
75034
|
})()
|
|
74937
75035
|
);
|
|
74938
75036
|
|
|
74939
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
75037
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/readFromStore.js
|
|
74940
75038
|
function execSelectionSetKeyArgs(options) {
|
|
74941
75039
|
return [
|
|
74942
75040
|
options.selectionSet,
|
|
@@ -75205,7 +75303,7 @@ spurious results.`);
|
|
|
75205
75303
|
}
|
|
75206
75304
|
}
|
|
75207
75305
|
|
|
75208
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
75306
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/reactiveVars.js
|
|
75209
75307
|
var cacheSlot = new Slot();
|
|
75210
75308
|
var cacheInfoMap = /* @__PURE__ */ new WeakMap();
|
|
75211
75309
|
function getCacheInfo(cache) {
|
|
@@ -75276,7 +75374,7 @@ spurious results.`);
|
|
|
75276
75374
|
}
|
|
75277
75375
|
}
|
|
75278
75376
|
|
|
75279
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
75377
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/key-extractor.js
|
|
75280
75378
|
var specifierInfoCache = /* @__PURE__ */ Object.create(null);
|
|
75281
75379
|
function lookupSpecifierInfo(spec) {
|
|
75282
75380
|
var cacheKey = JSON.stringify(spec);
|
|
@@ -75409,7 +75507,7 @@ spurious results.`);
|
|
|
75409
75507
|
return value;
|
|
75410
75508
|
}
|
|
75411
75509
|
|
|
75412
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
75510
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/policies.js
|
|
75413
75511
|
function argsFromFieldSpecifier(spec) {
|
|
75414
75512
|
return spec.args !== void 0 ? spec.args : spec.field ? argumentsObjectFromField(spec.field, spec.variables) : null;
|
|
75415
75513
|
}
|
|
@@ -75844,7 +75942,7 @@ spurious results.`);
|
|
|
75844
75942
|
};
|
|
75845
75943
|
}
|
|
75846
75944
|
|
|
75847
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
75945
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/writeToStore.js
|
|
75848
75946
|
function getContextFlavor(context, clientOnly, deferred) {
|
|
75849
75947
|
var key = "".concat(clientOnly).concat(deferred);
|
|
75850
75948
|
var flavored = context.flavors.get(key);
|
|
@@ -76249,7 +76347,7 @@ spurious results.`);
|
|
|
76249
76347
|
globalThis.__DEV__ !== false && invariant2.warn(14, fieldName, parentType, childTypenames.length ? "either ensure all objects of type " + childTypenames.join(" and ") + " have an ID or a custom merge function, or " : "", typeDotName, __assign({}, existing), __assign({}, incoming));
|
|
76250
76348
|
}
|
|
76251
76349
|
|
|
76252
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
76350
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js
|
|
76253
76351
|
var InMemoryCache = (
|
|
76254
76352
|
/** @class */
|
|
76255
76353
|
(function(_super) {
|
|
@@ -76558,7 +76656,7 @@ spurious results.`);
|
|
|
76558
76656
|
InMemoryCache.prototype.getMemoryInternals = getInMemoryCacheMemoryInternals;
|
|
76559
76657
|
}
|
|
76560
76658
|
|
|
76561
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
76659
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/networkStatus.js
|
|
76562
76660
|
var NetworkStatus;
|
|
76563
76661
|
(function(NetworkStatus2) {
|
|
76564
76662
|
NetworkStatus2[NetworkStatus2["loading"] = 1] = "loading";
|
|
@@ -76573,7 +76671,7 @@ spurious results.`);
|
|
|
76573
76671
|
return networkStatus ? networkStatus < 7 : false;
|
|
76574
76672
|
}
|
|
76575
76673
|
|
|
76576
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
76674
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/ObservableQuery.js
|
|
76577
76675
|
var assign2 = Object.assign;
|
|
76578
76676
|
var hasOwnProperty7 = Object.hasOwnProperty;
|
|
76579
76677
|
var ObservableQuery = (
|
|
@@ -77181,7 +77279,7 @@ spurious results.`);
|
|
|
77181
77279
|
return fetchPolicy === "network-only" || fetchPolicy === "no-cache" || fetchPolicy === "standby";
|
|
77182
77280
|
}
|
|
77183
77281
|
|
|
77184
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
77282
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/QueryInfo.js
|
|
77185
77283
|
var destructiveMethodCounts = new (canUseWeakMap ? WeakMap : Map)();
|
|
77186
77284
|
function wrapDestructiveCacheMethod(cache, methodName) {
|
|
77187
77285
|
var original = cache[methodName];
|
|
@@ -77473,7 +77571,7 @@ spurious results.`);
|
|
|
77473
77571
|
return writeWithErrors;
|
|
77474
77572
|
}
|
|
77475
77573
|
|
|
77476
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
77574
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/QueryManager.js
|
|
77477
77575
|
var hasOwnProperty8 = Object.prototype.hasOwnProperty;
|
|
77478
77576
|
var IGNORE = /* @__PURE__ */ Object.create(null);
|
|
77479
77577
|
var QueryManager = (
|
|
@@ -78459,7 +78557,7 @@ spurious results.`);
|
|
|
78459
78557
|
})()
|
|
78460
78558
|
);
|
|
78461
78559
|
|
|
78462
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
78560
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/LocalState.js
|
|
78463
78561
|
var LocalState = (
|
|
78464
78562
|
/** @class */
|
|
78465
78563
|
(function() {
|
|
@@ -78809,7 +78907,7 @@ spurious results.`);
|
|
|
78809
78907
|
})()
|
|
78810
78908
|
);
|
|
78811
78909
|
|
|
78812
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
78910
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/ApolloClient.js
|
|
78813
78911
|
var hasSuggestedDevtools = false;
|
|
78814
78912
|
var ApolloClient = (
|
|
78815
78913
|
/** @class */
|
|
@@ -79097,7 +79195,7 @@ spurious results.`);
|
|
|
79097
79195
|
ApolloClient.prototype.getMemoryInternals = getApolloClientMemoryInternals;
|
|
79098
79196
|
}
|
|
79099
79197
|
|
|
79100
|
-
// node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.
|
|
79198
|
+
// node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.9.0/node_modules/graphql-tag/lib/index.js
|
|
79101
79199
|
var docCache = /* @__PURE__ */ new Map();
|
|
79102
79200
|
var fragmentSourceMap = /* @__PURE__ */ new Map();
|
|
79103
79201
|
var printFragmentWarnings = true;
|
|
@@ -79211,7 +79309,7 @@ spurious results.`);
|
|
|
79211
79309
|
})(gql || (gql = {}));
|
|
79212
79310
|
gql["default"] = gql;
|
|
79213
79311
|
|
|
79214
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
79312
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/index.js
|
|
79215
79313
|
setVerbosity(globalThis.__DEV__ !== false ? "log" : "silent");
|
|
79216
79314
|
|
|
79217
79315
|
// src/modules/apollo-client.ts
|
|
@@ -90613,12 +90711,21 @@ spurious results.`);
|
|
|
90613
90711
|
logger2.verbose(`${this.metadata.name}::netAPY: positions: ${JSON.stringify(positions)}`);
|
|
90614
90712
|
const baseAPYs = [];
|
|
90615
90713
|
const rewardAPYs = [];
|
|
90714
|
+
const underlyingAddresses = vesuAdapters.map((adapter) => adapter.config.debt.address);
|
|
90715
|
+
let lstAPRs;
|
|
90716
|
+
try {
|
|
90717
|
+
lstAPRs = await LSTAPRService.getLSTAPRs(underlyingAddresses);
|
|
90718
|
+
} catch (error2) {
|
|
90719
|
+
logger2.warn(`${this.metadata.name}::netAPY: Failed to fetch LST APRs from Endur API, using fallback: ${error2}`);
|
|
90720
|
+
lstAPRs = /* @__PURE__ */ new Map();
|
|
90721
|
+
}
|
|
90616
90722
|
for (const [index, pool] of pools.entries()) {
|
|
90617
90723
|
const vesuAdapter = vesuAdapters[index];
|
|
90618
90724
|
const collateralAsset = pool.assets.find((a) => a.symbol.toLowerCase() === vesuAdapter.config.collateral.symbol.toLowerCase())?.stats;
|
|
90619
90725
|
const debtAsset = pool.assets.find((a) => a.symbol.toLowerCase() === vesuAdapter.config.debt.symbol.toLowerCase())?.stats;
|
|
90620
90726
|
const supplyApy = Number(collateralAsset.supplyApy.value || 0) / 1e18;
|
|
90621
|
-
const lstAPY =
|
|
90727
|
+
const lstAPY = lstAPRs.get(vesuAdapter.config.debt.address.address) || 0;
|
|
90728
|
+
logger2.verbose(`${this.metadata.name}::netAPY: ${vesuAdapter.config.collateral.symbol} LST APR from Endur: ${lstAPY}`);
|
|
90622
90729
|
baseAPYs.push(...[supplyApy + lstAPY, Number(debtAsset.borrowApr.value) / 1e18]);
|
|
90623
90730
|
rewardAPYs.push(...[Number(collateralAsset.defiSpringSupplyApr?.value || "0") / 1e18, 0]);
|
|
90624
90731
|
}
|
|
@@ -90842,6 +90949,18 @@ spurious results.`);
|
|
|
90842
90949
|
getTag() {
|
|
90843
90950
|
return `${_UniversalStrategy.name}:${this.metadata.name}`;
|
|
90844
90951
|
}
|
|
90952
|
+
/**
|
|
90953
|
+
* Gets LST APR for the strategy's underlying asset from Endur API
|
|
90954
|
+
* @returns Promise<number> The LST APR (not divided by 1e18)
|
|
90955
|
+
*/
|
|
90956
|
+
async getLSTAPR() {
|
|
90957
|
+
try {
|
|
90958
|
+
return await LSTAPRService.getLSTAPR(this.asset().address);
|
|
90959
|
+
} catch (error2) {
|
|
90960
|
+
logger2.warn(`${this.getTag()}: Failed to get LST APR: ${error2}`);
|
|
90961
|
+
return 0;
|
|
90962
|
+
}
|
|
90963
|
+
}
|
|
90845
90964
|
async getVesuHealthFactors() {
|
|
90846
90965
|
return await Promise.all(this.getVesuAdapters().map((v) => v.getHealthFactor()));
|
|
90847
90966
|
}
|