@overlayed/app 0.12.0 → 0.13.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.
- package/dist/index.d.ts +464 -944
- package/dist/index.js +27 -7916
- package/dist/preload.d.ts +1 -1
- package/dist/preload.js +1 -4
- package/dist/siege.d.ts +3264 -2911
- package/dist/siege.js +1 -650
- package/package.json +13 -10
package/dist/siege.js
CHANGED
|
@@ -1,650 +1 @@
|
|
|
1
|
-
import { type as d, scope as b } from "arktype";
|
|
2
|
-
function k(o) {
|
|
3
|
-
return o;
|
|
4
|
-
}
|
|
5
|
-
function t(o) {
|
|
6
|
-
return k;
|
|
7
|
-
}
|
|
8
|
-
const s = t(), me = t(), ue = t(), ce = t(), e = t(), n = t(), pe = t(), ge = t(), ye = t(), he = t(), be = t(), ke = t(), Se = t(), fe = t(), Ee = t(), ve = t(), Ie = t(), Pe = t(), we = t(), ze = t(), Oe = t(), Te = t(), Ae = t(), Ge = t(), _ = t(), De = "00000000-0000-0000-0000-000000000000", S = ["intro", "planning", "prep", "action", "results", "invalid"], f = d("===", ...S), E = [0, 1], c = d("===", ...E), v = ["attacker", "defender", "both", "invalid"], u = d("===", ...v), I = ["normal", "overhealed", "low_health", "downed", "dead", "respawning"], p = d("===", ...I), P = [
|
|
9
|
-
"bullet",
|
|
10
|
-
"melee",
|
|
11
|
-
"explosive",
|
|
12
|
-
"falling",
|
|
13
|
-
"regeneration",
|
|
14
|
-
"unknown",
|
|
15
|
-
"debris",
|
|
16
|
-
"projectile",
|
|
17
|
-
"downed",
|
|
18
|
-
"gas",
|
|
19
|
-
"thermal_explosion",
|
|
20
|
-
"melee_gadget",
|
|
21
|
-
"barbed_wire",
|
|
22
|
-
"electric",
|
|
23
|
-
"reinforcement",
|
|
24
|
-
"frag",
|
|
25
|
-
"paralyzed",
|
|
26
|
-
"emp",
|
|
27
|
-
"break",
|
|
28
|
-
"cleanup",
|
|
29
|
-
"interrogation",
|
|
30
|
-
"melee-finisher",
|
|
31
|
-
"toxic",
|
|
32
|
-
"toxic-explosion",
|
|
33
|
-
"pneumatic",
|
|
34
|
-
"body-contact",
|
|
35
|
-
"contact-explosion",
|
|
36
|
-
"flash",
|
|
37
|
-
"parasite-spike",
|
|
38
|
-
"laser",
|
|
39
|
-
"concussion",
|
|
40
|
-
"blowtorch",
|
|
41
|
-
"taser-shield",
|
|
42
|
-
"reverse-friendly-fire",
|
|
43
|
-
"self-destroyed",
|
|
44
|
-
"area-control",
|
|
45
|
-
"fire",
|
|
46
|
-
"breach-kick",
|
|
47
|
-
"break-wall",
|
|
48
|
-
"blade-mine",
|
|
49
|
-
"invalid"
|
|
50
|
-
], w = d("===", ...P), z = ["unknown", "enemy", "friendly", "invalid"], O = d("===", ...z), l = Object.freeze({
|
|
51
|
-
ranked: s(205379),
|
|
52
|
-
quickMatch: s(138115),
|
|
53
|
-
customGame: s(62008),
|
|
54
|
-
versusAi: s(397300),
|
|
55
|
-
standard: s(393930),
|
|
56
|
-
arcade: s(320109),
|
|
57
|
-
siegeCup: s(414089),
|
|
58
|
-
dualFront: s(420611),
|
|
59
|
-
showdown: s(305544),
|
|
60
|
-
trainingGrounds: s(-1)
|
|
61
|
-
}), Re = Object.freeze({
|
|
62
|
-
[l.quickMatch]: "Quick Match",
|
|
63
|
-
[l.ranked]: "Ranked",
|
|
64
|
-
[l.customGame]: "Custom Game",
|
|
65
|
-
[l.versusAi]: "Versus AI",
|
|
66
|
-
[l.standard]: "Standard",
|
|
67
|
-
[l.arcade]: "Arcade",
|
|
68
|
-
[l.siegeCup]: "Siege Cup",
|
|
69
|
-
[l.dualFront]: "Dual Front",
|
|
70
|
-
[l.showdown]: "Showdown",
|
|
71
|
-
[l.trainingGrounds]: "Training Grounds"
|
|
72
|
-
}), a = Object.freeze({
|
|
73
|
-
glaz: e(62242),
|
|
74
|
-
blitz: e(62243),
|
|
75
|
-
buck: e(62244),
|
|
76
|
-
sledge: e(62245),
|
|
77
|
-
ash: e(62246),
|
|
78
|
-
thermite: e(62247),
|
|
79
|
-
castle: e(62248),
|
|
80
|
-
rook: e(62249),
|
|
81
|
-
pulse: e(62250),
|
|
82
|
-
doc: e(62251),
|
|
83
|
-
mute: e(62252),
|
|
84
|
-
smoke: e(62253),
|
|
85
|
-
recruit: e(62555),
|
|
86
|
-
thatcher: e(65143),
|
|
87
|
-
twitch: e(65156),
|
|
88
|
-
montagne: e(65159),
|
|
89
|
-
bandit: e(65165),
|
|
90
|
-
fuze: e(65168),
|
|
91
|
-
kapkan: e(65171),
|
|
92
|
-
tachanka: e(65174),
|
|
93
|
-
jager: e(113049),
|
|
94
|
-
iq: e(113052),
|
|
95
|
-
frost: e(186159),
|
|
96
|
-
blackbeard: e(187249),
|
|
97
|
-
valkyrie: e(187252),
|
|
98
|
-
caveira: e(207671),
|
|
99
|
-
capitao: e(207674),
|
|
100
|
-
echo: e(209180),
|
|
101
|
-
hibana: e(209183),
|
|
102
|
-
mira: e(222172),
|
|
103
|
-
jackal: e(222182),
|
|
104
|
-
ying: e(239334),
|
|
105
|
-
lesion: e(239337),
|
|
106
|
-
ela: e(254595),
|
|
107
|
-
zofia: e(254606),
|
|
108
|
-
dokkaebi: e(273652),
|
|
109
|
-
vigil: e(273663),
|
|
110
|
-
finka: e(281457),
|
|
111
|
-
lion: e(281463),
|
|
112
|
-
alibi: e(282399),
|
|
113
|
-
maestro: e(285888),
|
|
114
|
-
maverick: e(288504),
|
|
115
|
-
clash: e(288526),
|
|
116
|
-
nomad: e(293435),
|
|
117
|
-
kaid: e(293436),
|
|
118
|
-
gridlock: e(298589),
|
|
119
|
-
mozzie: e(298616),
|
|
120
|
-
nokk: e(299657),
|
|
121
|
-
warden: e(299668),
|
|
122
|
-
goyo: e(304196),
|
|
123
|
-
amaru: e(308469),
|
|
124
|
-
kali: e(310757),
|
|
125
|
-
wamai: e(310768),
|
|
126
|
-
oryx: e(317965),
|
|
127
|
-
iana: e(317976),
|
|
128
|
-
melusi: e(320062),
|
|
129
|
-
ace: e(320073),
|
|
130
|
-
zero: e(328927),
|
|
131
|
-
aruni: e(328940),
|
|
132
|
-
flores: e(334086),
|
|
133
|
-
thunderbird: e(336466),
|
|
134
|
-
osa: e(344493),
|
|
135
|
-
thorn: e(349405),
|
|
136
|
-
azami: e(354314),
|
|
137
|
-
sens: e(357386),
|
|
138
|
-
grim: e(365404),
|
|
139
|
-
solis: e(376836),
|
|
140
|
-
brava: e(382419),
|
|
141
|
-
fenrir: e(386388),
|
|
142
|
-
ram: e(392904),
|
|
143
|
-
tubarao: e(395594),
|
|
144
|
-
deimos: e(400504),
|
|
145
|
-
striker: e(404278),
|
|
146
|
-
sentry: e(404290),
|
|
147
|
-
skopos: e(408405),
|
|
148
|
-
rauora: e(421052)
|
|
149
|
-
}), Me = Object.freeze({
|
|
150
|
-
[a.glaz]: "glaz",
|
|
151
|
-
[a.blitz]: "blitz",
|
|
152
|
-
[a.buck]: "buck",
|
|
153
|
-
[a.sledge]: "sledge",
|
|
154
|
-
[a.ash]: "ash",
|
|
155
|
-
[a.thermite]: "thermite",
|
|
156
|
-
[a.castle]: "castle",
|
|
157
|
-
[a.rook]: "rook",
|
|
158
|
-
[a.pulse]: "pulse",
|
|
159
|
-
[a.doc]: "doc",
|
|
160
|
-
[a.mute]: "mute",
|
|
161
|
-
[a.smoke]: "smoke",
|
|
162
|
-
[a.recruit]: "recruit",
|
|
163
|
-
[a.thatcher]: "thatcher",
|
|
164
|
-
[a.twitch]: "twitch",
|
|
165
|
-
[a.montagne]: "montagne",
|
|
166
|
-
[a.bandit]: "bandit",
|
|
167
|
-
[a.fuze]: "fuze",
|
|
168
|
-
[a.kapkan]: "kapkan",
|
|
169
|
-
[a.tachanka]: "tachanka",
|
|
170
|
-
[a.jager]: "jager",
|
|
171
|
-
[a.iq]: "iq",
|
|
172
|
-
[a.frost]: "frost",
|
|
173
|
-
[a.blackbeard]: "blackbeard",
|
|
174
|
-
[a.valkyrie]: "valkyrie",
|
|
175
|
-
[a.caveira]: "caveira",
|
|
176
|
-
[a.capitao]: "capitao",
|
|
177
|
-
[a.echo]: "echo",
|
|
178
|
-
[a.hibana]: "hibana",
|
|
179
|
-
[a.mira]: "mira",
|
|
180
|
-
[a.jackal]: "jackal",
|
|
181
|
-
[a.ying]: "ying",
|
|
182
|
-
[a.lesion]: "lesion",
|
|
183
|
-
[a.ela]: "ela",
|
|
184
|
-
[a.zofia]: "zofia",
|
|
185
|
-
[a.dokkaebi]: "dokkaebi",
|
|
186
|
-
[a.vigil]: "vigil",
|
|
187
|
-
[a.finka]: "finka",
|
|
188
|
-
[a.lion]: "lion",
|
|
189
|
-
[a.alibi]: "alibi",
|
|
190
|
-
[a.maestro]: "maestro",
|
|
191
|
-
[a.maverick]: "maverick",
|
|
192
|
-
[a.clash]: "clash",
|
|
193
|
-
[a.nomad]: "nomad",
|
|
194
|
-
[a.kaid]: "kaid",
|
|
195
|
-
[a.gridlock]: "gridlock",
|
|
196
|
-
[a.mozzie]: "mozzie",
|
|
197
|
-
[a.nokk]: "nokk",
|
|
198
|
-
[a.warden]: "warden",
|
|
199
|
-
[a.goyo]: "goyo",
|
|
200
|
-
[a.amaru]: "amaru",
|
|
201
|
-
[a.kali]: "kali",
|
|
202
|
-
[a.wamai]: "wamai",
|
|
203
|
-
[a.oryx]: "oryx",
|
|
204
|
-
[a.iana]: "iana",
|
|
205
|
-
[a.melusi]: "melusi",
|
|
206
|
-
[a.ace]: "ace",
|
|
207
|
-
[a.zero]: "zero",
|
|
208
|
-
[a.aruni]: "aruni",
|
|
209
|
-
[a.flores]: "flores",
|
|
210
|
-
[a.thunderbird]: "thunderbird",
|
|
211
|
-
[a.osa]: "osa",
|
|
212
|
-
[a.thorn]: "thorn",
|
|
213
|
-
[a.azami]: "azami",
|
|
214
|
-
[a.sens]: "sens",
|
|
215
|
-
[a.grim]: "grim",
|
|
216
|
-
[a.solis]: "solis",
|
|
217
|
-
[a.brava]: "brava",
|
|
218
|
-
[a.fenrir]: "fenrir",
|
|
219
|
-
[a.ram]: "ram",
|
|
220
|
-
[a.tubarao]: "tubarao",
|
|
221
|
-
[a.deimos]: "deimos",
|
|
222
|
-
[a.striker]: "striker",
|
|
223
|
-
[a.sentry]: "sentry",
|
|
224
|
-
[a.skopos]: "skopos",
|
|
225
|
-
[a.rauora]: "rauora"
|
|
226
|
-
}), je = Object.freeze({
|
|
227
|
-
favela: n(202283),
|
|
228
|
-
fortress: n(293334),
|
|
229
|
-
villa: n(286407),
|
|
230
|
-
neighborhood: n(333785),
|
|
231
|
-
article5: n(196214),
|
|
232
|
-
themePark: n(229325),
|
|
233
|
-
stadium: n(338641),
|
|
234
|
-
outback: n(299162),
|
|
235
|
-
yacht: n(62226),
|
|
236
|
-
emeraldPlains: n(358871),
|
|
237
|
-
chalet: n(62230),
|
|
238
|
-
coastline: n(217482),
|
|
239
|
-
bank: n(62228),
|
|
240
|
-
consulate: n(62227),
|
|
241
|
-
tower: n(255669),
|
|
242
|
-
nighthavenLabs: n(375492),
|
|
243
|
-
presidentialPlane: n(62225),
|
|
244
|
-
house: n(62221),
|
|
245
|
-
kafeDostoyevsky: n(62232),
|
|
246
|
-
border: n(201746),
|
|
247
|
-
closeQuarter: n(365400),
|
|
248
|
-
bartlettU: n(62231),
|
|
249
|
-
lair: n(396234),
|
|
250
|
-
herefordBase: n(62223),
|
|
251
|
-
skyscraper: n(208094),
|
|
252
|
-
cqbBasics: n(196157),
|
|
253
|
-
oregon: n(62222),
|
|
254
|
-
fortTruth: n(307723),
|
|
255
|
-
kanal: n(62229),
|
|
256
|
-
stadium2020: n(357300),
|
|
257
|
-
clubhouse: n(62224),
|
|
258
|
-
district: n(1193341205)
|
|
259
|
-
}), Ce = Object.freeze({
|
|
260
|
-
202283: "Favela",
|
|
261
|
-
293334: "Fortress",
|
|
262
|
-
286407: "Villa",
|
|
263
|
-
333785: "Neighborhood",
|
|
264
|
-
196214: "Article 5",
|
|
265
|
-
229325: "Theme Park",
|
|
266
|
-
338641: "Stadium",
|
|
267
|
-
299162: "Outback",
|
|
268
|
-
62226: "Yacht",
|
|
269
|
-
358871: "Emerald Plains",
|
|
270
|
-
62230: "Chalet",
|
|
271
|
-
217482: "Coastline",
|
|
272
|
-
62228: "Bank",
|
|
273
|
-
62227: "Consulate",
|
|
274
|
-
255669: "Tower",
|
|
275
|
-
375492: "Nighthaven Labs",
|
|
276
|
-
62225: "Presidential Plane",
|
|
277
|
-
187984: "Article 5",
|
|
278
|
-
62221: "House",
|
|
279
|
-
62232: "Kafe Dostoyevsky",
|
|
280
|
-
201746: "Border",
|
|
281
|
-
365400: "Close Quarter",
|
|
282
|
-
299161: "Outback",
|
|
283
|
-
62231: "Bartlett U.",
|
|
284
|
-
396234: "Lair",
|
|
285
|
-
62223: "Hereford Base",
|
|
286
|
-
208094: "Skyscraper",
|
|
287
|
-
196157: "CQB Basics",
|
|
288
|
-
62222: "Oregon",
|
|
289
|
-
299534: "Outback",
|
|
290
|
-
318512: "Stadium",
|
|
291
|
-
307723: "Fort Truth",
|
|
292
|
-
195681: "Article 5",
|
|
293
|
-
62229: "Kanal",
|
|
294
|
-
177763: "CQB Basics",
|
|
295
|
-
357300: "Stadium 2020",
|
|
296
|
-
62224: "Clubhouse",
|
|
297
|
-
1193341205: "District"
|
|
298
|
-
// TODO: The ID here is wrong but this is what native gives us
|
|
299
|
-
}), i = Object.freeze({
|
|
300
|
-
notPlayed: _(0),
|
|
301
|
-
inProgress: _(1),
|
|
302
|
-
lost: _(2),
|
|
303
|
-
enemiesEliminated: _(3),
|
|
304
|
-
objectiveComplete: _(4),
|
|
305
|
-
timeRanOut: _(5),
|
|
306
|
-
enemiesSurrendered: _(6),
|
|
307
|
-
unknownReason: _(7),
|
|
308
|
-
matchCancelled: _(8)
|
|
309
|
-
}), xe = Object.freeze({
|
|
310
|
-
[i.notPlayed]: "Not Played",
|
|
311
|
-
[i.inProgress]: "In Progress",
|
|
312
|
-
[i.lost]: "Lost",
|
|
313
|
-
[i.enemiesEliminated]: "Enemies Eliminated",
|
|
314
|
-
[i.objectiveComplete]: "Objective Complete",
|
|
315
|
-
[i.timeRanOut]: "Time ran out",
|
|
316
|
-
[i.enemiesSurrendered]: "Enemies Surrendered",
|
|
317
|
-
[i.unknownReason]: "Unknown Reason",
|
|
318
|
-
// The game calls it this
|
|
319
|
-
[i.matchCancelled]: "Match Cancelled"
|
|
320
|
-
}), T = d({
|
|
321
|
-
game: "string",
|
|
322
|
-
type: "string",
|
|
323
|
-
creation_time: "number"
|
|
324
|
-
}), A = [
|
|
325
|
-
i.enemiesEliminated,
|
|
326
|
-
i.objectiveComplete,
|
|
327
|
-
i.timeRanOut,
|
|
328
|
-
i.enemiesSurrendered,
|
|
329
|
-
i.unknownReason
|
|
330
|
-
];
|
|
331
|
-
function Be(o) {
|
|
332
|
-
return A.includes(o);
|
|
333
|
-
}
|
|
334
|
-
const G = [
|
|
335
|
-
i.notPlayed,
|
|
336
|
-
i.inProgress
|
|
337
|
-
];
|
|
338
|
-
function Le(o) {
|
|
339
|
-
return !G.includes(o);
|
|
340
|
-
}
|
|
341
|
-
const r = T.and({
|
|
342
|
-
game: "'siege'"
|
|
343
|
-
}), D = r.and({
|
|
344
|
-
type: "'local_player'",
|
|
345
|
-
content: {
|
|
346
|
-
profile_id: "string.uuid"
|
|
347
|
-
}
|
|
348
|
-
}), m = d({
|
|
349
|
-
id: "number",
|
|
350
|
-
value: "string"
|
|
351
|
-
}), g = d({
|
|
352
|
-
kills: "number",
|
|
353
|
-
deaths: "number",
|
|
354
|
-
assists: "number",
|
|
355
|
-
plants: "number",
|
|
356
|
-
score: "number"
|
|
357
|
-
}), R = d({
|
|
358
|
-
instigator_player_id: "number",
|
|
359
|
-
receiver_player_id: "number",
|
|
360
|
-
damage_amount: "number",
|
|
361
|
-
remaining_health: "number",
|
|
362
|
-
pre_damage_health: "number",
|
|
363
|
-
max_health: "number",
|
|
364
|
-
damage_type: w,
|
|
365
|
-
damage_team_type: O,
|
|
366
|
-
damage_item_id: "number | null",
|
|
367
|
-
damage_time: "number"
|
|
368
|
-
}), y = d({
|
|
369
|
-
index: "number",
|
|
370
|
-
rounds_until_next_segment: "number",
|
|
371
|
-
segment_size: "number",
|
|
372
|
-
segment_index: "number",
|
|
373
|
-
team_0: {
|
|
374
|
-
role: u,
|
|
375
|
-
state: "number"
|
|
376
|
-
},
|
|
377
|
-
team_1: {
|
|
378
|
-
role: u,
|
|
379
|
-
state: "number"
|
|
380
|
-
}
|
|
381
|
-
}), h = d({
|
|
382
|
-
id: "number",
|
|
383
|
-
name: m,
|
|
384
|
-
time_of_day: m
|
|
385
|
-
}), M = d({
|
|
386
|
-
player_id: "number",
|
|
387
|
-
final_health: "number",
|
|
388
|
-
final_life_state: p,
|
|
389
|
-
operator_name: m.or(d.null)
|
|
390
|
-
}), j = d({
|
|
391
|
-
round_data: y,
|
|
392
|
-
damage_events: R.array(),
|
|
393
|
-
players: M.array()
|
|
394
|
-
}), C = r.and({
|
|
395
|
-
type: "'match_started'",
|
|
396
|
-
content: {
|
|
397
|
-
game_mode: "string",
|
|
398
|
-
game_type: m,
|
|
399
|
-
match_type: "string",
|
|
400
|
-
match_id: "string",
|
|
401
|
-
map: h,
|
|
402
|
-
is_round_based: "boolean",
|
|
403
|
-
current_round_index: "number",
|
|
404
|
-
rounds: y.array()
|
|
405
|
-
}
|
|
406
|
-
}), x = r.and({
|
|
407
|
-
type: "'module_loaded'"
|
|
408
|
-
}), B = r.and({
|
|
409
|
-
type: "'module_unloaded'"
|
|
410
|
-
}), L = r.and({
|
|
411
|
-
type: "'started_queuing'",
|
|
412
|
-
content: {
|
|
413
|
-
game_mode: "string",
|
|
414
|
-
game_type: m,
|
|
415
|
-
match_type: "string"
|
|
416
|
-
}
|
|
417
|
-
}), q = r.and({
|
|
418
|
-
type: "'stopped_queuing'"
|
|
419
|
-
}), N = r.and({
|
|
420
|
-
type: "'unsupported_game_version'",
|
|
421
|
-
content: {
|
|
422
|
-
hash: "string | null",
|
|
423
|
-
version: "string | null"
|
|
424
|
-
}
|
|
425
|
-
}), F = r.and({
|
|
426
|
-
type: "'match_ended'"
|
|
427
|
-
}), Y = r.and({
|
|
428
|
-
type: "'map_changed'",
|
|
429
|
-
content: {
|
|
430
|
-
map: h
|
|
431
|
-
}
|
|
432
|
-
}), Q = r.and({
|
|
433
|
-
type: "'operator_banned'",
|
|
434
|
-
content: {
|
|
435
|
-
index: "number",
|
|
436
|
-
team: c,
|
|
437
|
-
side: u,
|
|
438
|
-
operator_name: m.or("null")
|
|
439
|
-
}
|
|
440
|
-
}), U = r.and({
|
|
441
|
-
type: "'round_ended'",
|
|
442
|
-
content: j
|
|
443
|
-
}), H = r.and({
|
|
444
|
-
type: "'phase_changed'",
|
|
445
|
-
content: {
|
|
446
|
-
phase: f
|
|
447
|
-
}
|
|
448
|
-
}), V = r.and({
|
|
449
|
-
type: "'player_joined'",
|
|
450
|
-
content: {
|
|
451
|
-
player_id: "number",
|
|
452
|
-
profile_id: "string.uuid",
|
|
453
|
-
is_bot: "boolean",
|
|
454
|
-
is_enemy: "boolean",
|
|
455
|
-
is_squad_member: "boolean",
|
|
456
|
-
is_local_player: "boolean",
|
|
457
|
-
username: "string",
|
|
458
|
-
side: u,
|
|
459
|
-
team: c,
|
|
460
|
-
is_privacy_username: "boolean",
|
|
461
|
-
has_avatar_hidden: "boolean",
|
|
462
|
-
has_commend_streak: "boolean",
|
|
463
|
-
ping_id: "number",
|
|
464
|
-
match_stats: g,
|
|
465
|
-
life_state: p,
|
|
466
|
-
ping: "number"
|
|
467
|
-
}
|
|
468
|
-
}).pipe((o) => ({
|
|
469
|
-
...o,
|
|
470
|
-
content: {
|
|
471
|
-
...o.content,
|
|
472
|
-
starting_side: o.content.side
|
|
473
|
-
}
|
|
474
|
-
})), K = r.and({
|
|
475
|
-
type: "'player_left'",
|
|
476
|
-
content: {
|
|
477
|
-
player_id: "number"
|
|
478
|
-
}
|
|
479
|
-
}), J = r.and({
|
|
480
|
-
type: "'player_operator_changed'",
|
|
481
|
-
content: {
|
|
482
|
-
player_id: "number",
|
|
483
|
-
operator_name: m.or(d.null)
|
|
484
|
-
}
|
|
485
|
-
}), W = r.and({
|
|
486
|
-
type: "'player_location_changed'",
|
|
487
|
-
content: {
|
|
488
|
-
player_id: "number",
|
|
489
|
-
location_name: "string"
|
|
490
|
-
}
|
|
491
|
-
}), X = r.and({
|
|
492
|
-
type: "'player_side_changed'",
|
|
493
|
-
content: {
|
|
494
|
-
player_id: "number",
|
|
495
|
-
side: u
|
|
496
|
-
}
|
|
497
|
-
}), Z = r.and({
|
|
498
|
-
type: "'player_stats_changed'",
|
|
499
|
-
content: {
|
|
500
|
-
player_id: "number",
|
|
501
|
-
match_stats: g
|
|
502
|
-
}
|
|
503
|
-
}), $ = r.and({
|
|
504
|
-
type: "'player_ping_updated'",
|
|
505
|
-
content: {
|
|
506
|
-
player_id: "number",
|
|
507
|
-
ping: "number"
|
|
508
|
-
}
|
|
509
|
-
}), ee = r.and({
|
|
510
|
-
type: "'defuser_planted'",
|
|
511
|
-
content: {
|
|
512
|
-
player_id: "number"
|
|
513
|
-
}
|
|
514
|
-
}), ae = r.and({
|
|
515
|
-
type: "'defuser_sabotaged'",
|
|
516
|
-
content: {
|
|
517
|
-
player_id: "number"
|
|
518
|
-
}
|
|
519
|
-
}), ne = r.and({
|
|
520
|
-
type: "'defuser_picked_up'",
|
|
521
|
-
content: {
|
|
522
|
-
player_id: "number",
|
|
523
|
-
initial: "boolean"
|
|
524
|
-
}
|
|
525
|
-
}), re = r.and({
|
|
526
|
-
type: "'defuser_dropped'",
|
|
527
|
-
content: {
|
|
528
|
-
player_id: "number"
|
|
529
|
-
}
|
|
530
|
-
}), te = r.and({
|
|
531
|
-
type: "'player_life_state_changed'",
|
|
532
|
-
content: {
|
|
533
|
-
player_id: "number",
|
|
534
|
-
life_state: p
|
|
535
|
-
}
|
|
536
|
-
}), ie = r.and({
|
|
537
|
-
type: "'player_died'",
|
|
538
|
-
content: {
|
|
539
|
-
player_id: "number",
|
|
540
|
-
instigator_player_id: "number"
|
|
541
|
-
}
|
|
542
|
-
}), de = r.and({
|
|
543
|
-
type: "'player_downed'",
|
|
544
|
-
content: {
|
|
545
|
-
player_id: "number",
|
|
546
|
-
instigator_player_id: "number"
|
|
547
|
-
}
|
|
548
|
-
}), oe = r.and({
|
|
549
|
-
type: "'player_ping_id_changed'",
|
|
550
|
-
content: {
|
|
551
|
-
player_id: "number",
|
|
552
|
-
ping_id: "number"
|
|
553
|
-
}
|
|
554
|
-
}), se = r.and({
|
|
555
|
-
type: "'player_team_changed'",
|
|
556
|
-
content: {
|
|
557
|
-
player_id: "number",
|
|
558
|
-
team: c
|
|
559
|
-
}
|
|
560
|
-
}), le = b({
|
|
561
|
-
"#event1": "module_loaded | module_unloaded | unsupported_game_version | local_player | started_queuing | stopped_queuing | match_started | match_ended | map_changed | operator_banned | round_ended | phase_changed | player_joined | player_left | player_operator_changed | player_location_changed | player_side_changed | player_stats_changed",
|
|
562
|
-
"#event2": "player_life_state_changed | player_died | player_downed | player_ping_id_changed | player_team_changed | defuser_planted | defuser_sabotaged | defuser_picked_up | defuser_dropped | player_ping_updated",
|
|
563
|
-
event: "event1 | event2",
|
|
564
|
-
module_loaded: x,
|
|
565
|
-
module_unloaded: B,
|
|
566
|
-
unsupported_game_version: N,
|
|
567
|
-
local_player: D,
|
|
568
|
-
started_queuing: L,
|
|
569
|
-
stopped_queuing: q,
|
|
570
|
-
match_started: C,
|
|
571
|
-
match_ended: F,
|
|
572
|
-
map_changed: Y,
|
|
573
|
-
operator_banned: Q,
|
|
574
|
-
round_ended: U,
|
|
575
|
-
phase_changed: H,
|
|
576
|
-
player_joined: V,
|
|
577
|
-
player_left: K,
|
|
578
|
-
player_operator_changed: J,
|
|
579
|
-
player_location_changed: W,
|
|
580
|
-
player_side_changed: X,
|
|
581
|
-
player_stats_changed: Z,
|
|
582
|
-
defuser_planted: ee,
|
|
583
|
-
defuser_sabotaged: ae,
|
|
584
|
-
defuser_picked_up: ne,
|
|
585
|
-
defuser_dropped: re,
|
|
586
|
-
player_ping_updated: $,
|
|
587
|
-
player_life_state_changed: te,
|
|
588
|
-
player_died: ie,
|
|
589
|
-
player_downed: de,
|
|
590
|
-
player_ping_id_changed: oe,
|
|
591
|
-
player_team_changed: se
|
|
592
|
-
}).export();
|
|
593
|
-
function qe() {
|
|
594
|
-
return {
|
|
595
|
-
key: "siege",
|
|
596
|
-
events: le
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
export {
|
|
600
|
-
T as BaseEvent,
|
|
601
|
-
De as SIEGE_BOT_ID,
|
|
602
|
-
z as SIEGE_DAMAGE_TEAM_TYPES,
|
|
603
|
-
P as SIEGE_DAMAGE_TYPES,
|
|
604
|
-
S as SIEGE_GAME_MODE_PHASES,
|
|
605
|
-
l as SIEGE_GAME_MODE_TYPES_TO_ID,
|
|
606
|
-
Re as SIEGE_GAME_MODE_TYPE_LABELS,
|
|
607
|
-
Ce as SIEGE_MAP_LABELS,
|
|
608
|
-
je as SIEGE_MAP_TO_ID,
|
|
609
|
-
Me as SIEGE_OPERATOR_LABELS,
|
|
610
|
-
a as SIEGE_OPERATOR_TO_ID,
|
|
611
|
-
I as SIEGE_PLAYER_LIFE_STATES,
|
|
612
|
-
i as SIEGE_ROUND_STATES_TO_ID,
|
|
613
|
-
xe as SIEGE_ROUND_STATE_LABELS,
|
|
614
|
-
v as SIEGE_SIDES,
|
|
615
|
-
E as SIEGE_TEAMS,
|
|
616
|
-
O as SiegeDamageTeamTypeSchema,
|
|
617
|
-
ye as SiegeDamageTypeId,
|
|
618
|
-
w as SiegeDamageTypeSchema,
|
|
619
|
-
me as SiegeGameModeId,
|
|
620
|
-
f as SiegeGameModePhaseSchema,
|
|
621
|
-
s as SiegeGameModeTypeNameId,
|
|
622
|
-
pe as SiegeItemId,
|
|
623
|
-
ge as SiegeItemObjectId,
|
|
624
|
-
ue as SiegeMapId,
|
|
625
|
-
n as SiegeMapNameId,
|
|
626
|
-
Ee as SiegeMatchEndReasonId,
|
|
627
|
-
be as SiegeMatchId,
|
|
628
|
-
ke as SiegeMatchMatchId,
|
|
629
|
-
fe as SiegeMatchPlayerId,
|
|
630
|
-
ce as SiegeOperatorId,
|
|
631
|
-
e as SiegeOperatorNameId,
|
|
632
|
-
Se as SiegePlayerId,
|
|
633
|
-
he as SiegePlayerLifeStateId,
|
|
634
|
-
p as SiegePlayerLifeStateSchema,
|
|
635
|
-
ve as SiegeProfileId,
|
|
636
|
-
Ie as SiegeRoundId,
|
|
637
|
-
we as SiegeRoundPlayerDamageEventId,
|
|
638
|
-
ze as SiegeRoundPlayerDeathEventId,
|
|
639
|
-
Oe as SiegeRoundPlayerDefuserDropEventId,
|
|
640
|
-
Te as SiegeRoundPlayerDefuserEventId,
|
|
641
|
-
Ae as SiegeRoundPlayerDefuserPickupEventId,
|
|
642
|
-
Ge as SiegeRoundPlayerDownEventId,
|
|
643
|
-
Pe as SiegeRoundPlayerId,
|
|
644
|
-
_ as SiegeRoundState,
|
|
645
|
-
u as SiegeSideSchema,
|
|
646
|
-
c as SiegeTeamSchema,
|
|
647
|
-
Le as isSiegeRoundStateCompleted,
|
|
648
|
-
Be as isSiegeRoundStateVictory,
|
|
649
|
-
qe as module
|
|
650
|
-
};
|
|
1
|
+
import{Type as e,scope as t,type as n}from"arktype";function r(e){return e}function i(e){return e}function a(e){return e?t=>(e(t),t):i}const o=a(),s=a(),c=a(),l=a(),ee=a(),u=a(),d=a(),f=a(),p=`00000000-0000-0000-0000-000000000000`,m=[`intro`,`planning`,`prep`,`action`,`results`,`invalid`],h=n(`===`,...m),g=[0,1],_=n(`===`,...g),v=[`attacker`,`defender`,`both`,`invalid`],y=n(`===`,...v),b=[`normal`,`overhealed`,`low_health`,`downed`,`dead`,`respawning`],x=n(`===`,...b),S=`bullet.melee.explosive.falling.regeneration.unknown.debris.projectile.downed.gas.thermal_explosion.melee_gadget.barbed_wire.electric.reinforcement.frag.paralyzed.emp.break.cleanup.interrogation.melee-finisher.toxic.toxic-explosion.pneumatic.body-contact.contact-explosion.flash.parasite-spike.laser.concussion.blowtorch.taser-shield.reverse-friendly-fire.self-destroyed.area-control.fire.breach-kick.break-wall.blade-mine.invalid`.split(`.`),C=n(`===`,...S),w=[`unknown`,`enemy`,`friendly`,`invalid`],T=n(`===`,...w),E=Object.freeze({ranked:o(205379),quickMatch:o(138115),customGame:o(62008),versusAi:o(397300),standard:o(393930),arcade:o(320109),siegeCup:o(414089),dualFront:o(420611),showdown:o(305544),trainingGrounds:o(-1)}),D=Object.freeze({[E.quickMatch]:`Quick Match`,[E.ranked]:`Ranked`,[E.customGame]:`Custom Game`,[E.versusAi]:`Versus AI`,[E.standard]:`Standard`,[E.arcade]:`Arcade`,[E.siegeCup]:`Siege Cup`,[E.dualFront]:`Dual Front`,[E.showdown]:`Showdown`,[E.trainingGrounds]:`Training Grounds`}),O=Object.freeze({glaz:s(62242),blitz:s(62243),buck:s(62244),sledge:s(62245),ash:s(62246),thermite:s(62247),castle:s(62248),rook:s(62249),pulse:s(62250),doc:s(62251),mute:s(62252),smoke:s(62253),recruit:s(62555),thatcher:s(65143),twitch:s(65156),montagne:s(65159),bandit:s(65165),fuze:s(65168),kapkan:s(65171),tachanka:s(65174),jager:s(113049),iq:s(113052),frost:s(186159),blackbeard:s(187249),valkyrie:s(187252),caveira:s(207671),capitao:s(207674),echo:s(209180),hibana:s(209183),mira:s(222172),jackal:s(222182),ying:s(239334),lesion:s(239337),ela:s(254595),zofia:s(254606),dokkaebi:s(273652),vigil:s(273663),finka:s(281457),lion:s(281463),alibi:s(282399),maestro:s(285888),maverick:s(288504),clash:s(288526),nomad:s(293435),kaid:s(293436),gridlock:s(298589),mozzie:s(298616),nokk:s(299657),warden:s(299668),goyo:s(304196),amaru:s(308469),kali:s(310757),wamai:s(310768),oryx:s(317965),iana:s(317976),melusi:s(320062),ace:s(320073),zero:s(328927),aruni:s(328940),flores:s(334086),thunderbird:s(336466),osa:s(344493),thorn:s(349405),azami:s(354314),sens:s(357386),grim:s(365404),solis:s(376836),brava:s(382419),fenrir:s(386388),ram:s(392904),tubarao:s(395594),deimos:s(400504),striker:s(404278),sentry:s(404290),skopos:s(408405),rauora:s(421052)}),k=Object.freeze({[O.glaz]:`glaz`,[O.blitz]:`blitz`,[O.buck]:`buck`,[O.sledge]:`sledge`,[O.ash]:`ash`,[O.thermite]:`thermite`,[O.castle]:`castle`,[O.rook]:`rook`,[O.pulse]:`pulse`,[O.doc]:`doc`,[O.mute]:`mute`,[O.smoke]:`smoke`,[O.recruit]:`recruit`,[O.thatcher]:`thatcher`,[O.twitch]:`twitch`,[O.montagne]:`montagne`,[O.bandit]:`bandit`,[O.fuze]:`fuze`,[O.kapkan]:`kapkan`,[O.tachanka]:`tachanka`,[O.jager]:`jager`,[O.iq]:`iq`,[O.frost]:`frost`,[O.blackbeard]:`blackbeard`,[O.valkyrie]:`valkyrie`,[O.caveira]:`caveira`,[O.capitao]:`capitao`,[O.echo]:`echo`,[O.hibana]:`hibana`,[O.mira]:`mira`,[O.jackal]:`jackal`,[O.ying]:`ying`,[O.lesion]:`lesion`,[O.ela]:`ela`,[O.zofia]:`zofia`,[O.dokkaebi]:`dokkaebi`,[O.vigil]:`vigil`,[O.finka]:`finka`,[O.lion]:`lion`,[O.alibi]:`alibi`,[O.maestro]:`maestro`,[O.maverick]:`maverick`,[O.clash]:`clash`,[O.nomad]:`nomad`,[O.kaid]:`kaid`,[O.gridlock]:`gridlock`,[O.mozzie]:`mozzie`,[O.nokk]:`nokk`,[O.warden]:`warden`,[O.goyo]:`goyo`,[O.amaru]:`amaru`,[O.kali]:`kali`,[O.wamai]:`wamai`,[O.oryx]:`oryx`,[O.iana]:`iana`,[O.melusi]:`melusi`,[O.ace]:`ace`,[O.zero]:`zero`,[O.aruni]:`aruni`,[O.flores]:`flores`,[O.thunderbird]:`thunderbird`,[O.osa]:`osa`,[O.thorn]:`thorn`,[O.azami]:`azami`,[O.sens]:`sens`,[O.grim]:`grim`,[O.solis]:`solis`,[O.brava]:`brava`,[O.fenrir]:`fenrir`,[O.ram]:`ram`,[O.tubarao]:`tubarao`,[O.deimos]:`deimos`,[O.striker]:`striker`,[O.sentry]:`sentry`,[O.skopos]:`skopos`,[O.rauora]:`rauora`}),A=Object.freeze({[O.striker]:{name:`Striker`,role:`attacker`},[O.sledge]:{name:`Sledge`,role:`attacker`},[O.thatcher]:{name:`Thatcher`,role:`attacker`},[O.ash]:{name:`Ash`,role:`attacker`},[O.thermite]:{name:`Thermite`,role:`attacker`},[O.twitch]:{name:`Twitch`,role:`attacker`},[O.montagne]:{name:`Montagne`,role:`attacker`},[O.glaz]:{name:`Glaz`,role:`attacker`},[O.fuze]:{name:`Fuze`,role:`attacker`},[O.blitz]:{name:`Blitz`,role:`attacker`},[O.iq]:{name:`IQ`,role:`attacker`},[O.buck]:{name:`Buck`,role:`attacker`},[O.blackbeard]:{name:`Blackbeard`,role:`attacker`},[O.capitao]:{name:`Capitão`,role:`attacker`},[O.hibana]:{name:`Hibana`,role:`attacker`},[O.jackal]:{name:`Jackal`,role:`attacker`},[O.ying]:{name:`Ying`,role:`attacker`},[O.zofia]:{name:`Zofia`,role:`attacker`},[O.dokkaebi]:{name:`Dokkaebi`,role:`attacker`},[O.lion]:{name:`Lion`,role:`attacker`},[O.finka]:{name:`Finka`,role:`attacker`},[O.maverick]:{name:`Maverick`,role:`attacker`},[O.nomad]:{name:`Nomad`,role:`attacker`},[O.gridlock]:{name:`Gridlock`,role:`attacker`},[O.nokk]:{name:`Nøkk`,role:`attacker`},[O.amaru]:{name:`Amaru`,role:`attacker`},[O.kali]:{name:`Kali`,role:`attacker`},[O.iana]:{name:`Iana`,role:`attacker`},[O.ace]:{name:`Ace`,role:`attacker`},[O.zero]:{name:`Zero`,role:`attacker`},[O.flores]:{name:`Flores`,role:`attacker`},[O.osa]:{name:`Osa`,role:`attacker`},[O.sens]:{name:`Sens`,role:`attacker`},[O.grim]:{name:`Grim`,role:`attacker`},[O.brava]:{name:`Brava`,role:`attacker`},[O.ram]:{name:`Ram`,role:`attacker`},[O.deimos]:{name:`Deimos`,role:`attacker`},[O.rauora]:{name:`Rauora`,role:`attacker`},[O.sentry]:{name:`Sentry`,role:`defender`},[O.smoke]:{name:`Smoke`,role:`defender`},[O.mute]:{name:`Mute`,role:`defender`},[O.castle]:{name:`Castle`,role:`defender`},[O.pulse]:{name:`Pulse`,role:`defender`},[O.doc]:{name:`Doc`,role:`defender`},[O.rook]:{name:`Rook`,role:`defender`},[O.kapkan]:{name:`Kapkan`,role:`defender`},[O.tachanka]:{name:`Tachanka`,role:`defender`},[O.jager]:{name:`Jäger`,role:`defender`},[O.bandit]:{name:`Bandit`,role:`defender`},[O.frost]:{name:`Frost`,role:`defender`},[O.valkyrie]:{name:`Valkyrie`,role:`defender`},[O.caveira]:{name:`Caveira`,role:`defender`},[O.echo]:{name:`Echo`,role:`defender`},[O.mira]:{name:`Mira`,role:`defender`},[O.lesion]:{name:`Lesion`,role:`defender`},[O.ela]:{name:`Ela`,role:`defender`},[O.vigil]:{name:`Vigil`,role:`defender`},[O.alibi]:{name:`Alibi`,role:`defender`},[O.maestro]:{name:`Maestro`,role:`defender`},[O.clash]:{name:`Clash`,role:`defender`},[O.kaid]:{name:`Kaid`,role:`defender`},[O.mozzie]:{name:`Mozzie`,role:`defender`},[O.warden]:{name:`Warden`,role:`defender`},[O.goyo]:{name:`Goyo`,role:`defender`},[O.wamai]:{name:`Wamai`,role:`defender`},[O.oryx]:{name:`Oryx`,role:`defender`},[O.melusi]:{name:`Melusi`,role:`defender`},[O.aruni]:{name:`Aruni`,role:`defender`},[O.thunderbird]:{name:`Thunderbird`,role:`defender`},[O.thorn]:{name:`Thorn`,role:`defender`},[O.azami]:{name:`Azami`,role:`defender`},[O.solis]:{name:`Solis`,role:`defender`},[O.fenrir]:{name:`Fenrir`,role:`defender`},[O.tubarao]:{name:`Tubarao`,role:`defender`},[O.skopos]:{name:`Skopós`,role:`defender`}}),te=Object.freeze({attacker:Object.entries(A).filter(([e,t])=>t.role===`attacker`).map(([e])=>({...A[s(Number(e))],id:s(Number(e))})),defender:Object.entries(A).filter(([e,t])=>t.role===`defender`).map(([e])=>({...A[s(Number(e))],id:s(Number(e))}))}),j=Object.freeze({favela:c(202283),fortress:c(293334),villa:c(286407),neighborhood:c(333785),article5:c(196214),themePark:c(229325),stadium:c(338641),outback:c(299162),yacht:c(62226),emeraldPlains:c(358871),chalet:c(62230),coastline:c(217482),bank:c(62228),consulate:c(62227),tower:c(255669),nighthavenLabs:c(375492),presidentialPlane:c(62225),house:c(62221),kafeDostoyevsky:c(62232),border:c(201746),closeQuarter:c(365400),bartlettU:c(62231),lair:c(396234),herefordBase:c(62223),skyscraper:c(208094),cqbBasics:c(196157),oregon:c(62222),fortTruth:c(307723),kanal:c(62229),stadium2020:c(357300),clubhouse:c(62224),district:c(1193341205)}),M=Object.freeze({202283:`Favela`,293334:`Fortress`,286407:`Villa`,333785:`Neighborhood`,196214:`Article 5`,229325:`Theme Park`,338641:`Stadium`,299162:`Outback`,62226:`Yacht`,358871:`Emerald Plains`,62230:`Chalet`,217482:`Coastline`,62228:`Bank`,62227:`Consulate`,255669:`Tower`,375492:`Nighthaven Labs`,62225:`Presidential Plane`,187984:`Article 5`,62221:`House`,62232:`Kafe Dostoyevsky`,201746:`Border`,365400:`Close Quarter`,299161:`Outback`,62231:`Bartlett U.`,396234:`Lair`,62223:`Hereford Base`,208094:`Skyscraper`,196157:`CQB Basics`,62222:`Oregon`,299534:`Outback`,318512:`Stadium`,307723:`Fort Truth`,195681:`Article 5`,62229:`Kanal`,177763:`CQB Basics`,357300:`Stadium 2020`,62224:`Clubhouse`,1193341205:`District`}),N=Object.freeze({notPlayed:l(0),inProgress:l(1),lost:l(2),enemiesEliminated:l(3),objectiveComplete:l(4),timeRanOut:l(5),enemiesSurrendered:l(6),unknownReason:l(7),matchCancelled:l(8)}),P=Object.freeze({[N.notPlayed]:`Not Played`,[N.inProgress]:`In Progress`,[N.lost]:`Lost`,[N.enemiesEliminated]:`Enemies Eliminated`,[N.objectiveComplete]:`Objective Complete`,[N.timeRanOut]:`Time ran out`,[N.enemiesSurrendered]:`Enemies Surrendered`,[N.unknownReason]:`Unknown Reason`,[N.matchCancelled]:`Match Cancelled`}),F=n({game:`string`,type:`string`,creation_time:`number`}),I=[N.enemiesEliminated,N.objectiveComplete,N.timeRanOut,N.enemiesSurrendered,N.unknownReason];function L(e){return I.includes(e)}const R=[N.notPlayed,N.inProgress];function z(e){return!R.includes(e)}const B=F.and({game:`'siege'`}),V=B.and({type:`'local_player'`,content:{profile_id:r(n.string)}}),H=()=>n({id:`number`,value:`string`}),U=n({kills:`number`,deaths:`number`,assists:`number`,plants:`number`,score:`number`}),W=n({instigator_player_id:r(n.number),receiver_player_id:r(n.number),damage_amount:`number`,remaining_health:`number`,pre_damage_health:`number`,max_health:`number`,damage_type:C,damage_team_type:T,damage_item_id:r(n.number).or(`null`),damage_time:`number`}),G=n({index:`number`,rounds_until_next_segment:`number`,segment_size:`number`,segment_index:`number`,team_0:{role:y,state:r(n.number)},team_1:{role:y,state:r(n.number)}}),K=n({id:`number`,name:H(),time_of_day:H()}),q=n({player_id:r(n.number),final_health:`number`,final_life_state:x,operator_name:H().or(`null`)}),J=n({round_data:G,damage_events:W.array(),players:q.array()}),Y=B.and({type:`'match_started'`,content:{game_mode:`string`,game_type:H(),match_type:`string`,match_id:r(n.number),map:K,is_round_based:`boolean`,current_round_index:`number`,rounds:G.array()}}),X=B.and({type:`'module_loaded'`}),Z=B.and({type:`'module_unloaded'`}),Q=B.and({type:`'started_queuing'`,content:{game_mode:`string`,game_type:H(),match_type:`string`}}),ne=B.and({type:`'stopped_queuing'`}),re=B.and({type:`'unsupported_game_version'`,content:{hash:`string | null`,version:`string | null`}}),ie=B.and({type:`'match_ended'`}),ae=B.and({type:`'map_changed'`,content:{map:K}}),oe=B.and({type:`'operator_banned'`,content:{index:`number`,team:_,side:y,operator_name:H().or(`null`)}}),se=B.and({type:`'round_ended'`,content:J}),ce=B.and({type:`'phase_changed'`,content:{phase:h}}),le=B.and({type:`'player_joined'`,content:{player_id:r(n.number),profile_id:`string.uuid`,is_bot:`boolean`,is_enemy:`boolean`,is_squad_member:`boolean`,is_local_player:`boolean`,username:`string`,side:y,team:_,is_privacy_username:`boolean`,has_avatar_hidden:`boolean`,has_commend_streak:`boolean`,ping_id:`number`,match_stats:U,life_state:x,ping:`number`}}).pipe(e=>({...e,content:{...e.content,starting_side:e.content.side}})),ue=B.and({type:`'player_left'`,content:{player_id:r(n.number)}}),de=B.and({type:`'player_operator_changed'`,content:{player_id:r(n.number),operator_name:H().or(`null`)}}),fe=B.and({type:`'player_location_changed'`,content:{player_id:r(n.number),location_name:`string`}}),pe=B.and({type:`'player_side_changed'`,content:{player_id:r(n.number),side:y}}),me=B.and({type:`'player_stats_changed'`,content:{player_id:r(n.number),match_stats:U}}),$=B.and({type:`'player_ping_updated'`,content:{player_id:r(n.number),ping:`number`}}),he=B.and({type:`'defuser_planted'`,content:{player_id:r(n.number)}}),ge=B.and({type:`'defuser_sabotaged'`,content:{player_id:r(n.number)}}),_e=B.and({type:`'defuser_picked_up'`,content:{player_id:r(n.number),initial:`boolean`}}),ve=B.and({type:`'defuser_dropped'`,content:{player_id:r(n.number)}}),ye=B.and({type:`'player_life_state_changed'`,content:{player_id:r(n.number),life_state:x}}),be=B.and({type:`'player_died'`,content:{player_id:r(n.number),instigator_player_id:r(n.number)}}),xe=B.and({type:`'player_downed'`,content:{player_id:r(n.number),instigator_player_id:r(n.number)}}),Se=B.and({type:`'player_ping_id_changed'`,content:{player_id:r(n.number),ping_id:`number`}}),Ce=B.and({type:`'player_team_changed'`,content:{player_id:r(n.number),team:_}}),we=t({"#event1":`module_loaded | module_unloaded | unsupported_game_version | local_player | started_queuing | stopped_queuing | match_started | match_ended | map_changed | operator_banned | round_ended | phase_changed | player_joined | player_left | player_operator_changed | player_location_changed | player_side_changed | player_stats_changed`,"#event2":`player_life_state_changed | player_died | player_downed | player_ping_id_changed | player_team_changed | defuser_planted | defuser_sabotaged | defuser_picked_up | defuser_dropped | player_ping_updated`,event:`event1 | event2`,module_loaded:X,module_unloaded:Z,unsupported_game_version:re,local_player:V,started_queuing:Q,stopped_queuing:ne,match_started:Y,match_ended:ie,map_changed:ae,operator_banned:oe,round_ended:se,phase_changed:ce,player_joined:le,player_left:ue,player_operator_changed:de,player_location_changed:fe,player_side_changed:pe,player_stats_changed:me,defuser_planted:he,defuser_sabotaged:ge,defuser_picked_up:_e,defuser_dropped:ve,player_ping_updated:$,player_life_state_changed:ye,player_died:be,player_downed:xe,player_ping_id_changed:Se,player_team_changed:Ce}).export();function Te(){return{key:`siege`,events:we}}export{F as BaseEvent,p as SIEGE_BOT_ID,w as SIEGE_DAMAGE_TEAM_TYPES,S as SIEGE_DAMAGE_TYPES,m as SIEGE_GAME_MODE_PHASES,E as SIEGE_GAME_MODE_TYPES_TO_ID,D as SIEGE_GAME_MODE_TYPE_LABELS,M as SIEGE_MAP_LABELS,j as SIEGE_MAP_TO_ID,k as SIEGE_OPERATOR_LABELS,A as SIEGE_OPERATOR_META,O as SIEGE_OPERATOR_TO_ID,b as SIEGE_PLAYER_LIFE_STATES,N as SIEGE_ROUND_STATES_TO_ID,P as SIEGE_ROUND_STATE_LABELS,v as SIEGE_SIDES,te as SIEGE_SIDE_OPERATORS,g as SIEGE_TEAMS,T as SiegeDamageTeamTypeSchema,C as SiegeDamageTypeSchema,h as SiegeGameModePhaseSchema,o as SiegeGameModeTypeNameId,f as SiegeItemObjectId,c as SiegeMapNameId,ee as SiegeMatchId,s as SiegeOperatorNameId,u as SiegePlayerId,x as SiegePlayerLifeStateSchema,d as SiegeProfileId,l as SiegeRoundState,y as SiegeSideSchema,_ as SiegeTeamSchema,z as isSiegeRoundStateCompleted,L as isSiegeRoundStateVictory,Te as module};
|