@opfr/raids 0.16.10 → 1.2.0

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.
Files changed (48) hide show
  1. package/dist/events/callbacks.d.ts +5 -0
  2. package/dist/events/callbacks.d.ts.map +1 -0
  3. package/dist/events/callbacks.js +38 -0
  4. package/dist/events/callbacks.js.map +1 -0
  5. package/dist/events/event.d.ts +7 -0
  6. package/dist/events/event.d.ts.map +1 -0
  7. package/dist/events/event.js +14 -0
  8. package/dist/events/event.js.map +1 -0
  9. package/dist/events/index.d.ts +2 -0
  10. package/dist/events/index.d.ts.map +1 -0
  11. package/dist/events/index.js +9 -0
  12. package/dist/events/index.js.map +1 -0
  13. package/dist/index.d.ts +1 -2
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.es.js +903 -852
  16. package/dist/index.js +1 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.umd.js +8 -8
  19. package/dist/raids/mysteriousIsland.d.ts +2 -3
  20. package/dist/raids/mysteriousIsland.d.ts.map +1 -1
  21. package/dist/raids/mysteriousIsland.js +221 -125
  22. package/dist/raids/mysteriousIsland.js.map +1 -1
  23. package/dist/raids/pirateCave.d.ts +2 -3
  24. package/dist/raids/pirateCave.d.ts.map +1 -1
  25. package/dist/raids/pirateCave.js +162 -96
  26. package/dist/raids/pirateCave.js.map +1 -1
  27. package/dist/raids/resources.d.ts +2 -3
  28. package/dist/raids/resources.d.ts.map +1 -1
  29. package/dist/raids/resources.js +159 -86
  30. package/dist/raids/resources.js.map +1 -1
  31. package/dist/raids/training.d.ts +2 -3
  32. package/dist/raids/training.d.ts.map +1 -1
  33. package/dist/raids/training.js +96 -49
  34. package/dist/raids/training.js.map +1 -1
  35. package/dist/utils.d.ts +4 -5
  36. package/dist/utils.d.ts.map +1 -1
  37. package/dist/utils.js +39 -40
  38. package/dist/utils.js.map +1 -1
  39. package/locales/fr.json +0 -711
  40. package/package.json +17 -14
  41. package/dist/characteristics.d.ts +0 -6
  42. package/dist/characteristics.d.ts.map +0 -1
  43. package/dist/characteristics.js +0 -27
  44. package/dist/characteristics.js.map +0 -1
  45. package/dist/types.d.ts +0 -81
  46. package/dist/types.d.ts.map +0 -1
  47. package/dist/types.js +0 -2
  48. package/dist/types.js.map +0 -1
package/dist/index.es.js CHANGED
@@ -1,175 +1,183 @@
1
- import { CHARACTERISTIC_POINT_COSTS as x, CHARACTERISTIC_DEFAULT_POINT_COST as h, CHARACTERISTIC_POINT_PER_LEVEL as y } from "@opfr/utils-type";
2
- import { findItem as _ } from "@opfr/items";
3
- import { tns as r } from "@opfr/translate";
4
- import { emojis as u } from "@opfr/emojis";
5
- import { formatNumber as n, precise as w } from "@opfr/utils-lang";
6
- const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1
+ import { t as r } from "i18next";
2
+ import { entityService as p, userMetaService as m, userRaidService as u, userInventoryService as k, registerRaidMiddlewareEvents as q } from "@opfr/services";
3
+ import { isString as R, recordToArray as y, isNumber as c, formatNumber as x, precise as j, unique as $, filterNullAndUndefined as E } from "@opfr/utils-lang";
4
+ import { emojis as b } from "@opfr/emojis";
5
+ import { getCurrentLevel as U } from "@opfr/definitions";
6
+ const w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7
7
  __proto__: null,
8
8
  get mysteriousIslandRaid() {
9
- return q;
9
+ return W;
10
10
  },
11
11
  get pirateCaveRaid() {
12
- return j;
12
+ return M;
13
13
  },
14
14
  get resourcesRaid() {
15
- return R;
15
+ return P;
16
16
  },
17
17
  get trainingRaid() {
18
- return C;
18
+ return T;
19
19
  }
