expo-device-hub 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
2
- :root,.light,.light-theme{--green-1:#fbfefc;--green-2:#f4fbf6;--green-3:#e6f6eb;--green-4:#d6f1df;--green-5:#c4e8d1;--green-6:#adddc0;--green-7:#8eceaa;--green-8:#5bb98b;--green-9:#30a46c;--green-10:#2b9a66;--green-11:#218358;--green-12:#193b2d}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--green-1:color(display-p3 .986 .996 .989);--green-2:color(display-p3 .963 .983 .967);--green-3:color(display-p3 .913 .964 .925);--green-4:color(display-p3 .859 .94 .879);--green-5:color(display-p3 .796 .907 .826);--green-6:color(display-p3 .718 .863 .761);--green-7:color(display-p3 .61 .801 .675);--green-8:color(display-p3 .451 .715 .559);--green-9:color(display-p3 .332 .634 .442);--green-10:color(display-p3 .308 .595 .417);--green-11:color(display-p3 .19 .5 .32);--green-12:color(display-p3 .132 .228 .18)}}}.dark,.dark-theme{--green-1:#0e1512;--green-2:#121b17;--green-3:#132d21;--green-4:#113b29;--green-5:#174933;--green-6:#20573e;--green-7:#28684a;--green-8:#2f7c57;--green-9:#30a46c;--green-10:#33b074;--green-11:#3dd68c;--green-12:#b1f1cb}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--green-1:color(display-p3 .062 .083 .071);--green-2:color(display-p3 .079 .106 .09);--green-3:color(display-p3 .1 .173 .133);--green-4:color(display-p3 .115 .229 .166);--green-5:color(display-p3 .147 .282 .206);--green-6:color(display-p3 .185 .338 .25);--green-7:color(display-p3 .227 .403 .298);--green-8:color(display-p3 .27 .479 .351);--green-9:color(display-p3 .332 .634 .442);--green-10:color(display-p3 .357 .682 .474);--green-11:color(display-p3 .434 .828 .573);--green-12:color(display-p3 .747 .938 .807)}}}:root,.light,.light-theme{--amber-1:#fefdfb;--amber-2:#fefbe9;--amber-3:#fff7c2;--amber-4:#ffee9c;--amber-5:#fbe577;--amber-6:#f3d673;--amber-7:#e9c162;--amber-8:#e2a336;--amber-9:#ffc53d;--amber-10:#ffba18;--amber-11:#ab6400;--amber-12:#4f3422}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--amber-1:color(display-p3 .995 .992 .985);--amber-2:color(display-p3 .994 .986 .921);--amber-3:color(display-p3 .994 .969 .782);--amber-4:color(display-p3 .989 .937 .65);--amber-5:color(display-p3 .97 .902 .527);--amber-6:color(display-p3 .936 .844 .506);--amber-7:color(display-p3 .89 .762 .443);--amber-8:color(display-p3 .85 .65 .3);--amber-9:color(display-p3 1 .77 .26);--amber-10:color(display-p3 .959 .741 .274);--amber-11:color(display-p3 .64 .4 0);--amber-12:color(display-p3 .294 .208 .145)}}}.dark,.dark-theme{--amber-1:#16120c;--amber-2:#1d180f;--amber-3:#302008;--amber-4:#3f2700;--amber-5:#4d3000;--amber-6:#5c3d05;--amber-7:#714f19;--amber-8:#8f6424;--amber-9:#ffc53d;--amber-10:#ffd60a;--amber-11:#ffca16;--amber-12:#ffe7b3}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--amber-1:color(display-p3 .082 .07 .05);--amber-2:color(display-p3 .111 .094 .064);--amber-3:color(display-p3 .178 .128 .049);--amber-4:color(display-p3 .239 .156 0);--amber-5:color(display-p3 .29 .193 0);--amber-6:color(display-p3 .344 .245 .076);--amber-7:color(display-p3 .422 .314 .141);--amber-8:color(display-p3 .535 .399 .189);--amber-9:color(display-p3 1 .77 .26);--amber-10:color(display-p3 1 .87 .15);--amber-11:color(display-p3 1 .8 .29);--amber-12:color(display-p3 .984 .909 .726)}}}:root,.light,.light-theme{--red-1:#fffcfc;--red-2:#fff7f7;--red-3:#feebec;--red-4:#ffdbdc;--red-5:#ffcdce;--red-6:#fdbdbe;--red-7:#f4a9aa;--red-8:#eb8e90;--red-9:#e5484d;--red-10:#dc3e42;--red-11:#ce2c31;--red-12:#641723}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--red-1:color(display-p3 .998 .989 .988);--red-2:color(display-p3 .995 .971 .971);--red-3:color(display-p3 .985 .925 .925);--red-4:color(display-p3 .999 .866 .866);--red-5:color(display-p3 .984 .812 .811);--red-6:color(display-p3 .955 .751 .749);--red-7:color(display-p3 .915 .675 .672);--red-8:color(display-p3 .872 .575 .572);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .798 .294 .285);--red-11:color(display-p3 .744 .234 .222);--red-12:color(display-p3 .36 .115 .143)}}}.dark,.dark-theme{--red-1:#191111;--red-2:#201314;--red-3:#3b1219;--red-4:#500f1c;--red-5:#611623;--red-6:#72232d;--red-7:#8c333a;--red-8:#b54548;--red-9:#e5484d;--red-10:#ec5d5e;--red-11:#ff9592;--red-12:#ffd1d9}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--red-1:color(display-p3 .093 .068 .067);--red-2:color(display-p3 .118 .077 .079);--red-3:color(display-p3 .211 .081 .099);--red-4:color(display-p3 .287 .079 .113);--red-5:color(display-p3 .348 .11 .142);--red-6:color(display-p3 .414 .16 .183);--red-7:color(display-p3 .508 .224 .236);--red-8:color(display-p3 .659 .298 .297);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .861 .403 .387);--red-11:color(display-p3 1 .57 .55);--red-12:color(display-p3 .971 .826 .852)}}}:root,.light,.light-theme{--blue-1:#fbfdff;--blue-2:#f4faff;--blue-3:#e6f4fe;--blue-4:#d5efff;--blue-5:#c2e5ff;--blue-6:#acd8fc;--blue-7:#8ec8f6;--blue-8:#5eb1ef;--blue-9:#0090ff;--blue-10:#0588f0;--blue-11:#0d74ce;--blue-12:#113264}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--blue-1:color(display-p3 .986 .992 .999);--blue-2:color(display-p3 .96 .979 .998);--blue-3:color(display-p3 .912 .956 .991);--blue-4:color(display-p3 .853 .932 1);--blue-5:color(display-p3 .788 .894 .998);--blue-6:color(display-p3 .709 .843 .976);--blue-7:color(display-p3 .606 .777 .947);--blue-8:color(display-p3 .451 .688 .917);--blue-9:color(display-p3 .247 .556 .969);--blue-10:color(display-p3 .234 .523 .912);--blue-11:color(display-p3 .15 .44 .84);--blue-12:color(display-p3 .102 .193 .379)}}}.dark,.dark-theme{--blue-1:#0d1520;--blue-2:#111927;--blue-3:#0d2847;--blue-4:#003362;--blue-5:#004074;--blue-6:#104d87;--blue-7:#205d9e;--blue-8:#2870bd;--blue-9:#0090ff;--blue-10:#3b9eff;--blue-11:#70b8ff;--blue-12:#c2e6ff}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--blue-1:color(display-p3 .057 .081 .122);--blue-2:color(display-p3 .072 .098 .147);--blue-3:color(display-p3 .078 .154 .27);--blue-4:color(display-p3 .033 .197 .37);--blue-5:color(display-p3 .08 .245 .441);--blue-6:color(display-p3 .14 .298 .511);--blue-7:color(display-p3 .195 .361 .6);--blue-8:color(display-p3 .239 .434 .72);--blue-9:color(display-p3 .247 .556 .969);--blue-10:color(display-p3 .344 .612 .973);--blue-11:color(display-p3 .49 .72 1);--blue-12:color(display-p3 .788 .898 .99)}}}:root,.light,.light-theme{--orange-1:#fefcfb;--orange-2:#fff7ed;--orange-3:#ffefd6;--orange-4:#ffdfb5;--orange-5:#ffd19a;--orange-6:#ffc182;--orange-7:#f5ae73;--orange-8:#ec9455;--orange-9:#f76b15;--orange-10:#ef5f00;--orange-11:#cc4e00;--orange-12:#582d1d}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--orange-1:color(display-p3 .995 .988 .985);--orange-2:color(display-p3 .994 .968 .934);--orange-3:color(display-p3 .989 .938 .85);--orange-4:color(display-p3 1 .874 .687);--orange-5:color(display-p3 1 .821 .583);--orange-6:color(display-p3 .975 .767 .545);--orange-7:color(display-p3 .919 .693 .486);--orange-8:color(display-p3 .877 .597 .379);--orange-9:color(display-p3 .9 .45 .2);--orange-10:color(display-p3 .87 .409 .164);--orange-11:color(display-p3 .76 .34 0);--orange-12:color(display-p3 .323 .185 .127)}}}.dark,.dark-theme{--orange-1:#17120e;--orange-2:#1e160f;--orange-3:#331e0b;--orange-4:#462100;--orange-5:#562800;--orange-6:#66350c;--orange-7:#7e451d;--orange-8:#a35829;--orange-9:#f76b15;--orange-10:#ff801f;--orange-11:#ffa057;--orange-12:#ffe0c2}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--orange-1:color(display-p3 .088 .07 .057);--orange-2:color(display-p3 .113 .089 .061);--orange-3:color(display-p3 .189 .12 .056);--orange-4:color(display-p3 .262 .132 0);--orange-5:color(display-p3 .315 .168 .016);--orange-6:color(display-p3 .376 .219 .088);--orange-7:color(display-p3 .465 .283 .147);--orange-8:color(display-p3 .601 .359 .201);--orange-9:color(display-p3 .9 .45 .2);--orange-10:color(display-p3 .98 .51 .23);--orange-11:color(display-p3 1 .63 .38);--orange-12:color(display-p3 .98 .883 .775)}}}:root,.light,.light-theme{--purple-1:#fefcfe;--purple-2:#fbf7fe;--purple-3:#f7edfe;--purple-4:#f2e2fc;--purple-5:#ead5f9;--purple-6:#e0c4f4;--purple-7:#d1afec;--purple-8:#be93e4;--purple-9:#8e4ec6;--purple-10:#8347b9;--purple-11:#8145b5;--purple-12:#402060}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--purple-1:color(display-p3 .995 .988 .996);--purple-2:color(display-p3 .983 .971 .993);--purple-3:color(display-p3 .963 .931 .989);--purple-4:color(display-p3 .937 .888 .981);--purple-5:color(display-p3 .904 .837 .966);--purple-6:color(display-p3 .86 .774 .942);--purple-7:color(display-p3 .799 .69 .91);--purple-8:color(display-p3 .719 .583 .874);--purple-9:color(display-p3 .523 .318 .751);--purple-10:color(display-p3 .483 .289 .7);--purple-11:color(display-p3 .473 .281 .687);--purple-12:color(display-p3 .234 .132 .363)}}}.dark,.dark-theme{--purple-1:#18111b;--purple-2:#1e1523;--purple-3:#301c3b;--purple-4:#3d224e;--purple-5:#48295c;--purple-6:#54346b;--purple-7:#664282;--purple-8:#8457aa;--purple-9:#8e4ec6;--purple-10:#9a5cd0;--purple-11:#d19dff;--purple-12:#ecd9fa}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--purple-1:color(display-p3 .09 .068 .103);--purple-2:color(display-p3 .113 .082 .134);--purple-3:color(display-p3 .175 .112 .224);--purple-4:color(display-p3 .224 .137 .297);--purple-5:color(display-p3 .264 .167 .349);--purple-6:color(display-p3 .311 .208 .406);--purple-7:color(display-p3 .381 .266 .496);--purple-8:color(display-p3 .49 .349 .649);--purple-9:color(display-p3 .523 .318 .751);--purple-10:color(display-p3 .57 .373 .791);--purple-11:color(display-p3 .8 .62 1);--purple-12:color(display-p3 .913 .854 .971)}}}:root,.light,.light-theme{--pink-1:#fffcfe;--pink-2:#fef7fb;--pink-3:#fee9f5;--pink-4:#fbdcef;--pink-5:#f6cee7;--pink-6:#efbfdd;--pink-7:#e7acd0;--pink-8:#dd93c2;--pink-9:#d6409f;--pink-10:#cf3897;--pink-11:#c2298a;--pink-12:#651249}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--pink-1:color(display-p3 .998 .989 .996);--pink-2:color(display-p3 .992 .97 .985);--pink-3:color(display-p3 .981 .917 .96);--pink-4:color(display-p3 .963 .867 .932);--pink-5:color(display-p3 .939 .815 .899);--pink-6:color(display-p3 .907 .756 .859);--pink-7:color(display-p3 .869 .683 .81);--pink-8:color(display-p3 .825 .59 .751);--pink-9:color(display-p3 .775 .297 .61);--pink-10:color(display-p3 .748 .27 .581);--pink-11:color(display-p3 .698 .219 .528);--pink-12:color(display-p3 .363 .101 .279)}}}.dark,.dark-theme{--pink-1:#191117;--pink-2:#21121d;--pink-3:#37172f;--pink-4:#4b143d;--pink-5:#591c47;--pink-6:#692955;--pink-7:#833869;--pink-8:#a84885;--pink-9:#d6409f;--pink-10:#de51a8;--pink-11:#ff8dcc;--pink-12:#fdd1ea}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--pink-1:color(display-p3 .093 .068 .089);--pink-2:color(display-p3 .121 .073 .11);--pink-3:color(display-p3 .198 .098 .179);--pink-4:color(display-p3 .271 .095 .231);--pink-5:color(display-p3 .32 .127 .273);--pink-6:color(display-p3 .382 .177 .326);--pink-7:color(display-p3 .477 .238 .405);--pink-8:color(display-p3 .612 .304 .51);--pink-9:color(display-p3 .775 .297 .61);--pink-10:color(display-p3 .808 .356 .645);--pink-11:color(display-p3 1 .535 .78);--pink-12:color(display-p3 .964 .826 .912)}}}:root,.light,.light-theme{--slate-1:#fcfcfd;--slate-2:#f9f9fb;--slate-3:#f0f0f3;--slate-4:#e8e8ec;--slate-5:#e0e1e6;--slate-6:#d9d9e0;--slate-7:#cdced6;--slate-8:#b9bbc6;--slate-9:#8b8d98;--slate-10:#80838d;--slate-11:#60646c;--slate-12:#1c2024}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--slate-1:color(display-p3 .988 .988 .992);--slate-2:color(display-p3 .976 .976 .984);--slate-3:color(display-p3 .94 .941 .953);--slate-4:color(display-p3 .908 .909 .925);--slate-5:color(display-p3 .88 .881 .901);--slate-6:color(display-p3 .85 .852 .876);--slate-7:color(display-p3 .805 .808 .838);--slate-8:color(display-p3 .727 .733 .773);--slate-9:color(display-p3 .547 .553 .592);--slate-10:color(display-p3 .503 .512 .549);--slate-11:color(display-p3 .379 .392 .421);--slate-12:color(display-p3 .113 .125 .14)}}}.dark,.dark-theme{--slate-1:#111113;--slate-2:#18191b;--slate-3:#212225;--slate-4:#272a2d;--slate-5:#2e3135;--slate-6:#363a3f;--slate-7:#43484e;--slate-8:#5a6169;--slate-9:#696e77;--slate-10:#777b84;--slate-11:#b0b4ba;--slate-12:#edeef0}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--slate-1:color(display-p3 .067 .067 .074);--slate-2:color(display-p3 .095 .098 .105);--slate-3:color(display-p3 .13 .135 .145);--slate-4:color(display-p3 .156 .163 .176);--slate-5:color(display-p3 .183 .191 .206);--slate-6:color(display-p3 .215 .226 .244);--slate-7:color(display-p3 .265 .28 .302);--slate-8:color(display-p3 .357 .381 .409);--slate-9:color(display-p3 .415 .431 .463);--slate-10:color(display-p3 .469 .483 .514);--slate-11:color(display-p3 .692 .704 .728);--slate-12:color(display-p3 .93 .933 .94)}}}:root{--expo-color-white:#fff;--expo-color-black:#000;--expo-color-app-cyan:#07c0cb;--expo-color-app-light-blue:#1e92c4;--expo-color-app-dark-blue:#0b67af;--expo-color-app-indigo:#4b50b2;--expo-color-app-purple:#8945a3;--expo-color-app-pink:#c04891;--expo-color-app-orange:#e96d3c;--expo-color-app-gold:#f38f2f;--expo-color-app-yellow:#eebc01;--expo-color-app-lime:#aabd04;--expo-color-app-light-green:#6aa72a;--expo-color-app-dark-green:#3a8e39;--expo-theme-background-default:var(--expo-color-white);--expo-theme-background-screen:var(--slate-1);--expo-theme-background-subtle:var(--slate-2);--expo-theme-background-element:var(--slate-3);--expo-theme-background-hover:var(--slate-4);--expo-theme-background-selected:var(--slate-5);--expo-theme-background-overlay:var(--expo-color-white);--expo-theme-background-success:var(--green-3);--expo-theme-background-warning:var(--amber-3);--expo-theme-background-danger:var(--red-3);--expo-theme-background-info:var(--blue-3);--expo-theme-background-preview:var(--purple-3);--expo-theme-icon-default:var(--slate-11);--expo-theme-icon-secondary:var(--slate-10);--expo-theme-icon-tertiary:var(--slate-9);--expo-theme-icon-quaternary:var(--slate-8);--expo-theme-icon-success:var(--green-10);--expo-theme-icon-warning:var(--amber-11);--expo-theme-icon-danger:var(--red-10);--expo-theme-icon-info:var(--blue-10);--expo-theme-icon-preview:var(--purple-10);--expo-theme-text-default:var(--slate-12);--expo-theme-text-secondary:var(--slate-11);--expo-theme-text-tertiary:var(--slate-10);--expo-theme-text-quaternary:var(--slate-9);--expo-theme-text-link:var(--blue-11);--expo-theme-text-success:var(--green-11);--expo-theme-text-warning:var(--amber-11);--expo-theme-text-danger:var(--red-11);--expo-theme-text-info:var(--blue-11);--expo-theme-text-preview:var(--purple-11);--expo-theme-border-default:var(--slate-6);--expo-theme-border-secondary:var(--slate-5);--expo-theme-border-success:var(--green-7);--expo-theme-border-warning:var(--amber-7);--expo-theme-border-danger:var(--red-7);--expo-theme-border-info:var(--blue-7);--expo-theme-border-preview:var(--purple-7);--expo-theme-button-primary-background:var(--expo-color-black);--expo-theme-button-primary-border:transparent;--expo-theme-button-primary-hover:var(--slate-11);--expo-theme-button-primary-icon:var(--expo-color-white);--expo-theme-button-primary-text:var(--expo-color-white);--expo-theme-button-primary-disabled-background:var(--slate-8);--expo-theme-button-primary-disabled-border:transparent;--expo-theme-button-primary-disabled-text:var(--expo-color-white);--expo-theme-button-secondary-background:var(--slate-3);--expo-theme-button-secondary-border:transparent;--expo-theme-button-secondary-hover:var(--slate-5);--expo-theme-button-secondary-icon:var(--slate-12);--expo-theme-button-secondary-text:var(--slate-12);--expo-theme-button-secondary-disabled-background:var(--slate-3);--expo-theme-button-secondary-disabled-border:transparent;--expo-theme-button-secondary-disabled-text:var(--slate-9);--expo-theme-button-tertiary-background:transparent;--expo-theme-button-tertiary-border:var(--slate-7);--expo-theme-button-tertiary-hover:var(--slate-3);--expo-theme-button-tertiary-icon:var(--slate-11);--expo-theme-button-tertiary-text:var(--slate-12);--expo-theme-button-tertiary-disabled-background:transparent;--expo-theme-button-tertiary-disabled-border:var(--slate-6);--expo-theme-button-tertiary-disabled-text:var(--slate-9);--expo-theme-button-quaternary-background:transparent;--expo-theme-button-quaternary-border:transparent;--expo-theme-button-quaternary-hover:var(--slate-3);--expo-theme-button-quaternary-icon:var(--slate-11);--expo-theme-button-quaternary-text:var(--slate-12);--expo-theme-button-quaternary-disabled-background:transparent;--expo-theme-button-quaternary-disabled-border:transparent;--expo-theme-button-quaternary-disabled-text:var(--slate-9);--expo-theme-button-primary-destructive-background:var(--red-10);--expo-theme-button-primary-destructive-border:transparent;--expo-theme-button-primary-destructive-hover:var(--red-11);--expo-theme-button-primary-destructive-icon:var(--red-3);--expo-theme-button-primary-destructive-text:var(--expo-color-white);--expo-theme-button-primary-destructive-disabled-background:var(--red-7);--expo-theme-button-primary-destructive-disabled-border:transparent;--expo-theme-button-primary-destructive-disabled-text:var(--expo-color-white);--expo-theme-button-secondary-destructive-background:var(--expo-color-white);--expo-theme-button-secondary-destructive-border:var(--red-7);--expo-theme-button-secondary-destructive-hover:var(--red-3);--expo-theme-button-secondary-destructive-icon:var(--red-9);--expo-theme-button-secondary-destructive-text:var(--red-11);--expo-theme-button-secondary-destructive-disabled-background:var(--expo-color-white);--expo-theme-button-secondary-destructive-disabled-border:var(--red-5);--expo-theme-button-secondary-destructive-disabled-text:var(--red-8);--expo-theme-button-tertiary-destructive-background:transparent;--expo-theme-button-tertiary-destructive-border:transparent;--expo-theme-button-tertiary-destructive-hover:var(--red-3);--expo-theme-button-tertiary-destructive-icon:var(--red-9);--expo-theme-button-tertiary-destructive-text:var(--red-10);--expo-theme-button-tertiary-destructive-disabled-background:transparent;--expo-theme-button-tertiary-destructive-disabled-border:transparent;--expo-theme-button-tertiary-destructive-disabled-text:var(--red-8);--expo-theme-shadows-none:0 0 transparent;--expo-theme-shadows-xs:0 1px 3px #00000006, 0 1px 2px #0000000d;--expo-theme-shadows-sm:0 3px 6px #00000014, 0 2px 4px #00000012;--expo-theme-shadows-md:0 10px 20px #0000001a, 0 3px 6px #0000000d;--expo-theme-shadows-lg:0 15px 25px #0000001f, 0 5px 10px #0000000d;--expo-theme-shadows-xl:0 20px 40px #00000026}.dark-theme{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--expo-theme-background-default:var(--slate-1);--expo-theme-background-screen:#0c0d0e;--expo-theme-background-subtle:var(--slate-2);--expo-theme-background-element:var(--slate-3);--expo-theme-background-hover:var(--slate-4);--expo-theme-background-selected:var(--slate-5);--expo-theme-background-overlay:var(--slate-2);--expo-theme-background-success:var(--green-3);--expo-theme-background-warning:var(--amber-3);--expo-theme-background-danger:var(--red-3);--expo-theme-background-info:var(--blue-3);--expo-theme-background-preview:var(--purple-3);--expo-theme-icon-default:var(--slate-11);--expo-theme-icon-secondary:var(--slate-10);--expo-theme-icon-tertiary:var(--slate-9);--expo-theme-icon-quaternary:var(--slate-8);--expo-theme-icon-success:var(--green-10);--expo-theme-icon-warning:var(--amber-11);--expo-theme-icon-danger:var(--red-10);--expo-theme-icon-info:var(--blue-10);--expo-theme-icon-preview:var(--purple-10);--expo-theme-text-default:var(--slate-12);--expo-theme-text-secondary:var(--slate-11);--expo-theme-text-tertiary:var(--slate-10);--expo-theme-text-quaternary:var(--slate-9);--expo-theme-text-link:var(--blue-11);--expo-theme-text-success:var(--green-11);--expo-theme-text-warning:var(--amber-11);--expo-theme-text-danger:var(--red-11);--expo-theme-text-info:var(--blue-11);--expo-theme-text-preview:var(--purple-11);--expo-theme-border-default:var(--slate-6);--expo-theme-border-secondary:var(--slate-5);--expo-theme-border-success:var(--green-7);--expo-theme-border-warning:var(--amber-7);--expo-theme-border-danger:var(--red-7);--expo-theme-border-info:var(--blue-7);--expo-theme-border-preview:var(--purple-7);--expo-theme-button-primary-background:var(--expo-color-white);--expo-theme-button-primary-border:transparent;--expo-theme-button-primary-hover:hsl(from var(--expo-color-white) h s calc(l - 20));--expo-theme-button-primary-icon:var(--slate-1);--expo-theme-button-primary-text:var(--slate-1);--expo-theme-button-primary-disabled-background:var(--slate-11);--expo-theme-button-primary-disabled-border:transparent;--expo-theme-button-primary-disabled-text:var(--slate-1);--expo-theme-button-secondary-background:var(--slate-3);--expo-theme-button-secondary-border:transparent;--expo-theme-button-secondary-hover:var(--slate-5);--expo-theme-button-secondary-icon:var(--slate-12);--expo-theme-button-secondary-text:var(--expo-color-white);--expo-theme-button-secondary-disabled-background:var(--slate-2);--expo-theme-button-secondary-disabled-border:transparent;--expo-theme-button-secondary-disabled-text:var(--slate-11);--expo-theme-button-tertiary-background:transparent;--expo-theme-button-tertiary-border:var(--slate-5);--expo-theme-button-tertiary-hover:var(--slate-4);--expo-theme-button-tertiary-icon:var(--slate-12);--expo-theme-button-tertiary-text:var(--expo-color-white);--expo-theme-button-tertiary-disabled-background:transparent;--expo-theme-button-tertiary-disabled-border:var(--slate-7);--expo-theme-button-tertiary-disabled-text:var(--slate-11);--expo-theme-button-quaternary-background:transparent;--expo-theme-button-quaternary-border:transparent;--expo-theme-button-quaternary-hover:var(--slate-3);--expo-theme-button-quaternary-icon:var(--slate-12);--expo-theme-button-quaternary-text:var(--expo-color-white);--expo-theme-button-quaternary-disabled-background:transparent;--expo-theme-button-quaternary-disabled-border:transparent;--expo-theme-button-quaternary-disabled-text:var(--slate-11);--expo-theme-button-primary-destructive-background:hsl(from var(--red-8) h calc(s + 15) calc(l - 10));--expo-theme-button-primary-destructive-border:transparent;--expo-theme-button-primary-destructive-hover:hsl(from var(--red-7) h calc(s + 15) calc(l - 10));--expo-theme-button-primary-destructive-icon:var(--red-12);--expo-theme-button-primary-destructive-text:var(--expo-color-white);--expo-theme-button-primary-destructive-disabled-background:var(--red-6);--expo-theme-button-primary-destructive-disabled-border:transparent;--expo-theme-button-primary-destructive-disabled-text:var(--red-12);--expo-theme-button-secondary-destructive-background:var(--red-3);--expo-theme-button-secondary-destructive-border:var(--red-7);--expo-theme-button-secondary-destructive-hover:hsl(from var(--red-2) h calc(s + 15) l);--expo-theme-button-secondary-destructive-icon:var(--red-9);--expo-theme-button-secondary-destructive-text:var(--red-11);--expo-theme-button-secondary-destructive-disabled-background:var(--red-2);--expo-theme-button-secondary-destructive-disabled-border:var(--red-6);--expo-theme-button-secondary-destructive-disabled-text:var(--red-10);--expo-theme-button-tertiary-destructive-background:transparent;--expo-theme-button-tertiary-destructive-border:transparent;--expo-theme-button-tertiary-destructive-hover:var(--red-3);--expo-theme-button-tertiary-destructive-icon:var(--red-10);--expo-theme-button-tertiary-destructive-text:var(--red-11);--expo-theme-button-tertiary-destructive-disabled-background:transparent;--expo-theme-button-tertiary-destructive-disabled-border:transparent;--expo-theme-button-tertiary-destructive-disabled-text:var(--red-9);--expo-theme-shadows-none:0 0 transparent;--expo-theme-shadows-xs:0 1px 3px #0000004d, 0 1px 2px #0000004d;--expo-theme-shadows-sm:0 3px 6px #0006, 0 2px 4px #00000040;--expo-theme-shadows-md:0 10px 20px #00000040, 0 3px 6px #00000040;--expo-theme-shadows-lg:0 15px 25px #00000080, 0 5px 10px #00000040;--expo-theme-shadows-xl:0 20px 40px #00000080}@media (prefers-color-scheme:dark){:root:where(:not(.light-theme)){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--expo-theme-background-default:#111113}}:root{--expo-font-sans:"Inter", -apple-system, "system-ui", sans-serif;--expo-font-mono:"JetBrains Mono", ui-monospace, monospace;--expo-radius-xs:2px;--expo-radius-sm:4px;--expo-radius-md:6px;--expo-radius-lg:8px;--expo-radius-xl:16px;--expo-radius-2xl:20px;--expo-radius-3xl:24px;--expo-radius-full:9999px;--expo-theme-button-agent-overlay-background:var(--expo-color-white);--expo-theme-button-agent-overlay-border:transparent;--expo-theme-button-agent-overlay-hover:var(--slate-2);--expo-theme-button-agent-overlay-text:var(--slate-12);--expo-theme-button-agent-overlay-disabled-background:var(--slate-2);--expo-theme-button-agent-overlay-disabled-border:transparent;--expo-theme-button-agent-overlay-disabled-text:var(--slate-9)}.dark-theme{--expo-theme-button-agent-overlay-background:var(--slate-3);--expo-theme-button-agent-overlay-border:transparent;--expo-theme-button-agent-overlay-hover:var(--slate-5);--expo-theme-button-agent-overlay-text:var(--expo-color-white);--expo-theme-button-agent-overlay-disabled-background:var(--slate-2);--expo-theme-button-agent-overlay-disabled-border:transparent;--expo-theme-button-agent-overlay-disabled-text:var(--slate-11)}
2
+ :root,.light,.light-theme{--green-1:#fbfefc;--green-2:#f4fbf6;--green-3:#e6f6eb;--green-4:#d6f1df;--green-5:#c4e8d1;--green-6:#adddc0;--green-7:#8eceaa;--green-8:#5bb98b;--green-9:#30a46c;--green-10:#2b9a66;--green-11:#218358;--green-12:#193b2d}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--green-1:color(display-p3 .986 .996 .989);--green-2:color(display-p3 .963 .983 .967);--green-3:color(display-p3 .913 .964 .925);--green-4:color(display-p3 .859 .94 .879);--green-5:color(display-p3 .796 .907 .826);--green-6:color(display-p3 .718 .863 .761);--green-7:color(display-p3 .61 .801 .675);--green-8:color(display-p3 .451 .715 .559);--green-9:color(display-p3 .332 .634 .442);--green-10:color(display-p3 .308 .595 .417);--green-11:color(display-p3 .19 .5 .32);--green-12:color(display-p3 .132 .228 .18)}}}.dark,.dark-theme{--green-1:#0e1512;--green-2:#121b17;--green-3:#132d21;--green-4:#113b29;--green-5:#174933;--green-6:#20573e;--green-7:#28684a;--green-8:#2f7c57;--green-9:#30a46c;--green-10:#33b074;--green-11:#3dd68c;--green-12:#b1f1cb}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--green-1:color(display-p3 .062 .083 .071);--green-2:color(display-p3 .079 .106 .09);--green-3:color(display-p3 .1 .173 .133);--green-4:color(display-p3 .115 .229 .166);--green-5:color(display-p3 .147 .282 .206);--green-6:color(display-p3 .185 .338 .25);--green-7:color(display-p3 .227 .403 .298);--green-8:color(display-p3 .27 .479 .351);--green-9:color(display-p3 .332 .634 .442);--green-10:color(display-p3 .357 .682 .474);--green-11:color(display-p3 .434 .828 .573);--green-12:color(display-p3 .747 .938 .807)}}}:root,.light,.light-theme{--amber-1:#fefdfb;--amber-2:#fefbe9;--amber-3:#fff7c2;--amber-4:#ffee9c;--amber-5:#fbe577;--amber-6:#f3d673;--amber-7:#e9c162;--amber-8:#e2a336;--amber-9:#ffc53d;--amber-10:#ffba18;--amber-11:#ab6400;--amber-12:#4f3422}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--amber-1:color(display-p3 .995 .992 .985);--amber-2:color(display-p3 .994 .986 .921);--amber-3:color(display-p3 .994 .969 .782);--amber-4:color(display-p3 .989 .937 .65);--amber-5:color(display-p3 .97 .902 .527);--amber-6:color(display-p3 .936 .844 .506);--amber-7:color(display-p3 .89 .762 .443);--amber-8:color(display-p3 .85 .65 .3);--amber-9:color(display-p3 1 .77 .26);--amber-10:color(display-p3 .959 .741 .274);--amber-11:color(display-p3 .64 .4 0);--amber-12:color(display-p3 .294 .208 .145)}}}.dark,.dark-theme{--amber-1:#16120c;--amber-2:#1d180f;--amber-3:#302008;--amber-4:#3f2700;--amber-5:#4d3000;--amber-6:#5c3d05;--amber-7:#714f19;--amber-8:#8f6424;--amber-9:#ffc53d;--amber-10:#ffd60a;--amber-11:#ffca16;--amber-12:#ffe7b3}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--amber-1:color(display-p3 .082 .07 .05);--amber-2:color(display-p3 .111 .094 .064);--amber-3:color(display-p3 .178 .128 .049);--amber-4:color(display-p3 .239 .156 0);--amber-5:color(display-p3 .29 .193 0);--amber-6:color(display-p3 .344 .245 .076);--amber-7:color(display-p3 .422 .314 .141);--amber-8:color(display-p3 .535 .399 .189);--amber-9:color(display-p3 1 .77 .26);--amber-10:color(display-p3 1 .87 .15);--amber-11:color(display-p3 1 .8 .29);--amber-12:color(display-p3 .984 .909 .726)}}}:root,.light,.light-theme{--red-1:#fffcfc;--red-2:#fff7f7;--red-3:#feebec;--red-4:#ffdbdc;--red-5:#ffcdce;--red-6:#fdbdbe;--red-7:#f4a9aa;--red-8:#eb8e90;--red-9:#e5484d;--red-10:#dc3e42;--red-11:#ce2c31;--red-12:#641723}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--red-1:color(display-p3 .998 .989 .988);--red-2:color(display-p3 .995 .971 .971);--red-3:color(display-p3 .985 .925 .925);--red-4:color(display-p3 .999 .866 .866);--red-5:color(display-p3 .984 .812 .811);--red-6:color(display-p3 .955 .751 .749);--red-7:color(display-p3 .915 .675 .672);--red-8:color(display-p3 .872 .575 .572);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .798 .294 .285);--red-11:color(display-p3 .744 .234 .222);--red-12:color(display-p3 .36 .115 .143)}}}.dark,.dark-theme{--red-1:#191111;--red-2:#201314;--red-3:#3b1219;--red-4:#500f1c;--red-5:#611623;--red-6:#72232d;--red-7:#8c333a;--red-8:#b54548;--red-9:#e5484d;--red-10:#ec5d5e;--red-11:#ff9592;--red-12:#ffd1d9}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--red-1:color(display-p3 .093 .068 .067);--red-2:color(display-p3 .118 .077 .079);--red-3:color(display-p3 .211 .081 .099);--red-4:color(display-p3 .287 .079 .113);--red-5:color(display-p3 .348 .11 .142);--red-6:color(display-p3 .414 .16 .183);--red-7:color(display-p3 .508 .224 .236);--red-8:color(display-p3 .659 .298 .297);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .861 .403 .387);--red-11:color(display-p3 1 .57 .55);--red-12:color(display-p3 .971 .826 .852)}}}:root,.light,.light-theme{--blue-1:#fbfdff;--blue-2:#f4faff;--blue-3:#e6f4fe;--blue-4:#d5efff;--blue-5:#c2e5ff;--blue-6:#acd8fc;--blue-7:#8ec8f6;--blue-8:#5eb1ef;--blue-9:#0090ff;--blue-10:#0588f0;--blue-11:#0d74ce;--blue-12:#113264}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--blue-1:color(display-p3 .986 .992 .999);--blue-2:color(display-p3 .96 .979 .998);--blue-3:color(display-p3 .912 .956 .991);--blue-4:color(display-p3 .853 .932 1);--blue-5:color(display-p3 .788 .894 .998);--blue-6:color(display-p3 .709 .843 .976);--blue-7:color(display-p3 .606 .777 .947);--blue-8:color(display-p3 .451 .688 .917);--blue-9:color(display-p3 .247 .556 .969);--blue-10:color(display-p3 .234 .523 .912);--blue-11:color(display-p3 .15 .44 .84);--blue-12:color(display-p3 .102 .193 .379)}}}.dark,.dark-theme{--blue-1:#0d1520;--blue-2:#111927;--blue-3:#0d2847;--blue-4:#003362;--blue-5:#004074;--blue-6:#104d87;--blue-7:#205d9e;--blue-8:#2870bd;--blue-9:#0090ff;--blue-10:#3b9eff;--blue-11:#70b8ff;--blue-12:#c2e6ff}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--blue-1:color(display-p3 .057 .081 .122);--blue-2:color(display-p3 .072 .098 .147);--blue-3:color(display-p3 .078 .154 .27);--blue-4:color(display-p3 .033 .197 .37);--blue-5:color(display-p3 .08 .245 .441);--blue-6:color(display-p3 .14 .298 .511);--blue-7:color(display-p3 .195 .361 .6);--blue-8:color(display-p3 .239 .434 .72);--blue-9:color(display-p3 .247 .556 .969);--blue-10:color(display-p3 .344 .612 .973);--blue-11:color(display-p3 .49 .72 1);--blue-12:color(display-p3 .788 .898 .99)}}}:root,.light,.light-theme{--orange-1:#fefcfb;--orange-2:#fff7ed;--orange-3:#ffefd6;--orange-4:#ffdfb5;--orange-5:#ffd19a;--orange-6:#ffc182;--orange-7:#f5ae73;--orange-8:#ec9455;--orange-9:#f76b15;--orange-10:#ef5f00;--orange-11:#cc4e00;--orange-12:#582d1d}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--orange-1:color(display-p3 .995 .988 .985);--orange-2:color(display-p3 .994 .968 .934);--orange-3:color(display-p3 .989 .938 .85);--orange-4:color(display-p3 1 .874 .687);--orange-5:color(display-p3 1 .821 .583);--orange-6:color(display-p3 .975 .767 .545);--orange-7:color(display-p3 .919 .693 .486);--orange-8:color(display-p3 .877 .597 .379);--orange-9:color(display-p3 .9 .45 .2);--orange-10:color(display-p3 .87 .409 .164);--orange-11:color(display-p3 .76 .34 0);--orange-12:color(display-p3 .323 .185 .127)}}}.dark,.dark-theme{--orange-1:#17120e;--orange-2:#1e160f;--orange-3:#331e0b;--orange-4:#462100;--orange-5:#562800;--orange-6:#66350c;--orange-7:#7e451d;--orange-8:#a35829;--orange-9:#f76b15;--orange-10:#ff801f;--orange-11:#ffa057;--orange-12:#ffe0c2}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--orange-1:color(display-p3 .088 .07 .057);--orange-2:color(display-p3 .113 .089 .061);--orange-3:color(display-p3 .189 .12 .056);--orange-4:color(display-p3 .262 .132 0);--orange-5:color(display-p3 .315 .168 .016);--orange-6:color(display-p3 .376 .219 .088);--orange-7:color(display-p3 .465 .283 .147);--orange-8:color(display-p3 .601 .359 .201);--orange-9:color(display-p3 .9 .45 .2);--orange-10:color(display-p3 .98 .51 .23);--orange-11:color(display-p3 1 .63 .38);--orange-12:color(display-p3 .98 .883 .775)}}}:root,.light,.light-theme{--purple-1:#fefcfe;--purple-2:#fbf7fe;--purple-3:#f7edfe;--purple-4:#f2e2fc;--purple-5:#ead5f9;--purple-6:#e0c4f4;--purple-7:#d1afec;--purple-8:#be93e4;--purple-9:#8e4ec6;--purple-10:#8347b9;--purple-11:#8145b5;--purple-12:#402060}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--purple-1:color(display-p3 .995 .988 .996);--purple-2:color(display-p3 .983 .971 .993);--purple-3:color(display-p3 .963 .931 .989);--purple-4:color(display-p3 .937 .888 .981);--purple-5:color(display-p3 .904 .837 .966);--purple-6:color(display-p3 .86 .774 .942);--purple-7:color(display-p3 .799 .69 .91);--purple-8:color(display-p3 .719 .583 .874);--purple-9:color(display-p3 .523 .318 .751);--purple-10:color(display-p3 .483 .289 .7);--purple-11:color(display-p3 .473 .281 .687);--purple-12:color(display-p3 .234 .132 .363)}}}.dark,.dark-theme{--purple-1:#18111b;--purple-2:#1e1523;--purple-3:#301c3b;--purple-4:#3d224e;--purple-5:#48295c;--purple-6:#54346b;--purple-7:#664282;--purple-8:#8457aa;--purple-9:#8e4ec6;--purple-10:#9a5cd0;--purple-11:#d19dff;--purple-12:#ecd9fa}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--purple-1:color(display-p3 .09 .068 .103);--purple-2:color(display-p3 .113 .082 .134);--purple-3:color(display-p3 .175 .112 .224);--purple-4:color(display-p3 .224 .137 .297);--purple-5:color(display-p3 .264 .167 .349);--purple-6:color(display-p3 .311 .208 .406);--purple-7:color(display-p3 .381 .266 .496);--purple-8:color(display-p3 .49 .349 .649);--purple-9:color(display-p3 .523 .318 .751);--purple-10:color(display-p3 .57 .373 .791);--purple-11:color(display-p3 .8 .62 1);--purple-12:color(display-p3 .913 .854 .971)}}}:root,.light,.light-theme{--pink-1:#fffcfe;--pink-2:#fef7fb;--pink-3:#fee9f5;--pink-4:#fbdcef;--pink-5:#f6cee7;--pink-6:#efbfdd;--pink-7:#e7acd0;--pink-8:#dd93c2;--pink-9:#d6409f;--pink-10:#cf3897;--pink-11:#c2298a;--pink-12:#651249}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--pink-1:color(display-p3 .998 .989 .996);--pink-2:color(display-p3 .992 .97 .985);--pink-3:color(display-p3 .981 .917 .96);--pink-4:color(display-p3 .963 .867 .932);--pink-5:color(display-p3 .939 .815 .899);--pink-6:color(display-p3 .907 .756 .859);--pink-7:color(display-p3 .869 .683 .81);--pink-8:color(display-p3 .825 .59 .751);--pink-9:color(display-p3 .775 .297 .61);--pink-10:color(display-p3 .748 .27 .581);--pink-11:color(display-p3 .698 .219 .528);--pink-12:color(display-p3 .363 .101 .279)}}}.dark,.dark-theme{--pink-1:#191117;--pink-2:#21121d;--pink-3:#37172f;--pink-4:#4b143d;--pink-5:#591c47;--pink-6:#692955;--pink-7:#833869;--pink-8:#a84885;--pink-9:#d6409f;--pink-10:#de51a8;--pink-11:#ff8dcc;--pink-12:#fdd1ea}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--pink-1:color(display-p3 .093 .068 .089);--pink-2:color(display-p3 .121 .073 .11);--pink-3:color(display-p3 .198 .098 .179);--pink-4:color(display-p3 .271 .095 .231);--pink-5:color(display-p3 .32 .127 .273);--pink-6:color(display-p3 .382 .177 .326);--pink-7:color(display-p3 .477 .238 .405);--pink-8:color(display-p3 .612 .304 .51);--pink-9:color(display-p3 .775 .297 .61);--pink-10:color(display-p3 .808 .356 .645);--pink-11:color(display-p3 1 .535 .78);--pink-12:color(display-p3 .964 .826 .912)}}}:root,.light,.light-theme{--slate-1:#fcfcfd;--slate-2:#f9f9fb;--slate-3:#f0f0f3;--slate-4:#e8e8ec;--slate-5:#e0e1e6;--slate-6:#d9d9e0;--slate-7:#cdced6;--slate-8:#b9bbc6;--slate-9:#8b8d98;--slate-10:#80838d;--slate-11:#60646c;--slate-12:#1c2024}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){:root,.light,.light-theme{--slate-1:color(display-p3 .988 .988 .992);--slate-2:color(display-p3 .976 .976 .984);--slate-3:color(display-p3 .94 .941 .953);--slate-4:color(display-p3 .908 .909 .925);--slate-5:color(display-p3 .88 .881 .901);--slate-6:color(display-p3 .85 .852 .876);--slate-7:color(display-p3 .805 .808 .838);--slate-8:color(display-p3 .727 .733 .773);--slate-9:color(display-p3 .547 .553 .592);--slate-10:color(display-p3 .503 .512 .549);--slate-11:color(display-p3 .379 .392 .421);--slate-12:color(display-p3 .113 .125 .14)}}}.dark,.dark-theme{--slate-1:#111113;--slate-2:#18191b;--slate-3:#212225;--slate-4:#272a2d;--slate-5:#2e3135;--slate-6:#363a3f;--slate-7:#43484e;--slate-8:#5a6169;--slate-9:#696e77;--slate-10:#777b84;--slate-11:#b0b4ba;--slate-12:#edeef0}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--slate-1:color(display-p3 .067 .067 .074);--slate-2:color(display-p3 .095 .098 .105);--slate-3:color(display-p3 .13 .135 .145);--slate-4:color(display-p3 .156 .163 .176);--slate-5:color(display-p3 .183 .191 .206);--slate-6:color(display-p3 .215 .226 .244);--slate-7:color(display-p3 .265 .28 .302);--slate-8:color(display-p3 .357 .381 .409);--slate-9:color(display-p3 .415 .431 .463);--slate-10:color(display-p3 .469 .483 .514);--slate-11:color(display-p3 .692 .704 .728);--slate-12:color(display-p3 .93 .933 .94)}}}:root{--expo-color-white:#fff;--expo-color-black:#000;--expo-color-app-cyan:#07c0cb;--expo-color-app-light-blue:#1e92c4;--expo-color-app-dark-blue:#0b67af;--expo-color-app-indigo:#4b50b2;--expo-color-app-purple:#8945a3;--expo-color-app-pink:#c04891;--expo-color-app-orange:#e96d3c;--expo-color-app-gold:#f38f2f;--expo-color-app-yellow:#eebc01;--expo-color-app-lime:#aabd04;--expo-color-app-light-green:#6aa72a;--expo-color-app-dark-green:#3a8e39;--expo-theme-background-default:var(--expo-color-white);--expo-theme-background-screen:var(--slate-1);--expo-theme-background-subtle:var(--slate-2);--expo-theme-background-element:var(--slate-3);--expo-theme-background-hover:var(--slate-4);--expo-theme-background-selected:var(--slate-5);--expo-theme-background-overlay:var(--expo-color-white);--expo-theme-background-success:var(--green-3);--expo-theme-background-warning:var(--amber-3);--expo-theme-background-danger:var(--red-3);--expo-theme-background-info:var(--blue-3);--expo-theme-background-preview:var(--purple-3);--expo-theme-icon-default:var(--slate-11);--expo-theme-icon-secondary:var(--slate-10);--expo-theme-icon-tertiary:var(--slate-9);--expo-theme-icon-quaternary:var(--slate-8);--expo-theme-icon-success:var(--green-10);--expo-theme-icon-warning:var(--amber-11);--expo-theme-icon-danger:var(--red-10);--expo-theme-icon-info:var(--blue-10);--expo-theme-icon-preview:var(--purple-10);--expo-theme-text-default:var(--slate-12);--expo-theme-text-secondary:var(--slate-11);--expo-theme-text-tertiary:var(--slate-10);--expo-theme-text-quaternary:var(--slate-9);--expo-theme-text-link:var(--blue-11);--expo-theme-text-success:var(--green-11);--expo-theme-text-warning:var(--amber-11);--expo-theme-text-danger:var(--red-11);--expo-theme-text-info:var(--blue-11);--expo-theme-text-preview:var(--purple-11);--expo-theme-border-default:var(--slate-6);--expo-theme-border-secondary:var(--slate-5);--expo-theme-border-success:var(--green-7);--expo-theme-border-warning:var(--amber-7);--expo-theme-border-danger:var(--red-7);--expo-theme-border-info:var(--blue-7);--expo-theme-border-preview:var(--purple-7);--expo-theme-button-primary-background:var(--expo-color-black);--expo-theme-button-primary-border:transparent;--expo-theme-button-primary-hover:var(--slate-11);--expo-theme-button-primary-icon:var(--expo-color-white);--expo-theme-button-primary-text:var(--expo-color-white);--expo-theme-button-primary-disabled-background:var(--slate-8);--expo-theme-button-primary-disabled-border:transparent;--expo-theme-button-primary-disabled-text:var(--expo-color-white);--expo-theme-button-secondary-background:var(--slate-3);--expo-theme-button-secondary-border:transparent;--expo-theme-button-secondary-hover:var(--slate-5);--expo-theme-button-secondary-icon:var(--slate-12);--expo-theme-button-secondary-text:var(--slate-12);--expo-theme-button-secondary-disabled-background:var(--slate-3);--expo-theme-button-secondary-disabled-border:transparent;--expo-theme-button-secondary-disabled-text:var(--slate-9);--expo-theme-button-tertiary-background:transparent;--expo-theme-button-tertiary-border:var(--slate-7);--expo-theme-button-tertiary-hover:var(--slate-3);--expo-theme-button-tertiary-icon:var(--slate-11);--expo-theme-button-tertiary-text:var(--slate-12);--expo-theme-button-tertiary-disabled-background:transparent;--expo-theme-button-tertiary-disabled-border:var(--slate-6);--expo-theme-button-tertiary-disabled-text:var(--slate-9);--expo-theme-button-quaternary-background:transparent;--expo-theme-button-quaternary-border:transparent;--expo-theme-button-quaternary-hover:var(--slate-3);--expo-theme-button-quaternary-icon:var(--slate-11);--expo-theme-button-quaternary-text:var(--slate-12);--expo-theme-button-quaternary-disabled-background:transparent;--expo-theme-button-quaternary-disabled-border:transparent;--expo-theme-button-quaternary-disabled-text:var(--slate-9);--expo-theme-button-primary-destructive-background:var(--red-10);--expo-theme-button-primary-destructive-border:transparent;--expo-theme-button-primary-destructive-hover:var(--red-11);--expo-theme-button-primary-destructive-icon:var(--red-3);--expo-theme-button-primary-destructive-text:var(--expo-color-white);--expo-theme-button-primary-destructive-disabled-background:var(--red-7);--expo-theme-button-primary-destructive-disabled-border:transparent;--expo-theme-button-primary-destructive-disabled-text:var(--expo-color-white);--expo-theme-button-secondary-destructive-background:var(--expo-color-white);--expo-theme-button-secondary-destructive-border:var(--red-7);--expo-theme-button-secondary-destructive-hover:var(--red-3);--expo-theme-button-secondary-destructive-icon:var(--red-9);--expo-theme-button-secondary-destructive-text:var(--red-11);--expo-theme-button-secondary-destructive-disabled-background:var(--expo-color-white);--expo-theme-button-secondary-destructive-disabled-border:var(--red-5);--expo-theme-button-secondary-destructive-disabled-text:var(--red-8);--expo-theme-button-tertiary-destructive-background:transparent;--expo-theme-button-tertiary-destructive-border:transparent;--expo-theme-button-tertiary-destructive-hover:var(--red-3);--expo-theme-button-tertiary-destructive-icon:var(--red-9);--expo-theme-button-tertiary-destructive-text:var(--red-10);--expo-theme-button-tertiary-destructive-disabled-background:transparent;--expo-theme-button-tertiary-destructive-disabled-border:transparent;--expo-theme-button-tertiary-destructive-disabled-text:var(--red-8);--expo-theme-shadows-none:0 0 transparent;--expo-theme-shadows-xs:0 1px 3px #00000006, 0 1px 2px #0000000d;--expo-theme-shadows-sm:0 3px 6px #00000014, 0 2px 4px #00000012;--expo-theme-shadows-md:0 10px 20px #0000001a, 0 3px 6px #0000000d;--expo-theme-shadows-lg:0 15px 25px #0000001f, 0 5px 10px #0000000d;--expo-theme-shadows-xl:0 20px 40px #00000026}.dark-theme{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--expo-theme-background-default:var(--slate-1);--expo-theme-background-screen:#0c0d0e;--expo-theme-background-subtle:var(--slate-2);--expo-theme-background-element:var(--slate-3);--expo-theme-background-hover:var(--slate-4);--expo-theme-background-selected:var(--slate-5);--expo-theme-background-overlay:var(--slate-2);--expo-theme-background-success:var(--green-3);--expo-theme-background-warning:var(--amber-3);--expo-theme-background-danger:var(--red-3);--expo-theme-background-info:var(--blue-3);--expo-theme-background-preview:var(--purple-3);--expo-theme-icon-default:var(--slate-11);--expo-theme-icon-secondary:var(--slate-10);--expo-theme-icon-tertiary:var(--slate-9);--expo-theme-icon-quaternary:var(--slate-8);--expo-theme-icon-success:var(--green-10);--expo-theme-icon-warning:var(--amber-11);--expo-theme-icon-danger:var(--red-10);--expo-theme-icon-info:var(--blue-10);--expo-theme-icon-preview:var(--purple-10);--expo-theme-text-default:var(--slate-12);--expo-theme-text-secondary:var(--slate-11);--expo-theme-text-tertiary:var(--slate-10);--expo-theme-text-quaternary:var(--slate-9);--expo-theme-text-link:var(--blue-11);--expo-theme-text-success:var(--green-11);--expo-theme-text-warning:var(--amber-11);--expo-theme-text-danger:var(--red-11);--expo-theme-text-info:var(--blue-11);--expo-theme-text-preview:var(--purple-11);--expo-theme-border-default:var(--slate-6);--expo-theme-border-secondary:var(--slate-5);--expo-theme-border-success:var(--green-7);--expo-theme-border-warning:var(--amber-7);--expo-theme-border-danger:var(--red-7);--expo-theme-border-info:var(--blue-7);--expo-theme-border-preview:var(--purple-7);--expo-theme-button-primary-background:var(--expo-color-white);--expo-theme-button-primary-border:transparent;--expo-theme-button-primary-hover:hsl(from var(--expo-color-white) h s calc(l - 20));--expo-theme-button-primary-icon:var(--slate-1);--expo-theme-button-primary-text:var(--slate-1);--expo-theme-button-primary-disabled-background:var(--slate-11);--expo-theme-button-primary-disabled-border:transparent;--expo-theme-button-primary-disabled-text:var(--slate-1);--expo-theme-button-secondary-background:var(--slate-3);--expo-theme-button-secondary-border:transparent;--expo-theme-button-secondary-hover:var(--slate-5);--expo-theme-button-secondary-icon:var(--slate-12);--expo-theme-button-secondary-text:var(--expo-color-white);--expo-theme-button-secondary-disabled-background:var(--slate-2);--expo-theme-button-secondary-disabled-border:transparent;--expo-theme-button-secondary-disabled-text:var(--slate-11);--expo-theme-button-tertiary-background:transparent;--expo-theme-button-tertiary-border:var(--slate-5);--expo-theme-button-tertiary-hover:var(--slate-4);--expo-theme-button-tertiary-icon:var(--slate-12);--expo-theme-button-tertiary-text:var(--expo-color-white);--expo-theme-button-tertiary-disabled-background:transparent;--expo-theme-button-tertiary-disabled-border:var(--slate-7);--expo-theme-button-tertiary-disabled-text:var(--slate-11);--expo-theme-button-quaternary-background:transparent;--expo-theme-button-quaternary-border:transparent;--expo-theme-button-quaternary-hover:var(--slate-3);--expo-theme-button-quaternary-icon:var(--slate-12);--expo-theme-button-quaternary-text:var(--expo-color-white);--expo-theme-button-quaternary-disabled-background:transparent;--expo-theme-button-quaternary-disabled-border:transparent;--expo-theme-button-quaternary-disabled-text:var(--slate-11);--expo-theme-button-primary-destructive-background:hsl(from var(--red-8) h calc(s + 15) calc(l - 10));--expo-theme-button-primary-destructive-border:transparent;--expo-theme-button-primary-destructive-hover:hsl(from var(--red-7) h calc(s + 15) calc(l - 10));--expo-theme-button-primary-destructive-icon:var(--red-12);--expo-theme-button-primary-destructive-text:var(--expo-color-white);--expo-theme-button-primary-destructive-disabled-background:var(--red-6);--expo-theme-button-primary-destructive-disabled-border:transparent;--expo-theme-button-primary-destructive-disabled-text:var(--red-12);--expo-theme-button-secondary-destructive-background:var(--red-3);--expo-theme-button-secondary-destructive-border:var(--red-7);--expo-theme-button-secondary-destructive-hover:hsl(from var(--red-2) h calc(s + 15) l);--expo-theme-button-secondary-destructive-icon:var(--red-9);--expo-theme-button-secondary-destructive-text:var(--red-11);--expo-theme-button-secondary-destructive-disabled-background:var(--red-2);--expo-theme-button-secondary-destructive-disabled-border:var(--red-6);--expo-theme-button-secondary-destructive-disabled-text:var(--red-10);--expo-theme-button-tertiary-destructive-background:transparent;--expo-theme-button-tertiary-destructive-border:transparent;--expo-theme-button-tertiary-destructive-hover:var(--red-3);--expo-theme-button-tertiary-destructive-icon:var(--red-10);--expo-theme-button-tertiary-destructive-text:var(--red-11);--expo-theme-button-tertiary-destructive-disabled-background:transparent;--expo-theme-button-tertiary-destructive-disabled-border:transparent;--expo-theme-button-tertiary-destructive-disabled-text:var(--red-9);--expo-theme-shadows-none:0 0 transparent;--expo-theme-shadows-xs:0 1px 3px #0000004d, 0 1px 2px #0000004d;--expo-theme-shadows-sm:0 3px 6px #0006, 0 2px 4px #00000040;--expo-theme-shadows-md:0 10px 20px #00000040, 0 3px 6px #00000040;--expo-theme-shadows-lg:0 15px 25px #00000080, 0 5px 10px #00000040;--expo-theme-shadows-xl:0 20px 40px #00000080}@media (prefers-color-scheme:dark){:root:where(:not(.light-theme)){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--expo-theme-background-default:#111113}}:root{--expo-font-sans:"Inter", -apple-system, "system-ui", sans-serif;--expo-font-mono:"JetBrains Mono", ui-monospace, monospace;--expo-radius-xs:2px;--expo-radius-sm:4px;--expo-radius-md:6px;--expo-radius-lg:8px;--expo-radius-xl:16px;--expo-radius-2xl:20px;--expo-radius-3xl:24px;--expo-radius-full:9999px;--expo-theme-button-agent-overlay-background:var(--expo-color-white);--expo-theme-button-agent-overlay-border:transparent;--expo-theme-button-agent-overlay-hover:var(--slate-2);--expo-theme-button-agent-overlay-text:var(--slate-12);--expo-theme-button-agent-overlay-disabled-background:var(--slate-2);--expo-theme-button-agent-overlay-disabled-border:transparent;--expo-theme-button-agent-overlay-disabled-text:var(--slate-9)}.dark-theme{--expo-theme-button-agent-overlay-background:var(--slate-3);--expo-theme-button-agent-overlay-border:transparent;--expo-theme-button-agent-overlay-hover:var(--slate-5);--expo-theme-button-agent-overlay-text:var(--expo-color-white);--expo-theme-button-agent-overlay-disabled-background:var(--slate-2);--expo-theme-button-agent-overlay-disabled-border:transparent;--expo-theme-button-agent-overlay-disabled-text:var(--slate-11)}[data-device-frame-screen=true]{corner-shape:var(--expo-device-frame-corner-shape,round)}
@@ -188,12 +188,12 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
188
188
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.installOnUIRuntime=function(t){const o=globalThis?.expo?.installOnUIRuntime;if(!o)throw Error("Native method to install Expo Modules on the worklets UI runtime wasn't found in `expo-modules-core`.");o(t)}},142,[]);
189
189
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useEvent=function(u,s,c=null){const[o,f]=(0,t.useState)(c);return n(u,s,t=>f(t)),o},e.useEventListener=n;var t=r(d[0]);function n(n,u,s){const c=(0,t.useRef)(s);c.current=s,(0,t.useEffect)(()=>{const t=n.addListener(u,(...t)=>c.current(...t));return()=>t.remove()},[n,u,c])}},143,[38]);
190
190
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]);function l(){return(0,n.jsx)(u.default,{dom:{scrollEnabled:!1}})}},144,[145,151]);
191
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return I}}),r(d[0]),r(d[1]);var t=r(d[2]),o=r(d[3]),s=r(d[4]),n=r(d[5]),l=r(d[6]),c=r(d[7]),u=r(d[8]),h=r(d[9]),v=r(d[10]),f=r(d[11]),p=r(d[12]),b=r(d[13]),D=r(d[14]),S=r(d[15]),O=r(d[16]),w=r(d[17]),y=r(d[18]),M=r(d[19]),k=r(d[20]);function x(t,o){const s=new Set(t.map(t=>t.id));return[...t,...o.filter(t=>!s.has(t.id))]}const j=280,A=560,R=320;function C(t,o){const s=('undefined'==typeof window?1/0:window.innerWidth)-o-R,n=Math.max(j,Math.min(A,s));return Math.min(Math.max(t,j),n)}function I(j){const A=(0,f.useColorScheme)(),I=(0,l.dashboardHideBootDevice)(),T=(0,M.dashboardPlatformFilter)(),{booted:L,recent:W}=(0,p.useDeviceLists)(),E=(0,S.useNewDeviceOptions)(),z=(0,v.useHideUnsupportedDevices)(),H=(0,h.useDashboardStore)(t=>t.selectedDeviceId),_=(0,h.useDashboardStore)(t=>t.selectDevice),F=(0,h.useDashboardStore)(t=>t.reconcileSelectedDevice),P=(0,h.useDashboardStore)(t=>t.addedDevices),U=(0,h.useDashboardStore)(t=>t.trackAddedDevice),N=(0,h.useDashboardStore)(t=>t.dismissDevice),B=(0,s.useMemo)(y.browserStreamModeAvailability,[]),q=(0,h.useDashboardStore)(t=>t.streamMode),G=(0,h.useDashboardStore)(t=>t.chooseStreamMode),[J,K]=(0,s.useState)(()=>'mjpeg'===q?'mjpeg':'h264'===q?'h264':'auto'),Q=(0,h.useDashboardStore)(t=>t.sidebarWidths.left),V=(0,h.useDashboardStore)(t=>t.sidebarWidths.right),X=(0,h.useDashboardStore)(t=>t.resizeSidebar),Y=(0,s.useRef)(h.DEFAULT_SIDEBAR_WIDTH),Z=(0,s.useRef)(h.DEFAULT_SIDEBAR_WIDTH),$=(0,w.useSidebarLayout)({leftWidth:Q,rightWidth:V,minStreamWidth:R}),ee=(0,s.useMemo)(()=>'android'===T?[]:x(L.simulators,P.filter(t=>'ios'===t.platform)),[L.simulators,P,T]),te=(0,s.useMemo)(()=>'ios'===T?[]:x(L.emulators,P.filter(t=>'android'===t.platform)),[L.emulators,P,T]),ie=(0,s.useMemo)(()=>(0,v.visibleDevices)(W.simulators,z),[W.simulators,z]),oe=(0,s.useMemo)(()=>(0,v.visibleDevices)(W.emulators,z),[W.emulators,z]),re=(0,s.useMemo)(()=>(0,v.visibleNewDeviceOptions)(E.ios,z),[E.ios,z]),se=(0,s.useMemo)(()=>(0,v.visibleNewDeviceOptions)(E.android,z),[E.android,z]);async function de(t){const o='new'===t.kind?await(0,u.createDevice)(t.device):t.device.booted?{id:t.device.id,error:null}:await(0,u.bootDevice)(t.device);if(!o.id)return{ok:!1,error:o.error??'The device did not come online.'};const s='new'===t.kind?{id:o.id,name:t.device.name,version:t.device.version,platform:t.device.platform,physical:!1,booted:!0,supported:t.device.supported,lastUsedAt:Date.now()}:Object.assign({},t.device,{id:o.id,booted:!0,lastUsedAt:Date.now()}),n='new'===t.kind?[t.device.name,o.id]:[t.device.name,t.device.id,o.id];return U(s,n),{ok:!0}}async function ae(t){await(0,u.shutdownDevice)(t),N(t.id)}async function ne(t){await(0,u.removeDevice)(t),N(t.id)}(0,s.useEffect)(()=>{const t=document.documentElement;return t.classList.toggle('dark-theme','dark'===A),()=>t.classList.remove('dark-theme')},[A]),(0,s.useEffect)(()=>{const t=[...ee,...te];F(t.map(t=>t.id))},[ee,te,F]);const le=[...ee,...te],ce=le.find(t=>t.id===H)??le[0],ue='android'===ce?.platform?(0,y.androidStreamModeAvailability)(B,void 0!==window.MediaSource):B,me=t=>{G(t,ue)},he=(0,t.useActiveDeviceClient)(ce?{platform:ce.platform,device:ce.id,streamMode:q}:null,(0,c.basePath)()),ve=(0,D.useArgentInteractions)(),fe=ce?ve[ce.id]??null:null,ge=Object.keys(ve);return(0,k.jsxs)("div",{ref:$.containerRef,className:'dark'===A?'dark-theme':void 0,style:{display:'flex',position:'relative',flex:1,width:'100%',minWidth:0,height:'100vh',boxSizing:'border-box',backgroundColor:o.bg.subtle,color:o.text.default,fontFamily:'var(--expo-font-sans)',overflow:'hidden'},children:[(0,k.jsx)(n.AnimatedDockedSidebar,{side:"left",width:Q,open:$.leftDocked,sidebarOpen:$.leftOpen,children:(0,k.jsx)(o.Sidebar,{simulators:ee,emulators:te,recentSimulators:ie,recentEmulators:oe,simulatorOptions:re,emulatorOptions:se,agentDeviceIds:ge,selectedId:H,onSelect:_,onAddDevice:I?void 0:de,onToggle:$.closeLeft,platform:T,width:Q})}),$.leftDocked&&(0,k.jsx)(o.ResizeHandle,{side:"left",offset:Q,onResizeStart:()=>{Y.current=Q},onResize:t=>X('left',C(Y.current+t,$.rightDocked?V:0))}),ce?(0,k.jsx)(o.StreamPanel,{device:ce,client:he,agentInteraction:fe,DeviceScreen:t.DeviceScreen,displayScreen:t.displayScreen,onShutdown:()=>ae(ce),onRemove:()=>ne(ce),framed:$.containerWidth>=600}):(0,k.jsx)(o.EmptyState,{platform:T}),$.rightDocked&&(0,k.jsx)(o.ResizeHandle,{side:"right",offset:V,onResizeStart:()=>{Z.current=V},onResize:t=>X('right',C(Z.current+t,$.leftDocked?Q:0))}),(0,k.jsx)(n.AnimatedDockedSidebar,{side:"right",width:V,open:$.rightDocked,sidebarOpen:$.rightOpen,children:(0,k.jsx)(o.LogSidebar,{client:he,streamMode:q,httpCodec:J,streamModeAvailability:ue,onStreamModeChange:me,onHttpCodecChange:K,onToggle:$.closeRight,width:V})}),(0,k.jsx)(O.SidebarOverlay,{side:"left",open:$.leftOverlay,sidebarOpen:$.leftOpen,topmost:'left'===$.lastOpened||!$.rightOverlay,onDismiss:$.closeLeft,children:(0,k.jsx)(o.Sidebar,{simulators:ee,emulators:te,recentSimulators:ie,recentEmulators:oe,simulatorOptions:re,emulatorOptions:se,agentDeviceIds:ge,selectedId:H,onSelect:_,onAddDevice:I?void 0:de,onToggle:$.closeLeft,platform:T,width:Q})}),(0,k.jsx)(O.SidebarOverlay,{side:"right",open:$.rightOverlay,sidebarOpen:$.rightOpen,topmost:'right'===$.lastOpened||!$.leftOverlay,onDismiss:$.closeRight,children:(0,k.jsx)(o.LogSidebar,{client:he,streamMode:q,httpCodec:J,streamModeAvailability:ue,onStreamModeChange:me,onHttpCodecChange:K,onToggle:$.closeRight,width:V})}),!$.leftOpen&&(0,k.jsx)(b.FloatingSidebarToggle,{side:"left",inset:(0,b.floatingSidebarToggleInset)($.rightOverlay,$.containerWidth,V),onClick:$.openLeft}),!$.rightOpen&&(0,k.jsx)(b.FloatingSidebarToggle,{side:"right",inset:(0,b.floatingSidebarToggleInset)($.leftOverlay,$.containerWidth,Q),onClick:$.openRight})]})}},145,[146,147,148,181,38,322,324,325,327,329,336,337,338,340,341,344,345,346,335,347,151]);
191
+ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return W}}),r(d[0]),r(d[1]);var t=r(d[2]),o=r(d[3]),s=r(d[4]),n=r(d[5]),c=e(r(d[6])),l=e(r(d[7])),h=r(d[8]),u=r(d[9]),v=r(d[10]),f=r(d[11]),p=r(d[12]),D=r(d[13]),b=r(d[14]),S=r(d[15]),w=r(d[16]),O=r(d[17]),y=r(d[18]),x=r(d[19]),M=r(d[20]),k=r(d[21]),j=r(d[22]),R=r(d[23]);function A(e,t){const o=new Set(e.map(e=>e.id));return[...e,...t.filter(e=>!o.has(e.id))]}const C=280,F=560,I=320,T={'android:pixel-10-pro':{src:String(c.default),width:1250,height:2631,screen:{x:50,y:48,width:1138,height:2532},screenRadius:150},'ios:iphone-17-pro':{src:String(l.default),width:2620,height:5420,screen:{x:104,y:88,width:2412,height:5244},screenRadius:340}};function L(e,t){const o=('undefined'==typeof window?1/0:window.innerWidth)-t-I,s=Math.max(C,Math.min(F,o));return Math.min(Math.max(e,C),s)}function W(e){const c=(0,b.useColorScheme)(),l=(0,u.dashboardHideBootDevice)(),C=(0,j.dashboardPlatformFilter)(),{booted:F,recent:W,connectionStatus:E}=(0,S.useDeviceLists)(),_=(0,y.useNewDeviceOptions)(),z=(0,D.useHideUnsupportedDevices)(),H=(0,p.useDashboardStore)(e=>e.selectedDeviceId),P=(0,p.useDashboardStore)(e=>e.selectDevice),U=(0,p.useDashboardStore)(e=>e.reconcileSelectedDevice),N=(0,p.useDashboardStore)(e=>e.addedDevices),B=(0,p.useDashboardStore)(e=>e.trackAddedDevice),q=(0,p.useDashboardStore)(e=>e.dismissDevice),G=(0,s.useMemo)(k.browserStreamModeAvailability,[]),J=(0,p.useDashboardStore)(e=>e.streamMode),K=(0,p.useDashboardStore)(e=>e.chooseStreamMode),Q=(0,p.useDashboardStore)(e=>e.showDeviceFrame),V=(0,p.useDashboardStore)(e=>e.setShowDeviceFrame),[X,Y]=(0,s.useState)(()=>'mjpeg'===J?'mjpeg':'h264'===J?'h264':'auto'),Z=(0,p.useDashboardStore)(e=>e.sidebarWidths.left),$=(0,p.useDashboardStore)(e=>e.sidebarWidths.right),ee=(0,p.useDashboardStore)(e=>e.resizeSidebar),te=(0,s.useRef)(p.DEFAULT_SIDEBAR_WIDTH),ie=(0,s.useRef)(p.DEFAULT_SIDEBAR_WIDTH),oe=(0,M.useSidebarLayout)({leftWidth:Z,rightWidth:$,minStreamWidth:I}),re=(0,s.useMemo)(()=>'android'===C?[]:A(F.simulators,N.filter(e=>'ios'===e.platform)),[F.simulators,N,C]),de=(0,s.useMemo)(()=>'ios'===C?[]:A(F.emulators,N.filter(e=>'android'===e.platform)),[F.emulators,N,C]),se=(0,s.useMemo)(()=>(0,D.visibleDevices)(W.simulators,z),[W.simulators,z]),ae=(0,s.useMemo)(()=>(0,D.visibleDevices)(W.emulators,z),[W.emulators,z]),ne=(0,s.useMemo)(()=>(0,D.visibleNewDeviceOptions)(_.ios,z),[_.ios,z]),ce=(0,s.useMemo)(()=>(0,D.visibleNewDeviceOptions)(_.android,z),[_.android,z]);async function le(e){const t='new'===e.kind?await(0,f.createDevice)(e.device):e.device.booted?{id:e.device.id,error:null}:await(0,f.bootDevice)(e.device);if(!t.id)return{ok:!1,error:t.error??'The device did not come online.'};const o='new'===e.kind?{id:t.id,name:e.device.name,version:e.device.version,platform:e.device.platform,physical:!1,booted:!0,supported:e.device.supported,deviceFrame:e.device.deviceFrame,lastUsedAt:Date.now()}:Object.assign({},e.device,{id:t.id,booted:!0,lastUsedAt:Date.now()}),s='new'===e.kind?[e.device.name,t.id]:[e.device.name,e.device.id,t.id];return B(o,s),{ok:!0}}async function he(e){await(0,f.shutdownDevice)(e),q(e.id)}async function ue(e){await(0,f.removeDevice)(e),q(e.id)}(0,s.useEffect)(()=>{const e=document.documentElement;return e.classList.toggle('dark-theme','dark'===c),()=>e.classList.remove('dark-theme')},[c]),(0,s.useEffect)(()=>{const e=[...re,...de];U(e.map(e=>e.id))},[re,de,U]);const me=[...re,...de],ve=me.find(e=>e.id===H)??me[0],fe='android'===ve?.platform?(0,k.androidStreamModeAvailability)(G,void 0!==window.MediaSource):G,ge=e=>{K(e,fe)},pe=(0,t.useActiveDeviceClient)('connected'===E&&ve?{platform:ve.platform,device:ve.id,streamMode:J}:null,(0,v.basePath)()),De=(0,O.useArgentInteractions)(),be=ve?De[ve.id]??null:null,Se=Object.keys(De),we='connected'!==E;return(0,R.jsxs)("div",{ref:oe.containerRef,"aria-hidden":we||void 0,className:'dark'===c?'dark-theme':void 0,inert:we||void 0,style:{display:'flex',position:'relative',flex:1,width:'100%',minWidth:0,height:'100vh',boxSizing:'border-box',backgroundColor:o.bg.subtle,color:o.text.default,fontFamily:'var(--expo-font-sans)',overflow:'hidden'},children:[(0,R.jsx)(h.AnimatedDockedSidebar,{side:"left",width:Z,open:oe.leftDocked,sidebarOpen:oe.leftOpen,children:(0,R.jsx)(o.Sidebar,{simulators:re,emulators:de,recentSimulators:se,recentEmulators:ae,simulatorOptions:ne,emulatorOptions:ce,agentDeviceIds:Se,selectedId:H,onSelect:P,onAddDevice:l?void 0:le,onToggle:oe.closeLeft,platform:C,width:Z})}),oe.leftDocked&&(0,R.jsx)(o.ResizeHandle,{side:"left",offset:Z,onResizeStart:()=>{te.current=Z},onResize:e=>ee('left',L(te.current+e,oe.rightDocked?$:0))}),ve?(0,R.jsx)(o.StreamPanel,{device:ve,client:pe,agentInteraction:be,DeviceScreen:t.DeviceScreen,displayScreen:t.displayScreen,onShutdown:()=>he(ve),onRemove:()=>ue(ve),framed:oe.containerWidth>=600,showDeviceFrame:Q,deviceFrameAssets:T}):(0,R.jsx)(o.EmptyState,{platform:C}),oe.rightDocked&&(0,R.jsx)(o.ResizeHandle,{side:"right",offset:$,onResizeStart:()=>{ie.current=$},onResize:e=>ee('right',L(ie.current+e,oe.leftDocked?Z:0))}),(0,R.jsx)(h.AnimatedDockedSidebar,{side:"right",width:$,open:oe.rightDocked,sidebarOpen:oe.rightOpen,children:(0,R.jsx)(o.LogSidebar,{device:ve,client:pe,showDeviceFrame:Q,onShowDeviceFrameChange:V,streamMode:J,httpCodec:X,streamModeAvailability:fe,onStreamModeChange:ge,onHttpCodecChange:Y,onToggle:oe.closeRight,width:$})}),(0,R.jsx)(x.SidebarOverlay,{side:"left",open:oe.leftOverlay,sidebarOpen:oe.leftOpen,topmost:'left'===oe.lastOpened||!oe.rightOverlay,onDismiss:oe.closeLeft,children:(0,R.jsx)(o.Sidebar,{simulators:re,emulators:de,recentSimulators:se,recentEmulators:ae,simulatorOptions:ne,emulatorOptions:ce,agentDeviceIds:Se,selectedId:H,onSelect:P,onAddDevice:l?void 0:le,onToggle:oe.closeLeft,platform:C,width:Z})}),(0,R.jsx)(x.SidebarOverlay,{side:"right",open:oe.rightOverlay,sidebarOpen:oe.rightOpen,topmost:'right'===oe.lastOpened||!oe.leftOverlay,onDismiss:oe.closeRight,children:(0,R.jsx)(o.LogSidebar,{device:ve,client:pe,showDeviceFrame:Q,onShowDeviceFrameChange:V,streamMode:J,httpCodec:X,streamModeAvailability:fe,onStreamModeChange:ge,onHttpCodecChange:Y,onToggle:oe.closeRight,width:$})}),!oe.leftOpen&&(0,R.jsx)(w.FloatingSidebarToggle,{side:"left",inset:(0,w.floatingSidebarToggleInset)(oe.rightOverlay,oe.containerWidth,$),onClick:oe.openLeft}),!oe.rightOpen&&(0,R.jsx)(w.FloatingSidebarToggle,{side:"right",inset:(0,w.floatingSidebarToggleInset)(oe.leftOverlay,oe.containerWidth,Z),onClick:oe.openRight}),we&&(0,n.createPortal)((0,R.jsx)(o.ServerConnectionOverlay,{status:E,onReload:()=>window.location.reload()}),document.body)]})}},145,[146,147,148,181,38,40,324,325,326,328,329,331,333,340,341,342,344,345,348,349,350,339,351,151]);
192
192
  __d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, dependencyMap) {},146,[]);
