• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/* If a new value is added, add it from the end. */
17var Color;
18(function (Color) {
19  Color["White"] = "#ffffffff";
20  Color["Black"] = "#ff000000";
21  Color["Blue"] = "#ff0000ff";
22  Color["Brown"] = "#ffa52a2a";
23  Color["Gray"] = "#ff808080";
24  Color["Green"] = "#ff008000";
25  Color["Grey"] = "#ff808080";
26  Color["Orange"] = "#ffffa500";
27  Color["Pink"] = "#ffffc0cb";
28  Color["Red"] = "#ffff0000";
29  Color["Yellow"] = "#ffffff00";
30  Color["Transparent"] = "#00000000";
31})(Color || (Color = {}));
32
33var ColoringStrategy;
34(function (ColoringStrategy) {
35  ColoringStrategy["INVERT"] = "invert";
36  ColoringStrategy["AVERAGE"] = "average";
37  ColoringStrategy["PRIMARY"] = "primary";
38})(ColoringStrategy || (ColoringStrategy = {}));
39
40var TextInputStyle;
41(function (TextInputStyle) {
42  TextInputStyle["Default"] = "Default";
43  TextInputStyle["Inline"] = "Inline";
44})(TextInputStyle || (TextInputStyle = {}));
45
46var TextContentStyle;
47(function (TextContentStyle) {
48  TextContentStyle["DEFAULT"] = "Default";
49  TextContentStyle["INLINE"] = "Inline";
50})(TextContentStyle || (TextContentStyle = {}));
51
52var TextAlign;
53(function (TextAlign) {
54  TextAlign[TextAlign["Start"] = 0] = "Start";
55  TextAlign[TextAlign["Center"] = 1] = "Center";
56  TextAlign[TextAlign["End"] = 2] = "End";
57  TextAlign[TextAlign["Justify"] = 3] = "Justify";
58  TextAlign[TextAlign["JUSTIFY"] = 3] = "JUSTIFY";
59})(TextAlign || (TextAlign = {}));
60
61var TextDataDetectorType;
62(function (TextDataDetectorType) {
63  TextDataDetectorType[TextDataDetectorType.PHONE_NUMBER = 0] = 'PHONE_NUMBER';
64  TextDataDetectorType[TextDataDetectorType.URL = 1] = 'URL';
65  TextDataDetectorType[TextDataDetectorType.EMAIL = 2] = 'EMAIL';
66  TextDataDetectorType[TextDataDetectorType.ADDRESS = 3] = 'ADDRESS';
67  TextDataDetectorType[TextDataDetectorType.DATE_TIME = 4] = 'DATE_TIME';
68})(TextDataDetectorType || (TextDataDetectorType = {}));
69
70var DataPanelType;
71(function (DataPanelType) {
72  DataPanelType[DataPanelType["Line"] = 0] = "Line";
73  DataPanelType[DataPanelType["Circle"] = 4] = "Circle";
74})(DataPanelType || (DataPanelType = {}));
75
76var FontWeight;
77(function (FontWeight) {
78  FontWeight["Light"] = "light";
79  FontWeight["Lighter"] = "lighter";
80  FontWeight["Normal"] = "normal";
81  FontWeight["Regular"] = "regular";
82  FontWeight["Medium"] = "medium";
83  FontWeight["Bold"] = "bold";
84  FontWeight["Bolder"] = "bolder";
85})(FontWeight || (FontWeight = {}));
86
87var WordBreak;
88(function (WordBreak) {
89  WordBreak[WordBreak["NORMAL"] = 0] = "normal";
90  WordBreak[WordBreak["BREAK_ALL"] = 1] = "break-all";
91  WordBreak[WordBreak["BREAK_WORD"] = 2] = "break-word";
92})(WordBreak || (WordBreak = {}));
93
94var DpiFollowStrategy;
95(function (DpiFollowStrategy) {
96  DpiFollowStrategy[DpiFollowStrategy["FOLLOW_HOST_DPI"] = 0] = "follow-host-dpi";
97  DpiFollowStrategy[DpiFollowStrategy["FOLLOW_UI_EXTENSION_ABILITY_DPI"] = 1] = "follow-ui-extension-ability-dpi";
98})(DpiFollowStrategy || (DpiFollowStrategy = {}));
99
100var SecurityDpiFollowStrategy;
101(function (SecurityDpiFollowStrategy) {
102  SecurityDpiFollowStrategy[SecurityDpiFollowStrategy["FOLLOW_HOST_DPI"] = 0] = "follow-host-dpi";
103  SecurityDpiFollowStrategy[SecurityDpiFollowStrategy["FOLLOW_UI_EXTENSION_ABILITY_DPI"] = 1] = "follow-ui-extension-ability-dpi";
104})(SecurityDpiFollowStrategy || (SecurityDpiFollowStrategy = {}));
105
106var EllipsisMode;
107(function (EllipsisMode) {
108  EllipsisMode[EllipsisMode["START"] = 0] = "start";
109  EllipsisMode[EllipsisMode["CENTER"] = 1] = "center";
110  EllipsisMode[EllipsisMode["END"] = 2] = "end";
111})(EllipsisMode || (EllipsisMode = {}));
112
113var LineBreakStrategy;
114(function (LineBreakStrategy) {
115  LineBreakStrategy[LineBreakStrategy["GREEDY"] = 0] = "greedy";
116  LineBreakStrategy[LineBreakStrategy["HIGH_QUALITY"] = 1] = "highquality";
117  LineBreakStrategy[LineBreakStrategy["BALANCED"] = 2] = "balanced";
118})(LineBreakStrategy || (LineBreakStrategy = {}));
119
120var TextSelectableMode;
121(function (TextSelectableMode) {
122  TextSelectableMode[TextSelectableMode["SELECTABLE_UNFOCUSABLE"] = 0] = "selectable-unfocusable";
123  TextSelectableMode[TextSelectableMode["SELECTABLE_FOCUSABLE"] = 1] = "selectable-focusable";
124  TextSelectableMode[TextSelectableMode["UNSELECTABLE"] = 2] = "unselectable";
125})(TextSelectableMode || (TextSelectableMode = {}));
126
127var Curve;
128(function (Curve) {
129  Curve["Linear"] = "linear";
130  Curve["Ease"] = "ease";
131  Curve["EaseIn"] = "ease-in";
132  Curve["EaseOut"] = "ease-out";
133  Curve["EaseInOut"] = "ease-in-out";
134  Curve["FastOutSlowIn"] = "fast-out-slow-in";
135  Curve["LinearOutSlowIn"] = "linear-out-slow-in";
136  Curve["FastOutLinearIn"] = "fast-out-linear-in";
137  Curve["ExtremeDeceleration"] = "extreme-deceleration";
138  Curve["Sharp"] = "sharp";
139  Curve["Rhythm"] = "rhythm";
140  Curve["Smooth"] = "smooth";
141  Curve["Friction"] = "friction";
142})(Curve || (Curve = {}));
143
144var FillMode;
145(function (FillMode) {
146  FillMode[FillMode["None"] = 0] = "none";
147  FillMode[FillMode["Forwards"] = 1] = "forwards";
148  FillMode[FillMode["Backwards"] = 2] = "backwards";
149  FillMode[FillMode["Both"] = 3] = "both";
150})(FillMode || (FillMode = {}));
151
152var PlayMode;
153(function (PlayMode) {
154  PlayMode["Normal"] = "normal";
155  PlayMode["Alternate"] = "alternate";
156  PlayMode["Reverse"] = "reverse";
157  PlayMode["AlternateReverse"] = "alternate-reverse";
158})(PlayMode || (PlayMode = {}));
159
160var RepeatMode;
161(function (RepeatMode) {
162  RepeatMode["Repeat"] = "Repeat";
163  RepeatMode["Stretch"] = "Stretch";
164  RepeatMode["Round"] = "Round";
165  RepeatMode["Space"] = "Space";
166})(RepeatMode || (RepeatMode = {}));
167
168var BorderStyle;
169(function (BorderStyle) {
170  BorderStyle[BorderStyle["Solid"] = 0] = "Solid";
171  BorderStyle[BorderStyle["Dashed"] = 1] = "Dashed";
172  BorderStyle[BorderStyle["Dotted"] = 2] = "Dotted";
173})(BorderStyle || (BorderStyle = {}));
174
175var LineCapStyle;
176(function (LineCapStyle) {
177  LineCapStyle[LineCapStyle["Butt"] = 0] = "Butt";
178  LineCapStyle[LineCapStyle["Round"] = 1] = "Round";
179  LineCapStyle[LineCapStyle["Square"] = 2] = "Square";
180})(LineCapStyle || (LineCapStyle = {}));
181
182var ButtonType;
183(function (ButtonType) {
184  ButtonType[ButtonType['Normal'] = 0] = 'Normal';
185  ButtonType[ButtonType['Capsule'] = 1] = 'Capsule';
186  ButtonType[ButtonType['Circle'] = 2] = 'Circle';
187  ButtonType[ButtonType['Arc'] = 4] = 'Arc';
188  ButtonType[ButtonType['ROUNDED_RECTANGLE'] = 8] = 'ROUNDED_RECTANGLE';
189})(ButtonType || (ButtonType = {}));
190
191var DevicePosition;
192(function (DevicePosition) {
193  DevicePosition[DevicePosition["Front"] = 0] = "Front";
194  DevicePosition[DevicePosition["Back"] = 1] = "Back";
195})(DevicePosition || (DevicePosition = {}));
196
197var ImageFit;
198(function (ImageFit) {
199  ImageFit[ImageFit["Fill"] = 0] = "Fill";
200  ImageFit[ImageFit["Contain"] = 1] = "Contain";
201  ImageFit[ImageFit["Cover"] = 2] = "Cover";
202  ImageFit[ImageFit["Auto"] = 3] = "Auto";
203  ImageFit[ImageFit["None"] = 5] = "None";
204  ImageFit[ImageFit["ScaleDown"] = 6] = "ScaleDown";
205  ImageFit[ImageFit["TOP_START"] = 7] = "TOP_START";
206  ImageFit[ImageFit["TOP"] = 8] = "TOP";
207  ImageFit[ImageFit["TOP_END"] = 9] = "TOP_END";
208  ImageFit[ImageFit["START"] = 10] = "START";
209  ImageFit[ImageFit["CENTER"] = 11] = "CENTER";
210  ImageFit[ImageFit["END"] = 12] = "END";
211  ImageFit[ImageFit["BOTTOM_START"] = 13] = "BOTTOM_START";
212  ImageFit[ImageFit["BOTTOM"] = 14] = "BOTTOM";
213  ImageFit[ImageFit["BOTTOM_END"] = 15] = "BOTTOM_END";
214  ImageFit[ImageFit["MATRIX"] = 16] = "MATRIX";
215})(ImageFit || (ImageFit = {}));
216
217var DynamicRangeMode ;
218(function (DynamicRangeMode ) {
219  DynamicRangeMode [DynamicRangeMode ["HIGH"] = 0] = "HIGH";
220  DynamicRangeMode [DynamicRangeMode ["CONSTRAINT"] = 1] = "CONSTRAINT";
221  DynamicRangeMode [DynamicRangeMode ["STANDARD"] = 2] = "STANDARD";
222})(DynamicRangeMode  || (DynamicRangeMode  = {}));
223
224var ImageContent;
225(function (ImageContent) {
226  ImageContent[ImageContent["EMPTY"] = 0] = "EMPTY";
227})(ImageContent || (ImageContent = {}));
228
229var ImageRepeat;
230(function (ImageRepeat) {
231  ImageRepeat[ImageRepeat["NoRepeat"] = 0] = "NoRepeat";
232  ImageRepeat[ImageRepeat["X"] = 1] = "X";
233  ImageRepeat[ImageRepeat["Y"] = 2] = "Y";
234  ImageRepeat[ImageRepeat["XY"] = 3] = "XY";
235})(ImageRepeat || (ImageRepeat = {}));
236
237var ImageSize;
238(function (ImageSize) {
239  ImageSize[ImageSize["Contain"] = 0] = "Contain";
240  ImageSize[ImageSize["Cover"] = 1] = "Cover";
241  ImageSize[ImageSize["Auto"] = 2] = "Auto";
242  ImageSize[ImageSize["FILL"] = 3] = "FILL";
243})(ImageSize || (ImageSize = {}));
244
245var ImageRenderMode;
246(function (ImageRenderMode) {
247  ImageRenderMode[ImageRenderMode["Original"] = 0] = "Original";
248  ImageRenderMode[ImageRenderMode["Template"] = 1] = "Template";
249})(ImageRenderMode || (ImageRenderMode = {}));
250
251var ImageRotateOrientation;
252(function (ImageRotateOrientation) {
253  ImageRotateOrientation[ImageRotateOrientation["AUTO"] = 0] = "AUTO";
254  ImageRotateOrientation[ImageRotateOrientation["UP"] = 1] = "UP";
255  ImageRotateOrientation[ImageRotateOrientation["RIGHT"] = 2] = "RIGHT";
256  ImageRotateOrientation[ImageRotateOrientation["DOWN"] = 3] = "DOWN";
257  ImageRotateOrientation[ImageRotateOrientation["LEFT"] = 4] = "LEFT";
258})(ImageRotateOrientation || (ImageRotateOrientation = {}));
259
260var ImageInterpolation;
261(function (ImageInterpolation) {
262  ImageInterpolation[ImageInterpolation["None"] = 0] = "None";
263  ImageInterpolation[ImageInterpolation["Low"] = 1] = "Low";
264  ImageInterpolation[ImageInterpolation["Medium"] = 2] = "Medium";
265  ImageInterpolation[ImageInterpolation["High"] = 3] = "High";
266})(ImageInterpolation || (ImageInterpolation = {}));
267
268var FontStyle;
269(function (FontStyle) {
270  FontStyle[FontStyle["Normal"] = 0] = "Normal";
271  FontStyle[FontStyle["Italic"] = 1] = "Italic";
272})(FontStyle || (FontStyle = {}));
273
274var FlexAlign;
275(function (FlexAlign) {
276  FlexAlign[FlexAlign["Start"] = 1] = "Start";
277  FlexAlign[FlexAlign["Center"] = 2] = "Center";
278  FlexAlign[FlexAlign["End"] = 3] = "End";
279  FlexAlign[FlexAlign["Stretch"] = 4] = "Stretch";
280  FlexAlign[FlexAlign["Baseline"] = 5] = "Baseline";
281  FlexAlign[FlexAlign["SpaceBetween"] = 6] = "SpaceBetween";
282  FlexAlign[FlexAlign["SpaceAround"] = 7] = "SpaceAround";
283  FlexAlign[FlexAlign["SpaceEvenly"] = 8] = "SpaceEvenly";
284})(FlexAlign || (FlexAlign = {}));
285
286var PixelRoundCalcPolicy;
287(function (PixelRoundCalcPolicy) {
288  PixelRoundCalcPolicy[PixelRoundCalcPolicy["NO_FORCE_ROUND"] = 0] = "NO_FORCE_ROUND";
289  PixelRoundCalcPolicy[PixelRoundCalcPolicy["FORCE_CEIL"] = 1] = "FORCE_CEIL";
290  PixelRoundCalcPolicy[PixelRoundCalcPolicy["FORCE_FLOOR"] = 2] = "FORCE_FLOOR";
291})(PixelRoundCalcPolicy || (PixelRoundCalcPolicy = {}));
292
293var VerticalAlign;
294(function (VerticalAlign) {
295  VerticalAlign[VerticalAlign["Top"] = 1] = "Top";
296  VerticalAlign[VerticalAlign["Center"] = 2] = "Center";
297  VerticalAlign[VerticalAlign["Bottom"] = 3] = "Bottom";
298})(VerticalAlign || (VerticalAlign = {}));
299
300var HorizontalAlign;
301(function (HorizontalAlign) {
302  HorizontalAlign[HorizontalAlign["Start"] = 1] = "Start";
303  HorizontalAlign[HorizontalAlign["Center"] = 2] = "Center";
304  HorizontalAlign[HorizontalAlign["End"] = 3] = "End";
305})(HorizontalAlign || (HorizontalAlign = {}));
306
307var ItemAlign;
308(function (ItemAlign) {
309  ItemAlign[ItemAlign["Auto"] = 0] = "Auto";
310  ItemAlign[ItemAlign["Start"] = 1] = "Start";
311  ItemAlign[ItemAlign["Center"] = 2] = "Center";
312  ItemAlign[ItemAlign["End"] = 3] = "End";
313  ItemAlign[ItemAlign["Stretch"] = 4] = "Stretch";
314  ItemAlign[ItemAlign["Baseline"] = 5] = "Baseline";
315})(ItemAlign || (ItemAlign = {}));
316
317var Align;
318(function (Align) {
319  Align[Align["Start"] = 4] = "Start";
320  Align[Align["Center"] = 2] = "Center";
321  Align[Align["End"] = 5] = "End";
322})(Align || (Align = {}));
323
324var Alignment;
325(function (Alignment) {
326  Alignment[Alignment["TopStart"] = 0] = "TopStart";
327  Alignment[Alignment["Top"] = 1] = "Top";
328  Alignment[Alignment["TopEnd"] = 2] = "TopEnd";
329  Alignment[Alignment["Start"] = 3] = "Start";
330  Alignment[Alignment["Center"] = 4] = "Center";
331  Alignment[Alignment["End"] = 5] = "End";
332  Alignment[Alignment["BottomStart"] = 6] = "BottomStart";
333  Alignment[Alignment["Bottom"] = 7] = "Bottom";
334  Alignment[Alignment["BottomEnd"] = 8] = "BottomEnd";
335})(Alignment || (Alignment = {}));
336
337var ChainStyle;
338(function (ChainStyle) {
339  ChainStyle[ChainStyle["SPREAD"] = 0] = "SPREAD";
340  ChainStyle[ChainStyle["SPREAD_INSIDE"] = 1] = "SPREAD_INSIDE";
341  ChainStyle[ChainStyle["PACKED"] = 2] = "PACKED";
342})(ChainStyle || (ChainStyle = {}));
343
344var BarrierDirection;
345(function (BarrierDirection) {
346  BarrierDirection[BarrierDirection["LEFT"] = 0] = "LEFT";
347  BarrierDirection[BarrierDirection["RIGHT"] = 1] = "RIGHT";
348  BarrierDirection[BarrierDirection["TOP"] = 2] = "TOP";
349  BarrierDirection[BarrierDirection["BOTTOM"] = 3] = "BOTTOM";
350})(BarrierDirection || (BarrierDirection = {}));
351
352var LocalizedBarrierDirection;
353(function (LocalizedBarrierDirection) {
354  LocalizedBarrierDirection[LocalizedBarrierDirection["START"] = 0] = "START";
355  LocalizedBarrierDirection[LocalizedBarrierDirection["END"] = 1] = "END";
356  LocalizedBarrierDirection[LocalizedBarrierDirection["TOP"] = 2] = "TOP";
357  LocalizedBarrierDirection[LocalizedBarrierDirection["BOTTOM"] = 3] = "BOTTOM";
358})(LocalizedBarrierDirection || (LocalizedBarrierDirection = {}));
359
360var BlendMode;
361(function (BlendMode) {
362  BlendMode[BlendMode["NORMAL"] = 0] = "NORMAL";
363  BlendMode[BlendMode["DESTINATION_IN"] = 7] = "DESTINATION_IN";
364  BlendMode[BlendMode["SOURCE_IN"] = 5000] = "SOURCE_IN";
365  BlendMode[BlendMode["NONE"] = 0] = "NONE";
366  BlendMode[BlendMode["CLEAR"] = 1] = "CLEAR";
367  BlendMode[BlendMode["SRC"] = 2] = "SRC";
368  BlendMode[BlendMode["DST"] = 3] = "DST";
369  BlendMode[BlendMode["SRC_OVER"] = 4] = "SRC_OVER";
370  BlendMode[BlendMode["DST_OVER"] = 5] = "DST_OVER";
371  BlendMode[BlendMode["SRC_IN"] = 6] = "SRC_IN";
372  BlendMode[BlendMode["DST_IN"] = 7] = "DST_IN";
373  BlendMode[BlendMode["SRC_OUT"] = 8] = "SRC_OUT";
374  BlendMode[BlendMode["DST_OUT"] = 9] = "DST_OUT";
375  BlendMode[BlendMode["SRC_ATOP"] = 10] = "SRC_ATOP";
376  BlendMode[BlendMode["DST_ATOP"] = 11] = "DST_ATOP";
377  BlendMode[BlendMode["XOR"] = 12] = "XOR";
378  BlendMode[BlendMode["PLUS"] = 13] = "PLUS";
379  BlendMode[BlendMode["MODULATE"] = 14] = "MODULATE";
380  BlendMode[BlendMode["SCREEN"] = 15] = "SCREEN";
381  BlendMode[BlendMode["OVERLAY"] = 16] = "OVERLAY";
382  BlendMode[BlendMode["DARKEN"] = 17] = "DARKEN";
383  BlendMode[BlendMode["LIGHTEN"] = 18] = "LIGHTEN";
384  BlendMode[BlendMode["COLOR_DODGE"] = 19] = "COLOR_DODGE";
385  BlendMode[BlendMode["COLOR_BURN"] = 20] = "COLOR_BURN";
386  BlendMode[BlendMode["HARD_LIGHT"] = 21] = "HARD_LIGHT";
387  BlendMode[BlendMode["SOFT_LIGHT"] = 22] = "SOFT_LIGHT";
388  BlendMode[BlendMode["DIFFERENCE"] = 23] = "DIFFERENCE";
389  BlendMode[BlendMode["EXCLUSION"] = 24] = "EXCLUSION";
390  BlendMode[BlendMode["MULTIPLY"] = 25] = "MULTIPLY";
391  BlendMode[BlendMode["HUE"] = 26] = "HUE";
392  BlendMode[BlendMode["SATURATION"] = 27] = "SATURATION";
393  BlendMode[BlendMode["COLOR"] = 28] = "COLOR";
394  BlendMode[BlendMode["LUMINOSITY"] = 29] = "LUMINOSITY";
395})(BlendMode || (BlendMode = {}));
396
397var BlendApplyType;
398(function (BlendApplyType) {
399  BlendApplyType[BlendApplyType["FAST"] = 0] = "FAST";
400  BlendApplyType[BlendApplyType["OFFSCREEN"] = 1] = "OFFSCREEN";
401})(BlendApplyType || (BlendApplyType = {}));
402
403var TextOverflow;
404(function (TextOverflow) {
405  TextOverflow[TextOverflow["None"] = 0] = "None";
406  TextOverflow[TextOverflow["Clip"] = 1] = "Clip";
407  TextOverflow[TextOverflow["Ellipsis"] = 2] = "Ellipsis";
408  TextOverflow[TextOverflow["Marquee"] = 3] = "Marquee";
409  TextOverflow[TextOverflow["MARQUEE"] = 3] = "MARQUEE";
410})(TextOverflow || (TextOverflow = {}));
411
412var TextDecorationStyle;
413(function (TextDecorationStyle) {
414  TextDecorationStyle[TextDecorationStyle["SOLID"] = 0] = "SOLID";
415  TextDecorationStyle[TextDecorationStyle["DOUBLE"] = 1] = "DOUBLE";
416  TextDecorationStyle[TextDecorationStyle["DOTTED"] = 2] = "DOTTED";
417  TextDecorationStyle[TextDecorationStyle["DASHED"] = 3] = "DASHED";
418  TextDecorationStyle[TextDecorationStyle["WAVY"] = 4] = "WAVY";
419})(TextDecorationStyle || (TextDecorationStyle = {}));
420
421var TextDecorationType;
422(function (TextDecorationType) {
423  TextDecorationType[TextDecorationType["None"] = 0] = "None";
424  TextDecorationType[TextDecorationType["Underline"] = 1] = "Underline";
425  TextDecorationType[TextDecorationType["Overline"] = 2] = "Overline";
426  TextDecorationType[TextDecorationType["LineThrough"] = 3] = "LineThrough";
427})(TextDecorationType || (TextDecorationType = {}));
428
429var ClickEffectLevel;
430(function (ClickEffectLevel) {
431  ClickEffectLevel[ClickEffectLevel["LIGHT"] = 0] = "LIGHT";
432  ClickEffectLevel[ClickEffectLevel["MIDDLE"] = 1] = "MIDDLE";
433  ClickEffectLevel[ClickEffectLevel["HEAVY"] = 2] = "HEAVY";
434})(ClickEffectLevel || (ClickEffectLevel = {}));
435
436var TextCase;
437(function (TextCase) {
438  TextCase[TextCase["Normal"] = 0] = "Normal";
439  TextCase[TextCase["LowerCase"] = 1] = "LowerCase";
440  TextCase[TextCase["UpperCase"] = 2] = "UpperCase";
441})(TextCase || (TextCase = {}));
442
443var NavigationType;
444(function (NavigationType) {
445  NavigationType[NavigationType["Push"] = 1] = "Push";
446  NavigationType[NavigationType["Replace"] = 2] = "Replace";
447  NavigationType[NavigationType["Back"] = 3] = "Back";
448})(NavigationType || (NavigationType = {}));
449
450var PanelType;
451(function (PanelType) {
452  PanelType[PanelType["Minibar"] = 0] = "Minibar";
453  PanelType[PanelType["Foldable"] = 1] = "Foldable";
454  PanelType[PanelType["Temporary"] = 2] = "Temporary";
455  PanelType[PanelType["CUSTOM"] = 3] = "CUSTOM";
456})(PanelType || (PanelType = {}));
457
458var PanelHeight;
459(function (PanelHeight) {
460  PanelHeight[PanelHeight["WRAP_CONTENT"] = "wrapContent"] = "WRAP_CONTENT";
461})(PanelHeight || (PanelHeight = {}));
462
463var PanelMode;
464(function (PanelMode) {
465  PanelMode[PanelMode["Mini"] = 0] = "Mini";
466  PanelMode[PanelMode["Half"] = 1] = "Half";
467  PanelMode[PanelMode["Full"] = 2] = "Full";
468})(PanelMode || (PanelMode = {}));
469
470var Axis;
471(function (Axis) {
472  Axis[Axis["Vertical"] = 0] = "Vertical";
473  Axis[Axis["Horizontal"] = 1] = "Horizontal";
474})(Axis || (Axis = {}));
475
476var BarState;
477(function (BarState) {
478  BarState[BarState["Off"] = 0] = "Off";
479  BarState[BarState["Auto"] = 1] = "Auto";
480  BarState[BarState["On"] = 2] = "On";
481})(BarState || (BarState = {}));
482
483var EdgeEffect;
484(function (EdgeEffect) {
485  EdgeEffect[EdgeEffect["Spring"] = 0] = "Spring";
486  EdgeEffect[EdgeEffect["Fade"] = 1] = "Fade";
487  EdgeEffect[EdgeEffect["None"] = 2] = "None";
488})(EdgeEffect || (EdgeEffect = {}));
489
490var SwipeEdgeEffect;
491(function (SwipeEdgeEffect) {
492  SwipeEdgeEffect[SwipeEdgeEffect["Spring"] = 0] = "Spring";
493  SwipeEdgeEffect[SwipeEdgeEffect["None"] = 1] = "None";
494})(SwipeEdgeEffect || (SwipeEdgeEffect = {}));
495
496var ScrollState;
497(function (ScrollState) {
498  ScrollState[ScrollState["Idle"] = 0] = "Idle";
499  ScrollState[ScrollState["Scroll"] = 1] = "Scroll";
500  ScrollState[ScrollState["Fling"] = 2] = "Fling";
501})(ScrollState || (ScrollState = {}));
502
503var ScrollSource;
504(function (ScrollSource) {
505  ScrollSource[ScrollSource["DRAG"] = 0] = "DRAG";
506  ScrollSource[ScrollSource["FLING"] = 1] = "FLING";
507  ScrollSource[ScrollSource["EDGE_EFFECT"] = 2] = "EDGE_EFFECT";
508  ScrollSource[ScrollSource["OTHER_USER_INPUT"] = 3] = "OTHER_USER_INPUT";
509  ScrollSource[ScrollSource["SCROLL_BAR"] = 4] = "SCROLL_BAR";
510  ScrollSource[ScrollSource["SCROLL_BAR_FLING"] = 5] = "SCROLL_BAR_FLING";
511  ScrollSource[ScrollSource["SCROLLER"] = 6] = "SCROLLER";
512  ScrollSource[ScrollSource["SCROLLER_ANIMATION"] = 7] = "SCROLLER_ANIMATION";
513})(ScrollSource || (ScrollSource = {}));
514
515var TouchType;
516(function (TouchType) {
517  TouchType[TouchType["Down"] = 0] = "Down";
518  TouchType[TouchType["Up"] = 1] = "Up";
519  TouchType[TouchType["Move"] = 2] = "Move";
520  TouchType[TouchType["Cancel"] = 3] = "Cancel";
521})(TouchType || (TouchType = {}));
522
523var MouseButton;
524(function (MouseButton) {
525  MouseButton[MouseButton["None"] = 0] = "None";
526  MouseButton[MouseButton["Left"] = 1] = "Left";
527  MouseButton[MouseButton["Right"] = 2] = "Right";
528  MouseButton[MouseButton["Middle"] = 4] = "Middle";
529  MouseButton[MouseButton["Back"] = 8] = "Back";
530  MouseButton[MouseButton["Forward"] = 16] = "Forward";
531})(MouseButton || (MouseButton = {}));
532
533var MouseAction;
534(function (MouseAction) {
535  MouseAction[MouseAction["None"] = 0] = "None";
536  MouseAction[MouseAction["Press"] = 1] = "Press";
537  MouseAction[MouseAction["Release"] = 2] = "Release";
538  MouseAction[MouseAction["Move"] = 3] = "Move";
539  MouseAction[MouseAction["Hover"] = 4] = "Hover";
540})(MouseAction || (MouseAction = {}));
541
542var KeyType;
543(function (KeyType) {
544  KeyType[KeyType["Down"] = 0] = "Down";
545  KeyType[KeyType["Up"] = 1] = "Up";
546  KeyType[KeyType["LongPress"] = 2] = "LongPress";
547})(KeyType || (KeyType = {}));
548
549var GestureMode;
550(function (GestureMode) {
551  GestureMode[GestureMode["Sequence"] = 0] = "Sequence";
552  GestureMode[GestureMode["Parallel"] = 1] = "Parallel";
553  GestureMode[GestureMode["Exclusive"] = 2] = "Exclusive";
554})(GestureMode || (GestureMode = {}));
555
556var PanDirection;
557(function (PanDirection) {
558  PanDirection[PanDirection["None"] = 0] = "None";
559  PanDirection[PanDirection["Left"] = 1] = "Left";
560  PanDirection[PanDirection["Right"] = 2] = "Right";
561  PanDirection[PanDirection["Horizontal"] = 3] = "Horizontal";
562  PanDirection[PanDirection["Up"] = 4] = "Up";
563  PanDirection[PanDirection["Down"] = 8] = "Down";
564  PanDirection[PanDirection["Vertical"] = 12] = "Vertical";
565  PanDirection[PanDirection["All"] = 15] = "All";
566})(PanDirection || (PanDirection = {}));
567
568var SwipeDirection;
569(function (SwipeDirection) {
570  SwipeDirection[SwipeDirection["None"] = 0] = "None";
571  SwipeDirection[SwipeDirection["Horizontal"] = 1] = "Horizontal";
572  SwipeDirection[SwipeDirection["Vertical"] = 2] = "Vertical";
573  SwipeDirection[SwipeDirection["All"] = 3] = "All";
574})(SwipeDirection || (SwipeDirection = {}));
575
576var GestureDirection;
577(function (GestureDirection) {
578  GestureDirection[GestureDirection["All"] = 0] = "All";
579  GestureDirection[GestureDirection["Horizontal"] = 1] = "Horizontal";
580  GestureDirection[GestureDirection["Vertical"] = 2] = "Vertical";
581})(GestureDirection || (GestureDirection = {}));
582
583var GestureMask;
584(function (GestureMask) {
585  GestureMask[GestureMask["Normal"] = 0] = "Normal";
586  GestureMask[GestureMask["IgnoreInternal"] = 1] = "IgnoreInternal";
587})(GestureMask || (GestureMask = {}));
588
589var GesturePriority;
590(function (GesturePriority) {
591  GesturePriority[GesturePriority["Low"] = 0] = "Low";
592  GesturePriority[GesturePriority["NORMAL"] = 0] = "NORMAL";
593  GesturePriority[GesturePriority["High"] = 1] = "High";
594  GesturePriority[GesturePriority["PRIORITY"] = 1] = "PRIORITY";
595  GesturePriority[GesturePriority["Parallel"] = 2] = "Parallel";
596  GesturePriority[GesturePriority["PARALLEL"] = 2] = "PARALLEL";
597})(GesturePriority || (GesturePriority = {}));
598
599var Visibility;
600(function (Visibility) {
601  Visibility[Visibility["Visible"] = 0] = "Visible";
602  Visibility[Visibility["Hidden"] = 1] = "Hidden";
603  Visibility[Visibility["None"] = 2] = "None";
604})(Visibility || (Visibility = {}));
605
606var RelateType;
607(function (RelateType) {
608  RelateType[RelateType["FILL"] = 0] = "FILL";
609  RelateType[RelateType["FIT"] = 1] = "FIT";
610})(RelateType || (RelateType = {}));
611
612var FlexDirection;
613(function (FlexDirection) {
614  FlexDirection[FlexDirection["Row"] = 0] = "Row";
615  FlexDirection[FlexDirection["Column"] = 1] = "Column";
616  FlexDirection[FlexDirection["RowReverse"] = 2] = "RowReverse";
617  FlexDirection[FlexDirection["ColumnReverse"] = 3] = "ColumnReverse";
618})(FlexDirection || (FlexDirection = {}));
619
620var FlexWrap;
621(function (FlexWrap) {
622  FlexWrap[FlexWrap["NoWrap"] = 0] = "NoWrap";
623  FlexWrap[FlexWrap["Wrap"] = 1] = "Wrap";
624  FlexWrap[FlexWrap["WrapReverse"] = 2] = "WrapReverse";
625})(FlexWrap || (FlexWrap = {}));
626
627class LayoutPolicy {
628  id_ = '';
629
630  constructor(id) {
631    this.id_ = id;
632  }
633
634  static get matchParent() {
635    return new LayoutPolicy('matchParent');
636  }
637}
638
639var BlurStyle;
640(function (BlurStyle) {
641  BlurStyle[BlurStyle["SmallLight"] = 100] = "SmallLight";
642  BlurStyle[BlurStyle["MediumLight"] = 101] = "MediumLight";
643  BlurStyle[BlurStyle["LargeLight"] = 102] = "LargeLight";
644  BlurStyle[BlurStyle["XlargeLight"] = 103] = "XlargeLight";
645  BlurStyle[BlurStyle["SmallDark"] = 104] = "SmallDark";
646  BlurStyle[BlurStyle["MediumDark"] = 105] = "MediumDark";
647  BlurStyle[BlurStyle["LargeDark"] = 106] = "LargeDark";
648  BlurStyle[BlurStyle["XlargeDark"] = 107] = "XlargeDark";
649})(BlurStyle || (BlurStyle = {}));
650
651var Edge;
652(function (Edge) {
653  Edge[Edge["Top"] = 0] = "Top";
654  Edge[Edge["Center"] = 1] = "Center";
655  Edge[Edge["Bottom"] = 2] = "Bottom";
656  Edge[Edge["Baseline"] = 3] = "Baseline";
657  Edge[Edge["Start"] = 4] = "Start";
658  Edge[Edge["Middle"] = 5] = "Middle";
659  Edge[Edge["End"] = 6] = "End";
660})(Edge || (Edge = {}));
661
662var LineJoinStyle;
663(function (LineJoinStyle) {
664  LineJoinStyle[LineJoinStyle["Miter"] = 0] = "Miter";
665  LineJoinStyle[LineJoinStyle["Round"] = 1] = "Round";
666  LineJoinStyle[LineJoinStyle["Bevel"] = 2] = "Bevel";
667})(LineJoinStyle || (LineJoinStyle = {}));
668
669var AnimationStatus;
670(function (AnimationStatus) {
671  AnimationStatus[AnimationStatus["Initial"] = 0] = "Initial";
672  AnimationStatus[AnimationStatus["Running"] = 1] = "Running";
673  AnimationStatus[AnimationStatus["Paused"] = 2] = "Paused";
674  AnimationStatus[AnimationStatus["Stopped"] = 3] = "Stopped";
675})(AnimationStatus || (AnimationStatus = {}));
676
677var Motion;
678(function (Motion) {
679  Motion[Motion["SpringMotion"] = 0] = "SpringMotion";
680  Motion[Motion["FrictionMotion"] = 1] = "FrictionMotion";
681  Motion[Motion["ScrollMotion"] = 2] = "ScrollMotion";
682})(Motion || (Motion = {}));
683
684var ScrollDirection;
685(function (ScrollDirection) {
686  ScrollDirection[ScrollDirection["Vertical"] = 0] = "Vertical";
687  ScrollDirection[ScrollDirection["Horizontal"] = 1] = "Horizontal";
688  ScrollDirection[ScrollDirection["Free"] = 2] = "Free";
689  ScrollDirection[ScrollDirection["None"] = 3] = "None";
690})(ScrollDirection || (ScrollDirection = {}));
691
692var Sticky;
693(function (Sticky) {
694  Sticky[Sticky["None"] = 0] = "None";
695  Sticky[Sticky["Normal"] = 1] = "Normal";
696  Sticky[Sticky["Opacity"] = 2] = "Opacity";
697})(Sticky || (Sticky = {}));
698
699var StickyStyle;
700(function (StickyStyle) {
701  StickyStyle[StickyStyle["None"] = 0] = "None";
702  StickyStyle[StickyStyle["Header"] = 1] = "Header";
703  StickyStyle[StickyStyle["Footer"] = 2] = "Footer";
704})(StickyStyle || (StickyStyle = {}));
705
706var ScrollSnapAlign;
707(function (ScrollSnapAlign) {
708  ScrollSnapAlign[ScrollSnapAlign["NONE"] = 0] = "NONE";
709  ScrollSnapAlign[ScrollSnapAlign["START"] = 1] = "START";
710  ScrollSnapAlign[ScrollSnapAlign["CENTER"] = 2] = "CENTER";
711  ScrollSnapAlign[ScrollSnapAlign["END"] = 3] = "END";
712})(ScrollSnapAlign || (ScrollSnapAlign = {}));
713
714var ChainEdgeEffect;
715(function (ChainEdgeEffect) {
716  ChainEdgeEffect[ChainEdgeEffect["DEFAULT"] = 0] = "DEFAULT";
717  ChainEdgeEffect[ChainEdgeEffect["STRETCH"] = 1] = "STRETCH";
718})(ChainEdgeEffect || (ChainEdgeEffect = {}));
719
720var Week;
721(function (Week) {
722  Week["Mon"] = 0b0000001;
723  Week["Tue"] = 0b0000010;
724  Week["Wed"] = 0b0000100;
725  Week["Thur"] = 0b0001000;
726  Week["Fri"] = 0b0010000;
727  Week["Sat"] = 0b0100000;
728  Week["Sun"] = 0b1000000;
729})(Week || (Week = {}));
730
731var FormDimension;
732(function (FormDimension) {
733  FormDimension["Dimension_1_2"] = 1;
734  FormDimension["Dimension_2_2"] = 2;
735  FormDimension["Dimension_2_4"] = 3;
736  FormDimension["Dimension_4_4"] = 4;
737  FormDimension["Dimension_2_1"] = 5;
738  FormDimension["DIMENSION_1_1"] = 6;
739  FormDimension["DIMENSION_6_4"] = 7;
740})(FormDimension || (FormDimension = {}));
741
742let FormShape;
743(function (FormShape) {
744  FormShape.RECT = 1;
745  FormShape.CIRCLE = 2;
746})(FormShape || (FormShape = {}));
747
748let FormRenderingMode;
749(function (FormRenderingMode) {
750  FormRenderingMode.FULL_COLOR = 0;
751  FormRenderingMode.SINGLE_COLOR = 1;
752})(FormRenderingMode || (FormRenderingMode = {}));
753
754var TransitionType;
755(function (TransitionType) {
756  TransitionType["All"] = "All";
757  TransitionType["Insert"] = "Insert";
758  TransitionType["Delete"] = "Delete";
759})(TransitionType || (TransitionType = {}));
760
761var Direction;
762(function (Direction) {
763  Direction["Ltr"] = "Ltr";
764  Direction["Rtl"] = "Rtl";
765  Direction["Auto"] = "Auto";
766})(Direction || (Direction = {}));
767
768var RouteType;
769(function (RouteType) {
770  RouteType[RouteType["None"] = 0] = "None";
771  RouteType[RouteType["Push"] = 1] = "Push";
772  RouteType[RouteType["Pop"] = 2] = "Pop";
773})(RouteType || (RouteType = {}));
774
775var FocusDirection;
776(function (FocusDirection) {
777  FocusDirection[FocusDirection["Up"] = 19] = "Up";
778  FocusDirection[FocusDirection["Down"] = 20] = "Down";
779  FocusDirection[FocusDirection["Left"] = 21] = "Left";
780  FocusDirection[FocusDirection["Right"] = 22] = "Right";
781  FocusDirection[FocusDirection["Tab"] = 61] = "Tab";
782  FocusDirection[FocusDirection["ShiftTab"] = 200] = "ShiftTab";
783})(FocusDirection || (FocusDirection = {}));
784
785var SlideEffect;
786(function (SlideEffect) {
787  SlideEffect[SlideEffect["None"] = 0] = "None";
788  SlideEffect[SlideEffect["Left"] = 1] = "Left";
789  SlideEffect[SlideEffect["Right"] = 2] = "Right";
790  SlideEffect[SlideEffect["Top"] = 3] = "Top";
791  SlideEffect[SlideEffect["Bottom"] = 4] = "Bottom";
792  SlideEffect[SlideEffect["START"] = 5] = "START";
793  SlideEffect[SlideEffect["END"] = 6] = "END";
794})(SlideEffect || (SlideEffect = {}));
795
796var GradientDirection;
797(function (GradientDirection) {
798  GradientDirection[GradientDirection["Left"] = 0] = "Left";
799  GradientDirection[GradientDirection["Top"] = 1] = "Top";
800  GradientDirection[GradientDirection["Right"] = 2] = "Right";
801  GradientDirection[GradientDirection["Bottom"] = 3] = "Bottom";
802  GradientDirection[GradientDirection["LeftTop"] = 4] = "Bottom";
803  GradientDirection[GradientDirection["LeftBottom"] = 5] = "Bottom";
804  GradientDirection[GradientDirection["RightTop"] = 6] = "Bottom";
805  GradientDirection[GradientDirection["RightBottom"] = 7] = "Bottom";
806  GradientDirection[GradientDirection["None"] = 8] = "None";
807})(GradientDirection || (GradientDirection = {}));
808
809var BarMode;
810(function (BarMode) {
811  BarMode["Fixed"] = "Fixed";
812  BarMode["Scrollable"] = "Scrollable";
813})(BarMode || (BarMode = {}));
814
815var AnimationMode;
816(function (AnimationMode) {
817  AnimationMode[AnimationMode["CONTENT_FIRST"] = 0] = "CONTENT_FIRST";
818  AnimationMode[AnimationMode["ACTION_FIRST"] = 1] = "ACTION_FIRST";
819  AnimationMode[AnimationMode["NO_ANIMATION"] = 2] = "NO_ANIMATION";
820  AnimationMode[AnimationMode["CONTENT_FIRST_WITH_JUMP"] = 3] = "CONTENT_FIRST_WITH_JUMP";
821  AnimationMode[AnimationMode["ACTION_FIRST_WITH_JUMP"] = 4] = "ACTION_FIRST_WITH_JUMP";
822})(AnimationMode || (AnimationMode = {}));
823
824var SwiperAnimationMode;
825(function (SwiperAnimationMode) {
826  SwiperAnimationMode[SwiperAnimationMode["NO_ANIMATION"] = 0] = "NO_ANIMATION";
827  SwiperAnimationMode[SwiperAnimationMode["DEFAULT_ANIMATION"] = 1] = "DEFAULT_ANIMATION";
828  SwiperAnimationMode[SwiperAnimationMode["FAST_ANIMATION"] = 2] = "FAST_ANIMATION";
829})(SwiperAnimationMode || (SwiperAnimationMode = {}));
830
831var SelectedMode;
832(function (SelectedMode) {
833  SelectedMode[SelectedMode["INDICATOR"] = 0] = "INDICATOR";
834  SelectedMode[SelectedMode["BOARD"] = 1] = "BOARD";
835})(SelectedMode || (SelectedMode = {}));
836
837var LayoutMode;
838(function (LayoutMode) {
839  LayoutMode[LayoutMode["AUTO"] = 0] = "AUTO";
840  LayoutMode[LayoutMode["VERTICAL"] = 1] = "VERTICAL";
841  LayoutMode[LayoutMode["HORIZONTAL"] = 2] = "HORIZONTAL";
842})(LayoutMode || (LayoutMode = {}));
843
844var LayoutStyle;
845(function (LayoutStyle) {
846  LayoutStyle[LayoutStyle["ALWAYS_CENTER"] = 0] = "ALWAYS_CENTER";
847  LayoutStyle[LayoutStyle["ALWAYS_AVERAGE_SPLIT"] = 1] = "ALWAYS_AVERAGE_SPLIT";
848  LayoutStyle[LayoutStyle["SPACE_BETWEEN_OR_CENTER"] = 2] = "SPACE_BETWEEN_OR_CENTER";
849})(LayoutStyle || (LayoutStyle = {}));
850
851var SizeType;
852(function (SizeType) {
853  SizeType[SizeType["Auto"] = 0] = "Auto";
854  SizeType[SizeType["XS"] = 1] = "XS";
855  SizeType[SizeType["SM"] = 2] = "SM";
856  SizeType[SizeType["MD"] = 3] = "MD";
857  SizeType[SizeType["LG"] = 4] = "LG";
858})(SizeType || (SizeType = {}));
859
860var CancelButtonStyle;
861(function (CancelButtonStyle) {
862  CancelButtonStyle["CONSTANT"] = "CONSTANT";
863  CancelButtonStyle["INVISIBLE"] = "INVISIBLE";
864  CancelButtonStyle["INPUT"] = "INPUT";
865})(CancelButtonStyle || (CancelButtonStyle = {}));
866
867var ColorMode;
868(function (ColorMode) {
869  ColorMode[ColorMode["LIGHT"] = 0] = "LIGHT";
870  ColorMode[ColorMode["DARK"] = 1] = "DARK";
871})(ColorMode || (ColorMode = {}));
872var LayoutDirection;
873(function (LayoutDirection) {
874  LayoutDirection[LayoutDirection["RTL"] = 0] = "RTL";
875  LayoutDirection[LayoutDirection["LTR"] = 1] = "LTR";
876})(LayoutDirection || (LayoutDirection = {}));
877
878function isSystemplugin(shortName, moduleType) {
879  const plugin = moduleType === 'ohos' ? globalThis.ohosplugin : globalThis.systemplugin;
880  if (typeof (plugin) !== 'undefined') {
881    var target = plugin;
882    for (let key of shortName.split('.')) {
883      target = target[key];
884      if (!target) {
885        break;
886      }
887    }
888    return typeof (target) !== 'undefined';
889  }
890}
891
892var BarPosition;
893(function (BarPosition) {
894  BarPosition[BarPosition["Start"] = 0] = "Start";
895  BarPosition[BarPosition["End"] = 1] = "End";
896})(BarPosition || (BarPosition = {}));
897
898var SharedTransitionEffectType;
899(function (SharedTransitionEffectType) {
900  SharedTransitionEffectType[SharedTransitionEffectType["Static"] = 0] = "Static";
901  SharedTransitionEffectType[SharedTransitionEffectType["Exchange"] = 1] = "Exchange";
902})(SharedTransitionEffectType || (SharedTransitionEffectType = {}));
903
904function $r(id, type, ...params) {
905  return { "id": id, "type": type, "params": params };
906}
907
908function $rawfile(fileName) {
909  return { "id": 0, "type": 30000, "params": [fileName] };
910}
911
912var IndexerAlign;
913(function (IndexerAlign) {
914  IndexerAlign[IndexerAlign["Left"] = 0] = "Left";
915  IndexerAlign[IndexerAlign["Right"] = 1] = "Right";
916  IndexerAlign[IndexerAlign["START"] = 2] = "START";
917  IndexerAlign[IndexerAlign["END"] = 3] = "END";
918})(IndexerAlign || (IndexerAlign = {}));
919
920var DialogAlignment;
921(function (DialogAlignment) {
922  DialogAlignment[DialogAlignment["Top"] = 0] = "Top";
923  DialogAlignment[DialogAlignment["Center"] = 1] = "Center";
924  DialogAlignment[DialogAlignment["Bottom"] = 2] = "Bottom";
925  DialogAlignment[DialogAlignment["Default"] = 3] = "Default";
926  DialogAlignment[DialogAlignment["TopStart"] = 4] = "TopStart";
927  DialogAlignment[DialogAlignment["TopEnd"] = 5] = "TopEnd";
928  DialogAlignment[DialogAlignment["CenterStart"] = 6] = "CenterStart";
929  DialogAlignment[DialogAlignment["CenterEnd"] = 7] = "CenterEnd";
930  DialogAlignment[DialogAlignment["BottomStart"] = 8] = "BottomStart";
931  DialogAlignment[DialogAlignment["BottomEnd"] = 9] = "BottomEnd";
932})(DialogAlignment || (DialogAlignment = {}));
933
934let HoverModeAreaType;
935(function (HoverModeAreaType) {
936  HoverModeAreaType.TOP_SCREEN = 0;
937  HoverModeAreaType.BOTTOM_SCREEN = 1;
938})(HoverModeAreaType || (HoverModeAreaType = {}));
939
940var DialogButtonStyle;
941(function (DialogButtonStyle) {
942  DialogButtonStyle[DialogButtonStyle["DEFAULT"] = 0] = "DEFAULT";
943  DialogButtonStyle[DialogButtonStyle["HIGHLIGHT"] = 1] = "HIGHLIGHT";
944})(DialogButtonStyle || (DialogButtonStyle = {}));
945
946var EditMode;
947(function (EditMode) {
948  EditMode[EditMode["None"] = 0] = "None";
949  EditMode[EditMode["Deletable"] = 1] = "Deletable";
950  EditMode[EditMode["Movable"] = 2] = "Movable";
951})(EditMode || (EditMode = {}));
952
953var SwiperDisplayMode;
954(function (SwiperDisplayMode) {
955  SwiperDisplayMode[SwiperDisplayMode["Stretch"] = 0] = "Stretch";
956  SwiperDisplayMode[SwiperDisplayMode["AutoLinear"] = 1] = "AutoLinear";
957  SwiperDisplayMode[SwiperDisplayMode["STRETCH"] = 0] = "STRETCH";
958  SwiperDisplayMode[SwiperDisplayMode["AUTO_LINEAR"] = 1] = "AUTO_LINEAR";
959})(SwiperDisplayMode || (SwiperDisplayMode = {}));
960
961var EdgeEffect;
962(function (EdgeEffect) {
963  EdgeEffect[EdgeEffect["Spring"] = 0] = "Spring";
964  EdgeEffect[EdgeEffect["Fade"] = 1] = "Fade";
965  EdgeEffect[EdgeEffect["None"] = 2] = "None";
966})(EdgeEffect || (EdgeEffect = {}));
967
968var DatePickerType;
969(function (DatePickerType) {
970  DatePickerType[DatePickerType["Time"] = 0] = "Time";
971  DatePickerType[DatePickerType["Date"] = 1] = "Date";
972})(DatePickerType || (DatePickerType = {}));
973
974var TimePickerFormat;
975(function (TimePickerFormat) {
976  TimePickerFormat[TimePickerFormat["HOUR_MINUTE"] = 0] = "HOUR_MINUTE";
977  TimePickerFormat[TimePickerFormat["HOUR_MINUTE_SECOND"] = 1] = "HOUR_MINUTE_SECOND";
978})(TimePickerFormat || (TimePickerFormat = {}));
979
980var InputType;
981(function (InputType) {
982  InputType[InputType["Normal"] = 0] = "Normal";
983  InputType[InputType["Number"] = 2] = "Number";
984  InputType[InputType["PhoneNumber"] = 3] = "PhoneNumber";
985  InputType[InputType["Email"] = 5] = "Email";
986  InputType[InputType["Password"] = 7] = "Password";
987  InputType[InputType["NUMBER_PASSWORD"] = 8] = "NUMBER_PASSWORD";
988  InputType[InputType["SCREEN_LOCK_PASSWORD"] = 9] = "SCREEN_LOCK_PASSWORD";
989  InputType[InputType["USER_NAME"] = 10] = "USER_NAME";
990  InputType[InputType["NEW_PASSWORD"] = 11] = "NEW_PASSWORD";
991  InputType[InputType["NUMBER_DECIMAL"] = 12] = "NUMBER_DECIMAL";
992  InputType[InputType["URL"] = 13] = "URL";
993})(InputType || (InputType = {}));
994
995var SearchType;
996(function (SearchType) {
997  SearchType[SearchType["NORMAL"] = 0] = "NORMAL";
998  SearchType[SearchType["NUMBER"] = 2] = "NUMBER";
999  SearchType[SearchType["PHONE_NUMBER"] = 3] = "PHONE_NUMBER";
1000  SearchType[SearchType["EMAIL"] = 5] = "EMAIL";
1001  SearchType[SearchType["NUMBER_DECIMAL"] = 12] = "NUMBER_DECIMAL";
1002  SearchType[SearchType["URL"] = 13] = "URL";
1003})(SearchType || (SearchType = {}));
1004
1005var TextAreaType;
1006(function (TextAreaType) {
1007  TextAreaType[TextAreaType["NORMAL"] = 0] = "NORMAL";
1008  TextAreaType[TextAreaType["NUMBER"] = 2] = "NUMBER";
1009  TextAreaType[TextAreaType["PHONE_NUMBER"] = 3] = "PHONE_NUMBER";
1010  TextAreaType[TextAreaType["EMAIL"] = 5] = "EMAIL";
1011  TextAreaType[TextAreaType["NUMBER_DECIMAL"] = 12] = "NUMBER_DECIMAL";
1012  TextAreaType[TextAreaType["URL"] = 13] = "URL";
1013})(TextAreaType || (TextAreaType = {}));
1014
1015var EnterKeyType;
1016(function (EnterKeyType) {
1017  EnterKeyType[EnterKeyType["Go"] = 2] = "Go";
1018  EnterKeyType[EnterKeyType["Search"] = 3] = "Search";
1019  EnterKeyType[EnterKeyType["Send"] = 4] = "Send";
1020  EnterKeyType[EnterKeyType["Next"] = 5] = "Next";
1021  EnterKeyType[EnterKeyType["Done"] = 6] = "Done";
1022  EnterKeyType[EnterKeyType["PREVIOUS"] = 7] = "PREVIOUS";
1023  EnterKeyType[EnterKeyType["NEW_LINE"] = 8] = "NEW_LINE";
1024})(EnterKeyType || (EnterKeyType = {}));
1025
1026var ItemState
1027(function (ItemState) {
1028  ItemState[ItemState["Normal"] = 0] = "Normal";
1029  ItemState[ItemState["Disabled"] = 1] = "Disabled";
1030  ItemState[ItemState["Waiting"] = 2] = "Waiting";
1031  ItemState[ItemState["Skip"] = 3] = "Skip";
1032})(ItemState || (ItemState = {}));
1033
1034var NavigationTitleMode;
1035(function (NavigationTitleMode) {
1036  NavigationTitleMode[NavigationTitleMode["Free"] = 0] = "Free";
1037  NavigationTitleMode[NavigationTitleMode["Full"] = 1] = "Full";
1038  NavigationTitleMode[NavigationTitleMode["Mini"] = 2] = "Mini";
1039})(NavigationTitleMode || (NavigationTitleMode = {}));
1040
1041let BarStyle;
1042(function (BarStyle) {
1043  BarStyle[BarStyle.STANDARD = 0] = 'STANDARD';
1044  BarStyle[BarStyle.STACK = 1] = 'STACK';
1045  BarStyle[BarStyle.SAFE_AREA_PADDING = 2] = 'SAFE_AREA_PADDING';
1046})(BarStyle || (BarStyle = {}));
1047var NavigationMode;
1048(function (NavigationMode) {
1049  NavigationMode[NavigationMode["Stack"] = 0] = "Stack";
1050  NavigationMode[NavigationMode["Split"] = 1] = "Split";
1051  NavigationMode[NavigationMode["Auto"] = 2] = "Auto";
1052})(NavigationMode || (NavigationMode = {}));
1053
1054var NavRouteMode;
1055(function (NavRouteMode) {
1056  NavRouteMode[NavRouteMode["PUSH_WITH_RECREATE"] = 0] = "PUSH_WITH_RECREATE";
1057  NavRouteMode[NavRouteMode["PUSH"] = 1] = "PUSH";
1058  NavRouteMode[NavRouteMode["REPLACE"] = 2] = "REPLACE";
1059})(NavRouteMode || (NavRouteMode = {}));
1060
1061var NavBarPosition;
1062(function (NavBarPosition) {
1063  NavBarPosition[NavBarPosition["Start"] = 0] = "Start";
1064  NavBarPosition[NavBarPosition["End"] = 1] = "End";
1065})(NavBarPosition || (NavBarPosition = {}));
1066
1067var TitleHeight;
1068(function (TitleHeight) {
1069  TitleHeight["MainOnly"] = "MainOnly";
1070  TitleHeight["MainWithSub"] = "MainWithSub";
1071})(TitleHeight || (TitleHeight = {}));
1072
1073var NavDestinationMode;
1074(function (NavDestinationMode) {
1075  NavDestinationMode[NavDestinationMode["STANDARD"] = 0] = "STANDARD";
1076  NavDestinationMode[NavDestinationMode["DIALOG"] = 1] = "DIALOG";
1077}(NavDestinationMode || (NavDestinationMode = {})));
1078
1079var NavigationSystemTransitionType;
1080(function (NavigationSystemTransitionType) {
1081  NavigationSystemTransitionType[NavigationSystemTransitionType.DEFAULT = 0] = 'DEFAULT';
1082  NavigationSystemTransitionType[NavigationSystemTransitionType.NONE = 1] = 'NONE';
1083  NavigationSystemTransitionType[NavigationSystemTransitionType.TITLE = 2] = 'TITLE';
1084  NavigationSystemTransitionType[NavigationSystemTransitionType.CONTENT = 3] = 'CONTENT';
1085  NavigationSystemTransitionType[NavigationSystemTransitionType.FADE = 4] = 'FADE';
1086  NavigationSystemTransitionType[NavigationSystemTransitionType.EXPLODE = 5] = 'EXPLODE';
1087  NavigationSystemTransitionType[NavigationSystemTransitionType.SLIDE_RIGHT = 6] = 'SLIDE_RIGHT';
1088  NavigationSystemTransitionType[NavigationSystemTransitionType.SLIDE_BOTTOM = 7] = 'SLIDE_BOTTOM';
1089}(NavigationSystemTransitionType || (NavigationSystemTransitionType = {})));
1090
1091let NavigationOperation;
1092(function (NavigationOperation) {
1093  NavigationOperation[NavigationOperation.PUSH = 1] = "PUSH";
1094  NavigationOperation[NavigationOperation.POP = 2] = "POP";
1095  NavigationOperation[NavigationOperation.REPLACE = 3] = "REPLACE";
1096}(NavigationOperation || (NavigationOperation = {})));
1097
1098var ResponseType;
1099(function (ResponseType) {
1100  ResponseType[ResponseType["RightClick"] = 0] = "RightClick";
1101  ResponseType[ResponseType["LongPress"] = 1] = "LongPress";
1102})(ResponseType || (ResponseType = {}));
1103
1104var RichEditorResponseType;
1105(function (RichEditorResponseType) {
1106  RichEditorResponseType[RichEditorResponseType["RIGHT_CLICK"] = 0] = "RIGHT_CLICK";
1107  RichEditorResponseType[RichEditorResponseType["LONG_PRESS"] = 1] = "LONG_PRESS";
1108  RichEditorResponseType[RichEditorResponseType["SELECT"] = 2] = "SELECT";
1109  RichEditorResponseType[RichEditorResponseType["DEFAULT"] = 3] = "DEFAULT";
1110})(RichEditorResponseType || (RichEditorResponseType = {}));
1111
1112let MenuType;
1113(function (MenuType) {
1114  MenuType[MenuType.SELECTION_MENU = 0] = 'SELECTION_MENU';
1115  MenuType[MenuType.PREVIEW_MENU = 1] = 'PREVIEW_MENU';
1116})(MenuType || (MenuType = {}));
1117
1118var MenuPreviewMode;
1119(function (MenuPreviewMode) {
1120  MenuPreviewMode[MenuPreviewMode["NONE"] = 0] = "NONE";
1121  MenuPreviewMode[MenuPreviewMode["IMAGE"] = 1] = "IMAGE";
1122})(MenuPreviewMode || (MenuPreviewMode = {}));
1123
1124let DismissReason;
1125(function (DismissReason) {
1126  DismissReason[DismissReason.PRESS_BACK = 0] = "PRESS_BACK";
1127  DismissReason[DismissReason.TOUCH_OUTSIDE = 1] = "TOUCH_OUTSIDE";
1128  DismissReason[DismissReason.CLOSE_BUTTON = 2] = "CLOSE_BUTTON";
1129  DismissReason[DismissReason.SLIDE_DOWN = 3] = "SLIDE_DOWN";
1130})(DismissReason || (DismissReason = {}));
1131
1132var HoverEffect;
1133(function (HoverEffect) {
1134  HoverEffect[HoverEffect["Auto"] = 4] = "Auto";
1135  HoverEffect[HoverEffect["Scale"] = 2] = "Scale";
1136  HoverEffect[HoverEffect["Board"] = 3] = "Board";
1137  HoverEffect[HoverEffect["Highlight"] = 3] = "Highlight";
1138  HoverEffect[HoverEffect["None"] = 0] = "None";
1139})(HoverEffect || (HoverEffect = {}));
1140
1141var ScrollBarDirection;
1142(function (ScrollBarDirection) {
1143  ScrollBarDirection[ScrollBarDirection["Vertical"] = 0] = "Vertical";
1144  ScrollBarDirection[ScrollBarDirection["Horizontal"] = 1] = "Horizontal";
1145  ScrollBarDirection[ScrollBarDirection["None"] = 2] = "None";
1146})(ScrollBarDirection || (ScrollBarDirection = {}));
1147
1148var Placement;
1149(function (Placement) {
1150  Placement[Placement["Left"] = 0] = "Left";
1151  Placement[Placement["Right"] = 1] = "Right";
1152  Placement[Placement["Top"] = 2] = "Top";
1153  Placement[Placement["Bottom"] = 3] = "Bottom";
1154  Placement[Placement["TopLeft"] = 4] = "TopLeft";
1155  Placement[Placement["TopRight"] = 5] = "TopRight";
1156  Placement[Placement["BottomLeft"] = 6] = "BottomLeft";
1157  Placement[Placement["BottomRight"] = 7] = "BottomRight";
1158  Placement[Placement["LeftTop"] = 8] = "LeftTop";
1159  Placement[Placement["LeftBottom"] = 9] = "LeftBottom";
1160  Placement[Placement["RightTop"] = 10] = "RightTop";
1161  Placement[Placement["RightBottom"] = 11] = "RightBottom";
1162})(Placement || (Placement = {}));
1163
1164var DialogStatus;
1165(function (DialogStatus) {
1166  DialogStatus[DialogStatus["Accept"] = 0] = "Accept";
1167  DialogStatus[DialogStatus["Cancel"] = 1] = "Cancel";
1168  DialogStatus[DialogStatus["Update"] = 2] = "Update";
1169})(DialogStatus || (DialogStatus = {}));
1170
1171var SourceType;
1172(function (SourceType) {
1173  SourceType[SourceType["Unknown"] = 0] = "Unknown";
1174  SourceType[SourceType["Mouse"] = 1] = "Mouse";
1175  SourceType[SourceType["TouchScreen"] = 2] = "TouchScreen";
1176  SourceType[SourceType["Keyboard"] = 4] = "Keyboard";
1177})(SourceType || (SourceType = {}));
1178
1179var SourceTool;
1180(function (SourceTool) {
1181  SourceTool[SourceTool["Unknown"] = 0] = "Unknown";
1182  SourceTool[SourceTool["FINGER"] = 1] = "FINGER";
1183  SourceTool["Finger"] = 1;
1184  SourceTool[SourceTool["PEN"] = 2] = "PEN";
1185  SourceTool["Pen"] = 2;
1186  SourceTool[SourceTool["MOUSE"] = 7] = "MOUSE";
1187  SourceTool[SourceTool["TOUCHPAD"] = 9] = "TOUCHPAD";
1188  SourceTool[SourceTool["JOYSTICK"] = 10] = "JOYSTICK";
1189})(SourceTool || (SourceTool = {}));
1190
1191var KeySource;
1192(function (KeySource) {
1193  KeySource[KeySource["Unknown"] = 0] = "Unknown";
1194  KeySource[KeySource["Keyboard"] = 4] = "Keyboard";
1195  KeySource[KeySource.JOYSTICK = 5] = 'JOYSTICK';
1196})(KeySource || (KeySource = {}));
1197
1198var SeekMode;
1199(function (SeekMode) {
1200  SeekMode[SeekMode["PreviousKeyframe"] = 0] = "PreviousKeyframe";
1201  SeekMode[SeekMode["NextKeyframe"] = 1] = "NextKeyframe";
1202  SeekMode[SeekMode["ClosestKeyframe"] = 2] = "ClosestKeyframe";
1203  SeekMode[SeekMode["Accurate"] = 3] = "Accurate";
1204})(SeekMode || (SeekMode = {}));
1205
1206var SideBarContainerType;
1207(function (SideBarContainerType) {
1208  SideBarContainerType[SideBarContainerType["AUTO"] = 2] = "AUTO";
1209  SideBarContainerType[SideBarContainerType["Overlay"] = 1] = "Overlay";
1210  SideBarContainerType[SideBarContainerType["Embed"] = 0] = "Embed";
1211})(SideBarContainerType || (SideBarContainerType = {}));
1212
1213var SideBarPosition;
1214(function (SideBarPosition) {
1215  SideBarPosition[SideBarPosition["Start"] = 0] = "Start";
1216  SideBarPosition[SideBarPosition["End"] = 1] = "End";
1217})(SideBarPosition || (SideBarPosition = {}));
1218
1219var PlaybackSpeed;
1220(function (PlaybackSpeed) {
1221  PlaybackSpeed["Speed_Forward_0_75_X"] = "0.75";
1222  PlaybackSpeed["Speed_Forward_1_00_X"] = "1.00";
1223  PlaybackSpeed["Speed_Forward_1_25_X"] = "1.25";
1224  PlaybackSpeed["Speed_Forward_1_75_X"] = "1.75";
1225  PlaybackSpeed["Speed_Forward_2_00_X"] = "2.00";
1226})(PlaybackSpeed || (PlaybackSpeed = {}));
1227
1228var MixedMode;
1229(function (MixedMode) {
1230  MixedMode[MixedMode["All"] = 0] = "All";
1231  MixedMode[MixedMode["Compatible"] = 1] = "Compatible";
1232  MixedMode[MixedMode["None"] = 2] = "None";
1233})(MixedMode || (MixedMode = {}));
1234
1235var HitTestType;
1236(function (HitTestType) {
1237  HitTestType[HitTestType["EditText"] = 0] = "EditText";
1238  HitTestType[HitTestType["Email"] = 1] = "Email";
1239  HitTestType[HitTestType["HttpAnchor"] = 2] = "HttpAnchor";
1240  HitTestType[HitTestType["HttpAnchorImg"] = 3] = "HttpAnchorImg";
1241  HitTestType[HitTestType["Img"] = 4] = "Img";
1242  HitTestType[HitTestType["Map"] = 5] = "Map";
1243  HitTestType[HitTestType["Phone"] = 6] = "Phone";
1244  HitTestType[HitTestType["Unknown"] = 7] = "Unknown";
1245})(HitTestType || (HitTestType = {}));
1246
1247var CacheMode;
1248(function (CacheMode) {
1249  CacheMode[CacheMode["Default"] = 0] = "Default";
1250  CacheMode[CacheMode["None"] = 1] = "None";
1251  CacheMode[CacheMode["Online"] = 2] = "Online";
1252  CacheMode[CacheMode["Only"] = 3] = "Only";
1253})(CacheMode || (CacheMode = {}));
1254
1255var WebDarkMode;
1256(function (WebDarkMode) {
1257  WebDarkMode[WebDarkMode["Off"] = 0] = "Off";
1258  WebDarkMode[WebDarkMode["On"] = 1] = "On";
1259  WebDarkMode[WebDarkMode["Auto"] = 2] = "Auto";
1260})(WebDarkMode || (WebDarkMode = {}));
1261
1262var OverScrollMode;
1263(function (OverScrollMode) {
1264  OverScrollMode[OverScrollMode["NEVER"] = 0] = "NEVER";
1265  OverScrollMode[OverScrollMode["ALWAYS"] = 1] = "ALWAYS";
1266})(OverScrollMode || (OverScrollMode = {}));
1267
1268var BlurOnKeyboardHideMode;
1269(function (BlurOnKeyboardHideMode) {
1270  BlurOnKeyboardHideMode[BlurOnKeyboardHideMode["SILENT"] = 0] = "SILENT";
1271  BlurOnKeyboardHideMode[BlurOnKeyboardHideMode["BLUR"] = 1] = "BLUR";
1272})(BlurOnKeyboardHideMode || (BlurOnKeyboardHideMode = {}));
1273
1274var RenderExitReason;
1275(function (RenderExitReason) {
1276  RenderExitReason[RenderExitReason["ProcessAbnormalTermination"] = 0] = "ProcessAbnormalTermination";
1277  RenderExitReason[RenderExitReason["ProcessWasKilled"] = 1] = "ProcessWasKilled";
1278  RenderExitReason[RenderExitReason["ProcessCrashed"] = 2] = "ProcessCrashed";
1279  RenderExitReason[RenderExitReason["ProcessOom"] = 3] = "ProcessOom";
1280  RenderExitReason[RenderExitReason["ProcessExitUnknown"] = 4] = "ProcessExitUnknown";
1281})(RenderExitReason || (RenderExitReason = {}));
1282
1283var RenderProcessNotRespondingReason;
1284(function (RenderProcessNotRespondingReason) {
1285  RenderProcessNotRespondingReason[RenderProcessNotRespondingReason["INPUT_TIMEOUT"] = 0] = "INPUT_TIMEOUT";
1286  RenderProcessNotRespondingReason[RenderProcessNotRespondingReason["NAVIGATION_COMMIT_TIMEOUT"] = 1] = "NAVIGATION_COMMIT_TIMEOUT";
1287})(RenderProcessNotRespondingReason || (RenderProcessNotRespondingReason = {}));
1288
1289var SslError;
1290(function (SslError) {
1291  SslError[SslError["Invalid"] = 0] = "Invalid";
1292  SslError[SslError["HostMismatch"] = 1] = "HostMismatch";
1293  SslError[SslError["DateInvalid"] = 2] = "DateInvalid";
1294  SslError[SslError["Untrusted"] = 3] = "Untrusted";
1295})(SslError || (SslError = {}));
1296
1297var FileSelectorMode;
1298(function (FileSelectorMode) {
1299  FileSelectorMode[FileSelectorMode["FileOpenMode"] = 0] = "FileOpenMode";
1300  FileSelectorMode[FileSelectorMode["FileOpenMultipleMode"] = 1] = "FileOpenMultipleMode";
1301  FileSelectorMode[FileSelectorMode["FileOpenFolderMode"] = 2] = "FileOpenFolderMode";
1302  FileSelectorMode[FileSelectorMode["FileSaveMode"] = 3] = "FileSaveMode";
1303})(FileSelectorMode || (FileSelectorMode = {}));
1304
1305var ProtectedResourceType;
1306(function (ProtectedResourceType) {
1307  ProtectedResourceType["MidiSysex"] = "TYPE_MIDI_SYSEX";
1308  ProtectedResourceType["VIDEO_CAPTURE"] = "TYPE_VIDEO_CAPTURE";
1309  ProtectedResourceType["AUDIO_CAPTURE"] = "TYPE_AUDIO_CAPTURE";
1310  ProtectedResourceType["SENSOR"] = "TYPE_SENSOR";
1311})(ProtectedResourceType || (ProtectedResourceType = {}));
1312
1313var ProgressType;
1314(function (ProgressType) {
1315  ProgressType[ProgressType["Linear"] = 0] = "Linear";
1316  ProgressType[ProgressType["Ring"] = 1] = "Ring";
1317  ProgressType[ProgressType["Eclipse"] = 2] = "Eclipse";
1318  ProgressType[ProgressType["ScaleRing"] = 3] = "ScaleRing";
1319  ProgressType[ProgressType["Capsule"] = 4] = "Capsule";
1320})(ProgressType || (ProgressType = {}));
1321
1322var ProgressStatus;
1323(function (ProgressStatus) {
1324  ProgressStatus["LOADING"] = "LOADING";
1325  ProgressStatus["PROGRESSING"] = "PROGRESSING";
1326})(ProgressStatus || (ProgressStatus = {}));
1327
1328var MessageLevel
1329(function (MessageLevel) {
1330  MessageLevel[MessageLevel["Debug"] = 1] = "Debug";
1331  MessageLevel[MessageLevel["Info"] = 2] = "Info";
1332  MessageLevel[MessageLevel["Warn"] = 3] = "Warn";
1333  MessageLevel[MessageLevel["Error"] = 4] = "Error";
1334  MessageLevel[MessageLevel["Log"] = 5] = "Log";
1335})(MessageLevel || (MessageLevel = {}));
1336
1337var CopyOptions;
1338(function (CopyOptions) {
1339  CopyOptions[CopyOptions["None"] = 0] = "None";
1340  CopyOptions[CopyOptions["InApp"] = 1] = "InApp";
1341  CopyOptions[CopyOptions["LocalDevice"] = 2] = "LocalDevice";
1342  CopyOptions[CopyOptions["CROSS_DEVICE"] = 3] = "CrossDevice";
1343})(CopyOptions || (CopyOptions = {}));
1344
1345var SymbolRenderingStrategy;
1346(function (SymbolRenderingStrategy) {
1347  SymbolRenderingStrategy[SymbolRenderingStrategy["SINGLE"] = 0] = "SINGLE";
1348  SymbolRenderingStrategy[SymbolRenderingStrategy["MULTIPLE_COLOR"] = 1] = "MULTIPLE_COLOR";
1349  SymbolRenderingStrategy[SymbolRenderingStrategy["MULTIPLE_OPACITY"] = 2] = "MULTIPLE_OPACITY";
1350})(SymbolRenderingStrategy || (SymbolRenderingStrategy = {}));
1351
1352var SymbolEffectStrategy;
1353(function (SymbolEffectStrategy) {
1354  SymbolEffectStrategy[SymbolEffectStrategy["NONE"] = 0] = "NONE";
1355  SymbolEffectStrategy[SymbolEffectStrategy["SCALE"] = 1] = "SCALE";
1356  SymbolEffectStrategy[SymbolEffectStrategy["HIERARCHICAL"] = 2] = "HIERARCHICAL";
1357})(SymbolEffectStrategy || (SymbolEffectStrategy = {}));
1358
1359var EffectDirection;
1360(function (EffectDirection) {
1361  EffectDirection[EffectDirection["DOWN"] = 0] = "DOWN";
1362  EffectDirection[EffectDirection["UP"] = 1] = "UP";
1363})(EffectDirection || (EffectDirection = {}));
1364
1365var EffectScope;
1366(function (EffectScope) {
1367  EffectScope[EffectScope["LAYER"] = 0] = "LAYER";
1368  EffectScope[EffectScope["WHOLE"] = 1] = "WHOLE";
1369})(EffectScope || (EffectScope = {}));
1370
1371var EffectFillStyle;
1372(function (EffectFillStyle) {
1373  EffectFillStyle[EffectFillStyle["CUMULATIVE"] = 0] = "CUMULATIVE";
1374  EffectFillStyle[EffectFillStyle["ITERATIVE"] = 1] = "ITERATIVE";
1375})(EffectFillStyle || (EffectFillStyle = {}));
1376
1377let WebKeyboardAvoidMode;
1378(function (WebKeyboardAvoidMode) {
1379  WebKeyboardAvoidMode[WebKeyboardAvoidMode.RESIZE_VISUAL = 0] = 'RESIZE_VISUAL';
1380  WebKeyboardAvoidMode[WebKeyboardAvoidMode.RESIZE_CONTENT = 1] = 'RESIZE_CONTENT';
1381  WebKeyboardAvoidMode[WebKeyboardAvoidMode.OVERLAYS_CONTENT = 2] = 'OVERLAYS_CONTENT';
1382})(WebKeyboardAvoidMode || (WebKeyboardAvoidMode = {}));
1383
1384let KeyboardAppearance;
1385(function (KeyboardAppearance) {
1386  KeyboardAppearance[KeyboardAppearance.NONE_IMMERSIVE = 0] = 'NONE_IMMERSIVE';
1387  KeyboardAppearance[KeyboardAppearance.IMMERSIVE = 1] = 'IMMERSIVE';
1388  KeyboardAppearance[KeyboardAppearance.LIGHT_IMMERSIVE = 2] = 'LIGHT_IMMERSIVE';
1389  KeyboardAppearance[KeyboardAppearance.DARK_IMMERSIVE = 3] = 'DARK_IMMERSIVE';
1390})(KeyboardAppearance || (KeyboardAppearance = {}));
1391
1392class SymbolEffect {
1393}
1394
1395class ScaleSymbolEffect extends SymbolEffect {
1396  constructor(scope, direction) {
1397    super();
1398    this.type = "ScaleSymbolEffect";
1399    this.scope = scope;
1400    this.direction = direction;
1401  }
1402  scope(value) {
1403    this.scope = value;
1404    return this;
1405  }
1406  direction(value) {
1407    this.direction = value;
1408    return this;
1409  }
1410}
1411
1412class HierarchicalSymbolEffect extends SymbolEffect {
1413  constructor(fillStyle) {
1414    super();
1415    this.type = "HierarchicalSymbolEffect";
1416    this.fillStyle = fillStyle;
1417  }
1418}
1419
1420class AppearSymbolEffect extends SymbolEffect {
1421  constructor(scope) {
1422    super();
1423    this.type = "AppearSymbolEffect";
1424    this.scope = scope;
1425  }
1426  scope(value) {
1427    this.scope = value;
1428    return this;
1429  }
1430}
1431class DisappearSymbolEffect extends SymbolEffect {
1432  constructor(scope) {
1433    super();
1434    this.type = "DisappearSymbolEffect";
1435    this.scope = scope;
1436  }
1437  scope(value) {
1438    this.scope = value;
1439    return this;
1440  }
1441}
1442
1443class BounceSymbolEffect extends SymbolEffect {
1444  constructor(scope, direction) {
1445    super();
1446    this.type = "BounceSymbolEffect";
1447    this.scope = scope;
1448    this.direction = direction;
1449  }
1450  scope(value) {
1451    this.scope = value;
1452    return this;
1453  }
1454  direction(value) {
1455    this.direction = value;
1456    return this;
1457  }
1458}
1459
1460class ReplaceSymbolEffect extends SymbolEffect {
1461  constructor(scope) {
1462    super();
1463    this.type = "ReplaceSymbolEffect";
1464    this.scope = scope;
1465  }
1466  scope(value) {
1467    this.scope = value;
1468    return this;
1469  }
1470}
1471
1472class PulseSymbolEffect extends SymbolEffect {
1473  constructor() {
1474    super();
1475    this.type = "PulseSymbolEffect";
1476  }
1477}
1478
1479var RichEditorSpanType;
1480(function (RichEditorSpanType) {
1481  RichEditorSpanType[RichEditorSpanType["TEXT"] = 0] = "TEXT";
1482  RichEditorSpanType[RichEditorSpanType["IMAGE"] = 1] = "IMAGE";
1483  RichEditorSpanType[RichEditorSpanType["MIXED"] = 2] = "MIXED";
1484  RichEditorSpanType[RichEditorSpanType["BUILDER"] = 3] = "BUILDER";
1485  RichEditorSpanType[RichEditorSpanType["DEFAULT"] = 4] = "DEFAULT";
1486})(RichEditorSpanType || (RichEditorSpanType = {}));
1487
1488var ListItemAlign;
1489(function (ListItemAlign) {
1490  ListItemAlign[ListItemAlign["Start"] = 0] = "Start";
1491  ListItemAlign[ListItemAlign["Center"] = 1] = "Center";
1492  ListItemAlign[ListItemAlign["End"] = 2] = "End";
1493})(ListItemAlign || (ListItemAlign = {}));
1494
1495var BlurStyle;
1496(function (BlurStyle) {
1497  BlurStyle[BlurStyle["NoMaterial"] = 0] = "NoMaterial";
1498  BlurStyle[BlurStyle["Thin"] = 1] = "Thin";
1499  BlurStyle[BlurStyle["Regular"] = 2] = "Regular";
1500  BlurStyle[BlurStyle["Thick"] = 3] = "Thick";
1501  BlurStyle[BlurStyle["BackgroundThin"] = 4] = "BackgroundThin";
1502  BlurStyle[BlurStyle["BackgroundRegular"] = 5] = "BackgroundRegular";
1503  BlurStyle[BlurStyle["BackgroundThick"] = 6] = "BackgroundThick";
1504  BlurStyle[BlurStyle["BackgroundUltraThick"] = 7] = "BackgroundUltraThick";
1505  BlurStyle[BlurStyle["BACKGROUND_THIN"] = 4] = "BACKGROUND_THIN";
1506  BlurStyle[BlurStyle["BACKGROUND_REGULAR"] = 5] = "BACKGROUND_REGULAR";
1507  BlurStyle[BlurStyle["BACKGROUND_THICK"] = 6] = "BACKGROUND_THICK";
1508  BlurStyle[BlurStyle["BACKGROUND_ULTRA_THICK"] = 7] = "BACKGROUND_ULTRA_THICK";
1509  BlurStyle[BlurStyle["COMPONENT_ULTRA_THIN"] = 8] = "COMPONENT_ULTRA_THIN";
1510  BlurStyle[BlurStyle["COMPONENT_THIN"] = 9] = "COMPONENT_THIN";
1511  BlurStyle[BlurStyle["COMPONENT_REGULAR"] = 10] = "COMPONENT_REGULAR";
1512  BlurStyle[BlurStyle["COMPONENT_THICK"] = 11] = "COMPONENT_THICK";
1513  BlurStyle[BlurStyle["COMPONENT_ULTRA_THICK"] = 12] = "COMPONENT_ULTRA_THICK";
1514  BlurStyle[BlurStyle["NONE"] = 0] = "NONE";
1515})(BlurStyle || (BlurStyle = {}));
1516
1517var BlurStyleActivePolicy;
1518(function (BlurStyleActivePolicy) {
1519  BlurStyleActivePolicy[BlurStyleActivePolicy["FOLLOWS_WINDOW_ACTIVE_STATE"] = 0] = "FOLLOWS_WINDOW_ACTIVE_STATE";
1520  BlurStyleActivePolicy[BlurStyleActivePolicy["ALWAYS_ACTIVE"] = 1] = "ALWAYS_ACTIVE";
1521  BlurStyleActivePolicy[BlurStyleActivePolicy["ALWAYS_INACTIVE"] = 2] = "ALWAYS_INACTIVE";
1522})(BlurStyleActivePolicy || (BlurStyleActivePolicy = {}));
1523
1524var BlurType;
1525(function (BlurType) {
1526  BlurType[BlurType["WITHIN_WINDOW"] = 0] = "WITHIN_WINDOW";
1527  BlurType[BlurType["BEHIND_WINDOW"] = 1] = "BEHIND_WINDOW";
1528})(BlurType || (BlurType = {}));
1529
1530let EffectType;
1531(function (EffectType) {
1532  EffectType[EffectType.DEFAULT = 0] = 'DEFAULT';
1533  EffectType[EffectType.WINDOW_EFFECT = 1] = 'WINDOW_EFFECT';
1534})(EffectType || (EffectType = {}));
1535
1536var ThemeColorMode;
1537(function (ThemeColorMode) {
1538  ThemeColorMode[ThemeColorMode["System"] = 0] = "System";
1539  ThemeColorMode[ThemeColorMode["Light"] = 1] = "Light";
1540  ThemeColorMode[ThemeColorMode["Dark"] = 2] = "Dark";
1541  ThemeColorMode[ThemeColorMode["SYSTEM"] = 0] = "SYSTEM";
1542  ThemeColorMode[ThemeColorMode["LIGHT"] = 1] = "LIGHT";
1543  ThemeColorMode[ThemeColorMode["DARK"] = 2] = "DARK";
1544})(ThemeColorMode || (ThemeColorMode = {}));
1545
1546var AdaptiveColor;
1547(function (AdaptiveColor) {
1548  AdaptiveColor[AdaptiveColor["Default"] = 0] = "Default";
1549  AdaptiveColor[AdaptiveColor["Average"] = 1] = "Average";
1550  AdaptiveColor[AdaptiveColor["DEFAULT"] = 0] = "DEFAULT";
1551  AdaptiveColor[AdaptiveColor["AVERAGE"] = 1] = "AVERAGE";
1552})(AdaptiveColor || (AdaptiveColor = {}));
1553
1554var ShadowStyle;
1555(function (ShadowStyle) {
1556  ShadowStyle[ShadowStyle["OuterDefaultXS"] = 0] = "OuterDefaultXS";
1557  ShadowStyle[ShadowStyle["OuterDefaultSM"] = 1] = "OuterDefaultSM";
1558  ShadowStyle[ShadowStyle["OuterDefaultMD"] = 2] = "OuterDefaultMD";
1559  ShadowStyle[ShadowStyle["OuterDefaultLG"] = 3] = "OuterDefaultLG";
1560  ShadowStyle[ShadowStyle["OuterFloatingSM"] = 4] = "OuterFloatingSM";
1561  ShadowStyle[ShadowStyle["OuterFloatingMD"] = 5] = "OuterFloatingMD";
1562  ShadowStyle[ShadowStyle["OUTER_DEFAULT_XS"] = 0] = "OUTER_DEFAULT_XS";
1563  ShadowStyle[ShadowStyle["OUTER_DEFAULT_SM"] = 1] = "OUTER_DEFAULT_SM";
1564  ShadowStyle[ShadowStyle["OUTER_DEFAULT_MD"] = 2] = "OUTER_DEFAULT_MD";
1565  ShadowStyle[ShadowStyle["OUTER_DEFAULT_LG"] = 3] = "OUTER_DEFAULT_LG";
1566  ShadowStyle[ShadowStyle["OUTER_FLOATING_SM"] = 4] = "OUTER_FLOATING_SM";
1567  ShadowStyle[ShadowStyle["OUTER_FLOATING_MD"] = 5] = "OUTER_FLOATING_MD";
1568})(ShadowStyle || (ShadowStyle = {}));
1569
1570var ShadowType;
1571(function (ShadowType) {
1572  ShadowType[ShadowType["COLOR"] = 0] = "COLOR";
1573  ShadowType[ShadowType["BLUR"] = 1] = "BLUR";
1574})(ShadowType || (ShadowType = {}));
1575
1576var BreakpointsReference;
1577(function (BreakpointsReference) {
1578  BreakpointsReference[BreakpointsReference["WindowSize"] = 0] = "WindowSize";
1579  BreakpointsReference[BreakpointsReference["ComponentSize"] = 1] = "ComponentSize";
1580})(BreakpointsReference || (BreakpointsReference = {}));
1581
1582var GridRowDirection;
1583(function (GridRowDirection) {
1584  GridRowDirection[GridRowDirection["Row"] = 0] = "Row";
1585  GridRowDirection[GridRowDirection["RowReverse"] = 1] = "RowReverse";
1586})(GridRowDirection || (GridRowDirection = {}));
1587
1588var HitTestMode;
1589(function (HitTestMode) {
1590  HitTestMode[HitTestMode["Default"] = 0] = "Default";
1591  HitTestMode[HitTestMode["Block"] = 1] = "Block";
1592  HitTestMode[HitTestMode["Transparent"] = 2] = "Transparent";
1593  HitTestMode[HitTestMode["None"] = 3] = "None";
1594})(HitTestMode || (HitTestMode = {}));
1595
1596var GridDirection;
1597(function (GridDirection) {
1598  GridDirection[GridDirection["Row"] = 0] = "Row";
1599  GridDirection[GridDirection["Column"] = 1] = "Column";
1600  GridDirection[GridDirection["RowReverse"] = 2] = "RowReverse";
1601  GridDirection[GridDirection["ColumnReverse"] = 3] = "ColumnReverse";
1602})(GridDirection || (GridDirection = {}));
1603
1604var SelectStatus;
1605(function (SelectStatus) {
1606  SelectStatus[SelectStatus["All"] = 0] = "All";
1607  SelectStatus[SelectStatus["Part"] = 1] = "Part";
1608  SelectStatus[SelectStatus["None"] = 2] = "None";
1609})(SelectStatus || (SelectStatus = {}));
1610
1611var ContextMenuSourceType;
1612(function (ContextMenuSourceType) {
1613  ContextMenuSourceType[ContextMenuSourceType["None"] = 0] = "None";
1614  ContextMenuSourceType[ContextMenuSourceType["Mouse"] = 1] = "Mouse";
1615  ContextMenuSourceType[ContextMenuSourceType["LongPress"] = 2] = "LongPress";
1616})(ContextMenuSourceType || (ContextMenuSourceType = {}));
1617
1618var ContextMenuMediaType;
1619(function (ContextMenuMediaType) {
1620  ContextMenuMediaType[ContextMenuMediaType["None"] = 0] = "None";
1621  ContextMenuMediaType[ContextMenuMediaType["Image"] = 1] = "Image";
1622})(ContextMenuMediaType || (ContextMenuMediaType = {}));
1623
1624var ContextMenuInputFieldType;
1625(function (ContextMenuInputFieldType) {
1626  ContextMenuInputFieldType[ContextMenuInputFieldType["None"] = 0] = "None";
1627  ContextMenuInputFieldType[ContextMenuInputFieldType["PlainText"] = 1] = "PlainText";
1628  ContextMenuInputFieldType[ContextMenuInputFieldType["Password"] = 2] = "Password";
1629  ContextMenuInputFieldType[ContextMenuInputFieldType["Number"] = 3] = "Number";
1630  ContextMenuInputFieldType[ContextMenuInputFieldType["Telephone"] = 4] = "Telephone";
1631  ContextMenuInputFieldType[ContextMenuInputFieldType["Other"] = 5] = "Other";
1632})(ContextMenuInputFieldType || (ContextMenuInputFieldType = {}));
1633
1634var ContextMenuEditStateFlags;
1635(function (ContextMenuEditStateFlags) {
1636  ContextMenuEditStateFlags[ContextMenuEditStateFlags["NONE"] = 0] = "None";
1637  ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_CUT"] = 1] = "CAN_CUT";
1638  ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_COPY"] = 2] = "CAN_COPY";
1639  ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_PASTE"] = 4] = "CAN_PASTE";
1640  ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_SELECT_ALL"] = 8] = "CAN_SELECT_ALL";
1641})(ContextMenuEditStateFlags || (ContextMenuEditStateFlags = {}));
1642
1643var TransitionEdge;
1644(function (TransitionEdge) {
1645  TransitionEdge['TOP'] = 0;
1646  TransitionEdge['BOTTOM'] = 1;
1647  TransitionEdge['START'] = 2;
1648  TransitionEdge['END'] = 3;
1649})(TransitionEdge || (TransitionEdge = {}));
1650
1651var TouchTestStrategy;
1652(function (TouchTestStrategy) {
1653  TouchTestStrategy['DEFAULT'] = 0;
1654  TouchTestStrategy['FORWARD_COMPETITION'] = 1;
1655  TouchTestStrategy['FORWARD'] = 2;
1656})(TouchTestStrategy || (TouchTestStrategy = {}));
1657
1658var ModalTransition;
1659(function (ModalTransition) {
1660  ModalTransition[ModalTransition["Default"] = 0] = "Default";
1661  ModalTransition[ModalTransition["None"] = 1] = "None";
1662  ModalTransition[ModalTransition["Alpha"] = 2] = "Alpha";
1663  ModalTransition[ModalTransition["DEFAULT"] = 0] = "DEFAULT";
1664  ModalTransition[ModalTransition["NONE"] = 1] = "NONE";
1665  ModalTransition[ModalTransition["ALPHA"] = 2] = "ALPHA";
1666})(ModalTransition || (ModalTransition = {}));
1667
1668var ModifierKey;
1669(function (ModifierKey) {
1670  ModifierKey[ModifierKey["CTRL"] = 0] = "CTRL";
1671  ModifierKey[ModifierKey["SHIFT"] = 1] = "SHIFT";
1672  ModifierKey[ModifierKey["ALT"] = 2] = "ALT";
1673})(ModifierKey || (ModifierKey = {}));
1674
1675var SheetSize;
1676(function (SheetSize) {
1677  SheetSize['MEDIUM'] = "MEDIUM";
1678  SheetSize['LARGE'] = "LARGE";
1679  SheetSize['FIT_CONTENT'] = "FIT_CONTENT";
1680})(SheetSize || (SheetSize = {}));
1681
1682var SheetType;
1683(function (SheetType) {
1684  SheetType[SheetType["BOTTOM"] = 0] = "BOTTOM";
1685  SheetType[SheetType["CENTER"] = 1] = "CENTER";
1686  SheetType[SheetType["POPUP"] = 2] = "POPUP";
1687})(SheetType || (SheetType = {}));
1688
1689var SheetMode;
1690(function (SheetMode) {
1691  SheetMode[SheetMode["OVERLAY"] = 0] = "OVERLAY";
1692  SheetMode[SheetMode["EMBEDDED"] = 1] = "EMBEDDED";
1693})(SheetMode || (SheetMode = {}));
1694
1695var ScrollSizeMode;
1696(function (ScrollSizeMode ) {
1697  ScrollSizeMode[ScrollSizeMode["FOLLOW_DETENT"] = 0] = "FOLLOW_DETENT";
1698  ScrollSizeMode[ScrollSizeMode["CONTINUOUS"] = 1] = "CONTINUOUS";
1699})(ScrollSizeMode || (ScrollSizeMode = {}));
1700
1701var SheetKeyboardAvoidMode;
1702(function (SheetKeyboardAvoidMode) {
1703  SheetKeyboardAvoidMode[SheetKeyboardAvoidMode['NONE'] = 0] = 'NONE';
1704  SheetKeyboardAvoidMode[SheetKeyboardAvoidMode['TRANSLATE_AND_RESIZE'] = 1] = 'TRANSLATE_AND_RESIZE';
1705  SheetKeyboardAvoidMode[SheetKeyboardAvoidMode['RESIZE_ONLY'] = 2] = 'RESIZE_ONLY';
1706  SheetKeyboardAvoidMode[SheetKeyboardAvoidMode['TRANSLATE_AND_SCROLL'] = 3] = 'TRANSLATE_AND_SCROLL';
1707})(SheetKeyboardAvoidMode || (SheetKeyboardAvoidMode = {}));
1708
1709var FunctionKey;
1710(function (FunctionKey) {
1711  FunctionKey[FunctionKey["ESC"] = 0] = "ESC";
1712  FunctionKey[FunctionKey["F1"] = 1] = "F1";
1713  FunctionKey[FunctionKey["F2"] = 2] = "F2";
1714  FunctionKey[FunctionKey["F3"] = 3] = "F3";
1715  FunctionKey[FunctionKey["F4"] = 4] = "F4";
1716  FunctionKey[FunctionKey["F5"] = 5] = "F5";
1717  FunctionKey[FunctionKey["F6"] = 6] = "F6";
1718  FunctionKey[FunctionKey["F7"] = 7] = "F7";
1719  FunctionKey[FunctionKey["F8"] = 8] = "F8";
1720  FunctionKey[FunctionKey["F9"] = 9] = "F9";
1721  FunctionKey[FunctionKey["F10"] = 10] = "F10";
1722  FunctionKey[FunctionKey["F11"] = 11] = "F11";
1723  FunctionKey[FunctionKey["F12"] = 12] = "F12";
1724  FunctionKey[FunctionKey["TAB"] = 13] = "TAB";
1725  FunctionKey[FunctionKey["DPAD_UP"] = 14] = "DPAD_UP";
1726  FunctionKey[FunctionKey["DPAD_DOWN"] = 15] = "DPAD_DOWN";
1727  FunctionKey[FunctionKey["DPAD_LEFT"] = 16] = "DPAD_LEFT";
1728  FunctionKey[FunctionKey["DPAD_RIGHT"] = 17] = "DPAD_RIGHT";
1729})(FunctionKey || (FunctionKey = {}));
1730
1731var ContentType;
1732(function (ContentType) {
1733  ContentType[ContentType['USER_NAME'] = 0] = 'USER_NAME';
1734  ContentType[ContentType['PASSWORD'] = 1] = 'PASSWORD';
1735  ContentType[ContentType['NEW_PASSWORD'] = 2] = 'NEW_PASSWORD';
1736  ContentType[ContentType['FULL_STREET_ADDRESS'] = 3] = 'FULL_STREET_ADDRESS';
1737  ContentType[ContentType['HOUSE_NUMBER'] = 4] = 'HOUSE_NUMBER';
1738  ContentType[ContentType['DISTRICT_ADDRESS'] = 5] = 'DISTRICT_ADDRESS';
1739  ContentType[ContentType['CITY_ADDRESS'] = 6] = 'CITY_ADDRESS';
1740  ContentType[ContentType['PROVINCE_ADDRESS'] = 7] = 'PROVINCE_ADDRESS';
1741  ContentType[ContentType['COUNTRY_ADDRESS'] = 8] = 'COUNTRY_ADDRESS';
1742  ContentType[ContentType['PERSON_FULL_NAME'] = 9] = 'PERSON_FULL_NAME';
1743  ContentType[ContentType['PERSON_LAST_NAME'] = 10] = 'PERSON_LAST_NAME';
1744  ContentType[ContentType['PERSON_FIRST_NAME'] = 11] = 'PERSON_FIRST_NAME';
1745  ContentType[ContentType['PHONE_NUMBER'] = 12] = 'PHONE_NUMBER';
1746  ContentType[ContentType['PHONE_COUNTRY_CODE'] = 13] = 'PHONE_COUNTRY_CODE';
1747  ContentType[ContentType['FULL_PHONE_NUMBER'] = 14] = 'FULL_PHONE_NUMBER';
1748  ContentType[ContentType['EMAIL_ADDRESS'] = 15] = 'EMAIL_ADDRESS';
1749  ContentType[ContentType['BANK_CARD_NUMBER'] = 16] = 'BANK_CARD_NUMBER';
1750  ContentType[ContentType['ID_CARD_NUMBER'] = 17] = 'ID_CARD_NUMBER';
1751  ContentType[ContentType['PRECISE_TIME'] = 18] = 'PRECISE_TIME';
1752  ContentType[ContentType['HOUR_AND_MINUTE'] = 19] = 'HOUR_AND_MINUTE';
1753  ContentType[ContentType['DATE'] = 20] = 'DATE';
1754  ContentType[ContentType['MONTH'] = 21] = 'MONTH';
1755  ContentType[ContentType['YEAR'] = 22] = 'YEAR';
1756  ContentType[ContentType['NICKNAME'] = 23] = 'NICKNAME';
1757  ContentType[ContentType['DETAIL_INFO_WITHOUT_STREET'] = 24] = 'DETAIL_INFO_WITHOUT_STREET';
1758  ContentType[ContentType['FORMAT_ADDRESS'] = 25] = 'FORMAT_ADDRESS';
1759})(ContentType || (ContentType = {}));
1760
1761var GestureJudgeResult;
1762(function (GestureJudgeResult) {
1763  GestureJudgeResult[GestureJudgeResult["CONTINUE"] = 0] = "CONTINUE";
1764  GestureJudgeResult[GestureJudgeResult["REJECT"] = 1] = "REJECT";
1765})(GestureJudgeResult || (GestureJudgeResult = {}));
1766
1767var GestureControl;
1768(function (GestureControl) {
1769  let GestureType;
1770  (function (GestureType) {
1771    GestureType[GestureType["TAP_GESTURE"] = 0] = "TAP_GESTURE";
1772    GestureType[GestureType["LONG_PRESS_GESTURE"] = 1] = "LONG_PRESS_GESTURE";
1773    GestureType[GestureType["PAN_GESTURE"] = 2] = "PAN_GESTURE";
1774    GestureType[GestureType["PINCH_GESTURE"] = 3] = "PINCH_GESTURE";
1775    GestureType[GestureType["SWIPE_GESTURE"] = 4] = "SWIPE_GESTURE";
1776    GestureType[GestureType["ROTATION_GESTURE"] = 5] = "ROTATION_GESTURE";
1777    GestureType[GestureType["DRAG"] = 6] = "DRAG";
1778    GestureType[GestureType["CLICK"] = 7] = "CLICK";
1779  })(GestureType = GestureControl.GestureType || (GestureControl.GestureType = {}));
1780})(GestureControl || (GestureControl = {}));
1781
1782var TransitionHierarchyStrategy;
1783(function (TransitionHierarchyStrategy) {
1784  TransitionHierarchyStrategy[TransitionHierarchyStrategy["NONE"] = 0] = "NONE";
1785  TransitionHierarchyStrategy[TransitionHierarchyStrategy["ADAPTIVE"] = 1] = "ADAPTIVE";
1786})(TransitionHierarchyStrategy || (TransitionHierarchyStrategy = {}));
1787
1788var KeyboardAvoidMode;
1789(function (KeyboardAvoidMode) {
1790    KeyboardAvoidMode[KeyboardAvoidMode["DEFAULT"] = 0] = "DEFAULT";
1791    KeyboardAvoidMode[KeyboardAvoidMode["NONE"] = 1] = "NONE";
1792})(KeyboardAvoidMode || (KeyboardAvoidMode = {}));
1793
1794class SubTabBarStyle {
1795  constructor(content) {
1796    this.type = 'SubTabBarStyle';
1797    this.content = content;
1798  }
1799  static of(content) {
1800    return new SubTabBarStyle(content);
1801  }
1802  indicator(arg) {
1803    this.indicator = arg;
1804    return this;
1805  }
1806  selectedMode(arg) {
1807    this.selectedMode = arg;
1808    return this;
1809  }
1810  board(arg) {
1811    this.board = arg;
1812    return this;
1813  }
1814  labelStyle(arg) {
1815    this.labelStyle = arg;
1816    return this;
1817  }
1818  padding(arg) {
1819    this.padding = arg;
1820    return this;
1821  }
1822  id(arg) {
1823    this.id = arg;
1824    return this;
1825  }
1826}
1827
1828class DrawModifier {
1829  invalidate() {}
1830}
1831
1832class ProgressMask {
1833  constructor(value, total, color) {
1834    this.type = 'ProgressMask';
1835    this.value = value;
1836    this.total = total;
1837    this.color = color;
1838  }
1839
1840  updateProgress(arg) {
1841    this.value = arg;
1842    return this;
1843  }
1844
1845  updateColor(arg) {
1846    this.color = arg;
1847    return this;
1848  }
1849
1850  enableBreathingAnimation(arg) {
1851    this.breathe = arg;
1852    return this;
1853  }
1854}
1855
1856class BottomTabBarStyle {
1857  constructor(icon, text) {
1858    this.type = 'BottomTabBarStyle';
1859    this.icon = icon;
1860    this.text = text;
1861  }
1862  static of(icon, text) {
1863    return new BottomTabBarStyle(icon, text);
1864  }
1865  padding(arg) {
1866    this.padding = arg;
1867    return this;
1868  }
1869  layoutMode(arg) {
1870    this.layoutMode = arg;
1871    return this;
1872  }
1873  verticalAlign(arg) {
1874    this.verticalAlign = arg;
1875    return this;
1876  }
1877  symmetricExtensible(arg) {
1878    this.symmetricExtensible = arg;
1879    return this;
1880  }
1881  labelStyle(arg) {
1882    this.labelStyle = arg;
1883    return this;
1884  }
1885  id(arg) {
1886    this.id = arg;
1887    return this;
1888  }
1889  iconStyle(arg) {
1890    this.iconStyle = arg;
1891    return this;
1892  }
1893}
1894
1895class Indicator {
1896  top(value) {
1897    this.topValue = value;
1898    return this;
1899  }
1900  left(value) {
1901    this.leftValue = value;
1902    return this;
1903  }
1904  right(value) {
1905    this.rightValue = value;
1906    return this;
1907  }
1908  bottom(value) {
1909    this.bottomValue = value;
1910    return this;
1911  }
1912  start(value) {
1913    this.startValue = value;
1914    return this;
1915  }
1916  end(value) {
1917    this.endValue = value;
1918    return this;
1919  }
1920  static dot() {
1921    return new DotIndicator();
1922  }
1923  static digit() {
1924    return new DigitIndicator();
1925  }
1926}
1927
1928class DotIndicator extends Indicator {
1929  constructor() {
1930    super();
1931    this.type = 'DotIndicator';
1932  }
1933  itemWidth(value) {
1934    this.itemWidthValue = value;
1935    return this;
1936  }
1937  itemHeight(value) {
1938    this.itemHeightValue = value;
1939    return this;
1940  }
1941  selectedItemWidth(value) {
1942    this.selectedItemWidthValue = value;
1943    return this;
1944  }
1945  selectedItemHeight(value) {
1946    this.selectedItemHeightValue = value;
1947    return this;
1948  }
1949  mask(value) {
1950    this.maskValue = value;
1951    return this;
1952  }
1953  color(value) {
1954    this.colorValue = value;
1955    return this;
1956  }
1957  selectedColor(value) {
1958    this.selectedColorValue = value;
1959    return this;
1960  }
1961  maxDisplayCount(value) {
1962    this.maxDisplayCountValue = value;
1963    return this;
1964  }
1965}
1966
1967class DigitIndicator extends Indicator {
1968  constructor() {
1969    super();
1970    this.type = 'DigitIndicator';
1971  }
1972  fontColor(value) {
1973    this.fontColorValue = value;
1974    return this;
1975  }
1976  selectedFontColor(value) {
1977    this.selectedFontColorValue = value;
1978    return this;
1979  }
1980  digitFont(value) {
1981    this.digitFontValue = value;
1982    return this;
1983  }
1984  selectedDigitFont(value) {
1985    this.selectedDigitFontValue = value;
1986    return this;
1987  }
1988}
1989
1990var TextHeightAdaptivePolicy;
1991(function (TextHeightAdaptivePolicy) {
1992  TextHeightAdaptivePolicy[TextHeightAdaptivePolicy["MAX_LINES_FIRST"] = 0] = "MAX_LINES_FIRST";
1993  TextHeightAdaptivePolicy[TextHeightAdaptivePolicy["MIN_FONT_SIZE_FIRST"] = 1] = "MIN_FONT_SIZE_FIRST";
1994  TextHeightAdaptivePolicy[TextHeightAdaptivePolicy["LAYOUT_CONSTRAINT_FIRST"] = 2] = "LAYOUT_CONSTRAINT_FIRST";
1995})(TextHeightAdaptivePolicy || (TextHeightAdaptivePolicy = {}));
1996
1997var ArrowPosition;
1998(function (ArrowPosition) {
1999  ArrowPosition[ArrowPosition["END"] = 0] = "END";
2000  ArrowPosition[ArrowPosition["START"] = 1] = "START";
2001})(ArrowPosition || (ArrowPosition = {}));
2002
2003class TransitionEffect {
2004  type_ = '';
2005  effect_ = undefined;
2006  animation_ = undefined;
2007  // use successor_ to mark whether this is an instance of TransitionEffect
2008  successor_ = null;
2009
2010  constructor(type, effect) {
2011    this.type_ = type;
2012    this.effect_ = effect;
2013  }
2014
2015  static get IDENTITY() {
2016    return new TransitionEffect('identity', undefined);
2017  }
2018  static get OPACITY() {
2019    return new TransitionEffect('opacity', 0);
2020  }
2021  static get SLIDE() {
2022    return new TransitionEffect('asymmetric', {
2023      appear: new TransitionEffect('move', TransitionEdge.START),
2024      disappear: new TransitionEffect('move', TransitionEdge.END)
2025    });
2026  }
2027  static get SLIDE_SWITCH() {
2028    return new TransitionEffect('slideSwitch', undefined);
2029  }
2030  static translate(option) {
2031    return new TransitionEffect('translate', option);
2032  }
2033  static rotate(option) {
2034    return new TransitionEffect('rotate', option);
2035  }
2036  static scale(option) {
2037    return new TransitionEffect('scale', option);
2038  }
2039  static opacity(value) {
2040    return new TransitionEffect('opacity', value);
2041  }
2042  static move(edge) {
2043    return new TransitionEffect('move', edge);
2044  }
2045  static asymmetric(appearEffect, disappearEffect) {
2046    return new TransitionEffect('asymmetric', {
2047      appear: appearEffect,
2048      disappear: disappearEffect
2049    });
2050  }
2051
2052  animation(option) {
2053    this.animation_ = option;
2054    return this;
2055  }
2056  combine(nextEffect) {
2057    if (nextEffect == null || nextEffect == undefined) {
2058      return this;
2059    }
2060    var lastEffect = this;
2061    while (lastEffect.successor_ != null) {
2062      lastEffect = lastEffect.successor_;
2063    }
2064    lastEffect.successor_ = nextEffect;
2065    return this;
2066  }
2067}
2068
2069class ColorContent {
2070  colorContent_ = '';
2071
2072  constructor(colorContent) {
2073    this.colorContent_ = colorContent;
2074  }
2075
2076  static get ORIGIN() {
2077    return new ColorContent('ORIGIN');
2078  }
2079}
2080
2081class TextMenuItemId {
2082  id_ = '';
2083
2084  constructor(id) {
2085    this.id_ = id;
2086  }
2087
2088  static of(id) {
2089    return new TextMenuItemId(id);
2090  }
2091
2092  equals(id) {
2093    return id.id_ === this.id_;
2094  }
2095
2096  static get CUT() {
2097    return new TextMenuItemId('OH_DEFAULT_CUT');
2098  }
2099
2100  static get COPY() {
2101    return new TextMenuItemId('OH_DEFAULT_COPY');
2102  }
2103
2104  static get PASTE() {
2105    return new TextMenuItemId('OH_DEFAULT_PASTE');
2106  }
2107
2108  static get SELECT_ALL() {
2109    return new TextMenuItemId('OH_DEFAULT_SELECT_ALL');
2110  }
2111
2112  static get TRANSLATE() {
2113    return new TextMenuItemId('OH_DEFAULT_TRANSLATE');
2114  }
2115
2116  static get COLLABORATION_SERVICE() {
2117    return new TextMenuItemId('OH_DEFAULT_COLLABORATION_SERVICE');
2118  }
2119
2120  static get CAMERA_INPUT() {
2121    return new TextMenuItemId('OH_DEFAULT_CAMERA_INPUT');
2122  }
2123
2124  static get AI_WRITER() {
2125    return new TextMenuItemId('OH_DEFAULT_AI_WRITE');
2126  }
2127}
2128
2129globalThis.TextMenuItemId = TextMenuItemId;
2130
2131var SliderBlockType;
2132(function (SliderBlockType) {
2133  SliderBlockType[SliderBlockType["DEFAULT"] = 0] = "DEFAULT";
2134  SliderBlockType[SliderBlockType["IMAGE"] = 1] = "IMAGE";
2135  SliderBlockType[SliderBlockType["SHAPE"] = 2] = "SHAPE";
2136})(SliderBlockType || (SliderBlockType = {}));
2137
2138var SliderInteraction;
2139(function (SliderInteraction) {
2140  SliderInteraction[SliderInteraction["SLIDE_AND_CLICK"] = 0] = "SLIDE_AND_CLICK";
2141  SliderInteraction[SliderInteraction["SLIDE_ONLY"] = 1] = "SLIDE_ONLY";
2142  SliderInteraction[SliderInteraction["SLIDE_AND_CLICK_UP"] = 2] = "SLIDE_AND_CLICK_UP";
2143})(SliderInteraction || (SliderInteraction = {}));
2144
2145var TitleStyle;
2146(function (TitleStyle) {
2147  TitleStyle[TitleStyle["ListMode"] = 0] = "ListMode";
2148  TitleStyle[TitleStyle["ContentMode"] = 1] = "ContentMode";
2149})(TitleStyle || (TitleStyle = {}));
2150
2151var OperationStyle;
2152(function (OperationStyle) {
2153  OperationStyle[OperationStyle["TextArrow"] = 0] = "TextArrow";
2154  OperationStyle[OperationStyle["Button"] = 1] = "Button";
2155  OperationStyle[OperationStyle["IconGroup"] = 2] = "IconGroup";
2156})(OperationStyle || (OperationStyle = {}));
2157
2158var TabItemType;
2159(function (TabItemType) {
2160  TabItemType[TabItemType["Text"] = 0] = "Text";
2161  TabItemType[TabItemType["Icon"] = 1] = "Icon";
2162})(TabItemType || (TabItemType = {}));
2163
2164var EditableLeftIconType;
2165(function (EditableLeftIconType) {
2166  EditableLeftIconType[EditableLeftIconType["Back"] = 0] = "Back";
2167  EditableLeftIconType[EditableLeftIconType["Cancel"] = 1] = "Cancel";
2168})(EditableLeftIconType || (EditableLeftIconType = {}));
2169
2170var ContentIconPosition;
2171(function (ContentIconPosition) {
2172  ContentIconPosition[ContentIconPosition["Top"] = 0] = "Top";
2173  ContentIconPosition[ContentIconPosition["Center"] = 1] = "Center";
2174})(ContentIconPosition || (ContentIconPosition = {}));
2175
2176var ContentTextStyle;
2177(function (ContentTextStyle) {
2178  ContentTextStyle[ContentTextStyle["SingleLine"] = 0] = "SingleLine";
2179  ContentTextStyle[ContentTextStyle["DoubleLine"] = 1] = "DoubleLine";
2180  ContentTextStyle[ContentTextStyle["ThreeLines"] = 2] = "ThreeLines";
2181})(ContentTextStyle || (ContentTextStyle = {}));
2182
2183var MarqueeUpdateStrategy;
2184(function (MarqueeUpdateStrategy) {
2185  MarqueeUpdateStrategy["DEFAULT"] = "default";
2186  MarqueeUpdateStrategy["PRESERVE_POSITION"] = "preserve_position";
2187})(MarqueeUpdateStrategy || (MarqueeUpdateStrategy = {}));
2188
2189var LaunchMode;
2190(function (LaunchMode) {
2191  LaunchMode[LaunchMode.STANDARD = 0] = 'STANDARD';
2192  LaunchMode[LaunchMode.MOVE_TO_TOP_SINGLETON = 1] = 'MOVE_TO_TOP_SINGLETON';
2193  LaunchMode[LaunchMode.POP_TO_SINGLETON = 2] = 'POP_TO_SINGLETON';
2194  LaunchMode[LaunchMode.NEW_INSTANCE = 3] = 'NEW_INSTANCE';
2195})(LaunchMode || (LaunchMode = {}));
2196
2197class NavPathInfo {
2198  constructor(name, param, onPop, isEntry) {
2199    this.name = name;
2200    this.param = param;
2201    this.onPop = onPop;
2202    this.index = -1;
2203    this.needUpdate = false;
2204    this.needBuildNewInstance = false;
2205    this.navDestinationId = undefined;
2206    this.isEntry = isEntry;
2207    this.fromRecovery = false;
2208    this.mode = undefined;
2209  }
2210}
2211
2212class NavPathStack {
2213  constructor() {
2214    this.pathArray = [];
2215    // replace value 0: don't do anything;
2216    // 1: replace value and do replace animation;
2217    // 2: don't replace value but do replace animation
2218    this.isReplace = 0;
2219    this.type = this.constructor.name;
2220    // control all navigation transition animations.
2221    this.disableAllAnimation = false;
2222    // control a single navigation transition animation.
2223    this.animated = true;
2224    // native nav path stack, implement in cpp
2225    this.nativeStack = undefined;
2226    // parent stack
2227    this.parentStack = undefined;
2228    this.popArray = [];
2229    this.interception = undefined;
2230  }
2231  getJsIndexFromNativeIndex(index) {
2232    for (let i = 0; i < this.pathArray.length; i++) {
2233      if (this.pathArray[i].index === index) {
2234        return i;
2235      }
2236    }
2237    return -1;
2238  }
2239  initNavPathIndex(pathName) {
2240    this.popArray = [];
2241    for (let i = 0; i < this.pathArray.length && i < pathName.length; i++) {
2242      if (pathName[i] === this.pathArray[i].name) {
2243        this.pathArray[i].index = i;
2244      }
2245    }
2246  }
2247  getAllPathIndex() {
2248    let array = this.pathArray.flatMap(element => element.index);
2249    return array;
2250  }
2251  findInPopArray(name) {
2252    for (let i = this.popArray.length - 1; i >= 0; i--) {
2253      if (name === this.popArray[i].name) {
2254        let info = this.popArray.splice(i, 1);
2255        return [info[0].index, info[0].navDestinationId];
2256      }
2257    }
2258    return [-1, undefined]; // add new navdestination
2259  }
2260  setNativeStack(stack) {
2261    this.nativeStack = stack;
2262  }
2263  getNativeStack() {
2264    return this.nativeStack;
2265  }
2266  setParent(parent) {
2267    this.parentStack = parent;
2268  }
2269  getParent() {
2270    return this.parentStack;
2271  }
2272  pushName(name, param) {
2273    let info = new NavPathInfo(name, param);
2274    [info.index, info.navDestinationId] = this.findInPopArray(name);
2275    this.pathArray.push(info);
2276    this.isReplace = 0;
2277    this.nativeStack?.onStateChanged();
2278  }
2279  push(info, animated) {
2280    this.pushPath(info, animated);
2281  }
2282  pushPathByName(name, param, onPop, animated) {
2283    let info = undefined;
2284    if (onPop === undefined || typeof onPop === 'boolean') {
2285      info = new NavPathInfo(name, param);
2286    } else {
2287      info = new NavPathInfo(name, param, onPop);
2288    }
2289    [info.index, info.navDestinationId] = this.findInPopArray(name);
2290    info.pushDestination = false;
2291    this.pathArray.push(info);
2292    this.isReplace = 0;
2293    if (typeof onPop === 'boolean') {
2294      this.animated = onPop;
2295    } else if (animated === undefined) {
2296      this.animated = true;
2297    } else {
2298      this.animated = animated;
2299    }
2300    this.nativeStack?.onStateChanged();
2301  }
2302  pushDestinationByName(name, param, onPop, animated) {
2303    let info = undefined;
2304    if (onPop === undefined || typeof onPop === 'boolean') {
2305      info = new NavPathInfo(name, param);
2306    } else {
2307      info = new NavPathInfo(name, param, onPop);
2308    }
2309    this.isReplace = 0;
2310    if (typeof onPop === 'boolean') {
2311      this.animated = onPop;
2312    } else if (animated === undefined) {
2313      this.animated = true;
2314    } else {
2315      this.animated = animated;
2316    }
2317
2318    let promise = this.nativeStack?.onPushDestination(info);
2319    if (!promise) {
2320      return new Promise((resolve, reject) => {
2321        reject({ message: 'Internal error.', code: 100001 });
2322      })
2323    }
2324    [info.index, info.navDestinationId] = this.findInPopArray(name);
2325    info.pushDestination = true;
2326    this.pathArray.push(info);
2327    this.nativeStack?.onStateChanged();
2328    return promise;
2329  }
2330  parseNavigationOptions(param) {
2331    let launchMode = LaunchMode.STANDARD;
2332    let animated = true;
2333    if (typeof param === 'boolean') {
2334      animated = param;
2335    } else if (param !== undefined) {
2336      if (typeof param.animated === 'boolean') {
2337        animated = param.animated;
2338      }
2339      if (param.launchMode !== undefined) {
2340        launchMode = param.launchMode;
2341      }
2342    }
2343    return [launchMode, animated];
2344  }
2345  pushWithLaunchModeAndAnimated(info, launchMode, animated, createPromise) {
2346    if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON || launchMode === LaunchMode.POP_TO_SINGLETON) {
2347      let index = this.pathArray.findIndex(element => element.name === info.name);
2348      if (index !== -1) {
2349        this.pathArray[index].param = info.param;
2350        this.pathArray[index].onPop = info.onPop;
2351        this.pathArray[index].needUpdate = true;
2352        this.pathArray[index].isEntry = info.isEntry;
2353        if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON) {
2354          this.moveIndexToTop(index, animated);
2355        } else {
2356          this.innerPopToIndex(index, undefined, animated, false);
2357        }
2358        let promise = null;
2359        if (createPromise) {
2360          promise = new Promise((resolve, reject) => {
2361            resolve();
2362          });
2363        }
2364        return [true, promise];
2365      }
2366    }
2367    return [false, null];
2368  }
2369  pushPath(info, optionParam) {
2370    let [launchMode, animated] = this.parseNavigationOptions(optionParam);
2371    let [ret, _] = this.pushWithLaunchModeAndAnimated(info, launchMode, animated, false);
2372    if (ret) {
2373      return;
2374    }
2375    [info.index, info.navDestinationId] = this.findInPopArray(info.name);
2376    if (launchMode === LaunchMode.NEW_INSTANCE) {
2377      info.needBuildNewInstance = true;
2378    }
2379    info.pushDestination = false;
2380    this.pathArray.push(info);
2381    this.isReplace = 0;
2382    this.animated = animated;
2383    this.nativeStack?.onStateChanged();
2384  }
2385  pushDestination(info, optionParam) {
2386    let [launchMode, animated] = this.parseNavigationOptions(optionParam);
2387    let [ret, promiseRet] = this.pushWithLaunchModeAndAnimated(info, launchMode, animated, true);
2388    if (ret) {
2389      return promiseRet;
2390    }
2391    this.isReplace = 0;
2392    this.animated = animated;
2393    let promise = this.nativeStack?.onPushDestination(info);
2394    if (!promise) {
2395      return new Promise((resolve, reject) => {
2396        reject({ message: 'Internal error.', code: 100001 });
2397      })
2398    }
2399    [info.index, info.navDestinationId] = this.findInPopArray(info.name);
2400    info.pushDestination = true;
2401    if (launchMode === LaunchMode.NEW_INSTANCE) {
2402      info.needBuildNewInstance = true;
2403    }
2404    this.pathArray.push(info);
2405    this.nativeStack?.onStateChanged();
2406    return promise;
2407  }
2408  replacePath(info, optionParam) {
2409    let [launchMode, animated] = this.parseNavigationOptions(optionParam);
2410    let index = -1;
2411    if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON || launchMode === LaunchMode.POP_TO_SINGLETON) {
2412      index = this.pathArray.findIndex(element => element.name === info.name);
2413      if (index !== -1) {
2414        this.pathArray[index].param = info.param;
2415        this.pathArray[index].onPop = info.onPop;
2416        this.pathArray[index].index = -1;
2417        if (index !== this.pathArray.length - 1) {
2418          let targetInfo = this.pathArray.splice(index, 1);
2419          if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON) {
2420            this.pathArray.pop();
2421          } else {
2422            this.pathArray.splice(index);
2423          }
2424          this.pathArray.push(targetInfo[0]);
2425        }
2426      }
2427    }
2428    if (index === -1) {
2429      if (this.pathArray.length !== 0) {
2430        this.pathArray.pop();
2431      }
2432      this.pathArray.push(info);
2433      this.pathArray[this.pathArray.length - 1].index = -1;
2434    }
2435    this.isReplace = 1;
2436    this.animated = animated;
2437    this.nativeStack?.onStateChanged();
2438  }
2439  replacePathByName(name, param, animated) {
2440    if (this.pathArray.length !== 0) {
2441      this.pathArray.pop();
2442    }
2443    this.isReplace = 1;
2444    this.pathArray.push(new NavPathInfo(name, param));
2445    this.pathArray[this.pathArray.length - 1].index = -1;
2446    if (animated === undefined) {
2447      this.animated = true;
2448    } else {
2449      this.animated = animated;
2450    }
2451    this.nativeStack?.onStateChanged();
2452  }
2453  setIsReplace(value) {
2454    this.isReplace = value;
2455  }
2456  setAnimated(value) {
2457    this.animated = value;
2458  }
2459  pop(result, animated) {
2460    if (this.pathArray.length === 0) {
2461      return undefined;
2462    }
2463    let currentPathInfo = this.pathArray[this.pathArray.length - 1];
2464    let pathInfo = this.pathArray.pop();
2465    this.popArray.push(pathInfo);
2466    this.isReplace = 0;
2467    if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) {
2468      let popInfo = {
2469        info: currentPathInfo,
2470        result: result,
2471      };
2472      currentPathInfo.onPop(popInfo);
2473    }
2474    if (typeof result === 'boolean') {
2475      this.animated = result;
2476    } else if (animated === undefined) {
2477      this.animated = true;
2478    } else {
2479      this.animated = animated;
2480    }
2481    this.nativeStack?.onPopCallback(typeof result === 'boolean' ? undefined : result);
2482    this.nativeStack?.onStateChanged();
2483    return pathInfo;
2484  }
2485  popTo(name, animated) {
2486    this.popToName(name, animated);
2487  }
2488  popToName(name, result, animated) {
2489    let index = this.pathArray.findIndex(element => element.name === name);
2490    if (index === -1) {
2491      return -1;
2492    }
2493    let currentPathInfo = this.pathArray[this.pathArray.length - 1];
2494    this.pathArray.splice(index + 1);
2495    this.isReplace = 0;
2496    if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) {
2497      let popInfo = {
2498        info: currentPathInfo,
2499        result: result,
2500      };
2501      currentPathInfo.onPop(popInfo);
2502    }
2503    if (typeof result === 'boolean') {
2504      this.animated = result;
2505    } else if (animated === undefined) {
2506      this.animated = true;
2507    } else {
2508      this.animated = animated;
2509    }
2510    this.nativeStack?.onPopCallback(typeof result === 'boolean' ? undefined : result);
2511    this.nativeStack?.onStateChanged();
2512    return index;
2513  }
2514  innerPopToIndex(index, result, animated, needFireOnResult) {
2515    if (index >= this.pathArray.length) {
2516      return;
2517    }
2518    let currentPathInfo = this.pathArray[this.pathArray.length - 1];
2519    this.pathArray.splice(index + 1);
2520    this.isReplace = 0;
2521    if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) {
2522      let popInfo = {
2523        info: currentPathInfo,
2524        result: result,
2525      };
2526      currentPathInfo.onPop(popInfo);
2527    }
2528    if (typeof result === 'boolean') {
2529      this.animated = result;
2530    } else if (animated === undefined) {
2531      this.animated = true;
2532    } else {
2533      this.animated = animated;
2534    }
2535    if (needFireOnResult) {
2536      this.nativeStack?.onPopCallback(typeof result === 'boolean' ? undefined : result);
2537    }
2538    this.nativeStack?.onStateChanged();
2539  }
2540  popToIndex(index, result, animated) {
2541    this.innerPopToIndex(index, result, animated, true);
2542  }
2543  moveToTop(name, animated) {
2544    let index = this.pathArray.findIndex(element => element.name === name);
2545    if (index === -1) {
2546      return -1;
2547    }
2548    let info = this.pathArray.splice(index, 1);
2549    this.pathArray.push(info[0]);
2550    this.isReplace = 0;
2551    if (animated === undefined) {
2552      this.animated = true;
2553    } else {
2554      this.animated = animated;
2555    }
2556    this.nativeStack?.onStateChanged();
2557    return index;
2558  }
2559  moveIndexToTop(index, animated) {
2560    if (index >= this.pathArray.length) {
2561      return;
2562    }
2563    let info = this.pathArray.splice(index, 1);
2564    this.pathArray.push(info[0]);
2565    this.isReplace = 0;
2566    if (animated === undefined) {
2567      this.animated = true;
2568    } else {
2569      this.animated = animated;
2570    }
2571    this.nativeStack?.onStateChanged();
2572  }
2573  clear(animated) {
2574    if (this.pathArray.length === 0) {
2575      return;
2576    }
2577    this.pathArray.splice(0);
2578    this.isReplace = 0;
2579    if (animated === undefined) {
2580      this.animated = true;
2581    } else {
2582      this.animated = animated;
2583    }
2584    this.nativeStack?.onStateChanged();
2585  }
2586  removeByIndexes(indexes) {
2587    if (!Array.isArray(indexes) || indexes.length === 0) {
2588      return 0;
2589    }
2590    let originLength = this.pathArray.length;
2591    this.pathArray = this.pathArray.filter((item, index) => {
2592      return item && !indexes.includes(index);
2593    });
2594    let cnt = originLength - this.pathArray.length;
2595    if (cnt > 0) {
2596      this.isReplace = 0;
2597      this.nativeStack?.onStateChanged();
2598    }
2599    return cnt;
2600  }
2601  removeByName(name) {
2602    let originLength = this.pathArray.length;
2603    this.pathArray = this.pathArray.filter(item => { return name !== item.name });
2604    let cnt = originLength - this.pathArray.length;
2605    if (cnt > 0) {
2606      this.isReplace = 0;
2607      this.nativeStack?.onStateChanged();
2608    }
2609    return cnt;
2610  }
2611  removeByNavDestinationId(navDestinationId) {
2612    let index = this.pathArray.findIndex(element => element.navDestinationId === navDestinationId);
2613    if (index === -1) {
2614      return false;
2615    }
2616    this.pathArray.splice(index, 1);
2617    this.isReplace = 0;
2618    this.nativeStack?.onStateChanged();
2619    return true;
2620  }
2621  removeIndex(index) {
2622    if (index >= this.pathArray.length) {
2623      return;
2624    }
2625    this.pathArray.splice(index, 1);
2626    this.isReplace = 0;
2627    this.nativeStack?.onStateChanged();
2628  }
2629  removeInvalidPage(name, param) {
2630    for (let i = 0; i < this.pathArray.length; i++) {
2631      if (this.pathArray[i].name === name &&
2632        this.pathArray[i].param === param) {
2633        this.pathArray.splice(i, 1);
2634        return;
2635      }
2636    }
2637  }
2638  getAllPathName() {
2639    let array = this.pathArray.flatMap(element => element.name);
2640    return array;
2641  }
2642  getParamByIndex(index) {
2643    let item = this.pathArray[index];
2644    if (item === undefined) {
2645      return undefined;
2646    }
2647    return item.param;
2648  }
2649  getParamByName(name) {
2650    let array = new Array();
2651    this.pathArray.forEach((element) => {
2652      if (element.name === name) {
2653        array.push(element.param);
2654      }
2655    });
2656    return array;
2657  }
2658  getIndexByName(name) {
2659    let array = new Array();
2660    this.pathArray.forEach((element, index) => {
2661      if (element.name === name) {
2662        array.push(index);
2663      }
2664    });
2665    return array;
2666  }
2667  getNameByIndex(index) {
2668    let item = this.pathArray[index];
2669    if (item === undefined) {
2670      return undefined;
2671    }
2672    return item.name;
2673  }
2674  getOnPopByIndex(index) {
2675    let item = this.pathArray[index];
2676    if (item === undefined) {
2677      return undefined;
2678    }
2679    return item.onPop;
2680  }
2681  size() {
2682    return this.pathArray.length;
2683  }
2684  disableAnimation(disableAnimation) {
2685    this.disableAllAnimation = disableAnimation;
2686  }
2687  setInterception(interception) {
2688    this.interception = interception;
2689  }
2690  getIsEntryByIndex(index) {
2691    let item = this.pathArray[index];
2692    if (item === undefined) {
2693      return false;
2694    }
2695    return item.isEntry;
2696  }
2697  setIsEntryByIndex(index, isEntry) {
2698    let item = this.pathArray[index];
2699    if (item === undefined) {
2700      return;
2701    }
2702    item.isEntry = isEntry;
2703  }
2704}
2705
2706globalThis.NavPathStack = NavPathStack;
2707
2708class WaterFlowSections {
2709  constructor() {
2710    this.sectionArray = [];
2711    // indicate class has changed.
2712    this.changeFlag = true;
2713    this.changeArray = [];
2714  }
2715
2716  isNonNegativeInt32(input) {
2717    return Number.isSafeInteger(input) && input >= 0 && input <= 2147483647;
2718  }
2719
2720  toArrayIndex(origin, limit) {
2721    // origin is truncated to an integer
2722    let result = Math.trunc(origin);
2723    if (result < 0) {
2724      // Negative index counts back from the end of the sectionArray.
2725      result += limit;
2726      // If origin < -sectionArray.length, 0 is used.
2727      if (result < 0) {
2728        result = 0;
2729      }
2730    } else if (result > limit) {
2731      result = limit;
2732    }
2733    return result;
2734  }
2735
2736  // splice(start: number, deleteCount?: number, sections?: Array<SectionOptions>): boolean;
2737  splice(start, deleteCount, sections) {
2738    let oldLength = this.sectionArray.length;
2739    let paramCount = arguments.length;
2740    if (paramCount === 1) {
2741      this.sectionArray.splice(start);
2742    } else if (paramCount === 2) {
2743      this.sectionArray.splice(start, deleteCount);
2744    } else {
2745      const iterator = sections.values();
2746      for (const section of iterator) {
2747        if (!this.isNonNegativeInt32(section.itemsCount)) {
2748          return false;
2749        }
2750      }
2751      this.sectionArray.splice(start, deleteCount, ...sections);
2752    }
2753
2754    let intStart = this.toArrayIndex(start, oldLength);
2755    let intDeleteCount = 0;
2756    if (paramCount === 1) {
2757      // If deleteCount is omitted, then all the sections from start to the end of the sectionArray will be deleted.
2758      intDeleteCount = oldLength - intStart;
2759    } else {
2760      intDeleteCount = Math.trunc(deleteCount);
2761      if (intDeleteCount > oldLength - intStart) {
2762        intDeleteCount = oldLength - intStart;
2763      }
2764    }
2765    intDeleteCount = intDeleteCount < 0 ? 0 : intDeleteCount;
2766
2767    this.changeArray.push({ start: intStart, deleteCount: intDeleteCount, sections: sections ? sections : [] });
2768    this.changeFlag = !this.changeFlag;
2769    return true;
2770  }
2771
2772  push(section) {
2773    if (!this.isNonNegativeInt32(section.itemsCount)) {
2774      return false;
2775    }
2776    let oldLength = this.sectionArray.length;
2777    this.sectionArray.push(section);
2778    this.changeArray.push({ start: oldLength, deleteCount: 0, sections: [section] });
2779    this.changeFlag = !this.changeFlag;
2780    return true;
2781  }
2782
2783  update(sectionIndex, section) {
2784    if (!this.isNonNegativeInt32(section.itemsCount)) {
2785      return false;
2786    }
2787    let oldLength = this.sectionArray.length;
2788    this.sectionArray.splice(sectionIndex, 1, section);
2789
2790    let intStart = this.toArrayIndex(sectionIndex, oldLength);
2791    this.changeArray.push({ start: intStart, deleteCount: 1, sections: [section] });
2792    this.changeFlag = !this.changeFlag;
2793    return true;
2794  }
2795
2796  values() {
2797    return this.sectionArray;
2798  }
2799
2800  length() {
2801    return this.sectionArray.length;
2802  }
2803
2804  clearChanges() {
2805    this.changeArray.splice(0);
2806  }
2807}
2808
2809var WaterFlowLayoutMode;
2810(function (WaterFlowLayoutMode) {
2811  WaterFlowLayoutMode[WaterFlowLayoutMode["ALWAYS_TOP_DOWN"] = 0] = "ALWAYS_TOP_DOWN";
2812  WaterFlowLayoutMode[WaterFlowLayoutMode["SLIDING_WINDOW"] = 1] = "SLIDING_WINDOW";
2813})(WaterFlowLayoutMode || (WaterFlowLayoutMode = {}));
2814
2815class ChildrenMainSizeParamError extends Error {
2816  constructor(message, code) {
2817    super(message);
2818    this.code = code;
2819  }
2820}
2821
2822class ChildrenMainSize {
2823
2824  constructor(childDefaultSize) {
2825    if (this.isInvalid(childDefaultSize)) {
2826      throw new ChildrenMainSizeParamError('The parameter check failed.', '401');
2827    }
2828    this.defaultMainSize = childDefaultSize;
2829    this.sizeArray = [];
2830    this.changeFlag = true;
2831    // -1: represent newly created.
2832    this.changeArray = [ { start: -1 } ];
2833  }
2834
2835  set childDefaultSize(value) {
2836    if (this.isInvalid(value)) {
2837      throw new ChildrenMainSizeParamError('The parameter check failed.', '401');
2838    }
2839    this.defaultMainSize = value;
2840  }
2841
2842  get childDefaultSize() {
2843    return this.defaultMainSize;
2844  }
2845
2846  // splice(start: number, deleteCount?: number, childrenSize?: Array<number>);
2847  splice(start, deleteCount, childrenSize) {
2848    let paramCount = arguments.length;
2849    if (this.isInvalid(start)) {
2850      throw new ChildrenMainSizeParamError('The parameter check failed.', '401');
2851    }
2852    let startValue = Math.trunc(start);
2853    let deleteCountValue = deleteCount && !(this.isInvalid(deleteCount)) ? Math.trunc(deleteCount) : 0;
2854    if (paramCount === 1) {
2855      this.sizeArray.splice(startValue);
2856      this.changeArray.push({ start: startValue });
2857    } else if (paramCount === 2) {
2858      this.sizeArray.splice(startValue, deleteCountValue);
2859      this.changeArray.push({ start: startValue, deleteCount: deleteCountValue });
2860    } else if (paramCount === 3) {
2861      let childrenSizeLength = childrenSize ? childrenSize.length : 0;
2862      if (childrenSizeLength === 0) {
2863        childrenSize = [];
2864      }
2865      for (let i = 0; i < childrenSizeLength; i++) {
2866        if (this.isInvalid(childrenSize[i])) {
2867          // -1: represent default size.
2868          childrenSize[i] = -1;
2869        }
2870      }
2871      while (startValue >= this.sizeArray.length) {
2872        this.sizeArray.push(-1);
2873      }
2874      this.sizeArray.splice(startValue, deleteCountValue, ...childrenSize);
2875      this.changeArray.push({ start: startValue, deleteCount: deleteCountValue, childrenSize: childrenSize });
2876    }
2877    this.changeFlag = !this.changeFlag;
2878  }
2879
2880  update(index, childSize) {
2881    if (this.isInvalid(index)) {
2882      throw new ChildrenMainSizeParamError('The parameter check failed.', '401');
2883    } else if (this.isInvalid(childSize)) {
2884      // -1: represent default size.
2885      childSize = -1;
2886    }
2887    let startValue = Math.trunc(index);
2888    while (startValue >= this.sizeArray.length) {
2889      this.sizeArray.push(-1);
2890    }
2891    this.sizeArray.splice(startValue, 1, childSize);
2892    this.changeArray.push({ start: startValue, deleteCount: 1, childrenSize: [childSize] });
2893    this.changeFlag = !this.changeFlag;
2894  }
2895
2896  isInvalid(input) {
2897    return !(Number.isFinite(input) && input >= 0);
2898  }
2899
2900  clearChanges() {
2901    this.changeArray.splice(0);
2902  }
2903}
2904
2905var ImageSpanAlignment;
2906(function (ImageSpanAlignment) {
2907  ImageSpanAlignment[ImageSpanAlignment["NONE"] = 0] = "NONE";
2908  ImageSpanAlignment[ImageSpanAlignment["TOP"] = 1] = "TOP";
2909  ImageSpanAlignment[ImageSpanAlignment["CENTER"] = 2] = "CENTER";
2910  ImageSpanAlignment[ImageSpanAlignment["BOTTOM"] = 3] = "BOTTOM";
2911  ImageSpanAlignment[ImageSpanAlignment["BASELINE"] = 4] = "BASELINE";
2912})(ImageSpanAlignment || (ImageSpanAlignment = {}));
2913
2914var MenuAlignType;
2915(function (MenuAlignType) {
2916  MenuAlignType[MenuAlignType["START"] = 0] = "START";
2917  MenuAlignType[MenuAlignType["CENTER"] = 1] = "CENTER";
2918  MenuAlignType[MenuAlignType["END"] = 2] = "END";
2919})(MenuAlignType || (MenuAlignType = {}));
2920
2921var ToolbarItemStatus;
2922(function (ToolbarItemStatus) {
2923  ToolbarItemStatus[ToolbarItemStatus["NORMAL"] = 0] = "NORMAL";
2924  ToolbarItemStatus[ToolbarItemStatus["DISABLED"] = 1] = "DISABLED";
2925  ToolbarItemStatus[ToolbarItemStatus["ACTIVE"] = 2] = "ACTIVE";
2926})(ToolbarItemStatus || (ToolbarItemStatus = {}));
2927
2928var SecurityComponentLayoutDirection;
2929(function (SecurityComponentLayoutDirection) {
2930  SecurityComponentLayoutDirection[SecurityComponentLayoutDirection["HORIZONTAL"] = 0] = "HORIZONTAL";
2931  SecurityComponentLayoutDirection[SecurityComponentLayoutDirection["VERTICAL"] = 1] = "VERTICAL";
2932})(SecurityComponentLayoutDirection || (SecurityComponentLayoutDirection = {}));
2933
2934var LocationIconStyle;
2935(function (LocationIconStyle) {
2936  LocationIconStyle[LocationIconStyle["FULL_FILLED"] = 0] = "FULL_FILLED";
2937  LocationIconStyle[LocationIconStyle["LINES"] = 1] = "LINES";
2938})(LocationIconStyle || (LocationIconStyle = {}));
2939
2940var LocationDescription;
2941(function (LocationDescription) {
2942  LocationDescription[LocationDescription["CURRENT_LOCATION"] = 0] = "CURRENT_LOCATION";
2943  LocationDescription[LocationDescription["ADD_LOCATION"] = 1] = "ADD_LOCATION";
2944  LocationDescription[LocationDescription["SELECT_LOCATION"] = 2] = "SELECT_LOCATION";
2945  LocationDescription[LocationDescription["SHARE_LOCATION"] = 3] = "SHARE_LOCATION";
2946  LocationDescription[LocationDescription["SEND_LOCATION"] = 4] = "SEND_LOCATION";
2947  LocationDescription[LocationDescription["LOCATING"] = 5] = "LOCATING";
2948  LocationDescription[LocationDescription["LOCATION"] = 6] = "LOCATION";
2949  LocationDescription[LocationDescription["SEND_CURRENT_LOCATION"] = 7] = "SEND_CURRENT_LOCATION";
2950  LocationDescription[LocationDescription["RELOCATION"] = 8] = "RELOCATION";
2951  LocationDescription[LocationDescription["PUNCH_IN"] = 9] = "PUNCH_IN";
2952  LocationDescription[LocationDescription["CURRENT_POSITION"] = 10] = "CURRENT_POSITION";
2953})(LocationDescription || (LocationDescription = {}));
2954
2955var LocationButtonOnClickResult;
2956(function (LocationButtonOnClickResult) {
2957  LocationButtonOnClickResult[LocationButtonOnClickResult["SUCCESS"] = 0] =
2958    "SUCCESS";
2959  LocationButtonOnClickResult[LocationButtonOnClickResult["TEMPORARY_AUTHORIZATION_FAILED"] = 1] =
2960    "TEMPORARY_AUTHORIZATION_FAILED ";
2961})(LocationButtonOnClickResult || (LocationButtonOnClickResult = {}));
2962
2963var PasteIconStyle;
2964(function (PasteIconStyle) {
2965  PasteIconStyle[PasteIconStyle["LINES"] = 0] = "LINES";
2966})(PasteIconStyle || (PasteIconStyle = {}));
2967
2968var PasteDescription;
2969(function (PasteDescription) {
2970  PasteDescription[PasteDescription["PASTE"] = 0] = "PASTE";
2971})(PasteDescription || (PasteDescription = {}));
2972
2973var PasteButtonOnClickResult;
2974(function (PasteButtonOnClickResult) {
2975  PasteButtonOnClickResult[PasteButtonOnClickResult["SUCCESS"] = 0] =
2976    "SUCCESS";
2977  PasteButtonOnClickResult[PasteButtonOnClickResult["TEMPORARY_AUTHORIZATION_FAILED"] = 1] =
2978    "TEMPORARY_AUTHORIZATION_FAILED ";
2979})(PasteButtonOnClickResult || (PasteButtonOnClickResult = {}));
2980
2981var SaveIconStyle;
2982(function (SaveIconStyle) {
2983  SaveIconStyle[SaveIconStyle["FULL_FILLED"] = 0] = "FULL_FILLED";
2984  SaveIconStyle[SaveIconStyle["LINES"] = 1] = "LINES";
2985  SaveIconStyle[SaveIconStyle["PICTURE"] = 2] = "PICTURE";
2986})(SaveIconStyle || (SaveIconStyle = {}));
2987
2988var SaveDescription;
2989(function (SaveDescription) {
2990  SaveDescription[SaveDescription["DOWNLOAD"] = 0] = "DOWNLOAD";
2991  SaveDescription[SaveDescription["DOWNLOAD_FILE"] = 1] = "DOWNLOAD_FILE";
2992  SaveDescription[SaveDescription["SAVE"] = 2] = "SAVE";
2993  SaveDescription[SaveDescription["SAVE_IMAGE"] = 3] = "SAVE_IMAGE";
2994  SaveDescription[SaveDescription["SAVE_FILE"] = 4] = "SAVE_FILE";
2995  SaveDescription[SaveDescription["DOWNLOAD_AND_SHARE"] = 5] = "DOWNLOAD_AND_SHARE";
2996  SaveDescription[SaveDescription["RECEIVE"] = 6] = "RECEIVE";
2997  SaveDescription[SaveDescription["CONTINUE_TO_RECEIVE"] = 7] = "CONTINUE_TO_RECEIVE";
2998  SaveDescription[SaveDescription["SAVE_TO_GALLERY"] = 8] = "SAVE_TO_GALLERY";
2999  SaveDescription[SaveDescription["EXPORT_TO_GALLERY"] = 9] = "EXPORT_TO_GALLERY";
3000  SaveDescription[SaveDescription["QUICK_SAVE_TO_GALLERY"] = 10] = "QUICK_SAVE_TO_GALLERY";
3001  SaveDescription[SaveDescription["RESAVE_TO_GALLERY"] = 11] = "RESAVE_TO_GALLERY";
3002})(SaveDescription || (SaveDescription = {}));
3003
3004var SaveButtonOnClickResult;
3005(function (SaveButtonOnClickResult) {
3006  SaveButtonOnClickResult[SaveButtonOnClickResult["SUCCESS"] = 0] =
3007    "SUCCESS";
3008  SaveButtonOnClickResult[SaveButtonOnClickResult["TEMPORARY_AUTHORIZATION_FAILED"] = 1] =
3009    "TEMPORARY_AUTHORIZATION_FAILED ";
3010})(SaveButtonOnClickResult || (SaveButtonOnClickResult = {}));
3011
3012var ObscuredReasons;
3013(function (ObscuredReasons) {
3014  ObscuredReasons[ObscuredReasons["PLACEHOLDER"] = 0] = "PLACEHOLDER";
3015})(ObscuredReasons || (ObscuredReasons = {}));
3016
3017var ListItemStyle;
3018(function (ListItemStyle) {
3019  ListItemStyle[ListItemStyle["NONE"] = 0] = "NONE";
3020  ListItemStyle[ListItemStyle["CARD"] = 1] = "CARD";
3021})(ListItemStyle || (ListItemStyle = {}));
3022
3023var GridItemStyle;
3024(function (GridItemStyle) {
3025  GridItemStyle[GridItemStyle["NONE"] = 0] = "NONE";
3026  GridItemStyle[GridItemStyle["PLAIN"] = 1] = "PLAIN";
3027})(GridItemStyle || (GridItemStyle = {}));
3028
3029var ListItemGroupStyle;
3030(function (ListItemGroupStyle) {
3031  ListItemGroupStyle[ListItemGroupStyle["NONE"] = 0] = "NONE";
3032  ListItemGroupStyle[ListItemGroupStyle["CARD"] = 1] = "CARD";
3033})(ListItemGroupStyle || (ListItemGroupStyle = {}));
3034
3035var DragResult;
3036(function (DragResult) {
3037  DragResult[DragResult["DRAG_SUCCESSFUL"] = 0] = "DRAG_SUCCESSFUL";
3038  DragResult[DragResult["DRAG_FAILED"] = 1] = "DRAG_FAILED";
3039  DragResult[DragResult["DRAG_CANCELED"] = 2] = "DRAG_CANCELED";
3040  DragResult[DragResult["DROP_ENABLED"] = 3] = "DROP_ENABLED";
3041  DragResult[DragResult["DROP_DISABLED"] = 4] = "DROP_DISABLED";
3042})(DragResult || (DragResult = {}));
3043
3044var XComponentType;
3045(function (XComponentType) {
3046  XComponentType[XComponentType["SURFACE"] = 0] = "SURFACE";
3047  XComponentType[XComponentType["COMPONENT"] = 1] = "COMPONENT";
3048  XComponentType[XComponentType["TEXTURE"] = 2] = "TEXTURE";
3049  XComponentType[XComponentType["NODE"] = 3] = "NODE";
3050})(XComponentType || (XComponentType = {}));
3051
3052var NestedScrollMode;
3053(function (NestedScrollMode) {
3054  NestedScrollMode[NestedScrollMode["SELF_ONLY"] = 0] = "SELF_ONLY";
3055  NestedScrollMode[NestedScrollMode["SELF_FIRST"] = 1] = "SELF_FIRST";
3056  NestedScrollMode[NestedScrollMode["PARENT_FIRST"] = 2] = "PARENT_FIRST";
3057  NestedScrollMode[NestedScrollMode["PARALLEL"] = 3] = "PARALLEL";
3058})(NestedScrollMode || (NestedScrollMode = {}));
3059
3060var IlluminatedType;
3061(function (IlluminatedType) {
3062  IlluminatedType[IlluminatedType["NONE"] = 0] = "NONE";
3063  IlluminatedType[IlluminatedType["BORDER"] = 1] = "BORDER";
3064  IlluminatedType[IlluminatedType["CONTENT"] = 2] = "CONTENT";
3065  IlluminatedType[IlluminatedType["BORDER_CONTENT"] = 3] = "BORDER_CONTENT";
3066  IlluminatedType[IlluminatedType["BLOOM_BORDER"] = 4] = "BLOOM_BORDER";
3067  IlluminatedType[IlluminatedType["BLOOM_BORDER_CONTENT"] = 5] = "BLOOM_BORDER_CONTENT";
3068})(IlluminatedType || (IlluminatedType = {}));
3069
3070var ScrollAlign;
3071(function (ScrollAlign) {
3072  ScrollAlign[ScrollAlign["START"] = 0] = "START";
3073  ScrollAlign[ScrollAlign["CENTER"] = 1] = "CENTER";
3074  ScrollAlign[ScrollAlign["END"] = 2] = "END";
3075  ScrollAlign[ScrollAlign["AUTO"] = 3] = "AUTO";
3076})(ScrollAlign || (ScrollAlign = {}));
3077
3078var SafeAreaType;
3079(function (SafeAreaType) {
3080  SafeAreaType[SafeAreaType["SYSTEM"] = 0] = "SYSTEM";
3081  SafeAreaType[SafeAreaType["CUTOUT"] = 1] = "CUTOUT";
3082  SafeAreaType[SafeAreaType["KEYBOARD"] = 2] = "KEYBOARD";
3083})(SafeAreaType || (SafeAreaType = {}));
3084
3085var SafeAreaEdge;
3086(function (SafeAreaEdge) {
3087  SafeAreaEdge[SafeAreaEdge["TOP"] = 0] = "TOP";
3088  SafeAreaEdge[SafeAreaEdge["BOTTOM"] = 1] = "BOTTOM";
3089  SafeAreaEdge[SafeAreaEdge["START"] = 2] = "START";
3090  SafeAreaEdge[SafeAreaEdge["END"] = 3] = "END";
3091})(SafeAreaEdge || (SafeAreaEdge = {}));
3092
3093let LayoutSafeAreaType;
3094(function (LayoutSafeAreaType) {
3095  LayoutSafeAreaType[LayoutSafeAreaType.SYSTEM = 0] = "SYSTEM";
3096})(LayoutSafeAreaType || (LayoutSafeAreaType = {}));
3097
3098let LayoutSafeAreaEdge;
3099(function (LayoutSafeAreaEdge) {
3100  LayoutSafeAreaEdge[LayoutSafeAreaEdge.TOP = 0] = "TOP";
3101  LayoutSafeAreaEdge[LayoutSafeAreaEdge.BOTTOM = 1] = "BOTTOM";
3102})(LayoutSafeAreaEdge || (LayoutSafeAreaEdge = {}));
3103
3104var RenderFit;
3105(function (RenderFit) {
3106  RenderFit[RenderFit["CENTER"] = 0] = "CENTER";
3107  RenderFit[RenderFit["TOP"] = 1] = "TOP";
3108  RenderFit[RenderFit["BOTTOM"] = 2] = "BOTTOM";
3109  RenderFit[RenderFit["LEFT"] = 3] = "LEFT";
3110  RenderFit[RenderFit["RIGHT"] = 4] = "RIGHT";
3111  RenderFit[RenderFit["TOP_LEFT"] = 5] = "TOP_LEFT";
3112  RenderFit[RenderFit["TOP_RIGHT"] = 6] = "TOP_RIGHT";
3113  RenderFit[RenderFit["BOTTOM_LEFT"] = 7] = "BOTTOM_LEFT";
3114  RenderFit[RenderFit["BOTTOM_RIGHT"] = 8] = "BOTTOM_RIGHT";
3115  RenderFit[RenderFit["RESIZE_FILL"] = 9] = "RESIZE_FILL";
3116  RenderFit[RenderFit["RESIZE_CONTAIN"] = 10] = "RESIZE_CONTAIN";
3117  RenderFit[RenderFit["RESIZE_CONTAIN_TOP_LEFT"] = 11] = "RESIZE_CONTAIN_TOP_LEFT";
3118  RenderFit[RenderFit["RESIZE_CONTAIN_BOTTOM_RIGHT"] = 12] = "RESIZE_CONTAIN_BOTTOM_RIGHT";
3119  RenderFit[RenderFit["RESIZE_COVER"] = 13] = "RESIZE_COVER";
3120  RenderFit[RenderFit["RESIZE_COVER_TOP_LEFT"] = 14] = "RESIZE_COVER_TOP_LEFT";
3121  RenderFit[RenderFit["RESIZE_COVER_BOTTOM_RIGHT"] = 15] = "RESIZE_COVER_BOTTOM_RIGHT";
3122})(RenderFit || (RenderFit = {}));
3123
3124var WebCaptureMode;
3125(function (WebCaptureMode) {
3126  WebCaptureMode[WebCaptureMode["HOME_SCREEN"] = 0] = "HOME_SCREEN";
3127})(WebCaptureMode || (WebCaptureMode = {}));
3128
3129var CalendarAlign;
3130(function (CalendarAlign) {
3131  CalendarAlign[CalendarAlign["START"] = 0] = "START";
3132  CalendarAlign[CalendarAlign["CENTER"] = 1] = "CENTER";
3133  CalendarAlign[CalendarAlign["END"] = 2] = "END";
3134})(CalendarAlign || (CalendarAlign = {}));
3135
3136var DragBehavior;
3137(function (DragBehavior) {
3138  DragBehavior[DragBehavior["COPY"] = 0] = "COPY";
3139  DragBehavior[DragBehavior["MOVE"] = 1] = "MOVE";
3140})(DragBehavior || (DragBehavior = {}));
3141
3142var PatternLockChallengeResult;
3143(function (PatternLockChallengeResult) {
3144  PatternLockChallengeResult[PatternLockChallengeResult["CORRECT"] = 1] = "CORRECT";
3145  PatternLockChallengeResult[PatternLockChallengeResult["WRONG"] = 2] = "WRONG";
3146})(PatternLockChallengeResult || (PatternLockChallengeResult = {}));
3147
3148var DialogButtonDirection;
3149(function (DialogButtonDirection) {
3150  DialogButtonDirection[DialogButtonDirection["AUTO"] = 0] = "AUTO";
3151  DialogButtonDirection[DialogButtonDirection["HORIZONTAL"] = 1] = "HORIZONTAL";
3152  DialogButtonDirection[DialogButtonDirection["VERTICAL"] = 2] = "VERTICAL";
3153})(DialogButtonDirection || (DialogButtonDirection = {}));
3154
3155var ParticleType;
3156(function (ParticleType) {
3157  ParticleType[ParticleType["POINT"] = 0] = "POINT";
3158  ParticleType[ParticleType["IMAGE"] = 1] = "IMAGE";
3159})(ParticleType || (ParticleType = {}));
3160
3161var ParticleEmitterShape;
3162(function (ParticleEmitterShape) {
3163  ParticleEmitterShape[ParticleEmitterShape["RECTANGLE"] = 0] = "RECTANGLE";
3164  ParticleEmitterShape[ParticleEmitterShape["CIRCLE"] = 1] = "CIRCLE";
3165  ParticleEmitterShape[ParticleEmitterShape["ELLIPSE"] = 2] = "ELLIPSE";
3166})(ParticleEmitterShape || (ParticleEmitterShape = {}));
3167
3168var DistributionType;
3169(function (DistributionType) {
3170  DistributionType[DistributionType["UNIFORM"] = 0] = "UNIFORM";
3171  DistributionType[DistributionType["GAUSSIAN"] = 1] = "GAUSSIAN";
3172})(DistributionType || (DistributionType = {}));
3173
3174var ParticleUpdater;
3175(function (ParticleUpdater) {
3176  ParticleUpdater[ParticleUpdater["NONE"] = 0] = "NONE";
3177  ParticleUpdater[ParticleUpdater["RANDOM"] = 1] = "RANDOM";
3178  ParticleUpdater[ParticleUpdater["CURVE"] = 2] = "CURVE";
3179})(ParticleUpdater || (ParticleUpdater = {}));
3180
3181var DisturbanceFieldShape;
3182(function (DisturbanceFieldShape) {
3183  DisturbanceFieldShape[DisturbanceFieldShape["RECT"] = 0] = "RECT";
3184  DisturbanceFieldShape[DisturbanceFieldShape["CIRCLE"] = 1] = "CIRCLE";
3185  DisturbanceFieldShape[DisturbanceFieldShape["ELLIPSE"] = 2] = "ELLIPSE";
3186})(DisturbanceFieldShape || (DisturbanceFieldShape = {}));
3187
3188var ModelType;
3189(function (ModelType) {
3190  ModelType[ModelType["TEXTURE"] = 0] = "TEXTURE";
3191  ModelType[ModelType["SURFACE"] = 1] = "SURFACE";
3192})(ModelType || (ModelType = {}));
3193
3194var ModelLightType;
3195(function (ModelLightType) {
3196  ModelLightType[ModelLightType["INVALID"] = 0] = "INVALID";
3197  ModelLightType[ModelLightType["DIRECTIONAL"] = 1] = "DIRECTIONAL";
3198  ModelLightType[ModelLightType["POINT"] = 2] = "POINT";
3199  ModelLightType[ModelLightType["SPOT"] = 3] = "SPOT";
3200})(ModelLightType || (ModelLightType = {}));
3201
3202var ModelAnimationStates;
3203(function (ModelAnimationStates) {
3204  ModelAnimationStates[ModelAnimationStates["PLAY"] = 0] = "PLAY";
3205  ModelAnimationStates[ModelAnimationStates["PAUSE"] = 1] = "PAUSE";
3206  ModelAnimationStates[ModelAnimationStates["STOP"] = 2] = "STOP";
3207})(ModelAnimationStates || (ModelAnimationStates = {}));
3208
3209var SwiperNestedScrollMode;
3210(function (SwiperNestedScrollMode) {
3211  SwiperNestedScrollMode[SwiperNestedScrollMode["SELF_ONLY"] = 0] = "SELF_ONLY";
3212  SwiperNestedScrollMode[SwiperNestedScrollMode["SELF_FIRST"] = 1] = "SELF_FIRST";
3213})(SwiperNestedScrollMode || (SwiperNestedScrollMode = {}));
3214
3215var PageFlipMode;
3216(function (PageFlipMode) {
3217  PageFlipMode[PageFlipMode["CONTINUOUS"] = 0] = "CONTINUOUS";
3218  PageFlipMode[PageFlipMode["SINGLE"] = 1] = "SINGLE";
3219})(PageFlipMode || (PageFlipMode = {}));
3220
3221var CheckBoxStyle;
3222(function (CheckBoxStyle) {
3223  CheckBoxStyle["CIRCULAR_STYLE"] = 0;
3224  CheckBoxStyle["SQUARE_STYLE"] = 1;
3225})(CheckBoxStyle || (CheckBoxStyle = {}));
3226
3227var SwipeActionState;
3228(function (SwipeActionState) {
3229  SwipeActionState[SwipeActionState["COLLAPSED"] = 0] = "COLLAPSED";
3230  SwipeActionState[SwipeActionState["EXPANDED"] = 1] = "EXPANDED";
3231  SwipeActionState[SwipeActionState["ACTIONING"] = 2] = "ACTIONING";
3232})(SwipeActionState || (SwipeActionState = {}));
3233
3234var CheckBoxShape;
3235(function (CheckBoxShape) {
3236  CheckBoxShape["CIRCLE"] = 0;
3237  CheckBoxShape["ROUNDED_SQUARE"] = 1;
3238})(CheckBoxShape || (CheckBoxShape = {}));
3239
3240var FinishCallbackType;
3241(function (FinishCallbackType) {
3242  FinishCallbackType["REMOVED"] = 0;
3243  FinishCallbackType["LOGICALLY"] = 1;
3244})(FinishCallbackType || (FinishCallbackType = {}));
3245
3246var WebLayoutMode;
3247(function (WebLayoutMode) {
3248  WebLayoutMode[WebLayoutMode["NONE"] = 0] = "NONE";
3249  WebLayoutMode[WebLayoutMode["FIT_CONTENT"] = 1] = "FIT_CONTENT";
3250})(WebLayoutMode || (WebLayoutMode = {}));
3251
3252var OptionWidthMode;
3253(function (OptionWidthMode) {
3254  OptionWidthMode["FIT_CONTENT"] = "fit_content";
3255  OptionWidthMode["FIT_TRIGGER"] = "fit_trigger";
3256})(OptionWidthMode || (OptionWidthMode = {}));
3257
3258var ArrowPointPosition;
3259(function (ArrowPointPosition) {
3260  ArrowPointPosition["START"] = "Start";
3261  ArrowPointPosition["CENTER"] = "Center";
3262  ArrowPointPosition["END"] = "End";
3263})(ArrowPointPosition || (ArrowPointPosition = {}));
3264
3265var DragPreviewMode;
3266(function (DragPreviewMode) {
3267  DragPreviewMode["AUTO"] = 1;
3268  DragPreviewMode["DISABLE_SCALE"] = 2;
3269  DragPreviewMode["ENABLE_DEFAULT_SHADOW"] = 3;
3270  DragPreviewMode["ENABLE_DEFAULT_RADIUS"] = 4;
3271})(DragPreviewMode || (DragPreviewMode = {}));
3272
3273var FoldStatus;
3274(function (FoldStatus) {
3275  FoldStatus[FoldStatus["FOLD_STATUS_UNKNOWN"] = 0] = "FOLD_STATUS_UNKNOWN";
3276  FoldStatus[FoldStatus["FOLD_STATUS_EXPANDED"] = 1] = "FOLD_STATUS_EXPANDED";
3277  FoldStatus[FoldStatus["FOLD_STATUS_FOLDED"] = 2] = "FOLD_STATUS_FOLDED";
3278  FoldStatus[FoldStatus["FOLD_STATUS_HALF_FOLDED"] = 3] = "FOLD_STATUS_HALF_FOLDED";
3279})(FoldStatus || (FoldStatus = {}));
3280
3281var EmbeddedType;
3282(function (EmbeddedType) {
3283  EmbeddedType[EmbeddedType["EMBEDDED_UI_EXTENSION"] = 0] = "EMBEDDED_UI_EXTENSION";
3284})(EmbeddedType || (EmbeddedType = {}));
3285
3286var OutlineStyle;
3287(function (OutlineStyle) {
3288  OutlineStyle[OutlineStyle["SOLID"] = 0] = "SOLID";
3289  OutlineStyle[OutlineStyle["DASHED"] = 1] = "DASHED";
3290  OutlineStyle[OutlineStyle["DOTTED"] = 2] = "DOTTED";
3291})(OutlineStyle || (OutlineStyle = {}));
3292
3293var ButtonStyleMode;
3294(function (ButtonStyleMode) {
3295  ButtonStyleMode["NORMAL"] = 0;
3296  ButtonStyleMode["EMPHASIZED"] = 1;
3297  ButtonStyleMode["TEXTUAL"] = 2;
3298})(ButtonStyleMode || (ButtonStyleMode = {}));
3299
3300let RadioIndicatorType;
3301(function (RadioIndicatorType) {
3302  RadioIndicatorType[RadioIndicatorType.TICK = 0] = "TICK";
3303  RadioIndicatorType[RadioIndicatorType.DOT = 1] = "DOT";
3304  RadioIndicatorType[RadioIndicatorType.CUSTOM = 2] = "CUSTOM";
3305})(RadioIndicatorType  || (RadioIndicatorType  = {}));
3306
3307var ControlSize;
3308(function (ControlSize) {
3309  ControlSize[ControlSize["SMALL"] = 0] = "SMALL";
3310  ControlSize[ControlSize["NORMAL"] = 1] = "NORMAL";
3311})(ControlSize || (ControlSize = {}));
3312
3313var ImageAnalyzerType;
3314(function (ImageAnalyzerType) {
3315  ImageAnalyzerType[ImageAnalyzerType["SUBJECT"] = 0] = "SUBJECT";
3316  ImageAnalyzerType[ImageAnalyzerType["TEXT"] = 1] = "TEXT";
3317  ImageAnalyzerType[ImageAnalyzerType["OBJECT_LOOKUP"] = 2] = "OBJECT_LOOKUP";
3318})(ImageAnalyzerType || (ImageAnalyzerType = {}));
3319
3320function wrapBuilder(builder) {
3321  return new WrappedBuilder(builder);
3322}
3323class WrappedBuilder {
3324  constructor(builder) {
3325    this.builder = builder;
3326  }
3327}
3328
3329let TextSpanType;
3330(function (TextSpanType) {
3331  TextSpanType[TextSpanType['TEXT'] = 0] = 'TEXT';
3332  TextSpanType[TextSpanType['IMAGE'] = 1] = 'IMAGE';
3333  TextSpanType[TextSpanType['MIXED'] = 2] = 'MIXED';
3334  TextSpanType[TextSpanType['DEFAULT'] = 3] = 'DEFAULT';
3335})(TextSpanType || (TextSpanType = {}));
3336
3337let TextResponseType;
3338(function (TextResponseType) {
3339  TextResponseType[TextResponseType['RIGHT_CLICK'] = 0] = 'RIGHT_CLICK';
3340  TextResponseType[TextResponseType['LONG_PRESS'] = 1] = 'LONG_PRESS';
3341  TextResponseType[TextResponseType['SELECT'] = 2] = 'SELECT';
3342  TextResponseType[TextResponseType['DEFAULT'] = 3] = 'DEFAULT';
3343})(TextResponseType || (TextResponseType = {}));
3344
3345let NativeEmbedStatus;
3346(function (NativeEmbedStatus) {
3347  NativeEmbedStatus['CREATE'] = 0;
3348  NativeEmbedStatus['UPDATE'] = 1;
3349  NativeEmbedStatus['DESTROY'] = 2;
3350  NativeEmbedStatus['ENTER_BFCACHE'] = 3;
3351  NativeEmbedStatus['LEAVE_BFCACHE'] = 4;
3352})(NativeEmbedStatus || (NativeEmbedStatus = {}));
3353
3354let RenderMode;
3355(function (RenderMode) {
3356  RenderMode['ASYNC_RENDER'] = 0;
3357  RenderMode['SYNC_RENDER'] = 1;
3358})(RenderMode || (RenderMode = {}));
3359
3360let ButtonRole;
3361(function (ButtonRole) {
3362  ButtonRole['NORMAL'] = 0;
3363  ButtonRole['ERROR'] = 1;
3364})(ButtonRole || (ButtonRole = {}));
3365
3366var StyledStringKey;
3367(function (StyledStringKey) {
3368  StyledStringKey[StyledStringKey["FONT"] = 0] = "FONT";
3369  StyledStringKey[StyledStringKey["DECORATION"] = 1] = "DECORATION";
3370  StyledStringKey[StyledStringKey["BASELINE_OFFSET"] = 2] = "BASELINE_OFFSET";
3371  StyledStringKey[StyledStringKey["LETTER_SPACING"] = 3] = "LETTER_SPACING";
3372  StyledStringKey[StyledStringKey["TEXT_SHADOW"] = 4] = "TEXT_SHADOW";
3373  StyledStringKey[StyledStringKey["LINE_HEIGHT"] = 5] = "LINE_HEIGHT";
3374  StyledStringKey[StyledStringKey["PARAGRAPH_STYLE"] = 200] = "PARAGRAPH_STYLE";
3375  StyledStringKey[StyledStringKey["BACKGROUND_COLOR"] = 6] = "BACKGROUND_COLOR";
3376  StyledStringKey[StyledStringKey["URL"] = 7] = "URL";
3377  StyledStringKey[StyledStringKey["GESTURE"] = 100] = "GESTURE";
3378  StyledStringKey[StyledStringKey["IMAGE"] = 300] = "IMAGE";
3379  StyledStringKey[StyledStringKey["CUSTOM_SPAN"] = 400] = "CUSTOM_SPAN";
3380  StyledStringKey[StyledStringKey["USER_DATA"] = 500] = "USER_DATA";
3381})(StyledStringKey || (StyledStringKey = {}));
3382
3383class CustomSpan extends NativeCustomSpan {
3384  type_ = 'CustomSpan';
3385}
3386
3387class UserDataSpan {
3388  type_ = 'ExtSpan';
3389}
3390
3391let MenuPolicy;
3392(function (MenuPolicy) {
3393  MenuPolicy['DEFAULT'] = 0;
3394  MenuPolicy['HIDE'] = 1;
3395  MenuPolicy['SHOW'] = 2;
3396})(MenuPolicy || (MenuPolicy = {}));
3397
3398let DataOperationType;
3399(function (DataOperationType) {
3400  DataOperationType['ADD'] = 'add';
3401  DataOperationType['DELETE'] = 'delete';
3402  DataOperationType['CHANGE'] = 'change';
3403  DataOperationType['MOVE'] = 'move';
3404  DataOperationType['EXCHANGE'] = 'exchange';
3405  DataOperationType['RELOAD'] = 'reload';
3406})(DataOperationType || (DataOperationType = {}));
3407
3408let PreDragStatus;
3409(function (PreDragStatus) {
3410  PreDragStatus['ACTION_DETECTING_STATUS'] = 0;
3411  PreDragStatus['READY_TO_TRIGGER_DRAG_ACTION'] = 1;
3412  PreDragStatus['PREVIEW_LIFT_STARTED'] = 2;
3413  PreDragStatus['PREVIEW_LIFT_FINISHED'] = 3;
3414  PreDragStatus['PREVIEW_LANDING_STARTED'] = 4;
3415  PreDragStatus['PREVIEW_LANDING_FINISHED'] = 5;
3416  PreDragStatus['ACTION_CANCELED_BEFORE_DRAG'] = 6;
3417})(PreDragStatus || (PreDragStatus = {}));
3418
3419let FocusPriority;
3420(function (FocusPriority) {
3421  FocusPriority[FocusPriority["AUTO"] = 0] = "AUTO";
3422  FocusPriority[FocusPriority["PRIOR"] = 2000] = "PRIOR";
3423  FocusPriority[FocusPriority["PREVIOUS"] = 3000] = "PREVIOUS";
3424})(FocusPriority || (FocusPriority = {}));
3425
3426var TextDeleteDirection;
3427(function (TextDeleteDirection) {
3428    TextDeleteDirection[TextDeleteDirection["BACKWARD"] = 0] = "BACKWARD";
3429    TextDeleteDirection[TextDeleteDirection["FORWARD"] = 1] = "FORWARD";
3430})(TextDeleteDirection || (TextDeleteDirection = {}));
3431
3432let ViewportFit;
3433(function (ViewportFit) {
3434  ViewportFit[ViewportFit['AUTO'] = 0] = 'AUTO';
3435  ViewportFit[ViewportFit['CONTAINS'] = 1] = 'CONTAINS';
3436  ViewportFit[ViewportFit['COVER'] = 2] = 'COVER';
3437})(ViewportFit || (ViewportFit = {}));
3438var SubMenuExpandingMode;
3439(function (SubMenuExpandingMode) {
3440  SubMenuExpandingMode[SubMenuExpandingMode["SIDE_EXPAND"] = 0] = "SIDE";
3441  SubMenuExpandingMode[SubMenuExpandingMode["EMBEDDED_EXPAND"] = 1] = "EMBEDDED";
3442  SubMenuExpandingMode[SubMenuExpandingMode["STACK_EXPAND"] = 2] = "STACK";
3443})(SubMenuExpandingMode || (SubMenuExpandingMode = {}));
3444
3445var GestureRecognizerState;
3446(function (GestureRecognizerState) {
3447  GestureRecognizerState[GestureRecognizerState["READY"] = 0] = "READY";
3448  GestureRecognizerState[GestureRecognizerState["DETECTING"] = 1] = "DETECTING";
3449  GestureRecognizerState[GestureRecognizerState["PENDING"] = 2] = "PENDING";
3450  GestureRecognizerState[GestureRecognizerState["BLOCKED"] = 3] = "BLOCKED";
3451  GestureRecognizerState[GestureRecognizerState["SUCCESSFUL"] = 4] = "SUCCESSFUL";
3452  GestureRecognizerState[GestureRecognizerState["FAILED"] = 5] = "FAILED";
3453})(GestureRecognizerState || (GestureRecognizerState = {}));
3454
3455let GridItemAlignment;
3456(function (GridItemAlignment) {
3457  GridItemAlignment[GridItemAlignment['DEFAULT'] = 0] = 'DEFAULT';
3458  GridItemAlignment[GridItemAlignment['STRETCH'] = 1] = 'STRETCH';
3459})(GridItemAlignment || (GridItemAlignment = {}));
3460
3461let ContentClipMode;
3462(function (ContentClipMode) {
3463  ContentClipMode[ContentClipMode['CONTENT_ONLY'] = 0] = 'CONTENT_ONLY';
3464  ContentClipMode[ContentClipMode['BOUNDARY'] = 1] = 'BOUNDARY';
3465  ContentClipMode[ContentClipMode['SAFE_AREA'] = 2] = 'SAFE_AREA';
3466})(ContentClipMode || (ContentClipMode = {}));
3467
3468var AccessibilityHoverType;
3469(function (AccessibilityHoverType) {
3470  AccessibilityHoverType[AccessibilityHoverType["HOVER_ENTER"] = 0] = "HOVER_ENTER";
3471  AccessibilityHoverType[AccessibilityHoverType["HOVER_MOVE"] = 1] = "HOVER_MOVE";
3472  AccessibilityHoverType[AccessibilityHoverType["HOVER_EXIT"] = 2] = "HOVER_EXIT";
3473  AccessibilityHoverType[AccessibilityHoverType["HOVER_CANCEL"] = 3] = "HOVER_CANCEL";
3474})(AccessibilityHoverType || (AccessibilityHoverType = {}));
3475
3476let WidthBreakpoint;
3477(function (WidthBreakpoint) {
3478  WidthBreakpoint[WidthBreakpoint['WIDTH_XS'] = 0] = 'WIDTH_XS';
3479  WidthBreakpoint[WidthBreakpoint['WIDTH_SM'] = 1] = 'WIDTH_SM';
3480  WidthBreakpoint[WidthBreakpoint['WIDTH_MD'] = 2] = 'WIDTH_MD';
3481  WidthBreakpoint[WidthBreakpoint['WIDTH_LG'] = 3] = 'WIDTH_LG';
3482  WidthBreakpoint[WidthBreakpoint['WIDTH_XL'] = 4] = 'WIDTH_XL';
3483})(WidthBreakpoint || (WidthBreakpoint = {}));
3484
3485let HeightBreakpoint;
3486(function (HeightBreakpoint) {
3487  HeightBreakpoint[HeightBreakpoint['HEIGHT_SM'] = 0] = 'HEIGHT_SM';
3488  HeightBreakpoint[HeightBreakpoint['HEIGHT_MD'] = 1] = 'HEIGHT_MD';
3489  HeightBreakpoint[HeightBreakpoint['HEIGHT_LG'] = 2] = 'HEIGHT_LG';
3490})(HeightBreakpoint || (HeightBreakpoint = {}));
3491
3492let WebElementType;
3493(function (WebElementType) {
3494  WebElementType[WebElementType['IMAGE'] = 1] = 'IMAGE';
3495})(WebElementType || (WebElementType = {}));
3496
3497let WebResponseType;
3498(function (WebResponseType) {
3499  WebResponseType[WebResponseType['LONG_PRESS'] = 1] = 'LONG_PRESS';
3500})(WebResponseType || (WebResponseType = {}));
3501
3502class ImageAnalyzerController {
3503  constructor() {
3504  }
3505
3506  registerSupportTypesAction(getSupportTypesAction) {
3507    this.getSupportTypesAction = getSupportTypesAction;
3508  }
3509
3510  unRegisterSupportTypesAction() {
3511    this.getSupportTypesAction = null;
3512  }
3513
3514  getImageAnalyzerSupportTypes() {
3515    if (this.getSupportTypesAction === null || this.getSupportTypesAction === undefined) {
3516      return null;
3517    }
3518    return this.getSupportTypesAction();
3519  }
3520}
3521
3522let AxisModel;
3523(function (AxisModel) {
3524  AxisModel[AxisModel.ABS_X = 0] = 'ABS_X';
3525  AxisModel[AxisModel.ABS_Y = 1] = 'ABS_Y';
3526  AxisModel[AxisModel.ABS_Z = 2] = 'ABS_Z';
3527  AxisModel[AxisModel.ABS_RZ = 3] = 'ABS_RZ';
3528  AxisModel[AxisModel.ABS_GAS = 4] = 'ABS_GAS';
3529  AxisModel[AxisModel.ABS_BRAKE = 5] = 'ABS_BRAKE';
3530  AxisModel[AxisModel.ABS_HAT0X = 6] = 'ABS_HAT0X';
3531  AxisModel[AxisModel.ABS_HAT0Y = 7] = 'ABS_HAT0Y';
3532})(AxisModel || (AxisModel = {}));
3533
3534let KeyProcessingMode;
3535(function (KeyProcessingMode) {
3536  KeyProcessingMode[KeyProcessingMode.FOCUS_NAVIGATION = 0] = 'FOCUS_NAVIGATION';
3537  KeyProcessingMode[KeyProcessingMode.ANCESTOR_EVENT = 1] = 'ANCESTOR_EVENT';
3538})(KeyProcessingMode || (KeyProcessingMode = {}));