@openmouse/protocol 0.42.3 → 0.43.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/drivers/registry.d.ts +13 -1
- package/dist/drivers/registry.d.ts.map +1 -1
- package/dist/drivers/registry.js +24 -0
- package/dist/drivers/registry.js.map +1 -1
- package/dist/drivers/steelseries/aerox-3-wireless-gen2-hid.d.ts +65 -0
- package/dist/drivers/steelseries/aerox-3-wireless-gen2-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/aerox-3-wireless-gen2-hid.js +205 -0
- package/dist/drivers/steelseries/aerox-3-wireless-gen2-hid.js.map +1 -0
- package/dist/drivers/steelseries/prime-mini-hid.d.ts +59 -0
- package/dist/drivers/steelseries/prime-mini-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/prime-mini-hid.js +183 -0
- package/dist/drivers/steelseries/prime-mini-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-100-hid.d.ts +57 -0
- package/dist/drivers/steelseries/rival-100-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-100-hid.js +181 -0
- package/dist/drivers/steelseries/rival-100-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-110-hid.d.ts +78 -0
- package/dist/drivers/steelseries/rival-110-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-110-hid.js +206 -0
- package/dist/drivers/steelseries/rival-110-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-3-v2-hid.d.ts +59 -0
- package/dist/drivers/steelseries/rival-3-v2-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-3-v2-hid.js +183 -0
- package/dist/drivers/steelseries/rival-3-v2-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-3-wireless-v2-hid.d.ts +64 -0
- package/dist/drivers/steelseries/rival-3-wireless-v2-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-3-wireless-v2-hid.js +199 -0
- package/dist/drivers/steelseries/rival-3-wireless-v2-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-300-hid.d.ts +78 -0
- package/dist/drivers/steelseries/rival-300-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-300-hid.js +206 -0
- package/dist/drivers/steelseries/rival-300-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-5-hid.d.ts +55 -0
- package/dist/drivers/steelseries/rival-5-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-5-hid.js +177 -0
- package/dist/drivers/steelseries/rival-5-hid.js.map +1 -0
- package/dist/drivers/steelseries/rival-600-hid.d.ts +65 -0
- package/dist/drivers/steelseries/rival-600-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/rival-600-hid.js +184 -0
- package/dist/drivers/steelseries/rival-600-hid.js.map +1 -0
- package/dist/drivers/steelseries/sensei-310-hid.d.ts +54 -0
- package/dist/drivers/steelseries/sensei-310-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/sensei-310-hid.js +177 -0
- package/dist/drivers/steelseries/sensei-310-hid.js.map +1 -0
- package/dist/drivers/steelseries/sensei-raw-hid.d.ts +75 -0
- package/dist/drivers/steelseries/sensei-raw-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/sensei-raw-hid.js +199 -0
- package/dist/drivers/steelseries/sensei-raw-hid.js.map +1 -0
- package/dist/drivers/steelseries/sensei-rival-pro-hid.d.ts +42 -0
- package/dist/drivers/steelseries/sensei-rival-pro-hid.d.ts.map +1 -0
- package/dist/drivers/steelseries/sensei-rival-pro-hid.js +132 -0
- package/dist/drivers/steelseries/sensei-rival-pro-hid.js.map +1 -0
- package/dist/steelseries/aerox-3-wireless-gen2.d.ts +204 -0
- package/dist/steelseries/aerox-3-wireless-gen2.d.ts.map +1 -0
- package/dist/steelseries/aerox-3-wireless-gen2.js +301 -0
- package/dist/steelseries/aerox-3-wireless-gen2.js.map +1 -0
- package/dist/steelseries/aerox3.d.ts +3 -3
- package/dist/steelseries/aerox3.js +3 -3
- package/dist/steelseries/devices.d.ts +31 -14
- package/dist/steelseries/devices.d.ts.map +1 -1
- package/dist/steelseries/devices.js +417 -13
- package/dist/steelseries/devices.js.map +1 -1
- package/dist/steelseries/index.d.ts +12 -0
- package/dist/steelseries/index.d.ts.map +1 -1
- package/dist/steelseries/index.js +12 -0
- package/dist/steelseries/index.js.map +1 -1
- package/dist/steelseries/prime-mini-wireless.d.ts +9 -14
- package/dist/steelseries/prime-mini-wireless.d.ts.map +1 -1
- package/dist/steelseries/prime-mini-wireless.js +9 -14
- package/dist/steelseries/prime-mini-wireless.js.map +1 -1
- package/dist/steelseries/prime-mini.d.ts +173 -0
- package/dist/steelseries/prime-mini.d.ts.map +1 -0
- package/dist/steelseries/prime-mini.js +273 -0
- package/dist/steelseries/prime-mini.js.map +1 -0
- package/dist/steelseries/prime-plus.d.ts +5 -4
- package/dist/steelseries/prime-plus.d.ts.map +1 -1
- package/dist/steelseries/prime-plus.js +5 -4
- package/dist/steelseries/prime-plus.js.map +1 -1
- package/dist/steelseries/rival-100.d.ts +134 -0
- package/dist/steelseries/rival-100.d.ts.map +1 -0
- package/dist/steelseries/rival-100.js +195 -0
- package/dist/steelseries/rival-100.js.map +1 -0
- package/dist/steelseries/rival-110.d.ts +134 -0
- package/dist/steelseries/rival-110.d.ts.map +1 -0
- package/dist/steelseries/rival-110.js +205 -0
- package/dist/steelseries/rival-110.js.map +1 -0
- package/dist/steelseries/rival-3-v2.d.ts +168 -0
- package/dist/steelseries/rival-3-v2.d.ts.map +1 -0
- package/dist/steelseries/rival-3-v2.js +242 -0
- package/dist/steelseries/rival-3-v2.js.map +1 -0
- package/dist/steelseries/rival-3-wireless-v2.d.ts +219 -0
- package/dist/steelseries/rival-3-wireless-v2.d.ts.map +1 -0
- package/dist/steelseries/rival-3-wireless-v2.js +270 -0
- package/dist/steelseries/rival-3-wireless-v2.js.map +1 -0
- package/dist/steelseries/rival-300.d.ts +163 -0
- package/dist/steelseries/rival-300.d.ts.map +1 -0
- package/dist/steelseries/rival-300.js +266 -0
- package/dist/steelseries/rival-300.js.map +1 -0
- package/dist/steelseries/rival-5.d.ts +165 -0
- package/dist/steelseries/rival-5.d.ts.map +1 -0
- package/dist/steelseries/rival-5.js +212 -0
- package/dist/steelseries/rival-5.js.map +1 -0
- package/dist/steelseries/rival-600.d.ts +194 -0
- package/dist/steelseries/rival-600.d.ts.map +1 -0
- package/dist/steelseries/rival-600.js +262 -0
- package/dist/steelseries/rival-600.js.map +1 -0
- package/dist/steelseries/sensei-310.d.ts +162 -0
- package/dist/steelseries/sensei-310.d.ts.map +1 -0
- package/dist/steelseries/sensei-310.js +250 -0
- package/dist/steelseries/sensei-310.js.map +1 -0
- package/dist/steelseries/sensei-raw.d.ts +169 -0
- package/dist/steelseries/sensei-raw.d.ts.map +1 -0
- package/dist/steelseries/sensei-raw.js +233 -0
- package/dist/steelseries/sensei-raw.js.map +1 -0
- package/dist/steelseries/sensei-rival-pro.d.ts +214 -0
- package/dist/steelseries/sensei-rival-pro.d.ts.map +1 -0
- package/dist/steelseries/sensei-rival-pro.js +298 -0
- package/dist/steelseries/sensei-rival-pro.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sensei-raw.js","sourceRoot":"","sources":["../../src/steelseries/sensei-raw.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAEzC,sEAAsE;AACtE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IAC1B,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IAC1B,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IACzB,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IAC3B,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IACv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|
+
* SteelSeries Sensei Pro / Rival Pro configuration protocol — pure encode helpers.
|
|
3
|
+
*
|
|
4
|
+
* Reconstructed from the vendor's own software, not from a third-party
|
|
5
|
+
* reimplementation: SteelSeries GG 121.0.0 ships per-device Lisp
|
|
6
|
+
* specifications under `apps/engine/install/deviceSpecifications/`, and this
|
|
7
|
+
* module transcribes `sensei_rival_pro_shared.lisp` (plus the `dongle` and
|
|
8
|
+
* `base_station` files for product ids). Those files are OpenPGP-armored
|
|
9
|
+
* ("DESCRIPTOR" armor, SKESK/AES-128); the bytes below are the documented
|
|
10
|
+
* HID report payloads, not guesses. No other public implementation of this
|
|
11
|
+
* protocol family was available to corroborate against — rivalcfg does not
|
|
12
|
+
* cover these mice — so treat every byte as vendor-documented but not yet
|
|
13
|
+
* hardware-verified.
|
|
14
|
+
*
|
|
15
|
+
* The four models (Sensei Pro, Sensei Pro Mini, Rival Pro, Rival Pro Mini)
|
|
16
|
+
* share one specification: the mouse reports its model and color itself
|
|
17
|
+
* (`read_device_model` / `read_color_spin`, `translate_device_model`
|
|
18
|
+
* 0 = sensei_pro, 1 = sensei_pro_mini, 2 = rival_pro, 3 = rival_pro_mini).
|
|
19
|
+
* The host talks to the base station (`1038:1880`) or the dongle
|
|
20
|
+
* (`1038:1882`); individual mouse USB product ids are not listed in the
|
|
21
|
+
* shipped specification, so only the station and dongle ids are registered
|
|
22
|
+
* in `./devices.ts`.
|
|
23
|
+
*
|
|
24
|
+
* Every command is an HID **output report** with report id 0x00, 65-byte
|
|
25
|
+
* reports (`chunk HIDIO 65` throughout the specification).
|
|
26
|
+
*
|
|
27
|
+
* DPI is carried as raw little-endian uint16 values — there is no sensor
|
|
28
|
+
* lookup table in this family (unlike TrueMove Core/Air). Each of the 5
|
|
29
|
+
* presets is one 6-byte `mouse_sensitivity` struct: x_dpi (2 bytes),
|
|
30
|
+
* y_dpi (2 bytes), lift_off_distance (1 byte), landing_distance (1 byte).
|
|
31
|
+
* The specification fixes `num_dpi_levels` to the 0x01–0x05 range and the
|
|
32
|
+
* selected `index` to 0x00–0x04 (0-based), and its own write-success handler
|
|
33
|
+
* reads back all five 6-byte slots, so this codec always writes full
|
|
34
|
+
* five-preset tables rather than guessing at padding for shorter ones.
|
|
35
|
+
* No DPI minimum or maximum appears in the specification; the 1–65000 range
|
|
36
|
+
* accepted here follows SteelSeries' advertised range (42K sensor, GG
|
|
37
|
+
* allows up to 65K per contemporary reviews) and is flagged as such — it is
|
|
38
|
+
* not a vendor-file claim.
|
|
39
|
+
*
|
|
40
|
+
* Polling uses SteelSeries' dual-rate scheme: every level carries a sensor
|
|
41
|
+
* report rate and a polling rate side by side. The specification's own
|
|
42
|
+
* `translate_polling_and_report_rate_to_ui` maps value bytes to hertz:
|
|
43
|
+
* 0→8000, 1→4000, 2→2000, 3→1000, 4→500, 5→250, 6→125. The single-setting
|
|
44
|
+
* command (`0x2C`) takes an `index` (0–4) plus one `rate` byte; the batch
|
|
45
|
+
* command (`0x2D`) takes `num_levels` (1–5), an `index` (0–4), and five
|
|
46
|
+
* `{report_rate, polling_rate}` profile pairs, with the same full-table
|
|
47
|
+
* policy as DPI: exactly five profiles are written.
|
|
48
|
+
*
|
|
49
|
+
* Buttons are one 40-byte packet (8 slots × 5-byte `key_mapping` fields:
|
|
50
|
+
* function byte plus 4 key-code bytes), command `0x2A`: 6 physical buttons
|
|
51
|
+
* plus scroll up/down. Keyboard (`0x51`) and multimedia (`0x61`) targets
|
|
52
|
+
* take raw code bytes — the specification names no key tables, so unlike
|
|
53
|
+
* some sibling families there is nothing to corroborate names against.
|
|
54
|
+
* Scroll-up/scroll-down are valid remap targets but, as in the sibling
|
|
55
|
+
* families, only physical buttons are remap sources here.
|
|
56
|
+
*
|
|
57
|
+
* Known but deliberately not implemented — documented so nobody re-derives
|
|
58
|
+
* them, withheld until there is hardware evidence and a reason to ship them:
|
|
59
|
+
*
|
|
60
|
+
* - `0xB4` — read back the DPI preset table (same 5×6-byte layout).
|
|
61
|
+
* - `0xAC` / `0xAD` — read back the single/batch polling configuration.
|
|
62
|
+
* - `0xAA` — read back the button mapping (`command_status` + slots).
|
|
63
|
+
* - `0x92` — battery status read; `0x29` — sleep timer (uint32 ms);
|
|
64
|
+
* `0xA5` — LED indicator (DPI-level colors) read.
|
|
65
|
+
* - High-efficiency mode, wireless stability, mouse rotation, acceleration
|
|
66
|
+
* tables, scroll jump, motion sync, LAN mode (`0x15`–`0x17`, `0x95`–`0x97`,
|
|
67
|
+
* `0xBE`), and the base-station/dongle management commands.
|
|
68
|
+
*
|
|
69
|
+
* The mice expose no configurable RGB lighting — only the DPI-level
|
|
70
|
+
* indicator LED — so this family has no lighting encoder by design, not by
|
|
71
|
+
* omission. Settings apply on write; the save command (`0x09`, one byte)
|
|
72
|
+
* persists them. None of this has been verified on physical hardware by
|
|
73
|
+
* this project.
|
|
74
|
+
*/
|
|
75
|
+
export declare const SENSEI_RIVAL_PRO_REPORT_ID = 0;
|
|
76
|
+
/** Command prefixes; the payload is the prefix plus its arguments. */
|
|
77
|
+
export declare const SENSEI_RIVAL_PRO_COMMAND: {
|
|
78
|
+
readonly dpiPresets: readonly [52];
|
|
79
|
+
readonly pollingRate: readonly [44];
|
|
80
|
+
readonly pollingBatch: readonly [45];
|
|
81
|
+
readonly buttonsMapping: readonly [42];
|
|
82
|
+
/** `0xB4` — read back the DPI table; documented, not decoded here. */
|
|
83
|
+
readonly dpiPresetsQuery: readonly [180];
|
|
84
|
+
/** `0xAC` — read back the single polling rate; documented, not decoded here. */
|
|
85
|
+
readonly pollingRateQuery: readonly [172];
|
|
86
|
+
/** `0xAD` — read back the batch polling table; documented, not decoded here. */
|
|
87
|
+
readonly pollingBatchQuery: readonly [173];
|
|
88
|
+
/** `0xAA` — read back the button mapping; documented, not decoded here. */
|
|
89
|
+
readonly buttonsMappingQuery: readonly [170];
|
|
90
|
+
};
|
|
91
|
+
/** `0x09` — one byte; commit the current settings to onboard flash. */
|
|
92
|
+
export declare const SENSEI_RIVAL_PRO_SAVE_COMMAND: readonly [9];
|
|
93
|
+
export declare const SENSEI_RIVAL_PRO_POLLING_RATES: readonly [125, 250, 500, 1000, 2000, 4000, 8000];
|
|
94
|
+
/**
|
|
95
|
+
* No DPI bounds appear in the specification (raw uint16 per axis). The
|
|
96
|
+
* 1–65000 range follows SteelSeries' advertised range for these mice (42K
|
|
97
|
+
* sensor; GG accepts up to 65K per contemporary reviews) — it is not a
|
|
98
|
+
* vendor-file claim, and out-of-range values are rejected rather than
|
|
99
|
+
* clamped so a caller is never silently given a different sensitivity.
|
|
100
|
+
*/
|
|
101
|
+
export declare const SENSEI_RIVAL_PRO_DPI_MIN = 1;
|
|
102
|
+
export declare const SENSEI_RIVAL_PRO_DPI_MAX = 65000;
|
|
103
|
+
export declare const SENSEI_RIVAL_PRO_DPI_PRESETS = 5;
|
|
104
|
+
/** Factory defaults (400/800/1600/2400/3200) per SteelSeries support. */
|
|
105
|
+
export declare const SENSEI_RIVAL_PRO_DEFAULT_DPI_PRESETS: readonly [400, 800, 1600, 2400, 3200];
|
|
106
|
+
/**
|
|
107
|
+
* UI DPI options: 50–65000 in 50 DPI steps. The wire format accepts any
|
|
108
|
+
* 1–65000 integer; this list is only a picker hint following the 50-step
|
|
109
|
+
* convention of the other linear SteelSeries families.
|
|
110
|
+
*/
|
|
111
|
+
export declare function steelseriesSenseiRivalProDpiOptions(): number[];
|
|
112
|
+
export declare class SenseiRivalProProtocolError extends Error {
|
|
113
|
+
}
|
|
114
|
+
/** One DPI preset: independent X/Y sensitivity plus lift-off/landing distances. */
|
|
115
|
+
export interface SenseiRivalProDpiPreset {
|
|
116
|
+
x: number;
|
|
117
|
+
y: number;
|
|
118
|
+
/** Lift-off distance byte; no vendor range — passed through. */
|
|
119
|
+
liftOffDistance: number;
|
|
120
|
+
/** Landing distance byte; no vendor range — passed through. */
|
|
121
|
+
landingDistance: number;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* `34 <count 1–5> <selected 0-based> <5× (x u16LE, y u16LE, lod, lad)>` —
|
|
125
|
+
* replaces the mouse's whole preset table. The specification's write-success
|
|
126
|
+
* handler always reads back all five 6-byte slots, so exactly five presets
|
|
127
|
+
* are required; `selectedIndex` is 0-based here and on the wire.
|
|
128
|
+
*/
|
|
129
|
+
export declare function steelseriesSenseiRivalProEncodeDpiPresets(presets: readonly SenseiRivalProDpiPreset[], selectedIndex: number): Uint8Array;
|
|
130
|
+
/**
|
|
131
|
+
* `2C <index 0–4> <rate>` — one polling level. The same value byte selects
|
|
132
|
+
* both the polling and the sensor report rate scales.
|
|
133
|
+
*/
|
|
134
|
+
export declare function steelseriesSenseiRivalProEncodePollingRate(index: number, pollingRateHz: number): Uint8Array;
|
|
135
|
+
/** One performance profile: sensor report rate plus polling rate. */
|
|
136
|
+
export interface SenseiRivalProPollingProfile {
|
|
137
|
+
reportRateHz: number;
|
|
138
|
+
pollingRateHz: number;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* `2D <count=5> <selected 0–4> <5× (report byte, polling byte)>` — the
|
|
142
|
+
* whole polling table. Exactly five profiles are required, matching what
|
|
143
|
+
* the specification reads back.
|
|
144
|
+
*/
|
|
145
|
+
export declare function steelseriesSenseiRivalProEncodePollingBatch(profiles: readonly SenseiRivalProPollingProfile[], selectedIndex: number): Uint8Array;
|
|
146
|
+
/** `09` — commit the current settings to onboard flash. */
|
|
147
|
+
export declare function steelseriesSenseiRivalProSaveCommand(): Uint8Array;
|
|
148
|
+
/** `key_mapping.function` values from the specification. */
|
|
149
|
+
export declare const SENSEI_RIVAL_PRO_BUTTONS: {
|
|
150
|
+
readonly button1: {
|
|
151
|
+
readonly id: 1;
|
|
152
|
+
readonly offset: 0;
|
|
153
|
+
};
|
|
154
|
+
readonly button2: {
|
|
155
|
+
readonly id: 2;
|
|
156
|
+
readonly offset: 5;
|
|
157
|
+
};
|
|
158
|
+
readonly button3: {
|
|
159
|
+
readonly id: 3;
|
|
160
|
+
readonly offset: 10;
|
|
161
|
+
};
|
|
162
|
+
readonly button4: {
|
|
163
|
+
readonly id: 4;
|
|
164
|
+
readonly offset: 15;
|
|
165
|
+
};
|
|
166
|
+
readonly button5: {
|
|
167
|
+
readonly id: 5;
|
|
168
|
+
readonly offset: 20;
|
|
169
|
+
};
|
|
170
|
+
readonly button6: {
|
|
171
|
+
readonly id: 6;
|
|
172
|
+
readonly offset: 25;
|
|
173
|
+
};
|
|
174
|
+
readonly scrollUp: {
|
|
175
|
+
readonly id: 49;
|
|
176
|
+
readonly offset: 30;
|
|
177
|
+
};
|
|
178
|
+
readonly scrollDown: {
|
|
179
|
+
readonly id: 50;
|
|
180
|
+
readonly offset: 35;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
export type SenseiRivalProButtonName = keyof typeof SENSEI_RIVAL_PRO_BUTTONS;
|
|
184
|
+
/**
|
|
185
|
+
* One button's target. The specification names no keyboard/multimedia key
|
|
186
|
+
* tables, so those targets are raw code bytes. `0x71` (macro) is marked
|
|
187
|
+
* not supported by the specification and is rejected.
|
|
188
|
+
*/
|
|
189
|
+
export type SenseiRivalProButtonAction = {
|
|
190
|
+
type: "button";
|
|
191
|
+
target: SenseiRivalProButtonName;
|
|
192
|
+
} | {
|
|
193
|
+
type: "disabled";
|
|
194
|
+
} | {
|
|
195
|
+
type: "dpiSwitch";
|
|
196
|
+
} | {
|
|
197
|
+
type: "scrollUp";
|
|
198
|
+
} | {
|
|
199
|
+
type: "scrollDown";
|
|
200
|
+
} | {
|
|
201
|
+
type: "keyboard";
|
|
202
|
+
code: number;
|
|
203
|
+
} | {
|
|
204
|
+
type: "multimedia";
|
|
205
|
+
code: number;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* `2A` + one 40-byte packet (8 buttons × 5-byte fields: function byte plus
|
|
209
|
+
* 4 key-code bytes), zero-filled except where a mapping is given. Pass
|
|
210
|
+
* every button explicitly — unmapped buttons are left disabled, never
|
|
211
|
+
* defaulted, so a partial mapping cannot silently wipe the rest.
|
|
212
|
+
*/
|
|
213
|
+
export declare function steelseriesSenseiRivalProEncodeButtonsMapping(mapping: Partial<Record<SenseiRivalProButtonName, SenseiRivalProButtonAction>>): Uint8Array;
|
|
214
|
+
//# sourceMappingURL=sensei-rival-pro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sensei-rival-pro.d.ts","sourceRoot":"","sources":["../../src/steelseries/sensei-rival-pro.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AAEH,eAAO,MAAM,0BAA0B,IAAO,CAAC;AAE/C,sEAAsE;AACtE,eAAO,MAAM,wBAAwB;;;;;IAKnC,sEAAsE;;IAEtE,gFAAgF;;IAEhF,gFAAgF;;IAEhF,2EAA2E;;CAEnE,CAAC;AAEX,uEAAuE;AACvE,eAAO,MAAM,6BAA6B,cAAkB,CAAC;AAE7D,eAAO,MAAM,8BAA8B,kDAAmD,CAAC;AAgB/F;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAC1C,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAC9C,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAE9C,yEAAyE;AACzE,eAAO,MAAM,oCAAoC,uCAAwC,CAAC;AAE1F;;;;GAIG;AACH,wBAAgB,mCAAmC,IAAI,MAAM,EAAE,CAM9D;AAED,qBAAa,2BAA4B,SAAQ,KAAK;CAAG;AAEzD,mFAAmF;AACnF,MAAM,WAAW,uBAAuB;IACtC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gEAAgE;IAChE,eAAe,EAAE,MAAM,CAAC;IACxB,+DAA+D;IAC/D,eAAe,EAAE,MAAM,CAAC;CACzB;AA6BD;;;;;GAKG;AACH,wBAAgB,yCAAyC,CACvD,OAAO,EAAE,SAAS,uBAAuB,EAAE,EAC3C,aAAa,EAAE,MAAM,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pers.
|
|
3
|
+
*
|
|
4
|
+
* Reconstructed from the vendor's own software, not from a third-party
|
|
5
|
+
* reimplementation: SteelSeries GG 121.0.0 ships per-device Lisp
|
|
6
|
+
* specifications under `apps/engine/install/deviceSpecifications/`, and this
|
|
7
|
+
* module transcribes `sensei_rival_pro_shared.lisp` (plus the `dongle` and
|
|
8
|
+
* `base_station` files for product ids). Those files are OpenPGP-armored
|
|
9
|
+
* ("DESCRIPTOR" armor, SKESK/AES-128); the bytes below are the documented
|
|
10
|
+
* HID report payloads, not guesses. No other public implementation of this
|
|
11
|
+
* protocol family was available to corroborate against — rivalcfg does not
|
|
12
|
+
* cover these mice — so treat every byte as vendor-documented but not yet
|
|
13
|
+
* hardware-verified.
|
|
14
|
+
*
|
|
15
|
+
* The four models (Sensei Pro, Sensei Pro Mini, Rival Pro, Rival Pro Mini)
|
|
16
|
+
* share one specification: the mouse reports its model and color itself
|
|
17
|
+
* (`read_device_model` / `read_color_spin`, `translate_device_model`
|
|
18
|
+
* 0 = sensei_pro, 1 = sensei_pro_mini, 2 = rival_pro, 3 = rival_pro_mini).
|
|
19
|
+
* The host talks to the base station (`1038:1880`) or the dongle
|
|
20
|
+
* (`1038:1882`); individual mouse USB product ids are not listed in the
|
|
21
|
+
* shipped specification, so only the station and dongle ids are registered
|
|
22
|
+
* in `./devices.ts`.
|
|
23
|
+
*
|
|
24
|
+
* Every command is an HID **output report** with report id 0x00, 65-byte
|
|
25
|
+
* reports (`chunk HIDIO 65` throughout the specification).
|
|
26
|
+
*
|
|
27
|
+
* DPI is carried as raw little-endian uint16 values — there is no sensor
|
|
28
|
+
* lookup table in this family (unlike TrueMove Core/Air). Each of the 5
|
|
29
|
+
* presets is one 6-byte `mouse_sensitivity` struct: x_dpi (2 bytes),
|
|
30
|
+
* y_dpi (2 bytes), lift_off_distance (1 byte), landing_distance (1 byte).
|
|
31
|
+
* The specification fixes `num_dpi_levels` to the 0x01–0x05 range and the
|
|
32
|
+
* selected `index` to 0x00–0x04 (0-based), and its own write-success handler
|
|
33
|
+
* reads back all five 6-byte slots, so this codec always writes full
|
|
34
|
+
* five-preset tables rather than guessing at padding for shorter ones.
|
|
35
|
+
* No DPI minimum or maximum appears in the specification; the 1–65000 range
|
|
36
|
+
* accepted here follows SteelSeries' advertised range (42K sensor, GG
|
|
37
|
+
* allows up to 65K per contemporary reviews) and is flagged as such — it is
|
|
38
|
+
* not a vendor-file claim.
|
|
39
|
+
*
|
|
40
|
+
* Polling uses SteelSeries' dual-rate scheme: every level carries a sensor
|
|
41
|
+
* report rate and a polling rate side by side. The specification's own
|
|
42
|
+
* `translate_polling_and_report_rate_to_ui` maps value bytes to hertz:
|
|
43
|
+
* 0→8000, 1→4000, 2→2000, 3→1000, 4→500, 5→250, 6→125. The single-setting
|
|
44
|
+
* command (`0x2C`) takes an `index` (0–4) plus one `rate` byte; the batch
|
|
45
|
+
* command (`0x2D`) takes `num_levels` (1–5), an `index` (0–4), and five
|
|
46
|
+
* `{report_rate, polling_rate}` profile pairs, with the same full-table
|
|
47
|
+
* policy as DPI: exactly five profiles are written.
|
|
48
|
+
*
|
|
49
|
+
* Buttons are one 40-byte packet (8 slots × 5-byte `key_mapping` fields:
|
|
50
|
+
* function byte plus 4 key-code bytes), command `0x2A`: 6 physical buttons
|
|
51
|
+
* plus scroll up/down. Keyboard (`0x51`) and multimedia (`0x61`) targets
|
|
52
|
+
* take raw code bytes — the specification names no key tables, so unlike
|
|
53
|
+
* some sibling families there is nothing to corroborate names against.
|
|
54
|
+
* Scroll-up/scroll-down are valid remap targets but, as in the sibling
|
|
55
|
+
* families, only physical buttons are remap sources here.
|
|
56
|
+
*
|
|
57
|
+
* Known but deliberately not implemented — documented so nobody re-derives
|
|
58
|
+
* them, withheld until there is hardware evidence and a reason to ship them:
|
|
59
|
+
*
|
|
60
|
+
* - `0xB4` — read back the DPI preset table (same 5×6-byte layout).
|
|
61
|
+
* - `0xAC` / `0xAD` — read back the single/batch polling configuration.
|
|
62
|
+
* - `0xAA` — read back the button mapping (`command_status` + slots).
|
|
63
|
+
* - `0x92` — battery status read; `0x29` — sleep timer (uint32 ms);
|
|
64
|
+
* `0xA5` — LED indicator (DPI-level colors) read.
|
|
65
|
+
* - High-efficiency mode, wireless stability, mouse rotation, acceleration
|
|
66
|
+
* tables, scroll jump, motion sync, LAN mode (`0x15`–`0x17`, `0x95`–`0x97`,
|
|
67
|
+
* `0xBE`), and the base-station/dongle management commands.
|
|
68
|
+
*
|
|
69
|
+
* The mice expose no configurable RGB lighting — only the DPI-level
|
|
70
|
+
* indicator LED — so this family has no lighting encoder by design, not by
|
|
71
|
+
* omission. Settings apply on write; the save command (`0x09`, one byte)
|
|
72
|
+
* persists them. None of this has been verified on physical hardware by
|
|
73
|
+
* this project.
|
|
74
|
+
*/
|
|
75
|
+
export const SENSEI_RIVAL_PRO_REPORT_ID = 0x00;
|
|
76
|
+
/** Command prefixes; the payload is the prefix plus its arguments. */
|
|
77
|
+
export const SENSEI_RIVAL_PRO_COMMAND = {
|
|
78
|
+
dpiPresets: [0x34],
|
|
79
|
+
pollingRate: [0x2c],
|
|
80
|
+
pollingBatch: [0x2d],
|
|
81
|
+
buttonsMapping: [0x2a],
|
|
82
|
+
/** `0xB4` — read back the DPI table; documented, not decoded here. */
|
|
83
|
+
dpiPresetsQuery: [0xb4],
|
|
84
|
+
/** `0xAC` — read back the single polling rate; documented, not decoded here. */
|
|
85
|
+
pollingRateQuery: [0xac],
|
|
86
|
+
/** `0xAD` — read back the batch polling table; documented, not decoded here. */
|
|
87
|
+
pollingBatchQuery: [0xad],
|
|
88
|
+
/** `0xAA` — read back the button mapping; documented, not decoded here. */
|
|
89
|
+
buttonsMappingQuery: [0xaa],
|
|
90
|
+
};
|
|
91
|
+
/** `0x09` — one byte; commit the current settings to onboard flash. */
|
|
92
|
+
export const SENSEI_RIVAL_PRO_SAVE_COMMAND = [0x09];
|
|
93
|
+
export const SENSEI_RIVAL_PRO_POLLING_RATES = [125, 250, 500, 1000, 2000, 4000, 8000];
|
|
94
|
+
/**
|
|
95
|
+
* The specification's `translate_polling_and_report_rate_to_ui` table,
|
|
96
|
+
* verbatim: 0→8000, 1→4000, 2→2000, 3→1000, 4→500, 5→250, 6→125.
|
|
97
|
+
*/
|
|
98
|
+
const POLLING_RATE_TO_BYTE = new Map([
|
|
99
|
+
[8000, 0x00],
|
|
100
|
+
[4000, 0x01],
|
|
101
|
+
[2000, 0x02],
|
|
102
|
+
[1000, 0x03],
|
|
103
|
+
[500, 0x04],
|
|
104
|
+
[250, 0x05],
|
|
105
|
+
[125, 0x06],
|
|
106
|
+
]);
|
|
107
|
+
/**
|
|
108
|
+
* No DPI bounds appear in the specification (raw uint16 per axis). The
|
|
109
|
+
* 1–65000 range follows SteelSeries' advertised range for these mice (42K
|
|
110
|
+
* sensor; GG accepts up to 65K per contemporary reviews) — it is not a
|
|
111
|
+
* vendor-file claim, and out-of-range values are rejected rather than
|
|
112
|
+
* clamped so a caller is never silently given a different sensitivity.
|
|
113
|
+
*/
|
|
114
|
+
export const SENSEI_RIVAL_PRO_DPI_MIN = 1;
|
|
115
|
+
export const SENSEI_RIVAL_PRO_DPI_MAX = 65000;
|
|
116
|
+
export const SENSEI_RIVAL_PRO_DPI_PRESETS = 5;
|
|
117
|
+
/** Factory defaults (400/800/1600/2400/3200) per SteelSeries support. */
|
|
118
|
+
export const SENSEI_RIVAL_PRO_DEFAULT_DPI_PRESETS = [400, 800, 1600, 2400, 3200];
|
|
119
|
+
/**
|
|
120
|
+
* UI DPI options: 50–65000 in 50 DPI steps. The wire format accepts any
|
|
121
|
+
* 1–65000 integer; this list is only a picker hint following the 50-step
|
|
122
|
+
* convention of the other linear SteelSeries families.
|
|
123
|
+
*/
|
|
124
|
+
export function steelseriesSenseiRivalProDpiOptions() {
|
|
125
|
+
const options = [];
|
|
126
|
+
for (let dpi = 50; dpi <= SENSEI_RIVAL_PRO_DPI_MAX; dpi += 50) {
|
|
127
|
+
options.push(dpi);
|
|
128
|
+
}
|
|
129
|
+
return options;
|
|
130
|
+
}
|
|
131
|
+
export class SenseiRivalProProtocolError extends Error {
|
|
132
|
+
}
|
|
133
|
+
function checkByte(value, what) {
|
|
134
|
+
if (!Number.isInteger(value) || value < 0 || value > 255) {
|
|
135
|
+
throw new SenseiRivalProProtocolError(`${what} must be an integer 0–255.`);
|
|
136
|
+
}
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
function checkDpi(value) {
|
|
140
|
+
if (!Number.isInteger(value) || value < SENSEI_RIVAL_PRO_DPI_MIN || value > SENSEI_RIVAL_PRO_DPI_MAX) {
|
|
141
|
+
throw new SenseiRivalProProtocolError(`SteelSeries Sensei Pro / Rival Pro DPI must be ${SENSEI_RIVAL_PRO_DPI_MIN}–${SENSEI_RIVAL_PRO_DPI_MAX.toLocaleString("en-US")}.`);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
function encodePreset(preset) {
|
|
145
|
+
checkDpi(preset.x);
|
|
146
|
+
checkDpi(preset.y);
|
|
147
|
+
checkByte(preset.liftOffDistance, "Lift-off distance");
|
|
148
|
+
checkByte(preset.landingDistance, "Landing distance");
|
|
149
|
+
return [
|
|
150
|
+
preset.x & 0xff, (preset.x >> 8) & 0xff,
|
|
151
|
+
preset.y & 0xff, (preset.y >> 8) & 0xff,
|
|
152
|
+
preset.liftOffDistance, preset.landingDistance,
|
|
153
|
+
];
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* `34 <count 1–5> <selected 0-based> <5× (x u16LE, y u16LE, lod, lad)>` —
|
|
157
|
+
* replaces the mouse's whole preset table. The specification's write-success
|
|
158
|
+
* handler always reads back all five 6-byte slots, so exactly five presets
|
|
159
|
+
* are required; `selectedIndex` is 0-based here and on the wire.
|
|
160
|
+
*/
|
|
161
|
+
export function steelseriesSenseiRivalProEncodeDpiPresets(presets, selectedIndex) {
|
|
162
|
+
if (presets.length !== SENSEI_RIVAL_PRO_DPI_PRESETS) {
|
|
163
|
+
throw new SenseiRivalProProtocolError(`SteelSeries Sensei Pro / Rival Pro requires exactly ${SENSEI_RIVAL_PRO_DPI_PRESETS} DPI presets.`);
|
|
164
|
+
}
|
|
165
|
+
if (!Number.isInteger(selectedIndex) || selectedIndex < 0 || selectedIndex >= presets.length) {
|
|
166
|
+
throw new SenseiRivalProProtocolError(`Selected DPI preset must be an index into the ${presets.length} presets being written.`);
|
|
167
|
+
}
|
|
168
|
+
return new Uint8Array([
|
|
169
|
+
...SENSEI_RIVAL_PRO_COMMAND.dpiPresets,
|
|
170
|
+
presets.length,
|
|
171
|
+
selectedIndex,
|
|
172
|
+
...presets.flatMap(encodePreset),
|
|
173
|
+
]);
|
|
174
|
+
}
|
|
175
|
+
function pollingRateToByte(pollingRateHz) {
|
|
176
|
+
const byte = POLLING_RATE_TO_BYTE.get(pollingRateHz);
|
|
177
|
+
if (byte === undefined) {
|
|
178
|
+
throw new SenseiRivalProProtocolError(`SteelSeries Sensei Pro / Rival Pro supports ${SENSEI_RIVAL_PRO_POLLING_RATES.join(", ")} Hz polling.`);
|
|
179
|
+
}
|
|
180
|
+
return byte;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* `2C <index 0–4> <rate>` — one polling level. The same value byte selects
|
|
184
|
+
* both the polling and the sensor report rate scales.
|
|
185
|
+
*/
|
|
186
|
+
export function steelseriesSenseiRivalProEncodePollingRate(index, pollingRateHz) {
|
|
187
|
+
if (!Number.isInteger(index) || index < 0 || index > 4) {
|
|
188
|
+
throw new SenseiRivalProProtocolError("SteelSeries Sensei Pro / Rival Pro polling index must be 0–4.");
|
|
189
|
+
}
|
|
190
|
+
return new Uint8Array([...SENSEI_RIVAL_PRO_COMMAND.pollingRate, index, pollingRateToByte(pollingRateHz)]);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* `2D <count=5> <selected 0–4> <5× (report byte, polling byte)>` — the
|
|
194
|
+
* whole polling table. Exactly five profiles are required, matching what
|
|
195
|
+
* the specification reads back.
|
|
196
|
+
*/
|
|
197
|
+
export function steelseriesSenseiRivalProEncodePollingBatch(profiles, selectedIndex) {
|
|
198
|
+
if (profiles.length !== SENSEI_RIVAL_PRO_DPI_PRESETS) {
|
|
199
|
+
throw new SenseiRivalProProtocolError("SteelSeries Sensei Pro / Rival Pro requires exactly 5 polling profiles.");
|
|
200
|
+
}
|
|
201
|
+
if (!Number.isInteger(selectedIndex) || selectedIndex < 0 || selectedIndex >= profiles.length) {
|
|
202
|
+
throw new SenseiRivalProProtocolError("Selected polling profile must be an index into the 5 profiles being written.");
|
|
203
|
+
}
|
|
204
|
+
return new Uint8Array([
|
|
205
|
+
...SENSEI_RIVAL_PRO_COMMAND.pollingBatch,
|
|
206
|
+
profiles.length,
|
|
207
|
+
selectedIndex,
|
|
208
|
+
...profiles.flatMap((profile) => [
|
|
209
|
+
pollingRateToByte(profile.reportRateHz),
|
|
210
|
+
pollingRateToByte(profile.pollingRateHz),
|
|
211
|
+
]),
|
|
212
|
+
]);
|
|
213
|
+
}
|
|
214
|
+
/** `09` — commit the current settings to onboard flash. */
|
|
215
|
+
export function steelseriesSenseiRivalProSaveCommand() {
|
|
216
|
+
return new Uint8Array(SENSEI_RIVAL_PRO_SAVE_COMMAND);
|
|
217
|
+
}
|
|
218
|
+
// -- Button mapping --------------------------------------------------------
|
|
219
|
+
/** `key_mapping.function` values from the specification. */
|
|
220
|
+
export const SENSEI_RIVAL_PRO_BUTTONS = {
|
|
221
|
+
button1: { id: 0x01, offset: 0x00 },
|
|
222
|
+
button2: { id: 0x02, offset: 0x05 },
|
|
223
|
+
button3: { id: 0x03, offset: 0x0a },
|
|
224
|
+
button4: { id: 0x04, offset: 0x0f },
|
|
225
|
+
button5: { id: 0x05, offset: 0x14 },
|
|
226
|
+
button6: { id: 0x06, offset: 0x19 },
|
|
227
|
+
scrollUp: { id: 0x31, offset: 0x1e },
|
|
228
|
+
scrollDown: { id: 0x32, offset: 0x23 },
|
|
229
|
+
};
|
|
230
|
+
const BUTTON_FIELD_LENGTH = 5;
|
|
231
|
+
const BUTTON_DISABLE = 0x00;
|
|
232
|
+
const BUTTON_DPI_SWITCH = 0x30;
|
|
233
|
+
const BUTTON_KEYBOARD = 0x51;
|
|
234
|
+
const BUTTON_MULTIMEDIA = 0x61;
|
|
235
|
+
function encodeKeyCode(code, kind) {
|
|
236
|
+
if (!Number.isInteger(code) || code < 0 || code > 255) {
|
|
237
|
+
throw new SenseiRivalProProtocolError(`${kind} codes must be integers 0–255.`);
|
|
238
|
+
}
|
|
239
|
+
return code;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* `2A` + one 40-byte packet (8 buttons × 5-byte fields: function byte plus
|
|
243
|
+
* 4 key-code bytes), zero-filled except where a mapping is given. Pass
|
|
244
|
+
* every button explicitly — unmapped buttons are left disabled, never
|
|
245
|
+
* defaulted, so a partial mapping cannot silently wipe the rest.
|
|
246
|
+
*/
|
|
247
|
+
export function steelseriesSenseiRivalProEncodeButtonsMapping(mapping) {
|
|
248
|
+
for (const name of Object.keys(mapping)) {
|
|
249
|
+
if (!Object.hasOwn(SENSEI_RIVAL_PRO_BUTTONS, name)) {
|
|
250
|
+
throw new SenseiRivalProProtocolError(`Unknown SteelSeries Sensei Pro / Rival Pro button "${name}".`);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
const names = Object.keys(SENSEI_RIVAL_PRO_BUTTONS);
|
|
254
|
+
const packet = new Array(names.length * BUTTON_FIELD_LENGTH).fill(0x00);
|
|
255
|
+
for (const [name, action] of Object.entries(mapping)) {
|
|
256
|
+
const { offset } = SENSEI_RIVAL_PRO_BUTTONS[name];
|
|
257
|
+
switch (action.type) {
|
|
258
|
+
case "button": {
|
|
259
|
+
if (!Object.hasOwn(SENSEI_RIVAL_PRO_BUTTONS, action.target)) {
|
|
260
|
+
throw new SenseiRivalProProtocolError(`Unknown SteelSeries Sensei Pro / Rival Pro button "${action.target}".`);
|
|
261
|
+
}
|
|
262
|
+
packet[offset] = SENSEI_RIVAL_PRO_BUTTONS[action.target].id;
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
case "disabled": {
|
|
266
|
+
packet[offset] = BUTTON_DISABLE;
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
case "dpiSwitch": {
|
|
270
|
+
packet[offset] = BUTTON_DPI_SWITCH;
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
case "scrollUp": {
|
|
274
|
+
packet[offset] = SENSEI_RIVAL_PRO_BUTTONS.scrollUp.id;
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
case "scrollDown": {
|
|
278
|
+
packet[offset] = SENSEI_RIVAL_PRO_BUTTONS.scrollDown.id;
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
case "keyboard": {
|
|
282
|
+
packet[offset] = BUTTON_KEYBOARD;
|
|
283
|
+
packet[offset + 1] = encodeKeyCode(action.code, "Keyboard scan");
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
case "multimedia": {
|
|
287
|
+
packet[offset] = BUTTON_MULTIMEDIA;
|
|
288
|
+
packet[offset + 1] = encodeKeyCode(action.code, "Multimedia key");
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
default: {
|
|
292
|
+
throw new SenseiRivalProProtocolError("Unsupported SteelSeries Sensei Pro / Rival Pro button action.");
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return new Uint8Array([...SENSEI_RIVAL_PRO_COMMAND.buttonsMapping, ...packet]);
|
|
297
|
+
}
|
|
298
|
+
//# sourceMappingURL=sensei-rival-pro.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sensei-rival-pro.js","sourceRoot":"","sources":["../../src/steelseries/sensei-rival-pro.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AAEH,MAAM,CAAC,MA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