193
193
  __d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, dependencyMap) {},147,[]);
194
194
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DeviceScreen",{enumerable:!0,get:function(){return n.DeviceScreen}}),Object.defineProperty(e,"AGENT_INTERACTION_IDLE_TIMEOUT_MS",{enumerable:!0,get:function(){return c.AGENT_INTERACTION_IDLE_TIMEOUT_MS}}),Object.defineProperty(e,"agentInteractionCursorExpiresAt",{enumerable:!0,get:function(){return c.agentInteractionCursorExpiresAt}}),Object.defineProperty(e,"agentInteractionEndMs",{enumerable:!0,get:function(){return c.agentInteractionEndMs}}),Object.defineProperty(e,"agentInteractionPointsAt",{enumerable:!0,get:function(){return c.agentInteractionPointsAt}}),Object.defineProperty(e,"displayScreen",{enumerable:!0,get:function(){return u.displayScreen}}),Object.defineProperty(e,"streamGeometry",{enumerable:!0,get:function(){return u.streamGeometry}}),Object.defineProperty(e,"useIosDeviceClient",{enumerable:!0,get:function(){return o.useIosDeviceClient}}),Object.defineProperty(e,"useAndroidDeviceClient",{enumerable:!0,get:function(){return f.useAndroidDeviceClient}}),Object.defineProperty(e,"useActiveDeviceClient",{enumerable:!0,get:function(){return b.useActiveDeviceClient}});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]),c=r(d[2]),u=r(d[3]),o=r(d[4]),f=r(d[5]),b=r(d[6])},148,[149,150,155,153,157,173,179]);
195
195
  __d(function(g,r,i,a,m,e,d){},149,[]);