20
- }, Symbol.toStringTag, { value: "Module" })), b = (e) => {
21
- for (const [s, t] of x)
22
- if (e >= s)
23
- return t;
24
- return h;
25
- }, E = (e, s) => {
26
- let t = 0;
27
- for (; s > 0; s--)
28
- t += b(e), e++;
29
- return t;
30
- }, P = (e) => {
31
- let s = 0;
32
- for (; e > 0; e -= b(s))
33
- s++;
34
- return s;
35
- }, N = (e, s) => s * y - Object.values(e).reduce((t, o) => t + o, 0), v = (e) => e.id.startsWith("ev_"), g = (e) => e.id.startsWith("uc_"), W = (e) => e.id.startsWith("goto_"), L = (e) => e.id.startsWith("end_"), f = (e) => e.id.startsWith("c_"), m = (e) => e.id.startsWith("rq_"), a = (e, s, t, o) => {
36
- const l = [];
37
- return t && !s.includes(e) ? l.push(
38
- `**${r("raids", "raid_rewards.reward_received")} :
39
- ` + Object.entries(t).filter(([, i]) => i > 0).map(([i, d]) => {
40
- if (d === 0)
41
- return;
42
- if (i === "xp" || i === "berry")
43
- return `- ${n(d)} ${u[i]}`;
44
- if (i === "hp")
45
- return `- ${n(d)} ${u.hp}`;
46
- if (i === "title")
47
- return `- Le titre "${d}"`;
48
- if (i === "condition")
49
- return `- Condition remplie : ${r("raids", `raid_conditions.${d}`)}`;
50
- const p = _(i);
51
- return `- ${p.name(d)} ${p.emojis}`;
52
- }).join(`
20
+ }, Symbol.toStringTag, { value: "Module" })), o = async (e, s = 0) => {
21
+ const t = R(e) ? await p.get(e) : e;
22
+ return t ? r(t.name.key, {
23
+ ns: "entities",
24
+ count: s,
25
+ context: t.name.context
26
+ }) : "";
27
+ }, h = (e, s = 0) => e ? r(e.name.key, {
28
+ ns: "entities",
29
+ count: s,
30
+ context: e.name.context
31
+ }) : "", g = (e) => e.id.startsWith("ev_"), S = (e) => e.id.startsWith("uc_"), H = (e) => e.id.startsWith("goto_"), J = (e) => e.id.startsWith("end_"), C = (e) => e.id.startsWith("c_"), N = (e) => e.id.startsWith("rq_"), a = async (e, s, t, d) => {
32
+ const n = [];
33
+ return t && !s.includes(e) ? n.push(
34
+ `**${r("raid_rewards.reward_received", { ns: "raids" })} :
35
+ ` + (await Promise.all(
36
+ y(t).filter(([, i]) => c(i) ? i > 0 : i).map(async ([i, _]) => {
37
+ if (i === "title")
38
+ return `- Le titre "${_}"`;
39
+ if (i === "condition")
40
+ return `- Condition remplie : ${r(`raid_conditions.${_}`, { ns: "raids" })}`;
41
+ if ((i === "xp" || i === "berry") && c(_))
42
+ return `- ${x(_)} ${b[i]}`;
43
+ if (i === "hp" && c(_))
44
+ return `- ${x(_)} ${b.hp}`;
45
+ const l = await p.get(i);
46
+ return l ? `- ${await h(l)} ${l.emojis}` : "";
47
+ })
48
+ )).join(`
53
49
  `) + "**"
54
- ) : l.push(`**${r("raids", "raid_rewards.no_reward_received")}**`), o && l.push(
55
- `**${r("raids", "raid_rewards.penalty_received")} :
56
- ` + Object.entries(o).filter(([, i]) => i > 0).map(([i, d]) => i === "xp" || i === "berry" ? `- ${n(d)} ${u[i]}` : i === "hp" ? `- ${d} ${u.hp}` : i === "time_out" ? `- Time out pendant ${w(d)}` : i === "buffs" ? "- Un debuff (consulter avec /boost)" : `- ${_(i).name(d)} ${_(i).emojis}`).join(`
50
+ ) : n.push(`**${r("raid_rewards.no_reward_received", { ns: "raids" })}**`), d && n.push(
51
+ `**${r("raid_rewards.penalty_received", { ns: "raids" })} :
52
+ ` + (await Promise.all(
53
+ y(d).filter(([, i]) => c(i) ? i > 0 : i).map(async ([i, _]) => {
54
+ if (i === "buffs" || !c(_))
55
+ return "- Un debuff (consulter avec /boost)";
56
+ if (i === "xp" || i === "berry")
57
+ return `- ${x(_)} ${b[i]}`;
58
+ if (i === "hp")
59
+ return `- ${_} ${b.hp}`;
60
+ if (i === "time_out")
61
+ return `- Time out pendant ${j(_)}`;
62
+ const l = await p.get(i);
63
+ return l ? `- ${await h(l)} ${l.emojis}` : "";
64
+ })
65
+ )).join(`
57
66
  `) + "**"
58
- ), `${l.length > 0 ? `
67
+ ), `${n.length > 0 ? `
59
68
 
60
- ` : ""}${l.join(`
61
- `)}${l.length > 0 ? `
69
+ ` : ""}${n.join(`
70
+ `)}${n.length > 0 ? `
62
71
  ` : ""}`;
63
- }, B = (e) => Object.values(c).map((s) => s(null)).filter((s) => !e || s.type === e), H = (e, s) => {
64
- const t = Object.values(c).find(
65
- (o) => o(s).id === e
66
- );
72
+ }, K = async (e) => (await Promise.all(Object.values(w).map((s) => s(null)))).filter(
73
+ (s) => !e || s.type === e
74
+ ), X = async (e, s) => {
75
+ const t = (await Promise.all(Object.values(w).map((d) => d(s)))).find((d) => d.id === e);
67
76
  if (!t)
68
77
  throw new Error("raidBug");
69
- return t(s);
70
- }, k = (e, s) => {
71
- if (v(e))
78
+ return t;
79
+ }, A = (e, s) => {
80
+ if (g(e))
72
81
  return e.outputs.find((t) => t.id === s);
73
- if (f(e))
82
+ if (C(e))
74
83
  return e.success.id === s ? e.success : e.failure;
75
- if (g(e) || m(e))
84
+ if (S(e) || N(e))
76
85
  return e.output;
77
- }, U = (e, s) => {
86
+ }, Z = (e, s) => {
78
87
  let t = s.start;
79
- for (const o of e) {
88
+ for (const d of e) {
80
89
  if (!t)
81
90
  throw new Error("raidBug");
82
- t = k(t, o);
91
+ t = A(t, d);
83
92
  }
84
- if (!t || !v(t))
93
+ if (!t || !g(t))
85
94
  throw new Error("raidBug");
86
95
  return t;
87
- }, q = (e) => ({
96
+ }, W = async (e) => ({
88
97
  id: "mysterious_island",
89
- name: r("raids", "raids.mysterious_island.name"),
90
- description: r("raids", "raids.mysterious_island.description"),
98
+ name: r("raids.mysterious_island.name", { ns: "raids" }),
99
+ description: r("raids.mysterious_island.description", { ns: "raids" }),
91
100
  cooldown: 6048e5,
92
101
  type: "classic",
93
102
  start: {
94
103
  id: "ev_start",
95
- title: r("raids", "raids.mysterious_island.ev_start.title"),
96
- text: r("raids", "raids.mysterious_island.ev_start.text"),
104
+ title: r("raids.mysterious_island.ev_start.title", { ns: "raids" }),
105
+ text: r("raids.mysterious_island.ev_start.text", { ns: "raids" }),
97
106
  rewards: void 0,
98
107
  penalties: void 0,
99
108
  outputs: [
100
109
  {
101
110
  id: "uc_explore_ruin",
102
- label: r("raids", "raids.mysterious_island.uc_explore_ruin.label"),
111
+ label: r("raids.mysterious_island.uc_explore_ruin.label", {
112
+ ns: "raids"
113
+ }),
103
114
  output: {
104
115
  id: "ev_walk_ruin",
105
- title: r("raids", "raids.mysterious_island.ev_walk_ruin.title"),
106
- text: r("raids", "raids.mysterious_island.ev_walk_ruin.text"),
116
+ title: r("raids.mysterious_island.ev_walk_ruin.title", {
117
+ ns: "raids"
118
+ }),
119
+ text: r("raids.mysterious_island.ev_walk_ruin.text", { ns: "raids" }),
107
120
  rewards: void 0,
108
121
  penalties: void 0,
109
122
  outputs: [
110
123
  {
111
124
  id: "uc_try_open_door",
112
- label: r(
113
- "raids",
114
- "raids.mysterious_island.uc_try_open_door.label"
115
- ),
125
+ label: r("raids.mysterious_island.uc_try_open_door.label", {
126
+ ns: "raids"
127
+ }),
116
128
  output: {
117
129
  id: "ev_door_locked",
118
- title: r(
119
- "raids",
120
- "raids.mysterious_island.ev_door_locked.title"
121
- ),
122
- text: r(
123
- "raids",
124
- "raids.mysterious_island.ev_door_locked.text"
125
- ),
130
+ title: r("raids.mysterious_island.ev_door_locked.title", {
131
+ ns: "raids"
132
+ }),
133
+ text: r("raids.mysterious_island.ev_door_locked.text", {
134
+ ns: "raids"
135
+ }),
126
136
  rewards: void 0,
127
137
  penalties: void 0,
128
138
  outputs: [
129
139
  {
130
140
  id: "rq_use_old_key",
131
141
  requirements: { ancient_key: 1 },
132
- label: r(
133
- "raids",
134
- "raids.mysterious_island.rq_use_old_key.label",
135
- { requirements: _("ancient_key").name(1) }
136
- ),
142
+ label: r("raids.mysterious_island.rq_use_old_key.label", {
143
+ ns: "raids",
144
+ requirements: await o(
145
+ "ancient_key",
146
+ 1
147
+ )
148
+ }),
137
149
  output: {
138
150
  id: "ev_use_old_key",
139
- title: r(
140
- "raids",
141
- "raids.mysterious_island.ev_use_old_key.title"
142
- ),
143
- text: (s) => r(
144
- "raids",
145
- "raids.mysterious_island.ev_use_old_key.text",
146
- {
147
- rewards: a(
148
- "ev_use_old_key",
149
- s,
150
- e === "rudder" ? { xp: 55e3 } : e === "rescue_boat" ? { xp: 5e4, berry: 0 } : { xp: 5e4 },
151
- void 0
152
- )
153
- }
154
- ),
151
+ title: r("raids.mysterious_island.ev_use_old_key.title", {
152
+ ns: "raids"
153
+ }),
154
+ text: (s) => r("raids.mysterious_island.ev_use_old_key.text", {
155
+ ns: "raids",
156
+ rewards: a(
157
+ "ev_use_old_key",
158
+ s,
159
+ e === "rudder" ? { xp: 55e3 } : e === "rescue_boat" ? { xp: 5e4, berry: 0 } : { xp: 5e4 },
160
+ void 0
161
+ )
162
+ }),
155
163
  rewards: e === "rudder" ? { xp: 55e3 } : e === "rescue_boat" ? { xp: 5e4, berry: 0 } : { xp: 5e4 },
156
164
  penalties: void 0,
157
165
  outputs: [
158
166
  {
159
167
  id: "uc_enter_passage",
160
168
  label: r(
161
- "raids",
162
- "raids.mysterious_island.uc_enter_passage.label"
169
+ "raids.mysterious_island.uc_enter_passage.label",
170
+ { ns: "raids" }
163
171
  ),
164
172
  output: {
165
173
  id: "ev_walk_passage",
166
174
  title: r(
167
- "raids",
168
- "raids.mysterious_island.ev_walk_passage.title"
175
+ "raids.mysterious_island.ev_walk_passage.title",
176
+ { ns: "raids" }
169
177
  ),
170
178
  text: r(
171
- "raids",
172
- "raids.mysterious_island.ev_walk_passage.text"
179
+ "raids.mysterious_island.ev_walk_passage.text",
180
+ { ns: "raids" }
173
181
  ),
174
182
  rewards: void 0,
175
183
  penalties: void 0,
@@ -177,18 +185,18 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
177
185
  {
178
186
  id: "uc_too_bad",
179
187
  label: r(
180
- "raids",
181
- "raids.mysterious_island.uc_too_bad.label"
188
+ "raids.mysterious_island.uc_too_bad.label",
189
+ { ns: "raids" }
182
190
  ),
183
191
  output: {
184
192
  id: "ev_find_tomb",
185
193
  title: r(
186
- "raids",
187
- "raids.mysterious_island.ev_find_tomb.title"
194
+ "raids.mysterious_island.ev_find_tomb.title",
195
+ { ns: "raids" }
188
196
  ),
189
197
  text: r(
190
- "raids",
191
- "raids.mysterious_island.ev_find_tomb.text"
198
+ "raids.mysterious_island.ev_find_tomb.text",
199
+ { ns: "raids" }
192
200
  ),
193
201
  rewards: void 0,
194
202
  penalties: void 0,
@@ -196,19 +204,19 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
196
204
  {
197
205
  id: "uc_open_tomb",
198
206
  label: r(
199
- "raids",
200
- "raids.mysterious_island.uc_open_tomb.label"
207
+ "raids.mysterious_island.uc_open_tomb.label",
208
+ { ns: "raids" }
201
209
  ),
202
210
  output: {
203
211
  id: "end_open_tomb",
204
212
  title: r(
205
- "raids",
206
- "raids.mysterious_island.end_open_tomb.title"
213
+ "raids.mysterious_island.end_open_tomb.title",
214
+ { ns: "raids" }
207
215
  ),
208
216
  text: (s) => r(
209
- "raids",
210
217
  "raids.mysterious_island.end_open_tomb.text",
211
218
  {
219
+ ns: "raids",
212
220
  rewards: a(
213
221
  "end_open_tomb",
214
222
  s,
@@ -322,8 +330,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
322
330
  {
323
331
  id: "goto_u_turn",
324
332
  label: r(
325
- "raids",
326
- "raids.mysterious_island.goto_u_turn.label"
333
+ "raids.mysterious_island.goto_u_turn.label",
334
+ { ns: "raids" }
327
335
  ),
328
336
  goto: [
329
337
  "uc_search_jungle",
@@ -336,8 +344,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
336
344
  {
337
345
  id: "goto_walk_back",
338
346
  label: r(
339
- "raids",
340
- "raids.mysterious_island.goto_walk_back.label"
347
+ "raids.mysterious_island.goto_walk_back.label",
348
+ { ns: "raids" }
341
349
  ),
342
350
  goto: ["uc_search_jungle", "ev_enter_jungle"]
343
351
  }
@@ -347,18 +355,18 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
347
355
  {
348
356
  id: "uc_go_take_torch",
349
357
  label: r(
350
- "raids",
351
- "raids.mysterious_island.uc_go_take_torch.label"
358
+ "raids.mysterious_island.uc_go_take_torch.label",
359
+ { ns: "raids" }
352
360
  ),
353
361
  output: {
354
362
  id: "ev_find_torch",
355
363
  title: r(
356
- "raids",
357
- "raids.mysterious_island.ev_find_torch.title"
364
+ "raids.mysterious_island.ev_find_torch.title",
365
+ { ns: "raids" }
358
366
  ),
359
367
  text: r(
360
- "raids",
361
- "raids.mysterious_island.ev_find_torch.text"
368
+ "raids.mysterious_island.ev_find_torch.text",
369
+ { ns: "raids" }
362
370
  ),
363
371
  rewards: void 0,
364
372
  penalties: void 0,
@@ -367,19 +375,24 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
367
375
  id: "rq_turn_on_torch_ruin",
368
376
  requirements: { wood: 1 },
369
377
  label: r(
370
- "raids",
371
378
  "raids.mysterious_island.rq_turn_on_torch_ruin.label",
372
- { requirements: _("wood").name(1) }
379
+ {
380
+ ns: "raids",
381
+ requirements: await o(
382
+ "wood",
383
+ 1
384
+ )
385
+ }
373
386
  ),
374
387
  output: {
375
388
  id: "ev_ancient_dark_passage",
376
389
  title: r(
377
- "raids",
378
- "raids.mysterious_island.ev_ancient_dark_passage.title"
390
+ "raids.mysterious_island.ev_ancient_dark_passage.title",
391
+ { ns: "raids" }
379
392
  ),
380
393
  text: r(
381
- "raids",
382
- "raids.mysterious_island.ev_ancient_dark_passage.text"
394
+ "raids.mysterious_island.ev_ancient_dark_passage.text",
395
+ { ns: "raids" }
383
396
  ),
384
397
  rewards: void 0,
385
398
  penalties: void 0,
@@ -387,8 +400,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
387
400
  {
388
401
  id: "uc_decipher",
389
402
  label: r(
390
- "raids",
391
- "raids.mysterious_island.uc_decipher.label"
403
+ "raids.mysterious_island.uc_decipher.label",
404
+ { ns: "raids" }
392
405
  ),
393
406
  output: {
394
407
  id: "c_decipher",
@@ -402,13 +415,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
402
415
  success: {
403
416
  id: "ev_decipher_success",
404
417
  title: r(
405
- "raids",
406
- "raids.mysterious_island.ev_decipher_success.title"
418
+ "raids.mysterious_island.ev_decipher_success.title",
419
+ { ns: "raids" }
407
420
  ),
408
421
  text: (s) => r(
409
- "raids",
410
422
  "raids.mysterious_island.ev_decipher_success.text",
411
423
  {
424
+ ns: "raids",
412
425
  rewards: a(
413
426
  "ev_decipher_success",
414
427
  s,
@@ -423,19 +436,19 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
423
436
  {
424
437
  id: "uc_follow_indications",
425
438
  label: r(
426
- "raids",
427
- "raids.mysterious_island.uc_follow_indications.label"
439
+ "raids.mysterious_island.uc_follow_indications.label",
440
+ { ns: "raids" }
428
441
  ),
429
442
  output: {
430
443
  id: "end_indications_secret_room",
431
444
  title: r(
432
- "raids",
433
- "raids.mysterious_island.end_indications_secret_room.title"
445
+ "raids.mysterious_island.end_indications_secret_room.title",
446
+ { ns: "raids" }
434
447
  ),
435
448
  text: (s) => r(
436
- "raids",
437
449
  "raids.mysterious_island.end_indications_secret_room.text",
438
450
  {
451
+ ns: "raids",
439
452
  rewards: a(
440
453
  "end_indications_secret_room",
441
454
  s,
@@ -477,8 +490,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
477
490
  {
478
491
  id: "goto_walk_back",
479
492
  label: r(
480
- "raids",
481
- "raids.mysterious_island.goto_walk_back.label"
493
+ "raids.mysterious_island.goto_walk_back.label",
494
+ { ns: "raids" }
482
495
  ),
483
496
  goto: [
484
497
  "uc_search_jungle",
@@ -490,13 +503,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
490
503
  failure: {
491
504
  id: "ev_decipher_failure",
492
505
  title: r(
493
- "raids",
494
- "raids.mysterious_island.ev_decipher_failure.title"
506
+ "raids.mysterious_island.ev_decipher_failure.title",
507
+ { ns: "raids" }
495
508
  ),
496
509
  text: (s) => r(
497
- "raids",
498
510
  "raids.mysterious_island.ev_decipher_failure.text",
499
511
  {
512
+ ns: "raids",
500
513
  rewards: a(
501
514
  "ev_decipher_failure",
502
515
  s,
@@ -511,8 +524,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
511
524
  {
512
525
  id: "uc_continue",
513
526
  label: r(
514
- "raids",
515
- "raids.mysterious_island.uc_continue.label"
527
+ "raids.mysterious_island.uc_continue.label",
528
+ { ns: "raids" }
516
529
  ),
517
530
  output: {
518
531
  id: "c_continue_chance",
@@ -520,13 +533,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
520
533
  success: {
521
534
  id: "end_continue_chance_success",
522
535
  title: r(
523
- "raids",
524
- "raids.mysterious_island.end_continue_chance_success.title"
536
+ "raids.mysterious_island.end_continue_chance_success.title",
537
+ { ns: "raids" }
525
538
  ),
526
539
  text: (s) => r(
527
- "raids",
528
540
  "raids.mysterious_island.end_continue_chance_success.text",
529
541
  {
542
+ ns: "raids",
530
543
  rewards: a(
531
544
  "end_continue_chance_success",
532
545
  s,
@@ -567,12 +580,12 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
567
580
  failure: {
568
581
  id: "ev_continue_chance_failure",
569
582
  title: r(
570
- "raids",
571
- "raids.mysterious_island.ev_continue_chance_failure.title"
583
+ "raids.mysterious_island.ev_continue_chance_failure.title",
584
+ { ns: "raids" }
572
585
  ),
573
586
  text: r(
574
- "raids",
575
- "raids.mysterious_island.ev_continue_chance_failure.text"
587
+ "raids.mysterious_island.ev_continue_chance_failure.text",
588
+ { ns: "raids" }
576
589
  ),
577
590
  rewards: void 0,
578
591
  penalties: void 0,
@@ -580,19 +593,19 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
580
593
  {
581
594
  id: "uc_open_tomb",
582
595
  label: r(
583
- "raids",
584
- "raids.mysterious_island.uc_open_tomb.label"
596
+ "raids.mysterious_island.uc_open_tomb.label",
597
+ { ns: "raids" }
585
598
  ),
586
599
  output: {
587
600
  id: "end_open_tomb",
588
601
  title: r(
589
- "raids",
590
- "raids.mysterious_island.end_open_tomb.title"
602
+ "raids.mysterious_island.end_open_tomb.title",
603
+ { ns: "raids" }
591
604
  ),
592
605
  text: (s) => r(
593
- "raids",
594
606
  "raids.mysterious_island.end_open_tomb.text",
595
607
  {
608
+ ns: "raids",
596
609
  rewards: a(
597
610
  "end_open_tomb",
598
611
  s,
@@ -706,8 +719,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
706
719
  {
707
720
  id: "goto_u_turn",
708
721
  label: r(
709
- "raids",
710
- "raids.mysterious_island.goto_u_turn.label"
722
+ "raids.mysterious_island.goto_u_turn.label",
723
+ { ns: "raids" }
711
724
  ),
712
725
  goto: [
713
726
  "uc_search_jungle",
@@ -729,20 +742,25 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
729
742
  id: "rq_turn_on_torch_jungle",
730
743
  requirements: { wood: 1 },
731
744
  label: r(
732
- "raids",
733
745
  "raids.mysterious_island.rq_turn_on_torch_jungle.label",
734
- { requirements: _("wood").name(1) }
746
+ {
747
+ ns: "raids",
748
+ requirements: await o(
749
+ "wood",
750
+ 1
751
+ )
752
+ }
735
753
  ),
736
754
  output: {
737
755
  id: "end_torch_jungle",
738
756
  title: r(
739
- "raids",
740
- "raids.mysterious_island.end_torch_jungle.title"
757
+ "raids.mysterious_island.end_torch_jungle.title",
758
+ { ns: "raids" }
741
759
  ),
742
760
  text: (s) => r(
743
- "raids",
744
761
  "raids.mysterious_island.end_torch_jungle.text",
745
762
  {
763
+ ns: "raids",
746
764
  rewards: a(
747
765
  "end_torch_jungle",
748
766
  s,
@@ -784,8 +802,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
784
802
  {
785
803
  id: "goto_explore_without_torch",
786
804
  label: r(
787
- "raids",
788
- "raids.mysterious_island.goto_explore_without_torch.label"
805
+ "raids.mysterious_island.goto_explore_without_torch.label",
806
+ { ns: "raids" }
789
807
  ),
790
808
  goto: [
791
809
  "uc_explore_ruin",
@@ -806,28 +824,25 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
806
824
  },
807
825
  {
808
826
  id: "uc_force_door",
809
- label: r(
810
- "raids",
811
- "raids.mysterious_island.uc_force_door.label"
812
- ),
827
+ label: r("raids.mysterious_island.uc_force_door.label", {
828
+ ns: "raids"
829
+ }),
813
830
  output: {
814
831
  id: "ev_force_door",
815
- title: r(
816
- "raids",
817
- "raids.mysterious_island.ev_force_door.title"
818
- ),
819
- text: r(
820
- "raids",
821
- "raids.mysterious_island.ev_force_door.text"
822
- ),
832
+ title: r("raids.mysterious_island.ev_force_door.title", {
833
+ ns: "raids"
834
+ }),
835
+ text: r("raids.mysterious_island.ev_force_door.text", {
836
+ ns: "raids"
837
+ }),
823
838
  rewards: void 0,
824
839
  penalties: void 0,
825
840
  outputs: [
826
841
  {
827
842
  id: "goto_search_way",
828
843
  label: r(
829
- "raids",
830
- "raids.mysterious_island.goto_search_way.label"
844
+ "raids.mysterious_island.goto_search_way.label",
845
+ { ns: "raids" }
831
846
  ),
832
847
  goto: [
833
848
  "uc_explore_ruin",
@@ -839,8 +854,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
839
854
  {
840
855
  id: "goto_u_turn",
841
856
  label: r(
842
- "raids",
843
- "raids.mysterious_island.goto_u_turn.label"
857
+ "raids.mysterious_island.goto_u_turn.label",
858
+ { ns: "raids" }
844
859
  ),
845
860
  goto: ["uc_search_jungle", "ev_enter_jungle"]
846
861
  }
@@ -852,68 +867,61 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
852
867
  },
853
868
  {
854
869
  id: "uc_search_way",
855
- label: r(
856
- "raids",
857
- "raids.mysterious_island.uc_search_way.label"
858
- ),
870
+ label: r("raids.mysterious_island.uc_search_way.label", {
871
+ ns: "raids"
872
+ }),
859
873
  output: {
860
874
  id: "ev_search_way",
861
- title: r(
862
- "raids",
863
- "raids.mysterious_island.ev_search_way.title"
864
- ),
865
- text: r(
866
- "raids",
867
- "raids.mysterious_island.ev_search_way.text"
868
- ),
875
+ title: r("raids.mysterious_island.ev_search_way.title", {
876
+ ns: "raids"
877
+ }),
878
+ text: r("raids.mysterious_island.ev_search_way.text", {
879
+ ns: "raids"
880
+ }),
869
881
  rewards: void 0,
870
882
  penalties: void 0,
871
883
  outputs: [
872
884
  {
873
885
  id: "uc_ramp",
874
- label: r(
875
- "raids",
876
- "raids.mysterious_island.uc_ramp.label"
877
- ),
886
+ label: r("raids.mysterious_island.uc_ramp.label", {
887
+ ns: "raids"
888
+ }),
878
889
  output: {
879
890
  id: "c_ramp",
880
891
  requirements: e === "sailing_boat" ? { agility: 108 } : { agility: 120 },
881
892
  success: {
882
893
  id: "ev_ramp_success",
883
894
  title: r(
884
- "raids",
885
- "raids.mysterious_island.ev_ramp_success.title"
886
- ),
887
- text: (s) => r(
888
- "raids",
889
- "raids.mysterious_island.ev_ramp_success.text",
890
- {
891
- rewards: a(
892
- "ev_ramp_success",
893
- s,
894
- e === "rudder" ? { xp: 55e3 } : e === "rescue_boat" ? { xp: 5e4, berry: 0 } : { xp: 5e4 },
895
- e === "anchor" ? { hp: 50 } : { hp: 100 }
896
- )
897
- }
895
+ "raids.mysterious_island.ev_ramp_success.title",
896
+ { ns: "raids" }
898
897
  ),
898
+ text: (s) => r("raids.mysterious_island.ev_ramp_success.text", {
899
+ ns: "raids",
900
+ rewards: a(
901
+ "ev_ramp_success",
902
+ s,
903
+ e === "rudder" ? { xp: 55e3 } : e === "rescue_boat" ? { xp: 5e4, berry: 0 } : { xp: 5e4 },
904
+ e === "anchor" ? { hp: 50 } : { hp: 100 }
905
+ )
906
+ }),
899
907
  rewards: e === "rudder" ? { xp: 55e3 } : e === "rescue_boat" ? { xp: 5e4, berry: 0 } : { xp: 5e4 },
900
908
  penalties: e === "anchor" ? { hp: 50 } : { hp: 100 },
901
909
  outputs: [
902
910
  {
903
911
  id: "uc_explore_gallery_no_torch",
904
912
  label: r(
905
- "raids",
906
- "raids.mysterious_island.uc_explore_gallery_no_torch.label"
913
+ "raids.mysterious_island.uc_explore_gallery_no_torch.label",
914
+ { ns: "raids" }
907
915
  ),
908
916
  output: {
909
917
  id: "ev_explore_gallery_no_torch",
910
918
  title: r(
911
- "raids",
912
- "raids.mysterious_island.ev_explore_gallery_no_torch.title"
919
+ "raids.mysterious_island.ev_explore_gallery_no_torch.title",
920
+ { ns: "raids" }
913
921
  ),
914
922
  text: r(
915
- "raids",
916
- "raids.mysterious_island.ev_explore_gallery_no_torch.text"
923
+ "raids.mysterious_island.ev_explore_gallery_no_torch.text",
924
+ { ns: "raids" }
917
925
  ),
918
926
  rewards: void 0,
919
927
  penalties: void 0,
@@ -921,19 +929,19 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
921
929
  {
922
930
  id: "uc_open_chest",
923
931
  label: r(
924
- "raids",
925
- "raids.mysterious_island.uc_open_chest.label"
932
+ "raids.mysterious_island.uc_open_chest.label",
933
+ { ns: "raids" }
926
934
  ),
927
935
  output: {
928
936
  id: "end_old_chest",
929
937
  title: r(
930
- "raids",
931
- "raids.mysterious_island.end_old_chest.title"
938
+ "raids.mysterious_island.end_old_chest.title",
939
+ { ns: "raids" }
932
940
  ),
933
941
  text: (s) => r(
934
- "raids",
935
942
  "raids.mysterious_island.end_old_chest.text",
936
943
  {
944
+ ns: "raids",
937
945
  rewards: a(
938
946
  "end_old_chest",
939
947
  s,
@@ -973,19 +981,24 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
973
981
  id: "rq_explore_gallery_with_torch",
974
982
  requirements: { wood: 1 },
975
983
  label: r(
976
- "raids",
977
984
  "raids.mysterious_island.rq_explore_gallery_with_torch.label",
978
- { requirements: _("wood").name(1) }
985
+ {
986
+ ns: "raids",
987
+ requirements: await o(
988
+ "wood",
989
+ 1
990
+ )
991
+ }
979
992
  ),
980
993
  output: {
981
994
  id: "ev_explore_gallery_with_torch",
982
995
  title: r(
983
- "raids",
984
- "raids.mysterious_island.ev_explore_gallery_with_torch.title"
996
+ "raids.mysterious_island.ev_explore_gallery_with_torch.title",
997
+ { ns: "raids" }
985
998
  ),
986
999
  text: r(
987
- "raids",
988
- "raids.mysterious_island.ev_explore_gallery_with_torch.text"
1000
+ "raids.mysterious_island.ev_explore_gallery_with_torch.text",
1001
+ { ns: "raids" }
989
1002
  ),
990
1003
  rewards: void 0,
991
1004
  penalties: void 0,
@@ -993,19 +1006,19 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
993
1006
  {
994
1007
  id: "uc_continue",
995
1008
  label: r(
996
- "raids",
997
- "raids.mysterious_island.uc_continue.label"
1009
+ "raids.mysterious_island.uc_continue.label",
1010
+ { ns: "raids" }
998
1011
  ),
999
1012
  output: {
1000
1013
  id: "end_explore_gallery_with_torch",
1001
1014
  title: r(
1002
- "raids",
1003
- "raids.mysterious_island.end_explore_gallery_with_torch.title"
1015
+ "raids.mysterious_island.end_explore_gallery_with_torch.title",
1016
+ { ns: "raids" }
1004
1017
  ),
1005
1018
  text: (s) => r(
1006
- "raids",
1007
1019
  "raids.mysterious_island.end_explore_gallery_with_torch.text",
1008
1020
  {
1021
+ ns: "raids",
1009
1022
  rewards: a(
1010
1023
  "end_explore_gallery_with_torch",
1011
1024
  s,
@@ -1064,29 +1077,26 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1064
1077
  failure: {
1065
1078
  id: "ev_ramp_failure",
1066
1079
  title: r(
1067
- "raids",
1068
- "raids.mysterious_island.ev_ramp_failure.title"
1069
- ),
1070
- text: (s) => r(
1071
- "raids",
1072
- "raids.mysterious_island.ev_ramp_failure.text",
1073
- {
1074
- rewards: a(
1075
- "ev_ramp_failure",
1076
- s,
1077
- void 0,
1078
- e === "anchor" ? { hp: 100 } : { hp: 200 }
1079
- )
1080
- }
1080
+ "raids.mysterious_island.ev_ramp_failure.title",
1081
+ { ns: "raids" }
1081
1082
  ),
1083
+ text: (s) => r("raids.mysterious_island.ev_ramp_failure.text", {
1084
+ ns: "raids",
1085
+ rewards: a(
1086
+ "ev_ramp_failure",
1087
+ s,
1088
+ void 0,
1089
+ e === "anchor" ? { hp: 100 } : { hp: 200 }
1090
+ )
1091
+ }),
1082
1092
  rewards: void 0,
1083
1093
  penalties: e === "anchor" ? { hp: 100 } : { hp: 200 },
1084
1094
  outputs: [
1085
1095
  {
1086
1096
  id: "goto_u_turn",
1087
1097
  label: r(
1088
- "raids",
1089
- "raids.mysterious_island.goto_u_turn.label"
1098
+ "raids.mysterious_island.goto_u_turn.label",
1099
+ { ns: "raids" }
1090
1100
  ),
1091
1101
  goto: ["uc_search_jungle", "ev_enter_jungle"]
1092
1102
  }
@@ -1102,52 +1112,54 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1102
1112
  },
1103
1113
  {
1104
1114
  id: "uc_search_jungle",
1105
- label: r("raids", "raids.mysterious_island.uc_search_jungle.label"),
1115
+ label: r("raids.mysterious_island.uc_search_jungle.label", {
1116
+ ns: "raids"
1117
+ }),
1106
1118
  output: {
1107
1119
  id: "ev_enter_jungle",
1108
- title: r("raids", "raids.mysterious_island.ev_enter_jungle.title"),
1109
- text: r("raids", "raids.mysterious_island.ev_enter_jungle.text"),
1120
+ title: r("raids.mysterious_island.ev_enter_jungle.title", {
1121
+ ns: "raids"
1122
+ }),
1123
+ text: r("raids.mysterious_island.ev_enter_jungle.text", {
1124
+ ns: "raids"
1125
+ }),
1110
1126
  rewards: void 0,
1111
1127
  penalties: void 0,
1112
1128
  outputs: [
1113
1129
  {
1114
1130
  id: "uc_explore_hard_way",
1115
- label: r(
1116
- "raids",
1117
- "raids.mysterious_island.uc_explore_hard_way.label"
1118
- ),
1131
+ label: r("raids.mysterious_island.uc_explore_hard_way.label", {
1132
+ ns: "raids"
1133
+ }),
1119
1134
  output: {
1120
1135
  id: "ev_wild_animals",
1121
- title: r(
1122
- "raids",
1123
- "raids.mysterious_island.ev_wild_animals.title"
1124
- ),
1125
- text: r(
1126
- "raids",
1127
- "raids.mysterious_island.ev_wild_animals.text"
1128
- ),
1136
+ title: r("raids.mysterious_island.ev_wild_animals.title", {
1137
+ ns: "raids"
1138
+ }),
1139
+ text: r("raids.mysterious_island.ev_wild_animals.text", {
1140
+ ns: "raids"
1141
+ }),
1129
1142
  rewards: void 0,
1130
1143
  penalties: void 0,
1131
1144
  outputs: [
1132
1145
  {
1133
1146
  id: "uc_fight_animals",
1134
- label: r(
1135
- "raids",
1136
- "raids.mysterious_island.uc_fight_animals.label"
1137
- ),
1147
+ label: r("raids.mysterious_island.uc_fight_animals.label", {
1148
+ ns: "raids"
1149
+ }),
1138
1150
  output: {
1139
1151
  id: "c_fight_animals",
1140
1152
  requirements: e === "sailing_boat" ? { strength: 103.5, agility: 103.5 } : { strength: 115, agility: 115 },
1141
1153
  success: {
1142
1154
  id: "ev_fight_animals_success",
1143
1155
  title: r(
1144
- "raids",
1145
- "raids.mysterious_island.ev_fight_animals_success.title"
1156
+ "raids.mysterious_island.ev_fight_animals_success.title",
1157
+ { ns: "raids" }
1146
1158
  ),
1147
1159
  text: (s) => r(
1148
- "raids",
1149
1160
  "raids.mysterious_island.ev_fight_animals_success.text",
1150
1161
  {
1162
+ ns: "raids",
1151
1163
  rewards: a(
1152
1164
  "ev_fight_animals_success",
1153
1165
  s,
@@ -1162,18 +1174,18 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1162
1174
  {
1163
1175
  id: "uc_go_back_ship",
1164
1176
  label: r(
1165
- "raids",
1166
- "raids.mysterious_island.uc_go_back_ship.label"
1177
+ "raids.mysterious_island.uc_go_back_ship.label",
1178
+ { ns: "raids" }
1167
1179
  ),
1168
1180
  output: {
1169
1181
  id: "end_go_back_ship",
1170
1182
  title: r(
1171
- "raids",
1172
- "raids.mysterious_island.end_go_back_ship.title"
1183
+ "raids.mysterious_island.end_go_back_ship.title",
1184
+ { ns: "raids" }
1173
1185
  ),
1174
1186
  text: r(
1175
- "raids",
1176
- "raids.mysterious_island.end_go_back_ship.text"
1187
+ "raids.mysterious_island.end_go_back_ship.text",
1188
+ { ns: "raids" }
1177
1189
  ),
1178
1190
  rewards: void 0,
1179
1191
  penalties: void 0
@@ -1182,18 +1194,18 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1182
1194
  {
1183
1195
  id: "uc_continue",
1184
1196
  label: r(
1185
- "raids",
1186
- "raids.mysterious_island.uc_continue.label"
1197
+ "raids.mysterious_island.uc_continue.label",
1198
+ { ns: "raids" }
1187
1199
  ),
1188
1200
  output: {
1189
1201
  id: "ev_keep_going_find_cave",
1190
1202
  title: r(
1191
- "raids",
1192
- "raids.mysterious_island.ev_keep_going_find_cave.title"
1203
+ "raids.mysterious_island.ev_keep_going_find_cave.title",
1204
+ { ns: "raids" }
1193
1205
  ),
1194
1206
  text: r(
1195
- "raids",
1196
- "raids.mysterious_island.ev_keep_going_find_cave.text"
1207
+ "raids.mysterious_island.ev_keep_going_find_cave.text",
1208
+ { ns: "raids" }
1197
1209
  ),
1198
1210
  rewards: void 0,
1199
1211
  penalties: void 0,
@@ -1201,8 +1213,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1201
1213
  {
1202
1214
  id: "goto_enter_cave",
1203
1215
  label: r(
1204
- "raids",
1205
- "raids.mysterious_island.goto_enter_cave.label"
1216
+ "raids.mysterious_island.goto_enter_cave.label",
1217
+ { ns: "raids" }
1206
1218
  ),
1207
1219
  goto: [
1208
1220
  "uc_search_jungle",
@@ -1223,13 +1235,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1223
1235
  failure: {
1224
1236
  id: "end_fight_animals_failure",
1225
1237
  title: r(
1226
- "raids",
1227
- "raids.mysterious_island.end_fight_animals_failure.title"
1238
+ "raids.mysterious_island.end_fight_animals_failure.title",
1239
+ { ns: "raids" }
1228
1240
  ),
1229
1241
  text: (s) => r(
1230
- "raids",
1231
1242
  "raids.mysterious_island.end_fight_animals_failure.text",
1232
1243
  {
1244
+ ns: "raids",
1233
1245
  rewards: a(
1234
1246
  "end_fight_animals_failure",
1235
1247
  s,
@@ -1245,38 +1257,36 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1245
1257
  },
1246
1258
  {
1247
1259
  id: "uc_dodge_animals",
1248
- label: r(
1249
- "raids",
1250
- "raids.mysterious_island.uc_dodge_animals.label"
1251
- ),
1260
+ label: r("raids.mysterious_island.uc_dodge_animals.label", {
1261
+ ns: "raids"
1262
+ }),
1252
1263
  output: {
1253
1264
  id: "ev_dodge_animals",
1254
1265
  title: r(
1255
- "raids",
1256
- "raids.mysterious_island.ev_dodge_animals.title"
1257
- ),
1258
- text: r(
1259
- "raids",
1260
- "raids.mysterious_island.ev_dodge_animals.text"
1266
+ "raids.mysterious_island.ev_dodge_animals.title",
1267
+ { ns: "raids" }
1261
1268
  ),
1269
+ text: r("raids.mysterious_island.ev_dodge_animals.text", {
1270
+ ns: "raids"
1271
+ }),
1262
1272
  rewards: void 0,
1263
1273
  penalties: void 0,
1264
1274
  outputs: [
1265
1275
  {
1266
1276
  id: "uc_enter_cave",
1267
1277
  label: r(
1268
- "raids",
1269
- "raids.mysterious_island.uc_enter_cave.label"
1278
+ "raids.mysterious_island.uc_enter_cave.label",
1279
+ { ns: "raids" }
1270
1280
  ),
1271
1281
  output: {
1272
1282
  id: "ev_dark_cave",
1273
1283
  title: r(
1274
- "raids",
1275
- "raids.mysterious_island.ev_dark_cave.title"
1284
+ "raids.mysterious_island.ev_dark_cave.title",
1285
+ { ns: "raids" }
1276
1286
  ),
1277
1287
  text: r(
1278
- "raids",
1279
- "raids.mysterious_island.ev_dark_cave.text"
1288
+ "raids.mysterious_island.ev_dark_cave.text",
1289
+ { ns: "raids" }
1280
1290
  ),
1281
1291
  rewards: void 0,
1282
1292
  penalties: void 0,
@@ -1285,19 +1295,24 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1285
1295
  id: "rq_cave_torch",
1286
1296
  requirements: { wood: 1 },
1287
1297
  label: r(
1288
- "raids",
1289
1298
  "raids.mysterious_island.rq_cave_torch.label",
1290
- { requirements: _("wood").name(1) }
1299
+ {
1300
+ ns: "raids",
1301
+ requirements: await o(
1302
+ "wood",
1303
+ 1
1304
+ )
1305
+ }
1291
1306
  ),
1292
1307
  output: {
1293
1308
  id: "ev_cave_torch_on",
1294
1309
  title: r(
1295
- "raids",
1296
- "raids.mysterious_island.ev_cave_torch_on.title"
1310
+ "raids.mysterious_island.ev_cave_torch_on.title",
1311
+ { ns: "raids" }
1297
1312
  ),
1298
1313
  text: r(
1299
- "raids",
1300
- "raids.mysterious_island.ev_cave_torch_on.text"
1314
+ "raids.mysterious_island.ev_cave_torch_on.text",
1315
+ { ns: "raids" }
1301
1316
  ),
1302
1317
  rewards: void 0,
1303
1318
  penalties: void 0,
@@ -1305,19 +1320,19 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1305
1320
  {
1306
1321
  id: "uc_open_chest",
1307
1322
  label: r(
1308
- "raids",
1309
- "raids.mysterious_island.uc_open_chest.label"
1323
+ "raids.mysterious_island.uc_open_chest.label",
1324
+ { ns: "raids" }
1310
1325
  ),
1311
1326
  output: {
1312
1327
  id: "end_cave_open_chest",
1313
1328
  title: r(
1314
- "raids",
1315
- "raids.mysterious_island.end_cave_open_chest.title"
1329
+ "raids.mysterious_island.end_cave_open_chest.title",
1330
+ { ns: "raids" }
1316
1331
  ),
1317
1332
  text: (s) => r(
1318
- "raids",
1319
1333
  "raids.mysterious_island.end_cave_open_chest.text",
1320
1334
  {
1335
+ ns: "raids",
1321
1336
  rewards: a(
1322
1337
  "end_cave_open_chest",
1323
1338
  s,
@@ -1360,19 +1375,19 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1360
1375
  {
1361
1376
  id: "uc_blind_walk",
1362
1377
  label: r(
1363
- "raids",
1364
- "raids.mysterious_island.uc_blind_walk.label"
1378
+ "raids.mysterious_island.uc_blind_walk.label",
1379
+ { ns: "raids" }
1365
1380
  ),
1366
1381
  output: {
1367
1382
  id: "end_cave_blind_walk",
1368
1383
  title: r(
1369
- "raids",
1370
- "raids.mysterious_island.end_cave_blind_walk.title"
1384
+ "raids.mysterious_island.end_cave_blind_walk.title",
1385
+ { ns: "raids" }
1371
1386
  ),
1372
1387
  text: (s) => r(
1373
- "raids",
1374
1388
  "raids.mysterious_island.end_cave_blind_walk.text",
1375
1389
  {
1390
+ ns: "raids",
1376
1391
  rewards: a(
1377
1392
  "end_cave_blind_walk",
1378
1393
  s,
@@ -1396,25 +1411,25 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1396
1411
  },
1397
1412
  {
1398
1413
  id: "uc_follow_main_path",
1399
- label: r(
1400
- "raids",
1401
- "raids.mysterious_island.uc_follow_main_path.label"
1402
- ),
1414
+ label: r("raids.mysterious_island.uc_follow_main_path.label", {
1415
+ ns: "raids"
1416
+ }),
1403
1417
  output: {
1404
1418
  id: "ev_main_path",
1405
- title: r(
1406
- "raids",
1407
- "raids.mysterious_island.ev_main_path.title"
1408
- ),
1409
- text: r("raids", "raids.mysterious_island.ev_main_path.text"),
1419
+ title: r("raids.mysterious_island.ev_main_path.title", {
1420
+ ns: "raids"
1421
+ }),
1422
+ text: r("raids.mysterious_island.ev_main_path.text", {
1423
+ ns: "raids"
1424
+ }),
1410
1425
  rewards: void 0,
1411
1426
  penalties: void 0,
1412
1427
  outputs: [
1413
1428
  {
1414
1429
  id: "uc_search_medicine_herbs",
1415
1430
  label: r(
1416
- "raids",
1417
- "raids.mysterious_island.uc_search_medicine_herbs.label"
1431
+ "raids.mysterious_island.uc_search_medicine_herbs.label",
1432
+ { ns: "raids" }
1418
1433
  ),
1419
1434
  output: {
1420
1435
  id: "c_herbs_wisdom",
@@ -1422,13 +1437,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1422
1437
  success: {
1423
1438
  id: "end_herbs_wisdom_success",
1424
1439
  title: r(
1425
- "raids",
1426
- "raids.mysterious_island.end_herbs_wisdom_success.title"
1440
+ "raids.mysterious_island.end_herbs_wisdom_success.title",
1441
+ { ns: "raids" }
1427
1442
  ),
1428
1443
  text: (s) => r(
1429
- "raids",
1430
1444
  "raids.mysterious_island.end_herbs_wisdom_success.text",
1431
1445
  {
1446
+ ns: "raids",
1432
1447
  rewards: a(
1433
1448
  "end_herbs_wisdom_success",
1434
1449
  s,
@@ -1475,13 +1490,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1475
1490
  failure: {
1476
1491
  id: "end_herbs_wisdom_failure",
1477
1492
  title: r(
1478
- "raids",
1479
- "raids.mysterious_island.end_herbs_wisdom_failure.title"
1493
+ "raids.mysterious_island.end_herbs_wisdom_failure.title",
1494
+ { ns: "raids" }
1480
1495
  ),
1481
1496
  text: (s) => r(
1482
- "raids",
1483
1497
  "raids.mysterious_island.end_herbs_wisdom_failure.text",
1484
1498
  {
1499
+ ns: "raids",
1485
1500
  rewards: a(
1486
1501
  "end_herbs_wisdom_failure",
1487
1502
  s,
@@ -1514,28 +1529,24 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1514
1529
  },
1515
1530
  {
1516
1531
  id: "uc_take_fruits",
1517
- label: r(
1518
- "raids",
1519
- "raids.mysterious_island.uc_take_fruits.label"
1520
- ),
1532
+ label: r("raids.mysterious_island.uc_take_fruits.label", {
1533
+ ns: "raids"
1534
+ }),
1521
1535
  output: {
1522
1536
  id: "end_find_fruits",
1523
1537
  title: r(
1524
- "raids",
1525
- "raids.mysterious_island.end_find_fruits.title"
1526
- ),
1527
- text: (s) => r(
1528
- "raids",
1529
- "raids.mysterious_island.end_find_fruits.text",
1530
- {
1531
- rewards: a(
1532
- "end_find_fruits",
1533
- s,
1534
- e === "rudder" ? { fruit: 20, xp: 11e3 } : e === "rescue_boat" ? { fruit: 20, xp: 1e4, berry: 0 } : { fruit: 20, xp: 1e4 },
1535
- void 0
1536
- )
1537
- }
1538
+ "raids.mysterious_island.end_find_fruits.title",
1539
+ { ns: "raids" }
1538
1540
  ),
1541
+ text: (s) => r("raids.mysterious_island.end_find_fruits.text", {
1542
+ ns: "raids",
1543
+ rewards: a(
1544
+ "end_find_fruits",
1545
+ s,
1546
+ e === "rudder" ? { fruit: 20, xp: 11e3 } : e === "rescue_boat" ? { fruit: 20, xp: 1e4, berry: 0 } : { fruit: 20, xp: 1e4 },
1547
+ void 0
1548
+ )
1549
+ }),
1539
1550
  rewards: e === "rudder" ? { fruit: 20, xp: 11e3 } : e === "rescue_boat" ? { fruit: 20, xp: 1e4, berry: 0 } : { fruit: 20, xp: 1e4 },
1540
1551
  penalties: void 0
1541
1552
  }
@@ -1548,73 +1559,76 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1548
1559
  }
1549
1560
  ]
1550
1561
  }
1551
- }), j = (e) => ({
1562
+ }), M = async (e) => ({
1552
1563
  id: "pirate_cave",
1553
- name: r("raids", "raids.pirate_cave.name"),
1554
- description: r("raids", "raids.pirate_cave.description"),
1564
+ name: r("raids.pirate_cave.name", { ns: "raids" }),
1565
+ description: r("raids.pirate_cave.description", { ns: "raids" }),
1555
1566
  cooldown: 6048e5,
1556
1567
  type: "classic",
1557
1568
  start: {
1558
1569
  id: "ev_start",
1559
- title: r("raids", "raids.pirate_cave.ev_start.title"),
1560
- text: r("raids", "raids.pirate_cave.ev_start.text"),
1570
+ title: r("raids.pirate_cave.ev_start.title", { ns: "raids" }),
1571
+ text: r("raids.pirate_cave.ev_start.text", { ns: "raids" }),
1561
1572
  rewards: void 0,
1562
1573
  penalties: void 0,
1563
1574
  outputs: [
1564
1575
  {
1565
1576
  id: "uc_continue",
1566
- label: r("raids", "raids.pirate_cave.uc_continue.label"),
1577
+ label: r("raids.pirate_cave.uc_continue.label", { ns: "raids" }),
1567
1578
  output: {
1568
1579
  id: "ev_cave_entry",
1569
- title: r("raids", "raids.pirate_cave.ev_cave_entry.title"),
1570
- text: r("raids", "raids.pirate_cave.ev_cave_entry.text"),
1580
+ title: r("raids.pirate_cave.ev_cave_entry.title", { ns: "raids" }),
1581
+ text: r("raids.pirate_cave.ev_cave_entry.text", { ns: "raids" }),
1571
1582
  rewards: void 0,
1572
1583
  penalties: void 0,
1573
1584
  outputs: [
1574
1585
  {
1575
1586
  id: "uc_cave_entry",
1576
- label: r("raids", "raids.pirate_cave.uc_cave_entry.label"),
1587
+ label: r("raids.pirate_cave.uc_cave_entry.label", {
1588
+ ns: "raids"
1589
+ }),
1577
1590
  output: {
1578
1591
  id: "ev_cave_begin",
1579
- title: r("raids", "raids.pirate_cave.ev_cave_begin.title"),
1580
- text: r("raids", "raids.pirate_cave.ev_cave_begin.text"),
1592
+ title: r("raids.pirate_cave.ev_cave_begin.title", {
1593
+ ns: "raids"
1594
+ }),
1595
+ text: r("raids.pirate_cave.ev_cave_begin.text", {
1596
+ ns: "raids"
1597
+ }),
1581
1598
  rewards: void 0,
1582
1599
  penalties: void 0,
1583
1600
  outputs: [
1584
1601
  {
1585
1602
  id: "rq_cave_torch",
1586
1603
  requirements: { wood: 1 },
1587
- label: r(
1588
- "raids",
1589
- "raids.pirate_cave.rq_cave_torch.label",
1590
- { requirements: _("wood").name(1) }
1591
- ),
1604
+ label: r("raids.pirate_cave.rq_cave_torch.label", {
1605
+ ns: "raids",
1606
+ requirements: await o("wood", 1)
1607
+ }),
1592
1608
  output: {
1593
1609
  id: "ev_torch_on",
1594
- title: r(
1595
- "raids",
1596
- "raids.pirate_cave.ev_torch_on.title"
1597
- ),
1598
- text: r("raids", "raids.pirate_cave.ev_torch_on.text"),
1610
+ title: r("raids.pirate_cave.ev_torch_on.title", {
1611
+ ns: "raids"
1612
+ }),
1613
+ text: r("raids.pirate_cave.ev_torch_on.text", {
1614
+ ns: "raids"
1615
+ }),
1599
1616
  rewards: void 0,
1600
1617
  penalties: void 0,
1601
1618
  outputs: [
1602
1619
  {
1603
1620
  id: "uc_left_path",
1604
- label: r(
1605
- "raids",
1606
- "raids.pirate_cave.uc_left_path.label"
1607
- ),
1621
+ label: r("raids.pirate_cave.uc_left_path.label", {
1622
+ ns: "raids"
1623
+ }),
1608
1624
  output: {
1609
1625
  id: "ev_left_path",
1610
- title: r(
1611
- "raids",
1612
- "raids.pirate_cave.ev_left_path.title"
1613
- ),
1614
- text: r(
1615
- "raids",
1616
- "raids.pirate_cave.ev_left_path.text"
1617
- ),
1626
+ title: r("raids.pirate_cave.ev_left_path.title", {
1627
+ ns: "raids"
1628
+ }),
1629
+ text: r("raids.pirate_cave.ev_left_path.text", {
1630
+ ns: "raids"
1631
+ }),
1618
1632
  rewards: void 0,
1619
1633
  penalties: void 0,
1620
1634
  outputs: [
@@ -1622,47 +1636,49 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1622
1636
  id: "rq_remove_traps",
1623
1637
  requirements: { tools: 1 },
1624
1638
  label: r(
1625
- "raids",
1626
1639
  "raids.pirate_cave.rq_remove_traps.label",
1627
- { requirements: _("tools").name(1) }
1640
+ {
1641
+ ns: "raids",
1642
+ requirements: await o(
1643
+ "tools",
1644
+ 1
1645
+ )
1646
+ }
1628
1647
  ),
1629
1648
  output: {
1630
1649
  id: "ev_no_trap",
1631
1650
  title: r(
1632
- "raids",
1633
- "raids.pirate_cave.ev_no_trap.title"
1634
- ),
1635
- text: (s) => r(
1636
- "raids",
1637
- "raids.pirate_cave.ev_no_trap.text",
1638
- {
1639
- rewards: a(
1640
- "ev_no_trap",
1641
- s,
1642
- e === "rudder" ? { xp: 55e3 } : e === "rescue_boat" ? { xp: 5e4, berry: 0 } : { xp: 5e4 },
1643
- void 0
1644
- )
1645
- }
1651
+ "raids.pirate_cave.ev_no_trap.title",
1652
+ { ns: "raids" }
1646
1653
  ),
1654
+ text: (s) => r("raids.pirate_cave.ev_no_trap.text", {
1655
+ ns: "raids",
1656
+ rewards: a(
1657
+ "ev_no_trap",
1658
+ s,
1659
+ e === "rudder" ? { xp: 55e3 } : e === "rescue_boat" ? { xp: 5e4, berry: 0 } : { xp: 5e4 },
1660
+ void 0
1661
+ )
1662
+ }),
1647
1663
  rewards: e === "rudder" ? { xp: 55e3 } : e === "rescue_boat" ? { xp: 5e4, berry: 0 } : { xp: 5e4 },
1648
1664
  penalties: void 0,
1649
1665
  outputs: [
1650
1666
  {
1651
1667
  id: "uc_open_chest",
1652
1668
  label: r(
1653
- "raids",
1654
- "raids.pirate_cave.uc_open_chest.label"
1669
+ "raids.pirate_cave.uc_open_chest.label",
1670
+ { ns: "raids" }
1655
1671
  ),
1656
1672
  output: {
1657
1673
  id: "end_open_chest",
1658
1674
  title: r(
1659
- "raids",
1660
- "raids.pirate_cave.end_open_chest.title"
1675
+ "raids.pirate_cave.end_open_chest.title",
1676
+ { ns: "raids" }
1661
1677
  ),
1662
1678
  text: (s) => r(
1663
- "raids",
1664
1679
  "raids.pirate_cave.end_open_chest.text",
1665
1680
  {
1681
+ ns: "raids",
1666
1682
  rewards: a(
1667
1683
  "end_open_chest",
1668
1684
  s,
@@ -1698,19 +1714,19 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1698
1714
  {
1699
1715
  id: "uc_explore_room",
1700
1716
  label: r(
1701
- "raids",
1702
- "raids.pirate_cave.uc_explore_room.label"
1717
+ "raids.pirate_cave.uc_explore_room.label",
1718
+ { ns: "raids" }
1703
1719
  ),
1704
1720
  output: {
1705
1721
  id: "end_explore_room",
1706
1722
  title: r(
1707
- "raids",
1708
- "raids.pirate_cave.end_explore_room.title"
1723
+ "raids.pirate_cave.end_explore_room.title",
1724
+ { ns: "raids" }
1709
1725
  ),
1710
1726
  text: (s) => r(
1711
- "raids",
1712
1727
  "raids.pirate_cave.end_explore_room.text",
1713
1728
  {
1729
+ ns: "raids",
1714
1730
  rewards: a(
1715
1731
  "end_explore_room",
1716
1732
  s,
@@ -1743,8 +1759,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1743
1759
  {
1744
1760
  id: "uc_dodge_traps",
1745
1761
  label: r(
1746
- "raids",
1747
- "raids.pirate_cave.uc_dodge_traps.label"
1762
+ "raids.pirate_cave.uc_dodge_traps.label",
1763
+ { ns: "raids" }
1748
1764
  ),
1749
1765
  output: {
1750
1766
  id: "c_agility_trap",
@@ -1752,13 +1768,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1752
1768
  success: {
1753
1769
  id: "ev_dodge_traps_success",
1754
1770
  title: r(
1755
- "raids",
1756
- "raids.pirate_cave.ev_dodge_traps_success.title"
1771
+ "raids.pirate_cave.ev_dodge_traps_success.title",
1772
+ { ns: "raids" }
1757
1773
  ),
1758
1774
  text: (s) => r(
1759
- "raids",
1760
1775
  "raids.pirate_cave.ev_dodge_traps_success.text",
1761
1776
  {
1777
+ ns: "raids",
1762
1778
  rewards: a(
1763
1779
  "ev_dodge_traps_success",
1764
1780
  s,
@@ -1773,19 +1789,19 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1773
1789
  {
1774
1790
  id: "uc_open_chest",
1775
1791
  label: r(
1776
- "raids",
1777
- "raids.pirate_cave.uc_open_chest.label"
1792
+ "raids.pirate_cave.uc_open_chest.label",
1793
+ { ns: "raids" }
1778
1794
  ),
1779
1795
  output: {
1780
1796
  id: "end_open_chest",
1781
1797
  title: r(
1782
- "raids",
1783
- "raids.pirate_cave.end_open_chest.title"
1798
+ "raids.pirate_cave.end_open_chest.title",
1799
+ { ns: "raids" }
1784
1800
  ),
1785
1801
  text: (s) => r(
1786
- "raids",
1787
1802
  "raids.pirate_cave.end_open_chest.text",
1788
1803
  {
1804
+ ns: "raids",
1789
1805
  rewards: a(
1790
1806
  "end_open_chest",
1791
1807
  s,
@@ -1821,19 +1837,19 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1821
1837
  {
1822
1838
  id: "uc_explore_room",
1823
1839
  label: r(
1824
- "raids",
1825
- "raids.pirate_cave.uc_explore_room.label"
1840
+ "raids.pirate_cave.uc_explore_room.label",
1841
+ { ns: "raids" }
1826
1842
  ),
1827
1843
  output: {
1828
1844
  id: "end_explore_room",
1829
1845
  title: r(
1830
- "raids",
1831
- "raids.pirate_cave.end_explore_room.title"
1846
+ "raids.pirate_cave.end_explore_room.title",
1847
+ { ns: "raids" }
1832
1848
  ),
1833
1849
  text: (s) => r(
1834
- "raids",
1835
1850
  "raids.pirate_cave.end_explore_room.text",
1836
1851
  {
1852
+ ns: "raids",
1837
1853
  rewards: a(
1838
1854
  "end_explore_room",
1839
1855
  s,
@@ -1865,13 +1881,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1865
1881
  failure: {
1866
1882
  id: "end_dodge_traps_failure",
1867
1883
  title: r(
1868
- "raids",
1869
- "raids.pirate_cave.end_dodge_traps_failure.title"
1884
+ "raids.pirate_cave.end_dodge_traps_failure.title",
1885
+ { ns: "raids" }
1870
1886
  ),
1871
1887
  text: (s) => r(
1872
- "raids",
1873
1888
  "raids.pirate_cave.end_dodge_traps_failure.text",
1874
1889
  {
1890
+ ns: "raids",
1875
1891
  rewards: a(
1876
1892
  "end_dodge_traps_failure",
1877
1893
  s,
@@ -1890,59 +1906,53 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1890
1906
  },
1891
1907
  {
1892
1908
  id: "uc_right_path",
1893
- label: r(
1894
- "raids",
1895
- "raids.pirate_cave.uc_right_path.label"
1896
- ),
1909
+ label: r("raids.pirate_cave.uc_right_path.label", {
1910
+ ns: "raids"
1911
+ }),
1897
1912
  output: {
1898
1913
  id: "ev_right_path",
1899
- title: r(
1900
- "raids",
1901
- "raids.pirate_cave.ev_right_path.title"
1902
- ),
1903
- text: r(
1904
- "raids",
1905
- "raids.pirate_cave.ev_right_path.text"
1906
- ),
1914
+ title: r("raids.pirate_cave.ev_right_path.title", {
1915
+ ns: "raids"
1916
+ }),
1917
+ text: r("raids.pirate_cave.ev_right_path.text", {
1918
+ ns: "raids"
1919
+ }),
1907
1920
  rewards: void 0,
1908
1921
  penalties: void 0,
1909
1922
  outputs: [
1910
1923
  {
1911
1924
  id: "uc_seek_chamber",
1912
1925
  label: r(
1913
- "raids",
1914
- "raids.pirate_cave.uc_seek_chamber.label"
1926
+ "raids.pirate_cave.uc_seek_chamber.label",
1927
+ { ns: "raids" }
1915
1928
  ),
1916
1929
  output: {
1917
1930
  id: "end_chamber",
1918
1931
  title: r(
1919
- "raids",
1920
- "raids.pirate_cave.end_chamber.title"
1921
- ),
1922
- text: (s) => r(
1923
- "raids",
1924
- "raids.pirate_cave.end_chamber.text",
1925
- {
1926
- rewards: a(
1927
- "end_chamber",
1928
- s,
1929
- e === "rudder" ? {
1930
- berry: 2e7,
1931
- xp: 27500,
1932
- scroll_wisdom: 1
1933
- } : e === "rescue_boat" ? {
1934
- berry: 3e7,
1935
- xp: 25e3,
1936
- scroll_wisdom: 1
1937
- } : {
1938
- berry: 2e7,
1939
- xp: 25e3,
1940
- scroll_wisdom: 1
1941
- },
1942
- void 0
1943
- )
1944
- }
1932
+ "raids.pirate_cave.end_chamber.title",
1933
+ { ns: "raids" }
1945
1934
  ),
1935
+ text: (s) => r("raids.pirate_cave.end_chamber.text", {
1936
+ ns: "raids",
1937
+ rewards: a(
1938
+ "end_chamber",
1939
+ s,
1940
+ e === "rudder" ? {
1941
+ berry: 2e7,
1942
+ xp: 27500,
1943
+ scroll_wisdom: 1
1944
+ } : e === "rescue_boat" ? {
1945
+ berry: 3e7,
1946
+ xp: 25e3,
1947
+ scroll_wisdom: 1
1948
+ } : {
1949
+ berry: 2e7,
1950
+ xp: 25e3,
1951
+ scroll_wisdom: 1
1952
+ },
1953
+ void 0
1954
+ )
1955
+ }),
1946
1956
  rewards: e === "rudder" ? {
1947
1957
  berry: 2e7,
1948
1958
  xp: 27500,
@@ -1962,18 +1972,18 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1962
1972
  {
1963
1973
  id: "uc_keep_going",
1964
1974
  label: r(
1965
- "raids",
1966
- "raids.pirate_cave.uc_keep_going.label"
1975
+ "raids.pirate_cave.uc_keep_going.label",
1976
+ { ns: "raids" }
1967
1977
  ),
1968
1978
  output: {
1969
1979
  id: "ev_ghost_trap",
1970
1980
  title: r(
1971
- "raids",
1972
- "raids.pirate_cave.ev_ghost_trap.title"
1981
+ "raids.pirate_cave.ev_ghost_trap.title",
1982
+ { ns: "raids" }
1973
1983
  ),
1974
1984
  text: r(
1975
- "raids",
1976
- "raids.pirate_cave.ev_ghost_trap.text"
1985
+ "raids.pirate_cave.ev_ghost_trap.text",
1986
+ { ns: "raids" }
1977
1987
  ),
1978
1988
  rewards: void 0,
1979
1989
  penalties: void 0,
@@ -1981,8 +1991,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1981
1991
  {
1982
1992
  id: "uc_fight_ghost",
1983
1993
  label: r(
1984
- "raids",
1985
- "raids.pirate_cave.uc_fight_ghost.label"
1994
+ "raids.pirate_cave.uc_fight_ghost.label",
1995
+ { ns: "raids" }
1986
1996
  ),
1987
1997
  output: {
1988
1998
  id: "c_strength_ghosts",
@@ -1990,13 +2000,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1990
2000
  success: {
1991
2001
  id: "end_fight_ghost_success",
1992
2002
  title: r(
1993
- "raids",
1994
- "raids.pirate_cave.end_fight_ghost_success.title"
2003
+ "raids.pirate_cave.end_fight_ghost_success.title",
2004
+ { ns: "raids" }
1995
2005
  ),
1996
2006
  text: (s) => r(
1997
- "raids",
1998
2007
  "raids.pirate_cave.end_fight_ghost_success.text",
1999
2008
  {
2009
+ ns: "raids",
2000
2010
  rewards: a(
2001
2011
  "end_fight_ghost_success",
2002
2012
  s,
@@ -2026,13 +2036,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2026
2036
  failure: {
2027
2037
  id: "end_fight_ghost_failure",
2028
2038
  title: r(
2029
- "raids",
2030
- "raids.pirate_cave.end_fight_ghost_failure.title"
2039
+ "raids.pirate_cave.end_fight_ghost_failure.title",
2040
+ { ns: "raids" }
2031
2041
  ),
2032
2042
  text: (s) => r(
2033
- "raids",
2034
2043
  "raids.pirate_cave.end_fight_ghost_failure.text",
2035
2044
  {
2045
+ ns: "raids",
2036
2046
  rewards: a(
2037
2047
  "end_fight_ghost_failure",
2038
2048
  s,
@@ -2058,8 +2068,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2058
2068
  {
2059
2069
  id: "uc_flee",
2060
2070
  label: r(
2061
- "raids",
2062
- "raids.pirate_cave.uc_flee.label"
2071
+ "raids.pirate_cave.uc_flee.label",
2072
+ { ns: "raids" }
2063
2073
  ),
2064
2074
  output: {
2065
2075
  id: "c_agility_ghosts",
@@ -2067,13 +2077,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2067
2077
  success: {
2068
2078
  id: "end_flee_ghost_success",
2069
2079
  title: r(
2070
- "raids",
2071
- "raids.pirate_cave.end_flee_ghost_success.title"
2080
+ "raids.pirate_cave.end_flee_ghost_success.title",
2081
+ { ns: "raids" }
2072
2082
  ),
2073
2083
  text: (s) => r(
2074
- "raids",
2075
2084
  "raids.pirate_cave.end_flee_ghost_success.text",
2076
2085
  {
2086
+ ns: "raids",
2077
2087
  rewards: a(
2078
2088
  "end_flee_ghost_success",
2079
2089
  s,
@@ -2088,13 +2098,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2088
2098
  failure: {
2089
2099
  id: "end_flee_ghost_failure",
2090
2100
  title: r(
2091
- "raids",
2092
- "raids.pirate_cave.end_flee_ghost_failure.title"
2101
+ "raids.pirate_cave.end_flee_ghost_failure.title",
2102
+ { ns: "raids" }
2093
2103
  ),
2094
2104
  text: (s) => r(
2095
- "raids",
2096
2105
  "raids.pirate_cave.end_flee_ghost_failure.text",
2097
2106
  {
2107
+ ns: "raids",
2098
2108
  rewards: a(
2099
2109
  "end_flee_ghost_failure",
2100
2110
  s,
@@ -2125,39 +2135,38 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2125
2135
  },
2126
2136
  {
2127
2137
  id: "uc_walk_dark",
2128
- label: r("raids", "raids.pirate_cave.uc_walk_dark.label"),
2138
+ label: r("raids.pirate_cave.uc_walk_dark.label", {
2139
+ ns: "raids"
2140
+ }),
2129
2141
  output: {
2130
2142
  id: "ev_secret_passage",
2131
- title: r(
2132
- "raids",
2133
- "raids.pirate_cave.ev_secret_passage.title"
2134
- ),
2135
- text: r(
2136
- "raids",
2137
- "raids.pirate_cave.ev_secret_passage.text"
2138
- ),
2143
+ title: r("raids.pirate_cave.ev_secret_passage.title", {
2144
+ ns: "raids"
2145
+ }),
2146
+ text: r("raids.pirate_cave.ev_secret_passage.text", {
2147
+ ns: "raids"
2148
+ }),
2139
2149
  rewards: void 0,
2140
2150
  penalties: void 0,
2141
2151
  outputs: [
2142
2152
  {
2143
2153
  id: "uc_sneak_walk",
2144
- label: r(
2145
- "raids",
2146
- "raids.pirate_cave.uc_sneak_walk.label"
2147
- ),
2154
+ label: r("raids.pirate_cave.uc_sneak_walk.label", {
2155
+ ns: "raids"
2156
+ }),
2148
2157
  output: {
2149
2158
  id: "c_agility_sneak_walk",
2150
2159
  requirements: e === "sailing_boat" ? { agility: 103.5 } : { agility: 115 },
2151
2160
  success: {
2152
2161
  id: "ev_sneak_walk_success",
2153
2162
  title: r(
2154
- "raids",
2155
- "raids.pirate_cave.ev_sneak_walk_success.title"
2163
+ "raids.pirate_cave.ev_sneak_walk_success.title",
2164
+ { ns: "raids" }
2156
2165
  ),
2157
2166
  text: (s) => r(
2158
- "raids",
2159
2167
  "raids.pirate_cave.ev_sneak_walk_success.text",
2160
2168
  {
2169
+ ns: "raids",
2161
2170
  rewards: a(
2162
2171
  "ev_sneak_walk_success",
2163
2172
  s,
@@ -2172,8 +2181,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2172
2181
  {
2173
2182
  id: "uc_fill_bag",
2174
2183
  label: r(
2175
- "raids",
2176
- "raids.pirate_cave.uc_fill_bag.label"
2184
+ "raids.pirate_cave.uc_fill_bag.label",
2185
+ { ns: "raids" }
2177
2186
  ),
2178
2187
  output: {
2179
2188
  id: "c_strength_fill_bag",
@@ -2181,13 +2190,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2181
2190
  success: {
2182
2191
  id: "end_fill_bag_success",
2183
2192
  title: r(
2184
- "raids",
2185
- "raids.pirate_cave.end_fill_bag_success.title"
2193
+ "raids.pirate_cave.end_fill_bag_success.title",
2194
+ { ns: "raids" }
2186
2195
  ),
2187
2196
  text: (s) => r(
2188
- "raids",
2189
2197
  "raids.pirate_cave.end_fill_bag_success.text",
2190
2198
  {
2199
+ ns: "raids",
2191
2200
  rewards: a(
2192
2201
  "end_fill_bag_success",
2193
2202
  s,
@@ -2242,13 +2251,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2242
2251
  failure: {
2243
2252
  id: "end_fill_bag_failure",
2244
2253
  title: r(
2245
- "raids",
2246
- "raids.pirate_cave.end_fill_bag_failure.title"
2254
+ "raids.pirate_cave.end_fill_bag_failure.title",
2255
+ { ns: "raids" }
2247
2256
  ),
2248
2257
  text: (s) => r(
2249
- "raids",
2250
2258
  "raids.pirate_cave.end_fill_bag_failure.text",
2251
2259
  {
2260
+ ns: "raids",
2252
2261
  rewards: a(
2253
2262
  "end_fill_bag_failure",
2254
2263
  s,
@@ -2295,13 +2304,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2295
2304
  failure: {
2296
2305
  id: "ev_sneak_walk_failure",
2297
2306
  title: r(
2298
- "raids",
2299
- "raids.pirate_cave.ev_sneak_walk_failure.title"
2307
+ "raids.pirate_cave.ev_sneak_walk_failure.title",
2308
+ { ns: "raids" }
2300
2309
  ),
2301
2310
  text: (s) => r(
2302
- "raids",
2303
2311
  "raids.pirate_cave.ev_sneak_walk_failure.text",
2304
2312
  {
2313
+ ns: "raids",
2305
2314
  rewards: a(
2306
2315
  "ev_sneak_walk_failure",
2307
2316
  s,
@@ -2316,8 +2325,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2316
2325
  {
2317
2326
  id: "uc_keep_breath",
2318
2327
  label: r(
2319
- "raids",
2320
- "raids.pirate_cave.uc_keep_breath.label"
2328
+ "raids.pirate_cave.uc_keep_breath.label",
2329
+ { ns: "raids" }
2321
2330
  ),
2322
2331
  output: {
2323
2332
  id: "c_chance_keep_breath",
@@ -2325,13 +2334,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2325
2334
  success: {
2326
2335
  id: "ev_keep_breath_success",
2327
2336
  title: r(
2328
- "raids",
2329
- "raids.pirate_cave.ev_keep_breath_success.title"
2337
+ "raids.pirate_cave.ev_keep_breath_success.title",
2338
+ { ns: "raids" }
2330
2339
  ),
2331
2340
  text: (s) => r(
2332
- "raids",
2333
2341
  "raids.pirate_cave.ev_keep_breath_success.text",
2334
2342
  {
2343
+ ns: "raids",
2335
2344
  rewards: a(
2336
2345
  "ev_keep_breath_success",
2337
2346
  s,
@@ -2346,8 +2355,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2346
2355
  {
2347
2356
  id: "uc_fill_bag",
2348
2357
  label: r(
2349
- "raids",
2350
- "raids.pirate_cave.uc_fill_bag.label"
2358
+ "raids.pirate_cave.uc_fill_bag.label",
2359
+ { ns: "raids" }
2351
2360
  ),
2352
2361
  output: {
2353
2362
  id: "c_strength_fill_bag",
@@ -2355,13 +2364,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2355
2364
  success: {
2356
2365
  id: "end_fill_bag_success",
2357
2366
  title: r(
2358
- "raids",
2359
- "raids.pirate_cave.end_fill_bag_success.title"
2367
+ "raids.pirate_cave.end_fill_bag_success.title",
2368
+ { ns: "raids" }
2360
2369
  ),
2361
2370
  text: (s) => r(
2362
- "raids",
2363
2371
  "raids.pirate_cave.end_fill_bag_success.text",
2364
2372
  {
2373
+ ns: "raids",
2365
2374
  rewards: a(
2366
2375
  "end_fill_bag_success",
2367
2376
  s,
@@ -2416,13 +2425,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2416
2425
  failure: {
2417
2426
  id: "end_fill_bag_failure",
2418
2427
  title: r(
2419
- "raids",
2420
- "raids.pirate_cave.end_fill_bag_failure.title"
2428
+ "raids.pirate_cave.end_fill_bag_failure.title",
2429
+ { ns: "raids" }
2421
2430
  ),
2422
2431
  text: (s) => r(
2423
- "raids",
2424
2432
  "raids.pirate_cave.end_fill_bag_failure.text",
2425
2433
  {
2434
+ ns: "raids",
2426
2435
  rewards: a(
2427
2436
  "end_fill_bag_failure",
2428
2437
  s,
@@ -2469,13 +2478,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2469
2478
  failure: {
2470
2479
  id: "ev_keep_breath_failure",
2471
2480
  title: r(
2472
- "raids",
2473
- "raids.pirate_cave.ev_keep_breath_failure.title"
2481
+ "raids.pirate_cave.ev_keep_breath_failure.title",
2482
+ { ns: "raids" }
2474
2483
  ),
2475
2484
  text: (s) => r(
2476
- "raids",
2477
2485
  "raids.pirate_cave.ev_keep_breath_failure.text",
2478
2486
  {
2487
+ ns: "raids",
2479
2488
  rewards: a(
2480
2489
  "ev_keep_breath_failure",
2481
2490
  s,
@@ -2490,8 +2499,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2490
2499
  {
2491
2500
  id: "uc_fight_pirate",
2492
2501
  label: r(
2493
- "raids",
2494
- "raids.pirate_cave.uc_fight_pirate.label"
2502
+ "raids.pirate_cave.uc_fight_pirate.label",
2503
+ { ns: "raids" }
2495
2504
  ),
2496
2505
  output: {
2497
2506
  id: "c_strength_fight_pirate",
@@ -2499,13 +2508,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2499
2508
  success: {
2500
2509
  id: "end_fight_pirate_success",
2501
2510
  title: r(
2502
- "raids",
2503
- "raids.pirate_cave.end_fight_pirate_success.title"
2511
+ "raids.pirate_cave.end_fight_pirate_success.title",
2512
+ { ns: "raids" }
2504
2513
  ),
2505
2514
  text: (s) => r(
2506
- "raids",
2507
2515
  "raids.pirate_cave.end_fight_pirate_success.text",
2508
2516
  {
2517
+ ns: "raids",
2509
2518
  rewards: a(
2510
2519
  "end_fight_pirate_success",
2511
2520
  s,
@@ -2548,13 +2557,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2548
2557
  failure: {
2549
2558
  id: "end_fight_pirate_failure",
2550
2559
  title: r(
2551
- "raids",
2552
- "raids.pirate_cave.end_fight_pirate_failure.title"
2560
+ "raids.pirate_cave.end_fight_pirate_failure.title",
2561
+ { ns: "raids" }
2553
2562
  ),
2554
2563
  text: (s) => r(
2555
- "raids",
2556
2564
  "raids.pirate_cave.end_fight_pirate_failure.text",
2557
2565
  {
2566
+ ns: "raids",
2558
2567
  rewards: a(
2559
2568
  "end_fight_pirate_failure",
2560
2569
  s,
@@ -2574,8 +2583,8 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2574
2583
  {
2575
2584
  id: "uc_flee",
2576
2585
  label: r(
2577
- "raids",
2578
- "raids.pirate_cave.uc_flee.label"
2586
+ "raids.pirate_cave.uc_flee.label",
2587
+ { ns: "raids" }
2579
2588
  ),
2580
2589
  output: {
2581
2590
  id: "c_agility_flee_pirate",
@@ -2583,13 +2592,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2583
2592
  success: {
2584
2593
  id: "end_flee_pirate_success",
2585
2594
  title: r(
2586
- "raids",
2587
- "raids.pirate_cave.end_flee_pirate_success.title"
2595
+ "raids.pirate_cave.end_flee_pirate_success.title",
2596
+ { ns: "raids" }
2588
2597
  ),
2589
2598
  text: (s) => r(
2590
- "raids",
2591
2599
  "raids.pirate_cave.end_flee_pirate_success.text",
2592
2600
  {
2601
+ ns: "raids",
2593
2602
  rewards: a(
2594
2603
  "end_flee_pirate_success",
2595
2604
  s,
@@ -2607,13 +2616,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2607
2616
  failure: {
2608
2617
  id: "end_flee_pirate_failure",
2609
2618
  title: r(
2610
- "raids",
2611
- "raids.pirate_cave.end_flee_pirate_failure.title"
2619
+ "raids.pirate_cave.end_flee_pirate_failure.title",
2620
+ { ns: "raids" }
2612
2621
  ),
2613
2622
  text: (s) => r(
2614
- "raids",
2615
2623
  "raids.pirate_cave.end_flee_pirate_failure.text",
2616
2624
  {
2625
+ ns: "raids",
2617
2626
  rewards: a(
2618
2627
  "end_flee_pirate_failure",
2619
2628
  s,
@@ -2640,23 +2649,22 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2640
2649
  },
2641
2650
  {
2642
2651
  id: "uc_stun_pirate",
2643
- label: r(
2644
- "raids",
2645
- "raids.pirate_cave.uc_stun_pirate.label"
2646
- ),
2652
+ label: r("raids.pirate_cave.uc_stun_pirate.label", {
2653
+ ns: "raids"
2654
+ }),
2647
2655
  output: {
2648
2656
  id: "c_strength_stun_pirate",
2649
2657
  requirements: e === "sailing_boat" ? { strength: 67.5 } : { strength: 75 },
2650
2658
  success: {
2651
2659
  id: "end_stun_pirate_success",
2652
2660
  title: r(
2653
- "raids",
2654
- "raids.pirate_cave.end_stun_pirate_success.title"
2661
+ "raids.pirate_cave.end_stun_pirate_success.title",
2662
+ { ns: "raids" }
2655
2663
  ),
2656
2664
  text: (s) => r(
2657
- "raids",
2658
2665
  "raids.pirate_cave.end_stun_pirate_success.text",
2659
2666
  {
2667
+ ns: "raids",
2660
2668
  rewards: a(
2661
2669
  "end_stun_pirate_success",
2662
2670
  s,
@@ -2703,13 +2711,13 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2703
2711
  failure: {
2704
2712
  id: "end_stun_pirate_failure",
2705
2713
  title: r(
2706
- "raids",
2707
- "raids.pirate_cave.end_stun_pirate_failure.title"
2714
+ "raids.pirate_cave.end_stun_pirate_failure.title",
2715
+ { ns: "raids" }
2708
2716
  ),
2709
2717
  text: (s) => r(
2710
- "raids",
2711
2718
  "raids.pirate_cave.end_stun_pirate_failure.text",
2712
2719
  {
2720
+ ns: "raids",
2713
2721
  rewards: a(
2714
2722
  "end_stun_pirate_failure",
2715
2723
  s,
@@ -2734,49 +2742,55 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2734
2742
  }
2735
2743
  ]
2736
2744
  }
2737
- }), R = (e) => ({
2745
+ }), P = async (e) => ({
2738
2746
  id: "resources",
2739
- name: r("raids", "raids.resources.name"),
2740
- description: r("raids", "raids.resources.description"),
2747
+ name: r("raids.resources.name", { ns: "raids" }),
2748
+ description: r("raids.resources.description", { ns: "raids" }),
2741
2749
  cooldown: 6048e5,
2742
2750
  type: "special",
2743
2751
  start: {
2744
2752
  id: "ev_start",
2745
- title: r("raids", "raids.resources.ev_start.title"),
2746
- text: r("raids", "raids.resources.ev_start.text"),
2753
+ title: r("raids.resources.ev_start.title", { ns: "raids" }),
2754
+ text: r("raids.resources.ev_start.text", { ns: "raids" }),
2747
2755
  rewards: void 0,
2748
2756
  penalties: void 0,
2749
2757
  outputs: [
2750
2758
  {
2751
2759
  id: "uc_explore_forest",
2752
- label: r("raids", "raids.resources.uc_explore_forest.label"),
2760
+ label: r("raids.resources.uc_explore_forest.label", { ns: "raids" }),
2753
2761
  output: {
2754
2762
  id: "ev_enter_forest",
2755
- title: r("raids", "raids.resources.ev_enter_forest.title"),
2756
- text: r("raids", "raids.resources.ev_enter_forest.text"),
2763
+ title: r("raids.resources.ev_enter_forest.title", { ns: "raids" }),
2764
+ text: r("raids.resources.ev_enter_forest.text", { ns: "raids" }),
2757
2765
  rewards: void 0,
2758
2766
  penalties: void 0,
2759
2767
  outputs: [
2760
2768
  {
2761
2769
  id: "uc_search_wood",
2762
- label: r("raids", "raids.resources.uc_search_wood.label"),
2770
+ label: r("raids.resources.uc_search_wood.label", { ns: "raids" }),
2763
2771
  output: {
2764
2772
  id: "ev_search_wood",
2765
- title: r("raids", "raids.resources.ev_search_wood.title"),
2766
- text: r("raids", "raids.resources.ev_search_wood.text"),
2773
+ title: r("raids.resources.ev_search_wood.title", {
2774
+ ns: "raids"
2775
+ }),
2776
+ text: r("raids.resources.ev_search_wood.text", { ns: "raids" }),
2767
2777
  rewards: void 0,
2768
2778
  penalties: void 0,
2769
2779
  outputs: [
2770
2780
  {
2771
2781
  id: "rq_wood",
2772
2782
  requirements: { tools: 1 },
2773
- label: r("raids", "raids.resources.rq_wood.label", {
2774
- requirements: _("tools").name(1)
2783
+ label: r("raids.resources.rq_wood.label", {
2784
+ ns: "raids",
2785
+ requirements: await o("tools", 1)
2775
2786
  }),
2776
2787
  output: {
2777
2788
  id: "end_wood_big",
2778
- title: r("raids", "raids.resources.end_wood_big.title"),
2779
- text: (s) => r("raids", "raids.resources.end_wood_big.text", {
2789
+ title: r("raids.resources.end_wood_big.title", {
2790
+ ns: "raids"
2791
+ }),
2792
+ text: (s) => r("raids.resources.end_wood_big.text", {
2793
+ ns: "raids",
2780
2794
  rewards: a(
2781
2795
  "end_wood_big",
2782
2796
  s,
@@ -2790,14 +2804,14 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2790
2804
  },
2791
2805
  {
2792
2806
  id: "uc_wood",
2793
- label: r("raids", "raids.resources.uc_wood.label"),
2807
+ label: r("raids.resources.uc_wood.label", { ns: "raids" }),
2794
2808
  output: {
2795
2809
  id: "end_wood_small",
2796
- title: r(
2797
- "raids",
2798
- "raids.resources.end_wood_small.title"
2799
- ),
2800
- text: (s) => r("raids", "raids.resources.end_wood_small.text", {
2810
+ title: r("raids.resources.end_wood_small.title", {
2811
+ ns: "raids"
2812
+ }),
2813
+ text: (s) => r("raids.resources.end_wood_small.text", {
2814
+ ns: "raids",
2801
2815
  rewards: a(
2802
2816
  "end_wood_small",
2803
2817
  s,
@@ -2814,24 +2828,28 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2814
2828
  },
2815
2829
  {
2816
2830
  id: "uc_search_iron",
2817
- label: r("raids", "raids.resources.uc_search_iron.label"),
2831
+ label: r("raids.resources.uc_search_iron.label", { ns: "raids" }),
2818
2832
  output: {
2819
2833
  id: "ev_goto_mine",
2820
- title: r("raids", "raids.resources.ev_goto_mine.title"),
2821
- text: r("raids", "raids.resources.ev_goto_mine.text"),
2834
+ title: r("raids.resources.ev_goto_mine.title", { ns: "raids" }),
2835
+ text: r("raids.resources.ev_goto_mine.text", { ns: "raids" }),
2822
2836
  rewards: void 0,
2823
2837
  penalties: void 0,
2824
2838
  outputs: [
2825
2839
  {
2826
2840
  id: "rq_iron",
2827
2841
  requirements: { tools: 1 },
2828
- label: r("raids", "raids.resources.rq_iron.label", {
2829
- requirements: _("tools").name(1)
2842
+ label: r("raids.resources.rq_iron.label", {
2843
+ ns: "raids",
2844
+ requirements: await o("tools", 1)
2830
2845
  }),
2831
2846
  output: {
2832
2847
  id: "end_iron_big",
2833
- title: r("raids", "raids.resources.end_iron_big.title"),
2834
- text: (s) => r("raids", "raids.resources.end_iron_big.text", {
2848
+ title: r("raids.resources.end_iron_big.title", {
2849
+ ns: "raids"
2850
+ }),
2851
+ text: (s) => r("raids.resources.end_iron_big.text", {
2852
+ ns: "raids",
2835
2853
  rewards: a(
2836
2854
  "end_iron_big",
2837
2855
  s,
@@ -2845,14 +2863,14 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2845
2863
  },
2846
2864
  {
2847
2865
  id: "uc_iron",
2848
- label: r("raids", "raids.resources.uc_iron.label"),
2866
+ label: r("raids.resources.uc_iron.label", { ns: "raids" }),
2849
2867
  output: {
2850
2868
  id: "end_iron_small",
2851
- title: r(
2852
- "raids",
2853
- "raids.resources.end_iron_small.title"
2854
- ),
2855
- text: (s) => r("raids", "raids.resources.end_iron_small.text", {
2869
+ title: r("raids.resources.end_iron_small.title", {
2870
+ ns: "raids"
2871
+ }),
2872
+ text: (s) => r("raids.resources.end_iron_small.text", {
2873
+ ns: "raids",
2856
2874
  rewards: a(
2857
2875
  "end_iron_small",
2858
2876
  s,
@@ -2872,34 +2890,38 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2872
2890
  },
2873
2891
  {
2874
2892
  id: "uc_explore_beach",
2875
- label: r("raids", "raids.resources.uc_explore_beach.label"),
2893
+ label: r("raids.resources.uc_explore_beach.label", { ns: "raids" }),
2876
2894
  output: {
2877
2895
  id: "ev_enter_beach",
2878
- title: r("raids", "raids.resources.ev_enter_beach.title"),
2879
- text: r("raids", "raids.resources.ev_enter_beach.text"),
2896
+ title: r("raids.resources.ev_enter_beach.title", { ns: "raids" }),
2897
+ text: r("raids.resources.ev_enter_beach.text", { ns: "raids" }),
2880
2898
  rewards: void 0,
2881
2899
  penalties: void 0,
2882
2900
  outputs: [
2883
2901
  {
2884
2902
  id: "uc_goto_herbs",
2885
- label: r("raids", "raids.resources.uc_goto_herbs.label"),
2903
+ label: r("raids.resources.uc_goto_herbs.label", { ns: "raids" }),
2886
2904
  output: {
2887
2905
  id: "ev_hemp",
2888
- title: r("raids", "raids.resources.ev_hemp.title"),
2889
- text: r("raids", "raids.resources.ev_hemp.text"),
2906
+ title: r("raids.resources.ev_hemp.title", { ns: "raids" }),
2907
+ text: r("raids.resources.ev_hemp.text", { ns: "raids" }),
2890
2908
  rewards: void 0,
2891
2909
  penalties: void 0,
2892
2910
  outputs: [
2893
2911
  {
2894
2912
  id: "rq_hemp",
2895
2913
  requirements: { tools: 1 },
2896
- label: r("raids", "raids.resources.rq_hemp.label", {
2897
- requirements: _("tools").name(1)
2914
+ label: r("raids.resources.rq_hemp.label", {
2915
+ ns: "raids",
2916
+ requirements: await o("tools", 1)
2898
2917
  }),
2899
2918
  output: {
2900
2919
  id: "end_hemp_big",
2901
- title: r("raids", "raids.resources.end_hemp_big.title"),
2902
- text: (s) => r("raids", "raids.resources.end_hemp_big.text", {
2920
+ title: r("raids.resources.end_hemp_big.title", {
2921
+ ns: "raids"
2922
+ }),
2923
+ text: (s) => r("raids.resources.end_hemp_big.text", {
2924
+ ns: "raids",
2903
2925
  rewards: a(
2904
2926
  "end_hemp_big",
2905
2927
  s,
@@ -2913,14 +2935,14 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2913
2935
  },
2914
2936
  {
2915
2937
  id: "uc_hemp",
2916
- label: r("raids", "raids.resources.uc_hemp.label"),
2938
+ label: r("raids.resources.uc_hemp.label", { ns: "raids" }),
2917
2939
  output: {
2918
2940
  id: "end_hemp_small",
2919
- title: r(
2920
- "raids",
2921
- "raids.resources.end_hemp_small.title"
2922
- ),
2923
- text: (s) => r("raids", "raids.resources.end_hemp_small.text", {
2941
+ title: r("raids.resources.end_hemp_small.title", {
2942
+ ns: "raids"
2943
+ }),
2944
+ text: (s) => r("raids.resources.end_hemp_small.text", {
2945
+ ns: "raids",
2924
2946
  rewards: a(
2925
2947
  "end_hemp_small",
2926
2948
  s,
@@ -2937,63 +2959,60 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2937
2959
  },
2938
2960
  {
2939
2961
  id: "uc_search_salt_water",
2940
- label: r("raids", "raids.resources.uc_search_salt_water.label"),
2962
+ label: r("raids.resources.uc_search_salt_water.label", {
2963
+ ns: "raids"
2964
+ }),
2941
2965
  output: {
2942
2966
  id: "ev_salt_water",
2943
- title: r("raids", "raids.resources.ev_salt_water.title"),
2944
- text: r("raids", "raids.resources.ev_salt_water.text"),
2967
+ title: r("raids.resources.ev_salt_water.title", {
2968
+ ns: "raids"
2969
+ }),
2970
+ text: r("raids.resources.ev_salt_water.text", { ns: "raids" }),
2945
2971
  rewards: void 0,
2946
2972
  penalties: void 0,
2947
2973
  outputs: [
2948
2974
  {
2949
2975
  id: "rq_bowl",
2950
2976
  requirements: { bowl: 1 },
2951
- label: r("raids", "raids.resources.rq_bowl.label", {
2952
- requirements: _("bowl").name(1)
2977
+ label: r("raids.resources.rq_bowl.label", {
2978
+ ns: "raids",
2979
+ requirements: await o("bowl", 1)
2953
2980
  }),
2954
2981
  output: {
2955
2982
  id: "end_salt_water_big",
2956
- title: r(
2957
- "raids",
2958
- "raids.resources.end_salt_water_big.title"
2959
- ),
2960
- text: (s) => r(
2961
- "raids",
2962
- "raids.resources.end_salt_water_big.text",
2963
- {
2964
- rewards: a(
2965
- "end_salt_water_big",
2966
- s,
2967
- e === "rudder" ? { salt_water: 10, xp: 0 } : e === "rescue_boat" ? { salt_water: 10, berry: 0 } : { salt_water: 10 },
2968
- void 0
2969
- )
2970
- }
2971
- ),
2983
+ title: r("raids.resources.end_salt_water_big.title", {
2984
+ ns: "raids"
2985
+ }),
2986
+ text: (s) => r("raids.resources.end_salt_water_big.text", {
2987
+ ns: "raids",
2988
+ rewards: a(
2989
+ "end_salt_water_big",
2990
+ s,
2991
+ e === "rudder" ? { salt_water: 10, xp: 0 } : e === "rescue_boat" ? { salt_water: 10, berry: 0 } : { salt_water: 10 },
2992
+ void 0
2993
+ )
2994
+ }),
2972
2995
  rewards: e === "rudder" ? { salt_water: 10, xp: 0 } : e === "rescue_boat" ? { salt_water: 10, berry: 0 } : { salt_water: 10 },
2973
2996
  penalties: void 0
2974
2997
  }
2975
2998
  },
2976
2999
  {
2977
3000
  id: "uc_bowl",
2978
- label: r("raids", "raids.resources.uc_bowl.label"),
3001
+ label: r("raids.resources.uc_bowl.label", { ns: "raids" }),
2979
3002
  output: {
2980
3003
  id: "end_salt_water_small",
2981
- title: r(
2982
- "raids",
2983
- "raids.resources.end_salt_water_small.title"
2984
- ),
2985
- text: (s) => r(
2986
- "raids",
2987
- "raids.resources.end_salt_water_small.text",
2988
- {
2989
- rewards: a(
2990
- "end_salt_water_small",
2991
- s,
2992
- e === "rudder" ? { salt_water: 5, xp: 0 } : e === "rescue_boat" ? { salt_water: 5, berry: 0 } : { salt_water: 5 },
2993
- void 0
2994
- )
2995
- }
2996
- ),
3004
+ title: r("raids.resources.end_salt_water_small.title", {
3005
+ ns: "raids"
3006
+ }),
3007
+ text: (s) => r("raids.resources.end_salt_water_small.text", {
3008
+ ns: "raids",
3009
+ rewards: a(
3010
+ "end_salt_water_small",
3011
+ s,
3012
+ e === "rudder" ? { salt_water: 5, xp: 0 } : e === "rescue_boat" ? { salt_water: 5, berry: 0 } : { salt_water: 5 },
3013
+ void 0
3014
+ )
3015
+ }),
2997
3016
  rewards: e === "rudder" ? { salt_water: 5, xp: 0 } : e === "rescue_boat" ? { salt_water: 5, berry: 0 } : { salt_water: 5 },
2998
3017
  penalties: void 0
2999
3018
  }
@@ -3006,37 +3025,44 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3006
3025
  },
3007
3026
  {
3008
3027
  id: "uc_goto_plains",
3009
- label: r("raids", "raids.resources.uc_goto_plains.label"),
3028
+ label: r("raids.resources.uc_goto_plains.label", { ns: "raids" }),
3010
3029
  output: {
3011
3030
  id: "ev_enter_plains",
3012
- title: r("raids", "raids.resources.ev_enter_plains.title"),
3013
- text: r("raids", "raids.resources.ev_enter_plains.text"),
3031
+ title: r("raids.resources.ev_enter_plains.title", { ns: "raids" }),
3032
+ text: r("raids.resources.ev_enter_plains.text", { ns: "raids" }),
3014
3033
  rewards: void 0,
3015
3034
  penalties: void 0,
3016
3035
  outputs: [
3017
3036
  {
3018
3037
  id: "uc_search_cereal",
3019
- label: r("raids", "raids.resources.uc_search_cereal.label"),
3038
+ label: r("raids.resources.uc_search_cereal.label", {
3039
+ ns: "raids"
3040
+ }),
3020
3041
  output: {
3021
3042
  id: "ev_search_cereal",
3022
- title: r("raids", "raids.resources.ev_search_cereal.title"),
3023
- text: r("raids", "raids.resources.ev_search_cereal.text"),
3043
+ title: r("raids.resources.ev_search_cereal.title", {
3044
+ ns: "raids"
3045
+ }),
3046
+ text: r("raids.resources.ev_search_cereal.text", {
3047
+ ns: "raids"
3048
+ }),
3024
3049
  rewards: void 0,
3025
3050
  penalties: void 0,
3026
3051
  outputs: [
3027
3052
  {
3028
3053
  id: "rq_cereal",
3029
3054
  requirements: { tools: 1 },
3030
- label: r("raids", "raids.resources.rq_cereal.label", {
3031
- requirements: _("tools").name(1)
3055
+ label: r("raids.resources.rq_cereal.label", {
3056
+ ns: "raids",
3057
+ requirements: await o("tools", 1)
3032
3058
  }),
3033
3059
  output: {
3034
3060
  id: "end_cereal_big",
3035
- title: r(
3036
- "raids",
3037
- "raids.resources.end_cereal_big.title"
3038
- ),
3039
- text: (s) => r("raids", "raids.resources.end_cereal_big.text", {
3061
+ title: r("raids.resources.end_cereal_big.title", {
3062
+ ns: "raids"
3063
+ }),
3064
+ text: (s) => r("raids.resources.end_cereal_big.text", {
3065
+ ns: "raids",
3040
3066
  rewards: a(
3041
3067
  "end_cereal_big",
3042
3068
  s,
@@ -3050,14 +3076,16 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3050
3076
  },
3051
3077
  {
3052
3078
  id: "uc_cereal",
3053
- label: r("raids", "raids.resources.uc_cereal.label"),
3079
+ label: r("raids.resources.uc_cereal.label", {
3080
+ ns: "raids"
3081
+ }),
3054
3082
  output: {
3055
3083
  id: "end_cereal_small",
3056
- title: r(
3057
- "raids",
3058
- "raids.resources.end_cereal_small.title"
3059
- ),
3060
- text: (s) => r("raids", "raids.resources.end_cereal_small.text", {
3084
+ title: r("raids.resources.end_cereal_small.title", {
3085
+ ns: "raids"
3086
+ }),
3087
+ text: (s) => r("raids.resources.end_cereal_small.text", {
3088
+ ns: "raids",
3061
3089
  rewards: a(
3062
3090
  "end_cereal_small",
3063
3091
  s,
@@ -3074,27 +3102,34 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3074
3102
  },
3075
3103
  {
3076
3104
  id: "uc_search_cotton",
3077
- label: r("raids", "raids.resources.uc_search_cotton.label"),
3105
+ label: r("raids.resources.uc_search_cotton.label", {
3106
+ ns: "raids"
3107
+ }),
3078
3108
  output: {
3079
3109
  id: "ev_search_cotton",
3080
- title: r("raids", "raids.resources.ev_search_cotton.title"),
3081
- text: r("raids", "raids.resources.ev_search_cotton.text"),
3110
+ title: r("raids.resources.ev_search_cotton.title", {
3111
+ ns: "raids"
3112
+ }),
3113
+ text: r("raids.resources.ev_search_cotton.text", {
3114
+ ns: "raids"
3115
+ }),
3082
3116
  rewards: void 0,
3083
3117
  penalties: void 0,
3084
3118
  outputs: [
3085
3119
  {
3086
3120
  id: "rq_cotton",
3087
3121
  requirements: { tools: 1 },
3088
- label: r("raids", "raids.resources.rq_cotton.label", {
3089
- requirements: _("tools").name(1)
3122
+ label: r("raids.resources.rq_cotton.label", {
3123
+ ns: "raids",
3124
+ requirements: await o("tools", 1)
3090
3125
  }),
3091
3126
  output: {
3092
3127
  id: "end_cotton_big",
3093
- title: r(
3094
- "raids",
3095
- "raids.resources.end_cotton_big.title"
3096
- ),
3097
- text: (s) => r("raids", "raids.resources.end_cotton_big.text", {
3128
+ title: r("raids.resources.end_cotton_big.title", {
3129
+ ns: "raids"
3130
+ }),
3131
+ text: (s) => r("raids.resources.end_cotton_big.text", {
3132
+ ns: "raids",
3098
3133
  rewards: a(
3099
3134
  "end_cotton_big",
3100
3135
  s,
@@ -3108,14 +3143,16 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3108
3143
  },
3109
3144
  {
3110
3145
  id: "uc_cotton",
3111
- label: r("raids", "raids.resources.uc_cotton.label"),
3146
+ label: r("raids.resources.uc_cotton.label", {
3147
+ ns: "raids"
3148
+ }),
3112
3149
  output: {
3113
3150
  id: "end_cotton_small",
3114
- title: r(
3115
- "raids",
3116
- "raids.resources.end_cotton_small.title"
3117
- ),
3118
- text: (s) => r("raids", "raids.resources.end_cotton_small.text", {
3151
+ title: r("raids.resources.end_cotton_small.title", {
3152
+ ns: "raids"
3153
+ }),
3154
+ text: (s) => r("raids.resources.end_cotton_small.text", {
3155
+ ns: "raids",
3119
3156
  rewards: a(
3120
3157
  "end_cotton_small",
3121
3158
  s,
@@ -3132,27 +3169,30 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3132
3169
  },
3133
3170
  {
3134
3171
  id: "uc_search_fruit",
3135
- label: r("raids", "raids.resources.uc_search_fruit.label"),
3172
+ label: r("raids.resources.uc_search_fruit.label", {
3173
+ ns: "raids"
3174
+ }),
3136
3175
  output: {
3137
3176
  id: "ev_fruit",
3138
- title: r("raids", "raids.resources.ev_fruit.title"),
3139
- text: r("raids", "raids.resources.ev_fruit.text"),
3177
+ title: r("raids.resources.ev_fruit.title", { ns: "raids" }),
3178
+ text: r("raids.resources.ev_fruit.text", { ns: "raids" }),
3140
3179
  rewards: void 0,
3141
3180
  penalties: void 0,
3142
3181
  outputs: [
3143
3182
  {
3144
3183
  id: "rq_fruit",
3145
3184
  requirements: { tools: 1 },
3146
- label: r("raids", "raids.resources.rq_fruit.label", {
3147
- requirements: _("tools").name(1)
3185
+ label: r("raids.resources.rq_fruit.label", {
3186
+ ns: "raids",
3187
+ requirements: await o("tools", 1)
3148
3188
  }),
3149
3189
  output: {
3150
3190
  id: "end_fruit_big",
3151
- title: r(
3152
- "raids",
3153
- "raids.resources.end_fruit_big.title"
3154
- ),
3155
- text: (s) => r("raids", "raids.resources.end_fruit_big.text", {
3191
+ title: r("raids.resources.end_fruit_big.title", {
3192
+ ns: "raids"
3193
+ }),
3194
+ text: (s) => r("raids.resources.end_fruit_big.text", {
3195
+ ns: "raids",
3156
3196
  rewards: a(
3157
3197
  "end_fruit_big",
3158
3198
  s,
@@ -3166,14 +3206,14 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3166
3206
  },
3167
3207
  {
3168
3208
  id: "uc_fruit",
3169
- label: r("raids", "raids.resources.uc_fruit.label"),
3209
+ label: r("raids.resources.uc_fruit.label", { ns: "raids" }),
3170
3210
  output: {
3171
3211
  id: "end_fruit_small",
3172
- title: r(
3173
- "raids",
3174
- "raids.resources.end_fruit_small.title"
3175
- ),
3176
- text: (s) => r("raids", "raids.resources.end_fruit_small.text", {
3212
+ title: r("raids.resources.end_fruit_small.title", {
3213
+ ns: "raids"
3214
+ }),
3215
+ text: (s) => r("raids.resources.end_fruit_small.text", {
3216
+ ns: "raids",
3177
3217
  rewards: a(
3178
3218
  "end_fruit_small",
3179
3219
  s,
@@ -3193,42 +3233,42 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3193
3233
  }
3194
3234
  ]
3195
3235
  }
3196
- }), C = (e) => ({
3236
+ }), T = async (e) => ({
3197
3237
  id: "training",
3198
- name: r("raids", "raids.training.name"),
3199
- description: r("raids", "raids.training.description"),
3238
+ name: r("raids.training.name", { ns: "raids" }),
3239
+ description: r("raids.training.description", { ns: "raids" }),
3200
3240
  cooldown: 6048e5,
3201
3241
  type: "classic",
3202
3242
  start: {
3203
3243
  id: "ev_start",
3204
- title: r("raids", "raids.training.ev_start.title"),
3205
- text: r("raids", "raids.training.ev_start.text"),
3244
+ title: r("raids.training.ev_start.title", { ns: "raids" }),
3245
+ text: r("raids.training.ev_start.text", { ns: "raids" }),
3206
3246
  rewards: void 0,
3207
3247
  penalties: void 0,
3208
3248
  outputs: [
3209
3249
  {
3210
3250
  id: "uc_follow_marin",
3211
- label: r("raids", "raids.training.uc_follow_marin.label"),
3251
+ label: r("raids.training.uc_follow_marin.label", { ns: "raids" }),
3212
3252
  output: {
3213
3253
  id: "ev_dense_jungle",
3214
- title: r("raids", "raids.training.ev_dense_jungle.title"),
3215
- text: r("raids", "raids.training.ev_dense_jungle.text"),
3254
+ title: r("raids.training.ev_dense_jungle.title", { ns: "raids" }),
3255
+ text: r("raids.training.ev_dense_jungle.text", { ns: "raids" }),
3216
3256
  rewards: void 0,
3217
3257
  penalties: void 0,
3218
3258
  outputs: [
3219
3259
  {
3220
3260
  id: "uc_cross_river",
3221
- label: r("raids", "raids.training.uc_cross_river.label"),
3261
+ label: r("raids.training.uc_cross_river.label", { ns: "raids" }),
3222
3262
  output: {
3223
3263
  id: "c_agility50",
3224
3264
  requirements: e === "sailing_boat" ? { agility: 45 } : { agility: 50 },
3225
3265
  success: {
3226
3266
  id: "ev_agility50_success",
3227
- title: r(
3228
- "raids",
3229
- "raids.training.ev_agility50_success.title"
3230
- ),
3231
- text: (s) => r("raids", "raids.training.ev_agility50_success.text", {
3267
+ title: r("raids.training.ev_agility50_success.title", {
3268
+ ns: "raids"
3269
+ }),
3270
+ text: (s) => r("raids.training.ev_agility50_success.text", {
3271
+ ns: "raids",
3232
3272
  rewards: a(
3233
3273
  "ev_agility50_success",
3234
3274
  s,
@@ -3241,33 +3281,32 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3241
3281
  outputs: [
3242
3282
  {
3243
3283
  id: "uc_continue",
3244
- label: r("raids", "raids.training.uc_continue.label"),
3284
+ label: r("raids.training.uc_continue.label", {
3285
+ ns: "raids"
3286
+ }),
3245
3287
  output: {
3246
3288
  id: "ev_begin_forest",
3247
- title: r(
3248
- "raids",
3249
- "raids.training.ev_begin_forest.title"
3250
- ),
3251
- text: r(
3252
- "raids",
3253
- "raids.training.ev_begin_forest.text"
3254
- ),
3289
+ title: r("raids.training.ev_begin_forest.title", {
3290
+ ns: "raids"
3291
+ }),
3292
+ text: r("raids.training.ev_begin_forest.text", {
3293
+ ns: "raids"
3294
+ }),
3255
3295
  rewards: void 0,
3256
3296
  penalties: void 0,
3257
3297
  outputs: [
3258
3298
  {
3259
3299
  id: "uc_take_fruit",
3260
- label: r(
3261
- "raids",
3262
- "raids.training.uc_take_fruit.label"
3263
- ),
3300
+ label: r("raids.training.uc_take_fruit.label", {
3301
+ ns: "raids"
3302
+ }),
3264
3303
  output: {
3265
3304
  id: "end_fruits",
3266
- title: r(
3267
- "raids",
3268
- "raids.training.end_fruits.title"
3269
- ),
3270
- text: (s) => r("raids", "raids.training.end_fruits.text", {
3305
+ title: r("raids.training.end_fruits.title", {
3306
+ ns: "raids"
3307
+ }),
3308
+ text: (s) => r("raids.training.end_fruits.text", {
3309
+ ns: "raids",
3271
3310
  rewards: a(
3272
3311
  "end_fruits",
3273
3312
  s,
@@ -3281,17 +3320,16 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3281
3320
  },
3282
3321
  {
3283
3322
  id: "uc_collect_plants",
3284
- label: r(
3285
- "raids",
3286
- "raids.training.uc_collect_plants.label"
3287
- ),
3323
+ label: r("raids.training.uc_collect_plants.label", {
3324
+ ns: "raids"
3325
+ }),
3288
3326
  output: {
3289
3327
  id: "end_plants",
3290
- title: r(
3291
- "raids",
3292
- "raids.training.end_plants.title"
3293
- ),
3294
- text: (s) => r("raids", "raids.training.end_plants.text", {
3328
+ title: r("raids.training.end_plants.title", {
3329
+ ns: "raids"
3330
+ }),
3331
+ text: (s) => r("raids.training.end_plants.text", {
3332
+ ns: "raids",
3295
3333
  rewards: a(
3296
3334
  "end_plants",
3297
3335
  s,
@@ -3310,11 +3348,11 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3310
3348
  },
3311
3349
  failure: {
3312
3350
  id: "ev_agility50_failure",
3313
- title: r(
3314
- "raids",
3315
- "raids.training.ev_agility50_failure.title"
3316
- ),
3317
- text: (s) => r("raids", "raids.training.ev_agility50_failure.text", {
3351
+ title: r("raids.training.ev_agility50_failure.title", {
3352
+ ns: "raids"
3353
+ }),
3354
+ text: (s) => r("raids.training.ev_agility50_failure.text", {
3355
+ ns: "raids",
3318
3356
  rewards: a(
3319
3357
  "ev_agility50_failure",
3320
3358
  s,
@@ -3327,33 +3365,32 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3327
3365
  outputs: [
3328
3366
  {
3329
3367
  id: "uc_continue",
3330
- label: r("raids", "raids.training.uc_continue.label"),
3368
+ label: r("raids.training.uc_continue.label", {
3369
+ ns: "raids"
3370
+ }),
3331
3371
  output: {
3332
3372
  id: "ev_begin_forest",
3333
- title: r(
3334
- "raids",
3335
- "raids.training.ev_begin_forest.title"
3336
- ),
3337
- text: r(
3338
- "raids",
3339
- "raids.training.ev_begin_forest.text"
3340
- ),
3373
+ title: r("raids.training.ev_begin_forest.title", {
3374
+ ns: "raids"
3375
+ }),
3376
+ text: r("raids.training.ev_begin_forest.text", {
3377
+ ns: "raids"
3378
+ }),
3341
3379
  rewards: void 0,
3342
3380
  penalties: void 0,
3343
3381
  outputs: [
3344
3382
  {
3345
3383
  id: "uc_take_fruit",
3346
- label: r(
3347
- "raids",
3348
- "raids.training.uc_take_fruit.label"
3349
- ),
3384
+ label: r("raids.training.uc_take_fruit.label", {
3385
+ ns: "raids"
3386
+ }),
3350
3387
  output: {
3351
3388
  id: "end_fruits",
3352
- title: r(
3353
- "raids",
3354
- "raids.training.end_fruits.title"
3355
- ),
3356
- text: (s) => r("raids", "raids.training.end_fruits.text", {
3389
+ title: r("raids.training.end_fruits.title", {
3390
+ ns: "raids"
3391
+ }),
3392
+ text: (s) => r("raids.training.end_fruits.text", {
3393
+ ns: "raids",
3357
3394
  rewards: a(
3358
3395
  "end_fruits",
3359
3396
  s,
@@ -3367,17 +3404,16 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3367
3404
  },
3368
3405
  {
3369
3406
  id: "uc_collect_plants",
3370
- label: r(
3371
- "raids",
3372
- "raids.training.uc_collect_plants.label"
3373
- ),
3407
+ label: r("raids.training.uc_collect_plants.label", {
3408
+ ns: "raids"
3409
+ }),
3374
3410
  output: {
3375
3411
  id: "end_plants",
3376
- title: r(
3377
- "raids",
3378
- "raids.training.end_plants.title"
3379
- ),
3380
- text: (s) => r("raids", "raids.training.end_plants.text", {
3412
+ title: r("raids.training.end_plants.title", {
3413
+ ns: "raids"
3414
+ }),
3415
+ text: (s) => r("raids.training.end_plants.text", {
3416
+ ns: "raids",
3381
3417
  rewards: a(
3382
3418
  "end_plants",
3383
3419
  s,
@@ -3398,11 +3434,12 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3398
3434
  },
3399
3435
  {
3400
3436
  id: "uc_rock_path",
3401
- label: r("raids", "raids.training.uc_rock_path.label"),
3437
+ label: r("raids.training.uc_rock_path.label", { ns: "raids" }),
3402
3438
  output: {
3403
3439
  id: "ev_hard_path",
3404
- title: r("raids", "raids.training.ev_hard_path.title"),
3405
- text: (s) => r("raids", "raids.training.ev_hard_path.text", {
3440
+ title: r("raids.training.ev_hard_path.title", { ns: "raids" }),
3441
+ text: (s) => r("raids.training.ev_hard_path.text", {
3442
+ ns: "raids",
3406
3443
  rewards: a(
3407
3444
  "ev_hard_path",
3408
3445
  s,
@@ -3415,70 +3452,61 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3415
3452
  outputs: [
3416
3453
  {
3417
3454
  id: "uc_continue",
3418
- label: r("raids", "raids.training.uc_continue.label"),
3455
+ label: r("raids.training.uc_continue.label", {
3456
+ ns: "raids"
3457
+ }),
3419
3458
  output: {
3420
3459
  id: "ev_swamp",
3421
- title: r("raids", "raids.training.ev_swamp.title"),
3422
- text: r("raids", "raids.training.ev_swamp.text"),
3460
+ title: r("raids.training.ev_swamp.title", {
3461
+ ns: "raids"
3462
+ }),
3463
+ text: r("raids.training.ev_swamp.text", { ns: "raids" }),
3423
3464
  rewards: void 0,
3424
3465
  penalties: void 0,
3425
3466
  outputs: [
3426
3467
  {
3427
3468
  id: "uc_rummage_captain_suite",
3428
3469
  label: r(
3429
- "raids",
3430
- "raids.training.uc_rummage_captain_suite.label"
3470
+ "raids.training.uc_rummage_captain_suite.label",
3471
+ { ns: "raids" }
3431
3472
  ),
3432
3473
  output: {
3433
3474
  id: "end_captain_suite",
3434
- title: r(
3435
- "raids",
3436
- "raids.training.end_captain_suite.title"
3437
- ),
3438
- text: (s) => r(
3439
- "raids",
3440
- "raids.training.end_captain_suite.text",
3441
- {
3442
- rewards: a(
3443
- "end_captain_suite",
3444
- s,
3445
- e === "rudder" ? {
3446
- berry: 5e7,
3447
- strange_gem: 1,
3448
- xp: 0
3449
- } : e === "rescue_boat" ? { berry: 75e6, strange_gem: 1 } : { berry: 5e7, strange_gem: 1 },
3450
- void 0
3451
- )
3452
- }
3453
- ),
3475
+ title: r("raids.training.end_captain_suite.title", {
3476
+ ns: "raids"
3477
+ }),
3478
+ text: (s) => r("raids.training.end_captain_suite.text", {
3479
+ ns: "raids",
3480
+ rewards: a(
3481
+ "end_captain_suite",
3482
+ s,
3483
+ e === "rudder" ? { berry: 5e7, strange_gem: 1, xp: 0 } : e === "rescue_boat" ? { berry: 75e6, strange_gem: 1 } : { berry: 5e7, strange_gem: 1 },
3484
+ void 0
3485
+ )
3486
+ }),
3454
3487
  rewards: e === "rudder" ? { berry: 5e7, strange_gem: 1, xp: 0 } : e === "rescue_boat" ? { berry: 75e6, strange_gem: 1 } : { berry: 5e7, strange_gem: 1 },
3455
3488
  penalties: void 0
3456
3489
  }
3457
3490
  },
3458
3491
  {
3459
3492
  id: "uc_look_ship_hold",
3460
- label: r(
3461
- "raids",
3462
- "raids.training.uc_look_ship_hold.label"
3463
- ),
3493
+ label: r("raids.training.uc_look_ship_hold.label", {
3494
+ ns: "raids"
3495
+ }),
3464
3496
  output: {
3465
3497
  id: "end_ship_hold",
3466
- title: r(
3467
- "raids",
3468
- "raids.training.end_ship_hold.title"
3469
- ),
3470
- text: (s) => r(
3471
- "raids",
3472
- "raids.training.end_ship_hold.text",
3473
- {
3474
- rewards: a(
3475
- "end_ship_hold",
3476
- s,
3477
- e === "rudder" ? { fruit: 2, wood_plank: 4, xp: 0 } : e === "rescue_boat" ? { fruit: 2, wood_plank: 4, berry: 0 } : { fruit: 2, wood_plank: 4 },
3478
- void 0
3479
- )
3480
- }
3481
- ),
3498
+ title: r("raids.training.end_ship_hold.title", {
3499
+ ns: "raids"
3500
+ }),
3501
+ text: (s) => r("raids.training.end_ship_hold.text", {
3502
+ ns: "raids",
3503
+ rewards: a(
3504
+ "end_ship_hold",
3505
+ s,
3506
+ e === "rudder" ? { fruit: 2, wood_plank: 4, xp: 0 } : e === "rescue_boat" ? { fruit: 2, wood_plank: 4, berry: 0 } : { fruit: 2, wood_plank: 4 },
3507
+ void 0
3508
+ )
3509
+ }),
3482
3510
  rewards: e === "rudder" ? { fruit: 2, wood_plank: 4, xp: 0 } : e === "rescue_boat" ? { fruit: 2, wood_plank: 4, berry: 0 } : { fruit: 2, wood_plank: 4 },
3483
3511
  penalties: void 0
3484
3512
  }
@@ -3494,7 +3522,7 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3494
3522
  }
3495
3523
  ]
3496
3524
  }
3497
- }), D = {
3525
+ }), I = {
3498
3526
  mysterious_island: [
3499
3527
  "end_cave_blind_walk",
3500
3528
  "end_explore_gallery_with_torch",
@@ -3556,26 +3584,49 @@ const c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3556
3584
  "ev_start",
3557
3585
  "ev_swamp"
3558
3586
  ]
3587
+ }, O = {}, B = ["raidUnlock"], f = new O.EventEmitter(), v = (e, s, t) => {
3588
+ f.emit(e, s, t);
3589
+ }, ee = (e) => {
3590
+ for (const s of B)
3591
+ f.on(s, (t, d) => {
3592
+ e(t, d);
3593
+ });
3594
+ }, D = async (e) => {
3595
+ const s = await m.get(e);
3596
+ U(s.xp.amount) >= 30 && !await u.hasUnlockedRaid(e, "training") && (await u.unlockRaid(e, "training"), v("raidUnlock", s.user._id, "training"));
3597
+ }, L = async (e, { equipmentList: s, itemList: t }) => {
3598
+ const d = $(s, (_) => _.entityId), n = await Promise.all(
3599
+ d.map((_) => p.get(_))
3600
+ );
3601
+ E(n).filter(
3602
+ p.isEquipment
3603
+ ).filter(({ panoply: _ }) => _ === "adventurer").length === 6 && !await u.hasUnlockedRaid(e, "pirate_cave") && (await u.unlockRaid(e, "pirate_cave"), v("raidUnlock", e, "pirate_cave")), (t.map_fragment ?? 0) >= 5 && !await u.hasUnlockedRaid(e, "mysterious_island") && (await u.unlockRaid(e, "mysterious_island"), await k.removeItem(e, "map_fragment", 5), v("raidUnlock", e, "mysterious_island"));
3604
+ }, G = async (e, s) => {
3605
+ const t = s.obtainedRewards.training;
3606
+ t && t.filter((d) => d.startsWith("end_")).length >= 4 && !s.unlocked?.resources && (await u.unlockRaid(e, "resources"), v("raidUnlock", e, "resources"));
3559
3607
  };
3608
+ q({
3609
+ "middleware/raid/USER_INVENTORY": L,
3610
+ "middleware/raid/USER_RAID": G,
3611
+ "middleware/raid/USER_QUEST": D
3612
+ });
3560
3613
  export {
3561
- D as RAID_IMAGES,
3614
+ I as RAID_IMAGES,
3615
+ v as emitRaidEvent,
3562
3616
  a as formatRewards,
3563
- B as getAllRaids,
3564
- N as getAvailableCharacteristicPoints,
3565
- b as getCharacteristicCost,
3566
- E as getComputedCharacteristicCost,
3567
- P as getComputedCharacteristicValue,
3568
- U as getCurrentRaidEvent,
3569
- k as getNextRaidStep,
3570
- H as getRaid,
3571
- f as isRaidConditionCheck,
3572
- L as isRaidEnd,
3573
- v as isRaidEvent,
3574
- W as isRaidGoto,
3575
- m as isRaidItemRequired,
3576
- g as isRaidUserChoice,
3577
- q as mysteriousIslandRaid,
3578
- j as pirateCaveRaid,
3579
- R as resourcesRaid,
3580
- C as trainingRaid
3617
+ K as getAllRaids,
3618
+ Z as getCurrentRaidEvent,
3619
+ A as getNextRaidStep,
3620
+ X as getRaid,
3621
+ C as isRaidConditionCheck,
3622
+ J as isRaidEnd,
3623
+ g as isRaidEvent,
3624
+ H as isRaidGoto,
3625
+ N as isRaidItemRequired,
3626
+ S as isRaidUserChoice,
3627
+ W as mysteriousIslandRaid,
3628
+ ee as onRaidEvent,
3629
+ M as pirateCaveRaid,
3630
+ P as resourcesRaid,
3631
+ T as trainingRaid
3581
3632
  };