60p82u21t54k 1.0.24 → 1.1.1

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.
@@ -1,80 +1,42 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
2
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3
20
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import axios from "axios";
5
- class DefaultApiModelRegistry {
6
- constructor() {
7
- __publicField(this, "models", /* @__PURE__ */ new Map());
8
- }
9
- register(apiName, transformer, requestModifier, responseModifier) {
10
- this.models.set(apiName, {
11
- transformer: { transform: transformer },
12
- requestModifier: { modifyRequest: requestModifier },
13
- responseModifier: { modifyResponse: responseModifier }
14
- });
15
- }
16
- getTransformer(apiName) {
17
- var _a;
18
- return ((_a = this.models.get(apiName)) == null ? void 0 : _a.transformer) || null;
19
- }
20
- getRequestModifier(apiName) {
21
- var _a;
22
- return ((_a = this.models.get(apiName)) == null ? void 0 : _a.requestModifier) || null;
23
- }
24
- getResponseModifier(apiName) {
25
- var _a;
26
- return ((_a = this.models.get(apiName)) == null ? void 0 : _a.responseModifier) || null;
27
- }
28
- hasModel(apiName) {
29
- return this.models.has(apiName);
30
- }
31
- // Get all registered API names
32
- getRegisteredApis() {
33
- return Array.from(this.models.keys());
34
- }
35
- }
36
- const apiModelRegistry = new DefaultApiModelRegistry();
37
- const processApiTransformation = (apiName, rawResponse) => {
38
- const transformer = apiModelRegistry.getTransformer(apiName);
39
- if (transformer) {
40
- return transformer.transform(rawResponse);
41
- }
42
- return rawResponse;
43
- };
44
- const processRequestModifications = (requests) => {
45
- let modifiedRequests = [...requests];
46
- for (const request of requests) {
47
- const modifier = apiModelRegistry.getRequestModifier(request.name);
48
- if (modifier) {
49
- modifiedRequests = modifier.modifyRequest(modifiedRequests);
50
- }
51
- }
52
- return modifiedRequests;
53
- };
54
- const processResponseModifications = (result) => {
55
- let modifiedResult = { ...result };
56
- for (const apiName of Object.keys(result)) {
57
- const modifier = apiModelRegistry.getResponseModifier(apiName);
58
- if (modifier) {
59
- modifiedResult = modifier.modifyResponse(modifiedResult);
60
- }
61
- }
62
- return modifiedResult;
63
- };
64
- const getAnnouncementResponse = (raw) => {
65
- return (raw == null ? void 0 : raw.map((item) => {
66
- return {
67
- alert: item.announcement_alert === "1",
68
- content: item.announcement_simplified ?? "",
69
- lastUpdatedTime: item.announcement_lastupdated
21
+ var __async = (__this, __arguments, generator) => {
22
+ return new Promise((resolve, reject) => {
23
+ var fulfilled = (value) => {
24
+ try {
25
+ step(generator.next(value));
26
+ } catch (e) {
27
+ reject(e);
28
+ }
70
29
  };
71
- })) ?? [];
72
- };
73
- const modifyAnnouncementRequest = (requests) => {
74
- return requests;
75
- };
76
- const modifyAnnouncementResponse = (result) => {
77
- return result;
30
+ var rejected = (value) => {
31
+ try {
32
+ step(generator.throw(value));
33
+ } catch (e) {
34
+ reject(e);
35
+ }
36
+ };
37
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
38
+ step((generator = generator.apply(__this, __arguments)).next());
39
+ });
78
40
  };
79
41
  let currentConfig = {
80
42
  prefix: "188",
@@ -83,7 +45,7 @@ let currentConfig = {
83
45
  language: "zh"
84
46
  };
85
47
  const setConfig = (newConfig) => {
86
- currentConfig = { ...currentConfig, ...newConfig };
48
+ currentConfig = __spreadValues(__spreadValues({}, currentConfig), newConfig);
87
49
  };
88
50
  const getConfig = () => {
89
51
  return currentConfig;
@@ -121,9 +83,9 @@ function getDefaultOptions$1() {
121
83
  return defaultOptions;
122
84
  }
123
85
  function startOfWeek(date, options) {
124
- var _a, _b, _c, _d;
86
+ var _a, _b, _c, _d, _e, _f, _g, _h;
125
87
  const defaultOptions2 = getDefaultOptions$1();
126
- const weekStartsOn = (options == null ? void 0 : options.weekStartsOn) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) ?? defaultOptions2.weekStartsOn ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.weekStartsOn) ?? 0;
88
+ const weekStartsOn = (_h = (_g = (_d = (_c = options == null ? void 0 : options.weekStartsOn) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) != null ? _d : defaultOptions2.weekStartsOn) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.weekStartsOn) != null ? _h : 0;
127
89
  const _date = toDate$1(date, options == null ? void 0 : options.in);
128
90
  const day = _date.getDay();
129
91
  const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
@@ -132,7 +94,7 @@ function startOfWeek(date, options) {
132
94
  return _date;
133
95
  }
134
96
  function startOfISOWeek(date, options) {
135
- return startOfWeek(date, { ...options, weekStartsOn: 1 });
97
+ return startOfWeek(date, __spreadProps(__spreadValues({}, options), { weekStartsOn: 1 }));
136
98
  }
137
99
  function getISOWeekYear(date, options) {
138
100
  const _date = toDate$1(date, options == null ? void 0 : options.in);
@@ -713,11 +675,11 @@ function getISOWeek(date, options) {
713
675
  return Math.round(diff / millisecondsInWeek) + 1;
714
676
  }
715
677
  function getWeekYear(date, options) {
716
- var _a, _b, _c, _d;
678
+ var _a, _b, _c, _d, _e, _f, _g, _h;
717
679
  const _date = toDate$1(date, options == null ? void 0 : options.in);
718
680
  const year = _date.getFullYear();
719
681
  const defaultOptions2 = getDefaultOptions$1();
720
- const firstWeekContainsDate = (options == null ? void 0 : options.firstWeekContainsDate) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) ?? defaultOptions2.firstWeekContainsDate ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) ?? 1;
682
+ const firstWeekContainsDate = (_h = (_g = (_d = (_c = options == null ? void 0 : options.firstWeekContainsDate) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) != null ? _d : defaultOptions2.firstWeekContainsDate) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.firstWeekContainsDate) != null ? _h : 1;
721
683
  const firstWeekOfNextYear = constructFrom((options == null ? void 0 : options.in) || date, 0);
722
684
  firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
723
685
  firstWeekOfNextYear.setHours(0, 0, 0, 0);
@@ -735,9 +697,9 @@ function getWeekYear(date, options) {
735
697
  }
736
698
  }
737
699
  function startOfWeekYear(date, options) {
738
- var _a, _b, _c, _d;
700
+ var _a, _b, _c, _d, _e, _f, _g, _h;
739
701
  const defaultOptions2 = getDefaultOptions$1();
740
- const firstWeekContainsDate = (options == null ? void 0 : options.firstWeekContainsDate) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) ?? defaultOptions2.firstWeekContainsDate ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) ?? 1;
702
+ const firstWeekContainsDate = (_h = (_g = (_d = (_c = options == null ? void 0 : options.firstWeekContainsDate) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) != null ? _d : defaultOptions2.firstWeekContainsDate) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.firstWeekContainsDate) != null ? _h : 1;
741
703
  const year = getWeekYear(date, options);
742
704
  const firstWeek = constructFrom((options == null ? void 0 : options.in) || date, 0);
743
705
  firstWeek.setFullYear(year, 0, firstWeekContainsDate);
@@ -1534,11 +1496,11 @@ const escapedStringRegExp$1 = /^'([^]*?)'?$/;
1534
1496
  const doubleQuoteRegExp$1 = /''/g;
1535
1497
  const unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
1536
1498
  function format$1(date, formatStr, options) {
1537
- var _a, _b, _c, _d, _e, _f, _g, _h;
1499
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
1538
1500
  const defaultOptions2 = getDefaultOptions$1();
1539
- const locale = (options == null ? void 0 : options.locale) ?? defaultOptions2.locale ?? enUS;
1540
- const firstWeekContainsDate = (options == null ? void 0 : options.firstWeekContainsDate) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) ?? defaultOptions2.firstWeekContainsDate ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) ?? 1;
1541
- const weekStartsOn = (options == null ? void 0 : options.weekStartsOn) ?? ((_f = (_e = options == null ? void 0 : options.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.weekStartsOn) ?? defaultOptions2.weekStartsOn ?? ((_h = (_g = defaultOptions2.locale) == null ? void 0 : _g.options) == null ? void 0 : _h.weekStartsOn) ?? 0;
1501
+ const locale = (_b = (_a = options == null ? void 0 : options.locale) != null ? _a : defaultOptions2.locale) != null ? _b : enUS;
1502
+ const firstWeekContainsDate = (_j = (_i = (_f = (_e = options == null ? void 0 : options.firstWeekContainsDate) != null ? _e : (_d = (_c = options == null ? void 0 : options.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) != null ? _f : defaultOptions2.firstWeekContainsDate) != null ? _i : (_h = (_g = defaultOptions2.locale) == null ? void 0 : _g.options) == null ? void 0 : _h.firstWeekContainsDate) != null ? _j : 1;
1503
+ const weekStartsOn = (_r = (_q = (_n = (_m = options == null ? void 0 : options.weekStartsOn) != null ? _m : (_l = (_k = options == null ? void 0 : options.locale) == null ? void 0 : _k.options) == null ? void 0 : _l.weekStartsOn) != null ? _n : defaultOptions2.weekStartsOn) != null ? _q : (_p = (_o = defaultOptions2.locale) == null ? void 0 : _o.options) == null ? void 0 : _p.weekStartsOn) != null ? _r : 0;
1542
1504
  const originalDate = toDate$1(date, options == null ? void 0 : options.in);
1543
1505
  if (!isValid(originalDate)) {
1544
1506
  throw new RangeError("Invalid time value");
@@ -2491,9 +2453,9 @@ class DayOfYearParser extends Parser {
2491
2453
  }
2492
2454
  }
2493
2455
  function setDay(date, day, options) {
2494
- var _a, _b, _c, _d;
2456
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2495
2457
  const defaultOptions2 = getDefaultOptions$1();
2496
- const weekStartsOn = (options == null ? void 0 : options.weekStartsOn) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) ?? defaultOptions2.weekStartsOn ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.weekStartsOn) ?? 0;
2458
+ const weekStartsOn = (_h = (_g = (_d = (_c = options == null ? void 0 : options.weekStartsOn) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) != null ? _d : defaultOptions2.weekStartsOn) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.weekStartsOn) != null ? _h : 0;
2497
2459
  const date_ = toDate$1(date, options == null ? void 0 : options.in);
2498
2460
  const currentDay = date_.getDay();
2499
2461
  const remainder = day % 7;
@@ -3240,12 +3202,12 @@ const doubleQuoteRegExp = /''/g;
3240
3202
  const notWhitespaceRegExp = /\S/;
3241
3203
  const unescapedLatinCharacterRegExp = /[a-zA-Z]/;
3242
3204
  function parse(dateStr, formatStr, referenceDate, options) {
3243
- var _a, _b, _c, _d;
3205
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
3244
3206
  const invalidDate = () => constructFrom(referenceDate, NaN);
3245
3207
  const defaultOptions2 = getDefaultOptions();
3246
- const locale = defaultOptions2.locale ?? enUS;
3247
- const firstWeekContainsDate = defaultOptions2.firstWeekContainsDate ?? ((_b = (_a = defaultOptions2.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) ?? 1;
3248
- const weekStartsOn = defaultOptions2.weekStartsOn ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.weekStartsOn) ?? 0;
3208
+ const locale = (_a = defaultOptions2.locale) != null ? _a : enUS;
3209
+ const firstWeekContainsDate = (_e = (_d = defaultOptions2.firstWeekContainsDate) != null ? _d : (_c = (_b = defaultOptions2.locale) == null ? void 0 : _b.options) == null ? void 0 : _c.firstWeekContainsDate) != null ? _e : 1;
3210
+ const weekStartsOn = (_i = (_h = defaultOptions2.weekStartsOn) != null ? _h : (_g = (_f = defaultOptions2.locale) == null ? void 0 : _f.options) == null ? void 0 : _g.weekStartsOn) != null ? _i : 0;
3249
3211
  const subFnOptions = {
3250
3212
  firstWeekContainsDate,
3251
3213
  weekStartsOn,
@@ -3343,8 +3305,9 @@ function cleanEscapedString(input) {
3343
3305
  return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
3344
3306
  }
3345
3307
  function tzIntlTimeZoneName(length, date, options) {
3308
+ var _a;
3346
3309
  const defaultOptions2 = getDefaultOptions();
3347
- const dtf = getDTF(length, options.timeZone, options.locale ?? defaultOptions2.locale);
3310
+ const dtf = getDTF(length, options.timeZone, (_a = options.locale) != null ? _a : defaultOptions2.locale);
3348
3311
  return "formatToParts" in dtf ? partsTimeZone(dtf, date) : hackyTimeZone(dtf, date);
3349
3312
  }
3350
3313
  function partsTimeZone(dtf, date) {
@@ -3617,7 +3580,8 @@ const formatters = {
3617
3580
  }
3618
3581
  };
3619
3582
  function getTimeZoneOffset(timeZone, originalDate) {
3620
- const timeZoneOffset = timeZone ? tzParseTimezone(timeZone, originalDate, true) / MILLISECONDS_IN_MINUTE$1 : (originalDate == null ? void 0 : originalDate.getTimezoneOffset()) ?? 0;
3583
+ var _a;
3584
+ const timeZoneOffset = timeZone ? tzParseTimezone(timeZone, originalDate, true) / MILLISECONDS_IN_MINUTE$1 : (_a = originalDate == null ? void 0 : originalDate.getTimezoneOffset()) != null ? _a : 0;
3621
3585
  if (Number.isNaN(timeZoneOffset)) {
3622
3586
  throw new RangeError("Invalid time zone specified: " + timeZone);
3623
3587
  }
@@ -3989,16 +3953,13 @@ function toZonedTime(date, timeZone, options) {
3989
3953
  }
3990
3954
  function fromZonedTime(date, timeZone, options) {
3991
3955
  if (typeof date === "string" && !date.match(tzPattern)) {
3992
- return toDate(date, { ...options, timeZone });
3956
+ return toDate(date, __spreadProps(__spreadValues({}, options), { timeZone }));
3993
3957
  }
3994
3958
  date = toDate(date, options);
3995
3959
  const utc = newDateUTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()).getTime();
3996
3960
  const offsetMilliseconds = tzParseTimezone(timeZone, new Date(utc));
3997
3961
  return new Date(utc + offsetMilliseconds);
3998
3962
  }
3999
- const stringToBytes = (str) => {
4000
- return new TextEncoder().encode(str);
4001
- };
4002
3963
  const base64Decode = (encodedData) => {
4003
3964
  try {
4004
3965
  return atob(encodedData);
@@ -4269,10 +4230,86 @@ const getImgPath = (initPath, gameId, versioning) => {
4269
4230
  }
4270
4231
  return path;
4271
4232
  };
4233
+ class DefaultApiModelRegistry {
4234
+ constructor() {
4235
+ __publicField(this, "models", /* @__PURE__ */ new Map());
4236
+ }
4237
+ register(apiName, transformer, requestModifier, responseModifier) {
4238
+ this.models.set(apiName, {
4239
+ transformer: { transform: transformer },
4240
+ requestModifier: { modifyRequest: requestModifier },
4241
+ responseModifier: { modifyResponse: responseModifier }
4242
+ });
4243
+ }
4244
+ getTransformer(apiName) {
4245
+ var _a;
4246
+ return ((_a = this.models.get(apiName)) == null ? void 0 : _a.transformer) || null;
4247
+ }
4248
+ getRequestModifier(apiName) {
4249
+ var _a;
4250
+ return ((_a = this.models.get(apiName)) == null ? void 0 : _a.requestModifier) || null;
4251
+ }
4252
+ getResponseModifier(apiName) {
4253
+ var _a;
4254
+ return ((_a = this.models.get(apiName)) == null ? void 0 : _a.responseModifier) || null;
4255
+ }
4256
+ hasModel(apiName) {
4257
+ return this.models.has(apiName);
4258
+ }
4259
+ // Get all registered API names
4260
+ getRegisteredApis() {
4261
+ return Array.from(this.models.keys());
4262
+ }
4263
+ }
4264
+ const apiModelRegistry = new DefaultApiModelRegistry();
4265
+ const processApiTransformation = (apiName, rawResponse) => {
4266
+ const transformer = apiModelRegistry.getTransformer(apiName);
4267
+ if (transformer) {
4268
+ return transformer.transform(rawResponse);
4269
+ }
4270
+ return rawResponse;
4271
+ };
4272
+ const processRequestModifications = (requests) => {
4273
+ let modifiedRequests = [...requests];
4274
+ for (const request of requests) {
4275
+ const modifier = apiModelRegistry.getRequestModifier(request.name);
4276
+ if (modifier) {
4277
+ modifiedRequests = modifier.modifyRequest(modifiedRequests);
4278
+ }
4279
+ }
4280
+ return modifiedRequests;
4281
+ };
4282
+ const processResponseModifications = (result) => {
4283
+ let modifiedResult = __spreadValues({}, result);
4284
+ for (const apiName of Object.keys(result)) {
4285
+ const modifier = apiModelRegistry.getResponseModifier(apiName);
4286
+ if (modifier) {
4287
+ modifiedResult = modifier.modifyResponse(modifiedResult);
4288
+ }
4289
+ }
4290
+ return modifiedResult;
4291
+ };
4292
+ const getAnnouncementResponse = (raw) => {
4293
+ var _a;
4294
+ return (_a = raw == null ? void 0 : raw.map((item) => {
4295
+ var _a2;
4296
+ return {
4297
+ alert: item.announcement_alert === "1",
4298
+ content: (_a2 = item.announcement_simplified) != null ? _a2 : "",
4299
+ lastUpdatedTime: item.announcement_lastupdated
4300
+ };
4301
+ })) != null ? _a : [];
4302
+ };
4303
+ const modifyAnnouncementRequest = (requests) => {
4304
+ return requests;
4305
+ };
4306
+ const modifyAnnouncementResponse = (result) => {
4307
+ return result;
4308
+ };
4272
4309
  const getGameListResponse = (raw) => {
4273
- var _a, _b, _c, _d, _e, _f;
4310
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
4274
4311
  return {
4275
- platformGame: ((_a = raw.mdGameListResult) == null ? void 0 : _a.map((product) => {
4312
+ platformGame: (_b = (_a = raw.mdGameListResult) == null ? void 0 : _a.map((product) => {
4276
4313
  var _a2, _b2;
4277
4314
  return {
4278
4315
  code: product.code.toLowerCase(),
@@ -4300,29 +4337,30 @@ const getGameListResponse = (raw) => {
4300
4337
  };
4301
4338
  }) : []
4302
4339
  };
4303
- })) ?? [],
4340
+ })) != null ? _b : [],
4304
4341
  gameList: {
4305
- currentPage: ((_b = raw.mdGameLists) == null ? void 0 : _b.current_page) ?? 1,
4306
- lastPage: ((_c = raw.mdGameLists) == null ? void 0 : _c.last_page) ?? 1,
4307
- data: ((_f = (_e = (_d = raw.mdGameLists) == null ? void 0 : _d.data) == null ? void 0 : _e.map((item) => {
4342
+ currentPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.current_page) != null ? _d : 1,
4343
+ lastPage: (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.last_page) != null ? _f : 1,
4344
+ data: (_j = (_i = (_h = (_g = raw.mdGameLists) == null ? void 0 : _g.data) == null ? void 0 : _h.map((item) => {
4345
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l, _m;
4308
4346
  return {
4309
- gameId: item.id ?? 0,
4310
- platformId: item.id_PlatformProduct ?? 0,
4311
- platformCode: item.code_PlatformProduct ?? "",
4312
- platformName: item.name_PlatformProduct ?? "",
4313
- name: item.name ?? "",
4347
+ gameId: (_a2 = item.id) != null ? _a2 : 0,
4348
+ platformId: (_b2 = item.id_PlatformProduct) != null ? _b2 : 0,
4349
+ platformCode: (_c2 = item.code_PlatformProduct) != null ? _c2 : "",
4350
+ platformName: (_d2 = item.name_PlatformProduct) != null ? _d2 : "",
4351
+ name: (_e2 = item.name) != null ? _e2 : "",
4314
4352
  flag: {
4315
- value: item.flag ?? 0,
4316
- hot: (item.flag ?? 0 & 2) > 0,
4317
- trial: (item.flag ?? 0 & 4) > 0,
4318
- new: (item.flag ?? 0 & 8) > 0
4353
+ value: (_f2 = item.flag) != null ? _f2 : 0,
4354
+ hot: ((_g2 = item.flag) != null ? _g2 : 0 & 2) > 0,
4355
+ trial: ((_h2 = item.flag) != null ? _h2 : 0 & 4) > 0,
4356
+ new: ((_i2 = item.flag) != null ? _i2 : 0 & 8) > 0
4319
4357
  },
4320
- imageUrl: raw.mdDomains && raw.mdDomains.length > 0 ? `${raw.mdDomains[item.mdDomains_id ?? 0]}${getImgPath(item.img ?? "", item.id ?? 0, `?ts=${item.filemtime}`)}` : "",
4358
+ imageUrl: raw.mdDomains && raw.mdDomains.length > 0 ? `${raw.mdDomains[(_j2 = item.mdDomains_id) != null ? _j2 : 0]}${getImgPath((_k = item.img) != null ? _k : "", (_l = item.id) != null ? _l : 0, `?ts=${item.filemtime}`)}` : "",
4321
4359
  logoUrl: `/image/platform_logo/platform_logo_${item.code_PlatformProduct}.png?v=1`,
4322
4360
  rate: "0.00",
4323
- jackpotAmount: item.jackpotAmount ?? ""
4361
+ jackpotAmount: (_m = item.jackpotAmount) != null ? _m : ""
4324
4362
  };
4325
- })) == null ? void 0 : _f.sort((a, b) => (b.jackpotAmount ? 1 : 0) - (a.jackpotAmount ? 1 : 0))) ?? []
4363
+ })) == null ? void 0 : _i.sort((a, b) => (b.jackpotAmount ? 1 : 0) - (a.jackpotAmount ? 1 : 0))) != null ? _j : []
4326
4364
  },
4327
4365
  trialGameList: []
4328
4366
  };
@@ -4508,36 +4546,35 @@ const modifyGameListResponse = (result) => {
4508
4546
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
4509
4547
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
4510
4548
  gameList.platformGame = gameList.platformGame.map((category) => {
4511
- return {
4512
- ...category,
4549
+ return __spreadProps(__spreadValues({}, category), {
4513
4550
  list: category.list.map((game) => {
4551
+ var _a;
4514
4552
  const turnover = getPlatformTurnoverRate.find(
4515
4553
  (item) => item.id === game.platformId
4516
4554
  );
4517
- return {
4518
- ...game,
4519
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
4520
- };
4555
+ return __spreadProps(__spreadValues({}, game), {
4556
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
4557
+ });
4521
4558
  })
4522
- };
4559
+ });
4523
4560
  });
4524
4561
  gameList.gameList.data = gameList.gameList.data.map((game) => {
4562
+ var _a;
4525
4563
  const turnover = getPlatformTurnoverRate.find(
4526
4564
  (item) => item.id === game.platformId
4527
4565
  );
4528
- return {
4529
- ...game,
4530
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
4531
- };
4566
+ return __spreadProps(__spreadValues({}, game), {
4567
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
4568
+ });
4532
4569
  });
4533
4570
  gameList.trialGameList = gameList.trialGameList.map((game) => {
4571
+ var _a;
4534
4572
  const turnover = getPlatformTurnoverRate.find(
4535
4573
  (item) => item.id === game.platformId
4536
4574
  );
4537
- return {
4538
- ...game,
4539
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
4540
- };
4575
+ return __spreadProps(__spreadValues({}, game), {
4576
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
4577
+ });
4541
4578
  });
4542
4579
  delete result.getPlatformTurnoverRate;
4543
4580
  }
@@ -4546,11 +4583,11 @@ const modifyGameListResponse = (result) => {
4546
4583
  return result;
4547
4584
  };
4548
4585
  const getFishGameListResponse = (raw) => {
4549
- var _a, _b, _c, _d;
4586
+ var _a, _b, _c, _d, _e, _f, _g;
4550
4587
  return {
4551
- currentPage: ((_a = raw.mdGameLists) == null ? void 0 : _a.current_page) ?? 1,
4552
- lastPage: ((_b = raw.mdGameLists) == null ? void 0 : _b.last_page) ?? 1,
4553
- data: ((_d = (_c = raw.mdGameLists) == null ? void 0 : _c.data) == null ? void 0 : _d.map((item) => {
4588
+ currentPage: (_b = (_a = raw.mdGameLists) == null ? void 0 : _a.current_page) != null ? _b : 1,
4589
+ lastPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.last_page) != null ? _d : 1,
4590
+ data: (_g = (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.data) == null ? void 0 : _f.map((item) => {
4554
4591
  return {
4555
4592
  gameId: item.id,
4556
4593
  platformId: item.id_PlatformProduct,
@@ -4568,7 +4605,7 @@ const getFishGameListResponse = (raw) => {
4568
4605
  rate: "0.00",
4569
4606
  jackpotAmount: ""
4570
4607
  };
4571
- })) ?? []
4608
+ })) != null ? _g : []
4572
4609
  };
4573
4610
  };
4574
4611
  const modifyFishGameListRequest = (requests) => {
@@ -4588,73 +4625,72 @@ const modifyFishGameListResponse = (result) => {
4588
4625
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
4589
4626
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
4590
4627
  const tempFishGameList = fishGameList.data.map((gameInfo) => {
4628
+ var _a;
4591
4629
  const turnover = getPlatformTurnoverRate.find(
4592
4630
  (item) => item.id === gameInfo.platformId
4593
4631
  );
4594
- return {
4595
- ...gameInfo,
4596
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
4597
- };
4632
+ return __spreadProps(__spreadValues({}, gameInfo), {
4633
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
4634
+ });
4598
4635
  });
4599
- result.fishGameList = {
4600
- ...fishGameList,
4636
+ result.fishGameList = __spreadProps(__spreadValues({}, fishGameList), {
4601
4637
  data: tempFishGameList
4602
- };
4638
+ });
4603
4639
  delete result.getPlatformTurnoverRate;
4604
4640
  }
4605
4641
  }
4606
4642
  return result;
4607
4643
  };
4608
4644
  const getCmsListResponse = (raw) => {
4609
- var _a, _b, _c, _d, _e, _f, _g, _h;
4645
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
4610
4646
  return {
4611
- banner: ((_a = raw.mobileBanner) == null ? void 0 : _a.map((item) => {
4647
+ banner: (_b = (_a = raw.mobileBanner) == null ? void 0 : _a.map((item) => {
4612
4648
  return `${item.imagepath}?ts=${item.filemtime}`;
4613
- })) ?? [],
4614
- ad: ((_b = raw.mobileAd) == null ? void 0 : _b.map((item) => {
4649
+ })) != null ? _b : [],
4650
+ ad: (_d = (_c = raw.mobileAd) == null ? void 0 : _c.map((item) => {
4615
4651
  return `${item.imagepath}?ts=${item.filemtime}`;
4616
- })) ?? [],
4617
- about: ((_c = raw.about) == null ? void 0 : _c.map((item) => {
4652
+ })) != null ? _d : [],
4653
+ about: (_f = (_e = raw.about) == null ? void 0 : _e.map((item) => {
4618
4654
  return {
4619
4655
  name: item.name,
4620
4656
  content: item.content,
4621
4657
  link: item.link
4622
4658
  };
4623
- })) ?? [],
4624
- mobileAbout: ((_d = raw.mobileAbout) == null ? void 0 : _d.map((item) => {
4659
+ })) != null ? _f : [],
4660
+ mobileAbout: (_h = (_g = raw.mobileAbout) == null ? void 0 : _g.map((item) => {
4625
4661
  return {
4626
4662
  name: item.name,
4627
4663
  content: item.content,
4628
4664
  link: item.link
4629
4665
  };
4630
- })) ?? [],
4631
- appAd: ((_e = raw.appAd) == null ? void 0 : _e.map((item) => {
4666
+ })) != null ? _h : [],
4667
+ appAd: (_j = (_i = raw.appAd) == null ? void 0 : _i.map((item) => {
4632
4668
  return {
4633
4669
  imgUrl: `${item.imagepath}?ts=${item.filemtime}`,
4634
4670
  link: item.link
4635
4671
  };
4636
- })) ?? [],
4637
- depositHint: ((_f = raw.deposit) == null ? void 0 : _f.map((item) => {
4672
+ })) != null ? _j : [],
4673
+ depositHint: (_l = (_k = raw.deposit) == null ? void 0 : _k.map((item) => {
4638
4674
  return {
4639
4675
  paymentName: item.name,
4640
4676
  path: item.link,
4641
4677
  content: item.content
4642
4678
  };
4643
- })) ?? [],
4644
- eventPopupBotLeft: ((_g = raw.eventPopupBotLeft) == null ? void 0 : _g.map((item) => {
4679
+ })) != null ? _l : [],
4680
+ eventPopupBotLeft: (_n = (_m = raw.eventPopupBotLeft) == null ? void 0 : _m.map((item) => {
4645
4681
  return {
4646
4682
  imgUrl: `${item.imagepath}?ts=${item.filemtime}`,
4647
4683
  link: item.link,
4648
4684
  redirect: item.link_target == 0
4649
4685
  };
4650
- })) ?? [],
4651
- eventPopupBotRight: ((_h = raw.eventPopupBotRight) == null ? void 0 : _h.map((item) => {
4686
+ })) != null ? _n : [],
4687
+ eventPopupBotRight: (_p = (_o = raw.eventPopupBotRight) == null ? void 0 : _o.map((item) => {
4652
4688
  return {
4653
4689
  imgUrl: `${item.imagepath}?ts=${item.filemtime}`,
4654
4690
  link: item.link,
4655
4691
  redirect: item.link_target == 0
4656
4692
  };
4657
- })) ?? []
4693
+ })) != null ? _p : []
4658
4694
  };
4659
4695
  };
4660
4696
  const modifyCmsListRequest = (requests) => {
@@ -4691,8 +4727,9 @@ const DefaultPayment = {
4691
4727
  hintMsg: ""
4692
4728
  };
4693
4729
  const getPaymentsProviderResponse = (raw) => {
4694
- var _a;
4695
- return ((_a = raw.mdPaymentChannels) == null ? void 0 : _a.map((provider) => {
4730
+ var _a, _b;
4731
+ return (_b = (_a = raw.mdPaymentChannels) == null ? void 0 : _a.map((provider) => {
4732
+ var _a2, _b2;
4696
4733
  const paymentList = [];
4697
4734
  switch (provider.name) {
4698
4735
  case PaymentType.default:
@@ -4708,7 +4745,7 @@ const getPaymentsProviderResponse = (raw) => {
4708
4745
  paymentList.push(
4709
4746
  setAuto(
4710
4747
  provider.name,
4711
- provider.bankid ?? 0,
4748
+ (_a2 = provider.bankid) != null ? _a2 : 0,
4712
4749
  provider.paymentmethod.auto,
4713
4750
  raw
4714
4751
  )
@@ -4733,7 +4770,7 @@ const getPaymentsProviderResponse = (raw) => {
4733
4770
  paymentList.push(
4734
4771
  setFixAmount(
4735
4772
  provider.name,
4736
- provider.bankid ?? 0,
4773
+ (_b2 = provider.bankid) != null ? _b2 : 0,
4737
4774
  provider.paymentmethod.fixamount
4738
4775
  )
4739
4776
  );
@@ -4744,7 +4781,7 @@ const getPaymentsProviderResponse = (raw) => {
4744
4781
  imageUrl: `/image/game/native/deposit/sidemenu/${provider.name}.png?${raw.systemtime}`,
4745
4782
  paymentList
4746
4783
  };
4747
- })) ?? [];
4784
+ })) != null ? _b : [];
4748
4785
  };
4749
4786
  const setPromo = (data) => {
4750
4787
  const defaultPromo = {
@@ -4847,8 +4884,9 @@ const setManual = (name, data, raw) => {
4847
4884
  type,
4848
4885
  promo: setPromo(data.promo),
4849
4886
  bank: data.bank.map((bank) => {
4850
- const minTransaction = bank.list && bank.list.length > 0 ? bank.list[0].mintransaction ?? "0.00" : "0.00";
4851
- const maxTransaction = bank.list && bank.list.length > 0 ? bank.list[0].maxtransaction ?? "0.00" : "0.00";
4887
+ var _a, _b, _c, _d, _e, _f, _g;
4888
+ const minTransaction = bank.list && bank.list.length > 0 ? (_a = bank.list[0].mintransaction) != null ? _a : "0.00" : "0.00";
4889
+ const maxTransaction = bank.list && bank.list.length > 0 ? (_b = bank.list[0].maxtransaction) != null ? _b : "0.00" : "0.00";
4852
4890
  const { amountList, minAmount, maxAmount } = setMinMax(
4853
4891
  Number(minTransaction),
4854
4892
  Number(maxTransaction),
@@ -4856,11 +4894,11 @@ const setManual = (name, data, raw) => {
4856
4894
  raw.mdBankLevelDetail.deposit_max
4857
4895
  );
4858
4896
  const item = {
4859
- id: bank.bankindex ?? 0,
4860
- bankAccountId: bank.list && bank.list.length > 0 ? bank.list[0].bankaccountindex ?? 0 : 0,
4861
- name: bank.list && bank.list.length > 0 ? bank.list[0].label ?? "" : "",
4862
- accountName: bank.list && bank.list.length > 0 ? bank.list[0].bankaccountname ?? "" : "",
4863
- accountNo: bank.list && bank.list.length > 0 ? bank.list[0].bankaccountno ?? "" : "",
4897
+ id: (_c = bank.bankindex) != null ? _c : 0,
4898
+ bankAccountId: bank.list && bank.list.length > 0 ? (_d = bank.list[0].bankaccountindex) != null ? _d : 0 : 0,
4899
+ name: bank.list && bank.list.length > 0 ? (_e = bank.list[0].label) != null ? _e : "" : "",
4900
+ accountName: bank.list && bank.list.length > 0 ? (_f = bank.list[0].bankaccountname) != null ? _f : "" : "",
4901
+ accountNo: bank.list && bank.list.length > 0 ? (_g = bank.list[0].bankaccountno) != null ? _g : "" : "",
4864
4902
  qrcode: bank.list && bank.list.length > 0 ? bank.list[0].bankaccountdesc : "",
4865
4903
  amountList,
4866
4904
  min: minAmount,
@@ -4890,9 +4928,10 @@ const setOnlineBanking = (name, data, raw) => {
4890
4928
  type,
4891
4929
  promo: setPromo(data.promo),
4892
4930
  bank: data.banklist.map((bank) => {
4931
+ var _a, _b, _c;
4893
4932
  let minTransaction = "0.00";
4894
4933
  let maxTransaction = "0.00";
4895
- const bankIndex = bank.bankindex ?? 0;
4934
+ const bankIndex = (_a = bank.bankindex) != null ? _a : 0;
4896
4935
  for (let i = 0; i < raw.mdGatewayMinMax.length; i++) {
4897
4936
  if (raw.mdGatewayMinMax[i].bankindex == bankIndex.toString()) {
4898
4937
  minTransaction = raw.mdGatewayMinMax[i].min;
@@ -4913,8 +4952,9 @@ const setOnlineBanking = (name, data, raw) => {
4913
4952
  max: maxAmount
4914
4953
  };
4915
4954
  const pg = bank.pg.map((bank2) => {
4916
- const minTransaction2 = bank2.mintransaction ?? "0.00";
4917
- const maxTransaction2 = bank2.maxtransaction ?? "0.00";
4955
+ var _a2, _b2;
4956
+ const minTransaction2 = (_a2 = bank2.mintransaction) != null ? _a2 : "0.00";
4957
+ const maxTransaction2 = (_b2 = bank2.maxtransaction) != null ? _b2 : "0.00";
4918
4958
  const { amountList: amountList2, minAmount: minAmount2, maxAmount: maxAmount2 } = setMinMax(
4919
4959
  Number(minTransaction2),
4920
4960
  Number(maxTransaction2),
@@ -4931,8 +4971,8 @@ const setOnlineBanking = (name, data, raw) => {
4931
4971
  return pg2;
4932
4972
  });
4933
4973
  const item = {
4934
- id: bank.bankindex ?? 0,
4935
- name: bank.banknameenglish ?? "",
4974
+ id: (_b = bank.bankindex) != null ? _b : 0,
4975
+ name: (_c = bank.banknameenglish) != null ? _c : "",
4936
4976
  amountList: [],
4937
4977
  min: 0,
4938
4978
  max: 0,
@@ -4946,20 +4986,22 @@ const setOnlineBanking = (name, data, raw) => {
4946
4986
  return payment;
4947
4987
  };
4948
4988
  const setAuto = (name, bankId, data, raw) => {
4989
+ var _a;
4949
4990
  if (!raw) return DefaultPayment;
4950
4991
  const type = PaymentType.auto;
4951
4992
  let tempBank = [];
4952
- const gatewayMinMax = raw.mdGatewayMinMax ?? [];
4993
+ const gatewayMinMax = (_a = raw.mdGatewayMinMax) != null ? _a : [];
4953
4994
  if (data.bank.length > 0 && raw.mdPGSelection === "1") {
4954
4995
  tempBank = data.bank.map((bank) => {
4996
+ var _a2, _b, _c;
4955
4997
  const { amountList, minAmount, maxAmount } = setMinMax(
4956
- bank.mintransaction ?? 0,
4957
- bank.maxtransaction ?? 0,
4998
+ (_a2 = bank.mintransaction) != null ? _a2 : 0,
4999
+ (_b = bank.maxtransaction) != null ? _b : 0,
4958
5000
  raw.mdBankLevelDetail.onlinepayment_min,
4959
5001
  raw.mdBankLevelDetail.onlinepayment_max
4960
5002
  );
4961
5003
  const item = {
4962
- id: bank.pgindex ?? 0,
5004
+ id: (_c = bank.pgindex) != null ? _c : 0,
4963
5005
  name: bank.bankaccountname || "",
4964
5006
  amountList,
4965
5007
  min: minAmount,
@@ -5067,10 +5109,11 @@ const modifyPaymentsProviderResponse = (result) => {
5067
5109
  const cmsList = result.cmsList;
5068
5110
  result.paymentsProvider = paymentsProvider.map((providerItem) => {
5069
5111
  providerItem.paymentList.map((paymentItem) => {
5112
+ var _a;
5070
5113
  const depositHint = cmsList.depositHint.find(
5071
5114
  (item) => item.path === `/member/deposit/${paymentItem.pathName}`
5072
5115
  );
5073
- paymentItem.hintMsg = (depositHint == null ? void 0 : depositHint.content) ?? "";
5116
+ paymentItem.hintMsg = (_a = depositHint == null ? void 0 : depositHint.content) != null ? _a : "";
5074
5117
  });
5075
5118
  return providerItem;
5076
5119
  });
@@ -5079,14 +5122,15 @@ const modifyPaymentsProviderResponse = (result) => {
5079
5122
  return result;
5080
5123
  };
5081
5124
  const getGetUserProfileResponse = (raw) => {
5125
+ var _a, _b, _c, _d, _e, _f, _g;
5082
5126
  return {
5083
- username: raw.username ?? "",
5084
- birthday: raw.mdUserDetail.dob ?? "",
5085
- dateCreated: raw.mdUserDetail.datecreated ?? "",
5086
- email: raw.mdUserDetail.email ?? "",
5087
- fullName: raw.mdUserDetail.firstname ?? "",
5088
- phoneNumber: raw.mdUserDetail.mobileno ?? "",
5089
- profilePicUrl: raw.mdUserDetail.profile_pic ?? "",
5127
+ username: (_a = raw.username) != null ? _a : "",
5128
+ birthday: (_b = raw.mdUserDetail.dob) != null ? _b : "",
5129
+ dateCreated: (_c = raw.mdUserDetail.datecreated) != null ? _c : "",
5130
+ email: (_d = raw.mdUserDetail.email) != null ? _d : "",
5131
+ fullName: (_e = raw.mdUserDetail.firstname) != null ? _e : "",
5132
+ phoneNumber: (_f = raw.mdUserDetail.mobileno) != null ? _f : "",
5133
+ profilePicUrl: (_g = raw.mdUserDetail.profile_pic) != null ? _g : "",
5090
5134
  isPhoneNumVerified: raw.mdUserDetail.isVerify == "1"
5091
5135
  };
5092
5136
  };
@@ -5097,10 +5141,10 @@ const modifyGetUserProfileResponse = (result) => {
5097
5141
  return result;
5098
5142
  };
5099
5143
  const getVipListResponse = (raw) => {
5100
- var _a, _b;
5144
+ var _a, _b, _c, _d;
5101
5145
  return {
5102
- list: ((_a = raw.mdGrade) == null ? void 0 : _a.map((grade) => {
5103
- var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja;
5146
+ list: (_b = (_a = raw.mdGrade) == null ? void 0 : _a.map((grade) => {
5147
+ var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa;
5104
5148
  return {
5105
5149
  id: grade.gradeindex,
5106
5150
  is_current_level: false,
@@ -5129,63 +5173,63 @@ const getVipListResponse = (raw) => {
5129
5173
  benefit_list: {
5130
5174
  daily: {
5131
5175
  isShow: true,
5132
- bonus: getFormattedAmount(((_b2 = (_a2 = grade.benefit) == null ? void 0 : _a2.daily) == null ? void 0 : _b2.bonus) ?? "0"),
5133
- bonus_name: ((_d = (_c = grade.benefit) == null ? void 0 : _c.daily) == null ? void 0 : _d.bonus_name) ?? "",
5134
- turnover: getFormattedAmount(((_f = (_e = grade.benefit) == null ? void 0 : _e.daily) == null ? void 0 : _f.turnover) ?? "0"),
5135
- turnover_name: ((_h = (_g = grade.benefit) == null ? void 0 : _g.daily) == null ? void 0 : _h.turnover_name) ?? ""
5176
+ bonus: getFormattedAmount((_c2 = (_b2 = (_a2 = grade.benefit) == null ? void 0 : _a2.daily) == null ? void 0 : _b2.bonus) != null ? _c2 : "0"),
5177
+ bonus_name: (_f = (_e = (_d2 = grade.benefit) == null ? void 0 : _d2.daily) == null ? void 0 : _e.bonus_name) != null ? _f : "",
5178
+ turnover: getFormattedAmount((_i = (_h = (_g = grade.benefit) == null ? void 0 : _g.daily) == null ? void 0 : _h.turnover) != null ? _i : "0"),
5179
+ turnover_name: (_l = (_k = (_j = grade.benefit) == null ? void 0 : _j.daily) == null ? void 0 : _k.turnover_name) != null ? _l : ""
5136
5180
  },
5137
5181
  monthly: {
5138
5182
  isShow: true,
5139
- bonus: getFormattedAmount(((_j = (_i = grade.benefit) == null ? void 0 : _i.monthly) == null ? void 0 : _j.bonus) ?? "0"),
5140
- bonus_name: ((_l = (_k = grade.benefit) == null ? void 0 : _k.monthly) == null ? void 0 : _l.bonus_name) ?? "",
5141
- turnover: getFormattedAmount(((_n = (_m = grade.benefit) == null ? void 0 : _m.monthly) == null ? void 0 : _n.turnover) ?? "0"),
5142
- turnover_name: ((_p = (_o = grade.benefit) == null ? void 0 : _o.monthly) == null ? void 0 : _p.turnover_name) ?? ""
5183
+ bonus: getFormattedAmount((_o = (_n = (_m = grade.benefit) == null ? void 0 : _m.monthly) == null ? void 0 : _n.bonus) != null ? _o : "0"),
5184
+ bonus_name: (_r = (_q = (_p = grade.benefit) == null ? void 0 : _p.monthly) == null ? void 0 : _q.bonus_name) != null ? _r : "",
5185
+ turnover: getFormattedAmount((_u = (_t = (_s = grade.benefit) == null ? void 0 : _s.monthly) == null ? void 0 : _t.turnover) != null ? _u : "0"),
5186
+ turnover_name: (_x = (_w = (_v = grade.benefit) == null ? void 0 : _v.monthly) == null ? void 0 : _w.turnover_name) != null ? _x : ""
5143
5187
  },
5144
5188
  weekly: {
5145
5189
  isShow: true,
5146
- bonus: getFormattedAmount(((_r = (_q = grade.benefit) == null ? void 0 : _q.weekly) == null ? void 0 : _r.bonus) ?? "0"),
5147
- bonus_name: ((_t = (_s = grade.benefit) == null ? void 0 : _s.weekly) == null ? void 0 : _t.bonus_name) ?? "",
5148
- turnover: getFormattedAmount(((_v = (_u = grade.benefit) == null ? void 0 : _u.weekly) == null ? void 0 : _v.turnover) ?? "0"),
5149
- turnover_name: ((_x = (_w = grade.benefit) == null ? void 0 : _w.weekly) == null ? void 0 : _x.turnover_name) ?? ""
5190
+ bonus: getFormattedAmount((_A = (_z = (_y = grade.benefit) == null ? void 0 : _y.weekly) == null ? void 0 : _z.bonus) != null ? _A : "0"),
5191
+ bonus_name: (_D = (_C = (_B = grade.benefit) == null ? void 0 : _B.weekly) == null ? void 0 : _C.bonus_name) != null ? _D : "",
5192
+ turnover: getFormattedAmount((_G = (_F = (_E = grade.benefit) == null ? void 0 : _E.weekly) == null ? void 0 : _F.turnover) != null ? _G : "0"),
5193
+ turnover_name: (_J = (_I = (_H = grade.benefit) == null ? void 0 : _H.weekly) == null ? void 0 : _I.turnover_name) != null ? _J : ""
5150
5194
  },
5151
5195
  upgrade: {
5152
5196
  isShow: true,
5153
- bonus: getFormattedAmount(((_z = (_y = grade.benefit) == null ? void 0 : _y.upgrade) == null ? void 0 : _z.bonus) ?? "0"),
5154
- bonus_name: ((_B = (_A = grade.benefit) == null ? void 0 : _A.upgrade) == null ? void 0 : _B.bonus_name) ?? "",
5155
- turnover: getFormattedAmount(((_D = (_C = grade.benefit) == null ? void 0 : _C.upgrade) == null ? void 0 : _D.turnover) ?? "0"),
5156
- turnover_name: ((_F = (_E = grade.benefit) == null ? void 0 : _E.upgrade) == null ? void 0 : _F.turnover_name) ?? ""
5197
+ bonus: getFormattedAmount((_M = (_L = (_K = grade.benefit) == null ? void 0 : _K.upgrade) == null ? void 0 : _L.bonus) != null ? _M : "0"),
5198
+ bonus_name: (_P = (_O = (_N = grade.benefit) == null ? void 0 : _N.upgrade) == null ? void 0 : _O.bonus_name) != null ? _P : "",
5199
+ turnover: getFormattedAmount((_S = (_R = (_Q = grade.benefit) == null ? void 0 : _Q.upgrade) == null ? void 0 : _R.turnover) != null ? _S : "0"),
5200
+ turnover_name: (_V = (_U = (_T = grade.benefit) == null ? void 0 : _T.upgrade) == null ? void 0 : _U.turnover_name) != null ? _V : ""
5157
5201
  },
5158
5202
  birthday: {
5159
5203
  isShow: true,
5160
- bonus: getFormattedAmount(((_H = (_G = grade.benefit) == null ? void 0 : _G.birthday) == null ? void 0 : _H.bonus) ?? "0"),
5161
- bonus_name: ((_J = (_I = grade.benefit) == null ? void 0 : _I.birthday) == null ? void 0 : _J.bonus_name) ?? "",
5162
- turnover: getFormattedAmount(((_L = (_K = grade.benefit) == null ? void 0 : _K.birthday) == null ? void 0 : _L.turnover) ?? "0"),
5163
- turnover_name: ((_N = (_M = grade.benefit) == null ? void 0 : _M.birthday) == null ? void 0 : _N.turnover_name) ?? ""
5204
+ bonus: getFormattedAmount((_Y = (_X = (_W = grade.benefit) == null ? void 0 : _W.birthday) == null ? void 0 : _X.bonus) != null ? _Y : "0"),
5205
+ bonus_name: (_$ = (__ = (_Z = grade.benefit) == null ? void 0 : _Z.birthday) == null ? void 0 : __.bonus_name) != null ? _$ : "",
5206
+ turnover: getFormattedAmount((_ca = (_ba = (_aa = grade.benefit) == null ? void 0 : _aa.birthday) == null ? void 0 : _ba.turnover) != null ? _ca : "0"),
5207
+ turnover_name: (_fa = (_ea = (_da = grade.benefit) == null ? void 0 : _da.birthday) == null ? void 0 : _ea.turnover_name) != null ? _fa : ""
5164
5208
  },
5165
5209
  salary_1st: {
5166
5210
  isShow: true,
5167
- bonus: getFormattedAmount(((_P = (_O = grade.benefit) == null ? void 0 : _O.salary_1st) == null ? void 0 : _P.bonus) ?? "0"),
5168
- bonus_name: ((_R = (_Q = grade.benefit) == null ? void 0 : _Q.salary_1st) == null ? void 0 : _R.bonus_name) ?? "",
5169
- turnover: getFormattedAmount(((_T = (_S = grade.benefit) == null ? void 0 : _S.salary_1st) == null ? void 0 : _T.turnover) ?? "0"),
5170
- turnover_name: ((_V = (_U = grade.benefit) == null ? void 0 : _U.salary_1st) == null ? void 0 : _V.turnover_name) ?? ""
5211
+ bonus: getFormattedAmount((_ia = (_ha = (_ga = grade.benefit) == null ? void 0 : _ga.salary_1st) == null ? void 0 : _ha.bonus) != null ? _ia : "0"),
5212
+ bonus_name: (_la = (_ka = (_ja = grade.benefit) == null ? void 0 : _ja.salary_1st) == null ? void 0 : _ka.bonus_name) != null ? _la : "",
5213
+ turnover: getFormattedAmount((_oa = (_na = (_ma = grade.benefit) == null ? void 0 : _ma.salary_1st) == null ? void 0 : _na.turnover) != null ? _oa : "0"),
5214
+ turnover_name: (_ra = (_qa = (_pa = grade.benefit) == null ? void 0 : _pa.salary_1st) == null ? void 0 : _qa.turnover_name) != null ? _ra : ""
5171
5215
  },
5172
5216
  salary_10th: {
5173
5217
  isShow: true,
5174
- bonus: getFormattedAmount(((_X = (_W = grade.benefit) == null ? void 0 : _W.salary_10th) == null ? void 0 : _X.bonus) ?? "0"),
5175
- bonus_name: ((_Z = (_Y = grade.benefit) == null ? void 0 : _Y.salary_10th) == null ? void 0 : _Z.bonus_name) ?? "",
5176
- turnover: getFormattedAmount(((_$ = (__ = grade.benefit) == null ? void 0 : __.salary_10th) == null ? void 0 : _$.turnover) ?? "0"),
5177
- turnover_name: ((_ba = (_aa = grade.benefit) == null ? void 0 : _aa.salary_10th) == null ? void 0 : _ba.turnover_name) ?? ""
5218
+ bonus: getFormattedAmount((_ua = (_ta = (_sa = grade.benefit) == null ? void 0 : _sa.salary_10th) == null ? void 0 : _ta.bonus) != null ? _ua : "0"),
5219
+ bonus_name: (_xa = (_wa = (_va = grade.benefit) == null ? void 0 : _va.salary_10th) == null ? void 0 : _wa.bonus_name) != null ? _xa : "",
5220
+ turnover: getFormattedAmount((_Aa = (_za = (_ya = grade.benefit) == null ? void 0 : _ya.salary_10th) == null ? void 0 : _za.turnover) != null ? _Aa : "0"),
5221
+ turnover_name: (_Da = (_Ca = (_Ba = grade.benefit) == null ? void 0 : _Ba.salary_10th) == null ? void 0 : _Ca.turnover_name) != null ? _Da : ""
5178
5222
  },
5179
5223
  salary_20th: {
5180
5224
  isShow: true,
5181
- bonus: getFormattedAmount(((_da = (_ca = grade.benefit) == null ? void 0 : _ca.salary_20th) == null ? void 0 : _da.bonus) ?? "0"),
5182
- bonus_name: ((_fa = (_ea = grade.benefit) == null ? void 0 : _ea.salary_20th) == null ? void 0 : _fa.bonus_name) ?? "",
5183
- turnover: getFormattedAmount(((_ha = (_ga = grade.benefit) == null ? void 0 : _ga.salary_20th) == null ? void 0 : _ha.turnover) ?? "0"),
5184
- turnover_name: ((_ja = (_ia = grade.benefit) == null ? void 0 : _ia.salary_20th) == null ? void 0 : _ja.turnover_name) ?? ""
5225
+ bonus: getFormattedAmount((_Ga = (_Fa = (_Ea = grade.benefit) == null ? void 0 : _Ea.salary_20th) == null ? void 0 : _Fa.bonus) != null ? _Ga : "0"),
5226
+ bonus_name: (_Ja = (_Ia = (_Ha = grade.benefit) == null ? void 0 : _Ha.salary_20th) == null ? void 0 : _Ia.bonus_name) != null ? _Ja : "",
5227
+ turnover: getFormattedAmount((_Ma = (_La = (_Ka = grade.benefit) == null ? void 0 : _Ka.salary_20th) == null ? void 0 : _La.turnover) != null ? _Ma : "0"),
5228
+ turnover_name: (_Pa = (_Oa = (_Na = grade.benefit) == null ? void 0 : _Na.salary_20th) == null ? void 0 : _Oa.turnover_name) != null ? _Pa : ""
5185
5229
  }
5186
5230
  }
5187
5231
  };
5188
- })) ?? [],
5232
+ })) != null ? _b : [],
5189
5233
  detail: [],
5190
5234
  bonus: {
5191
5235
  month: {
@@ -5280,12 +5324,12 @@ const getVipListResponse = (raw) => {
5280
5324
  }
5281
5325
  }
5282
5326
  },
5283
- tnc: ((_b = raw.mdVipPromo) == null ? void 0 : _b.map((item) => {
5327
+ tnc: (_d = (_c = raw.mdVipPromo) == null ? void 0 : _c.map((item) => {
5284
5328
  return {
5285
5329
  title: item.title,
5286
5330
  content: item.content
5287
5331
  };
5288
- })) ?? []
5332
+ })) != null ? _d : []
5289
5333
  };
5290
5334
  };
5291
5335
  var SettingCategory = /* @__PURE__ */ ((SettingCategory2) => {
@@ -5393,8 +5437,7 @@ const modifyVipListResponse = (result) => {
5393
5437
  c_turnover = "0.00";
5394
5438
  c_percentage = 0;
5395
5439
  }
5396
- vipList.list[i] = {
5397
- ...item,
5440
+ vipList.list[i] = __spreadProps(__spreadValues({}, item), {
5398
5441
  is_current_level: i === userVipLevelIndex,
5399
5442
  deposit: {
5400
5443
  total: next_deposit_total,
@@ -5407,7 +5450,7 @@ const modifyVipListResponse = (result) => {
5407
5450
  current: c_turnover
5408
5451
  },
5409
5452
  percentage: c_percentage
5410
- };
5453
+ });
5411
5454
  }
5412
5455
  }
5413
5456
  delete result.vipStatus;
@@ -5750,7 +5793,7 @@ const getPromotionResponse = (raw) => {
5750
5793
  };
5751
5794
  }),
5752
5795
  list: raw.list.map((promo) => {
5753
- var _a, _b;
5796
+ var _a, _b, _c, _d;
5754
5797
  let time = "";
5755
5798
  if (promo.stime !== "" && promo.etime !== "") {
5756
5799
  time = `${promo.stime} - ${promo.etime}`;
@@ -5768,8 +5811,8 @@ const getPromotionResponse = (raw) => {
5768
5811
  content: promo.content,
5769
5812
  time,
5770
5813
  name: promo.title,
5771
- claimable: ((_a = promo.promo_cash) == null ? void 0 : _a.claimable) ?? false,
5772
- amountDisplay: ((_b = promo.promo_cash) == null ? void 0 : _b.display) ?? ""
5814
+ claimable: (_b = (_a = promo.promo_cash) == null ? void 0 : _a.claimable) != null ? _b : false,
5815
+ amountDisplay: (_d = (_c = promo.promo_cash) == null ? void 0 : _c.display) != null ? _d : ""
5773
5816
  };
5774
5817
  }).sort((a, b) => {
5775
5818
  if (a.claimable && !b.claimable) return -1;
@@ -5785,7 +5828,7 @@ const modifyPromotionResponse = (result) => {
5785
5828
  return result;
5786
5829
  };
5787
5830
  const getGetSettingResponse = (raw) => {
5788
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
5831
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
5789
5832
  let vipCalculation = 4;
5790
5833
  if (raw.vipcalculation) {
5791
5834
  vipCalculation = Number(raw.vipcalculation);
@@ -5796,7 +5839,7 @@ const getGetSettingResponse = (raw) => {
5796
5839
  }
5797
5840
  return {
5798
5841
  vipCalculation,
5799
- livechat: raw.livechat ?? "",
5842
+ livechat: (_a = raw.livechat) != null ? _a : "",
5800
5843
  extraLiveChatList: extraLiveChatList.filter((item) => item.status == 1).map((item) => {
5801
5844
  let imgUrl = item.imgname;
5802
5845
  if (imgUrl.slice(-4) === ".png") {
@@ -5811,7 +5854,7 @@ const getGetSettingResponse = (raw) => {
5811
5854
  }),
5812
5855
  mobileValidate: raw.mobilevalidate ? raw.mobilevalidate === "1" : false,
5813
5856
  withdrawTAC: raw.withdrawtac ? raw.withdrawtac === "1" : false,
5814
- imageDomain: raw.imagedomain ?? "",
5857
+ imageDomain: (_b = raw.imagedomain) != null ? _b : "",
5815
5858
  withdrawalCodeType: {
5816
5859
  email: (Number(raw.withdrawalcode) & 1) > 0,
5817
5860
  code: (Number(raw.withdrawalcode) & 2) > 0,
@@ -5820,36 +5863,37 @@ const getGetSettingResponse = (raw) => {
5820
5863
  withdrawAlipay: raw.withdrawalipay === "1",
5821
5864
  crypto: raw.crypto === "1",
5822
5865
  forgetUser: {
5823
- email: ((_a = raw.forgetuser) == null ? void 0 : _a.email) ?? false,
5824
- sms: ((_b = raw.forgetuser) == null ? void 0 : _b.sms) ?? false
5866
+ email: (_d = (_c = raw.forgetuser) == null ? void 0 : _c.email) != null ? _d : false,
5867
+ sms: (_f = (_e = raw.forgetuser) == null ? void 0 : _e.sms) != null ? _f : false
5825
5868
  },
5826
5869
  loginCaptcha: raw.logincaptcha ? raw.logincaptcha === "1" : false,
5827
5870
  registerCaptcha: raw.registercaptcha ? raw.registercaptcha === "1" : false,
5828
- telegramAuthDomain: raw.telegramauthdomain ?? "",
5829
- telegramBotId: raw.telegrambotid ?? "",
5830
- whatsappRegister: raw.registerwa ?? "",
5871
+ telegramAuthDomain: (_g = raw.telegramauthdomain) != null ? _g : "",
5872
+ telegramBotId: (_h = raw.telegrambotid) != null ? _h : "",
5873
+ whatsappRegister: (_i = raw.registerwa) != null ? _i : "",
5831
5874
  contactUsSetting: {
5832
- facebook: ((_c = raw.contact_us_setting) == null ? void 0 : _c.facebook) ?? "",
5833
- whatsapp: ((_d = raw.contact_us_setting) == null ? void 0 : _d.whatsapp) ?? "",
5834
- linktr: ((_e = raw.contact_us_setting) == null ? void 0 : _e.linktr) ?? "",
5835
- telegram: ((_f = raw.contact_us_setting) == null ? void 0 : _f.telegram) ?? "",
5836
- website: ((_g = raw.contact_us_setting) == null ? void 0 : _g.website) ?? "",
5837
- youtube: ((_h = raw.contact_us_setting) == null ? void 0 : _h.youtube) ?? ""
5875
+ facebook: (_k = (_j = raw.contact_us_setting) == null ? void 0 : _j.facebook) != null ? _k : "",
5876
+ whatsapp: (_m = (_l = raw.contact_us_setting) == null ? void 0 : _l.whatsapp) != null ? _m : "",
5877
+ linktr: (_o = (_n = raw.contact_us_setting) == null ? void 0 : _n.linktr) != null ? _o : "",
5878
+ telegram: (_q = (_p = raw.contact_us_setting) == null ? void 0 : _p.telegram) != null ? _q : "",
5879
+ website: (_s = (_r = raw.contact_us_setting) == null ? void 0 : _r.website) != null ? _s : "",
5880
+ youtube: (_u = (_t = raw.contact_us_setting) == null ? void 0 : _t.youtube) != null ? _u : ""
5838
5881
  },
5839
- facebookPixelId: raw.facebookpixelid ?? "",
5840
- facebookPixelIdArr: raw.facebook_pixel_id_arr ?? [],
5841
- googleAnalyticArr: raw.google_analytic_arr ?? [],
5842
- agentLinkRedirectPath: raw.agentlink_first_redirect ?? "",
5843
- socialFirebaseApikey: raw.social_firebase_apikey ?? "",
5844
- socialFirebaseProjectId: raw.social_firebase_projectid ?? "",
5845
- socialFirebaseAppId: raw.social_firebase_appid ?? "",
5882
+ facebookPixelId: (_v = raw.facebookpixelid) != null ? _v : "",
5883
+ facebookPixelIdArr: (_w = raw.facebook_pixel_id_arr) != null ? _w : [],
5884
+ googleAnalyticArr: (_x = raw.google_analytic_arr) != null ? _x : [],
5885
+ agentLinkRedirectPath: (_y = raw.agentlink_first_redirect) != null ? _y : "",
5886
+ socialFirebaseApikey: (_z = raw.social_firebase_apikey) != null ? _z : "",
5887
+ socialFirebaseProjectId: (_A = raw.social_firebase_projectid) != null ? _A : "",
5888
+ socialFirebaseAppId: (_B = raw.social_firebase_appid) != null ? _B : "",
5846
5889
  userDetailMobileValidation: raw.userdetailmobilevalidation ? raw.userdetailmobilevalidation === "1" : false,
5847
- liveChatList: ((_i = raw.alllivechats) == null ? void 0 : _i.map((item) => {
5890
+ liveChatList: (_D = (_C = raw.alllivechats) == null ? void 0 : _C.map((item) => {
5891
+ var _a2, _b2;
5848
5892
  return {
5849
- name: item.name ?? "",
5850
- url: item.url ?? ""
5893
+ name: (_a2 = item.name) != null ? _a2 : "",
5894
+ url: (_b2 = item.url) != null ? _b2 : ""
5851
5895
  };
5852
- })) ?? []
5896
+ })) != null ? _D : []
5853
5897
  };
5854
5898
  };
5855
5899
  const modifyGetSettingRequest = (requests) => {
@@ -5859,8 +5903,8 @@ const modifyGetSettingResponse = (result) => {
5859
5903
  return result;
5860
5904
  };
5861
5905
  const getGetCountryMobileResponse = (raw) => {
5862
- var _a;
5863
- return ((_a = raw.data) == null ? void 0 : _a.filter((item) => item.status == "1").map((item) => {
5906
+ var _a, _b;
5907
+ return (_b = (_a = raw.data) == null ? void 0 : _a.filter((item) => item.status == "1").map((item) => {
5864
5908
  return {
5865
5909
  code: item.area_code,
5866
5910
  regex: item.regex,
@@ -5868,7 +5912,7 @@ const getGetCountryMobileResponse = (raw) => {
5868
5912
  minLength: item.minlength,
5869
5913
  maxLength: item.maxlength
5870
5914
  };
5871
- })) ?? [];
5915
+ })) != null ? _b : [];
5872
5916
  };
5873
5917
  const modifyGetCountryMobileRequest = (requests) => {
5874
5918
  return requests;
@@ -5907,14 +5951,14 @@ const modifyMainWalletResponse = (result) => {
5907
5951
  return result;
5908
5952
  };
5909
5953
  const getGetLanguageSettingResponse = (raw) => {
5910
- var _a;
5911
- return ((_a = raw.data) == null ? void 0 : _a.filter((item) => item.status == "1").map((item) => {
5954
+ var _a, _b;
5955
+ return (_b = (_a = raw.data) == null ? void 0 : _a.filter((item) => item.status == "1").map((item) => {
5912
5956
  return {
5913
5957
  name: item.title,
5914
5958
  code: item.code,
5915
5959
  iconUrl: item.flag_icon
5916
5960
  };
5917
- })) ?? [];
5961
+ })) != null ? _b : [];
5918
5962
  };
5919
5963
  const modifyGetLanguageSettingRequest = (requests) => {
5920
5964
  return requests;
@@ -5958,14 +6002,14 @@ const modifyGetfourDimensionDataResponse = (result) => {
5958
6002
  return result;
5959
6003
  };
5960
6004
  const getGetCompanyResponse = (raw) => {
5961
- var _a;
5962
- return ((_a = raw.data) == null ? void 0 : _a.filter((item) => item.company_status == 1).map((item) => {
6005
+ var _a, _b;
6006
+ return (_b = (_a = raw.data) == null ? void 0 : _a.filter((item) => item.company_status == 1).map((item) => {
5963
6007
  return {
5964
6008
  id: item.company_id,
5965
6009
  name: item.company_name,
5966
6010
  date: []
5967
6011
  };
5968
- })) ?? [];
6012
+ })) != null ? _b : [];
5969
6013
  };
5970
6014
  const modifyGetCompanyRequest = (requests) => {
5971
6015
  return requests;
@@ -5988,16 +6032,16 @@ const modifyGetCompanyResponse = (result) => {
5988
6032
  return result;
5989
6033
  };
5990
6034
  const getSearchResultDateResponse = (raw) => {
5991
- var _a;
5992
- return ((_a = raw.data) == null ? void 0 : _a.map((item) => {
5993
- var _a2;
6035
+ var _a, _b;
6036
+ return (_b = (_a = raw.data) == null ? void 0 : _a.map((item) => {
6037
+ var _a2, _b2;
5994
6038
  return {
5995
6039
  id: item.key,
5996
- date: ((_a2 = item.draw_date) == null ? void 0 : _a2.map((item2) => {
6040
+ date: (_b2 = (_a2 = item.draw_date) == null ? void 0 : _a2.map((item2) => {
5997
6041
  return convertUnixTimestampToDateString(item2.draw_tmactive);
5998
- })) ?? []
6042
+ })) != null ? _b2 : []
5999
6043
  };
6000
- })) ?? [];
6044
+ })) != null ? _b : [];
6001
6045
  };
6002
6046
  function convertUnixTimestampToDateString(unixTimestamp) {
6003
6047
  const date = new Date(unixTimestamp * 1e3);
@@ -6013,20 +6057,20 @@ const modifySearchResultDateResponse = (result) => {
6013
6057
  return result;
6014
6058
  };
6015
6059
  const getSearchHotResponse = (raw) => {
6016
- var _a;
6017
- return ((_a = raw.data) == null ? void 0 : _a.map((item) => {
6018
- var _a2;
6060
+ var _a, _b;
6061
+ return (_b = (_a = raw.data) == null ? void 0 : _a.map((item) => {
6062
+ var _a2, _b2;
6019
6063
  return {
6020
6064
  id: item.company_id,
6021
6065
  name: item.company_name,
6022
- list: ((_a2 = item.drawCount) == null ? void 0 : _a2.map((item2) => {
6066
+ list: (_b2 = (_a2 = item.drawCount) == null ? void 0 : _a2.map((item2) => {
6023
6067
  return {
6024
6068
  combination: item2.combination_combination,
6025
6069
  total: item2.total
6026
6070
  };
6027
- })) ?? []
6071
+ })) != null ? _b2 : []
6028
6072
  };
6029
- })) ?? [];
6073
+ })) != null ? _b : [];
6030
6074
  };
6031
6075
  const modifySearchHotRequest = (requests) => {
6032
6076
  const shIndex = requests.findIndex((item) => item.name === Api.searchHot);
@@ -6118,7 +6162,9 @@ const modifySearchByDateResponse = (result) => {
6118
6162
  return result;
6119
6163
  };
6120
6164
  const getUpcomingMatchesResponse = (raw) => {
6121
- return raw.data ? raw.data.filter((item) => !isTimeExpired(item.matchDate, 120)).map((item) => {
6165
+ var _a;
6166
+ return raw.data ? (_a = raw.data.filter((item) => !isTimeExpired(item.matchDate, 120)).map((item) => {
6167
+ var _a2, _b;
6122
6168
  return {
6123
6169
  id: item.id,
6124
6170
  date: formatToISODateTime(convertToUserTimeZone(item.matchDate)),
@@ -6134,17 +6180,17 @@ const getUpcomingMatchesResponse = (raw) => {
6134
6180
  away: {
6135
6181
  id: item.awayid,
6136
6182
  name: item.away,
6137
- score: item.AwayScore ?? 0,
6183
+ score: (_a2 = item.AwayScore) != null ? _a2 : 0,
6138
6184
  logo_url: item.awayLogo
6139
6185
  },
6140
6186
  home: {
6141
6187
  id: item.homeid,
6142
6188
  name: item.home,
6143
- score: item.HomeScore ?? 0,
6189
+ score: (_b = item.HomeScore) != null ? _b : 0,
6144
6190
  logo_url: item.homeLogo
6145
6191
  }
6146
6192
  };
6147
- }) ?? [] : [];
6193
+ })) != null ? _a : [] : [];
6148
6194
  };
6149
6195
  const modifyUpcomingMatchesRequest = (requests) => {
6150
6196
  return requests;
@@ -6153,10 +6199,11 @@ const modifyUpcomingMatchesResponse = (result) => {
6153
6199
  return result;
6154
6200
  };
6155
6201
  const getDepositResponse = (raw) => {
6202
+ var _a, _b;
6156
6203
  return {
6157
6204
  status: raw.status == 1,
6158
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
6159
- paymentUrl: raw.urlpayment ?? ""
6205
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
6206
+ paymentUrl: (_b = raw.urlpayment) != null ? _b : ""
6160
6207
  };
6161
6208
  };
6162
6209
  const modifyDepositRequest = (requests) => {
@@ -6166,9 +6213,10 @@ const modifyDepositResponse = (result) => {
6166
6213
  return result;
6167
6214
  };
6168
6215
  const getApplyVipBonusResponse = (raw) => {
6216
+ var _a;
6169
6217
  return {
6170
6218
  status: raw.status == 1,
6171
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
6219
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
6172
6220
  flag: raw.flag
6173
6221
  };
6174
6222
  };
@@ -6179,61 +6227,62 @@ const modifyApplyVipBonusResponse = (result) => {
6179
6227
  return result;
6180
6228
  };
6181
6229
  const getGetBankCardDataResponse = (raw) => {
6182
- var _a, _b, _c, _d, _e;
6230
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
6183
6231
  return {
6184
- bankCard: ((_a = raw.bankCard) == null ? void 0 : _a.map((item) => {
6185
- var _a2, _b2;
6232
+ bankCard: (_b = (_a = raw.bankCard) == null ? void 0 : _a.map((item) => {
6233
+ var _a2, _b2, _c2, _d2;
6186
6234
  return {
6187
6235
  bankIndex: item.bankindex,
6188
6236
  bankProvince: {
6189
6237
  id: item.bankprovince,
6190
- desc: ((_b2 = (_a2 = raw.province) == null ? void 0 : _a2.find(
6238
+ desc: (_c2 = (_b2 = (_a2 = raw.province) == null ? void 0 : _a2.find(
6191
6239
  (provinceItem) => provinceItem.provinceindex == item.bankprovince
6192
- )) == null ? void 0 : _b2.label) ?? ""
6240
+ )) == null ? void 0 : _b2.label) != null ? _c2 : ""
6193
6241
  },
6194
6242
  bankName: item.banknamesimplified,
6195
6243
  bankAccountNo: item.bankaccountno,
6196
- bankUrl: item.bankaddress ?? "",
6244
+ bankUrl: (_d2 = item.bankaddress) != null ? _d2 : "",
6197
6245
  imgUrl: item.img,
6198
6246
  countryIndex: item.countryindex
6199
6247
  };
6200
- })) ?? [],
6201
- bankList: ((_b = raw.bankList) == null ? void 0 : _b.map((item) => {
6248
+ })) != null ? _b : [],
6249
+ bankList: (_d = (_c = raw.bankList) == null ? void 0 : _c.map((item) => {
6250
+ var _a2;
6202
6251
  return {
6203
6252
  bankIndex: item.bankindex,
6204
6253
  bankType: item.bank_type,
6205
6254
  bankName: item.banknamesimplified,
6206
- bankUrl: item.address ?? "",
6255
+ bankUrl: (_a2 = item.address) != null ? _a2 : "",
6207
6256
  swiftCode: item.swiftcode,
6208
6257
  showBind: item.show_bind === "1",
6209
6258
  showDeposit: item.show_deposit === "1",
6210
6259
  countryIndex: item.countryindex
6211
6260
  };
6212
- })) ?? [],
6213
- province: ((_c = raw.province) == null ? void 0 : _c.map((item) => {
6261
+ })) != null ? _d : [],
6262
+ province: (_f = (_e = raw.province) == null ? void 0 : _e.map((item) => {
6214
6263
  return {
6215
6264
  index: item.provinceindex,
6216
6265
  label: item.label,
6217
6266
  countryIndex: item.countryindex
6218
6267
  };
6219
- })) ?? [],
6220
- cryptoAccount: ((_d = raw.mdAccountCrypto) == null ? void 0 : _d.map((item) => {
6268
+ })) != null ? _f : [],
6269
+ cryptoAccount: (_h = (_g = raw.mdAccountCrypto) == null ? void 0 : _g.map((item) => {
6221
6270
  return {
6222
6271
  id: item.crypto_id,
6223
6272
  type: item.type,
6224
6273
  name: item.crypto_name,
6225
6274
  address: item.address
6226
6275
  };
6227
- })) ?? [],
6276
+ })) != null ? _h : [],
6228
6277
  cryptoDetail: {
6229
6278
  limit: raw.mdCryptoDetail.cryptolimit,
6230
- protocol: ((_e = raw.mdCryptoDetail.cryptoprotocol) == null ? void 0 : _e.map((item) => {
6279
+ protocol: (_j = (_i = raw.mdCryptoDetail.cryptoprotocol) == null ? void 0 : _i.map((item) => {
6231
6280
  return {
6232
6281
  id: item.id,
6233
6282
  name: item.name,
6234
6283
  status: item.status == "1"
6235
6284
  };
6236
- })) ?? []
6285
+ })) != null ? _j : []
6237
6286
  },
6238
6287
  alipayData: raw.subWithdrawalAlipayData,
6239
6288
  user: {
@@ -6270,9 +6319,10 @@ const modifyWithdrawalGetResponse = (result) => {
6270
6319
  return result;
6271
6320
  };
6272
6321
  const getBaseResponse = (raw) => {
6322
+ var _a;
6273
6323
  return {
6274
6324
  status: raw.status == 1,
6275
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? ""
6325
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : ""
6276
6326
  };
6277
6327
  };
6278
6328
  const getWithdrawResponse = (raw) => {
@@ -6319,25 +6369,25 @@ var TransactionMethod = /* @__PURE__ */ ((TransactionMethod2) => {
6319
6369
  return TransactionMethod2;
6320
6370
  })(TransactionMethod || {});
6321
6371
  const getTransactionReportResponse = (raw) => {
6322
- var _a, _b, _c, _d, _e, _f;
6372
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
6323
6373
  return {
6324
- statusMode: ((_a = raw.subStatusModes) == null ? void 0 : _a.map((item) => {
6374
+ statusMode: (_b = (_a = raw.subStatusModes) == null ? void 0 : _a.map((item) => {
6325
6375
  return {
6326
6376
  key: item.key,
6327
6377
  value: item.value
6328
6378
  };
6329
- })) ?? [],
6330
- transactionMethod: ((_b = raw.subTransactionMethods) == null ? void 0 : _b.map((item) => {
6379
+ })) != null ? _b : [],
6380
+ transactionMethod: (_d = (_c = raw.subTransactionMethods) == null ? void 0 : _c.map((item) => {
6331
6381
  return {
6332
6382
  key: item.key,
6333
6383
  value: item.value
6334
6384
  };
6335
- })) ?? [],
6385
+ })) != null ? _d : [],
6336
6386
  data: {
6337
- currentPage: ((_c = raw.mdCashLedgers) == null ? void 0 : _c.current_page) ?? 0,
6338
- lastPage: ((_d = raw.mdCashLedgers) == null ? void 0 : _d.last_page) ?? 0,
6339
- data: ((_f = (_e = raw.mdCashLedgers) == null ? void 0 : _e.data) == null ? void 0 : _f.map((item) => {
6340
- var _a2, _b2;
6387
+ currentPage: (_f = (_e = raw.mdCashLedgers) == null ? void 0 : _e.current_page) != null ? _f : 0,
6388
+ lastPage: (_h = (_g = raw.mdCashLedgers) == null ? void 0 : _g.last_page) != null ? _h : 0,
6389
+ data: (_k = (_j = (_i = raw.mdCashLedgers) == null ? void 0 : _i.data) == null ? void 0 : _j.map((item) => {
6390
+ var _a2, _b2, _c2;
6341
6391
  return {
6342
6392
  transactionIndex: item.ledgerindex,
6343
6393
  transactionInfo: {
@@ -6348,14 +6398,14 @@ const getTransactionReportResponse = (raw) => {
6348
6398
  statusInfo: {
6349
6399
  id: item.status,
6350
6400
  value: item.status == 1,
6351
- desc: ((_b2 = (_a2 = raw.subStatusModes) == null ? void 0 : _a2.find((subItem) => subItem.key === item.status)) == null ? void 0 : _b2.value) ?? ""
6401
+ desc: (_c2 = (_b2 = (_a2 = raw.subStatusModes) == null ? void 0 : _a2.find((subItem) => subItem.key === item.status)) == null ? void 0 : _b2.value) != null ? _c2 : ""
6352
6402
  },
6353
6403
  amount: getFormattedAmount(item.amount),
6354
6404
  dateTime: item.ledgerdatetime,
6355
6405
  reason: item.reasonsimplified,
6356
6406
  method: item.fundmethod
6357
6407
  };
6358
- })) ?? []
6408
+ })) != null ? _k : []
6359
6409
  }
6360
6410
  };
6361
6411
  };
@@ -6428,22 +6478,23 @@ const modifyChangePasswordResponse = (result) => {
6428
6478
  return result;
6429
6479
  };
6430
6480
  const getWalletResponse = (raw) => {
6431
- return (raw == null ? void 0 : raw.map((item) => {
6432
- var _a;
6481
+ var _a;
6482
+ return (_a = raw == null ? void 0 : raw.map((item) => {
6483
+ var _a2, _b, _c, _d;
6433
6484
  return {
6434
- activeCom: ((_a = item.active_com) == null ? void 0 : _a.map((subItem) => {
6485
+ activeCom: (_b = (_a2 = item.active_com) == null ? void 0 : _a2.map((subItem) => {
6435
6486
  return {
6436
6487
  code: subItem.code,
6437
6488
  name: subItem.name,
6438
6489
  categoryId: subItem.category_id,
6439
6490
  maintenance: subItem.maintenance === 1
6440
6491
  };
6441
- })) ?? [],
6492
+ })) != null ? _b : [],
6442
6493
  platformWallet: getFormattedAmount(item.platformwallet),
6443
- com: item.com ?? "",
6444
- maintenance: item.maintenance ?? false
6494
+ com: (_c = item.com) != null ? _c : "",
6495
+ maintenance: (_d = item.maintenance) != null ? _d : false
6445
6496
  };
6446
- })) ?? [];
6497
+ })) != null ? _a : [];
6447
6498
  };
6448
6499
  const modifyWalletRequest = (requests) => {
6449
6500
  return requests;
@@ -6452,9 +6503,10 @@ const modifyWalletResponse = (result) => {
6452
6503
  return result;
6453
6504
  };
6454
6505
  const getGetEventlistResponse = (raw) => {
6506
+ var _a;
6455
6507
  return {
6456
6508
  status: raw.status == 1,
6457
- message: raw.message ?? "",
6509
+ message: (_a = raw.message) != null ? _a : "",
6458
6510
  data: raw.data.map((item) => {
6459
6511
  return {
6460
6512
  id: item.id,
@@ -6473,16 +6525,16 @@ const modifyGetEventlistResponse = (result) => {
6473
6525
  return result;
6474
6526
  };
6475
6527
  const getGetEventTokenResponse = (raw) => {
6476
- var _a;
6528
+ var _a, _b, _c;
6477
6529
  return {
6478
6530
  status: raw.status == 1,
6479
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
6480
- data: ((_a = raw.data) == null ? void 0 : _a.map((item) => {
6531
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
6532
+ data: (_c = (_b = raw.data) == null ? void 0 : _b.map((item) => {
6481
6533
  return {
6482
6534
  id: item.id,
6483
6535
  tokenAmount: item.token_amount
6484
6536
  };
6485
- })) ?? []
6537
+ })) != null ? _c : []
6486
6538
  };
6487
6539
  };
6488
6540
  const modifyGetEventTokenRequest = (requests) => {
@@ -6492,12 +6544,13 @@ const modifyGetEventTokenResponse = (result) => {
6492
6544
  return result;
6493
6545
  };
6494
6546
  const getGetExtraGameResponse = (raw) => {
6547
+ var _a, _b, _c, _d;
6495
6548
  return {
6496
6549
  status: raw.status == 1,
6497
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
6498
- loginId: raw.loginId ?? "",
6499
- password: raw.password ?? "",
6500
- downloadUrl: raw.download_link ?? ""
6550
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
6551
+ loginId: (_b = raw.loginId) != null ? _b : "",
6552
+ password: (_c = raw.password) != null ? _c : "",
6553
+ downloadUrl: (_d = raw.download_link) != null ? _d : ""
6501
6554
  };
6502
6555
  };
6503
6556
  const modifyGetExtraGameRequest = (requests) => {
@@ -6507,28 +6560,29 @@ const modifyGetExtraGameResponse = (result) => {
6507
6560
  return result;
6508
6561
  };
6509
6562
  const getMailBoxResponse = (raw) => {
6563
+ var _a, _b;
6510
6564
  return {
6511
- mail: (raw == null ? void 0 : raw.filter((item) => item.type == "1").map((item) => {
6512
- var _a, _b;
6565
+ mail: (_a = raw == null ? void 0 : raw.filter((item) => item.type == "1").map((item) => {
6566
+ var _a2, _b2, _c, _d;
6513
6567
  return {
6514
6568
  messageId: item.msgindex,
6515
6569
  unread: item.status == "0",
6516
6570
  date: convertToUserTimeZone(item.cdate),
6517
- title: ((_a = item.account_message_content) == null ? void 0 : _a.subject) ?? "",
6518
- content: ((_b = item.account_message_content) == null ? void 0 : _b.content) ?? ""
6571
+ title: (_b2 = (_a2 = item.account_message_content) == null ? void 0 : _a2.subject) != null ? _b2 : "",
6572
+ content: (_d = (_c = item.account_message_content) == null ? void 0 : _c.content) != null ? _d : ""
6519
6573
  };
6520
- })) ?? [],
6521
- prize: (raw == null ? void 0 : raw.filter((item) => item.type == "2").map((item) => {
6522
- var _a, _b;
6574
+ })) != null ? _a : [],
6575
+ prize: (_b = raw == null ? void 0 : raw.filter((item) => item.type == "2").map((item) => {
6576
+ var _a2, _b2, _c, _d, _e;
6523
6577
  return {
6524
6578
  messageId: item.msgindex,
6525
6579
  unread: item.status == "0",
6526
6580
  date: convertToUserTimeZone(item.cdate),
6527
- title: ((_a = item.account_message_content) == null ? void 0 : _a.subject) ?? "",
6528
- content: ((_b = item.account_message_content) == null ? void 0 : _b.content) ?? "",
6529
- amount: parseFloat(item.amount ?? "0")
6581
+ title: (_b2 = (_a2 = item.account_message_content) == null ? void 0 : _a2.subject) != null ? _b2 : "",
6582
+ content: (_d = (_c = item.account_message_content) == null ? void 0 : _c.content) != null ? _d : "",
6583
+ amount: parseFloat((_e = item.amount) != null ? _e : "0")
6530
6584
  };
6531
- })) ?? []
6585
+ })) != null ? _b : []
6532
6586
  };
6533
6587
  };
6534
6588
  const modifyMailBoxRequest = (requests) => {
@@ -6898,9 +6952,10 @@ const modifyGetRewardReferralResponse = (result) => {
6898
6952
  return result;
6899
6953
  };
6900
6954
  const getSubmitWithdrawValidateResponse = (raw) => {
6955
+ var _a;
6901
6956
  return {
6902
6957
  status: raw.status == 1,
6903
- message: raw.errormessage ?? ""
6958
+ message: (_a = raw.errormessage) != null ? _a : ""
6904
6959
  };
6905
6960
  };
6906
6961
  const modifySubmitWithdrawValidateRequest = (requests) => {
@@ -6930,9 +6985,10 @@ const modifyGetDepositPromotionResponse = (result) => {
6930
6985
  return result;
6931
6986
  };
6932
6987
  const getGetInviteRewardClaimResponse = (raw) => {
6988
+ var _a;
6933
6989
  return {
6934
6990
  status: raw.status == 1,
6935
- message: raw.msg ?? ""
6991
+ message: (_a = raw.msg) != null ? _a : ""
6936
6992
  };
6937
6993
  };
6938
6994
  const modifyGetInviteRewardClaimRequest = (requests) => {
@@ -6942,9 +6998,10 @@ const modifyGetInviteRewardClaimResponse = (result) => {
6942
6998
  return result;
6943
6999
  };
6944
7000
  const getGetTopupRewardClaimResponse = (raw) => {
7001
+ var _a;
6945
7002
  return {
6946
7003
  status: raw.status == 1,
6947
- message: raw.msg ?? ""
7004
+ message: (_a = raw.msg) != null ? _a : ""
6948
7005
  };
6949
7006
  };
6950
7007
  const modifyGetTopupRewardClaimRequest = (requests) => {
@@ -6954,9 +7011,10 @@ const modifyGetTopupRewardClaimResponse = (result) => {
6954
7011
  return result;
6955
7012
  };
6956
7013
  const getGetTurnOverRewardClaimResponse = (raw) => {
7014
+ var _a;
6957
7015
  return {
6958
7016
  status: raw.status == 1,
6959
- message: raw.msg ?? ""
7017
+ message: (_a = raw.msg) != null ? _a : ""
6960
7018
  };
6961
7019
  };
6962
7020
  const modifyGetTurnOverRewardClaimRequest = (requests) => {
@@ -7070,15 +7128,15 @@ const modifySubmitForgetPasswordResponse = (result) => {
7070
7128
  return result;
7071
7129
  };
7072
7130
  const getGetImageResponse = (raw) => {
7073
- var _a, _b, _c, _d, _e;
7131
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
7074
7132
  return {
7075
7133
  status: raw.status == 1,
7076
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7077
- default: ((_a = raw.data) == null ? void 0 : _a.default) ?? [],
7078
- online: ((_b = raw.data) == null ? void 0 : _b.online) ?? [],
7079
- mycard: ((_c = raw.data) == null ? void 0 : _c.mycard) ?? [],
7080
- qrcode: ((_d = raw.data) == null ? void 0 : _d.qrcode) ?? [],
7081
- personal: ((_e = raw.data) == null ? void 0 : _e.personal) ?? []
7134
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7135
+ default: (_c = (_b = raw.data) == null ? void 0 : _b.default) != null ? _c : [],
7136
+ online: (_e = (_d = raw.data) == null ? void 0 : _d.online) != null ? _e : [],
7137
+ mycard: (_g = (_f = raw.data) == null ? void 0 : _f.mycard) != null ? _g : [],
7138
+ qrcode: (_i = (_h = raw.data) == null ? void 0 : _h.qrcode) != null ? _i : [],
7139
+ personal: (_k = (_j = raw.data) == null ? void 0 : _j.personal) != null ? _k : []
7082
7140
  };
7083
7141
  };
7084
7142
  const modifyGetImageRequest = (requests) => {
@@ -7250,14 +7308,14 @@ const modifyReadMailResponse = (result) => {
7250
7308
  return result;
7251
7309
  };
7252
7310
  const getCheckRedpacketValidateResponse = (raw) => {
7253
- var _a;
7311
+ var _a, _b, _c, _d, _e, _f;
7254
7312
  return {
7255
7313
  status: raw.status == 1,
7256
- message: raw.status == 1 ? raw.message ?? "" : raw.errormessage ?? "",
7257
- desc: ((_a = raw.data) == null ? void 0 : _a.bottom_description_setting) ?? "",
7314
+ message: raw.status == 1 ? (_a = raw.message) != null ? _a : "" : (_b = raw.errormessage) != null ? _b : "",
7315
+ desc: (_d = (_c = raw.data) == null ? void 0 : _c.bottom_description_setting) != null ? _d : "",
7258
7316
  unfinishGame: raw.checkgame.unfinishgame == 1,
7259
- ledgerIndex: raw.checkgame.ledgerindex ?? 0,
7260
- amount: raw.checkgame.amount ?? ""
7317
+ ledgerIndex: (_e = raw.checkgame.ledgerindex) != null ? _e : 0,
7318
+ amount: (_f = raw.checkgame.amount) != null ? _f : ""
7261
7319
  };
7262
7320
  };
7263
7321
  const modifyCheckRedpacketValidateRequest = (requests) => {
@@ -7276,10 +7334,11 @@ const modifyRequestTacCodeResponse = (result) => {
7276
7334
  return result;
7277
7335
  };
7278
7336
  const getGetUsernameByReferResponse = (raw) => {
7337
+ var _a;
7279
7338
  return {
7280
7339
  status: raw.status == 1,
7281
7340
  message: raw.message,
7282
- user: raw.user ?? ""
7341
+ user: (_a = raw.user) != null ? _a : ""
7283
7342
  };
7284
7343
  };
7285
7344
  const modifyGetUsernameByReferRequest = (requests) => {
@@ -7289,10 +7348,11 @@ const modifyGetUsernameByReferResponse = (result) => {
7289
7348
  return result;
7290
7349
  };
7291
7350
  const getApplyPromoResponse = (raw) => {
7351
+ var _a, _b;
7292
7352
  return {
7293
7353
  status: raw.status == 1,
7294
- message: raw.msg ?? "",
7295
- amount: raw.amount ?? ""
7354
+ message: (_a = raw.msg) != null ? _a : "",
7355
+ amount: (_b = raw.amount) != null ? _b : ""
7296
7356
  };
7297
7357
  };
7298
7358
  const modifyApplyPromoRequest = (requests) => {
@@ -7311,11 +7371,11 @@ const modifyApplyRedpacketResponse = (result) => {
7311
7371
  return result;
7312
7372
  };
7313
7373
  const getApplySignInResponse = (raw) => {
7314
- var _a;
7374
+ var _a, _b, _c;
7315
7375
  return {
7316
7376
  status: raw.status == 1,
7317
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7318
- dayStreak: ((_a = raw.data) == null ? void 0 : _a.continuousDay) ?? 0
7377
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7378
+ dayStreak: (_c = (_b = raw.data) == null ? void 0 : _b.continuousDay) != null ? _c : 0
7319
7379
  };
7320
7380
  };
7321
7381
  const modifyApplySignInRequest = (requests) => {
@@ -7325,22 +7385,22 @@ const modifyApplySignInResponse = (result) => {
7325
7385
  return result;
7326
7386
  };
7327
7387
  const getGetCountryResponse = (raw) => {
7328
- var _a;
7388
+ var _a, _b, _c;
7329
7389
  return {
7330
7390
  status: raw.status == 1,
7331
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7332
- countryList: ((_a = raw.data) == null ? void 0 : _a.map((item) => {
7333
- var _a2, _b;
7391
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7392
+ countryList: (_c = (_b = raw.data) == null ? void 0 : _b.map((item) => {
7393
+ var _a2, _b2, _c2, _d, _e;
7334
7394
  return {
7335
7395
  countryIndex: item.countryindex,
7336
- currencyName: item.currency_name ?? "",
7396
+ currencyName: (_a2 = item.currency_name) != null ? _a2 : "",
7337
7397
  label: item.label,
7338
7398
  currencyRate: {
7339
- depositCurrencyRate: ((_a2 = item.currency_rate) == null ? void 0 : _a2.currency_rate_deposit) ?? "",
7340
- withdrawCurrencyRate: ((_b = item.currency_rate) == null ? void 0 : _b.currency_rate_withdraw) ?? ""
7399
+ depositCurrencyRate: (_c2 = (_b2 = item.currency_rate) == null ? void 0 : _b2.currency_rate_deposit) != null ? _c2 : "",
7400
+ withdrawCurrencyRate: (_e = (_d = item.currency_rate) == null ? void 0 : _d.currency_rate_withdraw) != null ? _e : ""
7341
7401
  }
7342
7402
  };
7343
- })) ?? []
7403
+ })) != null ? _c : []
7344
7404
  };
7345
7405
  };
7346
7406
  const modifyGetCountryRequest = (requests) => {
@@ -7350,9 +7410,10 @@ const modifyGetCountryResponse = (result) => {
7350
7410
  return result;
7351
7411
  };
7352
7412
  const getSubmitGiftCodeResponse = (raw) => {
7413
+ var _a;
7353
7414
  return {
7354
7415
  status: raw.status == 1,
7355
- message: raw.msg ?? ""
7416
+ message: (_a = raw.msg) != null ? _a : ""
7356
7417
  };
7357
7418
  };
7358
7419
  const modifySubmitGiftCodeRequest = (requests) => {
@@ -7362,12 +7423,13 @@ const modifySubmitGiftCodeResponse = (result) => {
7362
7423
  return result;
7363
7424
  };
7364
7425
  const getPlayGameResponse = (raw) => {
7426
+ var _a, _b, _c, _d;
7365
7427
  return {
7366
7428
  status: raw.status == 1,
7367
- code: raw.code ?? 0,
7368
- message: raw.msg ?? "",
7369
- form: raw.form ?? "",
7370
- gameUrl: raw.data ?? ""
7429
+ code: (_a = raw.code) != null ? _a : 0,
7430
+ message: (_b = raw.msg) != null ? _b : "",
7431
+ form: (_c = raw.form) != null ? _c : "",
7432
+ gameUrl: (_d = raw.data) != null ? _d : ""
7371
7433
  };
7372
7434
  };
7373
7435
  const modifyPlayGameRequest = (requests) => {
@@ -7395,9 +7457,10 @@ const modifyTransferProcessResponse = (result) => {
7395
7457
  return result;
7396
7458
  };
7397
7459
  const getSubmitDepositValidateResponse = (raw) => {
7460
+ var _a;
7398
7461
  return {
7399
7462
  status: raw.status == 1,
7400
- message: raw.errormessage ?? ""
7463
+ message: (_a = raw.errormessage) != null ? _a : ""
7401
7464
  };
7402
7465
  };
7403
7466
  const modifySubmitDepositValidateRequest = (requests) => {
@@ -7407,9 +7470,10 @@ const modifySubmitDepositValidateResponse = (result) => {
7407
7470
  return result;
7408
7471
  };
7409
7472
  const getSubmitTransferCreditValidateResponse = (raw) => {
7473
+ var _a;
7410
7474
  return {
7411
7475
  status: raw.status == 1,
7412
- message: raw.errormessage ?? ""
7476
+ message: (_a = raw.errormessage) != null ? _a : ""
7413
7477
  };
7414
7478
  };
7415
7479
  const modifySubmitTransferCreditValidateRequest = (requests) => {
@@ -7446,15 +7510,15 @@ const modifyFriendListEditResponse = (result) => {
7446
7510
  return result;
7447
7511
  };
7448
7512
  const getGetActivePPResponse = (raw) => {
7449
- var _a;
7513
+ var _a, _b;
7450
7514
  return {
7451
- platformProduct: ((_a = raw.mdPlatformProduct) == null ? void 0 : _a.map((item) => {
7515
+ platformProduct: (_b = (_a = raw.mdPlatformProduct) == null ? void 0 : _a.map((item) => {
7452
7516
  return {
7453
7517
  productMasterId: item.id_ProductMaster,
7454
7518
  name: item.name,
7455
7519
  com: item.com
7456
7520
  };
7457
- })) ?? []
7521
+ })) != null ? _b : []
7458
7522
  };
7459
7523
  };
7460
7524
  const modifyGetActivePPRequest = (requests) => {
@@ -7464,22 +7528,22 @@ const modifyGetActivePPResponse = (result) => {
7464
7528
  return result;
7465
7529
  };
7466
7530
  const getGetActiveProductResponse = (raw) => {
7467
- var _a;
7468
- return ((_a = raw.mdProductMaster) == null ? void 0 : _a.map((item) => {
7469
- var _a2;
7531
+ var _a, _b;
7532
+ return (_b = (_a = raw.mdProductMaster) == null ? void 0 : _a.map((item) => {
7533
+ var _a2, _b2;
7470
7534
  return {
7471
7535
  id: item.id,
7472
7536
  name: item.name,
7473
- product: ((_a2 = item.platformproduct) == null ? void 0 : _a2.map((item2) => {
7537
+ product: (_b2 = (_a2 = item.platformproduct) == null ? void 0 : _a2.map((item2) => {
7474
7538
  return {
7475
7539
  id: item2.id,
7476
7540
  name: item2.name,
7477
7541
  platformId: item2.id_PlatformMaster,
7478
7542
  com: item2.com
7479
7543
  };
7480
- })) ?? []
7544
+ })) != null ? _b2 : []
7481
7545
  };
7482
- })) ?? [];
7546
+ })) != null ? _b : [];
7483
7547
  };
7484
7548
  const modifyGetActiveProductRequest = (requests) => {
7485
7549
  return requests;
@@ -7567,9 +7631,10 @@ const modifyGetVerifyPromoResponse = (result) => {
7567
7631
  return result;
7568
7632
  };
7569
7633
  const getRequestUpdateMobileTacCodeResponse = (raw) => {
7634
+ var _a;
7570
7635
  return {
7571
7636
  status: raw.status == 1,
7572
- message: raw.msg ?? "",
7637
+ message: (_a = raw.msg) != null ? _a : "",
7573
7638
  data: raw.data
7574
7639
  };
7575
7640
  };
@@ -7580,9 +7645,10 @@ const modifyRequestUpdateMobileTacCodeResponse = (result) => {
7580
7645
  return result;
7581
7646
  };
7582
7647
  const getSubmitUpdateMobileTacCodeResponse = (raw) => {
7648
+ var _a;
7583
7649
  return {
7584
7650
  status: raw.status == 1,
7585
- message: raw.msg ?? ""
7651
+ message: (_a = raw.msg) != null ? _a : ""
7586
7652
  };
7587
7653
  };
7588
7654
  const modifySubmitUpdateMobileTacCodeRequest = (requests) => {
@@ -7623,9 +7689,10 @@ const modifySignInRecordResponse = (result) => {
7623
7689
  return result;
7624
7690
  };
7625
7691
  const getReferralProfileResponse = (raw) => {
7692
+ var _a, _b, _c;
7626
7693
  return {
7627
7694
  status: raw.status == 1,
7628
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7695
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7629
7696
  fullName: raw.fullname,
7630
7697
  currentPage: raw.pagination.current_page,
7631
7698
  lastPage: raw.pagination.total_page,
@@ -7635,9 +7702,9 @@ const getReferralProfileResponse = (raw) => {
7635
7702
  upline: raw.my_info.upline,
7636
7703
  referralCode: raw.my_info.referral_code,
7637
7704
  teamMember: raw.my_info.teammember,
7638
- teamPerformance: raw.my_info.teamachieve ?? "",
7705
+ teamPerformance: (_b = raw.my_info.teamachieve) != null ? _b : "",
7639
7706
  downlineMember: raw.my_info.downlineadded,
7640
- downlinePerformance: raw.my_info.downlineachieve ?? "",
7707
+ downlinePerformance: (_c = raw.my_info.downlineachieve) != null ? _c : "",
7641
7708
  validComm: raw.my_info.totalcommission,
7642
7709
  withdrawableComm: raw.my_info.withdrawablecommission
7643
7710
  },
@@ -7676,16 +7743,18 @@ const modifyReferralProfileResponse = (result) => {
7676
7743
  return result;
7677
7744
  };
7678
7745
  const getReferralMemberProfileResponse = (raw) => {
7746
+ var _a, _b;
7679
7747
  return {
7680
7748
  status: raw.status == 1,
7681
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7682
- id: raw.id ?? 0,
7749
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7750
+ id: (_b = raw.id) != null ? _b : 0,
7683
7751
  data: raw.data.map((item) => {
7752
+ var _a2;
7684
7753
  return {
7685
7754
  date: item.date,
7686
7755
  downlineAdded: item.downlineadded,
7687
7756
  commission: item.commission,
7688
- validTurnover: item.validturnover ?? ""
7757
+ validTurnover: (_a2 = item.validturnover) != null ? _a2 : ""
7689
7758
  };
7690
7759
  }),
7691
7760
  currentPage: raw.page,
@@ -7699,9 +7768,10 @@ const modifyReferralMemberProfileResponse = (result) => {
7699
7768
  return result;
7700
7769
  };
7701
7770
  const getRegisterActionResponse = (raw) => {
7771
+ var _a;
7702
7772
  return {
7703
7773
  status: raw.status == "1",
7704
- message: raw.msg ?? "",
7774
+ message: (_a = raw.msg) != null ? _a : "",
7705
7775
  username: raw.accountcode,
7706
7776
  password: raw.password
7707
7777
  };
@@ -7718,11 +7788,11 @@ var TransferMethod = /* @__PURE__ */ ((TransferMethod2) => {
7718
7788
  return TransferMethod2;
7719
7789
  })(TransferMethod || {});
7720
7790
  const getTransferReportResponse = (raw) => {
7721
- var _a;
7791
+ var _a, _b;
7722
7792
  return {
7723
7793
  currentPage: raw.mdGameCreditLimitTransfers.current_page,
7724
7794
  lastPage: raw.mdGameCreditLimitTransfers.last_page,
7725
- data: ((_a = raw.mdGameCreditLimitTransfers.data) == null ? void 0 : _a.map((item) => {
7795
+ data: (_b = (_a = raw.mdGameCreditLimitTransfers.data) == null ? void 0 : _a.map((item) => {
7726
7796
  return {
7727
7797
  transferIndex: item.clindex,
7728
7798
  target: item.com_from !== "" ? item.com_from : item.com_to,
@@ -7730,7 +7800,7 @@ const getTransferReportResponse = (raw) => {
7730
7800
  amount: getFormattedAmount(item.amount),
7731
7801
  dateTime: item.transferdatetime
7732
7802
  };
7733
- })) ?? []
7803
+ })) != null ? _b : []
7734
7804
  };
7735
7805
  };
7736
7806
  const modifyTransferReportRequest = (requests) => {
@@ -7740,11 +7810,11 @@ const modifyTransferReportResponse = (result) => {
7740
7810
  return result;
7741
7811
  };
7742
7812
  const getAgTransferCreditReportResponse = (raw) => {
7743
- var _a;
7813
+ var _a, _b;
7744
7814
  return {
7745
7815
  currentPage: raw.mdAgTransfeReport.current_page,
7746
7816
  lastPage: raw.mdAgTransfeReport.last_page,
7747
- data: ((_a = raw.mdAgTransfeReport.data) == null ? void 0 : _a.map((item) => {
7817
+ data: (_b = (_a = raw.mdAgTransfeReport.data) == null ? void 0 : _a.map((item) => {
7748
7818
  return {
7749
7819
  sender: item.sender,
7750
7820
  receiver: item.receiver,
@@ -7752,7 +7822,7 @@ const getAgTransferCreditReportResponse = (raw) => {
7752
7822
  amount: item.amount,
7753
7823
  dateTime: item.transferdatetime
7754
7824
  };
7755
- })) ?? []
7825
+ })) != null ? _b : []
7756
7826
  };
7757
7827
  };
7758
7828
  const modifyAgTransferCreditReportRequest = (requests) => {
@@ -7762,23 +7832,23 @@ const modifyAgTransferCreditReportResponse = (result) => {
7762
7832
  return result;
7763
7833
  };
7764
7834
  const getBetReportResponse = (raw) => {
7765
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
7835
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
7766
7836
  return {
7767
7837
  status: raw.status == 1,
7768
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7838
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7769
7839
  data: {
7770
- total: ((_a = raw.data) == null ? void 0 : _a.total) ? {
7771
- bet: getFormattedAmount(((_b = raw.data) == null ? void 0 : _b.total.bet) ?? 0),
7772
- activeBet: getFormattedAmount(((_c = raw.data) == null ? void 0 : _c.total.activebet) ?? 0),
7773
- validBet: getFormattedAmount(((_d = raw.data) == null ? void 0 : _d.total.validbet) ?? 0),
7774
- payout: getFormattedAmount(((_e = raw.data) == null ? void 0 : _e.total.payout) ?? 0)
7840
+ total: ((_b = raw.data) == null ? void 0 : _b.total) ? {
7841
+ bet: getFormattedAmount((_d = (_c = raw.data) == null ? void 0 : _c.total.bet) != null ? _d : 0),
7842
+ activeBet: getFormattedAmount((_f = (_e = raw.data) == null ? void 0 : _e.total.activebet) != null ? _f : 0),
7843
+ validBet: getFormattedAmount((_h = (_g = raw.data) == null ? void 0 : _g.total.validbet) != null ? _h : 0),
7844
+ payout: getFormattedAmount((_j = (_i = raw.data) == null ? void 0 : _i.total.payout) != null ? _j : 0)
7775
7845
  } : {
7776
7846
  bet: "0.00",
7777
7847
  activeBet: "0.00",
7778
7848
  validBet: "0.00",
7779
7849
  payout: "0.00"
7780
7850
  },
7781
- data: ((_g = (_f = raw.data) == null ? void 0 : _f.sum) == null ? void 0 : _g.map((item) => {
7851
+ data: (_m = (_l = (_k = raw.data) == null ? void 0 : _k.sum) == null ? void 0 : _l.map((item) => {
7782
7852
  return {
7783
7853
  bet: getFormattedAmount(item.bet),
7784
7854
  activeBet: getFormattedAmount(item.activebet),
@@ -7786,8 +7856,8 @@ const getBetReportResponse = (raw) => {
7786
7856
  target: item.name,
7787
7857
  com: item.com
7788
7858
  };
7789
- })) ?? [],
7790
- wagers: ((_i = (_h = raw.data) == null ? void 0 : _h.wagers) == null ? void 0 : _i.map((item) => {
7859
+ })) != null ? _m : [],
7860
+ wagers: (_p = (_o = (_n = raw.data) == null ? void 0 : _n.wagers) == null ? void 0 : _o.map((item) => {
7791
7861
  return {
7792
7862
  payout: getFormattedAmount(item.payout),
7793
7863
  betType: item.betType,
@@ -7799,9 +7869,9 @@ const getBetReportResponse = (raw) => {
7799
7869
  detailSC: item.detailsc,
7800
7870
  resultL: item.resultL
7801
7871
  };
7802
- })) ?? [],
7803
- currentPage: ((_j = raw.data) == null ? void 0 : _j.page.current_page) ?? 1,
7804
- lastPage: ((_k = raw.data) == null ? void 0 : _k.page.last_page) ?? 1
7872
+ })) != null ? _p : [],
7873
+ currentPage: (_r = (_q = raw.data) == null ? void 0 : _q.page.current_page) != null ? _r : 1,
7874
+ lastPage: (_t = (_s = raw.data) == null ? void 0 : _s.page.last_page) != null ? _t : 1
7805
7875
  }
7806
7876
  };
7807
7877
  };
@@ -7812,14 +7882,14 @@ const modifyBetReportResponse = (result) => {
7812
7882
  return result;
7813
7883
  };
7814
7884
  const getGetTwoFactorAuthenticateResponse = (raw) => {
7815
- var _a, _b, _c;
7885
+ var _a, _b, _c, _d, _e, _f, _g;
7816
7886
  return {
7817
7887
  status: raw.status == 1,
7818
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7888
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7819
7889
  data: {
7820
- key: ((_a = raw.data) == null ? void 0 : _a.key) ?? "",
7821
- qrcode: ((_b = raw.data) == null ? void 0 : _b.qrcode) ?? "",
7822
- binded: ((_c = raw.data) == null ? void 0 : _c.binded) ?? false
7890
+ key: (_c = (_b = raw.data) == null ? void 0 : _b.key) != null ? _c : "",
7891
+ qrcode: (_e = (_d = raw.data) == null ? void 0 : _d.qrcode) != null ? _e : "",
7892
+ binded: (_g = (_f = raw.data) == null ? void 0 : _f.binded) != null ? _g : false
7823
7893
  }
7824
7894
  };
7825
7895
  };
@@ -7830,16 +7900,16 @@ const modifyGetTwoFactorAuthenticateResponse = (result) => {
7830
7900
  return result;
7831
7901
  };
7832
7902
  const getGetUserDeviceListResponse = (raw) => {
7833
- var _a;
7903
+ var _a, _b, _c;
7834
7904
  return {
7835
7905
  status: raw.status == 1,
7836
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
7837
- data: ((_a = raw.data) == null ? void 0 : _a.map((item) => {
7906
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7907
+ data: (_c = (_b = raw.data) == null ? void 0 : _b.map((item) => {
7838
7908
  return {
7839
7909
  deviceName: item.device_name,
7840
7910
  createdAt: item.created_at
7841
7911
  };
7842
- })) ?? []
7912
+ })) != null ? _c : []
7843
7913
  };
7844
7914
  };
7845
7915
  const modifyGetUserDeviceListRequest = (requests) => {
@@ -7867,24 +7937,24 @@ const modifyUnbindUserDeviceResponse = (result) => {
7867
7937
  return result;
7868
7938
  };
7869
7939
  const getSearchNumberHistoryResponse = (raw) => {
7870
- var _a, _b, _c;
7940
+ var _a, _b, _c, _d, _e, _f, _g, _h;
7871
7941
  return {
7872
7942
  status: raw.status == 1,
7873
- message: raw.status == 1 ? raw.message ?? "" : raw.errormessage ?? "",
7943
+ message: raw.status == 1 ? (_a = raw.message) != null ? _a : "" : (_b = raw.errormessage) != null ? _b : "",
7874
7944
  data: {
7875
- companyCount: ((_a = raw.data.companyRCount) == null ? void 0 : _a.map((item) => {
7945
+ companyCount: (_d = (_c = raw.data.companyRCount) == null ? void 0 : _c.map((item) => {
7876
7946
  return {
7877
7947
  key: item.key,
7878
7948
  count: item.count
7879
7949
  };
7880
- })) ?? [],
7881
- prizeCount: ((_b = raw.data.prizeRCount) == null ? void 0 : _b.map((item) => {
7950
+ })) != null ? _d : [],
7951
+ prizeCount: (_f = (_e = raw.data.prizeRCount) == null ? void 0 : _e.map((item) => {
7882
7952
  return {
7883
7953
  key: item.key,
7884
7954
  count: item.count
7885
7955
  };
7886
- })) ?? [],
7887
- list: ((_c = raw.data.list) == null ? void 0 : _c.map((item) => {
7956
+ })) != null ? _f : [],
7957
+ list: (_h = (_g = raw.data.list) == null ? void 0 : _g.map((item) => {
7888
7958
  return {
7889
7959
  dimension: item.combination_dimension,
7890
7960
  combination: item.combination_combination,
@@ -7894,7 +7964,7 @@ const getSearchNumberHistoryResponse = (raw) => {
7894
7964
  companyId: item.company.company_id,
7895
7965
  companyName: item.company.company_name
7896
7966
  };
7897
- })) ?? []
7967
+ })) != null ? _h : []
7898
7968
  }
7899
7969
  };
7900
7970
  };
@@ -7926,9 +7996,10 @@ const modifyChangeWithdrawalCodeResponse = (result) => {
7926
7996
  return result;
7927
7997
  };
7928
7998
  const getCheckRedPacketTokenResponse = (raw) => {
7999
+ var _a;
7929
8000
  return {
7930
8001
  status: raw.status == 1,
7931
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
8002
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
7932
8003
  tokenAmount: raw.token_amount
7933
8004
  };
7934
8005
  };
@@ -7948,13 +8019,14 @@ const modifySubmitWithdrawalAlipayResponse = (result) => {
7948
8019
  return result;
7949
8020
  };
7950
8021
  const getApplyReliefFundResponse = (raw) => {
8022
+ var _a;
7951
8023
  let amount = 0;
7952
8024
  if (raw.data != null && typeof raw.data === "object") {
7953
8025
  amount = raw.data.amount;
7954
8026
  }
7955
8027
  return {
7956
8028
  status: raw.status,
7957
- message: raw.msg ?? "",
8029
+ message: (_a = raw.msg) != null ? _a : "",
7958
8030
  amount
7959
8031
  };
7960
8032
  };
@@ -8028,33 +8100,34 @@ const modifyGetReliefFundReportResponse = (result) => {
8028
8100
  return result;
8029
8101
  };
8030
8102
  const getGetWeekCardDataResponse = (raw) => {
8031
- var _a, _b, _c, _d;
8103
+ var _a, _b, _c, _d, _e, _f, _g, _h;
8032
8104
  return {
8033
8105
  status: raw.status == 1,
8034
8106
  message: "",
8035
8107
  data: {
8036
8108
  reward: {
8037
- purchasable: ((_a = raw.data) == null ? void 0 : _a.purchasable) ?? false,
8038
- collectable: ((_b = raw.data) == null ? void 0 : _b.collectable) ?? false,
8039
- remainingDay: ((_c = raw.data) == null ? void 0 : _c.remaining) ?? "0"
8109
+ purchasable: (_b = (_a = raw.data) == null ? void 0 : _a.purchasable) != null ? _b : false,
8110
+ collectable: (_d = (_c = raw.data) == null ? void 0 : _c.collectable) != null ? _d : false,
8111
+ remainingDay: (_f = (_e = raw.data) == null ? void 0 : _e.remaining) != null ? _f : "0"
8040
8112
  },
8041
- cardList: ((_d = raw.data) == null ? void 0 : _d.settings.map((item) => {
8113
+ cardList: (_h = (_g = raw.data) == null ? void 0 : _g.settings.map((item) => {
8114
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
8042
8115
  return {
8043
- name: item.settingname ?? "",
8044
- code: item.code ?? "",
8045
- price: item.price ?? "",
8046
- period: item.period ?? "",
8047
- profileId: item.profileid ?? "",
8116
+ name: (_a2 = item.settingname) != null ? _a2 : "",
8117
+ code: (_b2 = item.code) != null ? _b2 : "",
8118
+ price: (_c2 = item.price) != null ? _c2 : "",
8119
+ period: (_d2 = item.period) != null ? _d2 : "",
8120
+ profileId: (_e2 = item.profileid) != null ? _e2 : "",
8048
8121
  dailyReward: {
8049
8122
  amount: item.daily_reward,
8050
- percentage: (Number(item.daily_reward ?? "") / Number(item.price ?? "") * 100).toFixed(0)
8123
+ percentage: (Number((_f2 = item.daily_reward) != null ? _f2 : "") / Number((_g2 = item.price) != null ? _g2 : "") * 100).toFixed(0)
8051
8124
  },
8052
8125
  instantReward: {
8053
8126
  amount: item.instant_reward,
8054
- percentage: (Number(item.instant_reward ?? "") / Number(item.price ?? "") * 100).toFixed(0)
8127
+ percentage: (Number((_h2 = item.instant_reward) != null ? _h2 : "") / Number((_i = item.price) != null ? _i : "") * 100).toFixed(0)
8055
8128
  }
8056
8129
  };
8057
- })) ?? []
8130
+ })) != null ? _h : []
8058
8131
  }
8059
8132
  };
8060
8133
  };
@@ -8065,9 +8138,10 @@ const modifyGetWeekCardDataResponse = (result) => {
8065
8138
  return result;
8066
8139
  };
8067
8140
  const getApplyWeekCardResponse = (raw) => {
8141
+ var _a;
8068
8142
  return {
8069
8143
  status: raw.status == 1,
8070
- message: raw.msg ?? ""
8144
+ message: (_a = raw.msg) != null ? _a : ""
8071
8145
  };
8072
8146
  };
8073
8147
  const modifyApplyWeekCardRequest = (requests) => {
@@ -8077,9 +8151,10 @@ const modifyApplyWeekCardResponse = (result) => {
8077
8151
  return result;
8078
8152
  };
8079
8153
  const getGetWeekCardClaimResponse = (raw) => {
8154
+ var _a;
8080
8155
  return {
8081
8156
  status: raw.status == 1,
8082
- message: raw.msg ?? ""
8157
+ message: (_a = raw.msg) != null ? _a : ""
8083
8158
  };
8084
8159
  };
8085
8160
  const modifyGetWeekCardClaimRequest = (requests) => {
@@ -8089,11 +8164,11 @@ const modifyGetWeekCardClaimResponse = (result) => {
8089
8164
  return result;
8090
8165
  };
8091
8166
  const getTransfersettingResponse = (raw) => {
8092
- var _a, _b;
8167
+ var _a, _b, _c;
8093
8168
  return {
8094
8169
  status: raw.status == 1,
8095
- errorMessage: raw.errormessage ?? "",
8096
- isAutoTransfer: raw.optionkey == "auto" || ((_a = raw.message) == null ? void 0 : _a.optionkey) == "auto" || ((_b = raw.mdAccountSetting) == null ? void 0 : _b.optionkey) == "auto"
8170
+ errorMessage: (_a = raw.errormessage) != null ? _a : "",
8171
+ isAutoTransfer: raw.optionkey == "auto" || ((_b = raw.message) == null ? void 0 : _b.optionkey) == "auto" || ((_c = raw.mdAccountSetting) == null ? void 0 : _c.optionkey) == "auto"
8097
8172
  };
8098
8173
  };
8099
8174
  const modifyTransfersettingRequest = (requests) => {
@@ -8112,12 +8187,13 @@ const modifyTransferResponse = (result) => {
8112
8187
  return result;
8113
8188
  };
8114
8189
  const getGetIncentiveDataResponse = (raw) => {
8190
+ var _a, _b, _c, _d;
8115
8191
  return {
8116
8192
  status: raw.status,
8117
- message: raw.msg ?? "",
8118
- turnover: raw.data ? raw.data.turnover ?? 0 : 0,
8119
- percentage: raw.data ? raw.data.percentage ?? 0 : 0,
8120
- incentive: raw.data ? raw.data.incentive ?? 0 : 0,
8193
+ message: (_a = raw.msg) != null ? _a : "",
8194
+ turnover: raw.data ? (_b = raw.data.turnover) != null ? _b : 0 : 0,
8195
+ percentage: raw.data ? (_c = raw.data.percentage) != null ? _c : 0 : 0,
8196
+ incentive: raw.data ? (_d = raw.data.incentive) != null ? _d : 0 : 0,
8121
8197
  claimable: 0
8122
8198
  };
8123
8199
  };
@@ -8147,13 +8223,14 @@ const modifyGetIncentiveDataResponse = (result) => {
8147
8223
  return result;
8148
8224
  };
8149
8225
  const getGetIncentiveRebateResponse = (raw) => {
8226
+ var _a;
8150
8227
  let amount = "0";
8151
8228
  if (raw.data) {
8152
8229
  amount = raw.data.incentive;
8153
8230
  }
8154
8231
  return {
8155
8232
  status: raw.status,
8156
- message: raw.msg ?? "",
8233
+ message: (_a = raw.msg) != null ? _a : "",
8157
8234
  amount
8158
8235
  };
8159
8236
  };
@@ -8164,13 +8241,14 @@ const modifyGetIncentiveRebateResponse = (result) => {
8164
8241
  return result;
8165
8242
  };
8166
8243
  const getClaimIncentiveRebateResponse = (raw) => {
8244
+ var _a;
8167
8245
  let amount = "0";
8168
8246
  if (raw.data) {
8169
8247
  amount = raw.data.incentive;
8170
8248
  }
8171
8249
  return {
8172
8250
  status: raw.status,
8173
- message: raw.msg ?? "",
8251
+ message: (_a = raw.msg) != null ? _a : "",
8174
8252
  amount
8175
8253
  };
8176
8254
  };
@@ -8223,7 +8301,8 @@ const getGetMissionDataResponse = (raw) => {
8223
8301
  };
8224
8302
  const getDataViaType = (raw, type) => {
8225
8303
  return raw.data.tier.filter((item) => item.type == type).map((item) => {
8226
- const current = Math.min(item.achieve ?? 0, item.requirement);
8304
+ var _a;
8305
+ const current = Math.min((_a = item.achieve) != null ? _a : 0, item.requirement);
8227
8306
  return {
8228
8307
  id: item.transid,
8229
8308
  reward: item.reward,
@@ -8261,9 +8340,10 @@ const modifyGetMissionDataResponse = (result) => {
8261
8340
  return result;
8262
8341
  };
8263
8342
  const getGetMissionClaimResponse = (raw) => {
8343
+ var _a;
8264
8344
  return {
8265
8345
  status: raw.status,
8266
- message: raw.msg ?? ""
8346
+ message: (_a = raw.msg) != null ? _a : ""
8267
8347
  };
8268
8348
  };
8269
8349
  const modifyGetMissionClaimRequest = (requests) => {
@@ -8273,18 +8353,20 @@ const modifyGetMissionClaimResponse = (result) => {
8273
8353
  return result;
8274
8354
  };
8275
8355
  const getRegisterFormResponse = (raw) => {
8356
+ var _a;
8276
8357
  return {
8277
8358
  status: raw.status == 1,
8278
8359
  socialLogin: raw.social_login == 1,
8279
- errorMessage: raw.erorrmessage ?? "",
8360
+ errorMessage: (_a = raw.erorrmessage) != null ? _a : "",
8280
8361
  inputFields: raw.mdSignupForms.map((item) => {
8362
+ var _a2, _b, _c;
8281
8363
  return {
8282
8364
  fieldName: item.fieldname,
8283
8365
  required: item.required == 1,
8284
8366
  regex: item.regex,
8285
- minLength: item.minlen ?? "0",
8286
- maxLength: item.maxlen ?? "0",
8287
- inputHelper: item.inputHelper ?? ""
8367
+ minLength: (_a2 = item.minlen) != null ? _a2 : "0",
8368
+ maxLength: (_b = item.maxlen) != null ? _b : "0",
8369
+ inputHelper: (_c = item.inputHelper) != null ? _c : ""
8288
8370
  };
8289
8371
  })
8290
8372
  };
@@ -8296,9 +8378,10 @@ const modifyRegisterFormResponse = (result) => {
8296
8378
  return result;
8297
8379
  };
8298
8380
  const getGetFavouriteGameResponse = (raw) => {
8381
+ var _a, _b;
8299
8382
  return {
8300
- currentPage: raw.mdGameLists.current_page ?? 0,
8301
- lastPage: raw.mdGameLists.last_page ?? 0,
8383
+ currentPage: (_a = raw.mdGameLists.current_page) != null ? _a : 0,
8384
+ lastPage: (_b = raw.mdGameLists.last_page) != null ? _b : 0,
8302
8385
  data: raw.mdGameLists.data && raw.mdGameLists.data.length > 0 ? raw.mdGameLists.data.map((item) => {
8303
8386
  return {
8304
8387
  gameId: item.id,
@@ -8337,18 +8420,17 @@ const modifyGetFavouriteGameResponse = (result) => {
8337
8420
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
8338
8421
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
8339
8422
  const tempFavouriteGameList = favouriteGameList.data.map((gameInfo) => {
8423
+ var _a;
8340
8424
  const turnover = getPlatformTurnoverRate.find(
8341
8425
  (item) => item.id === gameInfo.platformId
8342
8426
  );
8343
- return {
8344
- ...gameInfo,
8345
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
8346
- };
8427
+ return __spreadProps(__spreadValues({}, gameInfo), {
8428
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
8429
+ });
8347
8430
  });
8348
- result.getFavouriteGame = {
8349
- ...favouriteGameList,
8431
+ result.getFavouriteGame = __spreadProps(__spreadValues({}, favouriteGameList), {
8350
8432
  data: tempFavouriteGameList
8351
- };
8433
+ });
8352
8434
  delete result.getPlatformTurnoverRate;
8353
8435
  }
8354
8436
  }
@@ -8373,11 +8455,11 @@ const modifyRequestForgetUsernameResponse = (result) => {
8373
8455
  return result;
8374
8456
  };
8375
8457
  const getSubmitForgetUsernameResponse = (raw) => {
8376
- var _a;
8458
+ var _a, _b, _c;
8377
8459
  return {
8378
8460
  status: raw.status == 1,
8379
- errorMessage: raw.errormessage ?? "",
8380
- username: ((_a = raw.data) == null ? void 0 : _a.username) ?? ""
8461
+ errorMessage: (_a = raw.errormessage) != null ? _a : "",
8462
+ username: (_c = (_b = raw.data) == null ? void 0 : _b.username) != null ? _c : ""
8381
8463
  };
8382
8464
  };
8383
8465
  const modifySubmitForgetUsernameRequest = (requests) => {
@@ -8393,17 +8475,18 @@ var AccumulateDepositStatus = /* @__PURE__ */ ((AccumulateDepositStatus2) => {
8393
8475
  return AccumulateDepositStatus2;
8394
8476
  })(AccumulateDepositStatus || {});
8395
8477
  const getGetAccumulateDepositDataResponse = (raw) => {
8478
+ var _a, _b, _c, _d;
8396
8479
  if (raw.status == 0) {
8397
8480
  return {
8398
8481
  status: false,
8399
- message: raw.msg ?? "",
8482
+ message: (_a = raw.msg) != null ? _a : "",
8400
8483
  data: null
8401
8484
  };
8402
8485
  }
8403
8486
  let data = null;
8404
8487
  if (raw.data != null) {
8405
- const current = raw.data.achieve ?? 0;
8406
- const total = raw.data.achieve ?? 0;
8488
+ const current = (_b = raw.data.achieve) != null ? _b : 0;
8489
+ const total = (_c = raw.data.achieve) != null ? _c : 0;
8407
8490
  const current_percentage = current / total * 100;
8408
8491
  const collectable = raw.data.tier.filter(
8409
8492
  (item) => item.claimable == "1" && item.collected != "1"
@@ -8428,7 +8511,7 @@ const getGetAccumulateDepositDataResponse = (raw) => {
8428
8511
  }
8429
8512
  return {
8430
8513
  status: true,
8431
- message: raw.msg ?? "",
8514
+ message: (_d = raw.msg) != null ? _d : "",
8432
8515
  data
8433
8516
  };
8434
8517
  };
@@ -8439,9 +8522,10 @@ const modifyGetAccumulateDepositDataResponse = (result) => {
8439
8522
  return result;
8440
8523
  };
8441
8524
  const getGetAccumulateDepositClaimResponse = (raw) => {
8525
+ var _a;
8442
8526
  return {
8443
8527
  status: raw.status == 1,
8444
- message: raw.msg ?? ""
8528
+ message: (_a = raw.msg) != null ? _a : ""
8445
8529
  };
8446
8530
  };
8447
8531
  const modifyGetAccumulateDepositClaimRequest = (requests) => {
@@ -8451,38 +8535,38 @@ const modifyGetAccumulateDepositClaimResponse = (result) => {
8451
8535
  return result;
8452
8536
  };
8453
8537
  const getRebateRefundSettingResponse = (raw) => {
8454
- var _a;
8538
+ var _a, _b, _c;
8455
8539
  return {
8456
8540
  status: raw.status == 1,
8457
- message: raw.msg ?? "",
8458
- data: ((_a = raw.data) == null ? void 0 : _a.map((item) => {
8459
- var _a2;
8541
+ message: (_a = raw.msg) != null ? _a : "",
8542
+ data: (_c = (_b = raw.data) == null ? void 0 : _b.map((item) => {
8543
+ var _a2, _b2;
8460
8544
  return {
8461
8545
  name: item.name,
8462
- groups: ((_a2 = item.groups) == null ? void 0 : _a2.map((groupItem) => {
8463
- var _a3;
8546
+ groups: (_b2 = (_a2 = item.groups) == null ? void 0 : _a2.map((groupItem) => {
8547
+ var _a3, _b3;
8464
8548
  return {
8465
8549
  min: groupItem.min,
8466
8550
  max: groupItem.max,
8467
8551
  multiplier: groupItem.multiply,
8468
8552
  name: groupItem.displayName,
8469
- vipSetting: ((_a3 = groupItem.settings) == null ? void 0 : _a3.map((settingItem) => {
8470
- var _a4;
8553
+ vipSetting: (_b3 = (_a3 = groupItem.settings) == null ? void 0 : _a3.map((settingItem) => {
8554
+ var _a4, _b4;
8471
8555
  return {
8472
8556
  name: settingItem.displayName,
8473
8557
  rate: settingItem.percentage,
8474
- platforms: ((_a4 = settingItem.platformProducts) == null ? void 0 : _a4.map((platformItem) => {
8558
+ platforms: (_b4 = (_a4 = settingItem.platformProducts) == null ? void 0 : _a4.map((platformItem) => {
8475
8559
  return {
8476
8560
  name: platformItem.displayName,
8477
8561
  rate: platformItem.percentage
8478
8562
  };
8479
- })) ?? []
8563
+ })) != null ? _b4 : []
8480
8564
  };
8481
- })) ?? []
8565
+ })) != null ? _b3 : []
8482
8566
  };
8483
- })) ?? []
8567
+ })) != null ? _b2 : []
8484
8568
  };
8485
- })) ?? []
8569
+ })) != null ? _c : []
8486
8570
  };
8487
8571
  };
8488
8572
  const modifyRebateRefundSettingRequest = (requests) => {
@@ -8492,14 +8576,14 @@ const modifyRebateRefundSettingResponse = (result) => {
8492
8576
  return result;
8493
8577
  };
8494
8578
  const getGetASCMatchCountResponse = (raw) => {
8495
- var _a, _b, _c;
8579
+ var _a, _b, _c, _d, _e, _f, _g;
8496
8580
  return {
8497
8581
  status: raw.status == 1,
8498
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
8582
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
8499
8583
  data: {
8500
- live: ((_a = raw.data) == null ? void 0 : _a.l) ?? 0,
8501
- today: ((_b = raw.data) == null ? void 0 : _b.t) ?? 0,
8502
- early: ((_c = raw.data) == null ? void 0 : _c.e) ?? 0
8584
+ live: (_c = (_b = raw.data) == null ? void 0 : _b.l) != null ? _c : 0,
8585
+ today: (_e = (_d = raw.data) == null ? void 0 : _d.t) != null ? _e : 0,
8586
+ early: (_g = (_f = raw.data) == null ? void 0 : _f.e) != null ? _g : 0
8503
8587
  }
8504
8588
  };
8505
8589
  };
@@ -8510,10 +8594,11 @@ const modifyGetASCMatchCountResponse = (result) => {
8510
8594
  return result;
8511
8595
  };
8512
8596
  const getUpdateDeviceTokenResponse = (raw) => {
8597
+ var _a;
8513
8598
  console.log(raw);
8514
8599
  return {
8515
8600
  status: raw.status,
8516
- message: raw.message ?? ""
8601
+ message: (_a = raw.message) != null ? _a : ""
8517
8602
  };
8518
8603
  };
8519
8604
  const modifyUpdateDeviceTokenRequest = (requests) => {
@@ -8523,21 +8608,23 @@ const modifyUpdateDeviceTokenResponse = (result) => {
8523
8608
  return result;
8524
8609
  };
8525
8610
  const getGetCryptoListResponse = (raw) => {
8611
+ var _a, _b;
8526
8612
  return {
8527
8613
  status: raw.status == 1,
8528
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
8529
- coinList: raw.data.map((coin) => {
8614
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
8615
+ coinList: (_b = raw.data.map((coin) => {
8616
+ var _a2;
8530
8617
  return {
8531
8618
  name: coin.coin,
8532
- protocol: coin.supported_protocols.map((protocol) => {
8619
+ protocol: (_a2 = coin.supported_protocols.map((protocol) => {
8533
8620
  return {
8534
8621
  name: protocol.protocol,
8535
8622
  cryptoId: protocol.crypto_id,
8536
8623
  networkId: protocol.network_id
8537
8624
  };
8538
- }) ?? []
8625
+ })) != null ? _a2 : []
8539
8626
  };
8540
- }) ?? []
8627
+ })) != null ? _b : []
8541
8628
  };
8542
8629
  };
8543
8630
  const modifyGetCryptoListRequest = (requests) => {
@@ -8547,10 +8634,11 @@ const modifyGetCryptoListResponse = (result) => {
8547
8634
  return result;
8548
8635
  };
8549
8636
  const getGetCryptoAddressResponse = (raw) => {
8637
+ var _a, _b;
8550
8638
  return {
8551
8639
  status: raw.status == 1,
8552
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
8553
- address: raw.data ?? ""
8640
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
8641
+ address: (_b = raw.data) != null ? _b : ""
8554
8642
  };
8555
8643
  };
8556
8644
  const modifyGetCryptoAddressRequest = (requests) => {
@@ -8560,10 +8648,11 @@ const modifyGetCryptoAddressResponse = (result) => {
8560
8648
  return result;
8561
8649
  };
8562
8650
  const getGetPopoutItemResponse = (raw) => {
8651
+ var _a, _b;
8563
8652
  if (raw.status == 0) {
8564
8653
  return {
8565
8654
  status: 0,
8566
- message: raw.msg ?? "",
8655
+ message: (_a = raw.msg) != null ? _a : "",
8567
8656
  data: null
8568
8657
  };
8569
8658
  }
@@ -8578,7 +8667,7 @@ const getGetPopoutItemResponse = (raw) => {
8578
8667
  });
8579
8668
  return {
8580
8669
  status: raw.status,
8581
- message: raw.msg ?? "",
8670
+ message: (_b = raw.msg) != null ? _b : "",
8582
8671
  data: {
8583
8672
  headerList,
8584
8673
  popoutList
@@ -8592,13 +8681,13 @@ const modifyGetPopoutItemResponse = (result) => {
8592
8681
  return result;
8593
8682
  };
8594
8683
  const getGetTurnOverRewardSettingMultResponse = (raw) => {
8595
- var _a;
8596
- return ((_a = raw.data) == null ? void 0 : _a.map((item) => {
8684
+ var _a, _b;
8685
+ return (_b = (_a = raw.data) == null ? void 0 : _a.map((item) => {
8597
8686
  return {
8598
8687
  name: item.name,
8599
8688
  data: getData(item)
8600
8689
  };
8601
- })) ?? [];
8690
+ })) != null ? _b : [];
8602
8691
  };
8603
8692
  const getData = (category) => {
8604
8693
  const data = [];
@@ -8630,6 +8719,7 @@ const modifyGetTurnOverRewardSettingMultResponse = (result) => {
8630
8719
  return result;
8631
8720
  };
8632
8721
  const getInterestIndexResponse = (raw) => {
8722
+ var _a;
8633
8723
  const detail = {
8634
8724
  minAmount: "0",
8635
8725
  minHours: "0",
@@ -8650,7 +8740,7 @@ const getInterestIndexResponse = (raw) => {
8650
8740
  }
8651
8741
  return {
8652
8742
  status: raw.status == 1,
8653
- message: raw.msg ?? "",
8743
+ message: (_a = raw.msg) != null ? _a : "",
8654
8744
  data: detail
8655
8745
  };
8656
8746
  };
@@ -8661,13 +8751,14 @@ const modifyInterestIndexResponse = (result) => {
8661
8751
  return result;
8662
8752
  };
8663
8753
  const getInterestWalletInfoResponse = (raw) => {
8754
+ var _a, _b, _c, _d;
8664
8755
  return {
8665
8756
  status: raw.status,
8666
- message: raw.msg ?? "",
8757
+ message: (_a = raw.msg) != null ? _a : "",
8667
8758
  data: {
8668
- interestWalletBalance: raw.data.interestWalletBalance ?? "0",
8669
- mainWalletBalance: raw.data.mainWalletBalance ?? "0",
8670
- monthInterestSum: raw.data.monthInterestSum ?? "0",
8759
+ interestWalletBalance: (_b = raw.data.interestWalletBalance) != null ? _b : "0",
8760
+ mainWalletBalance: (_c = raw.data.mainWalletBalance) != null ? _c : "0",
8761
+ monthInterestSum: (_d = raw.data.monthInterestSum) != null ? _d : "0",
8671
8762
  maintainStatus: raw.data.maintainStatus
8672
8763
  }
8673
8764
  };
@@ -8679,9 +8770,10 @@ const modifyInterestWalletInfoResponse = (result) => {
8679
8770
  return result;
8680
8771
  };
8681
8772
  const getInterestTransactionListResponse = (raw) => {
8773
+ var _a;
8682
8774
  return {
8683
8775
  status: raw.status == 1,
8684
- message: raw.msg ?? "",
8776
+ message: (_a = raw.msg) != null ? _a : "",
8685
8777
  data: {
8686
8778
  currentPage: raw.data.current_page,
8687
8779
  lastPage: raw.data.last_page,
@@ -8703,9 +8795,10 @@ const modifyInterestTransactionListResponse = (result) => {
8703
8795
  return result;
8704
8796
  };
8705
8797
  const getInterestTransferInResponse = (raw) => {
8798
+ var _a;
8706
8799
  return {
8707
8800
  status: raw.status == 1,
8708
- message: raw.msg ?? ""
8801
+ message: (_a = raw.msg) != null ? _a : ""
8709
8802
  };
8710
8803
  };
8711
8804
  const modifyInterestTransferInRequest = (requests) => {
@@ -8715,9 +8808,10 @@ const modifyInterestTransferInResponse = (result) => {
8715
8808
  return result;
8716
8809
  };
8717
8810
  const getInterestTransferOutResponse = (raw) => {
8811
+ var _a;
8718
8812
  return {
8719
8813
  status: raw.status == 1,
8720
- message: raw.msg ?? ""
8814
+ message: (_a = raw.msg) != null ? _a : ""
8721
8815
  };
8722
8816
  };
8723
8817
  const modifyInterestTransferOutRequest = (requests) => {
@@ -8727,16 +8821,17 @@ const modifyInterestTransferOutResponse = (result) => {
8727
8821
  return result;
8728
8822
  };
8729
8823
  const getGetWheelDataResponse = (raw) => {
8824
+ var _a, _b;
8730
8825
  if (raw.status == 0) {
8731
8826
  return {
8732
8827
  status: false,
8733
- message: raw.msg ?? "",
8828
+ message: (_a = raw.msg) != null ? _a : "",
8734
8829
  data: null
8735
8830
  };
8736
8831
  }
8737
8832
  return {
8738
8833
  status: raw.status === 1,
8739
- message: raw.msg ?? "",
8834
+ message: (_b = raw.msg) != null ? _b : "",
8740
8835
  data: {
8741
8836
  list: raw.data.list.map((item) => {
8742
8837
  return {
@@ -8761,10 +8856,11 @@ const modifyGetWheelDataResponse = (result) => {
8761
8856
  return result;
8762
8857
  };
8763
8858
  const getGetWheelTicketResponse = (raw) => {
8859
+ var _a, _b;
8764
8860
  return {
8765
8861
  status: raw.status === 1,
8766
- message: raw.msg ?? "",
8767
- data: Number(raw.data ?? "0")
8862
+ message: (_a = raw.msg) != null ? _a : "",
8863
+ data: Number((_b = raw.data) != null ? _b : "0")
8768
8864
  };
8769
8865
  };
8770
8866
  const modifyGetWheelTicketRequest = (requests) => {
@@ -8774,10 +8870,11 @@ const modifyGetWheelTicketResponse = (result) => {
8774
8870
  return result;
8775
8871
  };
8776
8872
  const getSpinWheelResponse = (raw) => {
8873
+ var _a, _b;
8777
8874
  return {
8778
8875
  status: raw.status == 1,
8779
- message: raw.msg ?? "",
8780
- data: raw.data ?? 0
8876
+ message: (_a = raw.msg) != null ? _a : "",
8877
+ data: (_b = raw.data) != null ? _b : 0
8781
8878
  };
8782
8879
  };
8783
8880
  const modifySpinWheelRequest = (requests) => {
@@ -8792,10 +8889,11 @@ var WheelStatus = /* @__PURE__ */ ((WheelStatus2) => {
8792
8889
  return WheelStatus2;
8793
8890
  })(WheelStatus || {});
8794
8891
  const getGetWheelReportResponse = (raw) => {
8892
+ var _a, _b;
8795
8893
  if (raw.status === 0) {
8796
8894
  return {
8797
8895
  status: false,
8798
- message: raw.msg ?? "",
8896
+ message: (_a = raw.msg) != null ? _a : "",
8799
8897
  data: {
8800
8898
  list: [],
8801
8899
  totalPage: 0
@@ -8817,7 +8915,7 @@ const getGetWheelReportResponse = (raw) => {
8817
8915
  }
8818
8916
  return {
8819
8917
  status: raw.status === 1,
8820
- message: raw.msg ?? "",
8918
+ message: (_b = raw.msg) != null ? _b : "",
8821
8919
  data: {
8822
8920
  list,
8823
8921
  totalPage
@@ -8831,33 +8929,34 @@ const modifyGetWheelReportResponse = (result) => {
8831
8929
  return result;
8832
8930
  };
8833
8931
  const getGetWeekCardAllDataResponse = (raw) => {
8834
- var _a, _b, _c, _d;
8932
+ var _a, _b, _c, _d, _e, _f, _g, _h;
8835
8933
  return {
8836
8934
  status: raw.status == 1,
8837
8935
  message: "",
8838
8936
  data: {
8839
8937
  reward: {
8840
- purchasable: ((_a = raw.data) == null ? void 0 : _a.purchasable) ?? false,
8841
- collectable: ((_b = raw.data) == null ? void 0 : _b.collectable) ?? false,
8842
- remainingDay: ((_c = raw.data) == null ? void 0 : _c.remaining) ?? "0"
8938
+ purchasable: (_b = (_a = raw.data) == null ? void 0 : _a.purchasable) != null ? _b : false,
8939
+ collectable: (_d = (_c = raw.data) == null ? void 0 : _c.collectable) != null ? _d : false,
8940
+ remainingDay: (_f = (_e = raw.data) == null ? void 0 : _e.remaining) != null ? _f : "0"
8843
8941
  },
8844
- cardList: ((_d = raw.data) == null ? void 0 : _d.settings.map((item) => {
8942
+ cardList: (_h = (_g = raw.data) == null ? void 0 : _g.settings.map((item) => {
8943
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
8845
8944
  return {
8846
- name: item.settingname ?? "",
8847
- code: item.code ?? "",
8848
- price: item.price ?? "",
8849
- period: item.period ?? "",
8850
- profileId: item.profileid ?? "",
8945
+ name: (_a2 = item.settingname) != null ? _a2 : "",
8946
+ code: (_b2 = item.code) != null ? _b2 : "",
8947
+ price: (_c2 = item.price) != null ? _c2 : "",
8948
+ period: (_d2 = item.period) != null ? _d2 : "",
8949
+ profileId: (_e2 = item.profileid) != null ? _e2 : "",
8851
8950
  dailyReward: {
8852
8951
  amount: item.daily_reward,
8853
- percentage: (Number(item.daily_reward ?? "") / Number(item.price ?? "") * 100).toFixed(0)
8952
+ percentage: (Number((_f2 = item.daily_reward) != null ? _f2 : "") / Number((_g2 = item.price) != null ? _g2 : "") * 100).toFixed(0)
8854
8953
  },
8855
8954
  instantReward: {
8856
8955
  amount: item.instant_reward,
8857
- percentage: (Number(item.instant_reward ?? "") / Number(item.price ?? "") * 100).toFixed(0)
8956
+ percentage: (Number((_h2 = item.instant_reward) != null ? _h2 : "") / Number((_i = item.price) != null ? _i : "") * 100).toFixed(0)
8858
8957
  }
8859
8958
  };
8860
- })) ?? []
8959
+ })) != null ? _h : []
8861
8960
  }
8862
8961
  };
8863
8962
  };
@@ -8868,12 +8967,12 @@ const modifyGetWeekCardAllDataResponse = (result) => {
8868
8967
  return result;
8869
8968
  };
8870
8969
  const getSearchGameByNameResponse = (raw) => {
8871
- var _a, _b, _c, _d;
8970
+ var _a, _b, _c, _d, _e, _f, _g;
8872
8971
  return {
8873
8972
  gameList: {
8874
- currentPage: ((_a = raw.mdGameLists) == null ? void 0 : _a.current_page) ?? 1,
8875
- lastPage: ((_b = raw.mdGameLists) == null ? void 0 : _b.last_page) ?? 1,
8876
- data: ((_d = (_c = raw.mdGameLists) == null ? void 0 : _c.data) == null ? void 0 : _d.map((item) => {
8973
+ currentPage: (_b = (_a = raw.mdGameLists) == null ? void 0 : _a.current_page) != null ? _b : 1,
8974
+ lastPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.last_page) != null ? _d : 1,
8975
+ data: (_g = (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.data) == null ? void 0 : _f.map((item) => {
8877
8976
  return {
8878
8977
  gameId: item.id,
8879
8978
  platformId: item.id_PlatformProduct,
@@ -8891,7 +8990,7 @@ const getSearchGameByNameResponse = (raw) => {
8891
8990
  rate: "0.00",
8892
8991
  jackpotAmount: ""
8893
8992
  };
8894
- })) ?? []
8993
+ })) != null ? _g : []
8895
8994
  }
8896
8995
  };
8897
8996
  };
@@ -8912,32 +9011,31 @@ const modifySearchGameByNameResponse = (result) => {
8912
9011
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
8913
9012
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
8914
9013
  const tempSearchGameList = searchGameList.gameList.data.map((gameInfo) => {
9014
+ var _a;
8915
9015
  const turnover = getPlatformTurnoverRate.find(
8916
9016
  (item) => item.id === gameInfo.platformId
8917
9017
  );
8918
- return {
8919
- ...gameInfo,
8920
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
8921
- };
9018
+ return __spreadProps(__spreadValues({}, gameInfo), {
9019
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
9020
+ });
8922
9021
  });
8923
- result.searchGameByName = {
8924
- ...searchGameList,
9022
+ result.searchGameByName = __spreadProps(__spreadValues({}, searchGameList), {
8925
9023
  data: tempSearchGameList
8926
- };
9024
+ });
8927
9025
  delete result.getPlatformTurnoverRate;
8928
9026
  }
8929
9027
  }
8930
9028
  return result;
8931
9029
  };
8932
9030
  const getCheckGoldEggValidateResponse = (raw) => {
8933
- var _a;
9031
+ var _a, _b, _c, _d, _e;
8934
9032
  return {
8935
9033
  status: raw.status == 1,
8936
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
8937
- desc: ((_a = raw.data) == null ? void 0 : _a.bottom_description_setting) ?? "",
9034
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
9035
+ desc: (_c = (_b = raw.data) == null ? void 0 : _b.bottom_description_setting) != null ? _c : "",
8938
9036
  unfinishGame: raw.checkgame.unfinishgame == 1,
8939
- ledgerIndex: raw.checkgame.ledgerindex ?? 0,
8940
- amount: raw.checkgame.amount ?? ""
9037
+ ledgerIndex: (_d = raw.checkgame.ledgerindex) != null ? _d : 0,
9038
+ amount: (_e = raw.checkgame.amount) != null ? _e : ""
8941
9039
  };
8942
9040
  };
8943
9041
  const modifyCheckGoldEggValidateRequest = (requests) => {
@@ -8956,9 +9054,10 @@ const modifyApplyGoldEggResponse = (result) => {
8956
9054
  return result;
8957
9055
  };
8958
9056
  const getCheckGoldEggTokenResponse = (raw) => {
9057
+ var _a;
8959
9058
  return {
8960
9059
  status: raw.status == 1,
8961
- message: (raw.status == 1 ? raw.message : raw.errormessage) ?? "",
9060
+ message: (_a = raw.status == 1 ? raw.message : raw.errormessage) != null ? _a : "",
8962
9061
  tokenAmount: raw.token_amount
8963
9062
  };
8964
9063
  };
@@ -8969,10 +9068,11 @@ const modifyCheckGoldEggTokenResponse = (result) => {
8969
9068
  return result;
8970
9069
  };
8971
9070
  const getGetGoldEggDataResponse = (raw) => {
9071
+ var _a;
8972
9072
  return {
8973
9073
  status: true,
8974
9074
  message: "",
8975
- data: raw.bottomDescription ?? ""
9075
+ data: (_a = raw.bottomDescription) != null ? _a : ""
8976
9076
  };
8977
9077
  };
8978
9078
  const modifyGetGoldEggDataRequest = (requests) => {
@@ -8988,10 +9088,11 @@ var NewbieMissionStatus = /* @__PURE__ */ ((NewbieMissionStatus2) => {
8988
9088
  return NewbieMissionStatus2;
8989
9089
  })(NewbieMissionStatus || {});
8990
9090
  const getGetNewbieMissionDataResponse = (raw) => {
9091
+ var _a, _b, _c;
8991
9092
  if (raw.status == 0 || raw.data == null) {
8992
9093
  return {
8993
9094
  status: false,
8994
- message: raw.msg ?? "",
9095
+ message: (_a = raw.msg) != null ? _a : "",
8995
9096
  data: null
8996
9097
  };
8997
9098
  }
@@ -9003,7 +9104,7 @@ const getGetNewbieMissionDataResponse = (raw) => {
9003
9104
  }
9004
9105
  return {
9005
9106
  status: raw.status == 1,
9006
- message: raw.msg ?? "",
9107
+ message: (_b = raw.msg) != null ? _b : "",
9007
9108
  data: {
9008
9109
  activebet: {
9009
9110
  enabled: raw.data.activebet.enabled,
@@ -9018,7 +9119,7 @@ const getGetNewbieMissionDataResponse = (raw) => {
9018
9119
  },
9019
9120
  verify: raw.data.verify,
9020
9121
  prize: {
9021
- promoAmount: raw.data.promo_amount ?? "",
9122
+ promoAmount: (_c = raw.data.promo_amount) != null ? _c : "",
9022
9123
  status
9023
9124
  }
9024
9125
  }
@@ -9031,10 +9132,11 @@ const modifyGetNewbieMissionDataResponse = (result) => {
9031
9132
  return result;
9032
9133
  };
9033
9134
  const getGetNewbieMissionClaimResponse = (raw) => {
9135
+ var _a, _b, _c;
9034
9136
  if (raw.status == 0 || raw.data == null) {
9035
9137
  return {
9036
9138
  status: false,
9037
- message: raw.msg ?? "",
9139
+ message: (_a = raw.msg) != null ? _a : "",
9038
9140
  data: {
9039
9141
  promoAmount: "0"
9040
9142
  }
@@ -9042,9 +9144,9 @@ const getGetNewbieMissionClaimResponse = (raw) => {
9042
9144
  }
9043
9145
  return {
9044
9146
  status: raw.status == 1,
9045
- message: raw.msg ?? "",
9147
+ message: (_b = raw.msg) != null ? _b : "",
9046
9148
  data: {
9047
- promoAmount: raw.data.promo_amount ?? "0"
9149
+ promoAmount: (_c = raw.data.promo_amount) != null ? _c : "0"
9048
9150
  }
9049
9151
  };
9050
9152
  };
@@ -9055,29 +9157,31 @@ const modifyGetNewbieMissionClaimResponse = (result) => {
9055
9157
  return result;
9056
9158
  };
9057
9159
  const getGetFeedbackResponse = (raw) => {
9160
+ var _a, _b, _c;
9058
9161
  if (raw.status == 0) {
9059
9162
  return {
9060
9163
  status: false,
9061
- message: raw.errormessage ?? "",
9164
+ message: (_a = raw.errormessage) != null ? _a : "",
9062
9165
  data: null
9063
9166
  };
9064
9167
  }
9065
9168
  return {
9066
9169
  status: raw.status == 1,
9067
- message: raw.errormessage ?? "",
9068
- data: raw.data.map((item) => {
9170
+ message: (_b = raw.errormessage) != null ? _b : "",
9171
+ data: (_c = raw.data.map((item) => {
9172
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i;
9069
9173
  return {
9070
- feedbackId: item.feedbackid ?? "",
9071
- accountId: item.accountid ?? "",
9072
- title: item.subject ?? "",
9073
- content: item.content ?? "",
9074
- statusFeedback: item.status ?? "",
9075
- createdOn: item.createdon ?? "",
9076
- replyContent: item.replycontent ?? "",
9077
- replyBy: item.replyby ?? "",
9078
- replyOn: item.replyon ?? ""
9174
+ feedbackId: (_a2 = item.feedbackid) != null ? _a2 : "",
9175
+ accountId: (_b2 = item.accountid) != null ? _b2 : "",
9176
+ title: (_c2 = item.subject) != null ? _c2 : "",
9177
+ content: (_d = item.content) != null ? _d : "",
9178
+ statusFeedback: (_e = item.status) != null ? _e : "",
9179
+ createdOn: (_f = item.createdon) != null ? _f : "",
9180
+ replyContent: (_g = item.replycontent) != null ? _g : "",
9181
+ replyBy: (_h = item.replyby) != null ? _h : "",
9182
+ replyOn: (_i = item.replyon) != null ? _i : ""
9079
9183
  };
9080
- }) ?? []
9184
+ })) != null ? _c : []
9081
9185
  };
9082
9186
  };
9083
9187
  const modifyGetFeedbackRequest = (requests) => {
@@ -9087,9 +9191,10 @@ const modifyGetFeedbackResponse = (result) => {
9087
9191
  return result;
9088
9192
  };
9089
9193
  const getSubmitFeedbackResponse = (raw) => {
9194
+ var _a;
9090
9195
  return {
9091
9196
  status: raw.status == 1,
9092
- message: raw.message ?? ""
9197
+ message: (_a = raw.message) != null ? _a : ""
9093
9198
  };
9094
9199
  };
9095
9200
  const modifySubmitFeedbackRequest = (requests) => {
@@ -9099,11 +9204,11 @@ const modifySubmitFeedbackResponse = (result) => {
9099
9204
  return result;
9100
9205
  };
9101
9206
  const getCasinoGameListResponse = (raw) => {
9102
- var _a, _b, _c, _d;
9207
+ var _a, _b, _c, _d, _e, _f, _g;
9103
9208
  return {
9104
- currentPage: ((_a = raw.mdGameLists) == null ? void 0 : _a.current_page) ?? 1,
9105
- lastPage: ((_b = raw.mdGameLists) == null ? void 0 : _b.last_page) ?? 1,
9106
- data: ((_d = (_c = raw.mdGameLists) == null ? void 0 : _c.data) == null ? void 0 : _d.map((item) => {
9209
+ currentPage: (_b = (_a = raw.mdGameLists) == null ? void 0 : _a.current_page) != null ? _b : 1,
9210
+ lastPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.last_page) != null ? _d : 1,
9211
+ data: (_g = (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.data) == null ? void 0 : _f.map((item) => {
9107
9212
  return {
9108
9213
  gameId: item.id,
9109
9214
  platformId: item.id_PlatformProduct,
@@ -9121,7 +9226,7 @@ const getCasinoGameListResponse = (raw) => {
9121
9226
  rate: "0.00",
9122
9227
  jackpotAmount: ""
9123
9228
  };
9124
- })) ?? []
9229
+ })) != null ? _g : []
9125
9230
  };
9126
9231
  };
9127
9232
  const modifyCasinoGameListRequest = (requests) => {
@@ -9141,28 +9246,28 @@ const modifyCasinoGameListResponse = (result) => {
9141
9246
  if (Api.getPlatformTurnoverRate in result && (result == null ? void 0 : result.getPlatformTurnoverRate)) {
9142
9247
  const getPlatformTurnoverRate = result.getPlatformTurnoverRate;
9143
9248
  const tempCasinoGameList = casinoGameList.data.map((gameInfo) => {
9249
+ var _a;
9144
9250
  const turnover = getPlatformTurnoverRate.find(
9145
9251
  (item) => item.id === gameInfo.platformId
9146
9252
  );
9147
- return {
9148
- ...gameInfo,
9149
- rate: (turnover == null ? void 0 : turnover.percentage) ?? "0.00"
9150
- };
9253
+ return __spreadProps(__spreadValues({}, gameInfo), {
9254
+ rate: (_a = turnover == null ? void 0 : turnover.percentage) != null ? _a : "0.00"
9255
+ });
9151
9256
  });
9152
- result.casinoGameList = {
9153
- ...casinoGameList,
9257
+ result.casinoGameList = __spreadProps(__spreadValues({}, casinoGameList), {
9154
9258
  data: tempCasinoGameList
9155
- };
9259
+ });
9156
9260
  delete result.getPlatformTurnoverRate;
9157
9261
  }
9158
9262
  }
9159
9263
  return result;
9160
9264
  };
9161
9265
  const getIsMobileRegisteredResponse = (raw) => {
9266
+ var _a;
9162
9267
  console.log(raw);
9163
9268
  return {
9164
9269
  status: raw.status,
9165
- message: raw.msg ?? ""
9270
+ message: (_a = raw.msg) != null ? _a : ""
9166
9271
  };
9167
9272
  };
9168
9273
  const modifyIsMobileRegisteredRequest = (requests) => {
@@ -9172,13 +9277,13 @@ const modifyIsMobileRegisteredResponse = (result) => {
9172
9277
  return result;
9173
9278
  };
9174
9279
  const getGetActivePlatformResponse = (raw) => {
9175
- var _a;
9176
- return ((_a = raw.mdPlatformMaster) == null ? void 0 : _a.map((item) => {
9280
+ var _a, _b;
9281
+ return (_b = (_a = raw.mdPlatformMaster) == null ? void 0 : _a.map((item) => {
9177
9282
  return {
9178
9283
  platformId: item.id,
9179
9284
  logoUrl: `/image/platform_logo/platform_logo_${item.code}.png?v=1`
9180
9285
  };
9181
- })) ?? [];
9286
+ })) != null ? _b : [];
9182
9287
  };
9183
9288
  const modifyGetActivePlatformRequest = (requests) => {
9184
9289
  return requests;
@@ -9205,24 +9310,24 @@ const modifyUpdateRegisterResponse = (result) => {
9205
9310
  return result;
9206
9311
  };
9207
9312
  const getAgMemberTransactionResponse = (raw) => {
9208
- var _a;
9313
+ var _a, _b, _c, _d, _e, _f;
9209
9314
  if (raw.status == 0) {
9210
9315
  return {
9211
9316
  status: raw.status == 0,
9212
- message: raw.message ?? "",
9317
+ message: (_a = raw.message) != null ? _a : "",
9213
9318
  data: null
9214
9319
  };
9215
9320
  }
9216
9321
  if (!raw.data.status) {
9217
9322
  return {
9218
9323
  status: raw.data.status,
9219
- message: raw.data.msg ?? "",
9324
+ message: (_b = raw.data.msg) != null ? _b : "",
9220
9325
  data: null
9221
9326
  };
9222
9327
  }
9223
9328
  return {
9224
9329
  status: raw.status == 1 && raw.data.status,
9225
- message: raw.message ?? raw.data.msg ?? "",
9330
+ message: (_d = (_c = raw.message) != null ? _c : raw.data.msg) != null ? _d : "",
9226
9331
  data: {
9227
9332
  paging: {
9228
9333
  currentPage: raw.data.paging.current_page,
@@ -9230,7 +9335,7 @@ const getAgMemberTransactionResponse = (raw) => {
9230
9335
  totalPage: raw.data.paging.total_page,
9231
9336
  totalRecord: raw.data.paging.total_record
9232
9337
  },
9233
- transaction: ((_a = raw.data.transaction) == null ? void 0 : _a.map((item) => {
9338
+ transaction: (_f = (_e = raw.data.transaction) == null ? void 0 : _e.map((item) => {
9234
9339
  return {
9235
9340
  accountCode: item.accountcode,
9236
9341
  amount: item.amount,
@@ -9245,7 +9350,7 @@ const getAgMemberTransactionResponse = (raw) => {
9245
9350
  transactionLabel: item.transactionlabel,
9246
9351
  transactionIndex: item.transactionindex
9247
9352
  };
9248
- })) ?? []
9353
+ })) != null ? _f : []
9249
9354
  }
9250
9355
  };
9251
9356
  };
@@ -10192,110 +10297,105 @@ const registerAllApiModels = () => {
10192
10297
  }
10193
10298
  };
10194
10299
  registerAllApiModels();
10195
- const axiosInstance = axios.create({
10196
- baseURL: "",
10197
- timeout: 29e3,
10198
- // Request timeout
10199
- headers: {
10200
- "Content-Type": "application/json"
10201
- }
10202
- // params: { apiKey: 'your-api-key' }, // Default query parameters that will be sent with each request.
10203
- // auth: { username: 'user', password: 'pass' }, // Basic authentication credentials.
10204
- // responseEncoding: 'utf8', // Indicates the encoding to use for the response.
10205
- // responseType: 'json', // Specifies the type of data the server will respond with.
10206
- // xsrfCookieName: 'XSRF-TOKEN', // The name of the cookie to use as a value for the xsrf token.
10207
- // xsrfHeaderName: 'X-XSRF-TOKEN', // The name of the HTTP header that carries the xsrf token value.
10208
- // maxContentLength: 2000, // The maximum size of the HTTP response content in bytes allowed.
10209
- // maxBodyLength: 2000, // The maximum size of the request body in bytes allowed.
10210
- // // Allows changes to the request data before it is sent to the server.
10211
- // transformRequest: [
10212
- // (data, headers) => {
10213
- // console.log(headers)
10214
- // console.log(data)
10215
- // // Modify data and headers here
10216
- // return data
10217
- // },
10218
- // ],
10219
- // // Allows changes to the response data before it is passed to then or catch.
10220
- // transformResponse: [
10221
- // (data) => {
10222
- // // Modify data here
10223
- // return data
10224
- // },
10225
- // ],
10226
- // // Custom function to validate the response status code.
10227
- // validateStatus: (status) => {
10228
- // return status >= 200 && status < 300 // default
10229
- // },
10230
- // withCredentials: true, // Indicates whether or not cross-site Access-Control requests should be made using credentials.
10231
- // // Defines the proxy server settings.
10232
- // proxy: {
10233
- // host: '127.0.0.1',
10234
- // port: 9000,
10235
- // auth: {
10236
- // username: 'proxyuser',
10237
- // password: 'proxypass',
10238
- // },
10239
- // },
10300
+ const get = (endpoint) => __async(void 0, null, function* () {
10301
+ const response = yield fetchWithTimeout(`${endpoint}`, {
10302
+ method: "GET",
10303
+ headers: authHeaders()
10304
+ });
10305
+ return handleGetResponse(response);
10240
10306
  });
10241
- axiosInstance.interceptors.request.use(
10242
- (config2) => {
10243
- const token = localStorage.getItem("token");
10244
- if (token) {
10245
- config2.headers.Authorization = `Bearer ${token}`;
10246
- }
10247
- return config2;
10248
- },
10249
- (error) => {
10250
- console.error("Error request:", error.response);
10251
- return Promise.reject(error);
10252
- }
10253
- );
10254
- axiosInstance.interceptors.response.use(
10255
- (response) => {
10256
- return response;
10257
- },
10258
- (error) => {
10259
- const errorResponse = {
10260
- status: null,
10261
- message: "An error occurred"
10262
- };
10263
- if (error.response) {
10264
- errorResponse.status = error.response.status;
10265
- errorResponse.message = error.response.data.message || error.response.statusText;
10266
- console.error("Error response:", JSON.stringify(errorResponse));
10267
- if (error.response.status === 401) {
10268
- console.error("Unauthorized access - redirecting to login.");
10269
- } else if (error.response.status === 404) {
10270
- console.error("Resource not found.");
10271
- } else if (error.response.status >= 500) {
10272
- console.error("Server error. Please try again later.");
10273
- }
10274
- } else if (error.request) {
10275
- console.error("No response received:", error.request);
10276
- } else {
10277
- console.error("Error setting up request:", error.message);
10278
- }
10279
- return Promise.reject(errorResponse);
10280
- }
10281
- );
10282
- const post = async (requests) => {
10307
+ const post = (requests, requestPath = `/graph/jwt`) => __async(void 0, null, function* () {
10283
10308
  const modifiedRequests = processRequestModifications(requests);
10284
10309
  const requestData = modifiedRequests.map((item) => ({
10285
10310
  name: item.name,
10286
10311
  query: btoa(item.query)
10287
10312
  }));
10288
10313
  const payload = { requests: requestData };
10289
- const response = await axiosInstance.post(
10290
- `/graph/jwt`,
10291
- stringToBytes(JSON.stringify(payload))
10292
- );
10314
+ const response = yield fetchWithTimeout(requestPath, {
10315
+ method: "POST",
10316
+ headers: authHeaders(),
10317
+ body: JSON.stringify(payload)
10318
+ });
10319
+ return handlePostResponse(response);
10320
+ });
10321
+ const customPost = (requestPath, request) => __async(void 0, null, function* () {
10322
+ const response = yield fetchWithTimeout(requestPath, {
10323
+ method: "POST",
10324
+ headers: authHeaders(),
10325
+ body: JSON.stringify(request)
10326
+ });
10327
+ return handleCustomPostResponse(response);
10328
+ });
10329
+ const fetchWithTimeout = (url, options, timeout = 29e3) => __async(void 0, null, function* () {
10330
+ const controller = new AbortController();
10331
+ const id = setTimeout(() => controller.abort(), timeout);
10332
+ try {
10333
+ const response = yield fetch(url, __spreadProps(__spreadValues({}, options), {
10334
+ signal: controller.signal
10335
+ }));
10336
+ return response;
10337
+ } finally {
10338
+ clearTimeout(id);
10339
+ }
10340
+ });
10341
+ const authHeaders = () => {
10342
+ const token = localStorage.getItem("token");
10343
+ return __spreadValues({
10344
+ "Content-Type": "application/json"
10345
+ }, token ? { Authorization: `Bearer ${token}` } : {});
10346
+ };
10347
+ const safeJson = (response) => __async(void 0, null, function* () {
10348
+ try {
10349
+ if (response.status === 204 || response.headers.get("content-length") === "0") {
10350
+ return null;
10351
+ }
10352
+ return yield response.json();
10353
+ } catch (e) {
10354
+ return null;
10355
+ }
10356
+ });
10357
+ const getErrorMessage = (response) => __async(void 0, null, function* () {
10358
+ const errorBody = yield safeJson(response);
10359
+ const errorResponse = {
10360
+ status: response.status,
10361
+ message: (errorBody == null ? void 0 : errorBody.message) || response.statusText || "An error occurred"
10362
+ };
10363
+ console.error("Error response:", JSON.stringify(errorResponse));
10364
+ if (response.status === 401) {
10365
+ console.error("Unauthorized access - redirecting to login.");
10366
+ } else if (response.status === 404) {
10367
+ console.error("Resource not found.");
10368
+ } else if (response.status >= 500) {
10369
+ console.error("Server error. Please try again later.");
10370
+ }
10371
+ return errorResponse;
10372
+ });
10373
+ const handleGetResponse = (response) => __async(void 0, null, function* () {
10374
+ if (!response.ok) {
10375
+ const errorResponse = yield getErrorMessage(response);
10376
+ return Promise.reject(errorResponse);
10377
+ }
10378
+ const data = yield safeJson(response);
10379
+ return {
10380
+ data,
10381
+ status: response.status,
10382
+ msg: response.statusText,
10383
+ headers: response.headers,
10384
+ ok: response.ok
10385
+ };
10386
+ });
10387
+ const handlePostResponse = (response) => __async(void 0, null, function* () {
10293
10388
  const result = {
10294
10389
  status: 200,
10295
10390
  message: "",
10296
10391
  result: {}
10297
10392
  };
10298
- for (const res of response.data.responses) {
10393
+ if (!response.ok) {
10394
+ const errorResponse = yield getErrorMessage(response);
10395
+ return Promise.reject(errorResponse);
10396
+ }
10397
+ const responseJSON = yield safeJson(response);
10398
+ for (const res of responseJSON.responses) {
10299
10399
  if (res.error != null && res.error.code != 200) {
10300
10400
  result.status = res.error.code;
10301
10401
  result.message = res.error.message;
@@ -10314,9 +10414,26 @@ const post = async (requests) => {
10314
10414
  }
10315
10415
  result.result = processResponseModifications(result.result);
10316
10416
  return result;
10317
- };
10417
+ });
10418
+ const handleCustomPostResponse = (response) => __async(void 0, null, function* () {
10419
+ if (!response) return;
10420
+ if (!response.ok) {
10421
+ const errorResponse = yield getErrorMessage(response);
10422
+ return Promise.reject(errorResponse);
10423
+ }
10424
+ const data = yield safeJson(response);
10425
+ const responses = Array.isArray(data == null ? void 0 : data.responses) ? data.responses.filter((res) => res == null ? void 0 : res.attributes) : [];
10426
+ if (responses.length === 0) {
10427
+ return true;
10428
+ }
10429
+ const firstResponse = responses[0];
10430
+ const decodedData = base64Decode(firstResponse.attributes);
10431
+ return JSON.parse(decodedData);
10432
+ });
10318
10433
  const api = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10319
10434
  __proto__: null,
10435
+ customPost,
10436
+ get,
10320
10437
  post
10321
10438
  }, Symbol.toStringTag, { value: "Module" }));
10322
10439
  var ImageCategory = /* @__PURE__ */ ((ImageCategory2) => {
@@ -10338,18 +10455,18 @@ const DefaultAutoRegisterData = {
10338
10455
  }
10339
10456
  }
10340
10457
  };
10341
- const autoRegisterApi = async () => {
10342
- let result = {
10458
+ const autoRegisterApi = () => __async(void 0, null, function* () {
10459
+ var _a;
10460
+ let result = __spreadValues({
10343
10461
  status: 200,
10344
- message: "",
10345
- ...DefaultAutoRegisterData
10346
- };
10462
+ message: ""
10463
+ }, DefaultAutoRegisterData);
10347
10464
  try {
10348
- const request = await axiosInstance.get("/graph/autoregister");
10465
+ const request = yield get("/graph/autoregister");
10349
10466
  const output = request.data;
10350
10467
  result.data = {
10351
10468
  status: output.status == 1,
10352
- message: output.message ?? "",
10469
+ message: (_a = output.message) != null ? _a : "",
10353
10470
  data: {
10354
10471
  account: output.data.accountcode,
10355
10472
  password: output.data.password,
@@ -10358,14 +10475,13 @@ const autoRegisterApi = async () => {
10358
10475
  };
10359
10476
  } catch (error) {
10360
10477
  const extendedError = error;
10361
- result = {
10478
+ result = __spreadValues({
10362
10479
  status: extendedError.status || 500,
10363
- message: error.message,
10364
- ...DefaultAutoRegisterData
10365
- };
10480
+ message: error.message
10481
+ }, DefaultAutoRegisterData);
10366
10482
  }
10367
10483
  return result;
10368
- };
10484
+ });
10369
10485
  const DefaultGetMaintenanceModeData = {
10370
10486
  data: {
10371
10487
  status: false,
@@ -10377,35 +10493,33 @@ const DefaultGetMaintenanceModeData = {
10377
10493
  }
10378
10494
  }
10379
10495
  };
10380
- const getMaintenanceModeApi = async () => {
10381
- var _a, _b, _c;
10382
- let result = {
10496
+ const getMaintenanceModeApi = () => __async(void 0, null, function* () {
10497
+ var _a, _b, _c, _d, _e, _f;
10498
+ let result = __spreadValues({
10383
10499
  status: 200,
10384
- message: "",
10385
- ...DefaultGetMaintenanceModeData
10386
- };
10500
+ message: ""
10501
+ }, DefaultGetMaintenanceModeData);
10387
10502
  try {
10388
- const request = await axiosInstance.get("/graph/getMaintenanceMode");
10503
+ const request = yield get("/graph/getMaintenanceMode");
10389
10504
  const output = request.data;
10390
10505
  result.data = {
10391
10506
  status: output.status == 1,
10392
- message: output.msg ?? "",
10507
+ message: (_a = output.msg) != null ? _a : "",
10393
10508
  data: {
10394
- isMaintenance: ((_a = output.data) == null ? void 0 : _a.maintenanceMode) == "1",
10395
- startTime: ((_b = output.data) == null ? void 0 : _b.startTime) ?? "",
10396
- endTime: ((_c = output.data) == null ? void 0 : _c.endTime) ?? ""
10509
+ isMaintenance: ((_b = output.data) == null ? void 0 : _b.maintenanceMode) == "1",
10510
+ startTime: (_d = (_c = output.data) == null ? void 0 : _c.startTime) != null ? _d : "",
10511
+ endTime: (_f = (_e = output.data) == null ? void 0 : _e.endTime) != null ? _f : ""
10397
10512
  }
10398
10513
  };
10399
10514
  } catch (error) {
10400
10515
  const extendedError = error;
10401
- result = {
10516
+ result = __spreadValues({
10402
10517
  status: extendedError.status || 500,
10403
- message: error.message,
10404
- ...DefaultGetMaintenanceModeData
10405
- };
10518
+ message: error.message
10519
+ }, DefaultGetMaintenanceModeData);
10406
10520
  }
10407
10521
  return result;
10408
- };
10522
+ });
10409
10523
  const DefaultjackpotData = {
10410
10524
  data: {
10411
10525
  startTimestamp: 0,
@@ -10414,14 +10528,13 @@ const DefaultjackpotData = {
10414
10528
  updateInterval: 0
10415
10529
  }
10416
10530
  };
10417
- const jackpotDataApi = async () => {
10418
- let result = {
10531
+ const jackpotDataApi = () => __async(void 0, null, function* () {
10532
+ let result = __spreadValues({
10419
10533
  status: 200,
10420
- message: "",
10421
- ...DefaultjackpotData
10422
- };
10534
+ message: ""
10535
+ }, DefaultjackpotData);
10423
10536
  try {
10424
- const request = await axiosInstance.get("/api/jackpotData");
10537
+ const request = yield get("/api/jackpotData");
10425
10538
  const output = request.data;
10426
10539
  result.data = {
10427
10540
  startTimestamp: output.startTimestamp,
@@ -10431,15 +10544,15 @@ const jackpotDataApi = async () => {
10431
10544
  };
10432
10545
  } catch (error) {
10433
10546
  const extendedError = error;
10434
- result = {
10547
+ result = __spreadValues({
10435
10548
  status: extendedError.status || 500,
10436
- message: error.message,
10437
- ...DefaultjackpotData
10438
- };
10549
+ message: error.message
10550
+ }, DefaultjackpotData);
10439
10551
  }
10440
10552
  return result;
10441
- };
10442
- const loadMatchApi = async (gameId, stage, sportId, tagId, matchId) => {
10553
+ });
10554
+ const loadMatchApi = (gameId, stage, sportId, tagId, matchId) => __async(void 0, null, function* () {
10555
+ var _a, _b;
10443
10556
  let result = {
10444
10557
  status: 200,
10445
10558
  message: "",
@@ -10449,7 +10562,7 @@ const loadMatchApi = async (gameId, stage, sportId, tagId, matchId) => {
10449
10562
  }
10450
10563
  };
10451
10564
  try {
10452
- const request = await axiosInstance.post(`/loadgame/${gameId}`, {
10565
+ const request = yield customPost(`/loadgame/${gameId}`, {
10453
10566
  wanturl: 1,
10454
10567
  extra: {
10455
10568
  Stage: stage,
@@ -10463,8 +10576,8 @@ const loadMatchApi = async (gameId, stage, sportId, tagId, matchId) => {
10463
10576
  status: 200,
10464
10577
  message: "",
10465
10578
  data: {
10466
- message: output.msg ?? "",
10467
- urlLink: output.data ?? ""
10579
+ message: (_a = output.msg) != null ? _a : "",
10580
+ urlLink: (_b = output.data) != null ? _b : ""
10468
10581
  }
10469
10582
  };
10470
10583
  } catch (error) {
@@ -10479,8 +10592,8 @@ const loadMatchApi = async (gameId, stage, sportId, tagId, matchId) => {
10479
10592
  };
10480
10593
  }
10481
10594
  return result;
10482
- };
10483
- const loginApi = async (username, password, type = "") => {
10595
+ });
10596
+ const loginApi = (username, password, type = "") => __async(void 0, null, function* () {
10484
10597
  let result = {
10485
10598
  status: 200,
10486
10599
  message: ""
@@ -10493,7 +10606,7 @@ const loginApi = async (username, password, type = "") => {
10493
10606
  if (type !== "") {
10494
10607
  payload.type = type;
10495
10608
  }
10496
- await axiosInstance.post("/graph/auth/sesh", payload);
10609
+ yield customPost("/graph/auth/sesh", payload);
10497
10610
  result = {
10498
10611
  status: 200,
10499
10612
  message: ""
@@ -10506,14 +10619,14 @@ const loginApi = async (username, password, type = "") => {
10506
10619
  };
10507
10620
  }
10508
10621
  return result;
10509
- };
10510
- const logoutApi = async () => {
10622
+ });
10623
+ const logoutApi = () => __async(void 0, null, function* () {
10511
10624
  let result = {
10512
10625
  status: 200,
10513
10626
  message: ""
10514
10627
  };
10515
10628
  try {
10516
- await axiosInstance.post("/graph/auth/sesh/logout");
10629
+ yield customPost("/graph/auth/sesh/logout");
10517
10630
  } catch (error) {
10518
10631
  const extendedError = error;
10519
10632
  result = {
@@ -10522,21 +10635,21 @@ const logoutApi = async () => {
10522
10635
  };
10523
10636
  }
10524
10637
  return result;
10525
- };
10526
- const rename = async (fullname) => {
10638
+ });
10639
+ const rename = (fullname) => __async(void 0, null, function* () {
10527
10640
  let result = {
10528
10641
  status: 200,
10529
10642
  message: ""
10530
10643
  };
10531
10644
  try {
10532
- const request = await axiosInstance.post("/graph/rename", {
10645
+ const request = yield customPost("/graph/rename", {
10533
10646
  fullname
10534
10647
  });
10535
10648
  if (false) ;
10536
10649
  const response = request.data;
10537
10650
  result = {
10538
10651
  status: response.status == 1 ? 200 : 509,
10539
- message: response.msg ? request.data.msg : ""
10652
+ message: response.msg ? response.msg : ""
10540
10653
  };
10541
10654
  } catch (error) {
10542
10655
  const extendedError = error;
@@ -10546,48 +10659,45 @@ const rename = async (fullname) => {
10546
10659
  };
10547
10660
  }
10548
10661
  return result;
10549
- };
10662
+ });
10550
10663
  const DefaultSetLocaleData = {
10551
10664
  data: {
10552
10665
  status: false,
10553
10666
  message: ""
10554
10667
  }
10555
10668
  };
10556
- const setLocaleApi = async (localeCode, udid) => {
10557
- let result = {
10669
+ const setLocaleApi = (localeCode, udid) => __async(void 0, null, function* () {
10670
+ var _a;
10671
+ let result = __spreadValues({
10558
10672
  status: 200,
10559
- message: "",
10560
- ...DefaultSetLocaleData
10561
- };
10673
+ message: ""
10674
+ }, DefaultSetLocaleData);
10562
10675
  try {
10563
- const request = await axiosInstance.post("/graph/setlocale", {
10676
+ const request = yield customPost("/graph/setlocale", {
10564
10677
  language: localeCode,
10565
- udid: udid ?? ""
10678
+ udid: udid != null ? udid : ""
10566
10679
  });
10567
- const output = JSON.parse(
10568
- atob(request.data.responses[0].attributes)
10569
- );
10680
+ const output = request;
10570
10681
  result.data = {
10571
10682
  status: output.status == 1,
10572
- message: output.message ?? ""
10683
+ message: (_a = output.message) != null ? _a : ""
10573
10684
  };
10574
10685
  } catch (error) {
10575
10686
  const extendedError = error;
10576
- result = {
10687
+ result = __spreadValues({
10577
10688
  status: extendedError.status || 500,
10578
- message: error.message,
10579
- ...DefaultSetLocaleData
10580
- };
10689
+ message: error.message
10690
+ }, DefaultSetLocaleData);
10581
10691
  }
10582
10692
  return result;
10583
- };
10584
- const telegramLoginApi = async (data) => {
10693
+ });
10694
+ const telegramLoginApi = (data) => __async(void 0, null, function* () {
10585
10695
  let result = {
10586
10696
  status: 200,
10587
10697
  message: ""
10588
10698
  };
10589
10699
  try {
10590
- await axiosInstance.post("/loginVia/telegram", data);
10700
+ yield customPost("/loginVia/telegram", data);
10591
10701
  result = {
10592
10702
  status: 200,
10593
10703
  message: ""
@@ -10600,41 +10710,40 @@ const telegramLoginApi = async (data) => {
10600
10710
  };
10601
10711
  }
10602
10712
  return result;
10603
- };
10713
+ });
10604
10714
  const DefaultSocialLoginData = {
10605
10715
  data: {
10606
10716
  status: false,
10607
10717
  message: ""
10608
10718
  }
10609
10719
  };
10610
- const socialLoginApi = async (loginToken, loginEmail, loginMethod) => {
10611
- let result = {
10720
+ const socialLoginApi = (loginToken, loginEmail, loginMethod) => __async(void 0, null, function* () {
10721
+ var _a;
10722
+ let result = __spreadValues({
10612
10723
  status: 200,
10613
- message: "",
10614
- ...DefaultSocialLoginData
10615
- };
10724
+ message: ""
10725
+ }, DefaultSocialLoginData);
10616
10726
  try {
10617
10727
  const payload = {
10618
10728
  token: loginToken,
10619
10729
  email: loginEmail,
10620
10730
  social_type: loginMethod
10621
10731
  };
10622
- const request = await axiosInstance.post("/graph/socialLogin", payload);
10732
+ const request = yield customPost("/graph/socialLogin", payload);
10623
10733
  const output = request.data;
10624
10734
  result.data = {
10625
10735
  status: output.status == 1,
10626
- message: output.errormessage ?? ""
10736
+ message: (_a = output.errormessage) != null ? _a : ""
10627
10737
  };
10628
10738
  } catch (error) {
10629
10739
  const extendedError = error;
10630
- result = {
10740
+ result = __spreadValues({
10631
10741
  status: extendedError.status || 500,
10632
- message: error.message,
10633
- ...DefaultSocialLoginData
10634
- };
10742
+ message: error.message
10743
+ }, DefaultSocialLoginData);
10635
10744
  }
10636
10745
  return result;
10637
- };
10746
+ });
10638
10747
  export {
10639
10748
  AccumulateDepositStatus,
10640
10749
  Api,