196
- __d(function(g,_r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceScreen=function({client:a,borderRadius:l,squircle:p,agentInteraction:f}){const{videoKind:v,attachVideo:h,sendTouch:b,sendMultiTouch:y,sendKey:x,screen:w,status:j,error:I}=a,E=!!y,C=(0,n.useRef)(null),[R,k]=(0,n.useState)(null),D=(0,n.useRef)(new Map),O=(0,n.useCallback)(()=>{for(const t of D.current.values())x(Object.assign({},t,{phase:'up',repeat:!1}));D.current.clear()},[x]);(0,n.useEffect)(()=>{const t=()=>O(),n=()=>{document.hidden&&O()};return window.addEventListener('blur',t),document.addEventListener('visibilitychange',n),()=>{window.removeEventListener('blur',t),document.removeEventListener('visibilitychange',n),O()}},[O]);const M=(t,n)=>({phase:n,code:t.code,key:t.key,repeat:t.repeat});(0,n.useEffect)(()=>{const t=C.current;if(!t||'undefined'==typeof ResizeObserver)return;const n=new ResizeObserver(t=>{const n=t[0]?.contentRect;n&&k({w:n.width,h:n.height})});return n.observe(t),()=>n.disconnect()},[]);const P=(0,n.useRef)(new Map),S=(0,n.useRef)('none'),F=(0,n.useRef)(null),K=(0,n.useRef)(!1),T=(0,n.useRef)({x:0,y:0}),[A,z]=(0,n.useState)(null),L=(0,n.useRef)({}),_=(0,n.useRef)(0),U=()=>{_.current=0;const t=L.current;L.current={},t.single&&b(Object.assign({phase:'move'},t.single)),t.multi&&(y?.(t.multi),z({a:t.multi.a,b:t.multi.b}))},X=()=>{_.current||(_.current=requestAnimationFrame(U))},Y=(t,n)=>{const r=C.current?.getBoundingClientRect();return r&&0!==r.width&&0!==r.height?{x:s((t-r.left)/r.width),y:s((n-r.top)/r.height)}:null},$=t=>K.current?{x:s(t.x+T.current.x),y:s(t.y+T.current.y)}:{x:1-t.x,y:1-t.y},q=(t,n)=>{_.current&&(cancelAnimationFrame(_.current),_.current=0),L.current={},y?.({phase:'end',a:t,b:n}),z(null)},B=t=>{const n=P.current.get(t.pointerId);if(!n)return;t.preventDefault();const r=Y(t.clientX,t.clientY)??n;try{C.current?.releasePointerCapture(t.pointerId)}catch{}if('alt'===S.current)return q(r,$(r)),S.current='none',void P.current.clear();if('two'===S.current){const[t,n]=[...P.current.values()];return q(t??r,n??r),S.current='none',void P.current.clear()}'single'===S.current&&t.pointerId===F.current&&(_.current&&(cancelAnimationFrame(_.current),_.current=0),L.current={},b(Object.assign({phase:'end'},r)),S.current='none',F.current=null),P.current.delete(t.pointerId)},G=(0,r.streamGeometry)(w).rotationDegrees,N=90===Math.abs(G),V=Object.assign({position:'relative',width:'100%',height:'100%',overflow:'hidden',backgroundColor:'#000',borderRadius:l},p?{cornerShape:'superellipse(1.3)'}:{}),W=0===G?{display:'block',position:'absolute',inset:0,width:'100%',height:'100%',objectFit:'cover'}:{display:'block',position:'absolute',top:'50%',left:'50%',width:N&&R?`${R.h}px`:'100%',height:N&&R?`${R.w}px`:'100%',transform:`translate(-50%, -50%) rotate(${G}deg)`,transformOrigin:'center center',objectFit:'cover'};return Object.assign(W,{userSelect:'none',WebkitUserSelect:'none',pointerEvents:'none'}),(0,t.jsxs)("div",{style:V,children:['canvas'===v?(0,t.jsx)("canvas",{ref:h,style:W}):'video'===v?(0,t.jsx)("video",{ref:h,autoPlay:!0,muted:!0,playsInline:!0,style:W}):(0,t.jsx)("img",{ref:h,alt:"Device screen",draggable:!1,style:W}),(0,t.jsx)("div",{ref:C,role:"application","aria-label":"Interactive device screen. Focus to control it with your keyboard. Press Shift and Escape to stop keyboard control.",tabIndex:0,style:{position:'absolute',inset:0,cursor:u,touchAction:'none',borderRadius:l,outline:'none'},onBlur:()=>{O()},onKeyDown:t=>{if('Escape'===t.key&&t.shiftKey)return t.preventDefault(),O(),void t.currentTarget.blur();if(t.nativeEvent.isComposing)return;const n=M(t,'down');if(!x(n))return;t.preventDefault(),D.current.set(t.code||t.key,n)},onKeyUp:t=>{const n=t.code||t.key,r=D.current.delete(n),o=x(M(t,'up'));(r||o)&&t.preventDefault()},onPointerDown:t=>{if('mouse'===t.pointerType&&0!==t.button)return;const n=Y(t.clientX,t.clientY);if(!n)return;t.preventDefault(),C.current?.focus({preventScroll:!0});try{C.current?.setPointerCapture(t.pointerId)}catch{}if(P.current.set(t.pointerId,n),E&&'mouse'===t.pointerType&&t.altKey&&'none'===S.current){S.current='alt',K.current=t.shiftKey,T.current={x:1-2*n.x,y:1-2*n.y};const r=$(n);return z({a:n,b:r}),void y?.({phase:'begin',a:n,b:r})}if(E&&P.current.size>=2&&'alt'!==S.current){'single'===S.current&&(b(Object.assign({phase:'end'},n)),F.current=null);const[t,r]=[...P.current.values()];return S.current='two',z({a:t,b:r}),void y?.({phase:'begin',a:t,b:r})}'none'===S.current&&(S.current='single',F.current=t.pointerId,b(Object.assign({phase:'begin'},n)))},onPointerMove:t=>{if(!P.current.get(t.pointerId))return;const n=t.nativeEvent,r='function'==typeof n.getCoalescedEvents?n.getCoalescedEvents():null,o=r&&r.length>0?r[r.length-1]:t,c=Y(o.clientX,o.clientY);if(!c)return;if(t.preventDefault(),P.current.set(t.pointerId,c),'alt'===S.current)L.current.multi={phase:'move',a:c,b:$(c)},X();else if('two'===S.current){const[t,n]=[...P.current.values()];L.current.multi={phase:'move',a:t,b:n},X()}else'single'===S.current&&t.pointerId===F.current&&(L.current.single=c,X())},onPointerUp:B,onPointerCancel:B,onContextMenu:t=>t.preventDefault()}),A&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.TouchIndicator,{point:A.a}),(0,t.jsx)(c.TouchIndicator,{point:A.b})]}),(0,t.jsx)(o.AgentInteractionIndicator,{interaction:f}),'streaming'!==j&&(0,t.jsx)("div",{style:{position:'absolute',inset:0,display:'flex',alignItems:'center',justifyContent:'center',padding:24,textAlign:'center',pointerEvents:'none',backgroundColor:'rgba(0, 0, 0, 0.55)',color:'error'===j?'#fca5a5':'rgba(255, 255, 255, 0.7)',fontSize:13,fontFamily:'var(--expo-font-mono)'},children:'error'===j?I??'Disconnected':'connecting'===j?'Connecting\u2026':'Not connected'})]})};var t=_r(d[0]),n=_r(d[1]),r=_r(d[2]),o=_r(d[3]),c=_r(d[4]);const s=t=>Math.min(1,Math.max(0,t)),u="url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='9' fill='rgba(255,255,255,0.45)' stroke='rgba(0,0,0,0.55)' stroke-width='1.25'/%3E%3C/svg%3E\") 12 12, pointer"},150,[151,38,153,154,156]);
196
+ __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEVICE_SCREEN_SURFACE_LAYOUT_STYLE",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"DEVICE_SCREEN_STATUS_LAYOUT_STYLE",{enumerable:!0,get:function(){return p}}),e.deviceScreenMediaStyle=f,e.DeviceScreen=function({client:b,borderRadius:v,squircle:h,agentInteraction:y}){const{videoKind:x,attachVideo:E,sendTouch:w,sendMultiTouch:j,sendKey:C,screen:I,status:S,error:R}=b,k=!!j,D=(0,n.useRef)(null),O=(0,n.useRef)(new Map),T=(0,n.useCallback)(()=>{for(const t of O.current.values())C(Object.assign({},t,{phase:'up',repeat:!1}));O.current.clear()},[C]);(0,n.useEffect)(()=>{const t=()=>T(),n=()=>{document.hidden&&T()};return window.addEventListener('blur',t),document.addEventListener('visibilitychange',n),()=>{window.removeEventListener('blur',t),document.removeEventListener('visibilitychange',n),T()}},[T]);const _=(t,n)=>({phase:n,code:t.code,key:t.key,repeat:t.repeat}),P=(0,n.useRef)(new Map),A=(0,n.useRef)('none'),M=(0,n.useRef)(null),F=(0,n.useRef)(!1),L=(0,n.useRef)({x:0,y:0}),[K,U]=(0,n.useState)(null),Y=(0,n.useRef)({}),q=(0,n.useRef)(0),z=()=>{q.current=0;const t=Y.current;Y.current={},t.single&&w(Object.assign({phase:'move'},t.single)),t.multi&&(j?.(t.multi),U({a:t.multi.a,b:t.multi.b}))},N=()=>{q.current||(q.current=requestAnimationFrame(z))},V=(t,n)=>{const o=D.current?.getBoundingClientRect();return o&&0!==o.width&&0!==o.height?{x:u((t-o.left)/o.width),y:u((n-o.top)/o.height)}:null},X=t=>F.current?{x:u(t.x+L.current.x),y:u(t.y+L.current.y)}:{x:1-t.x,y:1-t.y},B=(t,n)=>{q.current&&(cancelAnimationFrame(q.current),q.current=0),Y.current={},j?.({phase:'end',a:t,b:n}),U(null)},G=t=>{const n=P.current.get(t.pointerId);if(!n)return;t.preventDefault();const o=V(t.clientX,t.clientY)??n;try{D.current?.releasePointerCapture(t.pointerId)}catch{}if('alt'===A.current)return B(o,X(o)),A.current='none',void P.current.clear();if('two'===A.current){const[t,n]=[...P.current.values()];return B(t??o,n??o),A.current='none',void P.current.clear()}'single'===A.current&&t.pointerId===M.current&&(q.current&&(cancelAnimationFrame(q.current),q.current=0),Y.current={},w(Object.assign({phase:'end'},o)),A.current='none',M.current=null),P.current.delete(t.pointerId)},W=(0,o.streamGeometry)(I).rotationDegrees,$=Object.assign({},l,{borderRadius:v},h?{cornerShape:'superellipse(1.3)'}:{}),H=f(W);return(0,t.jsxs)("div",{style:$,children:['canvas'===x?(0,t.jsx)("canvas",{ref:E,style:H}):'video'===x?(0,t.jsx)("video",{ref:E,autoPlay:!0,muted:!0,playsInline:!0,style:H}):(0,t.jsx)("img",{ref:E,alt:"Device screen",draggable:!1,style:H}),(0,t.jsx)("div",{ref:D,role:"application","aria-label":"Interactive device screen. Focus to control it with your keyboard. Press Shift and Escape to stop keyboard control.",tabIndex:0,style:{position:'absolute',inset:0,cursor:a,touchAction:'none',borderRadius:v,outline:'none'},onBlur:()=>{T()},onKeyDown:t=>{if('Escape'===t.key&&t.shiftKey)return t.preventDefault(),T(),void t.currentTarget.blur();if(t.nativeEvent.isComposing)return;const n=_(t,'down');C(n)&&(t.preventDefault(),O.current.set(t.code||t.key,n))},onKeyUp:t=>{const n=t.code||t.key,o=O.current.delete(n),c=C(_(t,'up'));(o||c)&&t.preventDefault()},onPointerDown:t=>{if('mouse'===t.pointerType&&0!==t.button)return;const n=V(t.clientX,t.clientY);if(n){t.preventDefault(),D.current?.focus({preventScroll:!0});try{D.current?.setPointerCapture(t.pointerId)}catch{}if(P.current.set(t.pointerId,n),k&&'mouse'===t.pointerType&&t.altKey&&'none'===A.current){A.current='alt',F.current=t.shiftKey,L.current={x:1-2*n.x,y:1-2*n.y};const o=X(n);return U({a:n,b:o}),void j?.({phase:'begin',a:n,b:o})}if(k&&P.current.size>=2&&'alt'!==A.current){'single'===A.current&&(w(Object.assign({phase:'end'},n)),M.current=null);const[t,o]=[...P.current.values()];return A.current='two',U({a:t,b:o}),void j?.({phase:'begin',a:t,b:o})}'none'===A.current&&(A.current='single',M.current=t.pointerId,w(Object.assign({phase:'begin'},n)))}},onPointerMove:t=>{if(!P.current.get(t.pointerId))return;const n=t.nativeEvent,o='function'==typeof n.getCoalescedEvents?n.getCoalescedEvents():null,c=o&&o.length>0?o[o.length-1]:t,s=V(c.clientX,c.clientY);if(s)if(t.preventDefault(),P.current.set(t.pointerId,s),'alt'===A.current)Y.current.multi={phase:'move',a:s,b:X(s)},N();else if('two'===A.current){const[t,n]=[...P.current.values()];Y.current.multi={phase:'move',a:t,b:n},N()}else'single'===A.current&&t.pointerId===M.current&&(Y.current.single=s,N())},onPointerUp:G,onPointerCancel:G,onContextMenu:t=>t.preventDefault()}),K&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.TouchIndicator,{point:K.a}),(0,t.jsx)(s.TouchIndicator,{point:K.b})]}),(0,t.jsx)(c.AgentInteractionIndicator,{interaction:y}),'streaming'!==S&&(0,t.jsx)("div",{style:Object.assign({},p,{color:'error'===S?'#fca5a5':'rgba(255, 255, 255, 0.7)'}),children:'error'===S?R??'Disconnected':'connecting'===S?'Connecting\u2026':'Not connected'})]})};var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]);const u=t=>Math.min(1,Math.max(0,t)),a="url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='9' fill='rgba(255,255,255,0.45)' stroke='rgba(0,0,0,0.55)' stroke-width='1.25'/%3E%3C/svg%3E\") 12 12, pointer",l={position:'absolute',inset:0,containerType:'size',overflow:'hidden',backgroundColor:'#000'},p={position:'absolute',inset:0,boxSizing:'border-box',display:'flex',alignItems:'center',justifyContent:'center',padding:24,textAlign:'center',pointerEvents:'none',backgroundColor:'rgba(0, 0, 0, 0.55)',fontSize:13,fontFamily:'var(--expo-font-mono)'};function f(t){const n=90===Math.abs(t),o=0===t?{display:'block',position:'absolute',inset:0,width:'100%',height:'100%',objectFit:'cover'}:{display:'block',position:'absolute',top:'50%',left:'50%',width:n?'100cqh':'100%',height:n?'100cqw':'100%',transform:`translate(-50%, -50%) rotate(${t}deg)`,transformOrigin:'center center',objectFit:'cover'};return Object.assign({},o,{userSelect:'none',WebkitUserSelect:'none',pointerEvents:'none'})}},150,[151,38,153,154,156]);
197
197
  __d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},151,[152]);
