@worldresources/wri-design-systems 2.210.0 → 2.211.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +346 -301
- package/dist/index.esm.js +346 -301
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -965,15 +965,28 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
965
965
|
border: ${_e(100)} solid ${Ie("neutral",600)};
|
|
966
966
|
border-radius: ${Be(300)};
|
|
967
967
|
padding: ${Ve(200)};
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
968
|
+
/* Elevation matches the shadow used across the button family
|
|
969
|
+
(Button/styled.ts). No shadow token exists in the theme yet. */
|
|
970
|
+
box-shadow: 0 0.25rem 0.375rem -0.0625rem #0000001a;
|
|
971
|
+
`,bv=e=>{switch(e){case"secondary":return Ie("neutral",400);case"borderless":return"transparent";case"outline":return Ie("primary",900);case"negative":return Ie("error",500);default:return Ie("primary",800)}},vv=(e,t)=>{if(t)return Ie("neutral",500);switch(e){case"secondary":return Ie("neutral",800);case"borderless":return Ie("neutral",900);case"outline":return Ie("primary",800);case"negative":return Ie("accessible","text-on-negative-mids")||Ie("error",900);default:return Ie("accessible","text-on-primary-mids")||Ie("primary",900)}},yv=e=>ke`
|
|
972
|
+
/* Hover on the closed trigger: keep the Button hover background and
|
|
973
|
+
elevation, only emphasize the border. */
|
|
974
|
+
&:hover:not(:disabled):not([data-disabled]):not([data-state='open']) {
|
|
975
|
+
border-color: ${bv(e)};
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/* Open (menu expanded): default background + emphasized border, no
|
|
979
|
+
elevation. The doubled ampersand doubles the class specificity so this
|
|
980
|
+
rule also wins over the Button hover styles while the menu is open. */
|
|
981
|
+
&&[data-state='open']:not(:disabled):not([data-disabled]) {
|
|
982
|
+
background-color: ${(e=>{switch(e){case"secondary":return Ie("neutral",100);case"borderless":return`color-mix(in srgb, ${Ie("primary",500)} 40%, transparent)`;case"outline":return"transparent";case"negative":return Ie("error",100);default:return Ie("primary",500)}})(e)};
|
|
983
|
+
border-color: ${bv(e)};
|
|
984
|
+
box-shadow: none;
|
|
972
985
|
}
|
|
973
|
-
`,
|
|
986
|
+
`,wv=e=>ke`
|
|
974
987
|
font-size: ${ze("small"===e?300:400)};
|
|
975
988
|
line-height: ${He("small"===e?500:600)};
|
|
976
|
-
color: ${Ie("neutral",
|
|
989
|
+
color: ${Ie("neutral",900)};
|
|
977
990
|
padding: ${Ve(100)};
|
|
978
991
|
cursor: pointer;
|
|
979
992
|
|
|
@@ -985,33 +998,33 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
985
998
|
cursor: not-allowed;
|
|
986
999
|
color: ${Ie("neutral",500)};
|
|
987
1000
|
}
|
|
988
|
-
`,
|
|
1001
|
+
`,xv=ke`
|
|
989
1002
|
&:focus-visible {
|
|
990
1003
|
outline-color: ${Ie("primary",700)};
|
|
991
1004
|
}
|
|
992
|
-
`,
|
|
1005
|
+
`,Cv=e=>({padding:"small"===e?`0 ${Ve(200)}`:`0 ${Ve(300)}`}),kv=te.forwardRef(((e,t)=>{const{portalled:n=!0,portalRef:r,...o}=e;return ve(a,{disabled:!n,container:r,children:ve(s.Positioner,{children:ve(s.Content,{css:gv,ref:t,...o})})})})),$v=({variant:e="primary",size:t="default",mainActionLabel:n,mainActionOnClick:r=()=>{},otherActions:o=[],disabled:i,mainActionLeftIcon:a,mainActionRightIcon:l,labels:c,...d})=>{const u=tg("MultiActionButton",c),[h,p]=ae(!1),f=i?u.disabledAriaLabel(n):void 0;return be(m,{css:xv,attached:!0,tabIndex:i?0:void 0,"aria-disabled":i,"aria-label":f,role:"group",children:[ve(ng,{...d,label:n,variant:e,size:t,onClick:r,disabled:i,leftIcon:a,rightIcon:l}),be(s.Root,{onOpenChange:({open:e})=>p(e),positioning:{placement:"bottom-end"},onSelect:({value:e})=>{const t=o.find((t=>t.value===e));t&&!t.disabled&&t.onClick()},children:[ve(s.Trigger,{css:yv(e),"data-group-item":!0,"data-last":!0,asChild:!0,children:ve(ng,{style:Cv(t),"aria-label":u.openOptionsLabel(n),"aria-haspopup":"menu","aria-expanded":h,variant:e,size:t,leftIcon:ve(dg,{"aria-hidden":"true",rotate:h?"180":"0",color:vv(e,i)}),disabled:i})}),ve(kv,{children:o.map((({label:e,value:n,disabled:r})=>ve(s.Item,{css:wv(t),value:n,disabled:r,children:e},n)))})]})]})},Sv=ke`
|
|
993
1006
|
position: relative;
|
|
994
1007
|
width: 100%;
|
|
995
1008
|
padding-left: 1.1875rem;
|
|
996
|
-
`,
|
|
1009
|
+
`,Mv=ke`
|
|
997
1010
|
font-size: ${ze(400)};
|
|
998
1011
|
line-height: ${He(600)};
|
|
999
1012
|
margin-bottom: ${Ve(100)};
|
|
1000
1013
|
color: ${Ie("neutral",900)};
|
|
1001
|
-
`,
|
|
1014
|
+
`,Ev=ke`
|
|
1002
1015
|
width: 0.1875rem;
|
|
1003
1016
|
height: 100%;
|
|
1004
1017
|
background-color: ${Ie("error",900)};
|
|
1005
1018
|
position: absolute;
|
|
1006
1019
|
top: 0;
|
|
1007
1020
|
left: 0;
|
|
1008
|
-
`,
|
|
1021
|
+
`,Tv=ke`
|
|
1009
1022
|
font-size: ${ze(300)};
|
|
1010
1023
|
line-height: ${He(500)};
|
|
1011
1024
|
font-weight: 700;
|
|
1012
1025
|
color: ${Ie("error",900)};
|
|
1013
1026
|
margin-bottom: ${Ve(200)};
|
|
1014
|
-
`,
|
|
1027
|
+
`,Ov=({label:e,error:t,children:n})=>{const r=he(),o=e?`${r}-label`:void 0,i=t?`${r}-error`:void 0;return be("div",{css:Sv,role:"group","aria-labelledby":o,"aria-describedby":i,children:[t?ve("div",{css:Ev}):null,be("div",{children:[e?ve("p",{id:o,css:Mv,children:e}):null,t?ve("p",{id:i,css:Tv,children:t}):null,n]})]})},Lv=ke`
|
|
1015
1028
|
.chakra-checkbox__control {
|
|
1016
1029
|
width: ${Ve(500)};
|
|
1017
1030
|
height: ${Ve(500)};
|
|
@@ -1086,7 +1099,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1086
1099
|
cursor: not-allowed;
|
|
1087
1100
|
}
|
|
1088
1101
|
}
|
|
1089
|
-
`,
|
|
1102
|
+
`,Av=({name:e,value:t,checked:n,defaultChecked:r,disabled:o,indeterminate:i,onCheckedChange:s,children:a,tabIndex:l,...c})=>be(g.Root,{css:Lv,name:e,value:t,checked:i?"indeterminate":n,defaultChecked:r,disabled:o,onCheckedChange:s,gap:a?"0.625rem":"0",...c,children:[ve(g.HiddenInput,{tabIndex:l}),ve(g.Control,{children:ve(i?lg:ag,{})}),ve(g.Label,{children:a})]}),Nv=ke`
|
|
1090
1103
|
width: 15.0625rem;
|
|
1091
1104
|
min-height: 4.375rem;
|
|
1092
1105
|
padding: ${Ve(300)};
|
|
@@ -1127,7 +1140,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1127
1140
|
color: ${Ie("neutral",600)};
|
|
1128
1141
|
cursor: not-allowed;
|
|
1129
1142
|
}
|
|
1130
|
-
`,
|
|
1143
|
+
`,Rv=ke`
|
|
1131
1144
|
width: 100%;
|
|
1132
1145
|
padding: 0;
|
|
1133
1146
|
display: flex;
|
|
@@ -1137,25 +1150,25 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1137
1150
|
&[data-disabled] {
|
|
1138
1151
|
background-color: ${Ie("neutral",100)};
|
|
1139
1152
|
}
|
|
1140
|
-
`,
|
|
1153
|
+
`,Dv=ke`
|
|
1141
1154
|
svg {
|
|
1142
1155
|
height: 2rem;
|
|
1143
1156
|
width: 2rem;
|
|
1144
1157
|
}
|
|
1145
|
-
`,
|
|
1158
|
+
`,Pv=(e,t)=>ke`
|
|
1146
1159
|
font-size: ${ze(400)};
|
|
1147
1160
|
line-height: ${He(600)};
|
|
1148
1161
|
font-weight: 400;
|
|
1149
1162
|
color: ${Ie("neutral",t?600:900)};
|
|
1150
1163
|
text-align: ${"centered"===e?"center":"left"};
|
|
1151
1164
|
display: block;
|
|
1152
|
-
`,
|
|
1165
|
+
`,Iv=(e,t)=>ke`
|
|
1153
1166
|
font-size: ${ze(300)};
|
|
1154
1167
|
line-height: ${He(500)};
|
|
1155
1168
|
font-weight: 400;
|
|
1156
1169
|
color: ${Ie("neutral",t?600:700)};
|
|
1157
1170
|
text-align: ${"centered"===e?"center":"left"};
|
|
1158
|
-
`,
|
|
1171
|
+
`,zv=e=>ke`
|
|
1159
1172
|
position: ${"centered"===e?"absolute":"relative"};
|
|
1160
1173
|
top: 0;
|
|
1161
1174
|
right: 0;
|
|
@@ -1181,20 +1194,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1181
1194
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
1182
1195
|
cursor: not-allowed;
|
|
1183
1196
|
}
|
|
1184
|
-
`,
|
|
1197
|
+
`,Vv=({defaultValue:e,items:t,onValueChange:n})=>ve(b,{defaultValue:e,onValueChange:n,children:ve(p,{alignItems:"flex-start",flexWrap:"wrap",gap:"0.75rem",children:t.map((t=>{return be(v.Root,{css:Nv,defaultChecked:-1!==e?.indexOf(t.value),disabled:t.disabled,value:t.value,children:[ve(v.HiddenInput,{}),be(v.Control,{css:Rv,children:[be(v.Content,{css:(r=t.variant,ke`
|
|
1185
1198
|
width: 100%;
|
|
1186
1199
|
display: flex;
|
|
1187
1200
|
flex-direction: ${"centered"===r?"column":"row"};
|
|
1188
1201
|
align-items: center;
|
|
1189
1202
|
gap: ${Ve(300)};
|
|
1190
|
-
`),children:[ve("div",{css:
|
|
1203
|
+
`),children:[ve("div",{css:Dv,children:t.icon}),be("div",{style:{width:"100%"},children:[ve(v.Label,{css:Pv(t.variant,t.disabled),children:t.label}),t.caption?ve(v.Description,{css:Iv(t.variant,t.disabled),children:t.caption}):null]})]}),ve(v.Indicator,{css:zv(t.variant)})]}),t.children&&"expanded"===t.variant?ve(v.Addon,{css:(n=t.disabled,ke`
|
|
1191
1204
|
width: 100%;
|
|
1192
1205
|
border-color: ${Ie("neutral",300)};
|
|
1193
1206
|
margin-top: ${Ve(300)};
|
|
1194
1207
|
padding: 0;
|
|
1195
1208
|
padding-top: ${Ve(200)};
|
|
1196
1209
|
color: ${n?Ie("neutral",500):"inherit"};
|
|
1197
|
-
`),children:t.children}):null]},`${t.label}-${t.value}`);var n,r}))})}),
|
|
1210
|
+
`),children:t.children}):null]},`${t.label}-${t.value}`);var n,r}))})}),Hv=ke`
|
|
1198
1211
|
width: 100%;
|
|
1199
1212
|
padding: 0;
|
|
1200
1213
|
display: flex;
|
|
@@ -1204,31 +1217,31 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1204
1217
|
&[data-disabled] {
|
|
1205
1218
|
background-color: ${Ie("neutral",100)};
|
|
1206
1219
|
}
|
|
1207
|
-
`,
|
|
1220
|
+
`,Bv=e=>ke`
|
|
1208
1221
|
width: 100%;
|
|
1209
1222
|
display: flex;
|
|
1210
1223
|
flex-direction: ${"centered"===e?"column":"row"};
|
|
1211
1224
|
align-items: center;
|
|
1212
1225
|
gap: ${Ve(300)};
|
|
1213
|
-
`,
|
|
1226
|
+
`,_v=ke`
|
|
1214
1227
|
svg {
|
|
1215
1228
|
height: 2rem;
|
|
1216
1229
|
width: 2rem;
|
|
1217
1230
|
color: ${Ie("neutral",400)};
|
|
1218
1231
|
}
|
|
1219
|
-
`,
|
|
1232
|
+
`,jv=(e,t)=>ke`
|
|
1220
1233
|
font-size: ${ze(400)};
|
|
1221
1234
|
line-height: ${He(600)};
|
|
1222
1235
|
font-weight: 400;
|
|
1223
1236
|
color: ${Ie("neutral",t?600:900)};
|
|
1224
1237
|
text-align: ${"centered"===e?"center":"left"};
|
|
1225
|
-
`,
|
|
1238
|
+
`,Fv=(e,t)=>ke`
|
|
1226
1239
|
font-size: ${ze(300)};
|
|
1227
1240
|
line-height: ${He(500)};
|
|
1228
1241
|
font-weight: 400;
|
|
1229
1242
|
color: ${Ie("neutral",t?600:700)};
|
|
1230
1243
|
text-align: ${"centered"===e?"center":"left"};
|
|
1231
|
-
`,
|
|
1244
|
+
`,qv=e=>ke`
|
|
1232
1245
|
position: ${"centered"===e?"absolute":"relative"};
|
|
1233
1246
|
top: 0;
|
|
1234
1247
|
right: 0;
|
|
@@ -1259,7 +1272,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1259
1272
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
1260
1273
|
cursor: not-allowed;
|
|
1261
1274
|
}
|
|
1262
|
-
`,
|
|
1275
|
+
`,Wv=({defaultValue:e,items:t,onValueChange:n,variant:r,itemWidth:o,hideControl:i})=>ve(y.Root,{defaultValue:e,onValueChange:n,children:ve(p,{alignItems:"flex-start",flexWrap:"wrap",gap:"0.75rem",children:t?.map((e=>{return be(y.Item,{css:(n=o,s=e.selectedColor,a=e.selectedBackgroundColor,ke`
|
|
1263
1276
|
width: ${n||"15.0625rem"};
|
|
1264
1277
|
min-height: 4.375rem;
|
|
1265
1278
|
padding: ${Ve(300)};
|
|
@@ -1318,7 +1331,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1318
1331
|
}
|
|
1319
1332
|
}
|
|
1320
1333
|
}
|
|
1321
|
-
`),value:e.value,disabled:e.disabled,children:[ve(y.ItemHiddenInput,{}),be(y.ItemControl,{css:
|
|
1334
|
+
`),value:e.value,disabled:e.disabled,children:[ve(y.ItemHiddenInput,{}),be(y.ItemControl,{css:Hv,children:[be("div",{css:Bv(r),children:[ve("div",{css:_v,className:"option-card-icon-container",children:e.icon}),be("div",{style:{width:"100%"},children:[ve("p",{css:jv(r,e.disabled),"aria-label":e.label,"aria-disabled":e.disabled,children:e.label}),ve("p",{css:Fv(r,e.disabled),"aria-label":e.caption,"aria-disabled":e.disabled,children:e.caption})]})]}),i?null:ve(y.ItemIndicator,{css:qv(r)})]}),e.children&&"expanded"===r?ve(y.ItemAddon,{css:(t=e.disabled,ke`
|
|
1322
1335
|
width: 100%;
|
|
1323
1336
|
border-top: ${_e(100)} solid
|
|
1324
1337
|
${Ie("neutral",300)};
|
|
@@ -1326,7 +1339,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1326
1339
|
padding: 0;
|
|
1327
1340
|
padding-top: ${Ve(200)};
|
|
1328
1341
|
color: ${t?Ie("neutral",500):"inherit"};
|
|
1329
|
-
`),children:e.children}):null]},`${e.label}-${e.value}`);var t,n,s,a}))})}),
|
|
1342
|
+
`),children:e.children}):null]},`${e.label}-${e.value}`);var t,n,s,a}))})}),Uv=ke`
|
|
1330
1343
|
.ds-radio-item-indicator {
|
|
1331
1344
|
width: ${Ve(500)};
|
|
1332
1345
|
height: ${Ve(500)};
|
|
@@ -1392,30 +1405,30 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1392
1405
|
}
|
|
1393
1406
|
}
|
|
1394
1407
|
}
|
|
1395
|
-
`,
|
|
1408
|
+
`,Kv=ke`
|
|
1396
1409
|
cursor: pointer;
|
|
1397
1410
|
|
|
1398
1411
|
&[data-disabled] {
|
|
1399
1412
|
color: ${Ie("neutral",500)};
|
|
1400
1413
|
cursor: not-allowed;
|
|
1401
1414
|
}
|
|
1402
|
-
`,
|
|
1415
|
+
`,Gv=ke`
|
|
1403
1416
|
margin: 0 !important;
|
|
1404
1417
|
width: ${Ve(500)} !important;
|
|
1405
1418
|
height: ${Ve(500)} !important;
|
|
1406
|
-
`,
|
|
1419
|
+
`,Zv=({children:e,value:t,disabled:n,...r})=>be(w.Item,{css:Uv,value:t,disabled:n,...r,children:[ve(w.ItemHiddenInput,{css:Gv}),ve(w.ItemIndicator,{className:"ds-radio-item-indicator"}),e?ve(w.ItemText,{css:Kv,children:e}):null]}),Jv=({children:e,horizontal:t=!1,name:n,value:r="",onChange:o,customGap:i,...s})=>{let a=t?"1.25rem":"0.5rem";return a=i||a,X(w.Root,{onValueChange:e=>{o&&o(n,e.value||"")},value:r,...s,children:X(p,{gap:a,flexDirection:t?"row":"column",alignItems:"flex-start",flexWrap:"wrap",children:e})})},Xv=ke`
|
|
1407
1420
|
height: fit-content;
|
|
1408
|
-
`,
|
|
1421
|
+
`,Yv=ke`
|
|
1409
1422
|
position: relative;
|
|
1410
1423
|
height: ${He(400)};
|
|
1411
|
-
`,
|
|
1424
|
+
`,Qv=ke`
|
|
1412
1425
|
position: absolute;
|
|
1413
1426
|
top: 0;
|
|
1414
1427
|
font-size: ${ze(200)};
|
|
1415
1428
|
line-height: ${He(400)};
|
|
1416
1429
|
color: ${Ie("neutral",800)};
|
|
1417
1430
|
white-space: nowrap;
|
|
1418
|
-
`,
|
|
1431
|
+
`,ey=e=>ke`
|
|
1419
1432
|
height: ${Ve(500)};
|
|
1420
1433
|
width: ${Ve(500)};
|
|
1421
1434
|
background-color: ${e?Ie("neutral",100):Ie("primary",500)};
|
|
@@ -1473,7 +1486,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1473
1486
|
outline: none;
|
|
1474
1487
|
cursor: not-allowed;
|
|
1475
1488
|
}
|
|
1476
|
-
`,
|
|
1489
|
+
`,ty=ke`
|
|
1477
1490
|
font-size: ${ze(300)};
|
|
1478
1491
|
line-height: ${He(500)};
|
|
1479
1492
|
color: ${Ie("neutral",800)};
|
|
@@ -1492,20 +1505,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1492
1505
|
z-index: 2;
|
|
1493
1506
|
pointer-events: none;
|
|
1494
1507
|
white-space: nowrap;
|
|
1495
|
-
`,
|
|
1508
|
+
`,ny=(e,t)=>ke`
|
|
1496
1509
|
background-color: ${Ie("neutral",300)};
|
|
1497
1510
|
border: none;
|
|
1498
1511
|
box-shadow: none;
|
|
1499
1512
|
${e?.length?`background: linear-gradient(to right, ${e.join(", ")});`:""}
|
|
1500
1513
|
${t?`\n position: relative;\n height: ${Ve(500)};\n border-radius: ${Be(500)};\n border: ${_e(100)} solid ${Ie("neutral",300)};\n overflow: hidden;\n `:""}
|
|
1501
|
-
`,
|
|
1514
|
+
`,ry=e=>ke`
|
|
1502
1515
|
position: absolute;
|
|
1503
1516
|
top: 0;
|
|
1504
1517
|
bottom: 0;
|
|
1505
1518
|
${"start"===e?"left":"right"}: 0;
|
|
1506
1519
|
background-color: ${Ie("neutral",200)};
|
|
1507
1520
|
pointer-events: none;
|
|
1508
|
-
`,
|
|
1521
|
+
`,oy=(e,t)=>ke`
|
|
1509
1522
|
background-color: ${t?"transparent":Ie("primary",500)};
|
|
1510
1523
|
border: ${t?"none":`${_e(100)} solid ${Ie("primary",700)}`};
|
|
1511
1524
|
border-radius: ${e?"0":Be(500)};
|
|
@@ -1518,7 +1531,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1518
1531
|
background-color: ${Ie("neutral",400)};
|
|
1519
1532
|
border: none;
|
|
1520
1533
|
}
|
|
1521
|
-
`,
|
|
1534
|
+
`,iy=(e,t)=>ke`
|
|
1522
1535
|
&[data-state='under-value'] {
|
|
1523
1536
|
.chakra-slider__markerIndicator {
|
|
1524
1537
|
background-color: ${Ie("neutral",e?500:200)};
|
|
@@ -1544,7 +1557,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1544
1557
|
}
|
|
1545
1558
|
|
|
1546
1559
|
${t?`\n --translate-y: -24% !important;\n\n .chakra-slider__markerIndicator {\n height: 1rem;\n width: 0.25rem;\n background-color: ${Ie("primary",700)} !important;\n }\n\n &[data-disabled] {\n .chakra-slider__markerIndicator {\n background-color: ${Ie("neutral",400)} !important;\n }\n }\n `:""};
|
|
1547
|
-
`,
|
|
1560
|
+
`,sy=e=>{const{value:t,hasGradient:n}=e;return ve(C,{each:t,children:(e,t)=>be(x.Thumb,{css:ey(n),index:t,children:[ve("div",{css:ty,className:"ds-slider-value-preview",children:e}),ve(x.HiddenInput,{})]},t)})},ay=e=>{const{value:t,min:n,max:r}=e;if(!t?.length)return null;const o=r-n||1,i=(t[0]-n)/o*100,s=(t[t.length-1]-n)/o*100;return be(ye,{children:[i>0&&ve("div",{css:ry("start"),style:{width:`${i}%`}}),s<100&&ve("div",{css:ry("end"),style:{width:100-s+"%"}})]})},ly=te.forwardRef(((e,t)=>{const{marks:n,isCentred:r}=e;return n?.length?ve(x.MarkerGroup,{ref:t,children:n.map(((e,t)=>{const n="number"==typeof e?e:e.value,o=r&&1===t;return ve(x.Marker,{css:iy(r,o),value:n,children:ve(x.MarkerIndicator,{})},n)}))}):null})),cy=e=>{const{marks:t,min:n,max:r}=e,o=t?.filter((e=>void 0!==e.label&&null!==e.label));if(!o?.length)return null;const i=r-n||1;return ve("div",{css:Yv,children:o.map((e=>{let t="-50%";return e.value===n?t="0":e.value===r&&(t="-100%"),ve("span",{css:Qv,style:{left:(e.value-n)/i*100+"%",transform:`translateX(${t})`},children:e.label},e.value)}))})},dy=te.forwardRef(((e,t)=>{const{marks:n,onValueChange:r,isCentred:o,value:i,colors:s,...a}=e,[l,c]=ae(i||[0]),d=!!s?.length;ce((()=>{c(i||[0])}),[i]);const u=a.min??0,h=a.max??100;let p=n?.map((e=>"number"==typeof e?{value:e,label:void 0}:e));o&&(p=[u,(u+h)/2,h].map((e=>({value:e,label:void 0}))));const f=!!p?.some((e=>e.label));return be(x.Root,{css:Xv,ref:t,thumbAlignment:"center",onValueChange:e=>{c(e.value),r&&r(e)},origin:o?"center":"start",value:l,...a,children:[ve(cy,{marks:p,min:u,max:h}),be(x.Control,{"data-has-mark-label":f||void 0,children:[be(x.Track,{css:ny(s,d),children:[d&&ve(ay,{value:l,min:u,max:h}),ve(x.Range,{css:oy(o,d)})]}),ve(ly,{marks:p,isCentred:o}),ve(sy,{value:l,hasGradient:d})]})]})})),uy=ke`
|
|
1548
1561
|
--switch-height: 1.5rem;
|
|
1549
1562
|
--switch-width: 2.5rem;
|
|
1550
1563
|
|
|
@@ -1644,26 +1657,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1644
1657
|
cursor: not-allowed;
|
|
1645
1658
|
}
|
|
1646
1659
|
}
|
|
1647
|
-
`,
|
|
1660
|
+
`,hy=({name:e,defaultChecked:t=!1,onChange:n,disabled:r=!1,isLabelOnLeft:o=!1,children:i,labels:s,...a})=>{const l=tg("Switch",s);return ve("div",{style:{display:"flex",alignItems:"center"},children:be(k.Root,{css:uy,id:e,name:e,"aria-label":a["aria-label"]||l.defaultAriaLabel(e),defaultChecked:t,onCheckedChange:({checked:t})=>{n&&n(e,t)},disabled:r,...a,children:[o&&null!=i?ve(k.Label,{children:i}):null,ve(k.HiddenInput,{style:{width:"2.625rem",height:"1.625rem"}}),ve("div",{className:"chakra-switch__control-container",children:ve(k.Control,{children:ve(k.Thumb,{children:ve(k.ThumbIndicator,{display:"flex",children:ve(ag,{})})})})}),o||null==i?null:ve(k.Label,{children:i})]})})},py=e=>ke`
|
|
1648
1661
|
display: grid;
|
|
1649
1662
|
grid-template-rows: ${e?"1fr":"0fr"};
|
|
1650
1663
|
opacity: ${e?1:0};
|
|
1651
1664
|
transition:
|
|
1652
1665
|
grid-template-rows 300ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
1653
1666
|
opacity 200ms ease;
|
|
1654
|
-
`,
|
|
1667
|
+
`,fy=ke`
|
|
1655
1668
|
overflow: hidden;
|
|
1656
1669
|
min-height: 0;
|
|
1657
|
-
`,
|
|
1670
|
+
`,my=e=>ke`
|
|
1658
1671
|
display: flex;
|
|
1659
1672
|
flex-direction: ${e?"row":"column"};
|
|
1660
1673
|
flex-wrap: wrap;
|
|
1661
1674
|
gap: ${Ve(e?500:300)};
|
|
1662
1675
|
padding: ${Ve(100)};
|
|
1663
|
-
`,
|
|
1676
|
+
`,gy=ke`
|
|
1664
1677
|
color: ${Ie("neutral",700)};
|
|
1665
1678
|
margin-left: ${Ve(100)};
|
|
1666
|
-
`,
|
|
1679
|
+
`,by=ke`
|
|
1667
1680
|
color: ${Ie("neutral",700)};
|
|
1668
1681
|
display: flex;
|
|
1669
1682
|
align-items: center;
|
|
@@ -1677,18 +1690,18 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1677
1690
|
display: inline-flex;
|
|
1678
1691
|
transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
1679
1692
|
}
|
|
1680
|
-
`,
|
|
1693
|
+
`,vy=e=>ke`
|
|
1681
1694
|
transform: rotate(${e?"180deg":"0deg"});
|
|
1682
|
-
`,
|
|
1695
|
+
`,yy=ke`
|
|
1683
1696
|
display: flex;
|
|
1684
1697
|
align-items: center;
|
|
1685
1698
|
justify-content: space-between;
|
|
1686
1699
|
width: 100%;
|
|
1687
|
-
`,
|
|
1700
|
+
`,wy=({label:e,caption:t,checkboxes:n,defaultValues:r,onCheckedChange:o,errorMessage:i,horizontal:s,required:a,hideCheckedCounter:l=!1,hideExpandToggle:c=!1,labels:d})=>{const u=tg("CheckboxList",d),h=Array.isArray(r)?r:[],p=oe((()=>new Set(h)),[h]),[f,m]=ae((()=>n.filter((e=>e.name)).reduce(((e,t)=>{const n=t.name;return e[n]="boolean"==typeof t.checked?t.checked:p.has(n),e}),{}))),[g,b]=ae(!0);ce((()=>{m((e=>{const t=n.filter((e=>e.name)).reduce(((t,n)=>{const r=n.name;return t[r]="boolean"==typeof n.checked?n.checked:e[r]??p.has(r),t}),{});return Object.keys(e).length===Object.keys(t).length&&Object.entries(t).every((([t,n])=>e[t]===n))?e:t}))}),[n,p]);const v="string"!=typeof e,y=n.filter((e=>e.name)).reduce(((e,t)=>{const n=t.name;return e[n]="boolean"==typeof t.checked?t.checked:!!f[n],e}),{}),w=n.length>0&&n.every((e=>e.name&&y[e.name])),x=n.some((e=>e.name&&y[e.name]))&&!w,C=n.length,k=`${n.filter((e=>e?.name&&y[e.name])).length} / ${C}`,$=t?`${t}.`:"",S=a?u.requiredLabel:u.optionalLabel,M=i?`${u.errorPrefix} ${i}.`:"",E=`${v?e.label:e}. ${$} ${S} ${M} `,T="string"==typeof e?e:be("div",{css:yy,children:[be(Av,{checked:w,indeterminate:x,onCheckedChange:e=>(e=>{const t=n.filter((e=>void 0!==e.name)).reduce(((t,n)=>(t[n.name]=e,t)),{});m(t),o?.(t)})(!!e.checked),children:[e.label," ",!l&&ve("span",{"aria-hidden":"true",css:gy,children:k})]}),!c&&be("button",{type:"button",onClick:()=>b((e=>!e)),"aria-expanded":g,"aria-controls":"checkbox-list",css:by,children:[g?u.hideLabel:u.expandLabel,ve("span",{"aria-hidden":"true",css:vy(g),children:ve(dg,{})})]})]});return ve(kb,{label:T,caption:t,errorMessage:i,required:"string"==typeof e&&a,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",labels:{requiredSymbolLabel:u.requiredSymbolLabel},containerProps:{"aria-label":E},children:ve("div",{id:"checkbox-list",css:py(g),children:ve("div",{css:fy,children:ve("div",{css:my(s),children:n.map((e=>{const{onCheckedChange:t,...n}=e;return ve(Av,{ms:v&&!s?"6":"",css:{},checked:!!e?.name&&!!y[e.name],onCheckedChange:({checked:n})=>{((e,t)=>{const n={...f};t&&(n[t]=e,m(n)),o&&o(n)})(n,e.name),t?.({checked:!!n})},...n},e.name)}))})})})})},xy=ke`
|
|
1688
1701
|
width: 100%;
|
|
1689
1702
|
max-width: 23.125rem;
|
|
1690
1703
|
position: relative;
|
|
1691
|
-
`,
|
|
1704
|
+
`,Cy=(e,t)=>ke`
|
|
1692
1705
|
width: 100%;
|
|
1693
1706
|
|
|
1694
1707
|
.ds-text-input-container {
|
|
@@ -1723,7 +1736,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1723
1736
|
padding: 0 ${Ve(100)};
|
|
1724
1737
|
}
|
|
1725
1738
|
}
|
|
1726
|
-
`,
|
|
1739
|
+
`,ky=ee.forwardRef(((e,t)=>{const{children:n,...r}=e,{"aria-label":o,...i}=r;return Y($.Control,{...i,children:[X($.Trigger,{ref:t,"aria-label":o,focusVisibleRing:"none",children:n}),X($.IndicatorGroup,{children:X($.Indicator,{children:X(dg,{})})})]})})),$y=ee.forwardRef(((e,t)=>{const{onKeyDown:n,onPointerMove:r,...o}=e;return X(a,{children:X($.Positioner,{children:X($.Content,{...o,ref:t,onKeyDown:e=>{e.currentTarget.dataset.navSource="keyboard",n?.(e)},onPointerMove:e=>{e.currentTarget.dataset.navSource="pointer",r?.(e)}})})})})),Sy=ee.forwardRef(((e,t)=>{const{item:n,children:r,...o}=e;return X($.Item,{item:n,...o,ref:t,children:r},n.value)})),My=ee.forwardRef(((e,t)=>{const{children:n,...r}=e;return X($.ValueText,{...r,ref:t,children:X($.Context,{children:t=>{const r=t.selectedItems;return 0===r.length?e.placeholder:n?n(r):1===r.length?t.collection.stringifyItem(r[0]):`${r.length} selected`}})})})),Ey=ee.forwardRef(((e,t)=>X($.Root,{...e,ref:t,positioning:{sameWidth:!0,...e.positioning},children:e.asChild?e.children:Y(Q,{children:[X($.HiddenSelect,{}),e.children]})})));ee.forwardRef(((e,t)=>{const{children:n,label:r,...o}=e;return Y($.ItemGroup,{...o,ref:t,children:[X($.ItemGroupLabel,{children:r}),n]})})),$.Label,$.ItemText;const Ty=(e,t)=>t?Ie("error",900):Ie("neutral",e?700:400),Oy=(e,t,n,r)=>ke`
|
|
1727
1740
|
border-radius: ${Be(300)};
|
|
1728
1741
|
overflow: visible;
|
|
1729
1742
|
|
|
@@ -1736,7 +1749,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1736
1749
|
border-radius: ${Be(300)};
|
|
1737
1750
|
padding: ${Ve(50)} ${Ve(200)};
|
|
1738
1751
|
border: ${_e(100)} solid
|
|
1739
|
-
${
|
|
1752
|
+
${Ty(t,n)};
|
|
1740
1753
|
box-shadow: 0 0.0625rem 0.125rem 0 #0000000d;
|
|
1741
1754
|
cursor: pointer;
|
|
1742
1755
|
background-color: ${Ie("neutral",100)};
|
|
@@ -1761,7 +1774,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1761
1774
|
&[data-placement^='top'] {
|
|
1762
1775
|
border-bottom-left-radius: ${Be(300)};
|
|
1763
1776
|
border-bottom-right-radius: ${Be(300)};
|
|
1764
|
-
border-bottom-color: ${
|
|
1777
|
+
border-bottom-color: ${Ty(t,n)};
|
|
1765
1778
|
|
|
1766
1779
|
border-top-left-radius: 0;
|
|
1767
1780
|
border-top-right-radius: 0;
|
|
@@ -1796,14 +1809,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1796
1809
|
}
|
|
1797
1810
|
}
|
|
1798
1811
|
}
|
|
1799
|
-
`,
|
|
1812
|
+
`,Ly=(e,t)=>ke`
|
|
1800
1813
|
margin-top: calc(${Ve(200)} * -1);
|
|
1801
1814
|
border-radius: ${Be(300)};
|
|
1802
1815
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
1803
1816
|
border-top-left-radius: 0;
|
|
1804
1817
|
border-top-right-radius: 0;
|
|
1805
1818
|
border-top: ${_e(100)} solid
|
|
1806
|
-
${
|
|
1819
|
+
${Ty(e,t)};
|
|
1807
1820
|
box-shadow:
|
|
1808
1821
|
0 0.25rem 0.375rem -0.25rem #0000001a,
|
|
1809
1822
|
0 0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
@@ -1818,12 +1831,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1818
1831
|
border-bottom-left-radius: 0;
|
|
1819
1832
|
border-bottom-right-radius: 0;
|
|
1820
1833
|
border-bottom: ${_e(100)} solid
|
|
1821
|
-
${
|
|
1834
|
+
${Ty(e,t)};
|
|
1822
1835
|
box-shadow:
|
|
1823
1836
|
0 -0.25rem 0.375rem -0.25rem #0000001a,
|
|
1824
1837
|
0 -0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
1825
1838
|
}
|
|
1826
|
-
`,
|
|
1839
|
+
`,Ay=e=>ke`
|
|
1827
1840
|
align-items: flex-start;
|
|
1828
1841
|
&[data-highlighted] {
|
|
1829
1842
|
background-color: ${Hm(20)};
|
|
@@ -1845,7 +1858,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1845
1858
|
&:active {
|
|
1846
1859
|
background-color: ${Hm(40)};
|
|
1847
1860
|
}
|
|
1848
|
-
`,
|
|
1861
|
+
`,Ny=(e,t)=>ke`
|
|
1849
1862
|
font-size: ${ze("small"===e?300:400)};
|
|
1850
1863
|
line-height: ${He("small"===e?500:600)};
|
|
1851
1864
|
color: ${Ie("neutral",800)};
|
|
@@ -1853,7 +1866,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1853
1866
|
margin: 0;
|
|
1854
1867
|
|
|
1855
1868
|
${t?`color: ${Ie("neutral",600)} !important;`:""}
|
|
1856
|
-
`,
|
|
1869
|
+
`,Ry=(e,t)=>ke`
|
|
1857
1870
|
font-size: ${ze("small"===e?300:400)};
|
|
1858
1871
|
line-height: ${He("small"===e?500:600)};
|
|
1859
1872
|
color: ${Ie("neutral",700)};
|
|
@@ -1861,7 +1874,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1861
1874
|
margin: 0;
|
|
1862
1875
|
|
|
1863
1876
|
${t?`color: ${Ie("neutral",600)} !important;`:""}
|
|
1864
|
-
`,
|
|
1877
|
+
`,Dy=e=>ke`
|
|
1865
1878
|
max-width: 100%;
|
|
1866
1879
|
display: flex;
|
|
1867
1880
|
justify-content: center;
|
|
@@ -1934,28 +1947,28 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1934
1947
|
background-color: ${Ie("neutral",300)};
|
|
1935
1948
|
color: ${Ie("neutral",600)};
|
|
1936
1949
|
}
|
|
1937
|
-
`,
|
|
1950
|
+
`,Py=ke`
|
|
1938
1951
|
background-color: ${Ie("neutral",100)};
|
|
1939
1952
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
1940
|
-
`,
|
|
1953
|
+
`,Iy=ke`
|
|
1941
1954
|
background-color: ${Ie("neutral",200)};
|
|
1942
1955
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
1943
|
-
`,
|
|
1956
|
+
`,zy=ke`
|
|
1944
1957
|
background-color: ${Ie("success",100)};
|
|
1945
1958
|
border: ${_e(100)} solid ${Ie("success",300)};
|
|
1946
1959
|
color: ${Ie("success",900)};
|
|
1947
|
-
`,
|
|
1960
|
+
`,Vy=ke`
|
|
1948
1961
|
background-color: ${Ie("warning",100)};
|
|
1949
1962
|
border: ${_e(100)} solid ${Ie("warning",300)};
|
|
1950
1963
|
color: ${Ie("warning",900)};
|
|
1951
|
-
`,
|
|
1964
|
+
`,Hy=ke`
|
|
1952
1965
|
background-color: ${Ie("error",100)};
|
|
1953
1966
|
border: ${_e(100)} solid ${Ie("error",300)};
|
|
1954
1967
|
color: ${Ie("error",900)};
|
|
1955
|
-
`,
|
|
1968
|
+
`,By=({label:e,size:t="default",variant:n,disabled:r,icon:o,onClose:i,closable:s,labels:a,...l})=>{const c=tg("Tag",a);let d=Py;return"info-grey"===n?d=Iy:"success"===n?d=zy:"warning"===n?d=Vy:"error"===n&&(d=Hy),be(S.Root,{css:[Dy(t),d],"data-disabled":r,...l,children:[o?ve(S.StartElement,{"aria-hidden":"true",children:o}):null,ve(S.Label,{"aria-label":e,children:e}),s&&!r&&"small"!==t?ve(S.EndElement,{children:ve("div",{className:"chakra-tag__closeTrigger",role:"button",tabIndex:0,onClick:i,onKeyDown:e=>{!i||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i())},"aria-label":c.closeButtonAriaLabel(e),children:ve(pg,{})})}):null]})},_y=({placeholder:e,size:t,disabled:n})=>ve(My,{placeholder:e,children:e=>{const{label:r,caption:o}=e[0];return be(p,{flexDirection:"column",alignItems:"flex-start",children:[ve("p",{css:Ny(t,n),children:r}),o?ve("p",{css:Ry(t,n),children:o}):null]})}}),jy=({placeholder:e,removeItem:t,disabled:n})=>ve(My,{placeholder:e,children:e=>e.map((e=>ve(p,{flexDirection:"row",alignItems:"flex-start",children:ve(By,{label:e.label,variant:"info-grey",disabled:n,onClose:()=>t(e.value),closable:!0},e.value)},e.value)))}),Fy=({label:e,caption:t,placeholder:n="",items:o,size:i="default",required:s,disabled:a,onChange:l,errorMessage:c,multiple:d,labels:u,value:h,defaultValue:p,...f})=>{const m=tg("Select",u),[g,b]=ae(p||[]),v=void 0!==h,y=v?h:g,w=(e=>M({items:e}))(o),x=e=>{v||b(e),l&&l(e)},C=`${e||m.defaultAriaLabel}${s?m.requiredSuffix:""}${t?` ${t}.`:""}${a?m.disabledSuffix:""}`.trim(),k=y.length>0;return ve(kb,{className:"ds-select-input-container",label:e,caption:t,errorMessage:c,required:s,disabled:a,size:i,showOptionalLabel:!1,semantics:"group",containerProps:{tabIndex:a?0:void 0,"aria-disabled":a,"aria-label":a?C:void 0},children:be(Ey,{css:{},collection:w,disabled:a,required:s,multiple:d,"aria-label":f["aria-label"]||e,value:y,onValueChange:e=>x(e.value),...f,children:[ve(ky,{css:Oy(i,k,!!c,d),"aria-label":f["aria-label"]||e||m.defaultAriaLabel,children:d?ve(jy,{placeholder:n,disabled:a,removeItem:e=>{const t=y.filter((t=>t!==e));x(t)}}):ve(_y,{placeholder:n,size:i,disabled:a})}),ve($y,{css:Ly(k,!!c),children:w.items.map((e=>be(Sy,{css:Ay(d),item:e,children:[be(r,{children:[ve("p",{css:Ny(i),children:e.label}),ve("p",{css:Ry(i),children:e.caption})]}),d?ve(Av,{checked:y.some((t=>t===e.value)),"aria-label":`Select ${e.label}`,tabIndex:-1}):null]},e.value)))})]})})},qy=({label:e,caption:t,errorMessage:n,units:r,unitsPosition:o="end",defaultUnit:i="",defaultValue:s="",onChange:a,required:l,disabled:c})=>{const[d,u]=ae(s),[h,p]=ae(i?[i]:[r[0].value]),f=(e,t)=>{a&&a("end"===o?""+(t?`${d} ${e}`:`${e} ${h}`):""+(t?`${e} ${d}`:`${h} ${e}`))};return ve("div",{css:xy,children:ve(kb,{label:e,caption:t,errorMessage:n,required:l,disabled:c,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",children:be(m,{css:Cy(!!n,o),attached:!0,children:["start"===o?ve(Fy,{placeholder:"","aria-label":`${e} unit`,value:h,items:r,disabled:c,onChange:e=>{p(e),f(e?.[0],!0)}}):null,ve(Nb,{type:"number","aria-label":`${e} value`,value:d,disabled:c,noMarginBottom:!0,onChange:e=>{u(e.target.value),f(e.target.value)}}),"end"===o?ve(Fy,{placeholder:"","aria-label":`${e} unit`,value:h,items:r,disabled:c,onChange:e=>{p(e),f(e?.[0],!0)}}):null]})})})},Wy=ke`
|
|
1956
1969
|
width: 100%;
|
|
1957
1970
|
max-width: 30.375rem;
|
|
1958
|
-
`,
|
|
1971
|
+
`,Uy=ke`
|
|
1959
1972
|
display: flex;
|
|
1960
1973
|
align-items: center;
|
|
1961
1974
|
justify-content: space-between;
|
|
@@ -1972,11 +1985,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1972
1985
|
button {
|
|
1973
1986
|
min-width: 6.125rem;
|
|
1974
1987
|
}
|
|
1975
|
-
`,
|
|
1988
|
+
`,Ky=ke`
|
|
1976
1989
|
display: flex;
|
|
1977
1990
|
flex-direction: column;
|
|
1978
1991
|
gap: ${Ve(200)};
|
|
1979
|
-
`,
|
|
1992
|
+
`,Gy=e=>ke`
|
|
1980
1993
|
height: ${Ve(200)};
|
|
1981
1994
|
width: 100%;
|
|
1982
1995
|
background-color: ${Ie("neutral",300)};
|
|
@@ -1989,7 +2002,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1989
2002
|
background-color: ${Ie("medium"===e?"warning":"strong"===e||"very-strong"===e?"success":"error",900)};
|
|
1990
2003
|
border-radius: ${Be(500)};
|
|
1991
2004
|
}
|
|
1992
|
-
`,
|
|
2005
|
+
`,Zy=e=>ke`
|
|
1993
2006
|
display: flex;
|
|
1994
2007
|
align-items: center;
|
|
1995
2008
|
gap: ${Ve(100)};
|
|
@@ -2010,7 +2023,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2010
2023
|
p {
|
|
2011
2024
|
margin: 0;
|
|
2012
2025
|
}
|
|
2013
|
-
`,
|
|
2026
|
+
`,Jy=({label:e,caption:t,required:n,disabledRules:r,onChange:o,minLength:i=8,hideValidations:s,labels:a})=>{const l=tg("Password",a),[c,d]=ae(!1),[u,h]=ae(""),[p,f]=ae({strength:"very-weak",length:!1,uppercase:!1,lowercase:!1,numbers:!1,specialCharacters:!1}),m={"very-weak":l.strengthVeryWeak,weak:l.strengthWeak,medium:l.strengthMedium,strong:l.strengthStrong,"very-strong":l.strengthVeryStrong};return ve("div",{css:Wy,children:be(kb,{label:e,caption:t,required:n,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",children:[be("div",{css:Uy,children:[ve(Nb,{type:c?"text":"password","aria-label":e,value:u,"aria-describedby":"password-guidelines",onChange:e=>(e=>{const t={...p};let n=0,r=!1;t.length=e.length>=i,n+=e.length>=i?1:0,r=/[A-Z]/.test(e),n+=r?1:0,t.uppercase=r,r=/[a-z]/.test(e),n+=r?1:0,t.lowercase=r,r=/[0-9]/.test(e),n+=r?1:0,t.numbers=r,r=/[-'/`~!¡#*$@_%+=.,^&(){}[\]|;:“‘"<>?\\]/.test(e),n+=r?1:0,t.specialCharacters=r,t.strength="very-weak",e.length>=4&&n>=2&&(t.strength="weak"),e.length>=6&&n>=3&&(t.strength="medium"),e.length>=i&&n>=4&&(t.strength="strong"),e.length>=i+2&&n>=5&&(t.strength="very-strong"),h(e),f(t),o&&o({...t,password:e})})(e.target.value),noMarginBottom:!0}),ve(ng,{label:c?l.hideLabel:l.showLabel,variant:"secondary",leftIcon:ve(c?gg:mg,{}),"aria-label":c?l.hidePasswordLabel:l.showPasswordLabel,onClick:()=>d(!c),type:"button"})]}),u&&!s?be("div",{id:"password-guidelines",css:Ky,"aria-live":"polite",children:[be("p",{css:(g=p.strength,ke`
|
|
2014
2027
|
font-size: ${ze(400)};
|
|
2015
2028
|
line-height: ${He(600)};
|
|
2016
2029
|
font-weight: 400;
|
|
@@ -2022,7 +2035,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2022
2035
|
font-weight: 700;
|
|
2023
2036
|
color: ${Ie("medium"===g?"warning":"strong"===g||"very-strong"===g?"success":"error",900)};
|
|
2024
2037
|
}
|
|
2025
|
-
`),"aria-live":"polite",role:"status",children:[l.strengthPrefix," ",ve("span",{children:m[p.strength]})]}),ve("div",{css:
|
|
2038
|
+
`),"aria-live":"polite",role:"status",children:[l.strengthPrefix," ",ve("span",{children:m[p.strength]})]}),ve("div",{css:Gy(p.strength),children:ve("div",{})}),be("div",{css:Zy(p.length),"aria-label":`${l.minLengthRule(i)}. ${p.length?l.requirementMet:l.requirementNotMet}`,children:[ve("div",{children:p.length?ve(ag,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):ve(pg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.minLengthRule(i)})]}),r?.uppercase?null:be("div",{css:Zy(p.uppercase),"aria-label":`${l.uppercaseRule}. ${p.uppercase?l.requirementMet:l.requirementNotMet}`,children:[ve("div",{children:p.uppercase?ve(ag,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):ve(pg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.uppercaseRule})]}),r?.lowercase?null:be("div",{css:Zy(p.lowercase),"aria-label":`${l.lowercaseRule}. ${p.lowercase?l.requirementMet:l.requirementNotMet}`,children:[ve("div",{children:p.lowercase?ve(ag,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):ve(pg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.lowercaseRule})]}),r?.numbers?null:be("div",{css:Zy(p.numbers),"aria-label":`${l.numberRule}. ${p.numbers?l.requirementMet:l.requirementNotMet}`,children:[ve("div",{children:p.numbers?ve(ag,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):ve(pg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.numberRule})]}),r?.specialCharacters?null:be("div",{css:Zy(p.specialCharacters),"aria-label":`${l.specialCharRule}. ${p.specialCharacters?l.requirementMet:l.requirementNotMet}`,children:[ve("div",{children:p.specialCharacters?ve(ag,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):ve(pg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.specialCharRule})]})]}):null]})});var g},Xy=ke`
|
|
2026
2039
|
height: 100%;
|
|
2027
2040
|
min-height: 3rem;
|
|
2028
2041
|
width: 100%;
|
|
@@ -2031,7 +2044,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2031
2044
|
border-radius: ${Be(300)};
|
|
2032
2045
|
background-color: ${Ie("neutral",100)};
|
|
2033
2046
|
padding: ${Ve(300)};
|
|
2034
|
-
`,
|
|
2047
|
+
`,Yy=({label:e,caption:t,name:n,radios:r,defaultValue:o,onCheckedChange:i,errorMessage:s,horizontal:a,variant:l="default",required:c,labels:d})=>{const u=tg("RadioList",d),h=`${e}. ${t?`${t}.`:""} ${c?u.requiredLabel:u.optionalLabel} ${s?`${u.errorPrefix} ${s}.`:""} `;return ve(kb,{label:e,caption:t,errorMessage:s,required:c,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",labels:{requiredSymbolLabel:u.requiredSymbolLabel},containerProps:{"aria-roledescription":"group","aria-label":h},children:ve(Jv,{name:n,value:o,onChange:i,horizontal:a&&"card"!==l,children:r.map((e=>ve(Zv,{css:"card"===l?Xy:{},...e},e.value)))})})},Qy=ke`
|
|
2035
2048
|
display: flex;
|
|
2036
2049
|
align-items: center;
|
|
2037
2050
|
gap: ${Ve(300)};
|
|
@@ -2054,19 +2067,19 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2054
2067
|
.chakra-slider__root {
|
|
2055
2068
|
width: 100%;
|
|
2056
2069
|
}
|
|
2057
|
-
`,
|
|
2070
|
+
`,ew=({label:e,caption:t,size:n="default",sliderItem:r,required:o,onChange:i})=>{const[s,a]=ae(r.value||[]),l=(e,t)=>{const n=e.target.value,o=[...s];let i=n?parseInt(n,10):n;const l=r.min||0,c=r.max||100;i=Number.isNaN(i)?l:i,i=i<l?l:i,i=i>c?c:i,o[t]=i,a(o)},c=(e,t)=>{const n=e.target.value||"0",o=[...s];let l=parseInt(n,10);const c=r.min||0,d=r.max||100;if(l=Number.isNaN(l)?c:l,l=l<c?c:l,l=l>d?d:l,2===s?.length){l=Number.isNaN(l)?c:l;const e=s[0],n=s[1];0===t?(l=l<c?c:l,l=l>n?n:l):1===t&&(l=l<e?e:l,l=l>d?d:l)}o[t]=l,a(o),i&&i(o)};return ve(kb,{label:e,caption:t,required:o,size:n,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",children:be("div",{css:Qy,children:[r.step&&r.marks?ve(Fy,{items:r.marks.map((e=>{const t="number"==typeof e?e:e.value;return{label:`${"number"==typeof e?e:e.label}`,value:`${t}`}})),placeholder:"",style:{width:"5.625rem"},value:[`${s?.[0]}`],onChange:e=>{const t=e.map((e=>parseInt(e,10)));a(t),i&&i(t)}}):ve(Nb,{"aria-label":e,min:r.min,max:r.max,value:s?.[0],type:"number",onChange:e=>l(e,0),onBlur:e=>c(e,0),className:"ds-opacity-control-text-input",onClick:e=>e.target.select(),noMarginBottom:!0}),ve(dy,{css:{},...r,value:s,"aria-label":2===s?.length?[`${e} minimum`,`${e} maximum`]:[e],onValueChangeEnd:e=>{a(e.value),i&&i(e.value)}}),2===s?.length?ve(Nb,{"aria-label":e,min:r.min,max:r.max,value:s?.[1],type:"number",onChange:e=>l(e,1),onBlur:e=>c(e,1),className:"ds-opacity-control-text-input",onClick:e=>e.target.select(),noMarginBottom:!0}):null]})})},tw=ke`
|
|
2058
2071
|
color: ${Ie("neutral",600)};
|
|
2059
2072
|
font-size: ${ze(200)};
|
|
2060
2073
|
font-weight: 400;
|
|
2061
2074
|
line-height: ${He(400)};
|
|
2062
2075
|
margin: 0;
|
|
2063
|
-
`,
|
|
2076
|
+
`,nw=ke`
|
|
2064
2077
|
color: ${Ie("error",900)};
|
|
2065
2078
|
font-size: ${ze(300)};
|
|
2066
2079
|
font-weight: 700;
|
|
2067
2080
|
line-height: ${He(500)};
|
|
2068
2081
|
margin: 0;
|
|
2069
|
-
`,
|
|
2082
|
+
`,rw=(e,t)=>ke`
|
|
2070
2083
|
height: 6.5rem;
|
|
2071
2084
|
width: 100%;
|
|
2072
2085
|
border-radius: ${Be(300)};
|
|
@@ -2106,20 +2119,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2106
2119
|
}
|
|
2107
2120
|
|
|
2108
2121
|
${t?`\n border: ${_e(100)} solid ${Ie("neutral",700)};\n `:""}
|
|
2109
|
-
`,
|
|
2122
|
+
`,ow=({label:e,caption:t,placeholder:n,errorMessage:r,required:o,disabled:i,size:s="default",showOptionalLabel:a=!0,defaultValue:l="",onChange:d,onFocus:u,onBlur:h,minLength:p,maxLength:f,labels:m,value:g,...b})=>{const v=tg("Textarea",m),[y,w]=ae(l),[x,C]=ae(!1),[k,$]=ae(!1),[S,M]=ae(""),T=void 0!==g,O=T?String(g??""):y,L=he(),A=he(),N=he();ce((()=>{const{length:e}=l;p&&e<p&&e>0?(C(e<p),$(!1),M(v.enterAtLeastChars(p-e))):p&&0===e&&M(v.minChars(p)),f&&e>0?(C(!1),$(e>f),M(v.charsRemaining(f-e))):f&&0===e&&M(v.maxChars(f))}),[]);const R=!!r||x||k,D=[t?L:null,R?A:null,S?N:null].filter(Boolean).join(" ")||void 0,P=Boolean(O),I=Ab(u,h),z=S&&!k&&!x,V=x&&!!p||k&&!!f||z?be(ye,{children:[x&&p?ve(c.ErrorText,{id:A,css:nw,style:{fontSize:"0.75rem",lineHeight:"1rem"},"aria-live":"polite",children:v.needMoreChars(p-O.length)}):null,k&&f?ve(c.ErrorText,{id:A,css:nw,style:{fontSize:"0.75rem",lineHeight:"1rem"},"aria-live":"polite",children:v.tooManyChars(O.length-f)}):null,z?ve(c.HelperText,{id:N,css:tw,"aria-live":"polite",children:S}):null]}):null;return ve(kb,{label:e,caption:t,errorMessage:r,invalid:R,required:o,disabled:i,size:s,showOptionalLabel:a,labels:{requiredSymbolLabel:v.requiredSymbolLabel,optionalSuffix:v.optionalSuffix},captionId:L,errorId:r?A:void 0,footer:V,semantics:"field",children:ve(E,{placeholder:n,disabled:i,focusVisibleRing:"none",css:rw(s,P),onChange:e=>{T||w(e.target.value);const{length:t}=e.target.value;p&&f?(C(t<p),$(t>f),M(v.charsRemaining(f-t))):p?(C(t<p),$(!1),M(t<p?v.enterAtLeastChars(p-t):"")):f&&($(t>f),C(!1),M(v.charsRemaining(f-t))),d&&d(e)},value:O,"aria-label":e||n,"aria-describedby":D,"aria-invalid":R||void 0,_placeholder:{color:"var(--chakra-colors-neutral-700)"},...b,"data-focus-visible":I.isTabFocused||void 0,onFocus:I.onFocus,onBlur:I.onBlur})})},iw=e=>(e.getAttribute("data-placement")||"bottom").startsWith("top")?"top":"bottom",sw=()=>{const[e,t]=ae("bottom"),n=se(null);return{contentRef:ue((e=>{n.current?.disconnect(),n.current=null,e&&(t(iw(e)),n.current=new MutationObserver((()=>{t(iw(e))})),n.current.observe(e,{attributes:!0,attributeFilter:["data-placement"]}))}),[]),placement:e}},aw=e=>e?Ie("error",900):Ie("neutral",700),lw=e=>ke`
|
|
2110
2123
|
&[data-state='open'] {
|
|
2111
2124
|
${e.startsWith("top")?"\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top-color: transparent;\n ":"\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-color: transparent;\n "}
|
|
2112
2125
|
}
|
|
2113
|
-
`,
|
|
2126
|
+
`,cw=ke`
|
|
2114
2127
|
&[data-disabled],
|
|
2115
2128
|
[data-disabled] & {
|
|
2116
2129
|
color: ${Ie("neutral",500)};
|
|
2117
2130
|
}
|
|
2118
|
-
`,
|
|
2131
|
+
`,dw=ke`
|
|
2119
2132
|
&:focus-visible {
|
|
2120
2133
|
${Vm}
|
|
2121
2134
|
}
|
|
2122
|
-
`,
|
|
2135
|
+
`,uw=ke`
|
|
2123
2136
|
cursor: pointer;
|
|
2124
2137
|
color: ${Ie("neutral",900)};
|
|
2125
2138
|
font-size: ${ze(400)};
|
|
@@ -2144,8 +2157,8 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2144
2157
|
cursor: not-allowed;
|
|
2145
2158
|
color: ${Ie("neutral",600)};
|
|
2146
2159
|
}
|
|
2147
|
-
`,
|
|
2148
|
-
${
|
|
2160
|
+
`,hw=ke`
|
|
2161
|
+
${uw}
|
|
2149
2162
|
|
|
2150
2163
|
svg {
|
|
2151
2164
|
width: ${Ve(200)};
|
|
@@ -2153,26 +2166,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2153
2166
|
flex-shrink: 0;
|
|
2154
2167
|
color: ${Ie("neutral",900)};
|
|
2155
2168
|
}
|
|
2156
|
-
`,
|
|
2169
|
+
`,pw=ke`
|
|
2157
2170
|
color: ${Ie("neutral",700)};
|
|
2158
2171
|
font-size: ${ze(400)};
|
|
2159
2172
|
line-height: ${He(600)};
|
|
2160
2173
|
padding: 0;
|
|
2161
|
-
`,
|
|
2174
|
+
`,fw=ke`
|
|
2162
2175
|
width: 100%;
|
|
2163
2176
|
display: flex;
|
|
2164
2177
|
align-items: flex-start;
|
|
2165
2178
|
flex-wrap: wrap;
|
|
2166
2179
|
gap: ${Ve(100)};
|
|
2167
2180
|
padding-top: ${Ve(100)};
|
|
2168
|
-
`,
|
|
2181
|
+
`,mw=new Set(["ArrowDown","ArrowUp","Home","End"]),gw="__create__",bw=e=>e.startsWith(gw),vw=({label:e,required:t,caption:n,errorMessage:r,size:o,disabled:i,showOptionalLabel:s=!0,placeholder:l,labels:c,noMarginBottom:d,initialItems:u=[],multiple:h=!1,showSelectedItems:p=!1,value:f,defaultValue:m,onChange:g,creatable:b=!1})=>{const[v,y]=ae([]),[w,x]=ae(m??[]),[C,k]=ae(""),$=void 0!==f,S=$?f:w,E=e=>{$||x(e),g?.(e)},A=tg("Combobox",c),{contains:N}=T({sensitivity:"base"}),{collection:R,filter:D,upsert:P}=O({initialItems:u,filter:N}),I=C.trim(),z=(e=>`${gw}${e}`)(I),V=b&&I.length>0&&!R.items.some((e=>e.label.toLowerCase()===I.toLowerCase())),H=oe((()=>V?M({items:[{label:I,value:z},...R.items]}):null),[V,z,I,R])??R,B=oe((()=>[...v,...u]),[v,u]),_=oe((()=>S.map((e=>({value:e,label:B.find((t=>t.value===e))?.label??e})))),[S,B]),j=S.length>0,F=!!r,q=Ab(),{contentRef:W,placement:U}=sw(),[K,G]=ae("pointer"),Z=()=>G("pointer");return ve(kb,{className:"ds-text-input-container",label:e,caption:n,errorMessage:r,required:t,disabled:i,size:o,showOptionalLabel:s,noMarginBottom:d,labels:{requiredSymbolLabel:A.requiredSymbolLabel,optionalSuffix:A.optionalSuffix},semantics:"field",children:be(L.Root,{multiple:h,invalid:F,disabled:i,collection:H,value:S,onValueChange:e=>{const t=e.value.filter(bw);t.length>0?(t.forEach((e=>{const t=e.slice(10),n={label:t,value:t};P(n.value,n,"prepend"),y((e=>e.some((e=>e.value===n.value))?e:[n,...e]))})),E(e.value.map((e=>bw(e)?e.slice(10):e)))):E(e.value),p&&k("")},inputValue:C,onInputValueChange:e=>{k(e.inputValue),D(e.inputValue)},selectionBehavior:p?"clear":"replace",width:"100%",positioning:{sameWidth:!0},size:"small"===o?"sm":"md",children:[be(L.Control,{children:[ve(L.Input,{placeholder:l,focusVisibleRing:"none",css:[Cb(o,j),lw(U)],disabled:i,"aria-label":e||l||A.defaultInputAriaLabel,"data-focus-visible":q.isTabFocused||void 0,onFocus:q.onFocus,onBlur:q.onBlur,onKeyDown:e=>{mw.has(e.key)&&G("keyboard")},onPointerDown:Z,_placeholder:{color:"var(--chakra-colors-neutral-700)"}}),be(L.IndicatorGroup,{css:cw,children:[ve(L.ClearTrigger,{"aria-label":A.clearSelectionLabel,tabIndex:0,focusVisibleRing:"none",css:dw}),ve(L.Trigger,{"aria-label":A.toggleOptionsLabel})]})]}),ve(a,{children:ve(L.Positioner,{children:be(L.Content,{ref:W,css:(J=F,ke`
|
|
2169
2182
|
margin-top: calc(${Ve(200)} * -1);
|
|
2170
2183
|
border-radius: ${Be(300)};
|
|
2171
2184
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
2172
2185
|
border-top-left-radius: 0;
|
|
2173
2186
|
border-top-right-radius: 0;
|
|
2174
2187
|
border-top: ${_e(100)} solid
|
|
2175
|
-
${
|
|
2188
|
+
${aw(J)};
|
|
2176
2189
|
background-color: ${Ie("neutral",100)};
|
|
2177
2190
|
padding: ${Ve(300)};
|
|
2178
2191
|
gap: ${Ve(200)};
|
|
@@ -2190,12 +2203,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2190
2203
|
border-bottom-left-radius: 0;
|
|
2191
2204
|
border-bottom-right-radius: 0;
|
|
2192
2205
|
border-bottom: ${_e(100)} solid
|
|
2193
|
-
${
|
|
2206
|
+
${aw(J)};
|
|
2194
2207
|
box-shadow:
|
|
2195
2208
|
0 -0.25rem 0.375rem -0.25rem #0000001a,
|
|
2196
2209
|
0 -0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
2197
2210
|
}
|
|
2198
|
-
`),"data-nav-source":K,onPointerMove:Z,children:[ve(L.Empty,{css:hw,children:A.noItemsFoundLabel}),V?be(L.Item,{css:uw,item:{label:I,value:z},children:[ve(Cg,{}),A.createOptionLabel(I)]},z):null,H.items.map((e=>be(L.Item,{css:dw,item:e,children:[e.label,ve(L.ItemIndicator,{})]},e.value)))]})})}),p&&_.length>0?ve("div",{css:pw,children:_.map((e=>ve(Hy,{label:e.label,variant:"info-white",onClose:()=>E(S.filter((t=>t!==e.value))),closable:!0},e.value)))}):null]})});var J};function vw(){return"undefined"!=typeof window}function yw(e){return Cw(e)?(e.nodeName||"").toLowerCase():"#document"}function ww(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function xw(e){var t;return null==(t=(Cw(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Cw(e){return!!vw()&&(e instanceof Node||e instanceof ww(e).Node)}function kw(e){return!!vw()&&(e instanceof Element||e instanceof ww(e).Element)}function $w(e){return!!vw()&&(e instanceof HTMLElement||e instanceof ww(e).HTMLElement)}function Sw(e){return!(!vw()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ww(e).ShadowRoot)}const Mw=new Set(["inline","contents"]);function Ew(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Hw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Mw.has(o)}const Tw=new Set(["table","td","th"]);function Ow(e){return Tw.has(yw(e))}const Lw=[":popover-open",":modal"];function Aw(e){return Lw.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const Nw=["transform","translate","scale","rotate","perspective"],Rw=["transform","translate","scale","rotate","perspective","filter"],Dw=["paint","layout","strict","content"];function Pw(e){const t=Iw(),n=kw(e)?Hw(e):e;return Nw.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Rw.some((e=>(n.willChange||"").includes(e)))||Dw.some((e=>(n.contain||"").includes(e)))}function Iw(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const zw=new Set(["html","body","#document"]);function Vw(e){return zw.has(yw(e))}function Hw(e){return ww(e).getComputedStyle(e)}function Bw(e){return kw(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _w(e){if("html"===yw(e))return e;const t=e.assignedSlot||e.parentNode||Sw(e)&&e.host||xw(e);return Sw(t)?t.host:t}function jw(e){const t=_w(e);return Vw(t)?e.ownerDocument?e.ownerDocument.body:e.body:$w(t)&&Ew(t)?t:jw(t)}function Fw(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=jw(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=ww(o);if(i){const e=qw(s);return t.concat(s,s.visualViewport||[],Ew(o)?o:[],e&&n?Fw(e):[])}return t.concat(o,Fw(o,[],n))}function qw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Ww=Math.min,Uw=Math.max,Kw=Math.round,Gw=Math.floor,Zw=e=>({x:e,y:e}),Jw={left:"right",right:"left",bottom:"top",top:"bottom"},Xw={start:"end",end:"start"};function Yw(e,t,n){return Uw(e,Ww(t,n))}function Qw(e,t){return"function"==typeof e?e(t):e}function ex(e){return e.split("-")[0]}function tx(e){return e.split("-")[1]}function nx(e){return"x"===e?"y":"x"}function rx(e){return"y"===e?"height":"width"}const ox=new Set(["top","bottom"]);function ix(e){return ox.has(ex(e))?"y":"x"}function sx(e){return nx(ix(e))}function ax(e){return e.replace(/start|end/g,(e=>Xw[e]))}const lx=["left","right"],cx=["right","left"],dx=["top","bottom"],ux=["bottom","top"];function hx(e,t,n,r){const o=tx(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?cx:lx:t?lx:cx;case"left":case"right":return t?dx:ux;default:return[]}}(ex(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(ax)))),i}function px(e){return e.replace(/left|right|bottom|top/g,(e=>Jw[e]))}function fx(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function mx(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const gx="data-floating-ui-focusable";function bx(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Sw(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function vx(e){return"composedPath"in e?e.composedPath()[0]:e.target}function yx(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function wx(e){return(null==e?void 0:e.ownerDocument)||document}function xx(e,t,n){void 0===n&&(n=!0);return e.filter((e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))})).flatMap((t=>[t,...xx(e,t.id,n)]))}var Cx="undefined"!=typeof document?de:function(){};const kx={...ee}.useInsertionEffect||(e=>e());function $x(e){const t=ee.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return kx((()=>{t.current=e})),ee.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function Sx(e,t,n){let{reference:r,floating:o}=e;const i=ix(t),s=sx(t),a=rx(s),l=ex(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(tx(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1)}return p}async function Mx(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:p=0}=Qw(t,e),f=fx(p),m=a[h?"floating"===u?"reference":"floating":u],g=mx(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=mx(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-w.top+f.top)/y.y,bottom:(w.bottom-g.bottom+f.bottom)/y.y,left:(g.left-w.left+f.left)/y.x,right:(w.right-g.right+f.right)/y.x}}const Ex=new Set(["left","top"]);function Tx(e){const t=Hw(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$w(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Kw(n)!==i||Kw(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ox(e){return kw(e)?e:e.contextElement}function Lx(e){const t=Ox(e);if(!$w(t))return Zw(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tx(t);let s=(i?Kw(n.width):n.width)/r,a=(i?Kw(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Ax=Zw(0);function Nx(e){const t=ww(e);return Iw()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ax}function Rx(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ox(e);let s=Zw(1);t&&(r?kw(r)&&(s=Lx(r)):s=Lx(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ww(e))&&t}(i,n,r)?Nx(i):Zw(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const e=ww(i),t=r&&kw(r)?ww(r):r;let n=e,o=qw(n);for(;o&&r&&t!==n;){const e=Lx(o),t=o.getBoundingClientRect(),r=Hw(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=s,n=ww(o),o=qw(n)}}return mx({width:d,height:u,x:l,y:c})}function Dx(e,t){const n=Bw(e).scrollLeft;return t?t.left+n:Rx(xw(e)).left+n}function Px(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Dx(e,n),y:n.top+t.scrollTop}}const Ix=new Set(["absolute","fixed"]);function zx(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ww(e),r=xw(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Iw();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}const c=Dx(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=xw(e),n=Bw(e),r=e.ownerDocument.body,o=Uw(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Uw(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Dx(e);const a=-n.scrollTop;return"rtl"===Hw(r).direction&&(s+=Uw(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(xw(e));else if(kw(t))r=function(e,t){const n=Rx(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$w(e)?Lx(e):Zw(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Nx(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return mx(r)}function Vx(e,t){const n=_w(e);return!(n===t||!kw(n)||Vw(n))&&("fixed"===Hw(n).position||Vx(n,t))}function Hx(e,t,n){const r=$w(t),o=xw(t),i="fixed"===n,s=Rx(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Zw(0);function c(){l.x=Dx(o)}if(r||!r&&!i)if(("body"!==yw(t)||Ew(o))&&(a=Bw(t)),r){const e=Rx(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?Zw(0):Px(o,a);return{x:s.left+a.scrollLeft-l.x-d.x,y:s.top+a.scrollTop-l.y-d.y,width:s.width,height:s.height}}function Bx(e){return"static"===Hw(e).position}function _x(e,t){if(!$w(e)||"fixed"===Hw(e).position)return null;if(t)return t(e);let n=e.offsetParent;return xw(e)===n&&(n=n.ownerDocument.body),n}function jx(e,t){const n=ww(e);if(Aw(e))return n;if(!$w(e)){let t=_w(e);for(;t&&!Vw(t);){if(kw(t)&&!Bx(t))return t;t=_w(t)}return n}let r=_x(e,t);for(;r&&Ow(r)&&Bx(r);)r=_x(r,t);return r&&Vw(r)&&Bx(r)&&!Pw(r)?n:r||function(e){let t=_w(e);for(;$w(t)&&!Vw(t);){if(Pw(t))return t;if(Aw(t))return null;t=_w(t)}return null}(e)||n}const Fx={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=xw(r),a=!!t&&Aw(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Zw(1);const d=Zw(0),u=$w(r);if((u||!u&&!i)&&(("body"!==yw(r)||Ew(s))&&(l=Bw(r)),$w(r))){const e=Rx(r);c=Lx(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const h=!s||u||i?Zw(0):Px(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:xw,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Aw(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Fw(e,[],!1).filter((e=>kw(e)&&"body"!==yw(e))),o=null;const i="fixed"===Hw(e).position;let s=i?_w(e):e;for(;kw(s)&&!Vw(s);){const t=Hw(s),n=Pw(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Ix.has(o.position)||Ew(s)&&!n&&Vx(e,s))?r=r.filter((e=>e!==s)):o=t,s=_w(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=zx(t,n,o);return e.top=Uw(r.top,e.top),e.right=Ww(r.right,e.right),e.bottom=Ww(r.bottom,e.bottom),e.left=Uw(r.left,e.left),e}),zx(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:jx,getElementRects:async function(e){const t=this.getOffsetParent||jx,n=this.getDimensions,r=await n(e.floating);return{reference:Hx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Tx(e);return{width:t,height:n}},getScale:Lx,isElement:kw,isRTL:function(e){return"rtl"===Hw(e).direction}};function qx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wx(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Ox(e),d=o||i?[...c?Fw(c):[],...Fw(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=c&&a?function(e,t){let n,r=null;const o=xw(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:h,height:p}=c;if(a||t(),!h||!p)return;const f={rootMargin:-Gw(u)+"px "+-Gw(o.clientWidth-(d+h))+"px "+-Gw(o.clientHeight-(u+p))+"px "+-Gw(d)+"px",threshold:Uw(0,Ww(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||qx(c,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),i}(c,n):null;let h,p=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?Rx(e):null;return l&&function t(){const r=Rx(e);m&&!qx(m,r)&&n();m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const Ux=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=ex(n),a=tx(n),l="y"===ix(n),c=Ex.has(s)?-1:1,d=i&&l?-1:1,u=Qw(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*d,y:h*c}:{x:h*c,y:p*d}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Kx=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Qw(e,t),c={x:n,y:r},d=await Mx(t,l),u=ix(ex(o)),h=nx(u);let p=c[h],f=c[u];if(i){const e="y"===h?"bottom":"right";p=Yw(p+d["y"===h?"top":"left"],p,p-d[e])}if(s){const e="y"===u?"bottom":"right";f=Yw(f+d["y"===u?"top":"left"],f,f-d[e])}const m=a.fn({...t,[h]:p,[u]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[u]:s}}}}}},Gx=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=Qw(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=ex(o),v=ix(a),y=ex(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(y||!m?[px(a)]:function(e){const t=px(e);return[ax(e),t,ax(t)]}(a)),C="none"!==f;!h&&C&&x.push(...hx(a,m,f,w));const k=[a,...x],$=await Mx(t,g),S=[];let M=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&S.push($[b]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=tx(e),o=sx(e),i=rx(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=px(s)),[s,px(s)]}(o,s,w);S.push($[e[0]],$[e[1]])}if(M=[...M,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,T;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=k[e];if(t){if(!("alignment"===u&&v!==ix(t))||M.every((e=>ix(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}}}let n=null==(T=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=M.filter((e=>{if(C){const t=ix(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Zx=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Qw(e,t)||{};if(null==c)return{};const u=fx(d),h={x:n,y:r},p=sx(o),f=rx(p),m=await s.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[p]-h[p]-i.floating[f],x=h[p]-i.reference[p],C=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let k=C?C[y]:0;k&&await(null==s.isElement?void 0:s.isElement(C))||(k=a.floating[y]||i.floating[f]);const $=w/2-x/2,S=k/2-m[f]/2-1,M=Ww(u[b],S),E=Ww(u[v],S),T=M,O=k-m[f]-E,L=k/2-m[f]/2+$,A=Yw(T,L,O),N=!l.arrow&&null!=tx(o)&&L!==A&&i.reference[f]/2-(L<T?M:E)-m[f]/2<0,R=N?L<T?L-T:L-O:0;return{[p]:h[p]+R,data:{[p]:A,centerOffset:L-A-R,...N&&{alignmentOffset:R}},reset:N}}}),Jx=(e,t,n)=>{const r=new Map,o={platform:Fx,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Sx(c,r,l),h=r,p={},f=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y:b,data:v,reset:y}=await m({x:d,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=b?b:u,p={...p,[i]:{...p[i],...v}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:u}=Sx(c,h,l))),n=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Xx="undefined"!=typeof document?de:function(){};function Yx(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Yx(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Yx(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Qx(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eC(e,t){const n=Qx(e);return Math.round(t*n)/n}function tC(e){const t=ee.useRef(e);return Xx((()=>{t.current=e})),t}const nC=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Zx({element:n.current,padding:r}).fn(t):{}:n?Zx({element:n,padding:r}).fn(t):{};var o}}),rC=(e,t)=>({...Ux(e),options:[e,t]}),oC=(e,t)=>({...Kx(e),options:[e,t]}),iC=(e,t)=>({...nC(e),options:[e,t]}),sC="data-floating-ui-focusable",aC="active",lC="selected",cC={...ee};let dC=!1,uC=0;const hC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+uC++;const pC=cC.useId||function(){const[e,t]=ee.useState((()=>dC?hC():void 0));return Cx((()=>{null==e&&t(hC())}),[]),ee.useEffect((()=>{dC=!0}),[]),e};let fC;"production"!==process.env.NODE_ENV&&(fC=new Set);const mC=ee.createContext(null),gC=ee.createContext(null),bC=()=>{var e;return(null==(e=ee.useContext(mC))?void 0:e.id)||null},vC=()=>ee.useContext(gC);const yC={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},wC={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},xC=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function CC(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=pC(),i=ee.useRef({}),[s]=ee.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}())),a=null!=bC();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!kw(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=fC)&&e.has(o)||(null==(i=fC)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=ee.useState(r.reference),d=$x(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)})),u=ee.useMemo((()=>({setPositionReference:c})),[]),h=ee.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return ee.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:h,events:s,floatingId:o,refs:u})),[t,d,h,s,o,u])}function kC(e){void 0===e&&(e={});const{nodeId:t}=e,n=CC({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=ee.useState(null),[a,l]=ee.useState(null),c=(null==o?void 0:o.domReference)||i,d=ee.useRef(null),u=vC();Cx((()=>{c&&(d.current=c)}),[c]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=ee.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=ee.useState(r);Yx(h,r)||p(r);const[f,m]=ee.useState(null),[g,b]=ee.useState(null),v=ee.useCallback((e=>{e!==C.current&&(C.current=e,m(e))}),[]),y=ee.useCallback((e=>{e!==k.current&&(k.current=e,b(e))}),[]),w=i||f,x=s||g,C=ee.useRef(null),k=ee.useRef(null),$=ee.useRef(d),S=null!=l,M=tC(l),E=tC(o),T=tC(c),O=ee.useCallback((()=>{if(!C.current||!k.current)return;const e={placement:t,strategy:n,middleware:h};E.current&&(e.platform=E.current),Jx(C.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};L.current&&!Yx($.current,t)&&($.current=t,we.flushSync((()=>{u(t)})))}))}),[h,t,n,E,T]);Xx((()=>{!1===c&&$.current.isPositioned&&($.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[c]);const L=ee.useRef(!1);Xx((()=>(L.current=!0,()=>{L.current=!1})),[]),Xx((()=>{if(w&&(C.current=w),x&&(k.current=x),w&&x){if(M.current)return M.current(w,x,O);O()}}),[w,x,O,M,S]);const A=ee.useMemo((()=>({reference:C,floating:k,setReference:v,setFloating:y})),[v,y]),N=ee.useMemo((()=>({reference:w,floating:x})),[w,x]),R=ee.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=eC(N.floating,d.x),r=eC(N.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...Qx(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,N.floating,d.x,d.y]);return ee.useMemo((()=>({...d,update:O,refs:A,elements:N,floatingStyles:R})),[d,O,A,N,R])}({...e,elements:{...o,...a&&{reference:a}}}),p=ee.useCallback((e=>{const t=kw(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),h.refs.setReference(t)}),[h.refs]),f=ee.useCallback((e=>{(kw(e)||null===e)&&(d.current=e,s(e)),(kw(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!kw(e))&&h.refs.setReference(e)}),[h.refs]),m=ee.useMemo((()=>({...h.refs,setReference:f,setPositionReference:p,domReference:d})),[h.refs,f,p]),g=ee.useMemo((()=>({...h.elements,domReference:c})),[h.elements,c]),b=ee.useMemo((()=>({...h,...r,refs:m,elements:g,nodeId:t})),[h,m,g,t,r]);return Cx((()=>{r.dataRef.current.floatingContext=b;const e=null==u?void 0:u.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),ee.useMemo((()=>({...h,context:b,refs:m,elements:g})),[h,m,g,b])}function $C(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[aC]:t,[lC]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[sC]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var s;o&&[aC,lC].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const SC=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function MC(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:s}=e,{enabled:a=!0,role:l="dialog"}=t,c=pC(),d=(null==(n=i.domReference)?void 0:n.id)||c,u=ee.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(gx)?t:t.querySelector("["+gx+"]")||t:null)?void 0:e.id)||s}),[i.floating,s]),h=null!=(r=SC.get(l))?r:l,p=null!=bC(),f=ee.useMemo((()=>"tooltip"===h||"label"===l?{["aria-"+("label"===l?"labelledby":"describedby")]:o?u:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===h?"dialog":h,"aria-controls":o?u:void 0,..."listbox"===h&&{role:"combobox"},..."menu"===h&&{id:d},..."menu"===h&&p&&{role:"menuitem"},..."select"===l&&{"aria-autocomplete":"none"},..."combobox"===l&&{"aria-autocomplete":"list"}}),[h,u,p,o,d,l]),m=ee.useMemo((()=>{const e={id:u,...h&&{role:h}};return"tooltip"===h||"label"===l?e:{...e,..."menu"===h&&{"aria-labelledby":d}}}),[h,u,d,l]),g=ee.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:u+"-fui-option"}};switch(l){case"select":case"combobox":return{...r,"aria-selected":n}}return{}}),[u,l]);return ee.useMemo((()=>a?{reference:f,floating:m,item:g}:{}),[a,f,m,g])}const EC=e=>Ie("neutral","dark"===e?900:300),TC=e=>ke`
|
|
2211
|
+
`),"data-nav-source":K,onPointerMove:Z,children:[ve(L.Empty,{css:pw,children:A.noItemsFoundLabel}),V?be(L.Item,{css:hw,item:{label:I,value:z},children:[ve(Cg,{}),A.createOptionLabel(I)]},z):null,H.items.map((e=>be(L.Item,{css:uw,item:e,children:[e.label,ve(L.ItemIndicator,{})]},e.value)))]})})}),p&&_.length>0?ve("div",{css:fw,children:_.map((e=>ve(By,{label:e.label,variant:"info-white",onClose:()=>E(S.filter((t=>t!==e.value))),closable:!0},e.value)))}):null]})});var J};function yw(){return"undefined"!=typeof window}function ww(e){return kw(e)?(e.nodeName||"").toLowerCase():"#document"}function xw(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Cw(e){var t;return null==(t=(kw(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function kw(e){return!!yw()&&(e instanceof Node||e instanceof xw(e).Node)}function $w(e){return!!yw()&&(e instanceof Element||e instanceof xw(e).Element)}function Sw(e){return!!yw()&&(e instanceof HTMLElement||e instanceof xw(e).HTMLElement)}function Mw(e){return!(!yw()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof xw(e).ShadowRoot)}const Ew=new Set(["inline","contents"]);function Tw(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Bw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ew.has(o)}const Ow=new Set(["table","td","th"]);function Lw(e){return Ow.has(ww(e))}const Aw=[":popover-open",":modal"];function Nw(e){return Aw.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const Rw=["transform","translate","scale","rotate","perspective"],Dw=["transform","translate","scale","rotate","perspective","filter"],Pw=["paint","layout","strict","content"];function Iw(e){const t=zw(),n=$w(e)?Bw(e):e;return Rw.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Dw.some((e=>(n.willChange||"").includes(e)))||Pw.some((e=>(n.contain||"").includes(e)))}function zw(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Vw=new Set(["html","body","#document"]);function Hw(e){return Vw.has(ww(e))}function Bw(e){return xw(e).getComputedStyle(e)}function _w(e){return $w(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jw(e){if("html"===ww(e))return e;const t=e.assignedSlot||e.parentNode||Mw(e)&&e.host||Cw(e);return Mw(t)?t.host:t}function Fw(e){const t=jw(e);return Hw(t)?e.ownerDocument?e.ownerDocument.body:e.body:Sw(t)&&Tw(t)?t:Fw(t)}function qw(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Fw(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=xw(o);if(i){const e=Ww(s);return t.concat(s,s.visualViewport||[],Tw(o)?o:[],e&&n?qw(e):[])}return t.concat(o,qw(o,[],n))}function Ww(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Uw=Math.min,Kw=Math.max,Gw=Math.round,Zw=Math.floor,Jw=e=>({x:e,y:e}),Xw={left:"right",right:"left",bottom:"top",top:"bottom"},Yw={start:"end",end:"start"};function Qw(e,t,n){return Kw(e,Uw(t,n))}function ex(e,t){return"function"==typeof e?e(t):e}function tx(e){return e.split("-")[0]}function nx(e){return e.split("-")[1]}function rx(e){return"x"===e?"y":"x"}function ox(e){return"y"===e?"height":"width"}const ix=new Set(["top","bottom"]);function sx(e){return ix.has(tx(e))?"y":"x"}function ax(e){return rx(sx(e))}function lx(e){return e.replace(/start|end/g,(e=>Yw[e]))}const cx=["left","right"],dx=["right","left"],ux=["top","bottom"],hx=["bottom","top"];function px(e,t,n,r){const o=nx(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?dx:cx:t?cx:dx;case"left":case"right":return t?ux:hx;default:return[]}}(tx(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(lx)))),i}function fx(e){return e.replace(/left|right|bottom|top/g,(e=>Xw[e]))}function mx(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function gx(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const bx="data-floating-ui-focusable";function vx(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Mw(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function yx(e){return"composedPath"in e?e.composedPath()[0]:e.target}function wx(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function xx(e){return(null==e?void 0:e.ownerDocument)||document}function Cx(e,t,n){void 0===n&&(n=!0);return e.filter((e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))})).flatMap((t=>[t,...Cx(e,t.id,n)]))}var kx="undefined"!=typeof document?de:function(){};const $x={...ee}.useInsertionEffect||(e=>e());function Sx(e){const t=ee.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return $x((()=>{t.current=e})),ee.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function Mx(e,t,n){let{reference:r,floating:o}=e;const i=sx(t),s=ax(t),a=ox(s),l=tx(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(nx(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1)}return p}async function Ex(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:p=0}=ex(t,e),f=mx(p),m=a[h?"floating"===u?"reference":"floating":u],g=gx(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=gx(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-w.top+f.top)/y.y,bottom:(w.bottom-g.bottom+f.bottom)/y.y,left:(g.left-w.left+f.left)/y.x,right:(w.right-g.right+f.right)/y.x}}const Tx=new Set(["left","top"]);function Ox(e){const t=Bw(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Sw(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Gw(n)!==i||Gw(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Lx(e){return $w(e)?e:e.contextElement}function Ax(e){const t=Lx(e);if(!Sw(t))return Jw(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ox(t);let s=(i?Gw(n.width):n.width)/r,a=(i?Gw(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Nx=Jw(0);function Rx(e){const t=xw(e);return zw()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Nx}function Dx(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Lx(e);let s=Jw(1);t&&(r?$w(r)&&(s=Ax(r)):s=Ax(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==xw(e))&&t}(i,n,r)?Rx(i):Jw(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const e=xw(i),t=r&&$w(r)?xw(r):r;let n=e,o=Ww(n);for(;o&&r&&t!==n;){const e=Ax(o),t=o.getBoundingClientRect(),r=Bw(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=s,n=xw(o),o=Ww(n)}}return gx({width:d,height:u,x:l,y:c})}function Px(e,t){const n=_w(e).scrollLeft;return t?t.left+n:Dx(Cw(e)).left+n}function Ix(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Px(e,n),y:n.top+t.scrollTop}}const zx=new Set(["absolute","fixed"]);function Vx(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=xw(e),r=Cw(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=zw();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}const c=Px(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Cw(e),n=_w(e),r=e.ownerDocument.body,o=Kw(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Kw(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Px(e);const a=-n.scrollTop;return"rtl"===Bw(r).direction&&(s+=Kw(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Cw(e));else if($w(t))r=function(e,t){const n=Dx(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Sw(e)?Ax(e):Jw(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Rx(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return gx(r)}function Hx(e,t){const n=jw(e);return!(n===t||!$w(n)||Hw(n))&&("fixed"===Bw(n).position||Hx(n,t))}function Bx(e,t,n){const r=Sw(t),o=Cw(t),i="fixed"===n,s=Dx(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Jw(0);function c(){l.x=Px(o)}if(r||!r&&!i)if(("body"!==ww(t)||Tw(o))&&(a=_w(t)),r){const e=Dx(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?Jw(0):Ix(o,a);return{x:s.left+a.scrollLeft-l.x-d.x,y:s.top+a.scrollTop-l.y-d.y,width:s.width,height:s.height}}function _x(e){return"static"===Bw(e).position}function jx(e,t){if(!Sw(e)||"fixed"===Bw(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Cw(e)===n&&(n=n.ownerDocument.body),n}function Fx(e,t){const n=xw(e);if(Nw(e))return n;if(!Sw(e)){let t=jw(e);for(;t&&!Hw(t);){if($w(t)&&!_x(t))return t;t=jw(t)}return n}let r=jx(e,t);for(;r&&Lw(r)&&_x(r);)r=jx(r,t);return r&&Hw(r)&&_x(r)&&!Iw(r)?n:r||function(e){let t=jw(e);for(;Sw(t)&&!Hw(t);){if(Iw(t))return t;if(Nw(t))return null;t=jw(t)}return null}(e)||n}const qx={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Cw(r),a=!!t&&Nw(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Jw(1);const d=Jw(0),u=Sw(r);if((u||!u&&!i)&&(("body"!==ww(r)||Tw(s))&&(l=_w(r)),Sw(r))){const e=Dx(r);c=Ax(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const h=!s||u||i?Jw(0):Ix(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:Cw,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Nw(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=qw(e,[],!1).filter((e=>$w(e)&&"body"!==ww(e))),o=null;const i="fixed"===Bw(e).position;let s=i?jw(e):e;for(;$w(s)&&!Hw(s);){const t=Bw(s),n=Iw(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&zx.has(o.position)||Tw(s)&&!n&&Hx(e,s))?r=r.filter((e=>e!==s)):o=t,s=jw(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=Vx(t,n,o);return e.top=Kw(r.top,e.top),e.right=Uw(r.right,e.right),e.bottom=Uw(r.bottom,e.bottom),e.left=Kw(r.left,e.left),e}),Vx(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Fx,getElementRects:async function(e){const t=this.getOffsetParent||Fx,n=this.getDimensions,r=await n(e.floating);return{reference:Bx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ox(e);return{width:t,height:n}},getScale:Ax,isElement:$w,isRTL:function(e){return"rtl"===Bw(e).direction}};function Wx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ux(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Lx(e),d=o||i?[...c?qw(c):[],...qw(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=c&&a?function(e,t){let n,r=null;const o=Cw(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:h,height:p}=c;if(a||t(),!h||!p)return;const f={rootMargin:-Zw(u)+"px "+-Zw(o.clientWidth-(d+h))+"px "+-Zw(o.clientHeight-(u+p))+"px "+-Zw(d)+"px",threshold:Kw(0,Uw(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||Wx(c,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),i}(c,n):null;let h,p=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?Dx(e):null;return l&&function t(){const r=Dx(e);m&&!Wx(m,r)&&n();m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const Kx=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=tx(n),a=nx(n),l="y"===sx(n),c=Tx.has(s)?-1:1,d=i&&l?-1:1,u=ex(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*d,y:h*c}:{x:h*c,y:p*d}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Gx=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ex(e,t),c={x:n,y:r},d=await Ex(t,l),u=sx(tx(o)),h=rx(u);let p=c[h],f=c[u];if(i){const e="y"===h?"bottom":"right";p=Qw(p+d["y"===h?"top":"left"],p,p-d[e])}if(s){const e="y"===u?"bottom":"right";f=Qw(f+d["y"===u?"top":"left"],f,f-d[e])}const m=a.fn({...t,[h]:p,[u]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[u]:s}}}}}},Zx=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=ex(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=tx(o),v=sx(a),y=tx(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(y||!m?[fx(a)]:function(e){const t=fx(e);return[lx(e),t,lx(t)]}(a)),C="none"!==f;!h&&C&&x.push(...px(a,m,f,w));const k=[a,...x],$=await Ex(t,g),S=[];let M=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&S.push($[b]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=nx(e),o=ax(e),i=ox(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=fx(s)),[s,fx(s)]}(o,s,w);S.push($[e[0]],$[e[1]])}if(M=[...M,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,T;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=k[e];if(t){if(!("alignment"===u&&v!==sx(t))||M.every((e=>sx(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}}}let n=null==(T=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=M.filter((e=>{if(C){const t=sx(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Jx=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=ex(e,t)||{};if(null==c)return{};const u=mx(d),h={x:n,y:r},p=ax(o),f=ox(p),m=await s.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[p]-h[p]-i.floating[f],x=h[p]-i.reference[p],C=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let k=C?C[y]:0;k&&await(null==s.isElement?void 0:s.isElement(C))||(k=a.floating[y]||i.floating[f]);const $=w/2-x/2,S=k/2-m[f]/2-1,M=Uw(u[b],S),E=Uw(u[v],S),T=M,O=k-m[f]-E,L=k/2-m[f]/2+$,A=Qw(T,L,O),N=!l.arrow&&null!=nx(o)&&L!==A&&i.reference[f]/2-(L<T?M:E)-m[f]/2<0,R=N?L<T?L-T:L-O:0;return{[p]:h[p]+R,data:{[p]:A,centerOffset:L-A-R,...N&&{alignmentOffset:R}},reset:N}}}),Xx=(e,t,n)=>{const r=new Map,o={platform:qx,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Mx(c,r,l),h=r,p={},f=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y:b,data:v,reset:y}=await m({x:d,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=b?b:u,p={...p,[i]:{...p[i],...v}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:u}=Mx(c,h,l))),n=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Yx="undefined"!=typeof document?de:function(){};function Qx(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Qx(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Qx(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eC(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tC(e,t){const n=eC(e);return Math.round(t*n)/n}function nC(e){const t=ee.useRef(e);return Yx((()=>{t.current=e})),t}const rC=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Jx({element:n.current,padding:r}).fn(t):{}:n?Jx({element:n,padding:r}).fn(t):{};var o}}),oC=(e,t)=>({...Kx(e),options:[e,t]}),iC=(e,t)=>({...Gx(e),options:[e,t]}),sC=(e,t)=>({...rC(e),options:[e,t]}),aC="data-floating-ui-focusable",lC="active",cC="selected",dC={...ee};let uC=!1,hC=0;const pC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+hC++;const fC=dC.useId||function(){const[e,t]=ee.useState((()=>uC?pC():void 0));return kx((()=>{null==e&&t(pC())}),[]),ee.useEffect((()=>{uC=!0}),[]),e};let mC;"production"!==process.env.NODE_ENV&&(mC=new Set);const gC=ee.createContext(null),bC=ee.createContext(null),vC=()=>{var e;return(null==(e=ee.useContext(gC))?void 0:e.id)||null},yC=()=>ee.useContext(bC);const wC={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},xC={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},CC=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function kC(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=fC(),i=ee.useRef({}),[s]=ee.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}())),a=null!=vC();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!$w(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=mC)&&e.has(o)||(null==(i=mC)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=ee.useState(r.reference),d=Sx(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)})),u=ee.useMemo((()=>({setPositionReference:c})),[]),h=ee.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return ee.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:h,events:s,floatingId:o,refs:u})),[t,d,h,s,o,u])}function $C(e){void 0===e&&(e={});const{nodeId:t}=e,n=kC({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=ee.useState(null),[a,l]=ee.useState(null),c=(null==o?void 0:o.domReference)||i,d=ee.useRef(null),u=yC();kx((()=>{c&&(d.current=c)}),[c]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=ee.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=ee.useState(r);Qx(h,r)||p(r);const[f,m]=ee.useState(null),[g,b]=ee.useState(null),v=ee.useCallback((e=>{e!==C.current&&(C.current=e,m(e))}),[]),y=ee.useCallback((e=>{e!==k.current&&(k.current=e,b(e))}),[]),w=i||f,x=s||g,C=ee.useRef(null),k=ee.useRef(null),$=ee.useRef(d),S=null!=l,M=nC(l),E=nC(o),T=nC(c),O=ee.useCallback((()=>{if(!C.current||!k.current)return;const e={placement:t,strategy:n,middleware:h};E.current&&(e.platform=E.current),Xx(C.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};L.current&&!Qx($.current,t)&&($.current=t,we.flushSync((()=>{u(t)})))}))}),[h,t,n,E,T]);Yx((()=>{!1===c&&$.current.isPositioned&&($.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[c]);const L=ee.useRef(!1);Yx((()=>(L.current=!0,()=>{L.current=!1})),[]),Yx((()=>{if(w&&(C.current=w),x&&(k.current=x),w&&x){if(M.current)return M.current(w,x,O);O()}}),[w,x,O,M,S]);const A=ee.useMemo((()=>({reference:C,floating:k,setReference:v,setFloating:y})),[v,y]),N=ee.useMemo((()=>({reference:w,floating:x})),[w,x]),R=ee.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=tC(N.floating,d.x),r=tC(N.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...eC(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,N.floating,d.x,d.y]);return ee.useMemo((()=>({...d,update:O,refs:A,elements:N,floatingStyles:R})),[d,O,A,N,R])}({...e,elements:{...o,...a&&{reference:a}}}),p=ee.useCallback((e=>{const t=$w(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),h.refs.setReference(t)}),[h.refs]),f=ee.useCallback((e=>{($w(e)||null===e)&&(d.current=e,s(e)),($w(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!$w(e))&&h.refs.setReference(e)}),[h.refs]),m=ee.useMemo((()=>({...h.refs,setReference:f,setPositionReference:p,domReference:d})),[h.refs,f,p]),g=ee.useMemo((()=>({...h.elements,domReference:c})),[h.elements,c]),b=ee.useMemo((()=>({...h,...r,refs:m,elements:g,nodeId:t})),[h,m,g,t,r]);return kx((()=>{r.dataRef.current.floatingContext=b;const e=null==u?void 0:u.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),ee.useMemo((()=>({...h,context:b,refs:m,elements:g})),[h,m,g,b])}function SC(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[lC]:t,[cC]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[aC]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var s;o&&[lC,cC].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const MC=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function EC(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:s}=e,{enabled:a=!0,role:l="dialog"}=t,c=fC(),d=(null==(n=i.domReference)?void 0:n.id)||c,u=ee.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(bx)?t:t.querySelector("["+bx+"]")||t:null)?void 0:e.id)||s}),[i.floating,s]),h=null!=(r=MC.get(l))?r:l,p=null!=vC(),f=ee.useMemo((()=>"tooltip"===h||"label"===l?{["aria-"+("label"===l?"labelledby":"describedby")]:o?u:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===h?"dialog":h,"aria-controls":o?u:void 0,..."listbox"===h&&{role:"combobox"},..."menu"===h&&{id:d},..."menu"===h&&p&&{role:"menuitem"},..."select"===l&&{"aria-autocomplete":"none"},..."combobox"===l&&{"aria-autocomplete":"list"}}),[h,u,p,o,d,l]),m=ee.useMemo((()=>{const e={id:u,...h&&{role:h}};return"tooltip"===h||"label"===l?e:{...e,..."menu"===h&&{"aria-labelledby":d}}}),[h,u,d,l]),g=ee.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:u+"-fui-option"}};switch(l){case"select":case"combobox":return{...r,"aria-selected":n}}return{}}),[u,l]);return ee.useMemo((()=>a?{reference:f,floating:m,item:g}:{}),[a,f,m,g])}const TC=e=>Ie("neutral","dark"===e?900:300),OC=e=>ke`
|
|
2199
2212
|
height: auto;
|
|
2200
2213
|
max-height: 32rem;
|
|
2201
2214
|
width: 100%;
|
|
@@ -2203,7 +2216,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2203
2216
|
position: absolute;
|
|
2204
2217
|
z-index: 1000;
|
|
2205
2218
|
background-color: ${(e=>Ie("neutral","dark"===e?800:100))(e)};
|
|
2206
|
-
border: ${_e(100)} solid ${
|
|
2219
|
+
border: ${_e(100)} solid ${TC(e)};
|
|
2207
2220
|
border-radius: ${Be(300)};
|
|
2208
2221
|
box-shadow:
|
|
2209
2222
|
0 0.25rem 0.375rem -0.25rem #0000001a,
|
|
@@ -2241,19 +2254,19 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2241
2254
|
}
|
|
2242
2255
|
}
|
|
2243
2256
|
`}
|
|
2244
|
-
`,
|
|
2257
|
+
`,LC=e=>ke`
|
|
2245
2258
|
display: flex;
|
|
2246
2259
|
align-items: flex-start;
|
|
2247
2260
|
justify-content: space-between;
|
|
2248
2261
|
gap: ${Ve(300)};
|
|
2249
2262
|
padding: ${Ve(200)} ${Ve(300)};
|
|
2250
|
-
border-bottom: ${_e(100)} solid ${
|
|
2263
|
+
border-bottom: ${_e(100)} solid ${TC(e)};
|
|
2251
2264
|
min-height: ${Ve(1e3)};
|
|
2252
2265
|
|
|
2253
2266
|
.ds-map-pop-up-close-button {
|
|
2254
2267
|
margin-top: ${Ve(100)};
|
|
2255
2268
|
}
|
|
2256
|
-
`,
|
|
2269
|
+
`,AC=ke`
|
|
2257
2270
|
height: 100%;
|
|
2258
2271
|
max-height: 25rem;
|
|
2259
2272
|
overflow-y: auto;
|
|
@@ -2261,11 +2274,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2261
2274
|
&:focus-visible {
|
|
2262
2275
|
outline-color: ${Ie("primary",700)};
|
|
2263
2276
|
}
|
|
2264
|
-
`,
|
|
2277
|
+
`,NC=e=>ke`
|
|
2265
2278
|
padding: ${Ve(200)} ${Ve(300)};
|
|
2266
|
-
border-top: ${_e(100)} solid ${
|
|
2279
|
+
border-top: ${_e(100)} solid ${TC(e)};
|
|
2267
2280
|
min-height: 2.75rem;
|
|
2268
|
-
`,
|
|
2281
|
+
`,RC=(e,t,n,r,o,i,s)=>ke`
|
|
2269
2282
|
height: ${e}px;
|
|
2270
2283
|
width: ${t}px;
|
|
2271
2284
|
position: absolute;
|
|
@@ -2273,27 +2286,27 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2273
2286
|
top: ${null!=r?`${r}px`:""};
|
|
2274
2287
|
${`${o}: -${i-1}px`};
|
|
2275
2288
|
background-color: ${Ie("neutral","dark"===s?900:100)};
|
|
2276
|
-
border: ${_e(100)} solid ${
|
|
2277
|
-
`,
|
|
2289
|
+
border: ${_e(100)} solid ${TC(s)};
|
|
2290
|
+
`,DC=({open:e,onOpenChange:t,anchorRef:n,header:r,content:o,footer:i,placement:s="bottom",variant:a="default",offset:l=30,closeOnEscape:c=!0,closeOnOutsideClick:d=!1,labels:u})=>{const h=tg("MapPopUp",u),p=se(null),{refs:f,floatingStyles:m,context:g,middlewareData:b,placement:v}=$C({open:e,onOpenChange:t,placement:s,whileElementsMounted:Ux,middleware:[oC(l),(y={fallbackAxisSideDirection:"start"},{...Zx(y),options:[y,w]}),iC({padding:8}),sC({element:p})]});var y,w;const x=n?.current??null;te.useEffect((()=>{x&&f.setReference(x)}),[x]);const C=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:h=!1,bubbles:p,capture:f}=t,m=yC(),g=Sx("function"==typeof l?l:()=>!1),b="function"==typeof l?g:l,v=ee.useRef(!1),{escapeKey:y,outsidePress:w}=CC(p),{escapeKey:x,outsidePress:C}=CC(f),k=ee.useRef(!1),$=Sx((e=>{var t;if(!n||!s||!a||"Escape"!==e.key)return;if(k.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=m?Cx(m.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),S=Sx((e=>{var t;const n=()=>{var t;$(e),null==(t=yx(e))||t.removeEventListener("keydown",n)};null==(t=yx(e))||t.addEventListener("keydown",n)})),M=Sx((e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const s=v.current;if(v.current=!1,"click"===c&&s)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=yx(e),l="[data-floating-ui-inert]",d=xx(o.floating).querySelectorAll(l);let u=$w(a)?a:null;for(;u&&!Hw(u);){const e=jw(u);if(Hw(e)||!$w(e))break;u=e}if(d.length&&$w(a)&&!a.matches("html,body")&&!vx(a,o.floating)&&Array.from(d).every((e=>!vx(u,e))))return;if(Sw(a)&&O){const t=Hw(a),n=Bw(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),s=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,l=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,d=l&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),u=s&&e.offsetY>a.clientHeight;if(d||u)return}const h=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=m&&Cx(m.nodesRef.current,h).some((t=>{var n;return wx(e,null==(n=t.context)?void 0:n.elements.floating)}));if(wx(e,o.floating)||wx(e,o.domReference)||p)return;const f=m?Cx(m.nodesRef.current,h):[];if(f.length>0){let e=!0;if(f.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),E=Sx((e=>{var t;const n=()=>{var t;M(e),null==(t=yx(e))||t.removeEventListener(c,n)};null==(t=yx(e))||t.addEventListener(c,n)}));ee.useEffect((()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),k.current=!0}function d(){e=window.setTimeout((()=>{k.current=!1}),zw()?5:0)}const u=xx(o.floating);a&&(u.addEventListener("keydown",x?S:$,x),u.addEventListener("compositionstart",l),u.addEventListener("compositionend",d)),b&&u.addEventListener(c,C?E:M,C);let p=[];return h&&($w(o.domReference)&&(p=qw(o.domReference)),$w(o.floating)&&(p=p.concat(qw(o.floating))),!$w(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(qw(o.reference.contextElement)))),p=p.filter((e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)})),p.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{a&&(u.removeEventListener("keydown",x?S:$,x),u.removeEventListener("compositionstart",l),u.removeEventListener("compositionend",d)),b&&u.removeEventListener(c,C?E:M,C),p.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,a,b,c,n,r,h,s,y,w,$,x,S,M,C,E]),ee.useEffect((()=>{i.current.insideReactTree=!1}),[i,b,c]);const T=ee.useMemo((()=>({onKeyDown:$,...d&&{[wC[u]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==u&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[$,r,d,u]),O=ee.useMemo((()=>({onKeyDown:$,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[xC[c]]:()=>{i.current.insideReactTree=!0}})),[$,c,i]);return ee.useMemo((()=>s?{reference:T,floating:O}:{}),[s,T,O])}(g,{escapeKey:c,outsidePress:d}),k=EC(g,{role:"dialog"}),{getFloatingProps:$}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=ee.useCallback((t=>SC(t,e,"reference")),t),i=ee.useCallback((t=>SC(t,e,"floating")),n),s=ee.useCallback((t=>SC(t,e,"item")),r);return ee.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}([C,k]),{x:S,y:M}=b.arrow??{x:null,y:null},E={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]];if(!e)return null;let T=l-1,O=4;return"left"!==E&&"right"!==E||(T=4,O=l-1),be(ye,{children:[be("div",{ref:f.setFloating,style:m,"aria-label":h.dialogAriaLabel,"aria-modal":!0,...$(),css:OC(a),children:[be("div",{css:LC(a),children:[r,ve(jb,{onClick:()=>t(!1),className:"ds-map-pop-up-close-button","aria-label":h.closeLabel})]}),ve("div",{css:AC,children:o}),i?ve("div",{css:NC(a),children:i}):null,ve("div",{ref:p,css:RC(T,O,S,M,E,l,a)})]}),ve("div",{className:"fixed inset-0 z-[999] bg-black/20 backdrop-blur-[1px]",onClick:()=>d&&t(!1)})]})},PC=ke`
|
|
2278
2291
|
display: flex;
|
|
2279
2292
|
flex-direction: column;
|
|
2280
2293
|
gap: ${Ve(200)};
|
|
2281
|
-
`,
|
|
2294
|
+
`,IC=ke`
|
|
2282
2295
|
display: flex;
|
|
2283
2296
|
align-items: center;
|
|
2284
2297
|
justify-content: space-between;
|
|
2285
2298
|
gap: ${Ve(200)};
|
|
2286
|
-
`,
|
|
2299
|
+
`,zC=ke`
|
|
2287
2300
|
display: flex;
|
|
2288
2301
|
align-items: center;
|
|
2289
2302
|
gap: ${Ve(100)};
|
|
2290
|
-
`,
|
|
2303
|
+
`,VC=e=>ke`
|
|
2291
2304
|
font-size: ${ze(300)};
|
|
2292
2305
|
line-height: ${He(500)};
|
|
2293
2306
|
font-weight: 400;
|
|
2294
2307
|
color: ${Ie("neutral",e?100:800)};
|
|
2295
2308
|
padding: 0 ${Ve(100)};
|
|
2296
|
-
`,
|
|
2309
|
+
`,HC=e=>ke`
|
|
2297
2310
|
background-color: transparent;
|
|
2298
2311
|
color: ${Ie("neutral",500)};
|
|
2299
2312
|
|
|
@@ -2318,11 +2331,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2318
2331
|
}
|
|
2319
2332
|
}
|
|
2320
2333
|
}
|
|
2321
|
-
`,
|
|
2334
|
+
`,BC=e=>ke`
|
|
2322
2335
|
color: ${Ie("neutral",e?100:800)};
|
|
2323
|
-
`,
|
|
2336
|
+
`,_C=({open:e,onOpenChange:t,steps:n,activeStepIndex:r,onStepChange:o,onFinish:i,onSkip:s,variant:a="dark",closeOnEscape:l=!0,closeOnOutsideClick:c=!1,labels:d})=>{const u=tg("GuidedTour",d),h=n.length,p=n[r];if(!e||!p||0===h)return null;const f=0===r,m=r===h-1,g="dark"===a,b=()=>{i?i():t(!1)},v=be("div",{children:[be("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.25rem"},children:[p.icon,ve("p",{style:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"bold",marginBottom:p.caption?"0.25rem":0,color:Ie("neutral",g?100:800)},children:p.title})]}),p.caption?ve("p",{style:{fontSize:"0.875rem",lineHeight:"1.25rem",color:Ie("neutral",g?200:700)},children:p.caption}):null]}),y=be("div",{css:PC,children:[be("div",{css:IC,children:[be("div",{css:zC,children:[ve(og,{css:HC(g),icon:ve(hg,{}),"aria-label":u.previousStepLabel,disabled:f,onClick:()=>o(r-1)}),ve("p",{css:VC(g),children:u.stepCounterLabel(r+1,h)}),ve(og,{css:[HC(g),ke`
|
|
2324
2337
|
color: ${Ie("primary",600)};
|
|
2325
|
-
`],icon:ve(ug,{}),"aria-label":m?u.finishLabel:u.nextStepLabel,onClick:m?b:()=>o(r+1)})]}),ve(ng,m?{variant:"primary",size:"small",label:u.startExploringLabel,onClick:b}:{css:
|
|
2338
|
+
`],icon:ve(ug,{}),"aria-label":m?u.finishLabel:u.nextStepLabel,onClick:m?b:()=>o(r+1)})]}),ve(ng,m?{variant:"primary",size:"small",label:u.startExploringLabel,onClick:b}:{css:BC(g),variant:"borderless",size:"small",label:u.skipAllLabel,onClick:()=>{s?s():t(!1)}})]}),p.footer]});return ve(DC,{open:e,onOpenChange:t,anchorRef:p.anchorRef,placement:p.placement,offset:p.offset,variant:a,closeOnEscape:l,closeOnOutsideClick:c,header:v,content:p.content,footer:y,labels:p.labels})},jC=(e,t)=>ke`
|
|
2326
2339
|
height: ${e};
|
|
2327
2340
|
width: ${t};
|
|
2328
2341
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
@@ -2336,7 +2349,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2336
2349
|
height: 100%;
|
|
2337
2350
|
overflow-y: scroll;
|
|
2338
2351
|
}
|
|
2339
|
-
`,
|
|
2352
|
+
`,FC=ke`
|
|
2340
2353
|
padding: ${Ve(400)} ${Ve(300)};
|
|
2341
2354
|
border-bottom: ${_e(100)} solid
|
|
2342
2355
|
${Ie("neutral",300)};
|
|
@@ -2360,17 +2373,17 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2360
2373
|
color: ${Ie("neutral",700)};
|
|
2361
2374
|
text-align: left;
|
|
2362
2375
|
}
|
|
2363
|
-
`,
|
|
2376
|
+
`,qC=ke``,WC=ke`
|
|
2364
2377
|
display: flex;
|
|
2365
2378
|
flex-direction: column;
|
|
2366
2379
|
gap: ${Ve(300)};
|
|
2367
2380
|
padding: ${Ve(300)};
|
|
2368
2381
|
border-bottom: ${_e(100)} solid
|
|
2369
2382
|
${Ie("neutral",300)};
|
|
2370
|
-
`,
|
|
2383
|
+
`,UC=ke`
|
|
2371
2384
|
padding-top: ${Ve(300)};
|
|
2372
2385
|
padding-left: ${Ve(200)};
|
|
2373
|
-
`,
|
|
2386
|
+
`,KC=ke``,GC=e=>ke`
|
|
2374
2387
|
display: flex;
|
|
2375
2388
|
gap: ${Ve(300)};
|
|
2376
2389
|
padding: ${Ve(300)} ${Ve(200)};
|
|
@@ -2395,7 +2408,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2395
2408
|
background-color: ${Ie("primary",100)};
|
|
2396
2409
|
width: 99.8%;
|
|
2397
2410
|
}
|
|
2398
|
-
`,
|
|
2411
|
+
`,ZC=ke`
|
|
2399
2412
|
width: 100%;
|
|
2400
2413
|
max-width: calc(100% - 2.75rem);
|
|
2401
2414
|
|
|
@@ -2426,7 +2439,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2426
2439
|
.ds-base-map-children {
|
|
2427
2440
|
margin-top: 0.625rem;
|
|
2428
2441
|
}
|
|
2429
|
-
`,
|
|
2442
|
+
`,JC=({title:e,caption:t,additionalSettings:n,options:r,onOptionSelected:o,maxHeight:i="25rem",maxWidth:s="16.25rem",labels:a})=>{const l=tg("BaseMap",a),c=se(null),d=se(null);return ce((()=>{const e=c.current,t=d.current;if(!e||!t)return;const n=()=>{e.focus()};if("undefined"!=typeof IntersectionObserver){let e=!1;const r=new IntersectionObserver((([t])=>{t?.isIntersecting?(e||n(),e=!0):e=!1}),{threshold:.01});return r.observe(t),()=>r.disconnect()}const r=window.setTimeout(n,0);return()=>window.clearTimeout(r)}),[]),ve("div",{ref:d,css:jC(i,s),children:be("div",{className:"ds-base-map-scroll-content",children:[be("div",{css:FC,children:[ve("h2",{ref:c,className:"ds-base-map-header-title",tabIndex:-1,children:e}),ve("p",{className:"ds-base-map-header-caption",children:t})]}),be("div",{css:qC,children:[n?ve("div",{css:WC,children:n.map((e=>be("div",{children:[ve(Av,{css:{},checked:e.checked,onCheckedChange:({checked:t})=>e.onCheckedChange({checked:Boolean(t)}),children:e.label}),e.checked&&e.children?ve("div",{css:UC,children:e.children}):null]},e.label)))}):null,r?ve("div",{css:KC,children:r.map((e=>{return be("div",{css:GC(e.active),role:"button","aria-label":`${e.label}${e.caption?`, ${e.caption}`:""}`,onClick:()=>o?.(e),tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),o?.(e))},children:[ve("div",{css:(t=e.imageUrl,ke`
|
|
2430
2443
|
height: ${Ve(800)};
|
|
2431
2444
|
width: ${Ve(800)};
|
|
2432
2445
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
@@ -2434,7 +2447,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2434
2447
|
background-image: url(${t});
|
|
2435
2448
|
background-size: cover;
|
|
2436
2449
|
background-position: center;
|
|
2437
|
-
`)}),be("div",{css:
|
|
2450
|
+
`)}),be("div",{css:ZC,children:[be("div",{className:"ds-base-map-title-container",children:[ve("p",{className:"ds-base-map-title",children:e.label}),e.active?ve(By,{label:l.activeLabel,variant:"warning",size:"small",icon:ve(ag,{})}):null]}),ve("p",{className:"ds-base-map-caption",children:e.caption}),e.active&&e.children?ve("div",{className:"ds-base-map-children",children:e.children}):null]})]},e.label);var t}))}):null]})]})})},XC=(e,t,n,r,o,i="icon")=>{let s="1rem",a=`${_e(300)} solid ${Ie("neutral",100)}`;if("cluster"===i){const e=1.75,t=6,n=.03125;if(a=`${_e(300)} solid ${Ie("neutral",100)}`,void 0!==o&&o>1){const r=e+(o-1)*n;s=`${Math.min(r,t)}rem`}else s=`${e}rem`}else"simple-pin"===i?(a=`${_e(300)} solid ${Ie("error",500)}`,s="1.5rem"):n&&(s="1.75rem",a=`${_e(200)} solid ${Ie("neutral",100)}`);return ke`
|
|
2438
2451
|
text-overflow: ellipsis;
|
|
2439
2452
|
height: ${s};
|
|
2440
2453
|
width: ${s};
|
|
@@ -2475,22 +2488,22 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2475
2488
|
height: 0.875rem;
|
|
2476
2489
|
width: 0.875rem;
|
|
2477
2490
|
}
|
|
2478
|
-
`},
|
|
2491
|
+
`},YC=ie((({ariaLabel:e,icon:t,backgroundColor:n,onClick:r,showFocusState:o,count:i,mode:s,variant:a="icon",labels:l},c)=>{const d=tg("MapMarker",l),u=i?(h=i)>=1e8?"99M+":h>=1e6?`${(h/1e6).toFixed(0)}M`:h>=1e5?`${(h/1e3).toFixed(0)}K`:h.toString():void 0;var h;return ve("div",{css:o?ke`
|
|
2479
2492
|
outline: ${_e(200)} solid ${Ie("primary",700)};
|
|
2480
2493
|
outline-offset: ${Ve(50)};
|
|
2481
2494
|
border-radius: 50%;
|
|
2482
2495
|
box-shadow:
|
|
2483
2496
|
0 0 0 0.125rem ${Ie("neutral",100)},
|
|
2484
2497
|
rgba(0, 0, 0, 0.05) 0 0.125rem 0.125rem 0.25rem;
|
|
2485
|
-
`:"",children:be("button",{type:"button",css:
|
|
2498
|
+
`:"",children:be("button",{type:"button",css:XC(n,!!r,!!t,s,i,a),"aria-label":e||(i?d.clusterAriaLabel(i):"simple-pin"===a?d.pinAriaLabel:d.pointAriaLabel),ref:c,onClick:r,children:["cluster"===a&&u,"icon"===a&&t]})})})),QC=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:o,variant:i="cluster"})=>X(YC,{count:r,mode:o,onClick:e,ref:t,showFocusState:n,variant:i}),ek=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:o,variant:i="simple-pin"})=>X(YC,{count:r,mode:o,onClick:e,ref:t,showFocusState:n,variant:i}),tk={Paper:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(YC,{ariaLabel:e||"paper icon",icon:X(Lg,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t,ref:n,showFocusState:r}),Drop:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(YC,{ariaLabel:e||"drop icon",icon:X(Ag,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t,ref:n,showFocusState:r}),Plant:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(YC,{ariaLabel:e||"plant icon",icon:X(Ng,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t,ref:n,showFocusState:r}),Point:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(YC,{ariaLabel:e||"point icon",backgroundColor:Ie("primary",500),onClick:t,ref:n,showFocusState:r})},nk=ke`
|
|
2486
2499
|
background-color: ${Ie("neutral",100)};
|
|
2487
|
-
`,
|
|
2500
|
+
`,rk=ke`
|
|
2488
2501
|
padding: ${Ve(400)} ${Ve(400)} 0
|
|
2489
2502
|
${Ve(400)};
|
|
2490
2503
|
&:focus-visible {
|
|
2491
2504
|
outline-color: ${Ie("primary",700)};
|
|
2492
2505
|
}
|
|
2493
|
-
`,
|
|
2506
|
+
`,ok=ke`
|
|
2494
2507
|
font-size: ${ze(400)};
|
|
2495
2508
|
font-weight: 700;
|
|
2496
2509
|
line-height: ${He(600)};
|
|
@@ -2500,14 +2513,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2500
2513
|
align-items: center;
|
|
2501
2514
|
text-align: left;
|
|
2502
2515
|
gap: 0.625rem;
|
|
2503
|
-
`,
|
|
2516
|
+
`,ik=ke`
|
|
2504
2517
|
font-size: ${ze(200)};
|
|
2505
2518
|
font-weight: 400;
|
|
2506
2519
|
line-height: ${He(400)};
|
|
2507
2520
|
text-align: left;
|
|
2508
2521
|
color: ${Ie("neutral",700)};
|
|
2509
2522
|
margin-bottom: ${Ve(200)};
|
|
2510
|
-
`,
|
|
2523
|
+
`,sk=ke`
|
|
2511
2524
|
width: 100%;
|
|
2512
2525
|
padding: ${Ve(400)} 0;
|
|
2513
2526
|
border-bottom: ${_e(100)} solid
|
|
@@ -2516,32 +2529,32 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2516
2529
|
&:last-of-type {
|
|
2517
2530
|
border-bottom: none;
|
|
2518
2531
|
}
|
|
2519
|
-
`,
|
|
2532
|
+
`,ak=ke`
|
|
2520
2533
|
display: flex;
|
|
2521
2534
|
align-items: flex-start;
|
|
2522
2535
|
justify-content: space-between;
|
|
2523
|
-
`,
|
|
2536
|
+
`,lk=ke`
|
|
2524
2537
|
display: flex;
|
|
2525
2538
|
flex-direction: column;
|
|
2526
|
-
`,
|
|
2539
|
+
`,ck=e=>ke`
|
|
2527
2540
|
font-size: ${ze(400)};
|
|
2528
2541
|
font-weight: 400;
|
|
2529
2542
|
line-height: ${He(600)};
|
|
2530
2543
|
text-align: left;
|
|
2531
2544
|
color: ${Ie("neutral",e?500:800)};
|
|
2532
|
-
`,
|
|
2545
|
+
`,dk=e=>ke`
|
|
2533
2546
|
font-size: ${ze(300)};
|
|
2534
2547
|
font-weight: 400;
|
|
2535
2548
|
line-height: ${He(500)};
|
|
2536
2549
|
text-align: left;
|
|
2537
2550
|
color: ${Ie("neutral",e?500:700)};
|
|
2538
|
-
`,
|
|
2551
|
+
`,uk=({name:e,label:t,caption:n,showInfoButton:o=!0,infoButtonLabel:i,variant:s="switch",disabled:a,onInfoClick:l,isDefaultSelected:c=!1,onChange:d,labels:u})=>{const h=tg("LayerItem",u),p="switch"===s;return be("div",{css:sk,children:[be("div",p?{css:ak,children:[be("div",{css:lk,children:[ve("p",{css:ck(a),"aria-label":t,"aria-disabled":a,children:t}),ve("p",{"aria-label":n,css:dk(a),children:n})]}),ve(hy,{"aria-label":`${t}, ${n}`,name:e,disabled:a,defaultChecked:c,onChange:d})]}:{style:{display:"flex",flexDirection:"column"},children:[ve(Zv,{value:e,disabled:a,fontSize:"1rem",color:"var(--chakra-colors-neutral-800)",children:t}),ve("p",{style:{marginLeft:"1.75rem"},css:dk(a),children:n})]}),o?ve(r,{display:"flex",justifyContent:"flex-start",marginTop:"0.5rem",marginLeft:p?0:"1.75rem",children:ve(ng,{variant:"secondary",label:i??h.aboutDataLabel,rightIcon:ve(cg,{}),size:"small",onClick:l,disabled:a})}):null]})},hk=({label:e,caption:t,value:n,layerItems:o,onChangeForRadioVariant:i,labels:s})=>{const a=tg("LayerGroup",s),[l,c]=ae({}),[d,u]=ae((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(o));ce((()=>{let t={...l};o.forEach((n=>{n.isDefaultSelected&&(t={...t,["radio"===n.variant?e:n.name]:n.isDefaultSelected})})),c(t)}),[]);const h=(e,t,n,r)=>{const o={...l,[e]:t};c(o),n&&n(e,t,r)},p=Object.values(l).filter((e=>!0===e)).length,f=a.groupAriaLabel(e,p,t);return be(A.Item,{value:n,width:"100%",children:[be(A.ItemTrigger,{css:rk,alignItems:"flex-start","aria-label":f,children:[be(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[be("span",{css:ok,children:[e,ve(By,{label:a.activeTagLabel(p),size:"small",variant:p>0?"success":"info-grey"})]}),ve("div",{css:ik,children:t})]}),ve(A.ItemIndicator,{display:"flex",children:ve(dg,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),ve(A.ItemContent,{paddingLeft:"1rem",paddingRight:"1rem",children:ve(Jv,{name:e,value:d,customGap:"0",onChange:(e,t)=>{u(t),h(e,!!t,i,t)},children:o.map((e=>ve(uk,{...e,onChange:(t,n)=>h(t,n,e.onChange)},e.label)))})})]})},pk=({children:e,defaultValue:t,...n})=>ve("div",{css:nk,style:{width:"100%"},children:ve(A.Root,{css:{},defaultValue:t,multiple:!0,...n,children:e})}),fk=ke`
|
|
2539
2552
|
margin-bottom: ${Ve(400)};
|
|
2540
2553
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2541
2554
|
border-radius: ${Be(300)};
|
|
2542
2555
|
box-shadow: 0 1px 0.125rem 0 #0000000d;
|
|
2543
2556
|
background-color: ${Ie("neutral",100)};
|
|
2544
|
-
`,
|
|
2557
|
+
`,mk=ke`
|
|
2545
2558
|
padding: 0.375rem ${Ve(200)};
|
|
2546
2559
|
align-items: center;
|
|
2547
2560
|
background-color: ${Ie("neutral",100)};
|
|
@@ -2565,12 +2578,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2565
2578
|
0 0 0 0.125rem ${Ie("neutral",100)},
|
|
2566
2579
|
rgba(0, 0, 0, 0.05) 0 0.125rem 0.125rem 0.25rem;
|
|
2567
2580
|
}
|
|
2568
|
-
`,
|
|
2581
|
+
`,gk=ke`
|
|
2569
2582
|
font-size: ${ze(200)};
|
|
2570
2583
|
font-weight: 700;
|
|
2571
2584
|
line-height: ${He(400)};
|
|
2572
2585
|
color: ${Ie("neutral",800)};
|
|
2573
|
-
`,
|
|
2586
|
+
`,bk=ke`
|
|
2574
2587
|
padding: ${Ve(300)} ${Ve(200)};
|
|
2575
2588
|
display: flex;
|
|
2576
2589
|
flex-direction: column;
|
|
@@ -2587,7 +2600,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2587
2600
|
margin-bottom: 0;
|
|
2588
2601
|
}
|
|
2589
2602
|
}
|
|
2590
|
-
`,
|
|
2603
|
+
`,vk=({label:e,children:t,openedByDefault:n})=>ve("div",{children:ve(A.Root,{defaultValue:n?[e]:[],multiple:!0,children:be(A.Item,{css:fk,value:e,children:[be(A.ItemTrigger,{css:mk,children:[ve(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:ve("p",{css:gk,children:e})}),ve(A.ItemIndicator,{display:"flex",children:ve(dg,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),ve(A.ItemContent,{css:bk,children:pe.map(t,(e=>ve("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),yk=ke`
|
|
2591
2604
|
padding: ${Ve(300)};
|
|
2592
2605
|
padding-bottom: ${Ve(500)};
|
|
2593
2606
|
display: flex;
|
|
@@ -2595,7 +2608,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2595
2608
|
border-bottom: ${_e(100)} solid
|
|
2596
2609
|
${Ie("neutral",300)};
|
|
2597
2610
|
background-color: ${Ie("neutral",100)};
|
|
2598
|
-
`,
|
|
2611
|
+
`,wk=ke`
|
|
2599
2612
|
display: flex;
|
|
2600
2613
|
flex-direction: column;
|
|
2601
2614
|
|
|
@@ -2604,44 +2617,69 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2604
2617
|
fill: ${Ie("neutral",700)} !important;
|
|
2605
2618
|
}
|
|
2606
2619
|
}
|
|
2607
|
-
`,
|
|
2620
|
+
`,xk=ke`
|
|
2608
2621
|
display: flex;
|
|
2609
2622
|
align-items: flex-start;
|
|
2610
2623
|
justify-content: space-between;
|
|
2611
2624
|
gap: ${Ve(300)};
|
|
2612
2625
|
margin-bottom: ${Ve(400)};
|
|
2613
|
-
`,
|
|
2626
|
+
`,Ck=ke`
|
|
2627
|
+
display: flex;
|
|
2628
|
+
flex-direction: column;
|
|
2629
|
+
gap: ${Ve(400)};
|
|
2630
|
+
|
|
2631
|
+
> :not(:last-child) {
|
|
2632
|
+
margin-bottom: 0;
|
|
2633
|
+
}
|
|
2634
|
+
`,kk=ke`
|
|
2614
2635
|
font-size: ${ze(400)};
|
|
2615
2636
|
line-height: ${He(600)};
|
|
2616
2637
|
font-weight: 400;
|
|
2617
2638
|
text-align: left;
|
|
2618
2639
|
color: ${Ie("neutral",900)};
|
|
2619
|
-
|
|
2640
|
+
`,$k=ke`
|
|
2620
2641
|
font-size: ${ze(300)};
|
|
2621
2642
|
line-height: ${He(500)};
|
|
2622
2643
|
font-weight: 400;
|
|
2623
2644
|
text-align: left;
|
|
2624
2645
|
color: ${Ie("neutral",700)};
|
|
2625
|
-
`,
|
|
2646
|
+
`,Sk=ke`
|
|
2626
2647
|
display: flex;
|
|
2627
2648
|
justify-content: space-between;
|
|
2628
2649
|
|
|
2629
2650
|
button {
|
|
2630
2651
|
width: 46%;
|
|
2631
2652
|
}
|
|
2632
|
-
|
|
2653
|
+
`,Mk=ke`
|
|
2633
2654
|
width: 14.625rem;
|
|
2634
2655
|
border: ${_e(100)} solid ${Ie("neutral",600)};
|
|
2635
2656
|
border-radius: ${Be(300)};
|
|
2636
|
-
`,
|
|
2657
|
+
`,Ek=ke`
|
|
2658
|
+
.ds-opacity-control-trigger {
|
|
2659
|
+
&:not(:disabled):not([data-disabled])[data-state='open'],
|
|
2660
|
+
&:not(:disabled):not([data-disabled])[aria-expanded='true'],
|
|
2661
|
+
&:not(:disabled):not([data-disabled])[data-popup-open],
|
|
2662
|
+
&:not(:disabled):not([data-disabled])[data-state='open']:hover,
|
|
2663
|
+
&:not(:disabled):not([data-disabled])[aria-expanded='true']:hover,
|
|
2664
|
+
&:not(:disabled):not([data-disabled])[data-popup-open]:hover {
|
|
2665
|
+
border-radius: ${Be(300)};
|
|
2666
|
+
border: ${_e(100)} solid
|
|
2667
|
+
${Ie("neutral",600)};
|
|
2668
|
+
background-color: ${Ie("neutral",200)};
|
|
2669
|
+
box-shadow:
|
|
2670
|
+
0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.1),
|
|
2671
|
+
0 0.125rem 0.25rem -0.125rem rgba(0, 0, 0, 0.1);
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
`,Tk=ke`
|
|
2637
2675
|
padding: ${Ve(300)};
|
|
2638
|
-
`,
|
|
2676
|
+
`,Ok=ke`
|
|
2639
2677
|
font-size: ${ze(300)};
|
|
2640
2678
|
line-height: ${He(500)};
|
|
2641
2679
|
font-weight: 400;
|
|
2642
2680
|
text-align: left;
|
|
2643
2681
|
color: ${Ie("neutral",900)};
|
|
2644
|
-
`,
|
|
2682
|
+
`,Lk=ke`
|
|
2645
2683
|
display: flex;
|
|
2646
2684
|
align-items: center;
|
|
2647
2685
|
gap: ${Ve(300)};
|
|
@@ -2651,8 +2689,15 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2651
2689
|
margin: 0;
|
|
2652
2690
|
|
|
2653
2691
|
.chakra-input {
|
|
2654
|
-
|
|
2692
|
+
display: flex;
|
|
2693
|
+
height: ${Ve(700)};
|
|
2694
|
+
min-height: ${Ve(700)};
|
|
2695
|
+
padding: ${Ve(100)} ${Ve(200)};
|
|
2696
|
+
align-items: center;
|
|
2697
|
+
gap: ${Ve(200)};
|
|
2698
|
+
align-self: stretch;
|
|
2655
2699
|
width: ${Ve(1200)};
|
|
2700
|
+
box-sizing: border-box;
|
|
2656
2701
|
}
|
|
2657
2702
|
}
|
|
2658
2703
|
|
|
@@ -2662,20 +2707,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2662
2707
|
margin-top: 1.125rem;
|
|
2663
2708
|
width: 100%;
|
|
2664
2709
|
}
|
|
2665
|
-
`,
|
|
2710
|
+
`,Ak=({defaultValue:e,onOpacityChanged:t,labels:n})=>{const r=tg("OpacityControl",n),[o,i]=ae(e);return ve("span",{css:Ek,style:{display:"contents"},children:be(u.Root,{positioning:{placement:"bottom-end"},children:[ve(u.Trigger,{asChild:!0,children:ve(ng,{className:"ds-opacity-control-trigger",label:r.opacityButtonLabel,size:"small",variant:"secondary",leftIcon:ve(cg,{})})}),ve(u.Positioner,{children:ve(u.Content,{css:Mk,children:be(u.Body,{css:Tk,children:[ve("p",{css:Ok,children:r.opacityHeading}),be("div",{css:Lk,children:[be("div",{style:{position:"relative"},children:[ve(Nb,{"aria-label":r.opacityAriaLabel,min:"0",max:"100",value:o,onChange:e=>{const n=e.target.value||"0";let r=parseInt(n,10);r=Number.isNaN(r)?0:r,r=r<0?0:r,r=r>100?100:r,i(r),t&&t(r)},className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),ve("p",{style:{position:"absolute",top:"50%",right:"0.3125rem",transform:"translateY(-50%)",margin:0},children:r.percentSuffix})]}),ve(dy,{min:0,max:100,value:[o],onValueChangeEnd:({value:e})=>{i(e[0]),t&&t(e[0])}})]})]})})})]})})},Nk=({layerName:e,dataUnit:t,onDrag:n,onUpClick:r,onDownClick:o,onRemoveClick:i,children:s,onInfoClick:a,onOpacityChanged:l,labels:c})=>{const d=tg("LegendItem",c);return be("div",{css:yk,children:[ve("div",{css:wk,children:be("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[ve(og,{icon:ve(dg,{rotate:"180"}),"aria-label":d.upLabel,onClick:r}),ve(og,{icon:ve(dg,{}),"aria-label":d.downLabel,onClick:o})]})}),be("div",{style:{width:"100%"},children:[be("div",{css:xk,children:[be("div",{children:[ve("h3",{css:kk,children:e}),ve("p",{css:$k,children:t})]}),ve(ng,{label:d.removeLabel,size:"small",variant:"secondary",rightIcon:ve(pg,{}),onClick:i})]}),s?ve("div",{css:Ck,children:s}):null,be("div",{css:Sk,children:[ve(ng,{label:d.aboutDataLabel,size:"small",variant:"secondary",leftIcon:ve(cg,{}),onClick:a}),ve(Ak,{defaultValue:80,onOpacityChanged:l})]})]})]})},Rk=e=>ke`
|
|
2666
2711
|
width: ${Ve(500)};
|
|
2667
2712
|
height: ${Ve(500)};
|
|
2668
2713
|
border-radius: 50%;
|
|
2669
2714
|
background-color: ${e};
|
|
2670
2715
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
2671
|
-
`,
|
|
2716
|
+
`,Dk=e=>ke`
|
|
2672
2717
|
width: ${Ve(500)};
|
|
2673
2718
|
height: ${Ve(200)};
|
|
2674
2719
|
border-radius: ${Be(200)};
|
|
2675
2720
|
background-color: ${e};
|
|
2676
2721
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
2677
2722
|
margin-top: 0.375rem;
|
|
2678
|
-
`,
|
|
2723
|
+
`,Pk=e=>ke`
|
|
2679
2724
|
width: ${Ve(500)};
|
|
2680
2725
|
height: ${Ve(500)};
|
|
2681
2726
|
border-radius: 50%;
|
|
@@ -2688,26 +2733,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2688
2733
|
width: 0.625rem;
|
|
2689
2734
|
height: 0.625rem;
|
|
2690
2735
|
}
|
|
2691
|
-
`,
|
|
2736
|
+
`,Ik=ke`
|
|
2692
2737
|
width: 100%;
|
|
2693
2738
|
display: flex;
|
|
2694
2739
|
justify-content: space-between;
|
|
2695
2740
|
gap: ${Ve(200)};
|
|
2696
2741
|
margin-bottom: ${Ve(400)};
|
|
2697
|
-
`,
|
|
2742
|
+
`,zk=ke`
|
|
2698
2743
|
display: flex;
|
|
2699
2744
|
gap: ${Ve(200)};
|
|
2700
|
-
`,
|
|
2745
|
+
`,Vk=ke`
|
|
2701
2746
|
font-size: ${ze(300)};
|
|
2702
2747
|
line-height: ${He(500)};
|
|
2703
2748
|
font-weight: 400;
|
|
2704
2749
|
color: ${Ie("neutral",800)};
|
|
2705
|
-
`,
|
|
2750
|
+
`,Hk=ke`
|
|
2706
2751
|
font-size: ${ze(200)};
|
|
2707
2752
|
line-height: ${He(400)};
|
|
2708
2753
|
font-weight: 400;
|
|
2709
2754
|
color: ${Ie("neutral",700)};
|
|
2710
|
-
`,
|
|
2755
|
+
`,Bk=ke`
|
|
2711
2756
|
button {
|
|
2712
2757
|
height: 1.5625rem;
|
|
2713
2758
|
font-size: ${ze(200)};
|
|
@@ -2716,12 +2761,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2716
2761
|
color: ${Ie("neutral",600)};
|
|
2717
2762
|
padding: 0 0.625rem;
|
|
2718
2763
|
}
|
|
2719
|
-
`,
|
|
2764
|
+
`,_k=({type:e,label:t,caption:n,color:r,onActionClick:o,showActionButton:i,pointIcon:s=ve(Og,{color:"#006D2C"}),ariaLabelType:a="",labels:l})=>{const c=tg("QualitativeAttribute",l),[d,u]=ae(!0),h=he(),p=he(),f="raster"===e,m="line"===e,g="point"===e,b=he(),v=oe((()=>{const e=d?c.visibleText:c.hiddenText;let r=a??`${a},`;return m&&(r=c.linePrefix),c.currentlyTemplate(String(t),n,r,e)}),[d,e,t,n,a,c]),y=d?c.hideLabel:c.showLabel;return be("div",{css:Ik,children:[ve("p",{id:b,css:{position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,clip:"rect(0 0 0 0)",overflow:"hidden"},children:v}),be("div",{css:zk,children:[be("div",{children:[f&&ve("div",{css:Rk(r)}),m&&ve("div",{css:Dk(r)}),g&&ve("div",{css:Pk(r),children:s})]}),be("div",{children:[ve("p",{id:h,css:Vk,children:t}),n?ve("p",{id:p,css:Hk,children:n}):null]})]}),o&&i?ve("div",{css:Bk,children:ve(ng,{type:"button",variant:"borderless",label:String(y),rightIcon:ve(d?gg:mg,{}),"aria-pressed":d,"aria-labelledby":`${b} ${h}`,onClick:()=>{u((e=>!e)),o?.()}})}):null]})},jk=ke`
|
|
2720
2765
|
width: 100%;
|
|
2721
2766
|
display: flex;
|
|
2722
2767
|
flex-direction: column;
|
|
2723
2768
|
margin-bottom: ${Ve(400)};
|
|
2724
|
-
`,
|
|
2769
|
+
`,Fk=ke`
|
|
2725
2770
|
height: ${Ve(500)};
|
|
2726
2771
|
width: 100%;
|
|
2727
2772
|
margin-bottom: ${Ve(200)};
|
|
@@ -2739,34 +2784,34 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2739
2784
|
border-top-right-radius: 0.1875rem;
|
|
2740
2785
|
border-bottom-right-radius: 0.1875rem;
|
|
2741
2786
|
}
|
|
2742
|
-
`,
|
|
2787
|
+
`,qk=ke`
|
|
2743
2788
|
display: flex;
|
|
2744
2789
|
justify-content: space-between;
|
|
2745
2790
|
align-items: flex-start;
|
|
2746
|
-
`,
|
|
2791
|
+
`,Wk=ke`
|
|
2747
2792
|
width: 100%;
|
|
2748
2793
|
font-size: ${ze(200)};
|
|
2749
2794
|
line-height: ${He(400)};
|
|
2750
2795
|
font-weight: 400;
|
|
2751
2796
|
color: ${Ie("neutral",800)};
|
|
2752
2797
|
text-align: center;
|
|
2753
|
-
`,
|
|
2798
|
+
`,Uk=ke`
|
|
2754
2799
|
font-size: ${ze(200)};
|
|
2755
2800
|
line-height: ${He(400)};
|
|
2756
2801
|
font-weight: 400;
|
|
2757
2802
|
color: ${Ie("neutral",700)};
|
|
2758
2803
|
text-align: center;
|
|
2759
|
-
`,
|
|
2804
|
+
`,Kk=e=>{const t=e.map(((t,n)=>`${n/(e.length-1)*100}%`));return`linear-gradient(to right, ${e.map(((e,n)=>`${e} ${t[n]}`)).join(", ")})`},Gk=({colors:e,values:t,subLabels:n,isGradient:r})=>{return be("div",{css:jk,children:[ve("div",r?{css:(o=Kk(e),ke`
|
|
2760
2805
|
height: ${Ve(500)};
|
|
2761
2806
|
width: 100%;
|
|
2762
2807
|
margin-bottom: ${Ve(200)};
|
|
2763
2808
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2764
2809
|
border-radius: ${Be(300)};
|
|
2765
2810
|
${o?`background: ${o};`:""}
|
|
2766
|
-
`)}:{css:
|
|
2811
|
+
`)}:{css:Fk,children:e?.map(((e,n)=>ve("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),ve("div",{css:qk,children:t?.map((e=>ve("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:ve("p",{css:Wk,children:e})},e)))}),n&&n.length?ve("div",{css:qk,children:n.map((e=>ve("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:ve("p",{css:Uk,style:{width:"100%"},children:e})},e)))}):null]});var o},Zk=ke`
|
|
2767
2812
|
display: flex;
|
|
2768
2813
|
flex-direction: column;
|
|
2769
|
-
`,
|
|
2814
|
+
`,Jk=ke`
|
|
2770
2815
|
display: flex;
|
|
2771
2816
|
gap: ${Ve(400)};
|
|
2772
2817
|
align-items: center;
|
|
@@ -2774,46 +2819,46 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2774
2819
|
.ds-select-input-container {
|
|
2775
2820
|
margin-bottom: 0rem;
|
|
2776
2821
|
}
|
|
2777
|
-
`,
|
|
2822
|
+
`,Xk=ke`
|
|
2778
2823
|
font-size: ${ze(500)};
|
|
2779
2824
|
line-height: ${He(700)};
|
|
2780
2825
|
font-weight: 400;
|
|
2781
2826
|
color: ${Ie("neutral",700)};
|
|
2782
|
-
`,
|
|
2827
|
+
`,Yk=ke`
|
|
2783
2828
|
font-size: ${ze(500)};
|
|
2784
2829
|
line-height: ${He(700)};
|
|
2785
2830
|
font-weight: 400;
|
|
2786
2831
|
color: ${Ie("neutral",700)};
|
|
2787
|
-
`,
|
|
2832
|
+
`,Qk=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:r,showItemCountText:o,labels:i})=>{const s=tg("ItemCount",i),a=0===n?0:(t-1)*e+1,l=0===n?0:Math.min(a+e-1,n);return be(ye,{children:[ve("div",{css:Zk,children:be("div",{css:Jk,children:[ve("div",{style:{width:"5rem"},children:ve(Fy,{defaultValue:[`${e}`],items:[{label:"10",value:"10"},{label:"20",value:"20"},{label:"50",value:"50"},{label:"100",value:"100"}],onChange:e=>{r&&r(parseInt(e[0],10))},required:!0})}),ve("p",{css:Xk,children:s.perPageLabel})]})}),o?ve("p",{css:Yk,children:s.showingLabel(a,l,n)}):null]})},e$=e=>ke`
|
|
2788
2833
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2789
2834
|
${e?"border: none;":""}
|
|
2790
|
-
`,
|
|
2835
|
+
`,t$=e=>ke`
|
|
2791
2836
|
color: ${Ie("neutral",e?400:700)};
|
|
2792
2837
|
line-height: ${He(500)};
|
|
2793
2838
|
white-space: nowrap;
|
|
2794
2839
|
overflow: hidden;
|
|
2795
2840
|
text-overflow: ellipsis;
|
|
2796
|
-
`,
|
|
2841
|
+
`,n$=ke`
|
|
2797
2842
|
font-weight: 400;
|
|
2798
2843
|
color: ${Ie("neutral",700)};
|
|
2799
2844
|
white-space: nowrap;
|
|
2800
2845
|
overflow: hidden;
|
|
2801
2846
|
text-overflow: ellipsis;
|
|
2802
|
-
`,
|
|
2847
|
+
`,r$=ke`
|
|
2803
2848
|
color: ${Ie("neutral",700)};
|
|
2804
2849
|
text-align: right;
|
|
2805
2850
|
font-weight: 700;
|
|
2806
2851
|
white-space: nowrap;
|
|
2807
2852
|
overflow: hidden;
|
|
2808
2853
|
text-overflow: ellipsis;
|
|
2809
|
-
`,
|
|
2854
|
+
`,o$=e=>ke`
|
|
2810
2855
|
width: ${Ve(400)};
|
|
2811
2856
|
height: ${Ve(400)};
|
|
2812
2857
|
|
|
2813
2858
|
path {
|
|
2814
2859
|
fill: ${Ie("neutral",e?400:700)};
|
|
2815
2860
|
}
|
|
2816
|
-
`,
|
|
2861
|
+
`,i$=ke`
|
|
2817
2862
|
display: flex;
|
|
2818
2863
|
align-items: center;
|
|
2819
2864
|
justify-content: space-between;
|
|
@@ -2823,7 +2868,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2823
2868
|
${Ie("neutral",200)};
|
|
2824
2869
|
width: 100%;
|
|
2825
2870
|
text-align: left;
|
|
2826
|
-
`,
|
|
2871
|
+
`,s$=ke`
|
|
2827
2872
|
display: flex;
|
|
2828
2873
|
align-items: center;
|
|
2829
2874
|
justify-content: space-between;
|
|
@@ -2859,19 +2904,19 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2859
2904
|
&:disabled {
|
|
2860
2905
|
background-color: ${Ie("neutral",200)};
|
|
2861
2906
|
}
|
|
2862
|
-
`,
|
|
2907
|
+
`,a$=({id:e,label:t,caption:n,icon:o,value:s,variant:a="data",onItemClick:l,isExpanded:c=!1,ariaLabel:d,disabled:u=!1,isHighlighted:p=!1})=>{const f=("navigation"===a||"select"===a)&&!!l,m=f?N.button:N.div,g="string"==typeof t||"number"==typeof t||"bigint"==typeof t?String(t):"",b="string"==typeof s||"number"==typeof s||"bigint"==typeof s?String(s):"",v=d||("data"===a&&b?`${g}, ${b}`:g);return be(m,{id:e,css:["data"===a?i$:s$,p&&{backgroundColor:Ie("neutral",200)}],onClick:f?l:void 0,tabIndex:f?0:void 0,onKeyDown:e=>{f&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),l?.()))},role:f?"button":void 0,"aria-expanded":f?c:void 0,"aria-label":v,disabled:u,"data-selected":p||void 0,"data-highlighted":p||void 0,children:[be(R,{gap:3,flex:"1",overflow:"hidden",children:[o,be(r,{flex:"1",minWidth:0,children:[ve(h,{fontWeight:"data"===a?"400":"700",css:t$(u),children:t}),n&&ve(h,{css:n$,children:n})]})]}),"data"===a&&s&&ve(h,{css:r$,children:s}),"navigation"===a&&ve(i,{as:ug,boxSize:4,"aria-hidden":"true",css:o$(u)})]})},l$=({items:e,noBorder:t,highlightedIndex:n})=>ve(r,{css:e$(t),children:e.map(((e,t)=>ve(a$,{id:e.id,icon:e.icon,label:e.label,caption:e.caption,value:e.value,variant:e.variant??"data",onItemClick:e.onItemClick,isHighlighted:t===n||e.isHighlighted},e.id??e.label)))}),c$=ke`
|
|
2863
2908
|
background: transparent;
|
|
2864
2909
|
svg {
|
|
2865
2910
|
path {
|
|
2866
2911
|
fill: ${Ie("primary",500)};
|
|
2867
2912
|
}
|
|
2868
2913
|
}
|
|
2869
|
-
`,
|
|
2914
|
+
`,d$=ke`
|
|
2870
2915
|
font-size: ${ze(400)};
|
|
2871
2916
|
line-height: ${He(600)};
|
|
2872
2917
|
font-weight: 700;
|
|
2873
2918
|
color: ${Ie("neutral",900)};
|
|
2874
|
-
`,
|
|
2919
|
+
`,u$=ke`
|
|
2875
2920
|
span {
|
|
2876
2921
|
height: ${Ve(500)};
|
|
2877
2922
|
width: ${Ve(500)};
|
|
@@ -2881,7 +2926,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2881
2926
|
background-color: transparent;
|
|
2882
2927
|
}
|
|
2883
2928
|
}
|
|
2884
|
-
`,
|
|
2929
|
+
`,h$=ke`
|
|
2885
2930
|
font-size: ${ze(400)};
|
|
2886
2931
|
line-height: ${He(600)};
|
|
2887
2932
|
font-weight: 400;
|
|
@@ -2891,7 +2936,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2891
2936
|
color: ${Ie("neutral",900)};
|
|
2892
2937
|
font-weight: 700;
|
|
2893
2938
|
}
|
|
2894
|
-
`,
|
|
2939
|
+
`,p$=({totalItems:e,pageSize:t,currentPage:n,variant:r="default",onPageChange:o,labels:i})=>{const s=tg("Pagination",i),a="compact"===r||"compact-with-buttons"===r,l="compact-with-buttons"===r;return ve("div",{"aria-label":s.paginationLabel,children:ve(D.Root,{count:e,pageSize:t,defaultPage:n,onPageChange:e=>o&&o(e.page),siblingCount:1,children:be(P,{gap:"2",size:"sm",variant:"ghost",css:u$,children:[ve(D.PrevTrigger,{asChild:!0,children:l?ve(ng,{variant:"secondary",label:s.previousLabel,size:"small",leftIcon:ve(dg,{style:{rotate:"90deg"},color:"var(--chakra-colors-primary-500)"})}):ve(og,{css:c$,style:{rotate:"90deg"},icon:ve(dg,{}),"aria-label":s.previousPageLabel})}),a?ve(D.PageText,{css:d$}):ve(D.Items,{render:e=>ve(og,{css:h$,"aria-label":s.pageLabel(e.value),icon:ve("p",{children:e.value})})}),ve(D.NextTrigger,{asChild:!0,children:l?ve(ng,{variant:"secondary",label:s.nextLabel,size:"small",rightIcon:ve(dg,{style:{rotate:"270deg"},color:"var(--chakra-colors-primary-500)"})}):ve(og,{css:c$,style:{rotate:"270deg"},icon:ve(dg,{}),"aria-label":s.nextPageLabel})})]})})})},f$=(e,t)=>ke`
|
|
2895
2940
|
border: ${"full-width"===e?"none":`${_e(100)} solid ${Ie("neutral",300)}`};
|
|
2896
2941
|
border-radius: ${Be(200)};
|
|
2897
2942
|
box-shadow: ${"full-width"===e?"none":`0 0 0 0.0625rem ${Ie("neutral",300)}`};
|
|
@@ -2949,7 +2994,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2949
2994
|
[data-sticky-last='true'] {
|
|
2950
2995
|
border-inline-end: 0.0625rem solid ${Ie("neutral",400)};
|
|
2951
2996
|
}
|
|
2952
|
-
`,
|
|
2997
|
+
`,m$=e=>ke`
|
|
2953
2998
|
tr {
|
|
2954
2999
|
background-color: ${Ie("neutral","full-width"===e?100:200)};
|
|
2955
3000
|
|
|
@@ -2958,14 +3003,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2958
3003
|
box-shadow: inset 0 -0.0625rem 0 ${Ie("neutral",300)};
|
|
2959
3004
|
}
|
|
2960
3005
|
}
|
|
2961
|
-
`,
|
|
3006
|
+
`,g$=ke`
|
|
2962
3007
|
font-size: ${ze(400)};
|
|
2963
3008
|
line-height: ${He(600)};
|
|
2964
3009
|
font-weight: 700;
|
|
2965
3010
|
color: ${Ie("neutral",800)};
|
|
2966
3011
|
display: flex;
|
|
2967
3012
|
align-items: center;
|
|
2968
|
-
`,
|
|
3013
|
+
`,b$=ke`
|
|
2969
3014
|
height: ${He(600)};
|
|
2970
3015
|
width: 0.625rem;
|
|
2971
3016
|
display: flex;
|
|
@@ -2987,20 +3032,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2987
3032
|
}
|
|
2988
3033
|
}
|
|
2989
3034
|
}
|
|
2990
|
-
`,
|
|
3035
|
+
`,v$=e=>ke`
|
|
2991
3036
|
svg {
|
|
2992
3037
|
path {
|
|
2993
3038
|
fill: ${Ie("accessible",e?"controls-on-neutral-lights":100)} !important;
|
|
2994
3039
|
}
|
|
2995
3040
|
}
|
|
2996
|
-
`,
|
|
3041
|
+
`,y$=ke`
|
|
2997
3042
|
margin-top: ${Ve(300)};
|
|
2998
3043
|
display: flex;
|
|
2999
3044
|
justify-content: space-between;
|
|
3000
3045
|
align-items: center;
|
|
3001
|
-
`,
|
|
3046
|
+
`,w$=ke`
|
|
3002
3047
|
margin-top: 0.5625rem;
|
|
3003
|
-
`,
|
|
3048
|
+
`,x$=e=>ke`
|
|
3004
3049
|
tr {
|
|
3005
3050
|
height: ${Ve(1200)};
|
|
3006
3051
|
|
|
@@ -3027,18 +3072,18 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3027
3072
|
}
|
|
3028
3073
|
}
|
|
3029
3074
|
}
|
|
3030
|
-
`,
|
|
3075
|
+
`,C$=e=>ke`
|
|
3031
3076
|
overflow: auto;
|
|
3032
3077
|
height: ${e};
|
|
3033
3078
|
width: 100%;
|
|
3034
|
-
`,
|
|
3079
|
+
`,k$=ke`
|
|
3035
3080
|
height: 30rem;
|
|
3036
3081
|
display: flex;
|
|
3037
3082
|
align-items: center;
|
|
3038
3083
|
justify-content: center;
|
|
3039
|
-
|
|
3084
|
+
`,$$="__checkbox__",S$=(e,t)=>{const n=e[t]?.width;return n?{width:n,minWidth:n}:{}},M$=(e,t,n)=>{const r=e[t];return void 0===r?{}:{"data-sticky":"start","data-sticky-last":t===n?"true":void 0,left:`${r}px`}},E$=(e,t,n)=>{if(n||!t.key)return e;const{key:r,order:o}=t,i="asc"===o;return[...e].sort(((e,t)=>((e,t,n)=>{if(null==e&&null==t)return 0;if(null==e)return 1;if(null==t)return-1;if("string"==typeof e&&"string"==typeof t)return n?e.localeCompare(t):t.localeCompare(e);if("number"==typeof e&&"number"==typeof t)return n?e-t:t-e;const r=String(e),o=String(t);return n?r.localeCompare(o):o.localeCompare(r)})(e?.[r],t?.[r],i)))},T$=({columns:e,data:t=[],renderRow:n,striped:r,stickyHeader:i,pagination:s,selectable:a,selectedRows:l,variant:c="default",onSortColumn:d,onPageSizeChange:u,onPageChange:h,onAllItemsSelected:p,onRowSelected:f,loading:m,height:g,labels:b})=>{const v=tg("Table",b),[y,w]=ae({key:"",order:""}),x=se({}),C=se(null),[k,$]=ae({}),[S,M]=ae([]),{totalItems:E=t.length,currentPage:T=1,pageSize:O=10,showItemCount:L,showItemCountText:A}=s||{},N=Boolean(d),R=oe((()=>E$(t,y,N)),[t,N,y]),D=(e,t)=>{w({key:e,order:t}),d&&d({key:e,order:t})},P=l??S,z=R.length>0&&P.length===R.length,V=P.length>0&&P.length<R.length,H=oe((()=>(e=>e.reduce(((e,t)=>(e[t.key]=t,e)),{}))(e)),[e]),B=oe((()=>(e=>e.filter((e=>e.sticky)).map((e=>e.key)))(e)),[e]),_=(e=>e.length>0?e[e.length-1]:void 0)([...void 0!==k[$$]?[$$]:[],...B]),j=ue((()=>{const t=((e,t,n)=>{const r={};let o=0;const i=e.filter((e=>e.sticky));return n&&i.length>0&&(r[$$]=0,o+=n.offsetWidth),i.forEach((e=>{r[e.key]=o,o+=t[e.key]?.offsetWidth||0})),r})(e,x.current,a?C.current:void 0);$(t)}),[e,a]);ce((()=>{j()}),[j,t.length]),ce((()=>{const e=()=>{j()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[j]),ce((()=>{void 0===l&&M((e=>((e,t)=>{const n=e.filter((e=>t.some((t=>t.id===e.id)))),r=n.length===e.length&&n.every(((t,n)=>t.id===e[n]?.id));return r?e:n})(e,t)))}),[t,l]);const F=e=>M$(k,e.key,_),q=e=>((e,t,n,r)=>({...S$(e,n),...M$(t,n,r)}))(H,k,e,_),W=e=>((e,t)=>e.some((e=>e.id===t.id)))(P,e),U=(({columns:e,selectable:t,isRowSelected:n,onRowSelected:r,stickyOffsets:o={},lastStickyColumnKey:i,getSelectRowLabel:s})=>(a,l)=>{const{id:c,name:d}=a;return Y(I.Row,{className:l?.className,children:[t?X(I.Cell,{...M$(o,$$,i),children:X(Av,{name:`checkbox-${c}`,"aria-label":s(d,c),checked:n(a),onCheckedChange:({checked:e})=>{r(a,e)}})}):null,e.map((e=>X(I.Cell,{...l?.getCellProps(e.key),children:e.cell?e.cell(a):a?.[e.key]},e.key)))]})})({columns:e,selectable:a,isRowSelected:W,onRowSelected:(e,t)=>{void 0===l&&M((n=>((e,t,n)=>n?e.some((e=>e.id===t.id))?e:[...e,t]:e.filter((e=>e.id!==t.id)))(n,e,t))),f&&f(e,t)},stickyOffsets:k,lastStickyColumnKey:_,getSelectRowLabel:(e,t)=>v.selectRowLabel(e,t)}),K=n||U;return be("div",{children:[ve("div",{css:g?C$(g):void 0,children:be(I.Root,{css:f$(c,i),striped:r,stickyHeader:i,interactive:!0,children:[ve(I.Header,{css:m$(c),children:be(I.Row,{children:[a?ve(I.ColumnHeader,{ref:C,...M$(k,$$,_),children:ve(Av,{name:"header-checkbox","aria-label":v.selectAllRowsLabel,checked:z,indeterminate:V,onCheckedChange:({checked:e})=>{void 0===l&&M(e?R:[]),p&&p(e)}})}):null,e.map((e=>{return ve(I.ColumnHeader,{ref:t=>{x.current[e.key]=t},...(t=e.key,S$(H,t)),role:e.sortable?"columnheader":void 0,"aria-sort":e.sortable&&"asc"===y.order?"ascending":e.sortable&&"desc"===y.order?"descending":void 0,...F(e),children:be("div",{css:g$,children:[e.label,e.sortable?be("div",{css:b$,children:[ve(og,{css:v$(y.key===e.key&&"asc"===y.order),icon:ve(dg,{style:{transform:"rotate(180deg)"}}),onClick:()=>D(e.key,"asc"),"aria-label":v.ascendingLabel}),ve(og,{css:v$(y.key===e.key&&"desc"===y.order),icon:ve(dg,{}),onClick:()=>D(e.key,"desc"),"aria-label":v.descendingLabel})]}):null]})},e.key);var t}))]})}),ve(I.Body,{css:x$(r),children:R.map((e=>ve(te.Fragment,{children:K(e,{className:W(e)?"selected":void 0,getCellProps:q})},e.id)))})]})}),m?ve("div",{css:k$,children:ve(o,{size:"lg",color:Ie("primary",500)})}):null,be("div",{css:y$,children:[L?ve(Qk,{pageSize:O,currentPage:T,totalItems:E,onPageSizeChange:u,showItemCountText:A}):null,s?ve("div",{css:w$,children:ve(p$,{totalItems:E,pageSize:O,currentPage:T,onPageChange:h})}):null]})]})},O$=I.Row,L$=I.Cell,A$=ke`
|
|
3040
3085
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3041
|
-
`,
|
|
3086
|
+
`,N$=ke`
|
|
3042
3087
|
padding: ${Ve(400)};
|
|
3043
3088
|
cursor: pointer;
|
|
3044
3089
|
&:focus-visible {
|
|
@@ -3053,9 +3098,9 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3053
3098
|
transparent
|
|
3054
3099
|
);
|
|
3055
3100
|
}
|
|
3056
|
-
`,
|
|
3101
|
+
`,R$=({children:e,header:t,footer:n})=>ve(r,{css:A$,children:ve(A.Root,{multiple:!0,children:be(A.Item,{value:"extendable-card-item",children:[be(A.ItemTrigger,{css:N$,alignItems:"center",children:[ve(R,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:t}),ve(A.ItemIndicator,{children:ve(dg,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),be(A.ItemContent,{children:[e,n]})]})})}),D$=ke`
|
|
3057
3102
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3058
|
-
`,
|
|
3103
|
+
`,P$=ke`
|
|
3059
3104
|
padding: ${Ve(400)};
|
|
3060
3105
|
cursor: pointer;
|
|
3061
3106
|
border-bottom: ${_e(100)} solid
|
|
@@ -3077,7 +3122,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3077
3122
|
transparent
|
|
3078
3123
|
);
|
|
3079
3124
|
}
|
|
3080
|
-
`,
|
|
3125
|
+
`,I$=ke`
|
|
3081
3126
|
.item-content-open > * {
|
|
3082
3127
|
max-height: auto;
|
|
3083
3128
|
|
|
@@ -3098,10 +3143,10 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3098
3143
|
padding-bottom 0.2s ease,
|
|
3099
3144
|
padding-top 0.2s ease;
|
|
3100
3145
|
}
|
|
3101
|
-
`,
|
|
3146
|
+
`,z$=ke`
|
|
3102
3147
|
border-top: ${_e(100)} solid
|
|
3103
3148
|
${Ie("neutral",300)};
|
|
3104
|
-
`,
|
|
3149
|
+
`,V$=({children:e,header:t,footer:n,expanded:o=!0,collapsible:i=!0,actions:s,showFooterOnCollapsed:a=!1,labels:l})=>{tg("AnalysisWidget",l);const c="analysis-widget-item",[d,u]=ae(o),h=`analysis-widget-header-${c}`;return ve(r,{as:"section","aria-labelledby":h,css:D$,children:be(A.Root,{multiple:!0,value:i?void 0:[c],defaultValue:o?[c]:[],children:[be(A.Item,{css:I$,value:c,children:[t&&ve(A.ItemTrigger,{id:h,"aria-expanded":d,css:P$,pointerEvents:i?"auto":"none",onClick:i?()=>{u(!d)}:void 0,children:be(R,{gap:3,flex:"1",overflow:"hidden",alignItems:"top",justifyContent:"space-between",children:[t,s&&s.map((e=>ve(ng,{variant:"secondary",size:"small",label:e.label,onClick:t=>{e.onClick(),t.preventDefault(),t.stopPropagation()},leftIcon:e?.icon},e.label))),i&&ve(A.ItemIndicator,{height:"1rem",marginTop:"0.5rem",display:"flex",children:ve(dg,{"aria-hidden":"true",color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]})}),be("div",{className:d?"item-content-open":"item-content-closed","aria-hidden":!d,children:[e,!a&&n&&ve(r,{css:z$,children:n})]})]}),a&&n&&ve(r,{css:z$,children:n})]})})};var H$,B$={exports:{}},_$={},j$={exports:{}},F$={exports:{}},q$={};var W$,U$,K$,G$,Z$,J$,X$,Y$,Q$,eS,tS,nS,rS,oS={};
|
|
3105
3150
|
/** @license React v16.13.1
|
|
3106
3151
|
* react-is.development.js
|
|
3107
3152
|
*
|
|
@@ -3109,7 +3154,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3109
3154
|
*
|
|
3110
3155
|
* This source code is licensed under the MIT license found in the
|
|
3111
3156
|
* LICENSE file in the root directory of this source tree.
|
|
3112
|
-
*/function nS(){return F$||(F$=1,"production"===process.env.NODE_ENV?B$.exports=function(){if(I$)return _$;I$=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case a:case d:case f:case p:case s:return e;default:return h}}case n:return h}}}function w(e){return y(e)===c}return _$.AsyncMode=l,_$.ConcurrentMode=c,_$.ContextConsumer=a,_$.ContextProvider=s,_$.Element=t,_$.ForwardRef=d,_$.Fragment=r,_$.Lazy=f,_$.Memo=p,_$.Portal=n,_$.Profiler=i,_$.StrictMode=o,_$.Suspense=u,_$.isAsyncMode=function(e){return w(e)||y(e)===l},_$.isConcurrentMode=w,_$.isContextConsumer=function(e){return y(e)===a},_$.isContextProvider=function(e){return y(e)===s},_$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_$.isForwardRef=function(e){return y(e)===d},_$.isFragment=function(e){return y(e)===r},_$.isLazy=function(e){return y(e)===f},_$.isMemo=function(e){return y(e)===p},_$.isPortal=function(e){return y(e)===n},_$.isProfiler=function(e){return y(e)===i},_$.isStrictMode=function(e){return y(e)===o},_$.isSuspense=function(e){return y(e)===u},_$.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},_$.typeOf=y,_$}():B$.exports=(j$||(j$=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case u:return m;default:var g=m&&m.$$typeof;switch(g){case a:case d:case f:case p:case s:return g;default:return h}}case n:return h}}}var w=l,x=c,C=a,k=s,$=t,S=d,M=r,E=f,T=p,O=n,L=i,A=o,N=u,R=!1;function D(e){return y(e)===c}tS.AsyncMode=w,tS.ConcurrentMode=x,tS.ContextConsumer=C,tS.ContextProvider=k,tS.Element=$,tS.ForwardRef=S,tS.Fragment=M,tS.Lazy=E,tS.Memo=T,tS.Portal=O,tS.Profiler=L,tS.StrictMode=A,tS.Suspense=N,tS.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(e)||y(e)===l},tS.isConcurrentMode=D,tS.isContextConsumer=function(e){return y(e)===a},tS.isContextProvider=function(e){return y(e)===s},tS.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},tS.isForwardRef=function(e){return y(e)===d},tS.isFragment=function(e){return y(e)===r},tS.isLazy=function(e){return y(e)===f},tS.isMemo=function(e){return y(e)===p},tS.isPortal=function(e){return y(e)===n},tS.isProfiler=function(e){return y(e)===i},tS.isStrictMode=function(e){return y(e)===o},tS.isSuspense=function(e){return y(e)===u},tS.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},tS.typeOf=y}()),tS)),B$.exports}function rS(){if(W$)return q$;W$=1;return q$="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function oS(){return K$?U$:(K$=1,U$=Function.call.bind(Object.prototype.hasOwnProperty))}function iS(){if(X$)return J$;X$=1;var e=nS(),t=$e,n=rS(),r=oS(),o=function(){if(Z$)return G$;Z$=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=rS(),n={},r=oS();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var d;try{if("function"!=typeof o[c]){var u=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[c](i,c,a,s,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+d.message+(null!=h?h:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},G$=o}(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),J$=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(s),arrayOf:function(e){return f((function(t,r,o,i,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new p("Invalid "+i+" `"+s+"` of type `"+v(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,i,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,o){var i=e[t];return a(i)?null:new p("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new p("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,o,i){if(!(t[n]instanceof e)){var s=e.name||d;return new p("Invalid "+o+" `"+i+"` of type `"+(((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+s+"`.")}var a;return null}))},node:f((function(e,t,n,r,o){return b(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,o,i,s,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=v(l);if("object"!==c)return new p("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var d in l)if(r(l,d)){var u=e(l,d,i,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s;return f((function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(h(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new p("Invalid "+o+" `"+i+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),s}return f((function(t,o,i,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,i,s,a,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&l.push(d.data.expectedType)}return new p("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,o,i,s){var a=t[r],l=v(a);if("object"!==l)return new p("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(o,i,s,c,y(d));var u=d(a,c,o,i,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(o,i,s,a,l){var c=o[i],d=v(c);if("object"!==d)return new p("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},o[i],e);for(var h in u){var f=e[h];if(r(e,h)&&"function"!=typeof f)return g(s,a,l,h,y(f));if(!f)return new p("Invalid "+a+" `"+l+"` key `"+h+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(c,h,s,a,l+"."+h,n);if(m)return m}return null}))}};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,s,a,c,u,h,f){if(c=c||d,h=h||a,f!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==s[a]?o?null===s[a]?new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,h)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function m(e){return f((function(t,n,r,o,i,s){var a=t[n];return v(a)!==e?new p("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},J$}function sS(){if(eS)return H$.exports;if(eS=1,"production"!==process.env.NODE_ENV){var e=nS();H$.exports=iS()(e.isElement,!0)}else H$.exports=function(){if(Q$)return Y$;Q$=1;var e=rS();function t(){}function n(){}return n.resetWarningCache=t,Y$=function(){function r(t,n,r,o,i,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Y$}()();return H$.exports}var aS,lS={exports:{}};var cS,dS={},uS={};function hS(){if(cS)return uS;return cS=1,Object.defineProperty(uS,"__esModule",{value:!0}),uS.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},uS.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},uS.int=function(e){return parseInt(e,10)},uS.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},uS.isNum=function(e){return"number"==typeof e&&!isNaN(e)},uS}var pS,fS,mS={};function gS(){if(fS)return dS;fS=1,Object.defineProperty(dS,"__esModule",{value:!0}),dS.addClassName=s,dS.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},dS.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&s(e.body,"react-draggable-transparent-selection")},dS.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},dS.createSVGTransform=function(e,t){return o(e,t,"")},dS.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},dS.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},dS.getTranslation=o,dS.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},dS.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},dS.matchesSelector=r,dS.matchesSelectorAndParentsTo=function(e,t,n){let o=e;do{if(r(o,t))return!0;if(o===n)return!1;o=o.parentNode}while(o);return!1},dS.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},dS.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},dS.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},dS.removeClassName=a,dS.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},dS.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame((()=>{i(e)})):i(e)};var e=hS(),t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(function(){if(pS)return mS;pS=1,Object.defineProperty(mS,"__esModule",{value:!0}),mS.browserPrefixToKey=n,mS.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},mS.default=void 0,mS.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const r=window.document?.documentElement?.style;if(!r)return"";if(t in r)return"";for(let o=0;o<e.length;o++)if(n(t,e[o])in r)return e[o];return""}function n(e,t){return t?`${t}${function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)}`:e}return mS.default=t(),mS}());let n="";function r(t,r){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[n])&&t[n](r)}function o(e,t,n){let{x:r,y:o}=e,i=`translate(${r}${n},${o}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function i(e){if(e)try{if(e.body&&a(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function s(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return dS}var bS,vS={};function yS(){if(bS)return vS;bS=1,Object.defineProperty(vS,"__esModule",{value:!0}),vS.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},vS.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},vS.createCoreData=function(t,r,o){const i=!(0,e.isNum)(t.lastX),s=n(t);return i?{node:s,deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}:{node:s,deltaX:r-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:o}},vS.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},vS.getBoundPosition=function(r,o,i){if(!r.props.bounds)return[o,i];let{bounds:s}=r.props;s="string"==typeof s?s:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(s);const a=n(r);if("string"==typeof s){const{ownerDocument:n}=a,r=n.defaultView;let o;if("parent"===s)o=a.parentNode;else{o=a.getRootNode().querySelector(s)}if(!(o instanceof r.HTMLElement))throw new Error('Bounds selector "'+s+'" could not find an element.');const i=o,l=r.getComputedStyle(a),c=r.getComputedStyle(i);s={left:-a.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(l.marginLeft),top:-a.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(l.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(l.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(l.marginBottom)}}(0,e.isNum)(s.right)&&(o=Math.min(o,s.right));(0,e.isNum)(s.bottom)&&(i=Math.min(i,s.bottom));(0,e.isNum)(s.left)&&(o=Math.max(o,s.left));(0,e.isNum)(s.top)&&(i=Math.max(i,s.top));return[o,i]},vS.getControlPosition=function(e,r,o){const i="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!i)return null;const s=n(o),a=o.props.offsetParent||s.offsetParent||s.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,o.props.scale)},vS.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]};var e=hS(),t=gS();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return vS}var wS,xS,CS,kS,$S={},SS={};function MS(){if(wS)return SS;return wS=1,Object.defineProperty(SS,"__esModule",{value:!0}),SS.default=function(){},SS}function ES(){if(xS)return $S;xS=1,Object.defineProperty($S,"__esModule",{value:!0}),$S.default=void 0;var e=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(te),t=a(sS()),n=a(xe),r=gS(),o=yS(),i=hS(),s=a(MS());function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={start:"touchstart",move:"touchmove",stop:"touchend"},d={start:"mousedown",move:"mousemove",stop:"mouseup"};let u=d,h=class extends e.Component{constructor(){super(...arguments),l(this,"dragging",!1),l(this,"lastX",NaN),l(this,"lastY",NaN),l(this,"touchIdentifier",null),l(this,"mounted",!1),l(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const i=(0,r.getTouchIdentifier)(e);this.touchIdentifier=i;const a=(0,o.getControlPosition)(e,i,this);if(null==a)return;const{x:l,y:c}=a,d=(0,o.createCoreData)(this,l,c);(0,s.default)("DraggableCore: handleDragStart: %j",d),(0,s.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(n),this.dragging=!0,this.lastX=l,this.lastY=c,(0,r.addEvent)(n,u.move,this.handleDrag),(0,r.addEvent)(n,u.stop,this.handleDragStop))})),l(this,"handleDrag",(e=>{const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,o.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const i=(0,o.createCoreData)(this,n,r);(0,s.default)("DraggableCore: handleDrag: %j",i);if(!1!==this.props.onDrag(e,i)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),l(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:i}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=i-this.lastY||0;[e,t]=(0,o.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,i=this.lastY+t}const a=(0,o.createCoreData)(this,n,i);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const l=this.findDOMNode();l&&this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(l.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,l&&((0,s.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(l.ownerDocument,u.move,this.handleDrag),(0,r.removeEvent)(l.ownerDocument,u.stop,this.handleDragStop))})),l(this,"onMouseDown",(e=>(u=d,this.handleDragStart(e)))),l(this,"onMouseUp",(e=>(u=d,this.handleDragStop(e)))),l(this,"onTouchStart",(e=>(u=c,this.handleDragStart(e)))),l(this,"onTouchEnd",(e=>(u=c,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,c.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,c.move,this.handleDrag),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(t,c.stop,this.handleDragStop),(0,r.removeEvent)(e,c.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return $S.default=h,l(h,"displayName","DraggableCore"),l(h,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),l(h,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),$S}function TS(){return CS||(CS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(te),n=d(sS()),r=d(xe),o=function(){if(aS)return lS.exports;function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function t(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=e(t))&&(o&&(o+=" "),o+=n);return o}return aS=1,lS.exports=t,lS.exports.clsx=t,lS.exports}(),i=gS(),s=yS(),a=hS(),l=d(ES()),c=d(MS());function d(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(null,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class p extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",((e,t)=>{(0,c.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,s.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),h(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",t);const n=(0,s.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,s.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),h(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,s.createDraggableData)(this,t)))return!1;(0,c.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:a,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:h,position:p,positionOffset:f,scale:m,...g}=this.props;let b={},v=null;const y=!Boolean(p)||this.state.dragging,w=p||a,x={x:(0,s.canDragX)(this)&&y?this.state.x:w.x,y:(0,s.canDragY)(this)&&y?this.state.y:w.y};this.state.isElementSVG?v=(0,i.createSVGTransform)(x,f):b=(0,i.createCSSTransform)(x,f);const C=(0,o.clsx)(r.props.className||"",c,{[d]:this.state.dragging,[h]:this.state.dragged});return t.createElement(l.default,u({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...b},transform:v}))}}e.default=p,h(p,"displayName","Draggable"),h(p,"propTypes",{...l.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),h(p,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(V$)),V$}var OS=function(){if(kS)return z$.exports;kS=1;const{default:e,DraggableCore:t}=TS();return z$.exports=e,z$.exports.default=e,z$.exports.DraggableCore=t,z$.exports}(),LS=Sf(OS);const AS=(e="medium",t,n,r)=>{const o=t?Me(t):{xsmall:"15rem",small:"20rem",medium:"30rem",large:"40rem",xlarge:"60rem","full-width":"90%"}[e]||"15rem",i=r?Me(r):{xsmall:"35rem",small:"45rem",medium:"45rem",large:"45rem",xlarge:"45rem","full-width":"unset"}[e]||"35rem",s="unset"===i?"80vh":`min(${i}, 80vh)`;let a="auto";return n?a=Me(n):"full-width"===e&&(a="90%"),ke`
|
|
3157
|
+
*/function iS(){return U$||(U$=1,"production"===process.env.NODE_ENV?F$.exports=function(){if(H$)return q$;H$=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case a:case d:case f:case p:case s:return e;default:return h}}case n:return h}}}function w(e){return y(e)===c}return q$.AsyncMode=l,q$.ConcurrentMode=c,q$.ContextConsumer=a,q$.ContextProvider=s,q$.Element=t,q$.ForwardRef=d,q$.Fragment=r,q$.Lazy=f,q$.Memo=p,q$.Portal=n,q$.Profiler=i,q$.StrictMode=o,q$.Suspense=u,q$.isAsyncMode=function(e){return w(e)||y(e)===l},q$.isConcurrentMode=w,q$.isContextConsumer=function(e){return y(e)===a},q$.isContextProvider=function(e){return y(e)===s},q$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},q$.isForwardRef=function(e){return y(e)===d},q$.isFragment=function(e){return y(e)===r},q$.isLazy=function(e){return y(e)===f},q$.isMemo=function(e){return y(e)===p},q$.isPortal=function(e){return y(e)===n},q$.isProfiler=function(e){return y(e)===i},q$.isStrictMode=function(e){return y(e)===o},q$.isSuspense=function(e){return y(e)===u},q$.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},q$.typeOf=y,q$}():F$.exports=(W$||(W$=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case u:return m;default:var g=m&&m.$$typeof;switch(g){case a:case d:case f:case p:case s:return g;default:return h}}case n:return h}}}var w=l,x=c,C=a,k=s,$=t,S=d,M=r,E=f,T=p,O=n,L=i,A=o,N=u,R=!1;function D(e){return y(e)===c}oS.AsyncMode=w,oS.ConcurrentMode=x,oS.ContextConsumer=C,oS.ContextProvider=k,oS.Element=$,oS.ForwardRef=S,oS.Fragment=M,oS.Lazy=E,oS.Memo=T,oS.Portal=O,oS.Profiler=L,oS.StrictMode=A,oS.Suspense=N,oS.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(e)||y(e)===l},oS.isConcurrentMode=D,oS.isContextConsumer=function(e){return y(e)===a},oS.isContextProvider=function(e){return y(e)===s},oS.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},oS.isForwardRef=function(e){return y(e)===d},oS.isFragment=function(e){return y(e)===r},oS.isLazy=function(e){return y(e)===f},oS.isMemo=function(e){return y(e)===p},oS.isPortal=function(e){return y(e)===n},oS.isProfiler=function(e){return y(e)===i},oS.isStrictMode=function(e){return y(e)===o},oS.isSuspense=function(e){return y(e)===u},oS.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},oS.typeOf=y}()),oS)),F$.exports}function sS(){if(G$)return K$;G$=1;return K$="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function aS(){return J$?Z$:(J$=1,Z$=Function.call.bind(Object.prototype.hasOwnProperty))}function lS(){if(eS)return Q$;eS=1;var e=iS(),t=$e,n=sS(),r=aS(),o=function(){if(Y$)return X$;Y$=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=sS(),n={},r=aS();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var d;try{if("function"!=typeof o[c]){var u=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[c](i,c,a,s,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+d.message+(null!=h?h:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},X$=o}(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Q$=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(s),arrayOf:function(e){return f((function(t,r,o,i,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new p("Invalid "+i+" `"+s+"` of type `"+v(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,i,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,o){var i=e[t];return a(i)?null:new p("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new p("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,o,i){if(!(t[n]instanceof e)){var s=e.name||d;return new p("Invalid "+o+" `"+i+"` of type `"+(((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+s+"`.")}var a;return null}))},node:f((function(e,t,n,r,o){return b(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,o,i,s,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=v(l);if("object"!==c)return new p("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var d in l)if(r(l,d)){var u=e(l,d,i,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s;return f((function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(h(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new p("Invalid "+o+" `"+i+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),s}return f((function(t,o,i,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,i,s,a,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&l.push(d.data.expectedType)}return new p("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,o,i,s){var a=t[r],l=v(a);if("object"!==l)return new p("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(o,i,s,c,y(d));var u=d(a,c,o,i,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(o,i,s,a,l){var c=o[i],d=v(c);if("object"!==d)return new p("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},o[i],e);for(var h in u){var f=e[h];if(r(e,h)&&"function"!=typeof f)return g(s,a,l,h,y(f));if(!f)return new p("Invalid "+a+" `"+l+"` key `"+h+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(c,h,s,a,l+"."+h,n);if(m)return m}return null}))}};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,s,a,c,u,h,f){if(c=c||d,h=h||a,f!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==s[a]?o?null===s[a]?new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,h)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function m(e){return f((function(t,n,r,o,i,s){var a=t[n];return v(a)!==e?new p("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},Q$}function cS(){if(rS)return j$.exports;if(rS=1,"production"!==process.env.NODE_ENV){var e=iS();j$.exports=lS()(e.isElement,!0)}else j$.exports=function(){if(nS)return tS;nS=1;var e=sS();function t(){}function n(){}return n.resetWarningCache=t,tS=function(){function r(t,n,r,o,i,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},tS}()();return j$.exports}var dS,uS={exports:{}};var hS,pS={},fS={};function mS(){if(hS)return fS;return hS=1,Object.defineProperty(fS,"__esModule",{value:!0}),fS.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},fS.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},fS.int=function(e){return parseInt(e,10)},fS.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},fS.isNum=function(e){return"number"==typeof e&&!isNaN(e)},fS}var gS,bS,vS={};function yS(){if(bS)return pS;bS=1,Object.defineProperty(pS,"__esModule",{value:!0}),pS.addClassName=s,pS.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},pS.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&s(e.body,"react-draggable-transparent-selection")},pS.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},pS.createSVGTransform=function(e,t){return o(e,t,"")},pS.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},pS.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},pS.getTranslation=o,pS.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},pS.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},pS.matchesSelector=r,pS.matchesSelectorAndParentsTo=function(e,t,n){let o=e;do{if(r(o,t))return!0;if(o===n)return!1;o=o.parentNode}while(o);return!1},pS.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},pS.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},pS.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},pS.removeClassName=a,pS.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},pS.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame((()=>{i(e)})):i(e)};var e=mS(),t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(function(){if(gS)return vS;gS=1,Object.defineProperty(vS,"__esModule",{value:!0}),vS.browserPrefixToKey=n,vS.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},vS.default=void 0,vS.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const r=window.document?.documentElement?.style;if(!r)return"";if(t in r)return"";for(let o=0;o<e.length;o++)if(n(t,e[o])in r)return e[o];return""}function n(e,t){return t?`${t}${function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)}`:e}return vS.default=t(),vS}());let n="";function r(t,r){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[n])&&t[n](r)}function o(e,t,n){let{x:r,y:o}=e,i=`translate(${r}${n},${o}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function i(e){if(e)try{if(e.body&&a(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function s(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return pS}var wS,xS={};function CS(){if(wS)return xS;wS=1,Object.defineProperty(xS,"__esModule",{value:!0}),xS.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},xS.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},xS.createCoreData=function(t,r,o){const i=!(0,e.isNum)(t.lastX),s=n(t);return i?{node:s,deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}:{node:s,deltaX:r-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:o}},xS.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},xS.getBoundPosition=function(r,o,i){if(!r.props.bounds)return[o,i];let{bounds:s}=r.props;s="string"==typeof s?s:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(s);const a=n(r);if("string"==typeof s){const{ownerDocument:n}=a,r=n.defaultView;let o;if("parent"===s)o=a.parentNode;else{o=a.getRootNode().querySelector(s)}if(!(o instanceof r.HTMLElement))throw new Error('Bounds selector "'+s+'" could not find an element.');const i=o,l=r.getComputedStyle(a),c=r.getComputedStyle(i);s={left:-a.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(l.marginLeft),top:-a.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(l.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(l.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(l.marginBottom)}}(0,e.isNum)(s.right)&&(o=Math.min(o,s.right));(0,e.isNum)(s.bottom)&&(i=Math.min(i,s.bottom));(0,e.isNum)(s.left)&&(o=Math.max(o,s.left));(0,e.isNum)(s.top)&&(i=Math.max(i,s.top));return[o,i]},xS.getControlPosition=function(e,r,o){const i="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!i)return null;const s=n(o),a=o.props.offsetParent||s.offsetParent||s.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,o.props.scale)},xS.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]};var e=mS(),t=yS();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return xS}var kS,$S,SS,MS,ES={},TS={};function OS(){if(kS)return TS;return kS=1,Object.defineProperty(TS,"__esModule",{value:!0}),TS.default=function(){},TS}function LS(){if($S)return ES;$S=1,Object.defineProperty(ES,"__esModule",{value:!0}),ES.default=void 0;var e=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(te),t=a(cS()),n=a(xe),r=yS(),o=CS(),i=mS(),s=a(OS());function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={start:"touchstart",move:"touchmove",stop:"touchend"},d={start:"mousedown",move:"mousemove",stop:"mouseup"};let u=d,h=class extends e.Component{constructor(){super(...arguments),l(this,"dragging",!1),l(this,"lastX",NaN),l(this,"lastY",NaN),l(this,"touchIdentifier",null),l(this,"mounted",!1),l(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const i=(0,r.getTouchIdentifier)(e);this.touchIdentifier=i;const a=(0,o.getControlPosition)(e,i,this);if(null==a)return;const{x:l,y:c}=a,d=(0,o.createCoreData)(this,l,c);(0,s.default)("DraggableCore: handleDragStart: %j",d),(0,s.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(n),this.dragging=!0,this.lastX=l,this.lastY=c,(0,r.addEvent)(n,u.move,this.handleDrag),(0,r.addEvent)(n,u.stop,this.handleDragStop))})),l(this,"handleDrag",(e=>{const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,o.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const i=(0,o.createCoreData)(this,n,r);(0,s.default)("DraggableCore: handleDrag: %j",i);if(!1!==this.props.onDrag(e,i)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),l(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:i}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=i-this.lastY||0;[e,t]=(0,o.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,i=this.lastY+t}const a=(0,o.createCoreData)(this,n,i);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const l=this.findDOMNode();l&&this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(l.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,l&&((0,s.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(l.ownerDocument,u.move,this.handleDrag),(0,r.removeEvent)(l.ownerDocument,u.stop,this.handleDragStop))})),l(this,"onMouseDown",(e=>(u=d,this.handleDragStart(e)))),l(this,"onMouseUp",(e=>(u=d,this.handleDragStop(e)))),l(this,"onTouchStart",(e=>(u=c,this.handleDragStart(e)))),l(this,"onTouchEnd",(e=>(u=c,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,c.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,c.move,this.handleDrag),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(t,c.stop,this.handleDragStop),(0,r.removeEvent)(e,c.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return ES.default=h,l(h,"displayName","DraggableCore"),l(h,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),l(h,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),ES}function AS(){return SS||(SS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(te),n=d(cS()),r=d(xe),o=function(){if(dS)return uS.exports;function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function t(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=e(t))&&(o&&(o+=" "),o+=n);return o}return dS=1,uS.exports=t,uS.exports.clsx=t,uS.exports}(),i=yS(),s=CS(),a=mS(),l=d(LS()),c=d(OS());function d(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(null,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class p extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",((e,t)=>{(0,c.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,s.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),h(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",t);const n=(0,s.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,s.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),h(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,s.createDraggableData)(this,t)))return!1;(0,c.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:a,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:h,position:p,positionOffset:f,scale:m,...g}=this.props;let b={},v=null;const y=!Boolean(p)||this.state.dragging,w=p||a,x={x:(0,s.canDragX)(this)&&y?this.state.x:w.x,y:(0,s.canDragY)(this)&&y?this.state.y:w.y};this.state.isElementSVG?v=(0,i.createSVGTransform)(x,f):b=(0,i.createCSSTransform)(x,f);const C=(0,o.clsx)(r.props.className||"",c,{[d]:this.state.dragging,[h]:this.state.dragged});return t.createElement(l.default,u({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...b},transform:v}))}}e.default=p,h(p,"displayName","Draggable"),h(p,"propTypes",{...l.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),h(p,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(_$)),_$}var NS=function(){if(MS)return B$.exports;MS=1;const{default:e,DraggableCore:t}=AS();return B$.exports=e,B$.exports.default=e,B$.exports.DraggableCore=t,B$.exports}(),RS=Sf(NS);const DS=(e="medium",t,n,r)=>{const o=t?Me(t):{xsmall:"15rem",small:"20rem",medium:"30rem",large:"40rem",xlarge:"60rem","full-width":"90%"}[e]||"15rem",i=r?Me(r):{xsmall:"35rem",small:"45rem",medium:"45rem",large:"45rem",xlarge:"45rem","full-width":"unset"}[e]||"35rem",s="unset"===i?"80vh":`min(${i}, 80vh)`;let a="auto";return n?a=Me(n):"full-width"===e&&(a="90%"),ke`
|
|
3113
3158
|
max-width: 100%;
|
|
3114
3159
|
width: ${o};
|
|
3115
3160
|
height: ${a};
|
|
@@ -3119,7 +3164,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3119
3164
|
border-radius: ${Be(300)};
|
|
3120
3165
|
box-shadow: 0 0.25rem 0.375rem -0.25rem #0000001a;
|
|
3121
3166
|
box-shadow: 0 0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
3122
|
-
`},
|
|
3167
|
+
`},PS=ke`
|
|
3123
3168
|
height: 100%;
|
|
3124
3169
|
min-height: ${Ve(1e3)};
|
|
3125
3170
|
display: flex;
|
|
@@ -3128,11 +3173,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3128
3173
|
padding: ${Ve(200)};
|
|
3129
3174
|
border-bottom: ${_e(100)} solid
|
|
3130
3175
|
${Ie("neutral",300)};
|
|
3131
|
-
`,
|
|
3176
|
+
`,IS=ke`
|
|
3132
3177
|
top: ${Ve(300)};
|
|
3133
|
-
`,
|
|
3178
|
+
`,zS=ke`
|
|
3134
3179
|
padding: 0;
|
|
3135
|
-
`,
|
|
3180
|
+
`,VS=({header:e,content:t,footer:n,size:r="medium",width:o,height:i,maxHeight:s,draggable:l,blocking:c,open:d,onClose:u,labels:h,lazyMount:p,unmountOnExit:f,restoreFocus:m,modal:g,initialFocusEl:b,finalFocusEl:v,trapFocus:y})=>{const w=tg("Modal",h),x=se(null);return d?ve(z.Root,{open:d,onOpenChange:u,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!l&&!c,preventScroll:!l&&!c,closeOnEscape:!c,defaultOpen:!0,trapFocus:y,lazyMount:p,unmountOnExit:f,restoreFocus:m,modal:g,initialFocusEl:b,finalFocusEl:v,children:be(a,{children:[l?null:ve(z.Backdrop,{css:{background:"rgba(0, 0, 0, 0.64)"}}),ve(RS,{disabled:!l,nodeRef:x,children:ve(z.Positioner,{ref:x,children:be(z.Content,{"aria-label":w.dialogAriaLabel,css:DS(r,o,i,s),children:[be(z.Header,{css:PS,children:[e,c?null:ve(z.CloseTrigger,{css:IS,asChild:!0,children:ve(jb,{})})]}),ve(z.Body,{css:zS,children:t}),n?ve(z.Footer,{padding:"0.75rem",children:n}):null]})})})]})}):null},HS=e=>ke`
|
|
3136
3181
|
display: flex;
|
|
3137
3182
|
flex-direction: column;
|
|
3138
3183
|
height: 100%;
|
|
@@ -3140,19 +3185,19 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3140
3185
|
background-color: ${Ie("neutral",100)};
|
|
3141
3186
|
box-shadow: 0 0.0625rem 0.125rem -0.0625rem #0000001a;
|
|
3142
3187
|
box-shadow: 0 0.0625rem 0.1875rem 0 #0000001a;
|
|
3143
|
-
`,
|
|
3188
|
+
`,BS=ke`
|
|
3144
3189
|
border-right: ${_e(100)} solid
|
|
3145
3190
|
${Ie("neutral",300)};
|
|
3146
|
-
`,
|
|
3191
|
+
`,_S=ke`
|
|
3147
3192
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3148
3193
|
border-radius: ${Be(300)};
|
|
3149
|
-
`,
|
|
3194
|
+
`,jS=ke`
|
|
3150
3195
|
flex-shrink: 0;
|
|
3151
3196
|
min-height: ${Ve(1200)};
|
|
3152
3197
|
width: 100%;
|
|
3153
3198
|
border-bottom: ${_e(100)} solid
|
|
3154
3199
|
${Ie("neutral",300)};
|
|
3155
|
-
`,
|
|
3200
|
+
`,FS=ke`
|
|
3156
3201
|
flex: 1;
|
|
3157
3202
|
min-height: 0;
|
|
3158
3203
|
width: 100%;
|
|
@@ -3161,7 +3206,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3161
3206
|
&:focus-visible {
|
|
3162
3207
|
outline-color: ${Ie("primary",700)};
|
|
3163
3208
|
}
|
|
3164
|
-
`,
|
|
3209
|
+
`,qS=ke`
|
|
3165
3210
|
flex-shrink: 0;
|
|
3166
3211
|
min-height: ${Ve(1600)};
|
|
3167
3212
|
width: 100%;
|
|
@@ -3170,7 +3215,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3170
3215
|
justify-content: flex-start;
|
|
3171
3216
|
border-top: ${_e(100)} solid
|
|
3172
3217
|
${Ie("neutral",300)};
|
|
3173
|
-
`,
|
|
3218
|
+
`,WS=({header:e,content:t,footer:n,variant:r="fixed",width:o})=>{const i=he();return be("div",{role:"region","aria-labelledby":e?i:void 0,css:[HS(o),"fixed"===r?BS:_S],children:[e?ve("div",{id:i,css:jS,children:e}):null,ve("div",{css:FS,children:t}),n?ve("div",{css:qS,children:n}):null]})};var US,KS;!function(){if(KS)return US;KS=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return t[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};e=function(e,n,r){var o=arguments.length;r=new Array(o>2?o-2:0);for(var i=2;i<o;i++)r[i-2]=arguments[i];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}US=e}();var GS=ZS()?de:ce;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function ZS(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var JS=function(e){var t,n=e.children,r=e.type,o=void 0===r?"reach-portal":r,i=se(null),s=se(null),a=(t=ae(Object.create(null))[1],ue((function(){t(Object.create(null))}),[]));return GS((function(){if(i.current){var e=i.current.ownerDocument;return s.current=null==e?void 0:e.createElement(o),e.body.appendChild(s.current),a(),function(){s.current&&s.current.ownerDocument&&s.current.ownerDocument.body.removeChild(s.current)}}}),[o,a]),s.current?Ce(n,s.current):fe("span",{ref:i})};"production"!==process.env.NODE_ENV&&(JS.displayName="Portal");
|
|
3174
3219
|
/*! *****************************************************************************
|
|
3175
3220
|
Copyright (c) Microsoft Corporation.
|
|
3176
3221
|
|
|
@@ -3184,16 +3229,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
3184
3229
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3185
3230
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3186
3231
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3187
|
-
***************************************************************************** */var GS,ZS,JS=function(){return JS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},JS.apply(this,arguments)};function XS(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function YS(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function QS(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function eM(e,t,n){if(2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(GS||(GS={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(ZS||(ZS={}));var tM=GS.Start,nM=GS.Stop,rM=GS.Raise,oM=GS.Send,iM=GS.Cancel,sM=GS.NullEvent,aM=GS.Assign;GS.After,GS.DoneState;var lM=GS.Log,cM=GS.Init,dM=GS.Invoke;GS.ErrorExecution;var uM,hM=GS.ErrorPlatform,pM=GS.ErrorCustom,fM=GS.Update,mM=GS.Choose,gM=GS.Pure,bM={},vM="xstate.guard",yM="production"===process.env.NODE_ENV;function wM(e,t,n){void 0===n&&(n=".");var r=kM(e,n),o=kM(t,n);return HM(o)?!!HM(r)&&o===r:HM(r)?r in o:Object.keys(r).every((function(e){return e in o&&wM(r[e],o[e])}))}function xM(e){try{return HM(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function CM(e,t){try{return zM(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function kM(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:zM(e)?$M(e):"string"!=typeof e?e:$M(CM(e,t));var n}function $M(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function SM(e,t){for(var n={},r=Object.keys(e),o=0;o<r.length;o++){var i=r[o];n[i]=t(e[i],i,e,o)}return n}function MM(e,t,n){var r,o,i={};try{for(var s=YS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];n(c)&&(i[l]=t(c,l,e))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}var EM=function(e){return function(t){var n,r,o=t;try{for(var i=YS(e),s=i.next();!s.done;s=i.next()){o=o[s.value]}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function TM(e){return e?HM(e)?[[e]]:OM(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?TM(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function OM(e){var t;return(t=[]).concat.apply(t,eM([],QS(e),!1))}function LM(e){return zM(e)?e:[e]}function AM(e){return void 0===e?[]:LM(e)}function NM(e,t,n){var r,o;if(VM(e))return e(t,n.data);var i={};try{for(var s=YS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];VM(c)?i[l]=c(t,n.data):i[l]=c}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}function RM(e){return e instanceof Promise||!(null===e||!VM(e)&&"object"!=typeof e||!VM(e.then))}function DM(e,t){return SM(e.states,(function(e,n){if(e){var r=(HM(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:DM(e,r)}}}))}function PM(e,t,n,r){yM||IM(!!e,"Attempting to update undefined context");var o=e?n.reduce((function(e,n){var o,i,s=n.assignment,a={state:r,action:n,_event:t},l={};if(VM(s))l=s(e,t.data,a);else try{for(var c=YS(Object.keys(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=s[u];l[u]=VM(h)?h(e,t.data,a):h}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return Object.assign({},e,l)}),e):e;return o}var IM=function(){};function zM(e){return Array.isArray(e)}function VM(e){return"function"==typeof e}function HM(e){return"string"==typeof e}function BM(e,t){if(e)return HM(e)?{type:vM,name:e,predicate:t?t[e]:void 0}:VM(e)?{type:vM,name:e.name,predicate:e}:e}yM||(IM=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var _M=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function jM(e){return!!e&&"__xstatenode"in e}function FM(e,t){return HM(e)||"number"==typeof e?JS({type:e},t):e}function qM(e,t){if(!HM(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=FM(e);return JS({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function WM(e,t){return LM(t).map((function(t){return void 0===t||"string"==typeof t||jM(t)?{target:t,event:e}:JS(JS({},t),{event:e})}))}function UM(e,t,n,r,o){var i=e.options.guards,s={state:o,cond:t,_event:r};if(t.type===vM)return((null==i?void 0:i[t.name])||t.predicate)(n,r.data,s);var a=null==i?void 0:i[t.type];if(!a)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return a(n,r.data,s)}function KM(e){return"string"==typeof e?{type:e}:e}function GM(e,t,n){var r=function(){},o="object"==typeof e,i=o?e:null;return{next:((o?e.next:e)||r).bind(i),error:((o?e.error:t)||r).bind(i),complete:((o?e.complete:n)||r).bind(i)}}function ZM(e,t){return"".concat(e,":invocation[").concat(t,"]")}function JM(e){return(e.type===rM||e.type===oM&&e.to===ZS.Internal)&&"number"!=typeof e.delay}(uM={})[_M]=function(){return this},uM[Symbol.observable]=function(){return this};var XM=qM({type:cM});function YM(e,t){return t&&t[e]||void 0}function QM(e,t){var n;if(HM(e)||"number"==typeof e)n=VM(r=YM(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(VM(e))n={type:e.name||e.toString(),exec:e};else{var r;if(VM(r=YM(e.type,t)))n=JS(JS({},e),{exec:r});else if(r){var o=r.type||e.type;n=JS(JS(JS({},r),e),{type:o})}else n=e}return n}var eE=function(e,t){return e?(zM(e)?e:[e]).map((function(e){return QM(e,t)})):[]};function tE(e){var t=QM(e);return JS(JS({id:HM(e)?e:t.id},t),{type:t.type})}function nE(e,t){var n="".concat(GS.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function rE(e,t){var n="".concat(GS.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function oE(e,t){var n="".concat(GS.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function iE(e,t,n,r,o,i,s){void 0===s&&(s=!1);var a=s?[]:function(e){var t,n,r=[];try{for(var o=YS(e),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;)s.actions[a].type!==aM?a++:(r.push(s.actions[a]),s.actions.splice(a,1))}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(o),l=a.length?PM(n,r,a,t):n,c=s?[n]:void 0,d=[];function u(o,a){var u;switch(a.type){case rM:var h=function(e,t,n,r){var o,i={_event:n},s=qM(VM(e.event)?e.event(t,n.data,i):e.event);if(HM(e.delay)){var a=r&&r[e.delay];o=VM(a)?a(t,n.data,i):a}else o=VM(e.delay)?e.delay(t,n.data,i):e.delay;return JS(JS({},e),{type:rM,_event:s,delay:o})}(a,l,r,e.options.delays);return i&&"number"==typeof h.delay&&i(h,l,r),h;case oM:var p=function(e,t,n,r){var o,i={_event:n},s=qM(VM(e.event)?e.event(t,n.data,i):e.event);if(HM(e.delay)){var a=r&&r[e.delay];o=VM(a)?a(t,n.data,i):a}else o=VM(e.delay)?e.delay(t,n.data,i):e.delay;var l=VM(e.to)?e.to(t,n.data,i):e.to;return JS(JS({},e),{to:l,_event:s,event:s.data,delay:o})}(a,l,r,e.options.delays);if(!yM){var f=a.delay;IM(!HM(f)||"number"==typeof p.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&p.to!==ZS.Internal&&("entry"===o?d.push(p):i(p,l,r)),p;case lM:var m=function(e,t,n){return JS(JS({},e),{value:HM(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(a,l,r);return null==i||i(m,l,r),m;case mM:if(!(y=null===(u=a.conds.find((function(n){var o=BM(n.cond,e.options.guards);return!o||UM(e,o,l,r,i?void 0:t)})))||void 0===u?void 0:u.actions))return[];var g=QS(iE(e,t,l,r,[{type:o,actions:eE(AM(y),e.options.actions)}],i,s),2),b=g[0],v=g[1];return l=v,null==c||c.push(l),b;case gM:var y;if(!(y=a.get(l,r.data)))return[];var w=QS(iE(e,t,l,r,[{type:o,actions:eE(AM(y),e.options.actions)}],i,s),2),x=w[0],C=w[1];return l=C,null==c||c.push(l),x;case nM:m=function(e,t,n){var r=VM(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:GS.Stop,activity:o}}(a,l,r);return null==i||i(m,n,r),m;case aM:l=PM(l,r,[a],i?void 0:t),null==c||c.push(l);break;default:var k=QM(a,e.options.actions),$=k.exec;if(i)i(k,l,r);else if($&&c){var S=c.length-1,M=JS(JS({},k),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];$.apply(void 0,eM([c[S]],QS(t),!1))}});k=M}return k}}var h=OM(o.map((function(e){var t,n,o=[];try{for(var s=YS(e.actions),a=s.next();!a.done;a=s.next()){var c=a.value,h=u(e.type,c);h&&(o=o.concat(h))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return d.forEach((function(e){i(e,l,r)})),d.length=0,o})));return[h,l]}var sE=function(e,t){return t(e)};function aE(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[_M]=function(){return this},t}function lE(e,t,n){var r=aE(t);if(r.deferred=!0,jM(e)){var o=r.state=sE(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var cE=function(e){return"atomic"===e.type||"final"===e.type};function dE(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function uE(e){return dE(e).filter((function(e){return"history"!==e.type}))}function hE(e){var t=[e];return cE(e)?t:t.concat(OM(uE(e).map(hE)))}function pE(e,t){var n,r,o,i,s,a,l,c,d=mE(new Set(e)),u=new Set(t);try{for(var h=YS(u),p=h.next();!p.done;p=h.next())for(var f=(k=p.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var m=mE(u);try{for(var g=YS(u),b=g.next();!b.done;b=g.next()){if("compound"!==(k=b.value).type||m.get(k)&&m.get(k).length){if("parallel"===k.type)try{for(var v=(s=void 0,YS(uE(k))),y=v.next();!y.done;y=v.next()){var w=y.value;u.has(w)||(u.add(w),d.get(w)?d.get(w).forEach((function(e){return u.add(e)})):w.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){s={error:e}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}}else d.get(k)?d.get(k).forEach((function(e){return u.add(e)})):k.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){o={error:e}}finally{try{b&&!b.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var x=YS(u),C=x.next();!C.done;C=x.next()){var k;for(f=(k=C.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}return u}function fE(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(cE(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=fE(e,t)})),o}function mE(e){var t,n,r=new Map;try{for(var o=YS(e),i=o.next();!i.done;i=o.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function gE(e,t){return fE(e,mE(pE([e],t)))}function bE(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function vE(e,t){return"compound"===t.type?uE(t).some((function(t){return"final"===t.type&&bE(e,t)})):"parallel"===t.type&&uE(t).every((function(t){return vE(e,t)}))}function yE(e){return new Set(OM(e.map((function(e){return e.tags}))))}function wE(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(HM(e)||HM(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return wE(e[n],t[n])}))}var xE=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=bM,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||bM,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return eM([],QS(new Set(OM(eM([],QS(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:XM,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=XM;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),HM(e))return[e];var r=Object.keys(e);return r.concat.apply(r,eM([],QS(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=XS(e,["configuration","transitions","tags","machine"]);return JS(JS({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return wM(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;yM&&IM(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),CE={deferEvents:!1},kE=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=JS(JS({},CE),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),$E=new Map,SE=0,ME=function(){return"x:".concat(SE++)},EE=function(e,t){return $E.set(e,t),e},TE=function(e){return $E.get(e)},OE=function(e){$E.delete(e)};function LE(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(yM||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function AE(e){if(LE()){var t=function(){var e=LE();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function NE(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,s=function(e){var t;return JS(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[_M]=function(){return this},t),e)}({id:t.id,send:function(t){o.push(t),function(){if(!i){for(i=!0;o.length>0;){var t=o.shift();n=e.transition(n,t,a),r.forEach((function(e){return e.next(n)}))}i=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var i=GM(e,t,o);return r.add(i),i.next(n),{unsubscribe:function(){r.delete(i)}}}}),a={parent:t.parent,self:s,id:t.id||"anonymous",observers:r};return n=e.start?e.start(a):n,s}var RE,DE={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(RE||(RE={}));var PE=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=RE.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(zM(e))return r.batch(e),r.state;var n=qM(FM(e,t));if(r.status===RE.Stopped)return yM||IM(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==RE.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var o,i=r.parent&&(t===ZS.Parent||r.parent.id===t),s=i?r.parent:HM(t)?t===ZS.Internal?r:r.children.get(t)||TE(t):(o=t)&&"function"==typeof o.send?t:void 0;if(s)if("machine"in s){if(r.status!==RE.Stopped||r.parent!==s||r.state.done){var a=JS(JS({},e),{name:e.name===pM?"".concat(oE(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,a]):s.send(a)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,e.data]):s.send(e.data);else{if(!i)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));yM||IM(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,o){void 0===o&&(o=r.machine.options.actions);var i=e.exec||YM(e.type,o),s=VM(i)?i:i?i.exec:e.exec;if(s)try{return s(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case rM:var a=e;r.defer(a);break;case oM:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===XM):r.send(l._event);break;case iM:r.cancel(e.sendId);break;case tM:if(r.status!==RE.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===GS.Invoke){var d=KM(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,h=c.id,p=c.data;yM||IM(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!u)return void(yM||IM(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var m=p?NM(p,t,n):void 0;if("string"==typeof u)return;var g=VM(u)?u(t,n.data,{data:m,src:d,meta:c.meta}):u;if(!g)return;var b=void 0;jM(g)&&(g=m?g.withContext(m):g,b={autoForward:f}),r.spawn(g,h,b)}else r.spawnActivity(c);break;case nM:r.stopChild(e.activity.id);break;case lM:var v=e,y=v.label,w=v.value;y?r.logger(y,w):r.logger(w);break;default:yM||IM(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=JS(JS({},e.defaultOptions),n),i=o.clock,s=o.logger,a=o.parent,l=o.id,c=void 0!==l?l:t.id;this.id=c,this.logger=s,this.clock=i,this.parent=a,this.options=o,this.scheduler=new kE({deferEvents:this.options.deferEvents}),this.sessionId=ME()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:sE(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return yM||IM(this.status!==RE.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var o=YS(e.actions),i=o.next();!i.done;i=o.next()){var s=i.value;this.exec(s,e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,o,i,s,a,l,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==XM||!this.options.execute)for(var u=void 0;u=this._outgoingQueue.shift();)u[0].send(u[1]);else this.execute(this.state);if(this.children.forEach((function(e){d.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var h=YS(this.eventListeners),p=h.next();!p.done;p=h.next()){(0,p.value)(e.event)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var f=YS(this.listeners),m=f.next();!m.done;m=f.next()){(0,m.value)(e,e.event)}}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}try{for(var g=YS(this.contextListeners),b=g.next();!b.done;b=g.next()){(0,b.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){s={error:e}}finally{try{b&&!b.done&&(a=g.return)&&a.call(g)}finally{if(s)throw s.error}}if(this.state.done){var v=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),y=v&&v.doneData?NM(v.doneData,e.context,t):void 0;this._doneEvent=rE(this.id,y);try{for(var w=YS(this.doneListeners),x=w.next();!x.done;x=w.next()){(0,x.value)(this._doneEvent)}}catch(e){l={error:e}}finally{try{x&&!x.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),OE(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===RE.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=GM(e,t,n);this.listeners.add(o.next),this.status!==RE.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===RE.Stopped?o.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){r.listeners.delete(o.next),r.doneListeners.delete(i),r.stopListeners.delete(i)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===RE.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===RE.Running)return this;this.machine._init(),EE(this.sessionId,this),this.initialized=!0,this.status=RE.Running;var n=void 0===e?this.initialState:sE(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(xE.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,XM)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){VM(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,o,i,s,a,l,c;try{for(var d=YS(this.listeners),u=d.next();!u.done;u=d.next()){var h=u.value;this.listeners.delete(h)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var p=YS(this.stopListeners),f=p.next();!f.done;f=p.next()){(h=f.value)(),this.stopListeners.delete(h)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var m=YS(this.contextListeners),g=m.next();!g.done;g=m.next()){h=g.value;this.contextListeners.delete(h)}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}try{for(var b=YS(this.doneListeners),v=b.next();!v.done;v=b.next()){h=v.value;this.doneListeners.delete(h)}}catch(e){s={error:e}}finally{try{v&&!v.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.initialized=!1,this.status=RE.Stopped,this._initialState=void 0;try{for(var y=YS(Object.keys(this.delayedEventsMap)),w=y.next();!w.done;w=y.next()){var x=w.value;this.clock.clearTimeout(this.delayedEventsMap[x])}}catch(e){l={error:e}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new kE({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=qM({type:"xstate.stop"}),r=sE(e,(function(){var t=OM(eM([],QS(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return eE(t.onExit,e.machine.options.actions)}))),r=QS(iE(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),o=r[0],i=r[1],s=new xE({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!JM(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return s.changed=!0,s}));e.update(r,n),e._stopChildren(),OE(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===RE.NotStarted&&this.options.deferEvents)yM||IM(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==RE.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,o,i=t.state,s=!1,a=[],l=function(e){var r=qM(e);t.forward(r),i=sE(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),a.push.apply(a,eM([],QS(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return JS(JS({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,i)}))),!1)),s=s||!!i.changed};try{for(var c=YS(e),d=c.next();!d.done;d=c.next()){l(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}i.changed=s,i.actions=a,t.update(i,qM(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=qM(e);if(0===r.name.indexOf(hM)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(hM)})))throw r.data.data;return sE(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=YS(this.forwardTo),o=r.next();!o.done;o=r.next()){var i=o.value,s=this.children.get(i);if(!s)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));s.send(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),VM(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==RE.Running)return lE(e,t);if(RM(e))return this.spawnPromise(Promise.resolve(e),t);if(VM(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(o=e)&&"id"in o)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&VM(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(jM(e))return this.spawnMachine(e,JS(JS({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,o},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var o=new e(t,JS(JS({},this.options),{parent:this,id:n.id||t.id})),i=JS(JS({},DE),n);i.sync&&o.onTransition((function(e){r.send(fM,{state:e,id:o.id})}));var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone((function(e){r.removeChild(o.id),r.send(qM(e,{origin:o.id}))})).start(),s},e.prototype.spawnBehavior=function(e,t){var n=NE(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,o=this,i=!1;e.then((function(e){i||(r=e,o.removeChild(t),o.send(qM(rE(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=oE(t,e);try{o.send(qM(n,{origin:t}))}catch(r){!function(e,t,n){if(!yM){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var o=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(o))}}}(e,r,t),o.devTools&&o.devTools.send(n,o.state),o.machine.strict&&o.stop()}}}));var s=((n={id:t,send:function(){},subscribe:function(t,n,r){var o=GM(t,n,r),i=!1;return e.then((function(e){i||(o.next(e),i||o.complete())}),(function(e){i||o.error(e)})),{unsubscribe:function(){return i=!0}}},stop:function(){i=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[_M]=function(){return this},n);return this.children.set(t,s),s},e.prototype.spawnCallback=function(e,t){var n,r,o,i=this,s=!1,a=new Set,l=new Set;try{o=e((function(e){r=e,l.forEach((function(t){return t(e)})),s||i.send(qM(e,{origin:t}))}),(function(e){a.add(e)}))}catch(e){this.send(oE(t,e))}if(RM(o))return this.spawnPromise(o,t);var c=((n={id:t,send:function(e){return a.forEach((function(t){return t(e)}))},subscribe:function(e){var t=GM(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){s=!0,VM(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[_M]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,o=this,i=e.subscribe((function(e){r=e,o.send(qM(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(qM(oE(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(qM(rE(t),{origin:t}))})),s=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[_M]=function(){return this},n);return this.children.set(t,s),s},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else yM||IM(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[_M]=function(){return this},n))},e.prototype.attachDev=function(){var e=LE();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(JS(JS({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:JS({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}AE(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[_M]=function(){return this},e.prototype.getSnapshot=function(){return this.status===RE.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=IE,e}();function IE(e,t){return new PE(e,t)}function zE(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function VE(e){return JS(JS({type:dM},e),{toJSON:function(){e.onDone,e.onError;var t=XS(e,["onDone","onError"]);return JS(JS({},t),{type:dM,src:zE(e.src)})}})}var HE="",BE="*",_E={},jE=function(e){return"#"===e[0]},FE=function(){function e(t,n,r,o){void 0===r&&(r="context"in t?t.context:void 0);var i,s=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==o?void 0:o.parent,this.key=this.config.key||(null==o?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||eM([this.machine.key],QS(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(i=this.config.schema)&&void 0!==i?i:{},this.description=this.config.description,yM||IM(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?SM(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:s,key:n});return Object.assign(s.idMap,JS(((r={})[o.id]=o,r),o.idMap)),o})):_E;var a=0;!function e(t){var n,r;t.order=a++;try{for(var o=YS(dE(t)),i=o.next();!i.done;i=o.next()){e(i.value)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===HE})):HE in this.config.on),this.strict=!!this.config.strict,this.onEntry=AM(this.config.entry||this.config.onEntry).map((function(e){return QM(e)})),this.onExit=AM(this.config.exit||this.config.onExit).map((function(e){return QM(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=AM(this.config.invoke).map((function(e,t){var n,r;if(jM(e)){var o=ZM(s.id,t);return s.machine.options.services=JS(((n={})[o]=e,n),s.machine.options.services),VE({src:o,id:o})}if(HM(e.src)){o=e.id||ZM(s.id,t);return VE(JS(JS({},e),{id:o,src:e.src}))}if(jM(e.src)||VM(e.src)){o=e.id||ZM(s.id,t);return s.machine.options.services=JS(((r={})[o]=e.src,r),s.machine.options.services),VE(JS(JS({id:o},e),{src:o}))}var i=e.src;return VE(JS(JS({id:ZM(s.id,t)},e),{src:i}))})),this.activities=AM(this.config.activities).concat(this.invoke).map((function(e){return tE(e)})),this.transition=this.transition.bind(this),this.tags=AM(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||hE(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,s=r.guards,a=r.services,l=r.delays;return new e(this.config,{actions:JS(JS({},o),t.actions),activities:JS(JS({},i),t.activities),guards:JS(JS({},s),t.guards),services:JS(JS({},a),t.services),delays:JS(JS({},l),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return VM(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:SM(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===HE,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===BE}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(GS.After,"(").concat(e,")").concat(n)}(VM(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(function(e,t){return{to:t?t.to:void 0,type:oM,event:VM(e)?e:FM(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:VM(e)?e.name:xM(e)}}(r,{delay:t})),e.onExit.push({type:iM,sendId:r}),r},r=zM(t)?t.map((function(e,t){var r=n(e.delay,t);return JS(JS({},e),{event:r})})):OM(Object.keys(t).map((function(e,r){var o=t[e],i=HM(o)?{target:o}:o,s=isNaN(+e)?e:+e,a=n(s,r);return AM(i).map((function(e){return JS(JS({},e),{event:a,delay:s})}))})));return r.map((function(t){var n=t.delay;return JS(JS({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof xE?e.value:kM(e,this.delimiter);if(HM(r)){var o=this.getStateNode(r).initial;return void 0!==o?this.getStateNodes(((t={})[r]=o,t)):[this,this.states[r]]}var i=Object.keys(r),s=[this];return s.push.apply(s,eM([],QS(OM(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),s},e.prototype.handles=function(e){var t=xM(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof xE?e:xE.create(e),n=Array.from(pE([],this.getStateNodes(t.value)));return new xE(JS(JS({},t),{value:this.resolve(t.value),configuration:n,done:vE(n,this),tags:yE(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),o=this.getStateNode(r[0])._transition(e[r[0]],t,n);return o&&o.transitions.length?o:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,o,i={};try{for(var s=YS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];if(c){var d=this.getStateNode(l)._transition(c,t,n);d&&(i[l]=d)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var u=Object.keys(i).map((function(e){return i[e]})),h=OM(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var p=OM(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:h,exitSet:OM(u.map((function(e){return e.exitSet}))),configuration:p,source:t,actions:OM(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return HM(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,qM(t))},e.prototype.next=function(e,t){var n,r,o,i=this,s=t.name,a=[],l=[];try{for(var c=YS(this.getCandidates(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=u.cond,p=u.in,f=e.context,m=!p||(HM(p)&&jE(p)?e.matches(kM(this.getStateNodeById(p).path,this.delimiter)):wM(kM(p,this.delimiter),EM(this.path.slice(0,-2))(e.value))),g=!1;try{g=!h||UM(this.machine,h,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(h.name||h.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(g&&m){void 0!==u.target&&(l=u.target),a.push.apply(a,eM([],QS(u.actions),!1)),o=u;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(o){if(!l.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:a};var b=OM(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:OM(l.map((function(e){return i.getPotentiallyReenteringNodes(e)}))),configuration:b,source:e,actions:a}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,o,i,s){var a,l,c,d,u=this,h=i?pE([],this.getStateNodes(i.value)):[],p=new Set;try{for(var f=YS(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=f.next();!m.done;m=f.next()){(!bE(h,v=m.value)||bE(n.exitSet,v)||v.parent&&p.has(v.parent))&&p.add(v)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}try{for(var g=YS(h),b=g.next();!b.done;b=g.next()){var v;bE(e,v=b.value)&&!bE(n.exitSet,v.parent)||n.exitSet.push(v)}}catch(e){c={error:e}}finally{try{b&&!b.done&&(d=g.return)&&d.call(g)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var y=Array.from(p).sort((function(e,t){return e.order-t.order})),w=new Set(n.exitSet),x=OM(y.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(nE(e.id,e.doneData),nE(i.id,e.doneData?NM(e.doneData,r,o):void 0));var s=i.parent;return"parallel"===s.type&&uE(s).every((function(e){return vE(n.configuration,e)}))&&t.push(nE(s.id)),t}))),C=y.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=tE(e);return{type:GS.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:eE(s?eM(eM([],QS(t),!1),QS(n),!1):eM(eM([],QS(n),!1),QS(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:x.map((function(e){return function(e,t){return{type:rM,event:"function"==typeof e?e:FM(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),k=Array.from(w).map((function(e){return{type:"exit",actions:eE(eM(eM([],QS(e.onExit),!1),QS(e.activities.map((function(e){return function(e){var t=VM(e)?e:tE(e);return{type:GS.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:eE(n.actions,this.machine.options.actions)}).concat(C);if(t){var $=eE(OM(eM([],QS(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!JM(e)}));return k.concat({type:"stop",actions:$})}return k},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var o,i,s=qM(t);if(e instanceof xE)o=void 0===n?e:this.resolveState(xE.from(e,n));else{var a=HM(e)?this.resolve($M(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(xE.from(a,l))}if(!yM&&s.name===BE)throw new Error("An event cannot have the wildcard type ('".concat(BE,"')"));if(this.strict&&!this.events.includes(s.name)&&(i=s.name,!/^(done|error)\./.test(i)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(s.name,"'"));var c=this._transition(o.value,o,s)||{transitions:[],configuration:[],exitSet:[],source:o,actions:[]},d=pE([],this.getStateNodes(o.value)),u=c.configuration.length?pE(d,c.configuration):d;return c.configuration=eM([],QS(u),!1),this.resolveTransition(c,o,o.context,r,s)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var o,i=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(o=e.actions).unshift.apply(o,eM([],QS(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,s,a,l,c=this;void 0===o&&(o=XM);var d=e.configuration,u=!t||e.transitions.length>0,h=u?e.configuration:t?t.configuration:[],p=vE(h,this),f=u?gE(this.machine,d):void 0,m=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,g=this.getActions(new Set(h),p,e,n,o,t,r),b=t?JS({},t.activities):{};try{for(var v=YS(g),y=v.next();!y.done;y=v.next()){var w=y.value;try{for(var x=(a=void 0,YS(w.actions)),C=x.next();!C.done;C=x.next()){var k=C.value;k.type===tM?b[k.activity.id||k.activity.type]=k:k.type===nM&&(b[k.activity.id||k.activity.type]=!1)}}catch(e){a={error:e}}finally{try{C&&!C.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}}catch(e){i={error:e}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}var $,S,M=QS(iE(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),E=M[0],T=M[1],O=QS(function(e,t){var n,r,o=QS([[],[]],2),i=o[0],s=o[1];try{for(var a=YS(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(E,JM),2),L=O[0],A=O[1],N=E.filter((function(e){var t;return e.type===tM&&(null===(t=e.activity)||void 0===t?void 0:t.type)===dM})),R=N.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=KM(e.src),s=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],a=e.data?NM(e.data,n,r):void 0,l=s?lE(s,e.id,a):aE(e.id);return l.meta=e,l}(t.activity,c.machine,T,o),e}),t?JS({},t.children):{}),D=new xE({value:f||t.value,context:T,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?m?($=m,S=f,{current:S,states:DM($,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?A:[],activities:f?b:t?t.activities:{},events:[],configuration:h,transitions:e.transitions,children:R,done:p,tags:yE(h),machine:this}),P=n!==T;D.changed=o.name===fM||P;var I=D.history;I&&delete I.history;var z=!p&&(this._transient||d.some((function(e){return e._transient})));if(!(u||z&&o.name!==HE))return D;var V=D;if(!p)for(z&&(V=this.resolveRaisedTransition(V,{type:sM},o,r));L.length;){var H=L.shift();V=this.resolveRaisedTransition(V,H._event,o,r)}var B=V.changed||(I?!!V.actions.length||P||typeof I.value!=typeof V.value||!wE(V.value,I.value):void 0);return V.changed=B,V.history=I,V},e.prototype.getStateNode=function(e){if(jE(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=jE(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&jE(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=CM(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||_E;switch(this.type){case"parallel":return SM(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):_E}));case"compound":if(HM(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?SM(e,(function(e,t){return e?n.getStateNode(t).resolve(e):_E})):this.initialStateValue||{};default:return e||_E}},e.prototype.getResolvedPath=function(e){if(jE(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return CM(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=MM(this.states,(function(e){return e.initialStateValue||_E}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=cE(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=HM(t.target)&&jE(t.target)?$M(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return cE(this)?[this]:"compound"!==this.type||this.initial?OM(TM(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(yM||IM(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=QS(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:MM(this.states,(function(t,n){if(!e)return t.historyValue();var r=HM(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?OM(TM(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o,i,s=(o=n.path,i="states",function(e){var t,n,r=e;try{for(var s=YS(o),a=s.next();!a.done;a=s.next()){var l=a.value;r=r[i][l]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return r})(e).current;return HM(s)?[n.getStateNode(s)]:OM(TM(s).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=OM(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var o=this.states,i=new Set(this.ownEvents);if(o)try{for(var s=YS(Object.keys(o)),a=s.next();!a.done;a=s.next()){var l=o[a.value];if(l.states)try{for(var c=(n=void 0,YS(l.events)),d=c.next();!d.done;d=c.next()){var u=d.value;i.add("".concat(u))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!HM(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return AM(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return HM(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),s=JS(JS({},e),{actions:eE(AM(e.actions)),cond:BM(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return JS(JS({},s),{target:s.target?s.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return s},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var o=this.config.on,i=BE,s=o[i],a=void 0===s?[]:s,l=XS(o,["*"]);n=OM(Object.keys(l).map((function(e){yM||e!==HE||IM(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=WM(e,l[e]);return yM||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(HM(e.target)||jM(e.target))})),o=t===HE?"the transient event":"event '".concat(t,"'");IM(!r,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(WM(BE,a)))}else n=[];var c=this.config.always?WM("",this.config.always):[],d=this.config.onDone?WM(String(nE(this.id)),this.config.onDone):[];yM||IM(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=OM(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,eM([],QS(WM(String(rE(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,eM([],QS(WM(String(oE(e.id)),e.onError)),!1)),t}))),h=this.after,p=OM(eM(eM(eM(eM([],QS(d),!1),QS(u),!1),QS(n),!1),QS(c),!1).map((function(e){return AM(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=YS(h),m=f.next();!m.done;m=f.next()){var g=m.value;p.push(g)}}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return p},e}();var qE,WE=function(e){return{type:aM,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(qE||(qE={}));var UE="undefined"!=typeof document?de:function(){};function KE(e){var t=ee.useRef();return t.current||(t.current={v:e()}),t.current.v}var GE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},ZE=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var JE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},XE=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function YE(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function QE(e){var t=se([]),n=se([]);UE((function(){var r=e.subscribe((function(e){var r,o;if(e.actions.length){var i=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),s=JE(function(e,t){var n,r,o=GE([[],[]],2),i=o[0],s=o[1];try{for(var a=ZE(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(i,(function(e){return e.exec.__effect===qE.Effect})),2),a=s[0],l=s[1];(r=t.current).push.apply(r,XE([],JE(a.map((function(t){return[t,e]}))),!1)),(o=n.current).push.apply(o,XE([],JE(l.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),UE((function(){for(;n.current.length;){var e=JE(n.current.shift(),2);YE(e[0],e[1])}})),ce((function(){for(;t.current.length;){var e=JE(t.current.shift(),2);YE(e[0],e[1])}}))}var eT=function(){return eT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},eT.apply(this,arguments)},tT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},nT=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};var rT=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};function oT(e,t){void 0===t&&(t={});var n=ue((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&s(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=KE((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var o=nT(ae(r),1)[0];e!==o&&console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.")}var i=t.context,s=t.guards,a=t.actions,l=t.activities,c=t.services,d=t.delays,u=t.state,h=tT(t,["context","guards","actions","activities","services","delays","state"]),p=KE((function(){var e={context:i,guards:s,actions:a,activities:l,services:c,delays:d};return IE(r.withConfig(e,(function(){return eT(eT({},r.context),i)})),eT({deferEvents:!0},h))}));return UE((function(){var e;return n&&(e=p.subscribe(function(e){if("object"==typeof e)return e;var t=function(){};return{next:e,error:void 0||t,complete:void 0||t}}(n))),function(){null==e||e.unsubscribe()}}),[n]),UE((function(){return p.start(u?xE.create(u):void 0),function(){p.stop()}}),[]),UE((function(){Object.assign(p.machine.options.actions,a),Object.assign(p.machine.options.guards,s),Object.assign(p.machine.options.activities,l),Object.assign(p.machine.options.services,c),Object.assign(p.machine.options.delays,d)}),[a,s,l,c,d]),QE(p),p}(e,t,n),o=rT(ae((function(){var e=r.machine.initialState;return t.state?xE.create(t.state):e})),2),i=o[0],s=o[1];return[i,r.send,r]}function iT(){return iT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iT.apply(null,arguments)}function sT(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const aT={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(aT.str(e)||aT.num(e))return e===t;if(aT.obj(e)&&aT.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!aT.und(n)||e===t}};function lT(e,t){return aT.und(e)||aT.nul(e)?t:e}function cT(e){return aT.und(e)?[]:aT.arr(e)?e:[e]}function dT(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return aT.fun(e)?e(...n):e}function uT(e){const t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,sT(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(aT.und(t))return iT({to:t},e);const n=Object.keys(e).reduce(((n,r)=>aT.und(t[r])?iT({},n,{[r]:e[r]}):n),{});return iT({to:t},n)}class hT{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class pT extends hT{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof hT&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof hT&&e.removeChild(this)))}}class fT extends hT{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof hT&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof hT&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof hT)&&(t[n]=r instanceof hT?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let mT,gT;let bT,vT=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let yT,wT=()=>Date.now();class xT extends fT{constructor(e,t){super(),this.update=void 0,this.payload=e.style?iT({},e,{style:yT(e.style)}):e,this.update=t,this.attach()}}let CT=!1;const kT=new Set,$T=()=>{if(!CT)return!1;let e=wT();for(let t of kT){let n=!1;for(let r=0;r<t.configs.length;r++){let o,i,s=t.configs[r];for(let t=0;t<s.animatedValues.length;t++){let r=s.animatedValues[t];if(r.done)continue;let a=s.fromValues[t],l=s.toValues[t],c=r.lastPosition,d=l instanceof hT,u=Array.isArray(s.initialVelocity)?s.initialVelocity[t]:s.initialVelocity;if(d&&(l=l.getValue()),s.immediate)r.setValue(l),r.done=!0;else if("string"!=typeof a&&"string"!=typeof l){if(void 0!==s.duration)c=a+s.easing((e-r.startTime)/s.duration)*(l-a),o=e>=r.startTime+s.duration;else if(s.decay)c=a+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),o=Math.abs(r.lastPosition-c)<.1,o&&(l=c);else{i=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:s.initialVelocity,e>i+64&&(i=e);let t=Math.floor(e-i);for(let e=0;e<t;++e){u+=1*((-s.tension*(c-l)+-s.friction*u)/s.mass)/1e3,c+=1*u/1e3}let n=!(!s.clamp||0===s.tension)&&(a<l?c>l:c<l),d=Math.abs(u)<=s.precision,h=0===s.tension||Math.abs(l-c)<=s.precision;o=n||d&&h,r.lastVelocity=u,r.lastTime=e}d&&!s.toValues[t].done&&(o=!1),o?(r.value!==l&&(c=l),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(l),r.done=!0}t.props.onFrame&&(t.values[s.name]=s.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(kT.delete(t),t.stop(!0))}return kT.size?vT($T):CT=!1,CT};function ST(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return ST({range:e,output:t,extrapolate:n});if(bT&&"string"==typeof e.output[0])return bT(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,s,a,l){let c=l?l(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>n){if("identity"===a)return c;"clamp"===a&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,s,a,r.map)}}class MT extends pT{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof pT&&!(e instanceof MT)?e.getPayload():Array.isArray(e)?e:[e],this.calc=ST(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=ST(e,t,n)}interpolate(e,t,n){return new MT(this,e,t,n)}}const ET=(e,t,n)=>e&&new MT(e,t,n);function TT(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>TT(e,t)))}class OT extends hT{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&TT(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new MT(this,e,t,n)}}class LT extends pT{constructor(e){super(),this.payload=e.map((e=>new OT(e)))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach(((e,n)=>this.payload[n].setValue(e,t))):this.payload.forEach((n=>n.setValue(e,t)))}getValue(){return this.payload.map((e=>e.getValue()))}interpolate(e,t){return new MT(this,e,t)}}let AT=0,NT=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=AT++}update(e){if(!e)return this;const t=uT(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=sT(t,["delay","to"]);if(aT.arr(o)||aT.fun(o))this.queue.push(iT({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const s=iT({to:{[n]:o},delay:dT(r,n)},i),a=e[s.delay]&&e[s.delay].to;e[s.delay]=iT({},e[s.delay],s,{to:iT({},a,s.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(i),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,o=void 0===r?{}:r;aT.obj(n)&&(this.merged=iT({},n,this.merged)),aT.obj(o)&&(this.merged=iT({},this.merged,o))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,o)=>{let i=r.delay,s=sT(r,["delay"]);const a=r=>{o===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let l=aT.arr(s.to)||aT.fun(s.to);i?setTimeout((()=>{t===this.guid&&(l?this.runAsync(s,a):this.diff(s).start(a))}),i):l?this.runAsync(s,a):this.diff(s).start(a)}))}else aT.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,kT.has(t)||kT.add(t),CT||(CT=!0,vT($T));var t;return this}stop(e){return this.listeners.forEach((t=>t(e))),this.listeners=[],this}pause(e){var t;return this.stop(!0),e&&(t=this,kT.has(t)&&kT.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=sT(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(aT.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=iT({},r,uT(r.to[t]));aT.arr(n.config)&&(n.config=n.config[t]),i=i.then((()=>{if(o===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(aT.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=iT({},r,uT(n));if(aT.arr(i.config)&&(i.config=i.config[t]),t++,o===this.guid)return e=new Promise((e=>this.diff(i).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}i.then(t)}diff(e){this.props=iT({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,o=t.to,i=void 0===o?{}:o,s=t.config,a=void 0===s?{}:s,l=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(l){var h=[i,r];r=h[0],i=h[1]}this.merged=iT({},r,this.merged,i),this.hasChanged=!1;let p=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],o=t[1],i=e[n]||{};const s=aT.num(o),l=aT.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!gT[o],c=aT.arr(o),h=!s&&!c&&!l;let f=aT.und(r[n])?o:r[n],m=s||c||l?o:1,g=dT(a,n);p&&(m=p.animations[n].parent);let b,v=i.parent,y=i.interpolation,w=cT(p?m.getPayload():m),x=o;h&&(x=bT({range:[0,1],output:[o,o]})(1));let C=y&&y.getValue();const k=!aT.und(v)&&i.animatedValues.some((e=>!e.done)),$=!aT.equ(x,C),S=!aT.equ(x,i.previous),M=!aT.equ(g,i.config);if(d||S&&$||M){if(s||l)v=y=i.parent||new OT(f);else if(c)v=y=i.parent||new LT(f);else if(h){let e=i.interpolation&&i.interpolation.calc(i.parent.value);e=void 0===e||d?f:e,i.parent?(v=i.parent,v.setValue(0,!1)):v=new OT(0);const t={output:[e,o]};i.interpolation?(y=i.interpolation,i.interpolation.updateConfig(t)):y=v.interpolate(t)}return w=cT(p?m.getPayload():m),b=cT(v.getPayload()),d&&!h&&v.setValue(f,!1),this.hasChanged=!0,b.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=k?e.lastVelocity:void 0,e.lastTime=k?e.lastTime:void 0,e.startTime=wT(),e.done=!1,e.animatedStyles.clear()})),dT(u,n)&&v.setValue(h?m:o,!1),iT({},e,{[n]:iT({},i,{name:n,parent:v,interpolation:y,animatedValues:b,toValues:w,previous:x,config:g,fromValues:cT(v.getValue()),immediate:dT(u,n),initialVelocity:lT(g.velocity,0),clamp:lT(g.clamp,!1),precision:lT(g.precision,.01),tension:lT(g.tension,170),friction:lT(g.friction,26),mass:lT(g.mass,1),duration:g.duration,easing:lT(g.easing,(e=>e)),decay:g.decay})})}return $?e:(h&&(v.setValue(1,!1),y.updateConfig({output:[x,x]})),v.done=!0,this.hasChanged=!0,iT({},e,{[n]:iT({},e[n],{previous:x})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const RT=e=>{const t=aT.fun(e),n=((e,t)=>{const n=se(!1),r=se(),o=aT.fun(t),i=oe((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const i=new NT,s=o?dT(t,r,i):t[r];return 0===r&&(n=s.ref),i.update(s),n||i.start(),i})),n]}),[e]),s=i[0],a=i[1];r.current=s,me(a,(()=>({start:()=>Promise.all(r.current.map((e=>new Promise((t=>e.start(t)))))),stop:e=>r.current.forEach((t=>t.stop(e))),get controllers(){return r.current}})));const l=oe((()=>e=>r.current.map(((t,n)=>{t.update(o?dT(e,n,t):e[n]),a||t.start()}))),[e]);ce((()=>{n.current?o||l(t):a||r.current.forEach((e=>e.start()))})),ce((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return o?[c,l,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r};class DT extends fT{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof hT||(e=mT.transform(e)),this.payload=e}}const PT={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},IT="[-+]?\\d*\\.?\\d+",zT=IT+"%";function VT(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const HT=new RegExp("rgb"+VT(IT,IT,IT)),BT=new RegExp("rgba"+VT(IT,IT,IT,IT)),_T=new RegExp("hsl"+VT(IT,zT,zT)),jT=new RegExp("hsla"+VT(IT,zT,zT,IT)),FT=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,qT=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,WT=/^#([0-9a-fA-F]{6})$/,UT=/^#([0-9a-fA-F]{8})$/;function KT(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function GT(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=KT(o,r,e+1/3),s=KT(o,r,e),a=KT(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function ZT(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function JT(e){return(parseFloat(e)%360+360)%360/360}function XT(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function YT(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function QT(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=WT.exec(e))?parseInt(t[1]+"ff",16)>>>0:PT.hasOwnProperty(e)?PT[e]:(t=HT.exec(e))?(ZT(t[1])<<24|ZT(t[2])<<16|ZT(t[3])<<8|255)>>>0:(t=BT.exec(e))?(ZT(t[1])<<24|ZT(t[2])<<16|ZT(t[3])<<8|XT(t[4]))>>>0:(t=FT.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=UT.exec(e))?parseInt(t[1],16)>>>0:(t=qT.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=_T.exec(e))?(255|GT(JT(t[1]),YT(t[2]),YT(t[3])))>>>0:(t=jT.exec(e))?(GT(JT(t[1]),YT(t[2]),YT(t[3]))|XT(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const eO=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,tO=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,nO=new RegExp(`(${Object.keys(PT).join("|")})`,"g");let rO={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const oO=["Webkit","Ms","Moz","O"];function iO(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||rO.hasOwnProperty(e)&&rO[e]?(""+t).trim():t+"px"}rO=Object.keys(rO).reduce(((e,t)=>(oO.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),rO);const sO={};var aO,lO;aO=e=>new DT(e),yT=aO,lO=e=>{const t=e.output.map((e=>e.replace(tO,QT))).map((e=>e.replace(nO,QT))),n=t[0].match(eO).map((()=>[]));t.forEach((e=>{e.match(eO).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(eO).map(((t,r)=>ST(iT({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(eO,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`))}},bT=lO,gT=PT,function(e,t){mT={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const o=t.style,i=t.children,s=t.scrollTop,a=t.scrollLeft,l=sT(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==s&&(e.scrollTop=s),void 0!==a&&(e.scrollLeft=a),void 0!==i&&(e.textContent=i);for(let t in o)if(o.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=iO(t,o[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in l){const n=c?t:sO[t]||(sO[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var cO;const dO=(cO=e=>ie(((t,n)=>{const r=function(){const e=ae(!1)[1];return ue((()=>e((e=>!e))),[])}(),o=se(!0),i=se(null),s=se(null),a=ue((e=>{const t=i.current;i.current=new xT(e,(()=>{let e=!1;s.current&&(e=mT.fn(s.current,i.current.getAnimatedValue())),s.current&&!1!==e||r()})),t&&t.detach()}),[]);ce((()=>()=>{o.current=!1,i.current&&i.current.detach()}),[]),me(n,(()=>(e=>e.current)(s))),a(t);const l=i.current.getValue();l.scrollTop,l.scrollLeft;const c=sT(l,["scrollTop","scrollLeft"]),d=(u=e,!aT.fun(u)||u.prototype instanceof te.Component?e=>s.current=function(e,t){return t&&(aT.fun(t)?t(e):aT.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return te.createElement(e,iT({},c,{ref:d}))})),e=>(aT.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=cO(n),e}),cO))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function uO(e,t){return e.map((function(e,n){return e+t[n]}))}function hO(e,t){return e.map((function(e,n){return e-t[n]}))}function pO(e){return Math.hypot.apply(Math,e)}function fO(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function mO(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function gO(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-mO(t-e,n-t,r)+t:e>n?+mO(e-n,n-t,r)+n:e}function bO(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function vO(){return vO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vO.apply(this,arguments)}function yO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function wO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CO(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return xO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xO(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function kO(){}function $O(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?kO:1===t.length?t[0]:function(){for(var e,n,r=CO(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function SO(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function MO(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function EO(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],s=i[0],a=i[1];switch(typeof a){case"function":n[s]=a.call(n,e[s],s,e);break;case"object":n[s]=EO(e[s],a);break;case"boolean":a&&(n[s]=e[s])}}return n}var TO=vO({},{threshold:function(e){return void 0===e&&(e=0),SO(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return SO(.15);case!1:return SO(0);default:return SO(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:SO(e)}},{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return TO.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,o=t.right,i=void 0===o?1/0:o,s=t.top,a=void 0===s?-1/0:s,l=t.bottom;return[[r,i],[a,void 0===l?1/0:l]]}}),OO="undefined"!=typeof window&&window.document&&window.document.createElement,LO={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=OO?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,o=t.capture;return{passive:r,capture:void 0!==o&&o}}},AO=vO({},TO,{threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,i=n.lockDirection,s=void 0!==i&&i,a=n.axis,l=SO(e,o?3:s||(void 0===a?void 0:a)?1:0);return this.filterTaps=o||l[0]+l[1]>0,l},swipeVelocity:function(e){return void 0===e&&(e=.5),SO(e)},swipeDistance:function(e){return void 0===e&&(e=60),SO(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function NO(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["domTarget","eventOptions","window","enabled"]),s=function(e){return void 0===e&&(e={}),EO(e,LO)}({domTarget:t,eventOptions:n,window:r,enabled:o});return s.drag=function(e){return void 0===e&&(e={}),EO(e,AO)}(i),s}function RO(e){return vO({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:kO,canceled:!1,memo:void 0,args:void 0},e)}function DO(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:RO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:RO({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:RO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:RO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:RO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var PO=new Map,IO=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(i))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var o=vO({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),i=n.handler(o);return n.state.memo=void 0!==i?i:n.state.memo,n.state._active||n.clean(),o}}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t=this.config,n=t.initial,r=t.bounds,o=t.rubberband,i=t.threshold,s=this.state,a=s._bounds,l=s._initial,c=s._active,d=s._intentional,u=s.lastOffset,h=s.movement,p=this.getInternalMovement(e,this.state),f=!1===d[0]?zO(p[0],i[0]):d[0],m=!1===d[1]?zO(p[1],i[1]):d[1],g=this.checkIntentionality([f,m],p);if(g._blocked)return vO({},g,{_movement:p,delta:[0,0]});var b,v,y,w,x=g._intentional,C=p;(!1!==x[0]&&!1===d[0]&&(v=MO(n,this.state),b=MO(r,this.state),l[0]=v[0],a[0]=b[0]),!1!==x[1]&&!1===d[1])&&(v=null!=(y=v)?y:MO(n,this.state),b=null!=(w=b)?w:MO(r,this.state),l[1]=v[1],a[1]=b[1]);var k=[!1!==x[0]?p[0]-x[0]:l[0],!1!==x[1]?p[1]-x[1]:l[1]],$=uO(k,u),S=c?o:[0,0];return k=VO(a,uO(k,l),S),vO({},g,{intentional:!1!==x[0]||!1!==x[1],_initial:l,_movement:C,movement:k,values:e,offset:VO(a,$,S),delta:hO(k,h)})},t.clean=function(){this.clearTimeout()},bO(e,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),e}();function zO(e,t){return Math.abs(e)>=t&&fO(e)*t}function VO(e,t,n){var r=t[0],o=t[1],i=n[0],s=n[1],a=e[0],l=a[0],c=a[1],d=e[1],u=d[0],h=d[1];return[gO(r,l,c,i),gO(o,u,h,s)]}function HO(e,t,n){var r=e.state,o=e.args,i=t.timeStamp,s=t.type,a=r.values;return{_lastEventType:s,event:t,timeStamp:i,elapsedTime:n?0:i-r.startTime,args:o,previous:a}}function BO(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.call.apply(e,[this,vO({},t,{event:n})].concat(o))}}var _O=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(var i,s=CO(t.classes);!(i=s()).done;){new(0,i.value)(t,r).addBindings(e)}for(var a=0,l=Object.entries(t.nativeRefs);a<l.length;a++){var c=l[a];qO(e,c[0],BO(c[1],vO({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=FO(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;UO(o,jO(r),i);for(var s=0,a=Object.entries(t);s<a.length;s++){var l=a[s],c=l[0],d=l[1],u=c.slice(2).toLowerCase();r.push([u,$O.apply(void 0,d)])}WO(o,r,i)}(t,e):function(e,t){for(var n=e.config,r={},o=n.eventOptions.capture?"Capture":"",i=0,s=Object.entries(t);i<s.length;i++){var a=s[i],l=a[0],c=a[1],d=Array.isArray(c)?c:[c];r[l+o]=$O.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=FO(t.config),n=t.config.eventOptions;e&&UO(e,jO(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,o=e.windowListeners;if(!n)return;for(var i in o){UO(n,o[i],r)}e.windowListeners={}}(t)},this.state=DO(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function jO(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function FO(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function qO(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function WO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=CO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.addEventListener(s,a,n)}}function UO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=CO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.removeEventListener(s,a,n)}}function KO(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(PO.get("drag"));e.wheel&&t.add(PO.get("wheel"));e.scroll&&t.add(PO.get("scroll"));e.move&&t.add(PO.get("move"));e.pinch&&t.add(PO.get("pinch"));e.hover&&t.add(PO.get("hover"));return t}(e),o=te.useMemo((function(){return new _O(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,te.useEffect(o.effect,[]),o.config.domTarget?GO:o.bind}function GO(){"development"===process.env.NODE_ENV&&console.warn("Deprecation notice: When the `domTarget` option is specified, you don't need to write `useEffect(bind, [bind])` anymore: event binding is now made handled internally to this lib.\n\nNext version won't return anything when `domTarget` is provided, therefore your code will break if you try to call `useEffect`.")}var ZO=function(e){function t(){return e.apply(this,arguments)||this}yO(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return hO(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],o=n[1],i=this.state.axis||(r>o?"x":r<o?"y":void 0);return this.config.axis||this.config.lockDirection?i?this.config.axis&&i!==this.config.axis?{_intentional:e,_blocked:!0,axis:i}:(e["x"===i?1:0]=!1,{_intentional:e,_blocked:!1,axis:i}):{_intentional:[!1,!1],_blocked:!1,axis:i}:{_intentional:e,_blocked:!1,axis:i}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=pO(t),o=0===r?0:1/r,i=0===n?0:1/n,s=i*r,a=t.map((function(e){return i*e})),l=t.map((function(e){return o*e}));return{velocities:a,velocity:s,distance:pO(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(IO);function JO(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function XO(e){var t="buttons"in e?e.buttons:0,n=JO(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function YO(e){var t=JO(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var QO=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(!function(e,t,n){var r=e.config,o=e.windowListeners;void 0===n&&(n=[]),r.window&&(UO(r.window,o[t],r.eventOptions),WO(r.window,o[t]=n,r.eventOptions))}(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(wO(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=XO(e);if(n.down){t.updateSharedState(n);var r=YO(e),o=t.getKinematics(r,e),i=HO(wO(t),e),s=t.state._isTap,a=pO(o._movement);s&&a>=3&&(s=!1),t.updateGestureState(vO({},i,o,{_isTap:s})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,o=r[0],i=r[1],s=t.state.movement,a=s[0],l=s[1],c=t.state._intentional,d=c[0],u=c[1],h=t.config.swipeVelocity,p=h[0],f=h[1],m=t.config.swipeDistance,g=m[0],b=m[1],v=vO({},HO(wO(t),e),t.getMovement(t.state.values)),y=[0,0];v.elapsedTime<220&&(!1!==d&&Math.abs(o)>p&&Math.abs(a)>g&&(y[0]=fO(o)),!1!==u&&Math.abs(i)>f&&Math.abs(l)>b&&(y[1]=fO(i))),t.updateGestureState(vO({},v,{tap:n,swipe:y})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(wO(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(UO(n.window,r[t],n.eventOptions),delete r[t])}(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}yO(t,e);var n=t.prototype;return n.startDrag=function(e){var t=YO(e);this.updateSharedState(XO(e)),this.updateGestureState(vO({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return vO({},DO()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),HO(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(qO(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&qO(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(ZO);function eL(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,i;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eL(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!eL(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===o[r]&&e.$$typeof||eL(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function tL(e,t){try{return eL(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function nL(e,t){void 0===t&&(t={}),PO.set("drag",QO);var n=se();return n.current||(n.current=function(e,t){var n,r,o=[],i=!1;return function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(NO,tL)),KO({drag:e},n.current(t))}
|
|
3232
|
+
***************************************************************************** */var XS,YS,QS=function(){return QS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},QS.apply(this,arguments)};function eM(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function tM(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function nM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function rM(e,t,n){if(2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(XS||(XS={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(YS||(YS={}));var oM=XS.Start,iM=XS.Stop,sM=XS.Raise,aM=XS.Send,lM=XS.Cancel,cM=XS.NullEvent,dM=XS.Assign;XS.After,XS.DoneState;var uM=XS.Log,hM=XS.Init,pM=XS.Invoke;XS.ErrorExecution;var fM,mM=XS.ErrorPlatform,gM=XS.ErrorCustom,bM=XS.Update,vM=XS.Choose,yM=XS.Pure,wM={},xM="xstate.guard",CM="production"===process.env.NODE_ENV;function kM(e,t,n){void 0===n&&(n=".");var r=MM(e,n),o=MM(t,n);return jM(o)?!!jM(r)&&o===r:jM(r)?r in o:Object.keys(r).every((function(e){return e in o&&kM(r[e],o[e])}))}function $M(e){try{return jM(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function SM(e,t){try{return BM(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function MM(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:BM(e)?EM(e):"string"!=typeof e?e:EM(SM(e,t));var n}function EM(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function TM(e,t){for(var n={},r=Object.keys(e),o=0;o<r.length;o++){var i=r[o];n[i]=t(e[i],i,e,o)}return n}function OM(e,t,n){var r,o,i={};try{for(var s=tM(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];n(c)&&(i[l]=t(c,l,e))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}var LM=function(e){return function(t){var n,r,o=t;try{for(var i=tM(e),s=i.next();!s.done;s=i.next()){o=o[s.value]}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function AM(e){return e?jM(e)?[[e]]:NM(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?AM(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function NM(e){var t;return(t=[]).concat.apply(t,rM([],nM(e),!1))}function RM(e){return BM(e)?e:[e]}function DM(e){return void 0===e?[]:RM(e)}function PM(e,t,n){var r,o;if(_M(e))return e(t,n.data);var i={};try{for(var s=tM(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];_M(c)?i[l]=c(t,n.data):i[l]=c}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}function IM(e){return e instanceof Promise||!(null===e||!_M(e)&&"object"!=typeof e||!_M(e.then))}function zM(e,t){return TM(e.states,(function(e,n){if(e){var r=(jM(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:zM(e,r)}}}))}function VM(e,t,n,r){CM||HM(!!e,"Attempting to update undefined context");var o=e?n.reduce((function(e,n){var o,i,s=n.assignment,a={state:r,action:n,_event:t},l={};if(_M(s))l=s(e,t.data,a);else try{for(var c=tM(Object.keys(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=s[u];l[u]=_M(h)?h(e,t.data,a):h}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return Object.assign({},e,l)}),e):e;return o}var HM=function(){};function BM(e){return Array.isArray(e)}function _M(e){return"function"==typeof e}function jM(e){return"string"==typeof e}function FM(e,t){if(e)return jM(e)?{type:xM,name:e,predicate:t?t[e]:void 0}:_M(e)?{type:xM,name:e.name,predicate:e}:e}CM||(HM=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var qM=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function WM(e){return!!e&&"__xstatenode"in e}function UM(e,t){return jM(e)||"number"==typeof e?QS({type:e},t):e}function KM(e,t){if(!jM(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=UM(e);return QS({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function GM(e,t){return RM(t).map((function(t){return void 0===t||"string"==typeof t||WM(t)?{target:t,event:e}:QS(QS({},t),{event:e})}))}function ZM(e,t,n,r,o){var i=e.options.guards,s={state:o,cond:t,_event:r};if(t.type===xM)return((null==i?void 0:i[t.name])||t.predicate)(n,r.data,s);var a=null==i?void 0:i[t.type];if(!a)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return a(n,r.data,s)}function JM(e){return"string"==typeof e?{type:e}:e}function XM(e,t,n){var r=function(){},o="object"==typeof e,i=o?e:null;return{next:((o?e.next:e)||r).bind(i),error:((o?e.error:t)||r).bind(i),complete:((o?e.complete:n)||r).bind(i)}}function YM(e,t){return"".concat(e,":invocation[").concat(t,"]")}function QM(e){return(e.type===sM||e.type===aM&&e.to===YS.Internal)&&"number"!=typeof e.delay}(fM={})[qM]=function(){return this},fM[Symbol.observable]=function(){return this};var eE=KM({type:hM});function tE(e,t){return t&&t[e]||void 0}function nE(e,t){var n;if(jM(e)||"number"==typeof e)n=_M(r=tE(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(_M(e))n={type:e.name||e.toString(),exec:e};else{var r;if(_M(r=tE(e.type,t)))n=QS(QS({},e),{exec:r});else if(r){var o=r.type||e.type;n=QS(QS(QS({},r),e),{type:o})}else n=e}return n}var rE=function(e,t){return e?(BM(e)?e:[e]).map((function(e){return nE(e,t)})):[]};function oE(e){var t=nE(e);return QS(QS({id:jM(e)?e:t.id},t),{type:t.type})}function iE(e,t){var n="".concat(XS.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function sE(e,t){var n="".concat(XS.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function aE(e,t){var n="".concat(XS.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function lE(e,t,n,r,o,i,s){void 0===s&&(s=!1);var a=s?[]:function(e){var t,n,r=[];try{for(var o=tM(e),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;)s.actions[a].type!==dM?a++:(r.push(s.actions[a]),s.actions.splice(a,1))}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(o),l=a.length?VM(n,r,a,t):n,c=s?[n]:void 0,d=[];function u(o,a){var u;switch(a.type){case sM:var h=function(e,t,n,r){var o,i={_event:n},s=KM(_M(e.event)?e.event(t,n.data,i):e.event);if(jM(e.delay)){var a=r&&r[e.delay];o=_M(a)?a(t,n.data,i):a}else o=_M(e.delay)?e.delay(t,n.data,i):e.delay;return QS(QS({},e),{type:sM,_event:s,delay:o})}(a,l,r,e.options.delays);return i&&"number"==typeof h.delay&&i(h,l,r),h;case aM:var p=function(e,t,n,r){var o,i={_event:n},s=KM(_M(e.event)?e.event(t,n.data,i):e.event);if(jM(e.delay)){var a=r&&r[e.delay];o=_M(a)?a(t,n.data,i):a}else o=_M(e.delay)?e.delay(t,n.data,i):e.delay;var l=_M(e.to)?e.to(t,n.data,i):e.to;return QS(QS({},e),{to:l,_event:s,event:s.data,delay:o})}(a,l,r,e.options.delays);if(!CM){var f=a.delay;HM(!jM(f)||"number"==typeof p.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&p.to!==YS.Internal&&("entry"===o?d.push(p):i(p,l,r)),p;case uM:var m=function(e,t,n){return QS(QS({},e),{value:jM(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(a,l,r);return null==i||i(m,l,r),m;case vM:if(!(y=null===(u=a.conds.find((function(n){var o=FM(n.cond,e.options.guards);return!o||ZM(e,o,l,r,i?void 0:t)})))||void 0===u?void 0:u.actions))return[];var g=nM(lE(e,t,l,r,[{type:o,actions:rE(DM(y),e.options.actions)}],i,s),2),b=g[0],v=g[1];return l=v,null==c||c.push(l),b;case yM:var y;if(!(y=a.get(l,r.data)))return[];var w=nM(lE(e,t,l,r,[{type:o,actions:rE(DM(y),e.options.actions)}],i,s),2),x=w[0],C=w[1];return l=C,null==c||c.push(l),x;case iM:m=function(e,t,n){var r=_M(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:XS.Stop,activity:o}}(a,l,r);return null==i||i(m,n,r),m;case dM:l=VM(l,r,[a],i?void 0:t),null==c||c.push(l);break;default:var k=nE(a,e.options.actions),$=k.exec;if(i)i(k,l,r);else if($&&c){var S=c.length-1,M=QS(QS({},k),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];$.apply(void 0,rM([c[S]],nM(t),!1))}});k=M}return k}}var h=NM(o.map((function(e){var t,n,o=[];try{for(var s=tM(e.actions),a=s.next();!a.done;a=s.next()){var c=a.value,h=u(e.type,c);h&&(o=o.concat(h))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return d.forEach((function(e){i(e,l,r)})),d.length=0,o})));return[h,l]}var cE=function(e,t){return t(e)};function dE(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[qM]=function(){return this},t}function uE(e,t,n){var r=dE(t);if(r.deferred=!0,WM(e)){var o=r.state=cE(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var hE=function(e){return"atomic"===e.type||"final"===e.type};function pE(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function fE(e){return pE(e).filter((function(e){return"history"!==e.type}))}function mE(e){var t=[e];return hE(e)?t:t.concat(NM(fE(e).map(mE)))}function gE(e,t){var n,r,o,i,s,a,l,c,d=vE(new Set(e)),u=new Set(t);try{for(var h=tM(u),p=h.next();!p.done;p=h.next())for(var f=(k=p.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var m=vE(u);try{for(var g=tM(u),b=g.next();!b.done;b=g.next()){if("compound"!==(k=b.value).type||m.get(k)&&m.get(k).length){if("parallel"===k.type)try{for(var v=(s=void 0,tM(fE(k))),y=v.next();!y.done;y=v.next()){var w=y.value;u.has(w)||(u.add(w),d.get(w)?d.get(w).forEach((function(e){return u.add(e)})):w.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){s={error:e}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}}else d.get(k)?d.get(k).forEach((function(e){return u.add(e)})):k.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){o={error:e}}finally{try{b&&!b.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var x=tM(u),C=x.next();!C.done;C=x.next()){var k;for(f=(k=C.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}return u}function bE(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(hE(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=bE(e,t)})),o}function vE(e){var t,n,r=new Map;try{for(var o=tM(e),i=o.next();!i.done;i=o.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function yE(e,t){return bE(e,vE(gE([e],t)))}function wE(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function xE(e,t){return"compound"===t.type?fE(t).some((function(t){return"final"===t.type&&wE(e,t)})):"parallel"===t.type&&fE(t).every((function(t){return xE(e,t)}))}function CE(e){return new Set(NM(e.map((function(e){return e.tags}))))}function kE(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(jM(e)||jM(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return kE(e[n],t[n])}))}var $E=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=wM,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||wM,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return rM([],nM(new Set(NM(rM([],nM(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:eE,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=eE;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),jM(e))return[e];var r=Object.keys(e);return r.concat.apply(r,rM([],nM(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=eM(e,["configuration","transitions","tags","machine"]);return QS(QS({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return kM(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;CM&&HM(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),SE={deferEvents:!1},ME=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=QS(QS({},SE),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),EE=new Map,TE=0,OE=function(){return"x:".concat(TE++)},LE=function(e,t){return EE.set(e,t),e},AE=function(e){return EE.get(e)},NE=function(e){EE.delete(e)};function RE(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(CM||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function DE(e){if(RE()){var t=function(){var e=RE();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function PE(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,s=function(e){var t;return QS(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[qM]=function(){return this},t),e)}({id:t.id,send:function(t){o.push(t),function(){if(!i){for(i=!0;o.length>0;){var t=o.shift();n=e.transition(n,t,a),r.forEach((function(e){return e.next(n)}))}i=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var i=XM(e,t,o);return r.add(i),i.next(n),{unsubscribe:function(){r.delete(i)}}}}),a={parent:t.parent,self:s,id:t.id||"anonymous",observers:r};return n=e.start?e.start(a):n,s}var IE,zE={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(IE||(IE={}));var VE=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=IE.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(BM(e))return r.batch(e),r.state;var n=KM(UM(e,t));if(r.status===IE.Stopped)return CM||HM(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==IE.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var o,i=r.parent&&(t===YS.Parent||r.parent.id===t),s=i?r.parent:jM(t)?t===YS.Internal?r:r.children.get(t)||AE(t):(o=t)&&"function"==typeof o.send?t:void 0;if(s)if("machine"in s){if(r.status!==IE.Stopped||r.parent!==s||r.state.done){var a=QS(QS({},e),{name:e.name===gM?"".concat(aE(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,a]):s.send(a)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,e.data]):s.send(e.data);else{if(!i)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));CM||HM(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,o){void 0===o&&(o=r.machine.options.actions);var i=e.exec||tE(e.type,o),s=_M(i)?i:i?i.exec:e.exec;if(s)try{return s(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case sM:var a=e;r.defer(a);break;case aM:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===eE):r.send(l._event);break;case lM:r.cancel(e.sendId);break;case oM:if(r.status!==IE.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===XS.Invoke){var d=JM(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,h=c.id,p=c.data;CM||HM(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!u)return void(CM||HM(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var m=p?PM(p,t,n):void 0;if("string"==typeof u)return;var g=_M(u)?u(t,n.data,{data:m,src:d,meta:c.meta}):u;if(!g)return;var b=void 0;WM(g)&&(g=m?g.withContext(m):g,b={autoForward:f}),r.spawn(g,h,b)}else r.spawnActivity(c);break;case iM:r.stopChild(e.activity.id);break;case uM:var v=e,y=v.label,w=v.value;y?r.logger(y,w):r.logger(w);break;default:CM||HM(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=QS(QS({},e.defaultOptions),n),i=o.clock,s=o.logger,a=o.parent,l=o.id,c=void 0!==l?l:t.id;this.id=c,this.logger=s,this.clock=i,this.parent=a,this.options=o,this.scheduler=new ME({deferEvents:this.options.deferEvents}),this.sessionId=OE()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:cE(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return CM||HM(this.status!==IE.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var o=tM(e.actions),i=o.next();!i.done;i=o.next()){var s=i.value;this.exec(s,e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,o,i,s,a,l,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==eE||!this.options.execute)for(var u=void 0;u=this._outgoingQueue.shift();)u[0].send(u[1]);else this.execute(this.state);if(this.children.forEach((function(e){d.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var h=tM(this.eventListeners),p=h.next();!p.done;p=h.next()){(0,p.value)(e.event)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var f=tM(this.listeners),m=f.next();!m.done;m=f.next()){(0,m.value)(e,e.event)}}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}try{for(var g=tM(this.contextListeners),b=g.next();!b.done;b=g.next()){(0,b.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){s={error:e}}finally{try{b&&!b.done&&(a=g.return)&&a.call(g)}finally{if(s)throw s.error}}if(this.state.done){var v=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),y=v&&v.doneData?PM(v.doneData,e.context,t):void 0;this._doneEvent=sE(this.id,y);try{for(var w=tM(this.doneListeners),x=w.next();!x.done;x=w.next()){(0,x.value)(this._doneEvent)}}catch(e){l={error:e}}finally{try{x&&!x.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),NE(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===IE.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=XM(e,t,n);this.listeners.add(o.next),this.status!==IE.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===IE.Stopped?o.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){r.listeners.delete(o.next),r.doneListeners.delete(i),r.stopListeners.delete(i)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===IE.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===IE.Running)return this;this.machine._init(),LE(this.sessionId,this),this.initialized=!0,this.status=IE.Running;var n=void 0===e?this.initialState:cE(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState($E.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,eE)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){_M(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,o,i,s,a,l,c;try{for(var d=tM(this.listeners),u=d.next();!u.done;u=d.next()){var h=u.value;this.listeners.delete(h)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var p=tM(this.stopListeners),f=p.next();!f.done;f=p.next()){(h=f.value)(),this.stopListeners.delete(h)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var m=tM(this.contextListeners),g=m.next();!g.done;g=m.next()){h=g.value;this.contextListeners.delete(h)}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}try{for(var b=tM(this.doneListeners),v=b.next();!v.done;v=b.next()){h=v.value;this.doneListeners.delete(h)}}catch(e){s={error:e}}finally{try{v&&!v.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.initialized=!1,this.status=IE.Stopped,this._initialState=void 0;try{for(var y=tM(Object.keys(this.delayedEventsMap)),w=y.next();!w.done;w=y.next()){var x=w.value;this.clock.clearTimeout(this.delayedEventsMap[x])}}catch(e){l={error:e}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new ME({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=KM({type:"xstate.stop"}),r=cE(e,(function(){var t=NM(rM([],nM(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return rE(t.onExit,e.machine.options.actions)}))),r=nM(lE(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),o=r[0],i=r[1],s=new $E({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!QM(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return s.changed=!0,s}));e.update(r,n),e._stopChildren(),NE(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===IE.NotStarted&&this.options.deferEvents)CM||HM(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==IE.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,o,i=t.state,s=!1,a=[],l=function(e){var r=KM(e);t.forward(r),i=cE(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),a.push.apply(a,rM([],nM(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return QS(QS({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,i)}))),!1)),s=s||!!i.changed};try{for(var c=tM(e),d=c.next();!d.done;d=c.next()){l(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}i.changed=s,i.actions=a,t.update(i,KM(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=KM(e);if(0===r.name.indexOf(mM)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(mM)})))throw r.data.data;return cE(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=tM(this.forwardTo),o=r.next();!o.done;o=r.next()){var i=o.value,s=this.children.get(i);if(!s)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));s.send(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),_M(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==IE.Running)return uE(e,t);if(IM(e))return this.spawnPromise(Promise.resolve(e),t);if(_M(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(o=e)&&"id"in o)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&_M(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(WM(e))return this.spawnMachine(e,QS(QS({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,o},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var o=new e(t,QS(QS({},this.options),{parent:this,id:n.id||t.id})),i=QS(QS({},zE),n);i.sync&&o.onTransition((function(e){r.send(bM,{state:e,id:o.id})}));var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone((function(e){r.removeChild(o.id),r.send(KM(e,{origin:o.id}))})).start(),s},e.prototype.spawnBehavior=function(e,t){var n=PE(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,o=this,i=!1;e.then((function(e){i||(r=e,o.removeChild(t),o.send(KM(sE(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=aE(t,e);try{o.send(KM(n,{origin:t}))}catch(r){!function(e,t,n){if(!CM){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var o=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(o))}}}(e,r,t),o.devTools&&o.devTools.send(n,o.state),o.machine.strict&&o.stop()}}}));var s=((n={id:t,send:function(){},subscribe:function(t,n,r){var o=XM(t,n,r),i=!1;return e.then((function(e){i||(o.next(e),i||o.complete())}),(function(e){i||o.error(e)})),{unsubscribe:function(){return i=!0}}},stop:function(){i=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[qM]=function(){return this},n);return this.children.set(t,s),s},e.prototype.spawnCallback=function(e,t){var n,r,o,i=this,s=!1,a=new Set,l=new Set;try{o=e((function(e){r=e,l.forEach((function(t){return t(e)})),s||i.send(KM(e,{origin:t}))}),(function(e){a.add(e)}))}catch(e){this.send(aE(t,e))}if(IM(o))return this.spawnPromise(o,t);var c=((n={id:t,send:function(e){return a.forEach((function(t){return t(e)}))},subscribe:function(e){var t=XM(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){s=!0,_M(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[qM]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,o=this,i=e.subscribe((function(e){r=e,o.send(KM(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(KM(aE(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(KM(sE(t),{origin:t}))})),s=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[qM]=function(){return this},n);return this.children.set(t,s),s},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else CM||HM(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[qM]=function(){return this},n))},e.prototype.attachDev=function(){var e=RE();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(QS(QS({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:QS({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}DE(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[qM]=function(){return this},e.prototype.getSnapshot=function(){return this.status===IE.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=HE,e}();function HE(e,t){return new VE(e,t)}function BE(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function _E(e){return QS(QS({type:pM},e),{toJSON:function(){e.onDone,e.onError;var t=eM(e,["onDone","onError"]);return QS(QS({},t),{type:pM,src:BE(e.src)})}})}var jE="",FE="*",qE={},WE=function(e){return"#"===e[0]},UE=function(){function e(t,n,r,o){void 0===r&&(r="context"in t?t.context:void 0);var i,s=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==o?void 0:o.parent,this.key=this.config.key||(null==o?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||rM([this.machine.key],nM(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(i=this.config.schema)&&void 0!==i?i:{},this.description=this.config.description,CM||HM(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?TM(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:s,key:n});return Object.assign(s.idMap,QS(((r={})[o.id]=o,r),o.idMap)),o})):qE;var a=0;!function e(t){var n,r;t.order=a++;try{for(var o=tM(pE(t)),i=o.next();!i.done;i=o.next()){e(i.value)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===jE})):jE in this.config.on),this.strict=!!this.config.strict,this.onEntry=DM(this.config.entry||this.config.onEntry).map((function(e){return nE(e)})),this.onExit=DM(this.config.exit||this.config.onExit).map((function(e){return nE(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=DM(this.config.invoke).map((function(e,t){var n,r;if(WM(e)){var o=YM(s.id,t);return s.machine.options.services=QS(((n={})[o]=e,n),s.machine.options.services),_E({src:o,id:o})}if(jM(e.src)){o=e.id||YM(s.id,t);return _E(QS(QS({},e),{id:o,src:e.src}))}if(WM(e.src)||_M(e.src)){o=e.id||YM(s.id,t);return s.machine.options.services=QS(((r={})[o]=e.src,r),s.machine.options.services),_E(QS(QS({id:o},e),{src:o}))}var i=e.src;return _E(QS(QS({id:YM(s.id,t)},e),{src:i}))})),this.activities=DM(this.config.activities).concat(this.invoke).map((function(e){return oE(e)})),this.transition=this.transition.bind(this),this.tags=DM(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||mE(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,s=r.guards,a=r.services,l=r.delays;return new e(this.config,{actions:QS(QS({},o),t.actions),activities:QS(QS({},i),t.activities),guards:QS(QS({},s),t.guards),services:QS(QS({},a),t.services),delays:QS(QS({},l),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return _M(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:TM(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===jE,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===FE}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(XS.After,"(").concat(e,")").concat(n)}(_M(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(function(e,t){return{to:t?t.to:void 0,type:aM,event:_M(e)?e:UM(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:_M(e)?e.name:$M(e)}}(r,{delay:t})),e.onExit.push({type:lM,sendId:r}),r},r=BM(t)?t.map((function(e,t){var r=n(e.delay,t);return QS(QS({},e),{event:r})})):NM(Object.keys(t).map((function(e,r){var o=t[e],i=jM(o)?{target:o}:o,s=isNaN(+e)?e:+e,a=n(s,r);return DM(i).map((function(e){return QS(QS({},e),{event:a,delay:s})}))})));return r.map((function(t){var n=t.delay;return QS(QS({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof $E?e.value:MM(e,this.delimiter);if(jM(r)){var o=this.getStateNode(r).initial;return void 0!==o?this.getStateNodes(((t={})[r]=o,t)):[this,this.states[r]]}var i=Object.keys(r),s=[this];return s.push.apply(s,rM([],nM(NM(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),s},e.prototype.handles=function(e){var t=$M(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof $E?e:$E.create(e),n=Array.from(gE([],this.getStateNodes(t.value)));return new $E(QS(QS({},t),{value:this.resolve(t.value),configuration:n,done:xE(n,this),tags:CE(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),o=this.getStateNode(r[0])._transition(e[r[0]],t,n);return o&&o.transitions.length?o:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,o,i={};try{for(var s=tM(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];if(c){var d=this.getStateNode(l)._transition(c,t,n);d&&(i[l]=d)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var u=Object.keys(i).map((function(e){return i[e]})),h=NM(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var p=NM(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:h,exitSet:NM(u.map((function(e){return e.exitSet}))),configuration:p,source:t,actions:NM(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return jM(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,KM(t))},e.prototype.next=function(e,t){var n,r,o,i=this,s=t.name,a=[],l=[];try{for(var c=tM(this.getCandidates(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=u.cond,p=u.in,f=e.context,m=!p||(jM(p)&&WE(p)?e.matches(MM(this.getStateNodeById(p).path,this.delimiter)):kM(MM(p,this.delimiter),LM(this.path.slice(0,-2))(e.value))),g=!1;try{g=!h||ZM(this.machine,h,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(h.name||h.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(g&&m){void 0!==u.target&&(l=u.target),a.push.apply(a,rM([],nM(u.actions),!1)),o=u;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(o){if(!l.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:a};var b=NM(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:NM(l.map((function(e){return i.getPotentiallyReenteringNodes(e)}))),configuration:b,source:e,actions:a}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,o,i,s){var a,l,c,d,u=this,h=i?gE([],this.getStateNodes(i.value)):[],p=new Set;try{for(var f=tM(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=f.next();!m.done;m=f.next()){(!wE(h,v=m.value)||wE(n.exitSet,v)||v.parent&&p.has(v.parent))&&p.add(v)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}try{for(var g=tM(h),b=g.next();!b.done;b=g.next()){var v;wE(e,v=b.value)&&!wE(n.exitSet,v.parent)||n.exitSet.push(v)}}catch(e){c={error:e}}finally{try{b&&!b.done&&(d=g.return)&&d.call(g)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var y=Array.from(p).sort((function(e,t){return e.order-t.order})),w=new Set(n.exitSet),x=NM(y.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(iE(e.id,e.doneData),iE(i.id,e.doneData?PM(e.doneData,r,o):void 0));var s=i.parent;return"parallel"===s.type&&fE(s).every((function(e){return xE(n.configuration,e)}))&&t.push(iE(s.id)),t}))),C=y.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=oE(e);return{type:XS.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:rE(s?rM(rM([],nM(t),!1),nM(n),!1):rM(rM([],nM(n),!1),nM(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:x.map((function(e){return function(e,t){return{type:sM,event:"function"==typeof e?e:UM(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),k=Array.from(w).map((function(e){return{type:"exit",actions:rE(rM(rM([],nM(e.onExit),!1),nM(e.activities.map((function(e){return function(e){var t=_M(e)?e:oE(e);return{type:XS.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:rE(n.actions,this.machine.options.actions)}).concat(C);if(t){var $=rE(NM(rM([],nM(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!QM(e)}));return k.concat({type:"stop",actions:$})}return k},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var o,i,s=KM(t);if(e instanceof $E)o=void 0===n?e:this.resolveState($E.from(e,n));else{var a=jM(e)?this.resolve(EM(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState($E.from(a,l))}if(!CM&&s.name===FE)throw new Error("An event cannot have the wildcard type ('".concat(FE,"')"));if(this.strict&&!this.events.includes(s.name)&&(i=s.name,!/^(done|error)\./.test(i)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(s.name,"'"));var c=this._transition(o.value,o,s)||{transitions:[],configuration:[],exitSet:[],source:o,actions:[]},d=gE([],this.getStateNodes(o.value)),u=c.configuration.length?gE(d,c.configuration):d;return c.configuration=rM([],nM(u),!1),this.resolveTransition(c,o,o.context,r,s)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var o,i=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(o=e.actions).unshift.apply(o,rM([],nM(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,s,a,l,c=this;void 0===o&&(o=eE);var d=e.configuration,u=!t||e.transitions.length>0,h=u?e.configuration:t?t.configuration:[],p=xE(h,this),f=u?yE(this.machine,d):void 0,m=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,g=this.getActions(new Set(h),p,e,n,o,t,r),b=t?QS({},t.activities):{};try{for(var v=tM(g),y=v.next();!y.done;y=v.next()){var w=y.value;try{for(var x=(a=void 0,tM(w.actions)),C=x.next();!C.done;C=x.next()){var k=C.value;k.type===oM?b[k.activity.id||k.activity.type]=k:k.type===iM&&(b[k.activity.id||k.activity.type]=!1)}}catch(e){a={error:e}}finally{try{C&&!C.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}}catch(e){i={error:e}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}var $,S,M=nM(lE(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),E=M[0],T=M[1],O=nM(function(e,t){var n,r,o=nM([[],[]],2),i=o[0],s=o[1];try{for(var a=tM(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(E,QM),2),L=O[0],A=O[1],N=E.filter((function(e){var t;return e.type===oM&&(null===(t=e.activity)||void 0===t?void 0:t.type)===pM})),R=N.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=JM(e.src),s=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],a=e.data?PM(e.data,n,r):void 0,l=s?uE(s,e.id,a):dE(e.id);return l.meta=e,l}(t.activity,c.machine,T,o),e}),t?QS({},t.children):{}),D=new $E({value:f||t.value,context:T,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?m?($=m,S=f,{current:S,states:zM($,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?A:[],activities:f?b:t?t.activities:{},events:[],configuration:h,transitions:e.transitions,children:R,done:p,tags:CE(h),machine:this}),P=n!==T;D.changed=o.name===bM||P;var I=D.history;I&&delete I.history;var z=!p&&(this._transient||d.some((function(e){return e._transient})));if(!(u||z&&o.name!==jE))return D;var V=D;if(!p)for(z&&(V=this.resolveRaisedTransition(V,{type:cM},o,r));L.length;){var H=L.shift();V=this.resolveRaisedTransition(V,H._event,o,r)}var B=V.changed||(I?!!V.actions.length||P||typeof I.value!=typeof V.value||!kE(V.value,I.value):void 0);return V.changed=B,V.history=I,V},e.prototype.getStateNode=function(e){if(WE(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=WE(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&WE(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=SM(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||qE;switch(this.type){case"parallel":return TM(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):qE}));case"compound":if(jM(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?TM(e,(function(e,t){return e?n.getStateNode(t).resolve(e):qE})):this.initialStateValue||{};default:return e||qE}},e.prototype.getResolvedPath=function(e){if(WE(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return SM(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=OM(this.states,(function(e){return e.initialStateValue||qE}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=hE(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=jM(t.target)&&WE(t.target)?EM(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return hE(this)?[this]:"compound"!==this.type||this.initial?NM(AM(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(CM||HM(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=nM(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:OM(this.states,(function(t,n){if(!e)return t.historyValue();var r=jM(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?NM(AM(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o,i,s=(o=n.path,i="states",function(e){var t,n,r=e;try{for(var s=tM(o),a=s.next();!a.done;a=s.next()){var l=a.value;r=r[i][l]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return r})(e).current;return jM(s)?[n.getStateNode(s)]:NM(AM(s).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=NM(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var o=this.states,i=new Set(this.ownEvents);if(o)try{for(var s=tM(Object.keys(o)),a=s.next();!a.done;a=s.next()){var l=o[a.value];if(l.states)try{for(var c=(n=void 0,tM(l.events)),d=c.next();!d.done;d=c.next()){var u=d.value;i.add("".concat(u))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!jM(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return DM(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return jM(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),s=QS(QS({},e),{actions:rE(DM(e.actions)),cond:FM(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return QS(QS({},s),{target:s.target?s.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return s},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var o=this.config.on,i=FE,s=o[i],a=void 0===s?[]:s,l=eM(o,["*"]);n=NM(Object.keys(l).map((function(e){CM||e!==jE||HM(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=GM(e,l[e]);return CM||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(jM(e.target)||WM(e.target))})),o=t===jE?"the transient event":"event '".concat(t,"'");HM(!r,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(GM(FE,a)))}else n=[];var c=this.config.always?GM("",this.config.always):[],d=this.config.onDone?GM(String(iE(this.id)),this.config.onDone):[];CM||HM(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=NM(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,rM([],nM(GM(String(sE(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,rM([],nM(GM(String(aE(e.id)),e.onError)),!1)),t}))),h=this.after,p=NM(rM(rM(rM(rM([],nM(d),!1),nM(u),!1),nM(n),!1),nM(c),!1).map((function(e){return DM(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=tM(h),m=f.next();!m.done;m=f.next()){var g=m.value;p.push(g)}}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return p},e}();var KE,GE=function(e){return{type:dM,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(KE||(KE={}));var ZE="undefined"!=typeof document?de:function(){};function JE(e){var t=ee.useRef();return t.current||(t.current={v:e()}),t.current.v}var XE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},YE=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var QE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},eT=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function tT(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function nT(e){var t=se([]),n=se([]);ZE((function(){var r=e.subscribe((function(e){var r,o;if(e.actions.length){var i=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),s=QE(function(e,t){var n,r,o=XE([[],[]],2),i=o[0],s=o[1];try{for(var a=YE(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(i,(function(e){return e.exec.__effect===KE.Effect})),2),a=s[0],l=s[1];(r=t.current).push.apply(r,eT([],QE(a.map((function(t){return[t,e]}))),!1)),(o=n.current).push.apply(o,eT([],QE(l.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),ZE((function(){for(;n.current.length;){var e=QE(n.current.shift(),2);tT(e[0],e[1])}})),ce((function(){for(;t.current.length;){var e=QE(t.current.shift(),2);tT(e[0],e[1])}}))}var rT=function(){return rT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rT.apply(this,arguments)},oT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},iT=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};var sT=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};function aT(e,t){void 0===t&&(t={});var n=ue((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&s(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=JE((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var o=iT(ae(r),1)[0];e!==o&&console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.")}var i=t.context,s=t.guards,a=t.actions,l=t.activities,c=t.services,d=t.delays,u=t.state,h=oT(t,["context","guards","actions","activities","services","delays","state"]),p=JE((function(){var e={context:i,guards:s,actions:a,activities:l,services:c,delays:d};return HE(r.withConfig(e,(function(){return rT(rT({},r.context),i)})),rT({deferEvents:!0},h))}));return ZE((function(){var e;return n&&(e=p.subscribe(function(e){if("object"==typeof e)return e;var t=function(){};return{next:e,error:void 0||t,complete:void 0||t}}(n))),function(){null==e||e.unsubscribe()}}),[n]),ZE((function(){return p.start(u?$E.create(u):void 0),function(){p.stop()}}),[]),ZE((function(){Object.assign(p.machine.options.actions,a),Object.assign(p.machine.options.guards,s),Object.assign(p.machine.options.activities,l),Object.assign(p.machine.options.services,c),Object.assign(p.machine.options.delays,d)}),[a,s,l,c,d]),nT(p),p}(e,t,n),o=sT(ae((function(){var e=r.machine.initialState;return t.state?$E.create(t.state):e})),2),i=o[0],s=o[1];return[i,r.send,r]}function lT(){return lT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lT.apply(null,arguments)}function cT(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const dT={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(dT.str(e)||dT.num(e))return e===t;if(dT.obj(e)&&dT.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!dT.und(n)||e===t}};function uT(e,t){return dT.und(e)||dT.nul(e)?t:e}function hT(e){return dT.und(e)?[]:dT.arr(e)?e:[e]}function pT(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return dT.fun(e)?e(...n):e}function fT(e){const t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,cT(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(dT.und(t))return lT({to:t},e);const n=Object.keys(e).reduce(((n,r)=>dT.und(t[r])?lT({},n,{[r]:e[r]}):n),{});return lT({to:t},n)}class mT{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class gT extends mT{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof mT&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof mT&&e.removeChild(this)))}}class bT extends mT{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof mT&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof mT&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof mT)&&(t[n]=r instanceof mT?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let vT,yT;let wT,xT=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let CT,kT=()=>Date.now();class $T extends bT{constructor(e,t){super(),this.update=void 0,this.payload=e.style?lT({},e,{style:CT(e.style)}):e,this.update=t,this.attach()}}let ST=!1;const MT=new Set,ET=()=>{if(!ST)return!1;let e=kT();for(let t of MT){let n=!1;for(let r=0;r<t.configs.length;r++){let o,i,s=t.configs[r];for(let t=0;t<s.animatedValues.length;t++){let r=s.animatedValues[t];if(r.done)continue;let a=s.fromValues[t],l=s.toValues[t],c=r.lastPosition,d=l instanceof mT,u=Array.isArray(s.initialVelocity)?s.initialVelocity[t]:s.initialVelocity;if(d&&(l=l.getValue()),s.immediate)r.setValue(l),r.done=!0;else if("string"!=typeof a&&"string"!=typeof l){if(void 0!==s.duration)c=a+s.easing((e-r.startTime)/s.duration)*(l-a),o=e>=r.startTime+s.duration;else if(s.decay)c=a+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),o=Math.abs(r.lastPosition-c)<.1,o&&(l=c);else{i=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:s.initialVelocity,e>i+64&&(i=e);let t=Math.floor(e-i);for(let e=0;e<t;++e){u+=1*((-s.tension*(c-l)+-s.friction*u)/s.mass)/1e3,c+=1*u/1e3}let n=!(!s.clamp||0===s.tension)&&(a<l?c>l:c<l),d=Math.abs(u)<=s.precision,h=0===s.tension||Math.abs(l-c)<=s.precision;o=n||d&&h,r.lastVelocity=u,r.lastTime=e}d&&!s.toValues[t].done&&(o=!1),o?(r.value!==l&&(c=l),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(l),r.done=!0}t.props.onFrame&&(t.values[s.name]=s.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(MT.delete(t),t.stop(!0))}return MT.size?xT(ET):ST=!1,ST};function TT(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return TT({range:e,output:t,extrapolate:n});if(wT&&"string"==typeof e.output[0])return wT(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,s,a,l){let c=l?l(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>n){if("identity"===a)return c;"clamp"===a&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,s,a,r.map)}}class OT extends gT{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof gT&&!(e instanceof OT)?e.getPayload():Array.isArray(e)?e:[e],this.calc=TT(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=TT(e,t,n)}interpolate(e,t,n){return new OT(this,e,t,n)}}const LT=(e,t,n)=>e&&new OT(e,t,n);function AT(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>AT(e,t)))}class NT extends mT{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&AT(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new OT(this,e,t,n)}}class RT extends gT{constructor(e){super(),this.payload=e.map((e=>new NT(e)))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach(((e,n)=>this.payload[n].setValue(e,t))):this.payload.forEach((n=>n.setValue(e,t)))}getValue(){return this.payload.map((e=>e.getValue()))}interpolate(e,t){return new OT(this,e,t)}}let DT=0,PT=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=DT++}update(e){if(!e)return this;const t=fT(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=cT(t,["delay","to"]);if(dT.arr(o)||dT.fun(o))this.queue.push(lT({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const s=lT({to:{[n]:o},delay:pT(r,n)},i),a=e[s.delay]&&e[s.delay].to;e[s.delay]=lT({},e[s.delay],s,{to:lT({},a,s.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(i),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,o=void 0===r?{}:r;dT.obj(n)&&(this.merged=lT({},n,this.merged)),dT.obj(o)&&(this.merged=lT({},this.merged,o))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,o)=>{let i=r.delay,s=cT(r,["delay"]);const a=r=>{o===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let l=dT.arr(s.to)||dT.fun(s.to);i?setTimeout((()=>{t===this.guid&&(l?this.runAsync(s,a):this.diff(s).start(a))}),i):l?this.runAsync(s,a):this.diff(s).start(a)}))}else dT.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,MT.has(t)||MT.add(t),ST||(ST=!0,xT(ET));var t;return this}stop(e){return this.listeners.forEach((t=>t(e))),this.listeners=[],this}pause(e){var t;return this.stop(!0),e&&(t=this,MT.has(t)&&MT.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=cT(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(dT.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=lT({},r,fT(r.to[t]));dT.arr(n.config)&&(n.config=n.config[t]),i=i.then((()=>{if(o===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(dT.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=lT({},r,fT(n));if(dT.arr(i.config)&&(i.config=i.config[t]),t++,o===this.guid)return e=new Promise((e=>this.diff(i).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}i.then(t)}diff(e){this.props=lT({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,o=t.to,i=void 0===o?{}:o,s=t.config,a=void 0===s?{}:s,l=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(l){var h=[i,r];r=h[0],i=h[1]}this.merged=lT({},r,this.merged,i),this.hasChanged=!1;let p=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],o=t[1],i=e[n]||{};const s=dT.num(o),l=dT.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!yT[o],c=dT.arr(o),h=!s&&!c&&!l;let f=dT.und(r[n])?o:r[n],m=s||c||l?o:1,g=pT(a,n);p&&(m=p.animations[n].parent);let b,v=i.parent,y=i.interpolation,w=hT(p?m.getPayload():m),x=o;h&&(x=wT({range:[0,1],output:[o,o]})(1));let C=y&&y.getValue();const k=!dT.und(v)&&i.animatedValues.some((e=>!e.done)),$=!dT.equ(x,C),S=!dT.equ(x,i.previous),M=!dT.equ(g,i.config);if(d||S&&$||M){if(s||l)v=y=i.parent||new NT(f);else if(c)v=y=i.parent||new RT(f);else if(h){let e=i.interpolation&&i.interpolation.calc(i.parent.value);e=void 0===e||d?f:e,i.parent?(v=i.parent,v.setValue(0,!1)):v=new NT(0);const t={output:[e,o]};i.interpolation?(y=i.interpolation,i.interpolation.updateConfig(t)):y=v.interpolate(t)}return w=hT(p?m.getPayload():m),b=hT(v.getPayload()),d&&!h&&v.setValue(f,!1),this.hasChanged=!0,b.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=k?e.lastVelocity:void 0,e.lastTime=k?e.lastTime:void 0,e.startTime=kT(),e.done=!1,e.animatedStyles.clear()})),pT(u,n)&&v.setValue(h?m:o,!1),lT({},e,{[n]:lT({},i,{name:n,parent:v,interpolation:y,animatedValues:b,toValues:w,previous:x,config:g,fromValues:hT(v.getValue()),immediate:pT(u,n),initialVelocity:uT(g.velocity,0),clamp:uT(g.clamp,!1),precision:uT(g.precision,.01),tension:uT(g.tension,170),friction:uT(g.friction,26),mass:uT(g.mass,1),duration:g.duration,easing:uT(g.easing,(e=>e)),decay:g.decay})})}return $?e:(h&&(v.setValue(1,!1),y.updateConfig({output:[x,x]})),v.done=!0,this.hasChanged=!0,lT({},e,{[n]:lT({},e[n],{previous:x})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const IT=e=>{const t=dT.fun(e),n=((e,t)=>{const n=se(!1),r=se(),o=dT.fun(t),i=oe((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const i=new PT,s=o?pT(t,r,i):t[r];return 0===r&&(n=s.ref),i.update(s),n||i.start(),i})),n]}),[e]),s=i[0],a=i[1];r.current=s,me(a,(()=>({start:()=>Promise.all(r.current.map((e=>new Promise((t=>e.start(t)))))),stop:e=>r.current.forEach((t=>t.stop(e))),get controllers(){return r.current}})));const l=oe((()=>e=>r.current.map(((t,n)=>{t.update(o?pT(e,n,t):e[n]),a||t.start()}))),[e]);ce((()=>{n.current?o||l(t):a||r.current.forEach((e=>e.start()))})),ce((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return o?[c,l,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r};class zT extends bT{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof mT||(e=vT.transform(e)),this.payload=e}}const VT={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},HT="[-+]?\\d*\\.?\\d+",BT=HT+"%";function _T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const jT=new RegExp("rgb"+_T(HT,HT,HT)),FT=new RegExp("rgba"+_T(HT,HT,HT,HT)),qT=new RegExp("hsl"+_T(HT,BT,BT)),WT=new RegExp("hsla"+_T(HT,BT,BT,HT)),UT=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,KT=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,GT=/^#([0-9a-fA-F]{6})$/,ZT=/^#([0-9a-fA-F]{8})$/;function JT(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function XT(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=JT(o,r,e+1/3),s=JT(o,r,e),a=JT(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function YT(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function QT(e){return(parseFloat(e)%360+360)%360/360}function eO(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function tO(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function nO(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=GT.exec(e))?parseInt(t[1]+"ff",16)>>>0:VT.hasOwnProperty(e)?VT[e]:(t=jT.exec(e))?(YT(t[1])<<24|YT(t[2])<<16|YT(t[3])<<8|255)>>>0:(t=FT.exec(e))?(YT(t[1])<<24|YT(t[2])<<16|YT(t[3])<<8|eO(t[4]))>>>0:(t=UT.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ZT.exec(e))?parseInt(t[1],16)>>>0:(t=KT.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=qT.exec(e))?(255|XT(QT(t[1]),tO(t[2]),tO(t[3])))>>>0:(t=WT.exec(e))?(XT(QT(t[1]),tO(t[2]),tO(t[3]))|eO(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const rO=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,oO=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,iO=new RegExp(`(${Object.keys(VT).join("|")})`,"g");let sO={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const aO=["Webkit","Ms","Moz","O"];function lO(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||sO.hasOwnProperty(e)&&sO[e]?(""+t).trim():t+"px"}sO=Object.keys(sO).reduce(((e,t)=>(aO.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),sO);const cO={};var dO,uO;dO=e=>new zT(e),CT=dO,uO=e=>{const t=e.output.map((e=>e.replace(oO,nO))).map((e=>e.replace(iO,nO))),n=t[0].match(rO).map((()=>[]));t.forEach((e=>{e.match(rO).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(rO).map(((t,r)=>TT(lT({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(rO,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`))}},wT=uO,yT=VT,function(e,t){vT={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const o=t.style,i=t.children,s=t.scrollTop,a=t.scrollLeft,l=cT(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==s&&(e.scrollTop=s),void 0!==a&&(e.scrollLeft=a),void 0!==i&&(e.textContent=i);for(let t in o)if(o.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=lO(t,o[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in l){const n=c?t:cO[t]||(cO[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var hO;const pO=(hO=e=>ie(((t,n)=>{const r=function(){const e=ae(!1)[1];return ue((()=>e((e=>!e))),[])}(),o=se(!0),i=se(null),s=se(null),a=ue((e=>{const t=i.current;i.current=new $T(e,(()=>{let e=!1;s.current&&(e=vT.fn(s.current,i.current.getAnimatedValue())),s.current&&!1!==e||r()})),t&&t.detach()}),[]);ce((()=>()=>{o.current=!1,i.current&&i.current.detach()}),[]),me(n,(()=>(e=>e.current)(s))),a(t);const l=i.current.getValue();l.scrollTop,l.scrollLeft;const c=cT(l,["scrollTop","scrollLeft"]),d=(u=e,!dT.fun(u)||u.prototype instanceof te.Component?e=>s.current=function(e,t){return t&&(dT.fun(t)?t(e):dT.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return te.createElement(e,lT({},c,{ref:d}))})),e=>(dT.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=hO(n),e}),hO))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function fO(e,t){return e.map((function(e,n){return e+t[n]}))}function mO(e,t){return e.map((function(e,n){return e-t[n]}))}function gO(e){return Math.hypot.apply(Math,e)}function bO(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function vO(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function yO(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-vO(t-e,n-t,r)+t:e>n?+vO(e-n,n-t,r)+n:e}function wO(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function xO(){return xO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xO.apply(this,arguments)}function CO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function kO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SO(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return $O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$O(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function MO(){}function EO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?MO:1===t.length?t[0]:function(){for(var e,n,r=SO(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function TO(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function OO(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function LO(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],s=i[0],a=i[1];switch(typeof a){case"function":n[s]=a.call(n,e[s],s,e);break;case"object":n[s]=LO(e[s],a);break;case"boolean":a&&(n[s]=e[s])}}return n}var AO=xO({},{threshold:function(e){return void 0===e&&(e=0),TO(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return TO(.15);case!1:return TO(0);default:return TO(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:TO(e)}},{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return AO.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,o=t.right,i=void 0===o?1/0:o,s=t.top,a=void 0===s?-1/0:s,l=t.bottom;return[[r,i],[a,void 0===l?1/0:l]]}}),NO="undefined"!=typeof window&&window.document&&window.document.createElement,RO={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=NO?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,o=t.capture;return{passive:r,capture:void 0!==o&&o}}},DO=xO({},AO,{threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,i=n.lockDirection,s=void 0!==i&&i,a=n.axis,l=TO(e,o?3:s||(void 0===a?void 0:a)?1:0);return this.filterTaps=o||l[0]+l[1]>0,l},swipeVelocity:function(e){return void 0===e&&(e=.5),TO(e)},swipeDistance:function(e){return void 0===e&&(e=60),TO(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function PO(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["domTarget","eventOptions","window","enabled"]),s=function(e){return void 0===e&&(e={}),LO(e,RO)}({domTarget:t,eventOptions:n,window:r,enabled:o});return s.drag=function(e){return void 0===e&&(e={}),LO(e,DO)}(i),s}function IO(e){return xO({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:MO,canceled:!1,memo:void 0,args:void 0},e)}function zO(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:IO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:IO({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:IO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:IO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:IO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var VO=new Map,HO=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(i))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var o=xO({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),i=n.handler(o);return n.state.memo=void 0!==i?i:n.state.memo,n.state._active||n.clean(),o}}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t=this.config,n=t.initial,r=t.bounds,o=t.rubberband,i=t.threshold,s=this.state,a=s._bounds,l=s._initial,c=s._active,d=s._intentional,u=s.lastOffset,h=s.movement,p=this.getInternalMovement(e,this.state),f=!1===d[0]?BO(p[0],i[0]):d[0],m=!1===d[1]?BO(p[1],i[1]):d[1],g=this.checkIntentionality([f,m],p);if(g._blocked)return xO({},g,{_movement:p,delta:[0,0]});var b,v,y,w,x=g._intentional,C=p;(!1!==x[0]&&!1===d[0]&&(v=OO(n,this.state),b=OO(r,this.state),l[0]=v[0],a[0]=b[0]),!1!==x[1]&&!1===d[1])&&(v=null!=(y=v)?y:OO(n,this.state),b=null!=(w=b)?w:OO(r,this.state),l[1]=v[1],a[1]=b[1]);var k=[!1!==x[0]?p[0]-x[0]:l[0],!1!==x[1]?p[1]-x[1]:l[1]],$=fO(k,u),S=c?o:[0,0];return k=_O(a,fO(k,l),S),xO({},g,{intentional:!1!==x[0]||!1!==x[1],_initial:l,_movement:C,movement:k,values:e,offset:_O(a,$,S),delta:mO(k,h)})},t.clean=function(){this.clearTimeout()},wO(e,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),e}();function BO(e,t){return Math.abs(e)>=t&&bO(e)*t}function _O(e,t,n){var r=t[0],o=t[1],i=n[0],s=n[1],a=e[0],l=a[0],c=a[1],d=e[1],u=d[0],h=d[1];return[yO(r,l,c,i),yO(o,u,h,s)]}function jO(e,t,n){var r=e.state,o=e.args,i=t.timeStamp,s=t.type,a=r.values;return{_lastEventType:s,event:t,timeStamp:i,elapsedTime:n?0:i-r.startTime,args:o,previous:a}}function FO(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.call.apply(e,[this,xO({},t,{event:n})].concat(o))}}var qO=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(var i,s=SO(t.classes);!(i=s()).done;){new(0,i.value)(t,r).addBindings(e)}for(var a=0,l=Object.entries(t.nativeRefs);a<l.length;a++){var c=l[a];KO(e,c[0],FO(c[1],xO({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=UO(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;ZO(o,WO(r),i);for(var s=0,a=Object.entries(t);s<a.length;s++){var l=a[s],c=l[0],d=l[1],u=c.slice(2).toLowerCase();r.push([u,EO.apply(void 0,d)])}GO(o,r,i)}(t,e):function(e,t){for(var n=e.config,r={},o=n.eventOptions.capture?"Capture":"",i=0,s=Object.entries(t);i<s.length;i++){var a=s[i],l=a[0],c=a[1],d=Array.isArray(c)?c:[c];r[l+o]=EO.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=UO(t.config),n=t.config.eventOptions;e&&ZO(e,WO(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,o=e.windowListeners;if(!n)return;for(var i in o){ZO(n,o[i],r)}e.windowListeners={}}(t)},this.state=zO(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function WO(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function UO(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function KO(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function GO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=SO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.addEventListener(s,a,n)}}function ZO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=SO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.removeEventListener(s,a,n)}}function JO(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(VO.get("drag"));e.wheel&&t.add(VO.get("wheel"));e.scroll&&t.add(VO.get("scroll"));e.move&&t.add(VO.get("move"));e.pinch&&t.add(VO.get("pinch"));e.hover&&t.add(VO.get("hover"));return t}(e),o=te.useMemo((function(){return new qO(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,te.useEffect(o.effect,[]),o.config.domTarget?XO:o.bind}function XO(){"development"===process.env.NODE_ENV&&console.warn("Deprecation notice: When the `domTarget` option is specified, you don't need to write `useEffect(bind, [bind])` anymore: event binding is now made handled internally to this lib.\n\nNext version won't return anything when `domTarget` is provided, therefore your code will break if you try to call `useEffect`.")}var YO=function(e){function t(){return e.apply(this,arguments)||this}CO(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return mO(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],o=n[1],i=this.state.axis||(r>o?"x":r<o?"y":void 0);return this.config.axis||this.config.lockDirection?i?this.config.axis&&i!==this.config.axis?{_intentional:e,_blocked:!0,axis:i}:(e["x"===i?1:0]=!1,{_intentional:e,_blocked:!1,axis:i}):{_intentional:[!1,!1],_blocked:!1,axis:i}:{_intentional:e,_blocked:!1,axis:i}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=gO(t),o=0===r?0:1/r,i=0===n?0:1/n,s=i*r,a=t.map((function(e){return i*e})),l=t.map((function(e){return o*e}));return{velocities:a,velocity:s,distance:gO(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(HO);function QO(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function eL(e){var t="buttons"in e?e.buttons:0,n=QO(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function tL(e){var t=QO(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var nL=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(!function(e,t,n){var r=e.config,o=e.windowListeners;void 0===n&&(n=[]),r.window&&(ZO(r.window,o[t],r.eventOptions),GO(r.window,o[t]=n,r.eventOptions))}(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(kO(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=eL(e);if(n.down){t.updateSharedState(n);var r=tL(e),o=t.getKinematics(r,e),i=jO(kO(t),e),s=t.state._isTap,a=gO(o._movement);s&&a>=3&&(s=!1),t.updateGestureState(xO({},i,o,{_isTap:s})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,o=r[0],i=r[1],s=t.state.movement,a=s[0],l=s[1],c=t.state._intentional,d=c[0],u=c[1],h=t.config.swipeVelocity,p=h[0],f=h[1],m=t.config.swipeDistance,g=m[0],b=m[1],v=xO({},jO(kO(t),e),t.getMovement(t.state.values)),y=[0,0];v.elapsedTime<220&&(!1!==d&&Math.abs(o)>p&&Math.abs(a)>g&&(y[0]=bO(o)),!1!==u&&Math.abs(i)>f&&Math.abs(l)>b&&(y[1]=bO(i))),t.updateGestureState(xO({},v,{tap:n,swipe:y})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(kO(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(ZO(n.window,r[t],n.eventOptions),delete r[t])}(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}CO(t,e);var n=t.prototype;return n.startDrag=function(e){var t=tL(e);this.updateSharedState(eL(e)),this.updateGestureState(xO({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return xO({},zO()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),jO(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(KO(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&KO(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(YO);function rL(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,i;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!rL(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!rL(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===o[r]&&e.$$typeof||rL(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function oL(e,t){try{return rL(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function iL(e,t){void 0===t&&(t={}),VO.set("drag",nL);var n=se();return n.current||(n.current=function(e,t){var n,r,o=[],i=!1;return function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(PO,oL)),JO({drag:e},n.current(t))}
|
|
3188
3233
|
/*!
|
|
3189
3234
|
* tabbable 5.3.3
|
|
3190
3235
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
3191
|
-
*/var
|
|
3236
|
+
*/var sL=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],aL=sL.join(","),lL="undefined"==typeof Element,cL=lL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,dL=!lL&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},uL=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(aL));return t&&cL.call(e,aL)&&r.unshift(e),r=r.filter(n)},hL=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if("SLOT"===s.tagName){var a=s.assignedElements(),l=e(a.length?a:s.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scope:s,candidates:l})}else{cL.call(s,aL)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),d=!r.shadowRootFilter||r.shadowRootFilter(s);if(c&&d){var u=e(!0===c?s.children:c.children,!0,r);r.flatten?o.push.apply(o,u):o.push({scope:s,candidates:u})}else i.unshift.apply(i,s.children)}}return o},pL=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},fL=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},mL=function(e){return"INPUT"===e.tagName},gL=function(e){return function(e){return mL(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||dL(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},bL=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},vL=function(e,t){return!(t.disabled||function(e){return mL(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=cL.call(e,"details>summary:first-of-type")?e.parentElement:e;if(cL.call(o,"details:not([open]) *"))return!0;var i=dL(e).host,s=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return bL(e)}else{if("function"==typeof r){for(var a=e;e;){var l=e.parentElement,c=dL(e);if(l&&!l.shadowRoot&&!0===r(l))return bL(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=a}if(s)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!cL.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},yL=function(e,t){return!(gL(t)||pL(t)<0||!vL(e,t))},wL=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},xL=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scope,s=i?t.scope:t,a=pL(s,i),l=i?e(t.candidates):s;0===a?i?n.push.apply(n,l):n.push(s):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:l})})),r.sort(fL).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},CL=function(e,t){var n;return n=(t=t||{}).getShadowRoot?hL([e],t.includeContainer,{filter:yL.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:wL}):uL(e,t.includeContainer,yL.bind(null,t)),xL(n)},kL=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==cL.call(e,aL)&&yL(t,e)},$L=sL.concat("iframe").join(","),SL=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==cL.call(e,$L)&&vL(t,e)};
|
|
3192
3237
|
/*!
|
|
3193
3238
|
* focus-trap 6.9.4
|
|
3194
3239
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
3195
3240
|
*/
|
|
3196
|
-
function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kL(Object(n),!0).forEach((function(t){SL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ML,EL=(ML=[],{activateTrap:function(e){if(ML.length>0){var t=ML[ML.length-1];t!==e&&t.pause()}var n=ML.indexOf(e);-1===n||ML.splice(n,1),ML.push(e)},deactivateTrap:function(e){var t=ML.indexOf(e);-1!==t&&ML.splice(t,1),ML.length>0&&ML[ML.length-1].unpause()}}),TL=function(e){return setTimeout(e,0)},OL=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},LL=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},AL=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},NL=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=$L({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},a=function(e){return i.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},l=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"==typeof t&&!(a=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(a(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=yL(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?cL([t],n.includeContainer,{filter:mL.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):lL(t,n.includeContainer,mL.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return wL(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return wL(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},h=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},p=function(e){var t=AL(e);a(t)>=0||(LL(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!CL(t,o.tabbableOptions)}):LL(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=AL(e),n=a(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(i.mostRecentlyFocusedNode||c()))},m=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==LL(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=AL(e);d();var n=null;if(i.tabbableGroups.length>0){var r=a(t),s=r>=0?i.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=OL(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(s.container===t||CL(t,o.tabbableOptions)&&!wL(t,o.tabbableOptions)&&!s.nextTabbableNode(t,!1))&&(c=r),c>=0){var h=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[h].lastTabbableNode}}else{var p=OL(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(p<0&&(s.container===t||CL(t,o.tabbableOptions)&&!wL(t,o.tabbableOptions)&&!s.nextTabbableNode(t))&&(p=r),p>=0){var f=p===i.tabbableGroups.length-1?0:p+1;n=i.tabbableGroups[f].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},g=function(e){var t=AL(e);a(t)>=0||LL(o.clickOutsideDeactivates,e)||LL(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(i.active)return EL.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?TL((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",p,{capture:!0,passive:!1}),r.addEventListener("touchstart",p,{capture:!0,passive:!1}),r.addEventListener("click",g,{capture:!0,passive:!1}),r.addEventListener("keydown",m,{capture:!0,passive:!1}),n},v=function(){if(i.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",p,!0),r.removeEventListener("touchstart",p,!0),r.removeEventListener("click",g,!0),r.removeEventListener("keydown",m,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),o=s(e,"checkCanFocusTrap");o||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var a=function(){o&&d(),b(),n&&n()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!i.active)return this;var t=$L({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,v(),i.active=!1,i.paused=!1,EL.deactivateTrap(n);var r=s(t,"onDeactivate"),a=s(t,"onPostDeactivate"),l=s(t,"checkCanReturnFocus"),c=s(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){TL((function(){c&&u(h(i.nodeFocusedBeforeActivation)),a&&a()}))};return c&&l?(l(h(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,v()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,d(),b(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),i.active&&d(),this}}).updateContainerElements(e),n};var RL=!1;if("undefined"!=typeof window){var DL={get passive(){RL=!0}};window.addEventListener("testPassive",null,DL),window.removeEventListener("testPassive",null,DL)}var PL,IL="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),zL=[],VL=!1,HL=-1,BL=void 0,_L=void 0,jL=function(e){return zL.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},FL=function(e){var t=e||window.event;return!!jL(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},qL=function(e,t){if(e){if(!zL.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};zL=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(zL),[n]),IL?(e.ontouchstart=function(e){1===e.targetTouches.length&&(HL=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-HL;!jL(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?FL(e):e.stopPropagation())}(t,e)},VL||(document.addEventListener("touchmove",FL,RL?{passive:!1}:void 0),VL=!0)):function(e){if(void 0===_L){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(_L=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===BL&&(BL=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},WL=function(e){e?(zL=zL.filter((function(t){return t.targetElement!==e})),IL?(e.ontouchstart=null,e.ontouchmove=null,VL&&0===zL.length&&(document.removeEventListener("touchmove",FL,RL?{passive:!1}:void 0),VL=!1)):zL.length||(void 0!==_L&&(document.body.style.paddingRight=_L,_L=void 0),void 0!==BL&&(document.body.style.overflow=BL,BL=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},UL=[],KL="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(PL||(PL={}));var GL,ZL=function(e){return Object.freeze(e)},JL=function(e,t){this.inlineSize=e,this.blockSize=t,ZL(this)},XL=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ZL(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),YL=function(e){return e instanceof SVGElement&&"getBBox"in e},QL=function(e){if(YL(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},eA=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},tA="undefined"!=typeof window?window:{},nA=new WeakMap,rA=/auto|scroll/,oA=/^tb|vertical/,iA=/msie|trident/i.test(tA.navigator&&tA.navigator.userAgent),sA=function(e){return parseFloat(e||"0")},aA=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new JL((n?t:e)||0,(n?e:t)||0)},lA=ZL({devicePixelContentBoxSize:aA(),borderBoxSize:aA(),contentBoxSize:aA(),contentRect:new XL(0,0,0,0)}),cA=function(e,t){if(void 0===t&&(t=!1),nA.has(e)&&!t)return nA.get(e);if(QL(e))return nA.set(e,lA),lA;var n=getComputedStyle(e),r=YL(e)&&e.ownerSVGElement&&e.getBBox(),o=!iA&&"border-box"===n.boxSizing,i=oA.test(n.writingMode||""),s=!r&&rA.test(n.overflowY||""),a=!r&&rA.test(n.overflowX||""),l=r?0:sA(n.paddingTop),c=r?0:sA(n.paddingRight),d=r?0:sA(n.paddingBottom),u=r?0:sA(n.paddingLeft),h=r?0:sA(n.borderTopWidth),p=r?0:sA(n.borderRightWidth),f=r?0:sA(n.borderBottomWidth),m=u+c,g=l+d,b=(r?0:sA(n.borderLeftWidth))+p,v=h+f,y=a?e.offsetHeight-v-e.clientHeight:0,w=s?e.offsetWidth-b-e.clientWidth:0,x=o?m+b:0,C=o?g+v:0,k=r?r.width:sA(n.width)-x-w,$=r?r.height:sA(n.height)-C-y,S=k+m+w+b,M=$+g+y+v,E=ZL({devicePixelContentBoxSize:aA(Math.round(k*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:aA(S,M,i),contentBoxSize:aA(k,$,i),contentRect:new XL(u,l,k,$)});return nA.set(e,E),E},dA=function(e,t,n){var r=cA(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case PL.DEVICE_PIXEL_CONTENT_BOX:return s;case PL.BORDER_BOX:return o;default:return i}},uA=function(e){var t=cA(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=ZL([t.borderBoxSize]),this.contentBoxSize=ZL([t.contentBoxSize]),this.devicePixelContentBoxSize=ZL([t.devicePixelContentBoxSize])},hA=function(e){if(QL(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},pA=function(){var e=1/0,t=[];UL.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new uA(t.target),o=hA(t.target);r.push(n),t.lastReportedSize=dA(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},fA=function(e){UL.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(hA(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},mA=function(){var e=0;for(fA(e);UL.some((function(e){return e.activeTargets.length>0}));)e=pA(),fA(e);return UL.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:KL}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=KL),window.dispatchEvent(e)}(),e>0},gA=[],bA=function(e){if(!GL){var t=0,n=document.createTextNode("");new MutationObserver((function(){return gA.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),GL=function(){n.textContent="".concat(t?t--:t++)}}gA.push(e),GL()},vA=0,yA={attributes:!0,characterData:!0,childList:!0,subtree:!0},wA=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],xA=function(e){return void 0===e&&(e=0),Date.now()+e},CA=!1,kA=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!CA){CA=!0;var n,r=xA(e);n=function(){var n=!1;try{n=mA()}finally{if(CA=!1,e=r-xA(),!vA)return;n?t.run(1e3):e>0?t.run(e):t.start()}},bA((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,yA)};document.body?t():tA.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),wA.forEach((function(t){return tA.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),wA.forEach((function(t){return tA.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),$A=function(e){!vA&&e>0&&kA.start(),!(vA+=e)&&kA.stop()},SA=function(){function e(e,t){this.target=e,this.observedBox=t||PL.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=dA(this.target,this.observedBox,!0);return function(e){return!YL(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),MA=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},EA=new WeakMap,TA=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},OA=function(){function e(){}return e.connect=function(e,t){var n=new MA(e,t);EA.set(e,n)},e.observe=function(e,t,n){var r=EA.get(e),o=0===r.observationTargets.length;TA(r.observationTargets,t)<0&&(o&&UL.push(r),r.observationTargets.push(new SA(t,n&&n.box)),$A(1),kA.schedule())},e.unobserve=function(e,t){var n=EA.get(e),r=TA(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&UL.splice(UL.indexOf(n),1),n.observationTargets.splice(r,1),$A(-1))},e.disconnect=function(e){var t=this,n=EA.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),LA=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");OA.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!eA(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");OA.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!eA(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");OA.unobserve(this,e)},e.prototype.disconnect=function(){OA.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function AA(){return AA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AA.apply(this,arguments)}function NA(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var RA="undefined"!=typeof window?de:ce;function DA(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function PA(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var IA={box:"border-box"};function zA(e,t){var n=t.label,r=t.enabled,o=t.resizeSourceRef,i=ae(0),s=i[0],a=i[1];le(n+": "+s);var l=ue((function(e){a(e[0].borderBoxSize[0].blockSize),o.current="element"}),[o]);return RA((function(){if(e.current&&r){var t=new LA(l);return t.observe(e.current,IA),function(){t.disconnect()}}}),[e,l,r]),r?s:0}function VA(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var HA={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},BA={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},_A=function(e,t,n){return void 0===n&&(n=e.context),new FE(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:AA({},HA,BA)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:AA({},HA,BA)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:AA({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[WE({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(VA()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),jA=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],FA=["velocity"],qA=["onRest","config"],WA={tension:170,friction:26},UA=WA.tension,KA=WA.friction,GA=te.forwardRef((function(e,t){var n=e.children,r=e.sibling,o=e.className,i=e.footer,s=e.header,a=e.open,l=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,h=e.maxHeight,p=e.defaultSnap,f=void 0===p?JA:p,m=e.snapPoints,g=void 0===m?XA:m,b=e.blocking,v=void 0===b||b,y=e.scrollLocking,w=void 0===y||y,x=e.style,C=e.onSpringStart,k=e.onSpringCancel,$=e.onSpringEnd,S=e.reserveScrollBarGap,M=void 0===S?v:S,E=e.expandOnContentDrag,T=void 0!==E&&E,O=NA(e,jA),L=function(){var e=ae(!1),t=e[0],n=e[1],r=ae({}),o=r[0],i=r[1],s=ue((function(e){return i((function(t){var n;return AA({},t,((n={})[e]=!1,n))})),function(){i((function(t){var n;return AA({},t,((n={})[e]=!0,n))}))}}),[]);return ce((function(){var e=Object.values(o);0!==e.length&&e.every(Boolean)&&n(!0)}),[o]),{ready:t,registerReady:s}}(),A=L.ready,N=L.registerReady,R=se(!1),D=se(C),P=se(k),I=se($);ce((function(){D.current=C,P.current=k,I.current=$}),[k,C,$]);var z,V,H=RT((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),B=H[0],_=H[1],j=se(null),F=se(null),q=se(null),W=se(null),U=se(null),K=se(null),G=se(0),Z=se(),J=se(!1),X=(z=oe((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),V=se(null==z?void 0:z.matches),le(V.current?"reduce":"no-preference"),ce((function(){var e=function(e){V.current=e.matches};return null==z||z.addListener(e),function(){return null==z?void 0:z.removeListener(e)}}),[z]),V),Y=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,o=se({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return le(n?"Enabled":"Disabled"),ce((function(){if(!n)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1;o.current={activate:function(){i||(i=!0,qL(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){i&&(i=!1,WL(e))}}}),[n,t,r]),o}({targetRef:F,enabled:A&&w,reserveScrollBarGap:M}),Q=function(e){var t=e.targetRef,n=e.enabled,r=se({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return le(n?"Enabled":"Disabled"),ce((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1,i=[],s=[];r.current={activate:function(){if(!o){o=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(i.push(n),s.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){o&&(o=!1,s.forEach((function(e,t){var n=i[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),i=[],s=[])}}}),[t,n]),r}({targetRef:j,enabled:A&&v}),ee=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,o=e.enabled,i=se({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return le(o?"Enabled":"Disabled"),ce((function(){if(!o)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=n.current,s=NL(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),a=!1;i.current={activate:function(){try{return a?Promise.resolve():(a=!0,Promise.resolve(s.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){a&&(a=!1,s.deactivate())}}}),[o,n,r,t]),i}({targetRef:j,fallbackRef:K,initialFocusRef:d||void 0,enabled:A&&v&&!1!==d}),ne=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,o=e.ready,i=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,o=e.footerRef,i=e.headerEnabled,s=e.headerRef,a=e.registerReady,l=e.resizeSourceRef,c=oe((function(){return a("contentHeight")}),[a]),d=function(e,t,n){var r=oe((function(){return t("maxHeight")}),[t]),o=ae((function(){return PA(e)||"undefined"!=typeof window?window.innerHeight:0})),i=o[0],s=o[1],a=i>0,l=se(0);return le(e?"controlled":"auto"),ce((function(){a&&r()}),[a,r]),RA((function(){if(e)return s(PA(e)),void(n.current="maxheightprop");var t=function(){l.current||(l.current=requestAnimationFrame((function(){s(window.innerHeight),n.current="window",l.current=0})))};return window.addEventListener("resize",t),s(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(l.current)}}),[e,r,n]),i}(n,a,l),u=zA(s,{label:"headerHeight",enabled:i,resizeSourceRef:l}),h=zA(t,{label:"contentHeight",enabled:!0,resizeSourceRef:l}),p=zA(o,{label:"footerHeight",enabled:r,resizeSourceRef:l}),f=Math.min(d-u-p,h)+u+p;le("minHeight: "+f);var m=h>0;return ce((function(){m&&c()}),[m,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:p}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),s=i.maxHeight,a=i.minHeight,l=i.headerHeight,c=i.footerHeight,d=function(e,t){var n=[].concat(e).map(PA).reduce((function(e,n){return e.add(DA(n,0,t)),e}),new Set),r=Array.from(n),o=Math.min.apply(Math,r);if(Number.isNaN(o))throw new TypeError("minSnap is NaN");var i=Math.max.apply(Math,r);if(Number.isNaN(i))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:o,maxSnap:i}}(o?t({height:n.current,footerHeight:c,headerHeight:l,minHeight:a,maxHeight:s}):[0],s),u=d.snapPoints,h=d.minSnap,p=d.maxSnap;return le("minSnap: "+h+", maxSnap:"+p),{minSnap:h,maxSnap:p,findSnap:function(e){var t=PA("function"==typeof e?e({footerHeight:c,headerHeight:l,height:n.current,minHeight:a,maxHeight:s,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),h)},maxHeight:s}}({contentRef:q,controlledMaxHeight:h,footerEnabled:!!i,footerRef:U,getSnapPoints:g,headerEnabled:!1!==s,headerRef:W,heightRef:G,lastSnapRef:c,ready:A,registerReady:N,resizeSourceRef:Z}),re=ne.minSnap,ie=ne.maxSnap,de=ne.maxHeight,he=ne.findSnap,pe=se(de),fe=se(re),ge=se(ie),be=se(he),ve=se(0);RA((function(){pe.current=de,ge.current=ie,fe.current=re,be.current=he,ve.current=he(f)}),[he,f,de,ie,re]);var ye=ue((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,o=void 0===r?1:r,i=NA(n,FA),s=NA(e,qA);return new Promise((function(e){return _(AA({},s,{config:AA({velocity:o},i,{mass:1,tension:UA,friction:Math.max(KA,KA+(KA-KA*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[_]),we=oT(_A,{devTools:!1,actions:{onOpenCancel:ue((function(){return null==P.current?void 0:P.current({type:"OPEN"})}),[]),onSnapCancel:ue((function(e){return null==P.current?void 0:P.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:ue((function(){return null==P.current?void 0:P.current({type:"CLOSE"})}),[]),onResizeCancel:ue((function(){return null==P.current?void 0:P.current({type:"RESIZE",source:Z.current})}),[]),onOpenEnd:ue((function(){return null==I.current?void 0:I.current({type:"OPEN"})}),[]),onSnapEnd:ue((function(e,t){return null==I.current?void 0:I.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:ue((function(){return null==I.current?void 0:I.current({type:"RESIZE",source:Z.current})}),[])},context:{initialState:l},services:{onSnapStart:ue((function(e,t){try{return Promise.resolve(null==D.current?void 0:D.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"RESIZE",source:Z.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:ue((function(e,t){try{return Promise.resolve(null==I.current?void 0:I.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"RESIZE",source:Z.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:ue((function(e,t){try{return Promise.resolve(ye({y:ve.current,ready:0,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye]),activate:ue((function(e,t){try{return R.current=!0,Promise.resolve(Promise.all([Y.current.activate(),ee.current.activate(),Q.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[Q,ee,Y]),deactivate:ue((function(){try{return Y.current.deactivate(),ee.current.deactivate(),Q.current.deactivate(),R.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[Q,ee,Y]),openImmediately:ue((function(){try{return G.current=ve.current,Promise.resolve(ye({y:ve.current,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye]),openSmoothly:ue((function(){try{return Promise.resolve(ye({y:0,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){return G.current=ve.current,Promise.resolve(ye({y:ve.current,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:X.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[ye,X]),snapSmoothly:ue((function(e,t){try{var n=be.current(e.y);return G.current=n,c.current=n,Promise.resolve(ye({y:n,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:X.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye,c,X]),resizeSmoothly:ue((function(){try{var e=be.current(G.current);return G.current=e,c.current=e,Promise.resolve(ye({y:e,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:"element"!==Z.current||X.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye,c,X]),closeSmoothly:ue((function(e,t){try{return ye({minSnap:G.current,immediate:!0}),G.current=0,Promise.resolve(ye({y:0,maxHeight:pe.current,maxSnap:ge.current,immediate:X.current})).then((function(){return Promise.resolve(ye({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[ye,X])}}),xe=we[0],Ce=we[1];ce((function(){A&&Ce(a?"OPEN":"CLOSE")}),[a,Ce,A]),RA((function(){(de||ie||re)&&Ce("RESIZE")}),[de,ie,re,Ce]),ce((function(){return function(){Y.current.deactivate(),ee.current.deactivate(),Q.current.deactivate()}}),[Q,ee,Y]),me(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,o=void 0===r?1:r,i=n.source,s=void 0===i?"custom":i;Ce("SNAP",{payload:{y:be.current(e),velocity:o,source:s}})},get height(){return G.current}}}),[Ce]),ce((function(){var e=F.current,t=function(e){J.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return T&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[T,F]);var ke=nL((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,o=void 0!==r&&r,i=n.isContentDragging,s=void 0!==i&&i,a=e.cancel,l=e.direction[1],c=e.down,d=e.first,h=e.last,p=e.memo,f=void 0===p?B.y.getValue():p,m=e.tap,g=e.velocity,b=-1*e.movement[1];if(!R.current)return a(),f;if(u&&o&&m)return a(),setTimeout((function(){return u()}),0),f;if(m)return f;var v=f+b,y=b*g,w=Math.max(fe.current,Math.min(ge.current,v+2*y));if(!c&&u&&l>0&&v+y<fe.current/2)return a(),u(),f;var x=c?u||fe.current!==ge.current?gO(v,u?0:fe.current,ge.current,.55):v<fe.current?gO(v,fe.current,2*ge.current,.55):gO(v,fe.current/2,ge.current,.55):w;return T&&s?(x>=ge.current&&(x=ge.current),f===ge.current&&F.current.scrollTop>0&&(x=ge.current),J.current=x<ge.current):J.current=!1,d&&Ce("DRAG"),h?(Ce("SNAP",{payload:{y:x,velocity:g>.05?g:1,source:"dragging"}}),f):(_({y:x,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:!0,config:{velocity:g}}),f)}),{filterTaps:!0});if(Number.isNaN(ge.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(fe.current))throw new TypeError("minSnapRef is NaN!!");var $e=function(e){var t,n=e.spring,r=ET([n.y,n.maxHeight],(function(e,t){return Math.round(DA(t-e,0,16))+"px"})),o=ET([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return DA(e,t,n)+"px"})),i=ET([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),s=ET([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),a=ET([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return DA((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=ET([n.y,n.minSnap],(function(e,t){return t?DA(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=a,t["--rsbs-backdrop-opacity"]=l,t["--rsbs-antigap-scale-y"]=s,t["--rsbs-overlay-translate-y"]=i,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=o,t}({spring:B});return te.createElement(dO.div,AA({},O,{"data-rsbs-root":!0,"data-rsbs-state":ZA.find(xe.matches),"data-rsbs-is-blocking":v,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!s,"data-rsbs-has-footer":!!i,className:o,ref:j,style:AA({},$e,x,{opacity:B.ready})}),r,v&&te.createElement("div",AA({key:"backdrop","data-rsbs-backdrop":!0},ke({closeOnTap:!0}))),te.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:K,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==s&&te.createElement("div",AA({key:"header","data-rsbs-header":!0,ref:W},ke()),s),te.createElement("div",AA({key:"scroll","data-rsbs-scroll":!0,ref:F},T?ke({isContentDragging:!0}):{}),te.createElement("div",{"data-rsbs-content":!0,ref:q},n)),i&&te.createElement("div",AA({key:"footer",ref:U,"data-rsbs-footer":!0},ke()),i)))})),ZA=["closed","opening","open","closing","dragging","snapping","resizing"];function JA(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function XA(e){return e.minHeight}var YA=["onSpringStart","onSpringEnd","skipInitialTransition"],QA=ie((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,o=e.skipInitialTransition,i=NA(e,YA),s=ae(!1),a=s[0],l=s[1],c=se(),d=se(null),u=se(o&&i.open?"OPEN":"CLOSED");RA((function(){if(i.open)return cancelAnimationFrame(c.current),l(!0),function(){u.current="CLOSED"}}),[i.open]);var h=ue((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),p=ue((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return l(!1)})))}))}),[r]);return a?te.createElement(KS,{"data-rsbs-portal":!0},te.createElement(GA,AA({},i,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:h,onSpringEnd:p}))):null}));const eN=ke`
|
|
3241
|
+
function ML(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ML(Object(n),!0).forEach((function(t){TL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ML(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OL,LL=(OL=[],{activateTrap:function(e){if(OL.length>0){var t=OL[OL.length-1];t!==e&&t.pause()}var n=OL.indexOf(e);-1===n||OL.splice(n,1),OL.push(e)},deactivateTrap:function(e){var t=OL.indexOf(e);-1!==t&&OL.splice(t,1),OL.length>0&&OL[OL.length-1].unpause()}}),AL=function(e){return setTimeout(e,0)},NL=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},RL=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},DL=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},PL=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=EL({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},a=function(e){return i.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},l=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"==typeof t&&!(a=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(a(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=CL(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?hL([t],n.includeContainer,{filter:vL.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):uL(t,n.includeContainer,vL.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return kL(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return kL(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},h=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},p=function(e){var t=DL(e);a(t)>=0||(RL(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!SL(t,o.tabbableOptions)}):RL(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=DL(e),n=a(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(i.mostRecentlyFocusedNode||c()))},m=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==RL(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=DL(e);d();var n=null;if(i.tabbableGroups.length>0){var r=a(t),s=r>=0?i.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=NL(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(s.container===t||SL(t,o.tabbableOptions)&&!kL(t,o.tabbableOptions)&&!s.nextTabbableNode(t,!1))&&(c=r),c>=0){var h=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[h].lastTabbableNode}}else{var p=NL(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(p<0&&(s.container===t||SL(t,o.tabbableOptions)&&!kL(t,o.tabbableOptions)&&!s.nextTabbableNode(t))&&(p=r),p>=0){var f=p===i.tabbableGroups.length-1?0:p+1;n=i.tabbableGroups[f].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},g=function(e){var t=DL(e);a(t)>=0||RL(o.clickOutsideDeactivates,e)||RL(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(i.active)return LL.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?AL((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",p,{capture:!0,passive:!1}),r.addEventListener("touchstart",p,{capture:!0,passive:!1}),r.addEventListener("click",g,{capture:!0,passive:!1}),r.addEventListener("keydown",m,{capture:!0,passive:!1}),n},v=function(){if(i.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",p,!0),r.removeEventListener("touchstart",p,!0),r.removeEventListener("click",g,!0),r.removeEventListener("keydown",m,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),o=s(e,"checkCanFocusTrap");o||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var a=function(){o&&d(),b(),n&&n()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!i.active)return this;var t=EL({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,v(),i.active=!1,i.paused=!1,LL.deactivateTrap(n);var r=s(t,"onDeactivate"),a=s(t,"onPostDeactivate"),l=s(t,"checkCanReturnFocus"),c=s(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){AL((function(){c&&u(h(i.nodeFocusedBeforeActivation)),a&&a()}))};return c&&l?(l(h(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,v()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,d(),b(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),i.active&&d(),this}}).updateContainerElements(e),n};var IL=!1;if("undefined"!=typeof window){var zL={get passive(){IL=!0}};window.addEventListener("testPassive",null,zL),window.removeEventListener("testPassive",null,zL)}var VL,HL="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),BL=[],_L=!1,jL=-1,FL=void 0,qL=void 0,WL=function(e){return BL.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},UL=function(e){var t=e||window.event;return!!WL(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},KL=function(e,t){if(e){if(!BL.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};BL=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(BL),[n]),HL?(e.ontouchstart=function(e){1===e.targetTouches.length&&(jL=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-jL;!WL(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?UL(e):e.stopPropagation())}(t,e)},_L||(document.addEventListener("touchmove",UL,IL?{passive:!1}:void 0),_L=!0)):function(e){if(void 0===qL){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(qL=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===FL&&(FL=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},GL=function(e){e?(BL=BL.filter((function(t){return t.targetElement!==e})),HL?(e.ontouchstart=null,e.ontouchmove=null,_L&&0===BL.length&&(document.removeEventListener("touchmove",UL,IL?{passive:!1}:void 0),_L=!1)):BL.length||(void 0!==qL&&(document.body.style.paddingRight=qL,qL=void 0),void 0!==FL&&(document.body.style.overflow=FL,FL=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},ZL=[],JL="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(VL||(VL={}));var XL,YL=function(e){return Object.freeze(e)},QL=function(e,t){this.inlineSize=e,this.blockSize=t,YL(this)},eA=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,YL(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),tA=function(e){return e instanceof SVGElement&&"getBBox"in e},nA=function(e){if(tA(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},rA=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},oA="undefined"!=typeof window?window:{},iA=new WeakMap,sA=/auto|scroll/,aA=/^tb|vertical/,lA=/msie|trident/i.test(oA.navigator&&oA.navigator.userAgent),cA=function(e){return parseFloat(e||"0")},dA=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new QL((n?t:e)||0,(n?e:t)||0)},uA=YL({devicePixelContentBoxSize:dA(),borderBoxSize:dA(),contentBoxSize:dA(),contentRect:new eA(0,0,0,0)}),hA=function(e,t){if(void 0===t&&(t=!1),iA.has(e)&&!t)return iA.get(e);if(nA(e))return iA.set(e,uA),uA;var n=getComputedStyle(e),r=tA(e)&&e.ownerSVGElement&&e.getBBox(),o=!lA&&"border-box"===n.boxSizing,i=aA.test(n.writingMode||""),s=!r&&sA.test(n.overflowY||""),a=!r&&sA.test(n.overflowX||""),l=r?0:cA(n.paddingTop),c=r?0:cA(n.paddingRight),d=r?0:cA(n.paddingBottom),u=r?0:cA(n.paddingLeft),h=r?0:cA(n.borderTopWidth),p=r?0:cA(n.borderRightWidth),f=r?0:cA(n.borderBottomWidth),m=u+c,g=l+d,b=(r?0:cA(n.borderLeftWidth))+p,v=h+f,y=a?e.offsetHeight-v-e.clientHeight:0,w=s?e.offsetWidth-b-e.clientWidth:0,x=o?m+b:0,C=o?g+v:0,k=r?r.width:cA(n.width)-x-w,$=r?r.height:cA(n.height)-C-y,S=k+m+w+b,M=$+g+y+v,E=YL({devicePixelContentBoxSize:dA(Math.round(k*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:dA(S,M,i),contentBoxSize:dA(k,$,i),contentRect:new eA(u,l,k,$)});return iA.set(e,E),E},pA=function(e,t,n){var r=hA(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case VL.DEVICE_PIXEL_CONTENT_BOX:return s;case VL.BORDER_BOX:return o;default:return i}},fA=function(e){var t=hA(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=YL([t.borderBoxSize]),this.contentBoxSize=YL([t.contentBoxSize]),this.devicePixelContentBoxSize=YL([t.devicePixelContentBoxSize])},mA=function(e){if(nA(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},gA=function(){var e=1/0,t=[];ZL.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new fA(t.target),o=mA(t.target);r.push(n),t.lastReportedSize=pA(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},bA=function(e){ZL.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(mA(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},vA=function(){var e=0;for(bA(e);ZL.some((function(e){return e.activeTargets.length>0}));)e=gA(),bA(e);return ZL.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:JL}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=JL),window.dispatchEvent(e)}(),e>0},yA=[],wA=function(e){if(!XL){var t=0,n=document.createTextNode("");new MutationObserver((function(){return yA.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),XL=function(){n.textContent="".concat(t?t--:t++)}}yA.push(e),XL()},xA=0,CA={attributes:!0,characterData:!0,childList:!0,subtree:!0},kA=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],$A=function(e){return void 0===e&&(e=0),Date.now()+e},SA=!1,MA=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!SA){SA=!0;var n,r=$A(e);n=function(){var n=!1;try{n=vA()}finally{if(SA=!1,e=r-$A(),!xA)return;n?t.run(1e3):e>0?t.run(e):t.start()}},wA((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,CA)};document.body?t():oA.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),kA.forEach((function(t){return oA.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),kA.forEach((function(t){return oA.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),EA=function(e){!xA&&e>0&&MA.start(),!(xA+=e)&&MA.stop()},TA=function(){function e(e,t){this.target=e,this.observedBox=t||VL.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=pA(this.target,this.observedBox,!0);return function(e){return!tA(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),OA=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},LA=new WeakMap,AA=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},NA=function(){function e(){}return e.connect=function(e,t){var n=new OA(e,t);LA.set(e,n)},e.observe=function(e,t,n){var r=LA.get(e),o=0===r.observationTargets.length;AA(r.observationTargets,t)<0&&(o&&ZL.push(r),r.observationTargets.push(new TA(t,n&&n.box)),EA(1),MA.schedule())},e.unobserve=function(e,t){var n=LA.get(e),r=AA(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&ZL.splice(ZL.indexOf(n),1),n.observationTargets.splice(r,1),EA(-1))},e.disconnect=function(e){var t=this,n=LA.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),RA=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");NA.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rA(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");NA.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rA(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");NA.unobserve(this,e)},e.prototype.disconnect=function(){NA.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function DA(){return DA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DA.apply(this,arguments)}function PA(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var IA="undefined"!=typeof window?de:ce;function zA(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function VA(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var HA={box:"border-box"};function BA(e,t){var n=t.label,r=t.enabled,o=t.resizeSourceRef,i=ae(0),s=i[0],a=i[1];le(n+": "+s);var l=ue((function(e){a(e[0].borderBoxSize[0].blockSize),o.current="element"}),[o]);return IA((function(){if(e.current&&r){var t=new RA(l);return t.observe(e.current,HA),function(){t.disconnect()}}}),[e,l,r]),r?s:0}function _A(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var jA={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},FA={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},qA=function(e,t,n){return void 0===n&&(n=e.context),new UE(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:DA({},jA,FA)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:DA({},jA,FA)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:DA({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[GE({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(_A()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),WA=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],UA=["velocity"],KA=["onRest","config"],GA={tension:170,friction:26},ZA=GA.tension,JA=GA.friction,XA=te.forwardRef((function(e,t){var n=e.children,r=e.sibling,o=e.className,i=e.footer,s=e.header,a=e.open,l=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,h=e.maxHeight,p=e.defaultSnap,f=void 0===p?QA:p,m=e.snapPoints,g=void 0===m?eN:m,b=e.blocking,v=void 0===b||b,y=e.scrollLocking,w=void 0===y||y,x=e.style,C=e.onSpringStart,k=e.onSpringCancel,$=e.onSpringEnd,S=e.reserveScrollBarGap,M=void 0===S?v:S,E=e.expandOnContentDrag,T=void 0!==E&&E,O=PA(e,WA),L=function(){var e=ae(!1),t=e[0],n=e[1],r=ae({}),o=r[0],i=r[1],s=ue((function(e){return i((function(t){var n;return DA({},t,((n={})[e]=!1,n))})),function(){i((function(t){var n;return DA({},t,((n={})[e]=!0,n))}))}}),[]);return ce((function(){var e=Object.values(o);0!==e.length&&e.every(Boolean)&&n(!0)}),[o]),{ready:t,registerReady:s}}(),A=L.ready,N=L.registerReady,R=se(!1),D=se(C),P=se(k),I=se($);ce((function(){D.current=C,P.current=k,I.current=$}),[k,C,$]);var z,V,H=IT((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),B=H[0],_=H[1],j=se(null),F=se(null),q=se(null),W=se(null),U=se(null),K=se(null),G=se(0),Z=se(),J=se(!1),X=(z=oe((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),V=se(null==z?void 0:z.matches),le(V.current?"reduce":"no-preference"),ce((function(){var e=function(e){V.current=e.matches};return null==z||z.addListener(e),function(){return null==z?void 0:z.removeListener(e)}}),[z]),V),Y=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,o=se({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return le(n?"Enabled":"Disabled"),ce((function(){if(!n)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1;o.current={activate:function(){i||(i=!0,KL(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){i&&(i=!1,GL(e))}}}),[n,t,r]),o}({targetRef:F,enabled:A&&w,reserveScrollBarGap:M}),Q=function(e){var t=e.targetRef,n=e.enabled,r=se({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return le(n?"Enabled":"Disabled"),ce((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1,i=[],s=[];r.current={activate:function(){if(!o){o=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(i.push(n),s.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){o&&(o=!1,s.forEach((function(e,t){var n=i[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),i=[],s=[])}}}),[t,n]),r}({targetRef:j,enabled:A&&v}),ee=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,o=e.enabled,i=se({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return le(o?"Enabled":"Disabled"),ce((function(){if(!o)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=n.current,s=PL(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),a=!1;i.current={activate:function(){try{return a?Promise.resolve():(a=!0,Promise.resolve(s.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){a&&(a=!1,s.deactivate())}}}),[o,n,r,t]),i}({targetRef:j,fallbackRef:K,initialFocusRef:d||void 0,enabled:A&&v&&!1!==d}),ne=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,o=e.ready,i=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,o=e.footerRef,i=e.headerEnabled,s=e.headerRef,a=e.registerReady,l=e.resizeSourceRef,c=oe((function(){return a("contentHeight")}),[a]),d=function(e,t,n){var r=oe((function(){return t("maxHeight")}),[t]),o=ae((function(){return VA(e)||"undefined"!=typeof window?window.innerHeight:0})),i=o[0],s=o[1],a=i>0,l=se(0);return le(e?"controlled":"auto"),ce((function(){a&&r()}),[a,r]),IA((function(){if(e)return s(VA(e)),void(n.current="maxheightprop");var t=function(){l.current||(l.current=requestAnimationFrame((function(){s(window.innerHeight),n.current="window",l.current=0})))};return window.addEventListener("resize",t),s(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(l.current)}}),[e,r,n]),i}(n,a,l),u=BA(s,{label:"headerHeight",enabled:i,resizeSourceRef:l}),h=BA(t,{label:"contentHeight",enabled:!0,resizeSourceRef:l}),p=BA(o,{label:"footerHeight",enabled:r,resizeSourceRef:l}),f=Math.min(d-u-p,h)+u+p;le("minHeight: "+f);var m=h>0;return ce((function(){m&&c()}),[m,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:p}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),s=i.maxHeight,a=i.minHeight,l=i.headerHeight,c=i.footerHeight,d=function(e,t){var n=[].concat(e).map(VA).reduce((function(e,n){return e.add(zA(n,0,t)),e}),new Set),r=Array.from(n),o=Math.min.apply(Math,r);if(Number.isNaN(o))throw new TypeError("minSnap is NaN");var i=Math.max.apply(Math,r);if(Number.isNaN(i))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:o,maxSnap:i}}(o?t({height:n.current,footerHeight:c,headerHeight:l,minHeight:a,maxHeight:s}):[0],s),u=d.snapPoints,h=d.minSnap,p=d.maxSnap;return le("minSnap: "+h+", maxSnap:"+p),{minSnap:h,maxSnap:p,findSnap:function(e){var t=VA("function"==typeof e?e({footerHeight:c,headerHeight:l,height:n.current,minHeight:a,maxHeight:s,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),h)},maxHeight:s}}({contentRef:q,controlledMaxHeight:h,footerEnabled:!!i,footerRef:U,getSnapPoints:g,headerEnabled:!1!==s,headerRef:W,heightRef:G,lastSnapRef:c,ready:A,registerReady:N,resizeSourceRef:Z}),re=ne.minSnap,ie=ne.maxSnap,de=ne.maxHeight,he=ne.findSnap,pe=se(de),fe=se(re),ge=se(ie),be=se(he),ve=se(0);IA((function(){pe.current=de,ge.current=ie,fe.current=re,be.current=he,ve.current=he(f)}),[he,f,de,ie,re]);var ye=ue((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,o=void 0===r?1:r,i=PA(n,UA),s=PA(e,KA);return new Promise((function(e){return _(DA({},s,{config:DA({velocity:o},i,{mass:1,tension:ZA,friction:Math.max(JA,JA+(JA-JA*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[_]),we=aT(qA,{devTools:!1,actions:{onOpenCancel:ue((function(){return null==P.current?void 0:P.current({type:"OPEN"})}),[]),onSnapCancel:ue((function(e){return null==P.current?void 0:P.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:ue((function(){return null==P.current?void 0:P.current({type:"CLOSE"})}),[]),onResizeCancel:ue((function(){return null==P.current?void 0:P.current({type:"RESIZE",source:Z.current})}),[]),onOpenEnd:ue((function(){return null==I.current?void 0:I.current({type:"OPEN"})}),[]),onSnapEnd:ue((function(e,t){return null==I.current?void 0:I.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:ue((function(){return null==I.current?void 0:I.current({type:"RESIZE",source:Z.current})}),[])},context:{initialState:l},services:{onSnapStart:ue((function(e,t){try{return Promise.resolve(null==D.current?void 0:D.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"RESIZE",source:Z.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:ue((function(e,t){try{return Promise.resolve(null==I.current?void 0:I.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"RESIZE",source:Z.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:ue((function(e,t){try{return Promise.resolve(ye({y:ve.current,ready:0,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye]),activate:ue((function(e,t){try{return R.current=!0,Promise.resolve(Promise.all([Y.current.activate(),ee.current.activate(),Q.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[Q,ee,Y]),deactivate:ue((function(){try{return Y.current.deactivate(),ee.current.deactivate(),Q.current.deactivate(),R.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[Q,ee,Y]),openImmediately:ue((function(){try{return G.current=ve.current,Promise.resolve(ye({y:ve.current,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye]),openSmoothly:ue((function(){try{return Promise.resolve(ye({y:0,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){return G.current=ve.current,Promise.resolve(ye({y:ve.current,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:X.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[ye,X]),snapSmoothly:ue((function(e,t){try{var n=be.current(e.y);return G.current=n,c.current=n,Promise.resolve(ye({y:n,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:X.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye,c,X]),resizeSmoothly:ue((function(){try{var e=be.current(G.current);return G.current=e,c.current=e,Promise.resolve(ye({y:e,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:"element"!==Z.current||X.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye,c,X]),closeSmoothly:ue((function(e,t){try{return ye({minSnap:G.current,immediate:!0}),G.current=0,Promise.resolve(ye({y:0,maxHeight:pe.current,maxSnap:ge.current,immediate:X.current})).then((function(){return Promise.resolve(ye({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[ye,X])}}),xe=we[0],Ce=we[1];ce((function(){A&&Ce(a?"OPEN":"CLOSE")}),[a,Ce,A]),IA((function(){(de||ie||re)&&Ce("RESIZE")}),[de,ie,re,Ce]),ce((function(){return function(){Y.current.deactivate(),ee.current.deactivate(),Q.current.deactivate()}}),[Q,ee,Y]),me(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,o=void 0===r?1:r,i=n.source,s=void 0===i?"custom":i;Ce("SNAP",{payload:{y:be.current(e),velocity:o,source:s}})},get height(){return G.current}}}),[Ce]),ce((function(){var e=F.current,t=function(e){J.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return T&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[T,F]);var ke=iL((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,o=void 0!==r&&r,i=n.isContentDragging,s=void 0!==i&&i,a=e.cancel,l=e.direction[1],c=e.down,d=e.first,h=e.last,p=e.memo,f=void 0===p?B.y.getValue():p,m=e.tap,g=e.velocity,b=-1*e.movement[1];if(!R.current)return a(),f;if(u&&o&&m)return a(),setTimeout((function(){return u()}),0),f;if(m)return f;var v=f+b,y=b*g,w=Math.max(fe.current,Math.min(ge.current,v+2*y));if(!c&&u&&l>0&&v+y<fe.current/2)return a(),u(),f;var x=c?u||fe.current!==ge.current?yO(v,u?0:fe.current,ge.current,.55):v<fe.current?yO(v,fe.current,2*ge.current,.55):yO(v,fe.current/2,ge.current,.55):w;return T&&s?(x>=ge.current&&(x=ge.current),f===ge.current&&F.current.scrollTop>0&&(x=ge.current),J.current=x<ge.current):J.current=!1,d&&Ce("DRAG"),h?(Ce("SNAP",{payload:{y:x,velocity:g>.05?g:1,source:"dragging"}}),f):(_({y:x,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:!0,config:{velocity:g}}),f)}),{filterTaps:!0});if(Number.isNaN(ge.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(fe.current))throw new TypeError("minSnapRef is NaN!!");var $e=function(e){var t,n=e.spring,r=LT([n.y,n.maxHeight],(function(e,t){return Math.round(zA(t-e,0,16))+"px"})),o=LT([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return zA(e,t,n)+"px"})),i=LT([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),s=LT([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),a=LT([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return zA((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=LT([n.y,n.minSnap],(function(e,t){return t?zA(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=a,t["--rsbs-backdrop-opacity"]=l,t["--rsbs-antigap-scale-y"]=s,t["--rsbs-overlay-translate-y"]=i,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=o,t}({spring:B});return te.createElement(pO.div,DA({},O,{"data-rsbs-root":!0,"data-rsbs-state":YA.find(xe.matches),"data-rsbs-is-blocking":v,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!s,"data-rsbs-has-footer":!!i,className:o,ref:j,style:DA({},$e,x,{opacity:B.ready})}),r,v&&te.createElement("div",DA({key:"backdrop","data-rsbs-backdrop":!0},ke({closeOnTap:!0}))),te.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:K,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==s&&te.createElement("div",DA({key:"header","data-rsbs-header":!0,ref:W},ke()),s),te.createElement("div",DA({key:"scroll","data-rsbs-scroll":!0,ref:F},T?ke({isContentDragging:!0}):{}),te.createElement("div",{"data-rsbs-content":!0,ref:q},n)),i&&te.createElement("div",DA({key:"footer",ref:U,"data-rsbs-footer":!0},ke()),i)))})),YA=["closed","opening","open","closing","dragging","snapping","resizing"];function QA(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function eN(e){return e.minHeight}var tN=["onSpringStart","onSpringEnd","skipInitialTransition"],nN=ie((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,o=e.skipInitialTransition,i=PA(e,tN),s=ae(!1),a=s[0],l=s[1],c=se(),d=se(null),u=se(o&&i.open?"OPEN":"CLOSED");IA((function(){if(i.open)return cancelAnimationFrame(c.current),l(!0),function(){u.current="CLOSED"}}),[i.open]);var h=ue((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),p=ue((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return l(!1)})))}))}),[r]);return a?te.createElement(JS,{"data-rsbs-portal":!0},te.createElement(XA,DA({},i,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:h,onSpringEnd:p}))):null}));const rN=ke`
|
|
3197
3242
|
width: ${Ve(1e3)};
|
|
3198
3243
|
border-radius: ${Be(300)};
|
|
3199
3244
|
background: transparent;
|
|
@@ -3207,7 +3252,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3207
3252
|
margin: 0;
|
|
3208
3253
|
background: ${Ie("neutral",300)};
|
|
3209
3254
|
}
|
|
3210
|
-
`,
|
|
3255
|
+
`,oN=(e,t)=>ke`
|
|
3211
3256
|
[data-rsbs-overlay] {
|
|
3212
3257
|
border-top-left-radius: ${Be(500)};
|
|
3213
3258
|
border-top-right-radius: ${Be(500)};
|
|
@@ -3233,11 +3278,11 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3233
3278
|
padding: 0;
|
|
3234
3279
|
min-height: ${Ve(1600)};
|
|
3235
3280
|
}
|
|
3236
|
-
`;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const
|
|
3281
|
+
`;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const iN=(e,t)=>{let n=0,r=1/0;return t.forEach(((t,o)=>{const i=Math.abs(t-e);i<r&&(r=i,n=o)})),n},sN=({header:e,content:t,footer:n,open:r=!1,onClose:o,minimizedHeight:i,midHeight:s=200,maxFullHeight:a,defaultSnap:l="minimized",className:c,blocking:d,zIndex:u=1e3,labels:h})=>{const p=tg("Sheet",h),f=se(null),m=te.useRef([]),[g,b]=te.useState(null),v=window.innerWidth>768,y=m.current;let w=p.expandSheetLabel;if(null!=g){const e=iN(g,y);e>0&&e<y.length-1?w=p.makeFullScreenLabel:e===y.length-1&&(w=p.expandedSheetLabel)}const x=!(null==g||!y.length||iN(g,y)!==y.length-1);return ve(nN,{ref:f,css:oN(!!e,u),className:c,open:r,onDismiss:o,header:be("div",{children:[ve("button",{type:"button",disabled:x,"aria-label":w,css:rN,onKeyDown:e=>{if("Enter"!==e.key&&" "!==e.key)return;e.preventDefault();const t=y[y.length-1];if(v)return void f.current?.snapTo?.((()=>t));const n=g??y[0];let r=y.findIndex((e=>e>n));-1===r&&(r=y.length-1);const o=y[r];f.current?.snapTo?.((()=>o))},children:ve("div",{})}),ve("span",{"aria-live":"polite",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:w}),e]}),footer:n,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:r})=>{const o=[20,i||e,s+(n?r:0),a||t-t/6];return m.current=o,o},onSpringEnd:()=>{const e=f.current?.height;e&&b(e)},defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:r})=>{let o=20;return"minimized"===l?o=i||e:"mid"===l?o=s+(n?r:0):"full"===l&&(o=a||t-t/6),o},blocking:d,children:r?t:null})},aN=e=>"small"===e||"small-full-width"===e,lN=(e,t)=>{let n="14.875rem";return(e=>"full-width"===e||"small-full-width"===e)(e)?n="100%":"large"===e&&(n="22.875rem"),ke`
|
|
3237
3282
|
width: 100%;
|
|
3238
3283
|
max-width: ${n};
|
|
3239
3284
|
border-radius: ${Be(300)};
|
|
3240
|
-
padding: ${
|
|
3285
|
+
padding: ${aN(e)?`${Ve(200)} ${Ve(200)} ${Ve(300)} ${Ve(200)}`:`${Ve(200)} ${Ve(300)} ${Ve(300)} ${Ve(300)}`};
|
|
3241
3286
|
display: flex;
|
|
3242
3287
|
align-items: ${t?"center":"flex-start"};
|
|
3243
3288
|
justify-content: ${t?"space-between":"flex-start"};
|
|
@@ -3247,7 +3292,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3247
3292
|
button {
|
|
3248
3293
|
margin-left: ${t?0:Ve(600)};
|
|
3249
3294
|
}
|
|
3250
|
-
`},
|
|
3295
|
+
`},cN=ke`
|
|
3251
3296
|
display: flex;
|
|
3252
3297
|
align-items: baseline;
|
|
3253
3298
|
gap: ${Ve(200)};
|
|
@@ -3255,35 +3300,35 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3255
3300
|
svg {
|
|
3256
3301
|
margin-top: 0.1875rem;
|
|
3257
3302
|
}
|
|
3258
|
-
`,
|
|
3303
|
+
`,dN=e=>ke`
|
|
3259
3304
|
color: ${Ie("neutral",800)};
|
|
3260
|
-
font-size: ${
|
|
3261
|
-
line-height: ${
|
|
3305
|
+
font-size: ${aN(e)?ze(300):ze(500)};
|
|
3306
|
+
line-height: ${aN(e)?He(500):He(700)};
|
|
3262
3307
|
font-weight: 400;
|
|
3263
3308
|
text-align: left;
|
|
3264
|
-
`,
|
|
3309
|
+
`,uN=(e,t)=>ke`
|
|
3265
3310
|
color: ${Ie("neutral",700)};
|
|
3266
|
-
font-size: ${
|
|
3267
|
-
line-height: ${
|
|
3311
|
+
font-size: ${aN(e)?ze(200):ze(400)};
|
|
3312
|
+
line-height: ${aN(e)?He(400):He(600)};
|
|
3268
3313
|
font-weight: 400;
|
|
3269
3314
|
margin-left: ${t?Ve(600):"0"};
|
|
3270
3315
|
text-align: left;
|
|
3271
|
-
`,
|
|
3316
|
+
`,hN=(e,t)=>ke`
|
|
3272
3317
|
color: ${Ie("neutral",700)};
|
|
3273
|
-
font-size: ${
|
|
3274
|
-
line-height: ${
|
|
3318
|
+
font-size: ${aN(e)?ze(200):ze(400)};
|
|
3319
|
+
line-height: ${aN(e)?He(400):He(600)};
|
|
3275
3320
|
font-weight: 400;
|
|
3276
3321
|
margin-left: ${t?Ve(600):"0"};
|
|
3277
3322
|
text-align: left;
|
|
3278
|
-
`,
|
|
3323
|
+
`,pN=ke`
|
|
3279
3324
|
background-color: ${Ie("neutral",100)};
|
|
3280
3325
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3281
3326
|
color: ${Ie("neutral",700)};
|
|
3282
|
-
`,
|
|
3327
|
+
`,fN=ke`
|
|
3283
3328
|
background-color: ${Ie("neutral",200)};
|
|
3284
3329
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3285
3330
|
color: ${Ie("neutral",700)};
|
|
3286
|
-
`,
|
|
3331
|
+
`,mN=ke`
|
|
3287
3332
|
background-color: ${Ie("success",100)};
|
|
3288
3333
|
border: ${_e(100)} solid ${Ie("success",300)};
|
|
3289
3334
|
color: ${Ie("success",500)};
|
|
@@ -3291,7 +3336,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3291
3336
|
p {
|
|
3292
3337
|
color: ${Ie("success",900)};
|
|
3293
3338
|
}
|
|
3294
|
-
`,
|
|
3339
|
+
`,gN=ke`
|
|
3295
3340
|
background-color: ${Ie("warning",100)};
|
|
3296
3341
|
border: ${_e(100)} solid ${Ie("warning",300)};
|
|
3297
3342
|
color: ${Ie("warning",500)};
|
|
@@ -3299,7 +3344,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3299
3344
|
p {
|
|
3300
3345
|
color: ${Ie("warning",900)};
|
|
3301
3346
|
}
|
|
3302
|
-
`,
|
|
3347
|
+
`,bN=ke`
|
|
3303
3348
|
background-color: ${Ie("error",100)};
|
|
3304
3349
|
border: ${_e(100)} solid ${Ie("error",300)};
|
|
3305
3350
|
color: ${Ie("error",500)};
|
|
@@ -3307,52 +3352,52 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3307
3352
|
p {
|
|
3308
3353
|
color: ${Ie("error",900)};
|
|
3309
3354
|
}
|
|
3310
|
-
`,
|
|
3355
|
+
`,vN=({label:e,caption:t,variant:n,size:r="large",icon:o=ve(cg,{height:"1rem",width:"1rem"}),onActionClick:i,actionLabel:s,actionButtonVariant:a="secondary",isButtonRight:l,buttonLeftIcon:c,buttonRightIcon:d,labels:u})=>{const h=tg("InlineMessage",u);let p=pN;"info-grey"===n?p=fN:"success"===n?p=mN:"warning"===n?p=gN:"error"===n&&(p=bN);const f="error"===n||"warning"===n?"alert":"status",m="alert"===f?"assertive":"polite";return be("div",{css:[lN(r,l),p],role:f,"aria-live":m,"aria-roledescription":h.roleDescription,children:[be("div",{children:[be("div",{css:cN,children:[o,ve("string"==typeof e?"p":"div",{css:dN(r),children:e})]}),t&&"string"==typeof t?ve("p",{css:uN(r,!!o),children:t}):t?ve("div",{css:hN(r,!!o),children:t}):null]}),s?ve(ng,{label:s,variant:a,size:"large"===r||"full-width"===r?"default":"small",onClick:i,leftIcon:c,rightIcon:d}):null]})},yN=ke`
|
|
3311
3356
|
width: 100%;
|
|
3312
3357
|
min-height: calc(${Ve(1200)} * 12);
|
|
3313
3358
|
background-color: ${Ie("neutral",100)};
|
|
3314
3359
|
display: flex;
|
|
3315
3360
|
flex-direction: column;
|
|
3316
|
-
`,
|
|
3361
|
+
`,wN=ke`
|
|
3317
3362
|
background-color: ${Ie("neutral",200)};
|
|
3318
3363
|
padding: ${Ve(300)};
|
|
3319
3364
|
display: flex;
|
|
3320
3365
|
align-items: center;
|
|
3321
3366
|
gap: ${Ve(300)};
|
|
3322
|
-
`,
|
|
3367
|
+
`,xN=ke`
|
|
3323
3368
|
flex: 1;
|
|
3324
3369
|
|
|
3325
3370
|
.ds-text-input-container {
|
|
3326
3371
|
margin-bottom: 0;
|
|
3327
3372
|
}
|
|
3328
|
-
`,
|
|
3373
|
+
`,CN=ke`
|
|
3329
3374
|
flex-shrink: 0;
|
|
3330
3375
|
color: ${Ie("neutral",700)};
|
|
3331
3376
|
font-size: ${ze(400)};
|
|
3332
3377
|
font-style: normal;
|
|
3333
3378
|
font-weight: 400;
|
|
3334
|
-
`,
|
|
3379
|
+
`,kN=ke`
|
|
3335
3380
|
flex: 1;
|
|
3336
3381
|
min-height: 0;
|
|
3337
3382
|
padding: ${Ve(400)};
|
|
3338
3383
|
display: flex;
|
|
3339
3384
|
flex-direction: column;
|
|
3340
3385
|
gap: ${Ve(300)};
|
|
3341
|
-
|
|
3386
|
+
`,$N=ke`
|
|
3342
3387
|
color: ${Ie("neutral",700)};
|
|
3343
3388
|
font-size: ${ze(400)};
|
|
3344
3389
|
line-height: ${He(600)};
|
|
3345
3390
|
font-weight: 700;
|
|
3346
|
-
`,
|
|
3391
|
+
`,SN=ke`
|
|
3347
3392
|
width: 100%;
|
|
3348
|
-
`,
|
|
3393
|
+
`,MN=ke`
|
|
3349
3394
|
flex: 1;
|
|
3350
3395
|
min-height: 0;
|
|
3351
3396
|
overflow-y: auto;
|
|
3352
3397
|
display: flex;
|
|
3353
3398
|
flex-direction: column;
|
|
3354
3399
|
gap: ${Ve(200)};
|
|
3355
|
-
|
|
3400
|
+
`,EN=ke`
|
|
3356
3401
|
background-color: ${Ie("neutral",200)};
|
|
3357
3402
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3358
3403
|
border-radius: ${Be(300)};
|
|
@@ -3378,13 +3423,13 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3378
3423
|
&:active {
|
|
3379
3424
|
background-color: ${Ie("neutral",300)};
|
|
3380
3425
|
}
|
|
3381
|
-
`,
|
|
3426
|
+
`,TN=ke`
|
|
3382
3427
|
display: flex;
|
|
3383
3428
|
flex: 1;
|
|
3384
3429
|
min-width: 0;
|
|
3385
3430
|
flex-direction: column;
|
|
3386
3431
|
gap: ${Ve(50)};
|
|
3387
|
-
`,
|
|
3432
|
+
`,ON=ke`
|
|
3388
3433
|
color: ${Ie("neutral",900)};
|
|
3389
3434
|
font-size: ${ze(300)};
|
|
3390
3435
|
line-height: ${He(500)};
|
|
@@ -3392,7 +3437,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3392
3437
|
overflow: hidden;
|
|
3393
3438
|
text-overflow: ellipsis;
|
|
3394
3439
|
white-space: nowrap;
|
|
3395
|
-
`,
|
|
3440
|
+
`,LN=ke`
|
|
3396
3441
|
color: ${Ie("neutral",700)};
|
|
3397
3442
|
font-size: ${ze(300)};
|
|
3398
3443
|
line-height: ${He(500)};
|
|
@@ -3400,7 +3445,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3400
3445
|
overflow: hidden;
|
|
3401
3446
|
text-overflow: ellipsis;
|
|
3402
3447
|
white-space: nowrap;
|
|
3403
|
-
`,
|
|
3448
|
+
`,AN=({value:e,placeholder:t,showInfoMessage:n=!0,items:r=[],disabled:o,readOnly:i,id:s,name:a,autoFocus:l,autoComplete:c,onBlur:d,onFocus:u,onQueryChange:h,onCancel:p,onItemClick:f,onChange:m,labels:g})=>{const b=tg("MobileSearch",g),[v,y]=te.useState(e??""),[w,x]=te.useState(!0),[C,k]=te.useState(!1),$=te.useRef(null),S="string"==typeof e,M=S?e:v;te.useEffect((()=>{S&&y(e)}),[S,e]),te.useEffect((()=>{h?.(M)}),[M,h]);const E=te.useMemo((()=>{const e=M.trim().toLowerCase();return e?r.filter((t=>`${t.id??""} ${t.label} ${t.caption??""}`.toLowerCase().includes(e))):r}),[r,M]),T=M.trim().length?b.matchingResultsTitle(E.length):b.recentSearchesTitle,O=M.length?ve(jb,{onClick:()=>{S||y("");const e=$.current?.querySelector("input");e&&(e.value="",e.focus()),x(!0)}}):null;let L=Ie("neutral",500);return o?L=Ie("neutral",500):C&&(L=Ie("primary",700)),be("div",{ref:$,css:yN,children:[be("div",{css:wN,children:[ve("div",{css:xN,children:ve(V,{startElement:ve(Bg,{width:"1.25rem",height:"1.25rem",fill:L,"aria-hidden":"true"}),endElement:O,children:ve(Nb,{label:"",value:M,placeholder:t??b.inputAriaLabel,onChange:e=>{S||y(e.target.value),x(!0),m?.(e)},onFocus:e=>{k(!0),x(!0),u?.(e)},onBlur:e=>{k(!1),d?.(e)},noMarginBottom:!0,type:"search","aria-label":t??b.inputAriaLabel,disabled:o,readOnly:i,id:s,name:a,autoFocus:l??!0,autoComplete:c,style:{paddingLeft:"2.5rem"}})})}),ve(ng,{css:CN,variant:"borderless",label:b.cancelLabel,onClick:()=>{S||y(""),x(!1);const e=$.current?.querySelector("input");e&&(e.value="",e.blur()),p?.()}})]}),w?be("div",{css:kN,children:[ve("h3",{css:$N,children:T}),n?ve("div",{css:SN,children:ve(vN,{label:b.infoLabel,variant:"info-white",size:"full-width"})}):null,ve("ul",{css:MN,"aria-label":T,children:E.map((e=>ve("li",{children:be(N.button,{type:"button",css:EN,onClick:()=>(e=>{f?.(e)})(e),"aria-label":`${e.label}, ${e.caption??""}`,style:{width:"100%"},children:[e.icon??null,be("div",{css:TN,children:[ve("p",{css:ON,children:e.label}),ve("p",{css:LN,children:e.caption})]})]})},e.id)))})]}):null]})},NN=e=>ke`
|
|
3404
3449
|
a,
|
|
3405
3450
|
p {
|
|
3406
3451
|
font-size: ${ze("small"===e?200:400)};
|
|
@@ -3432,19 +3477,19 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3432
3477
|
a:hover {
|
|
3433
3478
|
text-decoration: underline;
|
|
3434
3479
|
}
|
|
3435
|
-
`,
|
|
3480
|
+
`,RN=e=>ke`
|
|
3436
3481
|
svg {
|
|
3437
3482
|
height: ${Ve("small"===e?200:300)};
|
|
3438
3483
|
width: ${Ve("small"===e?200:300)};
|
|
3439
3484
|
color: ${Ie("neutral",600)};
|
|
3440
3485
|
}
|
|
3441
|
-
`,
|
|
3486
|
+
`,DN=ke`
|
|
3442
3487
|
cursor: pointer;
|
|
3443
3488
|
color: ${Ie("neutral",600)};
|
|
3444
3489
|
display: flex;
|
|
3445
3490
|
justify-content: center;
|
|
3446
3491
|
align-items: center;
|
|
3447
|
-
`,
|
|
3492
|
+
`,PN=({links:e,separator:t,maxItems:n=99,linkRouter:r,size:o="default"})=>{const[i,s]=ae(e.length>n);ce((()=>{s(e.length>n)}),[e.length]);const a=r;return ve(H.Root,{children:ve(H.List,{gap:"small"===o?"0.375rem":"0.625rem",children:i?be(ye,{children:[ve(H.Item,{css:NN(o),children:be(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),ve(H.Separator,{css:RN(o),children:t||ve(dg,{rotate:"270"})}),ve("li",{className:"chakra-breadcrumb__item",children:ve("button",{css:DN,type:"button",onClick:()=>s(!1),children:"..."})}),ve(H.Separator,{css:RN(o),children:t||ve(dg,{rotate:"270"})}),ve(H.Item,{css:NN(o),children:be("p",{"aria-current":"page","aria-label":e[e.length-1].label,children:[e[e.length-1].icon,e[e.length-1].label]})})]}):e.map(((n,r)=>n?.label?be(ge,{children:[ve(H.Item,{css:NN(o),children:r<e.length-1?be(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):be("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?ve(H.Separator,{css:RN(o),children:t||ve(dg,{rotate:"270"})}):null]},n.label):null))})})},IN=(e,t)=>ke`
|
|
3448
3493
|
min-height: ${Ve(1400)};
|
|
3449
3494
|
width: 100vw;
|
|
3450
3495
|
position: ${e?"sticky":"absolute"};
|
|
@@ -3454,7 +3499,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3454
3499
|
border-top: ${_e(100)} solid
|
|
3455
3500
|
${Ie("neutral",400)};
|
|
3456
3501
|
z-index: 101;
|
|
3457
|
-
`,
|
|
3502
|
+
`,zN=e=>ke`
|
|
3458
3503
|
height: 100%;
|
|
3459
3504
|
width: 100%;
|
|
3460
3505
|
max-width: ${null!=e?Me(e):"100%"};
|
|
@@ -3469,7 +3514,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3469
3514
|
flex-direction: column;
|
|
3470
3515
|
align-items: flex-start;
|
|
3471
3516
|
}
|
|
3472
|
-
`,
|
|
3517
|
+
`,VN=ke`
|
|
3473
3518
|
display: flex;
|
|
3474
3519
|
align-items: center;
|
|
3475
3520
|
flex-wrap: wrap;
|
|
@@ -3482,7 +3527,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3482
3527
|
color: ${Ie("neutral",700)};
|
|
3483
3528
|
text-decoration: underline;
|
|
3484
3529
|
}
|
|
3485
|
-
`,
|
|
3530
|
+
`,HN=ke`
|
|
3486
3531
|
width: 15rem;
|
|
3487
3532
|
font-size: ${ze(300)};
|
|
3488
3533
|
line-height: ${He(500)};
|
|
@@ -3493,17 +3538,17 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3493
3538
|
@media screen and (max-width: 48rem) {
|
|
3494
3539
|
text-align: left;
|
|
3495
3540
|
}
|
|
3496
|
-
`,
|
|
3541
|
+
`,BN=ke`
|
|
3497
3542
|
display: flex;
|
|
3498
3543
|
align-items: center;
|
|
3499
3544
|
gap: ${Ve(400)};
|
|
3500
|
-
`,
|
|
3545
|
+
`,_N=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:o,additionalLogos:i})=>{const s=(new Date).getFullYear();return ve("footer",{css:IN(n,r),children:be("div",{css:zN(o),children:[be("div",{css:BN,children:[ve(wg,{height:"2rem",width:"5.6875rem"}),i&&i.map(((e,t)=>ve("div",{children:e},t)))]}),ve("div",{css:VN,children:e}),ve("div",{children:be("p",{css:HN,children:[t," ",s]})})]})})},jN=ke`
|
|
3501
3546
|
width: 100%;
|
|
3502
3547
|
display: flex;
|
|
3503
3548
|
align-items: center;
|
|
3504
3549
|
height: ${Ve(1400)};
|
|
3505
3550
|
background-color: ${Ie("neutral",200)};
|
|
3506
|
-
`,
|
|
3551
|
+
`,FN=ke`
|
|
3507
3552
|
height: ${Ve(1400)};
|
|
3508
3553
|
width: 99%;
|
|
3509
3554
|
background-color: ${Ie("neutral",200)};
|
|
@@ -3599,9 +3644,9 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3599
3644
|
opacity: 1;
|
|
3600
3645
|
}
|
|
3601
3646
|
}
|
|
3602
|
-
`,
|
|
3647
|
+
`,qN=ke`
|
|
3603
3648
|
position: relative;
|
|
3604
|
-
`,
|
|
3649
|
+
`,WN=ke`
|
|
3605
3650
|
position: absolute;
|
|
3606
3651
|
top: -0.3125rem;
|
|
3607
3652
|
right: -0.3125rem;
|
|
@@ -3616,7 +3661,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3616
3661
|
display: flex;
|
|
3617
3662
|
justify-content: center;
|
|
3618
3663
|
align-items: center;
|
|
3619
|
-
`,
|
|
3664
|
+
`,UN=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),KN=({defaultValue:e,tabs:t,onTabClick:n,hideLabels:r,activationMode:o="manual",labels:i})=>{const s=tg("MobileTabBar",i),a=t.length,[l,c]=ae((()=>UN(t,e)));return ve("div",{css:jN,children:ve(B.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>(e=>{const r=UN(t,e);c(r),n&&n(e)})(e),activationMode:o,children:ve(B.List,{alignItems:"center",border:"none",children:t.map(((e,t)=>{const{label:n,icon:o,bagdeCount:i,"aria-label":c,"aria-describedby":d,disabled:u,...h}=e,p=`${e.value}-str-status`,f=l===t,m=[s.tabPositionStatus(t+1,a),f?s.selectedStatus:s.notSelectedStatus];u&&m.push(s.disabledStatus);const g=[d,p].filter(Boolean).join(" ")||void 0;return be(B.Trigger,{css:FN,"aria-label":c||n,"aria-disabled":!!u||void 0,"aria-describedby":g,disabled:u,...h,children:[be("div",{css:qN,children:[o,i?ve("div",{css:WN,className:"ds-badge-count",children:i}):null]}),r?null:ve("p",{children:n}),ve(_,{id:p,children:m.join(", ")})]},e.value)}))})})})},GN=(e,t,n,r,o)=>{let i="3rem";return e?i="6rem":o&&(i="1.75rem"),ke`
|
|
3620
3665
|
max-height: ${i};
|
|
3621
3666
|
width: 100%;
|
|
3622
3667
|
background-color: ${n??Ie("neutral","dark"===r?800:100)};
|
|
@@ -3626,7 +3671,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3626
3671
|
z-index: 102;
|
|
3627
3672
|
border-bottom: ${_e(100)} solid
|
|
3628
3673
|
${Ie("neutral",400)};
|
|
3629
|
-
`},
|
|
3674
|
+
`},ZN=(e,t)=>ke`
|
|
3630
3675
|
height: ${Ve(t?700:1200)};
|
|
3631
3676
|
width: 100%;
|
|
3632
3677
|
background-color: ${Ie("neutral","dark"===e?800:100)};
|
|
@@ -3637,7 +3682,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3637
3682
|
justify-content: flex-start;
|
|
3638
3683
|
gap: 0;
|
|
3639
3684
|
padding: ${t?0:`${Ve(200)} ${Ve(400)}`};
|
|
3640
|
-
`,
|
|
3685
|
+
`,JN=(e,t,n)=>ke`
|
|
3641
3686
|
height: ${Ve(n?700:1200)};
|
|
3642
3687
|
width: 100%;
|
|
3643
3688
|
max-width: ${t?Me(t):"100%"};
|
|
@@ -3648,13 +3693,13 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3648
3693
|
justify-content: space-between;
|
|
3649
3694
|
margin: 0 auto;
|
|
3650
3695
|
padding: ${n?0:`${Ve(200)} ${Ve(400)}`};
|
|
3651
|
-
`,
|
|
3696
|
+
`,XN=(e,t)=>ke`
|
|
3652
3697
|
display: flex;
|
|
3653
3698
|
margin: ${t?"-0.0625rem":"0rem"};
|
|
3654
3699
|
justify-content: flex-start;
|
|
3655
3700
|
gap: ${Ve(300)};
|
|
3656
3701
|
color: ${Ie("neutral",e?100:900)};
|
|
3657
|
-
`,
|
|
3702
|
+
`,YN=ke`
|
|
3658
3703
|
outline: none;
|
|
3659
3704
|
|
|
3660
3705
|
a {
|
|
@@ -3666,12 +3711,12 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3666
3711
|
outline-width: ${Ve(50)};
|
|
3667
3712
|
}
|
|
3668
3713
|
}
|
|
3669
|
-
`,
|
|
3714
|
+
`,QN=e=>ke`
|
|
3670
3715
|
display: ${e?"none":"flex"};
|
|
3671
3716
|
align-items: center;
|
|
3672
3717
|
justify-content: flex-start;
|
|
3673
3718
|
gap: 0rem;
|
|
3674
|
-
`,
|
|
3719
|
+
`,eR=(e,t,n)=>ke`
|
|
3675
3720
|
font-size: ${ze(n?300:400)};
|
|
3676
3721
|
line-height: ${He(600)};
|
|
3677
3722
|
font-weight: 400;
|
|
@@ -3696,12 +3741,12 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3696
3741
|
font-weight: 700;
|
|
3697
3742
|
color: ${Ie("accessible","controls-on-neutral-lights")};
|
|
3698
3743
|
`:""}
|
|
3699
|
-
`,
|
|
3744
|
+
`,tR=e=>ke`
|
|
3700
3745
|
height: ${Ve(e?700:1200)};
|
|
3701
3746
|
display: flex;
|
|
3702
3747
|
align-items: center;
|
|
3703
3748
|
justify-content: flex-end;
|
|
3704
|
-
`,
|
|
3749
|
+
`,nR=e=>ke`
|
|
3705
3750
|
height: 100%;
|
|
3706
3751
|
font-size: ${ze(400)};
|
|
3707
3752
|
line-height: ${He(600)};
|
|
@@ -3721,7 +3766,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3721
3766
|
}
|
|
3722
3767
|
}
|
|
3723
3768
|
`:""}
|
|
3724
|
-
`,
|
|
3769
|
+
`,rR=e=>ke`
|
|
3725
3770
|
height: 100%;
|
|
3726
3771
|
display: flex;
|
|
3727
3772
|
align-items: center;
|
|
@@ -3730,7 +3775,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3730
3775
|
padding-left: ${Ve(400)};
|
|
3731
3776
|
border-left: ${_e(100)} solid
|
|
3732
3777
|
${Ie("neutral",e?700:300)};
|
|
3733
|
-
`,
|
|
3778
|
+
`,oR=(e="light",t)=>ke`
|
|
3734
3779
|
background-color: none;
|
|
3735
3780
|
border: none;
|
|
3736
3781
|
cursor: pointer;
|
|
@@ -3756,7 +3801,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3756
3801
|
outline-width: ${_e(200)};
|
|
3757
3802
|
background-color: ${Ie("neutral",200)};
|
|
3758
3803
|
}
|
|
3759
|
-
`,
|
|
3804
|
+
`,iR=(e,t)=>ke`
|
|
3760
3805
|
position: absolute;
|
|
3761
3806
|
top: ${Ve(t?700:1200)};
|
|
3762
3807
|
right: 0;
|
|
@@ -3771,10 +3816,10 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3771
3816
|
justify-content: flex-start;
|
|
3772
3817
|
gap: ${Ve(400)};
|
|
3773
3818
|
transition: width 0.5s ease-in-out;
|
|
3774
|
-
`,
|
|
3819
|
+
`,sR=ke`
|
|
3775
3820
|
height: 100%;
|
|
3776
3821
|
width: 100%;
|
|
3777
|
-
`,
|
|
3822
|
+
`,aR=e=>ke`
|
|
3778
3823
|
background-color: ${Ie("neutral","dark"===e?800:200)};
|
|
3779
3824
|
border-bottom: ${_e(100)} solid
|
|
3780
3825
|
${Ie("neutral",300)};
|
|
@@ -3795,13 +3840,13 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3795
3840
|
margin-left: -${Ve(300)};
|
|
3796
3841
|
}
|
|
3797
3842
|
}
|
|
3798
|
-
`,
|
|
3843
|
+
`,lR=ke`
|
|
3799
3844
|
background-color: ${Ie("neutral",100)};
|
|
3800
|
-
`,
|
|
3845
|
+
`,cR=ke`
|
|
3801
3846
|
min-height: 100vh;
|
|
3802
3847
|
width: 100%;
|
|
3803
3848
|
overflow-y: scroll;
|
|
3804
|
-
`;ke``;const
|
|
3849
|
+
`;ke``;const dR=e=>ke`
|
|
3805
3850
|
display: inline-block;
|
|
3806
3851
|
width: 100%;
|
|
3807
3852
|
padding: ${Ve(300)} ${Ve(400)};
|
|
@@ -3830,7 +3875,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3830
3875
|
outline-width: ${_e(200)};
|
|
3831
3876
|
background-color: ${Ie("neutral",200)};
|
|
3832
3877
|
}
|
|
3833
|
-
`,
|
|
3878
|
+
`,uR=ke`
|
|
3834
3879
|
width: 100%;
|
|
3835
3880
|
padding: ${Ve(300)} ${Ve(400)};
|
|
3836
3881
|
display: flex;
|
|
@@ -3854,7 +3899,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3854
3899
|
outline-width: ${_e(200)};
|
|
3855
3900
|
background-color: ${Ie("neutral",200)};
|
|
3856
3901
|
}
|
|
3857
|
-
`,
|
|
3902
|
+
`,hR=e=>ke`
|
|
3858
3903
|
position: absolute;
|
|
3859
3904
|
top: 0rem;
|
|
3860
3905
|
right: 0;
|
|
@@ -3866,7 +3911,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3866
3911
|
align-items: flex-start;
|
|
3867
3912
|
justify-content: flex-start;
|
|
3868
3913
|
transition: width 0.5s ease-in-out;
|
|
3869
|
-
`,
|
|
3914
|
+
`,pR=ke`
|
|
3870
3915
|
height: ${Ve(1200)};
|
|
3871
3916
|
width: 100%;
|
|
3872
3917
|
display: flex;
|
|
@@ -3878,7 +3923,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3878
3923
|
position: relative;
|
|
3879
3924
|
top: 0;
|
|
3880
3925
|
left: 0;
|
|
3881
|
-
`,
|
|
3926
|
+
`,fR=ke`
|
|
3882
3927
|
position: absolute;
|
|
3883
3928
|
bottom: 0;
|
|
3884
3929
|
left: 0;
|
|
@@ -3893,7 +3938,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3893
3938
|
button {
|
|
3894
3939
|
width: calc(48% - 1.5rem);
|
|
3895
3940
|
}
|
|
3896
|
-
`,
|
|
3941
|
+
`,mR=({theme:e="light",variant:t,navigationSection:n,utilitySection:r,actionsSection:o,linkRouter:i,isOpen:s,setIsOpen:a,pathname:l,resolvedLabels:c})=>{const d="condensed"===t,[u,h]=ae(void 0),[p,f]=ae(-1),m=se(null),g=se([]),b=i;return be(ye,{children:[ve("div",{css:iR(s,d),children:s&&be("div",{css:sR,children:[be("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"4.5rem"},children:[r?ve("div",{css:aR(e),children:r?.map((e=>ve("div",{className:"ds-utility-item",children:e})))}):null,n?ve("div",{css:lR,children:n.map(((e,t)=>e.link?ve(b,{to:e.link,href:e.link,onClick:()=>{h(void 0),f(-1),a(!1)},css:dR(l===e.link),children:e.label},e.label):be("button",{css:uR,type:"button",ref:e=>{g.current[t]=e},onClick:()=>{e.items&&(h(e),f(t),setTimeout((()=>{m.current?.focus()}),100))},children:[e.label,e.items?ve(dg,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),o?ve("div",{css:fR,children:o.map((e=>ve(ng,{...e,onClick:t=>{e?.onClick?.(t),h(void 0),f(-1),a(!1)}},e.ariaLabel)))}):null]})}),ve("div",{css:hR(!!u?.items),children:u?.items?be(ye,{children:[be("div",{css:pR,children:[be("button",{type:"button",onClick:()=>{h(void 0),f(-1),g.current[p]?.focus()},"aria-label":c.goBackLabel,css:oR(e),ref:m,children:[ve(dg,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),u?.label]}),be("button",{type:"button",onClick:()=>{h(void 0),f(-1),a(!1)},"aria-label":c.closeMenuLabel,css:oR(e),children:[c.closeButtonText,ve(pg,{height:"1rem",width:"1rem"})]})]}),ve("div",{css:cR,children:u?.items?.map((e=>ve(b,{to:e.link,href:e.link,css:dR(),onClick:()=>{h(void 0),f(-1),a(!1)},children:e.label},e.label)))})]}):null})]})},gR=1023,bR=({variant:e="default",theme:t="light",logo:n,linkRouter:r,pathname:o,navigationSection:i,utilitySection:s,actionsSection:a,maxWidth:l,fixed:c,onNavbarHeightChange:d,backgroundColor:u,labels:h})=>{const p=tg("Navbar",h),f=se(null),m=se(null),g=se(null),[b,v]=ae(!1),[y,w]=ae(-1),[x,C]=ae("undefined"!=typeof window&&window?.innerWidth<=gR),[k,$]=ae(!1),S=r,M=ue((()=>{if(m.current&&f.current&&g.current){const e=f.current.getBoundingClientRect(),t=m.current.getBoundingClientRect(),n=g.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=gR||window.innerWidth<=y?(d?.(96),v(!0)):window.innerWidth>gR&&window.innerWidth<=1440?e.right>=t.left?(d?.(96),v(!0),w(window.innerWidth)):window.innerWidth>y&&(d?.(48),v(!1),w(-1)):(d?.(48),v(!1),w(-1)),b&&(window.innerWidth<=gR||n.right>=t.left?(C(!0),d?.(48)):(C(!1),d?.(96)))}}),[y,b]);ce((()=>(M(),window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)})),[M]);const E="condensed"===e;return be("nav",{css:GN(b&&!x,c,u,t,E),children:[be("div",{css:JN(b&&!x,l,E),children:[be("div",{css:XN(b&&!x||"dark"===t,E),ref:f,children:[n?ve("div",{ref:g,css:YN,children:n}):null,ve("div",{css:QN(b),children:i?.map((e=>e.link?ve(S,{to:e.link,href:e.link,css:eR(o===e.link,t,E),children:e.label},e.label):ve(nb,{theme:t,label:e.label,fontSize:E?"0.875rem":"1rem",items:e.items||[]},e.label)))})]}),ve("div",{css:tR(E),ref:m,children:x?be("button",{type:"button",onClick:()=>$(!k),"aria-label":k?p.closeMenuLabel:p.openMenuLabel,"aria-expanded":k,css:oR(t),children:[k?p.closeLabel:p.menuLabel,ve(k?pg:zg,{height:E?"0.75rem":"1rem",width:E?"0.75rem":"1rem"})]}):be(ye,{children:[ve("div",{css:tR(E),children:s?.map(((e,t)=>ve("div",{css:nR(b),children:e},t)))}),a?.length?ve("div",{css:rR(b),children:a.map((e=>ve(ng,{...e},e.ariaLabel)))}):null]})})]}),b&&!x?ve("div",{css:ZN(t,E),children:i?.map((e=>e.link?ve(S,{to:e.link,href:e.link,css:eR(o===e.link,t,E),children:e.label},e.label):ve(nb,{theme:t,label:e.label,fontSize:E?"0.875rem":"1rem",items:e.items||[]},e.label)))}):null,x?ve(mR,{theme:t,variant:e,navigationSection:i,utilitySection:s,actionsSection:a,linkRouter:r,isOpen:k,setIsOpen:$,pathname:o,resolvedLabels:p}):null]})},vR=ke`
|
|
3897
3942
|
width: ${Ve(1600)};
|
|
3898
3943
|
height: 100%;
|
|
3899
3944
|
z-index: 100;
|
|
@@ -3903,7 +3948,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3903
3948
|
display: flex;
|
|
3904
3949
|
flex-direction: column;
|
|
3905
3950
|
justify-content: space-between;
|
|
3906
|
-
`,
|
|
3951
|
+
`,yR=ke`
|
|
3907
3952
|
width: ${Ve(1600)};
|
|
3908
3953
|
height: ${Ve(1600)};
|
|
3909
3954
|
background-color: ${Ie("neutral",200)};
|
|
@@ -3994,7 +4039,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3994
4039
|
}
|
|
3995
4040
|
}
|
|
3996
4041
|
}
|
|
3997
|
-
`,
|
|
4042
|
+
`,wR=ke`
|
|
3998
4043
|
display: flex;
|
|
3999
4044
|
justify-content: center;
|
|
4000
4045
|
align-items: center;
|
|
@@ -4007,7 +4052,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4007
4052
|
fill: ${Ie("neutral",600)};
|
|
4008
4053
|
}
|
|
4009
4054
|
}
|
|
4010
|
-
`,
|
|
4055
|
+
`,xR=ke`
|
|
4011
4056
|
width: ${Ve(1600)};
|
|
4012
4057
|
height: ${Ve(1600)};
|
|
4013
4058
|
background-color: ${Ie("neutral",200)};
|
|
@@ -4045,7 +4090,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4045
4090
|
text-align: center;
|
|
4046
4091
|
color: ${Ie("neutral",600)};
|
|
4047
4092
|
}
|
|
4048
|
-
`,
|
|
4093
|
+
`,CR=ke`
|
|
4049
4094
|
width: 20rem;
|
|
4050
4095
|
height: 100%;
|
|
4051
4096
|
z-index: 100;
|
|
@@ -4055,7 +4100,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4055
4100
|
overflow-x: hidden;
|
|
4056
4101
|
border-right: ${_e(100)} solid
|
|
4057
4102
|
${Ie("neutral",300)};
|
|
4058
|
-
`,
|
|
4103
|
+
`,kR=({tabs:e=[],defaultValue:t,onTabClick:n,children:o,onOpenChange:i,labels:s})=>{const a=tg("NavigationRail",s),[l,c]=ae(!1),[d,u]=ae(t||e?.[0]?.value),h=e=>{u(e),n&&n(e)},[p]=j(["(max-width: 48rem)"]);return p?be(B.Root,{defaultValue:d,onValueChange:({value:e})=>h(e),children:[ve(B.List,{style:{display:"flex",overflowX:"auto",whiteSpace:"nowrap",padding:"0.5rem",gap:"0.5rem"},children:e.map((e=>ve(B.Trigger,{value:e.value,css:{"--indicator-color":Ie("primary",500),flexShrink:0,padding:"0.625rem 1rem",color:Ie("neutral",600),"&[data-selected]":{color:Ie("neutral",800),fontWeight:600}},children:e.label},e.value)))}),e.map((e=>ve(B.Content,{value:e.value,children:o},e.value)))]}):be("div",{style:{height:"calc(100vh - 3rem - 3.5rem)",position:"fixed",top:"3rem",left:0,display:"flex"},children:[be("div",{css:vR,children:[ve(B.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{h(e)},children:ve(B.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>ve(B.Trigger,{css:yR,"aria-label":e["aria-label"]||e.label,...e,children:be(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"0.3125rem",className:"ds-tab-label",children:[e.icon?ve("div",{css:wR,children:e.icon}):null,ve("p",{children:e.label})]})},e.label)))})}),o?ve(F.Root,{onOpenChange:({open:e})=>{c(e),i&&i(!e)},children:be(F.Trigger,{css:xR,children:[ve("div",{css:wR,children:ve(l?sg:ig,{})}),be("div",{className:"ds-tab-label",children:[ve("p",{children:l?a.showLabel:a.hideLabel}),ve("p",{children:a.sidebarLabel})]})]})}):null]}),o?ve(F.Root,{defaultOpen:!0,open:!l,children:ve(F.Content,{height:"100%",children:ve("div",{css:CR,role:"tabpanel","aria-labelledby":d,children:o})})}):null]})},$R=e=>ke`
|
|
4059
4104
|
width: 100%;
|
|
4060
4105
|
display: flex;
|
|
4061
4106
|
align-items: center;
|
|
@@ -4064,7 +4109,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4064
4109
|
${"view"===e&&`\n border: ${_e(100)} solid ${Ie("neutral",400)};\n background-color: ${Ie("neutral",200)};\n border-radius: ${Be(300)};\n padding: ${Ve(100)};\n `}
|
|
4065
4110
|
|
|
4066
4111
|
${"transparent"===e&&`\n border: none;\n background-color: transparent;\n border-radius: ${Be(300)};\n padding: 0 ${Ve(400)};\n\n .chakra-tabs__list {\n gap: ${Ve(800)};\n }\n `}
|
|
4067
|
-
`,
|
|
4112
|
+
`,SR=ke`
|
|
4068
4113
|
width: 99%;
|
|
4069
4114
|
height: ${Ve(1e3)};
|
|
4070
4115
|
padding: ${Ve(200)} ${Ve(400)};
|
|
@@ -4080,7 +4125,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4080
4125
|
&:focus-visible {
|
|
4081
4126
|
box-shadow: none;
|
|
4082
4127
|
}
|
|
4083
|
-
`,
|
|
4128
|
+
`,MR=ke`
|
|
4084
4129
|
background-color: ${Ie("neutral",200)};
|
|
4085
4130
|
color: ${Ie("neutral",700)};
|
|
4086
4131
|
|
|
@@ -4137,11 +4182,11 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4137
4182
|
opacity: 1;
|
|
4138
4183
|
}
|
|
4139
4184
|
}
|
|
4140
|
-
|
|
4185
|
+
`,ER=ke`
|
|
4141
4186
|
width: ${Ve(100)};
|
|
4142
4187
|
height: ${Ve(600)};
|
|
4143
4188
|
background-color: ${Ie("neutral",400)};
|
|
4144
|
-
`,
|
|
4189
|
+
`,TR=ke`
|
|
4145
4190
|
height: ${Ve(800)};
|
|
4146
4191
|
border-radius: ${Be(200)};
|
|
4147
4192
|
background-color: ${Ie("neutral",200)};
|
|
@@ -4216,7 +4261,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4216
4261
|
opacity: 1;
|
|
4217
4262
|
}
|
|
4218
4263
|
}
|
|
4219
|
-
`,
|
|
4264
|
+
`,OR=ke`
|
|
4220
4265
|
background-color: transparent;
|
|
4221
4266
|
color: ${Ie("neutral",600)};
|
|
4222
4267
|
width: auto;
|
|
@@ -4293,7 +4338,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4293
4338
|
}
|
|
4294
4339
|
}
|
|
4295
4340
|
}
|
|
4296
|
-
`,
|
|
4341
|
+
`,LR=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),AR=e=>1===e?"none":2===e?"left":"right",NR=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:o,activationMode:i="manual"})=>{const[s,a]=ae(LR(n,t)||0);return ve("div",{css:$R(e),children:ve(B.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a(LR(n,t=e)),void(o&&o(t));var t},activationMode:i,children:ve(B.List,{alignItems:"center",border:"none",children:n.map(((t,o)=>be(ge,{children:["view"===e&&1===o&&"left"===AR(s)?ve("div",{css:ER}):null,ve(B.Trigger,{css:[SR,"view"===e&&TR,"panel"===e&&MR,"transparent"===e&&OR],"aria-label":t["aria-label"]||t.label,...t,children:be(r,{display:"flex",alignItems:"center",gap:"0.3125rem",children:[t.icon,t.label]})},t.label),"view"===e&&1===o&&o<n.length-1&&"right"===AR(s)?ve("div",{css:ER}):null]},t.label)))})})})},RR=Ie("neutral",700),DR=ke`
|
|
4297
4342
|
position: relative;
|
|
4298
4343
|
width: 100%;
|
|
4299
4344
|
|
|
@@ -4306,12 +4351,12 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4306
4351
|
&[data-open='true'][data-placement='top'] input {
|
|
4307
4352
|
border-bottom-left-radius: ${Be(300)};
|
|
4308
4353
|
border-bottom-right-radius: ${Be(300)};
|
|
4309
|
-
border-bottom-color: ${
|
|
4354
|
+
border-bottom-color: ${RR};
|
|
4310
4355
|
border-top-left-radius: 0;
|
|
4311
4356
|
border-top-right-radius: 0;
|
|
4312
4357
|
border-top-color: transparent;
|
|
4313
4358
|
}
|
|
4314
|
-
`,
|
|
4359
|
+
`,PR=ke`
|
|
4315
4360
|
width: 100%;
|
|
4316
4361
|
z-index: 1000;
|
|
4317
4362
|
overflow-y: auto;
|
|
@@ -4325,7 +4370,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4325
4370
|
margin-top: calc(${_e(100)} * -1);
|
|
4326
4371
|
border-top-left-radius: 0;
|
|
4327
4372
|
border-top-right-radius: 0;
|
|
4328
|
-
border-top: ${_e(100)} solid ${
|
|
4373
|
+
border-top: ${_e(100)} solid ${RR};
|
|
4329
4374
|
|
|
4330
4375
|
&[data-placement^='top'] {
|
|
4331
4376
|
margin-top: 0;
|
|
@@ -4336,12 +4381,12 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4336
4381
|
${Ie("neutral",400)};
|
|
4337
4382
|
border-bottom-left-radius: 0;
|
|
4338
4383
|
border-bottom-right-radius: 0;
|
|
4339
|
-
border-bottom: ${_e(100)} solid ${
|
|
4384
|
+
border-bottom: ${_e(100)} solid ${RR};
|
|
4340
4385
|
box-shadow:
|
|
4341
4386
|
0 -0.25rem 0.375rem -0.25rem #0000001a,
|
|
4342
4387
|
0 -0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
4343
4388
|
}
|
|
4344
|
-
`,
|
|
4389
|
+
`,IR=ke`
|
|
4345
4390
|
padding: ${Ve(200)};
|
|
4346
4391
|
border-radius: ${Be(300)};
|
|
4347
4392
|
cursor: pointer;
|
|
@@ -4362,7 +4407,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4362
4407
|
&:active {
|
|
4363
4408
|
background-color: ${Hm(40)};
|
|
4364
4409
|
}
|
|
4365
|
-
`,
|
|
4410
|
+
`,zR=({text:e,query:t})=>{if(!t)return e;const n=new RegExp(`(${t})`,"ig"),r=e.split(n);return ve(ye,{children:r.map((e=>n.test(e)?ve("strong",{children:e},e):ve("span",{children:e},e)))})},VR=({items:e,query:t,onSelect:n,highlightedIndex:o})=>{const i=se(null);return ce((()=>{if(!i.current)return;const e=i.current.children[o];e&&e.scrollIntoView({block:"nearest"})}),[o]),ve(r,{ref:i,padding:"0.5rem",children:e.map(((e,i)=>{const s=e.searchLabel||("string"==typeof e.label||"number"==typeof e.label?String(e.label):"");return ve(r,{css:IR,"data-highlighted":i===o||void 0,onClick:()=>n(e.id||s),children:"string"==typeof e.label||"number"==typeof e.label?ve(zR,{text:String(e.label),query:t}):e.label},e.id)}))})},HR=e=>e.searchLabel?e.searchLabel:"string"==typeof e.label||"number"==typeof e.label?String(e.label):"",BR=({placeholder:e,disabled:t,size:n="default",options:i=[],resultsMaxHeight:s=50,isLoading:l=!1,displayResults:c="text",onSelect:d,onQueryChange:h,onClear:p,renderResults:f,labels:m})=>{const g=tg("Search",m),[b,v]=ae(""),{open:y,onOpen:w,onClose:x}=q(),[C,k]=ae(i),[$,S]=ae(-1),[M,E]=ae(!1),[T,O]=ae("pointer"),L=se(null),{contentRef:A,placement:N}=sw(),R=`search-results-${he()}`,D=e=>{const t=i.find((t=>t.id===e||HR(t)===e));t&&(d?.(t),v(""),x())};ce((()=>{if(h?.(b),!b)return void k(i);const e=i.filter((e=>{const t=b.toLowerCase();return e.id?.toLowerCase().includes(t)||HR(e).toLowerCase().includes(t)||e.caption?.toLowerCase().includes(t)})).map((e=>({id:e.id??HR(e),label:e.label,searchLabel:e.searchLabel,caption:e.caption,variant:"select",icon:e.icon,onItemClick:()=>D(e.id||HR(e))})));k(e),w()}),[b]);const P=b.length?ve(jb,{onClick:()=>{v(""),p?.()}}):null,I="none"!==c&&!!b.length&&C.length>0&&y,z=(I||l&&!!b.length)&&"custom"!==c;let H=Ie("neutral",500);t?H=Ie("neutral",500):M&&(H=Ie("primary",700));const B="small"===n?"1rem":"1.25rem",_=Me(s);return be(u.Root,{open:z,onOpenChange:e=>{e.open||x()},autoFocus:!1,closeOnEscape:!1,positioning:{sameWidth:!0,gutter:0},children:[be("div",{ref:L,css:DR,"data-open":z||void 0,"data-placement":N,children:[ve(u.Anchor,{children:ve(V,{startElement:ve(Bg,{width:B,height:B,fill:H}),endElement:P,children:ve(Nb,{autoComplete:"off",placeholder:e||g.filterPlaceholder,onChange:e=>{const{value:t}=e.target;v(t)},onFocus:()=>E(!0),onBlur:()=>E(!1),value:b,label:"",style:{paddingLeft:"2.5rem"},type:"search","aria-label":e||g.filterAriaLabel,"aria-expanded":I,"aria-controls":R,role:"combobox","aria-autocomplete":"list",disabled:t,size:n,noMarginBottom:!0,onKeyDown:e=>{if(I){if("ArrowDown"===e.key&&(e.preventDefault(),O("keyboard"),S((e=>Math.min(e+1,C.length-1)))),"ArrowUp"===e.key&&(e.preventDefault(),O("keyboard"),S((e=>Math.max(e-1,0)))),"Enter"===e.key&&(e.preventDefault(),$>=0)){const e=C[$];D(e.id||HR(e))}"Escape"===e.key&&x()}}})})}),(I||l&&!!b.length)&&"custom"===c&&f&&!l&&f({items:C,highlightedIndex:$,query:b,onSelect:D})]}),ve(a,{children:ve(u.Positioner,{children:be(u.Content,{ref:A,css:PR,style:{maxHeight:_},"data-nav-source":T,onPointerMove:()=>O("pointer"),children:[l&&ve(r,{padding:"1rem",children:ve(o,{})}),"text"===c&&!l&&ve(VR,{highlightedIndex:$,items:C,query:b,onSelect:D}),"list"===c&&!l&&ve(l$,{items:C,highlightedIndex:$})]})})})]})},_R={small:Ve(400),medium:Ve(600),large:Ve(1e3),default:Ve(400)};function jR(e,t,n,r){const o=function(e,t){return null!=t&&""!==t?Me(t):e&&_R[e]?_R[e]:_R.default}(e,t),i=n?Ie("neutral",200):Ie("primary",300),s=r||i,a=r&&n?"opacity: 0.7;":"",l=n?Ie("neutral",400):Ie("primary",800),c=n?Ie("neutral",400):Ie("primary",800);return ke`
|
|
4366
4411
|
height: ${o};
|
|
4367
4412
|
width: ${o};
|
|
4368
4413
|
border-radius: 50%;
|
|
@@ -4397,20 +4442,20 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4397
4442
|
background-color: ${Ie("primary",500)};
|
|
4398
4443
|
}
|
|
4399
4444
|
}
|
|
4400
|
-
`}const
|
|
4445
|
+
`}const FR=ke`
|
|
4401
4446
|
font-size: ${ze(200)};
|
|
4402
4447
|
line-height: ${He(400)};
|
|
4403
4448
|
font-weight: 700;
|
|
4404
4449
|
color: inherit;
|
|
4405
|
-
`,
|
|
4450
|
+
`,qR={small:{fontSize:Ee(8),boxSize:Ee(10),padding:Ee(2)},large:{fontSize:Ee(12),boxSize:Ee(20),padding:`${Ee(2)} ${Ee(4)}`}},WR=ke`
|
|
4406
4451
|
display: flex;
|
|
4407
4452
|
justify-content: flex-start;
|
|
4408
4453
|
align-items: center;
|
|
4409
4454
|
gap: ${Ve(200)};
|
|
4410
|
-
`,
|
|
4455
|
+
`,UR=e=>ke`
|
|
4411
4456
|
position: relative;
|
|
4412
4457
|
display: flex;
|
|
4413
|
-
`,
|
|
4458
|
+
`,KR=(e="large")=>{const t=Ve("small"===e?100:200);return ke`
|
|
4414
4459
|
height: ${t};
|
|
4415
4460
|
width: ${t};
|
|
4416
4461
|
background-color: ${Ie("error",500)};
|
|
@@ -4419,7 +4464,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4419
4464
|
top: 0rem;
|
|
4420
4465
|
right: 0rem;
|
|
4421
4466
|
z-index: 1;
|
|
4422
|
-
`},
|
|
4467
|
+
`},GR=(e="large")=>{const{boxSize:t,padding:n}=qR[e];return ke`
|
|
4423
4468
|
background-color: ${Ie("error",500)};
|
|
4424
4469
|
padding: ${n};
|
|
4425
4470
|
border-radius: 9999px;
|
|
@@ -4434,12 +4479,12 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4434
4479
|
min-width: ${t};
|
|
4435
4480
|
height: ${t};
|
|
4436
4481
|
z-index: 1;
|
|
4437
|
-
`},
|
|
4482
|
+
`},ZR=(e="large")=>{const{fontSize:t}=qR[e];return ke`
|
|
4438
4483
|
font-size: ${t};
|
|
4439
4484
|
line-height: 1;
|
|
4440
4485
|
font-weight: 700;
|
|
4441
4486
|
color: ${Ie("error",100)};
|
|
4442
|
-
`},
|
|
4487
|
+
`},JR=(e="large")=>{const{boxSize:t}=qR[e];return ke`
|
|
4443
4488
|
height: ${t};
|
|
4444
4489
|
min-width: ${t};
|
|
4445
4490
|
background-color: ${Ie("error",500)};
|
|
@@ -4448,12 +4493,12 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4448
4493
|
justify-content: center;
|
|
4449
4494
|
align-items: center;
|
|
4450
4495
|
padding: 0rem ${Ve(100)} 0.0625rem ${Ve(100)};
|
|
4451
|
-
`},
|
|
4496
|
+
`},XR=(e="large")=>{const{fontSize:t}=qR[e];return ke`
|
|
4452
4497
|
font-size: ${t};
|
|
4453
4498
|
line-height: ${He(600)};
|
|
4454
4499
|
font-weight: 700;
|
|
4455
4500
|
color: ${Ie("error",100)};
|
|
4456
|
-
`},
|
|
4501
|
+
`},YR=({hasNotification:e,notificationCount:t,label:n,labels:r,children:o,size:i="large"})=>{const s=tg("Badge",r),[a,l]=ae(!1);ce((()=>{const e=()=>{window.innerWidth<1024?l(!0):l(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const c=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})(),d="small"===i?"1rem":"1.5rem";return be("div",a&&null==o?{css:WR,role:"status","aria-live":"polite",children:[be("div",{css:UR(),children:[ve(xg,{color:"currentColor",height:d,width:d}),!e||t||n?null:ve("div",{css:KR(i),"aria-hidden":!0})]}),n?ve("p",{children:n}):null,c.length>0?ve("div",{css:JR(i),children:ve("p",{css:XR(i),"aria-label":s.unreadMessagesLabel(t||0),children:c})}):null]}:{css:WR,role:"status","aria-live":"polite",children:[n?ve("p",{children:n}):null,be("div",{css:UR(),children:[c.length>0?ve("div",{css:GR(i),children:ve("p",{css:ZR(i),"aria-label":s.unreadMessagesLabel(t||0),children:c})}):null,e&&!t?ve("div",{css:KR(i),"aria-hidden":!0}):null,o??ve(xg,{color:"currentColor",height:d,width:d})]})]})},QR=ie((({name:e,ariaLabel:t,size:n="medium",customSize:r,src:o,srcSet:i,onClick:s,notificationCount:a,badgeSize:l="large",disabled:c=!1,customBackgroundColor:d="",labels:u},h)=>{const p=tg("Avatar",u),f=()=>{c||s?.()},m=!!o||!!i,g=!!s&&!c,b=!!a&&a>0,v=be(W.Root,{"aria-label":t||e,ref:h,css:jR(n,r,c,d),onClick:f,onKeyDown:e=>{c||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())},role:g?"button":"img",tabIndex:g?0:void 0,"aria-disabled":s?c:void 0,children:[m&&ve(W.Image,{src:o,srcSet:i,alt:t||e||"Avatar image"}),!m&&e&&ve(W.Fallback,{name:e,css:FR}),!m&&!e&&ve(Vg,{size:"100%",style:{padding:"15%",color:c?Ie("neutral",400):Ie("primary",800)}})]});return b?ve(YR,{notificationCount:a,size:l,labels:{unreadMessagesLabel:p.unreadMessagesLabel},children:v}):v})),eD=e=>{switch(e){case"success":return{backgroundColor:Ie("success",100),textColor:Ie("success",900),borderColor:Ie("success",300),iconColor:Ie("success",500)};case"warning":return{backgroundColor:Ie("warning",100),textColor:Ie("warning",900),borderColor:Ie("warning",300),iconColor:Ie("warning",500)};case"error":return{backgroundColor:Ie("error",100),textColor:Ie("error",900),borderColor:Ie("error",300),iconColor:Ie("error",500)};case"information":return{backgroundColor:Ie("information",100),textColor:Ie("information",900),borderColor:Ie("information",300),iconColor:Ie("information",500)};case"general-grey":return{backgroundColor:Ie("neutral",200),textColor:Ie("neutral",800),borderColor:Ie("neutral",300),iconColor:Ie("neutral",700)};default:return{backgroundColor:Ie("neutral",100),textColor:Ie("neutral",800),borderColor:Ie("neutral",300),iconColor:Ie("neutral",700)}}},tD=(e,t="full-width",n=!1)=>{const{backgroundColor:r,textColor:o,borderColor:i}=eD(e),s="inline"===t,a=_e(100),l=s?`calc(${Ve(200)} - ${a})`:Ve(200),c=`calc(${Ve(200)} - ${a})`;return ke`
|
|
4457
4502
|
display: ${s?"inline-flex":"flex"};
|
|
4458
4503
|
width: ${s?"fit-content":"100%"};
|
|
4459
4504
|
max-width: 100%;
|
|
@@ -4471,7 +4516,7 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4471
4516
|
line-height: ${He(600)};
|
|
4472
4517
|
font-weight: 400;
|
|
4473
4518
|
}
|
|
4474
|
-
`},
|
|
4519
|
+
`},nD=e=>{const{iconColor:t}=eD(e);return ke`
|
|
4475
4520
|
display: flex;
|
|
4476
4521
|
align-items: center;
|
|
4477
4522
|
justify-content: center;
|
|
@@ -4483,32 +4528,32 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4483
4528
|
width: ${Ve(400)};
|
|
4484
4529
|
height: ${Ve(400)};
|
|
4485
4530
|
}
|
|
4486
|
-
`},
|
|
4531
|
+
`},rD=ee.forwardRef((({children:e,icon:t,variant:n,onClose:r,labels:o,isCentered:i=!1,width:s="full-width"},a)=>{const l=tg("AlertBanner",o),[c,d]=ee.useState(!0),u=ve("success"===n?bg:"warning"===n?vg:"error"===n?yg:cg,{});return c?be(U.Root,{css:tD(n,s,i),children:[ve(U.Indicator,{css:nD(n),children:t||u}),ve(U.Content,{flex:i?"initial":"1",children:e}),ve(jb,{"aria-label":l.closeAlertLabel,pos:"absolute",top:"0.75rem",insetEnd:"0.75rem",onClick:()=>{d(!1),r?.()}})]}):null})),oD=ke`
|
|
4487
4532
|
height: ${Ve(200)};
|
|
4488
4533
|
width: 100%;
|
|
4489
4534
|
background-color: ${Ie("neutral",300)};
|
|
4490
4535
|
display: flex;
|
|
4491
4536
|
align-items: center;
|
|
4492
4537
|
justify-content: flex-start;
|
|
4493
|
-
`,
|
|
4538
|
+
`,iD=(e,t)=>ke`
|
|
4494
4539
|
height: 100%;
|
|
4495
4540
|
width: ${e}%;
|
|
4496
4541
|
background-color: ${t??Ie("primary",500)};
|
|
4497
4542
|
transition: width 0.5s ease-in-out;
|
|
4498
|
-
`,
|
|
4543
|
+
`,sD=({progress:e,labels:t,color:n})=>{const r=tg("ProgressBar",t);let o=e;return o>100&&(o=100),o<0&&(o=0),ve("div",{css:oD,role:"progressbar","aria-label":r.progressAriaLabel(o),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o,children:ve("div",{css:iD(o,n)})})},aD=ke`
|
|
4499
4544
|
width: 100%;
|
|
4500
4545
|
display: flex;
|
|
4501
4546
|
align-items: center;
|
|
4502
4547
|
justify-content: space-between;
|
|
4503
4548
|
position: relative;
|
|
4504
|
-
`,
|
|
4549
|
+
`,lD=ke`
|
|
4505
4550
|
height: 3.75rem;
|
|
4506
4551
|
width: ${Ve(2e3)};
|
|
4507
4552
|
display: flex;
|
|
4508
4553
|
flex-direction: column;
|
|
4509
4554
|
align-items: center;
|
|
4510
4555
|
justify-content: space-between;
|
|
4511
|
-
`,
|
|
4556
|
+
`,cD=(e,t)=>ke`
|
|
4512
4557
|
height: ${Ve(800)};
|
|
4513
4558
|
width: ${Ve(800)};
|
|
4514
4559
|
display: flex;
|
|
@@ -4544,12 +4589,12 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4544
4589
|
}
|
|
4545
4590
|
|
|
4546
4591
|
${t?`\n background-color: ${Ie("neutral",300)};\n \n &:hover {\n background-color: ${Ie("neutral",300)};\n box-shadow: none;\n }\n `:""}
|
|
4547
|
-
`,
|
|
4592
|
+
`,dD=e=>ke`
|
|
4548
4593
|
color: ${Ie("neutral",e?800:600)};
|
|
4549
4594
|
font-size: ${ze(300)};
|
|
4550
4595
|
line-height: ${He(500)};
|
|
4551
4596
|
font-weight: 400;
|
|
4552
|
-
`,
|
|
4597
|
+
`,uD=ke`
|
|
4553
4598
|
height: ${_e(100)};
|
|
4554
4599
|
width: 100%;
|
|
4555
4600
|
padding: 0 1.875rem;
|
|
@@ -4557,25 +4602,25 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4557
4602
|
top: ${Ve(400)};
|
|
4558
4603
|
left: 0;
|
|
4559
4604
|
z-index: -1;
|
|
4560
|
-
`,
|
|
4605
|
+
`,hD=ke`
|
|
4561
4606
|
height: ${_e(100)};
|
|
4562
4607
|
width: 100%;
|
|
4563
4608
|
background-color: ${Ie("neutral",400)};
|
|
4564
|
-
`,
|
|
4609
|
+
`,pD=({steps:e,currentStep:t,labels:n})=>{const r=tg("StepProgressIndicator",n);return be("div",{css:aD,children:[e.map(((e,n)=>be("div",{css:lD,children:[ve("button",{css:cD(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":r.currentStepLabel(n+1,e.label||"",t>n+1),"data-active":t>=n+1,children:t>n+1?ve(ag,{height:"1rem",width:"1rem"}):n+1}),e.label?ve("p",{css:dD(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),ve("div",{css:uD,children:ve("div",{css:hD})})]})},fD=ke`
|
|
4565
4610
|
font-size: ${ze(500)};
|
|
4566
4611
|
line-height: ${He(700)};
|
|
4567
4612
|
font-weight: 400;
|
|
4568
4613
|
color: ${Ie("neutral",800)};
|
|
4569
|
-
`,
|
|
4614
|
+
`,mD=ke`
|
|
4570
4615
|
font-size: ${ze(400)};
|
|
4571
4616
|
line-height: ${He(600)};
|
|
4572
4617
|
font-weight: 400;
|
|
4573
4618
|
color: ${Ie("neutral",700)};
|
|
4574
|
-
`,
|
|
4619
|
+
`,gD=ke`
|
|
4575
4620
|
padding: 0.375rem;
|
|
4576
|
-
`,
|
|
4621
|
+
`,bD=ke`
|
|
4577
4622
|
padding: 0.375rem;
|
|
4578
|
-
`;let
|
|
4623
|
+
`;let vD=!1;const yD=new Set,wD=e=>{let t,n=!1;const r=()=>{n&&(n=!1,(()=>{vD=!1;const[e]=yD;e&&(yD.delete(e),e())})())},o=()=>{vD=!0,n=!0,t=void 0,e()};return vD?(t=()=>o(),yD.add(t)):o(),()=>{n?r():t&&yD.delete(t)}},xD={pauseOnPageIdle:!0,offsets:"1.5rem"},CD={"top-start":K({placement:"top-start",...xD}),top:K({placement:"top",...xD}),"top-end":K({placement:"top-end",...xD}),"bottom-start":K({placement:"bottom-start",...xD}),bottom:K({placement:"bottom",...xD}),"bottom-end":K({placement:"bottom-end",...xD})},kD=e=>{CD[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel,onClose:e.onClose,maxWidth:e.maxWidth},...e})},$D=e=>{Object.values(CD).forEach((t=>{t.dismiss(e)}))},SD=({labels:e})=>{const t=tg("Toast",e),[n,r]=ae(!1);return ce((()=>{const e=wD((()=>r(!0)));return()=>{e(),r(!1)}}),[]),n?Object.keys(CD).map((e=>ve(a,{children:ve(G,{toaster:CD[e],insetInline:{mdDown:"4"},children:n=>{return be(Z.Root,{css:(r=n.meta?.maxWidth,ke`
|
|
4579
4624
|
justify-content: space-between;
|
|
4580
4625
|
align-items: center;
|
|
4581
4626
|
gap: ${Ve(200)};
|
|
@@ -4619,4 +4664,4 @@ function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4619
4664
|
color: ${Ie("error",900)};
|
|
4620
4665
|
}
|
|
4621
4666
|
}
|
|
4622
|
-
`),width:{md:"sm"},children:[be(J,{flexDirection:"row",className:"ds-toast-icon-container",alignItems:n.description?"flex-start":"center",children:["info"===n.type?n.meta?.icon?n.meta.icon:ve(cg,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===n.type?ve(o,{size:"lg",borderWidth:"0.1875rem",color:"var(--chakra-colors-primary-700)"}):null,"success"===n.type?n.meta?.icon?n.meta.icon:ve(bg,{color:"var(--chakra-colors-success-500)"}):null,"warning"===n.type?n.meta?.icon?n.meta.icon:ve(vg,{color:"var(--chakra-colors-warning-500)"}):null,"error"===n.type?n.meta?.icon?n.meta.icon:ve(yg,{color:"var(--chakra-colors-error-500)"}):null,be(J,{gap:"1",flex:"1",maxWidth:"100%",children:[ve(Z.Title,{css:
|
|
4667
|
+
`),width:{md:"sm"},children:[be(J,{flexDirection:"row",className:"ds-toast-icon-container",alignItems:n.description?"flex-start":"center",children:["info"===n.type?n.meta?.icon?n.meta.icon:ve(cg,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===n.type?ve(o,{size:"lg",borderWidth:"0.1875rem",color:"var(--chakra-colors-primary-700)"}):null,"success"===n.type?n.meta?.icon?n.meta.icon:ve(bg,{color:"var(--chakra-colors-success-500)"}):null,"warning"===n.type?n.meta?.icon?n.meta.icon:ve(vg,{color:"var(--chakra-colors-warning-500)"}):null,"error"===n.type?n.meta?.icon?n.meta.icon:ve(yg,{color:"var(--chakra-colors-error-500)"}):null,be(J,{gap:"1",flex:"1",maxWidth:"100%",children:[ve(Z.Title,{css:fD,"aria-label":`${n.title}`,children:n.title}),n.description?ve(Z.Title,{css:mD,"aria-label":`${n.description}`,children:n.description}):null]})]}),n.action||n.meta?.closable?be(J,{flexDirection:"row",children:[n.action?ve(ng,{css:gD,label:n.action.label,size:"small",variant:"info"===n.type?"primary":"secondary",onClick:()=>{n?.action?.onClick&&n.action.onClick(),CD[e].dismiss(n.id)}}):null,n.meta?.closable?ve(ng,{css:bD,label:n.meta.closableLabel,"aria-label":n.meta?.closableLabel||t.dismissLabel,leftIcon:ve(pg,{height:"0.625rem!",width:"0.625rem!"}),size:"small",variant:"secondary",onClick:()=>{n.meta?.onClose&&n.meta.onClose(),CD[e].dismiss(n.id)}}):null]}):null]});var r}})},e))):null};export{rD as AlertBanner,V$ as AnalysisWidget,QR as Avatar,YR as Badge,JC as BaseMap,PN as Breadcrumb,ng as Button,Av as Checkbox,wy as CheckboxList,Vv as CheckboxOptionCard,jb as CloseButton,QC as ClusterPoint,vw as Combobox,Fe as DesignSystemLocaleProvider,R$ as ExtendableCard,kb as FieldWrapper,_N as Footer,Ov as FormContainer,_C as GuidedTour,og as IconButton,vN as InlineMessage,qy as InputWithUnits,Qk as ItemCount,hk as LayerGroup,pk as LayerGroupContainer,uk as LayerItem,vk as LayerParameters,Nk as LegendItem,l$ as List,mv as MapControlsToolbar,YC as MapMarker,tk as MapMarkers,DC as MapPopUp,nb as Menu,AN as MobileSearch,KN as MobileTabBar,VS as Modal,$v as MultiActionButton,bR as Navbar,kR as NavigationRail,Ak as OpacityControl,Wv as OptionCard,p$ as Pagination,WS as Panel,Jy as Password,sD as ProgressBar,_k as QualitativeAttribute,Zv as Radio,Jv as RadioGroup,Yy as RadioList,Hb as RichTextEditor,Bb as SSOButtons,Gk as ScaleBar,BR as Search,Fy as Select,sN as Sheet,ek as SimpleMapPin,dy as Slider,ew as SliderInput,pD as StepProgressIndicator,hy as Switch,NR as TabBar,T$ as Table,L$ as TableCell,O$ as TableRow,By as Tag,Nb as TextInput,ow as Textarea,SD as Toast,fv as Toolbar,ib as Tooltip,$D as closeToast,Pe as designSystemStyles,De as designSystemStylesForTailwind,_e as getThemedBorderWidth,Ie as getThemedColor,ze as getThemedFontSize,He as getThemedLineHeight,Be as getThemedRadius,Ve as getThemedSpacing,kD as showToast};
|