@ghia/native 0.0.0-stage → 0.11.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/LICENSE +201 -0
- package/browser.mjs +7 -0
- package/dist/aria.d.ts +72 -0
- package/dist/aria.d.ts.map +1 -0
- package/dist/aria.js +2 -0
- package/dist/aria.js.map +1 -0
- package/dist/automation/client.d.ts +243 -0
- package/dist/automation/client.d.ts.map +1 -0
- package/dist/automation/client.js +801 -0
- package/dist/automation/client.js.map +1 -0
- package/dist/automation/index.d.ts +5 -0
- package/dist/automation/index.d.ts.map +1 -0
- package/dist/automation/index.js +4 -0
- package/dist/automation/index.js.map +1 -0
- package/dist/automation/protocol.d.ts +309 -0
- package/dist/automation/protocol.d.ts.map +1 -0
- package/dist/automation/protocol.js +320 -0
- package/dist/automation/protocol.js.map +1 -0
- package/dist/blob-images.d.ts +32 -0
- package/dist/blob-images.d.ts.map +1 -0
- package/dist/blob-images.js +55 -0
- package/dist/blob-images.js.map +1 -0
- package/dist/bounds.d.ts +61 -0
- package/dist/bounds.d.ts.map +1 -0
- package/dist/bounds.js +85 -0
- package/dist/bounds.js.map +1 -0
- package/dist/clipboard-global.d.ts +11 -0
- package/dist/clipboard-global.d.ts.map +1 -0
- package/dist/clipboard-global.js +2 -0
- package/dist/clipboard-global.js.map +1 -0
- package/dist/clipboard.d.ts +19 -0
- package/dist/clipboard.d.ts.map +1 -0
- package/dist/clipboard.js +41 -0
- package/dist/clipboard.js.map +1 -0
- package/dist/cpu-throttle.d.ts +6 -0
- package/dist/cpu-throttle.d.ts.map +1 -0
- package/dist/cpu-throttle.js +42 -0
- package/dist/cpu-throttle.js.map +1 -0
- package/dist/events/data-transfer.d.ts +23 -0
- package/dist/events/data-transfer.d.ts.map +1 -0
- package/dist/events/data-transfer.js +97 -0
- package/dist/events/data-transfer.js.map +1 -0
- package/dist/events/dispatch.d.ts +144 -0
- package/dist/events/dispatch.d.ts.map +1 -0
- package/dist/events/dispatch.js +241 -0
- package/dist/events/dispatch.js.map +1 -0
- package/dist/events/drag.d.ts +21 -0
- package/dist/events/drag.d.ts.map +1 -0
- package/dist/events/drag.js +111 -0
- package/dist/events/drag.js.map +1 -0
- package/dist/events/event-props.d.ts +19 -0
- package/dist/events/event-props.d.ts.map +1 -0
- package/dist/events/event-props.js +104 -0
- package/dist/events/event-props.js.map +1 -0
- package/dist/events/keyboard-defaults.d.ts +18 -0
- package/dist/events/keyboard-defaults.d.ts.map +1 -0
- package/dist/events/keyboard-defaults.js +121 -0
- package/dist/events/keyboard-defaults.js.map +1 -0
- package/dist/events/listeners.d.ts +18 -0
- package/dist/events/listeners.d.ts.map +1 -0
- package/dist/events/listeners.js +49 -0
- package/dist/events/listeners.js.map +1 -0
- package/dist/events/route.d.ts +17 -0
- package/dist/events/route.d.ts.map +1 -0
- package/dist/events/route.js +36 -0
- package/dist/events/route.js.map +1 -0
- package/dist/events/types.d.ts +269 -0
- package/dist/events/types.d.ts.map +1 -0
- package/dist/events/types.js +2 -0
- package/dist/events/types.js.map +1 -0
- package/dist/events/window-target.d.ts +120 -0
- package/dist/events/window-target.d.ts.map +1 -0
- package/dist/events/window-target.js +311 -0
- package/dist/events/window-target.js.map +1 -0
- package/dist/eyedropper.d.ts +33 -0
- package/dist/eyedropper.d.ts.map +1 -0
- package/dist/eyedropper.js +66 -0
- package/dist/eyedropper.js.map +1 -0
- package/dist/focus.d.ts +18 -0
- package/dist/focus.d.ts.map +1 -0
- package/dist/focus.js +26 -0
- package/dist/focus.js.map +1 -0
- package/dist/fonts.d.ts +12 -0
- package/dist/fonts.d.ts.map +1 -0
- package/dist/fonts.js +17 -0
- package/dist/fonts.js.map +1 -0
- package/dist/forms.d.ts +10 -0
- package/dist/forms.d.ts.map +1 -0
- package/dist/forms.js +9 -0
- package/dist/forms.js.map +1 -0
- package/dist/host-runtime.d.ts +108 -0
- package/dist/host-runtime.d.ts.map +1 -0
- package/dist/host-runtime.js +213 -0
- package/dist/host-runtime.js.map +1 -0
- package/dist/host.d.ts +2403 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +30 -0
- package/dist/host.js.map +1 -0
- package/dist/idle-gc.d.ts +36 -0
- package/dist/idle-gc.d.ts.map +1 -0
- package/dist/idle-gc.js +70 -0
- package/dist/idle-gc.js.map +1 -0
- package/dist/keyframes.d.ts +108 -0
- package/dist/keyframes.d.ts.map +1 -0
- package/dist/keyframes.js +107 -0
- package/dist/keyframes.js.map +1 -0
- package/dist/layout-animation.d.ts +38 -0
- package/dist/layout-animation.d.ts.map +1 -0
- package/dist/layout-animation.js +41 -0
- package/dist/layout-animation.js.map +1 -0
- package/dist/match-media.d.ts +62 -0
- package/dist/match-media.d.ts.map +1 -0
- package/dist/match-media.js +272 -0
- package/dist/match-media.js.map +1 -0
- package/dist/media-query.d.ts +21 -0
- package/dist/media-query.d.ts.map +1 -0
- package/dist/media-query.js +599 -0
- package/dist/media-query.js.map +1 -0
- package/dist/motion-bindings.d.ts +36 -0
- package/dist/motion-bindings.d.ts.map +1 -0
- package/dist/motion-bindings.js +107 -0
- package/dist/motion-bindings.js.map +1 -0
- package/dist/motion-config.d.ts +20 -0
- package/dist/motion-config.d.ts.map +1 -0
- package/dist/motion-config.js +51 -0
- package/dist/motion-config.js.map +1 -0
- package/dist/motion-span.d.ts +57 -0
- package/dist/motion-span.d.ts.map +1 -0
- package/dist/motion-span.js +150 -0
- package/dist/motion-span.js.map +1 -0
- package/dist/motion-value.d.ts +269 -0
- package/dist/motion-value.d.ts.map +1 -0
- package/dist/motion-value.js +941 -0
- package/dist/motion-value.js.map +1 -0
- package/dist/motion-variants.d.ts +190 -0
- package/dist/motion-variants.d.ts.map +1 -0
- package/dist/motion-variants.js +249 -0
- package/dist/motion-variants.js.map +1 -0
- package/dist/mutations.d.ts +65 -0
- package/dist/mutations.d.ts.map +1 -0
- package/dist/mutations.js +320 -0
- package/dist/mutations.js.map +1 -0
- package/dist/nativeview.d.ts +10 -0
- package/dist/nativeview.d.ts.map +1 -0
- package/dist/nativeview.js +92 -0
- package/dist/nativeview.js.map +1 -0
- package/dist/observers.d.ts +92 -0
- package/dist/observers.d.ts.map +1 -0
- package/dist/observers.js +579 -0
- package/dist/observers.js.map +1 -0
- package/dist/presence.d.ts +63 -0
- package/dist/presence.d.ts.map +1 -0
- package/dist/presence.js +54 -0
- package/dist/presence.js.map +1 -0
- package/dist/renderer-state.d.ts +155 -0
- package/dist/renderer-state.d.ts.map +1 -0
- package/dist/renderer-state.js +302 -0
- package/dist/renderer-state.js.map +1 -0
- package/dist/reorder.d.ts +63 -0
- package/dist/reorder.d.ts.map +1 -0
- package/dist/reorder.js +303 -0
- package/dist/reorder.js.map +1 -0
- package/dist/runtime.d.ts +23 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +157 -0
- package/dist/runtime.js.map +1 -0
- package/dist/screen.d.ts +8 -0
- package/dist/screen.d.ts.map +1 -0
- package/dist/screen.js +16 -0
- package/dist/screen.js.map +1 -0
- package/dist/scroll.d.ts +79 -0
- package/dist/scroll.d.ts.map +1 -0
- package/dist/scroll.js +170 -0
- package/dist/scroll.js.map +1 -0
- package/dist/style-images.d.ts +20 -0
- package/dist/style-images.d.ts.map +1 -0
- package/dist/style-images.js +57 -0
- package/dist/style-images.js.map +1 -0
- package/dist/svg.d.ts +16 -0
- package/dist/svg.d.ts.map +1 -0
- package/dist/svg.js +119 -0
- package/dist/svg.js.map +1 -0
- package/dist/testing.d.ts +811 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +1187 -0
- package/dist/testing.js.map +1 -0
- package/dist/text-match.d.ts +8 -0
- package/dist/text-match.d.ts.map +1 -0
- package/dist/text-match.js +10 -0
- package/dist/text-match.js.map +1 -0
- package/dist/text-selection.d.ts +34 -0
- package/dist/text-selection.d.ts.map +1 -0
- package/dist/text-selection.js +23 -0
- package/dist/text-selection.js.map +1 -0
- package/dist/universal-style.d.ts +22 -0
- package/dist/universal-style.d.ts.map +1 -0
- package/dist/universal-style.js +58 -0
- package/dist/universal-style.js.map +1 -0
- package/dist/web-animations.d.ts +300 -0
- package/dist/web-animations.d.ts.map +1 -0
- package/dist/web-animations.js +1032 -0
- package/dist/web-animations.js.map +1 -0
- package/dist/webview.d.ts +39 -0
- package/dist/webview.d.ts.map +1 -0
- package/dist/webview.js +26 -0
- package/dist/webview.js.map +1 -0
- package/gpuix-native.darwin-arm64.node +4 -0
- package/index.cjs +789 -0
- package/index.d.ts +2603 -0
- package/index.js +729 -0
- package/package.json +94 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 remorses
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
200
|
+
implied. See the License for the specific language governing
|
|
201
|
+
permissions and limitations under the License.
|
package/browser.mjs
ADDED
package/dist/aria.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/** An ARIA boolean attribute, as React DOM accepts it. */
|
|
2
|
+
type AriaBoolean = boolean | "true" | "false";
|
|
3
|
+
/** A list of element `id`s separated by spaces. Each resolves by DOM `id`. */
|
|
4
|
+
type AriaIdList = string;
|
|
5
|
+
/**
|
|
6
|
+
* Every ARIA state and property the element accepts.
|
|
7
|
+
*
|
|
8
|
+
* Most map to an AccessKit node property. The ones that do not are accepted
|
|
9
|
+
* and ignored: `aria-relevant`, `aria-grabbed`, `aria-dropeffect`.
|
|
10
|
+
*/
|
|
11
|
+
export interface AriaProps {
|
|
12
|
+
"aria-label"?: string;
|
|
13
|
+
"aria-labelledby"?: AriaIdList;
|
|
14
|
+
"aria-description"?: string;
|
|
15
|
+
"aria-describedby"?: AriaIdList;
|
|
16
|
+
"aria-details"?: AriaIdList;
|
|
17
|
+
"aria-roledescription"?: string;
|
|
18
|
+
"aria-keyshortcuts"?: string;
|
|
19
|
+
"aria-braillelabel"?: string;
|
|
20
|
+
"aria-brailleroledescription"?: string;
|
|
21
|
+
"aria-placeholder"?: string;
|
|
22
|
+
"aria-checked"?: AriaBoolean | "mixed";
|
|
23
|
+
"aria-pressed"?: AriaBoolean | "mixed";
|
|
24
|
+
"aria-expanded"?: AriaBoolean;
|
|
25
|
+
"aria-selected"?: AriaBoolean;
|
|
26
|
+
"aria-disabled"?: AriaBoolean;
|
|
27
|
+
/** Removes the element and its subtree from the accessibility tree. */
|
|
28
|
+
"aria-hidden"?: AriaBoolean;
|
|
29
|
+
"aria-invalid"?: AriaBoolean | "grammar" | "spelling";
|
|
30
|
+
"aria-required"?: AriaBoolean;
|
|
31
|
+
"aria-readonly"?: AriaBoolean;
|
|
32
|
+
"aria-multiselectable"?: AriaBoolean;
|
|
33
|
+
/** Makes a `role="textbox"` multiline. */
|
|
34
|
+
"aria-multiline"?: AriaBoolean;
|
|
35
|
+
"aria-modal"?: AriaBoolean;
|
|
36
|
+
"aria-busy"?: AriaBoolean;
|
|
37
|
+
"aria-current"?: AriaBoolean | "page" | "step" | "location" | "date" | "time";
|
|
38
|
+
"aria-haspopup"?: AriaBoolean | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
|
39
|
+
"aria-orientation"?: "horizontal" | "vertical";
|
|
40
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other";
|
|
41
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both";
|
|
42
|
+
"aria-live"?: "off" | "polite" | "assertive";
|
|
43
|
+
"aria-atomic"?: AriaBoolean;
|
|
44
|
+
"aria-relevant"?: string;
|
|
45
|
+
"aria-valuenow"?: number | string;
|
|
46
|
+
"aria-valuemin"?: number | string;
|
|
47
|
+
"aria-valuemax"?: number | string;
|
|
48
|
+
/** String value reported to assistive technology. */
|
|
49
|
+
"aria-valuetext"?: string;
|
|
50
|
+
/** Heading level, 1-based. */
|
|
51
|
+
"aria-level"?: number;
|
|
52
|
+
"aria-posinset"?: number;
|
|
53
|
+
"aria-setsize"?: number;
|
|
54
|
+
"aria-rowindex"?: number;
|
|
55
|
+
"aria-colindex"?: number;
|
|
56
|
+
"aria-rowcount"?: number;
|
|
57
|
+
"aria-colcount"?: number;
|
|
58
|
+
"aria-rowspan"?: number;
|
|
59
|
+
"aria-colspan"?: number;
|
|
60
|
+
"aria-rowindextext"?: string;
|
|
61
|
+
"aria-colindextext"?: string;
|
|
62
|
+
"aria-controls"?: AriaIdList;
|
|
63
|
+
"aria-owns"?: AriaIdList;
|
|
64
|
+
"aria-flowto"?: AriaIdList;
|
|
65
|
+
"aria-errormessage"?: string;
|
|
66
|
+
/** On the container: the descendant `id` that has focus while the container does. */
|
|
67
|
+
"aria-activedescendant"?: string;
|
|
68
|
+
"aria-grabbed"?: AriaBoolean;
|
|
69
|
+
"aria-dropeffect"?: string;
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
72
|
+
//# sourceMappingURL=aria.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aria.d.ts","sourceRoot":"","sources":["../js/aria.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,KAAK,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAE7C,8EAA8E;AAC9E,KAAK,UAAU,GAAG,MAAM,CAAA;AAExB;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IAExB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,UAAU,CAAA;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,kBAAkB,CAAC,EAAE,UAAU,CAAA;IAC/B,cAAc,CAAC,EAAE,UAAU,CAAA;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,6BAA6B,CAA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AM,GAAG,MAAM,CAAA;IACjC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACjC,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAGzB,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAG5B,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B,WAAW,CAAC,EAAE,UAAU,CAAA;IACxB,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,qFAAqF;IACrF,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,cAAc,CAAC,EAAE,WAAW,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B"}
|
package/dist/aria.js
ADDED
package/dist/aria.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aria.js","sourceRoot":"","sources":["../js/aria.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { type AutomationServerEvent, type ElementBounds, type MethodName, type ParamsOf, type ResultOf, type TreeNode } from "./protocol.js";
|
|
2
|
+
export interface AutomationBackend {
|
|
3
|
+
call<M extends MethodName>(method: M, params: ParamsOf<M>): Promise<ResultOf<M>>;
|
|
4
|
+
close(): Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
declare abstract class ValidatedAutomationBackend implements AutomationBackend {
|
|
7
|
+
private closed;
|
|
8
|
+
call<M extends MethodName>(method: M, params: ParamsOf<M>): Promise<ResultOf<M>>;
|
|
9
|
+
protected closeSession(): boolean;
|
|
10
|
+
protected abstract request<M extends MethodName>(method: M, params: ParamsOf<M>): unknown | Promise<unknown>;
|
|
11
|
+
abstract close(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export interface TestAutomationRenderer {
|
|
14
|
+
nativeSimulateClick(x: number, y: number, button?: number, modifiers?: string): void;
|
|
15
|
+
nativeSimulateMouseDown(x: number, y: number, button?: number, modifiers?: string): void;
|
|
16
|
+
nativeSimulateMouseUp(x: number, y: number, button?: number, modifiers?: string): void;
|
|
17
|
+
nativeSimulateMouseMove(x: number, y: number, modifiers?: string): void;
|
|
18
|
+
nativeSimulateScrollWheel(x: number, y: number, deltaX: number, deltaY: number, modifiers?: string): void;
|
|
19
|
+
simulateKeystrokes(keystrokes: string): void;
|
|
20
|
+
nativeSimulateKeystrokes(elementId: number, keystrokes: string): void;
|
|
21
|
+
nativeSimulateKeyDown(elementId: number, keystroke: string, isHeld?: boolean): void;
|
|
22
|
+
nativeSimulateKeyUp(elementId: number, keystroke: string): void;
|
|
23
|
+
scrollTo(elementId: number, x: number, y: number): void;
|
|
24
|
+
getScrollOffset(elementId: number): [number, number] | null;
|
|
25
|
+
getAllText(): string[];
|
|
26
|
+
getPaintedText(): string[];
|
|
27
|
+
getSelectedText(): string | null;
|
|
28
|
+
clearSelection(): void;
|
|
29
|
+
captureScreenshot(path: string): void;
|
|
30
|
+
getAutomationTree(): string;
|
|
31
|
+
getElementBounds(elementId: number): {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
} | null;
|
|
37
|
+
clockPause(): number;
|
|
38
|
+
clockSet(nowMs: number): number;
|
|
39
|
+
clockFastForward(deltaMs: number): number;
|
|
40
|
+
clockResume(): number;
|
|
41
|
+
focusElement?(elementId: number): void;
|
|
42
|
+
blur?(): void;
|
|
43
|
+
}
|
|
44
|
+
export declare class InProcessBackend extends ValidatedAutomationBackend {
|
|
45
|
+
private readonly renderer;
|
|
46
|
+
constructor(renderer: TestAutomationRenderer);
|
|
47
|
+
protected request<M extends MethodName>(method: M, params: ParamsOf<M>): unknown | Promise<unknown>;
|
|
48
|
+
close(): Promise<void>;
|
|
49
|
+
private readonly handlers;
|
|
50
|
+
}
|
|
51
|
+
export declare class SseBackend extends ValidatedAutomationBackend {
|
|
52
|
+
private readonly write;
|
|
53
|
+
private readonly onClose?;
|
|
54
|
+
private nextId;
|
|
55
|
+
private readonly pending;
|
|
56
|
+
constructor(write: (chunk: string) => void, feed: (listener: (chunk: string) => void) => void, onClose?: (() => Promise<void>) | undefined);
|
|
57
|
+
protected request<M extends MethodName>(method: M, params: ParamsOf<M>): Promise<unknown>;
|
|
58
|
+
close(): Promise<void>;
|
|
59
|
+
}
|
|
60
|
+
interface Selector {
|
|
61
|
+
testId?: string;
|
|
62
|
+
text?: string;
|
|
63
|
+
type?: string;
|
|
64
|
+
parent?: Selector;
|
|
65
|
+
}
|
|
66
|
+
/** A window-space point, or a locator resolved to the centre of its bounds. */
|
|
67
|
+
export type PointTarget = {
|
|
68
|
+
x: number;
|
|
69
|
+
y: number;
|
|
70
|
+
} | Locator;
|
|
71
|
+
export interface MouseOptions {
|
|
72
|
+
/** 0 = left (default), 1 = middle, 2 = right. */
|
|
73
|
+
button?: number;
|
|
74
|
+
/** Held modifiers, hyphenated: `"cmd"`, `"cmd-shift"`, `"alt"`. */
|
|
75
|
+
modifiers?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface DragOptions extends MouseOptions {
|
|
78
|
+
/**
|
|
79
|
+
* Move events sent between the press and the release. Default 8.
|
|
80
|
+
*
|
|
81
|
+
* One jump would test nothing that matters: snapping, live previews and
|
|
82
|
+
* per-move commits only appear when the pointer actually travels.
|
|
83
|
+
*/
|
|
84
|
+
steps?: number;
|
|
85
|
+
/** Pixels from the source centre where the press lands. */
|
|
86
|
+
offset?: {
|
|
87
|
+
x: number;
|
|
88
|
+
y: number;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
export declare class Locator {
|
|
92
|
+
private readonly app;
|
|
93
|
+
private readonly selector;
|
|
94
|
+
constructor(app: App, selector: Selector);
|
|
95
|
+
getByTestId(testId: string): Locator;
|
|
96
|
+
getByText(text: string): Locator;
|
|
97
|
+
getByType(type: string): Locator;
|
|
98
|
+
all(): Promise<TreeNode[]>;
|
|
99
|
+
count(): Promise<number>;
|
|
100
|
+
element(): Promise<TreeNode>;
|
|
101
|
+
bounds(): Promise<ElementBounds>;
|
|
102
|
+
/** The centre of the last painted bounds, in window coordinates. */
|
|
103
|
+
center(): Promise<{
|
|
104
|
+
x: number;
|
|
105
|
+
y: number;
|
|
106
|
+
}>;
|
|
107
|
+
click(options?: MouseOptions): Promise<void>;
|
|
108
|
+
/** Move the pointer to the centre, so hover styles and tooltips fire. */
|
|
109
|
+
hover(options?: MouseOptions): Promise<void>;
|
|
110
|
+
/** Send one wheel event over the centre of this element. Deltas have the
|
|
111
|
+
* DOM's sign: positive `deltaY` scrolls down, positive `deltaX` scrolls right. */
|
|
112
|
+
wheel(deltaX: number, deltaY: number, options?: MouseOptions): Promise<void>;
|
|
113
|
+
/** Press on this element, travel to `target`, release there. */
|
|
114
|
+
dragTo(target: PointTarget, options?: DragOptions): Promise<void>;
|
|
115
|
+
/** Press on this element and release `dx`/`dy` pixels away. */
|
|
116
|
+
dragBy(dx: number, dy: number, options?: DragOptions): Promise<void>;
|
|
117
|
+
fill(text: string): Promise<void>;
|
|
118
|
+
/**
|
|
119
|
+
* Presses keys on this element in Playwright's `keyboard.press` grammar:
|
|
120
|
+
* a DOM `key` (`"Enter"`, `"a"`, `"ArrowDown"`) or `code` (`"Space"`,
|
|
121
|
+
* `"KeyA"`), modifiers joined with `+` (`"Shift+Tab"`, `"Meta+a"`,
|
|
122
|
+
* `"ControlOrMeta+Shift+P"`). Several presses are separated by spaces.
|
|
123
|
+
* Each press is a keydown then a keyup.
|
|
124
|
+
*/
|
|
125
|
+
press(key: string): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Own text plus every descendant's, concatenated in document order, like
|
|
128
|
+
* DOM `textContent`. `<text>{value}</text>` puts the string on a child node,
|
|
129
|
+
* so reading only `node.text` returned an empty string for every wrapper.
|
|
130
|
+
*/
|
|
131
|
+
textContent(): Promise<string>;
|
|
132
|
+
waitFor(options?: {
|
|
133
|
+
timeoutMs?: number;
|
|
134
|
+
}): Promise<TreeNode>;
|
|
135
|
+
}
|
|
136
|
+
export declare class App {
|
|
137
|
+
private readonly backend;
|
|
138
|
+
readonly clock: {
|
|
139
|
+
pause: () => Promise<number>;
|
|
140
|
+
set: (nowMs: number) => Promise<number>;
|
|
141
|
+
fastForward: (deltaMs: number) => Promise<number>;
|
|
142
|
+
resume: () => Promise<number>;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Raw pointer input in window coordinates. Prefer a locator when the target
|
|
146
|
+
* is an element; use this for empty space, marquee selection, and gestures
|
|
147
|
+
* that end outside every hitbox.
|
|
148
|
+
*/
|
|
149
|
+
readonly mouse: {
|
|
150
|
+
/** Reports the buttons `down` left held, like every move a real OS sends. */
|
|
151
|
+
move: (target: PointTarget, options?: MouseOptions) => Promise<void>;
|
|
152
|
+
down: (target: PointTarget, options?: MouseOptions) => Promise<void>;
|
|
153
|
+
up: (target: PointTarget, options?: MouseOptions) => Promise<void>;
|
|
154
|
+
click: (target: PointTarget, options?: MouseOptions) => Promise<void>;
|
|
155
|
+
/** One wheel event; deltas have the DOM's sign (positive `deltaY` scrolls down). */
|
|
156
|
+
wheel: (target: PointTarget, deltaX: number, deltaY: number, options?: MouseOptions) => Promise<void>;
|
|
157
|
+
drag: (from: PointTarget, to: PointTarget, options?: DragOptions) => Promise<void>;
|
|
158
|
+
};
|
|
159
|
+
constructor(backend: AutomationBackend);
|
|
160
|
+
call<M extends MethodName>(method: M, params: ParamsOf<M>): Promise<ResultOf<M>>;
|
|
161
|
+
private resolvePoint;
|
|
162
|
+
getByTestId(testId: string): Locator;
|
|
163
|
+
getByText(text: string): Locator;
|
|
164
|
+
getByType(type: string): Locator;
|
|
165
|
+
screenshot(options: {
|
|
166
|
+
path: string;
|
|
167
|
+
}): Promise<string>;
|
|
168
|
+
captureFrames(dir: string, timesMs: readonly number[]): Promise<string[]>;
|
|
169
|
+
close(): Promise<void>;
|
|
170
|
+
}
|
|
171
|
+
export interface LiveAutomationRenderer {
|
|
172
|
+
simulateClick(x: number, y: number, button?: number, modifiers?: string): void;
|
|
173
|
+
simulateMouseDown(x: number, y: number, button?: number, modifiers?: string): void;
|
|
174
|
+
simulateMouseUp(x: number, y: number, button?: number, modifiers?: string): void;
|
|
175
|
+
/** The live renderer takes the held button as an argument; `liveRendererAsTest` supplies it. */
|
|
176
|
+
simulateMouseMove(x: number, y: number, pressedButton?: number, modifiers?: string): void;
|
|
177
|
+
simulateScrollWheel(x: number, y: number, deltaX: number, deltaY: number, modifiers?: string): void;
|
|
178
|
+
simulateKeystrokes?(keystrokes: string): void;
|
|
179
|
+
simulateKeyDown?(keystroke: string, isHeld?: boolean): void;
|
|
180
|
+
simulateKeyUp?(keystroke: string): void;
|
|
181
|
+
tick?(): void;
|
|
182
|
+
focusElement(elementId: number): void;
|
|
183
|
+
blur(): void;
|
|
184
|
+
scrollTo(elementId: number, x: number, y: number): void;
|
|
185
|
+
getScrollOffset(elementId: number): number[] | null;
|
|
186
|
+
getAllText(): string[];
|
|
187
|
+
getPaintedText(): string[];
|
|
188
|
+
getSelectedText(): string | null;
|
|
189
|
+
clearSelection(): void;
|
|
190
|
+
captureScreenshot?(path: string): void;
|
|
191
|
+
getAutomationTree(): string;
|
|
192
|
+
getElementBounds(elementId: number): {
|
|
193
|
+
x: number;
|
|
194
|
+
y: number;
|
|
195
|
+
width: number;
|
|
196
|
+
height: number;
|
|
197
|
+
} | null;
|
|
198
|
+
clockPause(): number;
|
|
199
|
+
clockSet(nowMs: number): number;
|
|
200
|
+
clockFastForward(deltaMs: number): number;
|
|
201
|
+
clockResume(): number;
|
|
202
|
+
}
|
|
203
|
+
export declare function liveRendererAsTest(renderer: LiveAutomationRenderer): TestAutomationRenderer;
|
|
204
|
+
/**
|
|
205
|
+
* The `KeyboardEvent` a browser page gets for one press in the
|
|
206
|
+
* `keyboard.press` grammar. Key names are passed through as the DOM spells
|
|
207
|
+
* them: unlike native, this side has no key table to reject a typo with.
|
|
208
|
+
*/
|
|
209
|
+
export declare function browserKeystrokeInit(press: string, isHeld?: boolean): KeyboardEventInit;
|
|
210
|
+
/**
|
|
211
|
+
* The hidden element GPUI's browser platform appends to `<body>`.
|
|
212
|
+
*
|
|
213
|
+
* A GPUI web app has two event surfaces: the `<canvas>` takes pointer events,
|
|
214
|
+
* and this element takes **every keyboard and IME event**. `gpui_web` attaches
|
|
215
|
+
* its `keydown` / `keyup` listeners here, not to the window or the canvas, so
|
|
216
|
+
* dispatching a synthetic `KeyboardEvent` at this element is the only way to
|
|
217
|
+
* type into a browser GPUIX app.
|
|
218
|
+
*
|
|
219
|
+
* Match on the attribute alone. The element used to be an `<input>` and is now
|
|
220
|
+
* a `<textarea>`, because a single-line input strips newlines from an assigned
|
|
221
|
+
* value and would desynchronise the mirror from the document. See
|
|
222
|
+
* zed-industries/zed#63201 and `gpui_web/src/ime_mirror.rs`. A tag-qualified
|
|
223
|
+
* selector silently turns every keystroke into an "unavailable" error.
|
|
224
|
+
*/
|
|
225
|
+
export declare const IME_MIRROR_SELECTOR = "[data-gpui-input]";
|
|
226
|
+
export declare function browserRendererAsTest(renderer: LiveAutomationRenderer): TestAutomationRenderer;
|
|
227
|
+
export declare function connectTest(renderer: TestAutomationRenderer): Promise<App>;
|
|
228
|
+
export declare function connectStdio(options: {
|
|
229
|
+
write: (chunk: string) => void;
|
|
230
|
+
feed: (listener: (chunk: string) => void) => void;
|
|
231
|
+
close?: () => Promise<void>;
|
|
232
|
+
}): Promise<App>;
|
|
233
|
+
export declare function launch(options: {
|
|
234
|
+
command: string;
|
|
235
|
+
args?: string[];
|
|
236
|
+
cwd?: string;
|
|
237
|
+
env?: NodeJS.ProcessEnv;
|
|
238
|
+
}): Promise<App>;
|
|
239
|
+
export declare function handleAutomationRequest(raw: unknown, backend: AutomationBackend): Promise<string>;
|
|
240
|
+
export declare function serveAutomationStdio(backend: AutomationBackend): void;
|
|
241
|
+
export declare function isServerEvent(message: unknown): message is AutomationServerEvent;
|
|
242
|
+
export {};
|
|
243
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../js/automation/client.ts"],"names":[],"mappings":"AAKA,OAAO,EAUL,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,QAAQ,EACd,MAAM,eAAe,CAAA;AAOtB,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,CAAC,SAAS,UAAU,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;IAChF,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACvB;AAED,uBAAe,0BAA2B,YAAW,iBAAiB;IACpE,OAAO,CAAC,MAAM,CAAQ;IAEhB,IAAI,CAAC,CAAC,SAAS,UAAU,EAC7B,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAClB,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IASvB,SAAS,CAAC,YAAY,IAAI,OAAO;IAMjC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,SAAS,UAAU,EAC7C,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,QAAQ,CAA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