198
198
  __d(function(g,r,i,a,m,e,d){
199
199
  /**
@@ -234,12 +234,27 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
234
234
  __d(function(g,_r,_i,a,m,e,d){"use strict";function t(t){return new Uint8Array([t>>8&255,255&t])}function n(t){return new Uint8Array([t>>>24&255,t>>>16&255,t>>>8&255,255&t])}function i(t){const i=Math.floor(t/4294967296),s=t>>>0;return new Uint8Array([...n(i),...n(s)])}function s(t){return new Uint8Array([t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)])}function r(t){let n=0;for(const i of t)n+=i.byteLength;const i=new Uint8Array(n);let s=0;for(const n of t)i.set(n,s),s+=n.byteLength;return i}function o(t,...i){const o=r(i);return r([n(8+o.byteLength),s(t),o])}function*h(t){const n=t.length,i=i=>{for(let s=i;s+2<n;s++)if(0===t[s]&&0===t[s+1]){if(1===t[s+2])return{pos:s,len:3};if(s+3<n&&0===t[s+2]&&1===t[s+3])return{pos:s,len:4}}return null};let s=i(0);for(;s;){const r=s.pos+s.len,o=i(r),h=o?o.pos:n;h>r&&(yield t.subarray(r,h)),s=o}}function u(t){const n=[];for(let i=0;i<t.length;i++)i+2<t.length&&0===t[i]&&0===t[i+1]&&3===t[i+2]?(n.push(0,0),i+=2):n.push(t[i]);return new Uint8Array(n)}Object.defineProperty(e,'__esModule',{value:!0}),e.codecStringFromSps=y,Object.defineProperty(e,"FragmentedMp4Muxer",{enumerable:!0,get:function(){return w}});class c{pos=0;constructor(t){this.data=t}bit(){const t=(this.data[this.pos>>3]??0)>>7-(7&this.pos)&1;return this.pos++,t}bits(t){let n=0;for(let i=0;i<t;i++)n=n<<1|this.bit();return n>>>0}ue(){let t=0;for(;0===this.bit()&&t<32;)t++;return 0===t?0:(1<<t)-1+this.bits(t)}se(){const t=this.ue();return 1&t?t+1>>1:-(t>>1)}}const l=new Set([100,110,122,244,44,83,86,118,128,138,139,134,135]);function f(t,n){let i=8,s=8;for(let r=0;r<n;r++){if(0!==s){s=(i+t.se()+256)%256}i=0===s?i:s}}function b(t){const n=new c(u(t.subarray(1))),i=n.bits(8);n.bits(8),n.bits(8),n.ue();let s=1;if(l.has(i)&&(s=n.ue(),3===s&&n.bit(),n.ue(),n.ue(),n.bit(),n.bit())){const t=3!==s?8:12;for(let i=0;i<t;i++)n.bit()&&f(n,i<6?16:64)}n.ue();const r=n.ue();if(0===r)n.ue();else if(1===r){n.bit(),n.se(),n.se();const t=n.ue();for(let i=0;i<t;i++)n.se()}n.ue(),n.bit();const o=n.ue(),h=n.ue(),b=n.bit();b||n.bit(),n.bit();let y=0,p=0,w=0,A=0;n.bit()&&(y=n.ue(),p=n.ue(),w=n.ue(),A=n.ue());const U=16*(o+1),v=(2-b)*(h+1)*16,L=0===s?1:0===s?1:2,M=(0===s?1:0===s?1:2)*(2-b);return{width:Math.max(0,U-L*(y+p)),height:Math.max(0,v-M*(w+A))}}function y(t){const n=t=>t.toString(16).padStart(2,'0');return`avc1.${n(t[1])}${n(t[2])}${n(t[3])}`}const p=r([n(65536),n(0),n(0),n(0),n(65536),n(0),n(0),n(0),n(1073741824)]);class w{sps=null;pps=null;codecKey='';width=0;height=0;seq=1;baseMediaDecodeTime=0;prevPtsTicks=null;get codec(){return this.sps?y(this.sps):null}get ready(){return!!this.sps&&!!this.pps}append(t,n,i){const s=[];let r,o=null,u=null;for(const n of h(t)){const t=31&n[0];7===t?o=n.slice():8===t?u=n.slice():t>=1&&t<=6&&s.push(n)}if(o&&u){const t=`${o.join(',')}|${u.join(',')}`;if(t!==this.codecKey){this.sps=o,this.pps=u,this.codecKey=t;const n=b(o);this.width=n.width,this.height=n.height,r=this.buildInit()}}if(!this.ready||0===s.length)return{init:r};const c=null==i?null:Math.round(9e4*i/1e6);let l=3e3;if(null!=c&&null!=this.prevPtsTicks){const t=c-this.prevPtsTicks;l=t>0?Math.min(t,45e4):3e3}null!=c&&(this.prevPtsTicks=c);return{init:r,segment:this.buildSegment(s,n,l)}}get dimensions(){return this.width&&this.height?{width:this.width,height:this.height}:null}buildInit(){const i=this.sps,h=this.pps,u=o('avcC',new Uint8Array([1,i[1],i[2],i[3],255,225]),t(i.byteLength),i,new Uint8Array([1]),t(h.byteLength),h),c=o('avc1',new Uint8Array(6),t(1),new Uint8Array(16),t(this.width),t(this.height),n(4718592),n(4718592),n(0),t(1),new Uint8Array(32),t(24),new Uint8Array([255,255]),u),l=o('stbl',o('stsd',n(0),n(1),c),o('stts',n(0),n(0)),o('stsc',n(0),n(0)),o('stsz',n(0),n(0),n(0)),o('stco',n(0),n(0))),f=o('dinf',o('dref',n(0),n(1),o('url ',n(1)))),b=o('minf',o('vmhd',n(1),n(0),n(0)),f,l),y=o('mdhd',n(0),n(0),n(0),n(9e4),n(0),t(21956),t(0)),w=o('hdlr',n(0),n(0),s('vide'),n(0),n(0),n(0),new Uint8Array([...s('Vide'),...s('oHan'),...s('dler'),0])),A=o('mdia',y,w,b),U=o('tkhd',new Uint8Array([0,0,0,7]),n(0),n(0),n(1),n(0),n(0),n(0),n(0),t(0),t(0),t(0),t(0),p,n(this.width<<16),n(this.height<<16)),v=o('trak',U,A),L=o('mvhd',n(0),n(0),n(0),n(1e3),n(0),n(65536),t(256),t(0),n(0),n(0),p,n(0),n(0),n(0),n(0),n(0),n(0),n(2)),M=o('trex',n(0),n(1),n(1),n(0),n(0),n(0)),S=o('moov',L,v,o('mvex',M));return r([o('ftyp',s('isom'),n(0),s('isom'),s('iso6'),s('avc1'),s('mp41')),S])}buildSegment(t,s,h){let u=0;for(const n of t)u+=4+n.byteLength;const c=new Uint8Array(u);let l=0;for(const i of t)c.set(n(i.byteLength),l),l+=4,c.set(i,l),l+=i.byteLength;const f=o('mfhd',n(0),n(this.seq++)),b=o('tfhd',new Uint8Array([0,2,0,0]),n(1)),y=o('tfdt',new Uint8Array([1,0,0,0]),i(this.baseMediaDecodeTime)),p=o('trun',new Uint8Array([0,0,7,1]),n(1),n(0),n(h),n(u),n(s?33554432:16842752)),w=o('moof',f,o('traf',b,y,p));return new DataView(w.buffer,w.byteOffset,w.byteLength).setInt32(w.byteLength-16,w.byteLength+8,!1),this.baseMediaDecodeTime+=h,r([w,o('mdat',c)])}}},178,[]);
235
235
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useActiveDeviceClient=function(s,u){const c='ios'===s?.platform,v='android'===s?.platform,_=(0,o.useIosDeviceClient)({enabled:c,baseUrl:c?(0,n.endpointFor)('ios',u):null,device:c?s?.device??null:null,streamMode:s?.streamMode}),b=(0,l.useAndroidDeviceClient)({enabled:v,baseUrl:v?(0,n.endpointFor)('android',u):null,device:v?s?.device??null:null,streamMode:s?.streamMode});return c?_:v?b:t.NOOP_DEVICE_CLIENT};var n=r(d[0]),l=r(d[1]),o=r(d[2]),t=r(d[3])},179,[161,173,157,180]);
236
236
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NOOP_DEVICE_CLIENT",{enumerable:!0,get:function(){return t}});const t={platform:'ios',status:'idle',error:null,screen:null,fps:0,devices:[],logs:[],logsEnabled:!1,attachLogs:()=>{},detachLogs:()=>{},clearLogs:()=>{},events:[],eventsEnabled:!1,attachEvents:()=>{},detachEvents:()=>{},clearEvents:()=>{},activity:null,deviceSettings:null,deviceSettingsPending:new Set,setDeviceSetting:()=>{},streamCapabilities:null,streamSettings:null,streamSettingsPending:!1,updateStreamSettings:()=>{},webRtcCodec:'h264',setWebRtcCodec:()=>{},capabilities:{deviceSettings:!1,activity:!1,events:!1,streamSettings:!1},foregroundApp:null,videoKind:'img',attachVideo:()=>{},sendTouch:()=>{},sendKey:()=>!1,pressButton:()=>{},reload:()=>{},rotate:()=>{},screenshot:async()=>null,appearance:null,setAppearance:()=>{},hardwareKeyboardConnected:null,setHardwareKeyboardConnected:()=>{},toggleSoftwareKeyboard:()=>{}}},180,[]);
237
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Button",{enumerable:!0,get:function(){return t.Button}}),Object.defineProperty(e,"ControlButton",{enumerable:!0,get:function(){return n.ControlButton}}),Object.defineProperty(e,"DeviceListItem",{enumerable:!0,get:function(){return o.DeviceListItem}}),Object.defineProperty(e,"DialogRoot",{enumerable:!0,get:function(){return u.DialogRoot}}),Object.defineProperty(e,"DialogContent",{enumerable:!0,get:function(){return u.DialogContent}}),Object.defineProperty(e,"DialogTitle",{enumerable:!0,get:function(){return u.DialogTitle}}),Object.defineProperty(e,"DialogContentContainer",{enumerable:!0,get:function(){return u.DialogContentContainer}}),Object.defineProperty(e,"DialogFooter",{enumerable:!0,get:function(){return u.DialogFooter}}),Object.defineProperty(e,"DialogClose",{enumerable:!0,get:function(){return u.DialogClose}}),Object.defineProperty(e,"Dropdown",{enumerable:!0,get:function(){return c.Dropdown}}),Object.defineProperty(e,"DropdownItem",{enumerable:!0,get:function(){return b.DropdownItem}}),Object.defineProperty(e,"Logo",{enumerable:!0,get:function(){return f.Logo}}),Object.defineProperty(e,"ResizeHandle",{enumerable:!0,get:function(){return l.ResizeHandle}}),Object.defineProperty(e,"SegmentedControl",{enumerable:!0,get:function(){return p.SegmentedControl}}),Object.defineProperty(e,"Select",{enumerable:!0,get:function(){return y.Select}}),Object.defineProperty(e,"SidebarToggle",{enumerable:!0,get:function(){return O.SidebarToggle}}),Object.defineProperty(e,"Switch",{enumerable:!0,get:function(){return P.Switch}}),Object.defineProperty(e,"cx",{enumerable:!0,get:function(){return j.cx}}),Object.defineProperty(e,"Sidebar",{enumerable:!0,get:function(){return D.Sidebar}}),Object.defineProperty(e,"LogSidebar",{enumerable:!0,get:function(){return C.LogSidebar}}),Object.defineProperty(e,"StreamPanel",{enumerable:!0,get:function(){return v.StreamPanel}}),Object.defineProperty(e,"DeviceTitle",{enumerable:!0,get:function(){return L.DeviceTitle}}),Object.defineProperty(e,"EmptyState",{enumerable:!0,get:function(){return w.EmptyState}}),Object.defineProperty(e,"DeviceSection",{enumerable:!0,get:function(){return h.DeviceSection}}),Object.defineProperty(e,"OutputSection",{enumerable:!0,get:function(){return E.OutputSection}}),Object.defineProperty(e,"CurrentAppSection",{enumerable:!0,get:function(){return R.CurrentAppSection}}),Object.defineProperty(e,"DeviceOptionsSection",{enumerable:!0,get:function(){return B.DeviceOptionsSection}}),Object.defineProperty(e,"ActivitySection",{enumerable:!0,get:function(){return T.ActivitySection}}),Object.defineProperty(e,"EventsSection",{enumerable:!0,get:function(){return M.EventsSection}}),Object.defineProperty(e,"LogsSection",{enumerable:!0,get:function(){return A.LogsSection}}),Object.defineProperty(e,"CollapsibleSection",{enumerable:!0,get:function(){return F.CollapsibleSection}}),Object.defineProperty(e,"KeyboardSection",{enumerable:!0,get:function(){return I.KeyboardSection}}),Object.defineProperty(e,"PhoneFrame",{enumerable:!0,get:function(){return _.PhoneFrame}}),Object.defineProperty(e,"LogControls",{enumerable:!0,get:function(){return k.LogControls}}),Object.defineProperty(e,"LogList",{enumerable:!0,get:function(){return x.LogList}}),Object.defineProperty(e,"LogRow",{enumerable:!0,get:function(){return z.LogRow}}),Object.defineProperty(e,"StreamControls",{enumerable:!0,get:function(){return H.StreamControls}}),Object.defineProperty(e,"StreamSection",{enumerable:!0,get:function(){return K.StreamSection}}),Object.defineProperty(e,"StreamOptionsSection",{enumerable:!0,get:function(){return q.StreamOptionsSection}}),Object.defineProperty(e,"RecentDevicesModal",{enumerable:!0,get:function(){return G.RecentDevicesModal}}),Object.defineProperty(e,"BootErrorModal",{enumerable:!0,get:function(){return J.BootErrorModal}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),c=r(d[4]),b=r(d[5]),f=r(d[6]),l=r(d[7]),p=r(d[8]),y=r(d[9]),O=r(d[10]),P=r(d[11]),j=r(d[12]),S=r(d[13]);Object.keys(S).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return S[t]}})});var s=r(d[14]);Object.keys(s).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})});var D=r(d[15]),C=r(d[16]),v=r(d[17]),L=r(d[18]),w=r(d[19]),h=r(d[20]),E=r(d[21]),R=r(d[22]),B=r(d[23]),T=r(d[24]),M=r(d[25]),A=r(d[26]),F=r(d[27]),I=r(d[28]),_=r(d[29]),k=r(d[30]),x=r(d[31]),z=r(d[32]),H=r(d[33]),K=r(d[34]),q=r(d[35]),G=r(d[36]),J=r(d[37]),N=r(d[38]);Object.keys(N).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return N[t]}})})},181,[182,184,185,189,248,263,264,265,266,267,291,292,247,186,183,293,297,311,312,317,295,318,300,302,298,305,309,299,303,313,306,307,308,316,319,310,296,320,321]);
237
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Button",{enumerable:!0,get:function(){return t.Button}}),Object.defineProperty(e,"ControlButton",{enumerable:!0,get:function(){return n.ControlButton}}),Object.defineProperty(e,"DeviceListItem",{enumerable:!0,get:function(){return o.DeviceListItem}}),Object.defineProperty(e,"DialogRoot",{enumerable:!0,get:function(){return u.DialogRoot}}),Object.defineProperty(e,"DialogContent",{enumerable:!0,get:function(){return u.DialogContent}}),Object.defineProperty(e,"DialogTitle",{enumerable:!0,get:function(){return u.DialogTitle}}),Object.defineProperty(e,"DialogContentContainer",{enumerable:!0,get:function(){return u.DialogContentContainer}}),Object.defineProperty(e,"DialogFooter",{enumerable:!0,get:function(){return u.DialogFooter}}),Object.defineProperty(e,"DialogClose",{enumerable:!0,get:function(){return u.DialogClose}}),Object.defineProperty(e,"Dropdown",{enumerable:!0,get:function(){return c.Dropdown}}),Object.defineProperty(e,"DropdownItem",{enumerable:!0,get:function(){return b.DropdownItem}}),Object.defineProperty(e,"Logo",{enumerable:!0,get:function(){return f.Logo}}),Object.defineProperty(e,"ResizeHandle",{enumerable:!0,get:function(){return l.ResizeHandle}}),Object.defineProperty(e,"SegmentedControl",{enumerable:!0,get:function(){return p.SegmentedControl}}),Object.defineProperty(e,"Select",{enumerable:!0,get:function(){return O.Select}}),Object.defineProperty(e,"SidebarToggle",{enumerable:!0,get:function(){return y.SidebarToggle}}),Object.defineProperty(e,"Switch",{enumerable:!0,get:function(){return P.Switch}}),Object.defineProperty(e,"cx",{enumerable:!0,get:function(){return j.cx}}),Object.defineProperty(e,"Sidebar",{enumerable:!0,get:function(){return D.Sidebar}}),Object.defineProperty(e,"LogSidebar",{enumerable:!0,get:function(){return v.LogSidebar}}),Object.defineProperty(e,"StreamPanel",{enumerable:!0,get:function(){return C.StreamPanel}}),Object.defineProperty(e,"DeviceTitle",{enumerable:!0,get:function(){return L.DeviceTitle}}),Object.defineProperty(e,"EmptyState",{enumerable:!0,get:function(){return E.EmptyState}}),Object.defineProperty(e,"DeviceSection",{enumerable:!0,get:function(){return R.DeviceSection}}),Object.defineProperty(e,"OutputSection",{enumerable:!0,get:function(){return w.OutputSection}}),Object.defineProperty(e,"CurrentAppSection",{enumerable:!0,get:function(){return h.CurrentAppSection}}),Object.defineProperty(e,"DeviceOptionsSection",{enumerable:!0,get:function(){return F.DeviceOptionsSection}}),Object.defineProperty(e,"NO_DEVICE_FRAME_DESCRIPTION",{enumerable:!0,get:function(){return F.NO_DEVICE_FRAME_DESCRIPTION}}),Object.defineProperty(e,"ActivitySection",{enumerable:!0,get:function(){return I.ActivitySection}}),Object.defineProperty(e,"EventsSection",{enumerable:!0,get:function(){return _.EventsSection}}),Object.defineProperty(e,"LogsSection",{enumerable:!0,get:function(){return T.LogsSection}}),Object.defineProperty(e,"CollapsibleSection",{enumerable:!0,get:function(){return M.CollapsibleSection}}),Object.defineProperty(e,"KeyboardSection",{enumerable:!0,get:function(){return A.KeyboardSection}}),Object.defineProperty(e,"PhoneFrame",{enumerable:!0,get:function(){return B.PhoneFrame}}),Object.defineProperty(e,"deviceFrameLayout",{enumerable:!0,get:function(){return N.deviceFrameLayout}}),Object.defineProperty(e,"deviceFrameRotation",{enumerable:!0,get:function(){return N.deviceFrameRotation}}),Object.defineProperty(e,"LogControls",{enumerable:!0,get:function(){return k.LogControls}}),Object.defineProperty(e,"LogList",{enumerable:!0,get:function(){return x.LogList}}),Object.defineProperty(e,"LogRow",{enumerable:!0,get:function(){return z.LogRow}}),Object.defineProperty(e,"StreamControls",{enumerable:!0,get:function(){return H.StreamControls}}),Object.defineProperty(e,"StreamSection",{enumerable:!0,get:function(){return K.StreamSection}}),Object.defineProperty(e,"StreamOptionsSection",{enumerable:!0,get:function(){return V.StreamOptionsSection}}),Object.defineProperty(e,"RecentDevicesModal",{enumerable:!0,get:function(){return q.RecentDevicesModal}}),Object.defineProperty(e,"BootErrorModal",{enumerable:!0,get:function(){return G.BootErrorModal}}),Object.defineProperty(e,"ServerConnectionOverlay",{enumerable:!0,get:function(){return J.ServerConnectionOverlay}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),c=r(d[4]),b=r(d[5]),f=r(d[6]),l=r(d[7]),p=r(d[8]),O=r(d[9]),y=r(d[10]),P=r(d[11]),j=r(d[12]),S=r(d[13]);Object.keys(S).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return S[t]}})});var s=r(d[14]);Object.keys(s).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})});var D=r(d[15]),v=r(d[16]),C=r(d[17]),L=r(d[18]),E=r(d[19]),R=r(d[20]),w=r(d[21]),h=r(d[22]),F=r(d[23]),I=r(d[24]),_=r(d[25]),T=r(d[26]),M=r(d[27]),A=r(d[28]),B=r(d[29]),N=r(d[30]),k=r(d[31]),x=r(d[32]),z=r(d[33]),H=r(d[34]),K=r(d[35]),V=r(d[36]),q=r(d[37]),G=r(d[38]),J=r(d[39]),Q=r(d[40]);Object.keys(Q).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Q[t]}})})},181,[182,184,185,189,248,263,264,265,266,267,291,292,247,186,183,293,297,312,313,319,295,320,300,302,298,305,309,299,303,314,316,306,307,308,318,321,310,296,322,323,311]);
238
238
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Button=function({children:n,theme:l="primary",size:u="sm",leftSlot:b,rightSlot:h,block:x=!1,disabled:y=!1,type:p="button",href:v,target:j,onClick:f,className:k,style:S}){const[O,z]=(0,s.useState)(!1),[I,R]=(0,s.useState)(!1),C=o[l],B=Object.assign({display:'inline-flex',alignItems:'center',justifyContent:'center',gap:'2xs'===u?4:'xs'===u?6:8,border:'1px solid',fontWeight:500,whiteSpace:'nowrap',cursor:y?'default':'pointer',textDecoration:'none',transition:'background-color 150ms ease, transform 100ms ease, opacity 150ms ease',width:x?'100%':void 0,transform:!y&&I?'scale(0.98)':void 0},c[u],{backgroundColor:y?C.disabledBackground:O?C.hover:C.background,borderColor:y?C.disabledBorder:C.border,color:y?C.disabledText:C.text,opacity:y?.8:1,pointerEvents:y?'none':void 0},S),M=(0,t.jsxs)(t.Fragment,{children:[b,null!=n&&(0,t.jsx)("span",{style:{display:'flex',lineHeight:1},children:n}),h]}),w={onMouseEnter:()=>z(!0),onMouseLeave:()=>{z(!1),R(!1)},onMouseDown:()=>R(!0),onMouseUp:()=>R(!1)};if(v)return(0,t.jsx)("a",Object.assign({href:y?void 0:v,target:j,className:k,style:B,onClick:y?void 0:f},w,{children:M}));return(0,t.jsx)("button",Object.assign({type:p,className:k,style:B,disabled:y,onClick:y?void 0:f},w,{children:M}))};var t=r(d[0]),s=r(d[1]),n=r(d[2]);const o={primary:l('primary'),secondary:l('secondary'),tertiary:l('tertiary'),quaternary:l('quaternary'),'primary-destructive':l('primary-destructive'),'secondary-destructive':l('secondary-destructive'),'tertiary-destructive':l('tertiary-destructive'),'agent-overlay':l('agent-overlay')};function l(t){const s=s=>`var(--expo-theme-button-${t}-${s})`;return{background:s('background'),hover:s('hover'),text:s('text'),border:s('border'),disabledBackground:s('disabled-background'),disabledBorder:s('disabled-border'),disabledText:s('disabled-text')}}const c={'2xs':Object.assign({height:28,paddingInline:8,borderRadius:n.radius.lg},n.textSize.xs),xs:Object.assign({height:32,paddingInline:12,borderRadius:n.radius.lg},n.textSize.xs),sm:Object.assign({height:36,paddingInline:16,borderRadius:n.radius.lg},n.textSize.sm),md:Object.assign({height:40,paddingInline:16,borderRadius:n.radius.lg},n.textSize.sm),lg:Object.assign({height:44,paddingInline:24,borderRadius:n.radius.lg},n.textSize.base),xl:Object.assign({height:48,paddingInline:24,borderRadius:n.radius.lg},n.textSize.base),'2xl':Object.assign({height:60,paddingInline:24,borderRadius:n.radius.lg},n.textSize.lg)}},182,[151,38,183]);
239
239
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"bg",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"text",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"icon",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"border",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"radius",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"font",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"textSize",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"heading",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"tokens",{enumerable:!0,get:function(){return u}});const t={default:'var(--expo-theme-background-default)',screen:'var(--expo-theme-background-screen)',subtle:'var(--expo-theme-background-subtle)',element:'var(--expo-theme-background-element)',hover:'var(--expo-theme-background-hover)',selected:'var(--expo-theme-background-selected)',overlay:'var(--expo-theme-background-overlay)',success:'var(--expo-theme-background-success)',warning:'var(--expo-theme-background-warning)',danger:'var(--expo-theme-background-danger)',info:'var(--expo-theme-background-info)',preview:'var(--expo-theme-background-preview)'},n={default:'var(--expo-theme-text-default)',secondary:'var(--expo-theme-text-secondary)',tertiary:'var(--expo-theme-text-tertiary)',quaternary:'var(--expo-theme-text-quaternary)',link:'var(--expo-theme-text-link)',success:'var(--expo-theme-text-success)',warning:'var(--expo-theme-text-warning)',danger:'var(--expo-theme-text-danger)',info:'var(--expo-theme-text-info)',preview:'var(--expo-theme-text-preview)'},o={default:'var(--expo-theme-icon-default)',secondary:'var(--expo-theme-icon-secondary)',tertiary:'var(--expo-theme-icon-tertiary)',quaternary:'var(--expo-theme-icon-quaternary)',success:'var(--expo-theme-icon-success)',warning:'var(--expo-theme-icon-warning)',danger:'var(--expo-theme-icon-danger)',info:'var(--expo-theme-icon-info)',preview:'var(--expo-theme-icon-preview)'},x={default:'var(--expo-theme-border-default)',secondary:'var(--expo-theme-border-secondary)',success:'var(--expo-theme-border-success)',warning:'var(--expo-theme-border-warning)',danger:'var(--expo-theme-border-danger)',info:'var(--expo-theme-border-info)',preview:'var(--expo-theme-border-preview)'},p={none:'0',xs:'var(--expo-radius-xs)',sm:'var(--expo-radius-sm)',md:'var(--expo-radius-md)',lg:'var(--expo-radius-lg)',xl:'var(--expo-radius-xl)','2xl':'var(--expo-radius-2xl)','3xl':'var(--expo-radius-3xl)',full:'var(--expo-radius-full)'},c={none:'var(--expo-theme-shadows-none)',xs:'var(--expo-theme-shadows-xs)',sm:'var(--expo-theme-shadows-sm)',md:'var(--expo-theme-shadows-md)',lg:'var(--expo-theme-shadows-lg)',xl:'var(--expo-theme-shadows-xl)'},h={sans:'var(--expo-font-sans)',mono:'var(--expo-font-mono)'},l={'2xl':{fontSize:24,fontWeight:500,lineHeight:1.2,letterSpacing:'-0.5px'},xl:{fontSize:20,fontWeight:500,lineHeight:1.2,letterSpacing:'-0.25px'},lg:{fontSize:18,fontWeight:400,lineHeight:1.4,letterSpacing:'0'},base:{fontSize:16,fontWeight:400,lineHeight:1.6,letterSpacing:'0'},sm:{fontSize:14,fontWeight:400,lineHeight:1.6,letterSpacing:'0'},xs:{fontSize:12,fontWeight:400,lineHeight:1.6,letterSpacing:'0'},'2xs':{fontSize:10,fontWeight:500,lineHeight:1.6,letterSpacing:'0'}},s={'5xl':{fontSize:64,fontWeight:600,lineHeight:1.1,letterSpacing:'-3px'},'4xl':{fontSize:48,fontWeight:600,lineHeight:1.1,letterSpacing:'-2px'},'3xl':{fontSize:32,fontWeight:600,lineHeight:1.1,letterSpacing:'-0.5px'},'2xl':{fontSize:24,fontWeight:600,lineHeight:1.2,letterSpacing:'-0.5px'},xl:{fontSize:20,fontWeight:600,lineHeight:1.4,letterSpacing:'-0.25px'},lg:{fontSize:18,fontWeight:600,lineHeight:1.4,letterSpacing:'0'},base:{fontSize:16,fontWeight:600,lineHeight:1.4,letterSpacing:'0'},sm:{fontSize:14,fontWeight:600,lineHeight:1.4,letterSpacing:'0'},xs:{fontSize:12,fontWeight:600,lineHeight:1.6,letterSpacing:'0'}},u={bg:t,text:n,icon:o,border:x,radius:p,shadow:c,font:h,textSize:l,heading:s}},183,[]);
240
240
  __d(function(g,r,i,a,m,_e,d){"use strict";const e=["icon","label","variant","style","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ControlButton",{enumerable:!0,get:function(){return c}});var n,o=r(d[0]),t=(n=o)&&n.__esModule?n:{default:n},s=r(d[1]),l=r(d[2]),u=r(d[3]);const c=(0,l.forwardRef)(function(n,o){let{icon:c,label:f,variant:b="default",style:p,onMouseEnter:y,onMouseLeave:x,onMouseDown:M,onMouseUp:j}=n,v=(0,t.default)(n,e);const[h,_]=(0,l.useState)(!1),[w,O]=(0,l.useState)(!1),D='primary'===b,S=D?60:32,k={display:'flex',alignItems:'center',justifyContent:'center',width:S,height:S,borderRadius:u.radius.full,boxSizing:'border-box',border:D?'none':`1px solid ${u.border.default}`,backgroundColor:D?u.text.default:h?u.bg.element:'transparent',color:D?u.bg.default:u.icon.default,opacity:D&&h?.85:1,transition:'background-color 150ms ease, opacity 150ms ease, transform 100ms ease',transform:w?'scale(0.98)':void 0};return(0,s.jsxs)("button",Object.assign({ref:o,type:"button",onMouseEnter:e=>{_(!0),y?.(e)},onMouseLeave:e=>{_(!1),O(!1),x?.(e)},onMouseDown:e=>{O(!0),M?.(e)},onMouseUp:e=>{O(!1),j?.(e)},style:Object.assign({display:'flex',flexDirection:'column',alignItems:'center',gap:6,padding:0,border:'none',background:'none',cursor:'pointer',fontFamily:'inherit'},p)},v,{children:[(0,s.jsx)("span",{style:k,children:c}),(0,s.jsx)("span",{style:Object.assign({},u.textSize['2xs'],{color:u.text.secondary,textAlign:'center'}),children:f})]}))})},184,[131,151,38,183]);
241
241
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceListItem=function({name:c,version:f,unsupported:p=!1,usedByAgent:x=!1,selected:b=!1,onClick:h}){const[v,y]=(0,n.useState)(!1),[w,j]=(0,n.useState)(!1),R=(0,n.useRef)(null),S=(0,n.useRef)(null),W=(0,n.useRef)(null),k=(0,n.useRef)(null),C=(0,u.useCompactAgentDeviceStatus)({buttonRef:R,nameRef:S,statusLabelRef:W,versionRef:k}),M={display:'flex',justifyContent:'space-between',alignItems:'center',gap:16,width:'100%',maxWidth:'100%',minWidth:0,boxSizing:'border-box',padding:16,overflow:'hidden',border:'none',borderRadius:o.radius.xl,backgroundColor:b?o.bg.hover:v?o.bg.element:'transparent',cursor:'pointer',textAlign:'left',fontFamily:'inherit',transition:'background-color 150ms ease, transform 100ms ease',transform:w?'scale(0.98)':void 0};return(0,t.jsxs)("button",{ref:R,type:"button",style:M,onClick:h,"aria-pressed":b,"aria-label":`${c}, ${f}${x?', used by agent':''}`,onMouseEnter:()=>y(!0),onMouseLeave:()=>{y(!1),j(!1)},onMouseDown:()=>j(!0),onMouseUp:()=>j(!1),children:[(0,t.jsxs)("span",{style:{display:'flex',alignItems:'center',gap:8,flex:'1 1 auto',minWidth:0,overflow:'hidden'},children:[p&&(0,t.jsx)("span",{role:"img","aria-label":"Unsupported or untested device",title:"This device type is unsupported or untested.",style:{display:'flex',flex:'0 0 auto',color:o.icon.warning},children:(0,t.jsx)(s.WarningIcon,{size:16})}),(0,t.jsx)("span",{ref:S,title:c,style:Object.assign({},o.textSize.sm,{minWidth:0,flex:'1 1 auto',fontWeight:500,color:o.text.default,overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap'}),children:c}),(0,t.jsx)(l.AgentDeviceStatus,{active:x,compact:C,labelRef:W})]}),(0,t.jsx)("span",{ref:k,style:Object.assign({},o.textSize.sm,{fontWeight:500,color:o.text.secondary,whiteSpace:'nowrap',flexShrink:0}),children:f})]})};var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),l=r(d[4]),u=r(d[5])},185,[151,38,186,183,187,188]);
242
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PlusIcon=function({size:t=18,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M12 5v14M5 12h14",stroke:n,strokeWidth:s,strokeLinecap:"round"})})},e.CloseIcon=function({size:t=18,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M18 6 6 18M6 6l12 12",stroke:n,strokeWidth:s,strokeLinecap:"round"})})},e.PhoneIcon=function({size:t=28,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"6",y:"2",width:"12",height:"20",rx:"3",stroke:n,strokeWidth:s}),(0,o.jsx)("path",{d:"M10 18.5h4",stroke:n,strokeWidth:s,strokeLinecap:"round"})]})},e.RefreshIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v4.5h-4.5",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.HomeIcon=function({size:t=20,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M3 9.5 12 3l9 6.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1V9.5Z",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.BackIcon=function({size:t=18,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M19 12H5M12 19l-7-7 7-7",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.RecentsIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("rect",{x:"5",y:"5",width:"14",height:"14",rx:"2",stroke:n,strokeWidth:s})})},e.ThemeIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"9",stroke:n,strokeWidth:s}),(0,o.jsx)("path",{d:"M12 3a9 9 0 0 1 0 18Z",fill:n})]})},e.CameraIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.33,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M3 8a2 2 0 0 1 2-2h1.5L8 4h8l1.5 2H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8Z",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("circle",{cx:"12",cy:"13",r:"3.25",stroke:n,strokeWidth:s})]})},e.DotsIcon=function({size:t=16,color:n="currentColor",style:s}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:n,style:s,children:[(0,o.jsx)("circle",{cx:"5",cy:"12",r:"1.5"}),(0,o.jsx)("circle",{cx:"12",cy:"12",r:"1.5"}),(0,o.jsx)("circle",{cx:"19",cy:"12",r:"1.5"})]})},e.SidebarIcon=function({size:t=20,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",stroke:n,strokeWidth:s}),(0,o.jsx)("path",{d:"M9 3v18",stroke:n,strokeWidth:s,strokeLinecap:"round"})]})},e.RotateIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7L21 8",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M21 3v5h-5",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.PowerIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M12 2v10",stroke:n,strokeWidth:s,strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M18.36 6.64a9 9 0 1 1-12.73 0",stroke:n,strokeWidth:s,strokeLinecap:"round"})]})},e.TrashIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6M10 11v6M14 11v6",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.SmartphoneIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2.5",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 18h.01",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.WarningIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",style:h,children:[(0,o.jsx)("path",{d:"M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 9v4M12 17h.01",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.CheckIcon=function({size:t=17,color:n="currentColor",strokeWidth:s=2.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("polyline",{points:"20 6 9 17 4 12",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.ChevronDownIcon=function({size:t=14,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("polyline",{points:"6 9 12 15 18 9",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.ChevronsUpDownIcon=function({size:t=14,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("polyline",{points:"7 15 12 20 17 15",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("polyline",{points:"7 9 12 4 17 9",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})};var o=r(d[0])},186,[151]);
242
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PlusIcon=function({size:t=18,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M12 5v14M5 12h14",stroke:n,strokeWidth:s,strokeLinecap:"round"})})},e.CloseIcon=function({size:t=18,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M18 6 6 18M6 6l12 12",stroke:n,strokeWidth:s,strokeLinecap:"round"})})},e.PhoneIcon=function({size:t=28,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"6",y:"2",width:"12",height:"20",rx:"3",stroke:n,strokeWidth:s}),(0,o.jsx)("path",{d:"M10 18.5h4",stroke:n,strokeWidth:s,strokeLinecap:"round"})]})},e.RefreshIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v4.5h-4.5",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.HomeIcon=function({size:t=20,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M3 9.5 12 3l9 6.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1V9.5Z",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.BackIcon=function({size:t=18,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M19 12H5M12 19l-7-7 7-7",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.RecentsIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("rect",{x:"5",y:"5",width:"14",height:"14",rx:"2",stroke:n,strokeWidth:s})})},e.ThemeIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"9",stroke:n,strokeWidth:s}),(0,o.jsx)("path",{d:"M12 3a9 9 0 0 1 0 18Z",fill:n})]})},e.CameraIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.33,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M3 8a2 2 0 0 1 2-2h1.5L8 4h8l1.5 2H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8Z",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("circle",{cx:"12",cy:"13",r:"3.25",stroke:n,strokeWidth:s})]})},e.DotsIcon=function({size:t=16,color:n="currentColor",style:s}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:n,style:s,children:[(0,o.jsx)("circle",{cx:"5",cy:"12",r:"1.5"}),(0,o.jsx)("circle",{cx:"12",cy:"12",r:"1.5"}),(0,o.jsx)("circle",{cx:"19",cy:"12",r:"1.5"})]})},e.SidebarIcon=function({size:t=20,color:n="currentColor",strokeWidth:s=1.5,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",stroke:n,strokeWidth:s}),(0,o.jsx)("path",{d:"M9 3v18",stroke:n,strokeWidth:s,strokeLinecap:"round"})]})},e.RotateIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7L21 8",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M21 3v5h-5",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.PowerIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"M12 2v10",stroke:n,strokeWidth:s,strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M18.36 6.64a9 9 0 1 1-12.73 0",stroke:n,strokeWidth:s,strokeLinecap:"round"})]})}
243
+ /**
244
+ * Vendored Lucide `unplug` icon, rendered locally to keep this package dependency-free.
245
+ *
246
+ * @license ISC
247
+ * Copyright (c) 2026 Lucide Icons and Contributors
248
+ * Permission to use, copy, modify, and/or distribute this software for any purpose
249
+ * with or without fee is hereby granted, provided that the above copyright notice
250
+ * and this permission notice appear in all copies.
251
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
252
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
253
+ * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
254
+ * OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
255
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
256
+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
257
+ */,e.CableDisconnectIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("path",{d:"m19 5 3-3",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"m2 22 3-3",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M7.5 13.5 10 11",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M10.5 16.5 13 14",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.TrashIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=1.67,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6M10 11v6M14 11v6",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.SmartphoneIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2.5",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 18h.01",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.WarningIcon=function({size:t=16,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",style:h,children:[(0,o.jsx)("path",{d:"M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M12 9v4M12 17h.01",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})},e.CheckIcon=function({size:t=17,color:n="currentColor",strokeWidth:s=2.5,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("polyline",{points:"20 6 9 17 4 12",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.ChevronDownIcon=function({size:t=14,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:(0,o.jsx)("polyline",{points:"6 9 12 15 18 9",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})})},e.ChevronsUpDownIcon=function({size:t=14,color:n="currentColor",strokeWidth:s=2,style:h}){return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:h,children:[(0,o.jsx)("polyline",{points:"7 15 12 20 17 15",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("polyline",{points:"7 9 12 4 17 9",stroke:n,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round"})]})};var o=r(d[0])},186,[151]);
243
258
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.AgentDeviceStatus=function({active:l,compact:s=!1,labelRef:c}){return(0,t.jsxs)("span",{"aria-hidden":!l,"data-agent-device-status":l?'active':'inactive',style:Object.assign({display:'inline-flex',alignItems:'center',gap:s?0:5,flexShrink:0,visibility:l?'visible':'hidden',color:n.text.info},n.textSize['2xs']),children:[(0,t.jsx)("span",{"data-agent-device-badge":!0,style:{width:7,height:7,flexShrink:0,borderRadius:n.radius.full,backgroundColor:n.icon.info}}),(0,t.jsx)("span",{ref:c,"data-agent-device-label":!0,style:{display:'inline-block',maxWidth:s?0:void 0,overflow:'hidden',whiteSpace:'nowrap'},children:"Used by agent"})]})};var t=r(d[0]),n=r(d[1])},187,[151,183]);
244
259
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.shouldCompactAgentDeviceStatus=c,e.useCompactAgentDeviceStatus=function({buttonRef:n,nameRef:o,statusLabelRef:s,versionRef:u}){const[l,f]=(0,t.useState)(!1);return(0,t.useLayoutEffect)(()=>{const t=n.current,l=o.current,b=s.current,v=u.current,h=t?.querySelector('[data-agent-device-badge]');if(!(t&&l&&b&&v&&h))return;const p=()=>{const n=window.getComputedStyle(t),o=t.clientWidth-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight);f(c({available:o,name:l.scrollWidth,version:v.scrollWidth,badge:h.offsetWidth,label:b.scrollWidth}))};let R=!1;p();const y=new ResizeObserver(p);return y.observe(t),document.fonts?.ready.then(()=>{R||p()}),()=>{R=!0,y.disconnect()}},[n,o,s,u]),l};var t=r(d[0]);const n=16,o=8,s=5;function c(t){return t.name+o+t.badge+s+t.label+n+t.version>t.available}},188,[38]);
245
260
  __d(function(g,r,i,a,m,_e,d){"use strict";const e=["children","className","containerClassName","overlayClassName"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.DialogRoot=function({children:e,open:l,onOpenChange:t}){return(0,s.jsx)(o.Root,{open:l,onOpenChange:t,children:e})},_e.DialogContent=function(l){let{children:t,className:u,containerClassName:h,overlayClassName:f}=l,p=(0,n.default)(l,e);return(0,s.jsx)(o.Portal,{children:(0,s.jsxs)(o.Overlay,{className:"dialog-overlay group absolute z-dialogOverlay-600",children:[(0,s.jsx)("div",{className:(0,x.cx)('fixed inset-0 bg-[#000000]/50','group-data-[state=open]:animate-fadeIn group-data-[state=closed]:animate-fadeOut',f)}),(0,s.jsx)("div",{className:"fixed top-0 left-0 z-dialogContent-601 flex h-dvh w-dvw items-center justify-center",children:(0,s.jsxs)(o.Content,Object.assign({className:(0,x.cx)('overflow-hidden rounded-lg shadow-md outline-0','data-[state=open]:animate-largeSlideUpAndFadeIn data-[state=closed]:animate-fadeOut',h)},p,{children:[(0,s.jsx)(c.VisuallyHidden,{asChild:!0,children:(0,s.jsx)(o.Description,{})}),(0,s.jsx)("div",{className:(0,x.cx)('w-[90vw] max-w-125 overflow-hidden rounded-lg border border-default bg-default text-default outline-0',u),children:t})]}))})]})})},_e.DialogTitle=function({title:e}){return(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2.5 border-b border-b-default px-6 py-4",children:[(0,s.jsx)(o.Title,{asChild:!0,children:(0,s.jsx)("h2",{style:Object.assign({},u.heading.base,{margin:0}),children:e})}),(0,s.jsx)(f,{children:(0,s.jsx)("button",{type:"button","aria-label":"Close",className:"dialog-close-button",children:(0,s.jsx)(h.CloseIcon,{size:20})})})]})},_e.DialogContentContainer=function({children:e,className:l}){return(0,s.jsx)("div",{className:(0,x.cx)('flex max-h-[calc(90vh-69px-53px)] flex-col gap-1.5 overflow-y-auto p-6 pt-4 outline-0',l),children:e})},_e.DialogFooter=function({children:e}){return(0,s.jsx)("div",{className:"flex items-center justify-end gap-3 border-t border-t-default bg-subtle px-3 py-4 max-md:py-2",children:e})},_e.DialogClose=f;var l,t=r(d[0]),n=(l=t)&&l.__esModule?l:{default:l},s=r(d[1]),o=r(d[2]),c=r(d[3]),u=r(d[4]),x=r(d[5]),h=r(d[6]);function f({children:e}){return(0,s.jsx)(o.Close,{asChild:!0,children:e})}},189,[131,151,190,243,183,247,186]);
@@ -349,13 +364,13 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
349
364
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.Sidebar=function({simulators:n,emulators:l,recentSimulators:c,recentEmulators:u,simulatorOptions:b,emulatorOptions:p,agentDeviceIds:v=[],selectedId:x,onSelect:h,onAddDevice:S,onToggle:f,platform:j,width:y=400}){return(0,t.jsxs)("aside",{style:{display:'flex',flexDirection:'column',gap:32,width:`min(${y}px, 100vw)`,flexShrink:0,height:'100vh',boxSizing:'border-box',padding:'32px 24px',overflow:'hidden'},children:[(0,t.jsxs)("div",{style:{display:'flex',alignItems:'center',justifyContent:'space-between',gap:8},children:[(0,t.jsx)(o.Logo,{}),f&&(0,t.jsx)(o.SidebarToggle,{onClick:f})]}),'android'!==j&&(0,t.jsx)(s.DeviceSection,{title:"Simulators",addLabel:"Add simulator",kind:"simulator",emptyLabel:S?'No booted simulators. Use the + button to add one.':'No booted simulators.',devices:n,recent:c,options:b,agentDeviceIds:v,selectedId:x,onSelect:h,onAdd:S}),'ios'!==j&&(0,t.jsx)(s.DeviceSection,{title:"Emulators",addLabel:"Add emulator",kind:"emulator",emptyLabel:S?'No booted emulators or devices. Use the + button to add one.':'No booted emulators or devices.',devices:l,recent:u,options:p,agentDeviceIds:v,selectedId:x,onSelect:h,onAdd:S})]})};var t=r(d[0]),o=r(d[1]),s=r(d[2])},293,[151,294,295]);
350
365
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var c=r(d[2]);Object.keys(c).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})});var o=r(d[3]);Object.keys(o).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var u=r(d[4]);Object.keys(u).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var f=r(d[5]);Object.keys(f).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}})});var l=r(d[6]);Object.keys(l).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})});var b=r(d[7]);Object.keys(b).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}})});var p=r(d[8]);Object.keys(p).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}})});var y=r(d[9]);Object.keys(y).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return y[t]}})});var O=r(d[10]);Object.keys(O).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return O[t]}})});var j=r(d[11]);Object.keys(j).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return j[t]}})});var s=r(d[12]);Object.keys(s).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})});var P=r(d[13]);Object.keys(P).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return P[t]}})});var h=r(d[14]);Object.keys(h).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return h[t]}})})},294,[182,184,185,189,248,263,264,265,266,267,291,292,247,186,183]);
351
366
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceSection=function({title:l,addLabel:c,kind:u,emptyLabel:p,devices:b,recent:x,options:y,agentDeviceIds:v=[],selectedId:f,onSelect:h,onAdd:j}){const[k,S]=(0,s.useState)(!1),[C,D]=(0,s.useState)(!1),[I,M]=(0,s.useState)(!1),L=new Set(b.map(t=>t.id)),_=x.filter(t=>!L.has(t.id));return(0,t.jsxs)("section",{style:{display:'grid',gap:12,minWidth:0},children:[(0,t.jsxs)("div",{style:{display:'flex',alignItems:'center',gap:8},children:[(0,t.jsx)("span",{style:Object.assign({},n.textSize.sm,{fontWeight:500,color:n.text.default}),children:l}),!!j&&(0,t.jsx)("button",{type:"button","aria-label":c,onClick:()=>M(!0),onMouseEnter:()=>S(!0),onMouseLeave:()=>{S(!1),D(!1)},onMouseDown:()=>D(!0),onMouseUp:()=>D(!1),style:{display:'flex',alignItems:'center',justifyContent:'center',width:26,height:26,padding:0,borderRadius:n.radius.full,border:`1px solid ${n.border.default}`,backgroundColor:k?n.bg.hover:n.bg.default,cursor:'pointer',transition:'background-color 150ms ease, transform 100ms ease',transform:C?'scale(0.98)':void 0},children:(0,t.jsx)(n.PlusIcon,{size:18,color:n.icon.secondary})})]}),(0,t.jsx)("div",{style:{display:'grid',gap:6,minWidth:0},children:0===b.length?(0,t.jsx)("p",{style:Object.assign({},n.textSize.sm,{color:n.text.secondary,margin:0,padding:'12px 16px',borderRadius:n.radius.xl,border:`1px dashed ${n.border.default}`,backgroundColor:n.bg.default}),children:p}):b.map(s=>(0,t.jsx)(n.DeviceListItem,{name:s.name,version:s.version,unsupported:!s.supported,usedByAgent:v.includes(s.id),selected:s.id===f,onClick:()=>h(s.id)},s.id))}),(0,t.jsx)(o.RecentDevicesModal,{open:I,onClose:()=>M(!1),kind:u,devices:_,options:y,onAdd:j||(async()=>({ok:!1,error:'Device actions are unavailable.'}))})]})};var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3])},295,[151,38,294,296]);
352
- __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.RecentDevicesModal=function({open:h,onClose:f,kind:b,devices:v,options:y,onAdd:j}){const w='simulator'===b?'ios':'android',C=b,S=`Add a${'emulator'===b?'n':''} ${C}`,$=(0,t.useMemo)(()=>[...v].sort((n,t)=>(t.lastUsedAt??0)-(n.lastUsedAt??0)),[v]),[k,z]=(0,t.useState)({kind:'new'}),[A,F]=(0,t.useState)(''),[D,M]=(0,t.useState)(''),[_,I]=(0,t.useState)(''),[R,B]=(0,t.useState)(!1),[N,T]=(0,t.useState)(!1),[O,U]=(0,t.useState)(!1),[E,W]=(0,t.useState)(null);(0,t.useEffect)(()=>{if(!h)return;const n=y.runtimes[0],t=n?.models[0];F(n?.value??''),M(t?.value??''),I(x(t?.label??'',$,w)),B(!1),T(!1),U(!1),W(null),z($.length?{kind:'recent',id:$[0].id}:{kind:'new'})},[h,y]);const Z='new'===k.kind,H='recent'===k.kind?$.find(n=>n.id===k.id):void 0,q=(0,t.useMemo)(()=>{const n=new Map;for(const t of y.runtimes)for(const o of t.models)n.has(o.value)||n.set(o.value,o);return[...n.values()].sort((n,t)=>n.label.localeCompare(t.label,void 0,{numeric:!0}))},[y.runtimes]),L='android'===w?y.runtimes.filter(n=>n.models.some(n=>n.value===D)):y.runtimes,P=L.find(n=>n.value===A),V='android'===w?q:P?.models??[],Y=P?.models.find(n=>n.value===D),G=()=>{z({kind:'new'}),W(null)};function J(n){const t=y.runtimes.find(t=>t.value===n);if(F(n),G(),'ios'===w){const n=t?.models[0];M(n?.value??''),R||I(x(n?.label??'',$,w))}}function K(n){M(n),G();const t=V.find(t=>t.value===n);if('android'===w){const t=y.runtimes.find(t=>t.models.some(t=>t.value===n));F(t?.value??'')}R||I(x(t?.label??'',$,w))}const Q=_.trim(),X=Q.length>0&&('android'!==w||l.test(Q)),ee='android'===w&&R&&Q.length>0&&!l.test(Q),ne=`new-${w}-device-name-hint`,te=Z?X&&A.length>0&&D.length>0:!!H;return(0,n.jsx)(o.DialogRoot,{open:h,onOpenChange:n=>{n||f()},children:(0,n.jsxs)(o.DialogContent,{children:[(0,n.jsx)(o.DialogTitle,{title:S}),(0,n.jsxs)("form",{onSubmit:async function(n){if(n.preventDefault(),te&&!O){U(!0),W(null);try{const n=Z&&P&&Y?{kind:'new',device:{platform:w,name:Q,runtime:P.value,deviceType:Y.value,version:P.label,supported:Y.supported}}:{kind:'recent',device:H},t=await j(n);t.ok?f():W(t.error)}catch(n){W(n instanceof Error?n.message:String(n))}finally{U(!1)}}},children:[(0,n.jsxs)(o.DialogContentContainer,{children:[(0,n.jsx)(s,{children:"Recents"}),(0,n.jsx)("div",{style:{display:'flex',flexDirection:'column',gap:3},children:0===$.length?(0,n.jsxs)("p",{style:{margin:0,padding:'2px 2px 6px 2px',fontSize:13,color:o.text.tertiary},children:["No recent ",C,"s."]}):$.map(t=>(0,n.jsx)(c,{device:t,selected:'recent'===k.kind&&k.id===t.id,onSelect:()=>{z({kind:'recent',id:t.id}),W(null)}},t.id))}),(0,n.jsxs)("div",{style:{marginTop:10},children:[(0,n.jsxs)(s,{active:Z,children:["New ",C]}),(0,n.jsx)("div",{onClick:G,style:{borderRadius:o.radius.lg,overflow:'hidden',backgroundColor:o.bg.subtle,border:`1px solid ${Z?o.border.default:o.border.secondary}`,transition:'border-color 150ms ease'},children:0===y.runtimes.length?(0,n.jsxs)("p",{style:{margin:0,padding:13,color:o.text.tertiary,fontSize:13},children:["No usable ",'ios'===w?'iOS runtimes':'Android system images'," were found on this host."]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{label:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"Name"}),'android'===w&&(0,n.jsx)("span",{id:ne,style:{color:ee?o.text.danger:o.text.tertiary,fontSize:11,lineHeight:1.3},children:a})]}),htmlFor:`new-${w}-device-name`,last:!1,children:(0,n.jsx)("div",{style:{flex:'0 0 58%'},children:(0,n.jsx)("input",{id:`new-${w}-device-name`,type:"text",value:_,placeholder:Y?.label||`New ${C}`,autoComplete:"off",spellCheck:!1,pattern:'android'===w?'[A-Za-z0-9._-]+':void 0,title:'android'===w?a:void 0,"aria-invalid":!!ee||void 0,"aria-describedby":'android'===w?ne:void 0,disabled:O,onChange:n=>{return t=n.currentTarget.value,I(t),B(!0),void G();var t},onFocus:()=>{T(!0),G()},onBlur:()=>T(!1),style:{width:'100%',boxSizing:'border-box',padding:'6px 10px',border:`1px solid ${ee?o.border.danger:o.border.default}`,borderRadius:o.radius.md,backgroundColor:o.bg.default,color:Z?o.text.default:o.text.tertiary,caretColor:o.text.default,fontSize:16,fontFamily:'inherit',outline:'none',boxShadow:N?`0 0 0 3px ${o.bg.element}`:'none'}})})}),'android'===w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{label:"Model",htmlFor:`new-${w}-model`,last:!1,children:(0,n.jsx)(p,{id:`new-${w}-model`,value:D,options:V,disabled:O,onChange:K,onActivate:G,trailing:(0,n.jsx)(o.ChevronsUpDownIcon,{size:14,color:o.icon.secondary})})}),(0,n.jsx)(u,{label:"OS version",htmlFor:`new-${w}-runtime`,last:!0,children:(0,n.jsx)(p,{id:`new-${w}-runtime`,value:A,options:L,disabled:O,onChange:J,onActivate:G,trailing:(0,n.jsx)(o.ChevronDownIcon,{size:14,color:o.icon.secondary})})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{label:"OS version",htmlFor:`new-${w}-runtime`,last:!1,children:(0,n.jsx)(p,{id:`new-${w}-runtime`,value:A,options:L,disabled:O,onChange:J,onActivate:G,trailing:(0,n.jsx)(o.ChevronDownIcon,{size:14,color:o.icon.secondary})})}),(0,n.jsx)(u,{label:"Model",htmlFor:`new-${w}-model`,last:!0,children:(0,n.jsx)(p,{id:`new-${w}-model`,value:D,options:V,disabled:O,onChange:K,onActivate:G,trailing:(0,n.jsx)(o.ChevronsUpDownIcon,{size:14,color:o.icon.secondary})})})]})]})})]}),E&&(0,n.jsx)("p",{role:"alert",style:{margin:'12px 0 0',padding:'9px 11px',border:`1px solid ${o.border.danger}`,borderRadius:o.radius.lg,backgroundColor:o.bg.danger,color:o.text.danger,fontSize:13,whiteSpace:'pre-wrap'},children:E})]}),(0,n.jsxs)(o.DialogFooter,{children:[(0,n.jsx)(o.Button,{type:"button",theme:"quaternary",disabled:O,onClick:f,children:"Cancel"}),(0,n.jsx)(o.Button,{type:"submit",theme:"primary",disabled:!te||O,children:O?Z?'Creating\u2026':'Booting\u2026':Z?'Create & Boot':'Boot'})]})]})]})})};var n=r(d[0]),t=r(d[1]),o=r(d[2]);const l=/^[A-Za-z0-9._-]+$/,a='Allowed: a-z A-Z 0-9 . _ -';function s({children:t,active:l=!1}){return(0,n.jsx)("span",{style:{display:'block',marginBottom:4,fontFamily:o.font.mono,fontSize:11,fontWeight:l?600:400,letterSpacing:'0.06em',textTransform:'uppercase',color:l?o.text.default:o.text.tertiary},children:t})}function c({device:l,selected:a,onSelect:s}){const[c,u]=(0,t.useState)(!1);return(0,n.jsxs)("button",{type:"button","aria-pressed":a,onClick:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:{display:'flex',alignItems:'center',gap:12,width:'100%',padding:'9px 11px',border:'none',borderRadius:o.radius.lg,textAlign:'left',fontFamily:'inherit',cursor:'pointer',backgroundColor:a?o.bg.hover:c?o.bg.element:'transparent',transition:'background-color 150ms ease'},children:[(0,n.jsx)("span",{style:{display:'flex',alignItems:'center',justifyContent:'center',width:31,height:31,flex:'0 0 auto',borderRadius:o.radius.lg,backgroundColor:o.bg.element,color:a?o.text.default:o.icon.default},children:a?(0,n.jsx)(o.CheckIcon,{size:16}):(0,n.jsx)(o.SmartphoneIcon,{size:16})}),(0,n.jsxs)("span",{style:{display:'flex',flexDirection:'column',gap:2,minWidth:0},children:[(0,n.jsx)("span",{style:{fontSize:14,fontWeight:a?600:500,color:o.text.default,lineHeight:1.25},children:l.name}),(0,n.jsxs)("span",{style:{display:'flex',alignItems:'center',gap:6,fontSize:12,color:o.text.tertiary,lineHeight:1.25},children:[(0,n.jsx)("span",{style:{width:6,height:6,flex:'0 0 auto',borderRadius:'50%',backgroundColor:l.booted?o.icon.success:o.icon.quaternary}}),l.booted?'Booted \xb7 now':h(l.lastUsedAt)]})]}),(0,n.jsx)("span",{style:{marginLeft:'auto',flex:'0 0 auto',fontSize:11,color:o.text.secondary,backgroundColor:o.bg.element,borderRadius:o.radius.full,padding:'3px 9px',fontVariantNumeric:'tabular-nums',whiteSpace:'nowrap'},children:l.version})]})}function u({label:t,htmlFor:l,last:a,children:s}){return(0,n.jsxs)("div",{style:{display:'flex',alignItems:'center',justifyContent:'space-between',gap:12,padding:'11px 13px',borderBottom:a?void 0:`1px solid ${o.border.secondary}`},children:[(0,n.jsx)("label",{htmlFor:l,style:{display:'flex',flexDirection:'column',gap:2,fontSize:13,color:o.text.secondary,cursor:'pointer'},children:t}),s]})}function p({id:l,value:a,options:s,disabled:c,onChange:u,onActivate:p,trailing:x}){const[h,f]=(0,t.useState)(!1),b={width:'100%',boxSizing:'border-box',padding:'6px 28px 6px 10px',border:`1px solid ${o.border.default}`,borderRadius:o.radius.md,backgroundColor:o.bg.default,color:o.text.default,fontSize:16,fontFamily:'inherit',appearance:'none',WebkitAppearance:'none',MozAppearance:'none',outline:'none',cursor:'pointer',boxShadow:h?`0 0 0 3px ${o.bg.element}`:'none'};return(0,n.jsxs)("div",{style:{position:'relative',flex:'0 0 58%'},children:[(0,n.jsx)("select",{id:l,value:a,disabled:c,onChange:n=>u(n.currentTarget.value),onMouseDown:p,onFocus:()=>{f(!0),p()},onBlur:()=>f(!1),style:b,children:0===s.length?(0,n.jsx)("option",{value:"",children:"\u2014"}):s.map(t=>(0,n.jsx)("option",{value:t.value,children:t.label},t.value))}),(0,n.jsx)("span",{style:{position:'absolute',right:10,top:'50%',transform:'translateY(-50%)',pointerEvents:'none',display:'flex',color:o.icon.secondary},children:x})]})}function x(n,t,o){const l='android'===o?n.trim().replace(/[^A-Za-z0-9._-]+/g,'_').replace(/^_+|_+$/g,''):n;if(!l)return'';const a=new Set(t.map(n=>n.name));if(!a.has(l))return l;let s=2;const c='android'===o?'_':' ';for(;a.has(`${l}${c}${s}`);)s++;return`${l}${c}${s}`}function h(n){if(!n)return'Idle';const t=Date.now()-n,o=Math.round(t/6e4);if(o<1)return'now';if(o<60)return`${o}m ago`;const l=Math.round(o/60);if(l<24)return`${l}h ago`;const a=Math.round(l/24);if(a<7)return`${a} day${1===a?'':'s'} ago`;const s=Math.round(a/7);if(s<5)return`${s} week${1===s?'':'s'} ago`;const c=Math.round(a/30);return`${c} month${1===c?'':'s'} ago`}},296,[151,38,294]);
353
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogSidebar=function({onToggle:h,client:v,streamMode:f,httpCodec:S,streamModeAvailability:b,onStreamModeChange:j,onHttpCodecChange:y,width:C=400}){return(0,t.jsxs)("aside",{style:{display:'flex',flexDirection:'column',width:`min(${C}px, 100vw)`,flexShrink:0,height:'100vh',boxSizing:'border-box',gap:12,padding:'32px 24px',overflow:'hidden'},children:[h&&(0,t.jsx)("div",{style:{display:'flex',alignItems:'center',justifyContent:'flex-start'},children:(0,t.jsx)(n.SidebarToggle,{side:"right",onClick:h})}),(0,t.jsxs)("div",{style:{display:'flex',flex:1,minHeight:0,flexDirection:'column',overflowX:'hidden',overflowY:'auto'},children:[(0,t.jsx)(l.CurrentAppSection,{client:v}),v?.capabilities.deviceSettings&&(0,t.jsx)(s.DeviceOptionsSection,{client:v}),v?.capabilities.activity&&(0,t.jsx)(o.ActivitySection,{client:v}),v?.capabilities.events&&(0,t.jsx)(c.EventsSection,{client:v}),v?.streamCapabilities&&(0,t.jsx)(p.StreamOptionsSection,{client:v,streamMode:f,httpCodec:S,streamModeAvailability:b,onStreamModeChange:j,onHttpCodecChange:y}),(0,t.jsx)(x.LogsSection,{client:v})]})]})};var t=r(d[0]),n=r(d[1]),o=r(d[2]),l=r(d[3]),s=r(d[4]),c=r(d[5]),x=r(d[6]),p=r(d[7])},297,[151,294,298,300,302,305,309,310]);
367
+ __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.RecentDevicesModal=function({open:h,onClose:f,kind:b,devices:v,options:y,onAdd:j}){const w='simulator'===b?'ios':'android',C=b,S=`Add a${'emulator'===b?'n':''} ${C}`,$=(0,t.useMemo)(()=>[...v].sort((n,t)=>(t.lastUsedAt??0)-(n.lastUsedAt??0)),[v]),[k,z]=(0,t.useState)({kind:'new'}),[F,A]=(0,t.useState)(''),[D,M]=(0,t.useState)(''),[_,I]=(0,t.useState)(''),[R,B]=(0,t.useState)(!1),[N,T]=(0,t.useState)(!1),[O,U]=(0,t.useState)(!1),[E,W]=(0,t.useState)(null);(0,t.useEffect)(()=>{if(!h)return;const n=y.runtimes[0],t=n?.models[0];A(n?.value??''),M(t?.value??''),I(x(t?.label??'',$,w)),B(!1),T(!1),U(!1),W(null),z($.length?{kind:'recent',id:$[0].id}:{kind:'new'})},[h,y]);const Z='new'===k.kind,H='recent'===k.kind?$.find(n=>n.id===k.id):void 0,q=(0,t.useMemo)(()=>{const n=new Map;for(const t of y.runtimes)for(const o of t.models)n.has(o.value)||n.set(o.value,o);return[...n.values()].sort((n,t)=>n.label.localeCompare(t.label,void 0,{numeric:!0}))},[y.runtimes]),L='android'===w?y.runtimes.filter(n=>n.models.some(n=>n.value===D)):y.runtimes,P=L.find(n=>n.value===F),V='android'===w?q:P?.models??[],Y=P?.models.find(n=>n.value===D),G=()=>{z({kind:'new'}),W(null)};function J(n){const t=y.runtimes.find(t=>t.value===n);if(A(n),G(),'ios'===w){const n=t?.models[0];M(n?.value??''),R||I(x(n?.label??'',$,w))}}function K(n){M(n),G();const t=V.find(t=>t.value===n);if('android'===w){const t=y.runtimes.find(t=>t.models.some(t=>t.value===n));A(t?.value??'')}R||I(x(t?.label??'',$,w))}const Q=_.trim(),X=Q.length>0&&('android'!==w||l.test(Q)),ee='android'===w&&R&&Q.length>0&&!l.test(Q),ne=`new-${w}-device-name-hint`,te=Z?X&&F.length>0&&D.length>0:!!H;return(0,n.jsx)(o.DialogRoot,{open:h,onOpenChange:n=>{n||f()},children:(0,n.jsxs)(o.DialogContent,{children:[(0,n.jsx)(o.DialogTitle,{title:S}),(0,n.jsxs)("form",{onSubmit:async function(n){if(n.preventDefault(),te&&!O){U(!0),W(null);try{const n=Z&&P&&Y?{kind:'new',device:{platform:w,name:Q,runtime:P.value,deviceType:Y.value,version:P.label,supported:Y.supported,deviceFrame:Y.deviceFrame}}:{kind:'recent',device:H},t=await j(n);t.ok?f():W(t.error)}catch(n){W(n instanceof Error?n.message:String(n))}finally{U(!1)}}},children:[(0,n.jsxs)(o.DialogContentContainer,{children:[(0,n.jsx)(s,{children:"Recents"}),(0,n.jsx)("div",{style:{display:'flex',flexDirection:'column',gap:3},children:0===$.length?(0,n.jsxs)("p",{style:{margin:0,padding:'2px 2px 6px 2px',fontSize:13,color:o.text.tertiary},children:["No recent ",C,"s."]}):$.map(t=>(0,n.jsx)(c,{device:t,selected:'recent'===k.kind&&k.id===t.id,onSelect:()=>{z({kind:'recent',id:t.id}),W(null)}},t.id))}),(0,n.jsxs)("div",{style:{marginTop:10},children:[(0,n.jsxs)(s,{active:Z,children:["New ",C]}),(0,n.jsx)("div",{onClick:G,style:{borderRadius:o.radius.lg,overflow:'hidden',backgroundColor:o.bg.subtle,border:`1px solid ${Z?o.border.default:o.border.secondary}`,transition:'border-color 150ms ease'},children:0===y.runtimes.length?(0,n.jsxs)("p",{style:{margin:0,padding:13,color:o.text.tertiary,fontSize:13},children:["No usable ",'ios'===w?'iOS runtimes':'Android system images'," were found on this host."]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{label:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"Name"}),'android'===w&&(0,n.jsx)("span",{id:ne,style:{color:ee?o.text.danger:o.text.tertiary,fontSize:11,lineHeight:1.3},children:a})]}),htmlFor:`new-${w}-device-name`,last:!1,children:(0,n.jsx)("div",{style:{flex:'0 0 58%'},children:(0,n.jsx)("input",{id:`new-${w}-device-name`,type:"text",value:_,placeholder:Y?.label||`New ${C}`,autoComplete:"off",spellCheck:!1,pattern:'android'===w?'[A-Za-z0-9._-]+':void 0,title:'android'===w?a:void 0,"aria-invalid":!!ee||void 0,"aria-describedby":'android'===w?ne:void 0,disabled:O,onChange:n=>{return t=n.currentTarget.value,I(t),B(!0),void G();var t},onFocus:()=>{T(!0),G()},onBlur:()=>T(!1),style:{width:'100%',boxSizing:'border-box',padding:'6px 10px',border:`1px solid ${ee?o.border.danger:o.border.default}`,borderRadius:o.radius.md,backgroundColor:o.bg.default,color:Z?o.text.default:o.text.tertiary,caretColor:o.text.default,fontSize:16,fontFamily:'inherit',outline:'none',boxShadow:N?`0 0 0 3px ${o.bg.element}`:'none'}})})}),'android'===w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{label:"Model",htmlFor:`new-${w}-model`,last:!1,children:(0,n.jsx)(p,{id:`new-${w}-model`,value:D,options:V,disabled:O,onChange:K,onActivate:G,trailing:(0,n.jsx)(o.ChevronsUpDownIcon,{size:14,color:o.icon.secondary})})}),(0,n.jsx)(u,{label:"OS version",htmlFor:`new-${w}-runtime`,last:!0,children:(0,n.jsx)(p,{id:`new-${w}-runtime`,value:F,options:L,disabled:O,onChange:J,onActivate:G,trailing:(0,n.jsx)(o.ChevronDownIcon,{size:14,color:o.icon.secondary})})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{label:"OS version",htmlFor:`new-${w}-runtime`,last:!1,children:(0,n.jsx)(p,{id:`new-${w}-runtime`,value:F,options:L,disabled:O,onChange:J,onActivate:G,trailing:(0,n.jsx)(o.ChevronDownIcon,{size:14,color:o.icon.secondary})})}),(0,n.jsx)(u,{label:"Model",htmlFor:`new-${w}-model`,last:!0,children:(0,n.jsx)(p,{id:`new-${w}-model`,value:D,options:V,disabled:O,onChange:K,onActivate:G,trailing:(0,n.jsx)(o.ChevronsUpDownIcon,{size:14,color:o.icon.secondary})})})]})]})})]}),E&&(0,n.jsx)("p",{role:"alert",style:{margin:'12px 0 0',padding:'9px 11px',border:`1px solid ${o.border.danger}`,borderRadius:o.radius.lg,backgroundColor:o.bg.danger,color:o.text.danger,fontSize:13,whiteSpace:'pre-wrap'},children:E})]}),(0,n.jsxs)(o.DialogFooter,{children:[(0,n.jsx)(o.Button,{type:"button",theme:"quaternary",disabled:O,onClick:f,children:"Cancel"}),(0,n.jsx)(o.Button,{type:"submit",theme:"primary",disabled:!te||O,children:O?Z?'Creating\u2026':'Booting\u2026':Z?'Create & Boot':'Boot'})]})]})]})})};var n=r(d[0]),t=r(d[1]),o=r(d[2]);const l=/^[A-Za-z0-9._-]+$/,a='Allowed: a-z A-Z 0-9 . _ -';function s({children:t,active:l=!1}){return(0,n.jsx)("span",{style:{display:'block',marginBottom:4,fontFamily:o.font.mono,fontSize:11,fontWeight:l?600:400,letterSpacing:'0.06em',textTransform:'uppercase',color:l?o.text.default:o.text.tertiary},children:t})}function c({device:l,selected:a,onSelect:s}){const[c,u]=(0,t.useState)(!1);return(0,n.jsxs)("button",{type:"button","aria-pressed":a,onClick:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:{display:'flex',alignItems:'center',gap:12,width:'100%',padding:'9px 11px',border:'none',borderRadius:o.radius.lg,textAlign:'left',fontFamily:'inherit',cursor:'pointer',backgroundColor:a?o.bg.hover:c?o.bg.element:'transparent',transition:'background-color 150ms ease'},children:[(0,n.jsx)("span",{style:{display:'flex',alignItems:'center',justifyContent:'center',width:31,height:31,flex:'0 0 auto',borderRadius:o.radius.lg,backgroundColor:o.bg.element,color:a?o.text.default:o.icon.default},children:a?(0,n.jsx)(o.CheckIcon,{size:16}):(0,n.jsx)(o.SmartphoneIcon,{size:16})}),(0,n.jsxs)("span",{style:{display:'flex',flexDirection:'column',gap:2,minWidth:0},children:[(0,n.jsx)("span",{style:{fontSize:14,fontWeight:a?600:500,color:o.text.default,lineHeight:1.25},children:l.name}),(0,n.jsxs)("span",{style:{display:'flex',alignItems:'center',gap:6,fontSize:12,color:o.text.tertiary,lineHeight:1.25},children:[(0,n.jsx)("span",{style:{width:6,height:6,flex:'0 0 auto',borderRadius:'50%',backgroundColor:l.booted?o.icon.success:o.icon.quaternary}}),l.booted?'Booted \xb7 now':h(l.lastUsedAt)]})]}),(0,n.jsx)("span",{style:{marginLeft:'auto',flex:'0 0 auto',fontSize:11,color:o.text.secondary,backgroundColor:o.bg.element,borderRadius:o.radius.full,padding:'3px 9px',fontVariantNumeric:'tabular-nums',whiteSpace:'nowrap'},children:l.version})]})}function u({label:t,htmlFor:l,last:a,children:s}){return(0,n.jsxs)("div",{style:{display:'flex',alignItems:'center',justifyContent:'space-between',gap:12,padding:'11px 13px',borderBottom:a?void 0:`1px solid ${o.border.secondary}`},children:[(0,n.jsx)("label",{htmlFor:l,style:{display:'flex',flexDirection:'column',gap:2,fontSize:13,color:o.text.secondary,cursor:'pointer'},children:t}),s]})}function p({id:l,value:a,options:s,disabled:c,onChange:u,onActivate:p,trailing:x}){const[h,f]=(0,t.useState)(!1),b={width:'100%',boxSizing:'border-box',padding:'6px 28px 6px 10px',border:`1px solid ${o.border.default}`,borderRadius:o.radius.md,backgroundColor:o.bg.default,color:o.text.default,fontSize:16,fontFamily:'inherit',appearance:'none',WebkitAppearance:'none',MozAppearance:'none',outline:'none',cursor:'pointer',boxShadow:h?`0 0 0 3px ${o.bg.element}`:'none'};return(0,n.jsxs)("div",{style:{position:'relative',flex:'0 0 58%'},children:[(0,n.jsx)("select",{id:l,value:a,disabled:c,onChange:n=>u(n.currentTarget.value),onMouseDown:p,onFocus:()=>{f(!0),p()},onBlur:()=>f(!1),style:b,children:0===s.length?(0,n.jsx)("option",{value:"",children:"\u2014"}):s.map(t=>(0,n.jsx)("option",{value:t.value,children:t.label},t.value))}),(0,n.jsx)("span",{style:{position:'absolute',right:10,top:'50%',transform:'translateY(-50%)',pointerEvents:'none',display:'flex',color:o.icon.secondary},children:x})]})}function x(n,t,o){const l='android'===o?n.trim().replace(/[^A-Za-z0-9._-]+/g,'_').replace(/^_+|_+$/g,''):n;if(!l)return'';const a=new Set(t.map(n=>n.name));if(!a.has(l))return l;let s=2;const c='android'===o?'_':' ';for(;a.has(`${l}${c}${s}`);)s++;return`${l}${c}${s}`}function h(n){if(!n)return'Idle';const t=Date.now()-n,o=Math.round(t/6e4);if(o<1)return'now';if(o<60)return`${o}m ago`;const l=Math.round(o/60);if(l<24)return`${l}h ago`;const a=Math.round(l/24);if(a<7)return`${a} day${1===a?'':'s'} ago`;const s=Math.round(a/7);if(s<5)return`${s} week${1===s?'':'s'} ago`;const c=Math.round(a/30);return`${c} month${1===c?'':'s'} ago`}},296,[151,38,294]);
368
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogSidebar=function({onToggle:p,client:S,device:b,showDeviceFrame:f=!0,onShowDeviceFrameChange:C,streamMode:j,httpCodec:y,streamModeAvailability:u,onStreamModeChange:w,onHttpCodecChange:D,width:M=400}){const F=b?{available:(0,x.isDeviceFrameProfileId)(b.deviceFrame),visible:f,onVisibleChange:C??(()=>{})}:void 0;return(0,t.jsxs)("aside",{style:{display:'flex',flexDirection:'column',width:`min(${M}px, 100vw)`,flexShrink:0,height:'100vh',boxSizing:'border-box',gap:12,padding:'32px 24px',overflow:'hidden'},children:[p&&(0,t.jsx)("div",{style:{display:'flex',alignItems:'center',justifyContent:'flex-start'},children:(0,t.jsx)(n.SidebarToggle,{side:"right",onClick:p})}),(0,t.jsxs)("div",{style:{display:'flex',flex:1,minHeight:0,flexDirection:'column',overflowX:'hidden',overflowY:'auto'},children:[(0,t.jsx)(s.CurrentAppSection,{client:S}),(S?.capabilities.deviceSettings||F)&&(0,t.jsx)(l.DeviceOptionsSection,{client:S,deviceFrame:F,showDeviceSettings:S?.capabilities.deviceSettings??!1}),S?.capabilities.activity&&(0,t.jsx)(o.ActivitySection,{client:S}),S?.capabilities.events&&(0,t.jsx)(c.EventsSection,{client:S}),S?.streamCapabilities&&(0,t.jsx)(h.StreamOptionsSection,{client:S,streamMode:j,httpCodec:y,streamModeAvailability:u,onStreamModeChange:w,onHttpCodecChange:D}),(0,t.jsx)(v.LogsSection,{client:S})]})]})};var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]),v=r(d[6]),h=r(d[7]),x=r(d[8])},297,[151,294,298,300,302,305,309,310,311]);
354
369
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.ActivitySection=function({client:o}){const[c,x]=(0,s.useState)(!1),b=o?.activity??null,v=b?.samples.slice(-60)??[],f=y(v),j=[{label:'CPU',color:l.text.info,values:v.map(t=>t.cpuPct)}],$=[{label:'Memory',color:l.text.preview,values:v.map(t=>t.memBytes)}],M=[{label:'Inbound',color:l.text.success,values:v.map(t=>t.netInBytesPerSec)},{label:'Outbound',color:l.text.warning,values:v.map(t=>t.netOutBytesPerSec)}],S=Math.max(100,100*(b?.hostCores??0));let k=null;b?.errored?k='Activity data is unavailable for this app.':f?b?.stale&&(k='Activity data is paused. Showing the most recent samples.'):k='Waiting for activity data\u2026';return(0,t.jsxs)(n.CollapsibleSection,{title:"Activity",open:c,onOpenChange:x,children:[k&&(0,t.jsx)("span",{role:b?.errored?'alert':void 0,style:Object.assign({},l.textSize.xs,{display:'block',padding:'2px 0 8px',color:l.text.tertiary}),children:k}),f&&(0,t.jsxs)("div",{style:{display:'flex',minWidth:0,flexDirection:'column',gap:8},children:[(0,t.jsx)(h,{title:"CPU",value:`${Math.round(f.cpuPct)}%`,description:b?.hostCores?`Up to ${100*b.hostCores}% across host cores`:void 0,series:j,maxValue:Math.max(S,p(j))}),(0,t.jsx)(h,{title:"Memory",value:u(f.memBytes),series:$,maxValue:p($)}),(0,t.jsx)(h,{title:"Network",value:`\u2193 ${u(f.netInBytesPerSec)}/s \xb7 \u2191 ${u(f.netOutBytesPerSec)}/s`,series:M,maxValue:p(M)})]})]})};var t=r(d[0]),s=r(d[1]),l=r(d[2]),n=r(d[3]);const o=100,c=28;function x(t,s){if(0===t.length)return'';const l=Math.max(s,1);return t.map((s,n)=>{const x=1===t.length?o:n/(t.length-1)*o,u=Number.isFinite(s)?Math.max(0,s):0,p=c-26*Math.min(1,u/l)-1;return`${0===n?'M':'L'} ${x.toFixed(2)} ${p.toFixed(2)}`}).join(' ')}function u(t){const s=Number.isFinite(t)?Math.max(0,t):0;return s<1024?`${Math.round(s)} B`:s<1048576?`${(s/1024).toFixed(s<10240?1:0)} KB`:s<1073741824?`${(s/1048576).toFixed(s<10485760?1:0)} MB`:`${(s/1073741824).toFixed(1)} GB`}function p(t,s=1){return Math.max(s,...t.flatMap(t=>t.values))}function h({title:s,value:n,description:u,series:p,maxValue:h}){return(0,t.jsxs)("div",{style:{padding:'9px 10px 8px',border:`1px solid ${l.border.secondary}`,borderRadius:l.radius.md,backgroundColor:l.bg.subtle},children:[(0,t.jsxs)("div",{style:{display:'flex',alignItems:'baseline',gap:8},children:[(0,t.jsx)("span",{style:Object.assign({},l.textSize.xs,{flex:1,fontWeight:500,color:l.text.default}),children:s}),(0,t.jsx)("span",{style:Object.assign({},l.textSize.xs,{color:l.text.secondary}),children:n})]}),u&&(0,t.jsx)("span",{style:Object.assign({},l.textSize['2xs'],{display:'block',color:l.text.tertiary}),children:u}),(0,t.jsxs)("svg",{role:"img","aria-label":`${s}: ${n}`,viewBox:`0 0 ${o} ${c}`,preserveAspectRatio:"none",style:{display:'block',width:'100%',height:38,marginTop:7},children:[(0,t.jsx)("line",{x1:"0",y1:14,x2:o,y2:14,stroke:l.border.secondary,strokeWidth:"0.5",vectorEffect:"non-scaling-stroke"}),p.map(s=>(0,t.jsx)("path",{d:x(s.values,h),fill:"none",stroke:s.color,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"},s.label))]}),p.length>1&&(0,t.jsx)("div",{style:{display:'flex',gap:12,marginTop:2},children:p.map(s=>(0,t.jsx)("span",{style:Object.assign({},l.textSize['2xs'],{color:s.color,whiteSpace:'nowrap'}),children:s.label},s.label))})]})}function y(t){return t.at(-1)??null}},298,[151,38,294,299]);
355
370
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.CollapsibleSection=function({title:s,open:l,onOpenChange:c,children:x}){const b=(0,n.useId)();return(0,t.jsxs)("section",{"aria-label":s,style:{minWidth:0,borderBottom:`1px solid ${o.border.secondary}`},children:[(0,t.jsxs)("button",{type:"button","aria-expanded":l,"aria-controls":b,onClick:()=>c(!l),style:{display:'flex',width:'100%',minHeight:40,alignItems:'center',justifyContent:'space-between',gap:12,padding:'8px 0',boxSizing:'border-box',border:0,backgroundColor:'transparent',color:o.text.tertiary,fontFamily:'inherit',textAlign:'left',cursor:'pointer'},children:[(0,t.jsx)("span",{style:Object.assign({},o.textSize.xs,{color:o.text.tertiary,fontWeight:500}),children:s}),(0,t.jsx)(o.ChevronDownIcon,{size:14,color:o.icon.tertiary,style:{flexShrink:0,transform:l?'rotate(0deg)':'rotate(-90deg)',transition:'transform 160ms cubic-bezier(.4, 0, .2, 1)'}})]}),l&&(0,t.jsx)("div",{id:b,style:{minWidth:0,paddingBottom:8},children:x})]})};var t=r(d[0]),n=r(d[1]),o=r(d[2])},299,[151,38,294]);
356
371
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.CurrentAppSection=function({client:s}){const h=s?.foregroundApp??null,p=h?h.label??h.id:o,b=[{label:'App ID',value:h?.id??o},{label:'Version',value:h?.version??o},{label:'Build number',value:h?.build??o},'android'===s?.platform?{label:'Minimum SDK',value:null!=h?.minSdk?String(h.minSdk):o}:{label:'Minimum iOS',value:h?.minOS??o},{label:'PID',value:null!=h?.pid?String(h.pid):o}];return(0,t.jsxs)("section",{"aria-label":"Current app",style:{padding:'18px 0 20px'},children:[(0,t.jsxs)("div",{style:{display:'flex',alignItems:'flex-start',justifyContent:'space-between',gap:16,marginBottom:18},children:[(0,t.jsxs)("div",{style:{display:'flex',flexDirection:'column',gap:4,minWidth:0},children:[(0,t.jsx)(n.SidebarSectionHeading,{children:"Current app"}),(0,t.jsxs)("div",{style:{display:'flex',flexWrap:'wrap',alignItems:'center',gap:6},children:[(0,t.jsx)("span",{title:p,style:Object.assign({},l.heading.xl,{color:h?l.text.default:l.text.tertiary,overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap'}),children:p}),h?.isReactNative&&(0,t.jsx)(x,{color:"info",children:"React Native"}),h?.debuggable&&(0,t.jsx)(x,{color:"warning",children:"debuggable"})]})]}),(0,t.jsx)(c,{iconDataUrl:h?.iconDataUrl})]}),(0,t.jsx)("dl",{style:{display:'grid',gridTemplateColumns:'auto minmax(0, 1fr)',rowGap:4,columnGap:16,margin:0},children:b.map(l=>(0,t.jsx)(u,{detail:l},l.label))})]})};var t=r(d[0]),l=r(d[1]),n=r(d[2]);const s=52,o='unknown';function c({iconDataUrl:n}){return(0,t.jsx)("span",{"aria-hidden":"true",style:{display:'flex',alignItems:'center',justifyContent:'center',width:s,height:s,flexShrink:0,boxSizing:'border-box',overflow:'hidden',border:n?void 0:`1px solid ${l.border.default}`,borderRadius:l.radius.lg,backgroundColor:l.bg.element},children:n?(0,t.jsx)("img",{src:n,alt:"",width:s,height:s,style:{display:'block',width:'100%',height:'100%',objectFit:'cover'}}):(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",stroke:l.icon.quaternary}),(0,t.jsx)("path",{d:"M10 4v4h12",stroke:l.icon.quaternary})]})})}function u({detail:n}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{style:Object.assign({},l.textSize.xs,{color:l.text.tertiary}),children:n.label}),(0,t.jsx)("dd",{title:n.value,style:Object.assign({},l.textSize.xs,{minWidth:0,margin:0,color:l.text.default,fontFamily:l.font.mono,textAlign:'right',overflowWrap:'anywhere',fontVariantNumeric:'tabular-nums'}),children:n.value})]})}function x({color:n,children:s}){return(0,t.jsx)("span",{style:Object.assign({},l.textSize['2xs'],{color:l.text[n],background:l.bg[n],borderRadius:l.radius.full,padding:'0 8px',flexShrink:0}),children:s})}},300,[151,294,301]);
357
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarSectionHeading=function({children:n}){return(0,t.jsx)("span",{style:Object.assign({},o.textSize.xs,{display:"block",fontFamily:o.font.mono,color:o.text.tertiary}),children:n})},e.SidebarRow=function({label:n,children:l,borderBottom:s=!0,compact:c=!1}){return(0,t.jsxs)("div",{style:{display:"flex",flexWrap:c?"wrap":void 0,alignItems:"center",gap:c?12:16,height:c?void 0:51,minHeight:c?51:void 0,boxSizing:"border-box",padding:"11px 0",borderBottom:s?`1px solid ${o.border.secondary}`:void 0},children:[(0,t.jsx)("span",{style:Object.assign({},o.textSize.sm,{flex:1,fontWeight:500,color:o.text.default}),children:n}),l]})},e.SidebarSwitch=function({checked:n,disabled:l=!1,label:s,onChange:c}){return(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":n,"aria-label":s,disabled:l,onClick:()=>c(!n),style:{width:44,height:26,padding:3,boxSizing:"border-box",flexShrink:0,border:0,borderRadius:o.radius.full,backgroundColor:n?o.text.default:o.bg.selected,cursor:l?"default":"pointer",opacity:l?.5:1,transition:"background-color 180ms cubic-bezier(.4, 0, .2, 1)"},children:(0,t.jsx)("span",{style:{display:"block",width:20,height:20,borderRadius:o.radius.full,backgroundColor:o.bg.default,boxShadow:o.shadow.xs,transform:`translateX(${n?18:0}px)`,transition:"transform 180ms cubic-bezier(.4, 0, .2, 1)"}})})};var t=r(d[0]),o=r(d[1])},301,[151,294]);
358
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceOptionsSection=function({client:j}){const[C,y]=(0,o.useState)(!0),L=j?.deviceSettings??null,R=j?.deviceSettingsPending??k,q=j?.platform;function z(l){return null===L?'appearance'===l||'ios'===q:void 0!==L[l]&&'unsupported'!==L[l]}function B(l){return L?.[l]??u[l]}function O(l,o){const t=null===L||R.has(l);return o.map(l=>Object.assign({},l,{disabled:t}))}function X(l,o){null===L||R.has(l)||j?.setDeviceSetting(l,o)}const D='ios'===j?.platform,_=w.filter(z);function G(l){return D||_.at(-1)!==l}return(0,l.jsxs)(n.CollapsibleSection,{title:"Device options",open:C,onOpenChange:y,children:[z('appearance')&&(0,l.jsx)(c.SidebarRow,{compact:!0,label:"Appearance",borderBottom:G('appearance'),children:(0,l.jsx)(t.SegmentedControl,{ariaLabel:"Appearance",options:O('appearance',b),value:B('appearance'),onChange:l=>X('appearance',l)})}),'ios'===q&&z('liquid-glass')&&(0,l.jsx)(c.SidebarRow,{compact:!0,label:"Liquid glass",borderBottom:G('liquid-glass'),children:(0,l.jsx)(t.SegmentedControl,{ariaLabel:"Liquid glass",options:O('liquid-glass',v),value:B('liquid-glass'),onChange:l=>X('liquid-glass',l)})}),'ios'===q&&z('color-filter')&&(0,l.jsx)(c.SidebarRow,{compact:!0,label:"Color filter",borderBottom:G('color-filter'),children:(0,l.jsx)(t.SegmentedControl,{ariaLabel:"Color filter",options:O('color-filter',f),value:B('color-filter'),onChange:l=>X('color-filter',l)})}),'android'===q&&z('network')&&(0,l.jsx)(c.SidebarRow,{compact:!0,label:"Network",borderBottom:G('network'),children:(0,l.jsx)(t.SegmentedControl,{ariaLabel:"Network",options:O('network',p),value:B('network'),onChange:l=>X('network',l)})}),('ios'===q||'android'===q)&&z('text-size')&&(0,l.jsx)(c.SidebarRow,{compact:!0,label:"Text size",borderBottom:G('text-size'),children:(0,l.jsx)(t.SegmentedControl,{ariaLabel:"Text size",options:O('text-size','android'===q?h:x),value:B('text-size'),onChange:l=>X('text-size',l)})}),'ios'===q&&S.map(({key:o,label:t})=>z(o)?(0,l.jsx)(c.SidebarRow,{label:t,borderBottom:G(o),children:(0,l.jsx)(c.SidebarSwitch,{checked:'on'===B(o),disabled:null===L||R.has(o),label:t,onChange:l=>X(o,l?'on':'off')})},o):null),'ios'===j?.platform&&(0,l.jsx)(s.KeyboardSection,{client:j})]})};var l=r(d[0]),o=r(d[1]),t=r(d[2]),n=r(d[3]),s=r(d[4]),c=r(d[5]);const u={appearance:'light',network:'on','liquid-glass':'clear','color-filter':'none','text-size':'large','reduce-motion':'off','increase-contrast':'off','show-borders':'off','reduce-transparency':'off',voiceover:'off'},b=[{value:'light',label:'Light'},{value:'dark',label:'Dark'}],p=[{value:'on',label:'On'},{value:'off',label:'Off'}],v=[{value:'clear',label:'Clear'},{value:'tinted',label:'Tinted'}],f=[{value:'none',label:'None'},{value:'grayscale',label:'Gray'},{value:'red-green',label:'R-G'},{value:'green-red',label:'G-R'},{value:'blue-yellow',label:'B-Y'}],x=[{value:'extra-small',label:'XS'},{value:'small',label:'S'},{value:'medium',label:'M'},{value:'large',label:'L'},{value:'extra-large',label:'XL'},{value:'extra-extra-large',label:'2XL'},{value:'extra-extra-extra-large',label:'3XL'}],h=[{value:'small',label:'S'},{value:'medium',label:'M'},{value:'large',label:'L'},{value:'extra-large',label:'XL'}],S=[{key:'reduce-motion',label:'Reduce motion'},{key:'increase-contrast',label:'Increase contrast'},{key:'show-borders',label:'Show borders'},{key:'reduce-transparency',label:'Reduce transparency'},{key:'voiceover',label:'VoiceOver'}],w=['appearance','network','liquid-glass','color-filter','text-size',...S.map(({key:l})=>l)],k=new Set},302,[151,38,294,299,303,301]);
372
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarSectionHeading=function({children:n}){return(0,t.jsx)("span",{style:Object.assign({},o.textSize.xs,{display:"block",fontFamily:o.font.mono,color:o.text.tertiary}),children:n})},e.SidebarRow=function({label:n,children:s,borderBottom:l=!0,compact:c=!1,description:b,descriptionId:x}){return(0,t.jsxs)("div",{style:{display:"flex",flexWrap:c?"wrap":void 0,alignItems:"center",gap:c?12:16,height:c||b?void 0:51,minHeight:c||b?51:void 0,boxSizing:"border-box",padding:"11px 0",borderBottom:l?`1px solid ${o.border.secondary}`:void 0},children:[b?(0,t.jsxs)("span",{style:{display:"flex",flex:1,minWidth:0,flexDirection:"column",gap:2},children:[(0,t.jsx)("span",{style:Object.assign({},o.textSize.sm,{fontWeight:500,color:o.text.default}),children:n}),(0,t.jsx)("span",{id:x,style:Object.assign({},o.textSize.xs,{color:o.text.secondary}),children:b})]}):(0,t.jsx)("span",{style:Object.assign({},o.textSize.sm,{flex:1,fontWeight:500,color:o.text.default}),children:n}),s]})},e.SidebarSwitch=function({checked:n,disabled:s=!1,label:l,descriptionId:c,onChange:b}){return(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":n,"aria-label":l,"aria-describedby":c,disabled:s,onClick:()=>b(!n),style:{width:44,height:26,padding:3,boxSizing:"border-box",flexShrink:0,border:0,borderRadius:o.radius.full,backgroundColor:n?o.text.default:o.bg.selected,cursor:s?"default":"pointer",opacity:s?.5:1,transition:"background-color 180ms cubic-bezier(.4, 0, .2, 1)"},children:(0,t.jsx)("span",{style:{display:"block",width:20,height:20,borderRadius:o.radius.full,backgroundColor:o.bg.default,boxShadow:o.shadow.xs,transform:`translateX(${n?18:0}px)`,transition:"transform 180ms cubic-bezier(.4, 0, .2, 1)"}})})};var t=r(d[0]),o=r(d[1])},301,[151,294]);
373
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NO_DEVICE_FRAME_DESCRIPTION",{enumerable:!0,get:function(){return C}}),e.DeviceOptionsSection=function({client:j,deviceFrame:y,showDeviceSettings:L=!0}){const[R,O]=(0,o.useState)(!0),q=(0,o.useId)(),z=j?.deviceSettings??null,B=j?.deviceSettingsPending??k,D=j?.platform;function I(l){return null===z?'appearance'===l||'ios'===D:void 0!==z[l]&&'unsupported'!==z[l]}function _(l){return z?.[l]??b[l]}function N(l,o){const t=null===z||B.has(l);return o.map(l=>Object.assign({},l,{disabled:t}))}function X(l,o){null===z||B.has(l)||j?.setDeviceSetting(l,o)}const E=L&&'ios'===j?.platform,M=L?w.filter(I):[];function P(l){return Boolean(y)||E||M.at(-1)!==l}return(0,l.jsxs)(n.CollapsibleSection,{title:"Device options",open:R,onOpenChange:O,children:[L&&I('appearance')&&(0,l.jsx)(c.SidebarRow,{compact:!0,label:"Appearance",borderBottom:P('appearance'),children:(0,l.jsx)(t.SegmentedControl,{ariaLabel:"Appearance",options:N('appearance',u),value:_('appearance'),onChange:l=>X('appearance',l)})}),L&&'ios'===D&&I('liquid-glass')&&(0,l.jsx)(c.SidebarRow,{compact:!0,label:"Liquid glass",borderBottom:P('liquid-glass'),children:(0,l.jsx)(t.SegmentedControl,{ariaLabel:"Liquid glass",options:N('liquid-glass',p),value:_('liquid-glass'),onChange:l=>X('liquid-glass',l)})}),L&&'ios'===D&&I('color-filter')&&(0,l.jsx)(c.SidebarRow,{compact:!0,label:"Color filter",borderBottom:P('color-filter'),children:(0,l.jsx)(t.SegmentedControl,{ariaLabel:"Color filter",options:N('color-filter',f),value:_('color-filter'),onChange:l=>X('color-filter',l)})}),L&&'android'===D&&I('network')&&(0,l.jsx)(c.SidebarRow,{compact:!0,label:"Network",borderBottom:P('network'),children:(0,l.jsx)(t.SegmentedControl,{ariaLabel:"Network",options:N('network',v),value:_('network'),onChange:l=>X('network',l)})}),L&&('ios'===D||'android'===D)&&I('text-size')&&(0,l.jsx)(c.SidebarRow,{compact:!0,label:"Text size",borderBottom:P('text-size'),children:(0,l.jsx)(t.SegmentedControl,{ariaLabel:"Text size",options:N('text-size','android'===D?x:h),value:_('text-size'),onChange:l=>X('text-size',l)})}),L&&'ios'===D&&S.map(({key:o,label:t})=>I(o)?(0,l.jsx)(c.SidebarRow,{label:t,borderBottom:P(o),children:(0,l.jsx)(c.SidebarSwitch,{checked:'on'===_(o),disabled:null===z||B.has(o),label:t,onChange:l=>X(o,l?'on':'off')})},o):null),y&&(0,l.jsx)(c.SidebarRow,{label:"Show device frame",description:y.available?void 0:C,descriptionId:y.available?void 0:q,borderBottom:E,children:(0,l.jsx)(c.SidebarSwitch,{checked:y.available&&y.visible,disabled:!y.available,label:"Show device frame",descriptionId:y.available?void 0:q,onChange:y.onVisibleChange})}),E&&j&&(0,l.jsx)(s.KeyboardSection,{client:j})]})};var l=r(d[0]),o=r(d[1]),t=r(d[2]),n=r(d[3]),s=r(d[4]),c=r(d[5]);const b={appearance:'light',network:'on','liquid-glass':'clear','color-filter':'none','text-size':'large','reduce-motion':'off','increase-contrast':'off','show-borders':'off','reduce-transparency':'off',voiceover:'off'},u=[{value:'light',label:'Light'},{value:'dark',label:'Dark'}],v=[{value:'on',label:'On'},{value:'off',label:'Off'}],p=[{value:'clear',label:'Clear'},{value:'tinted',label:'Tinted'}],f=[{value:'none',label:'None'},{value:'grayscale',label:'Gray'},{value:'red-green',label:'R-G'},{value:'green-red',label:'G-R'},{value:'blue-yellow',label:'B-Y'}],h=[{value:'extra-small',label:'XS'},{value:'small',label:'S'},{value:'medium',label:'M'},{value:'large',label:'L'},{value:'extra-large',label:'XL'},{value:'extra-extra-large',label:'2XL'},{value:'extra-extra-extra-large',label:'3XL'}],x=[{value:'small',label:'S'},{value:'medium',label:'M'},{value:'large',label:'L'},{value:'extra-large',label:'XL'}],S=[{key:'reduce-motion',label:'Reduce motion'},{key:'increase-contrast',label:'Increase contrast'},{key:'show-borders',label:'Show borders'},{key:'reduce-transparency',label:'Reduce transparency'},{key:'voiceover',label:'VoiceOver'}],w=['appearance','network','liquid-glass','color-filter','text-size',...S.map(({key:l})=>l)],k=new Set,C='No device frame for selected device.'},302,[151,38,294,299,303,301]);
359
374
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.KeyboardSection=function({client:l}){const c=l.hardwareKeyboardConnected;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.SidebarRow,{label:"Hardware keyboard",children:(0,o.jsx)(n.SidebarActionButton,{disabled:null===c,onClick:()=>l.setHardwareKeyboardConnected(!c),children:"Toggle"})}),(0,o.jsx)(t.SidebarRow,{label:"Software keyboard",borderBottom:!1,children:(0,o.jsx)(n.SidebarActionButton,{disabled:null===c,onClick:()=>l.toggleSoftwareKeyboard(),children:"Toggle"})})]})};var o=r(d[0]),n=r(d[1]),t=r(d[2])},303,[151,304,301]);
360
375
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarActionButton=function({children:l,disabled:o,onClick:s}){return(0,n.jsx)(t.Button,{size:"2xs",theme:"secondary",disabled:o,onClick:s,style:{flexShrink:0,borderRadius:t.radius.full,paddingInline:14,fontWeight:600},children:l})};var n=r(d[0]),t=r(d[1])},304,[151,294]);
361
376
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.EventsSection=function({client:v}){const[u,l]=(0,n.useState)(!1),h=v?.events,E=v?.eventsEnabled??!1,p=v?.attachEvents,S=v?.detachEvents,b=(0,n.useMemo)(()=>(h??[]).map(t=>({id:t.id,source:t.source,message:t.message})),[h]);return(0,n.useEffect)(()=>(u?p?.():S?.(),()=>S?.()),[p,S,u]),(0,t.jsxs)(s.CollapsibleSection,{title:"Events",open:u,onOpenChange:l,children:[(0,t.jsx)(o.LogControls,{count:h?.length??0,running:E,unit:"event",onClear:()=>v?.clearEvents(),onStart:()=>v?.attachEvents(),onStop:()=>v?.detachEvents()}),(0,t.jsx)(c.LogList,{logs:b,enabled:E,emptyMessage:E?'No events yet. Touch or interact with the device to see them here.':'Events are paused. Press Start to observe device events.'})]})};var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4])},305,[151,38,299,306,307]);
@@ -364,42 +379,46 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
364
379
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogRow=function({entry:n}){const o=n.message.length>68?`${n.message.slice(0,68)}\u2026`:n.message;return(0,s.jsxs)("div",{style:{display:'flex',alignItems:'flex-start',gap:8,padding:'8px 0',borderBottom:`1px solid ${t.border.secondary}`},children:[(0,s.jsx)("span",{style:Object.assign({},t.textSize['2xs'],{padding:'1px 5px',borderRadius:t.radius.sm,backgroundColor:t.bg.element,fontFamily:t.font.mono,color:t.text.tertiary,flexShrink:0,marginTop:1}),children:n.source}),(0,s.jsx)("span",{title:n.message,style:Object.assign({},t.textSize.xs,{flex:1,minWidth:0,color:t.text.secondary,overflowWrap:'anywhere'}),children:o})]})};var s=r(d[0]),t=r(d[1])},308,[151,294]);
365
380
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LogsSection=function({client:c}){const[u,L]=(0,t.useState)(!1),h=c?.logs??[],f=c?.logsEnabled??!1,p=c?.attachLogs,S=c?.detachLogs;return(0,t.useEffect)(()=>(u?p?.():S?.(),()=>S?.()),[p,S,u]),(0,o.jsxs)(n.CollapsibleSection,{title:"Logs",open:u,onOpenChange:L,children:[(0,o.jsx)(s.LogControls,{count:h.length,running:f,onClear:()=>c?.clearLogs(),onStart:()=>c?.attachLogs(),onStop:()=>c?.detachLogs()}),(0,o.jsx)(l.LogList,{logs:h,enabled:f})]})};var o=r(d[0]),t=r(d[1]),n=r(d[2]),s=r(d[3]),l=r(d[4])},309,[151,38,299,306,307]);
366
381
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamOptionsSection=function({client:y,defaultOpen:P=!1,streamMode:R="mjpeg",httpCodec:M,streamModeAvailability:f=c,onStreamModeChange:F,onHttpCodecChange:T}){const[A,O]=(0,t.useState)(P),H=y.streamCapabilities??p,L={mjpeg:f.mjpeg&&H.modeAvailability.mjpeg,h264:f.h264&&H.modeAvailability.h264,webrtc:f.webrtc&&H.modeAvailability.webrtc},W=L[R]?R:u.find(l=>L[l])??R,$='android'===y.platform?'websocket':'http',B='android'===y.platform?'WebSocket':'HTTP',E=[{value:$,label:B},{value:'webrtc',label:'WebRTC'}],G=h.filter(l=>H.httpCodecs.includes(l.value)),J=v.filter(l=>H.webRtcCodecs.includes(l.value)),V=y.streamSettings??s,N=!(null!==y.streamSettings)||y.streamSettingsPending,k='webrtc'===W?'webrtc':$,q=L.mjpeg||L.h264;function z(l){return'h264'===l?L.h264:'mjpeg'===l?L.mjpeg:q}const D=M??('mjpeg'===W?'mjpeg':'h264'===W?'h264':'auto'),Q='mjpeg'===W||'h264'===W?W:null,_=(Q&&H.httpCodecs.includes(Q)&&z(Q)?Q:void 0)??G.find(l=>z(l.value))?.value,I=H.httpCodecs.includes(D)&&z(D)?D:_??D,K=H.webRtcCodecs.includes(y.webRtcCodec)?y.webRtcCodec:J[0]?.value??y.webRtcCodec,U='webrtc'===k||L.h264&&'mjpeg'!==I;function X(l){return'mjpeg'===l?'mjpeg':L.h264?'h264':'mjpeg'}function Y(l,t){N||y.updateStreamSettings({[l]:t})}const Z=H.modeAvailability.h264&&!f.h264||H.modeAvailability.webrtc&&!f.webrtc,ee='android'===y.platform&&!H.modeAvailability.webrtc;return(0,l.jsxs)(o.CollapsibleSection,{title:"Stream options",open:A,onOpenChange:O,children:[(0,l.jsx)(b.SidebarRow,{label:"Transport",children:(0,l.jsx)(n.SegmentedControl,{ariaLabel:"Stream transport",options:E.map(l=>Object.assign({},l,{disabled:!F||('webrtc'===l.value?!L.webrtc:!q)})),value:k,onChange:function(l){F?.('webrtc'===l?'webrtc':X(I))}})}),G.length>0&&(0,l.jsx)(b.SidebarRow,{label:`${B} codec`,children:(0,l.jsx)(n.SegmentedControl,{ariaLabel:`${B} codec`,options:G.map(l=>Object.assign({},l,{disabled:'webrtc'===k||!T||!z(l.value)})),value:I,onChange:function(l){T?.(l),'webrtc'!==k&&F?.(X(l))}})}),J.length>0&&(0,l.jsx)(b.SidebarRow,{label:"WebRTC codec",borderBottom:y.capabilities.streamSettings,children:(0,l.jsx)(n.SegmentedControl,{ariaLabel:"WebRTC codec",options:J.map(l=>Object.assign({},l,{disabled:'webrtc'!==k||!L.webrtc})),value:K,onChange:l=>y.setWebRtcCodec(l)})}),Z&&(0,l.jsx)("span",{style:Object.assign({},n.textSize.xs,{display:'block',padding:'0 0 8px',color:n.text.tertiary}),children:'android'===y.platform?'WebRTC requires localhost or HTTPS.':'H.264 and WebRTC require localhost or HTTPS. MJPEG remains available on insecure HTTP.'}),ee&&(0,l.jsx)("span",{style:Object.assign({},n.textSize.xs,{display:'block',padding:'0 0 8px',color:n.text.tertiary}),children:"Start the standalone server with --transport webrtc to enable WebRTC."}),y.capabilities.streamSettings&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.SidebarRow,{label:"Max size",children:(0,l.jsx)(n.Select,{ariaLabel:"Max size",value:String(V.maxDimension),options:C(V.maxDimension,j,l=>0===l?'Full':`${l} px`),disabled:N,onChange:l=>Y('maxDimension',Number(l))})}),(0,l.jsx)(b.SidebarRow,{label:"MJPEG FPS",children:(0,l.jsx)(n.Select,{ariaLabel:"MJPEG FPS",value:String(V.mjpegFps),options:C(V.mjpegFps,S,l=>`${l} FPS`),disabled:N||'http'!==k,onChange:l=>Y('mjpegFps',Number(l))})}),(0,l.jsx)(b.SidebarRow,{label:"MJPEG quality",children:(0,l.jsx)(n.Select,{ariaLabel:"MJPEG quality",value:String(V.mjpegQuality),options:C(V.mjpegQuality,x,l=>`${Math.round(100*l)}%`),disabled:N||'http'!==k,onChange:l=>Y('mjpegQuality',Number(l))})}),(0,l.jsx)(b.SidebarRow,{label:"Video FPS",children:(0,l.jsx)(n.Select,{ariaLabel:"Video FPS",value:String(V.h264Fps),options:C(V.h264Fps,S,l=>`${l} FPS`),disabled:N||!U,onChange:l=>Y('h264Fps',Number(l))})}),(0,l.jsx)(b.SidebarRow,{label:"Video bitrate",borderBottom:!1,children:(0,l.jsx)(n.Select,{ariaLabel:"Video bitrate",value:String(V.h264Bitrate),options:C(V.h264Bitrate,w,l=>l/1e6+" Mbps"),disabled:N||!U,onChange:l=>Y('h264Bitrate',Number(l))})})]})]})};var l=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),b=r(d[4]);const s={mjpegFps:30,mjpegQuality:.7,maxDimension:0,h264Bitrate:6e6,h264Fps:30},c={mjpeg:!0,h264:!0,webrtc:!0},p={modeAvailability:c,httpCodecs:['auto','h264','mjpeg'],webRtcCodecs:['h264','vp9','vp8']},u=['mjpeg','h264','webrtc'],h=[{value:'auto',label:'Auto'},{value:'h264',label:'H.264'},{value:'mjpeg',label:'MJPEG'}],v=[{value:'h264',label:'H.264'},{value:'vp9',label:'VP9'},{value:'vp8',label:'VP8'}],j=[{value:'0',label:'Full'},{value:'1920',label:'1920 px'},{value:'1600',label:'1600 px'},{value:'1280',label:'1280 px'},{value:'960',label:'960 px'},{value:'720',label:'720 px'}],S=['60','30','20','15','10','5'].map(l=>({value:l,label:`${l} FPS`})),x=[{value:'0.45',label:'45%'},{value:'0.55',label:'55%'},{value:'0.7',label:'70%'},{value:'0.85',label:'85%'},{value:'1',label:'100%'}],w=[{value:'1500000',label:'1.5 Mbps'},{value:'3000000',label:'3 Mbps'},{value:'6000000',label:'6 Mbps'},{value:'10000000',label:'10 Mbps'},{value:'16000000',label:'16 Mbps'}];function C(l,t,n){const o=String(l);return t.some(l=>l.value===o)?t:[{value:o,label:n(l)},...t]}},310,[151,38,294,299,301]);
367
- __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamPanel=function({device:p,client:u,agentInteraction:f,DeviceScreen:h,displayScreen:x,onShutdown:v,onRemove:b,framed:y=!0}){return(0,n.jsxs)("section",{style:{flex:1,minWidth:0,display:'flex',flexDirection:'column',alignItems:'center',justifyContent:'center',gap:40,padding:40,margin:y?'16px 8px':0,boxSizing:'border-box',backgroundColor:t.bg.default,border:y?`1px solid ${t.border.secondary}`:'none',borderRadius:y?t.radius.lg:0,boxShadow:y?t.shadow.sm:'none',overflow:'hidden'},children:[(0,n.jsxs)("div",{style:{display:'flex',flexDirection:'column',alignItems:'center',gap:20,width:'100%',minHeight:0},children:[(0,n.jsx)(o.DeviceTitle,{device:p,status:u.status},p.id),(0,n.jsx)(a.PhoneFrame,{platform:p.platform,client:u,agentInteraction:f,DeviceScreen:h,displayScreen:x})]}),(0,n.jsx)(c.StreamControls,{platform:p.platform,physical:p.physical,appearance:u.appearance,onToggleAppearance:()=>u.setAppearance('dark'===u.appearance?'light':'dark'),onHome:()=>u.pressButton('home'),onBack:()=>u.pressButton('back'),onRecents:()=>u.pressButton('recents'),onReload:()=>u.reload(),onRotate:()=>u.rotate(),onSave:async()=>{const n=await u.screenshot();n&&s(n,l(p.name))},onShutdown:v,onRemove:b})]})};var n=r(d[0]),t=r(d[1]),o=r(d[2]),a=r(d[3]),c=r(d[4]);function s(n,t){const o=URL.createObjectURL(n),a=document.createElement('a');a.href=o,a.download=t,document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(o),0)}function l(n){return`${n.trim().replace(/[^a-zA-Z0-9._-]+/g,'-').replace(/^-+|-+$/g,'')||'device'}-${(new Date).toISOString().replace(/[:.]/g,'-').replace(/Z$/,'')}.png`}},311,[151,294,312,313,316]);
368
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceTitle=function({device:s,status:c}){const[b,u]=(0,l.useState)(null),x=b===s.id,f=x?s.id:s.name,h=t[c];return(0,o.jsx)(n.Button,{theme:"tertiary",size:"2xs",onClick:()=>u(x?null:s.id),leftSlot:(0,o.jsx)("span",{title:f,style:{display:'block',flex:'1 1 auto',minWidth:0,overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap',fontFamily:x?n.font.mono:n.font.sans},children:f}),rightSlot:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{"aria-hidden":!0,style:{width:6,height:6,flexShrink:0,boxSizing:'content-box',border:`2px solid ${h.ringColor}`,borderRadius:n.radius.full,backgroundColor:h.dotColor}}),(0,o.jsx)("span",{"aria-live":"polite",style:{flexShrink:0,color:h.labelColor},children:h.label})]}),style:{maxWidth:'min(100%, 320px)',minWidth:0,flexShrink:0,boxSizing:'border-box',gap:6,paddingInline:12,borderWidth:.5,borderColor:n.border.default,borderRadius:n.radius.full}})};var o=r(d[0]),l=r(d[1]),n=r(d[2]);const t={idle:{label:'Offline',dotColor:n.icon.danger,ringColor:n.border.danger,labelColor:n.text.secondary},connecting:{label:'Starting',dotColor:n.icon.warning,ringColor:n.border.warning,labelColor:n.text.secondary},streaming:{label:'Live',dotColor:n.text.success,ringColor:n.border.success,labelColor:n.text.success},error:{label:'Error',dotColor:n.icon.danger,ringColor:n.border.danger,labelColor:n.text.secondary}}},312,[151,38,294]);
369
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PhoneFrame=function({platform:h,client:x,agentInteraction:b,DeviceScreen:y,displayScreen:j}){const[f,P]=(0,n.useState)(!1),[S,w]=(0,n.useState)(null),{ratio:F,radiusFraction:$,squircle:q}=v[h],O=x?j(x.screen):null,_=O&&O.height>0?O.width/O.height:F,I={width:`min(${p*Math.max(_,1)}px, calc((100vh - ${u}px) * ${_}), 100%)`,aspectRatio:`${_}`,containerType:'inline-size',position:'relative',isolation:'isolate'},M=$/Math.max(_,1)*100,T=`${M.toFixed(3)}cqw`,k=x&&'idle'!==x.status,z=!!b&&f&&S!==b.id;return(0,t.jsx)("div",{"data-testid":"device-screen-frame","data-agent-active":b?'true':'false',style:Object.assign({},I,{boxShadow:l,borderRadius:T}),onPointerEnter:t=>{'mouse'===t.pointerType&&P(!0)},onPointerLeave:()=>P(!1),children:(0,t.jsxs)("div",{"data-testid":"device-screen-clip",style:{position:'absolute',inset:0,clipPath:(0,c.deviceScreenClipPath)(M,q)},children:[k?(0,t.jsx)(y,{client:x,agentInteraction:b}):(0,t.jsx)("div",{style:{width:'100%',height:'100%',backgroundColor:s.bg.element}}),(0,t.jsx)("div",{"data-testid":"agent-device-overlay-clip",style:{position:'absolute',inset:0,zIndex:2,pointerEvents:z?'auto':'none'},children:(0,t.jsx)(o.AgentDeviceOverlay,{visible:z,onTakeOver:()=>w(b?.id??null)})})]})})};var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]);const l='0 40px 80px rgba(0, 0, 0, 0.4), 0 12px 28px rgba(0, 0, 0, 0.28)',u=258,p=480,v={ios:{ratio:.460431654676259,radiusFraction:.14066496163682865,squircle:!0},android:{ratio:.450070323488045,radiusFraction:.02564102564102564,squircle:!1}}},313,[151,38,294,314,315]);
370
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.AgentDeviceOverlay=function({visible:c,onTakeOver:h}){return(0,t.jsx)("div",{hidden:!c,"aria-hidden":!c,role:"dialog","aria-label":"Agent device activity","data-testid":"agent-device-overlay",style:{position:'absolute',inset:0,zIndex:2,display:c?'flex':'none',alignItems:'center',justifyContent:'center',padding:24,boxSizing:'border-box',pointerEvents:'auto',textAlign:'center',backgroundColor:s},children:(0,t.jsxs)("div",{style:{display:'flex',width:'100%',maxWidth:300,flexDirection:'column',alignItems:'center',gap:12},children:[(0,t.jsx)("div",{style:Object.assign({color:o},n.textSize.sm,{fontWeight:600}),children:"Agent is using this device"}),(0,t.jsx)("div",{style:Object.assign({maxWidth:260,color:l},n.textSize.xs),children:"Taking over might collide with what the agent is doing."}),(0,t.jsx)(n.Button,{theme:"agent-overlay",size:"sm",onClick:h,style:{fontFamily:'inherit'},children:(0,t.jsx)("span",{style:Object.assign({},n.textSize.xs,{fontWeight:500}),children:"Take over anyway"})})]})})};var t=r(d[0]),n=r(d[1]);const s='rgba(0, 0, 0, 0.55)',l='rgba(255, 255, 255, 0.7)',o='rgba(218, 233, 255, 0.74)'},314,[151,294]);
371
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.deviceScreenClipPath=function($,f){const u=n($),l=n($*(f?o:t)),s=`-${c}`,h=`calc(${u} - ${c})`,v=`calc(100% - ${u} + ${c})`;return[`shape(from ${u} ${s}`,`hline to calc(100% - ${u})`,`curve to 100% ${h} with ${l} 0 from start / 0 -${l} from end`,`vline to ${v}`,`curve to calc(100% - ${u}) calc(100% + ${c}) with 0 ${l} from start / ${l} 0 from end`,`hline to ${u}`,`curve to 0 ${v} with -${l} 0 from start / 0 ${l} from end`,`vline to ${h}`,`curve to ${u} ${s} with 0 -${l} from start / -${l} 0 from end`,'close)'].join(', ')};const t=$(1),o=$(1.1),c='0.5px';function $(t){return(Math.pow(.5,Math.pow(.5,t))-.5)/.375}function n(t){return`${t.toFixed(3)}cqw`}},315,[]);
372
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamControls=function({platform:t,physical:l,appearance:c,onToggleAppearance:s,onHome:I,onBack:p,onRecents:x,onReload:j,onRotate:u,onSave:b,onShutdown:h,onRemove:C}){const R='android'===t,S=(0,o.jsxs)(n.Dropdown,{side:"top",align:"end",alignOffset:-80,onCloseAutoFocus:o=>o.preventDefault(),trigger:(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.DotsIcon,{}),label:"More"}),children:[R&&(0,o.jsx)(n.DropdownItem,{label:"Back",Icon:n.BackIcon,onSelect:p}),R&&(0,o.jsx)(n.DropdownItem,{label:"Recents",Icon:n.RecentsIcon,onSelect:x}),(0,o.jsx)(n.DropdownItem,{label:"Rotate",Icon:n.RotateIcon,onSelect:u}),(0,o.jsx)(n.DropdownItem,{label:"Shutdown",Icon:n.PowerIcon,onSelect:h}),!l&&(0,o.jsx)(n.DropdownItem,{label:"Remove",Icon:n.TrashIcon,destructive:!0,onSelect:C})]});return(0,o.jsxs)("div",{style:{display:'flex',alignItems:'flex-end',gap:24},children:[(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.CameraIcon,{}),label:"Save",onClick:b}),(0,o.jsx)(n.Switch,{checked:'dark'===c,onChange:s,label:"Theme"}),(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.HomeIcon,{}),label:"Home",variant:"primary",onClick:I}),(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.RefreshIcon,{}),label:"Reload",onClick:j}),S]})};var o=r(d[0]),n=r(d[1])},316,[151,294]);
373
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.EmptyState=function({platform:n}){const s='ios'===n?'No booted simulators':'android'===n?'No booted emulators':'No booted devices',l='ios'===n?'There are no booted simulators. Use the + button to add one.':'android'===n?'There are no booted emulators or connected devices. Use the + button to add one.':'There are no booted simulators, emulators, or connected devices. Use the + button to add a simulator or emulator.';return(0,o.jsxs)("section",{style:{flex:1,minWidth:0,display:'flex',flexDirection:'column',alignItems:'center',justifyContent:'center',gap:16,padding:40,margin:'16px 8px',boxSizing:'border-box',backgroundColor:t.bg.default,border:`1px solid ${t.border.secondary}`,borderRadius:t.radius.lg,boxShadow:t.shadow.sm,overflow:'hidden',textAlign:'center'},children:[(0,o.jsx)("div",{style:{display:'flex',alignItems:'center',justifyContent:'center',width:56,height:56,borderRadius:t.radius.full,border:`1px solid ${t.border.secondary}`,backgroundColor:t.bg.subtle},children:(0,o.jsx)(t.PhoneIcon,{size:28,color:t.icon.secondary})}),(0,o.jsx)("h2",{style:Object.assign({},t.heading.lg,{color:t.text.default,margin:0}),children:s}),(0,o.jsx)("p",{style:Object.assign({},t.textSize.sm,{color:t.text.secondary,margin:0,maxWidth:320}),children:l})]})};var o=r(d[0]),t=r(d[1])},317,[151,294]);
374
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.OutputSection=function({client:c}){return(0,t.jsx)(n.LogsSection,{client:c})};var t=r(d[0]),n=r(d[1])},318,[151,309]);
375
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamSection=function({mode:b,availability:u,onChange:v}){const h=(0,l.useId)(),j=!u.h264||!u.webrtc,p=c.map(t=>Object.assign({},t,{disabled:!u[t.value]}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.SidebarRow,{label:"Stream",children:(0,t.jsx)(n.SegmentedControl,{ariaLabel:"Stream mode",ariaDescribedBy:j?h:void 0,options:p,value:b,onChange:v})}),j&&(0,t.jsx)("span",{id:h,style:Object.assign({},s.textSize.xs,{display:'block',padding:'0 0 11px',color:s.text.tertiary}),children:"H.264 and WebRTC require localhost or HTTPS. MJPEG is used on insecure HTTP."})]})};var t=r(d[0]),l=r(d[1]),n=r(d[2]),s=r(d[3]),o=r(d[4]);const c=[{value:'mjpeg',label:'MJPEG'},{value:'h264',label:'H.264'},{value:'webrtc',label:'WebRTC'}]},319,[151,38,266,294,301]);
376
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.BootErrorModal=function({open:n,onClose:l,deviceName:s,message:c}){return(0,o.jsx)(t.DialogRoot,{open:n,onOpenChange:o=>{o||l()},children:(0,o.jsxs)(t.DialogContent,{children:[(0,o.jsx)(t.DialogTitle,{title:"Failed to boot device"}),(0,o.jsxs)(t.DialogContentContainer,{children:[(0,o.jsxs)("p",{style:{margin:0,fontSize:14,lineHeight:1.5,color:t.text.secondary},children:[(0,o.jsx)("strong",{style:{color:t.text.default,fontWeight:600},children:s})," could not be booted."]}),(0,o.jsx)("pre",{style:{margin:'6px 0 0',padding:'10px 12px',overflowX:'auto',whiteSpace:'pre-wrap',overflowWrap:'anywhere',backgroundColor:t.bg.subtle,border:`1px solid ${t.border.default}`,borderRadius:t.radius.lg,color:t.text.danger,fontFamily:t.font.mono,fontSize:12,lineHeight:1.5},children:c})]}),(0,o.jsx)(t.DialogFooter,{children:(0,o.jsx)(t.Button,{theme:"primary",onClick:l,children:"Close"})})]})})};var o=r(d[0]),t=r(d[1])},320,[151,294]);
377
- __d(function(g,r,i,a,m,e,d){},321,[]);
378
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.AnimatedDockedSidebar=function({side:s,width:o,open:l,sidebarOpen:h,children:S}){const{present:c,reducedMotion:I,visible:_}=(0,t.useSidebarPresence)(l,!h);if(!c)return null;const u=I?void 0:`width ${t.SIDEBAR_TRANSITION_MS}ms ${t.SIDEBAR_TRANSITION_EASING}`,A=I?void 0:`transform ${t.SIDEBAR_TRANSITION_MS}ms ${t.SIDEBAR_TRANSITION_EASING}`;return(0,n.jsx)("div",{"aria-hidden":!_||void 0,"data-sidebar-docked":s,"data-state":_?'open':'closed',style:{width:_?o:0,height:'100%',flexShrink:0,overflow:'hidden',pointerEvents:_?'auto':'none',transition:u},children:(0,n.jsx)("div",{style:{width:o,height:'100%',transform:_?'translateX(0)':`translateX(${'left'===s?'-100%':'100%'})`,transition:A,willChange:'transform'},children:S})})};var t=r(d[0]),n=r(d[1])},322,[323,151]);
379
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SIDEBAR_TRANSITION_MS",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SIDEBAR_TRANSITION_EASING",{enumerable:!0,get:function(){return c}}),e.useSidebarPresence=function(c,o){const s=u(),[f,w]=(0,t.useState)(c),[S,b]=(0,t.useState)(c),l=(0,t.useRef)(c);return(0,t.useEffect)(()=>{if(c){const t=l.current;if(l.current=!0,w(!0),s||t)return void b(!0);let n=0;const c=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>b(!0))});return()=>{cancelAnimationFrame(c),cancelAnimationFrame(n)}}if(b(!1),!o||s)return l.current=!1,void w(!1);const t=window.setTimeout(()=>{l.current=!1,w(!1)},n);return()=>window.clearTimeout(t)},[o,c,s]),{present:f,reducedMotion:s,visible:c&&S}};var t=r(d[0]);const n=200,c='cubic-bezier(0.16, 1, 0.3, 1)';function u(){const[n,c]=(0,t.useState)(()=>'undefined'!=typeof window&&!0===window.matchMedia?.('(prefers-reduced-motion: reduce)').matches);return(0,t.useEffect)(()=>{const t=window.matchMedia?.('(prefers-reduced-motion: reduce)');if(!t)return;const n=()=>c(t.matches);return t.addEventListener('change',n),()=>t.removeEventListener('change',n)},[]),n}},323,[38]);
380
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.dashboardHideBootDevice=function(){return'undefined'!=typeof window&&!0===window.__EXPO_DEVICE_HUB_HIDE_BOOT_DEVICE__}},324,[]);
381
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.basePath=function(){if(window.__DEV__)return'/_expo/plugins/expo-device-hub';const n=window.__EXPO_DEVICE_HUB_BASE_PATH__;if(null==n)throw new Error('window.__EXPO_DEVICE_HUB_BASE_PATH__ is not defined');return(0,_.trimTrailingSlash)(n)};var _=r(d[0])},325,[326]);
382
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.trimTrailingSlash=function(t){return t.replace(/\/+$/,'')}},326,[]);
383
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.shutdownDevice=function(t){return u(o(),t)},e.removeDevice=function(t){return u(c(),t)},e.bootDevice=async function(t){return p(s(),{platform:t.platform,id:t.id,name:t.name})},e.createDevice=async function(t){return p(l(),{platform:t.platform,name:t.name,runtime:t.runtime,deviceType:t.deviceType})};var t=r(d[0]),n=r(d[1]);const o=()=>`${(0,t.basePath)()}/api/devices/shutdown`,c=()=>`${(0,t.basePath)()}/api/devices/remove`,s=()=>`${(0,t.basePath)()}/api/devices/boot`,l=()=>`${(0,t.basePath)()}/api/devices/create`;async function u(t,o){try{const c=await fetch(t,{method:'POST',headers:{'Content-Type':'application/json',Accept:'application/json'},body:JSON.stringify({platform:o.platform,id:o.id,name:o.name})});if(!c.ok)throw new Error(`Unexpected ${c.status}`);const s=await c.json();return(0,n.logUtilityErrors)(s.errors),!0===s.ok}catch(t){return console.warn('[expo-device-hub] Device action failed:',t),!1}}async function p(t,o){try{const c=await fetch(t,{method:'POST',headers:{'Content-Type':'application/json',Accept:'application/json'},body:JSON.stringify(o),signal:AbortSignal.timeout(2e5)}),s=await c.json();if((0,n.logUtilityErrors)(s.errors),!c.ok)return{id:null,error:s.error??`Unexpected ${c.status}`};const l=s.id??s.serial;return s.ok&&l?{id:l,error:null}:{id:null,error:s.error??'The device did not come online.'}}catch(t){return console.warn('[expo-device-hub] Device start failed:',t),{id:null,error:t instanceof Error?t.message:String(t)}}}},327,[325,328]);
384
- __d(function(g,r,i,a,m,e,d){"use strict";function t(t){if(!t||'object'!=typeof t)return!1;const o=t;return'string'==typeof o.id&&'string'==typeof o.message&&'string'==typeof o.error}Object.defineProperty(e,'__esModule',{value:!0}),e.isUtilityError=t,e.logUtilityErrors=function(o,n=new Set){const s=new Set;if(!Array.isArray(o))return s;for(const f of o)t(f)&&!s.has(f.id)&&(s.add(f.id),n.has(f.id)||console.error(f.message,f.error));return s}},328,[]);
385
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_SIDEBAR_WIDTH",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY",{enumerable:!0,get:function(){return u}}),e.readHideUnsupportedDevices=l,e.persistHideUnsupportedDevicesDefault=function(t){try{null===t.getItem(u)&&t.setItem(u,'true')}catch{}},e.createDashboardStore=v,Object.defineProperty(e,"useDashboardStore",{enumerable:!0,get:function(){return f}});var t=r(d[0]),s=r(d[1]),c=r(d[2]),n=r(d[3]);const o=400,u='expo-device-hub.hideUnsupportedDevices';function l(t){try{return'false'!==t.getItem(u)}catch{return!0}}function b(){if('undefined'==typeof window)return!0;try{return l(window.localStorage)}catch{return!0}}function D(){const t=(0,n.browserStreamModeAvailability)();return{selectedDeviceId:'',addedDevices:[],streamMode:(0,n.resolveStreamMode)((0,c.dashboardTransport)(),t),sidebarWidths:{left:o,right:o},sidebarPreferences:{left:(0,s.dashboardHideSidebar)()?'hidden':'auto',right:'auto'},lastOpenedSidebar:'right',hideUnsupportedDevices:b()}}function v(s={}){return(0,t.create)()(t=>Object.assign({},D(),s,{selectDevice:s=>t({selectedDeviceId:s}),reconcileSelectedDevice:s=>t(t=>s.includes(t.selectedDeviceId)?t:{selectedDeviceId:s[0]??''}),trackAddedDevice:(s,c)=>t(t=>{const n=new Set([...c,s.id]);return{addedDevices:[...t.addedDevices.filter(t=>!n.has(t.id)),s],selectedDeviceId:s.id}}),dismissDevice:s=>t(t=>({addedDevices:t.addedDevices.filter(t=>t.id!==s),selectedDeviceId:t.selectedDeviceId===s?'':t.selectedDeviceId})),chooseStreamMode:(s,c)=>t({streamMode:(0,n.resolveStreamMode)(s,c)}),resizeSidebar:(s,c)=>t(t=>({sidebarWidths:Object.assign({},t.sidebarWidths,{[s]:c})})),openSidebar:(s,c)=>t(t=>({sidebarPreferences:Object.assign({},t.sidebarPreferences,{[s]:c?'auto':'open'}),lastOpenedSidebar:s})),closeSidebar:s=>t(t=>({sidebarPreferences:Object.assign({},t.sidebarPreferences,{[s]:'hidden'})})),setHideUnsupportedDevices:s=>t({hideUnsupportedDevices:s})}))}const f=v()},329,[330,333,334,335]);
386
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},330,[331,332]);
387
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createStore",{enumerable:!0,get:function(){return n}});const t=t=>{let n;const c=new Set,o=(t,o)=>{const s="function"==typeof t?t(n):t;if(!Object.is(s,n)){const t=n;n=(null!=o?o:"object"!=typeof s||null===s)?s:Object.assign({},n,s),c.forEach(c=>c(n,t))}},s=()=>n,u={setState:o,getState:s,getInitialState:()=>l,subscribe:t=>(c.add(t),()=>c.delete(t))},l=n=t(o,s,u);return u},n=n=>n?t(n):t},331,[]);
388
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"create",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"useStore",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]);const c=e=>e;function l(e,t=c){const n=u.default.useSyncExternalStore(e.subscribe,u.default.useCallback(()=>t(e.getState()),[e,t]),u.default.useCallback(()=>t(e.getInitialState()),[e,t]));return u.default.useDebugValue(n),n}const s=e=>{const t=(0,n.createStore)(e),u=e=>l(t,e);return Object.assign(u,t),u},o=e=>e?s(e):s},332,[38,331]);
389
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.dashboardHideSidebar=function(){return'undefined'!=typeof window&&!0===window.__EXPO_DEVICE_HUB_HIDE_SIDEBAR__}},333,[]);
390
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TRANSPORT",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TRANSPORTS",{enumerable:!0,get:function(){return t}}),e.parseTransport=o,e.dashboardTransport=function(){return'undefined'==typeof window?n:o(window.__EXPO_DEVICE_HUB_TRANSPORT__)??n};const n='mjpeg',t=['mjpeg','h264','webrtc'];function o(n){return t.includes(n)?n:void 0}},334,[]);
391
- __d(function(g,r,i,a,m,e,d){"use strict";function t(t){return{mjpeg:!0,h264:t.secureContext&&t.h264Decoder,webrtc:t.secureContext&&t.webRtc}}Object.defineProperty(e,'__esModule',{value:!0}),e.streamModeAvailability=t,e.browserStreamModeAvailability=function(){if('undefined'==typeof window)return{mjpeg:!0,h264:!1,webrtc:!1};return t({secureContext:window.isSecureContext,h264Decoder:void 0!==window.VideoDecoder,webRtc:void 0!==window.RTCPeerConnection&&void 0!==window.RTCRtpReceiver})},e.androidStreamModeAvailability=function(t,o){return Object.assign({},t,{h264:t.h264||o})},e.resolveStreamMode=function(t,o){return o[t]?t:'mjpeg'}},335,[]);
392
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY",{enumerable:!0,get:function(){return n.HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY}}),Object.defineProperty(e,"persistHideUnsupportedDevicesDefault",{enumerable:!0,get:function(){return n.persistHideUnsupportedDevicesDefault}}),Object.defineProperty(e,"readHideUnsupportedDevices",{enumerable:!0,get:function(){return n.readHideUnsupportedDevices}}),e.useHideUnsupportedDevices=function(){const s=(0,n.useDashboardStore)(t=>t.hideUnsupportedDevices),o=(0,n.useDashboardStore)(t=>t.setHideUnsupportedDevices);return(0,t.useEffect)(()=>{(0,n.persistHideUnsupportedDevicesDefault)(window.localStorage);const t=t=>{t&&null!==t.key&&t.key!==n.HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY||o((0,n.readHideUnsupportedDevices)(window.localStorage))};return t(),window.addEventListener('storage',t),()=>window.removeEventListener('storage',t)},[o]),s},e.visibleDevices=function(t,n){return n?t.filter(t=>t.supported):t},e.visibleNewDeviceOptions=function(t,n){return n?{runtimes:t.runtimes.map(t=>Object.assign({},t,{models:t.models.filter(t=>t.supported)})).filter(t=>t.models.length>0)}:t};var t=r(d[0]),n=r(d[1])},336,[38,329]);
393
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useColorScheme=function(){const[n,c]=(0,t.useState)('light');return(0,t.useEffect)(()=>{if('undefined'==typeof window||!window.matchMedia)return;const t=window.matchMedia('(prefers-color-scheme: dark)'),n=()=>c(t.matches?'dark':'light');return n(),t.addEventListener('change',n),()=>t.removeEventListener('change',n)},[]),n};var t=r(d[0])},337,[38]);
394
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["errors"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.devicesWebSocketUrl=f,_e.parseDeviceListMessage=_,_e.splitDeviceList=b,_e.useDeviceLists=function(){const e=S();return(0,n.useMemo)(()=>b(e),[e])};var t,s=r(d[0]),o=(t=s)&&t.__esModule?t:{default:t},n=r(d[1]),u=r(d[2]),c=r(d[3]),l=r(d[4]);function f(e=window.location.href){const t=new URL(`${(0,c.basePath)()}/api/devices/ws`,e);return t.protocol='https:'===t.protocol?'wss:':'ws:',t.toString()}const v={simulators:[],emulators:[]},y=500,p=1e4;function S(){const[t,s]=(0,n.useState)(v);return(0,n.useEffect)(()=>{let t=!1,n=null,u=null,c=y,v=new Set;function S(){if(t)return;let u;try{u=new WebSocket(f())}catch{return void b()}n=u,u.onopen=()=>{c=y},u.onmessage=t=>{const n=_(t.data);if(!n)return;v=(0,l.logUtilityErrors)(n.errors,v);const u=(0,o.default)(n,e);s(u)},u.onerror=()=>u.close(),u.onclose=()=>{n===u&&(n=null,b())}}function b(){t||u||(u=setTimeout(()=>{u=null,S()},c),c=Math.min(2*c,p))}return S(),()=>{t=!0,u&&clearTimeout(u),n?.close()}},[]),t}function _(e){if('string'!=typeof e)return null;try{const t=JSON.parse(e);if(t.type!==u.DEVICE_LIST_MESSAGE_TYPE||!Array.isArray(t.devices?.simulators)||!Array.isArray(t.devices?.emulators)||void 0!==t.devices.errors&&!Array.isArray(t.devices.errors))return null;const s=t.devices.errors?.filter(l.isUtilityError);return Object.assign({simulators:t.devices.simulators,emulators:t.devices.emulators},s?{errors:s}:{})}catch{return null}}function b(e){const t=t=>({simulators:e.simulators.filter(e=>e.booted===t),emulators:e.emulators.filter(e=>e.booted===t)});return{booted:t(!0),recent:t(!1)}}},338,[131,38,339,325,328]);
395
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEVICE_LIST_MESSAGE_TYPE",{enumerable:!0,get:function(){return t}});const t='device-list'},339,[]);
396
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.floatingSidebarToggleInset=function(t,n,c){return t&&n<c+s?l:o},e.FloatingSidebarToggle=function({side:l,inset:s=o,onClick:c}){return(0,n.jsx)("div",{"data-floating-sidebar-toggle":l,style:{position:'absolute',top:28,[l]:s,zIndex:15},children:(0,n.jsx)(t.SidebarToggle,{floating:!0,side:l,onClick:c})})};var t=r(d[0]),n=r(d[1]);const o=24,l=80,s=40},340,[181,151]);
397
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.argentInteractionsWebSocketUrl=l,e.useArgentInteractions=f,e.useArgentInteraction=function(t){const n=f();return t?n[t]??null:null},e.parseArgentInteractionMessage=y;var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);const c=500,u=1e4;function l(t=window.location.href){const n=new URL(`${(0,s.basePath)()}/api/argent-interactions/ws`,t);return n.protocol='https:'===n.protocol?'wss:':'ws:',n.toString()}function f(){const[n,s]=(0,t.useState)({}),[f,p]=(0,t.useState)(()=>Date.now());(0,t.useEffect)(()=>{let t=!1,n=null,f=null,A=c;function w(){if(t)return;let u;try{u=new WebSocket(l())}catch{return void I()}n=u,u.onopen=()=>{A=c},u.onmessage=t=>{const n=y(t.data);if(!n)return;const c=Date.now(),u=(0,o.normalizeAgentInteractionTimestamp)(n.interaction,c);s(t=>Object.assign({},t,{[u.deviceId]:u})),p(c)},u.onerror=()=>u.close(),u.onclose=()=>{n===u&&(n=null,I())}}function I(){t||f||(f=setTimeout(()=>{f=null,w()},A),A=Math.min(2*A,u))}return w(),()=>{t=!0,f&&clearTimeout(f),n?.close()}},[]);const A=(0,t.useMemo)(()=>(0,o.activeAgentInteractions)(n,f),[n,f]);return(0,t.useEffect)(()=>{const t=(0,o.nextAgentInteractionExpiry)(A,f);if(null===t)return;const n=window.setTimeout(()=>p(Date.now()),Math.max(0,t-Date.now()));return()=>window.clearTimeout(n)},[A,f]),A}function y(t){if('string'!=typeof t)return null;try{const o=JSON.parse(t),s=o.interaction;return o.type===n.ARGENT_INTERACTION_MESSAGE_TYPE&&'string'==typeof s?.id&&'string'==typeof s.deviceId&&'string'==typeof s.timestamp&&Array.isArray(s.segments)&&s.segments.every(p)?o:null}catch{return null}}function p(t){return!!(A(t)&&w(t.startMs)&&Array.isArray(t.frames))&&t.frames.every(t=>A(t)&&w(t.atMs)&&Array.isArray(t.points)&&t.points.length>=1&&t.points.length<=2&&t.points.every(t=>A(t)&&w(t.x)&&w(t.y)))}function A(t){return'object'==typeof t&&null!==t&&!Array.isArray(t)}function w(t){return'number'==typeof t&&Number.isFinite(t)}},341,[38,342,343,325]);
398
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ARGENT_INTERACTION_MESSAGE_TYPE",{enumerable:!0,get:function(){return t}}),e.argentInteractionMessage=function(n){return{type:t,interaction:n}};const t='argent-interaction'},342,[]);
399
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.normalizeAgentInteractionTimestamp=function(t,n){return Number.isFinite(Date.parse(t.timestamp))?t:Object.assign({},t,{timestamp:new Date(n).toISOString()})},e.activeAgentInteractions=function(n,s){return Object.fromEntries(Object.entries(n).filter(([,n])=>(0,t.agentInteractionCursorExpiresAt)(n,s)>s))},e.nextAgentInteractionExpiry=function(n,s){let o=1/0;for(const c of Object.values(n)){const n=(0,t.agentInteractionCursorExpiresAt)(c,s);n>s&&(o=Math.min(o,n))}return Number.isFinite(o)?o:null};var t=r(d[0])},343,[148]);
400
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useNewDeviceOptions=function(){const[o,c]=(0,t.useState)(u);return(0,t.useEffect)(()=>{let t=!1;return(async()=>{try{const o=await fetch(s(),{headers:{Accept:'application/json'}});if(!o.ok)throw new Error(`Unexpected ${o.status}`);const u=await o.json();(0,n.logUtilityErrors)(u.errors),t||c({ios:u.ios,android:u.android})}catch(t){console.warn('[expo-device-hub] No new-device-options endpoint, using empty options:',t)}})(),()=>{t=!0}},[]),o};var t=r(d[0]),o=r(d[1]),n=r(d[2]);const s=()=>`${(0,o.basePath)()}/api/new-device-options`,c={runtimes:[]},u={ios:c,android:c}},344,[38,325,328]);
401
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarOverlay=function({side:s,open:l,sidebarOpen:c,topmost:u,onDismiss:b,children:p}){const{present:v,reducedMotion:I,visible:S}=(0,t.useSidebarPresence)(l,!c);if(!v)return null;const _=u?12:10,f=I?void 0:`opacity ${t.SIDEBAR_TRANSITION_MS}ms ease`,h=I?void 0:`transform ${t.SIDEBAR_TRANSITION_MS}ms ${t.SIDEBAR_TRANSITION_EASING}`;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"aria-hidden":"true","data-sidebar-backdrop":s,onClick:b,style:{position:'absolute',inset:0,backgroundColor:o.bg.overlay,opacity:S?.35:0,pointerEvents:S?'auto':'none',transition:f,zIndex:_}}),(0,n.jsx)("div",{"aria-hidden":!S||void 0,"data-sidebar-overlay":s,"data-state":S?'open':'closed',style:{position:'absolute',top:0,[s]:0,zIndex:_+1,backgroundColor:o.bg.subtle,boxShadow:o.shadow.lg,pointerEvents:S?'auto':'none',transform:S?'translateX(0)':`translateX(${'left'===s?'-100%':'100%'})`,transition:h,willChange:'transform'},children:p})]})};var o=r(d[0]),t=r(d[1]),n=r(d[2])},345,[181,323,151]);
402
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.resolveSidebarLayout=o,e.useSidebarLayout=function({leftWidth:s,rightWidth:c,minStreamWidth:h}){const f=(0,t.useRef)(null),[u,l]=(0,t.useState)(()=>'undefined'==typeof window?0:window.innerWidth),b=(0,n.useDashboardStore)(t=>t.sidebarPreferences.left),S=(0,n.useDashboardStore)(t=>t.sidebarPreferences.right),p=(0,n.useDashboardStore)(t=>t.lastOpenedSidebar),W=(0,n.useDashboardStore)(t=>t.openSidebar),O=(0,n.useDashboardStore)(t=>t.closeSidebar);(0,t.useEffect)(()=>{const t=f.current;if(!t)return;const n=()=>l(t.getBoundingClientRect().width);n();const o=new ResizeObserver(n);return o.observe(t),()=>o.disconnect()},[]);const D=o({leftPreference:b,rightPreference:S,containerWidth:u,leftWidth:s,rightWidth:c,minStreamWidth:h});return Object.assign({},D,{containerRef:f,containerWidth:u,leftOpen:D.leftOpen,lastOpened:p,openLeft:()=>{const t=u>=s+h+(D.rightDocked?c:0);W('left',t)},closeLeft:()=>O('left'),openRight:()=>{W('right',u>=c+h)},closeRight:()=>O('right')})};var t=r(d[0]),n=r(d[1]);function o({leftPreference:t,rightPreference:n,containerWidth:o,leftWidth:s,rightWidth:c,minStreamWidth:h}){const f=o>=c+h,u='open'===n||'auto'===n&&f,l=u&&f,b=o>=s+h+(l?c:0),S='open'===t||'auto'===t&&b,p=S&&b;return{leftOpen:S,leftDocked:p,leftOverlay:S&&!p,rightOpen:u,rightDocked:l,rightOverlay:u&&!l}}},346,[38,329]);
403
- __d(function(g,r,i,a,m,e,d){"use strict";function o(o){return'ios'===o||'android'===o?o:void 0}Object.defineProperty(e,'__esModule',{value:!0}),e.parsePlatformFilter=o,e.dashboardPlatformFilter=function(){return'undefined'==typeof window?void 0:o(window.__EXPO_DEVICE_HUB_PLATFORM__)}},347,[]);
382
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEVICE_FRAME_PROFILE_IDS",{enumerable:!0,get:function(){return n}}),e.isDeviceFrameProfileId=function(o){return n.some(n=>n===o)};const n=['ios:iphone-17-pro','android:pixel-10-pro']},311,[]);
383
+ __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamPanel=function({device:p,client:u,agentInteraction:h,DeviceScreen:v,displayScreen:f,onShutdown:x,onRemove:y,framed:b=!0,showDeviceFrame:w=!0,deviceFrameAssets:S}){return(0,n.jsxs)("section",{style:{flex:1,minWidth:0,display:'flex',flexDirection:'column',alignItems:'center',justifyContent:'center',gap:40,padding:40,margin:b?'16px 8px':0,boxSizing:'border-box',backgroundColor:t.bg.default,border:b?`1px solid ${t.border.secondary}`:'none',borderRadius:b?t.radius.lg:0,boxShadow:b?t.shadow.sm:'none',overflow:'hidden'},children:[(0,n.jsxs)("div",{style:{flex:1,minWidth:0,minHeight:0,width:'100%',display:'flex',flexDirection:'column',alignItems:'center',gap:20},children:[(0,n.jsx)(a.DeviceTitle,{device:p,status:u.status},p.id),(0,n.jsx)("div",{"data-testid":"device-frame-viewport",style:{flex:1,minWidth:0,minHeight:0,width:'100%',containerType:'size',display:'flex',alignItems:'center',justifyContent:'center'},children:(0,n.jsx)(o.PhoneFrame,{device:p,client:u,agentInteraction:h,DeviceScreen:v,displayScreen:f,showDeviceFrame:w,deviceFrameAssets:S})})]}),(0,n.jsx)(c.StreamControls,{platform:p.platform,physical:p.physical,appearance:u.appearance,onToggleAppearance:()=>u.setAppearance('dark'===u.appearance?'light':'dark'),onHome:()=>u.pressButton('home'),onBack:()=>u.pressButton('back'),onRecents:()=>u.pressButton('recents'),onReload:()=>u.reload(),onRotate:()=>u.rotate(),onSave:async()=>{const n=await u.screenshot();n&&s(n,l(p.name))},onShutdown:x,onRemove:y})]})};var n=r(d[0]),t=r(d[1]),a=r(d[2]),o=r(d[3]),c=r(d[4]);function s(n,t){const a=URL.createObjectURL(n),o=document.createElement('a');o.href=a,o.download=t,document.body.appendChild(o),o.click(),o.remove(),setTimeout(()=>URL.revokeObjectURL(a),0)}function l(n){return`${n.trim().replace(/[^a-zA-Z0-9._-]+/g,'-').replace(/^-+|-+$/g,'')||'device'}-${(new Date).toISOString().replace(/[:.]/g,'-').replace(/Z$/,'')}.png`}},312,[151,294,313,314,318]);
384
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.DeviceTitle=function({device:s,status:c}){const[b,u]=(0,l.useState)(null),x=b===s.id,f=x?s.id:s.name,h=t[c];return(0,o.jsx)(n.Button,{theme:"tertiary",size:"2xs",onClick:()=>u(x?null:s.id),leftSlot:(0,o.jsx)("span",{title:f,style:{display:'block',flex:'1 1 auto',minWidth:0,overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap',fontFamily:x?n.font.mono:n.font.sans},children:f}),rightSlot:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{"aria-hidden":!0,style:{width:6,height:6,flexShrink:0,boxSizing:'content-box',border:`2px solid ${h.ringColor}`,borderRadius:n.radius.full,backgroundColor:h.dotColor}}),(0,o.jsx)("span",{"aria-live":"polite",style:{flexShrink:0,color:h.labelColor},children:h.label})]}),style:{maxWidth:'min(100%, 320px)',minWidth:0,flexShrink:0,boxSizing:'border-box',gap:6,paddingInline:12,borderWidth:.5,borderColor:n.border.default,borderRadius:n.radius.full}})};var o=r(d[0]),l=r(d[1]),n=r(d[2]);const t={idle:{label:'Offline',dotColor:n.icon.danger,ringColor:n.border.danger,labelColor:n.text.secondary},connecting:{label:'Starting',dotColor:n.icon.warning,ringColor:n.border.warning,labelColor:n.text.secondary},streaming:{label:'Live',dotColor:n.text.success,ringColor:n.border.success,labelColor:n.text.success},error:{label:'Error',dotColor:n.icon.danger,ringColor:n.border.danger,labelColor:n.text.secondary}}},313,[151,38,294]);
385
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PhoneFrame=function({device:y,client:h,agentInteraction:b,DeviceScreen:S,displayScreen:j,showDeviceFrame:x=!0,deviceFrameAssets:f}){const[F,k]=(0,n.useState)(!1),[w,O]=(0,n.useState)(null),{ratio:P,radiusFraction:q,squircle:_}=p[y.platform],C=h?j(h.screen):null,D=C&&C.height>0?C.width/C.height:P,E=Object.assign({},(0,c.deviceViewportStyle)({maxShortSide:u,ratio:D}),{containerType:'inline-size'}),I=q/Math.max(D,1)*100,T=`${I.toFixed(3)}cqw`,z=h&&'idle'!==h.status,A=!!b&&F&&w!==b.id,M=z?(0,t.jsx)(S,{client:h,agentInteraction:b}):(0,t.jsx)("div",{style:{position:'absolute',inset:0,backgroundColor:s.bg.element}}),R=(0,t.jsx)("div",{"data-testid":"agent-device-overlay-clip",style:{position:'absolute',inset:0,zIndex:2,pointerEvents:A?'auto':'none'},children:(0,t.jsx)(o.AgentDeviceOverlay,{visible:A,onTakeOver:()=>O(b?.id??null)})}),L=x&&y.deviceFrame?f?.[y.deviceFrame]:void 0,V=L?(0,c.deviceFramePresentation)({asset:L,orientation:h?.screen?.orientation,displayRatio:D,maxScreenShortSide:u}):null,$=V?Object.assign({},V.screenStyle,{backgroundColor:s.bg.element}):{position:'absolute',inset:0,clipPath:(0,l.deviceScreenClipPath)(I,_)};return(0,t.jsxs)("div",{"data-testid":"device-screen-frame","data-device-frame-kind":V?y.deviceFrame:'none',"data-agent-active":b?'true':'false',style:V?V.frameStyle:Object.assign({},E,{borderRadius:T}),onPointerEnter:t=>{'mouse'===t.pointerType&&k(!0)},onPointerLeave:()=>k(!1),children:[(0,t.jsxs)("div",{"data-testid":"device-screen-clip","data-device-frame-screen":V?'true':void 0,style:$,children:[(0,t.jsx)("div",{"data-testid":"device-frame-stream-cover",style:V?V.streamStyle:{position:'absolute',inset:0},children:M}),R]}),f?Object.keys(f).map(n=>{const s=f[n],o=!!V&&y.deviceFrame===n;return(0,t.jsx)("img",{"data-testid":o?'device-frame-artwork':void 0,"data-device-frame-artwork-kind":n,src:s.src,alt:"","aria-hidden":"true",draggable:!1,decoding:"async",loading:"eager",style:o?V.artworkStyle:v},n)}):null]})};var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]),l=r(d[5]);const v={position:'absolute',inset:0,width:1,height:1,opacity:0,pointerEvents:'none'},u=480,p={ios:{ratio:.460431654676259,radiusFraction:.14066496163682865,squircle:!0},android:{ratio:.450070323488045,radiusFraction:.02564102564102564,squircle:!1}}},314,[151,38,294,315,316,317]);
386
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.AgentDeviceOverlay=function({visible:c,onTakeOver:h}){return(0,t.jsx)("div",{hidden:!c,"aria-hidden":!c,role:"dialog","aria-label":"Agent device activity","data-testid":"agent-device-overlay",style:{position:'absolute',inset:0,zIndex:2,display:c?'flex':'none',alignItems:'center',justifyContent:'center',padding:24,boxSizing:'border-box',pointerEvents:'auto',textAlign:'center',backgroundColor:s},children:(0,t.jsxs)("div",{style:{display:'flex',width:'100%',maxWidth:300,flexDirection:'column',alignItems:'center',gap:12},children:[(0,t.jsx)("div",{style:Object.assign({color:o},n.textSize.sm,{fontWeight:600}),children:"Agent is using this device"}),(0,t.jsx)("div",{style:Object.assign({maxWidth:260,color:l},n.textSize.xs),children:"Taking over might collide with what the agent is doing."}),(0,t.jsx)(n.Button,{theme:"agent-overlay",size:"sm",onClick:h,style:{fontFamily:'inherit'},children:(0,t.jsx)("span",{style:Object.assign({},n.textSize.xs,{fontWeight:500}),children:"Take over anyway"})})]})})};var t=r(d[0]),n=r(d[1]);const s='rgba(0, 0, 0, 0.55)',l='rgba(255, 255, 255, 0.7)',o='rgba(218, 233, 255, 0.74)'},315,[151,294]);
387
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.deviceViewportStyle=h,e.deviceFrameRotation=c,e.deviceFrameLayout=s,e.deviceFramePresentation=function({asset:w,orientation:l,displayRatio:u,maxScreenShortSide:x}){const p=c(l,u),$=s(w,p),f=$.width/$.height,y=w.screen.width/w.width,S=x/y,b=`${(w.screenRadius/$.width*100).toFixed(4)}cqw`,F=`${(w.screenRadius/$.height*100).toFixed(4)}cqh`;return{frameStyle:Object.assign({},h({maxShortSide:S,ratio:f}),{containerType:'size'}),screenStyle:{position:'absolute',left:`calc(${n($.screen.x,$.width)} - ${t}px)`,top:`calc(${n($.screen.y,$.height)} - ${t}px)`,width:`calc(${n($.screen.width,$.width)} + 2px)`,height:`calc(${n($.screen.height,$.height)} + 2px)`,containerType:'size',zIndex:1,overflow:'hidden',borderRadius:`calc(${b} + ${t}px) / calc(${F} + ${t}px)`},streamStyle:{position:'absolute',top:'50%',left:'50%',width:`max(100cqw, ${(100*u).toFixed(6)}cqh)`,height:`max(100cqh, ${(100/u).toFixed(6)}cqw)`,aspectRatio:`${u}`,transform:'translate(-50%, -50%)'},artworkStyle:o(w,$)}};const t=1;function h({maxShortSide:t,ratio:h}){return{width:`min(${t*Math.max(h,1)}px, 100cqw, ${(100*h).toFixed(6)}cqh)`,aspectRatio:`${h}`,flexShrink:0,position:'relative',isolation:'isolate'}}function n(t,h){return`${(t/h*100).toFixed(4)}%`}function o(t,h){const o={position:'absolute',left:'50%',top:'50%',userSelect:'none',pointerEvents:'none',zIndex:2};return 90===Math.abs(h.rotation)?Object.assign({},o,{width:n(t.width,h.width),height:n(t.height,h.height),transform:`translate(-50%, -50%) rotate(${h.rotation}deg)`}):Object.assign({},o,{width:'100%',height:'100%',transform:`translate(-50%, -50%) rotate(${h.rotation}deg)`})}function c(t,h){switch(t){case'landscape_left':return 90;case'landscape_right':return-90;case'portrait_upside_down':return 180;default:return h>1?90:0}}function s(t,h){const{width:n,height:o,screen:c}=t;switch(h){case 90:return{width:o,height:n,rotation:h,screen:{x:o-c.y-c.height,y:c.x,width:c.height,height:c.width}};case-90:return{width:o,height:n,rotation:h,screen:{x:c.y,y:n-c.x-c.width,width:c.height,height:c.width}};case 180:return{width:n,height:o,rotation:h,screen:{x:n-c.x-c.width,y:o-c.y-c.height,width:c.width,height:c.height}};default:return{width:n,height:o,rotation:h,screen:c}}}},316,[]);
388
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.deviceScreenClipPath=function($,f){const u=n($),l=n($*(f?o:t)),s=`-${c}`,h=`calc(${u} - ${c})`,v=`calc(100% - ${u} + ${c})`;return[`shape(from ${u} ${s}`,`hline to calc(100% - ${u})`,`curve to 100% ${h} with ${l} 0 from start / 0 -${l} from end`,`vline to ${v}`,`curve to calc(100% - ${u}) calc(100% + ${c}) with 0 ${l} from start / ${l} 0 from end`,`hline to ${u}`,`curve to 0 ${v} with -${l} 0 from start / 0 ${l} from end`,`vline to ${h}`,`curve to ${u} ${s} with 0 -${l} from start / -${l} 0 from end`,'close)'].join(', ')};const t=$(1),o=$(1.1),c='0.5px';function $(t){return(Math.pow(.5,Math.pow(.5,t))-.5)/.375}function n(t){return`${t.toFixed(3)}cqw`}},317,[]);
389
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamControls=function({platform:t,physical:l,appearance:c,onToggleAppearance:s,onHome:I,onBack:p,onRecents:x,onReload:j,onRotate:u,onSave:b,onShutdown:h,onRemove:C}){const R='android'===t,S=(0,o.jsxs)(n.Dropdown,{side:"top",align:"end",alignOffset:-80,onCloseAutoFocus:o=>o.preventDefault(),trigger:(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.DotsIcon,{}),label:"More"}),children:[R&&(0,o.jsx)(n.DropdownItem,{label:"Back",Icon:n.BackIcon,onSelect:p}),R&&(0,o.jsx)(n.DropdownItem,{label:"Recents",Icon:n.RecentsIcon,onSelect:x}),(0,o.jsx)(n.DropdownItem,{label:"Rotate",Icon:n.RotateIcon,onSelect:u}),(0,o.jsx)(n.DropdownItem,{label:"Shutdown",Icon:n.PowerIcon,onSelect:h}),!l&&(0,o.jsx)(n.DropdownItem,{label:"Remove",Icon:n.TrashIcon,destructive:!0,onSelect:C})]});return(0,o.jsxs)("div",{style:{display:'flex',alignItems:'flex-end',gap:24},children:[(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.CameraIcon,{}),label:"Save",onClick:b}),(0,o.jsx)(n.Switch,{checked:'dark'===c,onChange:s,label:"Theme"}),(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.HomeIcon,{}),label:"Home",variant:"primary",onClick:I}),(0,o.jsx)(n.ControlButton,{icon:(0,o.jsx)(n.RefreshIcon,{}),label:"Reload",onClick:j}),S]})};var o=r(d[0]),n=r(d[1])},318,[151,294]);
390
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.EmptyState=function({platform:n}){const s='ios'===n?'No booted simulators':'android'===n?'No booted emulators':'No booted devices',l='ios'===n?'There are no booted simulators. Use the + button to add one.':'android'===n?'There are no booted emulators or connected devices. Use the + button to add one.':'There are no booted simulators, emulators, or connected devices. Use the + button to add a simulator or emulator.';return(0,o.jsxs)("section",{style:{flex:1,minWidth:0,display:'flex',flexDirection:'column',alignItems:'center',justifyContent:'center',gap:16,padding:40,margin:'16px 8px',boxSizing:'border-box',backgroundColor:t.bg.default,border:`1px solid ${t.border.secondary}`,borderRadius:t.radius.lg,boxShadow:t.shadow.sm,overflow:'hidden',textAlign:'center'},children:[(0,o.jsx)("div",{style:{display:'flex',alignItems:'center',justifyContent:'center',width:56,height:56,borderRadius:t.radius.full,border:`1px solid ${t.border.secondary}`,backgroundColor:t.bg.subtle},children:(0,o.jsx)(t.PhoneIcon,{size:28,color:t.icon.secondary})}),(0,o.jsx)("h2",{style:Object.assign({},t.heading.lg,{color:t.text.default,margin:0}),children:s}),(0,o.jsx)("p",{style:Object.assign({},t.textSize.sm,{color:t.text.secondary,margin:0,maxWidth:320}),children:l})]})};var o=r(d[0]),t=r(d[1])},319,[151,294]);
391
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.OutputSection=function({client:c}){return(0,t.jsx)(n.LogsSection,{client:c})};var t=r(d[0]),n=r(d[1])},320,[151,309]);
392
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.StreamSection=function({mode:b,availability:u,onChange:v}){const h=(0,l.useId)(),j=!u.h264||!u.webrtc,p=c.map(t=>Object.assign({},t,{disabled:!u[t.value]}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.SidebarRow,{label:"Stream",children:(0,t.jsx)(n.SegmentedControl,{ariaLabel:"Stream mode",ariaDescribedBy:j?h:void 0,options:p,value:b,onChange:v})}),j&&(0,t.jsx)("span",{id:h,style:Object.assign({},s.textSize.xs,{display:'block',padding:'0 0 11px',color:s.text.tertiary}),children:"H.264 and WebRTC require localhost or HTTPS. MJPEG is used on insecure HTTP."})]})};var t=r(d[0]),l=r(d[1]),n=r(d[2]),s=r(d[3]),o=r(d[4]);const c=[{value:'mjpeg',label:'MJPEG'},{value:'h264',label:'H.264'},{value:'webrtc',label:'WebRTC'}]},321,[151,38,266,294,301]);
393
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.BootErrorModal=function({open:n,onClose:l,deviceName:s,message:c}){return(0,o.jsx)(t.DialogRoot,{open:n,onOpenChange:o=>{o||l()},children:(0,o.jsxs)(t.DialogContent,{children:[(0,o.jsx)(t.DialogTitle,{title:"Failed to boot device"}),(0,o.jsxs)(t.DialogContentContainer,{children:[(0,o.jsxs)("p",{style:{margin:0,fontSize:14,lineHeight:1.5,color:t.text.secondary},children:[(0,o.jsx)("strong",{style:{color:t.text.default,fontWeight:600},children:s})," could not be booted."]}),(0,o.jsx)("pre",{style:{margin:'6px 0 0',padding:'10px 12px',overflowX:'auto',whiteSpace:'pre-wrap',overflowWrap:'anywhere',backgroundColor:t.bg.subtle,border:`1px solid ${t.border.default}`,borderRadius:t.radius.lg,color:t.text.danger,fontFamily:t.font.mono,fontSize:12,lineHeight:1.5},children:c})]}),(0,o.jsx)(t.DialogFooter,{children:(0,o.jsx)(t.Button,{theme:"primary",onClick:l,children:"Close"})})]})})};var o=r(d[0]),t=r(d[1])},322,[151,294]);
394
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.temporarilyInertElement=s,e.ServerConnectionOverlay=function({status:l,onReload:c}){const u='connecting'===l,x=(0,t.useRef)(null);return(0,t.useEffect)(()=>{const n=x.current;if(!n)return;const t=new Map,o=o=>{if(!(o instanceof HTMLElement)||o===n||o.contains(n))return;const l=s(o);l&&t.set(o,l)};for(const n of document.body.children)o(n);const l=new MutationObserver(n=>{for(const t of n)for(const n of t.addedNodes)o(n)});return l.observe(document.body,{childList:!0}),n.focus({preventScroll:!0}),()=>{l.disconnect();for(const n of t.values())n()}},[]),(0,n.jsx)("main",{ref:x,role:"alertdialog","aria-modal":"true","aria-labelledby":"server-connection-overlay-title","aria-describedby":"server-connection-overlay-description","aria-busy":u,tabIndex:-1,style:{position:'fixed',inset:0,zIndex:610,display:'flex',alignItems:'center',justifyContent:'center',boxSizing:'border-box',minWidth:0,minHeight:'100vh',padding:24,backgroundColor:`color-mix(in srgb, ${o.bg.screen} 68%, transparent)`,backdropFilter:'blur(12px)',WebkitBackdropFilter:'blur(12px)',color:o.text.default,fontFamily:o.font.sans,outline:'none',pointerEvents:'auto'},children:(0,n.jsxs)("section",{style:{display:'flex',flexDirection:'column',alignItems:'center',width:'100%',maxWidth:440,padding:'40px 32px',boxSizing:'border-box',backgroundColor:`color-mix(in srgb, ${o.bg.default} 92%, transparent)`,border:`1px solid ${o.border.secondary}`,borderRadius:o.radius.xl,boxShadow:o.shadow.sm,textAlign:'center'},children:[(0,n.jsx)(o.Logo,{style:{marginBottom:32}}),(0,n.jsx)("div",{"aria-hidden":"true",style:{display:'flex',alignItems:'center',justifyContent:'center',width:56,height:56,marginBottom:20,border:`1px solid ${o.border.secondary}`,borderRadius:o.radius.full,backgroundColor:u?o.bg.subtle:o.bg.default},children:u?(0,n.jsx)(o.RefreshIcon,{size:24,color:o.icon.secondary}):(0,n.jsx)(o.CableDisconnectIcon,{size:24,color:o.icon.default})}),(0,n.jsxs)("div",{"aria-live":"assertive",children:[(0,n.jsx)("h1",{id:"server-connection-overlay-title",style:Object.assign({},o.heading['2xl'],{margin:0,color:o.text.default}),children:u?'Connecting to the Expo dev server':'Server disconnected'}),(0,n.jsx)("p",{id:"server-connection-overlay-description",style:Object.assign({},o.textSize.sm,{maxWidth:360,margin:'12px 0 0',color:o.text.secondary}),children:u?'If this takes more than a few seconds, restart the Expo dev server in your terminal. Once it is running, reload this page.':(0,n.jsxs)(n.Fragment,{children:["Restart the server in your terminal.",(0,n.jsx)("br",{}),"Once started reload this page if necessary."]})})]}),(0,n.jsx)(o.Button,{theme:"primary",size:"lg",leftSlot:(0,n.jsx)(o.RefreshIcon,{size:18}),onClick:c,style:{marginTop:24},children:"Reload page"})]})})};var n=r(d[0]),t=r(d[1]),o=r(d[2]);function s(n){return n.inert?null:(n.inert=!0,()=>{n.inert=!1})}},323,[151,38,294]);
395
+ __d(function(e,t,i,s,r,o,c){r.exports={uri:"./assets/assets/device-frames/google-pixel-10-pro.4be4305b71cc5ee280c371ad2940d668.png",width:1250,height:2631,toString(){return this.uri}}},324,[]);
396
+ __d(function(e,i,s,t,r,a,d){r.exports={uri:"./assets/assets/device-frames/iphone-17-pro-silver.d76ae8bc19f9a6f4ab4d64c630ed0627.png",width:2620,height:5420,toString(){return this.uri}}},325,[]);
397
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.AnimatedDockedSidebar=function({side:s,width:o,open:l,sidebarOpen:h,children:S}){const{present:c,reducedMotion:I,visible:_}=(0,t.useSidebarPresence)(l,!h);if(!c)return null;const u=I?void 0:`width ${t.SIDEBAR_TRANSITION_MS}ms ${t.SIDEBAR_TRANSITION_EASING}`,A=I?void 0:`transform ${t.SIDEBAR_TRANSITION_MS}ms ${t.SIDEBAR_TRANSITION_EASING}`;return(0,n.jsx)("div",{"aria-hidden":!_||void 0,"data-sidebar-docked":s,"data-state":_?'open':'closed',style:{width:_?o:0,height:'100%',flexShrink:0,overflow:'hidden',pointerEvents:_?'auto':'none',transition:u},children:(0,n.jsx)("div",{style:{width:o,height:'100%',transform:_?'translateX(0)':`translateX(${'left'===s?'-100%':'100%'})`,transition:A,willChange:'transform'},children:S})})};var t=r(d[0]),n=r(d[1])},326,[327,151]);
398
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SIDEBAR_TRANSITION_MS",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"SIDEBAR_TRANSITION_EASING",{enumerable:!0,get:function(){return c}}),e.useSidebarPresence=function(c,o){const s=u(),[f,w]=(0,t.useState)(c),[S,b]=(0,t.useState)(c),l=(0,t.useRef)(c);return(0,t.useEffect)(()=>{if(c){const t=l.current;if(l.current=!0,w(!0),s||t)return void b(!0);let n=0;const c=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>b(!0))});return()=>{cancelAnimationFrame(c),cancelAnimationFrame(n)}}if(b(!1),!o||s)return l.current=!1,void w(!1);const t=window.setTimeout(()=>{l.current=!1,w(!1)},n);return()=>window.clearTimeout(t)},[o,c,s]),{present:f,reducedMotion:s,visible:c&&S}};var t=r(d[0]);const n=200,c='cubic-bezier(0.16, 1, 0.3, 1)';function u(){const[n,c]=(0,t.useState)(()=>'undefined'!=typeof window&&!0===window.matchMedia?.('(prefers-reduced-motion: reduce)').matches);return(0,t.useEffect)(()=>{const t=window.matchMedia?.('(prefers-reduced-motion: reduce)');if(!t)return;const n=()=>c(t.matches);return t.addEventListener('change',n),()=>t.removeEventListener('change',n)},[]),n}},327,[38]);
399
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.dashboardHideBootDevice=function(){return'undefined'!=typeof window&&!0===window.__EXPO_DEVICE_HUB_HIDE_BOOT_DEVICE__}},328,[]);
400
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.basePath=function(){if(window.__DEV__)return'/_expo/plugins/expo-device-hub';const n=window.__EXPO_DEVICE_HUB_BASE_PATH__;if(null==n)throw new Error('window.__EXPO_DEVICE_HUB_BASE_PATH__ is not defined');return(0,_.trimTrailingSlash)(n)};var _=r(d[0])},329,[330]);
401
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.trimTrailingSlash=function(t){return t.replace(/\/+$/,'')}},330,[]);
402
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.shutdownDevice=function(t){return u(o(),t)},e.removeDevice=function(t){return u(c(),t)},e.bootDevice=async function(t){return p(s(),{platform:t.platform,id:t.id,name:t.name})},e.createDevice=async function(t){return p(l(),{platform:t.platform,name:t.name,runtime:t.runtime,deviceType:t.deviceType})};var t=r(d[0]),n=r(d[1]);const o=()=>`${(0,t.basePath)()}/api/devices/shutdown`,c=()=>`${(0,t.basePath)()}/api/devices/remove`,s=()=>`${(0,t.basePath)()}/api/devices/boot`,l=()=>`${(0,t.basePath)()}/api/devices/create`;async function u(t,o){try{const c=await fetch(t,{method:'POST',headers:{'Content-Type':'application/json',Accept:'application/json'},body:JSON.stringify({platform:o.platform,id:o.id,name:o.name})});if(!c.ok)throw new Error(`Unexpected ${c.status}`);const s=await c.json();return(0,n.logUtilityErrors)(s.errors),!0===s.ok}catch(t){return console.warn('[expo-device-hub] Device action failed:',t),!1}}async function p(t,o){try{const c=await fetch(t,{method:'POST',headers:{'Content-Type':'application/json',Accept:'application/json'},body:JSON.stringify(o),signal:AbortSignal.timeout(2e5)}),s=await c.json();if((0,n.logUtilityErrors)(s.errors),!c.ok)return{id:null,error:s.error??`Unexpected ${c.status}`};const l=s.id??s.serial;return s.ok&&l?{id:l,error:null}:{id:null,error:s.error??'The device did not come online.'}}catch(t){return console.warn('[expo-device-hub] Device start failed:',t),{id:null,error:t instanceof Error?t.message:String(t)}}}},331,[329,332]);
403
+ __d(function(g,r,i,a,m,e,d){"use strict";function t(t){if(!t||'object'!=typeof t)return!1;const o=t;return'string'==typeof o.id&&'string'==typeof o.message&&'string'==typeof o.error}Object.defineProperty(e,'__esModule',{value:!0}),e.isUtilityError=t,e.logUtilityErrors=function(o,n=new Set){const s=new Set;if(!Array.isArray(o))return s;for(const f of o)t(f)&&!s.has(f.id)&&(s.add(f.id),n.has(f.id)||console.error(f.message,f.error));return s}},332,[]);
404
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_SIDEBAR_WIDTH",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY",{enumerable:!0,get:function(){return u}}),e.readHideUnsupportedDevices=D,e.persistHideUnsupportedDevicesDefault=function(t){try{null===t.getItem(u)&&t.setItem(u,'true')}catch{}},e.createDashboardStore=v,Object.defineProperty(e,"useDashboardStore",{enumerable:!0,get:function(){return f}});var t=r(d[0]),s=r(d[1]),c=r(d[2]),n=r(d[3]);const o=400,u='expo-device-hub.hideUnsupportedDevices';function D(t){try{return'false'!==t.getItem(u)}catch{return!0}}function l(){if('undefined'==typeof window)return!0;try{return D(window.localStorage)}catch{return!0}}function b(){const t=(0,n.browserStreamModeAvailability)();return{selectedDeviceId:'',addedDevices:[],streamMode:(0,n.resolveStreamMode)((0,c.dashboardTransport)(),t),sidebarWidths:{left:o,right:o},sidebarPreferences:{left:(0,s.dashboardHideSidebar)()?'hidden':'auto',right:'auto'},lastOpenedSidebar:'right',hideUnsupportedDevices:l(),showDeviceFrame:!0}}function v(s={}){return(0,t.create)()(t=>Object.assign({},b(),s,{selectDevice:s=>t({selectedDeviceId:s}),reconcileSelectedDevice:s=>t(t=>s.includes(t.selectedDeviceId)?t:{selectedDeviceId:s[0]??''}),trackAddedDevice:(s,c)=>t(t=>{const n=new Set([...c,s.id]);return{addedDevices:[...t.addedDevices.filter(t=>!n.has(t.id)),s],selectedDeviceId:s.id}}),dismissDevice:s=>t(t=>({addedDevices:t.addedDevices.filter(t=>t.id!==s),selectedDeviceId:t.selectedDeviceId===s?'':t.selectedDeviceId})),chooseStreamMode:(s,c)=>t({streamMode:(0,n.resolveStreamMode)(s,c)}),resizeSidebar:(s,c)=>t(t=>({sidebarWidths:Object.assign({},t.sidebarWidths,{[s]:c})})),openSidebar:(s,c)=>t(t=>({sidebarPreferences:Object.assign({},t.sidebarPreferences,{[s]:c?'auto':'open'}),lastOpenedSidebar:s})),closeSidebar:s=>t(t=>({sidebarPreferences:Object.assign({},t.sidebarPreferences,{[s]:'hidden'})})),setHideUnsupportedDevices:s=>t({hideUnsupportedDevices:s}),setShowDeviceFrame:s=>t({showDeviceFrame:s})}))}const f=v()},333,[334,337,338,339]);
405
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},334,[335,336]);
406
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createStore",{enumerable:!0,get:function(){return n}});const t=t=>{let n;const c=new Set,o=(t,o)=>{const s="function"==typeof t?t(n):t;if(!Object.is(s,n)){const t=n;n=(null!=o?o:"object"!=typeof s||null===s)?s:Object.assign({},n,s),c.forEach(c=>c(n,t))}},s=()=>n,u={setState:o,getState:s,getInitialState:()=>l,subscribe:t=>(c.add(t),()=>c.delete(t))},l=n=t(o,s,u);return u},n=n=>n?t(n):t},335,[]);
407
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"create",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"useStore",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]);const c=e=>e;function l(e,t=c){const n=u.default.useSyncExternalStore(e.subscribe,u.default.useCallback(()=>t(e.getState()),[e,t]),u.default.useCallback(()=>t(e.getInitialState()),[e,t]));return u.default.useDebugValue(n),n}const s=e=>{const t=(0,n.createStore)(e),u=e=>l(t,e);return Object.assign(u,t),u},o=e=>e?s(e):s},336,[38,335]);
408
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.dashboardHideSidebar=function(){return'undefined'!=typeof window&&!0===window.__EXPO_DEVICE_HUB_HIDE_SIDEBAR__}},337,[]);
409
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TRANSPORT",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TRANSPORTS",{enumerable:!0,get:function(){return t}}),e.parseTransport=o,e.dashboardTransport=function(){return'undefined'==typeof window?n:o(window.__EXPO_DEVICE_HUB_TRANSPORT__)??n};const n='mjpeg',t=['mjpeg','h264','webrtc'];function o(n){return t.includes(n)?n:void 0}},338,[]);
410
+ __d(function(g,r,i,a,m,e,d){"use strict";function t(t){return{mjpeg:!0,h264:t.secureContext&&t.h264Decoder,webrtc:t.secureContext&&t.webRtc}}Object.defineProperty(e,'__esModule',{value:!0}),e.streamModeAvailability=t,e.browserStreamModeAvailability=function(){if('undefined'==typeof window)return{mjpeg:!0,h264:!1,webrtc:!1};return t({secureContext:window.isSecureContext,h264Decoder:void 0!==window.VideoDecoder,webRtc:void 0!==window.RTCPeerConnection&&void 0!==window.RTCRtpReceiver})},e.androidStreamModeAvailability=function(t,o){return Object.assign({},t,{h264:t.h264||o})},e.resolveStreamMode=function(t,o){return o[t]?t:'mjpeg'}},339,[]);
411
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY",{enumerable:!0,get:function(){return n.HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY}}),Object.defineProperty(e,"persistHideUnsupportedDevicesDefault",{enumerable:!0,get:function(){return n.persistHideUnsupportedDevicesDefault}}),Object.defineProperty(e,"readHideUnsupportedDevices",{enumerable:!0,get:function(){return n.readHideUnsupportedDevices}}),e.useHideUnsupportedDevices=function(){const s=(0,n.useDashboardStore)(t=>t.hideUnsupportedDevices),o=(0,n.useDashboardStore)(t=>t.setHideUnsupportedDevices);return(0,t.useEffect)(()=>{(0,n.persistHideUnsupportedDevicesDefault)(window.localStorage);const t=t=>{t&&null!==t.key&&t.key!==n.HIDE_UNSUPPORTED_DEVICES_STORAGE_KEY||o((0,n.readHideUnsupportedDevices)(window.localStorage))};return t(),window.addEventListener('storage',t),()=>window.removeEventListener('storage',t)},[o]),s},e.visibleDevices=function(t,n){return n?t.filter(t=>t.supported):t},e.visibleNewDeviceOptions=function(t,n){return n?{runtimes:t.runtimes.map(t=>Object.assign({},t,{models:t.models.filter(t=>t.supported)})).filter(t=>t.models.length>0)}:t};var t=r(d[0]),n=r(d[1])},340,[38,333]);
412
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useColorScheme=function(){const[n,c]=(0,t.useState)('light');return(0,t.useEffect)(()=>{if('undefined'==typeof window||!window.matchMedia)return;const t=window.matchMedia('(prefers-color-scheme: dark)'),n=()=>c(t.matches?'dark':'light');return n(),t.addEventListener('change',n),()=>t.removeEventListener('change',n)},[]),n};var t=r(d[0])},341,[38]);
413
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["errors"];Object.defineProperty(_e,'__esModule',{value:!0}),_e.devicesWebSocketUrl=E,_e.subscribeToDeviceList=y,_e.parseDeviceListSocketMessage=T,_e.parseDeviceListMessage=function(e){const t=T(e);return t?.type===c.DEVICE_LIST_MESSAGE_TYPE?t.devices:null},_e.splitDeviceList=M,_e.useDeviceLists=function(){const{devices:e,connectionStatus:t}=p(),s=(0,o.useMemo)(()=>M(e),[e]);return Object.assign({},s,{connectionStatus:t})};var t,s=r(d[0]),n=(t=s)&&t.__esModule?t:{default:t},o=r(d[1]),c=r(d[2]),u=r(d[3]),l=r(d[4]);function E(e=window.location.href){const t=new URL(`${(0,u.basePath)()}/api/devices/ws`,e);return t.protocol='https:'===t.protocol?'wss:':'ws:',t.toString()}const S={simulators:[],emulators:[]},f=500,v=1e4,_=6e3;function y({url:e=E(),createSocket:t=e=>new WebSocket(e),schedule:s=setTimeout,cancelSchedule:n=clearTimeout,reconnectMinMs:o=f,reconnectMaxMs:u=v,heartbeatTimeoutMs:l=_,onSnapshot:S,onStatus:y}){let p=!1,M=null,A=null,h=null,b=o,L='connecting';const D=e=>{L!==e&&(L=e,y(e))},w=()=>{null!==h&&(n(h),h=null)},I=()=>{p||null!==A||(A=s(()=>{A=null,k()},b),b=Math.min(2*b,u))},P=e=>{if(!p&&M===e){M=null,w(),D('disconnected');try{e.close()}catch{}I()}},G=e=>{w(),h=s(()=>P(e),l)},Y=e=>{p||M!==e||(b=o,D('connected'),G(e))};function k(){if(p)return;let s;try{s=t(e)}catch{return D('disconnected'),void I()}M=s,G(s),s.onmessage=e=>{const t=T(e.data);t&&(Y(s),t.type===c.DEVICE_LIST_MESSAGE_TYPE&&S(t.devices))},s.onerror=()=>P(s),s.onclose=()=>P(s)}return y(L),k(),()=>{p=!0,null!==A&&n(A),w();const e=M;M=null;try{e?.close()}catch{}}}function p(){const[t,s]=(0,o.useState)(S),[c,u]=(0,o.useState)('connecting');return(0,o.useEffect)(()=>{let t=new Set;return y({onSnapshot:o=>{t=(0,l.logUtilityErrors)(o.errors,t);const c=(0,n.default)(o,e);s(c)},onStatus:u})},[]),{devices:t,connectionStatus:c}}function T(e){if('string'!=typeof e)return null;try{const t=JSON.parse(e);if(t.type===c.HEARTBEAT_MESSAGE_TYPE)return{type:c.HEARTBEAT_MESSAGE_TYPE};if(t.type!==c.DEVICE_LIST_MESSAGE_TYPE||!Array.isArray(t.devices?.simulators)||!Array.isArray(t.devices?.emulators)||void 0!==t.devices.errors&&!Array.isArray(t.devices.errors))return null;const s=t.devices.errors?.filter(l.isUtilityError);return{type:c.DEVICE_LIST_MESSAGE_TYPE,devices:Object.assign({simulators:t.devices.simulators,emulators:t.devices.emulators},s?{errors:s}:{})}}catch{return null}}function M(e){const t=t=>({simulators:e.simulators.filter(e=>e.booted===t),emulators:e.emulators.filter(e=>e.booted===t)});return{booted:t(!0),recent:t(!1)}}},342,[131,38,343,329,332]);
414
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEVICE_LIST_MESSAGE_TYPE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"HEARTBEAT_MESSAGE_TYPE",{enumerable:!0,get:function(){return n}});const t='device-list',n='heartbeat'},343,[]);
415
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.floatingSidebarToggleInset=function(t,n,c){return t&&n<c+s?l:o},e.FloatingSidebarToggle=function({side:l,inset:s=o,onClick:c}){return(0,n.jsx)("div",{"data-floating-sidebar-toggle":l,style:{position:'absolute',top:28,[l]:s,zIndex:15},children:(0,n.jsx)(t.SidebarToggle,{floating:!0,side:l,onClick:c})})};var t=r(d[0]),n=r(d[1]);const o=24,l=80,s=40},344,[181,151]);
416
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.argentInteractionsWebSocketUrl=l,e.useArgentInteractions=f,e.useArgentInteraction=function(t){const n=f();return t?n[t]??null:null},e.parseArgentInteractionMessage=y;var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);const c=500,u=1e4;function l(t=window.location.href){const n=new URL(`${(0,s.basePath)()}/api/argent-interactions/ws`,t);return n.protocol='https:'===n.protocol?'wss:':'ws:',n.toString()}function f(){const[n,s]=(0,t.useState)({}),[f,p]=(0,t.useState)(()=>Date.now());(0,t.useEffect)(()=>{let t=!1,n=null,f=null,A=c;function w(){if(t)return;let u;try{u=new WebSocket(l())}catch{return void I()}n=u,u.onopen=()=>{A=c},u.onmessage=t=>{const n=y(t.data);if(!n)return;const c=Date.now(),u=(0,o.normalizeAgentInteractionTimestamp)(n.interaction,c);s(t=>Object.assign({},t,{[u.deviceId]:u})),p(c)},u.onerror=()=>u.close(),u.onclose=()=>{n===u&&(n=null,I())}}function I(){t||f||(f=setTimeout(()=>{f=null,w()},A),A=Math.min(2*A,u))}return w(),()=>{t=!0,f&&clearTimeout(f),n?.close()}},[]);const A=(0,t.useMemo)(()=>(0,o.activeAgentInteractions)(n,f),[n,f]);return(0,t.useEffect)(()=>{const t=(0,o.nextAgentInteractionExpiry)(A,f);if(null===t)return;const n=window.setTimeout(()=>p(Date.now()),Math.max(0,t-Date.now()));return()=>window.clearTimeout(n)},[A,f]),A}function y(t){if('string'!=typeof t)return null;try{const o=JSON.parse(t),s=o.interaction;return o.type===n.ARGENT_INTERACTION_MESSAGE_TYPE&&'string'==typeof s?.id&&'string'==typeof s.deviceId&&'string'==typeof s.timestamp&&Array.isArray(s.segments)&&s.segments.every(p)?o:null}catch{return null}}function p(t){return!!(A(t)&&w(t.startMs)&&Array.isArray(t.frames))&&t.frames.every(t=>A(t)&&w(t.atMs)&&Array.isArray(t.points)&&t.points.length>=1&&t.points.length<=2&&t.points.every(t=>A(t)&&w(t.x)&&w(t.y)))}function A(t){return'object'==typeof t&&null!==t&&!Array.isArray(t)}function w(t){return'number'==typeof t&&Number.isFinite(t)}},345,[38,346,347,329]);
417
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ARGENT_INTERACTION_MESSAGE_TYPE",{enumerable:!0,get:function(){return t}}),e.argentInteractionMessage=function(n){return{type:t,interaction:n}};const t='argent-interaction'},346,[]);
418
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.normalizeAgentInteractionTimestamp=function(t,n){return Number.isFinite(Date.parse(t.timestamp))?t:Object.assign({},t,{timestamp:new Date(n).toISOString()})},e.activeAgentInteractions=function(n,s){return Object.fromEntries(Object.entries(n).filter(([,n])=>(0,t.agentInteractionCursorExpiresAt)(n,s)>s))},e.nextAgentInteractionExpiry=function(n,s){let o=1/0;for(const c of Object.values(n)){const n=(0,t.agentInteractionCursorExpiresAt)(c,s);n>s&&(o=Math.min(o,n))}return Number.isFinite(o)?o:null};var t=r(d[0])},347,[148]);
419
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useNewDeviceOptions=function(){const[o,c]=(0,t.useState)(u);return(0,t.useEffect)(()=>{let t=!1;return(async()=>{try{const o=await fetch(s(),{headers:{Accept:'application/json'}});if(!o.ok)throw new Error(`Unexpected ${o.status}`);const u=await o.json();(0,n.logUtilityErrors)(u.errors),t||c({ios:u.ios,android:u.android})}catch(t){console.warn('[expo-device-hub] No new-device-options endpoint, using empty options:',t)}})(),()=>{t=!0}},[]),o};var t=r(d[0]),o=r(d[1]),n=r(d[2]);const s=()=>`${(0,o.basePath)()}/api/new-device-options`,c={runtimes:[]},u={ios:c,android:c}},348,[38,329,332]);
420
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarOverlay=function({side:s,open:l,sidebarOpen:c,topmost:u,onDismiss:b,children:p}){const{present:v,reducedMotion:I,visible:S}=(0,t.useSidebarPresence)(l,!c);if(!v)return null;const _=u?12:10,f=I?void 0:`opacity ${t.SIDEBAR_TRANSITION_MS}ms ease`,h=I?void 0:`transform ${t.SIDEBAR_TRANSITION_MS}ms ${t.SIDEBAR_TRANSITION_EASING}`;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"aria-hidden":"true","data-sidebar-backdrop":s,onClick:b,style:{position:'absolute',inset:0,backgroundColor:o.bg.overlay,opacity:S?.35:0,pointerEvents:S?'auto':'none',transition:f,zIndex:_}}),(0,n.jsx)("div",{"aria-hidden":!S||void 0,"data-sidebar-overlay":s,"data-state":S?'open':'closed',style:{position:'absolute',top:0,[s]:0,zIndex:_+1,backgroundColor:o.bg.subtle,boxShadow:o.shadow.lg,pointerEvents:S?'auto':'none',transform:S?'translateX(0)':`translateX(${'left'===s?'-100%':'100%'})`,transition:h,willChange:'transform'},children:p})]})};var o=r(d[0]),t=r(d[1]),n=r(d[2])},349,[181,327,151]);
421
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.resolveSidebarLayout=o,e.useSidebarLayout=function({leftWidth:s,rightWidth:c,minStreamWidth:h}){const f=(0,t.useRef)(null),[u,l]=(0,t.useState)(()=>'undefined'==typeof window?0:window.innerWidth),b=(0,n.useDashboardStore)(t=>t.sidebarPreferences.left),S=(0,n.useDashboardStore)(t=>t.sidebarPreferences.right),p=(0,n.useDashboardStore)(t=>t.lastOpenedSidebar),W=(0,n.useDashboardStore)(t=>t.openSidebar),O=(0,n.useDashboardStore)(t=>t.closeSidebar);(0,t.useEffect)(()=>{const t=f.current;if(!t)return;const n=()=>l(t.getBoundingClientRect().width);n();const o=new ResizeObserver(n);return o.observe(t),()=>o.disconnect()},[]);const D=o({leftPreference:b,rightPreference:S,containerWidth:u,leftWidth:s,rightWidth:c,minStreamWidth:h});return Object.assign({},D,{containerRef:f,containerWidth:u,leftOpen:D.leftOpen,lastOpened:p,openLeft:()=>{const t=u>=s+h+(D.rightDocked?c:0);W('left',t)},closeLeft:()=>O('left'),openRight:()=>{W('right',u>=c+h)},closeRight:()=>O('right')})};var t=r(d[0]),n=r(d[1]);function o({leftPreference:t,rightPreference:n,containerWidth:o,leftWidth:s,rightWidth:c,minStreamWidth:h}){const f=o>=c+h,u='open'===n||'auto'===n&&f,l=u&&f,b=o>=s+h+(l?c:0),S='open'===t||'auto'===t&&b,p=S&&b;return{leftOpen:S,leftDocked:p,leftOverlay:S&&!p,rightOpen:u,rightDocked:l,rightOverlay:u&&!l}}},350,[38,333]);
422
+ __d(function(g,r,i,a,m,e,d){"use strict";function o(o){return'ios'===o||'android'===o?o:void 0}Object.defineProperty(e,'__esModule',{value:!0}),e.parsePlatformFilter=o,e.dashboardPlatformFilter=function(){return'undefined'==typeof window?void 0:o(window.__EXPO_DEVICE_HUB_PLATFORM__)}},351,[]);
404
423
  __r(3);
