@neurodyn/model-viewer 0.0.1 → 0.0.2

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.
@@ -1070,6 +1070,7 @@ ${t}}`}}class C2{constructor(){this.textureUtils=null}setTextureUtils(e){this.te
1070
1070
  --color-white: #fff;
1071
1071
  --spacing: 4px;
1072
1072
  --container-xs: 320px;
1073
+ --container-lg: 512px;
1073
1074
  --text-xs: 12px;
1074
1075
  --text-sm: 14px;
1075
1076
  --text-base: 16px;
@@ -1605,6 +1606,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
1605
1606
  margin-top: calc(var(--spacing) * 1.5);
1606
1607
  }
1607
1608
 
1609
+ .mt-4 {
1610
+ margin-top: calc(var(--spacing) * 4);
1611
+ }
1612
+
1608
1613
  .mt-6 {
1609
1614
  margin-top: calc(var(--spacing) * 6);
1610
1615
  }
@@ -1668,6 +1673,22 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
1668
1673
  display: inline-flex;
1669
1674
  }
1670
1675
 
1676
+ .table {
1677
+ display: table;
1678
+ }
1679
+
1680
+ .table-caption {
1681
+ display: table-caption;
1682
+ }
1683
+
1684
+ .table-cell {
1685
+ display: table-cell;
1686
+ }
1687
+
1688
+ .table-row {
1689
+ display: table-row;
1690
+ }
1691
+
1671
1692
  .field-sizing-content {
1672
1693
  field-sizing: content;
1673
1694
  }
@@ -1883,6 +1904,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
1883
1904
  min-height: 1px;
1884
1905
  }
1885
1906
 
1907
+ .w-0\\.5 {
1908
+ width: calc(var(--spacing) * .5);
1909
+ }
1910
+
1886
1911
  .w-2 {
1887
1912
  width: calc(var(--spacing) * 2);
1888
1913
  }
@@ -1895,6 +1920,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
1895
1920
  width: calc(var(--spacing) * 9);
1896
1921
  }
1897
1922
 
1923
+ .w-10 {
1924
+ width: calc(var(--spacing) * 10);
1925
+ }
1926
+
1898
1927
  .w-11 {
1899
1928
  width: calc(var(--spacing) * 11);
1900
1929
  }
@@ -2019,6 +2048,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
2019
2048
  flex-basis: 100%;
2020
2049
  }
2021
2050
 
2051
+ .caption-bottom {
2052
+ caption-side: bottom;
2053
+ }
2054
+
2022
2055
  .origin-\\(--radix-dropdown-menu-content-transform-origin\\) {
2023
2056
  transform-origin: var(--radix-dropdown-menu-content-transform-origin);
2024
2057
  }
@@ -2093,6 +2126,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
2093
2126
  cursor: default;
2094
2127
  }
2095
2128
 
2129
+ .cursor-grab {
2130
+ cursor: grab;
2131
+ }
2132
+
2096
2133
  .cursor-pointer {
2097
2134
  cursor: pointer;
2098
2135
  }
@@ -2141,6 +2178,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
2141
2178
  flex-direction: column;
2142
2179
  }
2143
2180
 
2181
+ .flex-col-reverse {
2182
+ flex-direction: column-reverse;
2183
+ }
2184
+
2144
2185
  .flex-row {
2145
2186
  flex-direction: row;
2146
2187
  }
@@ -2336,6 +2377,16 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
2336
2377
  border-width: 2px;
2337
2378
  }
2338
2379
 
2380
+ .border-t {
2381
+ border-top-style: var(--tw-border-style);
2382
+ border-top-width: 1px;
2383
+ }
2384
+
2385
+ .border-b {
2386
+ border-bottom-style: var(--tw-border-style);
2387
+ border-bottom-width: 1px;
2388
+ }
2389
+
2339
2390
  .border-l-0 {
2340
2391
  border-left-style: var(--tw-border-style);
2341
2392
  border-left-width: 0;
@@ -2514,7 +2565,15 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
2514
2565
  background-color: var(--color-lime-400);
2515
2566
  }
2516
2567
 
2517
- .bg-muted, .bg-muted\\/50 {
2568
+ .bg-muted {
2569
+ background-color: var(--muted);
2570
+ }
2571
+
2572
+ .bg-muted-foreground {
2573
+ background-color: var(--muted-foreground);
2574
+ }
2575
+
2576
+ .bg-muted\\/50 {
2518
2577
  background-color: var(--muted);
2519
2578
  }
2520
2579
 
@@ -2637,6 +2696,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
2637
2696
  padding-inline: calc(var(--spacing) * 0);
2638
2697
  }
2639
2698
 
2699
+ .px-0\\.5 {
2700
+ padding-inline: calc(var(--spacing) * .5);
2701
+ }
2702
+
2640
2703
  .px-1\\.5 {
2641
2704
  padding-inline: calc(var(--spacing) * 1.5);
2642
2705
  }
@@ -2769,6 +2832,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
2769
2832
  text-align: left;
2770
2833
  }
2771
2834
 
2835
+ .align-middle {
2836
+ vertical-align: middle;
2837
+ }
2838
+
2772
2839
  .font-mono {
2773
2840
  font-family: var(--font-mono);
2774
2841
  }
@@ -2919,6 +2986,11 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
2919
2986
  font-weight: var(--font-weight-normal);
2920
2987
  }
2921
2988
 
2989
+ .font-semibold {
2990
+ --tw-font-weight: var(--font-weight-semibold);
2991
+ font-weight: var(--font-weight-semibold);
2992
+ }
2993
+
2922
2994
  .tracking-\\[-0\\.02em\\] {
2923
2995
  --tw-tracking: -.02em;
2924
2996
  letter-spacing: -.02em;
@@ -3687,10 +3759,20 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
3687
3759
  position: absolute;
3688
3760
  }
3689
3761
 
3762
+ .first\\:rounded-l-md:first-child {
3763
+ border-top-left-radius: calc(var(--radius) - 2px);
3764
+ border-bottom-left-radius: calc(var(--radius) - 2px);
3765
+ }
3766
+
3690
3767
  .last\\:mt-0:last-child {
3691
3768
  margin-top: calc(var(--spacing) * 0);
3692
3769
  }
3693
3770
 
3771
+ .last\\:rounded-r-md:last-child {
3772
+ border-top-right-radius: calc(var(--radius) - 2px);
3773
+ border-bottom-right-radius: calc(var(--radius) - 2px);
3774
+ }
3775
+
3694
3776
  .focus-within\\:border-border-dark:focus-within {
3695
3777
  border-color: var(--v-borders-dark);
3696
3778
  }
@@ -3751,10 +3833,16 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
3751
3833
  }
3752
3834
  }
3753
3835
 
3754
- .hover\\:bg-muted:hover {
3836
+ .hover\\:bg-muted:hover, .hover\\:bg-muted\\/50:hover {
3755
3837
  background-color: var(--muted);
3756
3838
  }
3757
3839
 
3840
+ @supports (color: color-mix(in lab, red, red)) {
3841
+ .hover\\:bg-muted\\/50:hover {
3842
+ background-color: color-mix(in oklab, var(--muted) 50%, transparent);
3843
+ }
3844
+ }
3845
+
3758
3846
  .hover\\:bg-primary--hover:hover {
3759
3847
  background-color: var(--contrast--hover);
3760
3848
  }
@@ -3816,6 +3904,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
3816
3904
  }
3817
3905
  }
3818
3906
 
3907
+ .focus\\:z-10:focus {
3908
+ z-index: 10;
3909
+ }
3910
+
3819
3911
  .focus\\:border-border-dark:focus {
3820
3912
  border-color: var(--v-borders-dark);
3821
3913
  }
@@ -3935,6 +4027,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
3935
4027
  outline-style: none;
3936
4028
  }
3937
4029
 
4030
+ .active\\:cursor-grabbing:active {
4031
+ cursor: grabbing;
4032
+ }
4033
+
3938
4034
  .active\\:rounded-lg:active {
3939
4035
  border-radius: var(--radius);
3940
4036
  }
@@ -4726,6 +4822,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
4726
4822
  --tw-enter-scale: .95;
4727
4823
  }
4728
4824
 
4825
+ .data-\\[state\\=selected\\]\\:bg-muted[data-state="selected"] {
4826
+ background-color: var(--muted);
4827
+ }
4828
+
4729
4829
  .data-\\[state\\=unchecked\\]\\:translate-x-0[data-state="unchecked"] {
4730
4830
  --tw-translate-x: calc(var(--spacing) * 0);
4731
4831
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -4785,6 +4885,21 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
4785
4885
  line-height: var(--tw-leading, 1.5);
4786
4886
  }
4787
4887
 
4888
+ .data-\\[variant\\=outline\\]\\:border-l-0[data-variant="outline"] {
4889
+ border-left-style: var(--tw-border-style);
4890
+ border-left-width: 0;
4891
+ }
4892
+
4893
+ .data-\\[variant\\=outline\\]\\:shadow-xs[data-variant="outline"] {
4894
+ --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, #0000000d);
4895
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4896
+ }
4897
+
4898
+ .data-\\[variant\\=outline\\]\\:first\\:border-l[data-variant="outline"]:first-child {
4899
+ border-left-style: var(--tw-border-style);
4900
+ border-left-width: 1px;
4901
+ }
4902
+
4788
4903
  .nth-last-2\\:-mt-1:nth-last-child(2) {
4789
4904
  margin-top: calc(var(--spacing) * -1);
4790
4905
  }
@@ -4808,10 +4923,22 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
4808
4923
  max-width: calc(var(--spacing) * 120);
4809
4924
  }
4810
4925
 
4926
+ .sm\\:max-w-lg {
4927
+ max-width: var(--container-lg);
4928
+ }
4929
+
4811
4930
  .sm\\:grid-cols-3 {
4812
4931
  grid-template-columns: repeat(3, minmax(0, 1fr));
4813
4932
  }
4814
4933
 
4934
+ .sm\\:flex-row {
4935
+ flex-direction: row;
4936
+ }
4937
+
4938
+ .sm\\:justify-end {
4939
+ justify-content: flex-end;
4940
+ }
4941
+
4815
4942
  .sm\\:p-0 {
4816
4943
  padding: calc(var(--spacing) * 0);
4817
4944
  }
@@ -4819,6 +4946,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
4819
4946
  .sm\\:p-10 {
4820
4947
  padding: calc(var(--spacing) * 10);
4821
4948
  }
4949
+
4950
+ .sm\\:text-left {
4951
+ text-align: left;
4952
+ }
4822
4953
  }
4823
4954
 
4824
4955
  @media (width >= 768px) {
@@ -5056,34 +5187,44 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
5056
5187
  }
5057
5188
  }
5058
5189
 
5059
- .\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4 svg:not([class*="'size-'"]) {
5190
+ .\\[\\&_svg\\:not\\(\\[class\\*\\=size-\\]\\)\\]\\:size-4 svg:not([class*="size-"]) {
5060
5191
  width: calc(var(--spacing) * 4);
5061
5192
  height: calc(var(--spacing) * 4);
5062
5193
  }
5063
5194
 
5064
- .\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-6 svg:not([class*="'size-'"]), .group-data-\\[size\\=default\\]\\/input-group\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-6:is(:where(.group\\/input-group)[data-size="default"] *) svg:not([class*="'size-'"]) {
5195
+ .\\[\\&_svg\\:not\\(\\[class\\*\\=size-\\]\\)\\]\\:size-6 svg:not([class*="size-"]), .group-data-\\[size\\=default\\]\\/input-group\\:\\[\\&_svg\\:not\\(\\[class\\*\\=size-\\]\\)\\]\\:size-6:is(:where(.group\\/input-group)[data-size="default"] *) svg:not([class*="size-"]) {
5065
5196
  width: calc(var(--spacing) * 6);
5066
5197
  height: calc(var(--spacing) * 6);
5067
5198
  }
5068
5199
 
5069
- .group-data-\\[size\\=md\\]\\/input-group\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4:is(:where(.group\\/input-group)[data-size="md"] *) svg:not([class*="'size-'"]) {
5200
+ .group-data-\\[size\\=md\\]\\/input-group\\:\\[\\&_svg\\:not\\(\\[class\\*\\=size-\\]\\)\\]\\:size-4:is(:where(.group\\/input-group)[data-size="md"] *) svg:not([class*="size-"]) {
5070
5201
  width: calc(var(--spacing) * 4);
5071
5202
  height: calc(var(--spacing) * 4);
5072
5203
  }
5073
5204
 
5074
- .group-data-\\[size\\=sm\\]\\/input-group\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-3:is(:where(.group\\/input-group)[data-size="sm"] *) svg:not([class*="'size-'"]) {
5205
+ .group-data-\\[size\\=sm\\]\\/input-group\\:\\[\\&_svg\\:not\\(\\[class\\*\\=size-\\]\\)\\]\\:size-3:is(:where(.group\\/input-group)[data-size="sm"] *) svg:not([class*="size-"]) {
5075
5206
  width: calc(var(--spacing) * 3);
5076
5207
  height: calc(var(--spacing) * 3);
5077
5208
  }
5078
5209
 
5079
- .\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'text-\\\\\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*="'text-'"]) {
5210
+ .\\[\\&_svg\\:not\\(\\[class\\*\\=text-\\]\\)\\]\\:text-muted-foreground svg:not([class*="text-"]) {
5080
5211
  color: var(--muted-foreground);
5081
5212
  }
5082
5213
 
5083
- .\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'text-\\\\\\'\\]\\)\\]\\:text-text-dark svg:not([class*="'text-'"]) {
5214
+ .\\[\\&_svg\\:not\\(\\[class\\*\\=text-\\]\\)\\]\\:text-text-dark svg:not([class*="text-"]) {
5084
5215
  color: var(--v-text-dark);
5085
5216
  }
5086
5217
 
5218
+ .\\[\\&_tr\\]\\:border-b tr {
5219
+ border-bottom-style: var(--tw-border-style);
5220
+ border-bottom-width: 1px;
5221
+ }
5222
+
5223
+ .\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child {
5224
+ border-style: var(--tw-border-style);
5225
+ border-width: 0;
5226
+ }
5227
+
5087
5228
  .\\[\\&\\+\\[data-slot\\=item-content\\]\\]\\:flex-none + [data-slot="item-content"] {
5088
5229
  flex: none;
5089
5230
  }
@@ -5104,6 +5245,10 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
5104
5245
  appearance: none;
5105
5246
  }
5106
5247
 
5248
+ .\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role="checkbox"]) {
5249
+ padding-right: calc(var(--spacing) * 0);
5250
+ }
5251
+
5107
5252
  .\\[\\.border-b\\]\\:pb-2\\.5.border-b {
5108
5253
  padding-bottom: calc(var(--spacing) * 2.5);
5109
5254
  }
@@ -5182,6 +5327,11 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
5182
5327
  }
5183
5328
  }
5184
5329
 
5330
+ .\\[\\&\\>\\[role\\=checkbox\\]\\]\\:translate-y-\\[2px\\] > [role="checkbox"] {
5331
+ --tw-translate-y: 2px;
5332
+ translate: var(--tw-translate-x) var(--tw-translate-y);
5333
+ }
5334
+
5185
5335
  .has-\\[\\>\\[data-slot\\=field-content\\]\\]\\:\\[\\&\\>\\[role\\=checkbox\\]\\,\\[role\\=radio\\]\\]\\:mt-px:has( > [data-slot="field-content"]) > [role="checkbox"], .has-\\[\\>\\[data-slot\\=field-content\\]\\]\\:\\[\\&\\>\\[role\\=checkbox\\]\\,\\[role\\=radio\\]\\]\\:mt-px:has( > [data-slot="field-content"]) [role="radio"] {
5186
5336
  margin-top: 1px;
5187
5337
  }
@@ -5220,26 +5370,31 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
5220
5370
  padding-left: calc(var(--spacing) * 2);
5221
5371
  }
5222
5372
 
5223
- .\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-3\\.5 > svg:not([class*="'size-'"]) {
5373
+ .\\[\\&\\>svg\\:not\\(\\[class\\*\\=size-\\]\\)\\]\\:size-3\\.5 > svg:not([class*="size-"]) {
5224
5374
  width: calc(var(--spacing) * 3.5);
5225
5375
  height: calc(var(--spacing) * 3.5);
5226
5376
  }
5227
5377
 
5228
- .group-data-\\[size\\=default\\]\\/input-group\\:\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-6:is(:where(.group\\/input-group)[data-size="default"] *) > svg:not([class*="'size-'"]) {
5378
+ .group-data-\\[size\\=default\\]\\/input-group\\:\\[\\&\\>svg\\:not\\(\\[class\\*\\=size-\\]\\)\\]\\:size-6:is(:where(.group\\/input-group)[data-size="default"] *) > svg:not([class*="size-"]) {
5229
5379
  width: calc(var(--spacing) * 6);
5230
5380
  height: calc(var(--spacing) * 6);
5231
5381
  }
5232
5382
 
5233
- .group-data-\\[size\\=md\\]\\/input-group\\:\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4:is(:where(.group\\/input-group)[data-size="md"] *) > svg:not([class*="'size-'"]) {
5383
+ .group-data-\\[size\\=md\\]\\/input-group\\:\\[\\&\\>svg\\:not\\(\\[class\\*\\=size-\\]\\)\\]\\:size-4:is(:where(.group\\/input-group)[data-size="md"] *) > svg:not([class*="size-"]) {
5234
5384
  width: calc(var(--spacing) * 4);
5235
5385
  height: calc(var(--spacing) * 4);
5236
5386
  }
5237
5387
 
5238
- .group-data-\\[size\\=sm\\]\\/input-group\\:\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-3:is(:where(.group\\/input-group)[data-size="sm"] *) > svg:not([class*="'size-'"]) {
5388
+ .group-data-\\[size\\=sm\\]\\/input-group\\:\\[\\&\\>svg\\:not\\(\\[class\\*\\=size-\\]\\)\\]\\:size-3:is(:where(.group\\/input-group)[data-size="sm"] *) > svg:not([class*="size-"]) {
5239
5389
  width: calc(var(--spacing) * 3);
5240
5390
  height: calc(var(--spacing) * 3);
5241
5391
  }
5242
5392
 
5393
+ .\\[\\&\\>tr\\]\\:last\\:border-b-0 > tr:last-child {
5394
+ border-bottom-style: var(--tw-border-style);
5395
+ border-bottom-width: 0;
5396
+ }
5397
+
5243
5398
  .\\[\\&\\[aria-orientation\\=horizontal\\]\\>div\\]\\:rotate-90[aria-orientation="horizontal"] > div {
5244
5399
  rotate: 90deg;
5245
5400
  }
@@ -5657,9 +5812,13 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
5657
5812
  --v-backgrounds-base: #f5f5f7;
5658
5813
  --v-backgrounds-base-2: #e9e9f0;
5659
5814
  --v-backgrounds-base-3: #dadae0;
5815
+ --v-backgrounds-gray-transparent: #8c8c9533;
5660
5816
  --v-backgrounds-red: #e2491a;
5817
+ --v-backgrounds-red-transparent: #fb783b33;
5661
5818
  --v-backgrounds-green: #85c13d;
5819
+ --v-backgrounds-green-transparent: #85d52433;
5662
5820
  --v-backgrounds-blue: #3f73ed;
5821
+ --v-backgrounds-blue-transparent: #3291fe33;
5663
5822
  --v-borders-white: #fff;
5664
5823
  --v-borders-black: #212124;
5665
5824
  --v-borders-light: #dadae0;
@@ -5754,6 +5913,8 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
5754
5913
  --v-font-family: "__tw4_shd_inter_7x4q2", sans-serif;
5755
5914
  font-family: var(--v-font-family);
5756
5915
  font-feature-settings: "liga" 1, "calt" 1;
5916
+ -webkit-font-smoothing: antialiased;
5917
+ -moz-osx-font-smoothing: grayscale;
5757
5918
  --radius: 10px;
5758
5919
  --background: var(--v-backgrounds-layout);
5759
5920
  --foreground: var(--v-text-dark);
@@ -6376,4 +6537,4 @@ button, input:where([type="button"], [type="reset"], [type="submit"]) {
6376
6537
  ${J}
6377
6538
  }
6378
6539
 
6379
- ${K}`:K);function MK(...e){return nd(rg(e))}let MJ=np("cursor-pointer inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-xl transition-all disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary--hover active:bg-primary--pressed disabled:bg-primary--disabled disabled:opacity-20",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary--hover active:bg-secondary--pressed disabled:bg-secondary--disabled disabled:opacity-20",outline:"border border-button-outline bg-transparent text-foreground hover:border-button-outline-hover active:bg-button-outline-pressed disabled:border-border-dark disabled:opacity-20",ghost:"hover:bg-accent hover:text-accent-foreground active:bg-accent--pressed",contrast:"bg-contrast text-contrast-foreground hover:bg-contrast--hover active:bg-contrast--pressed disabled:bg-contrast--disabled disabled:opacity-30"},size:{default:"h-9 px-3.5 typo-button-normal [&_svg]:size-5",sm:"h-8 px-3 typo-button-small [&_svg]:size-4",lg:"h-11 px-4 typo-button-big [&_svg]:size-6",icon:"size-9 rounded-full [&_svg]:size-5","icon-sm":"size-8 rounded-full [&_svg]:size-4","icon-lg":"size-11 rounded-full [&_svg]:size-6"}},defaultVariants:{variant:"default",size:"default"}});function MZ({className:e,variant:t,size:r,asChild:n=!1,...i}){return(0,e3.jsx)(n?rh:"button",{"data-slot":"button",className:MK(MJ({variant:t,size:r,className:e})),...i})}function M0(e){return(0,e3.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[(0,e3.jsx)("path",{d:"M22.5601 16.3031L14.8901 3.58311C14.58 3.09793 14.1526 2.69864 13.6476 2.42205C13.1425 2.14546 12.5759 2.00049 12.0001 2.00049C11.4243 2.00049 10.8577 2.14546 10.3526 2.42205C9.84755 2.69864 9.42024 3.09793 9.1101 3.58311L1.4401 16.3031C1.16915 16.7548 1.02189 17.2698 1.01311 17.7964C1.00434 18.323 1.13436 18.8427 1.3901 19.3031C1.68578 19.8214 2.11376 20.2518 2.6303 20.5505C3.14684 20.8492 3.73343 21.0054 4.3301 21.0031H19.6701C20.2629 21.0094 20.8468 20.8593 21.363 20.5678C21.8792 20.2764 22.3093 19.8539 22.6101 19.3431C22.8734 18.8779 23.0075 18.3508 22.9987 17.8163C22.9899 17.2818 22.8385 16.7594 22.5601 16.3031ZM20.8601 18.3531C20.7399 18.5597 20.5655 18.7295 20.3557 18.8441C20.146 18.9586 19.9089 19.0136 19.6701 19.0031H4.3301C4.09132 19.0136 3.85422 18.9586 3.64446 18.8441C3.4347 18.7295 3.26029 18.5597 3.1401 18.3531C3.05233 18.2011 3.00613 18.0286 3.00613 17.8531C3.00613 17.6776 3.05233 17.5051 3.1401 17.3531L10.8201 4.62311C10.9581 4.44082 11.1365 4.29298 11.3412 4.19119C11.5459 4.08939 11.7715 4.03642 12.0001 4.03642C12.2287 4.03642 12.4543 4.08939 12.659 4.19119C12.8637 4.29298 13.0421 4.44082 13.1801 4.62311L20.8501 17.3431C20.9413 17.4954 20.9902 17.6693 20.992 17.8468C20.9937 18.0243 20.9482 18.199 20.8601 18.3531Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M12.0001 17.0001C12.2653 17.0001 12.5197 16.8948 12.7072 16.7073C12.8948 16.5197 13.0001 16.2654 13.0001 16.0001C13.0001 15.7349 12.8948 15.4806 12.7072 15.293C12.5197 15.1055 12.2653 15.0001 12.0001 15.0001C11.7349 15.0001 11.4806 15.1055 11.293 15.293C11.1055 15.4806 11.0001 15.7349 11.0001 16.0001C11.0001 16.2654 11.1055 16.5197 11.293 16.7073C11.4806 16.8948 11.7349 17.0001 12.0001 17.0001Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M12.0001 8.00023C11.7349 8.00023 11.4806 8.10559 11.293 8.29313C11.1055 8.48066 11.0001 8.73502 11.0001 9.00023V13.0002C11.0001 13.2655 11.1055 13.5198 11.293 13.7073C11.4806 13.8949 11.7349 14.0002 12.0001 14.0002C12.2653 14.0002 12.5197 13.8949 12.7072 13.7073C12.8948 13.5198 13.0001 13.2655 13.0001 13.0002V9.00023C13.0001 8.73502 12.8948 8.48066 12.7072 8.29313C12.5197 8.10559 12.2653 8.00023 12.0001 8.00023Z",fill:"currentColor"})]})}function M1(e){return(0,e3.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,e3.jsx)("path",{d:"M21.8701 11.496C21.2301 10.386 17.7101 4.81597 11.7301 4.99597C6.20007 5.13597 3.00007 9.99597 2.13007 11.496C2.0423 11.648 1.99609 11.8204 1.99609 11.996C1.99609 12.1715 2.0423 12.3439 2.13007 12.496C2.76007 13.586 6.13007 18.996 12.0201 18.996H12.2701C17.8001 18.856 21.0101 13.996 21.8701 12.496C21.9577 12.3439 22.0039 12.1715 22.0039 11.996C22.0039 11.8204 21.9577 11.648 21.8701 11.496ZM12.2201 16.996C7.91007 17.096 5.10007 13.406 4.22007 11.996C5.22007 10.386 7.83007 7.09597 11.8301 6.99597C16.1201 6.88597 18.9401 10.586 19.8301 11.996C18.8001 13.606 16.2201 16.896 12.2201 16.996Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M12 8.49994C11.5404 8.49994 11.0852 8.59047 10.6606 8.76636C10.236 8.94225 9.85013 9.20006 9.52513 9.52506C9.20012 9.85007 8.94231 10.2359 8.76642 10.6605C8.59053 11.0852 8.5 11.5403 8.5 11.9999C8.5 12.4596 8.59053 12.9147 8.76642 13.3393C8.94231 13.764 9.20012 14.1498 9.52513 14.4748C9.85013 14.7998 10.236 15.0576 10.6606 15.2335C11.0852 15.4094 11.5404 15.4999 12 15.4999C12.9283 15.4999 13.8185 15.1312 14.4749 14.4748C15.1313 13.8184 15.5 12.9282 15.5 11.9999C15.5 11.0717 15.1313 10.1814 14.4749 9.52506C13.8185 8.86869 12.9283 8.49994 12 8.49994ZM12 13.4999C11.6022 13.4999 11.2206 13.3419 10.9393 13.0606C10.658 12.7793 10.5 12.3978 10.5 11.9999C10.5 11.6021 10.658 11.2206 10.9393 10.9393C11.2206 10.658 11.6022 10.4999 12 10.4999C12.3978 10.4999 12.7794 10.658 13.0607 10.9393C13.342 11.2206 13.5 11.6021 13.5 11.9999C13.5 12.3978 13.342 12.7793 13.0607 13.0606C12.7794 13.3419 12.3978 13.4999 12 13.4999Z",fill:"currentColor"})]})}function M2(e){return(0,e3.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,e3.jsx)("path",{d:"M4.70985 3.28579C4.61661 3.19255 4.50592 3.11859 4.3841 3.06813C4.26227 3.01767 4.13171 2.9917 3.99985 2.9917C3.86799 2.9917 3.73742 3.01767 3.6156 3.06813C3.49377 3.11859 3.38308 3.19255 3.28985 3.28579C3.10154 3.47409 2.99575 3.72949 2.99575 3.99579C2.99575 4.26209 3.10154 4.51749 3.28985 4.70579L8.91985 10.3358C8.56365 10.9984 8.43043 11.7582 8.53993 12.5024C8.64944 13.2467 8.99583 13.9359 9.52778 14.4679C10.0597 14.9998 10.7489 15.3462 11.4932 15.4557C12.2375 15.5652 12.9972 15.432 13.6598 15.0758L19.2898 20.7058C19.3828 20.7995 19.4934 20.8739 19.6153 20.9247C19.7371 20.9754 19.8678 21.0016 19.9998 21.0016C20.1319 21.0016 20.2626 20.9754 20.3844 20.9247C20.5063 20.8739 20.6169 20.7995 20.7098 20.7058C20.8033 20.6127 20.8775 20.502 20.9281 20.3802C20.9788 20.2584 21.0048 20.1277 21.0048 19.9958C21.0048 19.8639 20.9788 19.7332 20.9281 19.6114C20.8775 19.4895 20.8033 19.3789 20.7098 19.2858L4.70985 3.28579ZM11.9998 13.4958C11.602 13.4958 11.2205 13.3378 10.9392 13.0565C10.6579 12.7751 10.4998 12.3936 10.4998 11.9958V11.9258L12.0598 13.4858L11.9998 13.4958Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M12.2201 16.997C7.92007 17.097 5.10007 13.407 4.22007 11.997C4.84707 10.997 5.60007 10.084 6.46007 9.27695L5.00007 7.86695C3.87139 8.93042 2.90448 10.1534 2.13007 11.497C2.0423 11.649 1.99609 11.8214 1.99609 11.997C1.99609 12.1725 2.0423 12.3449 2.13007 12.497C2.76007 13.587 6.13007 18.997 12.0201 18.997H12.2701C13.3776 18.9641 14.4708 18.7373 15.5001 18.327L13.9201 16.747C13.3644 16.8931 12.7943 16.977 12.2201 16.997Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M21.87 11.4958C21.23 10.3858 17.7 4.8158 11.73 4.9958C10.6225 5.02865 9.52924 5.25541 8.5 5.6658L10.08 7.2458C10.6356 7.09963 11.2058 7.01578 11.78 6.9958C16.07 6.8858 18.89 10.5858 19.78 11.9958C19.138 12.9981 18.3682 13.9124 17.49 14.7158L19 16.1258C20.1428 15.0651 21.1234 13.842 21.91 12.4958C21.9918 12.3403 22.0311 12.166 22.0241 11.9904C22.0171 11.8149 21.9639 11.6443 21.87 11.4958Z",fill:"currentColor"})]})}function M3(e){return(0,e3.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[(0,e3.jsx)("path",{d:"M12 2C11.7348 2 11.4804 2.10536 11.2929 2.29289C11.1054 2.48043 11 2.73478 11 3V5C11 5.26522 11.1054 5.51957 11.2929 5.70711C11.4804 5.89464 11.7348 6 12 6C12.2652 6 12.5196 5.89464 12.7071 5.70711C12.8946 5.51957 13 5.26522 13 5V3C13 2.73478 12.8946 2.48043 12.7071 2.29289C12.5196 2.10536 12.2652 2 12 2Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M21.0002 11H19.0002C18.735 11 18.4806 11.1054 18.2931 11.2929C18.1055 11.4804 18.0002 11.7348 18.0002 12C18.0002 12.2652 18.1055 12.5196 18.2931 12.7071C18.4806 12.8946 18.735 13 19.0002 13H21.0002C21.2654 13 21.5197 12.8946 21.7073 12.7071C21.8948 12.5196 22.0002 12.2652 22.0002 12C22.0002 11.7348 21.8948 11.4804 21.7073 11.2929C21.5197 11.1054 21.2654 11 21.0002 11Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M6 12C6 11.7348 5.89464 11.4804 5.70711 11.2929C5.51957 11.1054 5.26522 11 5 11H3C2.73478 11 2.48043 11.1054 2.29289 11.2929C2.10536 11.4804 2 11.7348 2 12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H5C5.26522 13 5.51957 12.8946 5.70711 12.7071C5.89464 12.5196 6 12.2652 6 12Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M6.22009 5.00298C6.02357 4.82786 5.76656 4.7362 5.50358 4.74744C5.2406 4.75869 4.99234 4.87196 4.8115 5.06322C4.63065 5.25447 4.53143 5.50867 4.5349 5.77187C4.53838 6.03507 4.64426 6.28656 4.83009 6.47298L6.27009 7.86298C6.36673 7.95629 6.48117 8.02917 6.60659 8.07728C6.73201 8.12538 6.86584 8.14773 7.00009 8.14298C7.1348 8.14246 7.26801 8.11474 7.39173 8.06147C7.51546 8.0082 7.62714 7.93048 7.72009 7.83298C7.90634 7.64561 8.01088 7.39216 8.01088 7.12798C8.01088 6.86379 7.90634 6.61034 7.72009 6.42298L6.22009 5.00298Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M17 8.14285C17.2575 8.14182 17.5047 8.04153 17.69 7.86285L19.13 6.47285C19.3057 6.2893 19.4049 6.04577 19.4075 5.79172C19.4102 5.53767 19.316 5.29214 19.1441 5.10502C18.9723 4.91789 18.7356 4.80319 18.4823 4.78421C18.2289 4.76524 17.9779 4.84341 17.78 5.00285L16.34 6.42285C16.1538 6.61021 16.0493 6.86366 16.0493 7.12785C16.0493 7.39203 16.1538 7.64548 16.34 7.83285C16.5132 8.01557 16.7489 8.12627 17 8.14285Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M12 17.9999C11.7348 17.9999 11.4804 18.1053 11.2929 18.2928C11.1054 18.4803 11 18.7347 11 18.9999V20.9999C11 21.2651 11.1054 21.5195 11.2929 21.707C11.4804 21.8946 11.7348 21.9999 12 21.9999C12.2652 21.9999 12.5196 21.8946 12.7071 21.707C12.8946 21.5195 13 21.2651 13 20.9999V18.9999C13 18.7347 12.8946 18.4803 12.7071 18.2928C12.5196 18.1053 12.2652 17.9999 12 17.9999Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M17.7302 16.1399C17.5392 15.9556 17.2829 15.8547 17.0175 15.8594C16.7521 15.864 16.4995 15.974 16.3152 16.1649C16.1309 16.3559 16.0299 16.6122 16.0346 16.8776C16.0393 17.143 16.1492 17.3956 16.3402 17.5799L17.7802 18.9999C17.9702 19.1835 18.2251 19.2845 18.4893 19.2808C18.7535 19.277 19.0055 19.1688 19.1902 18.9799C19.2837 18.8868 19.3579 18.7762 19.4085 18.6543C19.4591 18.5325 19.4851 18.4019 19.4851 18.2699C19.4851 18.138 19.4591 18.0073 19.4085 17.8855C19.3579 17.7637 19.2837 17.653 19.1902 17.5599L17.7302 16.1399Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M6.27011 16.141L4.83011 17.531C4.73638 17.624 4.66198 17.7346 4.61121 17.8564C4.56045 17.9783 4.53431 18.109 4.53431 18.241C4.53431 18.373 4.56045 18.5037 4.61121 18.6256C4.66198 18.7474 4.73638 18.858 4.83011 18.951C4.9239 19.0467 5.03596 19.1226 5.15965 19.1741C5.28333 19.2256 5.41612 19.2518 5.55011 19.251C5.79662 19.2531 6.03522 19.1641 6.22011 19.001L7.66011 17.611C7.75466 17.5197 7.83031 17.4107 7.88273 17.2902C7.93516 17.1697 7.96334 17.0401 7.96566 16.9087C7.96798 16.7773 7.9444 16.6467 7.89626 16.5244C7.84813 16.4022 7.77637 16.2905 7.68511 16.196C7.59384 16.1014 7.48484 16.0258 7.36433 15.9734C7.24383 15.9209 7.11418 15.8928 6.98278 15.8904C6.85139 15.8881 6.72082 15.9117 6.59854 15.9598C6.47626 16.008 6.36466 16.0797 6.27011 16.171V16.141Z",fill:"currentColor"})]})}function M5({className:e,...t}){return(0,e3.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:MK("size-6",e),...t,children:[(0,e3.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0625 1.70412C12.1393 1.70359 12.2136 1.7151 12.2842 1.73439C12.6576 1.76978 13.0261 1.88527 13.3604 2.08303L19.7012 5.84084L19.7031 5.84181C20.1036 6.08032 20.4348 6.42322 20.665 6.83498C20.8952 7.24671 21.0168 7.71415 21.0166 8.19142V8.19338L20.998 15.7403C20.9979 16.1352 20.9124 16.526 20.751 16.8848C20.7319 16.9557 20.7049 17.026 20.667 17.0928C20.6355 17.1482 20.5983 17.1987 20.5576 17.2442C20.3296 17.6 20.023 17.8979 19.6631 18.1133L13.2998 21.9072C12.4738 22.3996 11.4611 22.4004 10.6436 21.917L10.6416 21.916L4.30078 18.1582L4.29883 18.1572C3.91023 17.9258 3.58764 17.5957 3.3584 17.2002C3.35105 17.1885 3.34181 17.1773 3.33496 17.1651C3.32803 17.1526 3.32268 17.1387 3.31641 17.126C3.09976 16.7236 2.98517 16.2703 2.98535 15.8076V15.8057L3.00391 8.25588C3.00603 7.28279 3.51293 6.37777 4.33984 5.88478L10.7021 2.09181C11.0682 1.87369 11.4708 1.75231 11.877 1.72658C11.9365 1.71245 11.999 1.70462 12.0625 1.70412ZM5.16895 7.36818C4.87108 7.54583 4.6844 7.87497 4.68359 8.23635L4.66602 15.3838L9.45801 12.5254C9.51085 12.7718 9.60256 13.0142 9.73535 13.2442C9.90127 13.5315 10.1161 13.7727 10.3633 13.9639L5.49512 16.8662L11.499 20.4248C11.8036 20.6044 12.1738 20.6008 12.4707 20.4238L18.5107 16.8233L13.4971 13.877C13.9543 13.482 14.2391 12.9423 14.3242 12.3672L19.3193 15.3037L19.3379 8.21291L19.3369 8.21388C19.3369 8.03517 19.2923 7.85955 19.2061 7.7051C19.1196 7.55056 18.9947 7.42151 18.8447 7.33205L12.8887 3.80275L12.8535 9.73439C12.3304 9.51037 11.7366 9.46806 11.1738 9.63576L11.21 3.76662L5.16895 7.36818Z",fill:"currentColor"}),(0,e3.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.91641 8.60885C11.7928 7.52595 14.1912 8.16845 15.2748 10.0444C16.3582 11.9209 15.7156 14.3211 13.8393 15.4047C11.9627 16.4879 9.56339 15.8446 8.47989 13.9682C7.39671 12.0916 8.03987 9.69227 9.91641 8.60885ZM13.8031 10.894C13.189 9.83118 11.8293 9.46704 10.766 10.0805C9.7026 10.6945 9.33693 12.0551 9.95059 13.1186C10.5646 14.1821 11.9261 14.5469 12.9897 13.9331C14.0529 13.3189 14.4171 11.9575 13.8031 10.894Z",fill:"currentColor"})]})}let M4="var(--v-borders-medium)";function M9({className:e,variant:t="default",size:r="default",state:n="loading",role:i,"aria-live":a,"aria-label":s,...o}){switch(t){case"logo":{let t="sm"===r?4:5;return(0,e3.jsxs)("svg",{...o,role:i??"status","aria-live":a??"polite","aria-label":s??("success"===n?"Success":"error"===n?"Error":"Loading"),width:"93",height:"91",viewBox:"0 0 93 91",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-slot":"spinner","data-size":r,"data-state":n,className:MK("spinner-logo shrink-0","sm"===r?"size-9":"size-22",e),children:[(0,e3.jsx)("g",{className:"spinner-logo__intro-shell",children:(0,e3.jsx)("path",{d:"M15.7495 62.7798L46.4936 45.0297M46.4936 45.0297L77.2661 62.5451M46.4936 45.0297L46.7111 9.62225M49.9213 79.4237L74.5719 65.1917C75.6436 64.5705 76.5344 63.6811 77.1541 62.6137C77.7738 61.5462 78.1003 60.3385 78.1007 59.1129L78.1729 30.7811C78.1734 29.5494 77.851 28.3427 77.2373 27.2798C76.6236 26.2169 75.7398 25.3343 74.6729 24.7189L50.1007 10.6155C47.926 9.3694 45.2455 9.37719 43.0689 10.6339L18.4183 24.8659C16.2385 26.1244 14.8946 28.4401 14.8895 30.9447L14.8173 59.2766C14.8168 60.5082 15.1392 61.7149 15.7529 62.7778C16.3666 63.8408 17.2504 64.7233 18.3173 65.3387L42.8895 79.4421C45.0642 80.6882 47.7447 80.6805 49.9213 79.4237Z",className:"spinner-logo__outline spinner-logo__outline--intro",vectorEffect:"sm"===r?void 0:"non-scaling-stroke"})}),(0,e3.jsx)("circle",{className:"spinner-logo__intro-orb",cx:"46.27",cy:"45.8",r:"11.18",fill:"white",stroke:M4,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e3.jsx)("circle",{className:"spinner-logo__result-ring",cx:"46.5",cy:"45.5",r:"33.46",fill:"white",stroke:M4,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e3.jsx)("g",{transform:"translate(27.786 31.4489)",children:(0,e3.jsx)("g",{className:"spinner-logo__result-glyph spinner-logo__result-glyph--success",children:(0,e3.jsx)("path",{d:"M13.6758 28.1023C13.3559 28.101 13.0397 28.0341 12.7467 27.9057C12.4537 27.7772 12.1902 27.59 11.9725 27.3557L0.632479 15.2923C0.208575 14.8406 -0.0185097 14.2389 0.00118164 13.6198C0.020873 13.0006 0.285727 12.4146 0.737479 11.9907C1.18923 11.5668 1.79088 11.3397 2.41006 11.3594C3.02924 11.3791 3.61524 11.6439 4.03915 12.0957L13.6525 22.339L33.2758 0.87233C33.475 0.624349 33.7227 0.419696 34.0038 0.270944C34.2849 0.122191 34.5935 0.0324784 34.9105 0.00731496C35.2276 -0.0178485 35.5464 0.0220682 35.8475 0.124615C36.1485 0.227162 36.4254 0.390174 36.6612 0.603637C36.897 0.8171 37.0866 1.07651 37.2185 1.36593C37.3503 1.65535 37.4216 1.96867 37.428 2.28665C37.4344 2.60463 37.3756 2.92056 37.2555 3.21502C37.1353 3.50949 36.9562 3.77627 36.7291 3.999L15.4025 27.3323C15.1868 27.5709 14.9242 27.7625 14.6311 27.895C14.338 28.0275 14.0208 28.0981 13.6991 28.1023H13.6758Z",fill:M4})})}),(0,e3.jsx)("g",{transform:"translate(32.4879 31.4885)",children:(0,e3.jsx)("g",{className:"spinner-logo__result-glyph spinner-logo__result-glyph--error",children:(0,e3.jsx)("path",{d:"M17.3045 14.0095L27.3378 3.99955C27.5554 3.78199 27.728 3.52371 27.8457 3.23946C27.9635 2.95521 28.0241 2.65055 28.0241 2.34288C28.0241 2.03521 27.9635 1.73055 27.8457 1.4463C27.728 1.16205 27.5554 0.903769 27.3378 0.686213C27.1203 0.468656 26.862 0.296082 26.5778 0.178341C26.2935 0.0606 25.9889 -4.58466e-09 25.6812 0C25.3735 4.58466e-09 25.0689 0.0606 24.7846 0.178341C24.5003 0.296082 24.2421 0.468656 24.0245 0.686213L14.0145 10.7195L4.00451 0.686213C3.56514 0.246838 2.96921 -4.62957e-09 2.34784 0C1.72647 4.62957e-09 1.13055 0.246838 0.691177 0.686213C0.251802 1.12559 0.0049634 1.72151 0.0049634 2.34288C0.00496339 2.96425 0.251802 3.56017 0.691177 3.99955L10.7245 14.0095L0.691177 24.0195C0.472196 24.2363 0.29836 24.4943 0.179723 24.7787C0.0610849 25.063 0 25.3681 0 25.6762C0 25.9843 0.0610849 26.2894 0.179723 26.5737C0.29836 26.8581 0.472196 27.1161 0.691177 27.3329C0.908091 27.5516 1.16616 27.7252 1.4505 27.8436C1.73484 27.9621 2.03982 28.0231 2.34784 28.0231C2.65587 28.0231 2.96085 27.9621 3.24519 27.8436C3.52953 27.7252 3.7876 27.5516 4.00451 27.3329L14.0145 17.2995L24.0245 27.3329C24.296 27.6078 24.6314 27.8111 25.0007 27.9245C25.3701 28.0379 25.7618 28.0579 26.1407 27.9828C26.5197 27.9077 26.8741 27.7397 27.1722 27.4939C27.4703 27.2481 27.7028 26.9322 27.8488 26.5745C28.0272 26.1459 28.0736 25.6738 27.9821 25.2187C27.8907 24.7636 27.6655 24.346 27.3355 24.0195L17.3045 14.0095Z",fill:M4})})})]})}case"default":return(0,e3.jsx)(M3,{...o,role:i??"status","aria-live":a??"polite","aria-label":s??"Loading","data-slot":"spinner",className:MK("size-4 animate-spin",e)});default:return t}}function M8({...e}){return(0,e3.jsx)(iL,{"data-slot":"dialog",...e})}function M6({...e}){return(0,e3.jsx)(iz,{"data-slot":"dialog-portal",...e})}function M7({...e}){return(0,e3.jsx)(iZ,{"data-slot":"dialog-close",...e})}function Ie({className:e,...t}){return(0,e3.jsx)(iH,{"data-slot":"dialog-overlay",className:MK("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function It({className:e,children:t,showCloseButton:r=!0,portalContainer:n,...i}){return(0,e3.jsxs)(M6,{"data-slot":"dialog-portal",container:n,children:[(0,e3.jsx)(Ie,{}),(0,e3.jsxs)(iq,{"data-slot":"dialog-content",className:MK("bg-background-containers data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-6 rounded-3xl border-0 p-6 shadow-[var(--shadow-login)] duration-200 outline-none sm:max-w-120 sm:p-10",e),...i,children:[t,r&&(0,e3.jsxs)(iZ,{"data-slot":"dialog-close",className:"focus-visible:ring-ring/30 absolute top-4 right-4 inline-flex size-6 cursor-pointer items-center justify-center rounded-full text-icons-light transition-colors hover:text-icons-normal focus-visible:text-icons-dark focus-visible:ring-2 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[(0,e3.jsx)(at,{className:"size-6"}),(0,e3.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}let Ir=/oklch\(([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)/;function In(e,t){let r=e.match(Ir);return r?{l:Number.parseFloat(r[1]),c:Number.parseFloat(r[2]),h:Number.parseFloat(r[3])}:{l:t[0],c:t[1],h:t[2]}}function Ii({data:e,foreground:t,background:r,robustness:n="M",className:i,...a}){let[s,o]=(0,e5.useState)(null);return((0,e5.useEffect)(()=>{(async()=>{try{let i=getComputedStyle(document.documentElement),a=t??i.getPropertyValue("--foreground"),s=r??i.getPropertyValue("--background"),l=In(a,[.21,.006,285.885]),c=In(s,[.985,0,0]),u=await oO.toString(e,{type:"svg",color:{dark:oF(oN({mode:"oklch",...l})),light:oF(oN({mode:"oklch",...c}))},width:200,errorCorrectionLevel:n,margin:0});o(u)}catch(e){console.error(e)}})()},[e,t,r,n]),s)?(0,e3.jsx)("div",{className:MK("size-full","[&_svg]:size-full",i),dangerouslySetInnerHTML:{__html:s},...a}):null}let Ia="https://integrations.vizbl.com/model-viewer";function Is(e){return cw.create({baseURL:e,timeout:3e4})}let Io=new Set(["common","delete","get","head","post","put","patch","options","purge","link","unlink"]);function Il(){return globalThis.process?.env?.NODE_ENV}function Ic(e){if(void 0===e)return[];let t="function"==typeof e.toJSON?e.toJSON():e,r=[];return!function e(t,r){if(null!==t&&"object"==typeof t)for(let[n,i]of Object.entries(t)){if(null==i)continue;let t=n.toLowerCase();if("common"===t){e(i,r);continue}Io.has(t)||r.push([n,String(i)])}}(t,r),r}function Iu(e){return!!("u">typeof FormData&&e instanceof FormData)||null!==e&&"object"==typeof e&&(e.constructor?.name==="FormData"||"function"==typeof e.getBoundary)}let Id=new Set(["authorization","cookie","set-cookie","x-xsrf-token"]);function Ih(e){if(null==e)return;let t="function"==typeof e.toJSON?e.toJSON():e;if(null===t||"object"!=typeof t)return;let r={};for(let[e,n]of Object.entries(t))null!=n&&(r[e]=Id.has(e.toLowerCase())?"[redacted]":String(n));return r}function Ip(e){if(null!=e){if("string"==typeof e)try{return JSON.parse(e)}catch{return e.length>2e3?`${e.slice(0,2e3)}… (${e.length} chars)`:e}return Iu(e)?"[FormData]":e}}function If(e){let t=(e.requestConfig.method??"GET").toUpperCase(),r=e.requestConfig.url??"",n=`[api:server] ${t} ${r} → ${e.status} (${e.durationMs}ms)`,i={requestId:e.requestId,...e.error?{error:e.error}:{},params:e.requestConfig.params,requestBody:Ip(e.requestConfig.data),requestHeaders:Ih(e.requestConfig.headers),responseHeaders:Ih(e.responseHeaders),responseBody:Ip(e.responseBody)};(e.status>=500||void 0!==e.error&&0===e.status?console.error:e.status>=400?console.warn:console.log)(n,i)}let Ig=function({clientName:e,configureFunctionName:t,defaultBaseURL:r}){let n=Is(r),i=Is(r),a=null,s=null,o=null,l=null,c=null,u=null;async function d(e,t){let r=function(e,t){let r;if(void 0===t.data||Iu(t.data))return t;let n=cD.from(t.headers);return n.has("Content-Type")||void 0!==(r=e.defaults.headers.common)&&cD.from(r).has("Content-Type")||n.set("Content-Type","application/json"),t.headers=n,t}(e,function(e){let t=cD.from(e.headers);if(null!==o){let e=o()?.trim();e&&!t.has("Authorization")&&t.set("Authorization",`Bearer ${e}`)}if(null!==u)for(let[r,n]of Object.entries(u({url:e.url,method:e.method})))n&&!t.has(r)&&t.set(r,n);return e.headers=t,e}({...t})),n=function(e){let t,r=cD.from(e.headers),n=r.get("x-request-id");if("string"==typeof n&&n.length>0)return n;let i=(t=globalThis.crypto,"function"==typeof t?.randomUUID?t.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`);return r.set("x-request-id",i),e.headers=r,i}(r),i=function(){if("u">typeof window)return!1;let e=Il(),t=globalThis.process;return t?.env?.DEBUG_API==="true"||"production"!==e&&"test"!==e&&"testing"!==e}(),a=i?Date.now():0;try{let t=await e.request(r);return i&&If({requestConfig:r,requestId:n,status:t.status,durationMs:Date.now()-a,responseHeaders:t.headers,responseBody:t.data}),t}catch(e){throw i&&If({requestConfig:r,requestId:n,status:e.response?.status??0,durationMs:Date.now()-a,responseHeaders:e.response?.headers,responseBody:e.response?.data,error:e.message}),e}}async function h(e){return d(e.skipUnauthorizedRecovery?i:n,function(e){let{skipUnauthorizedRecovery:t,...r}=e;return r}(e))}let p=async e=>h({...e,skipUnauthorizedRecovery:!0});function f(){return null!==a}return{configureClientRuntime:function(t){let r,s=(r=function(e){let t=Ic(e);if(0===t.length)return;let r=new Map;for(let[e,n]of t)r.set(e.toLowerCase(),n);return Object.fromEntries(Array.from(r.entries()).sort(([e],[t])=>e.localeCompare(t)))}(t.headers),JSON.stringify({...void 0!==t.baseURL?{baseURL:t.baseURL}:{},...void 0!==t.timeout?{timeout:t.timeout}:{},...void 0!==r?{headers:r}:{}}));if("{}"!==s){if(null!==a){if(a===s)return;let t=`${e} already configured. Existing: ${a}. New: ${s}.`;if("production"===Il())return void console.warn(t);throw Error(t)}for(let e of[n,i])void 0!==t.baseURL&&(e.defaults.baseURL=t.baseURL),void 0!==t.timeout&&(e.defaults.timeout=t.timeout),void 0!==t.headers&&function(e,t){let r=e.defaults.headers,n=r.common,i=cD.from(n);for(let[e,r]of Ic(t))i.set(e,r);r.common=i.toJSON(),e.defaults.headers=r}(e,t.headers);a=s}},configureAccessTokenResolverRuntime:function(e){o=e},configureUnauthorizedHandlerRuntime:function(e){if(l=e,null===e){null!==s&&(n.interceptors.response.eject(s),s=null),c=null;return}null===s&&(s=n.interceptors.response.use(e=>e,async e=>{let t=e.config;if(e.response?.status!==401||null===l||void 0===t||t._apiRetried)return Promise.reject(e);if(null===c){let t=l;if(null===t)return Promise.reject(e);c=Promise.resolve().then(()=>t(e,{requestWithoutUnauthorizedRecovery:p})).finally(()=>{c=null})}try{if(!await c)return Promise.reject(e);t._apiRetried=!0;let r=cD.from(t.headers);return r.delete("Authorization"),t.headers=r,d(n,t)}catch{return Promise.reject(e)}}))},configureHeadersResolverRuntime:function(e){u=e},isClientConfiguredRuntime:f,assertClientConfiguredRuntime:function(){if(!f())throw Error(`${e} is not configured. Call ${t}(...) before making requests.`)},resetClientForTestsRuntime:function(){let e;if("test"!==(e=Il())&&"testing"!==e)throw Error("resetApiClientForTests() can only be called in test environment.");n=Is(r),i=Is(r),a=null,s=null,o=null,l=null,c=null,u=null},requestRuntime:h,requestWithoutUnauthorizedRecovery:p,addResponseInterceptorRuntime:function(e,t){return n.interceptors.response.use(e,t)}}}({clientName:"API node client",configureFunctionName:"configureNodeApiClient",defaultBaseURL:"https://api.vizbl.com"}),Im=Ig.configureClientRuntime;Ig.configureAccessTokenResolverRuntime,Ig.configureHeadersResolverRuntime,Ig.configureUnauthorizedHandlerRuntime,Ig.isClientConfiguredRuntime,Ig.assertClientConfiguredRuntime,Ig.resetClientForTestsRuntime;let IA=Ig.requestRuntime;async function Iv(e){return IA(e)}async function Ib({tinuuid:e},t,r={}){let{client:n=Iv,...i}=r;return(await n({method:"GET",url:`/public/objects/by-tinuuid/${e}`,params:t,...i})).data}Ig.requestWithoutUnauthorizedRecovery,Ig.addResponseInterceptorRuntime;let Iy=(0,e5.createContext)(null);function Ix({children:e,tinuuid:t,apiKey:r,hid:n,layout:i,background:a}){let{object:s,material:o,error:l,isLoading:c,setMaterialHid:u}=function(e,t,r){let[n,i]=(0,e5.useState)(t??null),{data:a=null,error:s,isLoading:o}=function(e,t,r){let n=e5.useContext(t8),i=e5.useContext(t9),a=(e=>{let t=e5.useContext(t5);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t})(r),s=a.defaultQueryOptions(e);if(a.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=n?"isRestoring":"optimistic",s.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=s.staleTime;s.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof s.gcTime&&(s.gcTime=Math.max(s.gcTime,1e3))}(s.suspense||s.throwOnError||s.experimental_prefetchInRender)&&!i.isReset()&&(s.retryOnMount=!1),e5.useEffect(()=>{i.clearReset()},[i]);let o=!a.getQueryCache().get(s.queryHash),[l]=e5.useState(()=>new t(a,s)),c=l.getOptimisticResult(s),u=!n&&!1!==e.subscribed;if(e5.useSyncExternalStore(e5.useCallback(e=>{let t=u?l.subscribe(tQ.batchCalls(e)):ty;return l.updateResult(),t},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),e5.useEffect(()=>{l.setOptions(s)},[s,l]),s?.suspense&&c.isPending)throw t6(s,l,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>{var a;return e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||(a=[e.error,n],"function"==typeof r?r(...a):!!r))})({result:c,errorResetBoundary:i,throwOnError:s.throwOnError,query:a.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!tb&&c.isLoading&&c.isFetching&&!n){let e=o?t6(s,l,i):a.getQueryCache().get(s.queryHash)?.promise;e?.catch(ty).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?c:l.trackResult(c)}({queryKey:["modelViewer","object",e,r.apiKey],enabled:!!e&&r.apiKey.length>0,queryFn:({signal:t})=>Ib({tinuuid:e},{productType:"core-ar"},{headers:{"x-api-key":r.apiKey},signal:t})},tZ,void 0),l=(0,e5.useMemo)(()=>a?.materials?.length?n?a.materials.find(e=>e.hid===n)||a.materials[0]:a.materials?.[0]??null:null,[a,n]);return(0,e5.useEffect)(()=>{i(t??null)},[t,e]),{object:a,material:l,error:s,isLoading:o,setMaterialHid:i}}(t,n,{apiKey:r}),[d,h]=(0,e5.useState)(!0),[p,f]=(0,e5.useState)(null),[g,m]=(0,e5.useState)(null),A=r.length>0,v=o?.native?.glbUrl??null,b=o?.native?.usdzUrl??null,y=o?.previews?.[0]?.url??null,x=(0,e5.useMemo)(()=>{if(!A)return"unauthorized";if(c)return"loading";let e=function(e){if(!cR(e))return null;let t=e.response?.status;return 401===t?"unauthorized":402===t?"payment-required":null}(l);return e||(null==l&&s&&o&&v?"ready":"not-found")},[l,v,A,c,o,s]);(0,e5.useEffect)(()=>{h("ready"===x&&!!v)},[v,x]),(0,e5.useEffect)(()=>{if(!g)return;let e=e=>{let t=e.detail?.totalProgress;void 0!==t&&h(t<1)},t=()=>{h(!1)},r=()=>{h(!1)};return g.addEventListener("progress",e),g.addEventListener("load",t),g.addEventListener("error",r),()=>{g.removeEventListener("progress",e),g.removeEventListener("load",t),g.removeEventListener("error",r)}},[g]);let w=(0,e5.useMemo)(()=>({tinuuid:t,object:s,material:o,glbUrl:v,usdzUrl:b,previewUrl:y,layout:i,background:a,isLoading:c,isModelLoading:d,state:x,modelViewerEl:g,containerEl:p,setMaterialHid:u,setContainerEl:f,setModelViewerEl:m}),[t,s,o,v,b,y,i,a,c,d,x,g,p,u]);return(0,e3.jsx)(Iy,{value:w,children:e})}function Iw(){let e=(0,e5.use)(Iy);if(!e)throw Error("useModelViewer must be used within a ModelViewerProvider");return e}function IS({disabled:e,onClick:t,onBeforeActivateAr:r,size:n="lg",...i}){let{containerEl:a,isLoading:s,isModelLoading:o,material:l,modelViewerEl:c,object:u,tinuuid:d}=Iw(),[h,p]=(0,e5.useState)(!1),f=s||o||null===l,g=(0,e5.useMemo)(()=>{if(!Ia)return null;let e=new URL(Ia);return e.searchParams.set("tinuuid",u?.tinuuid??d),l?.hid&&e.searchParams.set("hid",l.hid),e.toString()},[l?.hid,u?.tinuuid,d]),m=async()=>{c&&!f&&(c.canActivateAR?(r?.(),await c.activateAR()):g&&p(!0))},A=async e=>{t?.(e),e.defaultPrevented||await m()};return(0,e3.jsxs)(e3.Fragment,{children:[(0,e3.jsx)(MZ,{...i,size:n,disabled:e||f,onClick:A,children:"View in place"}),g&&(0,e3.jsx)(M8,{open:h,onOpenChange:p,children:(0,e3.jsxs)(It,{showCloseButton:!1,portalContainer:a,children:[(0,e3.jsx)("div",{className:"flex items-center justify-center rounded-2xl bg-constant-white p-10",children:(0,e3.jsx)(Ii,{className:"size-48",robustness:"H",data:g})}),(0,e3.jsx)("p",{className:"text-center text-lg font-medium text-text-sub",children:"Scan the QR code with your phone or tablet to view the object in your interior."}),(0,e3.jsx)(M7,{asChild:!0,children:(0,e3.jsx)(MZ,{size:"lg",children:"Close"})})]})})]})}function I_({lines:e}){return(0,e3.jsx)("svg",{className:"absolute inset-0 block pointer-events-none",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",children:e.map((e,t)=>(0,e3.jsx)("line",{className:MK("stroke-primary stroke-2 [stroke-dasharray:2] transition-opacity duration-200",0===e.opacity&&"opacity-0"),style:{opacity:e.opacity},x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2},t))})}function IE({isVisible:e,lines:t}){return e?(0,e3.jsx)(I_,{lines:t}):null}let IC=[{slot:"hotspot-dot+X-Y+Z",position:"1 -1 1",normal:"1 0 0"},{slot:"hotspot-dot+X-Y-Z",position:"1 -1 -1",normal:"1 0 0"},{slot:"hotspot-dot+X+Y-Z",position:"1 1 -1",normal:"0 1 0"},{slot:"hotspot-dot-X+Y-Z",position:"-1 1 -1",normal:"0 1 0"},{slot:"hotspot-dot-X-Y-Z",position:"-1 -1 -1",normal:"-1 0 0"},{slot:"hotspot-dot-X-Y+Z",position:"-1 -1 1",normal:"-1 0 0"},{slot:"hotspot-dim+X-Y",position:"1 -1 0",normal:"1 0 0",isDimensionLabel:!0},{slot:"hotspot-dim+X-Z",position:"1 0 -1",normal:"1 0 0",isDimensionLabel:!0},{slot:"hotspot-dim+Y-Z",position:"0 1 -1",normal:"0 1 0",isDimensionLabel:!0},{slot:"hotspot-dim-X-Z",position:"-1 0 -1",normal:"-1 0 0",isDimensionLabel:!0},{slot:"hotspot-dim-X-Y",position:"-1 -1 0",normal:"-1 0 0",isDimensionLabel:!0}],IM=new Map(IC.map(e=>[e.slot,e])),II=[{slot:"hotspot-dim+X-Y",sizeAxis:"z",offsetMultiplier:{x:1.2,y:1.1}},{slot:"hotspot-dim+X-Z",sizeAxis:"y",offsetMultiplier:{x:1.2,z:1.2}},{slot:"hotspot-dim+Y-Z",sizeAxis:"x",offsetMultiplier:{y:1.1,z:1.1}},{slot:"hotspot-dim-X-Z",sizeAxis:"y",offsetMultiplier:{x:1.2,z:1.2}},{slot:"hotspot-dim-X-Y",sizeAxis:"z",offsetMultiplier:{x:1.2,y:1.1}}],IT=II.map(e=>e.slot),Ik=[{lineIndex:0,hotspot1:"hotspot-dot+X-Y+Z",hotspot2:"hotspot-dot+X-Y-Z",dimensionHotspot:"hotspot-dim+X-Y"},{lineIndex:1,hotspot1:"hotspot-dot+X-Y-Z",hotspot2:"hotspot-dot+X+Y-Z",dimensionHotspot:"hotspot-dim+X-Z"},{lineIndex:2,hotspot1:"hotspot-dot+X+Y-Z",hotspot2:"hotspot-dot-X+Y-Z",dimensionHotspot:"hotspot-dim+Y-Z"},{lineIndex:3,hotspot1:"hotspot-dot-X+Y-Z",hotspot2:"hotspot-dot-X-Y-Z",dimensionHotspot:"hotspot-dim-X-Z"},{lineIndex:4,hotspot1:"hotspot-dot-X-Y-Z",hotspot2:"hotspot-dot-X-Y+Z",dimensionHotspot:"hotspot-dim-X-Y"}],IR=(0,e5.memo)(({hiddenHotspots:e,isVisible:t,labels:r})=>{let n=(0,e5.useMemo)(()=>new Map(r.map(e=>[e.slot,e])),[r]);return(0,e3.jsx)(e3.Fragment,{children:IC.map(r=>{let i=r.isDimensionLabel,a=n.get(r.slot),s=!t||!i||e.has(r.slot);return(0,e3.jsx)(MZ,{slot:r.slot,"data-position":r.position,"data-normal":r.normal,className:MK("absolute box-border pointer-events-none h-auto min-h-9 w-max -translate-x-1/2 -translate-y-1/2 whitespace-nowrap py-2 text-center [--min-hotspot-opacity:0] transition-opacity duration-200 @max-xl:px-3 @max-xl:py-1.5 @max-xl:typo-button-small",s&&"opacity-0",!i&&"hidden"),variant:"secondary",children:i&&a?a.text:""},r.slot)})})});function IB({className:e,...t}){return(0,e3.jsxs)("div",{className:MK("group inline-flex gap-2 text-sm text-muted-foreground transition-colors duration-200 ease-in-out hover:text-text-dark",e),...t,children:[(0,e3.jsx)("div",{className:"flex size-5 items-center justify-center rounded-full bg-icons-light transition-colors duration-200 ease-in-out group-hover:bg-icons-red",children:(0,e3.jsx)(M5,{className:"size-4.25 text-icons-white"})}),"Powered by Vizbl"]})}function IP({className:e,...t}){let{object:r}=Iw();return(0,e3.jsxs)("div",{className:MK("grid h-16 items-center gap-5 px-6 sm:grid-cols-3",e),...t,children:[(0,e3.jsx)("div",{className:"truncate",children:r?.name}),(0,e3.jsx)("div",{className:"hidden justify-center sm:flex",children:(0,e3.jsx)(IB,{})}),(0,e3.jsx)("div",{className:"hidden sm:block"})]})}function ID({className:e,...t}){return(0,e3.jsx)("div",{"data-slot":"card",className:MK("bg-card text-card-foreground relative flex flex-col overflow-hidden rounded-3xl px-8 py-10",e),...t})}function IL({className:e,...t}){return(0,e3.jsx)("div",{"data-slot":"card-content",className:MK("px-5",e),...t})}function IF({className:e,...t}){return(0,e3.jsx)(cU,{"data-slot":"label",className:MK("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}let IN=np("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function IO({className:e,orientation:t="vertical",...r}){return(0,e3.jsx)("div",{role:"group","data-slot":"field","data-orientation":t,className:MK(IN({orientation:t}),e),...r})}function IU({className:e,...t}){return(0,e3.jsx)("div",{"data-slot":"field-content",className:MK("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e),...t})}function Iz({className:e,...t}){return(0,e3.jsx)(IF,{"data-slot":"field-label",className:MK("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...t})}function IQ({className:e,...t}){return(0,e3.jsx)(uh,{"data-slot":"radio-group",className:MK("grid gap-3",e),...t})}function IH({checked:e,className:t,...r}){return(0,e3.jsx)("div",{className:MK("absolute top-1/2 left-1/2 size-6 -translate-x-1/2 -translate-y-1/2","flex items-center justify-center rounded-full",e?"bg-lime-400":"bg-background-base-2",t),...r,children:(0,e3.jsx)(ar,{className:"text-constant-white size-3.5",strokeWidth:4})})}function IG({className:e,variant:t="default",...r}){return(0,e3.jsxs)(uf,{"data-slot":"radio-group-item",className:MK("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50","check"===t&&"size-6","inverted"===t&&"size-5 border-button-outline data-[state=checked]:border-border-red data-[state=checked]:border-4 data-[state=checked]:bg-constant-white cursor-pointer transition-all",e),...r,children:["check"===t&&(0,e3.jsx)("div",{className:"relative",children:(0,e3.jsx)(IH,{})}),"inverted"!==t&&(0,e3.jsx)(ug,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:"check"===t?(0,e3.jsx)(IH,{checked:!0}):(0,e3.jsx)(an,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})]})}function Ij(){let{object:e,material:t,setMaterialHid:r}=Iw(),n=e?.materials??[];return!e||n.length<2?null:(0,e3.jsx)(ID,{className:"w-fit max-w-full overflow-hidden px-4 py-4 @max-xl:rounded-2xl @max-xl:px-2 @max-xl:py-2",children:(0,e3.jsx)(IL,{className:"px-0",children:(0,e3.jsx)(IQ,{className:"flex w-max min-w-full gap-2 overflow-x-auto",value:t?.hid??void 0,onValueChange:e=>r(e),children:n.map(t=>(0,e3.jsx)(Iz,{htmlFor:t.hid,className:"cursor-pointer has-data-[state=checked]:bg-transparent has-data-[state=checked]:border-primary p-0",children:(0,e3.jsxs)(IO,{className:"p-0! overflow-hidden rounded-md",children:[(0,e3.jsx)(IU,{className:"shrink-0",children:(0,e3.jsx)("img",{src:t.previews?.[0]?.subRes?.small??t.previews?.[0]?.url,width:80,height:80,alt:t.name??e.name??"Material preview",className:"size-20 object-cover @max-xl:size-12"})}),(0,e3.jsx)(IG,{className:"sr-only",value:t.hid,id:t.hid})]})},t.hid))})})})}let IV={"not-found":"Object not found",unauthorized:"Invalid API key","payment-required":"Viewer temporarily unavailable"};function Iq({variant:e,showDialogCloseButton:t=!1}){return(0,e3.jsxs)("div",{className:"relative z-30 flex size-full flex-col items-center justify-center gap-4 bg-radial from-background-containers to-background-base-2 p-4 text-center",children:[(0,e3.jsx)(M0,{className:"size-8 text-icons-light"}),(0,e3.jsx)("h2",{className:"typo-base-16 font-medium text-text-dark",children:IV[e]}),t&&(0,e3.jsx)(M7,{asChild:!0,children:(0,e3.jsx)(MZ,{variant:"secondary",children:"Close"})})]})}function IW(e){let t=e.getBoundingBoxCenter(),r=e.getDimensions();return{center:t,size:r,halfSize:{x:r.x/2,y:r.y/2,z:r.z/2}}}function IX({showDialogCloseButton:e=!1}){let{glbUrl:t,isModelLoading:r,object:n,previewUrl:i,state:a,setContainerEl:s,setModelViewerEl:o,usdzUrl:l,layout:c,background:u}=Iw(),[d,h]=(0,e5.useState)(!1),p="model"===c,f="loading"===a||"ready"===a&&r,g="ready"===a,m=(n?.materials?.length??0)>1,A=g&&!p&&!r,v=d&&A,{lines:b,labels:y,hiddenHotspots:x}=function({isVisible:e}){let{glbUrl:t,isModelLoading:r,modelViewerEl:n}=Iw(),[i,a]=(0,e5.useState)([]),[s,o]=(0,e5.useState)([]),[l,c]=(0,e5.useState)(()=>new Set),[u,d]=(0,e5.useState)(null),h=!r;(0,e5.useEffect)(()=>{d(null),a([]),o([]),c(new Set)},[n,t]);let p=(0,e5.useCallback)(()=>{let e;if(!n)return[];let t=(e=IW(n),II.map(({slot:t,sizeAxis:r,offsetMultiplier:n})=>{var i;let a,s=function(e){let t=IM.get(e);if(!t)throw Error(`Missing hotspot config for slot "${e}"`);return t}(t);return{name:t,position:function(e,t,r={}){let{center:n,halfSize:i}=e,[a,s,o]=t.position.split(" ").map(Number),l=r.x??1,c=r.y??1,u=r.z??1;return`${n.x+a*i.x*l} ${n.y+s*i.y*c} ${n.z+o*i.z*u}`}(e,s,n),text:(i=e.size[r],a=Number(i.toFixed(3)),`${Math.round(100*a)} cm`)}}));return t.forEach(e=>{n.updateHotspot({name:e.name,position:e.position})}),t.map(e=>({slot:e.name,text:e.text||"",position:e.position}))},[n]),f=(0,e5.useCallback)(()=>{if(!n)return;let e=[],t=new Set;Ik.forEach(t=>{let r=n.queryHotspot(t.hotspot1),i=n.queryHotspot(t.hotspot2),a=t.dimensionHotspot?n.queryHotspot(t.dimensionHotspot):null;if(r&&i){let t=a&&!a.facingCamera;e.push({x1:r.canvasPosition.x,y1:r.canvasPosition.y,x2:i.canvasPosition.x,y2:i.canvasPosition.y,opacity:+!t})}}),IT.forEach(e=>{let r=n.queryHotspot(e);r&&!r.facingCamera&&t.add(e)}),a(e),c(e=>!function(e,t){if(e.size!==t.size)return!1;for(let r of Array.from(e))if(!t.has(r))return!1;return!0}(e,t)?t:e)},[n]);return(0,e5.useEffect)(()=>{if(!t||!e||!h||!n||u===t)return;let r=IW(n);IC.forEach(e=>{let t=function(e,t){let{center:r,halfSize:n}=e,[i,a,s]=t.position.split(" ").map(Number);return`${r.x+i*n.x} ${r.y+a*n.y} ${r.z+s*n.z}`}(r,e);n.updateHotspot({name:e.slot,position:t})}),o(p()),f(),d(t)},[t,e,h,n,u,p,f]),(0,e5.useEffect)(()=>{if(n&&e&&h&&u===t)return n.addEventListener("camera-change",f),()=>{n.removeEventListener("camera-change",f)}},[n,e,h,u,t,f]),{lines:i,labels:s,hiddenHotspots:l}}({isVisible:v}),w="not-found"===a||"unauthorized"===a||"payment-required"===a?a:null;return w?(0,e3.jsx)("div",{ref:s,className:MK("relative size-full overflow-hidden text-foreground","default"===u&&"bg-background-layout"),children:(0,e3.jsx)(Iq,{variant:w,showDialogCloseButton:e})}):(0,e3.jsxs)("div",{ref:s,className:MK("@container relative size-full overflow-hidden text-foreground","default"===u&&"bg-background-layout"),children:["ready"===a&&!p&&(0,e3.jsx)(IP,{className:"absolute top-0 right-0 left-0 z-2"}),"ready"===a&&(0,e3.jsx)("div",{className:"relative size-full",children:(0,e3.jsxs)("model-viewer",{ref:o,className:"size-full",src:t??void 0,iosSrc:l??void 0,poster:i??void 0,ar:!0,cameraControls:!0,arModes:"webxr scene-viewer quick-look",arScale:"fixed",shadowIntensity:1,interactionPromptThreshold:100,children:[(0,e3.jsx)("div",{slot:"progress-bar"}),(0,e3.jsx)("div",{slot:"ar-button"}),(0,e3.jsx)(IR,{isVisible:v,labels:y,hiddenHotspots:x})]})}),(0,e3.jsx)("div",{"aria-hidden":!f,className:MK("absolute inset-0 z-10 flex items-center justify-center bg-radial from-background-containers to-background-base-2 transition-opacity",f?"pointer-events-auto opacity-100 duration-0":"pointer-events-none opacity-0 duration-300 ease-in-out"),children:(0,e3.jsx)(M9,{variant:"logo"})}),(0,e3.jsx)(IE,{isVisible:v,lines:b}),g&&!p&&(0,e3.jsxs)("div",{className:MK("pointer-events-none absolute inset-x-8 bottom-8 z-2 flex flex-wrap items-end gap-4 @max-xl:inset-x-6 @max-xl:bottom-4 @max-xl:flex-col @max-xl:items-stretch",m?"justify-between":"justify-center"),children:[m&&(0,e3.jsx)("div",{className:"pointer-events-auto min-w-0 flex-1 @max-xl:w-full @max-xl:flex-none @max-xl:self-start",children:(0,e3.jsx)(Ij,{})}),(0,e3.jsxs)("div",{className:"pointer-events-auto flex shrink-0 items-center gap-2 @max-xl:w-full",children:[(0,e3.jsxs)(MZ,{className:"@max-xl:h-9 @max-xl:px-3.5 @max-xl:typo-button-normal @max-xl:[&_svg]:size-5",size:"lg",variant:"secondary",disabled:!A,"aria-label":"Toggle dimensions","aria-pressed":d,onClick:()=>h(e=>!e),children:[d?(0,e3.jsx)(M1,{className:"size-6"}):(0,e3.jsx)(M2,{className:"size-6"}),(0,e3.jsx)("span",{children:"Dimensions"})]}),(0,e3.jsx)(IS,{className:"@max-xl:h-9 @max-xl:w-full @max-xl:flex-1 @max-xl:px-3.5 @max-xl:typo-button-normal",onBeforeActivateAr:()=>h(!1),size:"lg"})]})]})]})}let I$=new ra({defaultOptions:{queries:{gcTime:1/0,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:(e,t)=>{let r=function(e){if(cR(e))return e.response?.status}(t);return(void 0===r||!(r>=400)||!(r<500))&&e<2}}}});function IY({tinuuid:e,apiKey:t,hid:r,layout:n="default",background:i="default",showDialogCloseButton:a=!1}){let s=t.trim();return(0,e3.jsx)(t4,{client:I$,children:(0,e3.jsx)(Ix,{tinuuid:e,apiKey:s,hid:r,layout:n,background:i,children:(0,e3.jsx)(IX,{showDialogCloseButton:a})})})}function IK({tinuuid:e,apiKey:t,hid:r,...n}){let[i,a]=(0,e5.useState)(null);return(0,e3.jsxs)(e3.Fragment,{children:[(0,e9.createPortal)((0,e3.jsx)("style",{children:MX.A}),document.head),i&&(0,e3.jsx)(MW,{root:i,storageKey:"neurodyn-theme",children:(0,e3.jsx)(M8,{...n,children:(0,e3.jsxs)(It,{className:"min-w-full h-svh p-0 rounded-none sm:p-0",portalContainer:i,showCloseButton:!1,onInteractOutside:e=>{e.preventDefault()},children:[(0,e3.jsx)(M7,{asChild:!0,children:(0,e3.jsxs)(MZ,{className:"absolute top-3 right-6 z-20",variant:"secondary",children:["Close",(0,e3.jsx)(at,{})]})}),(0,e3.jsx)(IY,{tinuuid:e,apiKey:t,hid:r,showDialogCloseButton:!0})]})})}),(0,e9.createPortal)((0,e3.jsxs)(tg.div,{style:{display:"block",letterSpacing:"normal",zIndex:0x7fffffff},children:[(0,e3.jsx)("style",{children:MY}),(0,e3.jsx)("div",{ref:a})]}),document.body)]})}function IJ({tinuuid:e,apiKey:t,hid:r,layout:n,background:i,className:a,...s}){let[o,l]=(0,e5.useState)(null);return(0,e3.jsxs)(e3.Fragment,{children:[(0,e9.createPortal)((0,e3.jsx)("style",{children:MX.A}),document.head),(0,e3.jsxs)(tg.div,{className:a,style:{height:"100%",letterSpacing:"normal",width:"100%"},...s,children:[(0,e3.jsx)("style",{children:MY}),(0,e3.jsx)("div",{ref:l,style:{height:"100%",width:"100%"},children:o&&(0,e3.jsx)(MW,{root:o,storageKey:"neurodyn-theme",children:(0,e3.jsx)(IY,{tinuuid:e,apiKey:t,hid:r,layout:n,background:i})})})]})]})}Im({baseURL:"https://api.vizbl.com"});var IZ=i("../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/client.js");let I0=0;class I1{container=null;props=null;root=null;openState=!1;destroy(){this.root?.unmount(),this.root=null,this.container?.remove(),this.container=null,this.props=null,this.openState=!1}open(e){this.props=e,this.openState=!0,this.render()}handleOpenChange=e=>{this.openState=e,this.render()};ensureRoot(){return this.root||(this.container=document.createElement("div"),this.container.id=`neurodyn-model-viewer-dialog-root-${I0++}`,document.body.appendChild(this.container),this.root=(0,IZ.createRoot)(this.container)),this.root}render(){this.props&&this.ensureRoot().render((0,e5.createElement)(IK,{...this.props,onOpenChange:this.handleOpenChange,open:this.openState}))}}function I2(e,t={}){return{tinuuid:void 0!==t.tinuuid?t.tinuuid:e.getAttribute("data-neurodyn-model-viewer-tinuuid"),apiKey:void 0!==t.apiKey?t.apiKey:e.getAttribute("data-neurodyn-model-viewer-api-key"),hid:void 0!==t.hid?t.hid:e.getAttribute("data-neurodyn-model-viewer-hid")}}class I3{renderer=new I1;triggers;props;destroyed=!1;constructor(e,t={}){for(const r of(this.triggers=I5(e),this.props=t,this.triggers))r.addEventListener("click",this.handleClick)}destroy(){if(!this.destroyed){for(let e of(this.destroyed=!0,this.triggers))e.removeEventListener("click",this.handleClick);this.renderer.destroy()}}handleClick=e=>{if(this.destroyed||!(e.currentTarget instanceof Element))return;let t=I2(e.currentTarget,this.props);t.tinuuid&&t.apiKey&&this.renderer.open({apiKey:t.apiKey,hid:t.hid,tinuuid:t.tinuuid})}}function I5(e){return"string"==typeof e?Array.from(document.querySelectorAll(e)):[e]}window.ModelViewer=class{roots=[];destroyed=!1;constructor(e,t={}){for(const r of I5(e)){const e=I2(r,t);if(!e.tinuuid||!e.apiKey)continue;const n=(0,IZ.createRoot)(r);n.render((0,e5.createElement)(IJ,{apiKey:e.apiKey,hid:e.hid,tinuuid:e.tinuuid})),this.roots.push(n)}}destroy(){if(!this.destroyed){for(let e of(this.destroyed=!0,this.roots))e.unmount();this.roots.length=0}}},window.ModelViewerDialog=I3})()})();
6540
+ ${K}`:K);function MK(...e){return nd(rg(e))}let MJ=np("cursor-pointer inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-xl transition-all disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg:not([class*=size-])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary--hover active:bg-primary--pressed disabled:bg-primary--disabled disabled:opacity-20",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary--hover active:bg-secondary--pressed disabled:bg-secondary--disabled disabled:opacity-20",outline:"border border-button-outline bg-transparent text-foreground hover:border-button-outline-hover active:bg-button-outline-pressed disabled:border-border-dark disabled:opacity-20",ghost:"hover:bg-accent hover:text-accent-foreground active:bg-accent--pressed",contrast:"bg-contrast text-contrast-foreground hover:bg-contrast--hover active:bg-contrast--pressed disabled:bg-contrast--disabled disabled:opacity-30"},size:{default:"h-9 px-3.5 typo-button-normal [&_svg]:size-5",sm:"h-8 px-3 typo-button-small [&_svg]:size-4",lg:"h-11 px-4 typo-button-big [&_svg]:size-6",icon:"size-9 rounded-full [&_svg]:size-5","icon-sm":"size-8 rounded-full [&_svg]:size-4","icon-lg":"size-11 rounded-full [&_svg]:size-6"}},defaultVariants:{variant:"default",size:"default"}});function MZ({className:e,variant:t,size:r,asChild:n=!1,...i}){return(0,e3.jsx)(n?rh:"button",{"data-slot":"button",className:MK(MJ({variant:t,size:r,className:e})),...i})}function M0(e){return(0,e3.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[(0,e3.jsx)("path",{d:"M22.5601 16.3031L14.8901 3.58311C14.58 3.09793 14.1526 2.69864 13.6476 2.42205C13.1425 2.14546 12.5759 2.00049 12.0001 2.00049C11.4243 2.00049 10.8577 2.14546 10.3526 2.42205C9.84755 2.69864 9.42024 3.09793 9.1101 3.58311L1.4401 16.3031C1.16915 16.7548 1.02189 17.2698 1.01311 17.7964C1.00434 18.323 1.13436 18.8427 1.3901 19.3031C1.68578 19.8214 2.11376 20.2518 2.6303 20.5505C3.14684 20.8492 3.73343 21.0054 4.3301 21.0031H19.6701C20.2629 21.0094 20.8468 20.8593 21.363 20.5678C21.8792 20.2764 22.3093 19.8539 22.6101 19.3431C22.8734 18.8779 23.0075 18.3508 22.9987 17.8163C22.9899 17.2818 22.8385 16.7594 22.5601 16.3031ZM20.8601 18.3531C20.7399 18.5597 20.5655 18.7295 20.3557 18.8441C20.146 18.9586 19.9089 19.0136 19.6701 19.0031H4.3301C4.09132 19.0136 3.85422 18.9586 3.64446 18.8441C3.4347 18.7295 3.26029 18.5597 3.1401 18.3531C3.05233 18.2011 3.00613 18.0286 3.00613 17.8531C3.00613 17.6776 3.05233 17.5051 3.1401 17.3531L10.8201 4.62311C10.9581 4.44082 11.1365 4.29298 11.3412 4.19119C11.5459 4.08939 11.7715 4.03642 12.0001 4.03642C12.2287 4.03642 12.4543 4.08939 12.659 4.19119C12.8637 4.29298 13.0421 4.44082 13.1801 4.62311L20.8501 17.3431C20.9413 17.4954 20.9902 17.6693 20.992 17.8468C20.9937 18.0243 20.9482 18.199 20.8601 18.3531Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M12.0001 17.0001C12.2653 17.0001 12.5197 16.8948 12.7072 16.7073C12.8948 16.5197 13.0001 16.2654 13.0001 16.0001C13.0001 15.7349 12.8948 15.4806 12.7072 15.293C12.5197 15.1055 12.2653 15.0001 12.0001 15.0001C11.7349 15.0001 11.4806 15.1055 11.293 15.293C11.1055 15.4806 11.0001 15.7349 11.0001 16.0001C11.0001 16.2654 11.1055 16.5197 11.293 16.7073C11.4806 16.8948 11.7349 17.0001 12.0001 17.0001Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M12.0001 8.00023C11.7349 8.00023 11.4806 8.10559 11.293 8.29313C11.1055 8.48066 11.0001 8.73502 11.0001 9.00023V13.0002C11.0001 13.2655 11.1055 13.5198 11.293 13.7073C11.4806 13.8949 11.7349 14.0002 12.0001 14.0002C12.2653 14.0002 12.5197 13.8949 12.7072 13.7073C12.8948 13.5198 13.0001 13.2655 13.0001 13.0002V9.00023C13.0001 8.73502 12.8948 8.48066 12.7072 8.29313C12.5197 8.10559 12.2653 8.00023 12.0001 8.00023Z",fill:"currentColor"})]})}function M1(e){return(0,e3.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,e3.jsx)("path",{d:"M21.8701 11.496C21.2301 10.386 17.7101 4.81597 11.7301 4.99597C6.20007 5.13597 3.00007 9.99597 2.13007 11.496C2.0423 11.648 1.99609 11.8204 1.99609 11.996C1.99609 12.1715 2.0423 12.3439 2.13007 12.496C2.76007 13.586 6.13007 18.996 12.0201 18.996H12.2701C17.8001 18.856 21.0101 13.996 21.8701 12.496C21.9577 12.3439 22.0039 12.1715 22.0039 11.996C22.0039 11.8204 21.9577 11.648 21.8701 11.496ZM12.2201 16.996C7.91007 17.096 5.10007 13.406 4.22007 11.996C5.22007 10.386 7.83007 7.09597 11.8301 6.99597C16.1201 6.88597 18.9401 10.586 19.8301 11.996C18.8001 13.606 16.2201 16.896 12.2201 16.996Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M12 8.49994C11.5404 8.49994 11.0852 8.59047 10.6606 8.76636C10.236 8.94225 9.85013 9.20006 9.52513 9.52506C9.20012 9.85007 8.94231 10.2359 8.76642 10.6605C8.59053 11.0852 8.5 11.5403 8.5 11.9999C8.5 12.4596 8.59053 12.9147 8.76642 13.3393C8.94231 13.764 9.20012 14.1498 9.52513 14.4748C9.85013 14.7998 10.236 15.0576 10.6606 15.2335C11.0852 15.4094 11.5404 15.4999 12 15.4999C12.9283 15.4999 13.8185 15.1312 14.4749 14.4748C15.1313 13.8184 15.5 12.9282 15.5 11.9999C15.5 11.0717 15.1313 10.1814 14.4749 9.52506C13.8185 8.86869 12.9283 8.49994 12 8.49994ZM12 13.4999C11.6022 13.4999 11.2206 13.3419 10.9393 13.0606C10.658 12.7793 10.5 12.3978 10.5 11.9999C10.5 11.6021 10.658 11.2206 10.9393 10.9393C11.2206 10.658 11.6022 10.4999 12 10.4999C12.3978 10.4999 12.7794 10.658 13.0607 10.9393C13.342 11.2206 13.5 11.6021 13.5 11.9999C13.5 12.3978 13.342 12.7793 13.0607 13.0606C12.7794 13.3419 12.3978 13.4999 12 13.4999Z",fill:"currentColor"})]})}function M2(e){return(0,e3.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,e3.jsx)("path",{d:"M4.70985 3.28579C4.61661 3.19255 4.50592 3.11859 4.3841 3.06813C4.26227 3.01767 4.13171 2.9917 3.99985 2.9917C3.86799 2.9917 3.73742 3.01767 3.6156 3.06813C3.49377 3.11859 3.38308 3.19255 3.28985 3.28579C3.10154 3.47409 2.99575 3.72949 2.99575 3.99579C2.99575 4.26209 3.10154 4.51749 3.28985 4.70579L8.91985 10.3358C8.56365 10.9984 8.43043 11.7582 8.53993 12.5024C8.64944 13.2467 8.99583 13.9359 9.52778 14.4679C10.0597 14.9998 10.7489 15.3462 11.4932 15.4557C12.2375 15.5652 12.9972 15.432 13.6598 15.0758L19.2898 20.7058C19.3828 20.7995 19.4934 20.8739 19.6153 20.9247C19.7371 20.9754 19.8678 21.0016 19.9998 21.0016C20.1319 21.0016 20.2626 20.9754 20.3844 20.9247C20.5063 20.8739 20.6169 20.7995 20.7098 20.7058C20.8033 20.6127 20.8775 20.502 20.9281 20.3802C20.9788 20.2584 21.0048 20.1277 21.0048 19.9958C21.0048 19.8639 20.9788 19.7332 20.9281 19.6114C20.8775 19.4895 20.8033 19.3789 20.7098 19.2858L4.70985 3.28579ZM11.9998 13.4958C11.602 13.4958 11.2205 13.3378 10.9392 13.0565C10.6579 12.7751 10.4998 12.3936 10.4998 11.9958V11.9258L12.0598 13.4858L11.9998 13.4958Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M12.2201 16.997C7.92007 17.097 5.10007 13.407 4.22007 11.997C4.84707 10.997 5.60007 10.084 6.46007 9.27695L5.00007 7.86695C3.87139 8.93042 2.90448 10.1534 2.13007 11.497C2.0423 11.649 1.99609 11.8214 1.99609 11.997C1.99609 12.1725 2.0423 12.3449 2.13007 12.497C2.76007 13.587 6.13007 18.997 12.0201 18.997H12.2701C13.3776 18.9641 14.4708 18.7373 15.5001 18.327L13.9201 16.747C13.3644 16.8931 12.7943 16.977 12.2201 16.997Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M21.87 11.4958C21.23 10.3858 17.7 4.8158 11.73 4.9958C10.6225 5.02865 9.52924 5.25541 8.5 5.6658L10.08 7.2458C10.6356 7.09963 11.2058 7.01578 11.78 6.9958C16.07 6.8858 18.89 10.5858 19.78 11.9958C19.138 12.9981 18.3682 13.9124 17.49 14.7158L19 16.1258C20.1428 15.0651 21.1234 13.842 21.91 12.4958C21.9918 12.3403 22.0311 12.166 22.0241 11.9904C22.0171 11.8149 21.9639 11.6443 21.87 11.4958Z",fill:"currentColor"})]})}function M3(e){return(0,e3.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[(0,e3.jsx)("path",{d:"M12 2C11.7348 2 11.4804 2.10536 11.2929 2.29289C11.1054 2.48043 11 2.73478 11 3V5C11 5.26522 11.1054 5.51957 11.2929 5.70711C11.4804 5.89464 11.7348 6 12 6C12.2652 6 12.5196 5.89464 12.7071 5.70711C12.8946 5.51957 13 5.26522 13 5V3C13 2.73478 12.8946 2.48043 12.7071 2.29289C12.5196 2.10536 12.2652 2 12 2Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M21.0002 11H19.0002C18.735 11 18.4806 11.1054 18.2931 11.2929C18.1055 11.4804 18.0002 11.7348 18.0002 12C18.0002 12.2652 18.1055 12.5196 18.2931 12.7071C18.4806 12.8946 18.735 13 19.0002 13H21.0002C21.2654 13 21.5197 12.8946 21.7073 12.7071C21.8948 12.5196 22.0002 12.2652 22.0002 12C22.0002 11.7348 21.8948 11.4804 21.7073 11.2929C21.5197 11.1054 21.2654 11 21.0002 11Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M6 12C6 11.7348 5.89464 11.4804 5.70711 11.2929C5.51957 11.1054 5.26522 11 5 11H3C2.73478 11 2.48043 11.1054 2.29289 11.2929C2.10536 11.4804 2 11.7348 2 12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H5C5.26522 13 5.51957 12.8946 5.70711 12.7071C5.89464 12.5196 6 12.2652 6 12Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M6.22009 5.00298C6.02357 4.82786 5.76656 4.7362 5.50358 4.74744C5.2406 4.75869 4.99234 4.87196 4.8115 5.06322C4.63065 5.25447 4.53143 5.50867 4.5349 5.77187C4.53838 6.03507 4.64426 6.28656 4.83009 6.47298L6.27009 7.86298C6.36673 7.95629 6.48117 8.02917 6.60659 8.07728C6.73201 8.12538 6.86584 8.14773 7.00009 8.14298C7.1348 8.14246 7.26801 8.11474 7.39173 8.06147C7.51546 8.0082 7.62714 7.93048 7.72009 7.83298C7.90634 7.64561 8.01088 7.39216 8.01088 7.12798C8.01088 6.86379 7.90634 6.61034 7.72009 6.42298L6.22009 5.00298Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M17 8.14285C17.2575 8.14182 17.5047 8.04153 17.69 7.86285L19.13 6.47285C19.3057 6.2893 19.4049 6.04577 19.4075 5.79172C19.4102 5.53767 19.316 5.29214 19.1441 5.10502C18.9723 4.91789 18.7356 4.80319 18.4823 4.78421C18.2289 4.76524 17.9779 4.84341 17.78 5.00285L16.34 6.42285C16.1538 6.61021 16.0493 6.86366 16.0493 7.12785C16.0493 7.39203 16.1538 7.64548 16.34 7.83285C16.5132 8.01557 16.7489 8.12627 17 8.14285Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M12 17.9999C11.7348 17.9999 11.4804 18.1053 11.2929 18.2928C11.1054 18.4803 11 18.7347 11 18.9999V20.9999C11 21.2651 11.1054 21.5195 11.2929 21.707C11.4804 21.8946 11.7348 21.9999 12 21.9999C12.2652 21.9999 12.5196 21.8946 12.7071 21.707C12.8946 21.5195 13 21.2651 13 20.9999V18.9999C13 18.7347 12.8946 18.4803 12.7071 18.2928C12.5196 18.1053 12.2652 17.9999 12 17.9999Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M17.7302 16.1399C17.5392 15.9556 17.2829 15.8547 17.0175 15.8594C16.7521 15.864 16.4995 15.974 16.3152 16.1649C16.1309 16.3559 16.0299 16.6122 16.0346 16.8776C16.0393 17.143 16.1492 17.3956 16.3402 17.5799L17.7802 18.9999C17.9702 19.1835 18.2251 19.2845 18.4893 19.2808C18.7535 19.277 19.0055 19.1688 19.1902 18.9799C19.2837 18.8868 19.3579 18.7762 19.4085 18.6543C19.4591 18.5325 19.4851 18.4019 19.4851 18.2699C19.4851 18.138 19.4591 18.0073 19.4085 17.8855C19.3579 17.7637 19.2837 17.653 19.1902 17.5599L17.7302 16.1399Z",fill:"currentColor"}),(0,e3.jsx)("path",{d:"M6.27011 16.141L4.83011 17.531C4.73638 17.624 4.66198 17.7346 4.61121 17.8564C4.56045 17.9783 4.53431 18.109 4.53431 18.241C4.53431 18.373 4.56045 18.5037 4.61121 18.6256C4.66198 18.7474 4.73638 18.858 4.83011 18.951C4.9239 19.0467 5.03596 19.1226 5.15965 19.1741C5.28333 19.2256 5.41612 19.2518 5.55011 19.251C5.79662 19.2531 6.03522 19.1641 6.22011 19.001L7.66011 17.611C7.75466 17.5197 7.83031 17.4107 7.88273 17.2902C7.93516 17.1697 7.96334 17.0401 7.96566 16.9087C7.96798 16.7773 7.9444 16.6467 7.89626 16.5244C7.84813 16.4022 7.77637 16.2905 7.68511 16.196C7.59384 16.1014 7.48484 16.0258 7.36433 15.9734C7.24383 15.9209 7.11418 15.8928 6.98278 15.8904C6.85139 15.8881 6.72082 15.9117 6.59854 15.9598C6.47626 16.008 6.36466 16.0797 6.27011 16.171V16.141Z",fill:"currentColor"})]})}function M5({className:e,...t}){return(0,e3.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:MK("size-6",e),...t,children:[(0,e3.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0625 1.70412C12.1393 1.70359 12.2136 1.7151 12.2842 1.73439C12.6576 1.76978 13.0261 1.88527 13.3604 2.08303L19.7012 5.84084L19.7031 5.84181C20.1036 6.08032 20.4348 6.42322 20.665 6.83498C20.8952 7.24671 21.0168 7.71415 21.0166 8.19142V8.19338L20.998 15.7403C20.9979 16.1352 20.9124 16.526 20.751 16.8848C20.7319 16.9557 20.7049 17.026 20.667 17.0928C20.6355 17.1482 20.5983 17.1987 20.5576 17.2442C20.3296 17.6 20.023 17.8979 19.6631 18.1133L13.2998 21.9072C12.4738 22.3996 11.4611 22.4004 10.6436 21.917L10.6416 21.916L4.30078 18.1582L4.29883 18.1572C3.91023 17.9258 3.58764 17.5957 3.3584 17.2002C3.35105 17.1885 3.34181 17.1773 3.33496 17.1651C3.32803 17.1526 3.32268 17.1387 3.31641 17.126C3.09976 16.7236 2.98517 16.2703 2.98535 15.8076V15.8057L3.00391 8.25588C3.00603 7.28279 3.51293 6.37777 4.33984 5.88478L10.7021 2.09181C11.0682 1.87369 11.4708 1.75231 11.877 1.72658C11.9365 1.71245 11.999 1.70462 12.0625 1.70412ZM5.16895 7.36818C4.87108 7.54583 4.6844 7.87497 4.68359 8.23635L4.66602 15.3838L9.45801 12.5254C9.51085 12.7718 9.60256 13.0142 9.73535 13.2442C9.90127 13.5315 10.1161 13.7727 10.3633 13.9639L5.49512 16.8662L11.499 20.4248C11.8036 20.6044 12.1738 20.6008 12.4707 20.4238L18.5107 16.8233L13.4971 13.877C13.9543 13.482 14.2391 12.9423 14.3242 12.3672L19.3193 15.3037L19.3379 8.21291L19.3369 8.21388C19.3369 8.03517 19.2923 7.85955 19.2061 7.7051C19.1196 7.55056 18.9947 7.42151 18.8447 7.33205L12.8887 3.80275L12.8535 9.73439C12.3304 9.51037 11.7366 9.46806 11.1738 9.63576L11.21 3.76662L5.16895 7.36818Z",fill:"currentColor"}),(0,e3.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.91641 8.60885C11.7928 7.52595 14.1912 8.16845 15.2748 10.0444C16.3582 11.9209 15.7156 14.3211 13.8393 15.4047C11.9627 16.4879 9.56339 15.8446 8.47989 13.9682C7.39671 12.0916 8.03987 9.69227 9.91641 8.60885ZM13.8031 10.894C13.189 9.83118 11.8293 9.46704 10.766 10.0805C9.7026 10.6945 9.33693 12.0551 9.95059 13.1186C10.5646 14.1821 11.9261 14.5469 12.9897 13.9331C14.0529 13.3189 14.4171 11.9575 13.8031 10.894Z",fill:"currentColor"})]})}let M4="var(--v-borders-medium)";function M9({className:e,variant:t="default",size:r="default",state:n="loading",role:i,"aria-live":a,"aria-label":s,...o}){switch(t){case"logo":{let t="sm"===r?4:5;return(0,e3.jsxs)("svg",{...o,role:i??"status","aria-live":a??"polite","aria-label":s??("success"===n?"Success":"error"===n?"Error":"Loading"),width:"93",height:"91",viewBox:"0 0 93 91",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-slot":"spinner","data-size":r,"data-state":n,className:MK("spinner-logo shrink-0","sm"===r?"size-9":"size-22",e),children:[(0,e3.jsx)("g",{className:"spinner-logo__intro-shell",children:(0,e3.jsx)("path",{d:"M15.7495 62.7798L46.4936 45.0297M46.4936 45.0297L77.2661 62.5451M46.4936 45.0297L46.7111 9.62225M49.9213 79.4237L74.5719 65.1917C75.6436 64.5705 76.5344 63.6811 77.1541 62.6137C77.7738 61.5462 78.1003 60.3385 78.1007 59.1129L78.1729 30.7811C78.1734 29.5494 77.851 28.3427 77.2373 27.2798C76.6236 26.2169 75.7398 25.3343 74.6729 24.7189L50.1007 10.6155C47.926 9.3694 45.2455 9.37719 43.0689 10.6339L18.4183 24.8659C16.2385 26.1244 14.8946 28.4401 14.8895 30.9447L14.8173 59.2766C14.8168 60.5082 15.1392 61.7149 15.7529 62.7778C16.3666 63.8408 17.2504 64.7233 18.3173 65.3387L42.8895 79.4421C45.0642 80.6882 47.7447 80.6805 49.9213 79.4237Z",className:"spinner-logo__outline spinner-logo__outline--intro",vectorEffect:"sm"===r?void 0:"non-scaling-stroke"})}),(0,e3.jsx)("circle",{className:"spinner-logo__intro-orb",cx:"46.27",cy:"45.8",r:"11.18",fill:"white",stroke:M4,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e3.jsx)("circle",{className:"spinner-logo__result-ring",cx:"46.5",cy:"45.5",r:"33.46",fill:"white",stroke:M4,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e3.jsx)("g",{transform:"translate(27.786 31.4489)",children:(0,e3.jsx)("g",{className:"spinner-logo__result-glyph spinner-logo__result-glyph--success",children:(0,e3.jsx)("path",{d:"M13.6758 28.1023C13.3559 28.101 13.0397 28.0341 12.7467 27.9057C12.4537 27.7772 12.1902 27.59 11.9725 27.3557L0.632479 15.2923C0.208575 14.8406 -0.0185097 14.2389 0.00118164 13.6198C0.020873 13.0006 0.285727 12.4146 0.737479 11.9907C1.18923 11.5668 1.79088 11.3397 2.41006 11.3594C3.02924 11.3791 3.61524 11.6439 4.03915 12.0957L13.6525 22.339L33.2758 0.87233C33.475 0.624349 33.7227 0.419696 34.0038 0.270944C34.2849 0.122191 34.5935 0.0324784 34.9105 0.00731496C35.2276 -0.0178485 35.5464 0.0220682 35.8475 0.124615C36.1485 0.227162 36.4254 0.390174 36.6612 0.603637C36.897 0.8171 37.0866 1.07651 37.2185 1.36593C37.3503 1.65535 37.4216 1.96867 37.428 2.28665C37.4344 2.60463 37.3756 2.92056 37.2555 3.21502C37.1353 3.50949 36.9562 3.77627 36.7291 3.999L15.4025 27.3323C15.1868 27.5709 14.9242 27.7625 14.6311 27.895C14.338 28.0275 14.0208 28.0981 13.6991 28.1023H13.6758Z",fill:M4})})}),(0,e3.jsx)("g",{transform:"translate(32.4879 31.4885)",children:(0,e3.jsx)("g",{className:"spinner-logo__result-glyph spinner-logo__result-glyph--error",children:(0,e3.jsx)("path",{d:"M17.3045 14.0095L27.3378 3.99955C27.5554 3.78199 27.728 3.52371 27.8457 3.23946C27.9635 2.95521 28.0241 2.65055 28.0241 2.34288C28.0241 2.03521 27.9635 1.73055 27.8457 1.4463C27.728 1.16205 27.5554 0.903769 27.3378 0.686213C27.1203 0.468656 26.862 0.296082 26.5778 0.178341C26.2935 0.0606 25.9889 -4.58466e-09 25.6812 0C25.3735 4.58466e-09 25.0689 0.0606 24.7846 0.178341C24.5003 0.296082 24.2421 0.468656 24.0245 0.686213L14.0145 10.7195L4.00451 0.686213C3.56514 0.246838 2.96921 -4.62957e-09 2.34784 0C1.72647 4.62957e-09 1.13055 0.246838 0.691177 0.686213C0.251802 1.12559 0.0049634 1.72151 0.0049634 2.34288C0.00496339 2.96425 0.251802 3.56017 0.691177 3.99955L10.7245 14.0095L0.691177 24.0195C0.472196 24.2363 0.29836 24.4943 0.179723 24.7787C0.0610849 25.063 0 25.3681 0 25.6762C0 25.9843 0.0610849 26.2894 0.179723 26.5737C0.29836 26.8581 0.472196 27.1161 0.691177 27.3329C0.908091 27.5516 1.16616 27.7252 1.4505 27.8436C1.73484 27.9621 2.03982 28.0231 2.34784 28.0231C2.65587 28.0231 2.96085 27.9621 3.24519 27.8436C3.52953 27.7252 3.7876 27.5516 4.00451 27.3329L14.0145 17.2995L24.0245 27.3329C24.296 27.6078 24.6314 27.8111 25.0007 27.9245C25.3701 28.0379 25.7618 28.0579 26.1407 27.9828C26.5197 27.9077 26.8741 27.7397 27.1722 27.4939C27.4703 27.2481 27.7028 26.9322 27.8488 26.5745C28.0272 26.1459 28.0736 25.6738 27.9821 25.2187C27.8907 24.7636 27.6655 24.346 27.3355 24.0195L17.3045 14.0095Z",fill:M4})})})]})}case"default":return(0,e3.jsx)(M3,{...o,role:i??"status","aria-live":a??"polite","aria-label":s??"Loading","data-slot":"spinner",className:MK("size-4 animate-spin",e)});default:return t}}function M8({...e}){return(0,e3.jsx)(iL,{"data-slot":"dialog",...e})}function M6({...e}){return(0,e3.jsx)(iz,{"data-slot":"dialog-portal",...e})}function M7({...e}){return(0,e3.jsx)(iZ,{"data-slot":"dialog-close",...e})}function Ie({className:e,...t}){return(0,e3.jsx)(iH,{"data-slot":"dialog-overlay",className:MK("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function It({className:e,children:t,contentInsideOverlay:r=!1,showCloseButton:n=!0,portalContainer:i,...a}){let s=(0,e3.jsxs)(iq,{"data-slot":"dialog-content",className:MK("bg-background-containers data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-6 rounded-3xl border-0 p-6 shadow-[var(--shadow-login)] duration-200 outline-none sm:max-w-120 sm:p-10",e),...a,children:[t,n&&(0,e3.jsxs)(iZ,{"data-slot":"dialog-close",className:"focus-visible:ring-ring/30 absolute top-4 right-4 inline-flex size-6 cursor-pointer items-center justify-center rounded-full text-icons-light transition-colors hover:text-icons-normal focus-visible:text-icons-dark focus-visible:ring-2 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[(0,e3.jsx)(at,{className:"size-6"}),(0,e3.jsx)("span",{className:"sr-only",children:"Close"})]})]});return(0,e3.jsx)(M6,{"data-slot":"dialog-portal",container:i,children:r?(0,e3.jsx)(Ie,{children:s}):(0,e3.jsxs)(e3.Fragment,{children:[(0,e3.jsx)(Ie,{}),s]})})}let Ir=/oklch\(([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)/;function In(e,t){let r=e.match(Ir);return r?{l:Number.parseFloat(r[1]),c:Number.parseFloat(r[2]),h:Number.parseFloat(r[3])}:{l:t[0],c:t[1],h:t[2]}}function Ii({data:e,foreground:t,background:r,robustness:n="M",className:i,...a}){let[s,o]=(0,e5.useState)(null);return((0,e5.useEffect)(()=>{(async()=>{try{let i=getComputedStyle(document.documentElement),a=t??i.getPropertyValue("--foreground"),s=r??i.getPropertyValue("--background"),l=In(a,[.21,.006,285.885]),c=In(s,[.985,0,0]),u=await oO.toString(e,{type:"svg",color:{dark:oF(oN({mode:"oklch",...l})),light:oF(oN({mode:"oklch",...c}))},width:200,errorCorrectionLevel:n,margin:0});o(u)}catch(e){console.error(e)}})()},[e,t,r,n]),s)?(0,e3.jsx)("div",{className:MK("size-full","[&_svg]:size-full",i),dangerouslySetInnerHTML:{__html:s},...a}):null}let Ia="https://integrations.vizbl.com/model-viewer";function Is(e){return cw.create({baseURL:e,timeout:3e4})}let Io=new Set(["common","delete","get","head","post","put","patch","options","purge","link","unlink"]);function Il(){return globalThis.process?.env?.NODE_ENV}function Ic(e){if(void 0===e)return[];let t="function"==typeof e.toJSON?e.toJSON():e,r=[];return!function e(t,r){if(null!==t&&"object"==typeof t)for(let[n,i]of Object.entries(t)){if(null==i)continue;let t=n.toLowerCase();if("common"===t){e(i,r);continue}Io.has(t)||r.push([n,String(i)])}}(t,r),r}function Iu(e){return!!("u">typeof FormData&&e instanceof FormData)||null!==e&&"object"==typeof e&&(e.constructor?.name==="FormData"||"function"==typeof e.getBoundary)}let Id=new Set(["authorization","cookie","set-cookie","x-xsrf-token"]);function Ih(e){if(null==e)return;let t="function"==typeof e.toJSON?e.toJSON():e;if(null===t||"object"!=typeof t)return;let r={};for(let[e,n]of Object.entries(t))null!=n&&(r[e]=Id.has(e.toLowerCase())?"[redacted]":String(n));return r}function Ip(e){if(null!=e){if("string"==typeof e)try{return JSON.parse(e)}catch{return e.length>2e3?`${e.slice(0,2e3)}… (${e.length} chars)`:e}return Iu(e)?"[FormData]":e}}function If(e){let t=(e.requestConfig.method??"GET").toUpperCase(),r=e.requestConfig.url??"",n=`[api:server] ${t} ${r} → ${e.status} (${e.durationMs}ms)`,i={requestId:e.requestId,...e.error?{error:e.error}:{},params:e.requestConfig.params,requestBody:Ip(e.requestConfig.data),requestHeaders:Ih(e.requestConfig.headers),responseHeaders:Ih(e.responseHeaders),responseBody:Ip(e.responseBody)};(e.status>=500||void 0!==e.error&&0===e.status?console.error:e.status>=400?console.warn:console.log)(n,i)}let Ig=function({clientName:e,configureFunctionName:t,defaultBaseURL:r}){let n=Is(r),i=Is(r),a=null,s=null,o=null,l=null,c=null,u=null;async function d(e,t){let r=function(e,t){let r;if(void 0===t.data||Iu(t.data))return t;let n=cD.from(t.headers);return n.has("Content-Type")||void 0!==(r=e.defaults.headers.common)&&cD.from(r).has("Content-Type")||n.set("Content-Type","application/json"),t.headers=n,t}(e,function(e){let t=cD.from(e.headers);if(null!==o){let e=o()?.trim();e&&!t.has("Authorization")&&t.set("Authorization",`Bearer ${e}`)}if(null!==u)for(let[r,n]of Object.entries(u({url:e.url,method:e.method})))n&&!t.has(r)&&t.set(r,n);return e.headers=t,e}({...t})),n=function(e){let t,r=cD.from(e.headers),n=r.get("x-request-id");if("string"==typeof n&&n.length>0)return n;let i=(t=globalThis.crypto,"function"==typeof t?.randomUUID?t.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`);return r.set("x-request-id",i),e.headers=r,i}(r),i=function(){if("u">typeof window)return!1;let e=Il(),t=globalThis.process;return t?.env?.DEBUG_API==="true"||"production"!==e&&"test"!==e&&"testing"!==e}(),a=i?Date.now():0;try{let t=await e.request(r);return i&&If({requestConfig:r,requestId:n,status:t.status,durationMs:Date.now()-a,responseHeaders:t.headers,responseBody:t.data}),t}catch(e){throw i&&If({requestConfig:r,requestId:n,status:e.response?.status??0,durationMs:Date.now()-a,responseHeaders:e.response?.headers,responseBody:e.response?.data,error:e.message}),e}}async function h(e){return d(e.skipUnauthorizedRecovery?i:n,function(e){let{skipUnauthorizedRecovery:t,...r}=e;return r}(e))}let p=async e=>h({...e,skipUnauthorizedRecovery:!0});function f(){return null!==a}return{configureClientRuntime:function(t){let r,s=(r=function(e){let t=Ic(e);if(0===t.length)return;let r=new Map;for(let[e,n]of t)r.set(e.toLowerCase(),n);return Object.fromEntries(Array.from(r.entries()).sort(([e],[t])=>e.localeCompare(t)))}(t.headers),JSON.stringify({...void 0!==t.baseURL?{baseURL:t.baseURL}:{},...void 0!==t.timeout?{timeout:t.timeout}:{},...void 0!==r?{headers:r}:{}}));if("{}"!==s){if(null!==a){if(a===s)return;let t=`${e} already configured. Existing: ${a}. New: ${s}.`;if("production"===Il())return void console.warn(t);throw Error(t)}for(let e of[n,i])void 0!==t.baseURL&&(e.defaults.baseURL=t.baseURL),void 0!==t.timeout&&(e.defaults.timeout=t.timeout),void 0!==t.headers&&function(e,t){let r=e.defaults.headers,n=r.common,i=cD.from(n);for(let[e,r]of Ic(t))i.set(e,r);r.common=i.toJSON(),e.defaults.headers=r}(e,t.headers);a=s}},configureAccessTokenResolverRuntime:function(e){o=e},configureUnauthorizedHandlerRuntime:function(e){if(l=e,null===e){null!==s&&(n.interceptors.response.eject(s),s=null),c=null;return}null===s&&(s=n.interceptors.response.use(e=>e,async e=>{let t=e.config;if(e.response?.status!==401||null===l||void 0===t||t._apiRetried)return Promise.reject(e);if(null===c){let t=l;if(null===t)return Promise.reject(e);c=Promise.resolve().then(()=>t(e,{requestWithoutUnauthorizedRecovery:p})).finally(()=>{c=null})}try{if(!await c)return Promise.reject(e);t._apiRetried=!0;let r=cD.from(t.headers);return r.delete("Authorization"),t.headers=r,d(n,t)}catch{return Promise.reject(e)}}))},configureHeadersResolverRuntime:function(e){u=e},isClientConfiguredRuntime:f,assertClientConfiguredRuntime:function(){if(!f())throw Error(`${e} is not configured. Call ${t}(...) before making requests.`)},resetClientForTestsRuntime:function(){let e;if("test"!==(e=Il())&&"testing"!==e)throw Error("resetApiClientForTests() can only be called in test environment.");n=Is(r),i=Is(r),a=null,s=null,o=null,l=null,c=null,u=null},requestRuntime:h,requestWithoutUnauthorizedRecovery:p,addResponseInterceptorRuntime:function(e,t){return n.interceptors.response.use(e,t)}}}({clientName:"API node client",configureFunctionName:"configureNodeApiClient",defaultBaseURL:"https://api.vizbl.com"}),Im=Ig.configureClientRuntime;Ig.configureAccessTokenResolverRuntime,Ig.configureHeadersResolverRuntime,Ig.configureUnauthorizedHandlerRuntime,Ig.isClientConfiguredRuntime,Ig.assertClientConfiguredRuntime,Ig.resetClientForTestsRuntime;let IA=Ig.requestRuntime;async function Iv(e){return IA(e)}async function Ib({tinuuid:e},t,r={}){let{client:n=Iv,...i}=r;return(await n({method:"GET",url:`/public/objects/by-tinuuid/${e}`,params:t,...i})).data}Ig.requestWithoutUnauthorizedRecovery,Ig.addResponseInterceptorRuntime;let Iy=(0,e5.createContext)(null);function Ix({children:e,tinuuid:t,apiKey:r,hid:n,layout:i,background:a}){let{object:s,material:o,error:l,isLoading:c,setMaterialHid:u}=function(e,t,r){let[n,i]=(0,e5.useState)(t??null),{data:a=null,error:s,isLoading:o}=function(e,t,r){let n=e5.useContext(t8),i=e5.useContext(t9),a=(e=>{let t=e5.useContext(t5);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t})(r),s=a.defaultQueryOptions(e);if(a.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=n?"isRestoring":"optimistic",s.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=s.staleTime;s.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof s.gcTime&&(s.gcTime=Math.max(s.gcTime,1e3))}(s.suspense||s.throwOnError||s.experimental_prefetchInRender)&&!i.isReset()&&(s.retryOnMount=!1),e5.useEffect(()=>{i.clearReset()},[i]);let o=!a.getQueryCache().get(s.queryHash),[l]=e5.useState(()=>new t(a,s)),c=l.getOptimisticResult(s),u=!n&&!1!==e.subscribed;if(e5.useSyncExternalStore(e5.useCallback(e=>{let t=u?l.subscribe(tQ.batchCalls(e)):ty;return l.updateResult(),t},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),e5.useEffect(()=>{l.setOptions(s)},[s,l]),s?.suspense&&c.isPending)throw t6(s,l,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>{var a;return e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||(a=[e.error,n],"function"==typeof r?r(...a):!!r))})({result:c,errorResetBoundary:i,throwOnError:s.throwOnError,query:a.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!tb&&c.isLoading&&c.isFetching&&!n){let e=o?t6(s,l,i):a.getQueryCache().get(s.queryHash)?.promise;e?.catch(ty).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?c:l.trackResult(c)}({queryKey:["modelViewer","object",e,r.apiKey],enabled:!!e&&r.apiKey.length>0,queryFn:({signal:t})=>Ib({tinuuid:e},{productType:"core-ar"},{headers:{"x-api-key":r.apiKey},signal:t})},tZ,void 0),l=(0,e5.useMemo)(()=>a?.materials?.length?n?a.materials.find(e=>e.hid===n)||a.materials[0]:a.materials?.[0]??null:null,[a,n]);return(0,e5.useEffect)(()=>{i(t??null)},[t,e]),{object:a,material:l,error:s,isLoading:o,setMaterialHid:i}}(t,n,{apiKey:r}),[d,h]=(0,e5.useState)(!0),[p,f]=(0,e5.useState)(null),[g,m]=(0,e5.useState)(null),A=r.length>0,v=o?.native?.glbUrl??null,b=o?.native?.usdzUrl??null,y=o?.previews?.[0]?.url??null,x=(0,e5.useMemo)(()=>{if(!A)return"unauthorized";if(c)return"loading";let e=function(e){if(!cR(e))return null;let t=e.response?.status;return 401===t?"unauthorized":402===t?"payment-required":null}(l);return e||(null==l&&s&&o&&v?"ready":"not-found")},[l,v,A,c,o,s]);(0,e5.useEffect)(()=>{h("ready"===x&&!!v)},[v,x]),(0,e5.useEffect)(()=>{if(!g)return;let e=e=>{let t=e.detail?.totalProgress;void 0!==t&&h(t<1)},t=()=>{h(!1)},r=()=>{h(!1)};return g.addEventListener("progress",e),g.addEventListener("load",t),g.addEventListener("error",r),()=>{g.removeEventListener("progress",e),g.removeEventListener("load",t),g.removeEventListener("error",r)}},[g]);let w=(0,e5.useMemo)(()=>({tinuuid:t,object:s,material:o,glbUrl:v,usdzUrl:b,previewUrl:y,layout:i,background:a,isLoading:c,isModelLoading:d,state:x,modelViewerEl:g,containerEl:p,setMaterialHid:u,setContainerEl:f,setModelViewerEl:m}),[t,s,o,v,b,y,i,a,c,d,x,g,p,u]);return(0,e3.jsx)(Iy,{value:w,children:e})}function Iw(){let e=(0,e5.use)(Iy);if(!e)throw Error("useModelViewer must be used within a ModelViewerProvider");return e}function IS({disabled:e,onClick:t,onBeforeActivateAr:r,size:n="lg",...i}){let{containerEl:a,isLoading:s,isModelLoading:o,material:l,modelViewerEl:c,object:u,tinuuid:d}=Iw(),[h,p]=(0,e5.useState)(!1),f=s||o||null===l,g=(0,e5.useMemo)(()=>{if(!Ia)return null;let e=new URL(Ia);return e.searchParams.set("tinuuid",u?.tinuuid??d),l?.hid&&e.searchParams.set("hid",l.hid),e.toString()},[l?.hid,u?.tinuuid,d]),m=async()=>{c&&!f&&(c.canActivateAR?(r?.(),await c.activateAR()):g&&p(!0))},A=async e=>{t?.(e),e.defaultPrevented||await m()};return(0,e3.jsxs)(e3.Fragment,{children:[(0,e3.jsx)(MZ,{...i,size:n,disabled:e||f,onClick:A,children:"View in place"}),g&&(0,e3.jsx)(M8,{open:h,onOpenChange:p,children:(0,e3.jsxs)(It,{showCloseButton:!1,portalContainer:a,children:[(0,e3.jsx)("div",{className:"flex items-center justify-center rounded-2xl bg-constant-white p-10",children:(0,e3.jsx)(Ii,{className:"size-48",robustness:"H",data:g})}),(0,e3.jsx)("p",{className:"text-center text-lg font-medium text-text-sub",children:"Scan the QR code with your phone or tablet to view the object in your interior."}),(0,e3.jsx)("p",{className:"text-center text-xs text-text-light",children:"*Requires AR-supported device and browser. We recommend iOS 12 or later with Safari, or Android 7.0 or later with Chrome."}),(0,e3.jsx)(M7,{asChild:!0,children:(0,e3.jsx)(MZ,{size:"lg",children:"Close"})})]})})]})}function I_({lines:e}){return(0,e3.jsx)("svg",{className:"absolute inset-0 block pointer-events-none",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",children:e.map((e,t)=>(0,e3.jsx)("line",{className:MK("stroke-primary stroke-2 [stroke-dasharray:2] transition-opacity duration-200",0===e.opacity&&"opacity-0"),style:{opacity:e.opacity},x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2},t))})}function IE({isVisible:e,lines:t}){return e?(0,e3.jsx)(I_,{lines:t}):null}let IC=[{slot:"hotspot-dot+X-Y+Z",position:"1 -1 1",normal:"1 0 0"},{slot:"hotspot-dot+X-Y-Z",position:"1 -1 -1",normal:"1 0 0"},{slot:"hotspot-dot+X+Y-Z",position:"1 1 -1",normal:"0 1 0"},{slot:"hotspot-dot-X+Y-Z",position:"-1 1 -1",normal:"0 1 0"},{slot:"hotspot-dot-X-Y-Z",position:"-1 -1 -1",normal:"-1 0 0"},{slot:"hotspot-dot-X-Y+Z",position:"-1 -1 1",normal:"-1 0 0"},{slot:"hotspot-dim+X-Y",position:"1 -1 0",normal:"1 0 0",isDimensionLabel:!0},{slot:"hotspot-dim+X-Z",position:"1 0 -1",normal:"1 0 0",isDimensionLabel:!0},{slot:"hotspot-dim+Y-Z",position:"0 1 -1",normal:"0 1 0",isDimensionLabel:!0},{slot:"hotspot-dim-X-Z",position:"-1 0 -1",normal:"-1 0 0",isDimensionLabel:!0},{slot:"hotspot-dim-X-Y",position:"-1 -1 0",normal:"-1 0 0",isDimensionLabel:!0}],IM=new Map(IC.map(e=>[e.slot,e])),II=[{slot:"hotspot-dim+X-Y",sizeAxis:"z",offsetMultiplier:{x:1.2,y:1.1}},{slot:"hotspot-dim+X-Z",sizeAxis:"y",offsetMultiplier:{x:1.2,z:1.2}},{slot:"hotspot-dim+Y-Z",sizeAxis:"x",offsetMultiplier:{y:1.1,z:1.1}},{slot:"hotspot-dim-X-Z",sizeAxis:"y",offsetMultiplier:{x:1.2,z:1.2}},{slot:"hotspot-dim-X-Y",sizeAxis:"z",offsetMultiplier:{x:1.2,y:1.1}}],IT=II.map(e=>e.slot),Ik=[{lineIndex:0,hotspot1:"hotspot-dot+X-Y+Z",hotspot2:"hotspot-dot+X-Y-Z",dimensionHotspot:"hotspot-dim+X-Y"},{lineIndex:1,hotspot1:"hotspot-dot+X-Y-Z",hotspot2:"hotspot-dot+X+Y-Z",dimensionHotspot:"hotspot-dim+X-Z"},{lineIndex:2,hotspot1:"hotspot-dot+X+Y-Z",hotspot2:"hotspot-dot-X+Y-Z",dimensionHotspot:"hotspot-dim+Y-Z"},{lineIndex:3,hotspot1:"hotspot-dot-X+Y-Z",hotspot2:"hotspot-dot-X-Y-Z",dimensionHotspot:"hotspot-dim-X-Z"},{lineIndex:4,hotspot1:"hotspot-dot-X-Y-Z",hotspot2:"hotspot-dot-X-Y+Z",dimensionHotspot:"hotspot-dim-X-Y"}],IR=(0,e5.memo)(({hiddenHotspots:e,isVisible:t,labels:r})=>{let n=(0,e5.useMemo)(()=>new Map(r.map(e=>[e.slot,e])),[r]);return(0,e3.jsx)(e3.Fragment,{children:IC.map(r=>{let i=r.isDimensionLabel,a=n.get(r.slot),s=!t||!i||e.has(r.slot);return(0,e3.jsx)(MZ,{slot:r.slot,"data-position":r.position,"data-normal":r.normal,className:MK("absolute box-border pointer-events-none h-auto min-h-9 w-max -translate-x-1/2 -translate-y-1/2 whitespace-nowrap py-2 text-center [--min-hotspot-opacity:0] transition-opacity duration-200 @max-xl:px-3 @max-xl:py-1.5 @max-xl:typo-button-small",s&&"opacity-0",!i&&"hidden"),variant:"secondary",children:i&&a?a.text:""},r.slot)})})});function IB({className:e,...t}){return(0,e3.jsxs)("div",{className:MK("group inline-flex gap-2 text-sm text-muted-foreground transition-colors duration-200 ease-in-out hover:text-text-dark",e),...t,children:[(0,e3.jsx)("div",{className:"flex size-5 items-center justify-center rounded-full bg-icons-light transition-colors duration-200 ease-in-out group-hover:bg-icons-red",children:(0,e3.jsx)(M5,{className:"size-4.25 text-icons-white"})}),"Powered by Vizbl"]})}function IP({className:e,...t}){let{object:r}=Iw();return(0,e3.jsxs)("div",{className:MK("grid h-16 items-center gap-5 px-6 sm:grid-cols-3",e),...t,children:[(0,e3.jsx)("div",{className:"truncate",children:r?.name}),(0,e3.jsx)("div",{className:"hidden justify-center sm:flex",children:(0,e3.jsx)(IB,{})}),(0,e3.jsx)("div",{className:"hidden sm:block"})]})}function ID({className:e,...t}){return(0,e3.jsx)("div",{"data-slot":"card",className:MK("bg-card text-card-foreground relative flex flex-col overflow-hidden rounded-3xl px-8 py-10",e),...t})}function IL({className:e,...t}){return(0,e3.jsx)("div",{"data-slot":"card-content",className:MK("px-5",e),...t})}function IF({className:e,...t}){return(0,e3.jsx)(cU,{"data-slot":"label",className:MK("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}let IN=np("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function IO({className:e,orientation:t="vertical",...r}){return(0,e3.jsx)("div",{role:"group","data-slot":"field","data-orientation":t,className:MK(IN({orientation:t}),e),...r})}function IU({className:e,...t}){return(0,e3.jsx)("div",{"data-slot":"field-content",className:MK("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e),...t})}function Iz({className:e,...t}){return(0,e3.jsx)(IF,{"data-slot":"field-label",className:MK("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...t})}function IQ({className:e,...t}){return(0,e3.jsx)(uh,{"data-slot":"radio-group",className:MK("grid gap-3",e),...t})}function IH({checked:e,className:t,...r}){return(0,e3.jsx)("div",{className:MK("absolute top-1/2 left-1/2 size-6 -translate-x-1/2 -translate-y-1/2","flex items-center justify-center rounded-full",e?"bg-lime-400":"bg-background-base-2",t),...r,children:(0,e3.jsx)(ar,{className:"text-constant-white size-3.5",strokeWidth:4})})}function IG({className:e,variant:t="default",...r}){return(0,e3.jsxs)(uf,{"data-slot":"radio-group-item",className:MK("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50","check"===t&&"size-6","inverted"===t&&"size-5 border-button-outline data-[state=checked]:border-border-red data-[state=checked]:border-4 data-[state=checked]:bg-constant-white cursor-pointer transition-all",e),...r,children:["check"===t&&(0,e3.jsx)("div",{className:"relative",children:(0,e3.jsx)(IH,{})}),"inverted"!==t&&(0,e3.jsx)(ug,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:"check"===t?(0,e3.jsx)(IH,{checked:!0}):(0,e3.jsx)(an,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})]})}function Ij(){let{object:e,material:t,setMaterialHid:r}=Iw(),n=e?.materials??[];return!e||n.length<2?null:(0,e3.jsx)(ID,{className:"w-fit max-w-full overflow-hidden px-4 py-4 @max-xl:rounded-2xl @max-xl:px-2 @max-xl:py-2",children:(0,e3.jsx)(IL,{className:"px-0",children:(0,e3.jsx)(IQ,{className:"flex w-max min-w-full gap-2 overflow-x-auto",value:t?.hid??void 0,onValueChange:e=>r(e),children:n.map(t=>(0,e3.jsx)(Iz,{htmlFor:t.hid,className:"cursor-pointer has-data-[state=checked]:bg-transparent has-data-[state=checked]:border-primary p-0",children:(0,e3.jsxs)(IO,{className:"p-0! overflow-hidden rounded-md",children:[(0,e3.jsx)(IU,{className:"shrink-0",children:(0,e3.jsx)("img",{src:t.previews?.[0]?.subRes?.small??t.previews?.[0]?.url,width:80,height:80,alt:t.name??e.name??"Material preview",className:"size-20 object-cover @max-xl:size-12"})}),(0,e3.jsx)(IG,{className:"sr-only",value:t.hid,id:t.hid})]})},t.hid))})})})}let IV={"not-found":"Object not found",unauthorized:"Invalid API key","payment-required":"Viewer temporarily unavailable"};function Iq({variant:e,showDialogCloseButton:t=!1}){return(0,e3.jsxs)("div",{className:"relative z-30 flex size-full flex-col items-center justify-center gap-4 bg-radial from-background-containers to-background-base-2 p-4 text-center",children:[(0,e3.jsx)(M0,{className:"size-8 text-icons-light"}),(0,e3.jsx)("h2",{className:"typo-base-16 font-medium text-text-dark",children:IV[e]}),t&&(0,e3.jsx)(M7,{asChild:!0,children:(0,e3.jsx)(MZ,{variant:"secondary",children:"Close"})})]})}function IW(e){let t=e.getBoundingBoxCenter(),r=e.getDimensions();return{center:t,size:r,halfSize:{x:r.x/2,y:r.y/2,z:r.z/2}}}function IX({showDialogCloseButton:e=!1}){let{glbUrl:t,isModelLoading:r,object:n,previewUrl:i,state:a,setContainerEl:s,setModelViewerEl:o,usdzUrl:l,layout:c,background:u}=Iw(),[d,h]=(0,e5.useState)(!1),p="model"===c,f="loading"===a||"ready"===a&&r,g="ready"===a,m=(n?.materials?.length??0)>1,A=g&&!p&&!r,v=d&&A,{lines:b,labels:y,hiddenHotspots:x}=function({isVisible:e}){let{glbUrl:t,isModelLoading:r,modelViewerEl:n}=Iw(),[i,a]=(0,e5.useState)([]),[s,o]=(0,e5.useState)([]),[l,c]=(0,e5.useState)(()=>new Set),[u,d]=(0,e5.useState)(null),h=!r;(0,e5.useEffect)(()=>{d(null),a([]),o([]),c(new Set)},[n,t]);let p=(0,e5.useCallback)(()=>{let e;if(!n)return[];let t=(e=IW(n),II.map(({slot:t,sizeAxis:r,offsetMultiplier:n})=>{var i;let a,s=function(e){let t=IM.get(e);if(!t)throw Error(`Missing hotspot config for slot "${e}"`);return t}(t);return{name:t,position:function(e,t,r={}){let{center:n,halfSize:i}=e,[a,s,o]=t.position.split(" ").map(Number),l=r.x??1,c=r.y??1,u=r.z??1;return`${n.x+a*i.x*l} ${n.y+s*i.y*c} ${n.z+o*i.z*u}`}(e,s,n),text:(i=e.size[r],a=Number(i.toFixed(3)),`${Math.round(100*a)} cm`)}}));return t.forEach(e=>{n.updateHotspot({name:e.name,position:e.position})}),t.map(e=>({slot:e.name,text:e.text||"",position:e.position}))},[n]),f=(0,e5.useCallback)(()=>{if(!n)return;let e=[],t=new Set;Ik.forEach(t=>{let r=n.queryHotspot(t.hotspot1),i=n.queryHotspot(t.hotspot2),a=t.dimensionHotspot?n.queryHotspot(t.dimensionHotspot):null;if(r&&i){let t=a&&!a.facingCamera;e.push({x1:r.canvasPosition.x,y1:r.canvasPosition.y,x2:i.canvasPosition.x,y2:i.canvasPosition.y,opacity:+!t})}}),IT.forEach(e=>{let r=n.queryHotspot(e);r&&!r.facingCamera&&t.add(e)}),a(e),c(e=>!function(e,t){if(e.size!==t.size)return!1;for(let r of Array.from(e))if(!t.has(r))return!1;return!0}(e,t)?t:e)},[n]);return(0,e5.useEffect)(()=>{if(!t||!e||!h||!n||u===t)return;let r=IW(n);IC.forEach(e=>{let t=function(e,t){let{center:r,halfSize:n}=e,[i,a,s]=t.position.split(" ").map(Number);return`${r.x+i*n.x} ${r.y+a*n.y} ${r.z+s*n.z}`}(r,e);n.updateHotspot({name:e.slot,position:t})}),o(p()),f(),d(t)},[t,e,h,n,u,p,f]),(0,e5.useEffect)(()=>{if(n&&e&&h&&u===t)return n.addEventListener("camera-change",f),()=>{n.removeEventListener("camera-change",f)}},[n,e,h,u,t,f]),{lines:i,labels:s,hiddenHotspots:l}}({isVisible:v}),w="not-found"===a||"unauthorized"===a||"payment-required"===a?a:null;return w?(0,e3.jsx)("div",{ref:s,className:MK("relative size-full overflow-hidden text-foreground","default"===u&&"bg-background-layout"),children:(0,e3.jsx)(Iq,{variant:w,showDialogCloseButton:e})}):(0,e3.jsxs)("div",{ref:s,className:MK("@container relative size-full overflow-hidden text-foreground","default"===u&&"bg-background-layout"),children:["ready"===a&&!p&&(0,e3.jsx)(IP,{className:"absolute top-0 right-0 left-0 z-2"}),"ready"===a&&(0,e3.jsx)("div",{className:"relative size-full",children:(0,e3.jsxs)("model-viewer",{ref:o,className:"size-full",src:t??void 0,iosSrc:l??void 0,poster:i??void 0,ar:!0,cameraControls:!0,arModes:"webxr scene-viewer quick-look",arScale:"fixed",shadowIntensity:1,interactionPromptThreshold:100,children:[(0,e3.jsx)("div",{slot:"progress-bar"}),(0,e3.jsx)("div",{slot:"ar-button"}),(0,e3.jsx)(IR,{isVisible:v,labels:y,hiddenHotspots:x})]})}),(0,e3.jsx)("div",{"aria-hidden":!f,className:MK("absolute inset-0 z-10 flex items-center justify-center bg-radial from-background-containers to-background-base-2 transition-opacity",f?"pointer-events-auto opacity-100 duration-0":"pointer-events-none opacity-0 duration-300 ease-in-out"),children:(0,e3.jsx)(M9,{variant:"logo"})}),(0,e3.jsx)(IE,{isVisible:v,lines:b}),g&&!p&&(0,e3.jsxs)("div",{className:MK("pointer-events-none absolute inset-x-8 bottom-8 z-2 flex flex-wrap items-end gap-4 @max-xl:inset-x-6 @max-xl:bottom-4 @max-xl:flex-col @max-xl:items-stretch",m?"justify-between":"justify-center"),children:[m&&(0,e3.jsx)("div",{className:"pointer-events-auto min-w-0 flex-1 @max-xl:w-full @max-xl:flex-none @max-xl:self-start",children:(0,e3.jsx)(Ij,{})}),(0,e3.jsxs)("div",{className:"pointer-events-auto flex shrink-0 items-center gap-2 @max-xl:w-full",children:[(0,e3.jsxs)(MZ,{className:"@max-xl:h-9 @max-xl:px-3.5 @max-xl:typo-button-normal @max-xl:[&_svg]:size-5",size:"lg",variant:"secondary",disabled:!A,"aria-label":"Toggle dimensions","aria-pressed":d,onClick:()=>h(e=>!e),children:[d?(0,e3.jsx)(M1,{className:"size-6"}):(0,e3.jsx)(M2,{className:"size-6"}),(0,e3.jsx)("span",{children:"Dimensions"})]}),(0,e3.jsx)(IS,{className:"@max-xl:h-9 @max-xl:w-full @max-xl:flex-1 @max-xl:px-3.5 @max-xl:typo-button-normal",onBeforeActivateAr:()=>h(!1),size:"lg"})]})]})]})}let I$=new ra({defaultOptions:{queries:{gcTime:1/0,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:(e,t)=>{let r=function(e){if(cR(e))return e.response?.status}(t);return(void 0===r||!(r>=400)||!(r<500))&&e<2}}}});function IY({tinuuid:e,apiKey:t,hid:r,layout:n="default",background:i="default",showDialogCloseButton:a=!1}){let s=t.trim();return(0,e3.jsx)(t4,{client:I$,children:(0,e3.jsx)(Ix,{tinuuid:e,apiKey:s,hid:r,layout:n,background:i,children:(0,e3.jsx)(IX,{showDialogCloseButton:a})})})}function IK({tinuuid:e,apiKey:t,hid:r,...n}){let[i,a]=(0,e5.useState)(null);return(0,e3.jsxs)(e3.Fragment,{children:[(0,e9.createPortal)((0,e3.jsx)("style",{children:MX.A}),document.head),i&&(0,e3.jsx)(MW,{root:i,storageKey:"neurodyn-theme",children:(0,e3.jsx)(M8,{...n,children:(0,e3.jsxs)(It,{className:"min-w-full h-svh p-0 rounded-none sm:p-0",portalContainer:i,showCloseButton:!1,onInteractOutside:e=>{e.preventDefault()},children:[(0,e3.jsx)(M7,{asChild:!0,children:(0,e3.jsxs)(MZ,{className:"absolute top-3 right-6 z-20",variant:"secondary",children:["Close",(0,e3.jsx)(at,{})]})}),(0,e3.jsx)(IY,{tinuuid:e,apiKey:t,hid:r,showDialogCloseButton:!0})]})})}),(0,e9.createPortal)((0,e3.jsxs)(tg.div,{style:{display:"block",letterSpacing:"normal",zIndex:0x7fffffff},children:[(0,e3.jsx)("style",{children:MY}),(0,e3.jsx)("div",{ref:a})]}),document.body)]})}function IJ({tinuuid:e,apiKey:t,hid:r,layout:n,background:i,className:a,...s}){let[o,l]=(0,e5.useState)(null);return(0,e3.jsxs)(e3.Fragment,{children:[(0,e9.createPortal)((0,e3.jsx)("style",{children:MX.A}),document.head),(0,e3.jsxs)(tg.div,{className:a,style:{height:"100%",letterSpacing:"normal",width:"100%"},...s,children:[(0,e3.jsx)("style",{children:MY}),(0,e3.jsx)("div",{ref:l,style:{height:"100%",width:"100%"},children:o&&(0,e3.jsx)(MW,{root:o,storageKey:"neurodyn-theme",children:(0,e3.jsx)(IY,{tinuuid:e,apiKey:t,hid:r,layout:n,background:i})})})]})]})}Im({baseURL:"https://api.vizbl.com"});var IZ=i("../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/client.js");let I0=0;class I1{container=null;props=null;root=null;openState=!1;destroy(){this.root?.unmount(),this.root=null,this.container?.remove(),this.container=null,this.props=null,this.openState=!1}open(e){this.props=e,this.openState=!0,this.render()}handleOpenChange=e=>{this.openState=e,this.render()};ensureRoot(){return this.root||(this.container=document.createElement("div"),this.container.id=`neurodyn-model-viewer-dialog-root-${I0++}`,document.body.appendChild(this.container),this.root=(0,IZ.createRoot)(this.container)),this.root}render(){this.props&&this.ensureRoot().render((0,e5.createElement)(IK,{...this.props,onOpenChange:this.handleOpenChange,open:this.openState}))}}function I2(e,t={}){return{tinuuid:void 0!==t.tinuuid?t.tinuuid:e.getAttribute("data-neurodyn-model-viewer-tinuuid"),apiKey:void 0!==t.apiKey?t.apiKey:e.getAttribute("data-neurodyn-model-viewer-api-key"),hid:void 0!==t.hid?t.hid:e.getAttribute("data-neurodyn-model-viewer-hid")}}class I3{renderer=new I1;triggers;props;destroyed=!1;constructor(e,t={}){for(const r of(this.triggers=I5(e),this.props=t,this.triggers))r.addEventListener("click",this.handleClick)}destroy(){if(!this.destroyed){for(let e of(this.destroyed=!0,this.triggers))e.removeEventListener("click",this.handleClick);this.renderer.destroy()}}handleClick=e=>{if(this.destroyed||!(e.currentTarget instanceof Element))return;let t=I2(e.currentTarget,this.props);t.tinuuid&&t.apiKey&&this.renderer.open({apiKey:t.apiKey,hid:t.hid,tinuuid:t.tinuuid})}}function I5(e){return"string"==typeof e?Array.from(document.querySelectorAll(e)):[e]}window.ModelViewer=class{roots=[];destroyed=!1;constructor(e,t={}){for(const r of I5(e)){const e=I2(r,t);if(!e.tinuuid||!e.apiKey)continue;const n=(0,IZ.createRoot)(r);n.render((0,e5.createElement)(IJ,{apiKey:e.apiKey,hid:e.hid,tinuuid:e.tinuuid})),this.roots.push(n)}}destroy(){if(!this.destroyed){for(let e of(this.destroyed=!0,this.roots))e.unmount();this.roots.length=0}}},window.ModelViewerDialog=I3})()})();