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