405
424
  __r(0);
@@ -48,14 +48,14 @@
48
48
  flex: 1;
49
49
  }
50
50
  </style>
51
- <link rel="icon" href="./favicon.ico"/><link rel="preload" href="./_expo/static/css/theme-9f69e1893d046bd6613bc250f49351df.css" as="style">
52
- <link rel="stylesheet" href="./_expo/static/css/theme-9f69e1893d046bd6613bc250f49351df.css"><link rel="preload" href="./_expo/static/css/global-8e7d97bb91b727cb23ecafcfdcb45034.css" as="style">
51
+ <link rel="icon" href="./favicon.ico"/><link rel="preload" href="./_expo/static/css/theme-5525411bc39c58e94f9bdf5b64cb9eaa.css" as="style">
52
+ <link rel="stylesheet" href="./_expo/static/css/theme-5525411bc39c58e94f9bdf5b64cb9eaa.css"><link rel="preload" href="./_expo/static/css/global-8e7d97bb91b727cb23ecafcfdcb45034.css" as="style">
53
53
  <link rel="stylesheet" href="./_expo/static/css/global-8e7d97bb91b727cb23ecafcfdcb45034.css"></head>
54
54
 
55
55
  <body>
56
56
  <noscript> You need to enable JavaScript to run Expo Device Hub. </noscript>
