github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/autotestprivate/bindings/ffi_bindings.ts (about)

     1  import { importModule, Application, heap, Pointer } from "@ffi";
     2  
     3  importModule("plat/js/webext/autotestprivate", (A: Application) => {
     4    const WEBEXT = typeof globalThis.browser === "undefined" ? globalThis.chrome : globalThis.browser;
     5  
     6    return {
     7      "store_Accelerator": (ptr: Pointer, ref: heap.Ref<any>) => {
     8        const x = A.H.get<any>(ref);
     9  
    10        if (typeof x === "undefined") {
    11          A.store.Bool(ptr + 14, false);
    12          A.store.Ref(ptr + 0, undefined);
    13          A.store.Bool(ptr + 9, false);
    14          A.store.Bool(ptr + 4, false);
    15          A.store.Bool(ptr + 10, false);
    16          A.store.Bool(ptr + 5, false);
    17          A.store.Bool(ptr + 11, false);
    18          A.store.Bool(ptr + 6, false);
    19          A.store.Bool(ptr + 12, false);
    20          A.store.Bool(ptr + 7, false);
    21          A.store.Bool(ptr + 13, false);
    22          A.store.Bool(ptr + 8, false);
    23        } else {
    24          A.store.Bool(ptr + 14, true);
    25          A.store.Ref(ptr + 0, x["keyCode"]);
    26          A.store.Bool(ptr + 9, "shift" in x ? true : false);
    27          A.store.Bool(ptr + 4, x["shift"] ? true : false);
    28          A.store.Bool(ptr + 10, "control" in x ? true : false);
    29          A.store.Bool(ptr + 5, x["control"] ? true : false);
    30          A.store.Bool(ptr + 11, "alt" in x ? true : false);
    31          A.store.Bool(ptr + 6, x["alt"] ? true : false);
    32          A.store.Bool(ptr + 12, "search" in x ? true : false);
    33          A.store.Bool(ptr + 7, x["search"] ? true : false);
    34          A.store.Bool(ptr + 13, "pressed" in x ? true : false);
    35          A.store.Bool(ptr + 8, x["pressed"] ? true : false);
    36        }
    37      },
    38      "load_Accelerator": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
    39        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
    40  
    41        x["keyCode"] = A.load.Ref(ptr + 0, undefined);
    42        if (A.load.Bool(ptr + 9)) {
    43          x["shift"] = A.load.Bool(ptr + 4);
    44        } else {
    45          delete x["shift"];
    46        }
    47        if (A.load.Bool(ptr + 10)) {
    48          x["control"] = A.load.Bool(ptr + 5);
    49        } else {
    50          delete x["control"];
    51        }
    52        if (A.load.Bool(ptr + 11)) {
    53          x["alt"] = A.load.Bool(ptr + 6);
    54        } else {
    55          delete x["alt"];
    56        }
    57        if (A.load.Bool(ptr + 12)) {
    58          x["search"] = A.load.Bool(ptr + 7);
    59        } else {
    60          delete x["search"];
    61        }
    62        if (A.load.Bool(ptr + 13)) {
    63          x["pressed"] = A.load.Bool(ptr + 8);
    64        } else {
    65          delete x["pressed"];
    66        }
    67        return create === A.H.TRUE ? A.H.push(x) : ref;
    68      },
    69      "constof_AppType": (ref: heap.Ref<string>): number => {
    70        const idx = [
    71          "Arc",
    72          "BuiltIn",
    73          "Crostini",
    74          "Extension",
    75          "Web",
    76          "MacOS",
    77          "PluginVm",
    78          "StandaloneBrowser",
    79          "Remote",
    80          "Borealis",
    81          "Bruschetta",
    82        ].indexOf(A.H.get(ref));
    83        return idx < 0 ? 0 : idx + 1;
    84      },
    85      "constof_AppInstallSource": (ref: heap.Ref<string>): number => {
    86        const idx = [
    87          "Unknown",
    88          "System",
    89          "Policy",
    90          "Oem",
    91          "Default",
    92          "Sync",
    93          "User",
    94          "SubApp",
    95          "Kiosk",
    96          "CommandLine",
    97        ].indexOf(A.H.get(ref));
    98        return idx < 0 ? 0 : idx + 1;
    99      },
   100      "constof_AppReadiness": (ref: heap.Ref<string>): number => {
   101        const idx = [
   102          "Ready",
   103          "DisabledByBlacklist",
   104          "DisabledByPolicy",
   105          "DisabledByUser",
   106          "Terminated",
   107          "UninstalledByUser",
   108          "Removed",
   109          "UninstalledByMigration",
   110        ].indexOf(A.H.get(ref));
   111        return idx < 0 ? 0 : idx + 1;
   112      },
   113  
   114      "store_App": (ptr: Pointer, ref: heap.Ref<any>) => {
   115        const x = A.H.get<any>(ref);
   116  
   117        if (typeof x === "undefined") {
   118          A.store.Bool(ptr + 36, false);
   119          A.store.Ref(ptr + 0, undefined);
   120          A.store.Ref(ptr + 4, undefined);
   121          A.store.Ref(ptr + 8, undefined);
   122          A.store.Ref(ptr + 12, undefined);
   123          A.store.Enum(ptr + 16, -1);
   124          A.store.Enum(ptr + 20, -1);
   125          A.store.Enum(ptr + 24, -1);
   126          A.store.Ref(ptr + 28, undefined);
   127          A.store.Bool(ptr + 34, false);
   128          A.store.Bool(ptr + 32, false);
   129          A.store.Bool(ptr + 35, false);
   130          A.store.Bool(ptr + 33, false);
   131        } else {
   132          A.store.Bool(ptr + 36, true);
   133          A.store.Ref(ptr + 0, x["appId"]);
   134          A.store.Ref(ptr + 4, x["name"]);
   135          A.store.Ref(ptr + 8, x["shortName"]);
   136          A.store.Ref(ptr + 12, x["publisherId"]);
   137          A.store.Enum(
   138            ptr + 16,
   139            [
   140              "Arc",
   141              "BuiltIn",
   142              "Crostini",
   143              "Extension",
   144              "Web",
   145              "MacOS",
   146              "PluginVm",
   147              "StandaloneBrowser",
   148              "Remote",
   149              "Borealis",
   150              "Bruschetta",
   151            ].indexOf(x["type"] as string)
   152          );
   153          A.store.Enum(
   154            ptr + 20,
   155            ["Unknown", "System", "Policy", "Oem", "Default", "Sync", "User", "SubApp", "Kiosk", "CommandLine"].indexOf(
   156              x["installSource"] as string
   157            )
   158          );
   159          A.store.Enum(
   160            ptr + 24,
   161            [
   162              "Ready",
   163              "DisabledByBlacklist",
   164              "DisabledByPolicy",
   165              "DisabledByUser",
   166              "Terminated",
   167              "UninstalledByUser",
   168              "Removed",
   169              "UninstalledByMigration",
   170            ].indexOf(x["readiness"] as string)
   171          );
   172          A.store.Ref(ptr + 28, x["additionalSearchTerms"]);
   173          A.store.Bool(ptr + 34, "showInLauncher" in x ? true : false);
   174          A.store.Bool(ptr + 32, x["showInLauncher"] ? true : false);
   175          A.store.Bool(ptr + 35, "showInSearch" in x ? true : false);
   176          A.store.Bool(ptr + 33, x["showInSearch"] ? true : false);
   177        }
   178      },
   179      "load_App": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
   180        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
   181  
   182        x["appId"] = A.load.Ref(ptr + 0, undefined);
   183        x["name"] = A.load.Ref(ptr + 4, undefined);
   184        x["shortName"] = A.load.Ref(ptr + 8, undefined);
   185        x["publisherId"] = A.load.Ref(ptr + 12, undefined);
   186        x["type"] = A.load.Enum(ptr + 16, [
   187          "Arc",
   188          "BuiltIn",
   189          "Crostini",
   190          "Extension",
   191          "Web",
   192          "MacOS",
   193          "PluginVm",
   194          "StandaloneBrowser",
   195          "Remote",
   196          "Borealis",
   197          "Bruschetta",
   198        ]);
   199        x["installSource"] = A.load.Enum(ptr + 20, [
   200          "Unknown",
   201          "System",
   202          "Policy",
   203          "Oem",
   204          "Default",
   205          "Sync",
   206          "User",
   207          "SubApp",
   208          "Kiosk",
   209          "CommandLine",
   210        ]);
   211        x["readiness"] = A.load.Enum(ptr + 24, [
   212          "Ready",
   213          "DisabledByBlacklist",
   214          "DisabledByPolicy",
   215          "DisabledByUser",
   216          "Terminated",
   217          "UninstalledByUser",
   218          "Removed",
   219          "UninstalledByMigration",
   220        ]);
   221        x["additionalSearchTerms"] = A.load.Ref(ptr + 28, undefined);
   222        if (A.load.Bool(ptr + 34)) {
   223          x["showInLauncher"] = A.load.Bool(ptr + 32);
   224        } else {
   225          delete x["showInLauncher"];
   226        }
   227        if (A.load.Bool(ptr + 35)) {
   228          x["showInSearch"] = A.load.Bool(ptr + 33);
   229        } else {
   230          delete x["showInSearch"];
   231        }
   232        return create === A.H.TRUE ? A.H.push(x) : ref;
   233      },
   234      "constof_AppWindowType": (ref: heap.Ref<string>): number => {
   235        const idx = ["Browser", "ChromeApp", "ArcApp", "CrostiniApp", "SystemApp", "ExtensionApp", "Lacros"].indexOf(
   236          A.H.get(ref)
   237        );
   238        return idx < 0 ? 0 : idx + 1;
   239      },
   240      "constof_WindowStateType": (ref: heap.Ref<string>): number => {
   241        const idx = [
   242          "Normal",
   243          "Minimized",
   244          "Maximized",
   245          "Fullscreen",
   246          "PrimarySnapped",
   247          "SecondarySnapped",
   248          "PIP",
   249          "Floated",
   250        ].indexOf(A.H.get(ref));
   251        return idx < 0 ? 0 : idx + 1;
   252      },
   253  
   254      "store_Bounds": (ptr: Pointer, ref: heap.Ref<any>) => {
   255        const x = A.H.get<any>(ref);
   256  
   257        if (typeof x === "undefined") {
   258          A.store.Bool(ptr + 36, false);
   259          A.store.Bool(ptr + 32, false);
   260          A.store.Float64(ptr + 0, 0);
   261          A.store.Bool(ptr + 33, false);
   262          A.store.Float64(ptr + 8, 0);
   263          A.store.Bool(ptr + 34, false);
   264          A.store.Float64(ptr + 16, 0);
   265          A.store.Bool(ptr + 35, false);
   266          A.store.Float64(ptr + 24, 0);
   267        } else {
   268          A.store.Bool(ptr + 36, true);
   269          A.store.Bool(ptr + 32, "left" in x ? true : false);
   270          A.store.Float64(ptr + 0, x["left"] === undefined ? 0 : (x["left"] as number));
   271          A.store.Bool(ptr + 33, "top" in x ? true : false);
   272          A.store.Float64(ptr + 8, x["top"] === undefined ? 0 : (x["top"] as number));
   273          A.store.Bool(ptr + 34, "width" in x ? true : false);
   274          A.store.Float64(ptr + 16, x["width"] === undefined ? 0 : (x["width"] as number));
   275          A.store.Bool(ptr + 35, "height" in x ? true : false);
   276          A.store.Float64(ptr + 24, x["height"] === undefined ? 0 : (x["height"] as number));
   277        }
   278      },
   279      "load_Bounds": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
   280        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
   281  
   282        if (A.load.Bool(ptr + 32)) {
   283          x["left"] = A.load.Float64(ptr + 0);
   284        } else {
   285          delete x["left"];
   286        }
   287        if (A.load.Bool(ptr + 33)) {
   288          x["top"] = A.load.Float64(ptr + 8);
   289        } else {
   290          delete x["top"];
   291        }
   292        if (A.load.Bool(ptr + 34)) {
   293          x["width"] = A.load.Float64(ptr + 16);
   294        } else {
   295          delete x["width"];
   296        }
   297        if (A.load.Bool(ptr + 35)) {
   298          x["height"] = A.load.Float64(ptr + 24);
   299        } else {
   300          delete x["height"];
   301        }
   302        return create === A.H.TRUE ? A.H.push(x) : ref;
   303      },
   304      "constof_FrameMode": (ref: heap.Ref<string>): number => {
   305        const idx = ["Normal", "Immersive"].indexOf(A.H.get(ref));
   306        return idx < 0 ? 0 : idx + 1;
   307      },
   308  
   309      "store_OverviewInfo": (ptr: Pointer, ref: heap.Ref<any>) => {
   310        const x = A.H.get<any>(ref);
   311  
   312        if (typeof x === "undefined") {
   313          A.store.Bool(ptr + 39, false);
   314  
   315          A.store.Bool(ptr + 0 + 36, false);
   316          A.store.Bool(ptr + 0 + 32, false);
   317          A.store.Float64(ptr + 0 + 0, 0);
   318          A.store.Bool(ptr + 0 + 33, false);
   319          A.store.Float64(ptr + 0 + 8, 0);
   320          A.store.Bool(ptr + 0 + 34, false);
   321          A.store.Float64(ptr + 0 + 16, 0);
   322          A.store.Bool(ptr + 0 + 35, false);
   323          A.store.Float64(ptr + 0 + 24, 0);
   324          A.store.Bool(ptr + 38, false);
   325          A.store.Bool(ptr + 37, false);
   326        } else {
   327          A.store.Bool(ptr + 39, true);
   328  
   329          if (typeof x["bounds"] === "undefined") {
   330            A.store.Bool(ptr + 0 + 36, false);
   331            A.store.Bool(ptr + 0 + 32, false);
   332            A.store.Float64(ptr + 0 + 0, 0);
   333            A.store.Bool(ptr + 0 + 33, false);
   334            A.store.Float64(ptr + 0 + 8, 0);
   335            A.store.Bool(ptr + 0 + 34, false);
   336            A.store.Float64(ptr + 0 + 16, 0);
   337            A.store.Bool(ptr + 0 + 35, false);
   338            A.store.Float64(ptr + 0 + 24, 0);
   339          } else {
   340            A.store.Bool(ptr + 0 + 36, true);
   341            A.store.Bool(ptr + 0 + 32, "left" in x["bounds"] ? true : false);
   342            A.store.Float64(ptr + 0 + 0, x["bounds"]["left"] === undefined ? 0 : (x["bounds"]["left"] as number));
   343            A.store.Bool(ptr + 0 + 33, "top" in x["bounds"] ? true : false);
   344            A.store.Float64(ptr + 0 + 8, x["bounds"]["top"] === undefined ? 0 : (x["bounds"]["top"] as number));
   345            A.store.Bool(ptr + 0 + 34, "width" in x["bounds"] ? true : false);
   346            A.store.Float64(ptr + 0 + 16, x["bounds"]["width"] === undefined ? 0 : (x["bounds"]["width"] as number));
   347            A.store.Bool(ptr + 0 + 35, "height" in x["bounds"] ? true : false);
   348            A.store.Float64(ptr + 0 + 24, x["bounds"]["height"] === undefined ? 0 : (x["bounds"]["height"] as number));
   349          }
   350          A.store.Bool(ptr + 38, "isDragged" in x ? true : false);
   351          A.store.Bool(ptr + 37, x["isDragged"] ? true : false);
   352        }
   353      },
   354      "load_OverviewInfo": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
   355        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
   356  
   357        if (A.load.Bool(ptr + 0 + 36)) {
   358          x["bounds"] = {};
   359          if (A.load.Bool(ptr + 0 + 32)) {
   360            x["bounds"]["left"] = A.load.Float64(ptr + 0 + 0);
   361          } else {
   362            delete x["bounds"]["left"];
   363          }
   364          if (A.load.Bool(ptr + 0 + 33)) {
   365            x["bounds"]["top"] = A.load.Float64(ptr + 0 + 8);
   366          } else {
   367            delete x["bounds"]["top"];
   368          }
   369          if (A.load.Bool(ptr + 0 + 34)) {
   370            x["bounds"]["width"] = A.load.Float64(ptr + 0 + 16);
   371          } else {
   372            delete x["bounds"]["width"];
   373          }
   374          if (A.load.Bool(ptr + 0 + 35)) {
   375            x["bounds"]["height"] = A.load.Float64(ptr + 0 + 24);
   376          } else {
   377            delete x["bounds"]["height"];
   378          }
   379        } else {
   380          delete x["bounds"];
   381        }
   382        if (A.load.Bool(ptr + 38)) {
   383          x["isDragged"] = A.load.Bool(ptr + 37);
   384        } else {
   385          delete x["isDragged"];
   386        }
   387        return create === A.H.TRUE ? A.H.push(x) : ref;
   388      },
   389  
   390      "store_AppWindowInfo": (ptr: Pointer, ref: heap.Ref<any>) => {
   391        const x = A.H.get<any>(ref);
   392  
   393        if (typeof x === "undefined") {
   394          A.store.Bool(ptr + 207, false);
   395          A.store.Bool(ptr + 192, false);
   396          A.store.Int32(ptr + 0, 0);
   397          A.store.Ref(ptr + 4, undefined);
   398          A.store.Enum(ptr + 8, -1);
   399          A.store.Enum(ptr + 12, -1);
   400  
   401          A.store.Bool(ptr + 16 + 36, false);
   402          A.store.Bool(ptr + 16 + 32, false);
   403          A.store.Float64(ptr + 16 + 0, 0);
   404          A.store.Bool(ptr + 16 + 33, false);
   405          A.store.Float64(ptr + 16 + 8, 0);
   406          A.store.Bool(ptr + 16 + 34, false);
   407          A.store.Float64(ptr + 16 + 16, 0);
   408          A.store.Bool(ptr + 16 + 35, false);
   409          A.store.Float64(ptr + 16 + 24, 0);
   410          A.store.Ref(ptr + 56, undefined);
   411          A.store.Bool(ptr + 193, false);
   412          A.store.Bool(ptr + 60, false);
   413          A.store.Bool(ptr + 194, false);
   414          A.store.Bool(ptr + 61, false);
   415          A.store.Ref(ptr + 64, undefined);
   416          A.store.Bool(ptr + 195, false);
   417          A.store.Bool(ptr + 68, false);
   418  
   419          A.store.Bool(ptr + 72 + 36, false);
   420          A.store.Bool(ptr + 72 + 32, false);
   421          A.store.Float64(ptr + 72 + 0, 0);
   422          A.store.Bool(ptr + 72 + 33, false);
   423          A.store.Float64(ptr + 72 + 8, 0);
   424          A.store.Bool(ptr + 72 + 34, false);
   425          A.store.Float64(ptr + 72 + 16, 0);
   426          A.store.Bool(ptr + 72 + 35, false);
   427          A.store.Float64(ptr + 72 + 24, 0);
   428          A.store.Bool(ptr + 196, false);
   429          A.store.Bool(ptr + 109, false);
   430          A.store.Bool(ptr + 197, false);
   431          A.store.Bool(ptr + 110, false);
   432          A.store.Bool(ptr + 198, false);
   433          A.store.Bool(ptr + 111, false);
   434          A.store.Bool(ptr + 199, false);
   435          A.store.Bool(ptr + 112, false);
   436          A.store.Bool(ptr + 200, false);
   437          A.store.Bool(ptr + 113, false);
   438          A.store.Bool(ptr + 201, false);
   439          A.store.Bool(ptr + 114, false);
   440          A.store.Bool(ptr + 202, false);
   441          A.store.Int32(ptr + 116, 0);
   442          A.store.Enum(ptr + 120, -1);
   443          A.store.Bool(ptr + 203, false);
   444          A.store.Bool(ptr + 124, false);
   445          A.store.Bool(ptr + 204, false);
   446          A.store.Int32(ptr + 128, 0);
   447          A.store.Bool(ptr + 205, false);
   448          A.store.Int32(ptr + 132, 0);
   449          A.store.Bool(ptr + 206, false);
   450          A.store.Int32(ptr + 136, 0);
   451          A.store.Ref(ptr + 140, undefined);
   452  
   453          A.store.Bool(ptr + 144 + 39, false);
   454  
   455          A.store.Bool(ptr + 144 + 0 + 36, false);
   456          A.store.Bool(ptr + 144 + 0 + 32, false);
   457          A.store.Float64(ptr + 144 + 0 + 0, 0);
   458          A.store.Bool(ptr + 144 + 0 + 33, false);
   459          A.store.Float64(ptr + 144 + 0 + 8, 0);
   460          A.store.Bool(ptr + 144 + 0 + 34, false);
   461          A.store.Float64(ptr + 144 + 0 + 16, 0);
   462          A.store.Bool(ptr + 144 + 0 + 35, false);
   463          A.store.Float64(ptr + 144 + 0 + 24, 0);
   464          A.store.Bool(ptr + 144 + 38, false);
   465          A.store.Bool(ptr + 144 + 37, false);
   466          A.store.Ref(ptr + 184, undefined);
   467          A.store.Ref(ptr + 188, undefined);
   468        } else {
   469          A.store.Bool(ptr + 207, true);
   470          A.store.Bool(ptr + 192, "id" in x ? true : false);
   471          A.store.Int32(ptr + 0, x["id"] === undefined ? 0 : (x["id"] as number));
   472          A.store.Ref(ptr + 4, x["name"]);
   473          A.store.Enum(
   474            ptr + 8,
   475            ["Browser", "ChromeApp", "ArcApp", "CrostiniApp", "SystemApp", "ExtensionApp", "Lacros"].indexOf(
   476              x["windowType"] as string
   477            )
   478          );
   479          A.store.Enum(
   480            ptr + 12,
   481            [
   482              "Normal",
   483              "Minimized",
   484              "Maximized",
   485              "Fullscreen",
   486              "PrimarySnapped",
   487              "SecondarySnapped",
   488              "PIP",
   489              "Floated",
   490            ].indexOf(x["stateType"] as string)
   491          );
   492  
   493          if (typeof x["boundsInRoot"] === "undefined") {
   494            A.store.Bool(ptr + 16 + 36, false);
   495            A.store.Bool(ptr + 16 + 32, false);
   496            A.store.Float64(ptr + 16 + 0, 0);
   497            A.store.Bool(ptr + 16 + 33, false);
   498            A.store.Float64(ptr + 16 + 8, 0);
   499            A.store.Bool(ptr + 16 + 34, false);
   500            A.store.Float64(ptr + 16 + 16, 0);
   501            A.store.Bool(ptr + 16 + 35, false);
   502            A.store.Float64(ptr + 16 + 24, 0);
   503          } else {
   504            A.store.Bool(ptr + 16 + 36, true);
   505            A.store.Bool(ptr + 16 + 32, "left" in x["boundsInRoot"] ? true : false);
   506            A.store.Float64(
   507              ptr + 16 + 0,
   508              x["boundsInRoot"]["left"] === undefined ? 0 : (x["boundsInRoot"]["left"] as number)
   509            );
   510            A.store.Bool(ptr + 16 + 33, "top" in x["boundsInRoot"] ? true : false);
   511            A.store.Float64(
   512              ptr + 16 + 8,
   513              x["boundsInRoot"]["top"] === undefined ? 0 : (x["boundsInRoot"]["top"] as number)
   514            );
   515            A.store.Bool(ptr + 16 + 34, "width" in x["boundsInRoot"] ? true : false);
   516            A.store.Float64(
   517              ptr + 16 + 16,
   518              x["boundsInRoot"]["width"] === undefined ? 0 : (x["boundsInRoot"]["width"] as number)
   519            );
   520            A.store.Bool(ptr + 16 + 35, "height" in x["boundsInRoot"] ? true : false);
   521            A.store.Float64(
   522              ptr + 16 + 24,
   523              x["boundsInRoot"]["height"] === undefined ? 0 : (x["boundsInRoot"]["height"] as number)
   524            );
   525          }
   526          A.store.Ref(ptr + 56, x["displayId"]);
   527          A.store.Bool(ptr + 193, "isVisible" in x ? true : false);
   528          A.store.Bool(ptr + 60, x["isVisible"] ? true : false);
   529          A.store.Bool(ptr + 194, "canFocus" in x ? true : false);
   530          A.store.Bool(ptr + 61, x["canFocus"] ? true : false);
   531          A.store.Ref(ptr + 64, x["title"]);
   532          A.store.Bool(ptr + 195, "isAnimating" in x ? true : false);
   533          A.store.Bool(ptr + 68, x["isAnimating"] ? true : false);
   534  
   535          if (typeof x["targetBounds"] === "undefined") {
   536            A.store.Bool(ptr + 72 + 36, false);
   537            A.store.Bool(ptr + 72 + 32, false);
   538            A.store.Float64(ptr + 72 + 0, 0);
   539            A.store.Bool(ptr + 72 + 33, false);
   540            A.store.Float64(ptr + 72 + 8, 0);
   541            A.store.Bool(ptr + 72 + 34, false);
   542            A.store.Float64(ptr + 72 + 16, 0);
   543            A.store.Bool(ptr + 72 + 35, false);
   544            A.store.Float64(ptr + 72 + 24, 0);
   545          } else {
   546            A.store.Bool(ptr + 72 + 36, true);
   547            A.store.Bool(ptr + 72 + 32, "left" in x["targetBounds"] ? true : false);
   548            A.store.Float64(
   549              ptr + 72 + 0,
   550              x["targetBounds"]["left"] === undefined ? 0 : (x["targetBounds"]["left"] as number)
   551            );
   552            A.store.Bool(ptr + 72 + 33, "top" in x["targetBounds"] ? true : false);
   553            A.store.Float64(
   554              ptr + 72 + 8,
   555              x["targetBounds"]["top"] === undefined ? 0 : (x["targetBounds"]["top"] as number)
   556            );
   557            A.store.Bool(ptr + 72 + 34, "width" in x["targetBounds"] ? true : false);
   558            A.store.Float64(
   559              ptr + 72 + 16,
   560              x["targetBounds"]["width"] === undefined ? 0 : (x["targetBounds"]["width"] as number)
   561            );
   562            A.store.Bool(ptr + 72 + 35, "height" in x["targetBounds"] ? true : false);
   563            A.store.Float64(
   564              ptr + 72 + 24,
   565              x["targetBounds"]["height"] === undefined ? 0 : (x["targetBounds"]["height"] as number)
   566            );
   567          }
   568          A.store.Bool(ptr + 196, "targetVisibility" in x ? true : false);
   569          A.store.Bool(ptr + 109, x["targetVisibility"] ? true : false);
   570          A.store.Bool(ptr + 197, "isActive" in x ? true : false);
   571          A.store.Bool(ptr + 110, x["isActive"] ? true : false);
   572          A.store.Bool(ptr + 198, "hasFocus" in x ? true : false);
   573          A.store.Bool(ptr + 111, x["hasFocus"] ? true : false);
   574          A.store.Bool(ptr + 199, "onActiveDesk" in x ? true : false);
   575          A.store.Bool(ptr + 112, x["onActiveDesk"] ? true : false);
   576          A.store.Bool(ptr + 200, "hasCapture" in x ? true : false);
   577          A.store.Bool(ptr + 113, x["hasCapture"] ? true : false);
   578          A.store.Bool(ptr + 201, "canResize" in x ? true : false);
   579          A.store.Bool(ptr + 114, x["canResize"] ? true : false);
   580          A.store.Bool(ptr + 202, "stackingOrder" in x ? true : false);
   581          A.store.Int32(ptr + 116, x["stackingOrder"] === undefined ? 0 : (x["stackingOrder"] as number));
   582          A.store.Enum(ptr + 120, ["Normal", "Immersive"].indexOf(x["frameMode"] as string));
   583          A.store.Bool(ptr + 203, "isFrameVisible" in x ? true : false);
   584          A.store.Bool(ptr + 124, x["isFrameVisible"] ? true : false);
   585          A.store.Bool(ptr + 204, "captionHeight" in x ? true : false);
   586          A.store.Int32(ptr + 128, x["captionHeight"] === undefined ? 0 : (x["captionHeight"] as number));
   587          A.store.Bool(ptr + 205, "captionButtonEnabledStatus" in x ? true : false);
   588          A.store.Int32(
   589            ptr + 132,
   590            x["captionButtonEnabledStatus"] === undefined ? 0 : (x["captionButtonEnabledStatus"] as number)
   591          );
   592          A.store.Bool(ptr + 206, "captionButtonVisibleStatus" in x ? true : false);
   593          A.store.Int32(
   594            ptr + 136,
   595            x["captionButtonVisibleStatus"] === undefined ? 0 : (x["captionButtonVisibleStatus"] as number)
   596          );
   597          A.store.Ref(ptr + 140, x["arcPackageName"]);
   598  
   599          if (typeof x["overviewInfo"] === "undefined") {
   600            A.store.Bool(ptr + 144 + 39, false);
   601  
   602            A.store.Bool(ptr + 144 + 0 + 36, false);
   603            A.store.Bool(ptr + 144 + 0 + 32, false);
   604            A.store.Float64(ptr + 144 + 0 + 0, 0);
   605            A.store.Bool(ptr + 144 + 0 + 33, false);
   606            A.store.Float64(ptr + 144 + 0 + 8, 0);
   607            A.store.Bool(ptr + 144 + 0 + 34, false);
   608            A.store.Float64(ptr + 144 + 0 + 16, 0);
   609            A.store.Bool(ptr + 144 + 0 + 35, false);
   610            A.store.Float64(ptr + 144 + 0 + 24, 0);
   611            A.store.Bool(ptr + 144 + 38, false);
   612            A.store.Bool(ptr + 144 + 37, false);
   613          } else {
   614            A.store.Bool(ptr + 144 + 39, true);
   615  
   616            if (typeof x["overviewInfo"]["bounds"] === "undefined") {
   617              A.store.Bool(ptr + 144 + 0 + 36, false);
   618              A.store.Bool(ptr + 144 + 0 + 32, false);
   619              A.store.Float64(ptr + 144 + 0 + 0, 0);
   620              A.store.Bool(ptr + 144 + 0 + 33, false);
   621              A.store.Float64(ptr + 144 + 0 + 8, 0);
   622              A.store.Bool(ptr + 144 + 0 + 34, false);
   623              A.store.Float64(ptr + 144 + 0 + 16, 0);
   624              A.store.Bool(ptr + 144 + 0 + 35, false);
   625              A.store.Float64(ptr + 144 + 0 + 24, 0);
   626            } else {
   627              A.store.Bool(ptr + 144 + 0 + 36, true);
   628              A.store.Bool(ptr + 144 + 0 + 32, "left" in x["overviewInfo"]["bounds"] ? true : false);
   629              A.store.Float64(
   630                ptr + 144 + 0 + 0,
   631                x["overviewInfo"]["bounds"]["left"] === undefined ? 0 : (x["overviewInfo"]["bounds"]["left"] as number)
   632              );
   633              A.store.Bool(ptr + 144 + 0 + 33, "top" in x["overviewInfo"]["bounds"] ? true : false);
   634              A.store.Float64(
   635                ptr + 144 + 0 + 8,
   636                x["overviewInfo"]["bounds"]["top"] === undefined ? 0 : (x["overviewInfo"]["bounds"]["top"] as number)
   637              );
   638              A.store.Bool(ptr + 144 + 0 + 34, "width" in x["overviewInfo"]["bounds"] ? true : false);
   639              A.store.Float64(
   640                ptr + 144 + 0 + 16,
   641                x["overviewInfo"]["bounds"]["width"] === undefined ? 0 : (x["overviewInfo"]["bounds"]["width"] as number)
   642              );
   643              A.store.Bool(ptr + 144 + 0 + 35, "height" in x["overviewInfo"]["bounds"] ? true : false);
   644              A.store.Float64(
   645                ptr + 144 + 0 + 24,
   646                x["overviewInfo"]["bounds"]["height"] === undefined
   647                  ? 0
   648                  : (x["overviewInfo"]["bounds"]["height"] as number)
   649              );
   650            }
   651            A.store.Bool(ptr + 144 + 38, "isDragged" in x["overviewInfo"] ? true : false);
   652            A.store.Bool(ptr + 144 + 37, x["overviewInfo"]["isDragged"] ? true : false);
   653          }
   654          A.store.Ref(ptr + 184, x["fullRestoreWindowAppId"]);
   655          A.store.Ref(ptr + 188, x["appId"]);
   656        }
   657      },
   658      "load_AppWindowInfo": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
   659        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
   660  
   661        if (A.load.Bool(ptr + 192)) {
   662          x["id"] = A.load.Int32(ptr + 0);
   663        } else {
   664          delete x["id"];
   665        }
   666        x["name"] = A.load.Ref(ptr + 4, undefined);
   667        x["windowType"] = A.load.Enum(ptr + 8, [
   668          "Browser",
   669          "ChromeApp",
   670          "ArcApp",
   671          "CrostiniApp",
   672          "SystemApp",
   673          "ExtensionApp",
   674          "Lacros",
   675        ]);
   676        x["stateType"] = A.load.Enum(ptr + 12, [
   677          "Normal",
   678          "Minimized",
   679          "Maximized",
   680          "Fullscreen",
   681          "PrimarySnapped",
   682          "SecondarySnapped",
   683          "PIP",
   684          "Floated",
   685        ]);
   686        if (A.load.Bool(ptr + 16 + 36)) {
   687          x["boundsInRoot"] = {};
   688          if (A.load.Bool(ptr + 16 + 32)) {
   689            x["boundsInRoot"]["left"] = A.load.Float64(ptr + 16 + 0);
   690          } else {
   691            delete x["boundsInRoot"]["left"];
   692          }
   693          if (A.load.Bool(ptr + 16 + 33)) {
   694            x["boundsInRoot"]["top"] = A.load.Float64(ptr + 16 + 8);
   695          } else {
   696            delete x["boundsInRoot"]["top"];
   697          }
   698          if (A.load.Bool(ptr + 16 + 34)) {
   699            x["boundsInRoot"]["width"] = A.load.Float64(ptr + 16 + 16);
   700          } else {
   701            delete x["boundsInRoot"]["width"];
   702          }
   703          if (A.load.Bool(ptr + 16 + 35)) {
   704            x["boundsInRoot"]["height"] = A.load.Float64(ptr + 16 + 24);
   705          } else {
   706            delete x["boundsInRoot"]["height"];
   707          }
   708        } else {
   709          delete x["boundsInRoot"];
   710        }
   711        x["displayId"] = A.load.Ref(ptr + 56, undefined);
   712        if (A.load.Bool(ptr + 193)) {
   713          x["isVisible"] = A.load.Bool(ptr + 60);
   714        } else {
   715          delete x["isVisible"];
   716        }
   717        if (A.load.Bool(ptr + 194)) {
   718          x["canFocus"] = A.load.Bool(ptr + 61);
   719        } else {
   720          delete x["canFocus"];
   721        }
   722        x["title"] = A.load.Ref(ptr + 64, undefined);
   723        if (A.load.Bool(ptr + 195)) {
   724          x["isAnimating"] = A.load.Bool(ptr + 68);
   725        } else {
   726          delete x["isAnimating"];
   727        }
   728        if (A.load.Bool(ptr + 72 + 36)) {
   729          x["targetBounds"] = {};
   730          if (A.load.Bool(ptr + 72 + 32)) {
   731            x["targetBounds"]["left"] = A.load.Float64(ptr + 72 + 0);
   732          } else {
   733            delete x["targetBounds"]["left"];
   734          }
   735          if (A.load.Bool(ptr + 72 + 33)) {
   736            x["targetBounds"]["top"] = A.load.Float64(ptr + 72 + 8);
   737          } else {
   738            delete x["targetBounds"]["top"];
   739          }
   740          if (A.load.Bool(ptr + 72 + 34)) {
   741            x["targetBounds"]["width"] = A.load.Float64(ptr + 72 + 16);
   742          } else {
   743            delete x["targetBounds"]["width"];
   744          }
   745          if (A.load.Bool(ptr + 72 + 35)) {
   746            x["targetBounds"]["height"] = A.load.Float64(ptr + 72 + 24);
   747          } else {
   748            delete x["targetBounds"]["height"];
   749          }
   750        } else {
   751          delete x["targetBounds"];
   752        }
   753        if (A.load.Bool(ptr + 196)) {
   754          x["targetVisibility"] = A.load.Bool(ptr + 109);
   755        } else {
   756          delete x["targetVisibility"];
   757        }
   758        if (A.load.Bool(ptr + 197)) {
   759          x["isActive"] = A.load.Bool(ptr + 110);
   760        } else {
   761          delete x["isActive"];
   762        }
   763        if (A.load.Bool(ptr + 198)) {
   764          x["hasFocus"] = A.load.Bool(ptr + 111);
   765        } else {
   766          delete x["hasFocus"];
   767        }
   768        if (A.load.Bool(ptr + 199)) {
   769          x["onActiveDesk"] = A.load.Bool(ptr + 112);
   770        } else {
   771          delete x["onActiveDesk"];
   772        }
   773        if (A.load.Bool(ptr + 200)) {
   774          x["hasCapture"] = A.load.Bool(ptr + 113);
   775        } else {
   776          delete x["hasCapture"];
   777        }
   778        if (A.load.Bool(ptr + 201)) {
   779          x["canResize"] = A.load.Bool(ptr + 114);
   780        } else {
   781          delete x["canResize"];
   782        }
   783        if (A.load.Bool(ptr + 202)) {
   784          x["stackingOrder"] = A.load.Int32(ptr + 116);
   785        } else {
   786          delete x["stackingOrder"];
   787        }
   788        x["frameMode"] = A.load.Enum(ptr + 120, ["Normal", "Immersive"]);
   789        if (A.load.Bool(ptr + 203)) {
   790          x["isFrameVisible"] = A.load.Bool(ptr + 124);
   791        } else {
   792          delete x["isFrameVisible"];
   793        }
   794        if (A.load.Bool(ptr + 204)) {
   795          x["captionHeight"] = A.load.Int32(ptr + 128);
   796        } else {
   797          delete x["captionHeight"];
   798        }
   799        if (A.load.Bool(ptr + 205)) {
   800          x["captionButtonEnabledStatus"] = A.load.Int32(ptr + 132);
   801        } else {
   802          delete x["captionButtonEnabledStatus"];
   803        }
   804        if (A.load.Bool(ptr + 206)) {
   805          x["captionButtonVisibleStatus"] = A.load.Int32(ptr + 136);
   806        } else {
   807          delete x["captionButtonVisibleStatus"];
   808        }
   809        x["arcPackageName"] = A.load.Ref(ptr + 140, undefined);
   810        if (A.load.Bool(ptr + 144 + 39)) {
   811          x["overviewInfo"] = {};
   812          if (A.load.Bool(ptr + 144 + 0 + 36)) {
   813            x["overviewInfo"]["bounds"] = {};
   814            if (A.load.Bool(ptr + 144 + 0 + 32)) {
   815              x["overviewInfo"]["bounds"]["left"] = A.load.Float64(ptr + 144 + 0 + 0);
   816            } else {
   817              delete x["overviewInfo"]["bounds"]["left"];
   818            }
   819            if (A.load.Bool(ptr + 144 + 0 + 33)) {
   820              x["overviewInfo"]["bounds"]["top"] = A.load.Float64(ptr + 144 + 0 + 8);
   821            } else {
   822              delete x["overviewInfo"]["bounds"]["top"];
   823            }
   824            if (A.load.Bool(ptr + 144 + 0 + 34)) {
   825              x["overviewInfo"]["bounds"]["width"] = A.load.Float64(ptr + 144 + 0 + 16);
   826            } else {
   827              delete x["overviewInfo"]["bounds"]["width"];
   828            }
   829            if (A.load.Bool(ptr + 144 + 0 + 35)) {
   830              x["overviewInfo"]["bounds"]["height"] = A.load.Float64(ptr + 144 + 0 + 24);
   831            } else {
   832              delete x["overviewInfo"]["bounds"]["height"];
   833            }
   834          } else {
   835            delete x["overviewInfo"]["bounds"];
   836          }
   837          if (A.load.Bool(ptr + 144 + 38)) {
   838            x["overviewInfo"]["isDragged"] = A.load.Bool(ptr + 144 + 37);
   839          } else {
   840            delete x["overviewInfo"]["isDragged"];
   841          }
   842        } else {
   843          delete x["overviewInfo"];
   844        }
   845        x["fullRestoreWindowAppId"] = A.load.Ref(ptr + 184, undefined);
   846        x["appId"] = A.load.Ref(ptr + 188, undefined);
   847        return create === A.H.TRUE ? A.H.push(x) : ref;
   848      },
   849  
   850      "store_ArcAppDict": (ptr: Pointer, ref: heap.Ref<any>) => {
   851        const x = A.H.get<any>(ref);
   852  
   853        if (typeof x === "undefined") {
   854          A.store.Bool(ptr + 56, false);
   855          A.store.Ref(ptr + 0, undefined);
   856          A.store.Ref(ptr + 4, undefined);
   857          A.store.Ref(ptr + 8, undefined);
   858          A.store.Ref(ptr + 12, undefined);
   859          A.store.Ref(ptr + 16, undefined);
   860          A.store.Bool(ptr + 47, false);
   861          A.store.Float64(ptr + 24, 0);
   862          A.store.Bool(ptr + 48, false);
   863          A.store.Float64(ptr + 32, 0);
   864          A.store.Bool(ptr + 49, false);
   865          A.store.Bool(ptr + 40, false);
   866          A.store.Bool(ptr + 50, false);
   867          A.store.Bool(ptr + 41, false);
   868          A.store.Bool(ptr + 51, false);
   869          A.store.Bool(ptr + 42, false);
   870          A.store.Bool(ptr + 52, false);
   871          A.store.Bool(ptr + 43, false);
   872          A.store.Bool(ptr + 53, false);
   873          A.store.Bool(ptr + 44, false);
   874          A.store.Bool(ptr + 54, false);
   875          A.store.Bool(ptr + 45, false);
   876          A.store.Bool(ptr + 55, false);
   877          A.store.Bool(ptr + 46, false);
   878        } else {
   879          A.store.Bool(ptr + 56, true);
   880          A.store.Ref(ptr + 0, x["name"]);
   881          A.store.Ref(ptr + 4, x["packageName"]);
   882          A.store.Ref(ptr + 8, x["activity"]);
   883          A.store.Ref(ptr + 12, x["intentUri"]);
   884          A.store.Ref(ptr + 16, x["iconResourceId"]);
   885          A.store.Bool(ptr + 47, "lastLaunchTime" in x ? true : false);
   886          A.store.Float64(ptr + 24, x["lastLaunchTime"] === undefined ? 0 : (x["lastLaunchTime"] as number));
   887          A.store.Bool(ptr + 48, "installTime" in x ? true : false);
   888          A.store.Float64(ptr + 32, x["installTime"] === undefined ? 0 : (x["installTime"] as number));
   889          A.store.Bool(ptr + 49, "sticky" in x ? true : false);
   890          A.store.Bool(ptr + 40, x["sticky"] ? true : false);
   891          A.store.Bool(ptr + 50, "notificationsEnabled" in x ? true : false);
   892          A.store.Bool(ptr + 41, x["notificationsEnabled"] ? true : false);
   893          A.store.Bool(ptr + 51, "ready" in x ? true : false);
   894          A.store.Bool(ptr + 42, x["ready"] ? true : false);
   895          A.store.Bool(ptr + 52, "suspended" in x ? true : false);
   896          A.store.Bool(ptr + 43, x["suspended"] ? true : false);
   897          A.store.Bool(ptr + 53, "showInLauncher" in x ? true : false);
   898          A.store.Bool(ptr + 44, x["showInLauncher"] ? true : false);
   899          A.store.Bool(ptr + 54, "shortcut" in x ? true : false);
   900          A.store.Bool(ptr + 45, x["shortcut"] ? true : false);
   901          A.store.Bool(ptr + 55, "launchable" in x ? true : false);
   902          A.store.Bool(ptr + 46, x["launchable"] ? true : false);
   903        }
   904      },
   905      "load_ArcAppDict": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
   906        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
   907  
   908        x["name"] = A.load.Ref(ptr + 0, undefined);
   909        x["packageName"] = A.load.Ref(ptr + 4, undefined);
   910        x["activity"] = A.load.Ref(ptr + 8, undefined);
   911        x["intentUri"] = A.load.Ref(ptr + 12, undefined);
   912        x["iconResourceId"] = A.load.Ref(ptr + 16, undefined);
   913        if (A.load.Bool(ptr + 47)) {
   914          x["lastLaunchTime"] = A.load.Float64(ptr + 24);
   915        } else {
   916          delete x["lastLaunchTime"];
   917        }
   918        if (A.load.Bool(ptr + 48)) {
   919          x["installTime"] = A.load.Float64(ptr + 32);
   920        } else {
   921          delete x["installTime"];
   922        }
   923        if (A.load.Bool(ptr + 49)) {
   924          x["sticky"] = A.load.Bool(ptr + 40);
   925        } else {
   926          delete x["sticky"];
   927        }
   928        if (A.load.Bool(ptr + 50)) {
   929          x["notificationsEnabled"] = A.load.Bool(ptr + 41);
   930        } else {
   931          delete x["notificationsEnabled"];
   932        }
   933        if (A.load.Bool(ptr + 51)) {
   934          x["ready"] = A.load.Bool(ptr + 42);
   935        } else {
   936          delete x["ready"];
   937        }
   938        if (A.load.Bool(ptr + 52)) {
   939          x["suspended"] = A.load.Bool(ptr + 43);
   940        } else {
   941          delete x["suspended"];
   942        }
   943        if (A.load.Bool(ptr + 53)) {
   944          x["showInLauncher"] = A.load.Bool(ptr + 44);
   945        } else {
   946          delete x["showInLauncher"];
   947        }
   948        if (A.load.Bool(ptr + 54)) {
   949          x["shortcut"] = A.load.Bool(ptr + 45);
   950        } else {
   951          delete x["shortcut"];
   952        }
   953        if (A.load.Bool(ptr + 55)) {
   954          x["launchable"] = A.load.Bool(ptr + 46);
   955        } else {
   956          delete x["launchable"];
   957        }
   958        return create === A.H.TRUE ? A.H.push(x) : ref;
   959      },
   960  
   961      "store_ArcAppKillsDict": (ptr: Pointer, ref: heap.Ref<any>) => {
   962        const x = A.H.get<any>(ref);
   963  
   964        if (typeof x === "undefined") {
   965          A.store.Bool(ptr + 63, false);
   966          A.store.Bool(ptr + 56, false);
   967          A.store.Float64(ptr + 0, 0);
   968          A.store.Bool(ptr + 57, false);
   969          A.store.Float64(ptr + 8, 0);
   970          A.store.Bool(ptr + 58, false);
   971          A.store.Float64(ptr + 16, 0);
   972          A.store.Bool(ptr + 59, false);
   973          A.store.Float64(ptr + 24, 0);
   974          A.store.Bool(ptr + 60, false);
   975          A.store.Float64(ptr + 32, 0);
   976          A.store.Bool(ptr + 61, false);
   977          A.store.Float64(ptr + 40, 0);
   978          A.store.Bool(ptr + 62, false);
   979          A.store.Float64(ptr + 48, 0);
   980        } else {
   981          A.store.Bool(ptr + 63, true);
   982          A.store.Bool(ptr + 56, "oom" in x ? true : false);
   983          A.store.Float64(ptr + 0, x["oom"] === undefined ? 0 : (x["oom"] as number));
   984          A.store.Bool(ptr + 57, "lmkdForeground" in x ? true : false);
   985          A.store.Float64(ptr + 8, x["lmkdForeground"] === undefined ? 0 : (x["lmkdForeground"] as number));
   986          A.store.Bool(ptr + 58, "lmkdPerceptible" in x ? true : false);
   987          A.store.Float64(ptr + 16, x["lmkdPerceptible"] === undefined ? 0 : (x["lmkdPerceptible"] as number));
   988          A.store.Bool(ptr + 59, "lmkdCached" in x ? true : false);
   989          A.store.Float64(ptr + 24, x["lmkdCached"] === undefined ? 0 : (x["lmkdCached"] as number));
   990          A.store.Bool(ptr + 60, "pressureForeground" in x ? true : false);
   991          A.store.Float64(ptr + 32, x["pressureForeground"] === undefined ? 0 : (x["pressureForeground"] as number));
   992          A.store.Bool(ptr + 61, "pressurePerceptible" in x ? true : false);
   993          A.store.Float64(ptr + 40, x["pressurePerceptible"] === undefined ? 0 : (x["pressurePerceptible"] as number));
   994          A.store.Bool(ptr + 62, "pressureCached" in x ? true : false);
   995          A.store.Float64(ptr + 48, x["pressureCached"] === undefined ? 0 : (x["pressureCached"] as number));
   996        }
   997      },
   998      "load_ArcAppKillsDict": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
   999        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1000  
  1001        if (A.load.Bool(ptr + 56)) {
  1002          x["oom"] = A.load.Float64(ptr + 0);
  1003        } else {
  1004          delete x["oom"];
  1005        }
  1006        if (A.load.Bool(ptr + 57)) {
  1007          x["lmkdForeground"] = A.load.Float64(ptr + 8);
  1008        } else {
  1009          delete x["lmkdForeground"];
  1010        }
  1011        if (A.load.Bool(ptr + 58)) {
  1012          x["lmkdPerceptible"] = A.load.Float64(ptr + 16);
  1013        } else {
  1014          delete x["lmkdPerceptible"];
  1015        }
  1016        if (A.load.Bool(ptr + 59)) {
  1017          x["lmkdCached"] = A.load.Float64(ptr + 24);
  1018        } else {
  1019          delete x["lmkdCached"];
  1020        }
  1021        if (A.load.Bool(ptr + 60)) {
  1022          x["pressureForeground"] = A.load.Float64(ptr + 32);
  1023        } else {
  1024          delete x["pressureForeground"];
  1025        }
  1026        if (A.load.Bool(ptr + 61)) {
  1027          x["pressurePerceptible"] = A.load.Float64(ptr + 40);
  1028        } else {
  1029          delete x["pressurePerceptible"];
  1030        }
  1031        if (A.load.Bool(ptr + 62)) {
  1032          x["pressureCached"] = A.load.Float64(ptr + 48);
  1033        } else {
  1034          delete x["pressureCached"];
  1035        }
  1036        return create === A.H.TRUE ? A.H.push(x) : ref;
  1037      },
  1038  
  1039      "store_ArcAppTracingInfo": (ptr: Pointer, ref: heap.Ref<any>) => {
  1040        const x = A.H.get<any>(ref);
  1041  
  1042        if (typeof x === "undefined") {
  1043          A.store.Bool(ptr + 36, false);
  1044          A.store.Bool(ptr + 32, false);
  1045          A.store.Bool(ptr + 0, false);
  1046          A.store.Bool(ptr + 33, false);
  1047          A.store.Float64(ptr + 8, 0);
  1048          A.store.Bool(ptr + 34, false);
  1049          A.store.Float64(ptr + 16, 0);
  1050          A.store.Bool(ptr + 35, false);
  1051          A.store.Float64(ptr + 24, 0);
  1052        } else {
  1053          A.store.Bool(ptr + 36, true);
  1054          A.store.Bool(ptr + 32, "success" in x ? true : false);
  1055          A.store.Bool(ptr + 0, x["success"] ? true : false);
  1056          A.store.Bool(ptr + 33, "fps" in x ? true : false);
  1057          A.store.Float64(ptr + 8, x["fps"] === undefined ? 0 : (x["fps"] as number));
  1058          A.store.Bool(ptr + 34, "commitDeviation" in x ? true : false);
  1059          A.store.Float64(ptr + 16, x["commitDeviation"] === undefined ? 0 : (x["commitDeviation"] as number));
  1060          A.store.Bool(ptr + 35, "renderQuality" in x ? true : false);
  1061          A.store.Float64(ptr + 24, x["renderQuality"] === undefined ? 0 : (x["renderQuality"] as number));
  1062        }
  1063      },
  1064      "load_ArcAppTracingInfo": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1065        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1066  
  1067        if (A.load.Bool(ptr + 32)) {
  1068          x["success"] = A.load.Bool(ptr + 0);
  1069        } else {
  1070          delete x["success"];
  1071        }
  1072        if (A.load.Bool(ptr + 33)) {
  1073          x["fps"] = A.load.Float64(ptr + 8);
  1074        } else {
  1075          delete x["fps"];
  1076        }
  1077        if (A.load.Bool(ptr + 34)) {
  1078          x["commitDeviation"] = A.load.Float64(ptr + 16);
  1079        } else {
  1080          delete x["commitDeviation"];
  1081        }
  1082        if (A.load.Bool(ptr + 35)) {
  1083          x["renderQuality"] = A.load.Float64(ptr + 24);
  1084        } else {
  1085          delete x["renderQuality"];
  1086        }
  1087        return create === A.H.TRUE ? A.H.push(x) : ref;
  1088      },
  1089  
  1090      "store_ArcPackageDict": (ptr: Pointer, ref: heap.Ref<any>) => {
  1091        const x = A.H.get<any>(ref);
  1092  
  1093        if (typeof x === "undefined") {
  1094          A.store.Bool(ptr + 30, false);
  1095          A.store.Ref(ptr + 0, undefined);
  1096          A.store.Bool(ptr + 26, false);
  1097          A.store.Int32(ptr + 4, 0);
  1098          A.store.Ref(ptr + 8, undefined);
  1099          A.store.Bool(ptr + 27, false);
  1100          A.store.Float64(ptr + 16, 0);
  1101          A.store.Bool(ptr + 28, false);
  1102          A.store.Bool(ptr + 24, false);
  1103          A.store.Bool(ptr + 29, false);
  1104          A.store.Bool(ptr + 25, false);
  1105        } else {
  1106          A.store.Bool(ptr + 30, true);
  1107          A.store.Ref(ptr + 0, x["packageName"]);
  1108          A.store.Bool(ptr + 26, "packageVersion" in x ? true : false);
  1109          A.store.Int32(ptr + 4, x["packageVersion"] === undefined ? 0 : (x["packageVersion"] as number));
  1110          A.store.Ref(ptr + 8, x["lastBackupAndroidId"]);
  1111          A.store.Bool(ptr + 27, "lastBackupTime" in x ? true : false);
  1112          A.store.Float64(ptr + 16, x["lastBackupTime"] === undefined ? 0 : (x["lastBackupTime"] as number));
  1113          A.store.Bool(ptr + 28, "shouldSync" in x ? true : false);
  1114          A.store.Bool(ptr + 24, x["shouldSync"] ? true : false);
  1115          A.store.Bool(ptr + 29, "vpnProvider" in x ? true : false);
  1116          A.store.Bool(ptr + 25, x["vpnProvider"] ? true : false);
  1117        }
  1118      },
  1119      "load_ArcPackageDict": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1120        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1121  
  1122        x["packageName"] = A.load.Ref(ptr + 0, undefined);
  1123        if (A.load.Bool(ptr + 26)) {
  1124          x["packageVersion"] = A.load.Int32(ptr + 4);
  1125        } else {
  1126          delete x["packageVersion"];
  1127        }
  1128        x["lastBackupAndroidId"] = A.load.Ref(ptr + 8, undefined);
  1129        if (A.load.Bool(ptr + 27)) {
  1130          x["lastBackupTime"] = A.load.Float64(ptr + 16);
  1131        } else {
  1132          delete x["lastBackupTime"];
  1133        }
  1134        if (A.load.Bool(ptr + 28)) {
  1135          x["shouldSync"] = A.load.Bool(ptr + 24);
  1136        } else {
  1137          delete x["shouldSync"];
  1138        }
  1139        if (A.load.Bool(ptr + 29)) {
  1140          x["vpnProvider"] = A.load.Bool(ptr + 25);
  1141        } else {
  1142          delete x["vpnProvider"];
  1143        }
  1144        return create === A.H.TRUE ? A.H.push(x) : ref;
  1145      },
  1146  
  1147      "store_ArcState": (ptr: Pointer, ref: heap.Ref<any>) => {
  1148        const x = A.H.get<any>(ref);
  1149  
  1150        if (typeof x === "undefined") {
  1151          A.store.Bool(ptr + 28, false);
  1152          A.store.Bool(ptr + 24, false);
  1153          A.store.Bool(ptr + 0, false);
  1154          A.store.Bool(ptr + 25, false);
  1155          A.store.Bool(ptr + 1, false);
  1156          A.store.Bool(ptr + 26, false);
  1157          A.store.Float64(ptr + 8, 0);
  1158          A.store.Bool(ptr + 27, false);
  1159          A.store.Float64(ptr + 16, 0);
  1160        } else {
  1161          A.store.Bool(ptr + 28, true);
  1162          A.store.Bool(ptr + 24, "provisioned" in x ? true : false);
  1163          A.store.Bool(ptr + 0, x["provisioned"] ? true : false);
  1164          A.store.Bool(ptr + 25, "tosNeeded" in x ? true : false);
  1165          A.store.Bool(ptr + 1, x["tosNeeded"] ? true : false);
  1166          A.store.Bool(ptr + 26, "preStartTime" in x ? true : false);
  1167          A.store.Float64(ptr + 8, x["preStartTime"] === undefined ? 0 : (x["preStartTime"] as number));
  1168          A.store.Bool(ptr + 27, "startTime" in x ? true : false);
  1169          A.store.Float64(ptr + 16, x["startTime"] === undefined ? 0 : (x["startTime"] as number));
  1170        }
  1171      },
  1172      "load_ArcState": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1173        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1174  
  1175        if (A.load.Bool(ptr + 24)) {
  1176          x["provisioned"] = A.load.Bool(ptr + 0);
  1177        } else {
  1178          delete x["provisioned"];
  1179        }
  1180        if (A.load.Bool(ptr + 25)) {
  1181          x["tosNeeded"] = A.load.Bool(ptr + 1);
  1182        } else {
  1183          delete x["tosNeeded"];
  1184        }
  1185        if (A.load.Bool(ptr + 26)) {
  1186          x["preStartTime"] = A.load.Float64(ptr + 8);
  1187        } else {
  1188          delete x["preStartTime"];
  1189        }
  1190        if (A.load.Bool(ptr + 27)) {
  1191          x["startTime"] = A.load.Float64(ptr + 16);
  1192        } else {
  1193          delete x["startTime"];
  1194        }
  1195        return create === A.H.TRUE ? A.H.push(x) : ref;
  1196      },
  1197  
  1198      "store_AssistantQueryResponse": (ptr: Pointer, ref: heap.Ref<any>) => {
  1199        const x = A.H.get<any>(ref);
  1200  
  1201        if (typeof x === "undefined") {
  1202          A.store.Bool(ptr + 16, false);
  1203          A.store.Ref(ptr + 0, undefined);
  1204          A.store.Ref(ptr + 4, undefined);
  1205          A.store.Ref(ptr + 8, undefined);
  1206          A.store.Ref(ptr + 12, undefined);
  1207        } else {
  1208          A.store.Bool(ptr + 16, true);
  1209          A.store.Ref(ptr + 0, x["text"]);
  1210          A.store.Ref(ptr + 4, x["htmlResponse"]);
  1211          A.store.Ref(ptr + 8, x["openUrl"]);
  1212          A.store.Ref(ptr + 12, x["openAppResponse"]);
  1213        }
  1214      },
  1215      "load_AssistantQueryResponse": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1216        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1217  
  1218        x["text"] = A.load.Ref(ptr + 0, undefined);
  1219        x["htmlResponse"] = A.load.Ref(ptr + 4, undefined);
  1220        x["openUrl"] = A.load.Ref(ptr + 8, undefined);
  1221        x["openAppResponse"] = A.load.Ref(ptr + 12, undefined);
  1222        return create === A.H.TRUE ? A.H.push(x) : ref;
  1223      },
  1224  
  1225      "store_AssistantQueryStatus": (ptr: Pointer, ref: heap.Ref<any>) => {
  1226        const x = A.H.get<any>(ref);
  1227  
  1228        if (typeof x === "undefined") {
  1229          A.store.Bool(ptr + 26, false);
  1230          A.store.Bool(ptr + 25, false);
  1231          A.store.Bool(ptr + 0, false);
  1232          A.store.Ref(ptr + 4, undefined);
  1233  
  1234          A.store.Bool(ptr + 8 + 16, false);
  1235          A.store.Ref(ptr + 8 + 0, undefined);
  1236          A.store.Ref(ptr + 8 + 4, undefined);
  1237          A.store.Ref(ptr + 8 + 8, undefined);
  1238          A.store.Ref(ptr + 8 + 12, undefined);
  1239        } else {
  1240          A.store.Bool(ptr + 26, true);
  1241          A.store.Bool(ptr + 25, "isMicOpen" in x ? true : false);
  1242          A.store.Bool(ptr + 0, x["isMicOpen"] ? true : false);
  1243          A.store.Ref(ptr + 4, x["queryText"]);
  1244  
  1245          if (typeof x["queryResponse"] === "undefined") {
  1246            A.store.Bool(ptr + 8 + 16, false);
  1247            A.store.Ref(ptr + 8 + 0, undefined);
  1248            A.store.Ref(ptr + 8 + 4, undefined);
  1249            A.store.Ref(ptr + 8 + 8, undefined);
  1250            A.store.Ref(ptr + 8 + 12, undefined);
  1251          } else {
  1252            A.store.Bool(ptr + 8 + 16, true);
  1253            A.store.Ref(ptr + 8 + 0, x["queryResponse"]["text"]);
  1254            A.store.Ref(ptr + 8 + 4, x["queryResponse"]["htmlResponse"]);
  1255            A.store.Ref(ptr + 8 + 8, x["queryResponse"]["openUrl"]);
  1256            A.store.Ref(ptr + 8 + 12, x["queryResponse"]["openAppResponse"]);
  1257          }
  1258        }
  1259      },
  1260      "load_AssistantQueryStatus": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1261        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1262  
  1263        if (A.load.Bool(ptr + 25)) {
  1264          x["isMicOpen"] = A.load.Bool(ptr + 0);
  1265        } else {
  1266          delete x["isMicOpen"];
  1267        }
  1268        x["queryText"] = A.load.Ref(ptr + 4, undefined);
  1269        if (A.load.Bool(ptr + 8 + 16)) {
  1270          x["queryResponse"] = {};
  1271          x["queryResponse"]["text"] = A.load.Ref(ptr + 8 + 0, undefined);
  1272          x["queryResponse"]["htmlResponse"] = A.load.Ref(ptr + 8 + 4, undefined);
  1273          x["queryResponse"]["openUrl"] = A.load.Ref(ptr + 8 + 8, undefined);
  1274          x["queryResponse"]["openAppResponse"] = A.load.Ref(ptr + 8 + 12, undefined);
  1275        } else {
  1276          delete x["queryResponse"];
  1277        }
  1278        return create === A.H.TRUE ? A.H.push(x) : ref;
  1279      },
  1280  
  1281      "store_CryptohomeRecoveryDataDict": (ptr: Pointer, ref: heap.Ref<any>) => {
  1282        const x = A.H.get<any>(ref);
  1283  
  1284        if (typeof x === "undefined") {
  1285          A.store.Bool(ptr + 8, false);
  1286          A.store.Ref(ptr + 0, undefined);
  1287          A.store.Ref(ptr + 4, undefined);
  1288        } else {
  1289          A.store.Bool(ptr + 8, true);
  1290          A.store.Ref(ptr + 0, x["reauthProofToken"]);
  1291          A.store.Ref(ptr + 4, x["refreshToken"]);
  1292        }
  1293      },
  1294      "load_CryptohomeRecoveryDataDict": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1295        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1296  
  1297        x["reauthProofToken"] = A.load.Ref(ptr + 0, undefined);
  1298        x["refreshToken"] = A.load.Ref(ptr + 4, undefined);
  1299        return create === A.H.TRUE ? A.H.push(x) : ref;
  1300      },
  1301  
  1302      "store_DesksInfo": (ptr: Pointer, ref: heap.Ref<any>) => {
  1303        const x = A.H.get<any>(ref);
  1304  
  1305        if (typeof x === "undefined") {
  1306          A.store.Bool(ptr + 19, false);
  1307          A.store.Bool(ptr + 16, false);
  1308          A.store.Int32(ptr + 0, 0);
  1309          A.store.Bool(ptr + 17, false);
  1310          A.store.Int32(ptr + 4, 0);
  1311          A.store.Bool(ptr + 18, false);
  1312          A.store.Bool(ptr + 8, false);
  1313          A.store.Ref(ptr + 12, undefined);
  1314        } else {
  1315          A.store.Bool(ptr + 19, true);
  1316          A.store.Bool(ptr + 16, "activeDeskIndex" in x ? true : false);
  1317          A.store.Int32(ptr + 0, x["activeDeskIndex"] === undefined ? 0 : (x["activeDeskIndex"] as number));
  1318          A.store.Bool(ptr + 17, "numDesks" in x ? true : false);
  1319          A.store.Int32(ptr + 4, x["numDesks"] === undefined ? 0 : (x["numDesks"] as number));
  1320          A.store.Bool(ptr + 18, "isAnimating" in x ? true : false);
  1321          A.store.Bool(ptr + 8, x["isAnimating"] ? true : false);
  1322          A.store.Ref(ptr + 12, x["deskContainers"]);
  1323        }
  1324      },
  1325      "load_DesksInfo": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1326        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1327  
  1328        if (A.load.Bool(ptr + 16)) {
  1329          x["activeDeskIndex"] = A.load.Int32(ptr + 0);
  1330        } else {
  1331          delete x["activeDeskIndex"];
  1332        }
  1333        if (A.load.Bool(ptr + 17)) {
  1334          x["numDesks"] = A.load.Int32(ptr + 4);
  1335        } else {
  1336          delete x["numDesks"];
  1337        }
  1338        if (A.load.Bool(ptr + 18)) {
  1339          x["isAnimating"] = A.load.Bool(ptr + 8);
  1340        } else {
  1341          delete x["isAnimating"];
  1342        }
  1343        x["deskContainers"] = A.load.Ref(ptr + 12, undefined);
  1344        return create === A.H.TRUE ? A.H.push(x) : ref;
  1345      },
  1346  
  1347      "store_DisplaySmoothnessData": (ptr: Pointer, ref: heap.Ref<any>) => {
  1348        const x = A.H.get<any>(ref);
  1349  
  1350        if (typeof x === "undefined") {
  1351          A.store.Bool(ptr + 19, false);
  1352          A.store.Bool(ptr + 16, false);
  1353          A.store.Int32(ptr + 0, 0);
  1354          A.store.Bool(ptr + 17, false);
  1355          A.store.Int32(ptr + 4, 0);
  1356          A.store.Bool(ptr + 18, false);
  1357          A.store.Int32(ptr + 8, 0);
  1358          A.store.Ref(ptr + 12, undefined);
  1359        } else {
  1360          A.store.Bool(ptr + 19, true);
  1361          A.store.Bool(ptr + 16, "framesExpected" in x ? true : false);
  1362          A.store.Int32(ptr + 0, x["framesExpected"] === undefined ? 0 : (x["framesExpected"] as number));
  1363          A.store.Bool(ptr + 17, "framesProduced" in x ? true : false);
  1364          A.store.Int32(ptr + 4, x["framesProduced"] === undefined ? 0 : (x["framesProduced"] as number));
  1365          A.store.Bool(ptr + 18, "jankCount" in x ? true : false);
  1366          A.store.Int32(ptr + 8, x["jankCount"] === undefined ? 0 : (x["jankCount"] as number));
  1367          A.store.Ref(ptr + 12, x["throughput"]);
  1368        }
  1369      },
  1370      "load_DisplaySmoothnessData": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1371        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1372  
  1373        if (A.load.Bool(ptr + 16)) {
  1374          x["framesExpected"] = A.load.Int32(ptr + 0);
  1375        } else {
  1376          delete x["framesExpected"];
  1377        }
  1378        if (A.load.Bool(ptr + 17)) {
  1379          x["framesProduced"] = A.load.Int32(ptr + 4);
  1380        } else {
  1381          delete x["framesProduced"];
  1382        }
  1383        if (A.load.Bool(ptr + 18)) {
  1384          x["jankCount"] = A.load.Int32(ptr + 8);
  1385        } else {
  1386          delete x["jankCount"];
  1387        }
  1388        x["throughput"] = A.load.Ref(ptr + 12, undefined);
  1389        return create === A.H.TRUE ? A.H.push(x) : ref;
  1390      },
  1391  
  1392      "store_ExtensionInfoDict": (ptr: Pointer, ref: heap.Ref<any>) => {
  1393        const x = A.H.get<any>(ref);
  1394  
  1395        if (typeof x === "undefined") {
  1396          A.store.Bool(ptr + 52, false);
  1397          A.store.Ref(ptr + 0, undefined);
  1398          A.store.Ref(ptr + 4, undefined);
  1399          A.store.Ref(ptr + 8, undefined);
  1400          A.store.Ref(ptr + 12, undefined);
  1401          A.store.Ref(ptr + 16, undefined);
  1402          A.store.Ref(ptr + 20, undefined);
  1403          A.store.Ref(ptr + 24, undefined);
  1404          A.store.Ref(ptr + 28, undefined);
  1405          A.store.Ref(ptr + 32, undefined);
  1406          A.store.Ref(ptr + 36, undefined);
  1407          A.store.Bool(ptr + 46, false);
  1408          A.store.Bool(ptr + 40, false);
  1409          A.store.Bool(ptr + 47, false);
  1410          A.store.Bool(ptr + 41, false);
  1411          A.store.Bool(ptr + 48, false);
  1412          A.store.Bool(ptr + 42, false);
  1413          A.store.Bool(ptr + 49, false);
  1414          A.store.Bool(ptr + 43, false);
  1415          A.store.Bool(ptr + 50, false);
  1416          A.store.Bool(ptr + 44, false);
  1417          A.store.Bool(ptr + 51, false);
  1418          A.store.Bool(ptr + 45, false);
  1419        } else {
  1420          A.store.Bool(ptr + 52, true);
  1421          A.store.Ref(ptr + 0, x["id"]);
  1422          A.store.Ref(ptr + 4, x["version"]);
  1423          A.store.Ref(ptr + 8, x["name"]);
  1424          A.store.Ref(ptr + 12, x["publicKey"]);
  1425          A.store.Ref(ptr + 16, x["description"]);
  1426          A.store.Ref(ptr + 20, x["backgroundUrl"]);
  1427          A.store.Ref(ptr + 24, x["optionsUrl"]);
  1428          A.store.Ref(ptr + 28, x["hostPermissions"]);
  1429          A.store.Ref(ptr + 32, x["effectiveHostPermissions"]);
  1430          A.store.Ref(ptr + 36, x["apiPermissions"]);
  1431          A.store.Bool(ptr + 46, "isComponent" in x ? true : false);
  1432          A.store.Bool(ptr + 40, x["isComponent"] ? true : false);
  1433          A.store.Bool(ptr + 47, "isInternal" in x ? true : false);
  1434          A.store.Bool(ptr + 41, x["isInternal"] ? true : false);
  1435          A.store.Bool(ptr + 48, "isUserInstalled" in x ? true : false);
  1436          A.store.Bool(ptr + 42, x["isUserInstalled"] ? true : false);
  1437          A.store.Bool(ptr + 49, "isEnabled" in x ? true : false);
  1438          A.store.Bool(ptr + 43, x["isEnabled"] ? true : false);
  1439          A.store.Bool(ptr + 50, "allowedInIncognito" in x ? true : false);
  1440          A.store.Bool(ptr + 44, x["allowedInIncognito"] ? true : false);
  1441          A.store.Bool(ptr + 51, "hasPageAction" in x ? true : false);
  1442          A.store.Bool(ptr + 45, x["hasPageAction"] ? true : false);
  1443        }
  1444      },
  1445      "load_ExtensionInfoDict": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1446        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1447  
  1448        x["id"] = A.load.Ref(ptr + 0, undefined);
  1449        x["version"] = A.load.Ref(ptr + 4, undefined);
  1450        x["name"] = A.load.Ref(ptr + 8, undefined);
  1451        x["publicKey"] = A.load.Ref(ptr + 12, undefined);
  1452        x["description"] = A.load.Ref(ptr + 16, undefined);
  1453        x["backgroundUrl"] = A.load.Ref(ptr + 20, undefined);
  1454        x["optionsUrl"] = A.load.Ref(ptr + 24, undefined);
  1455        x["hostPermissions"] = A.load.Ref(ptr + 28, undefined);
  1456        x["effectiveHostPermissions"] = A.load.Ref(ptr + 32, undefined);
  1457        x["apiPermissions"] = A.load.Ref(ptr + 36, undefined);
  1458        if (A.load.Bool(ptr + 46)) {
  1459          x["isComponent"] = A.load.Bool(ptr + 40);
  1460        } else {
  1461          delete x["isComponent"];
  1462        }
  1463        if (A.load.Bool(ptr + 47)) {
  1464          x["isInternal"] = A.load.Bool(ptr + 41);
  1465        } else {
  1466          delete x["isInternal"];
  1467        }
  1468        if (A.load.Bool(ptr + 48)) {
  1469          x["isUserInstalled"] = A.load.Bool(ptr + 42);
  1470        } else {
  1471          delete x["isUserInstalled"];
  1472        }
  1473        if (A.load.Bool(ptr + 49)) {
  1474          x["isEnabled"] = A.load.Bool(ptr + 43);
  1475        } else {
  1476          delete x["isEnabled"];
  1477        }
  1478        if (A.load.Bool(ptr + 50)) {
  1479          x["allowedInIncognito"] = A.load.Bool(ptr + 44);
  1480        } else {
  1481          delete x["allowedInIncognito"];
  1482        }
  1483        if (A.load.Bool(ptr + 51)) {
  1484          x["hasPageAction"] = A.load.Bool(ptr + 45);
  1485        } else {
  1486          delete x["hasPageAction"];
  1487        }
  1488        return create === A.H.TRUE ? A.H.push(x) : ref;
  1489      },
  1490  
  1491      "store_ExtensionsInfoArray": (ptr: Pointer, ref: heap.Ref<any>) => {
  1492        const x = A.H.get<any>(ref);
  1493  
  1494        if (typeof x === "undefined") {
  1495          A.store.Bool(ptr + 4, false);
  1496          A.store.Ref(ptr + 0, undefined);
  1497        } else {
  1498          A.store.Bool(ptr + 4, true);
  1499          A.store.Ref(ptr + 0, x["extensions"]);
  1500        }
  1501      },
  1502      "load_ExtensionsInfoArray": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1503        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1504  
  1505        x["extensions"] = A.load.Ref(ptr + 0, undefined);
  1506        return create === A.H.TRUE ? A.H.push(x) : ref;
  1507      },
  1508  
  1509      "store_FrameCountingPerSinkData": (ptr: Pointer, ref: heap.Ref<any>) => {
  1510        const x = A.H.get<any>(ref);
  1511  
  1512        if (typeof x === "undefined") {
  1513          A.store.Bool(ptr + 17, false);
  1514          A.store.Ref(ptr + 0, undefined);
  1515          A.store.Bool(ptr + 16, false);
  1516          A.store.Bool(ptr + 4, false);
  1517          A.store.Ref(ptr + 8, undefined);
  1518          A.store.Ref(ptr + 12, undefined);
  1519        } else {
  1520          A.store.Bool(ptr + 17, true);
  1521          A.store.Ref(ptr + 0, x["sinkType"]);
  1522          A.store.Bool(ptr + 16, "isRoot" in x ? true : false);
  1523          A.store.Bool(ptr + 4, x["isRoot"] ? true : false);
  1524          A.store.Ref(ptr + 8, x["debugLabel"]);
  1525          A.store.Ref(ptr + 12, x["presentedFrames"]);
  1526        }
  1527      },
  1528      "load_FrameCountingPerSinkData": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1529        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1530  
  1531        x["sinkType"] = A.load.Ref(ptr + 0, undefined);
  1532        if (A.load.Bool(ptr + 16)) {
  1533          x["isRoot"] = A.load.Bool(ptr + 4);
  1534        } else {
  1535          delete x["isRoot"];
  1536        }
  1537        x["debugLabel"] = A.load.Ref(ptr + 8, undefined);
  1538        x["presentedFrames"] = A.load.Ref(ptr + 12, undefined);
  1539        return create === A.H.TRUE ? A.H.push(x) : ref;
  1540      },
  1541  
  1542      "store_GetAccessTokenData": (ptr: Pointer, ref: heap.Ref<any>) => {
  1543        const x = A.H.get<any>(ref);
  1544  
  1545        if (typeof x === "undefined") {
  1546          A.store.Bool(ptr + 8, false);
  1547          A.store.Ref(ptr + 0, undefined);
  1548          A.store.Ref(ptr + 4, undefined);
  1549        } else {
  1550          A.store.Bool(ptr + 8, true);
  1551          A.store.Ref(ptr + 0, x["accessToken"]);
  1552          A.store.Ref(ptr + 4, x["expirationTimeUnixMs"]);
  1553        }
  1554      },
  1555      "load_GetAccessTokenData": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1556        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1557  
  1558        x["accessToken"] = A.load.Ref(ptr + 0, undefined);
  1559        x["expirationTimeUnixMs"] = A.load.Ref(ptr + 4, undefined);
  1560        return create === A.H.TRUE ? A.H.push(x) : ref;
  1561      },
  1562  
  1563      "store_GetAccessTokenParams": (ptr: Pointer, ref: heap.Ref<any>) => {
  1564        const x = A.H.get<any>(ref);
  1565  
  1566        if (typeof x === "undefined") {
  1567          A.store.Bool(ptr + 13, false);
  1568          A.store.Ref(ptr + 0, undefined);
  1569          A.store.Ref(ptr + 4, undefined);
  1570          A.store.Bool(ptr + 12, false);
  1571          A.store.Int32(ptr + 8, 0);
  1572        } else {
  1573          A.store.Bool(ptr + 13, true);
  1574          A.store.Ref(ptr + 0, x["email"]);
  1575          A.store.Ref(ptr + 4, x["scopes"]);
  1576          A.store.Bool(ptr + 12, "timeoutMs" in x ? true : false);
  1577          A.store.Int32(ptr + 8, x["timeoutMs"] === undefined ? 0 : (x["timeoutMs"] as number));
  1578        }
  1579      },
  1580      "load_GetAccessTokenParams": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1581        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1582  
  1583        x["email"] = A.load.Ref(ptr + 0, undefined);
  1584        x["scopes"] = A.load.Ref(ptr + 4, undefined);
  1585        if (A.load.Bool(ptr + 12)) {
  1586          x["timeoutMs"] = A.load.Int32(ptr + 8);
  1587        } else {
  1588          delete x["timeoutMs"];
  1589        }
  1590        return create === A.H.TRUE ? A.H.push(x) : ref;
  1591      },
  1592  
  1593      "store_GetCurrentInputMethodDescriptorData": (ptr: Pointer, ref: heap.Ref<any>) => {
  1594        const x = A.H.get<any>(ref);
  1595  
  1596        if (typeof x === "undefined") {
  1597          A.store.Bool(ptr + 4, false);
  1598          A.store.Ref(ptr + 0, undefined);
  1599        } else {
  1600          A.store.Bool(ptr + 4, true);
  1601          A.store.Ref(ptr + 0, x["keyboardLayout"]);
  1602        }
  1603      },
  1604      "load_GetCurrentInputMethodDescriptorData": (
  1605        ptr: Pointer,
  1606        create: heap.Ref<boolean>,
  1607        ref: heap.Ref<any>
  1608      ): heap.Ref<any> => {
  1609        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1610  
  1611        x["keyboardLayout"] = A.load.Ref(ptr + 0, undefined);
  1612        return create === A.H.TRUE ? A.H.push(x) : ref;
  1613      },
  1614      "constof_LacrosState": (ref: heap.Ref<string>): number => {
  1615        const idx = [
  1616          "NotInitialized",
  1617          "Reloading",
  1618          "Mounting",
  1619          "Unavailable",
  1620          "Stopped",
  1621          "CreatingLogFile",
  1622          "PreLaunched",
  1623          "Starting",
  1624          "Running",
  1625          "Terminating",
  1626        ].indexOf(A.H.get(ref));
  1627        return idx < 0 ? 0 : idx + 1;
  1628      },
  1629      "constof_LacrosMode": (ref: heap.Ref<string>): number => {
  1630        const idx = ["Disabled", "Only"].indexOf(A.H.get(ref));
  1631        return idx < 0 ? 0 : idx + 1;
  1632      },
  1633  
  1634      "store_LacrosInfo": (ptr: Pointer, ref: heap.Ref<any>) => {
  1635        const x = A.H.get<any>(ref);
  1636  
  1637        if (typeof x === "undefined") {
  1638          A.store.Bool(ptr + 17, false);
  1639          A.store.Enum(ptr + 0, -1);
  1640          A.store.Bool(ptr + 16, false);
  1641          A.store.Bool(ptr + 4, false);
  1642          A.store.Ref(ptr + 8, undefined);
  1643          A.store.Enum(ptr + 12, -1);
  1644        } else {
  1645          A.store.Bool(ptr + 17, true);
  1646          A.store.Enum(
  1647            ptr + 0,
  1648            [
  1649              "NotInitialized",
  1650              "Reloading",
  1651              "Mounting",
  1652              "Unavailable",
  1653              "Stopped",
  1654              "CreatingLogFile",
  1655              "PreLaunched",
  1656              "Starting",
  1657              "Running",
  1658              "Terminating",
  1659            ].indexOf(x["state"] as string)
  1660          );
  1661          A.store.Bool(ptr + 16, "isKeepAlive" in x ? true : false);
  1662          A.store.Bool(ptr + 4, x["isKeepAlive"] ? true : false);
  1663          A.store.Ref(ptr + 8, x["lacrosPath"]);
  1664          A.store.Enum(ptr + 12, ["Disabled", "Only"].indexOf(x["mode"] as string));
  1665        }
  1666      },
  1667      "load_LacrosInfo": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1668        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1669  
  1670        x["state"] = A.load.Enum(ptr + 0, [
  1671          "NotInitialized",
  1672          "Reloading",
  1673          "Mounting",
  1674          "Unavailable",
  1675          "Stopped",
  1676          "CreatingLogFile",
  1677          "PreLaunched",
  1678          "Starting",
  1679          "Running",
  1680          "Terminating",
  1681        ]);
  1682        if (A.load.Bool(ptr + 16)) {
  1683          x["isKeepAlive"] = A.load.Bool(ptr + 4);
  1684        } else {
  1685          delete x["isKeepAlive"];
  1686        }
  1687        x["lacrosPath"] = A.load.Ref(ptr + 8, undefined);
  1688        x["mode"] = A.load.Enum(ptr + 12, ["Disabled", "Only"]);
  1689        return create === A.H.TRUE ? A.H.push(x) : ref;
  1690      },
  1691  
  1692      "store_LauncherSearchBoxState": (ptr: Pointer, ref: heap.Ref<any>) => {
  1693        const x = A.H.get<any>(ref);
  1694  
  1695        if (typeof x === "undefined") {
  1696          A.store.Bool(ptr + 4, false);
  1697          A.store.Ref(ptr + 0, undefined);
  1698        } else {
  1699          A.store.Bool(ptr + 4, true);
  1700          A.store.Ref(ptr + 0, x["ghostText"]);
  1701        }
  1702      },
  1703      "load_LauncherSearchBoxState": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1704        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1705  
  1706        x["ghostText"] = A.load.Ref(ptr + 0, undefined);
  1707        return create === A.H.TRUE ? A.H.push(x) : ref;
  1708      },
  1709  
  1710      "store_LoginEventRecorderData": (ptr: Pointer, ref: heap.Ref<any>) => {
  1711        const x = A.H.get<any>(ref);
  1712  
  1713        if (typeof x === "undefined") {
  1714          A.store.Bool(ptr + 9, false);
  1715          A.store.Ref(ptr + 0, undefined);
  1716          A.store.Bool(ptr + 8, false);
  1717          A.store.Int32(ptr + 4, 0);
  1718        } else {
  1719          A.store.Bool(ptr + 9, true);
  1720          A.store.Ref(ptr + 0, x["name"]);
  1721          A.store.Bool(ptr + 8, "microsecnods_since_unix_epoch" in x ? true : false);
  1722          A.store.Int32(
  1723            ptr + 4,
  1724            x["microsecnods_since_unix_epoch"] === undefined ? 0 : (x["microsecnods_since_unix_epoch"] as number)
  1725          );
  1726        }
  1727      },
  1728      "load_LoginEventRecorderData": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1729        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1730  
  1731        x["name"] = A.load.Ref(ptr + 0, undefined);
  1732        if (A.load.Bool(ptr + 8)) {
  1733          x["microsecnods_since_unix_epoch"] = A.load.Int32(ptr + 4);
  1734        } else {
  1735          delete x["microsecnods_since_unix_epoch"];
  1736        }
  1737        return create === A.H.TRUE ? A.H.push(x) : ref;
  1738      },
  1739  
  1740      "store_SystemWebApp": (ptr: Pointer, ref: heap.Ref<any>) => {
  1741        const x = A.H.get<any>(ref);
  1742  
  1743        if (typeof x === "undefined") {
  1744          A.store.Bool(ptr + 16, false);
  1745          A.store.Ref(ptr + 0, undefined);
  1746          A.store.Ref(ptr + 4, undefined);
  1747          A.store.Ref(ptr + 8, undefined);
  1748          A.store.Ref(ptr + 12, undefined);
  1749        } else {
  1750          A.store.Bool(ptr + 16, true);
  1751          A.store.Ref(ptr + 0, x["internalName"]);
  1752          A.store.Ref(ptr + 4, x["url"]);
  1753          A.store.Ref(ptr + 8, x["name"]);
  1754          A.store.Ref(ptr + 12, x["startUrl"]);
  1755        }
  1756      },
  1757      "load_SystemWebApp": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1758        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1759  
  1760        x["internalName"] = A.load.Ref(ptr + 0, undefined);
  1761        x["url"] = A.load.Ref(ptr + 4, undefined);
  1762        x["name"] = A.load.Ref(ptr + 8, undefined);
  1763        x["startUrl"] = A.load.Ref(ptr + 12, undefined);
  1764        return create === A.H.TRUE ? A.H.push(x) : ref;
  1765      },
  1766  
  1767      "store_ScrollableShelfInfo": (ptr: Pointer, ref: heap.Ref<any>) => {
  1768        const x = A.H.get<any>(ref);
  1769  
  1770        if (typeof x === "undefined") {
  1771          A.store.Bool(ptr + 116, false);
  1772          A.store.Bool(ptr + 109, false);
  1773          A.store.Float64(ptr + 0, 0);
  1774          A.store.Bool(ptr + 110, false);
  1775          A.store.Float64(ptr + 8, 0);
  1776          A.store.Bool(ptr + 111, false);
  1777          A.store.Float64(ptr + 16, 0);
  1778  
  1779          A.store.Bool(ptr + 24 + 36, false);
  1780          A.store.Bool(ptr + 24 + 32, false);
  1781          A.store.Float64(ptr + 24 + 0, 0);
  1782          A.store.Bool(ptr + 24 + 33, false);
  1783          A.store.Float64(ptr + 24 + 8, 0);
  1784          A.store.Bool(ptr + 24 + 34, false);
  1785          A.store.Float64(ptr + 24 + 16, 0);
  1786          A.store.Bool(ptr + 24 + 35, false);
  1787          A.store.Float64(ptr + 24 + 24, 0);
  1788  
  1789          A.store.Bool(ptr + 64 + 36, false);
  1790          A.store.Bool(ptr + 64 + 32, false);
  1791          A.store.Float64(ptr + 64 + 0, 0);
  1792          A.store.Bool(ptr + 64 + 33, false);
  1793          A.store.Float64(ptr + 64 + 8, 0);
  1794          A.store.Bool(ptr + 64 + 34, false);
  1795          A.store.Float64(ptr + 64 + 16, 0);
  1796          A.store.Bool(ptr + 64 + 35, false);
  1797          A.store.Float64(ptr + 64 + 24, 0);
  1798          A.store.Bool(ptr + 112, false);
  1799          A.store.Bool(ptr + 101, false);
  1800          A.store.Bool(ptr + 113, false);
  1801          A.store.Bool(ptr + 102, false);
  1802          A.store.Bool(ptr + 114, false);
  1803          A.store.Bool(ptr + 103, false);
  1804          A.store.Ref(ptr + 104, undefined);
  1805          A.store.Bool(ptr + 115, false);
  1806          A.store.Bool(ptr + 108, false);
  1807        } else {
  1808          A.store.Bool(ptr + 116, true);
  1809          A.store.Bool(ptr + 109, "mainAxisOffset" in x ? true : false);
  1810          A.store.Float64(ptr + 0, x["mainAxisOffset"] === undefined ? 0 : (x["mainAxisOffset"] as number));
  1811          A.store.Bool(ptr + 110, "pageOffset" in x ? true : false);
  1812          A.store.Float64(ptr + 8, x["pageOffset"] === undefined ? 0 : (x["pageOffset"] as number));
  1813          A.store.Bool(ptr + 111, "targetMainAxisOffset" in x ? true : false);
  1814          A.store.Float64(ptr + 16, x["targetMainAxisOffset"] === undefined ? 0 : (x["targetMainAxisOffset"] as number));
  1815  
  1816          if (typeof x["leftArrowBounds"] === "undefined") {
  1817            A.store.Bool(ptr + 24 + 36, false);
  1818            A.store.Bool(ptr + 24 + 32, false);
  1819            A.store.Float64(ptr + 24 + 0, 0);
  1820            A.store.Bool(ptr + 24 + 33, false);
  1821            A.store.Float64(ptr + 24 + 8, 0);
  1822            A.store.Bool(ptr + 24 + 34, false);
  1823            A.store.Float64(ptr + 24 + 16, 0);
  1824            A.store.Bool(ptr + 24 + 35, false);
  1825            A.store.Float64(ptr + 24 + 24, 0);
  1826          } else {
  1827            A.store.Bool(ptr + 24 + 36, true);
  1828            A.store.Bool(ptr + 24 + 32, "left" in x["leftArrowBounds"] ? true : false);
  1829            A.store.Float64(
  1830              ptr + 24 + 0,
  1831              x["leftArrowBounds"]["left"] === undefined ? 0 : (x["leftArrowBounds"]["left"] as number)
  1832            );
  1833            A.store.Bool(ptr + 24 + 33, "top" in x["leftArrowBounds"] ? true : false);
  1834            A.store.Float64(
  1835              ptr + 24 + 8,
  1836              x["leftArrowBounds"]["top"] === undefined ? 0 : (x["leftArrowBounds"]["top"] as number)
  1837            );
  1838            A.store.Bool(ptr + 24 + 34, "width" in x["leftArrowBounds"] ? true : false);
  1839            A.store.Float64(
  1840              ptr + 24 + 16,
  1841              x["leftArrowBounds"]["width"] === undefined ? 0 : (x["leftArrowBounds"]["width"] as number)
  1842            );
  1843            A.store.Bool(ptr + 24 + 35, "height" in x["leftArrowBounds"] ? true : false);
  1844            A.store.Float64(
  1845              ptr + 24 + 24,
  1846              x["leftArrowBounds"]["height"] === undefined ? 0 : (x["leftArrowBounds"]["height"] as number)
  1847            );
  1848          }
  1849  
  1850          if (typeof x["rightArrowBounds"] === "undefined") {
  1851            A.store.Bool(ptr + 64 + 36, false);
  1852            A.store.Bool(ptr + 64 + 32, false);
  1853            A.store.Float64(ptr + 64 + 0, 0);
  1854            A.store.Bool(ptr + 64 + 33, false);
  1855            A.store.Float64(ptr + 64 + 8, 0);
  1856            A.store.Bool(ptr + 64 + 34, false);
  1857            A.store.Float64(ptr + 64 + 16, 0);
  1858            A.store.Bool(ptr + 64 + 35, false);
  1859            A.store.Float64(ptr + 64 + 24, 0);
  1860          } else {
  1861            A.store.Bool(ptr + 64 + 36, true);
  1862            A.store.Bool(ptr + 64 + 32, "left" in x["rightArrowBounds"] ? true : false);
  1863            A.store.Float64(
  1864              ptr + 64 + 0,
  1865              x["rightArrowBounds"]["left"] === undefined ? 0 : (x["rightArrowBounds"]["left"] as number)
  1866            );
  1867            A.store.Bool(ptr + 64 + 33, "top" in x["rightArrowBounds"] ? true : false);
  1868            A.store.Float64(
  1869              ptr + 64 + 8,
  1870              x["rightArrowBounds"]["top"] === undefined ? 0 : (x["rightArrowBounds"]["top"] as number)
  1871            );
  1872            A.store.Bool(ptr + 64 + 34, "width" in x["rightArrowBounds"] ? true : false);
  1873            A.store.Float64(
  1874              ptr + 64 + 16,
  1875              x["rightArrowBounds"]["width"] === undefined ? 0 : (x["rightArrowBounds"]["width"] as number)
  1876            );
  1877            A.store.Bool(ptr + 64 + 35, "height" in x["rightArrowBounds"] ? true : false);
  1878            A.store.Float64(
  1879              ptr + 64 + 24,
  1880              x["rightArrowBounds"]["height"] === undefined ? 0 : (x["rightArrowBounds"]["height"] as number)
  1881            );
  1882          }
  1883          A.store.Bool(ptr + 112, "isAnimating" in x ? true : false);
  1884          A.store.Bool(ptr + 101, x["isAnimating"] ? true : false);
  1885          A.store.Bool(ptr + 113, "iconsUnderAnimation" in x ? true : false);
  1886          A.store.Bool(ptr + 102, x["iconsUnderAnimation"] ? true : false);
  1887          A.store.Bool(ptr + 114, "isOverflow" in x ? true : false);
  1888          A.store.Bool(ptr + 103, x["isOverflow"] ? true : false);
  1889          A.store.Ref(ptr + 104, x["iconsBoundsInScreen"]);
  1890          A.store.Bool(ptr + 115, "isShelfWidgetAnimating" in x ? true : false);
  1891          A.store.Bool(ptr + 108, x["isShelfWidgetAnimating"] ? true : false);
  1892        }
  1893      },
  1894      "load_ScrollableShelfInfo": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  1895        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  1896  
  1897        if (A.load.Bool(ptr + 109)) {
  1898          x["mainAxisOffset"] = A.load.Float64(ptr + 0);
  1899        } else {
  1900          delete x["mainAxisOffset"];
  1901        }
  1902        if (A.load.Bool(ptr + 110)) {
  1903          x["pageOffset"] = A.load.Float64(ptr + 8);
  1904        } else {
  1905          delete x["pageOffset"];
  1906        }
  1907        if (A.load.Bool(ptr + 111)) {
  1908          x["targetMainAxisOffset"] = A.load.Float64(ptr + 16);
  1909        } else {
  1910          delete x["targetMainAxisOffset"];
  1911        }
  1912        if (A.load.Bool(ptr + 24 + 36)) {
  1913          x["leftArrowBounds"] = {};
  1914          if (A.load.Bool(ptr + 24 + 32)) {
  1915            x["leftArrowBounds"]["left"] = A.load.Float64(ptr + 24 + 0);
  1916          } else {
  1917            delete x["leftArrowBounds"]["left"];
  1918          }
  1919          if (A.load.Bool(ptr + 24 + 33)) {
  1920            x["leftArrowBounds"]["top"] = A.load.Float64(ptr + 24 + 8);
  1921          } else {
  1922            delete x["leftArrowBounds"]["top"];
  1923          }
  1924          if (A.load.Bool(ptr + 24 + 34)) {
  1925            x["leftArrowBounds"]["width"] = A.load.Float64(ptr + 24 + 16);
  1926          } else {
  1927            delete x["leftArrowBounds"]["width"];
  1928          }
  1929          if (A.load.Bool(ptr + 24 + 35)) {
  1930            x["leftArrowBounds"]["height"] = A.load.Float64(ptr + 24 + 24);
  1931          } else {
  1932            delete x["leftArrowBounds"]["height"];
  1933          }
  1934        } else {
  1935          delete x["leftArrowBounds"];
  1936        }
  1937        if (A.load.Bool(ptr + 64 + 36)) {
  1938          x["rightArrowBounds"] = {};
  1939          if (A.load.Bool(ptr + 64 + 32)) {
  1940            x["rightArrowBounds"]["left"] = A.load.Float64(ptr + 64 + 0);
  1941          } else {
  1942            delete x["rightArrowBounds"]["left"];
  1943          }
  1944          if (A.load.Bool(ptr + 64 + 33)) {
  1945            x["rightArrowBounds"]["top"] = A.load.Float64(ptr + 64 + 8);
  1946          } else {
  1947            delete x["rightArrowBounds"]["top"];
  1948          }
  1949          if (A.load.Bool(ptr + 64 + 34)) {
  1950            x["rightArrowBounds"]["width"] = A.load.Float64(ptr + 64 + 16);
  1951          } else {
  1952            delete x["rightArrowBounds"]["width"];
  1953          }
  1954          if (A.load.Bool(ptr + 64 + 35)) {
  1955            x["rightArrowBounds"]["height"] = A.load.Float64(ptr + 64 + 24);
  1956          } else {
  1957            delete x["rightArrowBounds"]["height"];
  1958          }
  1959        } else {
  1960          delete x["rightArrowBounds"];
  1961        }
  1962        if (A.load.Bool(ptr + 112)) {
  1963          x["isAnimating"] = A.load.Bool(ptr + 101);
  1964        } else {
  1965          delete x["isAnimating"];
  1966        }
  1967        if (A.load.Bool(ptr + 113)) {
  1968          x["iconsUnderAnimation"] = A.load.Bool(ptr + 102);
  1969        } else {
  1970          delete x["iconsUnderAnimation"];
  1971        }
  1972        if (A.load.Bool(ptr + 114)) {
  1973          x["isOverflow"] = A.load.Bool(ptr + 103);
  1974        } else {
  1975          delete x["isOverflow"];
  1976        }
  1977        x["iconsBoundsInScreen"] = A.load.Ref(ptr + 104, undefined);
  1978        if (A.load.Bool(ptr + 115)) {
  1979          x["isShelfWidgetAnimating"] = A.load.Bool(ptr + 108);
  1980        } else {
  1981          delete x["isShelfWidgetAnimating"];
  1982        }
  1983        return create === A.H.TRUE ? A.H.push(x) : ref;
  1984      },
  1985      "constof_ShelfAlignmentType": (ref: heap.Ref<string>): number => {
  1986        const idx = ["Bottom", "Left", "Right"].indexOf(A.H.get(ref));
  1987        return idx < 0 ? 0 : idx + 1;
  1988      },
  1989      "constof_ShelfItemType": (ref: heap.Ref<string>): number => {
  1990        const idx = ["PinnedApp", "BrowserShortcut", "App", "UnpinnedBrowserShortcut", "Dialog"].indexOf(A.H.get(ref));
  1991        return idx < 0 ? 0 : idx + 1;
  1992      },
  1993      "constof_ShelfItemStatus": (ref: heap.Ref<string>): number => {
  1994        const idx = ["Closed", "Running", "Attention"].indexOf(A.H.get(ref));
  1995        return idx < 0 ? 0 : idx + 1;
  1996      },
  1997  
  1998      "store_ShelfItem": (ptr: Pointer, ref: heap.Ref<any>) => {
  1999        const x = A.H.get<any>(ref);
  2000  
  2001        if (typeof x === "undefined") {
  2002          A.store.Bool(ptr + 28, false);
  2003          A.store.Ref(ptr + 0, undefined);
  2004          A.store.Ref(ptr + 4, undefined);
  2005          A.store.Ref(ptr + 8, undefined);
  2006          A.store.Enum(ptr + 12, -1);
  2007          A.store.Enum(ptr + 16, -1);
  2008          A.store.Bool(ptr + 24, false);
  2009          A.store.Bool(ptr + 20, false);
  2010          A.store.Bool(ptr + 25, false);
  2011          A.store.Bool(ptr + 21, false);
  2012          A.store.Bool(ptr + 26, false);
  2013          A.store.Bool(ptr + 22, false);
  2014          A.store.Bool(ptr + 27, false);
  2015          A.store.Bool(ptr + 23, false);
  2016        } else {
  2017          A.store.Bool(ptr + 28, true);
  2018          A.store.Ref(ptr + 0, x["appId"]);
  2019          A.store.Ref(ptr + 4, x["launchId"]);
  2020          A.store.Ref(ptr + 8, x["title"]);
  2021          A.store.Enum(
  2022            ptr + 12,
  2023            ["PinnedApp", "BrowserShortcut", "App", "UnpinnedBrowserShortcut", "Dialog"].indexOf(x["type"] as string)
  2024          );
  2025          A.store.Enum(ptr + 16, ["Closed", "Running", "Attention"].indexOf(x["status"] as string));
  2026          A.store.Bool(ptr + 24, "showsTooltip" in x ? true : false);
  2027          A.store.Bool(ptr + 20, x["showsTooltip"] ? true : false);
  2028          A.store.Bool(ptr + 25, "pinnedByPolicy" in x ? true : false);
  2029          A.store.Bool(ptr + 21, x["pinnedByPolicy"] ? true : false);
  2030          A.store.Bool(ptr + 26, "pinStateForcedByType" in x ? true : false);
  2031          A.store.Bool(ptr + 22, x["pinStateForcedByType"] ? true : false);
  2032          A.store.Bool(ptr + 27, "hasNotification" in x ? true : false);
  2033          A.store.Bool(ptr + 23, x["hasNotification"] ? true : false);
  2034        }
  2035      },
  2036      "load_ShelfItem": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  2037        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  2038  
  2039        x["appId"] = A.load.Ref(ptr + 0, undefined);
  2040        x["launchId"] = A.load.Ref(ptr + 4, undefined);
  2041        x["title"] = A.load.Ref(ptr + 8, undefined);
  2042        x["type"] = A.load.Enum(ptr + 12, ["PinnedApp", "BrowserShortcut", "App", "UnpinnedBrowserShortcut", "Dialog"]);
  2043        x["status"] = A.load.Enum(ptr + 16, ["Closed", "Running", "Attention"]);
  2044        if (A.load.Bool(ptr + 24)) {
  2045          x["showsTooltip"] = A.load.Bool(ptr + 20);
  2046        } else {
  2047          delete x["showsTooltip"];
  2048        }
  2049        if (A.load.Bool(ptr + 25)) {
  2050          x["pinnedByPolicy"] = A.load.Bool(ptr + 21);
  2051        } else {
  2052          delete x["pinnedByPolicy"];
  2053        }
  2054        if (A.load.Bool(ptr + 26)) {
  2055          x["pinStateForcedByType"] = A.load.Bool(ptr + 22);
  2056        } else {
  2057          delete x["pinStateForcedByType"];
  2058        }
  2059        if (A.load.Bool(ptr + 27)) {
  2060          x["hasNotification"] = A.load.Bool(ptr + 23);
  2061        } else {
  2062          delete x["hasNotification"];
  2063        }
  2064        return create === A.H.TRUE ? A.H.push(x) : ref;
  2065      },
  2066  
  2067      "store_Location": (ptr: Pointer, ref: heap.Ref<any>) => {
  2068        const x = A.H.get<any>(ref);
  2069  
  2070        if (typeof x === "undefined") {
  2071          A.store.Bool(ptr + 18, false);
  2072          A.store.Bool(ptr + 16, false);
  2073          A.store.Float64(ptr + 0, 0);
  2074          A.store.Bool(ptr + 17, false);
  2075          A.store.Float64(ptr + 8, 0);
  2076        } else {
  2077          A.store.Bool(ptr + 18, true);
  2078          A.store.Bool(ptr + 16, "x" in x ? true : false);
  2079          A.store.Float64(ptr + 0, x["x"] === undefined ? 0 : (x["x"] as number));
  2080          A.store.Bool(ptr + 17, "y" in x ? true : false);
  2081          A.store.Float64(ptr + 8, x["y"] === undefined ? 0 : (x["y"] as number));
  2082        }
  2083      },
  2084      "load_Location": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  2085        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  2086  
  2087        if (A.load.Bool(ptr + 16)) {
  2088          x["x"] = A.load.Float64(ptr + 0);
  2089        } else {
  2090          delete x["x"];
  2091        }
  2092        if (A.load.Bool(ptr + 17)) {
  2093          x["y"] = A.load.Float64(ptr + 8);
  2094        } else {
  2095          delete x["y"];
  2096        }
  2097        return create === A.H.TRUE ? A.H.push(x) : ref;
  2098      },
  2099  
  2100      "store_HotseatSwipeDescriptor": (ptr: Pointer, ref: heap.Ref<any>) => {
  2101        const x = A.H.get<any>(ref);
  2102  
  2103        if (typeof x === "undefined") {
  2104          A.store.Bool(ptr + 43, false);
  2105  
  2106          A.store.Bool(ptr + 0 + 18, false);
  2107          A.store.Bool(ptr + 0 + 16, false);
  2108          A.store.Float64(ptr + 0 + 0, 0);
  2109          A.store.Bool(ptr + 0 + 17, false);
  2110          A.store.Float64(ptr + 0 + 8, 0);
  2111  
  2112          A.store.Bool(ptr + 24 + 18, false);
  2113          A.store.Bool(ptr + 24 + 16, false);
  2114          A.store.Float64(ptr + 24 + 0, 0);
  2115          A.store.Bool(ptr + 24 + 17, false);
  2116          A.store.Float64(ptr + 24 + 8, 0);
  2117        } else {
  2118          A.store.Bool(ptr + 43, true);
  2119  
  2120          if (typeof x["swipeStartLocation"] === "undefined") {
  2121            A.store.Bool(ptr + 0 + 18, false);
  2122            A.store.Bool(ptr + 0 + 16, false);
  2123            A.store.Float64(ptr + 0 + 0, 0);
  2124            A.store.Bool(ptr + 0 + 17, false);
  2125            A.store.Float64(ptr + 0 + 8, 0);
  2126          } else {
  2127            A.store.Bool(ptr + 0 + 18, true);
  2128            A.store.Bool(ptr + 0 + 16, "x" in x["swipeStartLocation"] ? true : false);
  2129            A.store.Float64(
  2130              ptr + 0 + 0,
  2131              x["swipeStartLocation"]["x"] === undefined ? 0 : (x["swipeStartLocation"]["x"] as number)
  2132            );
  2133            A.store.Bool(ptr + 0 + 17, "y" in x["swipeStartLocation"] ? true : false);
  2134            A.store.Float64(
  2135              ptr + 0 + 8,
  2136              x["swipeStartLocation"]["y"] === undefined ? 0 : (x["swipeStartLocation"]["y"] as number)
  2137            );
  2138          }
  2139  
  2140          if (typeof x["swipeEndLocation"] === "undefined") {
  2141            A.store.Bool(ptr + 24 + 18, false);
  2142            A.store.Bool(ptr + 24 + 16, false);
  2143            A.store.Float64(ptr + 24 + 0, 0);
  2144            A.store.Bool(ptr + 24 + 17, false);
  2145            A.store.Float64(ptr + 24 + 8, 0);
  2146          } else {
  2147            A.store.Bool(ptr + 24 + 18, true);
  2148            A.store.Bool(ptr + 24 + 16, "x" in x["swipeEndLocation"] ? true : false);
  2149            A.store.Float64(
  2150              ptr + 24 + 0,
  2151              x["swipeEndLocation"]["x"] === undefined ? 0 : (x["swipeEndLocation"]["x"] as number)
  2152            );
  2153            A.store.Bool(ptr + 24 + 17, "y" in x["swipeEndLocation"] ? true : false);
  2154            A.store.Float64(
  2155              ptr + 24 + 8,
  2156              x["swipeEndLocation"]["y"] === undefined ? 0 : (x["swipeEndLocation"]["y"] as number)
  2157            );
  2158          }
  2159        }
  2160      },
  2161      "load_HotseatSwipeDescriptor": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  2162        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  2163  
  2164        if (A.load.Bool(ptr + 0 + 18)) {
  2165          x["swipeStartLocation"] = {};
  2166          if (A.load.Bool(ptr + 0 + 16)) {
  2167            x["swipeStartLocation"]["x"] = A.load.Float64(ptr + 0 + 0);
  2168          } else {
  2169            delete x["swipeStartLocation"]["x"];
  2170          }
  2171          if (A.load.Bool(ptr + 0 + 17)) {
  2172            x["swipeStartLocation"]["y"] = A.load.Float64(ptr + 0 + 8);
  2173          } else {
  2174            delete x["swipeStartLocation"]["y"];
  2175          }
  2176        } else {
  2177          delete x["swipeStartLocation"];
  2178        }
  2179        if (A.load.Bool(ptr + 24 + 18)) {
  2180          x["swipeEndLocation"] = {};
  2181          if (A.load.Bool(ptr + 24 + 16)) {
  2182            x["swipeEndLocation"]["x"] = A.load.Float64(ptr + 24 + 0);
  2183          } else {
  2184            delete x["swipeEndLocation"]["x"];
  2185          }
  2186          if (A.load.Bool(ptr + 24 + 17)) {
  2187            x["swipeEndLocation"]["y"] = A.load.Float64(ptr + 24 + 8);
  2188          } else {
  2189            delete x["swipeEndLocation"]["y"];
  2190          }
  2191        } else {
  2192          delete x["swipeEndLocation"];
  2193        }
  2194        return create === A.H.TRUE ? A.H.push(x) : ref;
  2195      },
  2196      "constof_HotseatState": (ref: heap.Ref<string>): number => {
  2197        const idx = ["Hidden", "ShownClamShell", "ShownHomeLauncher", "Extended"].indexOf(A.H.get(ref));
  2198        return idx < 0 ? 0 : idx + 1;
  2199      },
  2200  
  2201      "store_HotseatInfo": (ptr: Pointer, ref: heap.Ref<any>) => {
  2202        const x = A.H.get<any>(ref);
  2203  
  2204        if (typeof x === "undefined") {
  2205          A.store.Bool(ptr + 52, false);
  2206  
  2207          A.store.Bool(ptr + 0 + 43, false);
  2208  
  2209          A.store.Bool(ptr + 0 + 0 + 18, false);
  2210          A.store.Bool(ptr + 0 + 0 + 16, false);
  2211          A.store.Float64(ptr + 0 + 0 + 0, 0);
  2212          A.store.Bool(ptr + 0 + 0 + 17, false);
  2213          A.store.Float64(ptr + 0 + 0 + 8, 0);
  2214  
  2215          A.store.Bool(ptr + 0 + 24 + 18, false);
  2216          A.store.Bool(ptr + 0 + 24 + 16, false);
  2217          A.store.Float64(ptr + 0 + 24 + 0, 0);
  2218          A.store.Bool(ptr + 0 + 24 + 17, false);
  2219          A.store.Float64(ptr + 0 + 24 + 8, 0);
  2220          A.store.Enum(ptr + 44, -1);
  2221          A.store.Bool(ptr + 50, false);
  2222          A.store.Bool(ptr + 48, false);
  2223          A.store.Bool(ptr + 51, false);
  2224          A.store.Bool(ptr + 49, false);
  2225        } else {
  2226          A.store.Bool(ptr + 52, true);
  2227  
  2228          if (typeof x["swipeUp"] === "undefined") {
  2229            A.store.Bool(ptr + 0 + 43, false);
  2230  
  2231            A.store.Bool(ptr + 0 + 0 + 18, false);
  2232            A.store.Bool(ptr + 0 + 0 + 16, false);
  2233            A.store.Float64(ptr + 0 + 0 + 0, 0);
  2234            A.store.Bool(ptr + 0 + 0 + 17, false);
  2235            A.store.Float64(ptr + 0 + 0 + 8, 0);
  2236  
  2237            A.store.Bool(ptr + 0 + 24 + 18, false);
  2238            A.store.Bool(ptr + 0 + 24 + 16, false);
  2239            A.store.Float64(ptr + 0 + 24 + 0, 0);
  2240            A.store.Bool(ptr + 0 + 24 + 17, false);
  2241            A.store.Float64(ptr + 0 + 24 + 8, 0);
  2242          } else {
  2243            A.store.Bool(ptr + 0 + 43, true);
  2244  
  2245            if (typeof x["swipeUp"]["swipeStartLocation"] === "undefined") {
  2246              A.store.Bool(ptr + 0 + 0 + 18, false);
  2247              A.store.Bool(ptr + 0 + 0 + 16, false);
  2248              A.store.Float64(ptr + 0 + 0 + 0, 0);
  2249              A.store.Bool(ptr + 0 + 0 + 17, false);
  2250              A.store.Float64(ptr + 0 + 0 + 8, 0);
  2251            } else {
  2252              A.store.Bool(ptr + 0 + 0 + 18, true);
  2253              A.store.Bool(ptr + 0 + 0 + 16, "x" in x["swipeUp"]["swipeStartLocation"] ? true : false);
  2254              A.store.Float64(
  2255                ptr + 0 + 0 + 0,
  2256                x["swipeUp"]["swipeStartLocation"]["x"] === undefined
  2257                  ? 0
  2258                  : (x["swipeUp"]["swipeStartLocation"]["x"] as number)
  2259              );
  2260              A.store.Bool(ptr + 0 + 0 + 17, "y" in x["swipeUp"]["swipeStartLocation"] ? true : false);
  2261              A.store.Float64(
  2262                ptr + 0 + 0 + 8,
  2263                x["swipeUp"]["swipeStartLocation"]["y"] === undefined
  2264                  ? 0
  2265                  : (x["swipeUp"]["swipeStartLocation"]["y"] as number)
  2266              );
  2267            }
  2268  
  2269            if (typeof x["swipeUp"]["swipeEndLocation"] === "undefined") {
  2270              A.store.Bool(ptr + 0 + 24 + 18, false);
  2271              A.store.Bool(ptr + 0 + 24 + 16, false);
  2272              A.store.Float64(ptr + 0 + 24 + 0, 0);
  2273              A.store.Bool(ptr + 0 + 24 + 17, false);
  2274              A.store.Float64(ptr + 0 + 24 + 8, 0);
  2275            } else {
  2276              A.store.Bool(ptr + 0 + 24 + 18, true);
  2277              A.store.Bool(ptr + 0 + 24 + 16, "x" in x["swipeUp"]["swipeEndLocation"] ? true : false);
  2278              A.store.Float64(
  2279                ptr + 0 + 24 + 0,
  2280                x["swipeUp"]["swipeEndLocation"]["x"] === undefined
  2281                  ? 0
  2282                  : (x["swipeUp"]["swipeEndLocation"]["x"] as number)
  2283              );
  2284              A.store.Bool(ptr + 0 + 24 + 17, "y" in x["swipeUp"]["swipeEndLocation"] ? true : false);
  2285              A.store.Float64(
  2286                ptr + 0 + 24 + 8,
  2287                x["swipeUp"]["swipeEndLocation"]["y"] === undefined
  2288                  ? 0
  2289                  : (x["swipeUp"]["swipeEndLocation"]["y"] as number)
  2290              );
  2291            }
  2292          }
  2293          A.store.Enum(
  2294            ptr + 44,
  2295            ["Hidden", "ShownClamShell", "ShownHomeLauncher", "Extended"].indexOf(x["state"] as string)
  2296          );
  2297          A.store.Bool(ptr + 50, "isAnimating" in x ? true : false);
  2298          A.store.Bool(ptr + 48, x["isAnimating"] ? true : false);
  2299          A.store.Bool(ptr + 51, "isAutoHidden" in x ? true : false);
  2300          A.store.Bool(ptr + 49, x["isAutoHidden"] ? true : false);
  2301        }
  2302      },
  2303      "load_HotseatInfo": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  2304        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  2305  
  2306        if (A.load.Bool(ptr + 0 + 43)) {
  2307          x["swipeUp"] = {};
  2308          if (A.load.Bool(ptr + 0 + 0 + 18)) {
  2309            x["swipeUp"]["swipeStartLocation"] = {};
  2310            if (A.load.Bool(ptr + 0 + 0 + 16)) {
  2311              x["swipeUp"]["swipeStartLocation"]["x"] = A.load.Float64(ptr + 0 + 0 + 0);
  2312            } else {
  2313              delete x["swipeUp"]["swipeStartLocation"]["x"];
  2314            }
  2315            if (A.load.Bool(ptr + 0 + 0 + 17)) {
  2316              x["swipeUp"]["swipeStartLocation"]["y"] = A.load.Float64(ptr + 0 + 0 + 8);
  2317            } else {
  2318              delete x["swipeUp"]["swipeStartLocation"]["y"];
  2319            }
  2320          } else {
  2321            delete x["swipeUp"]["swipeStartLocation"];
  2322          }
  2323          if (A.load.Bool(ptr + 0 + 24 + 18)) {
  2324            x["swipeUp"]["swipeEndLocation"] = {};
  2325            if (A.load.Bool(ptr + 0 + 24 + 16)) {
  2326              x["swipeUp"]["swipeEndLocation"]["x"] = A.load.Float64(ptr + 0 + 24 + 0);
  2327            } else {
  2328              delete x["swipeUp"]["swipeEndLocation"]["x"];
  2329            }
  2330            if (A.load.Bool(ptr + 0 + 24 + 17)) {
  2331              x["swipeUp"]["swipeEndLocation"]["y"] = A.load.Float64(ptr + 0 + 24 + 8);
  2332            } else {
  2333              delete x["swipeUp"]["swipeEndLocation"]["y"];
  2334            }
  2335          } else {
  2336            delete x["swipeUp"]["swipeEndLocation"];
  2337          }
  2338        } else {
  2339          delete x["swipeUp"];
  2340        }
  2341        x["state"] = A.load.Enum(ptr + 44, ["Hidden", "ShownClamShell", "ShownHomeLauncher", "Extended"]);
  2342        if (A.load.Bool(ptr + 50)) {
  2343          x["isAnimating"] = A.load.Bool(ptr + 48);
  2344        } else {
  2345          delete x["isAnimating"];
  2346        }
  2347        if (A.load.Bool(ptr + 51)) {
  2348          x["isAutoHidden"] = A.load.Bool(ptr + 49);
  2349        } else {
  2350          delete x["isAutoHidden"];
  2351        }
  2352        return create === A.H.TRUE ? A.H.push(x) : ref;
  2353      },
  2354  
  2355      "store_ShelfUIInfo": (ptr: Pointer, ref: heap.Ref<any>) => {
  2356        const x = A.H.get<any>(ref);
  2357  
  2358        if (typeof x === "undefined") {
  2359          A.store.Bool(ptr + 173, false);
  2360  
  2361          A.store.Bool(ptr + 0 + 52, false);
  2362  
  2363          A.store.Bool(ptr + 0 + 0 + 43, false);
  2364  
  2365          A.store.Bool(ptr + 0 + 0 + 0 + 18, false);
  2366          A.store.Bool(ptr + 0 + 0 + 0 + 16, false);
  2367          A.store.Float64(ptr + 0 + 0 + 0 + 0, 0);
  2368          A.store.Bool(ptr + 0 + 0 + 0 + 17, false);
  2369          A.store.Float64(ptr + 0 + 0 + 0 + 8, 0);
  2370  
  2371          A.store.Bool(ptr + 0 + 0 + 24 + 18, false);
  2372          A.store.Bool(ptr + 0 + 0 + 24 + 16, false);
  2373          A.store.Float64(ptr + 0 + 0 + 24 + 0, 0);
  2374          A.store.Bool(ptr + 0 + 0 + 24 + 17, false);
  2375          A.store.Float64(ptr + 0 + 0 + 24 + 8, 0);
  2376          A.store.Enum(ptr + 0 + 44, -1);
  2377          A.store.Bool(ptr + 0 + 50, false);
  2378          A.store.Bool(ptr + 0 + 48, false);
  2379          A.store.Bool(ptr + 0 + 51, false);
  2380          A.store.Bool(ptr + 0 + 49, false);
  2381  
  2382          A.store.Bool(ptr + 56 + 116, false);
  2383          A.store.Bool(ptr + 56 + 109, false);
  2384          A.store.Float64(ptr + 56 + 0, 0);
  2385          A.store.Bool(ptr + 56 + 110, false);
  2386          A.store.Float64(ptr + 56 + 8, 0);
  2387          A.store.Bool(ptr + 56 + 111, false);
  2388          A.store.Float64(ptr + 56 + 16, 0);
  2389  
  2390          A.store.Bool(ptr + 56 + 24 + 36, false);
  2391          A.store.Bool(ptr + 56 + 24 + 32, false);
  2392          A.store.Float64(ptr + 56 + 24 + 0, 0);
  2393          A.store.Bool(ptr + 56 + 24 + 33, false);
  2394          A.store.Float64(ptr + 56 + 24 + 8, 0);
  2395          A.store.Bool(ptr + 56 + 24 + 34, false);
  2396          A.store.Float64(ptr + 56 + 24 + 16, 0);
  2397          A.store.Bool(ptr + 56 + 24 + 35, false);
  2398          A.store.Float64(ptr + 56 + 24 + 24, 0);
  2399  
  2400          A.store.Bool(ptr + 56 + 64 + 36, false);
  2401          A.store.Bool(ptr + 56 + 64 + 32, false);
  2402          A.store.Float64(ptr + 56 + 64 + 0, 0);
  2403          A.store.Bool(ptr + 56 + 64 + 33, false);
  2404          A.store.Float64(ptr + 56 + 64 + 8, 0);
  2405          A.store.Bool(ptr + 56 + 64 + 34, false);
  2406          A.store.Float64(ptr + 56 + 64 + 16, 0);
  2407          A.store.Bool(ptr + 56 + 64 + 35, false);
  2408          A.store.Float64(ptr + 56 + 64 + 24, 0);
  2409          A.store.Bool(ptr + 56 + 112, false);
  2410          A.store.Bool(ptr + 56 + 101, false);
  2411          A.store.Bool(ptr + 56 + 113, false);
  2412          A.store.Bool(ptr + 56 + 102, false);
  2413          A.store.Bool(ptr + 56 + 114, false);
  2414          A.store.Bool(ptr + 56 + 103, false);
  2415          A.store.Ref(ptr + 56 + 104, undefined);
  2416          A.store.Bool(ptr + 56 + 115, false);
  2417          A.store.Bool(ptr + 56 + 108, false);
  2418        } else {
  2419          A.store.Bool(ptr + 173, true);
  2420  
  2421          if (typeof x["hotseatInfo"] === "undefined") {
  2422            A.store.Bool(ptr + 0 + 52, false);
  2423  
  2424            A.store.Bool(ptr + 0 + 0 + 43, false);
  2425  
  2426            A.store.Bool(ptr + 0 + 0 + 0 + 18, false);
  2427            A.store.Bool(ptr + 0 + 0 + 0 + 16, false);
  2428            A.store.Float64(ptr + 0 + 0 + 0 + 0, 0);
  2429            A.store.Bool(ptr + 0 + 0 + 0 + 17, false);
  2430            A.store.Float64(ptr + 0 + 0 + 0 + 8, 0);
  2431  
  2432            A.store.Bool(ptr + 0 + 0 + 24 + 18, false);
  2433            A.store.Bool(ptr + 0 + 0 + 24 + 16, false);
  2434            A.store.Float64(ptr + 0 + 0 + 24 + 0, 0);
  2435            A.store.Bool(ptr + 0 + 0 + 24 + 17, false);
  2436            A.store.Float64(ptr + 0 + 0 + 24 + 8, 0);
  2437            A.store.Enum(ptr + 0 + 44, -1);
  2438            A.store.Bool(ptr + 0 + 50, false);
  2439            A.store.Bool(ptr + 0 + 48, false);
  2440            A.store.Bool(ptr + 0 + 51, false);
  2441            A.store.Bool(ptr + 0 + 49, false);
  2442          } else {
  2443            A.store.Bool(ptr + 0 + 52, true);
  2444  
  2445            if (typeof x["hotseatInfo"]["swipeUp"] === "undefined") {
  2446              A.store.Bool(ptr + 0 + 0 + 43, false);
  2447  
  2448              A.store.Bool(ptr + 0 + 0 + 0 + 18, false);
  2449              A.store.Bool(ptr + 0 + 0 + 0 + 16, false);
  2450              A.store.Float64(ptr + 0 + 0 + 0 + 0, 0);
  2451              A.store.Bool(ptr + 0 + 0 + 0 + 17, false);
  2452              A.store.Float64(ptr + 0 + 0 + 0 + 8, 0);
  2453  
  2454              A.store.Bool(ptr + 0 + 0 + 24 + 18, false);
  2455              A.store.Bool(ptr + 0 + 0 + 24 + 16, false);
  2456              A.store.Float64(ptr + 0 + 0 + 24 + 0, 0);
  2457              A.store.Bool(ptr + 0 + 0 + 24 + 17, false);
  2458              A.store.Float64(ptr + 0 + 0 + 24 + 8, 0);
  2459            } else {
  2460              A.store.Bool(ptr + 0 + 0 + 43, true);
  2461  
  2462              if (typeof x["hotseatInfo"]["swipeUp"]["swipeStartLocation"] === "undefined") {
  2463                A.store.Bool(ptr + 0 + 0 + 0 + 18, false);
  2464                A.store.Bool(ptr + 0 + 0 + 0 + 16, false);
  2465                A.store.Float64(ptr + 0 + 0 + 0 + 0, 0);
  2466                A.store.Bool(ptr + 0 + 0 + 0 + 17, false);
  2467                A.store.Float64(ptr + 0 + 0 + 0 + 8, 0);
  2468              } else {
  2469                A.store.Bool(ptr + 0 + 0 + 0 + 18, true);
  2470                A.store.Bool(
  2471                  ptr + 0 + 0 + 0 + 16,
  2472                  "x" in x["hotseatInfo"]["swipeUp"]["swipeStartLocation"] ? true : false
  2473                );
  2474                A.store.Float64(
  2475                  ptr + 0 + 0 + 0 + 0,
  2476                  x["hotseatInfo"]["swipeUp"]["swipeStartLocation"]["x"] === undefined
  2477                    ? 0
  2478                    : (x["hotseatInfo"]["swipeUp"]["swipeStartLocation"]["x"] as number)
  2479                );
  2480                A.store.Bool(
  2481                  ptr + 0 + 0 + 0 + 17,
  2482                  "y" in x["hotseatInfo"]["swipeUp"]["swipeStartLocation"] ? true : false
  2483                );
  2484                A.store.Float64(
  2485                  ptr + 0 + 0 + 0 + 8,
  2486                  x["hotseatInfo"]["swipeUp"]["swipeStartLocation"]["y"] === undefined
  2487                    ? 0
  2488                    : (x["hotseatInfo"]["swipeUp"]["swipeStartLocation"]["y"] as number)
  2489                );
  2490              }
  2491  
  2492              if (typeof x["hotseatInfo"]["swipeUp"]["swipeEndLocation"] === "undefined") {
  2493                A.store.Bool(ptr + 0 + 0 + 24 + 18, false);
  2494                A.store.Bool(ptr + 0 + 0 + 24 + 16, false);
  2495                A.store.Float64(ptr + 0 + 0 + 24 + 0, 0);
  2496                A.store.Bool(ptr + 0 + 0 + 24 + 17, false);
  2497                A.store.Float64(ptr + 0 + 0 + 24 + 8, 0);
  2498              } else {
  2499                A.store.Bool(ptr + 0 + 0 + 24 + 18, true);
  2500                A.store.Bool(
  2501                  ptr + 0 + 0 + 24 + 16,
  2502                  "x" in x["hotseatInfo"]["swipeUp"]["swipeEndLocation"] ? true : false
  2503                );
  2504                A.store.Float64(
  2505                  ptr + 0 + 0 + 24 + 0,
  2506                  x["hotseatInfo"]["swipeUp"]["swipeEndLocation"]["x"] === undefined
  2507                    ? 0
  2508                    : (x["hotseatInfo"]["swipeUp"]["swipeEndLocation"]["x"] as number)
  2509                );
  2510                A.store.Bool(
  2511                  ptr + 0 + 0 + 24 + 17,
  2512                  "y" in x["hotseatInfo"]["swipeUp"]["swipeEndLocation"] ? true : false
  2513                );
  2514                A.store.Float64(
  2515                  ptr + 0 + 0 + 24 + 8,
  2516                  x["hotseatInfo"]["swipeUp"]["swipeEndLocation"]["y"] === undefined
  2517                    ? 0
  2518                    : (x["hotseatInfo"]["swipeUp"]["swipeEndLocation"]["y"] as number)
  2519                );
  2520              }
  2521            }
  2522            A.store.Enum(
  2523              ptr + 0 + 44,
  2524              ["Hidden", "ShownClamShell", "ShownHomeLauncher", "Extended"].indexOf(x["hotseatInfo"]["state"] as string)
  2525            );
  2526            A.store.Bool(ptr + 0 + 50, "isAnimating" in x["hotseatInfo"] ? true : false);
  2527            A.store.Bool(ptr + 0 + 48, x["hotseatInfo"]["isAnimating"] ? true : false);
  2528            A.store.Bool(ptr + 0 + 51, "isAutoHidden" in x["hotseatInfo"] ? true : false);
  2529            A.store.Bool(ptr + 0 + 49, x["hotseatInfo"]["isAutoHidden"] ? true : false);
  2530          }
  2531  
  2532          if (typeof x["scrollableShelfInfo"] === "undefined") {
  2533            A.store.Bool(ptr + 56 + 116, false);
  2534            A.store.Bool(ptr + 56 + 109, false);
  2535            A.store.Float64(ptr + 56 + 0, 0);
  2536            A.store.Bool(ptr + 56 + 110, false);
  2537            A.store.Float64(ptr + 56 + 8, 0);
  2538            A.store.Bool(ptr + 56 + 111, false);
  2539            A.store.Float64(ptr + 56 + 16, 0);
  2540  
  2541            A.store.Bool(ptr + 56 + 24 + 36, false);
  2542            A.store.Bool(ptr + 56 + 24 + 32, false);
  2543            A.store.Float64(ptr + 56 + 24 + 0, 0);
  2544            A.store.Bool(ptr + 56 + 24 + 33, false);
  2545            A.store.Float64(ptr + 56 + 24 + 8, 0);
  2546            A.store.Bool(ptr + 56 + 24 + 34, false);
  2547            A.store.Float64(ptr + 56 + 24 + 16, 0);
  2548            A.store.Bool(ptr + 56 + 24 + 35, false);
  2549            A.store.Float64(ptr + 56 + 24 + 24, 0);
  2550  
  2551            A.store.Bool(ptr + 56 + 64 + 36, false);
  2552            A.store.Bool(ptr + 56 + 64 + 32, false);
  2553            A.store.Float64(ptr + 56 + 64 + 0, 0);
  2554            A.store.Bool(ptr + 56 + 64 + 33, false);
  2555            A.store.Float64(ptr + 56 + 64 + 8, 0);
  2556            A.store.Bool(ptr + 56 + 64 + 34, false);
  2557            A.store.Float64(ptr + 56 + 64 + 16, 0);
  2558            A.store.Bool(ptr + 56 + 64 + 35, false);
  2559            A.store.Float64(ptr + 56 + 64 + 24, 0);
  2560            A.store.Bool(ptr + 56 + 112, false);
  2561            A.store.Bool(ptr + 56 + 101, false);
  2562            A.store.Bool(ptr + 56 + 113, false);
  2563            A.store.Bool(ptr + 56 + 102, false);
  2564            A.store.Bool(ptr + 56 + 114, false);
  2565            A.store.Bool(ptr + 56 + 103, false);
  2566            A.store.Ref(ptr + 56 + 104, undefined);
  2567            A.store.Bool(ptr + 56 + 115, false);
  2568            A.store.Bool(ptr + 56 + 108, false);
  2569          } else {
  2570            A.store.Bool(ptr + 56 + 116, true);
  2571            A.store.Bool(ptr + 56 + 109, "mainAxisOffset" in x["scrollableShelfInfo"] ? true : false);
  2572            A.store.Float64(
  2573              ptr + 56 + 0,
  2574              x["scrollableShelfInfo"]["mainAxisOffset"] === undefined
  2575                ? 0
  2576                : (x["scrollableShelfInfo"]["mainAxisOffset"] as number)
  2577            );
  2578            A.store.Bool(ptr + 56 + 110, "pageOffset" in x["scrollableShelfInfo"] ? true : false);
  2579            A.store.Float64(
  2580              ptr + 56 + 8,
  2581              x["scrollableShelfInfo"]["pageOffset"] === undefined
  2582                ? 0
  2583                : (x["scrollableShelfInfo"]["pageOffset"] as number)
  2584            );
  2585            A.store.Bool(ptr + 56 + 111, "targetMainAxisOffset" in x["scrollableShelfInfo"] ? true : false);
  2586            A.store.Float64(
  2587              ptr + 56 + 16,
  2588              x["scrollableShelfInfo"]["targetMainAxisOffset"] === undefined
  2589                ? 0
  2590                : (x["scrollableShelfInfo"]["targetMainAxisOffset"] as number)
  2591            );
  2592  
  2593            if (typeof x["scrollableShelfInfo"]["leftArrowBounds"] === "undefined") {
  2594              A.store.Bool(ptr + 56 + 24 + 36, false);
  2595              A.store.Bool(ptr + 56 + 24 + 32, false);
  2596              A.store.Float64(ptr + 56 + 24 + 0, 0);
  2597              A.store.Bool(ptr + 56 + 24 + 33, false);
  2598              A.store.Float64(ptr + 56 + 24 + 8, 0);
  2599              A.store.Bool(ptr + 56 + 24 + 34, false);
  2600              A.store.Float64(ptr + 56 + 24 + 16, 0);
  2601              A.store.Bool(ptr + 56 + 24 + 35, false);
  2602              A.store.Float64(ptr + 56 + 24 + 24, 0);
  2603            } else {
  2604              A.store.Bool(ptr + 56 + 24 + 36, true);
  2605              A.store.Bool(ptr + 56 + 24 + 32, "left" in x["scrollableShelfInfo"]["leftArrowBounds"] ? true : false);
  2606              A.store.Float64(
  2607                ptr + 56 + 24 + 0,
  2608                x["scrollableShelfInfo"]["leftArrowBounds"]["left"] === undefined
  2609                  ? 0
  2610                  : (x["scrollableShelfInfo"]["leftArrowBounds"]["left"] as number)
  2611              );
  2612              A.store.Bool(ptr + 56 + 24 + 33, "top" in x["scrollableShelfInfo"]["leftArrowBounds"] ? true : false);
  2613              A.store.Float64(
  2614                ptr + 56 + 24 + 8,
  2615                x["scrollableShelfInfo"]["leftArrowBounds"]["top"] === undefined
  2616                  ? 0
  2617                  : (x["scrollableShelfInfo"]["leftArrowBounds"]["top"] as number)
  2618              );
  2619              A.store.Bool(ptr + 56 + 24 + 34, "width" in x["scrollableShelfInfo"]["leftArrowBounds"] ? true : false);
  2620              A.store.Float64(
  2621                ptr + 56 + 24 + 16,
  2622                x["scrollableShelfInfo"]["leftArrowBounds"]["width"] === undefined
  2623                  ? 0
  2624                  : (x["scrollableShelfInfo"]["leftArrowBounds"]["width"] as number)
  2625              );
  2626              A.store.Bool(ptr + 56 + 24 + 35, "height" in x["scrollableShelfInfo"]["leftArrowBounds"] ? true : false);
  2627              A.store.Float64(
  2628                ptr + 56 + 24 + 24,
  2629                x["scrollableShelfInfo"]["leftArrowBounds"]["height"] === undefined
  2630                  ? 0
  2631                  : (x["scrollableShelfInfo"]["leftArrowBounds"]["height"] as number)
  2632              );
  2633            }
  2634  
  2635            if (typeof x["scrollableShelfInfo"]["rightArrowBounds"] === "undefined") {
  2636              A.store.Bool(ptr + 56 + 64 + 36, false);
  2637              A.store.Bool(ptr + 56 + 64 + 32, false);
  2638              A.store.Float64(ptr + 56 + 64 + 0, 0);
  2639              A.store.Bool(ptr + 56 + 64 + 33, false);
  2640              A.store.Float64(ptr + 56 + 64 + 8, 0);
  2641              A.store.Bool(ptr + 56 + 64 + 34, false);
  2642              A.store.Float64(ptr + 56 + 64 + 16, 0);
  2643              A.store.Bool(ptr + 56 + 64 + 35, false);
  2644              A.store.Float64(ptr + 56 + 64 + 24, 0);
  2645            } else {
  2646              A.store.Bool(ptr + 56 + 64 + 36, true);
  2647              A.store.Bool(ptr + 56 + 64 + 32, "left" in x["scrollableShelfInfo"]["rightArrowBounds"] ? true : false);
  2648              A.store.Float64(
  2649                ptr + 56 + 64 + 0,
  2650                x["scrollableShelfInfo"]["rightArrowBounds"]["left"] === undefined
  2651                  ? 0
  2652                  : (x["scrollableShelfInfo"]["rightArrowBounds"]["left"] as number)
  2653              );
  2654              A.store.Bool(ptr + 56 + 64 + 33, "top" in x["scrollableShelfInfo"]["rightArrowBounds"] ? true : false);
  2655              A.store.Float64(
  2656                ptr + 56 + 64 + 8,
  2657                x["scrollableShelfInfo"]["rightArrowBounds"]["top"] === undefined
  2658                  ? 0
  2659                  : (x["scrollableShelfInfo"]["rightArrowBounds"]["top"] as number)
  2660              );
  2661              A.store.Bool(ptr + 56 + 64 + 34, "width" in x["scrollableShelfInfo"]["rightArrowBounds"] ? true : false);
  2662              A.store.Float64(
  2663                ptr + 56 + 64 + 16,
  2664                x["scrollableShelfInfo"]["rightArrowBounds"]["width"] === undefined
  2665                  ? 0
  2666                  : (x["scrollableShelfInfo"]["rightArrowBounds"]["width"] as number)
  2667              );
  2668              A.store.Bool(ptr + 56 + 64 + 35, "height" in x["scrollableShelfInfo"]["rightArrowBounds"] ? true : false);
  2669              A.store.Float64(
  2670                ptr + 56 + 64 + 24,
  2671                x["scrollableShelfInfo"]["rightArrowBounds"]["height"] === undefined
  2672                  ? 0
  2673                  : (x["scrollableShelfInfo"]["rightArrowBounds"]["height"] as number)
  2674              );
  2675            }
  2676            A.store.Bool(ptr + 56 + 112, "isAnimating" in x["scrollableShelfInfo"] ? true : false);
  2677            A.store.Bool(ptr + 56 + 101, x["scrollableShelfInfo"]["isAnimating"] ? true : false);
  2678            A.store.Bool(ptr + 56 + 113, "iconsUnderAnimation" in x["scrollableShelfInfo"] ? true : false);
  2679            A.store.Bool(ptr + 56 + 102, x["scrollableShelfInfo"]["iconsUnderAnimation"] ? true : false);
  2680            A.store.Bool(ptr + 56 + 114, "isOverflow" in x["scrollableShelfInfo"] ? true : false);
  2681            A.store.Bool(ptr + 56 + 103, x["scrollableShelfInfo"]["isOverflow"] ? true : false);
  2682            A.store.Ref(ptr + 56 + 104, x["scrollableShelfInfo"]["iconsBoundsInScreen"]);
  2683            A.store.Bool(ptr + 56 + 115, "isShelfWidgetAnimating" in x["scrollableShelfInfo"] ? true : false);
  2684            A.store.Bool(ptr + 56 + 108, x["scrollableShelfInfo"]["isShelfWidgetAnimating"] ? true : false);
  2685          }
  2686        }
  2687      },
  2688      "load_ShelfUIInfo": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  2689        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  2690  
  2691        if (A.load.Bool(ptr + 0 + 52)) {
  2692          x["hotseatInfo"] = {};
  2693          if (A.load.Bool(ptr + 0 + 0 + 43)) {
  2694            x["hotseatInfo"]["swipeUp"] = {};
  2695            if (A.load.Bool(ptr + 0 + 0 + 0 + 18)) {
  2696              x["hotseatInfo"]["swipeUp"]["swipeStartLocation"] = {};
  2697              if (A.load.Bool(ptr + 0 + 0 + 0 + 16)) {
  2698                x["hotseatInfo"]["swipeUp"]["swipeStartLocation"]["x"] = A.load.Float64(ptr + 0 + 0 + 0 + 0);
  2699              } else {
  2700                delete x["hotseatInfo"]["swipeUp"]["swipeStartLocation"]["x"];
  2701              }
  2702              if (A.load.Bool(ptr + 0 + 0 + 0 + 17)) {
  2703                x["hotseatInfo"]["swipeUp"]["swipeStartLocation"]["y"] = A.load.Float64(ptr + 0 + 0 + 0 + 8);
  2704              } else {
  2705                delete x["hotseatInfo"]["swipeUp"]["swipeStartLocation"]["y"];
  2706              }
  2707            } else {
  2708              delete x["hotseatInfo"]["swipeUp"]["swipeStartLocation"];
  2709            }
  2710            if (A.load.Bool(ptr + 0 + 0 + 24 + 18)) {
  2711              x["hotseatInfo"]["swipeUp"]["swipeEndLocation"] = {};
  2712              if (A.load.Bool(ptr + 0 + 0 + 24 + 16)) {
  2713                x["hotseatInfo"]["swipeUp"]["swipeEndLocation"]["x"] = A.load.Float64(ptr + 0 + 0 + 24 + 0);
  2714              } else {
  2715                delete x["hotseatInfo"]["swipeUp"]["swipeEndLocation"]["x"];
  2716              }
  2717              if (A.load.Bool(ptr + 0 + 0 + 24 + 17)) {
  2718                x["hotseatInfo"]["swipeUp"]["swipeEndLocation"]["y"] = A.load.Float64(ptr + 0 + 0 + 24 + 8);
  2719              } else {
  2720                delete x["hotseatInfo"]["swipeUp"]["swipeEndLocation"]["y"];
  2721              }
  2722            } else {
  2723              delete x["hotseatInfo"]["swipeUp"]["swipeEndLocation"];
  2724            }
  2725          } else {
  2726            delete x["hotseatInfo"]["swipeUp"];
  2727          }
  2728          x["hotseatInfo"]["state"] = A.load.Enum(ptr + 0 + 44, [
  2729            "Hidden",
  2730            "ShownClamShell",
  2731            "ShownHomeLauncher",
  2732            "Extended",
  2733          ]);
  2734          if (A.load.Bool(ptr + 0 + 50)) {
  2735            x["hotseatInfo"]["isAnimating"] = A.load.Bool(ptr + 0 + 48);
  2736          } else {
  2737            delete x["hotseatInfo"]["isAnimating"];
  2738          }
  2739          if (A.load.Bool(ptr + 0 + 51)) {
  2740            x["hotseatInfo"]["isAutoHidden"] = A.load.Bool(ptr + 0 + 49);
  2741          } else {
  2742            delete x["hotseatInfo"]["isAutoHidden"];
  2743          }
  2744        } else {
  2745          delete x["hotseatInfo"];
  2746        }
  2747        if (A.load.Bool(ptr + 56 + 116)) {
  2748          x["scrollableShelfInfo"] = {};
  2749          if (A.load.Bool(ptr + 56 + 109)) {
  2750            x["scrollableShelfInfo"]["mainAxisOffset"] = A.load.Float64(ptr + 56 + 0);
  2751          } else {
  2752            delete x["scrollableShelfInfo"]["mainAxisOffset"];
  2753          }
  2754          if (A.load.Bool(ptr + 56 + 110)) {
  2755            x["scrollableShelfInfo"]["pageOffset"] = A.load.Float64(ptr + 56 + 8);
  2756          } else {
  2757            delete x["scrollableShelfInfo"]["pageOffset"];
  2758          }
  2759          if (A.load.Bool(ptr + 56 + 111)) {
  2760            x["scrollableShelfInfo"]["targetMainAxisOffset"] = A.load.Float64(ptr + 56 + 16);
  2761          } else {
  2762            delete x["scrollableShelfInfo"]["targetMainAxisOffset"];
  2763          }
  2764          if (A.load.Bool(ptr + 56 + 24 + 36)) {
  2765            x["scrollableShelfInfo"]["leftArrowBounds"] = {};
  2766            if (A.load.Bool(ptr + 56 + 24 + 32)) {
  2767              x["scrollableShelfInfo"]["leftArrowBounds"]["left"] = A.load.Float64(ptr + 56 + 24 + 0);
  2768            } else {
  2769              delete x["scrollableShelfInfo"]["leftArrowBounds"]["left"];
  2770            }
  2771            if (A.load.Bool(ptr + 56 + 24 + 33)) {
  2772              x["scrollableShelfInfo"]["leftArrowBounds"]["top"] = A.load.Float64(ptr + 56 + 24 + 8);
  2773            } else {
  2774              delete x["scrollableShelfInfo"]["leftArrowBounds"]["top"];
  2775            }
  2776            if (A.load.Bool(ptr + 56 + 24 + 34)) {
  2777              x["scrollableShelfInfo"]["leftArrowBounds"]["width"] = A.load.Float64(ptr + 56 + 24 + 16);
  2778            } else {
  2779              delete x["scrollableShelfInfo"]["leftArrowBounds"]["width"];
  2780            }
  2781            if (A.load.Bool(ptr + 56 + 24 + 35)) {
  2782              x["scrollableShelfInfo"]["leftArrowBounds"]["height"] = A.load.Float64(ptr + 56 + 24 + 24);
  2783            } else {
  2784              delete x["scrollableShelfInfo"]["leftArrowBounds"]["height"];
  2785            }
  2786          } else {
  2787            delete x["scrollableShelfInfo"]["leftArrowBounds"];
  2788          }
  2789          if (A.load.Bool(ptr + 56 + 64 + 36)) {
  2790            x["scrollableShelfInfo"]["rightArrowBounds"] = {};
  2791            if (A.load.Bool(ptr + 56 + 64 + 32)) {
  2792              x["scrollableShelfInfo"]["rightArrowBounds"]["left"] = A.load.Float64(ptr + 56 + 64 + 0);
  2793            } else {
  2794              delete x["scrollableShelfInfo"]["rightArrowBounds"]["left"];
  2795            }
  2796            if (A.load.Bool(ptr + 56 + 64 + 33)) {
  2797              x["scrollableShelfInfo"]["rightArrowBounds"]["top"] = A.load.Float64(ptr + 56 + 64 + 8);
  2798            } else {
  2799              delete x["scrollableShelfInfo"]["rightArrowBounds"]["top"];
  2800            }
  2801            if (A.load.Bool(ptr + 56 + 64 + 34)) {
  2802              x["scrollableShelfInfo"]["rightArrowBounds"]["width"] = A.load.Float64(ptr + 56 + 64 + 16);
  2803            } else {
  2804              delete x["scrollableShelfInfo"]["rightArrowBounds"]["width"];
  2805            }
  2806            if (A.load.Bool(ptr + 56 + 64 + 35)) {
  2807              x["scrollableShelfInfo"]["rightArrowBounds"]["height"] = A.load.Float64(ptr + 56 + 64 + 24);
  2808            } else {
  2809              delete x["scrollableShelfInfo"]["rightArrowBounds"]["height"];
  2810            }
  2811          } else {
  2812            delete x["scrollableShelfInfo"]["rightArrowBounds"];
  2813          }
  2814          if (A.load.Bool(ptr + 56 + 112)) {
  2815            x["scrollableShelfInfo"]["isAnimating"] = A.load.Bool(ptr + 56 + 101);
  2816          } else {
  2817            delete x["scrollableShelfInfo"]["isAnimating"];
  2818          }
  2819          if (A.load.Bool(ptr + 56 + 113)) {
  2820            x["scrollableShelfInfo"]["iconsUnderAnimation"] = A.load.Bool(ptr + 56 + 102);
  2821          } else {
  2822            delete x["scrollableShelfInfo"]["iconsUnderAnimation"];
  2823          }
  2824          if (A.load.Bool(ptr + 56 + 114)) {
  2825            x["scrollableShelfInfo"]["isOverflow"] = A.load.Bool(ptr + 56 + 103);
  2826          } else {
  2827            delete x["scrollableShelfInfo"]["isOverflow"];
  2828          }
  2829          x["scrollableShelfInfo"]["iconsBoundsInScreen"] = A.load.Ref(ptr + 56 + 104, undefined);
  2830          if (A.load.Bool(ptr + 56 + 115)) {
  2831            x["scrollableShelfInfo"]["isShelfWidgetAnimating"] = A.load.Bool(ptr + 56 + 108);
  2832          } else {
  2833            delete x["scrollableShelfInfo"]["isShelfWidgetAnimating"];
  2834          }
  2835        } else {
  2836          delete x["scrollableShelfInfo"];
  2837        }
  2838        return create === A.H.TRUE ? A.H.push(x) : ref;
  2839      },
  2840  
  2841      "store_ThroughputTrackerAnimationData": (ptr: Pointer, ref: heap.Ref<any>) => {
  2842        const x = A.H.get<any>(ref);
  2843  
  2844        if (typeof x === "undefined") {
  2845          A.store.Bool(ptr + 25, false);
  2846          A.store.Bool(ptr + 20, false);
  2847          A.store.Int32(ptr + 0, 0);
  2848          A.store.Bool(ptr + 21, false);
  2849          A.store.Int32(ptr + 4, 0);
  2850          A.store.Bool(ptr + 22, false);
  2851          A.store.Int32(ptr + 8, 0);
  2852          A.store.Bool(ptr + 23, false);
  2853          A.store.Int32(ptr + 12, 0);
  2854          A.store.Bool(ptr + 24, false);
  2855          A.store.Int32(ptr + 16, 0);
  2856        } else {
  2857          A.store.Bool(ptr + 25, true);
  2858          A.store.Bool(ptr + 20, "startOffsetMs" in x ? true : false);
  2859          A.store.Int32(ptr + 0, x["startOffsetMs"] === undefined ? 0 : (x["startOffsetMs"] as number));
  2860          A.store.Bool(ptr + 21, "stopOffsetMs" in x ? true : false);
  2861          A.store.Int32(ptr + 4, x["stopOffsetMs"] === undefined ? 0 : (x["stopOffsetMs"] as number));
  2862          A.store.Bool(ptr + 22, "framesExpected" in x ? true : false);
  2863          A.store.Int32(ptr + 8, x["framesExpected"] === undefined ? 0 : (x["framesExpected"] as number));
  2864          A.store.Bool(ptr + 23, "framesProduced" in x ? true : false);
  2865          A.store.Int32(ptr + 12, x["framesProduced"] === undefined ? 0 : (x["framesProduced"] as number));
  2866          A.store.Bool(ptr + 24, "jankCount" in x ? true : false);
  2867          A.store.Int32(ptr + 16, x["jankCount"] === undefined ? 0 : (x["jankCount"] as number));
  2868        }
  2869      },
  2870      "load_ThroughputTrackerAnimationData": (
  2871        ptr: Pointer,
  2872        create: heap.Ref<boolean>,
  2873        ref: heap.Ref<any>
  2874      ): heap.Ref<any> => {
  2875        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  2876  
  2877        if (A.load.Bool(ptr + 20)) {
  2878          x["startOffsetMs"] = A.load.Int32(ptr + 0);
  2879        } else {
  2880          delete x["startOffsetMs"];
  2881        }
  2882        if (A.load.Bool(ptr + 21)) {
  2883          x["stopOffsetMs"] = A.load.Int32(ptr + 4);
  2884        } else {
  2885          delete x["stopOffsetMs"];
  2886        }
  2887        if (A.load.Bool(ptr + 22)) {
  2888          x["framesExpected"] = A.load.Int32(ptr + 8);
  2889        } else {
  2890          delete x["framesExpected"];
  2891        }
  2892        if (A.load.Bool(ptr + 23)) {
  2893          x["framesProduced"] = A.load.Int32(ptr + 12);
  2894        } else {
  2895          delete x["framesProduced"];
  2896        }
  2897        if (A.load.Bool(ptr + 24)) {
  2898          x["jankCount"] = A.load.Int32(ptr + 16);
  2899        } else {
  2900          delete x["jankCount"];
  2901        }
  2902        return create === A.H.TRUE ? A.H.push(x) : ref;
  2903      },
  2904      "constof_LauncherStateType": (ref: heap.Ref<string>): number => {
  2905        const idx = ["Closed", "FullscreenAllApps", "FullscreenSearch"].indexOf(A.H.get(ref));
  2906        return idx < 0 ? 0 : idx + 1;
  2907      },
  2908  
  2909      "store_LoginStatusDict": (ptr: Pointer, ref: heap.Ref<any>) => {
  2910        const x = A.H.get<any>(ref);
  2911  
  2912        if (typeof x === "undefined") {
  2913          A.store.Bool(ptr + 39, false);
  2914          A.store.Bool(ptr + 29, false);
  2915          A.store.Bool(ptr + 0, false);
  2916          A.store.Bool(ptr + 30, false);
  2917          A.store.Bool(ptr + 1, false);
  2918          A.store.Bool(ptr + 31, false);
  2919          A.store.Bool(ptr + 2, false);
  2920          A.store.Bool(ptr + 32, false);
  2921          A.store.Bool(ptr + 3, false);
  2922          A.store.Bool(ptr + 33, false);
  2923          A.store.Bool(ptr + 4, false);
  2924          A.store.Bool(ptr + 34, false);
  2925          A.store.Bool(ptr + 5, false);
  2926          A.store.Bool(ptr + 35, false);
  2927          A.store.Bool(ptr + 6, false);
  2928          A.store.Bool(ptr + 36, false);
  2929          A.store.Bool(ptr + 7, false);
  2930          A.store.Bool(ptr + 37, false);
  2931          A.store.Bool(ptr + 8, false);
  2932          A.store.Ref(ptr + 12, undefined);
  2933          A.store.Ref(ptr + 16, undefined);
  2934          A.store.Ref(ptr + 20, undefined);
  2935          A.store.Ref(ptr + 24, undefined);
  2936          A.store.Bool(ptr + 38, false);
  2937          A.store.Bool(ptr + 28, false);
  2938        } else {
  2939          A.store.Bool(ptr + 39, true);
  2940          A.store.Bool(ptr + 29, "isLoggedIn" in x ? true : false);
  2941          A.store.Bool(ptr + 0, x["isLoggedIn"] ? true : false);
  2942          A.store.Bool(ptr + 30, "isOwner" in x ? true : false);
  2943          A.store.Bool(ptr + 1, x["isOwner"] ? true : false);
  2944          A.store.Bool(ptr + 31, "isScreenLocked" in x ? true : false);
  2945          A.store.Bool(ptr + 2, x["isScreenLocked"] ? true : false);
  2946          A.store.Bool(ptr + 32, "isLockscreenWallpaperAnimating" in x ? true : false);
  2947          A.store.Bool(ptr + 3, x["isLockscreenWallpaperAnimating"] ? true : false);
  2948          A.store.Bool(ptr + 33, "isReadyForPassword" in x ? true : false);
  2949          A.store.Bool(ptr + 4, x["isReadyForPassword"] ? true : false);
  2950          A.store.Bool(ptr + 34, "areAllUserImagesLoaded" in x ? true : false);
  2951          A.store.Bool(ptr + 5, x["areAllUserImagesLoaded"] ? true : false);
  2952          A.store.Bool(ptr + 35, "isRegularUser" in x ? true : false);
  2953          A.store.Bool(ptr + 6, x["isRegularUser"] ? true : false);
  2954          A.store.Bool(ptr + 36, "isGuest" in x ? true : false);
  2955          A.store.Bool(ptr + 7, x["isGuest"] ? true : false);
  2956          A.store.Bool(ptr + 37, "isKiosk" in x ? true : false);
  2957          A.store.Bool(ptr + 8, x["isKiosk"] ? true : false);
  2958          A.store.Ref(ptr + 12, x["email"]);
  2959          A.store.Ref(ptr + 16, x["displayEmail"]);
  2960          A.store.Ref(ptr + 20, x["displayName"]);
  2961          A.store.Ref(ptr + 24, x["userImage"]);
  2962          A.store.Bool(ptr + 38, "hasValidOauth2Token" in x ? true : false);
  2963          A.store.Bool(ptr + 28, x["hasValidOauth2Token"] ? true : false);
  2964        }
  2965      },
  2966      "load_LoginStatusDict": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  2967        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  2968  
  2969        if (A.load.Bool(ptr + 29)) {
  2970          x["isLoggedIn"] = A.load.Bool(ptr + 0);
  2971        } else {
  2972          delete x["isLoggedIn"];
  2973        }
  2974        if (A.load.Bool(ptr + 30)) {
  2975          x["isOwner"] = A.load.Bool(ptr + 1);
  2976        } else {
  2977          delete x["isOwner"];
  2978        }
  2979        if (A.load.Bool(ptr + 31)) {
  2980          x["isScreenLocked"] = A.load.Bool(ptr + 2);
  2981        } else {
  2982          delete x["isScreenLocked"];
  2983        }
  2984        if (A.load.Bool(ptr + 32)) {
  2985          x["isLockscreenWallpaperAnimating"] = A.load.Bool(ptr + 3);
  2986        } else {
  2987          delete x["isLockscreenWallpaperAnimating"];
  2988        }
  2989        if (A.load.Bool(ptr + 33)) {
  2990          x["isReadyForPassword"] = A.load.Bool(ptr + 4);
  2991        } else {
  2992          delete x["isReadyForPassword"];
  2993        }
  2994        if (A.load.Bool(ptr + 34)) {
  2995          x["areAllUserImagesLoaded"] = A.load.Bool(ptr + 5);
  2996        } else {
  2997          delete x["areAllUserImagesLoaded"];
  2998        }
  2999        if (A.load.Bool(ptr + 35)) {
  3000          x["isRegularUser"] = A.load.Bool(ptr + 6);
  3001        } else {
  3002          delete x["isRegularUser"];
  3003        }
  3004        if (A.load.Bool(ptr + 36)) {
  3005          x["isGuest"] = A.load.Bool(ptr + 7);
  3006        } else {
  3007          delete x["isGuest"];
  3008        }
  3009        if (A.load.Bool(ptr + 37)) {
  3010          x["isKiosk"] = A.load.Bool(ptr + 8);
  3011        } else {
  3012          delete x["isKiosk"];
  3013        }
  3014        x["email"] = A.load.Ref(ptr + 12, undefined);
  3015        x["displayEmail"] = A.load.Ref(ptr + 16, undefined);
  3016        x["displayName"] = A.load.Ref(ptr + 20, undefined);
  3017        x["userImage"] = A.load.Ref(ptr + 24, undefined);
  3018        if (A.load.Bool(ptr + 38)) {
  3019          x["hasValidOauth2Token"] = A.load.Bool(ptr + 28);
  3020        } else {
  3021          delete x["hasValidOauth2Token"];
  3022        }
  3023        return create === A.H.TRUE ? A.H.push(x) : ref;
  3024      },
  3025  
  3026      "store_MakeFuseboxTempDirData": (ptr: Pointer, ref: heap.Ref<any>) => {
  3027        const x = A.H.get<any>(ref);
  3028  
  3029        if (typeof x === "undefined") {
  3030          A.store.Bool(ptr + 8, false);
  3031          A.store.Ref(ptr + 0, undefined);
  3032          A.store.Ref(ptr + 4, undefined);
  3033        } else {
  3034          A.store.Bool(ptr + 8, true);
  3035          A.store.Ref(ptr + 0, x["fuseboxFilePath"]);
  3036          A.store.Ref(ptr + 4, x["underlyingFilePath"]);
  3037        }
  3038      },
  3039      "load_MakeFuseboxTempDirData": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  3040        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  3041  
  3042        x["fuseboxFilePath"] = A.load.Ref(ptr + 0, undefined);
  3043        x["underlyingFilePath"] = A.load.Ref(ptr + 4, undefined);
  3044        return create === A.H.TRUE ? A.H.push(x) : ref;
  3045      },
  3046      "constof_MouseButton": (ref: heap.Ref<string>): number => {
  3047        const idx = ["Left", "Middle", "Right", "Back", "Forward"].indexOf(A.H.get(ref));
  3048        return idx < 0 ? 0 : idx + 1;
  3049      },
  3050  
  3051      "store_Notification": (ptr: Pointer, ref: heap.Ref<any>) => {
  3052        const x = A.H.get<any>(ref);
  3053  
  3054        if (typeof x === "undefined") {
  3055          A.store.Bool(ptr + 26, false);
  3056          A.store.Ref(ptr + 0, undefined);
  3057          A.store.Ref(ptr + 4, undefined);
  3058          A.store.Ref(ptr + 8, undefined);
  3059          A.store.Ref(ptr + 12, undefined);
  3060          A.store.Bool(ptr + 24, false);
  3061          A.store.Int32(ptr + 16, 0);
  3062          A.store.Bool(ptr + 25, false);
  3063          A.store.Int32(ptr + 20, 0);
  3064        } else {
  3065          A.store.Bool(ptr + 26, true);
  3066          A.store.Ref(ptr + 0, x["id"]);
  3067          A.store.Ref(ptr + 4, x["type"]);
  3068          A.store.Ref(ptr + 8, x["title"]);
  3069          A.store.Ref(ptr + 12, x["message"]);
  3070          A.store.Bool(ptr + 24, "priority" in x ? true : false);
  3071          A.store.Int32(ptr + 16, x["priority"] === undefined ? 0 : (x["priority"] as number));
  3072          A.store.Bool(ptr + 25, "progress" in x ? true : false);
  3073          A.store.Int32(ptr + 20, x["progress"] === undefined ? 0 : (x["progress"] as number));
  3074        }
  3075      },
  3076      "load_Notification": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  3077        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  3078  
  3079        x["id"] = A.load.Ref(ptr + 0, undefined);
  3080        x["type"] = A.load.Ref(ptr + 4, undefined);
  3081        x["title"] = A.load.Ref(ptr + 8, undefined);
  3082        x["message"] = A.load.Ref(ptr + 12, undefined);
  3083        if (A.load.Bool(ptr + 24)) {
  3084          x["priority"] = A.load.Int32(ptr + 16);
  3085        } else {
  3086          delete x["priority"];
  3087        }
  3088        if (A.load.Bool(ptr + 25)) {
  3089          x["progress"] = A.load.Int32(ptr + 20);
  3090        } else {
  3091          delete x["progress"];
  3092        }
  3093        return create === A.H.TRUE ? A.H.push(x) : ref;
  3094      },
  3095      "constof_OverviewStateType": (ref: heap.Ref<string>): number => {
  3096        const idx = ["Shown", "Hidden"].indexOf(A.H.get(ref));
  3097        return idx < 0 ? 0 : idx + 1;
  3098      },
  3099  
  3100      "store_PlayStoreState": (ptr: Pointer, ref: heap.Ref<any>) => {
  3101        const x = A.H.get<any>(ref);
  3102  
  3103        if (typeof x === "undefined") {
  3104          A.store.Bool(ptr + 6, false);
  3105          A.store.Bool(ptr + 3, false);
  3106          A.store.Bool(ptr + 0, false);
  3107          A.store.Bool(ptr + 4, false);
  3108          A.store.Bool(ptr + 1, false);
  3109          A.store.Bool(ptr + 5, false);
  3110          A.store.Bool(ptr + 2, false);
  3111        } else {
  3112          A.store.Bool(ptr + 6, true);
  3113          A.store.Bool(ptr + 3, "allowed" in x ? true : false);
  3114          A.store.Bool(ptr + 0, x["allowed"] ? true : false);
  3115          A.store.Bool(ptr + 4, "enabled" in x ? true : false);
  3116          A.store.Bool(ptr + 1, x["enabled"] ? true : false);
  3117          A.store.Bool(ptr + 5, "managed" in x ? true : false);
  3118          A.store.Bool(ptr + 2, x["managed"] ? true : false);
  3119        }
  3120      },
  3121      "load_PlayStoreState": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  3122        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  3123  
  3124        if (A.load.Bool(ptr + 3)) {
  3125          x["allowed"] = A.load.Bool(ptr + 0);
  3126        } else {
  3127          delete x["allowed"];
  3128        }
  3129        if (A.load.Bool(ptr + 4)) {
  3130          x["enabled"] = A.load.Bool(ptr + 1);
  3131        } else {
  3132          delete x["enabled"];
  3133        }
  3134        if (A.load.Bool(ptr + 5)) {
  3135          x["managed"] = A.load.Bool(ptr + 2);
  3136        } else {
  3137          delete x["managed"];
  3138        }
  3139        return create === A.H.TRUE ? A.H.push(x) : ref;
  3140      },
  3141  
  3142      "store_Printer": (ptr: Pointer, ref: heap.Ref<any>) => {
  3143        const x = A.H.get<any>(ref);
  3144  
  3145        if (typeof x === "undefined") {
  3146          A.store.Bool(ptr + 28, false);
  3147          A.store.Ref(ptr + 0, undefined);
  3148          A.store.Ref(ptr + 4, undefined);
  3149          A.store.Ref(ptr + 8, undefined);
  3150          A.store.Ref(ptr + 12, undefined);
  3151          A.store.Ref(ptr + 16, undefined);
  3152          A.store.Ref(ptr + 20, undefined);
  3153          A.store.Ref(ptr + 24, undefined);
  3154        } else {
  3155          A.store.Bool(ptr + 28, true);
  3156          A.store.Ref(ptr + 0, x["printerName"]);
  3157          A.store.Ref(ptr + 4, x["printerId"]);
  3158          A.store.Ref(ptr + 8, x["printerType"]);
  3159          A.store.Ref(ptr + 12, x["printerDesc"]);
  3160          A.store.Ref(ptr + 16, x["printerMakeAndModel"]);
  3161          A.store.Ref(ptr + 20, x["printerUri"]);
  3162          A.store.Ref(ptr + 24, x["printerPpd"]);
  3163        }
  3164      },
  3165      "load_Printer": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  3166        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  3167  
  3168        x["printerName"] = A.load.Ref(ptr + 0, undefined);
  3169        x["printerId"] = A.load.Ref(ptr + 4, undefined);
  3170        x["printerType"] = A.load.Ref(ptr + 8, undefined);
  3171        x["printerDesc"] = A.load.Ref(ptr + 12, undefined);
  3172        x["printerMakeAndModel"] = A.load.Ref(ptr + 16, undefined);
  3173        x["printerUri"] = A.load.Ref(ptr + 20, undefined);
  3174        x["printerPpd"] = A.load.Ref(ptr + 24, undefined);
  3175        return create === A.H.TRUE ? A.H.push(x) : ref;
  3176      },
  3177  
  3178      "store_ResetHoldingSpaceOptions": (ptr: Pointer, ref: heap.Ref<any>) => {
  3179        const x = A.H.get<any>(ref);
  3180  
  3181        if (typeof x === "undefined") {
  3182          A.store.Bool(ptr + 2, false);
  3183          A.store.Bool(ptr + 1, false);
  3184          A.store.Bool(ptr + 0, false);
  3185        } else {
  3186          A.store.Bool(ptr + 2, true);
  3187          A.store.Bool(ptr + 1, "markTimeOfFirstAdd" in x ? true : false);
  3188          A.store.Bool(ptr + 0, x["markTimeOfFirstAdd"] ? true : false);
  3189        }
  3190      },
  3191      "load_ResetHoldingSpaceOptions": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  3192        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  3193  
  3194        if (A.load.Bool(ptr + 1)) {
  3195          x["markTimeOfFirstAdd"] = A.load.Bool(ptr + 0);
  3196        } else {
  3197          delete x["markTimeOfFirstAdd"];
  3198        }
  3199        return create === A.H.TRUE ? A.H.push(x) : ref;
  3200      },
  3201      "constof_RotationType": (ref: heap.Ref<string>): number => {
  3202        const idx = ["RotateAny", "Rotate0", "Rotate90", "Rotate180", "Rotate270"].indexOf(A.H.get(ref));
  3203        return idx < 0 ? 0 : idx + 1;
  3204      },
  3205  
  3206      "store_ScrollableShelfState": (ptr: Pointer, ref: heap.Ref<any>) => {
  3207        const x = A.H.get<any>(ref);
  3208  
  3209        if (typeof x === "undefined") {
  3210          A.store.Bool(ptr + 9, false);
  3211          A.store.Bool(ptr + 8, false);
  3212          A.store.Float64(ptr + 0, 0);
  3213        } else {
  3214          A.store.Bool(ptr + 9, true);
  3215          A.store.Bool(ptr + 8, "scrollDistance" in x ? true : false);
  3216          A.store.Float64(ptr + 0, x["scrollDistance"] === undefined ? 0 : (x["scrollDistance"] as number));
  3217        }
  3218      },
  3219      "load_ScrollableShelfState": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  3220        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  3221  
  3222        if (A.load.Bool(ptr + 8)) {
  3223          x["scrollDistance"] = A.load.Float64(ptr + 0);
  3224        } else {
  3225          delete x["scrollDistance"];
  3226        }
  3227        return create === A.H.TRUE ? A.H.push(x) : ref;
  3228      },
  3229  
  3230      "store_SetWindowBoundsResult": (ptr: Pointer, ref: heap.Ref<any>) => {
  3231        const x = A.H.get<any>(ref);
  3232  
  3233        if (typeof x === "undefined") {
  3234          A.store.Bool(ptr + 44, false);
  3235  
  3236          A.store.Bool(ptr + 0 + 36, false);
  3237          A.store.Bool(ptr + 0 + 32, false);
  3238          A.store.Float64(ptr + 0 + 0, 0);
  3239          A.store.Bool(ptr + 0 + 33, false);
  3240          A.store.Float64(ptr + 0 + 8, 0);
  3241          A.store.Bool(ptr + 0 + 34, false);
  3242          A.store.Float64(ptr + 0 + 16, 0);
  3243          A.store.Bool(ptr + 0 + 35, false);
  3244          A.store.Float64(ptr + 0 + 24, 0);
  3245          A.store.Ref(ptr + 40, undefined);
  3246        } else {
  3247          A.store.Bool(ptr + 44, true);
  3248  
  3249          if (typeof x["bounds"] === "undefined") {
  3250            A.store.Bool(ptr + 0 + 36, false);
  3251            A.store.Bool(ptr + 0 + 32, false);
  3252            A.store.Float64(ptr + 0 + 0, 0);
  3253            A.store.Bool(ptr + 0 + 33, false);
  3254            A.store.Float64(ptr + 0 + 8, 0);
  3255            A.store.Bool(ptr + 0 + 34, false);
  3256            A.store.Float64(ptr + 0 + 16, 0);
  3257            A.store.Bool(ptr + 0 + 35, false);
  3258            A.store.Float64(ptr + 0 + 24, 0);
  3259          } else {
  3260            A.store.Bool(ptr + 0 + 36, true);
  3261            A.store.Bool(ptr + 0 + 32, "left" in x["bounds"] ? true : false);
  3262            A.store.Float64(ptr + 0 + 0, x["bounds"]["left"] === undefined ? 0 : (x["bounds"]["left"] as number));
  3263            A.store.Bool(ptr + 0 + 33, "top" in x["bounds"] ? true : false);
  3264            A.store.Float64(ptr + 0 + 8, x["bounds"]["top"] === undefined ? 0 : (x["bounds"]["top"] as number));
  3265            A.store.Bool(ptr + 0 + 34, "width" in x["bounds"] ? true : false);
  3266            A.store.Float64(ptr + 0 + 16, x["bounds"]["width"] === undefined ? 0 : (x["bounds"]["width"] as number));
  3267            A.store.Bool(ptr + 0 + 35, "height" in x["bounds"] ? true : false);
  3268            A.store.Float64(ptr + 0 + 24, x["bounds"]["height"] === undefined ? 0 : (x["bounds"]["height"] as number));
  3269          }
  3270          A.store.Ref(ptr + 40, x["displayId"]);
  3271        }
  3272      },
  3273      "load_SetWindowBoundsResult": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  3274        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  3275  
  3276        if (A.load.Bool(ptr + 0 + 36)) {
  3277          x["bounds"] = {};
  3278          if (A.load.Bool(ptr + 0 + 32)) {
  3279            x["bounds"]["left"] = A.load.Float64(ptr + 0 + 0);
  3280          } else {
  3281            delete x["bounds"]["left"];
  3282          }
  3283          if (A.load.Bool(ptr + 0 + 33)) {
  3284            x["bounds"]["top"] = A.load.Float64(ptr + 0 + 8);
  3285          } else {
  3286            delete x["bounds"]["top"];
  3287          }
  3288          if (A.load.Bool(ptr + 0 + 34)) {
  3289            x["bounds"]["width"] = A.load.Float64(ptr + 0 + 16);
  3290          } else {
  3291            delete x["bounds"]["width"];
  3292          }
  3293          if (A.load.Bool(ptr + 0 + 35)) {
  3294            x["bounds"]["height"] = A.load.Float64(ptr + 0 + 24);
  3295          } else {
  3296            delete x["bounds"]["height"];
  3297          }
  3298        } else {
  3299          delete x["bounds"];
  3300        }
  3301        x["displayId"] = A.load.Ref(ptr + 40, undefined);
  3302        return create === A.H.TRUE ? A.H.push(x) : ref;
  3303      },
  3304  
  3305      "store_ShelfIconPinUpdateParam": (ptr: Pointer, ref: heap.Ref<any>) => {
  3306        const x = A.H.get<any>(ref);
  3307  
  3308        if (typeof x === "undefined") {
  3309          A.store.Bool(ptr + 6, false);
  3310          A.store.Ref(ptr + 0, undefined);
  3311          A.store.Bool(ptr + 5, false);
  3312          A.store.Bool(ptr + 4, false);
  3313        } else {
  3314          A.store.Bool(ptr + 6, true);
  3315          A.store.Ref(ptr + 0, x["appId"]);
  3316          A.store.Bool(ptr + 5, "pinned" in x ? true : false);
  3317          A.store.Bool(ptr + 4, x["pinned"] ? true : false);
  3318        }
  3319      },
  3320      "load_ShelfIconPinUpdateParam": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  3321        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  3322  
  3323        x["appId"] = A.load.Ref(ptr + 0, undefined);
  3324        if (A.load.Bool(ptr + 5)) {
  3325          x["pinned"] = A.load.Bool(ptr + 4);
  3326        } else {
  3327          delete x["pinned"];
  3328        }
  3329        return create === A.H.TRUE ? A.H.push(x) : ref;
  3330      },
  3331  
  3332      "store_ShelfState": (ptr: Pointer, ref: heap.Ref<any>) => {
  3333        const x = A.H.get<any>(ref);
  3334  
  3335        if (typeof x === "undefined") {
  3336          A.store.Bool(ptr + 9, false);
  3337          A.store.Bool(ptr + 8, false);
  3338          A.store.Float64(ptr + 0, 0);
  3339        } else {
  3340          A.store.Bool(ptr + 9, true);
  3341          A.store.Bool(ptr + 8, "scrollDistance" in x ? true : false);
  3342          A.store.Float64(ptr + 0, x["scrollDistance"] === undefined ? 0 : (x["scrollDistance"] as number));
  3343        }
  3344      },
  3345      "load_ShelfState": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  3346        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  3347  
  3348        if (A.load.Bool(ptr + 8)) {
  3349          x["scrollDistance"] = A.load.Float64(ptr + 0);
  3350        } else {
  3351          delete x["scrollDistance"];
  3352        }
  3353        return create === A.H.TRUE ? A.H.push(x) : ref;
  3354      },
  3355      "constof_ThemeStyle": (ref: heap.Ref<string>): number => {
  3356        const idx = ["TonalSpot", "Vibrant", "Expressive", "Spritz", "Rainbow", "FruitSalad"].indexOf(A.H.get(ref));
  3357        return idx < 0 ? 0 : idx + 1;
  3358      },
  3359      "constof_WMEventType": (ref: heap.Ref<string>): number => {
  3360        const idx = [
  3361          "WMEventNormal",
  3362          "WMEventMaximize",
  3363          "WMEventMinimize",
  3364          "WMEventFullscreen",
  3365          "WMEventSnapPrimary",
  3366          "WMEventSnapSecondary",
  3367          "WMEventFloat",
  3368        ].indexOf(A.H.get(ref));
  3369        return idx < 0 ? 0 : idx + 1;
  3370      },
  3371  
  3372      "store_WindowStateChangeDict": (ptr: Pointer, ref: heap.Ref<any>) => {
  3373        const x = A.H.get<any>(ref);
  3374  
  3375        if (typeof x === "undefined") {
  3376          A.store.Bool(ptr + 6, false);
  3377          A.store.Enum(ptr + 0, -1);
  3378          A.store.Bool(ptr + 5, false);
  3379          A.store.Bool(ptr + 4, false);
  3380        } else {
  3381          A.store.Bool(ptr + 6, true);
  3382          A.store.Enum(
  3383            ptr + 0,
  3384            [
  3385              "WMEventNormal",
  3386              "WMEventMaximize",
  3387              "WMEventMinimize",
  3388              "WMEventFullscreen",
  3389              "WMEventSnapPrimary",
  3390              "WMEventSnapSecondary",
  3391              "WMEventFloat",
  3392            ].indexOf(x["eventType"] as string)
  3393          );
  3394          A.store.Bool(ptr + 5, "failIfNoChange" in x ? true : false);
  3395          A.store.Bool(ptr + 4, x["failIfNoChange"] ? true : false);
  3396        }
  3397      },
  3398      "load_WindowStateChangeDict": (ptr: Pointer, create: heap.Ref<boolean>, ref: heap.Ref<any>): heap.Ref<any> => {
  3399        const x = create === A.H.TRUE ? {} : A.H.get<any>(ref);
  3400  
  3401        x["eventType"] = A.load.Enum(ptr + 0, [
  3402          "WMEventNormal",
  3403          "WMEventMaximize",
  3404          "WMEventMinimize",
  3405          "WMEventFullscreen",
  3406          "WMEventSnapPrimary",
  3407          "WMEventSnapSecondary",
  3408          "WMEventFloat",
  3409        ]);
  3410        if (A.load.Bool(ptr + 5)) {
  3411          x["failIfNoChange"] = A.load.Bool(ptr + 4);
  3412        } else {
  3413          delete x["failIfNoChange"];
  3414        }
  3415        return create === A.H.TRUE ? A.H.push(x) : ref;
  3416      },
  3417      "has_ActivateAccelerator": (): heap.Ref<boolean> => {
  3418        if (WEBEXT?.autotestPrivate && "activateAccelerator" in WEBEXT?.autotestPrivate) {
  3419          return A.H.TRUE;
  3420        }
  3421        return A.H.FALSE;
  3422      },
  3423      "func_ActivateAccelerator": (fn: Pointer): void => {
  3424        A.store.Ref(fn, WEBEXT.autotestPrivate.activateAccelerator);
  3425      },
  3426      "call_ActivateAccelerator": (retPtr: Pointer, accelerator: Pointer): void => {
  3427        const accelerator_ffi = {};
  3428  
  3429        accelerator_ffi["keyCode"] = A.load.Ref(accelerator + 0, undefined);
  3430        if (A.load.Bool(accelerator + 9)) {
  3431          accelerator_ffi["shift"] = A.load.Bool(accelerator + 4);
  3432        }
  3433        if (A.load.Bool(accelerator + 10)) {
  3434          accelerator_ffi["control"] = A.load.Bool(accelerator + 5);
  3435        }
  3436        if (A.load.Bool(accelerator + 11)) {
  3437          accelerator_ffi["alt"] = A.load.Bool(accelerator + 6);
  3438        }
  3439        if (A.load.Bool(accelerator + 12)) {
  3440          accelerator_ffi["search"] = A.load.Bool(accelerator + 7);
  3441        }
  3442        if (A.load.Bool(accelerator + 13)) {
  3443          accelerator_ffi["pressed"] = A.load.Bool(accelerator + 8);
  3444        }
  3445  
  3446        const _ret = WEBEXT.autotestPrivate.activateAccelerator(accelerator_ffi);
  3447        A.store.Ref(retPtr, _ret);
  3448      },
  3449      "try_ActivateAccelerator": (retPtr: Pointer, errPtr: Pointer, accelerator: Pointer): heap.Ref<boolean> => {
  3450        try {
  3451          const accelerator_ffi = {};
  3452  
  3453          accelerator_ffi["keyCode"] = A.load.Ref(accelerator + 0, undefined);
  3454          if (A.load.Bool(accelerator + 9)) {
  3455            accelerator_ffi["shift"] = A.load.Bool(accelerator + 4);
  3456          }
  3457          if (A.load.Bool(accelerator + 10)) {
  3458            accelerator_ffi["control"] = A.load.Bool(accelerator + 5);
  3459          }
  3460          if (A.load.Bool(accelerator + 11)) {
  3461            accelerator_ffi["alt"] = A.load.Bool(accelerator + 6);
  3462          }
  3463          if (A.load.Bool(accelerator + 12)) {
  3464            accelerator_ffi["search"] = A.load.Bool(accelerator + 7);
  3465          }
  3466          if (A.load.Bool(accelerator + 13)) {
  3467            accelerator_ffi["pressed"] = A.load.Bool(accelerator + 8);
  3468          }
  3469  
  3470          const _ret = WEBEXT.autotestPrivate.activateAccelerator(accelerator_ffi);
  3471          A.store.Ref(retPtr, _ret);
  3472          return A.H.TRUE;
  3473        } catch (err: any) {
  3474          A.store.Ref(errPtr, err);
  3475          return A.H.FALSE;
  3476        }
  3477      },
  3478      "has_ActivateAdjacentDesksToTargetIndex": (): heap.Ref<boolean> => {
  3479        if (WEBEXT?.autotestPrivate && "activateAdjacentDesksToTargetIndex" in WEBEXT?.autotestPrivate) {
  3480          return A.H.TRUE;
  3481        }
  3482        return A.H.FALSE;
  3483      },
  3484      "func_ActivateAdjacentDesksToTargetIndex": (fn: Pointer): void => {
  3485        A.store.Ref(fn, WEBEXT.autotestPrivate.activateAdjacentDesksToTargetIndex);
  3486      },
  3487      "call_ActivateAdjacentDesksToTargetIndex": (retPtr: Pointer, index: number): void => {
  3488        const _ret = WEBEXT.autotestPrivate.activateAdjacentDesksToTargetIndex(index);
  3489        A.store.Ref(retPtr, _ret);
  3490      },
  3491      "try_ActivateAdjacentDesksToTargetIndex": (retPtr: Pointer, errPtr: Pointer, index: number): heap.Ref<boolean> => {
  3492        try {
  3493          const _ret = WEBEXT.autotestPrivate.activateAdjacentDesksToTargetIndex(index);
  3494          A.store.Ref(retPtr, _ret);
  3495          return A.H.TRUE;
  3496        } catch (err: any) {
  3497          A.store.Ref(errPtr, err);
  3498          return A.H.FALSE;
  3499        }
  3500      },
  3501      "has_ActivateAppWindow": (): heap.Ref<boolean> => {
  3502        if (WEBEXT?.autotestPrivate && "activateAppWindow" in WEBEXT?.autotestPrivate) {
  3503          return A.H.TRUE;
  3504        }
  3505        return A.H.FALSE;
  3506      },
  3507      "func_ActivateAppWindow": (fn: Pointer): void => {
  3508        A.store.Ref(fn, WEBEXT.autotestPrivate.activateAppWindow);
  3509      },
  3510      "call_ActivateAppWindow": (retPtr: Pointer, id: number): void => {
  3511        const _ret = WEBEXT.autotestPrivate.activateAppWindow(id);
  3512        A.store.Ref(retPtr, _ret);
  3513      },
  3514      "try_ActivateAppWindow": (retPtr: Pointer, errPtr: Pointer, id: number): heap.Ref<boolean> => {
  3515        try {
  3516          const _ret = WEBEXT.autotestPrivate.activateAppWindow(id);
  3517          A.store.Ref(retPtr, _ret);
  3518          return A.H.TRUE;
  3519        } catch (err: any) {
  3520          A.store.Ref(errPtr, err);
  3521          return A.H.FALSE;
  3522        }
  3523      },
  3524      "has_ActivateDeskAtIndex": (): heap.Ref<boolean> => {
  3525        if (WEBEXT?.autotestPrivate && "activateDeskAtIndex" in WEBEXT?.autotestPrivate) {
  3526          return A.H.TRUE;
  3527        }
  3528        return A.H.FALSE;
  3529      },
  3530      "func_ActivateDeskAtIndex": (fn: Pointer): void => {
  3531        A.store.Ref(fn, WEBEXT.autotestPrivate.activateDeskAtIndex);
  3532      },
  3533      "call_ActivateDeskAtIndex": (retPtr: Pointer, index: number): void => {
  3534        const _ret = WEBEXT.autotestPrivate.activateDeskAtIndex(index);
  3535        A.store.Ref(retPtr, _ret);
  3536      },
  3537      "try_ActivateDeskAtIndex": (retPtr: Pointer, errPtr: Pointer, index: number): heap.Ref<boolean> => {
  3538        try {
  3539          const _ret = WEBEXT.autotestPrivate.activateDeskAtIndex(index);
  3540          A.store.Ref(retPtr, _ret);
  3541          return A.H.TRUE;
  3542        } catch (err: any) {
  3543          A.store.Ref(errPtr, err);
  3544          return A.H.FALSE;
  3545        }
  3546      },
  3547      "has_AddLoginEventForTesting": (): heap.Ref<boolean> => {
  3548        if (WEBEXT?.autotestPrivate && "addLoginEventForTesting" in WEBEXT?.autotestPrivate) {
  3549          return A.H.TRUE;
  3550        }
  3551        return A.H.FALSE;
  3552      },
  3553      "func_AddLoginEventForTesting": (fn: Pointer): void => {
  3554        A.store.Ref(fn, WEBEXT.autotestPrivate.addLoginEventForTesting);
  3555      },
  3556      "call_AddLoginEventForTesting": (retPtr: Pointer): void => {
  3557        const _ret = WEBEXT.autotestPrivate.addLoginEventForTesting();
  3558        A.store.Ref(retPtr, _ret);
  3559      },
  3560      "try_AddLoginEventForTesting": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3561        try {
  3562          const _ret = WEBEXT.autotestPrivate.addLoginEventForTesting();
  3563          A.store.Ref(retPtr, _ret);
  3564          return A.H.TRUE;
  3565        } catch (err: any) {
  3566          A.store.Ref(errPtr, err);
  3567          return A.H.FALSE;
  3568        }
  3569      },
  3570      "has_ArcAppTracingStart": (): heap.Ref<boolean> => {
  3571        if (WEBEXT?.autotestPrivate && "arcAppTracingStart" in WEBEXT?.autotestPrivate) {
  3572          return A.H.TRUE;
  3573        }
  3574        return A.H.FALSE;
  3575      },
  3576      "func_ArcAppTracingStart": (fn: Pointer): void => {
  3577        A.store.Ref(fn, WEBEXT.autotestPrivate.arcAppTracingStart);
  3578      },
  3579      "call_ArcAppTracingStart": (retPtr: Pointer): void => {
  3580        const _ret = WEBEXT.autotestPrivate.arcAppTracingStart();
  3581        A.store.Ref(retPtr, _ret);
  3582      },
  3583      "try_ArcAppTracingStart": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3584        try {
  3585          const _ret = WEBEXT.autotestPrivate.arcAppTracingStart();
  3586          A.store.Ref(retPtr, _ret);
  3587          return A.H.TRUE;
  3588        } catch (err: any) {
  3589          A.store.Ref(errPtr, err);
  3590          return A.H.FALSE;
  3591        }
  3592      },
  3593      "has_ArcAppTracingStopAndAnalyze": (): heap.Ref<boolean> => {
  3594        if (WEBEXT?.autotestPrivate && "arcAppTracingStopAndAnalyze" in WEBEXT?.autotestPrivate) {
  3595          return A.H.TRUE;
  3596        }
  3597        return A.H.FALSE;
  3598      },
  3599      "func_ArcAppTracingStopAndAnalyze": (fn: Pointer): void => {
  3600        A.store.Ref(fn, WEBEXT.autotestPrivate.arcAppTracingStopAndAnalyze);
  3601      },
  3602      "call_ArcAppTracingStopAndAnalyze": (retPtr: Pointer): void => {
  3603        const _ret = WEBEXT.autotestPrivate.arcAppTracingStopAndAnalyze();
  3604        A.store.Ref(retPtr, _ret);
  3605      },
  3606      "try_ArcAppTracingStopAndAnalyze": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3607        try {
  3608          const _ret = WEBEXT.autotestPrivate.arcAppTracingStopAndAnalyze();
  3609          A.store.Ref(retPtr, _ret);
  3610          return A.H.TRUE;
  3611        } catch (err: any) {
  3612          A.store.Ref(errPtr, err);
  3613          return A.H.FALSE;
  3614        }
  3615      },
  3616      "has_BootstrapMachineLearningService": (): heap.Ref<boolean> => {
  3617        if (WEBEXT?.autotestPrivate && "bootstrapMachineLearningService" in WEBEXT?.autotestPrivate) {
  3618          return A.H.TRUE;
  3619        }
  3620        return A.H.FALSE;
  3621      },
  3622      "func_BootstrapMachineLearningService": (fn: Pointer): void => {
  3623        A.store.Ref(fn, WEBEXT.autotestPrivate.bootstrapMachineLearningService);
  3624      },
  3625      "call_BootstrapMachineLearningService": (retPtr: Pointer): void => {
  3626        const _ret = WEBEXT.autotestPrivate.bootstrapMachineLearningService();
  3627        A.store.Ref(retPtr, _ret);
  3628      },
  3629      "try_BootstrapMachineLearningService": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3630        try {
  3631          const _ret = WEBEXT.autotestPrivate.bootstrapMachineLearningService();
  3632          A.store.Ref(retPtr, _ret);
  3633          return A.H.TRUE;
  3634        } catch (err: any) {
  3635          A.store.Ref(errPtr, err);
  3636          return A.H.FALSE;
  3637        }
  3638      },
  3639      "has_CloseApp": (): heap.Ref<boolean> => {
  3640        if (WEBEXT?.autotestPrivate && "closeApp" in WEBEXT?.autotestPrivate) {
  3641          return A.H.TRUE;
  3642        }
  3643        return A.H.FALSE;
  3644      },
  3645      "func_CloseApp": (fn: Pointer): void => {
  3646        A.store.Ref(fn, WEBEXT.autotestPrivate.closeApp);
  3647      },
  3648      "call_CloseApp": (retPtr: Pointer, appId: heap.Ref<object>): void => {
  3649        const _ret = WEBEXT.autotestPrivate.closeApp(A.H.get<object>(appId));
  3650        A.store.Ref(retPtr, _ret);
  3651      },
  3652      "try_CloseApp": (retPtr: Pointer, errPtr: Pointer, appId: heap.Ref<object>): heap.Ref<boolean> => {
  3653        try {
  3654          const _ret = WEBEXT.autotestPrivate.closeApp(A.H.get<object>(appId));
  3655          A.store.Ref(retPtr, _ret);
  3656          return A.H.TRUE;
  3657        } catch (err: any) {
  3658          A.store.Ref(errPtr, err);
  3659          return A.H.FALSE;
  3660        }
  3661      },
  3662      "has_CloseAppWindow": (): heap.Ref<boolean> => {
  3663        if (WEBEXT?.autotestPrivate && "closeAppWindow" in WEBEXT?.autotestPrivate) {
  3664          return A.H.TRUE;
  3665        }
  3666        return A.H.FALSE;
  3667      },
  3668      "func_CloseAppWindow": (fn: Pointer): void => {
  3669        A.store.Ref(fn, WEBEXT.autotestPrivate.closeAppWindow);
  3670      },
  3671      "call_CloseAppWindow": (retPtr: Pointer, id: number): void => {
  3672        const _ret = WEBEXT.autotestPrivate.closeAppWindow(id);
  3673        A.store.Ref(retPtr, _ret);
  3674      },
  3675      "try_CloseAppWindow": (retPtr: Pointer, errPtr: Pointer, id: number): heap.Ref<boolean> => {
  3676        try {
  3677          const _ret = WEBEXT.autotestPrivate.closeAppWindow(id);
  3678          A.store.Ref(retPtr, _ret);
  3679          return A.H.TRUE;
  3680        } catch (err: any) {
  3681          A.store.Ref(errPtr, err);
  3682          return A.H.FALSE;
  3683        }
  3684      },
  3685      "has_CouldAllowCrostini": (): heap.Ref<boolean> => {
  3686        if (WEBEXT?.autotestPrivate && "couldAllowCrostini" in WEBEXT?.autotestPrivate) {
  3687          return A.H.TRUE;
  3688        }
  3689        return A.H.FALSE;
  3690      },
  3691      "func_CouldAllowCrostini": (fn: Pointer): void => {
  3692        A.store.Ref(fn, WEBEXT.autotestPrivate.couldAllowCrostini);
  3693      },
  3694      "call_CouldAllowCrostini": (retPtr: Pointer): void => {
  3695        const _ret = WEBEXT.autotestPrivate.couldAllowCrostini();
  3696        A.store.Ref(retPtr, _ret);
  3697      },
  3698      "try_CouldAllowCrostini": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3699        try {
  3700          const _ret = WEBEXT.autotestPrivate.couldAllowCrostini();
  3701          A.store.Ref(retPtr, _ret);
  3702          return A.H.TRUE;
  3703        } catch (err: any) {
  3704          A.store.Ref(errPtr, err);
  3705          return A.H.FALSE;
  3706        }
  3707      },
  3708      "has_CreateNewDesk": (): heap.Ref<boolean> => {
  3709        if (WEBEXT?.autotestPrivate && "createNewDesk" in WEBEXT?.autotestPrivate) {
  3710          return A.H.TRUE;
  3711        }
  3712        return A.H.FALSE;
  3713      },
  3714      "func_CreateNewDesk": (fn: Pointer): void => {
  3715        A.store.Ref(fn, WEBEXT.autotestPrivate.createNewDesk);
  3716      },
  3717      "call_CreateNewDesk": (retPtr: Pointer): void => {
  3718        const _ret = WEBEXT.autotestPrivate.createNewDesk();
  3719        A.store.Ref(retPtr, _ret);
  3720      },
  3721      "try_CreateNewDesk": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3722        try {
  3723          const _ret = WEBEXT.autotestPrivate.createNewDesk();
  3724          A.store.Ref(retPtr, _ret);
  3725          return A.H.TRUE;
  3726        } catch (err: any) {
  3727          A.store.Ref(errPtr, err);
  3728          return A.H.FALSE;
  3729        }
  3730      },
  3731      "has_DisableAutomation": (): heap.Ref<boolean> => {
  3732        if (WEBEXT?.autotestPrivate && "disableAutomation" in WEBEXT?.autotestPrivate) {
  3733          return A.H.TRUE;
  3734        }
  3735        return A.H.FALSE;
  3736      },
  3737      "func_DisableAutomation": (fn: Pointer): void => {
  3738        A.store.Ref(fn, WEBEXT.autotestPrivate.disableAutomation);
  3739      },
  3740      "call_DisableAutomation": (retPtr: Pointer): void => {
  3741        const _ret = WEBEXT.autotestPrivate.disableAutomation();
  3742        A.store.Ref(retPtr, _ret);
  3743      },
  3744      "try_DisableAutomation": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3745        try {
  3746          const _ret = WEBEXT.autotestPrivate.disableAutomation();
  3747          A.store.Ref(retPtr, _ret);
  3748          return A.H.TRUE;
  3749        } catch (err: any) {
  3750          A.store.Ref(errPtr, err);
  3751          return A.H.FALSE;
  3752        }
  3753      },
  3754      "has_DisableSwitchAccessDialog": (): heap.Ref<boolean> => {
  3755        if (WEBEXT?.autotestPrivate && "disableSwitchAccessDialog" in WEBEXT?.autotestPrivate) {
  3756          return A.H.TRUE;
  3757        }
  3758        return A.H.FALSE;
  3759      },
  3760      "func_DisableSwitchAccessDialog": (fn: Pointer): void => {
  3761        A.store.Ref(fn, WEBEXT.autotestPrivate.disableSwitchAccessDialog);
  3762      },
  3763      "call_DisableSwitchAccessDialog": (retPtr: Pointer): void => {
  3764        const _ret = WEBEXT.autotestPrivate.disableSwitchAccessDialog();
  3765      },
  3766      "try_DisableSwitchAccessDialog": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3767        try {
  3768          const _ret = WEBEXT.autotestPrivate.disableSwitchAccessDialog();
  3769          return A.H.TRUE;
  3770        } catch (err: any) {
  3771          A.store.Ref(errPtr, err);
  3772          return A.H.FALSE;
  3773        }
  3774      },
  3775      "has_EnableAssistantAndWaitForReady": (): heap.Ref<boolean> => {
  3776        if (WEBEXT?.autotestPrivate && "enableAssistantAndWaitForReady" in WEBEXT?.autotestPrivate) {
  3777          return A.H.TRUE;
  3778        }
  3779        return A.H.FALSE;
  3780      },
  3781      "func_EnableAssistantAndWaitForReady": (fn: Pointer): void => {
  3782        A.store.Ref(fn, WEBEXT.autotestPrivate.enableAssistantAndWaitForReady);
  3783      },
  3784      "call_EnableAssistantAndWaitForReady": (retPtr: Pointer): void => {
  3785        const _ret = WEBEXT.autotestPrivate.enableAssistantAndWaitForReady();
  3786        A.store.Ref(retPtr, _ret);
  3787      },
  3788      "try_EnableAssistantAndWaitForReady": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3789        try {
  3790          const _ret = WEBEXT.autotestPrivate.enableAssistantAndWaitForReady();
  3791          A.store.Ref(retPtr, _ret);
  3792          return A.H.TRUE;
  3793        } catch (err: any) {
  3794          A.store.Ref(errPtr, err);
  3795          return A.H.FALSE;
  3796        }
  3797      },
  3798      "has_ExportCrostini": (): heap.Ref<boolean> => {
  3799        if (WEBEXT?.autotestPrivate && "exportCrostini" in WEBEXT?.autotestPrivate) {
  3800          return A.H.TRUE;
  3801        }
  3802        return A.H.FALSE;
  3803      },
  3804      "func_ExportCrostini": (fn: Pointer): void => {
  3805        A.store.Ref(fn, WEBEXT.autotestPrivate.exportCrostini);
  3806      },
  3807      "call_ExportCrostini": (retPtr: Pointer, path: heap.Ref<object>): void => {
  3808        const _ret = WEBEXT.autotestPrivate.exportCrostini(A.H.get<object>(path));
  3809        A.store.Ref(retPtr, _ret);
  3810      },
  3811      "try_ExportCrostini": (retPtr: Pointer, errPtr: Pointer, path: heap.Ref<object>): heap.Ref<boolean> => {
  3812        try {
  3813          const _ret = WEBEXT.autotestPrivate.exportCrostini(A.H.get<object>(path));
  3814          A.store.Ref(retPtr, _ret);
  3815          return A.H.TRUE;
  3816        } catch (err: any) {
  3817          A.store.Ref(errPtr, err);
  3818          return A.H.FALSE;
  3819        }
  3820      },
  3821      "has_ForceAutoThemeMode": (): heap.Ref<boolean> => {
  3822        if (WEBEXT?.autotestPrivate && "forceAutoThemeMode" in WEBEXT?.autotestPrivate) {
  3823          return A.H.TRUE;
  3824        }
  3825        return A.H.FALSE;
  3826      },
  3827      "func_ForceAutoThemeMode": (fn: Pointer): void => {
  3828        A.store.Ref(fn, WEBEXT.autotestPrivate.forceAutoThemeMode);
  3829      },
  3830      "call_ForceAutoThemeMode": (retPtr: Pointer, darkModeEnabled: heap.Ref<boolean>): void => {
  3831        const _ret = WEBEXT.autotestPrivate.forceAutoThemeMode(darkModeEnabled === A.H.TRUE);
  3832        A.store.Ref(retPtr, _ret);
  3833      },
  3834      "try_ForceAutoThemeMode": (
  3835        retPtr: Pointer,
  3836        errPtr: Pointer,
  3837        darkModeEnabled: heap.Ref<boolean>
  3838      ): heap.Ref<boolean> => {
  3839        try {
  3840          const _ret = WEBEXT.autotestPrivate.forceAutoThemeMode(darkModeEnabled === A.H.TRUE);
  3841          A.store.Ref(retPtr, _ret);
  3842          return A.H.TRUE;
  3843        } catch (err: any) {
  3844          A.store.Ref(errPtr, err);
  3845          return A.H.FALSE;
  3846        }
  3847      },
  3848      "has_GetAccessToken": (): heap.Ref<boolean> => {
  3849        if (WEBEXT?.autotestPrivate && "getAccessToken" in WEBEXT?.autotestPrivate) {
  3850          return A.H.TRUE;
  3851        }
  3852        return A.H.FALSE;
  3853      },
  3854      "func_GetAccessToken": (fn: Pointer): void => {
  3855        A.store.Ref(fn, WEBEXT.autotestPrivate.getAccessToken);
  3856      },
  3857      "call_GetAccessToken": (retPtr: Pointer, accessTokenParams: Pointer): void => {
  3858        const accessTokenParams_ffi = {};
  3859  
  3860        accessTokenParams_ffi["email"] = A.load.Ref(accessTokenParams + 0, undefined);
  3861        accessTokenParams_ffi["scopes"] = A.load.Ref(accessTokenParams + 4, undefined);
  3862        if (A.load.Bool(accessTokenParams + 12)) {
  3863          accessTokenParams_ffi["timeoutMs"] = A.load.Int32(accessTokenParams + 8);
  3864        }
  3865  
  3866        const _ret = WEBEXT.autotestPrivate.getAccessToken(accessTokenParams_ffi);
  3867        A.store.Ref(retPtr, _ret);
  3868      },
  3869      "try_GetAccessToken": (retPtr: Pointer, errPtr: Pointer, accessTokenParams: Pointer): heap.Ref<boolean> => {
  3870        try {
  3871          const accessTokenParams_ffi = {};
  3872  
  3873          accessTokenParams_ffi["email"] = A.load.Ref(accessTokenParams + 0, undefined);
  3874          accessTokenParams_ffi["scopes"] = A.load.Ref(accessTokenParams + 4, undefined);
  3875          if (A.load.Bool(accessTokenParams + 12)) {
  3876            accessTokenParams_ffi["timeoutMs"] = A.load.Int32(accessTokenParams + 8);
  3877          }
  3878  
  3879          const _ret = WEBEXT.autotestPrivate.getAccessToken(accessTokenParams_ffi);
  3880          A.store.Ref(retPtr, _ret);
  3881          return A.H.TRUE;
  3882        } catch (err: any) {
  3883          A.store.Ref(errPtr, err);
  3884          return A.H.FALSE;
  3885        }
  3886      },
  3887      "has_GetAllEnterprisePolicies": (): heap.Ref<boolean> => {
  3888        if (WEBEXT?.autotestPrivate && "getAllEnterprisePolicies" in WEBEXT?.autotestPrivate) {
  3889          return A.H.TRUE;
  3890        }
  3891        return A.H.FALSE;
  3892      },
  3893      "func_GetAllEnterprisePolicies": (fn: Pointer): void => {
  3894        A.store.Ref(fn, WEBEXT.autotestPrivate.getAllEnterprisePolicies);
  3895      },
  3896      "call_GetAllEnterprisePolicies": (retPtr: Pointer): void => {
  3897        const _ret = WEBEXT.autotestPrivate.getAllEnterprisePolicies();
  3898        A.store.Ref(retPtr, _ret);
  3899      },
  3900      "try_GetAllEnterprisePolicies": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3901        try {
  3902          const _ret = WEBEXT.autotestPrivate.getAllEnterprisePolicies();
  3903          A.store.Ref(retPtr, _ret);
  3904          return A.H.TRUE;
  3905        } catch (err: any) {
  3906          A.store.Ref(errPtr, err);
  3907          return A.H.FALSE;
  3908        }
  3909      },
  3910      "has_GetAllInstalledApps": (): heap.Ref<boolean> => {
  3911        if (WEBEXT?.autotestPrivate && "getAllInstalledApps" in WEBEXT?.autotestPrivate) {
  3912          return A.H.TRUE;
  3913        }
  3914        return A.H.FALSE;
  3915      },
  3916      "func_GetAllInstalledApps": (fn: Pointer): void => {
  3917        A.store.Ref(fn, WEBEXT.autotestPrivate.getAllInstalledApps);
  3918      },
  3919      "call_GetAllInstalledApps": (retPtr: Pointer): void => {
  3920        const _ret = WEBEXT.autotestPrivate.getAllInstalledApps();
  3921        A.store.Ref(retPtr, _ret);
  3922      },
  3923      "try_GetAllInstalledApps": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3924        try {
  3925          const _ret = WEBEXT.autotestPrivate.getAllInstalledApps();
  3926          A.store.Ref(retPtr, _ret);
  3927          return A.H.TRUE;
  3928        } catch (err: any) {
  3929          A.store.Ref(errPtr, err);
  3930          return A.H.FALSE;
  3931        }
  3932      },
  3933      "has_GetAppWindowList": (): heap.Ref<boolean> => {
  3934        if (WEBEXT?.autotestPrivate && "getAppWindowList" in WEBEXT?.autotestPrivate) {
  3935          return A.H.TRUE;
  3936        }
  3937        return A.H.FALSE;
  3938      },
  3939      "func_GetAppWindowList": (fn: Pointer): void => {
  3940        A.store.Ref(fn, WEBEXT.autotestPrivate.getAppWindowList);
  3941      },
  3942      "call_GetAppWindowList": (retPtr: Pointer): void => {
  3943        const _ret = WEBEXT.autotestPrivate.getAppWindowList();
  3944        A.store.Ref(retPtr, _ret);
  3945      },
  3946      "try_GetAppWindowList": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3947        try {
  3948          const _ret = WEBEXT.autotestPrivate.getAppWindowList();
  3949          A.store.Ref(retPtr, _ret);
  3950          return A.H.TRUE;
  3951        } catch (err: any) {
  3952          A.store.Ref(errPtr, err);
  3953          return A.H.FALSE;
  3954        }
  3955      },
  3956      "has_GetArcApp": (): heap.Ref<boolean> => {
  3957        if (WEBEXT?.autotestPrivate && "getArcApp" in WEBEXT?.autotestPrivate) {
  3958          return A.H.TRUE;
  3959        }
  3960        return A.H.FALSE;
  3961      },
  3962      "func_GetArcApp": (fn: Pointer): void => {
  3963        A.store.Ref(fn, WEBEXT.autotestPrivate.getArcApp);
  3964      },
  3965      "call_GetArcApp": (retPtr: Pointer, appId: heap.Ref<object>): void => {
  3966        const _ret = WEBEXT.autotestPrivate.getArcApp(A.H.get<object>(appId));
  3967        A.store.Ref(retPtr, _ret);
  3968      },
  3969      "try_GetArcApp": (retPtr: Pointer, errPtr: Pointer, appId: heap.Ref<object>): heap.Ref<boolean> => {
  3970        try {
  3971          const _ret = WEBEXT.autotestPrivate.getArcApp(A.H.get<object>(appId));
  3972          A.store.Ref(retPtr, _ret);
  3973          return A.H.TRUE;
  3974        } catch (err: any) {
  3975          A.store.Ref(errPtr, err);
  3976          return A.H.FALSE;
  3977        }
  3978      },
  3979      "has_GetArcAppKills": (): heap.Ref<boolean> => {
  3980        if (WEBEXT?.autotestPrivate && "getArcAppKills" in WEBEXT?.autotestPrivate) {
  3981          return A.H.TRUE;
  3982        }
  3983        return A.H.FALSE;
  3984      },
  3985      "func_GetArcAppKills": (fn: Pointer): void => {
  3986        A.store.Ref(fn, WEBEXT.autotestPrivate.getArcAppKills);
  3987      },
  3988      "call_GetArcAppKills": (retPtr: Pointer): void => {
  3989        const _ret = WEBEXT.autotestPrivate.getArcAppKills();
  3990        A.store.Ref(retPtr, _ret);
  3991      },
  3992      "try_GetArcAppKills": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  3993        try {
  3994          const _ret = WEBEXT.autotestPrivate.getArcAppKills();
  3995          A.store.Ref(retPtr, _ret);
  3996          return A.H.TRUE;
  3997        } catch (err: any) {
  3998          A.store.Ref(errPtr, err);
  3999          return A.H.FALSE;
  4000        }
  4001      },
  4002      "has_GetArcPackage": (): heap.Ref<boolean> => {
  4003        if (WEBEXT?.autotestPrivate && "getArcPackage" in WEBEXT?.autotestPrivate) {
  4004          return A.H.TRUE;
  4005        }
  4006        return A.H.FALSE;
  4007      },
  4008      "func_GetArcPackage": (fn: Pointer): void => {
  4009        A.store.Ref(fn, WEBEXT.autotestPrivate.getArcPackage);
  4010      },
  4011      "call_GetArcPackage": (retPtr: Pointer, packageName: heap.Ref<object>): void => {
  4012        const _ret = WEBEXT.autotestPrivate.getArcPackage(A.H.get<object>(packageName));
  4013        A.store.Ref(retPtr, _ret);
  4014      },
  4015      "try_GetArcPackage": (retPtr: Pointer, errPtr: Pointer, packageName: heap.Ref<object>): heap.Ref<boolean> => {
  4016        try {
  4017          const _ret = WEBEXT.autotestPrivate.getArcPackage(A.H.get<object>(packageName));
  4018          A.store.Ref(retPtr, _ret);
  4019          return A.H.TRUE;
  4020        } catch (err: any) {
  4021          A.store.Ref(errPtr, err);
  4022          return A.H.FALSE;
  4023        }
  4024      },
  4025      "has_GetArcStartTime": (): heap.Ref<boolean> => {
  4026        if (WEBEXT?.autotestPrivate && "getArcStartTime" in WEBEXT?.autotestPrivate) {
  4027          return A.H.TRUE;
  4028        }
  4029        return A.H.FALSE;
  4030      },
  4031      "func_GetArcStartTime": (fn: Pointer): void => {
  4032        A.store.Ref(fn, WEBEXT.autotestPrivate.getArcStartTime);
  4033      },
  4034      "call_GetArcStartTime": (retPtr: Pointer): void => {
  4035        const _ret = WEBEXT.autotestPrivate.getArcStartTime();
  4036        A.store.Ref(retPtr, _ret);
  4037      },
  4038      "try_GetArcStartTime": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4039        try {
  4040          const _ret = WEBEXT.autotestPrivate.getArcStartTime();
  4041          A.store.Ref(retPtr, _ret);
  4042          return A.H.TRUE;
  4043        } catch (err: any) {
  4044          A.store.Ref(errPtr, err);
  4045          return A.H.FALSE;
  4046        }
  4047      },
  4048      "has_GetArcState": (): heap.Ref<boolean> => {
  4049        if (WEBEXT?.autotestPrivate && "getArcState" in WEBEXT?.autotestPrivate) {
  4050          return A.H.TRUE;
  4051        }
  4052        return A.H.FALSE;
  4053      },
  4054      "func_GetArcState": (fn: Pointer): void => {
  4055        A.store.Ref(fn, WEBEXT.autotestPrivate.getArcState);
  4056      },
  4057      "call_GetArcState": (retPtr: Pointer): void => {
  4058        const _ret = WEBEXT.autotestPrivate.getArcState();
  4059        A.store.Ref(retPtr, _ret);
  4060      },
  4061      "try_GetArcState": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4062        try {
  4063          const _ret = WEBEXT.autotestPrivate.getArcState();
  4064          A.store.Ref(retPtr, _ret);
  4065          return A.H.TRUE;
  4066        } catch (err: any) {
  4067          A.store.Ref(errPtr, err);
  4068          return A.H.FALSE;
  4069        }
  4070      },
  4071      "has_GetClipboardTextData": (): heap.Ref<boolean> => {
  4072        if (WEBEXT?.autotestPrivate && "getClipboardTextData" in WEBEXT?.autotestPrivate) {
  4073          return A.H.TRUE;
  4074        }
  4075        return A.H.FALSE;
  4076      },
  4077      "func_GetClipboardTextData": (fn: Pointer): void => {
  4078        A.store.Ref(fn, WEBEXT.autotestPrivate.getClipboardTextData);
  4079      },
  4080      "call_GetClipboardTextData": (retPtr: Pointer): void => {
  4081        const _ret = WEBEXT.autotestPrivate.getClipboardTextData();
  4082        A.store.Ref(retPtr, _ret);
  4083      },
  4084      "try_GetClipboardTextData": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4085        try {
  4086          const _ret = WEBEXT.autotestPrivate.getClipboardTextData();
  4087          A.store.Ref(retPtr, _ret);
  4088          return A.H.TRUE;
  4089        } catch (err: any) {
  4090          A.store.Ref(errPtr, err);
  4091          return A.H.FALSE;
  4092        }
  4093      },
  4094      "has_GetCryptohomeRecoveryData": (): heap.Ref<boolean> => {
  4095        if (WEBEXT?.autotestPrivate && "getCryptohomeRecoveryData" in WEBEXT?.autotestPrivate) {
  4096          return A.H.TRUE;
  4097        }
  4098        return A.H.FALSE;
  4099      },
  4100      "func_GetCryptohomeRecoveryData": (fn: Pointer): void => {
  4101        A.store.Ref(fn, WEBEXT.autotestPrivate.getCryptohomeRecoveryData);
  4102      },
  4103      "call_GetCryptohomeRecoveryData": (retPtr: Pointer): void => {
  4104        const _ret = WEBEXT.autotestPrivate.getCryptohomeRecoveryData();
  4105        A.store.Ref(retPtr, _ret);
  4106      },
  4107      "try_GetCryptohomeRecoveryData": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4108        try {
  4109          const _ret = WEBEXT.autotestPrivate.getCryptohomeRecoveryData();
  4110          A.store.Ref(retPtr, _ret);
  4111          return A.H.TRUE;
  4112        } catch (err: any) {
  4113          A.store.Ref(errPtr, err);
  4114          return A.H.FALSE;
  4115        }
  4116      },
  4117      "has_GetCurrentInputMethodDescriptor": (): heap.Ref<boolean> => {
  4118        if (WEBEXT?.autotestPrivate && "getCurrentInputMethodDescriptor" in WEBEXT?.autotestPrivate) {
  4119          return A.H.TRUE;
  4120        }
  4121        return A.H.FALSE;
  4122      },
  4123      "func_GetCurrentInputMethodDescriptor": (fn: Pointer): void => {
  4124        A.store.Ref(fn, WEBEXT.autotestPrivate.getCurrentInputMethodDescriptor);
  4125      },
  4126      "call_GetCurrentInputMethodDescriptor": (retPtr: Pointer): void => {
  4127        const _ret = WEBEXT.autotestPrivate.getCurrentInputMethodDescriptor();
  4128        A.store.Ref(retPtr, _ret);
  4129      },
  4130      "try_GetCurrentInputMethodDescriptor": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4131        try {
  4132          const _ret = WEBEXT.autotestPrivate.getCurrentInputMethodDescriptor();
  4133          A.store.Ref(retPtr, _ret);
  4134          return A.H.TRUE;
  4135        } catch (err: any) {
  4136          A.store.Ref(errPtr, err);
  4137          return A.H.FALSE;
  4138        }
  4139      },
  4140      "has_GetDefaultPinnedAppIds": (): heap.Ref<boolean> => {
  4141        if (WEBEXT?.autotestPrivate && "getDefaultPinnedAppIds" in WEBEXT?.autotestPrivate) {
  4142          return A.H.TRUE;
  4143        }
  4144        return A.H.FALSE;
  4145      },
  4146      "func_GetDefaultPinnedAppIds": (fn: Pointer): void => {
  4147        A.store.Ref(fn, WEBEXT.autotestPrivate.getDefaultPinnedAppIds);
  4148      },
  4149      "call_GetDefaultPinnedAppIds": (retPtr: Pointer): void => {
  4150        const _ret = WEBEXT.autotestPrivate.getDefaultPinnedAppIds();
  4151        A.store.Ref(retPtr, _ret);
  4152      },
  4153      "try_GetDefaultPinnedAppIds": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4154        try {
  4155          const _ret = WEBEXT.autotestPrivate.getDefaultPinnedAppIds();
  4156          A.store.Ref(retPtr, _ret);
  4157          return A.H.TRUE;
  4158        } catch (err: any) {
  4159          A.store.Ref(errPtr, err);
  4160          return A.H.FALSE;
  4161        }
  4162      },
  4163      "has_GetDeskCount": (): heap.Ref<boolean> => {
  4164        if (WEBEXT?.autotestPrivate && "getDeskCount" in WEBEXT?.autotestPrivate) {
  4165          return A.H.TRUE;
  4166        }
  4167        return A.H.FALSE;
  4168      },
  4169      "func_GetDeskCount": (fn: Pointer): void => {
  4170        A.store.Ref(fn, WEBEXT.autotestPrivate.getDeskCount);
  4171      },
  4172      "call_GetDeskCount": (retPtr: Pointer): void => {
  4173        const _ret = WEBEXT.autotestPrivate.getDeskCount();
  4174        A.store.Ref(retPtr, _ret);
  4175      },
  4176      "try_GetDeskCount": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4177        try {
  4178          const _ret = WEBEXT.autotestPrivate.getDeskCount();
  4179          A.store.Ref(retPtr, _ret);
  4180          return A.H.TRUE;
  4181        } catch (err: any) {
  4182          A.store.Ref(errPtr, err);
  4183          return A.H.FALSE;
  4184        }
  4185      },
  4186      "has_GetDesksInfo": (): heap.Ref<boolean> => {
  4187        if (WEBEXT?.autotestPrivate && "getDesksInfo" in WEBEXT?.autotestPrivate) {
  4188          return A.H.TRUE;
  4189        }
  4190        return A.H.FALSE;
  4191      },
  4192      "func_GetDesksInfo": (fn: Pointer): void => {
  4193        A.store.Ref(fn, WEBEXT.autotestPrivate.getDesksInfo);
  4194      },
  4195      "call_GetDesksInfo": (retPtr: Pointer): void => {
  4196        const _ret = WEBEXT.autotestPrivate.getDesksInfo();
  4197        A.store.Ref(retPtr, _ret);
  4198      },
  4199      "try_GetDesksInfo": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4200        try {
  4201          const _ret = WEBEXT.autotestPrivate.getDesksInfo();
  4202          A.store.Ref(retPtr, _ret);
  4203          return A.H.TRUE;
  4204        } catch (err: any) {
  4205          A.store.Ref(errPtr, err);
  4206          return A.H.FALSE;
  4207        }
  4208      },
  4209      "has_GetDisplaySmoothness": (): heap.Ref<boolean> => {
  4210        if (WEBEXT?.autotestPrivate && "getDisplaySmoothness" in WEBEXT?.autotestPrivate) {
  4211          return A.H.TRUE;
  4212        }
  4213        return A.H.FALSE;
  4214      },
  4215      "func_GetDisplaySmoothness": (fn: Pointer): void => {
  4216        A.store.Ref(fn, WEBEXT.autotestPrivate.getDisplaySmoothness);
  4217      },
  4218      "call_GetDisplaySmoothness": (retPtr: Pointer, displayId: heap.Ref<object>): void => {
  4219        const _ret = WEBEXT.autotestPrivate.getDisplaySmoothness(A.H.get<object>(displayId));
  4220        A.store.Ref(retPtr, _ret);
  4221      },
  4222      "try_GetDisplaySmoothness": (retPtr: Pointer, errPtr: Pointer, displayId: heap.Ref<object>): heap.Ref<boolean> => {
  4223        try {
  4224          const _ret = WEBEXT.autotestPrivate.getDisplaySmoothness(A.H.get<object>(displayId));
  4225          A.store.Ref(retPtr, _ret);
  4226          return A.H.TRUE;
  4227        } catch (err: any) {
  4228          A.store.Ref(errPtr, err);
  4229          return A.H.FALSE;
  4230        }
  4231      },
  4232      "has_GetExtensionsInfo": (): heap.Ref<boolean> => {
  4233        if (WEBEXT?.autotestPrivate && "getExtensionsInfo" in WEBEXT?.autotestPrivate) {
  4234          return A.H.TRUE;
  4235        }
  4236        return A.H.FALSE;
  4237      },
  4238      "func_GetExtensionsInfo": (fn: Pointer): void => {
  4239        A.store.Ref(fn, WEBEXT.autotestPrivate.getExtensionsInfo);
  4240      },
  4241      "call_GetExtensionsInfo": (retPtr: Pointer): void => {
  4242        const _ret = WEBEXT.autotestPrivate.getExtensionsInfo();
  4243        A.store.Ref(retPtr, _ret);
  4244      },
  4245      "try_GetExtensionsInfo": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4246        try {
  4247          const _ret = WEBEXT.autotestPrivate.getExtensionsInfo();
  4248          A.store.Ref(retPtr, _ret);
  4249          return A.H.TRUE;
  4250        } catch (err: any) {
  4251          A.store.Ref(errPtr, err);
  4252          return A.H.FALSE;
  4253        }
  4254      },
  4255      "has_GetLacrosInfo": (): heap.Ref<boolean> => {
  4256        if (WEBEXT?.autotestPrivate && "getLacrosInfo" in WEBEXT?.autotestPrivate) {
  4257          return A.H.TRUE;
  4258        }
  4259        return A.H.FALSE;
  4260      },
  4261      "func_GetLacrosInfo": (fn: Pointer): void => {
  4262        A.store.Ref(fn, WEBEXT.autotestPrivate.getLacrosInfo);
  4263      },
  4264      "call_GetLacrosInfo": (retPtr: Pointer): void => {
  4265        const _ret = WEBEXT.autotestPrivate.getLacrosInfo();
  4266        A.store.Ref(retPtr, _ret);
  4267      },
  4268      "try_GetLacrosInfo": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4269        try {
  4270          const _ret = WEBEXT.autotestPrivate.getLacrosInfo();
  4271          A.store.Ref(retPtr, _ret);
  4272          return A.H.TRUE;
  4273        } catch (err: any) {
  4274          A.store.Ref(errPtr, err);
  4275          return A.H.FALSE;
  4276        }
  4277      },
  4278      "has_GetLauncherSearchBoxState": (): heap.Ref<boolean> => {
  4279        if (WEBEXT?.autotestPrivate && "getLauncherSearchBoxState" in WEBEXT?.autotestPrivate) {
  4280          return A.H.TRUE;
  4281        }
  4282        return A.H.FALSE;
  4283      },
  4284      "func_GetLauncherSearchBoxState": (fn: Pointer): void => {
  4285        A.store.Ref(fn, WEBEXT.autotestPrivate.getLauncherSearchBoxState);
  4286      },
  4287      "call_GetLauncherSearchBoxState": (retPtr: Pointer): void => {
  4288        const _ret = WEBEXT.autotestPrivate.getLauncherSearchBoxState();
  4289        A.store.Ref(retPtr, _ret);
  4290      },
  4291      "try_GetLauncherSearchBoxState": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4292        try {
  4293          const _ret = WEBEXT.autotestPrivate.getLauncherSearchBoxState();
  4294          A.store.Ref(retPtr, _ret);
  4295          return A.H.TRUE;
  4296        } catch (err: any) {
  4297          A.store.Ref(errPtr, err);
  4298          return A.H.FALSE;
  4299        }
  4300      },
  4301      "has_GetLoginEventRecorderLoginEvents": (): heap.Ref<boolean> => {
  4302        if (WEBEXT?.autotestPrivate && "getLoginEventRecorderLoginEvents" in WEBEXT?.autotestPrivate) {
  4303          return A.H.TRUE;
  4304        }
  4305        return A.H.FALSE;
  4306      },
  4307      "func_GetLoginEventRecorderLoginEvents": (fn: Pointer): void => {
  4308        A.store.Ref(fn, WEBEXT.autotestPrivate.getLoginEventRecorderLoginEvents);
  4309      },
  4310      "call_GetLoginEventRecorderLoginEvents": (retPtr: Pointer): void => {
  4311        const _ret = WEBEXT.autotestPrivate.getLoginEventRecorderLoginEvents();
  4312        A.store.Ref(retPtr, _ret);
  4313      },
  4314      "try_GetLoginEventRecorderLoginEvents": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4315        try {
  4316          const _ret = WEBEXT.autotestPrivate.getLoginEventRecorderLoginEvents();
  4317          A.store.Ref(retPtr, _ret);
  4318          return A.H.TRUE;
  4319        } catch (err: any) {
  4320          A.store.Ref(errPtr, err);
  4321          return A.H.FALSE;
  4322        }
  4323      },
  4324      "has_GetPlayStoreState": (): heap.Ref<boolean> => {
  4325        if (WEBEXT?.autotestPrivate && "getPlayStoreState" in WEBEXT?.autotestPrivate) {
  4326          return A.H.TRUE;
  4327        }
  4328        return A.H.FALSE;
  4329      },
  4330      "func_GetPlayStoreState": (fn: Pointer): void => {
  4331        A.store.Ref(fn, WEBEXT.autotestPrivate.getPlayStoreState);
  4332      },
  4333      "call_GetPlayStoreState": (retPtr: Pointer): void => {
  4334        const _ret = WEBEXT.autotestPrivate.getPlayStoreState();
  4335        A.store.Ref(retPtr, _ret);
  4336      },
  4337      "try_GetPlayStoreState": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4338        try {
  4339          const _ret = WEBEXT.autotestPrivate.getPlayStoreState();
  4340          A.store.Ref(retPtr, _ret);
  4341          return A.H.TRUE;
  4342        } catch (err: any) {
  4343          A.store.Ref(errPtr, err);
  4344          return A.H.FALSE;
  4345        }
  4346      },
  4347      "has_GetPrimaryDisplayScaleFactor": (): heap.Ref<boolean> => {
  4348        if (WEBEXT?.autotestPrivate && "getPrimaryDisplayScaleFactor" in WEBEXT?.autotestPrivate) {
  4349          return A.H.TRUE;
  4350        }
  4351        return A.H.FALSE;
  4352      },
  4353      "func_GetPrimaryDisplayScaleFactor": (fn: Pointer): void => {
  4354        A.store.Ref(fn, WEBEXT.autotestPrivate.getPrimaryDisplayScaleFactor);
  4355      },
  4356      "call_GetPrimaryDisplayScaleFactor": (retPtr: Pointer): void => {
  4357        const _ret = WEBEXT.autotestPrivate.getPrimaryDisplayScaleFactor();
  4358        A.store.Ref(retPtr, _ret);
  4359      },
  4360      "try_GetPrimaryDisplayScaleFactor": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4361        try {
  4362          const _ret = WEBEXT.autotestPrivate.getPrimaryDisplayScaleFactor();
  4363          A.store.Ref(retPtr, _ret);
  4364          return A.H.TRUE;
  4365        } catch (err: any) {
  4366          A.store.Ref(errPtr, err);
  4367          return A.H.FALSE;
  4368        }
  4369      },
  4370      "has_GetPrinterList": (): heap.Ref<boolean> => {
  4371        if (WEBEXT?.autotestPrivate && "getPrinterList" in WEBEXT?.autotestPrivate) {
  4372          return A.H.TRUE;
  4373        }
  4374        return A.H.FALSE;
  4375      },
  4376      "func_GetPrinterList": (fn: Pointer): void => {
  4377        A.store.Ref(fn, WEBEXT.autotestPrivate.getPrinterList);
  4378      },
  4379      "call_GetPrinterList": (retPtr: Pointer): void => {
  4380        const _ret = WEBEXT.autotestPrivate.getPrinterList();
  4381        A.store.Ref(retPtr, _ret);
  4382      },
  4383      "try_GetPrinterList": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4384        try {
  4385          const _ret = WEBEXT.autotestPrivate.getPrinterList();
  4386          A.store.Ref(retPtr, _ret);
  4387          return A.H.TRUE;
  4388        } catch (err: any) {
  4389          A.store.Ref(errPtr, err);
  4390          return A.H.FALSE;
  4391        }
  4392      },
  4393      "has_GetRegisteredSystemWebApps": (): heap.Ref<boolean> => {
  4394        if (WEBEXT?.autotestPrivate && "getRegisteredSystemWebApps" in WEBEXT?.autotestPrivate) {
  4395          return A.H.TRUE;
  4396        }
  4397        return A.H.FALSE;
  4398      },
  4399      "func_GetRegisteredSystemWebApps": (fn: Pointer): void => {
  4400        A.store.Ref(fn, WEBEXT.autotestPrivate.getRegisteredSystemWebApps);
  4401      },
  4402      "call_GetRegisteredSystemWebApps": (retPtr: Pointer): void => {
  4403        const _ret = WEBEXT.autotestPrivate.getRegisteredSystemWebApps();
  4404        A.store.Ref(retPtr, _ret);
  4405      },
  4406      "try_GetRegisteredSystemWebApps": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4407        try {
  4408          const _ret = WEBEXT.autotestPrivate.getRegisteredSystemWebApps();
  4409          A.store.Ref(retPtr, _ret);
  4410          return A.H.TRUE;
  4411        } catch (err: any) {
  4412          A.store.Ref(errPtr, err);
  4413          return A.H.FALSE;
  4414        }
  4415      },
  4416      "has_GetScrollableShelfInfoForState": (): heap.Ref<boolean> => {
  4417        if (WEBEXT?.autotestPrivate && "getScrollableShelfInfoForState" in WEBEXT?.autotestPrivate) {
  4418          return A.H.TRUE;
  4419        }
  4420        return A.H.FALSE;
  4421      },
  4422      "func_GetScrollableShelfInfoForState": (fn: Pointer): void => {
  4423        A.store.Ref(fn, WEBEXT.autotestPrivate.getScrollableShelfInfoForState);
  4424      },
  4425      "call_GetScrollableShelfInfoForState": (retPtr: Pointer, state: Pointer): void => {
  4426        const state_ffi = {};
  4427  
  4428        if (A.load.Bool(state + 8)) {
  4429          state_ffi["scrollDistance"] = A.load.Float64(state + 0);
  4430        }
  4431  
  4432        const _ret = WEBEXT.autotestPrivate.getScrollableShelfInfoForState(state_ffi);
  4433        A.store.Ref(retPtr, _ret);
  4434      },
  4435      "try_GetScrollableShelfInfoForState": (retPtr: Pointer, errPtr: Pointer, state: Pointer): heap.Ref<boolean> => {
  4436        try {
  4437          const state_ffi = {};
  4438  
  4439          if (A.load.Bool(state + 8)) {
  4440            state_ffi["scrollDistance"] = A.load.Float64(state + 0);
  4441          }
  4442  
  4443          const _ret = WEBEXT.autotestPrivate.getScrollableShelfInfoForState(state_ffi);
  4444          A.store.Ref(retPtr, _ret);
  4445          return A.H.TRUE;
  4446        } catch (err: any) {
  4447          A.store.Ref(errPtr, err);
  4448          return A.H.FALSE;
  4449        }
  4450      },
  4451      "has_GetShelfAlignment": (): heap.Ref<boolean> => {
  4452        if (WEBEXT?.autotestPrivate && "getShelfAlignment" in WEBEXT?.autotestPrivate) {
  4453          return A.H.TRUE;
  4454        }
  4455        return A.H.FALSE;
  4456      },
  4457      "func_GetShelfAlignment": (fn: Pointer): void => {
  4458        A.store.Ref(fn, WEBEXT.autotestPrivate.getShelfAlignment);
  4459      },
  4460      "call_GetShelfAlignment": (retPtr: Pointer, displayId: heap.Ref<object>): void => {
  4461        const _ret = WEBEXT.autotestPrivate.getShelfAlignment(A.H.get<object>(displayId));
  4462        A.store.Ref(retPtr, _ret);
  4463      },
  4464      "try_GetShelfAlignment": (retPtr: Pointer, errPtr: Pointer, displayId: heap.Ref<object>): heap.Ref<boolean> => {
  4465        try {
  4466          const _ret = WEBEXT.autotestPrivate.getShelfAlignment(A.H.get<object>(displayId));
  4467          A.store.Ref(retPtr, _ret);
  4468          return A.H.TRUE;
  4469        } catch (err: any) {
  4470          A.store.Ref(errPtr, err);
  4471          return A.H.FALSE;
  4472        }
  4473      },
  4474      "has_GetShelfAutoHideBehavior": (): heap.Ref<boolean> => {
  4475        if (WEBEXT?.autotestPrivate && "getShelfAutoHideBehavior" in WEBEXT?.autotestPrivate) {
  4476          return A.H.TRUE;
  4477        }
  4478        return A.H.FALSE;
  4479      },
  4480      "func_GetShelfAutoHideBehavior": (fn: Pointer): void => {
  4481        A.store.Ref(fn, WEBEXT.autotestPrivate.getShelfAutoHideBehavior);
  4482      },
  4483      "call_GetShelfAutoHideBehavior": (retPtr: Pointer, displayId: heap.Ref<object>): void => {
  4484        const _ret = WEBEXT.autotestPrivate.getShelfAutoHideBehavior(A.H.get<object>(displayId));
  4485        A.store.Ref(retPtr, _ret);
  4486      },
  4487      "try_GetShelfAutoHideBehavior": (
  4488        retPtr: Pointer,
  4489        errPtr: Pointer,
  4490        displayId: heap.Ref<object>
  4491      ): heap.Ref<boolean> => {
  4492        try {
  4493          const _ret = WEBEXT.autotestPrivate.getShelfAutoHideBehavior(A.H.get<object>(displayId));
  4494          A.store.Ref(retPtr, _ret);
  4495          return A.H.TRUE;
  4496        } catch (err: any) {
  4497          A.store.Ref(errPtr, err);
  4498          return A.H.FALSE;
  4499        }
  4500      },
  4501      "has_GetShelfItems": (): heap.Ref<boolean> => {
  4502        if (WEBEXT?.autotestPrivate && "getShelfItems" in WEBEXT?.autotestPrivate) {
  4503          return A.H.TRUE;
  4504        }
  4505        return A.H.FALSE;
  4506      },
  4507      "func_GetShelfItems": (fn: Pointer): void => {
  4508        A.store.Ref(fn, WEBEXT.autotestPrivate.getShelfItems);
  4509      },
  4510      "call_GetShelfItems": (retPtr: Pointer): void => {
  4511        const _ret = WEBEXT.autotestPrivate.getShelfItems();
  4512        A.store.Ref(retPtr, _ret);
  4513      },
  4514      "try_GetShelfItems": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4515        try {
  4516          const _ret = WEBEXT.autotestPrivate.getShelfItems();
  4517          A.store.Ref(retPtr, _ret);
  4518          return A.H.TRUE;
  4519        } catch (err: any) {
  4520          A.store.Ref(errPtr, err);
  4521          return A.H.FALSE;
  4522        }
  4523      },
  4524      "has_GetShelfUIInfoForState": (): heap.Ref<boolean> => {
  4525        if (WEBEXT?.autotestPrivate && "getShelfUIInfoForState" in WEBEXT?.autotestPrivate) {
  4526          return A.H.TRUE;
  4527        }
  4528        return A.H.FALSE;
  4529      },
  4530      "func_GetShelfUIInfoForState": (fn: Pointer): void => {
  4531        A.store.Ref(fn, WEBEXT.autotestPrivate.getShelfUIInfoForState);
  4532      },
  4533      "call_GetShelfUIInfoForState": (retPtr: Pointer, state: Pointer): void => {
  4534        const state_ffi = {};
  4535  
  4536        if (A.load.Bool(state + 8)) {
  4537          state_ffi["scrollDistance"] = A.load.Float64(state + 0);
  4538        }
  4539  
  4540        const _ret = WEBEXT.autotestPrivate.getShelfUIInfoForState(state_ffi);
  4541        A.store.Ref(retPtr, _ret);
  4542      },
  4543      "try_GetShelfUIInfoForState": (retPtr: Pointer, errPtr: Pointer, state: Pointer): heap.Ref<boolean> => {
  4544        try {
  4545          const state_ffi = {};
  4546  
  4547          if (A.load.Bool(state + 8)) {
  4548            state_ffi["scrollDistance"] = A.load.Float64(state + 0);
  4549          }
  4550  
  4551          const _ret = WEBEXT.autotestPrivate.getShelfUIInfoForState(state_ffi);
  4552          A.store.Ref(retPtr, _ret);
  4553          return A.H.TRUE;
  4554        } catch (err: any) {
  4555          A.store.Ref(errPtr, err);
  4556          return A.H.FALSE;
  4557        }
  4558      },
  4559      "has_GetThroughputTrackerData": (): heap.Ref<boolean> => {
  4560        if (WEBEXT?.autotestPrivate && "getThroughputTrackerData" in WEBEXT?.autotestPrivate) {
  4561          return A.H.TRUE;
  4562        }
  4563        return A.H.FALSE;
  4564      },
  4565      "func_GetThroughputTrackerData": (fn: Pointer): void => {
  4566        A.store.Ref(fn, WEBEXT.autotestPrivate.getThroughputTrackerData);
  4567      },
  4568      "call_GetThroughputTrackerData": (retPtr: Pointer): void => {
  4569        const _ret = WEBEXT.autotestPrivate.getThroughputTrackerData();
  4570        A.store.Ref(retPtr, _ret);
  4571      },
  4572      "try_GetThroughputTrackerData": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4573        try {
  4574          const _ret = WEBEXT.autotestPrivate.getThroughputTrackerData();
  4575          A.store.Ref(retPtr, _ret);
  4576          return A.H.TRUE;
  4577        } catch (err: any) {
  4578          A.store.Ref(errPtr, err);
  4579          return A.H.FALSE;
  4580        }
  4581      },
  4582      "has_GetVisibleNotifications": (): heap.Ref<boolean> => {
  4583        if (WEBEXT?.autotestPrivate && "getVisibleNotifications" in WEBEXT?.autotestPrivate) {
  4584          return A.H.TRUE;
  4585        }
  4586        return A.H.FALSE;
  4587      },
  4588      "func_GetVisibleNotifications": (fn: Pointer): void => {
  4589        A.store.Ref(fn, WEBEXT.autotestPrivate.getVisibleNotifications);
  4590      },
  4591      "call_GetVisibleNotifications": (retPtr: Pointer): void => {
  4592        const _ret = WEBEXT.autotestPrivate.getVisibleNotifications();
  4593        A.store.Ref(retPtr, _ret);
  4594      },
  4595      "try_GetVisibleNotifications": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4596        try {
  4597          const _ret = WEBEXT.autotestPrivate.getVisibleNotifications();
  4598          A.store.Ref(retPtr, _ret);
  4599          return A.H.TRUE;
  4600        } catch (err: any) {
  4601          A.store.Ref(errPtr, err);
  4602          return A.H.FALSE;
  4603        }
  4604      },
  4605      "has_ImportCrostini": (): heap.Ref<boolean> => {
  4606        if (WEBEXT?.autotestPrivate && "importCrostini" in WEBEXT?.autotestPrivate) {
  4607          return A.H.TRUE;
  4608        }
  4609        return A.H.FALSE;
  4610      },
  4611      "func_ImportCrostini": (fn: Pointer): void => {
  4612        A.store.Ref(fn, WEBEXT.autotestPrivate.importCrostini);
  4613      },
  4614      "call_ImportCrostini": (retPtr: Pointer, path: heap.Ref<object>): void => {
  4615        const _ret = WEBEXT.autotestPrivate.importCrostini(A.H.get<object>(path));
  4616        A.store.Ref(retPtr, _ret);
  4617      },
  4618      "try_ImportCrostini": (retPtr: Pointer, errPtr: Pointer, path: heap.Ref<object>): heap.Ref<boolean> => {
  4619        try {
  4620          const _ret = WEBEXT.autotestPrivate.importCrostini(A.H.get<object>(path));
  4621          A.store.Ref(retPtr, _ret);
  4622          return A.H.TRUE;
  4623        } catch (err: any) {
  4624          A.store.Ref(errPtr, err);
  4625          return A.H.FALSE;
  4626        }
  4627      },
  4628      "has_InitializeEvents": (): heap.Ref<boolean> => {
  4629        if (WEBEXT?.autotestPrivate && "initializeEvents" in WEBEXT?.autotestPrivate) {
  4630          return A.H.TRUE;
  4631        }
  4632        return A.H.FALSE;
  4633      },
  4634      "func_InitializeEvents": (fn: Pointer): void => {
  4635        A.store.Ref(fn, WEBEXT.autotestPrivate.initializeEvents);
  4636      },
  4637      "call_InitializeEvents": (retPtr: Pointer): void => {
  4638        const _ret = WEBEXT.autotestPrivate.initializeEvents();
  4639      },
  4640      "try_InitializeEvents": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4641        try {
  4642          const _ret = WEBEXT.autotestPrivate.initializeEvents();
  4643          return A.H.TRUE;
  4644        } catch (err: any) {
  4645          A.store.Ref(errPtr, err);
  4646          return A.H.FALSE;
  4647        }
  4648      },
  4649      "has_InstallBorealis": (): heap.Ref<boolean> => {
  4650        if (WEBEXT?.autotestPrivate && "installBorealis" in WEBEXT?.autotestPrivate) {
  4651          return A.H.TRUE;
  4652        }
  4653        return A.H.FALSE;
  4654      },
  4655      "func_InstallBorealis": (fn: Pointer): void => {
  4656        A.store.Ref(fn, WEBEXT.autotestPrivate.installBorealis);
  4657      },
  4658      "call_InstallBorealis": (retPtr: Pointer): void => {
  4659        const _ret = WEBEXT.autotestPrivate.installBorealis();
  4660        A.store.Ref(retPtr, _ret);
  4661      },
  4662      "try_InstallBorealis": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4663        try {
  4664          const _ret = WEBEXT.autotestPrivate.installBorealis();
  4665          A.store.Ref(retPtr, _ret);
  4666          return A.H.TRUE;
  4667        } catch (err: any) {
  4668          A.store.Ref(errPtr, err);
  4669          return A.H.FALSE;
  4670        }
  4671      },
  4672      "has_InstallBruschetta": (): heap.Ref<boolean> => {
  4673        if (WEBEXT?.autotestPrivate && "installBruschetta" in WEBEXT?.autotestPrivate) {
  4674          return A.H.TRUE;
  4675        }
  4676        return A.H.FALSE;
  4677      },
  4678      "func_InstallBruschetta": (fn: Pointer): void => {
  4679        A.store.Ref(fn, WEBEXT.autotestPrivate.installBruschetta);
  4680      },
  4681      "call_InstallBruschetta": (retPtr: Pointer, vm_name: heap.Ref<object>): void => {
  4682        const _ret = WEBEXT.autotestPrivate.installBruschetta(A.H.get<object>(vm_name));
  4683        A.store.Ref(retPtr, _ret);
  4684      },
  4685      "try_InstallBruschetta": (retPtr: Pointer, errPtr: Pointer, vm_name: heap.Ref<object>): heap.Ref<boolean> => {
  4686        try {
  4687          const _ret = WEBEXT.autotestPrivate.installBruschetta(A.H.get<object>(vm_name));
  4688          A.store.Ref(retPtr, _ret);
  4689          return A.H.TRUE;
  4690        } catch (err: any) {
  4691          A.store.Ref(errPtr, err);
  4692          return A.H.FALSE;
  4693        }
  4694      },
  4695      "has_InstallPWAForCurrentURL": (): heap.Ref<boolean> => {
  4696        if (WEBEXT?.autotestPrivate && "installPWAForCurrentURL" in WEBEXT?.autotestPrivate) {
  4697          return A.H.TRUE;
  4698        }
  4699        return A.H.FALSE;
  4700      },
  4701      "func_InstallPWAForCurrentURL": (fn: Pointer): void => {
  4702        A.store.Ref(fn, WEBEXT.autotestPrivate.installPWAForCurrentURL);
  4703      },
  4704      "call_InstallPWAForCurrentURL": (retPtr: Pointer, timeout_ms: number): void => {
  4705        const _ret = WEBEXT.autotestPrivate.installPWAForCurrentURL(timeout_ms);
  4706        A.store.Ref(retPtr, _ret);
  4707      },
  4708      "try_InstallPWAForCurrentURL": (retPtr: Pointer, errPtr: Pointer, timeout_ms: number): heap.Ref<boolean> => {
  4709        try {
  4710          const _ret = WEBEXT.autotestPrivate.installPWAForCurrentURL(timeout_ms);
  4711          A.store.Ref(retPtr, _ret);
  4712          return A.H.TRUE;
  4713        } catch (err: any) {
  4714          A.store.Ref(errPtr, err);
  4715          return A.H.FALSE;
  4716        }
  4717      },
  4718      "has_IsAppShown": (): heap.Ref<boolean> => {
  4719        if (WEBEXT?.autotestPrivate && "isAppShown" in WEBEXT?.autotestPrivate) {
  4720          return A.H.TRUE;
  4721        }
  4722        return A.H.FALSE;
  4723      },
  4724      "func_IsAppShown": (fn: Pointer): void => {
  4725        A.store.Ref(fn, WEBEXT.autotestPrivate.isAppShown);
  4726      },
  4727      "call_IsAppShown": (retPtr: Pointer, appId: heap.Ref<object>): void => {
  4728        const _ret = WEBEXT.autotestPrivate.isAppShown(A.H.get<object>(appId));
  4729        A.store.Ref(retPtr, _ret);
  4730      },
  4731      "try_IsAppShown": (retPtr: Pointer, errPtr: Pointer, appId: heap.Ref<object>): heap.Ref<boolean> => {
  4732        try {
  4733          const _ret = WEBEXT.autotestPrivate.isAppShown(A.H.get<object>(appId));
  4734          A.store.Ref(retPtr, _ret);
  4735          return A.H.TRUE;
  4736        } catch (err: any) {
  4737          A.store.Ref(errPtr, err);
  4738          return A.H.FALSE;
  4739        }
  4740      },
  4741      "has_IsArcPackageListInitialRefreshed": (): heap.Ref<boolean> => {
  4742        if (WEBEXT?.autotestPrivate && "isArcPackageListInitialRefreshed" in WEBEXT?.autotestPrivate) {
  4743          return A.H.TRUE;
  4744        }
  4745        return A.H.FALSE;
  4746      },
  4747      "func_IsArcPackageListInitialRefreshed": (fn: Pointer): void => {
  4748        A.store.Ref(fn, WEBEXT.autotestPrivate.isArcPackageListInitialRefreshed);
  4749      },
  4750      "call_IsArcPackageListInitialRefreshed": (retPtr: Pointer): void => {
  4751        const _ret = WEBEXT.autotestPrivate.isArcPackageListInitialRefreshed();
  4752        A.store.Ref(retPtr, _ret);
  4753      },
  4754      "try_IsArcPackageListInitialRefreshed": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4755        try {
  4756          const _ret = WEBEXT.autotestPrivate.isArcPackageListInitialRefreshed();
  4757          A.store.Ref(retPtr, _ret);
  4758          return A.H.TRUE;
  4759        } catch (err: any) {
  4760          A.store.Ref(errPtr, err);
  4761          return A.H.FALSE;
  4762        }
  4763      },
  4764      "has_IsArcProvisioned": (): heap.Ref<boolean> => {
  4765        if (WEBEXT?.autotestPrivate && "isArcProvisioned" in WEBEXT?.autotestPrivate) {
  4766          return A.H.TRUE;
  4767        }
  4768        return A.H.FALSE;
  4769      },
  4770      "func_IsArcProvisioned": (fn: Pointer): void => {
  4771        A.store.Ref(fn, WEBEXT.autotestPrivate.isArcProvisioned);
  4772      },
  4773      "call_IsArcProvisioned": (retPtr: Pointer): void => {
  4774        const _ret = WEBEXT.autotestPrivate.isArcProvisioned();
  4775        A.store.Ref(retPtr, _ret);
  4776      },
  4777      "try_IsArcProvisioned": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4778        try {
  4779          const _ret = WEBEXT.autotestPrivate.isArcProvisioned();
  4780          A.store.Ref(retPtr, _ret);
  4781          return A.H.TRUE;
  4782        } catch (err: any) {
  4783          A.store.Ref(errPtr, err);
  4784          return A.H.FALSE;
  4785        }
  4786      },
  4787      "has_IsFeatureEnabled": (): heap.Ref<boolean> => {
  4788        if (WEBEXT?.autotestPrivate && "isFeatureEnabled" in WEBEXT?.autotestPrivate) {
  4789          return A.H.TRUE;
  4790        }
  4791        return A.H.FALSE;
  4792      },
  4793      "func_IsFeatureEnabled": (fn: Pointer): void => {
  4794        A.store.Ref(fn, WEBEXT.autotestPrivate.isFeatureEnabled);
  4795      },
  4796      "call_IsFeatureEnabled": (retPtr: Pointer, feature_name: heap.Ref<object>): void => {
  4797        const _ret = WEBEXT.autotestPrivate.isFeatureEnabled(A.H.get<object>(feature_name));
  4798        A.store.Ref(retPtr, _ret);
  4799      },
  4800      "try_IsFeatureEnabled": (retPtr: Pointer, errPtr: Pointer, feature_name: heap.Ref<object>): heap.Ref<boolean> => {
  4801        try {
  4802          const _ret = WEBEXT.autotestPrivate.isFeatureEnabled(A.H.get<object>(feature_name));
  4803          A.store.Ref(retPtr, _ret);
  4804          return A.H.TRUE;
  4805        } catch (err: any) {
  4806          A.store.Ref(errPtr, err);
  4807          return A.H.FALSE;
  4808        }
  4809      },
  4810      "has_IsInputMethodReadyForTesting": (): heap.Ref<boolean> => {
  4811        if (WEBEXT?.autotestPrivate && "isInputMethodReadyForTesting" in WEBEXT?.autotestPrivate) {
  4812          return A.H.TRUE;
  4813        }
  4814        return A.H.FALSE;
  4815      },
  4816      "func_IsInputMethodReadyForTesting": (fn: Pointer): void => {
  4817        A.store.Ref(fn, WEBEXT.autotestPrivate.isInputMethodReadyForTesting);
  4818      },
  4819      "call_IsInputMethodReadyForTesting": (retPtr: Pointer): void => {
  4820        const _ret = WEBEXT.autotestPrivate.isInputMethodReadyForTesting();
  4821        A.store.Ref(retPtr, _ret);
  4822      },
  4823      "try_IsInputMethodReadyForTesting": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4824        try {
  4825          const _ret = WEBEXT.autotestPrivate.isInputMethodReadyForTesting();
  4826          A.store.Ref(retPtr, _ret);
  4827          return A.H.TRUE;
  4828        } catch (err: any) {
  4829          A.store.Ref(errPtr, err);
  4830          return A.H.FALSE;
  4831        }
  4832      },
  4833      "has_IsSystemWebAppOpen": (): heap.Ref<boolean> => {
  4834        if (WEBEXT?.autotestPrivate && "isSystemWebAppOpen" in WEBEXT?.autotestPrivate) {
  4835          return A.H.TRUE;
  4836        }
  4837        return A.H.FALSE;
  4838      },
  4839      "func_IsSystemWebAppOpen": (fn: Pointer): void => {
  4840        A.store.Ref(fn, WEBEXT.autotestPrivate.isSystemWebAppOpen);
  4841      },
  4842      "call_IsSystemWebAppOpen": (retPtr: Pointer, appId: heap.Ref<object>): void => {
  4843        const _ret = WEBEXT.autotestPrivate.isSystemWebAppOpen(A.H.get<object>(appId));
  4844        A.store.Ref(retPtr, _ret);
  4845      },
  4846      "try_IsSystemWebAppOpen": (retPtr: Pointer, errPtr: Pointer, appId: heap.Ref<object>): heap.Ref<boolean> => {
  4847        try {
  4848          const _ret = WEBEXT.autotestPrivate.isSystemWebAppOpen(A.H.get<object>(appId));
  4849          A.store.Ref(retPtr, _ret);
  4850          return A.H.TRUE;
  4851        } catch (err: any) {
  4852          A.store.Ref(errPtr, err);
  4853          return A.H.FALSE;
  4854        }
  4855      },
  4856      "has_IsTabletModeEnabled": (): heap.Ref<boolean> => {
  4857        if (WEBEXT?.autotestPrivate && "isTabletModeEnabled" in WEBEXT?.autotestPrivate) {
  4858          return A.H.TRUE;
  4859        }
  4860        return A.H.FALSE;
  4861      },
  4862      "func_IsTabletModeEnabled": (fn: Pointer): void => {
  4863        A.store.Ref(fn, WEBEXT.autotestPrivate.isTabletModeEnabled);
  4864      },
  4865      "call_IsTabletModeEnabled": (retPtr: Pointer): void => {
  4866        const _ret = WEBEXT.autotestPrivate.isTabletModeEnabled();
  4867        A.store.Ref(retPtr, _ret);
  4868      },
  4869      "try_IsTabletModeEnabled": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4870        try {
  4871          const _ret = WEBEXT.autotestPrivate.isTabletModeEnabled();
  4872          A.store.Ref(retPtr, _ret);
  4873          return A.H.TRUE;
  4874        } catch (err: any) {
  4875          A.store.Ref(errPtr, err);
  4876          return A.H.FALSE;
  4877        }
  4878      },
  4879      "has_LaunchApp": (): heap.Ref<boolean> => {
  4880        if (WEBEXT?.autotestPrivate && "launchApp" in WEBEXT?.autotestPrivate) {
  4881          return A.H.TRUE;
  4882        }
  4883        return A.H.FALSE;
  4884      },
  4885      "func_LaunchApp": (fn: Pointer): void => {
  4886        A.store.Ref(fn, WEBEXT.autotestPrivate.launchApp);
  4887      },
  4888      "call_LaunchApp": (retPtr: Pointer, appId: heap.Ref<object>): void => {
  4889        const _ret = WEBEXT.autotestPrivate.launchApp(A.H.get<object>(appId));
  4890        A.store.Ref(retPtr, _ret);
  4891      },
  4892      "try_LaunchApp": (retPtr: Pointer, errPtr: Pointer, appId: heap.Ref<object>): heap.Ref<boolean> => {
  4893        try {
  4894          const _ret = WEBEXT.autotestPrivate.launchApp(A.H.get<object>(appId));
  4895          A.store.Ref(retPtr, _ret);
  4896          return A.H.TRUE;
  4897        } catch (err: any) {
  4898          A.store.Ref(errPtr, err);
  4899          return A.H.FALSE;
  4900        }
  4901      },
  4902      "has_LaunchFilesAppToPath": (): heap.Ref<boolean> => {
  4903        if (WEBEXT?.autotestPrivate && "launchFilesAppToPath" in WEBEXT?.autotestPrivate) {
  4904          return A.H.TRUE;
  4905        }
  4906        return A.H.FALSE;
  4907      },
  4908      "func_LaunchFilesAppToPath": (fn: Pointer): void => {
  4909        A.store.Ref(fn, WEBEXT.autotestPrivate.launchFilesAppToPath);
  4910      },
  4911      "call_LaunchFilesAppToPath": (retPtr: Pointer, absolutePath: heap.Ref<object>): void => {
  4912        const _ret = WEBEXT.autotestPrivate.launchFilesAppToPath(A.H.get<object>(absolutePath));
  4913        A.store.Ref(retPtr, _ret);
  4914      },
  4915      "try_LaunchFilesAppToPath": (
  4916        retPtr: Pointer,
  4917        errPtr: Pointer,
  4918        absolutePath: heap.Ref<object>
  4919      ): heap.Ref<boolean> => {
  4920        try {
  4921          const _ret = WEBEXT.autotestPrivate.launchFilesAppToPath(A.H.get<object>(absolutePath));
  4922          A.store.Ref(retPtr, _ret);
  4923          return A.H.TRUE;
  4924        } catch (err: any) {
  4925          A.store.Ref(errPtr, err);
  4926          return A.H.FALSE;
  4927        }
  4928      },
  4929      "has_LaunchSystemWebApp": (): heap.Ref<boolean> => {
  4930        if (WEBEXT?.autotestPrivate && "launchSystemWebApp" in WEBEXT?.autotestPrivate) {
  4931          return A.H.TRUE;
  4932        }
  4933        return A.H.FALSE;
  4934      },
  4935      "func_LaunchSystemWebApp": (fn: Pointer): void => {
  4936        A.store.Ref(fn, WEBEXT.autotestPrivate.launchSystemWebApp);
  4937      },
  4938      "call_LaunchSystemWebApp": (retPtr: Pointer, appName: heap.Ref<object>, url: heap.Ref<object>): void => {
  4939        const _ret = WEBEXT.autotestPrivate.launchSystemWebApp(A.H.get<object>(appName), A.H.get<object>(url));
  4940        A.store.Ref(retPtr, _ret);
  4941      },
  4942      "try_LaunchSystemWebApp": (
  4943        retPtr: Pointer,
  4944        errPtr: Pointer,
  4945        appName: heap.Ref<object>,
  4946        url: heap.Ref<object>
  4947      ): heap.Ref<boolean> => {
  4948        try {
  4949          const _ret = WEBEXT.autotestPrivate.launchSystemWebApp(A.H.get<object>(appName), A.H.get<object>(url));
  4950          A.store.Ref(retPtr, _ret);
  4951          return A.H.TRUE;
  4952        } catch (err: any) {
  4953          A.store.Ref(errPtr, err);
  4954          return A.H.FALSE;
  4955        }
  4956      },
  4957      "has_LoadSmartDimComponent": (): heap.Ref<boolean> => {
  4958        if (WEBEXT?.autotestPrivate && "loadSmartDimComponent" in WEBEXT?.autotestPrivate) {
  4959          return A.H.TRUE;
  4960        }
  4961        return A.H.FALSE;
  4962      },
  4963      "func_LoadSmartDimComponent": (fn: Pointer): void => {
  4964        A.store.Ref(fn, WEBEXT.autotestPrivate.loadSmartDimComponent);
  4965      },
  4966      "call_LoadSmartDimComponent": (retPtr: Pointer): void => {
  4967        const _ret = WEBEXT.autotestPrivate.loadSmartDimComponent();
  4968        A.store.Ref(retPtr, _ret);
  4969      },
  4970      "try_LoadSmartDimComponent": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4971        try {
  4972          const _ret = WEBEXT.autotestPrivate.loadSmartDimComponent();
  4973          A.store.Ref(retPtr, _ret);
  4974          return A.H.TRUE;
  4975        } catch (err: any) {
  4976          A.store.Ref(errPtr, err);
  4977          return A.H.FALSE;
  4978        }
  4979      },
  4980      "has_LockScreen": (): heap.Ref<boolean> => {
  4981        if (WEBEXT?.autotestPrivate && "lockScreen" in WEBEXT?.autotestPrivate) {
  4982          return A.H.TRUE;
  4983        }
  4984        return A.H.FALSE;
  4985      },
  4986      "func_LockScreen": (fn: Pointer): void => {
  4987        A.store.Ref(fn, WEBEXT.autotestPrivate.lockScreen);
  4988      },
  4989      "call_LockScreen": (retPtr: Pointer): void => {
  4990        const _ret = WEBEXT.autotestPrivate.lockScreen();
  4991      },
  4992      "try_LockScreen": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  4993        try {
  4994          const _ret = WEBEXT.autotestPrivate.lockScreen();
  4995          return A.H.TRUE;
  4996        } catch (err: any) {
  4997          A.store.Ref(errPtr, err);
  4998          return A.H.FALSE;
  4999        }
  5000      },
  5001      "has_LoginStatus": (): heap.Ref<boolean> => {
  5002        if (WEBEXT?.autotestPrivate && "loginStatus" in WEBEXT?.autotestPrivate) {
  5003          return A.H.TRUE;
  5004        }
  5005        return A.H.FALSE;
  5006      },
  5007      "func_LoginStatus": (fn: Pointer): void => {
  5008        A.store.Ref(fn, WEBEXT.autotestPrivate.loginStatus);
  5009      },
  5010      "call_LoginStatus": (retPtr: Pointer): void => {
  5011        const _ret = WEBEXT.autotestPrivate.loginStatus();
  5012        A.store.Ref(retPtr, _ret);
  5013      },
  5014      "try_LoginStatus": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  5015        try {
  5016          const _ret = WEBEXT.autotestPrivate.loginStatus();
  5017          A.store.Ref(retPtr, _ret);
  5018          return A.H.TRUE;
  5019        } catch (err: any) {
  5020          A.store.Ref(errPtr, err);
  5021          return A.H.FALSE;
  5022        }
  5023      },
  5024      "has_Logout": (): heap.Ref<boolean> => {
  5025        if (WEBEXT?.autotestPrivate && "logout" in WEBEXT?.autotestPrivate) {
  5026          return A.H.TRUE;
  5027        }
  5028        return A.H.FALSE;
  5029      },
  5030      "func_Logout": (fn: Pointer): void => {
  5031        A.store.Ref(fn, WEBEXT.autotestPrivate.logout);
  5032      },
  5033      "call_Logout": (retPtr: Pointer): void => {
  5034        const _ret = WEBEXT.autotestPrivate.logout();
  5035      },
  5036      "try_Logout": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  5037        try {
  5038          const _ret = WEBEXT.autotestPrivate.logout();
  5039          return A.H.TRUE;
  5040        } catch (err: any) {
  5041          A.store.Ref(errPtr, err);
  5042          return A.H.FALSE;
  5043        }
  5044      },
  5045      "has_MakeFuseboxTempDir": (): heap.Ref<boolean> => {
  5046        if (WEBEXT?.autotestPrivate && "makeFuseboxTempDir" in WEBEXT?.autotestPrivate) {
  5047          return A.H.TRUE;
  5048        }
  5049        return A.H.FALSE;
  5050      },
  5051      "func_MakeFuseboxTempDir": (fn: Pointer): void => {
  5052        A.store.Ref(fn, WEBEXT.autotestPrivate.makeFuseboxTempDir);
  5053      },
  5054      "call_MakeFuseboxTempDir": (retPtr: Pointer): void => {
  5055        const _ret = WEBEXT.autotestPrivate.makeFuseboxTempDir();
  5056        A.store.Ref(retPtr, _ret);
  5057      },
  5058      "try_MakeFuseboxTempDir": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  5059        try {
  5060          const _ret = WEBEXT.autotestPrivate.makeFuseboxTempDir();
  5061          A.store.Ref(retPtr, _ret);
  5062          return A.H.TRUE;
  5063        } catch (err: any) {
  5064          A.store.Ref(errPtr, err);
  5065          return A.H.FALSE;
  5066        }
  5067      },
  5068      "has_MouseClick": (): heap.Ref<boolean> => {
  5069        if (WEBEXT?.autotestPrivate && "mouseClick" in WEBEXT?.autotestPrivate) {
  5070          return A.H.TRUE;
  5071        }
  5072        return A.H.FALSE;
  5073      },
  5074      "func_MouseClick": (fn: Pointer): void => {
  5075        A.store.Ref(fn, WEBEXT.autotestPrivate.mouseClick);
  5076      },
  5077      "call_MouseClick": (retPtr: Pointer, button: number): void => {
  5078        const _ret = WEBEXT.autotestPrivate.mouseClick(
  5079          button > 0 && button <= 5 ? ["Left", "Middle", "Right", "Back", "Forward"][button - 1] : undefined
  5080        );
  5081        A.store.Ref(retPtr, _ret);
  5082      },
  5083      "try_MouseClick": (retPtr: Pointer, errPtr: Pointer, button: number): heap.Ref<boolean> => {
  5084        try {
  5085          const _ret = WEBEXT.autotestPrivate.mouseClick(
  5086            button > 0 && button <= 5 ? ["Left", "Middle", "Right", "Back", "Forward"][button - 1] : undefined
  5087          );
  5088          A.store.Ref(retPtr, _ret);
  5089          return A.H.TRUE;
  5090        } catch (err: any) {
  5091          A.store.Ref(errPtr, err);
  5092          return A.H.FALSE;
  5093        }
  5094      },
  5095      "has_MouseMove": (): heap.Ref<boolean> => {
  5096        if (WEBEXT?.autotestPrivate && "mouseMove" in WEBEXT?.autotestPrivate) {
  5097          return A.H.TRUE;
  5098        }
  5099        return A.H.FALSE;
  5100      },
  5101      "func_MouseMove": (fn: Pointer): void => {
  5102        A.store.Ref(fn, WEBEXT.autotestPrivate.mouseMove);
  5103      },
  5104      "call_MouseMove": (retPtr: Pointer, location: Pointer, duration_in_ms: number): void => {
  5105        const location_ffi = {};
  5106  
  5107        if (A.load.Bool(location + 16)) {
  5108          location_ffi["x"] = A.load.Float64(location + 0);
  5109        }
  5110        if (A.load.Bool(location + 17)) {
  5111          location_ffi["y"] = A.load.Float64(location + 8);
  5112        }
  5113  
  5114        const _ret = WEBEXT.autotestPrivate.mouseMove(location_ffi, duration_in_ms);
  5115        A.store.Ref(retPtr, _ret);
  5116      },
  5117      "try_MouseMove": (
  5118        retPtr: Pointer,
  5119        errPtr: Pointer,
  5120        location: Pointer,
  5121        duration_in_ms: number
  5122      ): heap.Ref<boolean> => {
  5123        try {
  5124          const location_ffi = {};
  5125  
  5126          if (A.load.Bool(location + 16)) {
  5127            location_ffi["x"] = A.load.Float64(location + 0);
  5128          }
  5129          if (A.load.Bool(location + 17)) {
  5130            location_ffi["y"] = A.load.Float64(location + 8);
  5131          }
  5132  
  5133          const _ret = WEBEXT.autotestPrivate.mouseMove(location_ffi, duration_in_ms);
  5134          A.store.Ref(retPtr, _ret);
  5135          return A.H.TRUE;
  5136        } catch (err: any) {
  5137          A.store.Ref(errPtr, err);
  5138          return A.H.FALSE;
  5139        }
  5140      },
  5141      "has_MousePress": (): heap.Ref<boolean> => {
  5142        if (WEBEXT?.autotestPrivate && "mousePress" in WEBEXT?.autotestPrivate) {
  5143          return A.H.TRUE;
  5144        }
  5145        return A.H.FALSE;
  5146      },
  5147      "func_MousePress": (fn: Pointer): void => {
  5148        A.store.Ref(fn, WEBEXT.autotestPrivate.mousePress);
  5149      },
  5150      "call_MousePress": (retPtr: Pointer, button: number): void => {
  5151        const _ret = WEBEXT.autotestPrivate.mousePress(
  5152          button > 0 && button <= 5 ? ["Left", "Middle", "Right", "Back", "Forward"][button - 1] : undefined
  5153        );
  5154        A.store.Ref(retPtr, _ret);
  5155      },
  5156      "try_MousePress": (retPtr: Pointer, errPtr: Pointer, button: number): heap.Ref<boolean> => {
  5157        try {
  5158          const _ret = WEBEXT.autotestPrivate.mousePress(
  5159            button > 0 && button <= 5 ? ["Left", "Middle", "Right", "Back", "Forward"][button - 1] : undefined
  5160          );
  5161          A.store.Ref(retPtr, _ret);
  5162          return A.H.TRUE;
  5163        } catch (err: any) {
  5164          A.store.Ref(errPtr, err);
  5165          return A.H.FALSE;
  5166        }
  5167      },
  5168      "has_MouseRelease": (): heap.Ref<boolean> => {
  5169        if (WEBEXT?.autotestPrivate && "mouseRelease" in WEBEXT?.autotestPrivate) {
  5170          return A.H.TRUE;
  5171        }
  5172        return A.H.FALSE;
  5173      },
  5174      "func_MouseRelease": (fn: Pointer): void => {
  5175        A.store.Ref(fn, WEBEXT.autotestPrivate.mouseRelease);
  5176      },
  5177      "call_MouseRelease": (retPtr: Pointer, button: number): void => {
  5178        const _ret = WEBEXT.autotestPrivate.mouseRelease(
  5179          button > 0 && button <= 5 ? ["Left", "Middle", "Right", "Back", "Forward"][button - 1] : undefined
  5180        );
  5181        A.store.Ref(retPtr, _ret);
  5182      },
  5183      "try_MouseRelease": (retPtr: Pointer, errPtr: Pointer, button: number): heap.Ref<boolean> => {
  5184        try {
  5185          const _ret = WEBEXT.autotestPrivate.mouseRelease(
  5186            button > 0 && button <= 5 ? ["Left", "Middle", "Right", "Back", "Forward"][button - 1] : undefined
  5187          );
  5188          A.store.Ref(retPtr, _ret);
  5189          return A.H.TRUE;
  5190        } catch (err: any) {
  5191          A.store.Ref(errPtr, err);
  5192          return A.H.FALSE;
  5193        }
  5194      },
  5195      "has_OnClipboardDataChanged": (): heap.Ref<boolean> => {
  5196        if (
  5197          WEBEXT?.autotestPrivate?.onClipboardDataChanged &&
  5198          "addListener" in WEBEXT?.autotestPrivate?.onClipboardDataChanged
  5199        ) {
  5200          return A.H.TRUE;
  5201        }
  5202        return A.H.FALSE;
  5203      },
  5204      "func_OnClipboardDataChanged": (fn: Pointer): void => {
  5205        A.store.Ref(fn, WEBEXT.autotestPrivate.onClipboardDataChanged.addListener);
  5206      },
  5207      "call_OnClipboardDataChanged": (retPtr: Pointer, callback: heap.Ref<object>): void => {
  5208        const _ret = WEBEXT.autotestPrivate.onClipboardDataChanged.addListener(A.H.get<object>(callback));
  5209      },
  5210      "try_OnClipboardDataChanged": (retPtr: Pointer, errPtr: Pointer, callback: heap.Ref<object>): heap.Ref<boolean> => {
  5211        try {
  5212          const _ret = WEBEXT.autotestPrivate.onClipboardDataChanged.addListener(A.H.get<object>(callback));
  5213          return A.H.TRUE;
  5214        } catch (err: any) {
  5215          A.store.Ref(errPtr, err);
  5216          return A.H.FALSE;
  5217        }
  5218      },
  5219      "has_OffClipboardDataChanged": (): heap.Ref<boolean> => {
  5220        if (
  5221          WEBEXT?.autotestPrivate?.onClipboardDataChanged &&
  5222          "removeListener" in WEBEXT?.autotestPrivate?.onClipboardDataChanged
  5223        ) {
  5224          return A.H.TRUE;
  5225        }
  5226        return A.H.FALSE;
  5227      },
  5228      "func_OffClipboardDataChanged": (fn: Pointer): void => {
  5229        A.store.Ref(fn, WEBEXT.autotestPrivate.onClipboardDataChanged.removeListener);
  5230      },
  5231      "call_OffClipboardDataChanged": (retPtr: Pointer, callback: heap.Ref<object>): void => {
  5232        const _ret = WEBEXT.autotestPrivate.onClipboardDataChanged.removeListener(A.H.get<object>(callback));
  5233      },
  5234      "try_OffClipboardDataChanged": (
  5235        retPtr: Pointer,
  5236        errPtr: Pointer,
  5237        callback: heap.Ref<object>
  5238      ): heap.Ref<boolean> => {
  5239        try {
  5240          const _ret = WEBEXT.autotestPrivate.onClipboardDataChanged.removeListener(A.H.get<object>(callback));
  5241          return A.H.TRUE;
  5242        } catch (err: any) {
  5243          A.store.Ref(errPtr, err);
  5244          return A.H.FALSE;
  5245        }
  5246      },
  5247      "has_HasOnClipboardDataChanged": (): heap.Ref<boolean> => {
  5248        if (
  5249          WEBEXT?.autotestPrivate?.onClipboardDataChanged &&
  5250          "hasListener" in WEBEXT?.autotestPrivate?.onClipboardDataChanged
  5251        ) {
  5252          return A.H.TRUE;
  5253        }
  5254        return A.H.FALSE;
  5255      },
  5256      "func_HasOnClipboardDataChanged": (fn: Pointer): void => {
  5257        A.store.Ref(fn, WEBEXT.autotestPrivate.onClipboardDataChanged.hasListener);
  5258      },
  5259      "call_HasOnClipboardDataChanged": (retPtr: Pointer, callback: heap.Ref<object>): void => {
  5260        const _ret = WEBEXT.autotestPrivate.onClipboardDataChanged.hasListener(A.H.get<object>(callback));
  5261        A.store.Bool(retPtr, _ret);
  5262      },
  5263      "try_HasOnClipboardDataChanged": (
  5264        retPtr: Pointer,
  5265        errPtr: Pointer,
  5266        callback: heap.Ref<object>
  5267      ): heap.Ref<boolean> => {
  5268        try {
  5269          const _ret = WEBEXT.autotestPrivate.onClipboardDataChanged.hasListener(A.H.get<object>(callback));
  5270          A.store.Bool(retPtr, _ret);
  5271          return A.H.TRUE;
  5272        } catch (err: any) {
  5273          A.store.Ref(errPtr, err);
  5274          return A.H.FALSE;
  5275        }
  5276      },
  5277      "has_PinShelfIcon": (): heap.Ref<boolean> => {
  5278        if (WEBEXT?.autotestPrivate && "pinShelfIcon" in WEBEXT?.autotestPrivate) {
  5279          return A.H.TRUE;
  5280        }
  5281        return A.H.FALSE;
  5282      },
  5283      "func_PinShelfIcon": (fn: Pointer): void => {
  5284        A.store.Ref(fn, WEBEXT.autotestPrivate.pinShelfIcon);
  5285      },
  5286      "call_PinShelfIcon": (retPtr: Pointer, appId: heap.Ref<object>): void => {
  5287        const _ret = WEBEXT.autotestPrivate.pinShelfIcon(A.H.get<object>(appId));
  5288        A.store.Ref(retPtr, _ret);
  5289      },
  5290      "try_PinShelfIcon": (retPtr: Pointer, errPtr: Pointer, appId: heap.Ref<object>): heap.Ref<boolean> => {
  5291        try {
  5292          const _ret = WEBEXT.autotestPrivate.pinShelfIcon(A.H.get<object>(appId));
  5293          A.store.Ref(retPtr, _ret);
  5294          return A.H.TRUE;
  5295        } catch (err: any) {
  5296          A.store.Ref(errPtr, err);
  5297          return A.H.FALSE;
  5298        }
  5299      },
  5300      "has_RefreshEnterprisePolicies": (): heap.Ref<boolean> => {
  5301        if (WEBEXT?.autotestPrivate && "refreshEnterprisePolicies" in WEBEXT?.autotestPrivate) {
  5302          return A.H.TRUE;
  5303        }
  5304        return A.H.FALSE;
  5305      },
  5306      "func_RefreshEnterprisePolicies": (fn: Pointer): void => {
  5307        A.store.Ref(fn, WEBEXT.autotestPrivate.refreshEnterprisePolicies);
  5308      },
  5309      "call_RefreshEnterprisePolicies": (retPtr: Pointer): void => {
  5310        const _ret = WEBEXT.autotestPrivate.refreshEnterprisePolicies();
  5311        A.store.Ref(retPtr, _ret);
  5312      },
  5313      "try_RefreshEnterprisePolicies": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  5314        try {
  5315          const _ret = WEBEXT.autotestPrivate.refreshEnterprisePolicies();
  5316          A.store.Ref(retPtr, _ret);
  5317          return A.H.TRUE;
  5318        } catch (err: any) {
  5319          A.store.Ref(errPtr, err);
  5320          return A.H.FALSE;
  5321        }
  5322      },
  5323      "has_RefreshRemoteCommands": (): heap.Ref<boolean> => {
  5324        if (WEBEXT?.autotestPrivate && "refreshRemoteCommands" in WEBEXT?.autotestPrivate) {
  5325          return A.H.TRUE;
  5326        }
  5327        return A.H.FALSE;
  5328      },
  5329      "func_RefreshRemoteCommands": (fn: Pointer): void => {
  5330        A.store.Ref(fn, WEBEXT.autotestPrivate.refreshRemoteCommands);
  5331      },
  5332      "call_RefreshRemoteCommands": (retPtr: Pointer): void => {
  5333        const _ret = WEBEXT.autotestPrivate.refreshRemoteCommands();
  5334        A.store.Ref(retPtr, _ret);
  5335      },
  5336      "try_RefreshRemoteCommands": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  5337        try {
  5338          const _ret = WEBEXT.autotestPrivate.refreshRemoteCommands();
  5339          A.store.Ref(retPtr, _ret);
  5340          return A.H.TRUE;
  5341        } catch (err: any) {
  5342          A.store.Ref(errPtr, err);
  5343          return A.H.FALSE;
  5344        }
  5345      },
  5346      "has_RegisterComponent": (): heap.Ref<boolean> => {
  5347        if (WEBEXT?.autotestPrivate && "registerComponent" in WEBEXT?.autotestPrivate) {
  5348          return A.H.TRUE;
  5349        }
  5350        return A.H.FALSE;
  5351      },
  5352      "func_RegisterComponent": (fn: Pointer): void => {
  5353        A.store.Ref(fn, WEBEXT.autotestPrivate.registerComponent);
  5354      },
  5355      "call_RegisterComponent": (retPtr: Pointer, name: heap.Ref<object>, path: heap.Ref<object>): void => {
  5356        const _ret = WEBEXT.autotestPrivate.registerComponent(A.H.get<object>(name), A.H.get<object>(path));
  5357      },
  5358      "try_RegisterComponent": (
  5359        retPtr: Pointer,
  5360        errPtr: Pointer,
  5361        name: heap.Ref<object>,
  5362        path: heap.Ref<object>
  5363      ): heap.Ref<boolean> => {
  5364        try {
  5365          const _ret = WEBEXT.autotestPrivate.registerComponent(A.H.get<object>(name), A.H.get<object>(path));
  5366          return A.H.TRUE;
  5367        } catch (err: any) {
  5368          A.store.Ref(errPtr, err);
  5369          return A.H.FALSE;
  5370        }
  5371      },
  5372      "has_RemoveActiveDesk": (): heap.Ref<boolean> => {
  5373        if (WEBEXT?.autotestPrivate && "removeActiveDesk" in WEBEXT?.autotestPrivate) {
  5374          return A.H.TRUE;
  5375        }
  5376        return A.H.FALSE;
  5377      },
  5378      "func_RemoveActiveDesk": (fn: Pointer): void => {
  5379        A.store.Ref(fn, WEBEXT.autotestPrivate.removeActiveDesk);
  5380      },
  5381      "call_RemoveActiveDesk": (retPtr: Pointer): void => {
  5382        const _ret = WEBEXT.autotestPrivate.removeActiveDesk();
  5383        A.store.Ref(retPtr, _ret);
  5384      },
  5385      "try_RemoveActiveDesk": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  5386        try {
  5387          const _ret = WEBEXT.autotestPrivate.removeActiveDesk();
  5388          A.store.Ref(retPtr, _ret);
  5389          return A.H.TRUE;
  5390        } catch (err: any) {
  5391          A.store.Ref(errPtr, err);
  5392          return A.H.FALSE;
  5393        }
  5394      },
  5395      "has_RemoveAllNotifications": (): heap.Ref<boolean> => {
  5396        if (WEBEXT?.autotestPrivate && "removeAllNotifications" in WEBEXT?.autotestPrivate) {
  5397          return A.H.TRUE;
  5398        }
  5399        return A.H.FALSE;
  5400      },
  5401      "func_RemoveAllNotifications": (fn: Pointer): void => {
  5402        A.store.Ref(fn, WEBEXT.autotestPrivate.removeAllNotifications);
  5403      },
  5404      "call_RemoveAllNotifications": (retPtr: Pointer): void => {
  5405        const _ret = WEBEXT.autotestPrivate.removeAllNotifications();
  5406        A.store.Ref(retPtr, _ret);
  5407      },
  5408      "try_RemoveAllNotifications": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  5409        try {
  5410          const _ret = WEBEXT.autotestPrivate.removeAllNotifications();
  5411          A.store.Ref(retPtr, _ret);
  5412          return A.H.TRUE;
  5413        } catch (err: any) {
  5414          A.store.Ref(errPtr, err);
  5415          return A.H.FALSE;
  5416        }
  5417      },
  5418      "has_RemoveBruschetta": (): heap.Ref<boolean> => {
  5419        if (WEBEXT?.autotestPrivate && "removeBruschetta" in WEBEXT?.autotestPrivate) {
  5420          return A.H.TRUE;
  5421        }
  5422        return A.H.FALSE;
  5423      },
  5424      "func_RemoveBruschetta": (fn: Pointer): void => {
  5425        A.store.Ref(fn, WEBEXT.autotestPrivate.removeBruschetta);
  5426      },
  5427      "call_RemoveBruschetta": (retPtr: Pointer, vm_name: heap.Ref<object>): void => {
  5428        const _ret = WEBEXT.autotestPrivate.removeBruschetta(A.H.get<object>(vm_name));
  5429        A.store.Ref(retPtr, _ret);
  5430      },
  5431      "try_RemoveBruschetta": (retPtr: Pointer, errPtr: Pointer, vm_name: heap.Ref<object>): heap.Ref<boolean> => {
  5432        try {
  5433          const _ret = WEBEXT.autotestPrivate.removeBruschetta(A.H.get<object>(vm_name));
  5434          A.store.Ref(retPtr, _ret);
  5435          return A.H.TRUE;
  5436        } catch (err: any) {
  5437          A.store.Ref(errPtr, err);
  5438          return A.H.FALSE;
  5439        }
  5440      },
  5441      "has_RemoveComponentExtension": (): heap.Ref<boolean> => {
  5442        if (WEBEXT?.autotestPrivate && "removeComponentExtension" in WEBEXT?.autotestPrivate) {
  5443          return A.H.TRUE;
  5444        }
  5445        return A.H.FALSE;
  5446      },
  5447      "func_RemoveComponentExtension": (fn: Pointer): void => {
  5448        A.store.Ref(fn, WEBEXT.autotestPrivate.removeComponentExtension);
  5449      },
  5450      "call_RemoveComponentExtension": (retPtr: Pointer, extensionId: heap.Ref<object>): void => {
  5451        const _ret = WEBEXT.autotestPrivate.removeComponentExtension(A.H.get<object>(extensionId));
  5452        A.store.Ref(retPtr, _ret);
  5453      },
  5454      "try_RemoveComponentExtension": (
  5455        retPtr: Pointer,
  5456        errPtr: Pointer,
  5457        extensionId: heap.Ref<object>
  5458      ): heap.Ref<boolean> => {
  5459        try {
  5460          const _ret = WEBEXT.autotestPrivate.removeComponentExtension(A.H.get<object>(extensionId));
  5461          A.store.Ref(retPtr, _ret);
  5462          return A.H.TRUE;
  5463        } catch (err: any) {
  5464          A.store.Ref(errPtr, err);
  5465          return A.H.FALSE;
  5466        }
  5467      },
  5468      "has_RemoveFuseboxTempDir": (): heap.Ref<boolean> => {
  5469        if (WEBEXT?.autotestPrivate && "removeFuseboxTempDir" in WEBEXT?.autotestPrivate) {
  5470          return A.H.TRUE;
  5471        }
  5472        return A.H.FALSE;
  5473      },
  5474      "func_RemoveFuseboxTempDir": (fn: Pointer): void => {
  5475        A.store.Ref(fn, WEBEXT.autotestPrivate.removeFuseboxTempDir);
  5476      },
  5477      "call_RemoveFuseboxTempDir": (retPtr: Pointer, fuseboxFilePath: heap.Ref<object>): void => {
  5478        const _ret = WEBEXT.autotestPrivate.removeFuseboxTempDir(A.H.get<object>(fuseboxFilePath));
  5479        A.store.Ref(retPtr, _ret);
  5480      },
  5481      "try_RemoveFuseboxTempDir": (
  5482        retPtr: Pointer,
  5483        errPtr: Pointer,
  5484        fuseboxFilePath: heap.Ref<object>
  5485      ): heap.Ref<boolean> => {
  5486        try {
  5487          const _ret = WEBEXT.autotestPrivate.removeFuseboxTempDir(A.H.get<object>(fuseboxFilePath));
  5488          A.store.Ref(retPtr, _ret);
  5489          return A.H.TRUE;
  5490        } catch (err: any) {
  5491          A.store.Ref(errPtr, err);
  5492          return A.H.FALSE;
  5493        }
  5494      },
  5495      "has_RemovePrinter": (): heap.Ref<boolean> => {
  5496        if (WEBEXT?.autotestPrivate && "removePrinter" in WEBEXT?.autotestPrivate) {
  5497          return A.H.TRUE;
  5498        }
  5499        return A.H.FALSE;
  5500      },
  5501      "func_RemovePrinter": (fn: Pointer): void => {
  5502        A.store.Ref(fn, WEBEXT.autotestPrivate.removePrinter);
  5503      },
  5504      "call_RemovePrinter": (retPtr: Pointer, printerId: heap.Ref<object>): void => {
  5505        const _ret = WEBEXT.autotestPrivate.removePrinter(A.H.get<object>(printerId));
  5506      },
  5507      "try_RemovePrinter": (retPtr: Pointer, errPtr: Pointer, printerId: heap.Ref<object>): heap.Ref<boolean> => {
  5508        try {
  5509          const _ret = WEBEXT.autotestPrivate.removePrinter(A.H.get<object>(printerId));
  5510          return A.H.TRUE;
  5511        } catch (err: any) {
  5512          A.store.Ref(errPtr, err);
  5513          return A.H.FALSE;
  5514        }
  5515      },
  5516      "has_ResetHoldingSpace": (): heap.Ref<boolean> => {
  5517        if (WEBEXT?.autotestPrivate && "resetHoldingSpace" in WEBEXT?.autotestPrivate) {
  5518          return A.H.TRUE;
  5519        }
  5520        return A.H.FALSE;
  5521      },
  5522      "func_ResetHoldingSpace": (fn: Pointer): void => {
  5523        A.store.Ref(fn, WEBEXT.autotestPrivate.resetHoldingSpace);
  5524      },
  5525      "call_ResetHoldingSpace": (retPtr: Pointer, options: Pointer): void => {
  5526        const options_ffi = {};
  5527  
  5528        if (A.load.Bool(options + 1)) {
  5529          options_ffi["markTimeOfFirstAdd"] = A.load.Bool(options + 0);
  5530        }
  5531  
  5532        const _ret = WEBEXT.autotestPrivate.resetHoldingSpace(options_ffi);
  5533        A.store.Ref(retPtr, _ret);
  5534      },
  5535      "try_ResetHoldingSpace": (retPtr: Pointer, errPtr: Pointer, options: Pointer): heap.Ref<boolean> => {
  5536        try {
  5537          const options_ffi = {};
  5538  
  5539          if (A.load.Bool(options + 1)) {
  5540            options_ffi["markTimeOfFirstAdd"] = A.load.Bool(options + 0);
  5541          }
  5542  
  5543          const _ret = WEBEXT.autotestPrivate.resetHoldingSpace(options_ffi);
  5544          A.store.Ref(retPtr, _ret);
  5545          return A.H.TRUE;
  5546        } catch (err: any) {
  5547          A.store.Ref(errPtr, err);
  5548          return A.H.FALSE;
  5549        }
  5550      },
  5551      "has_Restart": (): heap.Ref<boolean> => {
  5552        if (WEBEXT?.autotestPrivate && "restart" in WEBEXT?.autotestPrivate) {
  5553          return A.H.TRUE;
  5554        }
  5555        return A.H.FALSE;
  5556      },
  5557      "func_Restart": (fn: Pointer): void => {
  5558        A.store.Ref(fn, WEBEXT.autotestPrivate.restart);
  5559      },
  5560      "call_Restart": (retPtr: Pointer): void => {
  5561        const _ret = WEBEXT.autotestPrivate.restart();
  5562      },
  5563      "try_Restart": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  5564        try {
  5565          const _ret = WEBEXT.autotestPrivate.restart();
  5566          return A.H.TRUE;
  5567        } catch (err: any) {
  5568          A.store.Ref(errPtr, err);
  5569          return A.H.FALSE;
  5570        }
  5571      },
  5572      "has_RunCrostiniInstaller": (): heap.Ref<boolean> => {
  5573        if (WEBEXT?.autotestPrivate && "runCrostiniInstaller" in WEBEXT?.autotestPrivate) {
  5574          return A.H.TRUE;
  5575        }
  5576        return A.H.FALSE;
  5577      },
  5578      "func_RunCrostiniInstaller": (fn: Pointer): void => {
  5579        A.store.Ref(fn, WEBEXT.autotestPrivate.runCrostiniInstaller);
  5580      },
  5581      "call_RunCrostiniInstaller": (retPtr: Pointer): void => {
  5582        const _ret = WEBEXT.autotestPrivate.runCrostiniInstaller();
  5583        A.store.Ref(retPtr, _ret);
  5584      },
  5585      "try_RunCrostiniInstaller": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  5586        try {
  5587          const _ret = WEBEXT.autotestPrivate.runCrostiniInstaller();
  5588          A.store.Ref(retPtr, _ret);
  5589          return A.H.TRUE;
  5590        } catch (err: any) {
  5591          A.store.Ref(errPtr, err);
  5592          return A.H.FALSE;
  5593        }
  5594      },
  5595      "has_RunCrostiniUninstaller": (): heap.Ref<boolean> => {
  5596        if (WEBEXT?.autotestPrivate && "runCrostiniUninstaller" in WEBEXT?.autotestPrivate) {
  5597          return A.H.TRUE;
  5598        }
  5599        return A.H.FALSE;
  5600      },
  5601      "func_RunCrostiniUninstaller": (fn: Pointer): void => {
  5602        A.store.Ref(fn, WEBEXT.autotestPrivate.runCrostiniUninstaller);
  5603      },
  5604      "call_RunCrostiniUninstaller": (retPtr: Pointer): void => {
  5605        const _ret = WEBEXT.autotestPrivate.runCrostiniUninstaller();
  5606        A.store.Ref(retPtr, _ret);
  5607      },
  5608      "try_RunCrostiniUninstaller": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  5609        try {
  5610          const _ret = WEBEXT.autotestPrivate.runCrostiniUninstaller();
  5611          A.store.Ref(retPtr, _ret);
  5612          return A.H.TRUE;
  5613        } catch (err: any) {
  5614          A.store.Ref(errPtr, err);
  5615          return A.H.FALSE;
  5616        }
  5617      },
  5618      "has_SendArcOverlayColor": (): heap.Ref<boolean> => {
  5619        if (WEBEXT?.autotestPrivate && "sendArcOverlayColor" in WEBEXT?.autotestPrivate) {
  5620          return A.H.TRUE;
  5621        }
  5622        return A.H.FALSE;
  5623      },
  5624      "func_SendArcOverlayColor": (fn: Pointer): void => {
  5625        A.store.Ref(fn, WEBEXT.autotestPrivate.sendArcOverlayColor);
  5626      },
  5627      "call_SendArcOverlayColor": (retPtr: Pointer, color: number, theme: number): void => {
  5628        const _ret = WEBEXT.autotestPrivate.sendArcOverlayColor(
  5629          color,
  5630          theme > 0 && theme <= 6
  5631            ? ["TonalSpot", "Vibrant", "Expressive", "Spritz", "Rainbow", "FruitSalad"][theme - 1]
  5632            : undefined
  5633        );
  5634        A.store.Ref(retPtr, _ret);
  5635      },
  5636      "try_SendArcOverlayColor": (retPtr: Pointer, errPtr: Pointer, color: number, theme: number): heap.Ref<boolean> => {
  5637        try {
  5638          const _ret = WEBEXT.autotestPrivate.sendArcOverlayColor(
  5639            color,
  5640            theme > 0 && theme <= 6
  5641              ? ["TonalSpot", "Vibrant", "Expressive", "Spritz", "Rainbow", "FruitSalad"][theme - 1]
  5642              : undefined
  5643          );
  5644          A.store.Ref(retPtr, _ret);
  5645          return A.H.TRUE;
  5646        } catch (err: any) {
  5647          A.store.Ref(errPtr, err);
  5648          return A.H.FALSE;
  5649        }
  5650      },
  5651      "has_SendAssistantTextQuery": (): heap.Ref<boolean> => {
  5652        if (WEBEXT?.autotestPrivate && "sendAssistantTextQuery" in WEBEXT?.autotestPrivate) {
  5653          return A.H.TRUE;
  5654        }
  5655        return A.H.FALSE;
  5656      },
  5657      "func_SendAssistantTextQuery": (fn: Pointer): void => {
  5658        A.store.Ref(fn, WEBEXT.autotestPrivate.sendAssistantTextQuery);
  5659      },
  5660      "call_SendAssistantTextQuery": (retPtr: Pointer, query: heap.Ref<object>, timeout_ms: number): void => {
  5661        const _ret = WEBEXT.autotestPrivate.sendAssistantTextQuery(A.H.get<object>(query), timeout_ms);
  5662        A.store.Ref(retPtr, _ret);
  5663      },
  5664      "try_SendAssistantTextQuery": (
  5665        retPtr: Pointer,
  5666        errPtr: Pointer,
  5667        query: heap.Ref<object>,
  5668        timeout_ms: number
  5669      ): heap.Ref<boolean> => {
  5670        try {
  5671          const _ret = WEBEXT.autotestPrivate.sendAssistantTextQuery(A.H.get<object>(query), timeout_ms);
  5672          A.store.Ref(retPtr, _ret);
  5673          return A.H.TRUE;
  5674        } catch (err: any) {
  5675          A.store.Ref(errPtr, err);
  5676          return A.H.FALSE;
  5677        }
  5678      },
  5679      "has_SetAllowedPref": (): heap.Ref<boolean> => {
  5680        if (WEBEXT?.autotestPrivate && "setAllowedPref" in WEBEXT?.autotestPrivate) {
  5681          return A.H.TRUE;
  5682        }
  5683        return A.H.FALSE;
  5684      },
  5685      "func_SetAllowedPref": (fn: Pointer): void => {
  5686        A.store.Ref(fn, WEBEXT.autotestPrivate.setAllowedPref);
  5687      },
  5688      "call_SetAllowedPref": (retPtr: Pointer, pref_name: heap.Ref<object>, value: heap.Ref<object>): void => {
  5689        const _ret = WEBEXT.autotestPrivate.setAllowedPref(A.H.get<object>(pref_name), A.H.get<object>(value));
  5690        A.store.Ref(retPtr, _ret);
  5691      },
  5692      "try_SetAllowedPref": (
  5693        retPtr: Pointer,
  5694        errPtr: Pointer,
  5695        pref_name: heap.Ref<object>,
  5696        value: heap.Ref<object>
  5697      ): heap.Ref<boolean> => {
  5698        try {
  5699          const _ret = WEBEXT.autotestPrivate.setAllowedPref(A.H.get<object>(pref_name), A.H.get<object>(value));
  5700          A.store.Ref(retPtr, _ret);
  5701          return A.H.TRUE;
  5702        } catch (err: any) {
  5703          A.store.Ref(errPtr, err);
  5704          return A.H.FALSE;
  5705        }
  5706      },
  5707      "has_SetAppWindowState": (): heap.Ref<boolean> => {
  5708        if (WEBEXT?.autotestPrivate && "setAppWindowState" in WEBEXT?.autotestPrivate) {
  5709          return A.H.TRUE;
  5710        }
  5711        return A.H.FALSE;
  5712      },
  5713      "func_SetAppWindowState": (fn: Pointer): void => {
  5714        A.store.Ref(fn, WEBEXT.autotestPrivate.setAppWindowState);
  5715      },
  5716      "call_SetAppWindowState": (retPtr: Pointer, id: number, change: Pointer, wait: heap.Ref<boolean>): void => {
  5717        const change_ffi = {};
  5718  
  5719        change_ffi["eventType"] = A.load.Enum(change + 0, [
  5720          "WMEventNormal",
  5721          "WMEventMaximize",
  5722          "WMEventMinimize",
  5723          "WMEventFullscreen",
  5724          "WMEventSnapPrimary",
  5725          "WMEventSnapSecondary",
  5726          "WMEventFloat",
  5727        ]);
  5728        if (A.load.Bool(change + 5)) {
  5729          change_ffi["failIfNoChange"] = A.load.Bool(change + 4);
  5730        }
  5731  
  5732        const _ret = WEBEXT.autotestPrivate.setAppWindowState(id, change_ffi, wait === A.H.TRUE);
  5733        A.store.Ref(retPtr, _ret);
  5734      },
  5735      "try_SetAppWindowState": (
  5736        retPtr: Pointer,
  5737        errPtr: Pointer,
  5738        id: number,
  5739        change: Pointer,
  5740        wait: heap.Ref<boolean>
  5741      ): heap.Ref<boolean> => {
  5742        try {
  5743          const change_ffi = {};
  5744  
  5745          change_ffi["eventType"] = A.load.Enum(change + 0, [
  5746            "WMEventNormal",
  5747            "WMEventMaximize",
  5748            "WMEventMinimize",
  5749            "WMEventFullscreen",
  5750            "WMEventSnapPrimary",
  5751            "WMEventSnapSecondary",
  5752            "WMEventFloat",
  5753          ]);
  5754          if (A.load.Bool(change + 5)) {
  5755            change_ffi["failIfNoChange"] = A.load.Bool(change + 4);
  5756          }
  5757  
  5758          const _ret = WEBEXT.autotestPrivate.setAppWindowState(id, change_ffi, wait === A.H.TRUE);
  5759          A.store.Ref(retPtr, _ret);
  5760          return A.H.TRUE;
  5761        } catch (err: any) {
  5762          A.store.Ref(errPtr, err);
  5763          return A.H.FALSE;
  5764        }
  5765      },
  5766      "has_SetArcAppWindowFocus": (): heap.Ref<boolean> => {
  5767        if (WEBEXT?.autotestPrivate && "setArcAppWindowFocus" in WEBEXT?.autotestPrivate) {
  5768          return A.H.TRUE;
  5769        }
  5770        return A.H.FALSE;
  5771      },
  5772      "func_SetArcAppWindowFocus": (fn: Pointer): void => {
  5773        A.store.Ref(fn, WEBEXT.autotestPrivate.setArcAppWindowFocus);
  5774      },
  5775      "call_SetArcAppWindowFocus": (retPtr: Pointer, packageName: heap.Ref<object>): void => {
  5776        const _ret = WEBEXT.autotestPrivate.setArcAppWindowFocus(A.H.get<object>(packageName));
  5777        A.store.Ref(retPtr, _ret);
  5778      },
  5779      "try_SetArcAppWindowFocus": (
  5780        retPtr: Pointer,
  5781        errPtr: Pointer,
  5782        packageName: heap.Ref<object>
  5783      ): heap.Ref<boolean> => {
  5784        try {
  5785          const _ret = WEBEXT.autotestPrivate.setArcAppWindowFocus(A.H.get<object>(packageName));
  5786          A.store.Ref(retPtr, _ret);
  5787          return A.H.TRUE;
  5788        } catch (err: any) {
  5789          A.store.Ref(errPtr, err);
  5790          return A.H.FALSE;
  5791        }
  5792      },
  5793      "has_SetArcInteractiveState": (): heap.Ref<boolean> => {
  5794        if (WEBEXT?.autotestPrivate && "setArcInteractiveState" in WEBEXT?.autotestPrivate) {
  5795          return A.H.TRUE;
  5796        }
  5797        return A.H.FALSE;
  5798      },
  5799      "func_SetArcInteractiveState": (fn: Pointer): void => {
  5800        A.store.Ref(fn, WEBEXT.autotestPrivate.setArcInteractiveState);
  5801      },
  5802      "call_SetArcInteractiveState": (retPtr: Pointer, enabled: heap.Ref<boolean>): void => {
  5803        const _ret = WEBEXT.autotestPrivate.setArcInteractiveState(enabled === A.H.TRUE);
  5804        A.store.Ref(retPtr, _ret);
  5805      },
  5806      "try_SetArcInteractiveState": (retPtr: Pointer, errPtr: Pointer, enabled: heap.Ref<boolean>): heap.Ref<boolean> => {
  5807        try {
  5808          const _ret = WEBEXT.autotestPrivate.setArcInteractiveState(enabled === A.H.TRUE);
  5809          A.store.Ref(retPtr, _ret);
  5810          return A.H.TRUE;
  5811        } catch (err: any) {
  5812          A.store.Ref(errPtr, err);
  5813          return A.H.FALSE;
  5814        }
  5815      },
  5816      "has_SetArcTouchMode": (): heap.Ref<boolean> => {
  5817        if (WEBEXT?.autotestPrivate && "setArcTouchMode" in WEBEXT?.autotestPrivate) {
  5818          return A.H.TRUE;
  5819        }
  5820        return A.H.FALSE;
  5821      },
  5822      "func_SetArcTouchMode": (fn: Pointer): void => {
  5823        A.store.Ref(fn, WEBEXT.autotestPrivate.setArcTouchMode);
  5824      },
  5825      "call_SetArcTouchMode": (retPtr: Pointer, enabled: heap.Ref<boolean>): void => {
  5826        const _ret = WEBEXT.autotestPrivate.setArcTouchMode(enabled === A.H.TRUE);
  5827        A.store.Ref(retPtr, _ret);
  5828      },
  5829      "try_SetArcTouchMode": (retPtr: Pointer, errPtr: Pointer, enabled: heap.Ref<boolean>): heap.Ref<boolean> => {
  5830        try {
  5831          const _ret = WEBEXT.autotestPrivate.setArcTouchMode(enabled === A.H.TRUE);
  5832          A.store.Ref(retPtr, _ret);
  5833          return A.H.TRUE;
  5834        } catch (err: any) {
  5835          A.store.Ref(errPtr, err);
  5836          return A.H.FALSE;
  5837        }
  5838      },
  5839      "has_SetAssistantEnabled": (): heap.Ref<boolean> => {
  5840        if (WEBEXT?.autotestPrivate && "setAssistantEnabled" in WEBEXT?.autotestPrivate) {
  5841          return A.H.TRUE;
  5842        }
  5843        return A.H.FALSE;
  5844      },
  5845      "func_SetAssistantEnabled": (fn: Pointer): void => {
  5846        A.store.Ref(fn, WEBEXT.autotestPrivate.setAssistantEnabled);
  5847      },
  5848      "call_SetAssistantEnabled": (retPtr: Pointer, enabled: heap.Ref<boolean>, timeout_ms: number): void => {
  5849        const _ret = WEBEXT.autotestPrivate.setAssistantEnabled(enabled === A.H.TRUE, timeout_ms);
  5850        A.store.Ref(retPtr, _ret);
  5851      },
  5852      "try_SetAssistantEnabled": (
  5853        retPtr: Pointer,
  5854        errPtr: Pointer,
  5855        enabled: heap.Ref<boolean>,
  5856        timeout_ms: number
  5857      ): heap.Ref<boolean> => {
  5858        try {
  5859          const _ret = WEBEXT.autotestPrivate.setAssistantEnabled(enabled === A.H.TRUE, timeout_ms);
  5860          A.store.Ref(retPtr, _ret);
  5861          return A.H.TRUE;
  5862        } catch (err: any) {
  5863          A.store.Ref(errPtr, err);
  5864          return A.H.FALSE;
  5865        }
  5866      },
  5867      "has_SetClipboardTextData": (): heap.Ref<boolean> => {
  5868        if (WEBEXT?.autotestPrivate && "setClipboardTextData" in WEBEXT?.autotestPrivate) {
  5869          return A.H.TRUE;
  5870        }
  5871        return A.H.FALSE;
  5872      },
  5873      "func_SetClipboardTextData": (fn: Pointer): void => {
  5874        A.store.Ref(fn, WEBEXT.autotestPrivate.setClipboardTextData);
  5875      },
  5876      "call_SetClipboardTextData": (retPtr: Pointer, data: heap.Ref<object>): void => {
  5877        const _ret = WEBEXT.autotestPrivate.setClipboardTextData(A.H.get<object>(data));
  5878        A.store.Ref(retPtr, _ret);
  5879      },
  5880      "try_SetClipboardTextData": (retPtr: Pointer, errPtr: Pointer, data: heap.Ref<object>): heap.Ref<boolean> => {
  5881        try {
  5882          const _ret = WEBEXT.autotestPrivate.setClipboardTextData(A.H.get<object>(data));
  5883          A.store.Ref(retPtr, _ret);
  5884          return A.H.TRUE;
  5885        } catch (err: any) {
  5886          A.store.Ref(errPtr, err);
  5887          return A.H.FALSE;
  5888        }
  5889      },
  5890      "has_SetCrostiniAppScaled": (): heap.Ref<boolean> => {
  5891        if (WEBEXT?.autotestPrivate && "setCrostiniAppScaled" in WEBEXT?.autotestPrivate) {
  5892          return A.H.TRUE;
  5893        }
  5894        return A.H.FALSE;
  5895      },
  5896      "func_SetCrostiniAppScaled": (fn: Pointer): void => {
  5897        A.store.Ref(fn, WEBEXT.autotestPrivate.setCrostiniAppScaled);
  5898      },
  5899      "call_SetCrostiniAppScaled": (retPtr: Pointer, appId: heap.Ref<object>, scaled: heap.Ref<boolean>): void => {
  5900        const _ret = WEBEXT.autotestPrivate.setCrostiniAppScaled(A.H.get<object>(appId), scaled === A.H.TRUE);
  5901        A.store.Ref(retPtr, _ret);
  5902      },
  5903      "try_SetCrostiniAppScaled": (
  5904        retPtr: Pointer,
  5905        errPtr: Pointer,
  5906        appId: heap.Ref<object>,
  5907        scaled: heap.Ref<boolean>
  5908      ): heap.Ref<boolean> => {
  5909        try {
  5910          const _ret = WEBEXT.autotestPrivate.setCrostiniAppScaled(A.H.get<object>(appId), scaled === A.H.TRUE);
  5911          A.store.Ref(retPtr, _ret);
  5912          return A.H.TRUE;
  5913        } catch (err: any) {
  5914          A.store.Ref(errPtr, err);
  5915          return A.H.FALSE;
  5916        }
  5917      },
  5918      "has_SetCrostiniEnabled": (): heap.Ref<boolean> => {
  5919        if (WEBEXT?.autotestPrivate && "setCrostiniEnabled" in WEBEXT?.autotestPrivate) {
  5920          return A.H.TRUE;
  5921        }
  5922        return A.H.FALSE;
  5923      },
  5924      "func_SetCrostiniEnabled": (fn: Pointer): void => {
  5925        A.store.Ref(fn, WEBEXT.autotestPrivate.setCrostiniEnabled);
  5926      },
  5927      "call_SetCrostiniEnabled": (retPtr: Pointer, enabled: heap.Ref<boolean>): void => {
  5928        const _ret = WEBEXT.autotestPrivate.setCrostiniEnabled(enabled === A.H.TRUE);
  5929        A.store.Ref(retPtr, _ret);
  5930      },
  5931      "try_SetCrostiniEnabled": (retPtr: Pointer, errPtr: Pointer, enabled: heap.Ref<boolean>): heap.Ref<boolean> => {
  5932        try {
  5933          const _ret = WEBEXT.autotestPrivate.setCrostiniEnabled(enabled === A.H.TRUE);
  5934          A.store.Ref(retPtr, _ret);
  5935          return A.H.TRUE;
  5936        } catch (err: any) {
  5937          A.store.Ref(errPtr, err);
  5938          return A.H.FALSE;
  5939        }
  5940      },
  5941      "has_SetMetricsEnabled": (): heap.Ref<boolean> => {
  5942        if (WEBEXT?.autotestPrivate && "setMetricsEnabled" in WEBEXT?.autotestPrivate) {
  5943          return A.H.TRUE;
  5944        }
  5945        return A.H.FALSE;
  5946      },
  5947      "func_SetMetricsEnabled": (fn: Pointer): void => {
  5948        A.store.Ref(fn, WEBEXT.autotestPrivate.setMetricsEnabled);
  5949      },
  5950      "call_SetMetricsEnabled": (retPtr: Pointer, enabled: heap.Ref<boolean>): void => {
  5951        const _ret = WEBEXT.autotestPrivate.setMetricsEnabled(enabled === A.H.TRUE);
  5952        A.store.Ref(retPtr, _ret);
  5953      },
  5954      "try_SetMetricsEnabled": (retPtr: Pointer, errPtr: Pointer, enabled: heap.Ref<boolean>): heap.Ref<boolean> => {
  5955        try {
  5956          const _ret = WEBEXT.autotestPrivate.setMetricsEnabled(enabled === A.H.TRUE);
  5957          A.store.Ref(retPtr, _ret);
  5958          return A.H.TRUE;
  5959        } catch (err: any) {
  5960          A.store.Ref(errPtr, err);
  5961          return A.H.FALSE;
  5962        }
  5963      },
  5964      "has_SetMouseReverseScroll": (): heap.Ref<boolean> => {
  5965        if (WEBEXT?.autotestPrivate && "setMouseReverseScroll" in WEBEXT?.autotestPrivate) {
  5966          return A.H.TRUE;
  5967        }
  5968        return A.H.FALSE;
  5969      },
  5970      "func_SetMouseReverseScroll": (fn: Pointer): void => {
  5971        A.store.Ref(fn, WEBEXT.autotestPrivate.setMouseReverseScroll);
  5972      },
  5973      "call_SetMouseReverseScroll": (retPtr: Pointer, enabled: heap.Ref<boolean>): void => {
  5974        const _ret = WEBEXT.autotestPrivate.setMouseReverseScroll(enabled === A.H.TRUE);
  5975      },
  5976      "try_SetMouseReverseScroll": (retPtr: Pointer, errPtr: Pointer, enabled: heap.Ref<boolean>): heap.Ref<boolean> => {
  5977        try {
  5978          const _ret = WEBEXT.autotestPrivate.setMouseReverseScroll(enabled === A.H.TRUE);
  5979          return A.H.TRUE;
  5980        } catch (err: any) {
  5981          A.store.Ref(errPtr, err);
  5982          return A.H.FALSE;
  5983        }
  5984      },
  5985      "has_SetMouseSensitivity": (): heap.Ref<boolean> => {
  5986        if (WEBEXT?.autotestPrivate && "setMouseSensitivity" in WEBEXT?.autotestPrivate) {
  5987          return A.H.TRUE;
  5988        }
  5989        return A.H.FALSE;
  5990      },
  5991      "func_SetMouseSensitivity": (fn: Pointer): void => {
  5992        A.store.Ref(fn, WEBEXT.autotestPrivate.setMouseSensitivity);
  5993      },
  5994      "call_SetMouseSensitivity": (retPtr: Pointer, value: number): void => {
  5995        const _ret = WEBEXT.autotestPrivate.setMouseSensitivity(value);
  5996      },
  5997      "try_SetMouseSensitivity": (retPtr: Pointer, errPtr: Pointer, value: number): heap.Ref<boolean> => {
  5998        try {
  5999          const _ret = WEBEXT.autotestPrivate.setMouseSensitivity(value);
  6000          return A.H.TRUE;
  6001        } catch (err: any) {
  6002          A.store.Ref(errPtr, err);
  6003          return A.H.FALSE;
  6004        }
  6005      },
  6006      "has_SetNaturalScroll": (): heap.Ref<boolean> => {
  6007        if (WEBEXT?.autotestPrivate && "setNaturalScroll" in WEBEXT?.autotestPrivate) {
  6008          return A.H.TRUE;
  6009        }
  6010        return A.H.FALSE;
  6011      },
  6012      "func_SetNaturalScroll": (fn: Pointer): void => {
  6013        A.store.Ref(fn, WEBEXT.autotestPrivate.setNaturalScroll);
  6014      },
  6015      "call_SetNaturalScroll": (retPtr: Pointer, enabled: heap.Ref<boolean>): void => {
  6016        const _ret = WEBEXT.autotestPrivate.setNaturalScroll(enabled === A.H.TRUE);
  6017      },
  6018      "try_SetNaturalScroll": (retPtr: Pointer, errPtr: Pointer, enabled: heap.Ref<boolean>): heap.Ref<boolean> => {
  6019        try {
  6020          const _ret = WEBEXT.autotestPrivate.setNaturalScroll(enabled === A.H.TRUE);
  6021          return A.H.TRUE;
  6022        } catch (err: any) {
  6023          A.store.Ref(errPtr, err);
  6024          return A.H.FALSE;
  6025        }
  6026      },
  6027      "has_SetOverviewModeState": (): heap.Ref<boolean> => {
  6028        if (WEBEXT?.autotestPrivate && "setOverviewModeState" in WEBEXT?.autotestPrivate) {
  6029          return A.H.TRUE;
  6030        }
  6031        return A.H.FALSE;
  6032      },
  6033      "func_SetOverviewModeState": (fn: Pointer): void => {
  6034        A.store.Ref(fn, WEBEXT.autotestPrivate.setOverviewModeState);
  6035      },
  6036      "call_SetOverviewModeState": (retPtr: Pointer, start: heap.Ref<boolean>): void => {
  6037        const _ret = WEBEXT.autotestPrivate.setOverviewModeState(start === A.H.TRUE);
  6038        A.store.Ref(retPtr, _ret);
  6039      },
  6040      "try_SetOverviewModeState": (retPtr: Pointer, errPtr: Pointer, start: heap.Ref<boolean>): heap.Ref<boolean> => {
  6041        try {
  6042          const _ret = WEBEXT.autotestPrivate.setOverviewModeState(start === A.H.TRUE);
  6043          A.store.Ref(retPtr, _ret);
  6044          return A.H.TRUE;
  6045        } catch (err: any) {
  6046          A.store.Ref(errPtr, err);
  6047          return A.H.FALSE;
  6048        }
  6049      },
  6050      "has_SetPlayStoreEnabled": (): heap.Ref<boolean> => {
  6051        if (WEBEXT?.autotestPrivate && "setPlayStoreEnabled" in WEBEXT?.autotestPrivate) {
  6052          return A.H.TRUE;
  6053        }
  6054        return A.H.FALSE;
  6055      },
  6056      "func_SetPlayStoreEnabled": (fn: Pointer): void => {
  6057        A.store.Ref(fn, WEBEXT.autotestPrivate.setPlayStoreEnabled);
  6058      },
  6059      "call_SetPlayStoreEnabled": (retPtr: Pointer, enabled: heap.Ref<boolean>): void => {
  6060        const _ret = WEBEXT.autotestPrivate.setPlayStoreEnabled(enabled === A.H.TRUE);
  6061        A.store.Ref(retPtr, _ret);
  6062      },
  6063      "try_SetPlayStoreEnabled": (retPtr: Pointer, errPtr: Pointer, enabled: heap.Ref<boolean>): heap.Ref<boolean> => {
  6064        try {
  6065          const _ret = WEBEXT.autotestPrivate.setPlayStoreEnabled(enabled === A.H.TRUE);
  6066          A.store.Ref(retPtr, _ret);
  6067          return A.H.TRUE;
  6068        } catch (err: any) {
  6069          A.store.Ref(errPtr, err);
  6070          return A.H.FALSE;
  6071        }
  6072      },
  6073      "has_SetPluginVMPolicy": (): heap.Ref<boolean> => {
  6074        if (WEBEXT?.autotestPrivate && "setPluginVMPolicy" in WEBEXT?.autotestPrivate) {
  6075          return A.H.TRUE;
  6076        }
  6077        return A.H.FALSE;
  6078      },
  6079      "func_SetPluginVMPolicy": (fn: Pointer): void => {
  6080        A.store.Ref(fn, WEBEXT.autotestPrivate.setPluginVMPolicy);
  6081      },
  6082      "call_SetPluginVMPolicy": (
  6083        retPtr: Pointer,
  6084        imageUrl: heap.Ref<object>,
  6085        imageHash: heap.Ref<object>,
  6086        licenseKey: heap.Ref<object>
  6087      ): void => {
  6088        const _ret = WEBEXT.autotestPrivate.setPluginVMPolicy(
  6089          A.H.get<object>(imageUrl),
  6090          A.H.get<object>(imageHash),
  6091          A.H.get<object>(licenseKey)
  6092        );
  6093      },
  6094      "try_SetPluginVMPolicy": (
  6095        retPtr: Pointer,
  6096        errPtr: Pointer,
  6097        imageUrl: heap.Ref<object>,
  6098        imageHash: heap.Ref<object>,
  6099        licenseKey: heap.Ref<object>
  6100      ): heap.Ref<boolean> => {
  6101        try {
  6102          const _ret = WEBEXT.autotestPrivate.setPluginVMPolicy(
  6103            A.H.get<object>(imageUrl),
  6104            A.H.get<object>(imageHash),
  6105            A.H.get<object>(licenseKey)
  6106          );
  6107          return A.H.TRUE;
  6108        } catch (err: any) {
  6109          A.store.Ref(errPtr, err);
  6110          return A.H.FALSE;
  6111        }
  6112      },
  6113      "has_SetPrimaryButtonRight": (): heap.Ref<boolean> => {
  6114        if (WEBEXT?.autotestPrivate && "setPrimaryButtonRight" in WEBEXT?.autotestPrivate) {
  6115          return A.H.TRUE;
  6116        }
  6117        return A.H.FALSE;
  6118      },
  6119      "func_SetPrimaryButtonRight": (fn: Pointer): void => {
  6120        A.store.Ref(fn, WEBEXT.autotestPrivate.setPrimaryButtonRight);
  6121      },
  6122      "call_SetPrimaryButtonRight": (retPtr: Pointer, right: heap.Ref<boolean>): void => {
  6123        const _ret = WEBEXT.autotestPrivate.setPrimaryButtonRight(right === A.H.TRUE);
  6124      },
  6125      "try_SetPrimaryButtonRight": (retPtr: Pointer, errPtr: Pointer, right: heap.Ref<boolean>): heap.Ref<boolean> => {
  6126        try {
  6127          const _ret = WEBEXT.autotestPrivate.setPrimaryButtonRight(right === A.H.TRUE);
  6128          return A.H.TRUE;
  6129        } catch (err: any) {
  6130          A.store.Ref(errPtr, err);
  6131          return A.H.FALSE;
  6132        }
  6133      },
  6134      "has_SetShelfAlignment": (): heap.Ref<boolean> => {
  6135        if (WEBEXT?.autotestPrivate && "setShelfAlignment" in WEBEXT?.autotestPrivate) {
  6136          return A.H.TRUE;
  6137        }
  6138        return A.H.FALSE;
  6139      },
  6140      "func_SetShelfAlignment": (fn: Pointer): void => {
  6141        A.store.Ref(fn, WEBEXT.autotestPrivate.setShelfAlignment);
  6142      },
  6143      "call_SetShelfAlignment": (retPtr: Pointer, displayId: heap.Ref<object>, alignment: number): void => {
  6144        const _ret = WEBEXT.autotestPrivate.setShelfAlignment(
  6145          A.H.get<object>(displayId),
  6146          alignment > 0 && alignment <= 3 ? ["Bottom", "Left", "Right"][alignment - 1] : undefined
  6147        );
  6148        A.store.Ref(retPtr, _ret);
  6149      },
  6150      "try_SetShelfAlignment": (
  6151        retPtr: Pointer,
  6152        errPtr: Pointer,
  6153        displayId: heap.Ref<object>,
  6154        alignment: number
  6155      ): heap.Ref<boolean> => {
  6156        try {
  6157          const _ret = WEBEXT.autotestPrivate.setShelfAlignment(
  6158            A.H.get<object>(displayId),
  6159            alignment > 0 && alignment <= 3 ? ["Bottom", "Left", "Right"][alignment - 1] : undefined
  6160          );
  6161          A.store.Ref(retPtr, _ret);
  6162          return A.H.TRUE;
  6163        } catch (err: any) {
  6164          A.store.Ref(errPtr, err);
  6165          return A.H.FALSE;
  6166        }
  6167      },
  6168      "has_SetShelfAutoHideBehavior": (): heap.Ref<boolean> => {
  6169        if (WEBEXT?.autotestPrivate && "setShelfAutoHideBehavior" in WEBEXT?.autotestPrivate) {
  6170          return A.H.TRUE;
  6171        }
  6172        return A.H.FALSE;
  6173      },
  6174      "func_SetShelfAutoHideBehavior": (fn: Pointer): void => {
  6175        A.store.Ref(fn, WEBEXT.autotestPrivate.setShelfAutoHideBehavior);
  6176      },
  6177      "call_SetShelfAutoHideBehavior": (
  6178        retPtr: Pointer,
  6179        displayId: heap.Ref<object>,
  6180        behavior: heap.Ref<object>
  6181      ): void => {
  6182        const _ret = WEBEXT.autotestPrivate.setShelfAutoHideBehavior(
  6183          A.H.get<object>(displayId),
  6184          A.H.get<object>(behavior)
  6185        );
  6186        A.store.Ref(retPtr, _ret);
  6187      },
  6188      "try_SetShelfAutoHideBehavior": (
  6189        retPtr: Pointer,
  6190        errPtr: Pointer,
  6191        displayId: heap.Ref<object>,
  6192        behavior: heap.Ref<object>
  6193      ): heap.Ref<boolean> => {
  6194        try {
  6195          const _ret = WEBEXT.autotestPrivate.setShelfAutoHideBehavior(
  6196            A.H.get<object>(displayId),
  6197            A.H.get<object>(behavior)
  6198          );
  6199          A.store.Ref(retPtr, _ret);
  6200          return A.H.TRUE;
  6201        } catch (err: any) {
  6202          A.store.Ref(errPtr, err);
  6203          return A.H.FALSE;
  6204        }
  6205      },
  6206      "has_SetShelfIconPin": (): heap.Ref<boolean> => {
  6207        if (WEBEXT?.autotestPrivate && "setShelfIconPin" in WEBEXT?.autotestPrivate) {
  6208          return A.H.TRUE;
  6209        }
  6210        return A.H.FALSE;
  6211      },
  6212      "func_SetShelfIconPin": (fn: Pointer): void => {
  6213        A.store.Ref(fn, WEBEXT.autotestPrivate.setShelfIconPin);
  6214      },
  6215      "call_SetShelfIconPin": (retPtr: Pointer, updateParams: heap.Ref<object>): void => {
  6216        const _ret = WEBEXT.autotestPrivate.setShelfIconPin(A.H.get<object>(updateParams));
  6217        A.store.Ref(retPtr, _ret);
  6218      },
  6219      "try_SetShelfIconPin": (retPtr: Pointer, errPtr: Pointer, updateParams: heap.Ref<object>): heap.Ref<boolean> => {
  6220        try {
  6221          const _ret = WEBEXT.autotestPrivate.setShelfIconPin(A.H.get<object>(updateParams));
  6222          A.store.Ref(retPtr, _ret);
  6223          return A.H.TRUE;
  6224        } catch (err: any) {
  6225          A.store.Ref(errPtr, err);
  6226          return A.H.FALSE;
  6227        }
  6228      },
  6229      "has_SetTabletModeEnabled": (): heap.Ref<boolean> => {
  6230        if (WEBEXT?.autotestPrivate && "setTabletModeEnabled" in WEBEXT?.autotestPrivate) {
  6231          return A.H.TRUE;
  6232        }
  6233        return A.H.FALSE;
  6234      },
  6235      "func_SetTabletModeEnabled": (fn: Pointer): void => {
  6236        A.store.Ref(fn, WEBEXT.autotestPrivate.setTabletModeEnabled);
  6237      },
  6238      "call_SetTabletModeEnabled": (retPtr: Pointer, enabled: heap.Ref<boolean>): void => {
  6239        const _ret = WEBEXT.autotestPrivate.setTabletModeEnabled(enabled === A.H.TRUE);
  6240        A.store.Ref(retPtr, _ret);
  6241      },
  6242      "try_SetTabletModeEnabled": (retPtr: Pointer, errPtr: Pointer, enabled: heap.Ref<boolean>): heap.Ref<boolean> => {
  6243        try {
  6244          const _ret = WEBEXT.autotestPrivate.setTabletModeEnabled(enabled === A.H.TRUE);
  6245          A.store.Ref(retPtr, _ret);
  6246          return A.H.TRUE;
  6247        } catch (err: any) {
  6248          A.store.Ref(errPtr, err);
  6249          return A.H.FALSE;
  6250        }
  6251      },
  6252      "has_SetTapDragging": (): heap.Ref<boolean> => {
  6253        if (WEBEXT?.autotestPrivate && "setTapDragging" in WEBEXT?.autotestPrivate) {
  6254          return A.H.TRUE;
  6255        }
  6256        return A.H.FALSE;
  6257      },
  6258      "func_SetTapDragging": (fn: Pointer): void => {
  6259        A.store.Ref(fn, WEBEXT.autotestPrivate.setTapDragging);
  6260      },
  6261      "call_SetTapDragging": (retPtr: Pointer, enabled: heap.Ref<boolean>): void => {
  6262        const _ret = WEBEXT.autotestPrivate.setTapDragging(enabled === A.H.TRUE);
  6263      },
  6264      "try_SetTapDragging": (retPtr: Pointer, errPtr: Pointer, enabled: heap.Ref<boolean>): heap.Ref<boolean> => {
  6265        try {
  6266          const _ret = WEBEXT.autotestPrivate.setTapDragging(enabled === A.H.TRUE);
  6267          return A.H.TRUE;
  6268        } catch (err: any) {
  6269          A.store.Ref(errPtr, err);
  6270          return A.H.FALSE;
  6271        }
  6272      },
  6273      "has_SetTapToClick": (): heap.Ref<boolean> => {
  6274        if (WEBEXT?.autotestPrivate && "setTapToClick" in WEBEXT?.autotestPrivate) {
  6275          return A.H.TRUE;
  6276        }
  6277        return A.H.FALSE;
  6278      },
  6279      "func_SetTapToClick": (fn: Pointer): void => {
  6280        A.store.Ref(fn, WEBEXT.autotestPrivate.setTapToClick);
  6281      },
  6282      "call_SetTapToClick": (retPtr: Pointer, enabled: heap.Ref<boolean>): void => {
  6283        const _ret = WEBEXT.autotestPrivate.setTapToClick(enabled === A.H.TRUE);
  6284      },
  6285      "try_SetTapToClick": (retPtr: Pointer, errPtr: Pointer, enabled: heap.Ref<boolean>): heap.Ref<boolean> => {
  6286        try {
  6287          const _ret = WEBEXT.autotestPrivate.setTapToClick(enabled === A.H.TRUE);
  6288          return A.H.TRUE;
  6289        } catch (err: any) {
  6290          A.store.Ref(errPtr, err);
  6291          return A.H.FALSE;
  6292        }
  6293      },
  6294      "has_SetThreeFingerClick": (): heap.Ref<boolean> => {
  6295        if (WEBEXT?.autotestPrivate && "setThreeFingerClick" in WEBEXT?.autotestPrivate) {
  6296          return A.H.TRUE;
  6297        }
  6298        return A.H.FALSE;
  6299      },
  6300      "func_SetThreeFingerClick": (fn: Pointer): void => {
  6301        A.store.Ref(fn, WEBEXT.autotestPrivate.setThreeFingerClick);
  6302      },
  6303      "call_SetThreeFingerClick": (retPtr: Pointer, enabled: heap.Ref<boolean>): void => {
  6304        const _ret = WEBEXT.autotestPrivate.setThreeFingerClick(enabled === A.H.TRUE);
  6305      },
  6306      "try_SetThreeFingerClick": (retPtr: Pointer, errPtr: Pointer, enabled: heap.Ref<boolean>): heap.Ref<boolean> => {
  6307        try {
  6308          const _ret = WEBEXT.autotestPrivate.setThreeFingerClick(enabled === A.H.TRUE);
  6309          return A.H.TRUE;
  6310        } catch (err: any) {
  6311          A.store.Ref(errPtr, err);
  6312          return A.H.FALSE;
  6313        }
  6314      },
  6315      "has_SetTouchpadSensitivity": (): heap.Ref<boolean> => {
  6316        if (WEBEXT?.autotestPrivate && "setTouchpadSensitivity" in WEBEXT?.autotestPrivate) {
  6317          return A.H.TRUE;
  6318        }
  6319        return A.H.FALSE;
  6320      },
  6321      "func_SetTouchpadSensitivity": (fn: Pointer): void => {
  6322        A.store.Ref(fn, WEBEXT.autotestPrivate.setTouchpadSensitivity);
  6323      },
  6324      "call_SetTouchpadSensitivity": (retPtr: Pointer, value: number): void => {
  6325        const _ret = WEBEXT.autotestPrivate.setTouchpadSensitivity(value);
  6326      },
  6327      "try_SetTouchpadSensitivity": (retPtr: Pointer, errPtr: Pointer, value: number): heap.Ref<boolean> => {
  6328        try {
  6329          const _ret = WEBEXT.autotestPrivate.setTouchpadSensitivity(value);
  6330          return A.H.TRUE;
  6331        } catch (err: any) {
  6332          A.store.Ref(errPtr, err);
  6333          return A.H.FALSE;
  6334        }
  6335      },
  6336      "has_SetWhitelistedPref": (): heap.Ref<boolean> => {
  6337        if (WEBEXT?.autotestPrivate && "setWhitelistedPref" in WEBEXT?.autotestPrivate) {
  6338          return A.H.TRUE;
  6339        }
  6340        return A.H.FALSE;
  6341      },
  6342      "func_SetWhitelistedPref": (fn: Pointer): void => {
  6343        A.store.Ref(fn, WEBEXT.autotestPrivate.setWhitelistedPref);
  6344      },
  6345      "call_SetWhitelistedPref": (retPtr: Pointer, pref_name: heap.Ref<object>, value: heap.Ref<object>): void => {
  6346        const _ret = WEBEXT.autotestPrivate.setWhitelistedPref(A.H.get<object>(pref_name), A.H.get<object>(value));
  6347        A.store.Ref(retPtr, _ret);
  6348      },
  6349      "try_SetWhitelistedPref": (
  6350        retPtr: Pointer,
  6351        errPtr: Pointer,
  6352        pref_name: heap.Ref<object>,
  6353        value: heap.Ref<object>
  6354      ): heap.Ref<boolean> => {
  6355        try {
  6356          const _ret = WEBEXT.autotestPrivate.setWhitelistedPref(A.H.get<object>(pref_name), A.H.get<object>(value));
  6357          A.store.Ref(retPtr, _ret);
  6358          return A.H.TRUE;
  6359        } catch (err: any) {
  6360          A.store.Ref(errPtr, err);
  6361          return A.H.FALSE;
  6362        }
  6363      },
  6364      "has_SetWindowBounds": (): heap.Ref<boolean> => {
  6365        if (WEBEXT?.autotestPrivate && "setWindowBounds" in WEBEXT?.autotestPrivate) {
  6366          return A.H.TRUE;
  6367        }
  6368        return A.H.FALSE;
  6369      },
  6370      "func_SetWindowBounds": (fn: Pointer): void => {
  6371        A.store.Ref(fn, WEBEXT.autotestPrivate.setWindowBounds);
  6372      },
  6373      "call_SetWindowBounds": (retPtr: Pointer, id: number, bounds: Pointer, displayId: heap.Ref<object>): void => {
  6374        const bounds_ffi = {};
  6375  
  6376        if (A.load.Bool(bounds + 32)) {
  6377          bounds_ffi["left"] = A.load.Float64(bounds + 0);
  6378        }
  6379        if (A.load.Bool(bounds + 33)) {
  6380          bounds_ffi["top"] = A.load.Float64(bounds + 8);
  6381        }
  6382        if (A.load.Bool(bounds + 34)) {
  6383          bounds_ffi["width"] = A.load.Float64(bounds + 16);
  6384        }
  6385        if (A.load.Bool(bounds + 35)) {
  6386          bounds_ffi["height"] = A.load.Float64(bounds + 24);
  6387        }
  6388  
  6389        const _ret = WEBEXT.autotestPrivate.setWindowBounds(id, bounds_ffi, A.H.get<object>(displayId));
  6390        A.store.Ref(retPtr, _ret);
  6391      },
  6392      "try_SetWindowBounds": (
  6393        retPtr: Pointer,
  6394        errPtr: Pointer,
  6395        id: number,
  6396        bounds: Pointer,
  6397        displayId: heap.Ref<object>
  6398      ): heap.Ref<boolean> => {
  6399        try {
  6400          const bounds_ffi = {};
  6401  
  6402          if (A.load.Bool(bounds + 32)) {
  6403            bounds_ffi["left"] = A.load.Float64(bounds + 0);
  6404          }
  6405          if (A.load.Bool(bounds + 33)) {
  6406            bounds_ffi["top"] = A.load.Float64(bounds + 8);
  6407          }
  6408          if (A.load.Bool(bounds + 34)) {
  6409            bounds_ffi["width"] = A.load.Float64(bounds + 16);
  6410          }
  6411          if (A.load.Bool(bounds + 35)) {
  6412            bounds_ffi["height"] = A.load.Float64(bounds + 24);
  6413          }
  6414  
  6415          const _ret = WEBEXT.autotestPrivate.setWindowBounds(id, bounds_ffi, A.H.get<object>(displayId));
  6416          A.store.Ref(retPtr, _ret);
  6417          return A.H.TRUE;
  6418        } catch (err: any) {
  6419          A.store.Ref(errPtr, err);
  6420          return A.H.FALSE;
  6421        }
  6422      },
  6423      "has_ShowPluginVMInstaller": (): heap.Ref<boolean> => {
  6424        if (WEBEXT?.autotestPrivate && "showPluginVMInstaller" in WEBEXT?.autotestPrivate) {
  6425          return A.H.TRUE;
  6426        }
  6427        return A.H.FALSE;
  6428      },
  6429      "func_ShowPluginVMInstaller": (fn: Pointer): void => {
  6430        A.store.Ref(fn, WEBEXT.autotestPrivate.showPluginVMInstaller);
  6431      },
  6432      "call_ShowPluginVMInstaller": (retPtr: Pointer): void => {
  6433        const _ret = WEBEXT.autotestPrivate.showPluginVMInstaller();
  6434      },
  6435      "try_ShowPluginVMInstaller": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  6436        try {
  6437          const _ret = WEBEXT.autotestPrivate.showPluginVMInstaller();
  6438          return A.H.TRUE;
  6439        } catch (err: any) {
  6440          A.store.Ref(errPtr, err);
  6441          return A.H.FALSE;
  6442        }
  6443      },
  6444      "has_ShowVirtualKeyboardIfEnabled": (): heap.Ref<boolean> => {
  6445        if (WEBEXT?.autotestPrivate && "showVirtualKeyboardIfEnabled" in WEBEXT?.autotestPrivate) {
  6446          return A.H.TRUE;
  6447        }
  6448        return A.H.FALSE;
  6449      },
  6450      "func_ShowVirtualKeyboardIfEnabled": (fn: Pointer): void => {
  6451        A.store.Ref(fn, WEBEXT.autotestPrivate.showVirtualKeyboardIfEnabled);
  6452      },
  6453      "call_ShowVirtualKeyboardIfEnabled": (retPtr: Pointer): void => {
  6454        const _ret = WEBEXT.autotestPrivate.showVirtualKeyboardIfEnabled();
  6455      },
  6456      "try_ShowVirtualKeyboardIfEnabled": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  6457        try {
  6458          const _ret = WEBEXT.autotestPrivate.showVirtualKeyboardIfEnabled();
  6459          return A.H.TRUE;
  6460        } catch (err: any) {
  6461          A.store.Ref(errPtr, err);
  6462          return A.H.FALSE;
  6463        }
  6464      },
  6465      "has_Shutdown": (): heap.Ref<boolean> => {
  6466        if (WEBEXT?.autotestPrivate && "shutdown" in WEBEXT?.autotestPrivate) {
  6467          return A.H.TRUE;
  6468        }
  6469        return A.H.FALSE;
  6470      },
  6471      "func_Shutdown": (fn: Pointer): void => {
  6472        A.store.Ref(fn, WEBEXT.autotestPrivate.shutdown);
  6473      },
  6474      "call_Shutdown": (retPtr: Pointer, force: heap.Ref<boolean>): void => {
  6475        const _ret = WEBEXT.autotestPrivate.shutdown(force === A.H.TRUE);
  6476      },
  6477      "try_Shutdown": (retPtr: Pointer, errPtr: Pointer, force: heap.Ref<boolean>): heap.Ref<boolean> => {
  6478        try {
  6479          const _ret = WEBEXT.autotestPrivate.shutdown(force === A.H.TRUE);
  6480          return A.H.TRUE;
  6481        } catch (err: any) {
  6482          A.store.Ref(errPtr, err);
  6483          return A.H.FALSE;
  6484        }
  6485      },
  6486      "has_SimulateAsanMemoryBug": (): heap.Ref<boolean> => {
  6487        if (WEBEXT?.autotestPrivate && "simulateAsanMemoryBug" in WEBEXT?.autotestPrivate) {
  6488          return A.H.TRUE;
  6489        }
  6490        return A.H.FALSE;
  6491      },
  6492      "func_SimulateAsanMemoryBug": (fn: Pointer): void => {
  6493        A.store.Ref(fn, WEBEXT.autotestPrivate.simulateAsanMemoryBug);
  6494      },
  6495      "call_SimulateAsanMemoryBug": (retPtr: Pointer): void => {
  6496        const _ret = WEBEXT.autotestPrivate.simulateAsanMemoryBug();
  6497      },
  6498      "try_SimulateAsanMemoryBug": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  6499        try {
  6500          const _ret = WEBEXT.autotestPrivate.simulateAsanMemoryBug();
  6501          return A.H.TRUE;
  6502        } catch (err: any) {
  6503          A.store.Ref(errPtr, err);
  6504          return A.H.FALSE;
  6505        }
  6506      },
  6507      "has_StartArc": (): heap.Ref<boolean> => {
  6508        if (WEBEXT?.autotestPrivate && "startArc" in WEBEXT?.autotestPrivate) {
  6509          return A.H.TRUE;
  6510        }
  6511        return A.H.FALSE;
  6512      },
  6513      "func_StartArc": (fn: Pointer): void => {
  6514        A.store.Ref(fn, WEBEXT.autotestPrivate.startArc);
  6515      },
  6516      "call_StartArc": (retPtr: Pointer): void => {
  6517        const _ret = WEBEXT.autotestPrivate.startArc();
  6518        A.store.Ref(retPtr, _ret);
  6519      },
  6520      "try_StartArc": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  6521        try {
  6522          const _ret = WEBEXT.autotestPrivate.startArc();
  6523          A.store.Ref(retPtr, _ret);
  6524          return A.H.TRUE;
  6525        } catch (err: any) {
  6526          A.store.Ref(errPtr, err);
  6527          return A.H.FALSE;
  6528        }
  6529      },
  6530      "has_StartFrameCounting": (): heap.Ref<boolean> => {
  6531        if (WEBEXT?.autotestPrivate && "startFrameCounting" in WEBEXT?.autotestPrivate) {
  6532          return A.H.TRUE;
  6533        }
  6534        return A.H.FALSE;
  6535      },
  6536      "func_StartFrameCounting": (fn: Pointer): void => {
  6537        A.store.Ref(fn, WEBEXT.autotestPrivate.startFrameCounting);
  6538      },
  6539      "call_StartFrameCounting": (retPtr: Pointer, bucketSizeInSeconds: number): void => {
  6540        const _ret = WEBEXT.autotestPrivate.startFrameCounting(bucketSizeInSeconds);
  6541        A.store.Ref(retPtr, _ret);
  6542      },
  6543      "try_StartFrameCounting": (retPtr: Pointer, errPtr: Pointer, bucketSizeInSeconds: number): heap.Ref<boolean> => {
  6544        try {
  6545          const _ret = WEBEXT.autotestPrivate.startFrameCounting(bucketSizeInSeconds);
  6546          A.store.Ref(retPtr, _ret);
  6547          return A.H.TRUE;
  6548        } catch (err: any) {
  6549          A.store.Ref(errPtr, err);
  6550          return A.H.FALSE;
  6551        }
  6552      },
  6553      "has_StartLoginEventRecorderDataCollection": (): heap.Ref<boolean> => {
  6554        if (WEBEXT?.autotestPrivate && "startLoginEventRecorderDataCollection" in WEBEXT?.autotestPrivate) {
  6555          return A.H.TRUE;
  6556        }
  6557        return A.H.FALSE;
  6558      },
  6559      "func_StartLoginEventRecorderDataCollection": (fn: Pointer): void => {
  6560        A.store.Ref(fn, WEBEXT.autotestPrivate.startLoginEventRecorderDataCollection);
  6561      },
  6562      "call_StartLoginEventRecorderDataCollection": (retPtr: Pointer): void => {
  6563        const _ret = WEBEXT.autotestPrivate.startLoginEventRecorderDataCollection();
  6564        A.store.Ref(retPtr, _ret);
  6565      },
  6566      "try_StartLoginEventRecorderDataCollection": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  6567        try {
  6568          const _ret = WEBEXT.autotestPrivate.startLoginEventRecorderDataCollection();
  6569          A.store.Ref(retPtr, _ret);
  6570          return A.H.TRUE;
  6571        } catch (err: any) {
  6572          A.store.Ref(errPtr, err);
  6573          return A.H.FALSE;
  6574        }
  6575      },
  6576      "has_StartSmoothnessTracking": (): heap.Ref<boolean> => {
  6577        if (WEBEXT?.autotestPrivate && "startSmoothnessTracking" in WEBEXT?.autotestPrivate) {
  6578          return A.H.TRUE;
  6579        }
  6580        return A.H.FALSE;
  6581      },
  6582      "func_StartSmoothnessTracking": (fn: Pointer): void => {
  6583        A.store.Ref(fn, WEBEXT.autotestPrivate.startSmoothnessTracking);
  6584      },
  6585      "call_StartSmoothnessTracking": (
  6586        retPtr: Pointer,
  6587        displayId: heap.Ref<object>,
  6588        throughputIntervalMs: number
  6589      ): void => {
  6590        const _ret = WEBEXT.autotestPrivate.startSmoothnessTracking(A.H.get<object>(displayId), throughputIntervalMs);
  6591        A.store.Ref(retPtr, _ret);
  6592      },
  6593      "try_StartSmoothnessTracking": (
  6594        retPtr: Pointer,
  6595        errPtr: Pointer,
  6596        displayId: heap.Ref<object>,
  6597        throughputIntervalMs: number
  6598      ): heap.Ref<boolean> => {
  6599        try {
  6600          const _ret = WEBEXT.autotestPrivate.startSmoothnessTracking(A.H.get<object>(displayId), throughputIntervalMs);
  6601          A.store.Ref(retPtr, _ret);
  6602          return A.H.TRUE;
  6603        } catch (err: any) {
  6604          A.store.Ref(errPtr, err);
  6605          return A.H.FALSE;
  6606        }
  6607      },
  6608      "has_StartThroughputTrackerDataCollection": (): heap.Ref<boolean> => {
  6609        if (WEBEXT?.autotestPrivate && "startThroughputTrackerDataCollection" in WEBEXT?.autotestPrivate) {
  6610          return A.H.TRUE;
  6611        }
  6612        return A.H.FALSE;
  6613      },
  6614      "func_StartThroughputTrackerDataCollection": (fn: Pointer): void => {
  6615        A.store.Ref(fn, WEBEXT.autotestPrivate.startThroughputTrackerDataCollection);
  6616      },
  6617      "call_StartThroughputTrackerDataCollection": (retPtr: Pointer): void => {
  6618        const _ret = WEBEXT.autotestPrivate.startThroughputTrackerDataCollection();
  6619        A.store.Ref(retPtr, _ret);
  6620      },
  6621      "try_StartThroughputTrackerDataCollection": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  6622        try {
  6623          const _ret = WEBEXT.autotestPrivate.startThroughputTrackerDataCollection();
  6624          A.store.Ref(retPtr, _ret);
  6625          return A.H.TRUE;
  6626        } catch (err: any) {
  6627          A.store.Ref(errPtr, err);
  6628          return A.H.FALSE;
  6629        }
  6630      },
  6631      "has_StopArc": (): heap.Ref<boolean> => {
  6632        if (WEBEXT?.autotestPrivate && "stopArc" in WEBEXT?.autotestPrivate) {
  6633          return A.H.TRUE;
  6634        }
  6635        return A.H.FALSE;
  6636      },
  6637      "func_StopArc": (fn: Pointer): void => {
  6638        A.store.Ref(fn, WEBEXT.autotestPrivate.stopArc);
  6639      },
  6640      "call_StopArc": (retPtr: Pointer): void => {
  6641        const _ret = WEBEXT.autotestPrivate.stopArc();
  6642        A.store.Ref(retPtr, _ret);
  6643      },
  6644      "try_StopArc": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  6645        try {
  6646          const _ret = WEBEXT.autotestPrivate.stopArc();
  6647          A.store.Ref(retPtr, _ret);
  6648          return A.H.TRUE;
  6649        } catch (err: any) {
  6650          A.store.Ref(errPtr, err);
  6651          return A.H.FALSE;
  6652        }
  6653      },
  6654      "has_StopFrameCounting": (): heap.Ref<boolean> => {
  6655        if (WEBEXT?.autotestPrivate && "stopFrameCounting" in WEBEXT?.autotestPrivate) {
  6656          return A.H.TRUE;
  6657        }
  6658        return A.H.FALSE;
  6659      },
  6660      "func_StopFrameCounting": (fn: Pointer): void => {
  6661        A.store.Ref(fn, WEBEXT.autotestPrivate.stopFrameCounting);
  6662      },
  6663      "call_StopFrameCounting": (retPtr: Pointer): void => {
  6664        const _ret = WEBEXT.autotestPrivate.stopFrameCounting();
  6665        A.store.Ref(retPtr, _ret);
  6666      },
  6667      "try_StopFrameCounting": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  6668        try {
  6669          const _ret = WEBEXT.autotestPrivate.stopFrameCounting();
  6670          A.store.Ref(retPtr, _ret);
  6671          return A.H.TRUE;
  6672        } catch (err: any) {
  6673          A.store.Ref(errPtr, err);
  6674          return A.H.FALSE;
  6675        }
  6676      },
  6677      "has_StopSmoothnessTracking": (): heap.Ref<boolean> => {
  6678        if (WEBEXT?.autotestPrivate && "stopSmoothnessTracking" in WEBEXT?.autotestPrivate) {
  6679          return A.H.TRUE;
  6680        }
  6681        return A.H.FALSE;
  6682      },
  6683      "func_StopSmoothnessTracking": (fn: Pointer): void => {
  6684        A.store.Ref(fn, WEBEXT.autotestPrivate.stopSmoothnessTracking);
  6685      },
  6686      "call_StopSmoothnessTracking": (retPtr: Pointer, displayId: heap.Ref<object>): void => {
  6687        const _ret = WEBEXT.autotestPrivate.stopSmoothnessTracking(A.H.get<object>(displayId));
  6688        A.store.Ref(retPtr, _ret);
  6689      },
  6690      "try_StopSmoothnessTracking": (
  6691        retPtr: Pointer,
  6692        errPtr: Pointer,
  6693        displayId: heap.Ref<object>
  6694      ): heap.Ref<boolean> => {
  6695        try {
  6696          const _ret = WEBEXT.autotestPrivate.stopSmoothnessTracking(A.H.get<object>(displayId));
  6697          A.store.Ref(retPtr, _ret);
  6698          return A.H.TRUE;
  6699        } catch (err: any) {
  6700          A.store.Ref(errPtr, err);
  6701          return A.H.FALSE;
  6702        }
  6703      },
  6704      "has_StopThroughputTrackerDataCollection": (): heap.Ref<boolean> => {
  6705        if (WEBEXT?.autotestPrivate && "stopThroughputTrackerDataCollection" in WEBEXT?.autotestPrivate) {
  6706          return A.H.TRUE;
  6707        }
  6708        return A.H.FALSE;
  6709      },
  6710      "func_StopThroughputTrackerDataCollection": (fn: Pointer): void => {
  6711        A.store.Ref(fn, WEBEXT.autotestPrivate.stopThroughputTrackerDataCollection);
  6712      },
  6713      "call_StopThroughputTrackerDataCollection": (retPtr: Pointer): void => {
  6714        const _ret = WEBEXT.autotestPrivate.stopThroughputTrackerDataCollection();
  6715        A.store.Ref(retPtr, _ret);
  6716      },
  6717      "try_StopThroughputTrackerDataCollection": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  6718        try {
  6719          const _ret = WEBEXT.autotestPrivate.stopThroughputTrackerDataCollection();
  6720          A.store.Ref(retPtr, _ret);
  6721          return A.H.TRUE;
  6722        } catch (err: any) {
  6723          A.store.Ref(errPtr, err);
  6724          return A.H.FALSE;
  6725        }
  6726      },
  6727      "has_SwapWindowsInSplitView": (): heap.Ref<boolean> => {
  6728        if (WEBEXT?.autotestPrivate && "swapWindowsInSplitView" in WEBEXT?.autotestPrivate) {
  6729          return A.H.TRUE;
  6730        }
  6731        return A.H.FALSE;
  6732      },
  6733      "func_SwapWindowsInSplitView": (fn: Pointer): void => {
  6734        A.store.Ref(fn, WEBEXT.autotestPrivate.swapWindowsInSplitView);
  6735      },
  6736      "call_SwapWindowsInSplitView": (retPtr: Pointer): void => {
  6737        const _ret = WEBEXT.autotestPrivate.swapWindowsInSplitView();
  6738        A.store.Ref(retPtr, _ret);
  6739      },
  6740      "try_SwapWindowsInSplitView": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  6741        try {
  6742          const _ret = WEBEXT.autotestPrivate.swapWindowsInSplitView();
  6743          A.store.Ref(retPtr, _ret);
  6744          return A.H.TRUE;
  6745        } catch (err: any) {
  6746          A.store.Ref(errPtr, err);
  6747          return A.H.FALSE;
  6748        }
  6749      },
  6750      "has_TakeScreenshot": (): heap.Ref<boolean> => {
  6751        if (WEBEXT?.autotestPrivate && "takeScreenshot" in WEBEXT?.autotestPrivate) {
  6752          return A.H.TRUE;
  6753        }
  6754        return A.H.FALSE;
  6755      },
  6756      "func_TakeScreenshot": (fn: Pointer): void => {
  6757        A.store.Ref(fn, WEBEXT.autotestPrivate.takeScreenshot);
  6758      },
  6759      "call_TakeScreenshot": (retPtr: Pointer): void => {
  6760        const _ret = WEBEXT.autotestPrivate.takeScreenshot();
  6761        A.store.Ref(retPtr, _ret);
  6762      },
  6763      "try_TakeScreenshot": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  6764        try {
  6765          const _ret = WEBEXT.autotestPrivate.takeScreenshot();
  6766          A.store.Ref(retPtr, _ret);
  6767          return A.H.TRUE;
  6768        } catch (err: any) {
  6769          A.store.Ref(errPtr, err);
  6770          return A.H.FALSE;
  6771        }
  6772      },
  6773      "has_TakeScreenshotForDisplay": (): heap.Ref<boolean> => {
  6774        if (WEBEXT?.autotestPrivate && "takeScreenshotForDisplay" in WEBEXT?.autotestPrivate) {
  6775          return A.H.TRUE;
  6776        }
  6777        return A.H.FALSE;
  6778      },
  6779      "func_TakeScreenshotForDisplay": (fn: Pointer): void => {
  6780        A.store.Ref(fn, WEBEXT.autotestPrivate.takeScreenshotForDisplay);
  6781      },
  6782      "call_TakeScreenshotForDisplay": (retPtr: Pointer, display_id: heap.Ref<object>): void => {
  6783        const _ret = WEBEXT.autotestPrivate.takeScreenshotForDisplay(A.H.get<object>(display_id));
  6784        A.store.Ref(retPtr, _ret);
  6785      },
  6786      "try_TakeScreenshotForDisplay": (
  6787        retPtr: Pointer,
  6788        errPtr: Pointer,
  6789        display_id: heap.Ref<object>
  6790      ): heap.Ref<boolean> => {
  6791        try {
  6792          const _ret = WEBEXT.autotestPrivate.takeScreenshotForDisplay(A.H.get<object>(display_id));
  6793          A.store.Ref(retPtr, _ret);
  6794          return A.H.TRUE;
  6795        } catch (err: any) {
  6796          A.store.Ref(errPtr, err);
  6797          return A.H.FALSE;
  6798        }
  6799      },
  6800      "has_UpdatePrinter": (): heap.Ref<boolean> => {
  6801        if (WEBEXT?.autotestPrivate && "updatePrinter" in WEBEXT?.autotestPrivate) {
  6802          return A.H.TRUE;
  6803        }
  6804        return A.H.FALSE;
  6805      },
  6806      "func_UpdatePrinter": (fn: Pointer): void => {
  6807        A.store.Ref(fn, WEBEXT.autotestPrivate.updatePrinter);
  6808      },
  6809      "call_UpdatePrinter": (retPtr: Pointer, printer: Pointer): void => {
  6810        const printer_ffi = {};
  6811  
  6812        printer_ffi["printerName"] = A.load.Ref(printer + 0, undefined);
  6813        printer_ffi["printerId"] = A.load.Ref(printer + 4, undefined);
  6814        printer_ffi["printerType"] = A.load.Ref(printer + 8, undefined);
  6815        printer_ffi["printerDesc"] = A.load.Ref(printer + 12, undefined);
  6816        printer_ffi["printerMakeAndModel"] = A.load.Ref(printer + 16, undefined);
  6817        printer_ffi["printerUri"] = A.load.Ref(printer + 20, undefined);
  6818        printer_ffi["printerPpd"] = A.load.Ref(printer + 24, undefined);
  6819  
  6820        const _ret = WEBEXT.autotestPrivate.updatePrinter(printer_ffi);
  6821      },
  6822      "try_UpdatePrinter": (retPtr: Pointer, errPtr: Pointer, printer: Pointer): heap.Ref<boolean> => {
  6823        try {
  6824          const printer_ffi = {};
  6825  
  6826          printer_ffi["printerName"] = A.load.Ref(printer + 0, undefined);
  6827          printer_ffi["printerId"] = A.load.Ref(printer + 4, undefined);
  6828          printer_ffi["printerType"] = A.load.Ref(printer + 8, undefined);
  6829          printer_ffi["printerDesc"] = A.load.Ref(printer + 12, undefined);
  6830          printer_ffi["printerMakeAndModel"] = A.load.Ref(printer + 16, undefined);
  6831          printer_ffi["printerUri"] = A.load.Ref(printer + 20, undefined);
  6832          printer_ffi["printerPpd"] = A.load.Ref(printer + 24, undefined);
  6833  
  6834          const _ret = WEBEXT.autotestPrivate.updatePrinter(printer_ffi);
  6835          return A.H.TRUE;
  6836        } catch (err: any) {
  6837          A.store.Ref(errPtr, err);
  6838          return A.H.FALSE;
  6839        }
  6840      },
  6841      "has_WaitForAmbientPhotoAnimation": (): heap.Ref<boolean> => {
  6842        if (WEBEXT?.autotestPrivate && "waitForAmbientPhotoAnimation" in WEBEXT?.autotestPrivate) {
  6843          return A.H.TRUE;
  6844        }
  6845        return A.H.FALSE;
  6846      },
  6847      "func_WaitForAmbientPhotoAnimation": (fn: Pointer): void => {
  6848        A.store.Ref(fn, WEBEXT.autotestPrivate.waitForAmbientPhotoAnimation);
  6849      },
  6850      "call_WaitForAmbientPhotoAnimation": (retPtr: Pointer, numCompletions: number, timeout: number): void => {
  6851        const _ret = WEBEXT.autotestPrivate.waitForAmbientPhotoAnimation(numCompletions, timeout);
  6852        A.store.Ref(retPtr, _ret);
  6853      },
  6854      "try_WaitForAmbientPhotoAnimation": (
  6855        retPtr: Pointer,
  6856        errPtr: Pointer,
  6857        numCompletions: number,
  6858        timeout: number
  6859      ): heap.Ref<boolean> => {
  6860        try {
  6861          const _ret = WEBEXT.autotestPrivate.waitForAmbientPhotoAnimation(numCompletions, timeout);
  6862          A.store.Ref(retPtr, _ret);
  6863          return A.H.TRUE;
  6864        } catch (err: any) {
  6865          A.store.Ref(errPtr, err);
  6866          return A.H.FALSE;
  6867        }
  6868      },
  6869      "has_WaitForAmbientVideo": (): heap.Ref<boolean> => {
  6870        if (WEBEXT?.autotestPrivate && "waitForAmbientVideo" in WEBEXT?.autotestPrivate) {
  6871          return A.H.TRUE;
  6872        }
  6873        return A.H.FALSE;
  6874      },
  6875      "func_WaitForAmbientVideo": (fn: Pointer): void => {
  6876        A.store.Ref(fn, WEBEXT.autotestPrivate.waitForAmbientVideo);
  6877      },
  6878      "call_WaitForAmbientVideo": (retPtr: Pointer, timeout: number): void => {
  6879        const _ret = WEBEXT.autotestPrivate.waitForAmbientVideo(timeout);
  6880        A.store.Ref(retPtr, _ret);
  6881      },
  6882      "try_WaitForAmbientVideo": (retPtr: Pointer, errPtr: Pointer, timeout: number): heap.Ref<boolean> => {
  6883        try {
  6884          const _ret = WEBEXT.autotestPrivate.waitForAmbientVideo(timeout);
  6885          A.store.Ref(retPtr, _ret);
  6886          return A.H.TRUE;
  6887        } catch (err: any) {
  6888          A.store.Ref(errPtr, err);
  6889          return A.H.FALSE;
  6890        }
  6891      },
  6892      "has_WaitForAssistantQueryStatus": (): heap.Ref<boolean> => {
  6893        if (WEBEXT?.autotestPrivate && "waitForAssistantQueryStatus" in WEBEXT?.autotestPrivate) {
  6894          return A.H.TRUE;
  6895        }
  6896        return A.H.FALSE;
  6897      },
  6898      "func_WaitForAssistantQueryStatus": (fn: Pointer): void => {
  6899        A.store.Ref(fn, WEBEXT.autotestPrivate.waitForAssistantQueryStatus);
  6900      },
  6901      "call_WaitForAssistantQueryStatus": (retPtr: Pointer, timeout_s: number): void => {
  6902        const _ret = WEBEXT.autotestPrivate.waitForAssistantQueryStatus(timeout_s);
  6903        A.store.Ref(retPtr, _ret);
  6904      },
  6905      "try_WaitForAssistantQueryStatus": (retPtr: Pointer, errPtr: Pointer, timeout_s: number): heap.Ref<boolean> => {
  6906        try {
  6907          const _ret = WEBEXT.autotestPrivate.waitForAssistantQueryStatus(timeout_s);
  6908          A.store.Ref(retPtr, _ret);
  6909          return A.H.TRUE;
  6910        } catch (err: any) {
  6911          A.store.Ref(errPtr, err);
  6912          return A.H.FALSE;
  6913        }
  6914      },
  6915      "has_WaitForDisplayRotation": (): heap.Ref<boolean> => {
  6916        if (WEBEXT?.autotestPrivate && "waitForDisplayRotation" in WEBEXT?.autotestPrivate) {
  6917          return A.H.TRUE;
  6918        }
  6919        return A.H.FALSE;
  6920      },
  6921      "func_WaitForDisplayRotation": (fn: Pointer): void => {
  6922        A.store.Ref(fn, WEBEXT.autotestPrivate.waitForDisplayRotation);
  6923      },
  6924      "call_WaitForDisplayRotation": (retPtr: Pointer, displayId: heap.Ref<object>, rotation: number): void => {
  6925        const _ret = WEBEXT.autotestPrivate.waitForDisplayRotation(
  6926          A.H.get<object>(displayId),
  6927          rotation > 0 && rotation <= 5
  6928            ? ["RotateAny", "Rotate0", "Rotate90", "Rotate180", "Rotate270"][rotation - 1]
  6929            : undefined
  6930        );
  6931        A.store.Ref(retPtr, _ret);
  6932      },
  6933      "try_WaitForDisplayRotation": (
  6934        retPtr: Pointer,
  6935        errPtr: Pointer,
  6936        displayId: heap.Ref<object>,
  6937        rotation: number
  6938      ): heap.Ref<boolean> => {
  6939        try {
  6940          const _ret = WEBEXT.autotestPrivate.waitForDisplayRotation(
  6941            A.H.get<object>(displayId),
  6942            rotation > 0 && rotation <= 5
  6943              ? ["RotateAny", "Rotate0", "Rotate90", "Rotate180", "Rotate270"][rotation - 1]
  6944              : undefined
  6945          );
  6946          A.store.Ref(retPtr, _ret);
  6947          return A.H.TRUE;
  6948        } catch (err: any) {
  6949          A.store.Ref(errPtr, err);
  6950          return A.H.FALSE;
  6951        }
  6952      },
  6953      "has_WaitForLauncherState": (): heap.Ref<boolean> => {
  6954        if (WEBEXT?.autotestPrivate && "waitForLauncherState" in WEBEXT?.autotestPrivate) {
  6955          return A.H.TRUE;
  6956        }
  6957        return A.H.FALSE;
  6958      },
  6959      "func_WaitForLauncherState": (fn: Pointer): void => {
  6960        A.store.Ref(fn, WEBEXT.autotestPrivate.waitForLauncherState);
  6961      },
  6962      "call_WaitForLauncherState": (retPtr: Pointer, launcherState: number): void => {
  6963        const _ret = WEBEXT.autotestPrivate.waitForLauncherState(
  6964          launcherState > 0 && launcherState <= 3
  6965            ? ["Closed", "FullscreenAllApps", "FullscreenSearch"][launcherState - 1]
  6966            : undefined
  6967        );
  6968        A.store.Ref(retPtr, _ret);
  6969      },
  6970      "try_WaitForLauncherState": (retPtr: Pointer, errPtr: Pointer, launcherState: number): heap.Ref<boolean> => {
  6971        try {
  6972          const _ret = WEBEXT.autotestPrivate.waitForLauncherState(
  6973            launcherState > 0 && launcherState <= 3
  6974              ? ["Closed", "FullscreenAllApps", "FullscreenSearch"][launcherState - 1]
  6975              : undefined
  6976          );
  6977          A.store.Ref(retPtr, _ret);
  6978          return A.H.TRUE;
  6979        } catch (err: any) {
  6980          A.store.Ref(errPtr, err);
  6981          return A.H.FALSE;
  6982        }
  6983      },
  6984      "has_WaitForOverviewState": (): heap.Ref<boolean> => {
  6985        if (WEBEXT?.autotestPrivate && "waitForOverviewState" in WEBEXT?.autotestPrivate) {
  6986          return A.H.TRUE;
  6987        }
  6988        return A.H.FALSE;
  6989      },
  6990      "func_WaitForOverviewState": (fn: Pointer): void => {
  6991        A.store.Ref(fn, WEBEXT.autotestPrivate.waitForOverviewState);
  6992      },
  6993      "call_WaitForOverviewState": (retPtr: Pointer, overviewState: number): void => {
  6994        const _ret = WEBEXT.autotestPrivate.waitForOverviewState(
  6995          overviewState > 0 && overviewState <= 2 ? ["Shown", "Hidden"][overviewState - 1] : undefined
  6996        );
  6997        A.store.Ref(retPtr, _ret);
  6998      },
  6999      "try_WaitForOverviewState": (retPtr: Pointer, errPtr: Pointer, overviewState: number): heap.Ref<boolean> => {
  7000        try {
  7001          const _ret = WEBEXT.autotestPrivate.waitForOverviewState(
  7002            overviewState > 0 && overviewState <= 2 ? ["Shown", "Hidden"][overviewState - 1] : undefined
  7003          );
  7004          A.store.Ref(retPtr, _ret);
  7005          return A.H.TRUE;
  7006        } catch (err: any) {
  7007          A.store.Ref(errPtr, err);
  7008          return A.H.FALSE;
  7009        }
  7010      },
  7011      "has_WaitForSystemWebAppsInstall": (): heap.Ref<boolean> => {
  7012        if (WEBEXT?.autotestPrivate && "waitForSystemWebAppsInstall" in WEBEXT?.autotestPrivate) {
  7013          return A.H.TRUE;
  7014        }
  7015        return A.H.FALSE;
  7016      },
  7017      "func_WaitForSystemWebAppsInstall": (fn: Pointer): void => {
  7018        A.store.Ref(fn, WEBEXT.autotestPrivate.waitForSystemWebAppsInstall);
  7019      },
  7020      "call_WaitForSystemWebAppsInstall": (retPtr: Pointer): void => {
  7021        const _ret = WEBEXT.autotestPrivate.waitForSystemWebAppsInstall();
  7022        A.store.Ref(retPtr, _ret);
  7023      },
  7024      "try_WaitForSystemWebAppsInstall": (retPtr: Pointer, errPtr: Pointer): heap.Ref<boolean> => {
  7025        try {
  7026          const _ret = WEBEXT.autotestPrivate.waitForSystemWebAppsInstall();
  7027          A.store.Ref(retPtr, _ret);
  7028          return A.H.TRUE;
  7029        } catch (err: any) {
  7030          A.store.Ref(errPtr, err);
  7031          return A.H.FALSE;
  7032        }
  7033      },
  7034    };
  7035  });