57
57
  <!-- The root element for the Hub dashboard. -->
58
58
  <div id="root"></div>
59
- <script src="./_expo/static/js/web/index-7a1b828737986b293cdcc63c4dfbdf18.js" defer></script>
59
+ <script src="./_expo/static/js/web/index-cfe6fc5ec8e9b942a620f56c6d254d17.js" defer></script>
60
60
  </body>
61
61
  </html>
@@ -27,7 +27,10 @@ import { URL as URL3 } from "node:url";
27
27
  // src/server/cli/node-fetch-server.ts
28
28
  import { Readable } from "node:stream";
29
29
  function requestOrigin(request) {
30
- const proto = "encrypted" in request.socket && request.socket.encrypted ? "https" : "http";
30
+ const forwardedProto = request.headers["x-forwarded-proto"];
31
+ const clientProto = (Array.isArray(forwardedProto) ? forwardedProto[0] : forwardedProto)?.split(",", 1)[0]?.trim().toLowerCase();
32
+ const socketProto = "encrypted" in request.socket && request.socket.encrypted ? "https" : "http";
33
+ const proto = clientProto === "http" || clientProto === "https" ? clientProto : socketProto;
31
34
  return `${proto}://${request.headers.host ?? "localhost"}`;
32
35
  }
33
36
  function convertHeaders(request) {
@@ -1177,5 +1180,5 @@ main().catch((error) => {
1177
1180
  process.exit(1);
1178
1181
  });
1179
1182
 
1180
- //# debugId=DEFA8A61E46B4F3B64756E2164756E21
1183
+ //# debugId=654A52F077F2CD2E64756E2164756E21
1181
1184
  //# sourceMappingURL=cli.mjs.map
@@ -10672,8 +10672,25 @@ function argentInteractionWebSocketHandler(socket) {
10672
10672
 
10673
10673
  // src/device-list-protocol.ts
10674
10674
  var DEVICE_LIST_MESSAGE_TYPE = "device-list";
10675
+ var HEARTBEAT_MESSAGE_TYPE = "heartbeat";
10675
10676
 
10676
10677
  // src/server/device-support.ts
10678
+ var IPHONE_17_PRO_DEVICE_TYPE = "com.apple.CoreSimulator.SimDeviceType.iPhone-17-Pro";
10679
+ var IPHONE_17_PRO_FRAME = "ios:iphone-17-pro";
10680
+ var PIXEL_10_PRO_FRAME = "android:pixel-10-pro";
10681
+ function appleDeviceTypeFrame(deviceType) {
10682
+ return deviceType.identifier === IPHONE_17_PRO_DEVICE_TYPE ? IPHONE_17_PRO_FRAME : null;
10683
+ }
10684
+ function appleDeviceFrame(device) {
10685
+ return device.deviceTypeIdentifier === IPHONE_17_PRO_DEVICE_TYPE ? IPHONE_17_PRO_FRAME : null;
10686
+ }
10687
+ function androidDeviceProfileFrame(profile) {
10688
+ return isPixel10Pro(profile.id, profile.name) ? PIXEL_10_PRO_FRAME : null;
10689
+ }
10690
+ function androidDeviceFrame(device) {
10691
+ const profile = device.type === "device" ? device.properties["ro.product.model"] ?? device.name : device.config["hw.device.name"] ?? device.properties.Device;
10692
+ return isPixel10Pro(profile ?? device.name) ? PIXEL_10_PRO_FRAME : null;
10693
+ }
10677
10694
  function isSupportedAppleDeviceType(deviceType) {
10678
10695
  return isIphoneDeviceTypeIdentifier(deviceType.identifier);
10679
10696
  }
@@ -10701,6 +10718,12 @@ function isPixelPhone(...candidates) {
10701
10718
  return /pixel/.test(normalized) && !/(?:fold|tablet|watch|buds|pixel c)/.test(normalized);
10702
10719
  });
10703
10720
  }
10721
+ function isPixel10Pro(...candidates) {
10722
+ return candidates.some((candidate) => normalizeDeviceName(candidate) === "pixel 10 pro");
10723
+ }
10724
+ function normalizeDeviceName(candidate) {
10725
+ return candidate?.toLowerCase().replaceAll("_", " ").replaceAll("-", " ").trim() ?? null;
10726
+ }
10704
10727
 
10705
10728
  // src/server/devices.ts
10706
10729
  async function listIosSimulators() {
@@ -10716,6 +10739,7 @@ async function listIosSimulators() {
10716
10739
  booted: device.state.toLowerCase() === "booted",
10717
10740
  physical: false,
10718
10741
  supported: isSupportedAppleDevice(device),
10742
+ deviceFrame: appleDeviceFrame(device),
10719
10743
  lastUsedAt: latestTimestamp(device.lastUsedAt, device.lastBootedAt)
10720
10744
  };
10721
10745
  }).filter((device) => device.lastUsedAt !== undefined),
@@ -10733,6 +10757,7 @@ async function listAndroidEmulators() {
10733
10757
  booted: device.booted,
10734
10758
  physical: device.type === "device",
10735
10759
  supported: isSupportedAndroidDevice(device),
10760
+ deviceFrame: androidDeviceFrame(device),
10736
10761
  lastUsedAt: latestTimestamp(device.lastBootedAt)
10737
10762
  })).filter((device) => device.booted || device.lastUsedAt !== undefined),
10738
10763
  error: toSerializableError(listed.error)
@@ -10772,6 +10797,7 @@ var SERVER_PLATFORM_FILTER = process.env.EXPO_DEVICE_HUB_BASE_PATH === "" ? pars
10772
10797
 
10773
10798
  // src/server/device-list-websocket.ts
10774
10799
  var POLL_INTERVAL_MS2 = 500;
10800
+ var HEARTBEAT_INTERVAL_MS = 2000;
10775
10801
 
10776
10802
  class DeviceListBroadcaster {
10777
10803
  #clients = new Set;
@@ -10779,8 +10805,12 @@ class DeviceListBroadcaster {
10779
10805
  #intervalMs;
10780
10806
  #schedule;
10781
10807
  #cancelSchedule;
10808
+ #heartbeatIntervalMs;
10809
+ #scheduleHeartbeat;
10810
+ #cancelHeartbeat;
10782
10811
  #onError;
10783
10812
  #timer = null;
10813
+ #heartbeatTimer = null;
10784
10814
  #polling = false;
10785
10815
  #refreshQueued = false;
10786
10816
  #snapshot = null;
@@ -10790,6 +10820,9 @@ class DeviceListBroadcaster {
10790
10820
  this.#intervalMs = options.intervalMs ?? POLL_INTERVAL_MS2;
10791
10821
  this.#schedule = options.schedule ?? setTimeout;
10792
10822
  this.#cancelSchedule = options.cancelSchedule ?? clearTimeout;
10823
+ this.#heartbeatIntervalMs = options.heartbeatIntervalMs ?? HEARTBEAT_INTERVAL_MS;
10824
+ this.#scheduleHeartbeat = options.scheduleHeartbeat ?? setInterval;
10825
+ this.#cancelHeartbeat = options.cancelHeartbeat ?? clearInterval;
10793
10826
  this.#onError = options.onError ?? ((error) => console.warn("[expo-device-hub] Failed to refresh device list:", error));
10794
10827
  }
10795
10828
  subscribe(socket) {
@@ -10800,18 +10833,17 @@ class DeviceListBroadcaster {
10800
10833
  if (!active)
10801
10834
  return;
10802
10835
  active = false;
10803
- this.#clients.delete(socket);
10804
- if (this.#clients.size === 0) {
10805
- this.#refreshQueued = false;
10806
- this.#stopTimer();
10807
- }
10836
+ this.#removeClient(socket);
10808
10837
  };
10809
10838
  socket.on("close", unsubscribe);
10810
10839
  socket.on("error", unsubscribe);
10811
- if (this.#snapshot)
10812
- this.#send(socket, this.#snapshot);
10813
- if (wasEmpty)
10840
+ if (wasEmpty) {
10841
+ this.#startHeartbeat();
10814
10842
  this.refresh();
10843
+ }
10844
+ this.#sendHeartbeat(socket);
10845
+ if (this.#clients.has(socket) && this.#snapshot)
10846
+ this.#send(socket, this.#snapshot);
10815
10847
  }
10816
10848
  refresh() {
10817
10849
  if (this.#clients.size === 0)
@@ -10856,18 +10888,45 @@ class DeviceListBroadcaster {
10856
10888
  for (const socket of this.#clients)
10857
10889
  this.#send(socket, snapshot);
10858
10890
  }
10891
+ #broadcastHeartbeat() {
10892
+ for (const socket of this.#clients)
10893
+ this.#sendHeartbeat(socket);
10894
+ }
10895
+ #sendHeartbeat(socket) {
10896
+ this.#sendMessage(socket, JSON.stringify({ type: HEARTBEAT_MESSAGE_TYPE }));
10897
+ }
10859
10898
  #send(socket, snapshot) {
10899
+ this.#sendMessage(socket, JSON.stringify({ type: DEVICE_LIST_MESSAGE_TYPE, devices: snapshot }));
10900
+ }
10901
+ #sendMessage(socket, message) {
10860
10902
  try {
10861
- socket.send(JSON.stringify({ type: DEVICE_LIST_MESSAGE_TYPE, devices: snapshot }));
10903
+ socket.send(message);
10862
10904
  } catch {
10863
- this.#clients.delete(socket);
10864
- if (this.#clients.size === 0)
10865
- this.#stopTimer();
10905
+ this.#removeClient(socket);
10866
10906
  try {
10867
10907
  socket.close();
10868
10908
  } catch {}
10869
10909
  }
10870
10910
  }
10911
+ #removeClient(socket) {
10912
+ this.#clients.delete(socket);
10913
+ if (this.#clients.size > 0)
10914
+ return;
10915
+ this.#refreshQueued = false;
10916
+ this.#stopTimer();
10917
+ this.#stopHeartbeat();
10918
+ }
10919
+ #startHeartbeat() {
10920
+ if (this.#heartbeatTimer !== null)
10921
+ return;
10922
+ this.#heartbeatTimer = this.#scheduleHeartbeat(() => this.#broadcastHeartbeat(), this.#heartbeatIntervalMs);
10923
+ }
10924
+ #stopHeartbeat() {
10925
+ if (this.#heartbeatTimer === null)
10926
+ return;
10927
+ this.#cancelHeartbeat(this.#heartbeatTimer);
10928
+ this.#heartbeatTimer = null;
10929
+ }
10871
10930
  #stopTimer() {
10872
10931
  if (this.#timer === null)
10873
10932
  return;
@@ -10876,7 +10935,17 @@ class DeviceListBroadcaster {
10876
10935
  }
10877
10936
  }
10878
10937
  function deviceListFingerprint(list) {
10879
- const normalize = (devices) => devices.map(({ id, name, version, platform, booted, physical, supported, lastUsedAt }) => ({
10938
+ const normalize = (devices) => devices.map(({
10939
+ id,
10940
+ name,
10941
+ version,
10942
+ platform,
10943
+ booted,
10944
+ physical,
10945
+ supported,
10946
+ deviceFrame,
10947
+ lastUsedAt
10948
+ }) => ({
10880
10949
  id,
10881
10950
  name,
10882
10951
  version,
@@ -10884,6 +10953,7 @@ function deviceListFingerprint(list) {
10884
10953
  booted,
10885
10954
  physical,
10886
10955
  supported,
10956
+ deviceFrame,
10887
10957
  lastUsedAt
10888
10958
  })).sort((a, b) => a.id.localeCompare(b.id));
10889
10959
  return JSON.stringify({
@@ -11354,7 +11424,8 @@ function appleRuntimesToOptions(runtimes) {
11354
11424
  models: runtime.supportedDeviceTypes.map((deviceType) => ({
11355
11425
  value: deviceType.identifier,
11356
11426
  label: deviceType.name,
11357
- supported: isSupportedAppleDeviceType(deviceType)
11427
+ supported: isSupportedAppleDeviceType(deviceType),
11428
+ deviceFrame: appleDeviceTypeFrame(deviceType)
11358
11429
  }))
11359
11430
  })).filter((runtime) => runtime.models.length > 0).sort((a, b) => compareVersionsDescending(a.label, b.label))
11360
11431
  };
@@ -11364,7 +11435,8 @@ function androidImagesToOptions(images, profiles) {
11364
11435
  profile,
11365
11436
  value: profile.id,
11366
11437
  label: profile.name || profile.id,
11367
- supported: isSupportedAndroidDeviceProfile(profile)
11438
+ supported: isSupportedAndroidDeviceProfile(profile),
11439
+ deviceFrame: androidDeviceProfileFrame(profile)
11368
11440
  })).sort((a, b) => a.label.localeCompare(b.label, undefined, { numeric: true }));
11369
11441
  return {
11370
11442
  runtimes: images.map((image) => ({
@@ -11531,5 +11603,5 @@ export {
11531
11603
  handler as default
11532
11604
  };
11533
11605
 
11534
- //# debugId=6AFDBF1ACE75872064756E2164756E21
11606
+ //# debugId=DCEE53803578A81A64756E2164756E21
11535
11607
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-device-hub",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Expo DevTools plugin for managing iOS simulators and Android emulators.",
5
5
  "keywords": [
6
6
  "expo",