@worldresources/wri-design-systems 2.203.0 → 2.203.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +268 -262
- package/dist/index.esm.js +266 -260
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1385,18 +1385,29 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1385
1385
|
width: ${Ve(500)} !important;
|
|
1386
1386
|
height: ${Ve(500)} !important;
|
|
1387
1387
|
`,Kv=({children:e,value:t,disabled:n,...r})=>be(w.Item,{css:qv,value:t,disabled:n,...r,children:[ve(w.ItemHiddenInput,{css:Uv}),ve(w.ItemIndicator,{className:"ds-radio-item-indicator"}),e?ve(w.ItemText,{css:Wv,children:e}):null]}),Gv=({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})})},Zv=ke`
|
|
1388
|
-
height:
|
|
1389
|
-
padding: ${Ve(1e3)} ${Ve(300)};
|
|
1388
|
+
height: fit-content;
|
|
1390
1389
|
`,Jv=ke`
|
|
1390
|
+
position: relative;
|
|
1391
|
+
height: ${He(400)};
|
|
1392
|
+
`,Xv=ke`
|
|
1393
|
+
position: absolute;
|
|
1394
|
+
top: 0;
|
|
1395
|
+
font-size: ${ze(200)};
|
|
1396
|
+
line-height: ${He(400)};
|
|
1397
|
+
color: ${Ie("neutral",800)};
|
|
1398
|
+
white-space: nowrap;
|
|
1399
|
+
`,Yv=ke`
|
|
1391
1400
|
height: ${Ve(500)};
|
|
1392
1401
|
width: ${Ve(500)};
|
|
1393
1402
|
background-color: ${Ie("primary",500)};
|
|
1394
1403
|
border: ${_e(200)} solid ${Ie("primary",700)};
|
|
1395
1404
|
box-shadow: 0 0.0625rem 0.125rem 0 #0000000d;
|
|
1396
1405
|
cursor: pointer;
|
|
1406
|
+
z-index: 1;
|
|
1397
1407
|
|
|
1398
1408
|
&:hover,
|
|
1399
1409
|
&[data-hover] {
|
|
1410
|
+
z-index: 2;
|
|
1400
1411
|
outline: ${Ve(100)} solid
|
|
1401
1412
|
color-mix(in srgb, ${Ie("primary",500)} 20%, transparent);
|
|
1402
1413
|
|
|
@@ -1406,6 +1417,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1406
1417
|
}
|
|
1407
1418
|
|
|
1408
1419
|
&[data-dragging] {
|
|
1420
|
+
z-index: 2;
|
|
1409
1421
|
outline: ${Ve(100)} solid
|
|
1410
1422
|
color-mix(in srgb, ${Ie("primary",500)} 40%, transparent);
|
|
1411
1423
|
|
|
@@ -1416,6 +1428,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1416
1428
|
|
|
1417
1429
|
&:focus-visible,
|
|
1418
1430
|
&[data-focus-visible] {
|
|
1431
|
+
z-index: 2;
|
|
1419
1432
|
${Vm}
|
|
1420
1433
|
|
|
1421
1434
|
.ds-slider-value-preview {
|
|
@@ -1430,11 +1443,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1430
1443
|
outline: none;
|
|
1431
1444
|
cursor: not-allowed;
|
|
1432
1445
|
}
|
|
1433
|
-
`,
|
|
1446
|
+
`,Qv=ke`
|
|
1434
1447
|
font-size: ${ze(300)};
|
|
1435
1448
|
line-height: ${He(500)};
|
|
1436
1449
|
color: ${Ie("neutral",800)};
|
|
1437
|
-
height:
|
|
1450
|
+
height: ${Ve(700)};
|
|
1438
1451
|
background-color: ${Ie("neutral",100)};
|
|
1439
1452
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
1440
1453
|
border-radius: ${Be(500)};
|
|
@@ -1442,16 +1455,21 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1442
1455
|
display: none;
|
|
1443
1456
|
justify-content: center;
|
|
1444
1457
|
align-items: center;
|
|
1445
|
-
position:
|
|
1446
|
-
|
|
1447
|
-
|
|
1458
|
+
position: absolute;
|
|
1459
|
+
bottom: calc(100% + ${Ve(200)});
|
|
1460
|
+
left: 50%;
|
|
1461
|
+
transform: translateX(-50%);
|
|
1462
|
+
z-index: 2;
|
|
1463
|
+
pointer-events: none;
|
|
1464
|
+
white-space: nowrap;
|
|
1465
|
+
`,ey=ke`
|
|
1448
1466
|
background-color: ${Ie("neutral",300)};
|
|
1449
1467
|
border: none;
|
|
1450
1468
|
box-shadow: none;
|
|
1451
|
-
`,
|
|
1469
|
+
`,ty=e=>ke`
|
|
1452
1470
|
background-color: ${Ie("primary",500)};
|
|
1453
1471
|
border: ${_e(100)} solid ${Ie("primary",700)};
|
|
1454
|
-
border-radius: ${Be(500)};
|
|
1472
|
+
border-radius: ${e?"0":Be(500)};
|
|
1455
1473
|
|
|
1456
1474
|
&:disabled,
|
|
1457
1475
|
&[disabled],
|
|
@@ -1461,16 +1479,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1461
1479
|
background-color: ${Ie("neutral",400)};
|
|
1462
1480
|
border: none;
|
|
1463
1481
|
}
|
|
1464
|
-
`,
|
|
1465
|
-
font-size: ${ze(200)};
|
|
1466
|
-
line-height: ${He(400)};
|
|
1467
|
-
color: ${Ie("neutral",800)};
|
|
1468
|
-
|
|
1469
|
-
p {
|
|
1470
|
-
position: relative;
|
|
1471
|
-
top: -2.5rem;
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1482
|
+
`,ny=(e,t)=>ke`
|
|
1474
1483
|
&[data-state='under-value'] {
|
|
1475
1484
|
.chakra-slider__markerIndicator {
|
|
1476
1485
|
background-color: ${Ie("neutral",e?500:200)};
|
|
@@ -1495,8 +1504,8 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1495
1504
|
}
|
|
1496
1505
|
}
|
|
1497
1506
|
|
|
1498
|
-
${t?`\n --
|
|
1499
|
-
`,
|
|
1507
|
+
${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 `:""};
|
|
1508
|
+
`,ry=e=>{const{value:t}=e;return ve(C,{each:t,children:(e,t)=>be(x.Thumb,{css:Yv,index:t,children:[ve("div",{css:Qv,className:"ds-slider-value-preview",children:e}),ve(x.HiddenInput,{})]},t)})},oy=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:ny(r,o),value:n,children:ve(x.MarkerIndicator,{})},n)}))}):null})),iy=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:Jv,children:o.map((e=>{const t=e.value===n?"0":e.value===r?"-100%":"-50%";return ve("span",{css:Xv,style:{left:(e.value-n)/i*100+"%",transform:`translateX(${t})`},children:e.label},e.value)}))})},sy=te.forwardRef(((e,t)=>{const{marks:n,onValueChange:r,isCentred:o,value:i,...s}=e,[a,l]=ae(i||[0]);ce((()=>{l(i||[0])}),[i]);const c=s.min??0,d=s.max??100;let u=n?.map((e=>"number"==typeof e?{value:e,label:void 0}:e));o&&(u=[c,(c+d)/2,d].map((e=>({value:e,label:void 0}))));const h=!!u?.some((e=>e.label));return be(x.Root,{css:Zv,ref:t,thumbAlignment:"center",onValueChange:e=>{l(e.value),r&&r(e)},origin:o?"center":"start",value:a,...s,children:[ve(iy,{marks:u,min:c,max:d}),be(x.Control,{"data-has-mark-label":h||void 0,children:[ve(x.Track,{css:ey,children:ve(x.Range,{css:ty(o)})}),ve(oy,{marks:u,isCentred:o}),ve(ry,{value:a})]})]})})),ay=ke`
|
|
1500
1509
|
--switch-height: 1.5rem;
|
|
1501
1510
|
--switch-width: 2.5rem;
|
|
1502
1511
|
|
|
@@ -1596,26 +1605,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1596
1605
|
cursor: not-allowed;
|
|
1597
1606
|
}
|
|
1598
1607
|
}
|
|
1599
|
-
`,
|
|
1608
|
+
`,ly=({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:ay,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})]})})},cy=e=>ke`
|
|
1600
1609
|
display: grid;
|
|
1601
1610
|
grid-template-rows: ${e?"1fr":"0fr"};
|
|
1602
1611
|
opacity: ${e?1:0};
|
|
1603
1612
|
transition:
|
|
1604
1613
|
grid-template-rows 300ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
1605
1614
|
opacity 200ms ease;
|
|
1606
|
-
`,
|
|
1615
|
+
`,dy=ke`
|
|
1607
1616
|
overflow: hidden;
|
|
1608
1617
|
min-height: 0;
|
|
1609
|
-
`,
|
|
1618
|
+
`,uy=e=>ke`
|
|
1610
1619
|
display: flex;
|
|
1611
1620
|
flex-direction: ${e?"row":"column"};
|
|
1612
1621
|
flex-wrap: wrap;
|
|
1613
1622
|
gap: ${Ve(e?500:300)};
|
|
1614
1623
|
padding: ${Ve(100)};
|
|
1615
|
-
`,
|
|
1624
|
+
`,hy=ke`
|
|
1616
1625
|
color: ${Ie("neutral",700)};
|
|
1617
1626
|
margin-left: ${Ve(100)};
|
|
1618
|
-
`,
|
|
1627
|
+
`,py=ke`
|
|
1619
1628
|
color: ${Ie("neutral",700)};
|
|
1620
1629
|
display: flex;
|
|
1621
1630
|
align-items: center;
|
|
@@ -1629,18 +1638,18 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1629
1638
|
display: inline-flex;
|
|
1630
1639
|
transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
1631
1640
|
}
|
|
1632
|
-
`,
|
|
1641
|
+
`,fy=e=>ke`
|
|
1633
1642
|
transform: rotate(${e?"180deg":"0deg"});
|
|
1634
|
-
`,
|
|
1643
|
+
`,my=ke`
|
|
1635
1644
|
display: flex;
|
|
1636
1645
|
align-items: center;
|
|
1637
1646
|
justify-content: space-between;
|
|
1638
1647
|
width: 100%;
|
|
1639
|
-
`,
|
|
1648
|
+
`,gy=({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:my,children:[be(Ov,{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:hy,children:k})]}),!c&&be("button",{type:"button",onClick:()=>b((e=>!e)),"aria-expanded":g,"aria-controls":"checkbox-list",css:py,children:[g?u.hideLabel:u.expandLabel,ve("span",{"aria-hidden":"true",css:fy(g),children:ve(dg,{})})]})]});return ve(Cb,{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:cy(g),children:ve("div",{css:dy,children:ve("div",{css:uy(s),children:n.map((e=>{const{onCheckedChange:t,...n}=e;return ve(Ov,{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)}))})})})})},by=ke`
|
|
1640
1649
|
width: 100%;
|
|
1641
1650
|
max-width: 23.125rem;
|
|
1642
1651
|
position: relative;
|
|
1643
|
-
`,
|
|
1652
|
+
`,vy=(e,t)=>ke`
|
|
1644
1653
|
width: 100%;
|
|
1645
1654
|
|
|
1646
1655
|
.ds-text-input-container {
|
|
@@ -1675,7 +1684,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1675
1684
|
padding: 0 ${Ve(100)};
|
|
1676
1685
|
}
|
|
1677
1686
|
}
|
|
1678
|
-
`,
|
|
1687
|
+
`,yy=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,{})})})]})})),wy=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)}})})})})),xy=ee.forwardRef(((e,t)=>{const{item:n,children:r,...o}=e;return X($.Item,{item:n,...o,ref:t,children:r},n.value)})),Cy=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`}})})})),ky=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 $y=(e,t)=>t?Ie("error",900):Ie("neutral",e?700:400),Sy=(e,t,n,r)=>ke`
|
|
1679
1688
|
border-radius: ${Be(300)};
|
|
1680
1689
|
overflow: visible;
|
|
1681
1690
|
|
|
@@ -1688,7 +1697,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1688
1697
|
border-radius: ${Be(300)};
|
|
1689
1698
|
padding: ${Ve(50)} ${Ve(200)};
|
|
1690
1699
|
border: ${_e(100)} solid
|
|
1691
|
-
${
|
|
1700
|
+
${$y(t,n)};
|
|
1692
1701
|
box-shadow: 0 0.0625rem 0.125rem 0 #0000000d;
|
|
1693
1702
|
cursor: pointer;
|
|
1694
1703
|
background-color: ${Ie("neutral",100)};
|
|
@@ -1713,7 +1722,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1713
1722
|
&[data-placement^='top'] {
|
|
1714
1723
|
border-bottom-left-radius: ${Be(300)};
|
|
1715
1724
|
border-bottom-right-radius: ${Be(300)};
|
|
1716
|
-
border-bottom-color: ${
|
|
1725
|
+
border-bottom-color: ${$y(t,n)};
|
|
1717
1726
|
|
|
1718
1727
|
border-top-left-radius: 0;
|
|
1719
1728
|
border-top-right-radius: 0;
|
|
@@ -1748,14 +1757,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1748
1757
|
}
|
|
1749
1758
|
}
|
|
1750
1759
|
}
|
|
1751
|
-
`,
|
|
1760
|
+
`,My=(e,t)=>ke`
|
|
1752
1761
|
margin-top: calc(${Ve(200)} * -1);
|
|
1753
1762
|
border-radius: ${Be(300)};
|
|
1754
1763
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
1755
1764
|
border-top-left-radius: 0;
|
|
1756
1765
|
border-top-right-radius: 0;
|
|
1757
1766
|
border-top: ${_e(100)} solid
|
|
1758
|
-
${
|
|
1767
|
+
${$y(e,t)};
|
|
1759
1768
|
box-shadow:
|
|
1760
1769
|
0 0.25rem 0.375rem -0.25rem #0000001a,
|
|
1761
1770
|
0 0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
@@ -1770,12 +1779,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1770
1779
|
border-bottom-left-radius: 0;
|
|
1771
1780
|
border-bottom-right-radius: 0;
|
|
1772
1781
|
border-bottom: ${_e(100)} solid
|
|
1773
|
-
${
|
|
1782
|
+
${$y(e,t)};
|
|
1774
1783
|
box-shadow:
|
|
1775
1784
|
0 -0.25rem 0.375rem -0.25rem #0000001a,
|
|
1776
1785
|
0 -0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
1777
1786
|
}
|
|
1778
|
-
|
|
1787
|
+
`,Ey=e=>ke`
|
|
1779
1788
|
align-items: flex-start;
|
|
1780
1789
|
&[data-highlighted] {
|
|
1781
1790
|
background-color: ${Hm(20)};
|
|
@@ -1797,7 +1806,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1797
1806
|
&:active {
|
|
1798
1807
|
background-color: ${Hm(40)};
|
|
1799
1808
|
}
|
|
1800
|
-
`,
|
|
1809
|
+
`,Ty=(e,t)=>ke`
|
|
1801
1810
|
font-size: ${ze("small"===e?300:400)};
|
|
1802
1811
|
line-height: ${He("small"===e?500:600)};
|
|
1803
1812
|
color: ${Ie("neutral",800)};
|
|
@@ -1805,7 +1814,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1805
1814
|
margin: 0;
|
|
1806
1815
|
|
|
1807
1816
|
${t?`color: ${Ie("neutral",600)} !important;`:""}
|
|
1808
|
-
`,
|
|
1817
|
+
`,Oy=(e,t)=>ke`
|
|
1809
1818
|
font-size: ${ze("small"===e?300:400)};
|
|
1810
1819
|
line-height: ${He("small"===e?500:600)};
|
|
1811
1820
|
color: ${Ie("neutral",700)};
|
|
@@ -1813,7 +1822,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1813
1822
|
margin: 0;
|
|
1814
1823
|
|
|
1815
1824
|
${t?`color: ${Ie("neutral",600)} !important;`:""}
|
|
1816
|
-
`,
|
|
1825
|
+
`,Ly=e=>ke`
|
|
1817
1826
|
max-width: 100%;
|
|
1818
1827
|
display: flex;
|
|
1819
1828
|
justify-content: center;
|
|
@@ -1886,28 +1895,28 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1886
1895
|
background-color: ${Ie("neutral",300)};
|
|
1887
1896
|
color: ${Ie("neutral",600)};
|
|
1888
1897
|
}
|
|
1889
|
-
`,
|
|
1898
|
+
`,Ay=ke`
|
|
1890
1899
|
background-color: ${Ie("neutral",100)};
|
|
1891
1900
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
1892
|
-
`,
|
|
1901
|
+
`,Ny=ke`
|
|
1893
1902
|
background-color: ${Ie("neutral",200)};
|
|
1894
1903
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
1895
|
-
`,
|
|
1904
|
+
`,Ry=ke`
|
|
1896
1905
|
background-color: ${Ie("success",100)};
|
|
1897
1906
|
border: ${_e(100)} solid ${Ie("success",300)};
|
|
1898
1907
|
color: ${Ie("success",900)};
|
|
1899
|
-
`,
|
|
1908
|
+
`,Dy=ke`
|
|
1900
1909
|
background-color: ${Ie("warning",100)};
|
|
1901
1910
|
border: ${_e(100)} solid ${Ie("warning",300)};
|
|
1902
1911
|
color: ${Ie("warning",900)};
|
|
1903
|
-
`,
|
|
1912
|
+
`,Py=ke`
|
|
1904
1913
|
background-color: ${Ie("error",100)};
|
|
1905
1914
|
border: ${_e(100)} solid ${Ie("error",300)};
|
|
1906
1915
|
color: ${Ie("error",900)};
|
|
1907
|
-
`,
|
|
1916
|
+
`,Iy=({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=Ay;return"info-grey"===n?d=Ny:"success"===n?d=Ry:"warning"===n?d=Dy:"error"===n&&(d=Py),be(S.Root,{css:[Ly(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(hg,{})})}):null]})},zy=({placeholder:e,size:t,disabled:n})=>ve(Cy,{placeholder:e,children:e=>{const{label:r,caption:o}=e[0];return be(p,{flexDirection:"column",alignItems:"flex-start",children:[ve("p",{css:Ty(t,n),children:r}),o?ve("p",{css:Oy(t,n),children:o}):null]})}}),Vy=({placeholder:e,removeItem:t,disabled:n})=>ve(Cy,{placeholder:e,children:e=>e.map((e=>ve(p,{flexDirection:"row",alignItems:"flex-start",children:ve(Iy,{label:e.label,variant:"info-grey",disabled:n,onClose:()=>t(e.value),closable:!0},e.value)},e.value)))}),Hy=({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(Cb,{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(ky,{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(yy,{css:Sy(i,k,!!c,d),"aria-label":f["aria-label"]||e||m.defaultAriaLabel,children:d?ve(Vy,{placeholder:n,disabled:a,removeItem:e=>{const t=y.filter((t=>t!==e));x(t)}}):ve(zy,{placeholder:n,size:i,disabled:a})}),ve(wy,{css:My(k,!!c),children:w.items.map((e=>be(xy,{css:Ey(d),item:e,children:[be(r,{children:[ve("p",{css:Ty(i),children:e.label}),ve("p",{css:Oy(i),children:e.caption})]}),d?ve(Ov,{checked:y.some((t=>t===e.value)),"aria-label":`Select ${e.label}`,tabIndex:-1}):null]},e.value)))})]})})},By=({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:by,children:ve(Cb,{label:e,caption:t,errorMessage:n,required:l,disabled:c,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",children:be(m,{css:vy(!!n,o),attached:!0,children:["start"===o?ve(Hy,{placeholder:"","aria-label":`${e} unit`,value:h,items:r,disabled:c,onChange:e=>{p(e),f(e?.[0],!0)}}):null,ve(Ab,{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(Hy,{placeholder:"","aria-label":`${e} unit`,value:h,items:r,disabled:c,onChange:e=>{p(e),f(e?.[0],!0)}}):null]})})})},_y=ke`
|
|
1908
1917
|
width: 100%;
|
|
1909
1918
|
max-width: 30.375rem;
|
|
1910
|
-
`,
|
|
1919
|
+
`,jy=ke`
|
|
1911
1920
|
display: flex;
|
|
1912
1921
|
align-items: center;
|
|
1913
1922
|
justify-content: space-between;
|
|
@@ -1924,11 +1933,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1924
1933
|
button {
|
|
1925
1934
|
min-width: 6.125rem;
|
|
1926
1935
|
}
|
|
1927
|
-
`,
|
|
1936
|
+
`,Fy=ke`
|
|
1928
1937
|
display: flex;
|
|
1929
1938
|
flex-direction: column;
|
|
1930
1939
|
gap: ${Ve(200)};
|
|
1931
|
-
`,
|
|
1940
|
+
`,qy=e=>ke`
|
|
1932
1941
|
height: ${Ve(200)};
|
|
1933
1942
|
width: 100%;
|
|
1934
1943
|
background-color: ${Ie("neutral",300)};
|
|
@@ -1941,7 +1950,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1941
1950
|
background-color: ${Ie("medium"===e?"warning":"strong"===e||"very-strong"===e?"success":"error",900)};
|
|
1942
1951
|
border-radius: ${Be(500)};
|
|
1943
1952
|
}
|
|
1944
|
-
`,
|
|
1953
|
+
`,Wy=e=>ke`
|
|
1945
1954
|
display: flex;
|
|
1946
1955
|
align-items: center;
|
|
1947
1956
|
gap: ${Ve(100)};
|
|
@@ -1962,7 +1971,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1962
1971
|
p {
|
|
1963
1972
|
margin: 0;
|
|
1964
1973
|
}
|
|
1965
|
-
`,
|
|
1974
|
+
`,Uy=({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:_y,children:be(Cb,{label:e,caption:t,required:n,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",children:[be("div",{css:jy,children:[ve(Ab,{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?mg:fg,{}),"aria-label":c?l.hidePasswordLabel:l.showPasswordLabel,onClick:()=>d(!c),type:"button"})]}),u&&!s?be("div",{id:"password-guidelines",css:Fy,"aria-live":"polite",children:[be("p",{css:(g=p.strength,ke`
|
|
1966
1975
|
font-size: ${ze(400)};
|
|
1967
1976
|
line-height: ${He(600)};
|
|
1968
1977
|
font-weight: 400;
|
|
@@ -1974,7 +1983,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1974
1983
|
font-weight: 700;
|
|
1975
1984
|
color: ${Ie("medium"===g?"warning":"strong"===g||"very-strong"===g?"success":"error",900)};
|
|
1976
1985
|
}
|
|
1977
|
-
`),"aria-live":"polite",role:"status",children:[l.strengthPrefix," ",ve("span",{children:m[p.strength]})]}),ve("div",{css:
|
|
1986
|
+
`),"aria-live":"polite",role:"status",children:[l.strengthPrefix," ",ve("span",{children:m[p.strength]})]}),ve("div",{css:qy(p.strength),children:ve("div",{})}),be("div",{css:Wy(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(hg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.minLengthRule(i)})]}),r?.uppercase?null:be("div",{css:Wy(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(hg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.uppercaseRule})]}),r?.lowercase?null:be("div",{css:Wy(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(hg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.lowercaseRule})]}),r?.numbers?null:be("div",{css:Wy(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(hg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.numberRule})]}),r?.specialCharacters?null:be("div",{css:Wy(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(hg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.specialCharRule})]})]}):null]})});var g},Ky=ke`
|
|
1978
1987
|
height: 100%;
|
|
1979
1988
|
min-height: 3rem;
|
|
1980
1989
|
width: 100%;
|
|
@@ -1983,7 +1992,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1983
1992
|
border-radius: ${Be(300)};
|
|
1984
1993
|
background-color: ${Ie("neutral",100)};
|
|
1985
1994
|
padding: ${Ve(300)};
|
|
1986
|
-
`,
|
|
1995
|
+
`,Gy=({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(Cb,{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(Gv,{name:n,value:o,onChange:i,horizontal:a&&"card"!==l,children:r.map((e=>ve(Kv,{css:"card"===l?Ky:{},...e},e.value)))})})},Zy=ke`
|
|
1987
1996
|
display: flex;
|
|
1988
1997
|
align-items: center;
|
|
1989
1998
|
gap: ${Ve(300)};
|
|
@@ -2003,24 +2012,21 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2003
2012
|
}
|
|
2004
2013
|
|
|
2005
2014
|
.chakra-slider__root {
|
|
2006
|
-
padding: 0 ${Ve(300)};
|
|
2007
|
-
height: 1.875rem;
|
|
2008
|
-
margin-top: 1.125rem;
|
|
2009
2015
|
width: 100%;
|
|
2010
2016
|
}
|
|
2011
|
-
`,
|
|
2017
|
+
`,Jy=({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(Cb,{label:e,caption:t,required:o,size:n,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",children:be("div",{css:Zy,children:[r.step&&r.marks?ve(Hy,{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(Ab,{"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(sy,{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(Ab,{"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]})})},Xy=ke`
|
|
2012
2018
|
color: ${Ie("neutral",600)};
|
|
2013
2019
|
font-size: ${ze(200)};
|
|
2014
2020
|
font-weight: 400;
|
|
2015
2021
|
line-height: ${He(400)};
|
|
2016
2022
|
margin: 0;
|
|
2017
|
-
`,
|
|
2023
|
+
`,Yy=ke`
|
|
2018
2024
|
color: ${Ie("error",900)};
|
|
2019
2025
|
font-size: ${ze(300)};
|
|
2020
2026
|
font-weight: 700;
|
|
2021
2027
|
line-height: ${He(500)};
|
|
2022
2028
|
margin: 0;
|
|
2023
|
-
`,
|
|
2029
|
+
`,Qy=(e,t)=>ke`
|
|
2024
2030
|
height: 6.5rem;
|
|
2025
2031
|
width: 100%;
|
|
2026
2032
|
border-radius: ${Be(300)};
|
|
@@ -2060,15 +2066,15 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2060
2066
|
}
|
|
2061
2067
|
|
|
2062
2068
|
${t?`\n border: ${_e(100)} solid ${Ie("neutral",700)};\n `:""}
|
|
2063
|
-
`,
|
|
2069
|
+
`,ew=({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=Lb(u,h),z=S&&!k&&!x,V=x&&!!p||k&&!!f||z?be(ye,{children:[x&&p?ve(c.ErrorText,{id:A,css:Yy,style:{fontSize:"0.75rem",lineHeight:"1rem"},"aria-live":"polite",children:v.needMoreChars(p-O.length)}):null,k&&f?ve(c.ErrorText,{id:A,css:Yy,style:{fontSize:"0.75rem",lineHeight:"1rem"},"aria-live":"polite",children:v.tooManyChars(O.length-f)}):null,z?ve(c.HelperText,{id:N,css:Xy,"aria-live":"polite",children:S}):null]}):null;return ve(Cb,{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:Qy(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})})},tw=e=>(e.getAttribute("data-placement")||"bottom").startsWith("top")?"top":"bottom",nw=()=>{const[e,t]=ae("bottom"),n=se(null);return{contentRef:ue((e=>{n.current?.disconnect(),n.current=null,e&&(t(tw(e)),n.current=new MutationObserver((()=>{t(tw(e))})),n.current.observe(e,{attributes:!0,attributeFilter:["data-placement"]}))}),[]),placement:e}},rw=e=>e?Ie("error",900):Ie("neutral",700),ow=e=>ke`
|
|
2064
2070
|
&[data-state='open'] {
|
|
2065
2071
|
${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 "}
|
|
2066
2072
|
}
|
|
2067
|
-
`,
|
|
2073
|
+
`,iw=ke`
|
|
2068
2074
|
&:focus-visible {
|
|
2069
2075
|
${Vm}
|
|
2070
2076
|
}
|
|
2071
|
-
`,
|
|
2077
|
+
`,sw=ke`
|
|
2072
2078
|
cursor: pointer;
|
|
2073
2079
|
|
|
2074
2080
|
&[data-highlighted] {
|
|
@@ -2088,14 +2094,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2088
2094
|
cursor: not-allowed;
|
|
2089
2095
|
color: ${Ie("neutral",600)};
|
|
2090
2096
|
}
|
|
2091
|
-
`,
|
|
2097
|
+
`,aw=new Set(["ArrowDown","ArrowUp","Home","End"]),lw=({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})=>{const[f,m]=ae([]),g=tg("Combobox",c),{contains:b}=T({sensitivity:"base"}),{collection:v,filter:y}=O({initialItems:u,filter:b}),w=f.length>0,x=!!r,C=Lb(),{contentRef:k,placement:$}=nw(),[S,M]=ae("pointer"),E=()=>M("pointer");return ve(Cb,{className:"ds-text-input-container",label:e,caption:n,errorMessage:r,required:t,disabled:i,size:o,showOptionalLabel:s,noMarginBottom:d,labels:{requiredSymbolLabel:g.requiredSymbolLabel,optionalSuffix:g.optionalSuffix},semantics:"field",children:be(L.Root,{multiple:h,invalid:x,onValueChange:e=>{m(e.items.map((e=>({label:e.label,value:e.value}))))},value:f.map((e=>e.value)),collection:v,onInputValueChange:e=>y(e.inputValue),width:"100%",positioning:{sameWidth:!0},size:"small"===o?"sm":"md",children:[be(L.Control,{children:[ve(L.Input,{placeholder:l,focusVisibleRing:"none",css:[xb(o,w),ow($)],disabled:i,"aria-label":e||l||g.defaultInputAriaLabel,"data-focus-visible":C.isTabFocused||void 0,onFocus:C.onFocus,onBlur:C.onBlur,onKeyDown:e=>{aw.has(e.key)&&M("keyboard")},onPointerDown:E,_placeholder:{color:"var(--chakra-colors-neutral-700)"}}),be(L.IndicatorGroup,{children:[ve(L.ClearTrigger,{"aria-label":g.clearSelectionLabel,tabIndex:0,focusVisibleRing:"none",css:iw}),ve(L.Trigger,{"aria-label":g.toggleOptionsLabel})]})]}),ve(a,{children:ve(L.Positioner,{children:be(L.Content,{ref:k,css:(A=x,ke`
|
|
2092
2098
|
margin-top: calc(${Ve(200)} * -1);
|
|
2093
2099
|
border-radius: ${Be(300)};
|
|
2094
2100
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
2095
2101
|
border-top-left-radius: 0;
|
|
2096
2102
|
border-top-right-radius: 0;
|
|
2097
2103
|
border-top: ${_e(100)} solid
|
|
2098
|
-
${
|
|
2104
|
+
${rw(A)};
|
|
2099
2105
|
background-color: ${Ie("neutral",100)};
|
|
2100
2106
|
box-shadow:
|
|
2101
2107
|
0 0.25rem 0.375rem -0.25rem #0000001a,
|
|
@@ -2111,12 +2117,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2111
2117
|
border-bottom-left-radius: 0;
|
|
2112
2118
|
border-bottom-right-radius: 0;
|
|
2113
2119
|
border-bottom: ${_e(100)} solid
|
|
2114
|
-
${
|
|
2120
|
+
${rw(A)};
|
|
2115
2121
|
box-shadow:
|
|
2116
2122
|
0 -0.25rem 0.375rem -0.25rem #0000001a,
|
|
2117
2123
|
0 -0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
2118
2124
|
}
|
|
2119
|
-
`),"data-nav-source":S,onPointerMove:E,children:[ve(L.Empty,{children:g.noItemsFoundLabel}),v.items.map((e=>be(L.Item,{css:
|
|
2125
|
+
`),"data-nav-source":S,onPointerMove:E,children:[ve(L.Empty,{children:g.noItemsFoundLabel}),v.items.map((e=>be(L.Item,{css:sw,item:e,children:[e.label,ve(L.ItemIndicator,{})]},e.value)))]})})}),p?ve("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"0.25rem",paddingTop:"0.5rem"},children:f.map((e=>ve(Iy,{label:e.label,variant:"info-white",onClose:()=>m((t=>t.filter((t=>t.value!==e.value)))),closable:!0},e.value)))}):null]})});var A},cw=(e,t)=>ke`
|
|
2120
2126
|
height: ${e};
|
|
2121
2127
|
width: ${t};
|
|
2122
2128
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
@@ -2130,7 +2136,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2130
2136
|
height: 100%;
|
|
2131
2137
|
overflow-y: scroll;
|
|
2132
2138
|
}
|
|
2133
|
-
`,
|
|
2139
|
+
`,dw=ke`
|
|
2134
2140
|
padding: ${Ve(400)} ${Ve(300)};
|
|
2135
2141
|
border-bottom: ${_e(100)} solid
|
|
2136
2142
|
${Ie("neutral",300)};
|
|
@@ -2154,17 +2160,17 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2154
2160
|
color: ${Ie("neutral",700)};
|
|
2155
2161
|
text-align: left;
|
|
2156
2162
|
}
|
|
2157
|
-
`,
|
|
2163
|
+
`,uw=ke``,hw=ke`
|
|
2158
2164
|
display: flex;
|
|
2159
2165
|
flex-direction: column;
|
|
2160
2166
|
gap: ${Ve(300)};
|
|
2161
2167
|
padding: ${Ve(300)};
|
|
2162
2168
|
border-bottom: ${_e(100)} solid
|
|
2163
2169
|
${Ie("neutral",300)};
|
|
2164
|
-
`,
|
|
2170
|
+
`,pw=ke`
|
|
2165
2171
|
padding-top: ${Ve(300)};
|
|
2166
2172
|
padding-left: ${Ve(200)};
|
|
2167
|
-
`,
|
|
2173
|
+
`,fw=ke``,mw=e=>ke`
|
|
2168
2174
|
display: flex;
|
|
2169
2175
|
gap: ${Ve(300)};
|
|
2170
2176
|
padding: ${Ve(300)} ${Ve(200)};
|
|
@@ -2189,7 +2195,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2189
2195
|
background-color: ${Ie("primary",100)};
|
|
2190
2196
|
width: 99.8%;
|
|
2191
2197
|
}
|
|
2192
|
-
`,
|
|
2198
|
+
`,gw=ke`
|
|
2193
2199
|
width: 100%;
|
|
2194
2200
|
max-width: calc(100% - 2.75rem);
|
|
2195
2201
|
|
|
@@ -2220,7 +2226,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2220
2226
|
.ds-base-map-children {
|
|
2221
2227
|
margin-top: 0.625rem;
|
|
2222
2228
|
}
|
|
2223
|
-
`,
|
|
2229
|
+
`,bw=({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:cw(i,s),children:be("div",{className:"ds-base-map-scroll-content",children:[be("div",{css:dw,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:uw,children:[n?ve("div",{css:hw,children:n.map((e=>be("div",{children:[ve(Ov,{css:{},checked:e.checked,onCheckedChange:({checked:t})=>e.onCheckedChange({checked:Boolean(t)}),children:e.label}),e.checked&&e.children?ve("div",{css:pw,children:e.children}):null]},e.label)))}):null,r?ve("div",{css:fw,children:r.map((e=>{return be("div",{css:mw(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`
|
|
2224
2230
|
height: ${Ve(800)};
|
|
2225
2231
|
width: ${Ve(800)};
|
|
2226
2232
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
@@ -2228,7 +2234,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2228
2234
|
background-image: url(${t});
|
|
2229
2235
|
background-size: cover;
|
|
2230
2236
|
background-position: center;
|
|
2231
|
-
`)}),be("div",{css:
|
|
2237
|
+
`)}),be("div",{css:gw,children:[be("div",{className:"ds-base-map-title-container",children:[ve("p",{className:"ds-base-map-title",children:e.label}),e.active?ve(Iy,{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]})]})})},vw=(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`
|
|
2232
2238
|
text-overflow: ellipsis;
|
|
2233
2239
|
height: ${s};
|
|
2234
2240
|
width: ${s};
|
|
@@ -2269,14 +2275,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2269
2275
|
height: 0.875rem;
|
|
2270
2276
|
width: 0.875rem;
|
|
2271
2277
|
}
|
|
2272
|
-
`},
|
|
2278
|
+
`},yw=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`
|
|
2273
2279
|
outline: ${_e(200)} solid ${Ie("primary",700)};
|
|
2274
2280
|
outline-offset: ${Ve(50)};
|
|
2275
2281
|
border-radius: 50%;
|
|
2276
2282
|
box-shadow:
|
|
2277
2283
|
0 0 0 0.125rem ${Ie("neutral",100)},
|
|
2278
2284
|
rgba(0, 0, 0, 0.05) 0 0.125rem 0.125rem 0.25rem;
|
|
2279
|
-
`:"",children:be("button",{type:"button",css:mw(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]})})})),bw=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:o,variant:i="cluster"})=>X(gw,{count:r,mode:o,onClick:e,ref:t,showFocusState:n,variant:i}),vw=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:o,variant:i="simple-pin"})=>X(gw,{count:r,mode:o,onClick:e,ref:t,showFocusState:n,variant:i}),yw={Paper:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(gw,{ariaLabel:e||"paper icon",icon:X(Og,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t,ref:n,showFocusState:r}),Drop:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(gw,{ariaLabel:e||"drop icon",icon:X(Lg,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t,ref:n,showFocusState:r}),Plant:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(gw,{ariaLabel:e||"plant icon",icon:X(Ag,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t,ref:n,showFocusState:r}),Point:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(gw,{ariaLabel:e||"point icon",backgroundColor:Ie("primary",500),onClick:t,ref:n,showFocusState:r})};function ww(){return"undefined"!=typeof window}function xw(e){return $w(e)?(e.nodeName||"").toLowerCase():"#document"}function Cw(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function kw(e){var t;return null==(t=($w(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $w(e){return!!ww()&&(e instanceof Node||e instanceof Cw(e).Node)}function Sw(e){return!!ww()&&(e instanceof Element||e instanceof Cw(e).Element)}function Mw(e){return!!ww()&&(e instanceof HTMLElement||e instanceof Cw(e).HTMLElement)}function Ew(e){return!(!ww()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Cw(e).ShadowRoot)}const Tw=new Set(["inline","contents"]);function Ow(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_w(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Tw.has(o)}const Lw=new Set(["table","td","th"]);function Aw(e){return Lw.has(xw(e))}const Nw=[":popover-open",":modal"];function Rw(e){return Nw.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const Dw=["transform","translate","scale","rotate","perspective"],Pw=["transform","translate","scale","rotate","perspective","filter"],Iw=["paint","layout","strict","content"];function zw(e){const t=Vw(),n=Sw(e)?_w(e):e;return Dw.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Pw.some((e=>(n.willChange||"").includes(e)))||Iw.some((e=>(n.contain||"").includes(e)))}function Vw(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Hw=new Set(["html","body","#document"]);function Bw(e){return Hw.has(xw(e))}function _w(e){return Cw(e).getComputedStyle(e)}function jw(e){return Sw(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fw(e){if("html"===xw(e))return e;const t=e.assignedSlot||e.parentNode||Ew(e)&&e.host||kw(e);return Ew(t)?t.host:t}function qw(e){const t=Fw(e);return Bw(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mw(t)&&Ow(t)?t:qw(t)}function Ww(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=qw(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Cw(o);if(i){const e=Uw(s);return t.concat(s,s.visualViewport||[],Ow(o)?o:[],e&&n?Ww(e):[])}return t.concat(o,Ww(o,[],n))}function Uw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Kw=Math.min,Gw=Math.max,Zw=Math.round,Jw=Math.floor,Xw=e=>({x:e,y:e}),Yw={left:"right",right:"left",bottom:"top",top:"bottom"},Qw={start:"end",end:"start"};function ex(e,t,n){return Gw(e,Kw(t,n))}function tx(e,t){return"function"==typeof e?e(t):e}function nx(e){return e.split("-")[0]}function rx(e){return e.split("-")[1]}function ox(e){return"x"===e?"y":"x"}function ix(e){return"y"===e?"height":"width"}const sx=new Set(["top","bottom"]);function ax(e){return sx.has(nx(e))?"y":"x"}function lx(e){return ox(ax(e))}function cx(e){return e.replace(/start|end/g,(e=>Qw[e]))}const dx=["left","right"],ux=["right","left"],hx=["top","bottom"],px=["bottom","top"];function fx(e,t,n,r){const o=rx(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?ux:dx:t?dx:ux;case"left":case"right":return t?hx:px;default:return[]}}(nx(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(cx)))),i}function mx(e){return e.replace(/left|right|bottom|top/g,(e=>Yw[e]))}function gx(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 bx(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 vx="data-floating-ui-focusable";function yx(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ew(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function wx(e){return"composedPath"in e?e.composedPath()[0]:e.target}function xx(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 Cx(e){return(null==e?void 0:e.ownerDocument)||document}function kx(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,...kx(e,t.id,n)]))}var $x="undefined"!=typeof document?de:function(){};const Sx={...ee}.useInsertionEffect||(e=>e());function Mx(e){const t=ee.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Sx((()=>{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 Ex(e,t,n){let{reference:r,floating:o}=e;const i=ax(t),s=lx(t),a=ix(s),l=nx(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(rx(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1)}return p}async function Tx(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}=tx(t,e),f=gx(p),m=a[h?"floating"===u?"reference":"floating":u],g=bx(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=bx(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 Ox=new Set(["left","top"]);function Lx(e){const t=_w(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Mw(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Zw(n)!==i||Zw(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ax(e){return Sw(e)?e:e.contextElement}function Nx(e){const t=Ax(e);if(!Mw(t))return Xw(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Lx(t);let s=(i?Zw(n.width):n.width)/r,a=(i?Zw(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Rx=Xw(0);function Dx(e){const t=Cw(e);return Vw()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Rx}function Px(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ax(e);let s=Xw(1);t&&(r?Sw(r)&&(s=Nx(r)):s=Nx(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Cw(e))&&t}(i,n,r)?Dx(i):Xw(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=Cw(i),t=r&&Sw(r)?Cw(r):r;let n=e,o=Uw(n);for(;o&&r&&t!==n;){const e=Nx(o),t=o.getBoundingClientRect(),r=_w(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=Cw(o),o=Uw(n)}}return bx({width:d,height:u,x:l,y:c})}function Ix(e,t){const n=jw(e).scrollLeft;return t?t.left+n:Px(kw(e)).left+n}function zx(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ix(e,n),y:n.top+t.scrollTop}}const Vx=new Set(["absolute","fixed"]);function Hx(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Cw(e),r=kw(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=Vw();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}const c=Ix(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=kw(e),n=jw(e),r=e.ownerDocument.body,o=Gw(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Gw(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ix(e);const a=-n.scrollTop;return"rtl"===_w(r).direction&&(s+=Gw(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(kw(e));else if(Sw(t))r=function(e,t){const n=Px(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Mw(e)?Nx(e):Xw(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=Dx(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return bx(r)}function Bx(e,t){const n=Fw(e);return!(n===t||!Sw(n)||Bw(n))&&("fixed"===_w(n).position||Bx(n,t))}function _x(e,t,n){const r=Mw(t),o=kw(t),i="fixed"===n,s=Px(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Xw(0);function c(){l.x=Ix(o)}if(r||!r&&!i)if(("body"!==xw(t)||Ow(o))&&(a=jw(t)),r){const e=Px(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?Xw(0):zx(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 jx(e){return"static"===_w(e).position}function Fx(e,t){if(!Mw(e)||"fixed"===_w(e).position)return null;if(t)return t(e);let n=e.offsetParent;return kw(e)===n&&(n=n.ownerDocument.body),n}function qx(e,t){const n=Cw(e);if(Rw(e))return n;if(!Mw(e)){let t=Fw(e);for(;t&&!Bw(t);){if(Sw(t)&&!jx(t))return t;t=Fw(t)}return n}let r=Fx(e,t);for(;r&&Aw(r)&&jx(r);)r=Fx(r,t);return r&&Bw(r)&&jx(r)&&!zw(r)?n:r||function(e){let t=Fw(e);for(;Mw(t)&&!Bw(t);){if(zw(t))return t;if(Rw(t))return null;t=Fw(t)}return null}(e)||n}const Wx={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=kw(r),a=!!t&&Rw(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Xw(1);const d=Xw(0),u=Mw(r);if((u||!u&&!i)&&(("body"!==xw(r)||Ow(s))&&(l=jw(r)),Mw(r))){const e=Px(r);c=Nx(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const h=!s||u||i?Xw(0):zx(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:kw,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Rw(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ww(e,[],!1).filter((e=>Sw(e)&&"body"!==xw(e))),o=null;const i="fixed"===_w(e).position;let s=i?Fw(e):e;for(;Sw(s)&&!Bw(s);){const t=_w(s),n=zw(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Vx.has(o.position)||Ow(s)&&!n&&Bx(e,s))?r=r.filter((e=>e!==s)):o=t,s=Fw(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=Hx(t,n,o);return e.top=Gw(r.top,e.top),e.right=Kw(r.right,e.right),e.bottom=Kw(r.bottom,e.bottom),e.left=Gw(r.left,e.left),e}),Hx(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:qx,getElementRects:async function(e){const t=this.getOffsetParent||qx,n=this.getDimensions,r=await n(e.floating);return{reference:_x(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}=Lx(e);return{width:t,height:n}},getScale:Nx,isElement:Sw,isRTL:function(e){return"rtl"===_w(e).direction}};function Ux(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kx(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=Ax(e),d=o||i?[...c?Ww(c):[],...Ww(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=kw(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:-Jw(u)+"px "+-Jw(o.clientWidth-(d+h))+"px "+-Jw(o.clientHeight-(u+p))+"px "+-Jw(d)+"px",threshold:Gw(0,Kw(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||Ux(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?Px(e):null;return l&&function t(){const r=Px(e);m&&!Ux(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 Gx=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=nx(n),a=rx(n),l="y"===ax(n),c=Ox.has(s)?-1:1,d=i&&l?-1:1,u=tx(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}}}}},Zx=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}=tx(e,t),c={x:n,y:r},d=await Tx(t,l),u=ax(nx(o)),h=ox(u);let p=c[h],f=c[u];if(i){const e="y"===h?"bottom":"right";p=ex(p+d["y"===h?"top":"left"],p,p-d[e])}if(s){const e="y"===u?"bottom":"right";f=ex(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}}}}}},Jx=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}=tx(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=nx(o),v=ax(a),y=nx(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(y||!m?[mx(a)]:function(e){const t=mx(e);return[cx(e),t,cx(t)]}(a)),C="none"!==f;!h&&C&&x.push(...fx(a,m,f,w));const k=[a,...x],$=await Tx(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=rx(e),o=lx(e),i=ix(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=mx(s)),[s,mx(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!==ax(t))||M.every((e=>ax(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=ax(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{}}}},Xx=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}=tx(e,t)||{};if(null==c)return{};const u=gx(d),h={x:n,y:r},p=lx(o),f=ix(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=Kw(u[b],S),E=Kw(u[v],S),T=M,O=k-m[f]-E,L=k/2-m[f]/2+$,A=ex(T,L,O),N=!l.arrow&&null!=rx(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}}}),Yx=(e,t,n)=>{const r=new Map,o={platform:Wx,...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}=Ex(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}=Ex(c,h,l))),n=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Qx="undefined"!=typeof document?de:function(){};function eC(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(!eC(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)&&!eC(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tC(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nC(e,t){const n=tC(e);return Math.round(t*n)/n}function rC(e){const t=ee.useRef(e);return Qx((()=>{t.current=e})),t}const oC=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?Xx({element:n.current,padding:r}).fn(t):{}:n?Xx({element:n,padding:r}).fn(t):{};var o}}),iC=(e,t)=>({...Gx(e),options:[e,t]}),sC=(e,t)=>({...Zx(e),options:[e,t]}),aC=(e,t)=>({...oC(e),options:[e,t]}),lC="data-floating-ui-focusable",cC="active",dC="selected",uC={...ee};let hC=!1,pC=0;const fC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+pC++;const mC=uC.useId||function(){const[e,t]=ee.useState((()=>hC?fC():void 0));return $x((()=>{null==e&&t(fC())}),[]),ee.useEffect((()=>{hC=!0}),[]),e};let gC;"production"!==process.env.NODE_ENV&&(gC=new Set);const bC=ee.createContext(null),vC=ee.createContext(null),yC=()=>{var e;return(null==(e=ee.useContext(bC))?void 0:e.id)||null},wC=()=>ee.useContext(vC);const xC={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},CC={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},kC=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 $C(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=mC(),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!=yC();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!Sw(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=gC)&&e.has(o)||(null==(i=gC)||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=Mx(((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 SC(e){void 0===e&&(e={});const{nodeId:t}=e,n=$C({...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=wC();$x((()=>{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);eC(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=rC(l),E=rC(o),T=rC(c),O=ee.useCallback((()=>{if(!C.current||!k.current)return;const e={placement:t,strategy:n,middleware:h};E.current&&(e.platform=E.current),Yx(C.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};L.current&&!eC($.current,t)&&($.current=t,we.flushSync((()=>{u(t)})))}))}),[h,t,n,E,T]);Qx((()=>{!1===c&&$.current.isPositioned&&($.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[c]);const L=ee.useRef(!1);Qx((()=>(L.current=!0,()=>{L.current=!1})),[]),Qx((()=>{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=nC(N.floating,d.x),r=nC(N.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...tC(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=Sw(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),h.refs.setReference(t)}),[h.refs]),f=ee.useCallback((e=>{(Sw(e)||null===e)&&(d.current=e,s(e)),(Sw(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!Sw(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 $x((()=>{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 MC(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[cC]:t,[dC]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[lC]:""},...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&&[cC,dC].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 EC=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function TC(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=mC(),d=(null==(n=i.domReference)?void 0:n.id)||c,u=ee.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(vx)?t:t.querySelector("["+vx+"]")||t:null)?void 0:e.id)||s}),[i.floating,s]),h=null!=(r=EC.get(l))?r:l,p=null!=yC(),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 OC=ke`
|
|
2285
|
+
`:"",children:be("button",{type:"button",css:vw(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]})})})),ww=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:o,variant:i="cluster"})=>X(yw,{count:r,mode:o,onClick:e,ref:t,showFocusState:n,variant:i}),xw=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:o,variant:i="simple-pin"})=>X(yw,{count:r,mode:o,onClick:e,ref:t,showFocusState:n,variant:i}),Cw={Paper:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(yw,{ariaLabel:e||"paper icon",icon:X(Og,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t,ref:n,showFocusState:r}),Drop:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(yw,{ariaLabel:e||"drop icon",icon:X(Lg,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t,ref:n,showFocusState:r}),Plant:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(yw,{ariaLabel:e||"plant icon",icon:X(Ag,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t,ref:n,showFocusState:r}),Point:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(yw,{ariaLabel:e||"point icon",backgroundColor:Ie("primary",500),onClick:t,ref:n,showFocusState:r})};function kw(){return"undefined"!=typeof window}function $w(e){return Ew(e)?(e.nodeName||"").toLowerCase():"#document"}function Sw(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Mw(e){var t;return null==(t=(Ew(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ew(e){return!!kw()&&(e instanceof Node||e instanceof Sw(e).Node)}function Tw(e){return!!kw()&&(e instanceof Element||e instanceof Sw(e).Element)}function Ow(e){return!!kw()&&(e instanceof HTMLElement||e instanceof Sw(e).HTMLElement)}function Lw(e){return!(!kw()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Sw(e).ShadowRoot)}const Aw=new Set(["inline","contents"]);function Nw(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=qw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Aw.has(o)}const Rw=new Set(["table","td","th"]);function Dw(e){return Rw.has($w(e))}const Pw=[":popover-open",":modal"];function Iw(e){return Pw.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const zw=["transform","translate","scale","rotate","perspective"],Vw=["transform","translate","scale","rotate","perspective","filter"],Hw=["paint","layout","strict","content"];function Bw(e){const t=_w(),n=Tw(e)?qw(e):e;return zw.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Vw.some((e=>(n.willChange||"").includes(e)))||Hw.some((e=>(n.contain||"").includes(e)))}function _w(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const jw=new Set(["html","body","#document"]);function Fw(e){return jw.has($w(e))}function qw(e){return Sw(e).getComputedStyle(e)}function Ww(e){return Tw(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Uw(e){if("html"===$w(e))return e;const t=e.assignedSlot||e.parentNode||Lw(e)&&e.host||Mw(e);return Lw(t)?t.host:t}function Kw(e){const t=Uw(e);return Fw(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ow(t)&&Nw(t)?t:Kw(t)}function Gw(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Kw(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Sw(o);if(i){const e=Zw(s);return t.concat(s,s.visualViewport||[],Nw(o)?o:[],e&&n?Gw(e):[])}return t.concat(o,Gw(o,[],n))}function Zw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Jw=Math.min,Xw=Math.max,Yw=Math.round,Qw=Math.floor,ex=e=>({x:e,y:e}),tx={left:"right",right:"left",bottom:"top",top:"bottom"},nx={start:"end",end:"start"};function rx(e,t,n){return Xw(e,Jw(t,n))}function ox(e,t){return"function"==typeof e?e(t):e}function ix(e){return e.split("-")[0]}function sx(e){return e.split("-")[1]}function ax(e){return"x"===e?"y":"x"}function lx(e){return"y"===e?"height":"width"}const cx=new Set(["top","bottom"]);function dx(e){return cx.has(ix(e))?"y":"x"}function ux(e){return ax(dx(e))}function hx(e){return e.replace(/start|end/g,(e=>nx[e]))}const px=["left","right"],fx=["right","left"],mx=["top","bottom"],gx=["bottom","top"];function bx(e,t,n,r){const o=sx(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?fx:px:t?px:fx;case"left":case"right":return t?mx:gx;default:return[]}}(ix(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(hx)))),i}function vx(e){return e.replace(/left|right|bottom|top/g,(e=>tx[e]))}function yx(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 wx(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 xx="data-floating-ui-focusable";function Cx(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Lw(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function kx(e){return"composedPath"in e?e.composedPath()[0]:e.target}function $x(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 Sx(e){return(null==e?void 0:e.ownerDocument)||document}function Mx(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,...Mx(e,t.id,n)]))}var Ex="undefined"!=typeof document?de:function(){};const Tx={...ee}.useInsertionEffect||(e=>e());function Ox(e){const t=ee.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Tx((()=>{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 Lx(e,t,n){let{reference:r,floating:o}=e;const i=dx(t),s=ux(t),a=lx(s),l=ix(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(sx(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1)}return p}async function Ax(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}=ox(t,e),f=yx(p),m=a[h?"floating"===u?"reference":"floating":u],g=wx(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=wx(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 Nx=new Set(["left","top"]);function Rx(e){const t=qw(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ow(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Yw(n)!==i||Yw(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Dx(e){return Tw(e)?e:e.contextElement}function Px(e){const t=Dx(e);if(!Ow(t))return ex(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Rx(t);let s=(i?Yw(n.width):n.width)/r,a=(i?Yw(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Ix=ex(0);function zx(e){const t=Sw(e);return _w()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ix}function Vx(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Dx(e);let s=ex(1);t&&(r?Tw(r)&&(s=Px(r)):s=Px(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Sw(e))&&t}(i,n,r)?zx(i):ex(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=Sw(i),t=r&&Tw(r)?Sw(r):r;let n=e,o=Zw(n);for(;o&&r&&t!==n;){const e=Px(o),t=o.getBoundingClientRect(),r=qw(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=Sw(o),o=Zw(n)}}return wx({width:d,height:u,x:l,y:c})}function Hx(e,t){const n=Ww(e).scrollLeft;return t?t.left+n:Vx(Mw(e)).left+n}function Bx(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Hx(e,n),y:n.top+t.scrollTop}}const _x=new Set(["absolute","fixed"]);function jx(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Sw(e),r=Mw(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=_w();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}const c=Hx(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=Mw(e),n=Ww(e),r=e.ownerDocument.body,o=Xw(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xw(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Hx(e);const a=-n.scrollTop;return"rtl"===qw(r).direction&&(s+=Xw(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Mw(e));else if(Tw(t))r=function(e,t){const n=Vx(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ow(e)?Px(e):ex(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=zx(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return wx(r)}function Fx(e,t){const n=Uw(e);return!(n===t||!Tw(n)||Fw(n))&&("fixed"===qw(n).position||Fx(n,t))}function qx(e,t,n){const r=Ow(t),o=Mw(t),i="fixed"===n,s=Vx(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=ex(0);function c(){l.x=Hx(o)}if(r||!r&&!i)if(("body"!==$w(t)||Nw(o))&&(a=Ww(t)),r){const e=Vx(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?ex(0):Bx(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 Wx(e){return"static"===qw(e).position}function Ux(e,t){if(!Ow(e)||"fixed"===qw(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Mw(e)===n&&(n=n.ownerDocument.body),n}function Kx(e,t){const n=Sw(e);if(Iw(e))return n;if(!Ow(e)){let t=Uw(e);for(;t&&!Fw(t);){if(Tw(t)&&!Wx(t))return t;t=Uw(t)}return n}let r=Ux(e,t);for(;r&&Dw(r)&&Wx(r);)r=Ux(r,t);return r&&Fw(r)&&Wx(r)&&!Bw(r)?n:r||function(e){let t=Uw(e);for(;Ow(t)&&!Fw(t);){if(Bw(t))return t;if(Iw(t))return null;t=Uw(t)}return null}(e)||n}const Gx={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Mw(r),a=!!t&&Iw(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ex(1);const d=ex(0),u=Ow(r);if((u||!u&&!i)&&(("body"!==$w(r)||Nw(s))&&(l=Ww(r)),Ow(r))){const e=Vx(r);c=Px(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const h=!s||u||i?ex(0):Bx(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:Mw,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Iw(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Gw(e,[],!1).filter((e=>Tw(e)&&"body"!==$w(e))),o=null;const i="fixed"===qw(e).position;let s=i?Uw(e):e;for(;Tw(s)&&!Fw(s);){const t=qw(s),n=Bw(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&_x.has(o.position)||Nw(s)&&!n&&Fx(e,s))?r=r.filter((e=>e!==s)):o=t,s=Uw(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=jx(t,n,o);return e.top=Xw(r.top,e.top),e.right=Jw(r.right,e.right),e.bottom=Jw(r.bottom,e.bottom),e.left=Xw(r.left,e.left),e}),jx(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Kx,getElementRects:async function(e){const t=this.getOffsetParent||Kx,n=this.getDimensions,r=await n(e.floating);return{reference:qx(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}=Rx(e);return{width:t,height:n}},getScale:Px,isElement:Tw,isRTL:function(e){return"rtl"===qw(e).direction}};function Zx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jx(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=Dx(e),d=o||i?[...c?Gw(c):[],...Gw(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=Mw(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:-Qw(u)+"px "+-Qw(o.clientWidth-(d+h))+"px "+-Qw(o.clientHeight-(u+p))+"px "+-Qw(d)+"px",threshold:Xw(0,Jw(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||Zx(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?Vx(e):null;return l&&function t(){const r=Vx(e);m&&!Zx(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 Xx=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=ix(n),a=sx(n),l="y"===dx(n),c=Nx.has(s)?-1:1,d=i&&l?-1:1,u=ox(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}}}}},Yx=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}=ox(e,t),c={x:n,y:r},d=await Ax(t,l),u=dx(ix(o)),h=ax(u);let p=c[h],f=c[u];if(i){const e="y"===h?"bottom":"right";p=rx(p+d["y"===h?"top":"left"],p,p-d[e])}if(s){const e="y"===u?"bottom":"right";f=rx(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}}}}}},Qx=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}=ox(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=ix(o),v=dx(a),y=ix(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(y||!m?[vx(a)]:function(e){const t=vx(e);return[hx(e),t,hx(t)]}(a)),C="none"!==f;!h&&C&&x.push(...bx(a,m,f,w));const k=[a,...x],$=await Ax(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=sx(e),o=ux(e),i=lx(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=vx(s)),[s,vx(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!==dx(t))||M.every((e=>dx(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=dx(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{}}}},eC=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}=ox(e,t)||{};if(null==c)return{};const u=yx(d),h={x:n,y:r},p=ux(o),f=lx(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=Jw(u[b],S),E=Jw(u[v],S),T=M,O=k-m[f]-E,L=k/2-m[f]/2+$,A=rx(T,L,O),N=!l.arrow&&null!=sx(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}}}),tC=(e,t,n)=>{const r=new Map,o={platform:Gx,...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}=Lx(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}=Lx(c,h,l))),n=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var nC="undefined"!=typeof document?de:function(){};function rC(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(!rC(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)&&!rC(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function oC(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iC(e,t){const n=oC(e);return Math.round(t*n)/n}function sC(e){const t=ee.useRef(e);return nC((()=>{t.current=e})),t}const aC=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?eC({element:n.current,padding:r}).fn(t):{}:n?eC({element:n,padding:r}).fn(t):{};var o}}),lC=(e,t)=>({...Xx(e),options:[e,t]}),cC=(e,t)=>({...Yx(e),options:[e,t]}),dC=(e,t)=>({...aC(e),options:[e,t]}),uC="data-floating-ui-focusable",hC="active",pC="selected",fC={...ee};let mC=!1,gC=0;const bC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+gC++;const vC=fC.useId||function(){const[e,t]=ee.useState((()=>mC?bC():void 0));return Ex((()=>{null==e&&t(bC())}),[]),ee.useEffect((()=>{mC=!0}),[]),e};let yC;"production"!==process.env.NODE_ENV&&(yC=new Set);const wC=ee.createContext(null),xC=ee.createContext(null),CC=()=>{var e;return(null==(e=ee.useContext(wC))?void 0:e.id)||null},kC=()=>ee.useContext(xC);const $C={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},SC={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},MC=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 EC(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=vC(),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!=CC();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!Tw(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=yC)&&e.has(o)||(null==(i=yC)||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=Ox(((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 TC(e){void 0===e&&(e={});const{nodeId:t}=e,n=EC({...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=kC();Ex((()=>{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);rC(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=sC(l),E=sC(o),T=sC(c),O=ee.useCallback((()=>{if(!C.current||!k.current)return;const e={placement:t,strategy:n,middleware:h};E.current&&(e.platform=E.current),tC(C.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};L.current&&!rC($.current,t)&&($.current=t,we.flushSync((()=>{u(t)})))}))}),[h,t,n,E,T]);nC((()=>{!1===c&&$.current.isPositioned&&($.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[c]);const L=ee.useRef(!1);nC((()=>(L.current=!0,()=>{L.current=!1})),[]),nC((()=>{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=iC(N.floating,d.x),r=iC(N.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...oC(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=Tw(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),h.refs.setReference(t)}),[h.refs]),f=ee.useCallback((e=>{(Tw(e)||null===e)&&(d.current=e,s(e)),(Tw(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!Tw(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 Ex((()=>{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 OC(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[hC]:t,[pC]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[uC]:""},...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&&[hC,pC].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 LC=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function AC(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=vC(),d=(null==(n=i.domReference)?void 0:n.id)||c,u=ee.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(xx)?t:t.querySelector("["+xx+"]")||t:null)?void 0:e.id)||s}),[i.floating,s]),h=null!=(r=LC.get(l))?r:l,p=null!=CC(),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 NC=ke`
|
|
2280
2286
|
height: auto;
|
|
2281
2287
|
max-height: 32rem;
|
|
2282
2288
|
width: 100%;
|
|
@@ -2290,7 +2296,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2290
2296
|
0 0.25rem 0.375rem -0.25rem #0000001a,
|
|
2291
2297
|
0 0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
2292
2298
|
outline: 0;
|
|
2293
|
-
`,
|
|
2299
|
+
`,RC=ke`
|
|
2294
2300
|
display: flex;
|
|
2295
2301
|
align-items: flex-start;
|
|
2296
2302
|
justify-content: space-between;
|
|
@@ -2303,7 +2309,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2303
2309
|
.ds-map-pop-up-close-button {
|
|
2304
2310
|
margin-top: ${Ve(100)};
|
|
2305
2311
|
}
|
|
2306
|
-
`,
|
|
2312
|
+
`,DC=ke`
|
|
2307
2313
|
height: 100%;
|
|
2308
2314
|
max-height: 25rem;
|
|
2309
2315
|
overflow-y: auto;
|
|
@@ -2311,12 +2317,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2311
2317
|
&:focus-visible {
|
|
2312
2318
|
outline-color: ${Ie("primary",700)};
|
|
2313
2319
|
}
|
|
2314
|
-
`,
|
|
2320
|
+
`,PC=ke`
|
|
2315
2321
|
padding: ${Ve(200)} ${Ve(300)};
|
|
2316
2322
|
border-top: ${_e(100)} solid
|
|
2317
2323
|
${Ie("neutral",300)};
|
|
2318
2324
|
min-height: 2.75rem;
|
|
2319
|
-
`,
|
|
2325
|
+
`,IC=(e,t,n,r,o,i)=>ke`
|
|
2320
2326
|
height: ${e}px;
|
|
2321
2327
|
width: ${t}px;
|
|
2322
2328
|
position: absolute;
|
|
@@ -2325,15 +2331,15 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2325
2331
|
${`${o}: -${i-1}px`};
|
|
2326
2332
|
background-color: ${Ie("neutral",100)};
|
|
2327
2333
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2328
|
-
`,
|
|
2334
|
+
`,zC=({open:e,onOpenChange:t,anchorRef:n,header:r,content:o,footer:i,placement:s="bottom",offset:a=30,closeOnEscape:l=!0,closeOnOutsideClick:c=!1,labels:d})=>{const u=tg("MapPopUp",d),h=se(null),{refs:p,floatingStyles:f,context:m,middlewareData:g,placement:b}=TC({open:e,onOpenChange:t,placement:s,whileElementsMounted:Jx,middleware:[lC(a),(v={fallbackAxisSideDirection:"start"},{...Qx(v),options:[v,y]}),cC({padding:8}),dC({element:h})]});var v,y;te.useEffect((()=>{n?.current&&p.setReference(n.current)}),[n,p]);const w=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=kC(),g=Ox("function"==typeof l?l:()=>!1),b="function"==typeof l?g:l,v=ee.useRef(!1),{escapeKey:y,outsidePress:w}=MC(p),{escapeKey:x,outsidePress:C}=MC(f),k=ee.useRef(!1),$=Ox((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?Mx(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=Ox((e=>{var t;const n=()=>{var t;$(e),null==(t=kx(e))||t.removeEventListener("keydown",n)};null==(t=kx(e))||t.addEventListener("keydown",n)})),M=Ox((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=kx(e),l="[data-floating-ui-inert]",d=Sx(o.floating).querySelectorAll(l);let u=Tw(a)?a:null;for(;u&&!Fw(u);){const e=Uw(u);if(Fw(e)||!Tw(e))break;u=e}if(d.length&&Tw(a)&&!a.matches("html,body")&&!Cx(a,o.floating)&&Array.from(d).every((e=>!Cx(u,e))))return;if(Ow(a)&&O){const t=Fw(a),n=qw(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&&Mx(m.nodesRef.current,h).some((t=>{var n;return $x(e,null==(n=t.context)?void 0:n.elements.floating)}));if($x(e,o.floating)||$x(e,o.domReference)||p)return;const f=m?Mx(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=Ox((e=>{var t;const n=()=>{var t;M(e),null==(t=kx(e))||t.removeEventListener(c,n)};null==(t=kx(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}),_w()?5:0)}const u=Sx(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&&(Tw(o.domReference)&&(p=Gw(o.domReference)),Tw(o.floating)&&(p=p.concat(Gw(o.floating))),!Tw(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(Gw(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&&{[$C[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},[SC[c]]:()=>{i.current.insideReactTree=!0}})),[$,c,i]);return ee.useMemo((()=>s?{reference:T,floating:O}:{}),[s,T,O])}(m,{escapeKey:l,outsidePress:c}),x=AC(m,{role:"dialog"}),{getFloatingProps:C}=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=>OC(t,e,"reference")),t),i=ee.useCallback((t=>OC(t,e,"floating")),n),s=ee.useCallback((t=>OC(t,e,"item")),r);return ee.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}([w,x]),{x:k,y:$}=g.arrow??{x:null,y:null},S={top:"bottom",right:"left",bottom:"top",left:"right"}[b.split("-")[0]];if(!e)return null;let M=a-1,E=4;return"left"!==S&&"right"!==S||(M=4,E=a-1),be(ye,{children:[be("div",{ref:p.setFloating,style:f,"aria-label":u.dialogAriaLabel,"aria-modal":!0,...C(),css:NC,children:[be("div",{css:RC,children:[r,ve(_b,{onClick:()=>t(!1),className:"ds-map-pop-up-close-button","aria-label":u.closeLabel})]}),ve("div",{css:DC,children:o}),i?ve("div",{css:PC,children:i}):null,ve("div",{ref:h,css:IC(M,E,k,$,S,a)})]}),ve("div",{className:"fixed inset-0 z-[999] bg-black/20 backdrop-blur-[1px]",onClick:()=>c&&t(!1)})]})},VC=ke`
|
|
2329
2335
|
background-color: ${Ie("neutral",100)};
|
|
2330
|
-
`,
|
|
2336
|
+
`,HC=ke`
|
|
2331
2337
|
padding: ${Ve(400)} ${Ve(400)} 0
|
|
2332
2338
|
${Ve(400)};
|
|
2333
2339
|
&:focus-visible {
|
|
2334
2340
|
outline-color: ${Ie("primary",700)};
|
|
2335
2341
|
}
|
|
2336
|
-
`,
|
|
2342
|
+
`,BC=ke`
|
|
2337
2343
|
font-size: ${ze(400)};
|
|
2338
2344
|
font-weight: 700;
|
|
2339
2345
|
line-height: ${He(600)};
|
|
@@ -2343,14 +2349,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2343
2349
|
align-items: center;
|
|
2344
2350
|
text-align: left;
|
|
2345
2351
|
gap: 0.625rem;
|
|
2346
|
-
`,
|
|
2352
|
+
`,_C=ke`
|
|
2347
2353
|
font-size: ${ze(200)};
|
|
2348
2354
|
font-weight: 400;
|
|
2349
2355
|
line-height: ${He(400)};
|
|
2350
2356
|
text-align: left;
|
|
2351
2357
|
color: ${Ie("neutral",700)};
|
|
2352
2358
|
margin-bottom: ${Ve(200)};
|
|
2353
|
-
`,
|
|
2359
|
+
`,jC=ke`
|
|
2354
2360
|
width: 100%;
|
|
2355
2361
|
padding: ${Ve(400)} 0;
|
|
2356
2362
|
border-bottom: ${_e(100)} solid
|
|
@@ -2359,32 +2365,32 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2359
2365
|
&:last-of-type {
|
|
2360
2366
|
border-bottom: none;
|
|
2361
2367
|
}
|
|
2362
|
-
`,
|
|
2368
|
+
`,FC=ke`
|
|
2363
2369
|
display: flex;
|
|
2364
2370
|
align-items: flex-start;
|
|
2365
2371
|
justify-content: space-between;
|
|
2366
|
-
`,
|
|
2372
|
+
`,qC=ke`
|
|
2367
2373
|
display: flex;
|
|
2368
2374
|
flex-direction: column;
|
|
2369
|
-
`,
|
|
2375
|
+
`,WC=e=>ke`
|
|
2370
2376
|
font-size: ${ze(400)};
|
|
2371
2377
|
font-weight: 400;
|
|
2372
2378
|
line-height: ${He(600)};
|
|
2373
2379
|
text-align: left;
|
|
2374
2380
|
color: ${Ie("neutral",e?500:800)};
|
|
2375
|
-
`,
|
|
2381
|
+
`,UC=e=>ke`
|
|
2376
2382
|
font-size: ${ze(300)};
|
|
2377
2383
|
font-weight: 400;
|
|
2378
2384
|
line-height: ${He(500)};
|
|
2379
2385
|
text-align: left;
|
|
2380
2386
|
color: ${Ie("neutral",e?500:700)};
|
|
2381
|
-
`,
|
|
2387
|
+
`,KC=({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:jC,children:[be("div",p?{css:FC,children:[be("div",{css:qC,children:[ve("p",{css:WC(a),"aria-label":t,"aria-disabled":a,children:t}),ve("p",{"aria-label":n,css:UC(a),children:n})]}),ve(ly,{"aria-label":`${t}, ${n}`,name:e,disabled:a,defaultChecked:c,onChange:d})]}:{style:{display:"flex",flexDirection:"column"},children:[ve(Kv,{value:e,disabled:a,fontSize:"1rem",color:"var(--chakra-colors-neutral-800)",children:t}),ve("p",{style:{marginLeft:"1.75rem"},css:UC(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]})},GC=({label:e,caption:t,value:n,layerItems:o,onChangeForRadioVariant:i,labels:s})=>{const a=tg("LayerGroup",s),[l,c]=ae({}),[d]=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 u=(e,t,n,r)=>{const o={...l,[e]:t};c(o),n&&n(e,t,r)},h=Object.values(l).filter((e=>!0===e)).length,p=a.groupAriaLabel(e,h,t);return be(A.Item,{value:n,width:"100%",children:[be(A.ItemTrigger,{css:HC,alignItems:"flex-start","aria-label":p,children:[be(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[be("span",{css:BC,children:[e,ve(Iy,{label:a.activeTagLabel(h),size:"small",variant:h>0?"success":"info-grey"})]}),ve("div",{css:_C,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(Gv,{name:e,value:d,customGap:"0",onChange:(e,t)=>u(e,!!t,i,t),children:o.map((e=>ve(KC,{...e,onChange:(t,n)=>u(t,n,e.onChange)},e.label)))})})]})},ZC=({children:e,defaultValue:t,...n})=>ve("div",{css:VC,style:{width:"100%"},children:ve(A.Root,{css:{},defaultValue:t,multiple:!0,...n,children:e})}),JC=ke`
|
|
2382
2388
|
margin-bottom: ${Ve(400)};
|
|
2383
2389
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2384
2390
|
border-radius: ${Be(300)};
|
|
2385
2391
|
box-shadow: 0 1px 0.125rem 0 #0000000d;
|
|
2386
2392
|
background-color: ${Ie("neutral",100)};
|
|
2387
|
-
`,
|
|
2393
|
+
`,XC=ke`
|
|
2388
2394
|
padding: 0.375rem ${Ve(200)};
|
|
2389
2395
|
align-items: center;
|
|
2390
2396
|
background-color: ${Ie("neutral",100)};
|
|
@@ -2408,12 +2414,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2408
2414
|
0 0 0 0.125rem ${Ie("neutral",100)},
|
|
2409
2415
|
rgba(0, 0, 0, 0.05) 0 0.125rem 0.125rem 0.25rem;
|
|
2410
2416
|
}
|
|
2411
|
-
`,
|
|
2417
|
+
`,YC=ke`
|
|
2412
2418
|
font-size: ${ze(200)};
|
|
2413
2419
|
font-weight: 700;
|
|
2414
2420
|
line-height: ${He(400)};
|
|
2415
2421
|
color: ${Ie("neutral",800)};
|
|
2416
|
-
`,
|
|
2422
|
+
`,QC=ke`
|
|
2417
2423
|
padding: ${Ve(300)} ${Ve(200)};
|
|
2418
2424
|
display: flex;
|
|
2419
2425
|
flex-direction: column;
|
|
@@ -2430,7 +2436,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2430
2436
|
margin-bottom: 0;
|
|
2431
2437
|
}
|
|
2432
2438
|
}
|
|
2433
|
-
`,
|
|
2439
|
+
`,ek=({label:e,children:t,openedByDefault:n})=>ve("div",{children:ve(A.Root,{defaultValue:n?[e]:[],multiple:!0,children:be(A.Item,{css:JC,value:e,children:[be(A.ItemTrigger,{css:XC,children:[ve(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:ve("p",{css:YC,children:e})}),ve(A.ItemIndicator,{display:"flex",children:ve(dg,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),ve(A.ItemContent,{css:QC,children:pe.map(t,(e=>ve("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),tk=ke`
|
|
2434
2440
|
padding: ${Ve(300)};
|
|
2435
2441
|
padding-bottom: ${Ve(500)};
|
|
2436
2442
|
display: flex;
|
|
@@ -2438,7 +2444,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2438
2444
|
border-bottom: ${_e(100)} solid
|
|
2439
2445
|
${Ie("neutral",300)};
|
|
2440
2446
|
background-color: ${Ie("neutral",100)};
|
|
2441
|
-
`,
|
|
2447
|
+
`,nk=ke`
|
|
2442
2448
|
display: flex;
|
|
2443
2449
|
flex-direction: column;
|
|
2444
2450
|
|
|
@@ -2447,44 +2453,44 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2447
2453
|
fill: ${Ie("neutral",700)} !important;
|
|
2448
2454
|
}
|
|
2449
2455
|
}
|
|
2450
|
-
`,
|
|
2456
|
+
`,rk=ke`
|
|
2451
2457
|
display: flex;
|
|
2452
2458
|
align-items: flex-start;
|
|
2453
2459
|
justify-content: space-between;
|
|
2454
2460
|
gap: ${Ve(300)};
|
|
2455
2461
|
margin-bottom: ${Ve(400)};
|
|
2456
|
-
`,
|
|
2462
|
+
`,ok=ke`
|
|
2457
2463
|
font-size: ${ze(400)};
|
|
2458
2464
|
line-height: ${He(600)};
|
|
2459
2465
|
font-weight: 400;
|
|
2460
2466
|
text-align: left;
|
|
2461
2467
|
color: ${Ie("neutral",900)};
|
|
2462
|
-
`,
|
|
2468
|
+
`,ik=ke`
|
|
2463
2469
|
font-size: ${ze(300)};
|
|
2464
2470
|
line-height: ${He(500)};
|
|
2465
2471
|
font-weight: 400;
|
|
2466
2472
|
text-align: left;
|
|
2467
2473
|
color: ${Ie("neutral",700)};
|
|
2468
|
-
`,
|
|
2474
|
+
`,sk=ke`
|
|
2469
2475
|
display: flex;
|
|
2470
2476
|
justify-content: space-between;
|
|
2471
2477
|
|
|
2472
2478
|
button {
|
|
2473
2479
|
width: 46%;
|
|
2474
2480
|
}
|
|
2475
|
-
`,
|
|
2481
|
+
`,ak=ke`
|
|
2476
2482
|
width: 14.625rem;
|
|
2477
2483
|
border: ${_e(100)} solid ${Ie("neutral",600)};
|
|
2478
2484
|
border-radius: ${Be(300)};
|
|
2479
|
-
`,
|
|
2485
|
+
`,lk=ke`
|
|
2480
2486
|
padding: ${Ve(300)};
|
|
2481
|
-
`,
|
|
2487
|
+
`,ck=ke`
|
|
2482
2488
|
font-size: ${ze(300)};
|
|
2483
2489
|
line-height: ${He(500)};
|
|
2484
2490
|
font-weight: 400;
|
|
2485
2491
|
text-align: left;
|
|
2486
2492
|
color: ${Ie("neutral",900)};
|
|
2487
|
-
`,
|
|
2493
|
+
`,dk=ke`
|
|
2488
2494
|
display: flex;
|
|
2489
2495
|
align-items: center;
|
|
2490
2496
|
gap: ${Ve(300)};
|
|
@@ -2505,20 +2511,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2505
2511
|
margin-top: 1.125rem;
|
|
2506
2512
|
width: 100%;
|
|
2507
2513
|
}
|
|
2508
|
-
`,
|
|
2514
|
+
`,uk=({defaultValue:e,onOpacityChanged:t,labels:n})=>{const r=tg("OpacityControl",n),[o,i]=ae(e);return be(u.Root,{positioning:{placement:"bottom-end"},children:[ve(u.Trigger,{asChild:!0,children:ve(ng,{label:r.opacityButtonLabel,size:"small",variant:"secondary",leftIcon:ve(cg,{})})}),ve(u.Positioner,{children:ve(u.Content,{css:ak,children:be(u.Body,{css:lk,children:[ve("p",{css:ck,children:r.opacityHeading}),be("div",{css:dk,children:[be("div",{style:{position:"relative"},children:[ve(Ab,{"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:"1.15625rem",right:"0.3125rem"},children:r.percentSuffix})]}),ve(sy,{min:0,max:100,value:[o],onValueChangeEnd:({value:e})=>{i(e[0]),t&&t(e[0])}})]})]})})})]})},hk=({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:tk,children:[ve("div",{css:nk,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:rk,children:[be("div",{children:[ve("h3",{css:ok,children:e}),ve("p",{css:ik,children:t})]}),ve(ng,{label:d.removeLabel,size:"small",variant:"secondary",rightIcon:ve(hg,{}),onClick:i})]}),s,be("div",{css:sk,children:[ve(ng,{label:d.aboutDataLabel,size:"small",variant:"secondary",leftIcon:ve(cg,{}),onClick:a}),ve(uk,{defaultValue:80,onOpacityChanged:l})]})]})]})},pk=e=>ke`
|
|
2509
2515
|
width: ${Ve(500)};
|
|
2510
2516
|
height: ${Ve(500)};
|
|
2511
2517
|
border-radius: 50%;
|
|
2512
2518
|
background-color: ${e};
|
|
2513
2519
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
2514
|
-
`,
|
|
2520
|
+
`,fk=e=>ke`
|
|
2515
2521
|
width: ${Ve(500)};
|
|
2516
2522
|
height: ${Ve(200)};
|
|
2517
2523
|
border-radius: ${Be(200)};
|
|
2518
2524
|
background-color: ${e};
|
|
2519
2525
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
2520
2526
|
margin-top: 0.375rem;
|
|
2521
|
-
`,
|
|
2527
|
+
`,mk=e=>ke`
|
|
2522
2528
|
width: ${Ve(500)};
|
|
2523
2529
|
height: ${Ve(500)};
|
|
2524
2530
|
border-radius: 50%;
|
|
@@ -2531,26 +2537,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2531
2537
|
width: 0.625rem;
|
|
2532
2538
|
height: 0.625rem;
|
|
2533
2539
|
}
|
|
2534
|
-
`,
|
|
2540
|
+
`,gk=ke`
|
|
2535
2541
|
width: 100%;
|
|
2536
2542
|
display: flex;
|
|
2537
2543
|
justify-content: space-between;
|
|
2538
2544
|
gap: ${Ve(200)};
|
|
2539
2545
|
margin-bottom: ${Ve(400)};
|
|
2540
|
-
`,
|
|
2546
|
+
`,bk=ke`
|
|
2541
2547
|
display: flex;
|
|
2542
2548
|
gap: ${Ve(200)};
|
|
2543
|
-
`,
|
|
2549
|
+
`,vk=ke`
|
|
2544
2550
|
font-size: ${ze(300)};
|
|
2545
2551
|
line-height: ${He(500)};
|
|
2546
2552
|
font-weight: 400;
|
|
2547
2553
|
color: ${Ie("neutral",800)};
|
|
2548
|
-
`,
|
|
2554
|
+
`,yk=ke`
|
|
2549
2555
|
font-size: ${ze(200)};
|
|
2550
2556
|
line-height: ${He(400)};
|
|
2551
2557
|
font-weight: 400;
|
|
2552
2558
|
color: ${Ie("neutral",700)};
|
|
2553
|
-
`,
|
|
2559
|
+
`,wk=ke`
|
|
2554
2560
|
button {
|
|
2555
2561
|
height: 1.5625rem;
|
|
2556
2562
|
font-size: ${ze(200)};
|
|
@@ -2559,12 +2565,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2559
2565
|
color: ${Ie("neutral",600)};
|
|
2560
2566
|
padding: 0 0.625rem;
|
|
2561
2567
|
}
|
|
2562
|
-
`,
|
|
2568
|
+
`,xk=({type:e,label:t,caption:n,color:r,onActionClick:o,showActionButton:i,pointIcon:s=ve(Tg,{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:gk,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:bk,children:[be("div",{children:[f&&ve("div",{css:pk(r)}),m&&ve("div",{css:fk(r)}),g&&ve("div",{css:mk(r),children:s})]}),be("div",{children:[ve("p",{id:h,css:vk,children:t}),n?ve("p",{id:p,css:yk,children:n}):null]})]}),o&&i?ve("div",{css:wk,children:ve(ng,{type:"button",variant:"borderless",label:String(y),rightIcon:ve(d?mg:fg,{}),"aria-pressed":d,"aria-labelledby":`${b} ${h}`,onClick:()=>{u((e=>!e)),o?.()}})}):null]})},Ck=ke`
|
|
2563
2569
|
width: 100%;
|
|
2564
2570
|
display: flex;
|
|
2565
2571
|
flex-direction: column;
|
|
2566
2572
|
margin-bottom: ${Ve(400)};
|
|
2567
|
-
`,
|
|
2573
|
+
`,kk=ke`
|
|
2568
2574
|
height: ${Ve(500)};
|
|
2569
2575
|
width: 100%;
|
|
2570
2576
|
margin-bottom: ${Ve(200)};
|
|
@@ -2582,34 +2588,34 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2582
2588
|
border-top-right-radius: 0.1875rem;
|
|
2583
2589
|
border-bottom-right-radius: 0.1875rem;
|
|
2584
2590
|
}
|
|
2585
|
-
|
|
2591
|
+
`,$k=ke`
|
|
2586
2592
|
display: flex;
|
|
2587
2593
|
justify-content: space-between;
|
|
2588
2594
|
align-items: flex-start;
|
|
2589
|
-
`,
|
|
2595
|
+
`,Sk=ke`
|
|
2590
2596
|
width: 100%;
|
|
2591
2597
|
font-size: ${ze(200)};
|
|
2592
2598
|
line-height: ${He(400)};
|
|
2593
2599
|
font-weight: 400;
|
|
2594
2600
|
color: ${Ie("neutral",800)};
|
|
2595
2601
|
text-align: center;
|
|
2596
|
-
`,
|
|
2602
|
+
`,Mk=ke`
|
|
2597
2603
|
font-size: ${ze(200)};
|
|
2598
2604
|
line-height: ${He(400)};
|
|
2599
2605
|
font-weight: 400;
|
|
2600
2606
|
color: ${Ie("neutral",700)};
|
|
2601
2607
|
text-align: center;
|
|
2602
|
-
|
|
2608
|
+
`,Ek=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(", ")})`},Tk=({colors:e,values:t,subLabels:n,isGradient:r})=>{return be("div",{css:Ck,children:[ve("div",r?{css:(o=Ek(e),ke`
|
|
2603
2609
|
height: ${Ve(500)};
|
|
2604
2610
|
width: 100%;
|
|
2605
2611
|
margin-bottom: ${Ve(200)};
|
|
2606
2612
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2607
2613
|
border-radius: ${Be(300)};
|
|
2608
2614
|
${o?`background: ${o};`:""}
|
|
2609
|
-
`)}:{css:
|
|
2615
|
+
`)}:{css:kk,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:$k,children:t?.map((e=>ve("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:ve("p",{css:Sk,children:e})},e)))}),n&&n.length?ve("div",{css:$k,children:n.map((e=>ve("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:ve("p",{css:Mk,style:{width:"100%"},children:e})},e)))}):null]});var o},Ok=ke`
|
|
2610
2616
|
display: flex;
|
|
2611
2617
|
flex-direction: column;
|
|
2612
|
-
`,
|
|
2618
|
+
`,Lk=ke`
|
|
2613
2619
|
display: flex;
|
|
2614
2620
|
gap: ${Ve(400)};
|
|
2615
2621
|
align-items: center;
|
|
@@ -2617,46 +2623,46 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2617
2623
|
.ds-select-input-container {
|
|
2618
2624
|
margin-bottom: 0rem;
|
|
2619
2625
|
}
|
|
2620
|
-
`,
|
|
2626
|
+
`,Ak=ke`
|
|
2621
2627
|
font-size: ${ze(500)};
|
|
2622
2628
|
line-height: ${He(700)};
|
|
2623
2629
|
font-weight: 400;
|
|
2624
2630
|
color: ${Ie("neutral",700)};
|
|
2625
|
-
`,
|
|
2631
|
+
`,Nk=ke`
|
|
2626
2632
|
font-size: ${ze(500)};
|
|
2627
2633
|
line-height: ${He(700)};
|
|
2628
2634
|
font-weight: 400;
|
|
2629
2635
|
color: ${Ie("neutral",700)};
|
|
2630
|
-
`,
|
|
2636
|
+
`,Rk=({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:Ok,children:be("div",{css:Lk,children:[ve("div",{style:{width:"5rem"},children:ve(Hy,{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:Ak,children:s.perPageLabel})]})}),o?ve("p",{css:Nk,children:s.showingLabel(a,l,n)}):null]})},Dk=e=>ke`
|
|
2631
2637
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2632
2638
|
${e?"border: none;":""}
|
|
2633
|
-
`,
|
|
2639
|
+
`,Pk=e=>ke`
|
|
2634
2640
|
color: ${Ie("neutral",e?400:700)};
|
|
2635
2641
|
line-height: ${He(500)};
|
|
2636
2642
|
white-space: nowrap;
|
|
2637
2643
|
overflow: hidden;
|
|
2638
2644
|
text-overflow: ellipsis;
|
|
2639
|
-
`,
|
|
2645
|
+
`,Ik=ke`
|
|
2640
2646
|
font-weight: 400;
|
|
2641
2647
|
color: ${Ie("neutral",700)};
|
|
2642
2648
|
white-space: nowrap;
|
|
2643
2649
|
overflow: hidden;
|
|
2644
2650
|
text-overflow: ellipsis;
|
|
2645
|
-
`,
|
|
2651
|
+
`,zk=ke`
|
|
2646
2652
|
color: ${Ie("neutral",700)};
|
|
2647
2653
|
text-align: right;
|
|
2648
2654
|
font-weight: 700;
|
|
2649
2655
|
white-space: nowrap;
|
|
2650
2656
|
overflow: hidden;
|
|
2651
2657
|
text-overflow: ellipsis;
|
|
2652
|
-
`,
|
|
2658
|
+
`,Vk=e=>ke`
|
|
2653
2659
|
width: ${Ve(400)};
|
|
2654
2660
|
height: ${Ve(400)};
|
|
2655
2661
|
|
|
2656
2662
|
path {
|
|
2657
2663
|
fill: ${Ie("neutral",e?400:700)};
|
|
2658
2664
|
}
|
|
2659
|
-
`,
|
|
2665
|
+
`,Hk=ke`
|
|
2660
2666
|
display: flex;
|
|
2661
2667
|
align-items: center;
|
|
2662
2668
|
justify-content: space-between;
|
|
@@ -2666,7 +2672,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2666
2672
|
${Ie("neutral",200)};
|
|
2667
2673
|
width: 100%;
|
|
2668
2674
|
text-align: left;
|
|
2669
|
-
`,
|
|
2675
|
+
`,Bk=ke`
|
|
2670
2676
|
display: flex;
|
|
2671
2677
|
align-items: center;
|
|
2672
2678
|
justify-content: space-between;
|
|
@@ -2702,19 +2708,19 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2702
2708
|
&:disabled {
|
|
2703
2709
|
background-color: ${Ie("neutral",200)};
|
|
2704
2710
|
}
|
|
2705
|
-
`,
|
|
2711
|
+
`,_k=({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?Hk:Bk,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:Pk(u),children:t}),n&&ve(h,{css:Ik,children:n})]})]}),"data"===a&&s&&ve(h,{css:zk,children:s}),"navigation"===a&&ve(i,{as:ug,boxSize:4,"aria-hidden":"true",css:Vk(u)})]})},jk=({items:e,noBorder:t,highlightedIndex:n})=>ve(r,{css:Dk(t),children:e.map(((e,t)=>ve(_k,{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)))}),Fk=ke`
|
|
2706
2712
|
background: transparent;
|
|
2707
2713
|
svg {
|
|
2708
2714
|
path {
|
|
2709
2715
|
fill: ${Ie("primary",500)};
|
|
2710
2716
|
}
|
|
2711
2717
|
}
|
|
2712
|
-
`,
|
|
2718
|
+
`,qk=ke`
|
|
2713
2719
|
font-size: ${ze(400)};
|
|
2714
2720
|
line-height: ${He(600)};
|
|
2715
2721
|
font-weight: 700;
|
|
2716
2722
|
color: ${Ie("neutral",900)};
|
|
2717
|
-
`,
|
|
2723
|
+
`,Wk=ke`
|
|
2718
2724
|
span {
|
|
2719
2725
|
height: ${Ve(500)};
|
|
2720
2726
|
width: ${Ve(500)};
|
|
@@ -2724,7 +2730,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2724
2730
|
background-color: transparent;
|
|
2725
2731
|
}
|
|
2726
2732
|
}
|
|
2727
|
-
`,
|
|
2733
|
+
`,Uk=ke`
|
|
2728
2734
|
font-size: ${ze(400)};
|
|
2729
2735
|
line-height: ${He(600)};
|
|
2730
2736
|
font-weight: 400;
|
|
@@ -2734,7 +2740,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2734
2740
|
color: ${Ie("neutral",900)};
|
|
2735
2741
|
font-weight: 700;
|
|
2736
2742
|
}
|
|
2737
|
-
`,
|
|
2743
|
+
`,Kk=({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:Wk,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:Fk,style:{rotate:"90deg"},icon:ve(dg,{}),"aria-label":s.previousPageLabel})}),a?ve(D.PageText,{css:qk}):ve(D.Items,{render:e=>ve(og,{css:Uk,"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:Fk,style:{rotate:"270deg"},icon:ve(dg,{}),"aria-label":s.nextPageLabel})})]})})})},Gk=(e,t)=>ke`
|
|
2738
2744
|
border: ${"full-width"===e?"none":`${_e(100)} solid ${Ie("neutral",300)}`};
|
|
2739
2745
|
border-radius: ${Be(200)};
|
|
2740
2746
|
box-shadow: ${"full-width"===e?"none":`0 0 0 0.0625rem ${Ie("neutral",300)}`};
|
|
@@ -2792,7 +2798,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2792
2798
|
[data-sticky-last='true'] {
|
|
2793
2799
|
border-inline-end: 0.0625rem solid ${Ie("neutral",400)};
|
|
2794
2800
|
}
|
|
2795
|
-
`,
|
|
2801
|
+
`,Zk=e=>ke`
|
|
2796
2802
|
tr {
|
|
2797
2803
|
background-color: ${Ie("neutral","full-width"===e?100:200)};
|
|
2798
2804
|
|
|
@@ -2801,14 +2807,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2801
2807
|
box-shadow: inset 0 -0.0625rem 0 ${Ie("neutral",300)};
|
|
2802
2808
|
}
|
|
2803
2809
|
}
|
|
2804
|
-
`,
|
|
2810
|
+
`,Jk=ke`
|
|
2805
2811
|
font-size: ${ze(400)};
|
|
2806
2812
|
line-height: ${He(600)};
|
|
2807
2813
|
font-weight: 700;
|
|
2808
2814
|
color: ${Ie("neutral",800)};
|
|
2809
2815
|
display: flex;
|
|
2810
2816
|
align-items: center;
|
|
2811
|
-
`,
|
|
2817
|
+
`,Xk=ke`
|
|
2812
2818
|
height: ${He(600)};
|
|
2813
2819
|
width: 0.625rem;
|
|
2814
2820
|
display: flex;
|
|
@@ -2830,20 +2836,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2830
2836
|
}
|
|
2831
2837
|
}
|
|
2832
2838
|
}
|
|
2833
|
-
`,
|
|
2839
|
+
`,Yk=e=>ke`
|
|
2834
2840
|
svg {
|
|
2835
2841
|
path {
|
|
2836
2842
|
fill: ${Ie("accessible",e?"controls-on-neutral-lights":100)} !important;
|
|
2837
2843
|
}
|
|
2838
2844
|
}
|
|
2839
|
-
`,
|
|
2845
|
+
`,Qk=ke`
|
|
2840
2846
|
margin-top: ${Ve(300)};
|
|
2841
2847
|
display: flex;
|
|
2842
2848
|
justify-content: space-between;
|
|
2843
2849
|
align-items: center;
|
|
2844
|
-
`,
|
|
2850
|
+
`,e$=ke`
|
|
2845
2851
|
margin-top: 0.5625rem;
|
|
2846
|
-
`,
|
|
2852
|
+
`,t$=e=>ke`
|
|
2847
2853
|
tr {
|
|
2848
2854
|
height: ${Ve(1200)};
|
|
2849
2855
|
|
|
@@ -2870,18 +2876,18 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2870
2876
|
}
|
|
2871
2877
|
}
|
|
2872
2878
|
}
|
|
2873
|
-
`,
|
|
2879
|
+
`,n$=e=>ke`
|
|
2874
2880
|
overflow: auto;
|
|
2875
2881
|
height: ${e};
|
|
2876
2882
|
width: 100%;
|
|
2877
|
-
`,
|
|
2883
|
+
`,r$=ke`
|
|
2878
2884
|
height: 30rem;
|
|
2879
2885
|
display: flex;
|
|
2880
2886
|
align-items: center;
|
|
2881
2887
|
justify-content: center;
|
|
2882
|
-
`,
|
|
2888
|
+
`,o$="__checkbox__",i$=(e,t)=>{const n=e[t]?.width;return n?{width:n,minWidth:n}:{}},s$=(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`}},a$=(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)))},l$=({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((()=>a$(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[o$]?[o$]:[],...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[o$]=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=>s$(k,e.key,_),q=e=>((e,t,n,r)=>({...i$(e,n),...s$(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,{...s$(o,o$,i),children:X(Ov,{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?n$(g):void 0,children:be(I.Root,{css:Gk(c,i),striped:r,stickyHeader:i,interactive:!0,children:[ve(I.Header,{css:Zk(c),children:be(I.Row,{children:[a?ve(I.ColumnHeader,{ref:C,...s$(k,o$,_),children:ve(Ov,{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,i$(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:Jk,children:[e.label,e.sortable?be("div",{css:Xk,children:[ve(og,{css:Yk(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:Yk(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:t$(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:r$,children:ve(o,{size:"lg",color:Ie("primary",500)})}):null,be("div",{css:Qk,children:[L?ve(Rk,{pageSize:O,currentPage:T,totalItems:E,onPageSizeChange:u,showItemCountText:A}):null,s?ve("div",{css:e$,children:ve(Kk,{totalItems:E,pageSize:O,currentPage:T,onPageChange:h})}):null]})]})},c$=I.Row,d$=I.Cell,u$=ke`
|
|
2883
2889
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2884
|
-
`,
|
|
2890
|
+
`,h$=ke`
|
|
2885
2891
|
padding: ${Ve(400)};
|
|
2886
2892
|
cursor: pointer;
|
|
2887
2893
|
&:focus-visible {
|
|
@@ -2896,9 +2902,9 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2896
2902
|
transparent
|
|
2897
2903
|
);
|
|
2898
2904
|
}
|
|
2899
|
-
`,
|
|
2905
|
+
`,p$=({children:e,header:t,footer:n})=>ve(r,{css:u$,children:ve(A.Root,{multiple:!0,children:be(A.Item,{value:"extendable-card-item",children:[be(A.ItemTrigger,{css:h$,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]})]})})}),f$=ke`
|
|
2900
2906
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2901
|
-
`,
|
|
2907
|
+
`,m$=ke`
|
|
2902
2908
|
padding: ${Ve(400)};
|
|
2903
2909
|
cursor: pointer;
|
|
2904
2910
|
border-bottom: ${_e(100)} solid
|
|
@@ -2920,7 +2926,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2920
2926
|
transparent
|
|
2921
2927
|
);
|
|
2922
2928
|
}
|
|
2923
|
-
`,
|
|
2929
|
+
`,g$=ke`
|
|
2924
2930
|
.item-content-open > * {
|
|
2925
2931
|
max-height: auto;
|
|
2926
2932
|
|
|
@@ -2941,10 +2947,10 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2941
2947
|
padding-bottom 0.2s ease,
|
|
2942
2948
|
padding-top 0.2s ease;
|
|
2943
2949
|
}
|
|
2944
|
-
`,
|
|
2950
|
+
`,b$=ke`
|
|
2945
2951
|
border-top: ${_e(100)} solid
|
|
2946
2952
|
${Ie("neutral",300)};
|
|
2947
|
-
`,
|
|
2953
|
+
`,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:f$,children:be(A.Root,{multiple:!0,value:i?void 0:[c],defaultValue:o?[c]:[],children:[be(A.Item,{css:g$,value:c,children:[t&&ve(A.ItemTrigger,{id:h,"aria-expanded":d,css:m$,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:b$,children:n})]})]}),a&&n&&ve(r,{css:b$,children:n})]})})};var y$,w$={exports:{}},x$={},C$={exports:{}},k$={exports:{}},$$={};var S$,M$,E$,T$,O$,L$,A$,N$,R$,D$,P$,I$,z$,V$={};
|
|
2948
2954
|
/** @license React v16.13.1
|
|
2949
2955
|
* react-is.development.js
|
|
2950
2956
|
*
|
|
@@ -2952,7 +2958,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2952
2958
|
*
|
|
2953
2959
|
* This source code is licensed under the MIT license found in the
|
|
2954
2960
|
* LICENSE file in the root directory of this source tree.
|
|
2955
|
-
*/function I$(){return k$||(k$=1,"production"===process.env.NODE_ENV?w$.exports=function(){if(g$)return x$;g$=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 x$.AsyncMode=l,x$.ConcurrentMode=c,x$.ContextConsumer=a,x$.ContextProvider=s,x$.Element=t,x$.ForwardRef=d,x$.Fragment=r,x$.Lazy=f,x$.Memo=p,x$.Portal=n,x$.Profiler=i,x$.StrictMode=o,x$.Suspense=u,x$.isAsyncMode=function(e){return w(e)||y(e)===l},x$.isConcurrentMode=w,x$.isContextConsumer=function(e){return y(e)===a},x$.isContextProvider=function(e){return y(e)===s},x$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},x$.isForwardRef=function(e){return y(e)===d},x$.isFragment=function(e){return y(e)===r},x$.isLazy=function(e){return y(e)===f},x$.isMemo=function(e){return y(e)===p},x$.isPortal=function(e){return y(e)===n},x$.isProfiler=function(e){return y(e)===i},x$.isStrictMode=function(e){return y(e)===o},x$.isSuspense=function(e){return y(e)===u},x$.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)},x$.typeOf=y,x$}():w$.exports=(C$||(C$=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}P$.AsyncMode=w,P$.ConcurrentMode=x,P$.ContextConsumer=C,P$.ContextProvider=k,P$.Element=$,P$.ForwardRef=S,P$.Fragment=M,P$.Lazy=E,P$.Memo=T,P$.Portal=O,P$.Profiler=L,P$.StrictMode=A,P$.Suspense=N,P$.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},P$.isConcurrentMode=D,P$.isContextConsumer=function(e){return y(e)===a},P$.isContextProvider=function(e){return y(e)===s},P$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},P$.isForwardRef=function(e){return y(e)===d},P$.isFragment=function(e){return y(e)===r},P$.isLazy=function(e){return y(e)===f},P$.isMemo=function(e){return y(e)===p},P$.isPortal=function(e){return y(e)===n},P$.isProfiler=function(e){return y(e)===i},P$.isStrictMode=function(e){return y(e)===o},P$.isSuspense=function(e){return y(e)===u},P$.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)},P$.typeOf=y}()),P$)),w$.exports}function z$(){if(S$)return $$;S$=1;return $$="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function V$(){return E$?M$:(E$=1,M$=Function.call.bind(Object.prototype.hasOwnProperty))}function H$(){if(A$)return L$;A$=1;var e=I$(),t=$e,n=z$(),r=V$(),o=function(){if(O$)return T$;O$=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=z$(),n={},r=V$();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={})},T$=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){}}),L$=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},L$}function B$(){if(D$)return y$.exports;if(D$=1,"production"!==process.env.NODE_ENV){var e=I$();y$.exports=H$()(e.isElement,!0)}else y$.exports=function(){if(R$)return N$;R$=1;var e=z$();function t(){}function n(){}return n.resetWarningCache=t,N$=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},N$}()();return y$.exports}var _$,j$={exports:{}};var F$,q$={},W$={};function U$(){if(F$)return W$;return F$=1,Object.defineProperty(W$,"__esModule",{value:!0}),W$.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.`)},W$.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]},W$.int=function(e){return parseInt(e,10)},W$.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},W$.isNum=function(e){return"number"==typeof e&&!isNaN(e)},W$}var K$,G$,Z$={};function J$(){if(G$)return q$;G$=1,Object.defineProperty(q$,"__esModule",{value:!0}),q$.addClassName=s,q$.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},q$.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")},q$.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},q$.createSVGTransform=function(e,t){return o(e,t,"")},q$.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))},q$.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},q$.getTranslation=o,q$.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},q$.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},q$.matchesSelector=r,q$.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},q$.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}},q$.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},q$.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},q$.removeClassName=a,q$.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},q$.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame((()=>{i(e)})):i(e)};var e=U$(),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(K$)return Z$;K$=1,Object.defineProperty(Z$,"__esModule",{value:!0}),Z$.browserPrefixToKey=n,Z$.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},Z$.default=void 0,Z$.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 Z$.default=t(),Z$}());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 q$}var X$,Y$={};function Q$(){if(X$)return Y$;X$=1,Object.defineProperty(Y$,"__esModule",{value:!0}),Y$.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},Y$.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},Y$.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}},Y$.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}},Y$.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]},Y$.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)},Y$.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=U$(),t=J$();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return Y$}var eS,tS,nS,rS,oS={},iS={};function sS(){if(eS)return iS;return eS=1,Object.defineProperty(iS,"__esModule",{value:!0}),iS.default=function(){},iS}function aS(){if(tS)return oS;tS=1,Object.defineProperty(oS,"__esModule",{value:!0}),oS.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(B$()),n=a(xe),r=J$(),o=Q$(),i=U$(),s=a(sS());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 oS.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}),oS}function lS(){return nS||(nS=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(B$()),r=d(xe),o=function(){if(_$)return j$.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 _$=1,j$.exports=t,j$.exports.clsx=t,j$.exports}(),i=J$(),s=Q$(),a=U$(),l=d(aS()),c=d(sS());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 cS=function(){if(rS)return b$.exports;rS=1;const{default:e,DraggableCore:t}=lS();return b$.exports=e,b$.exports.default=e,b$.exports.DraggableCore=t,b$.exports}(),dS=Sf(cS);const uS=(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`
|
|
2961
|
+
*/function H$(){return M$||(M$=1,"production"===process.env.NODE_ENV?k$.exports=function(){if(y$)return $$;y$=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,$$}():k$.exports=(S$||(S$=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}V$.AsyncMode=w,V$.ConcurrentMode=x,V$.ContextConsumer=C,V$.ContextProvider=k,V$.Element=$,V$.ForwardRef=S,V$.Fragment=M,V$.Lazy=E,V$.Memo=T,V$.Portal=O,V$.Profiler=L,V$.StrictMode=A,V$.Suspense=N,V$.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},V$.isConcurrentMode=D,V$.isContextConsumer=function(e){return y(e)===a},V$.isContextProvider=function(e){return y(e)===s},V$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},V$.isForwardRef=function(e){return y(e)===d},V$.isFragment=function(e){return y(e)===r},V$.isLazy=function(e){return y(e)===f},V$.isMemo=function(e){return y(e)===p},V$.isPortal=function(e){return y(e)===n},V$.isProfiler=function(e){return y(e)===i},V$.isStrictMode=function(e){return y(e)===o},V$.isSuspense=function(e){return y(e)===u},V$.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)},V$.typeOf=y}()),V$)),k$.exports}function B$(){if(T$)return E$;T$=1;return E$="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function _$(){return L$?O$:(L$=1,O$=Function.call.bind(Object.prototype.hasOwnProperty))}function j$(){if(D$)return R$;D$=1;var e=H$(),t=$e,n=B$(),r=_$(),o=function(){if(N$)return A$;N$=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=B$(),n={},r=_$();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={})},A$=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){}}),R$=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},R$}function F$(){if(z$)return C$.exports;if(z$=1,"production"!==process.env.NODE_ENV){var e=H$();C$.exports=j$()(e.isElement,!0)}else C$.exports=function(){if(I$)return P$;I$=1;var e=B$();function t(){}function n(){}return n.resetWarningCache=t,P$=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},P$}()();return C$.exports}var q$,W$={exports:{}};var U$,K$={},G$={};function Z$(){if(U$)return G$;return U$=1,Object.defineProperty(G$,"__esModule",{value:!0}),G$.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.`)},G$.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]},G$.int=function(e){return parseInt(e,10)},G$.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},G$.isNum=function(e){return"number"==typeof e&&!isNaN(e)},G$}var J$,X$,Y$={};function Q$(){if(X$)return K$;X$=1,Object.defineProperty(K$,"__esModule",{value:!0}),K$.addClassName=s,K$.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},K$.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")},K$.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},K$.createSVGTransform=function(e,t){return o(e,t,"")},K$.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))},K$.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},K$.getTranslation=o,K$.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},K$.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},K$.matchesSelector=r,K$.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},K$.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}},K$.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},K$.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},K$.removeClassName=a,K$.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},K$.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame((()=>{i(e)})):i(e)};var e=Z$(),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(J$)return Y$;J$=1,Object.defineProperty(Y$,"__esModule",{value:!0}),Y$.browserPrefixToKey=n,Y$.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},Y$.default=void 0,Y$.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 Y$.default=t(),Y$}());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 K$}var eS,tS={};function nS(){if(eS)return tS;eS=1,Object.defineProperty(tS,"__esModule",{value:!0}),tS.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},tS.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},tS.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}},tS.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}},tS.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]},tS.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)},tS.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=Z$(),t=Q$();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return tS}var rS,oS,iS,sS,aS={},lS={};function cS(){if(rS)return lS;return rS=1,Object.defineProperty(lS,"__esModule",{value:!0}),lS.default=function(){},lS}function dS(){if(oS)return aS;oS=1,Object.defineProperty(aS,"__esModule",{value:!0}),aS.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(F$()),n=a(xe),r=Q$(),o=nS(),i=Z$(),s=a(cS());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 aS.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}),aS}function uS(){return iS||(iS=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(F$()),r=d(xe),o=function(){if(q$)return W$.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 q$=1,W$.exports=t,W$.exports.clsx=t,W$.exports}(),i=Q$(),s=nS(),a=Z$(),l=d(dS()),c=d(cS());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})}(x$)),x$}var hS=function(){if(sS)return w$.exports;sS=1;const{default:e,DraggableCore:t}=uS();return w$.exports=e,w$.exports.default=e,w$.exports.DraggableCore=t,w$.exports}(),pS=Sf(hS);const fS=(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`
|
|
2956
2962
|
max-width: 100%;
|
|
2957
2963
|
width: ${o};
|
|
2958
2964
|
height: ${a};
|
|
@@ -2962,7 +2968,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2962
2968
|
border-radius: ${Be(300)};
|
|
2963
2969
|
box-shadow: 0 0.25rem 0.375rem -0.25rem #0000001a;
|
|
2964
2970
|
box-shadow: 0 0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
2965
|
-
`},
|
|
2971
|
+
`},mS=ke`
|
|
2966
2972
|
height: 100%;
|
|
2967
2973
|
min-height: ${Ve(1e3)};
|
|
2968
2974
|
display: flex;
|
|
@@ -2971,11 +2977,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2971
2977
|
padding: ${Ve(200)};
|
|
2972
2978
|
border-bottom: ${_e(100)} solid
|
|
2973
2979
|
${Ie("neutral",300)};
|
|
2974
|
-
`,
|
|
2980
|
+
`,gS=ke`
|
|
2975
2981
|
top: ${Ve(300)};
|
|
2976
|
-
`,
|
|
2982
|
+
`,bS=ke`
|
|
2977
2983
|
padding: 0;
|
|
2978
|
-
`,
|
|
2984
|
+
`,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(pS,{disabled:!l,nodeRef:x,children:ve(z.Positioner,{ref:x,children:be(z.Content,{"aria-label":w.dialogAriaLabel,css:fS(r,o,i,s),children:[be(z.Header,{css:mS,children:[e,c?null:ve(z.CloseTrigger,{css:gS,asChild:!0,children:ve(_b,{})})]}),ve(z.Body,{css:bS,children:t}),n?ve(z.Footer,{padding:"0.75rem",children:n}):null]})})})]})}):null},yS=e=>ke`
|
|
2979
2985
|
display: flex;
|
|
2980
2986
|
flex-direction: column;
|
|
2981
2987
|
height: 100%;
|
|
@@ -2983,19 +2989,19 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2983
2989
|
background-color: ${Ie("neutral",100)};
|
|
2984
2990
|
box-shadow: 0 0.0625rem 0.125rem -0.0625rem #0000001a;
|
|
2985
2991
|
box-shadow: 0 0.0625rem 0.1875rem 0 #0000001a;
|
|
2986
|
-
`,
|
|
2992
|
+
`,wS=ke`
|
|
2987
2993
|
border-right: ${_e(100)} solid
|
|
2988
2994
|
${Ie("neutral",300)};
|
|
2989
|
-
`,
|
|
2995
|
+
`,xS=ke`
|
|
2990
2996
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2991
2997
|
border-radius: ${Be(300)};
|
|
2992
|
-
`,
|
|
2998
|
+
`,CS=ke`
|
|
2993
2999
|
flex-shrink: 0;
|
|
2994
3000
|
min-height: ${Ve(1200)};
|
|
2995
3001
|
width: 100%;
|
|
2996
3002
|
border-bottom: ${_e(100)} solid
|
|
2997
3003
|
${Ie("neutral",300)};
|
|
2998
|
-
`,
|
|
3004
|
+
`,kS=ke`
|
|
2999
3005
|
flex: 1;
|
|
3000
3006
|
min-height: 0;
|
|
3001
3007
|
width: 100%;
|
|
@@ -3004,7 +3010,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3004
3010
|
&:focus-visible {
|
|
3005
3011
|
outline-color: ${Ie("primary",700)};
|
|
3006
3012
|
}
|
|
3007
|
-
|
|
3013
|
+
`,$S=ke`
|
|
3008
3014
|
flex-shrink: 0;
|
|
3009
3015
|
min-height: ${Ve(1600)};
|
|
3010
3016
|
width: 100%;
|
|
@@ -3013,7 +3019,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3013
3019
|
justify-content: flex-start;
|
|
3014
3020
|
border-top: ${_e(100)} solid
|
|
3015
3021
|
${Ie("neutral",300)};
|
|
3016
|
-
`,
|
|
3022
|
+
`,SS=({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:[yS(o),"fixed"===r?wS:xS],children:[e?ve("div",{id:i,css:CS,children:e}):null,ve("div",{css:kS,children:t}),n?ve("div",{css:$S,children:n}):null]})};var MS,ES;!function(){if(ES)return MS;ES=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))}}MS=e}();var TS=OS()?de:ce;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function OS(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var LS=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 TS((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&&(LS.displayName="Portal");
|
|
3017
3023
|
/*! *****************************************************************************
|
|
3018
3024
|
Copyright (c) Microsoft Corporation.
|
|
3019
3025
|
|
|
@@ -3027,16 +3033,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
3027
3033
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3028
3034
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3029
3035
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3030
|
-
***************************************************************************** */var TS,OS,LS=function(){return LS=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},LS.apply(this,arguments)};function AS(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 NS(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 RS(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 DS(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"}(TS||(TS={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(OS||(OS={}));var PS=TS.Start,IS=TS.Stop,zS=TS.Raise,VS=TS.Send,HS=TS.Cancel,BS=TS.NullEvent,_S=TS.Assign;TS.After,TS.DoneState;var jS=TS.Log,FS=TS.Init,qS=TS.Invoke;TS.ErrorExecution;var WS,US=TS.ErrorPlatform,KS=TS.ErrorCustom,GS=TS.Update,ZS=TS.Choose,JS=TS.Pure,XS={},YS="xstate.guard",QS="production"===process.env.NODE_ENV;function eM(e,t,n){void 0===n&&(n=".");var r=rM(e,n),o=rM(t,n);return yM(o)?!!yM(r)&&o===r:yM(r)?r in o:Object.keys(r).every((function(e){return e in o&&eM(r[e],o[e])}))}function tM(e){try{return yM(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 nM(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 rM(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:bM(e)?oM(e):"string"!=typeof e?e:oM(nM(e,t));var n}function oM(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 iM(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 sM(e,t,n){var r,o,i={};try{for(var s=NS(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 aM=function(e){return function(t){var n,r,o=t;try{for(var i=NS(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 lM(e){return e?yM(e)?[[e]]:cM(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?lM(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function cM(e){var t;return(t=[]).concat.apply(t,DS([],RS(e),!1))}function dM(e){return bM(e)?e:[e]}function uM(e){return void 0===e?[]:dM(e)}function hM(e,t,n){var r,o;if(vM(e))return e(t,n.data);var i={};try{for(var s=NS(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 pM(e){return e instanceof Promise||!(null===e||!vM(e)&&"object"!=typeof e||!vM(e.then))}function fM(e,t){return iM(e.states,(function(e,n){if(e){var r=(yM(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:fM(e,r)}}}))}function mM(e,t,n,r){QS||gM(!!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=NS(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 gM=function(){};function bM(e){return Array.isArray(e)}function vM(e){return"function"==typeof e}function yM(e){return"string"==typeof e}function wM(e,t){if(e)return yM(e)?{type:YS,name:e,predicate:t?t[e]:void 0}:vM(e)?{type:YS,name:e.name,predicate:e}:e}QS||(gM=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 xM=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function CM(e){return!!e&&"__xstatenode"in e}function kM(e,t){return yM(e)||"number"==typeof e?LS({type:e},t):e}function $M(e,t){if(!yM(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=kM(e);return LS({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function SM(e,t){return dM(t).map((function(t){return void 0===t||"string"==typeof t||CM(t)?{target:t,event:e}:LS(LS({},t),{event:e})}))}function MM(e,t,n,r,o){var i=e.options.guards,s={state:o,cond:t,_event:r};if(t.type===YS)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 EM(e){return"string"==typeof e?{type:e}:e}function TM(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 OM(e,t){return"".concat(e,":invocation[").concat(t,"]")}function LM(e){return(e.type===zS||e.type===VS&&e.to===OS.Internal)&&"number"!=typeof e.delay}(WS={})[xM]=function(){return this},WS[Symbol.observable]=function(){return this};var AM=$M({type:FS});function NM(e,t){return t&&t[e]||void 0}function RM(e,t){var n;if(yM(e)||"number"==typeof e)n=vM(r=NM(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=NM(e.type,t)))n=LS(LS({},e),{exec:r});else if(r){var o=r.type||e.type;n=LS(LS(LS({},r),e),{type:o})}else n=e}return n}var DM=function(e,t){return e?(bM(e)?e:[e]).map((function(e){return RM(e,t)})):[]};function PM(e){var t=RM(e);return LS(LS({id:yM(e)?e:t.id},t),{type:t.type})}function IM(e,t){var n="".concat(TS.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function zM(e,t){var n="".concat(TS.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function VM(e,t){var n="".concat(TS.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function HM(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=NS(e),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;)s.actions[a].type!==_S?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?mM(n,r,a,t):n,c=s?[n]:void 0,d=[];function u(o,a){var u;switch(a.type){case zS:var h=function(e,t,n,r){var o,i={_event:n},s=$M(vM(e.event)?e.event(t,n.data,i):e.event);if(yM(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 LS(LS({},e),{type:zS,_event:s,delay:o})}(a,l,r,e.options.delays);return i&&"number"==typeof h.delay&&i(h,l,r),h;case VS:var p=function(e,t,n,r){var o,i={_event:n},s=$M(vM(e.event)?e.event(t,n.data,i):e.event);if(yM(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 LS(LS({},e),{to:l,_event:s,event:s.data,delay:o})}(a,l,r,e.options.delays);if(!QS){var f=a.delay;gM(!yM(f)||"number"==typeof p.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&p.to!==OS.Internal&&("entry"===o?d.push(p):i(p,l,r)),p;case jS:var m=function(e,t,n){return LS(LS({},e),{value:yM(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(a,l,r);return null==i||i(m,l,r),m;case ZS:if(!(y=null===(u=a.conds.find((function(n){var o=wM(n.cond,e.options.guards);return!o||MM(e,o,l,r,i?void 0:t)})))||void 0===u?void 0:u.actions))return[];var g=RS(HM(e,t,l,r,[{type:o,actions:DM(uM(y),e.options.actions)}],i,s),2),b=g[0],v=g[1];return l=v,null==c||c.push(l),b;case JS:var y;if(!(y=a.get(l,r.data)))return[];var w=RS(HM(e,t,l,r,[{type:o,actions:DM(uM(y),e.options.actions)}],i,s),2),x=w[0],C=w[1];return l=C,null==c||c.push(l),x;case IS: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:TS.Stop,activity:o}}(a,l,r);return null==i||i(m,n,r),m;case _S:l=mM(l,r,[a],i?void 0:t),null==c||c.push(l);break;default:var k=RM(a,e.options.actions),$=k.exec;if(i)i(k,l,r);else if($&&c){var S=c.length-1,M=LS(LS({},k),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];$.apply(void 0,DS([c[S]],RS(t),!1))}});k=M}return k}}var h=cM(o.map((function(e){var t,n,o=[];try{for(var s=NS(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 BM=function(e,t){return t(e)};function _M(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[xM]=function(){return this},t}function jM(e,t,n){var r=_M(t);if(r.deferred=!0,CM(e)){var o=r.state=BM(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var FM=function(e){return"atomic"===e.type||"final"===e.type};function qM(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function WM(e){return qM(e).filter((function(e){return"history"!==e.type}))}function UM(e){var t=[e];return FM(e)?t:t.concat(cM(WM(e).map(UM)))}function KM(e,t){var n,r,o,i,s,a,l,c,d=ZM(new Set(e)),u=new Set(t);try{for(var h=NS(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=ZM(u);try{for(var g=NS(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,NS(WM(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=NS(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 GM(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(FM(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=GM(e,t)})),o}function ZM(e){var t,n,r=new Map;try{for(var o=NS(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 JM(e,t){return GM(e,ZM(KM([e],t)))}function XM(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function YM(e,t){return"compound"===t.type?WM(t).some((function(t){return"final"===t.type&&XM(e,t)})):"parallel"===t.type&&WM(t).every((function(t){return YM(e,t)}))}function QM(e){return new Set(cM(e.map((function(e){return e.tags}))))}function eE(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(yM(e)||yM(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return eE(e[n],t[n])}))}var tE=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=XS,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||XS,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 DS([],RS(new Set(cM(DS([],RS(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:AM,_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=AM;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="."),yM(e))return[e];var r=Object.keys(e);return r.concat.apply(r,DS([],RS(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=AS(e,["configuration","transitions","tags","machine"]);return LS(LS({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return eM(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;QS&&gM(!!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}(),nE={deferEvents:!1},rE=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=LS(LS({},nE),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}(),oE=new Map,iE=0,sE=function(){return"x:".concat(iE++)},aE=function(e,t){return oE.set(e,t),e},lE=function(e){return oE.get(e)},cE=function(e){oE.delete(e)};function dE(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(QS||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 uE(e){if(dE()){var t=function(){var e=dE();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function hE(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,s=function(e){var t;return LS(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[xM]=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=TM(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 pE,fE={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(pE||(pE={}));var mE=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=pE.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=$M(kM(e,t));if(r.status===pE.Stopped)return QS||gM(!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!==pE.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===OS.Parent||r.parent.id===t),s=i?r.parent:yM(t)?t===OS.Internal?r:r.children.get(t)||lE(t):(o=t)&&"function"==typeof o.send?t:void 0;if(s)if("machine"in s){if(r.status!==pE.Stopped||r.parent!==s||r.state.done){var a=LS(LS({},e),{name:e.name===KS?"".concat(VM(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,"'."));QS||gM(!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||NM(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 zS:var a=e;r.defer(a);break;case VS:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===AM):r.send(l._event);break;case HS:r.cancel(e.sendId);break;case PS:if(r.status!==pE.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===TS.Invoke){var d=EM(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,h=c.id,p=c.data;QS||gM(!("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(QS||gM(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var m=p?hM(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;CM(g)&&(g=m?g.withContext(m):g,b={autoForward:f}),r.spawn(g,h,b)}else r.spawnActivity(c);break;case IS:r.stopChild(e.activity.id);break;case jS:var v=e,y=v.label,w=v.value;y?r.logger(y,w):r.logger(w);break;default:QS||gM(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=LS(LS({},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 rE({deferEvents:this.options.deferEvents}),this.sessionId=sE()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:BM(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return QS||gM(this.status!==pE.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=NS(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!==AM||!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=NS(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=NS(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=NS(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?hM(v.doneData,e.context,t):void 0;this._doneEvent=zM(this.id,y);try{for(var w=NS(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(),cE(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===pE.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=TM(e,t,n);this.listeners.add(o.next),this.status!==pE.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===pE.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===pE.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===pE.Running)return this;this.machine._init(),aE(this.sessionId,this),this.initialized=!0,this.status=pE.Running;var n=void 0===e?this.initialState:BM(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(tE.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,AM)})),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=NS(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=NS(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=NS(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=NS(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=pE.Stopped,this._initialState=void 0;try{for(var y=NS(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 rE({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=$M({type:"xstate.stop"}),r=BM(e,(function(){var t=cM(DS([],RS(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return DM(t.onExit,e.machine.options.actions)}))),r=RS(HM(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 tE({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!LM(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(),cE(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===pE.NotStarted&&this.options.deferEvents)QS||gM(!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!==pE.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=$M(e);t.forward(r),i=BM(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),a.push.apply(a,DS([],RS(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return LS(LS({},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=NS(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,$M(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=$M(e);if(0===r.name.indexOf(US)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(US)})))throw r.data.data;return BM(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=NS(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!==pE.Running)return jM(e,t);if(pM(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(CM(e))return this.spawnMachine(e,LS(LS({},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,LS(LS({},this.options),{parent:this,id:n.id||t.id})),i=LS(LS({},fE),n);i.sync&&o.onTransition((function(e){r.send(GS,{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($M(e,{origin:o.id}))})).start(),s},e.prototype.spawnBehavior=function(e,t){var n=hE(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($M(zM(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=VM(t,e);try{o.send($M(n,{origin:t}))}catch(r){!function(e,t,n){if(!QS){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=TM(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}})[xM]=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($M(e,{origin:t}))}),(function(e){a.add(e)}))}catch(e){this.send(VM(t,e))}if(pM(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=TM(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}})[xM]=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($M(e,{origin:t}))}),(function(e){o.removeChild(t),o.send($M(VM(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send($M(zM(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}}})[xM]=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 QS||gM(!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}}})[xM]=function(){return this},n))},e.prototype.attachDev=function(){var e=dE();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(LS(LS({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:LS({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}uE(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[xM]=function(){return this},e.prototype.getSnapshot=function(){return this.status===pE.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=gE,e}();function gE(e,t){return new mE(e,t)}function bE(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function vE(e){return LS(LS({type:qS},e),{toJSON:function(){e.onDone,e.onError;var t=AS(e,["onDone","onError"]);return LS(LS({},t),{type:qS,src:bE(e.src)})}})}var yE="",wE="*",xE={},CE=function(e){return"#"===e[0]},kE=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||DS([this.machine.key],RS(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,QS||gM(!("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?iM(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:s,key:n});return Object.assign(s.idMap,LS(((r={})[o.id]=o,r),o.idMap)),o})):xE;var a=0;!function e(t){var n,r;t.order=a++;try{for(var o=NS(qM(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===yE})):yE in this.config.on),this.strict=!!this.config.strict,this.onEntry=uM(this.config.entry||this.config.onEntry).map((function(e){return RM(e)})),this.onExit=uM(this.config.exit||this.config.onExit).map((function(e){return RM(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=uM(this.config.invoke).map((function(e,t){var n,r;if(CM(e)){var o=OM(s.id,t);return s.machine.options.services=LS(((n={})[o]=e,n),s.machine.options.services),vE({src:o,id:o})}if(yM(e.src)){o=e.id||OM(s.id,t);return vE(LS(LS({},e),{id:o,src:e.src}))}if(CM(e.src)||vM(e.src)){o=e.id||OM(s.id,t);return s.machine.options.services=LS(((r={})[o]=e.src,r),s.machine.options.services),vE(LS(LS({id:o},e),{src:o}))}var i=e.src;return vE(LS(LS({id:OM(s.id,t)},e),{src:i}))})),this.activities=uM(this.config.activities).concat(this.invoke).map((function(e){return PM(e)})),this.transition=this.transition.bind(this),this.tags=uM(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||UM(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:LS(LS({},o),t.actions),activities:LS(LS({},i),t.activities),guards:LS(LS({},s),t.guards),services:LS(LS({},a),t.services),delays:LS(LS({},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:iM(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===yE,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===wE}));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(TS.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:VS,event:vM(e)?e:kM(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:vM(e)?e.name:tM(e)}}(r,{delay:t})),e.onExit.push({type:HS,sendId:r}),r},r=bM(t)?t.map((function(e,t){var r=n(e.delay,t);return LS(LS({},e),{event:r})})):cM(Object.keys(t).map((function(e,r){var o=t[e],i=yM(o)?{target:o}:o,s=isNaN(+e)?e:+e,a=n(s,r);return uM(i).map((function(e){return LS(LS({},e),{event:a,delay:s})}))})));return r.map((function(t){var n=t.delay;return LS(LS({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof tE?e.value:rM(e,this.delimiter);if(yM(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,DS([],RS(cM(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),s},e.prototype.handles=function(e){var t=tM(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof tE?e:tE.create(e),n=Array.from(KM([],this.getStateNodes(t.value)));return new tE(LS(LS({},t),{value:this.resolve(t.value),configuration:n,done:YM(n,this),tags:QM(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=NS(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=cM(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var p=cM(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:h,exitSet:cM(u.map((function(e){return e.exitSet}))),configuration:p,source:t,actions:cM(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return yM(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,$M(t))},e.prototype.next=function(e,t){var n,r,o,i=this,s=t.name,a=[],l=[];try{for(var c=NS(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||(yM(p)&&CE(p)?e.matches(rM(this.getStateNodeById(p).path,this.delimiter)):eM(rM(p,this.delimiter),aM(this.path.slice(0,-2))(e.value))),g=!1;try{g=!h||MM(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,DS([],RS(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=cM(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:cM(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?KM([],this.getStateNodes(i.value)):[],p=new Set;try{for(var f=NS(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=f.next();!m.done;m=f.next()){(!XM(h,v=m.value)||XM(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=NS(h),b=g.next();!b.done;b=g.next()){var v;XM(e,v=b.value)&&!XM(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=cM(y.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(IM(e.id,e.doneData),IM(i.id,e.doneData?hM(e.doneData,r,o):void 0));var s=i.parent;return"parallel"===s.type&&WM(s).every((function(e){return YM(n.configuration,e)}))&&t.push(IM(s.id)),t}))),C=y.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=PM(e);return{type:TS.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:DM(s?DS(DS([],RS(t),!1),RS(n),!1):DS(DS([],RS(n),!1),RS(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:x.map((function(e){return function(e,t){return{type:zS,event:"function"==typeof e?e:kM(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:DM(DS(DS([],RS(e.onExit),!1),RS(e.activities.map((function(e){return function(e){var t=vM(e)?e:PM(e);return{type:TS.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:DM(n.actions,this.machine.options.actions)}).concat(C);if(t){var $=DM(cM(DS([],RS(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!LM(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=$M(t);if(e instanceof tE)o=void 0===n?e:this.resolveState(tE.from(e,n));else{var a=yM(e)?this.resolve(oM(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(tE.from(a,l))}if(!QS&&s.name===wE)throw new Error("An event cannot have the wildcard type ('".concat(wE,"')"));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=KM([],this.getStateNodes(o.value)),u=c.configuration.length?KM(d,c.configuration):d;return c.configuration=DS([],RS(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,DS([],RS(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,s,a,l,c=this;void 0===o&&(o=AM);var d=e.configuration,u=!t||e.transitions.length>0,h=u?e.configuration:t?t.configuration:[],p=YM(h,this),f=u?JM(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?LS({},t.activities):{};try{for(var v=NS(g),y=v.next();!y.done;y=v.next()){var w=y.value;try{for(var x=(a=void 0,NS(w.actions)),C=x.next();!C.done;C=x.next()){var k=C.value;k.type===PS?b[k.activity.id||k.activity.type]=k:k.type===IS&&(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=RS(HM(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),E=M[0],T=M[1],O=RS(function(e,t){var n,r,o=RS([[],[]],2),i=o[0],s=o[1];try{for(var a=NS(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,LM),2),L=O[0],A=O[1],N=E.filter((function(e){var t;return e.type===PS&&(null===(t=e.activity)||void 0===t?void 0:t.type)===qS})),R=N.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=EM(e.src),s=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],a=e.data?hM(e.data,n,r):void 0,l=s?jM(s,e.id,a):_M(e.id);return l.meta=e,l}(t.activity,c.machine,T,o),e}),t?LS({},t.children):{}),D=new tE({value:f||t.value,context:T,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?m?($=m,S=f,{current:S,states:fM($,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:QM(h),machine:this}),P=n!==T;D.changed=o.name===GS||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!==yE))return D;var V=D;if(!p)for(z&&(V=this.resolveRaisedTransition(V,{type:BS},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||!eE(V.value,I.value):void 0);return V.changed=B,V.history=I,V},e.prototype.getStateNode=function(e){if(CE(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=CE(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&&CE(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=nM(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||xE;switch(this.type){case"parallel":return iM(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):xE}));case"compound":if(yM(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?iM(e,(function(e,t){return e?n.getStateNode(t).resolve(e):xE})):this.initialStateValue||{};default:return e||xE}},e.prototype.getResolvedPath=function(e){if(CE(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 nM(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=sM(this.states,(function(e){return e.initialStateValue||xE}),(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=FM(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=yM(t.target)&&CE(t.target)?oM(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 FM(this)?[this]:"compound"!==this.type||this.initial?cM(lM(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(QS||gM(!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=RS(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:sM(this.states,(function(t,n){if(!e)return t.historyValue();var r=yM(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?cM(lM(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=NS(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 yM(s)?[n.getStateNode(s)]:cM(lM(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=cM(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=NS(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,NS(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(!yM(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 uM(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return yM(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),s=LS(LS({},e),{actions:DM(uM(e.actions)),cond:wM(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return LS(LS({},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=wE,s=o[i],a=void 0===s?[]:s,l=AS(o,["*"]);n=cM(Object.keys(l).map((function(e){QS||e!==yE||gM(!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=SM(e,l[e]);return QS||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(yM(e.target)||CM(e.target))})),o=t===yE?"the transient event":"event '".concat(t,"'");gM(!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(SM(wE,a)))}else n=[];var c=this.config.always?SM("",this.config.always):[],d=this.config.onDone?SM(String(IM(this.id)),this.config.onDone):[];QS||gM(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=cM(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,DS([],RS(SM(String(zM(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,DS([],RS(SM(String(VM(e.id)),e.onError)),!1)),t}))),h=this.after,p=cM(DS(DS(DS(DS([],RS(d),!1),RS(u),!1),RS(n),!1),RS(c),!1).map((function(e){return uM(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=NS(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 $E,SE=function(e){return{type:_S,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}($E||($E={}));var ME="undefined"!=typeof document?de:function(){};function EE(e){var t=ee.useRef();return t.current||(t.current={v:e()}),t.current.v}var TE=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},OE=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 LE=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},AE=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 NE(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function RE(e){var t=se([]),n=se([]);ME((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=LE(function(e,t){var n,r,o=TE([[],[]],2),i=o[0],s=o[1];try{for(var a=OE(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===$E.Effect})),2),a=s[0],l=s[1];(r=t.current).push.apply(r,AE([],LE(a.map((function(t){return[t,e]}))),!1)),(o=n.current).push.apply(o,AE([],LE(l.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),ME((function(){for(;n.current.length;){var e=LE(n.current.shift(),2);NE(e[0],e[1])}})),ce((function(){for(;t.current.length;){var e=LE(t.current.shift(),2);NE(e[0],e[1])}}))}var DE=function(){return DE=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},DE.apply(this,arguments)},PE=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},IE=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 zE=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 VE(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=EE((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var o=IE(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=PE(t,["context","guards","actions","activities","services","delays","state"]),p=EE((function(){var e={context:i,guards:s,actions:a,activities:l,services:c,delays:d};return gE(r.withConfig(e,(function(){return DE(DE({},r.context),i)})),DE({deferEvents:!0},h))}));return ME((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]),ME((function(){return p.start(u?tE.create(u):void 0),function(){p.stop()}}),[]),ME((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]),RE(p),p}(e,t,n),o=zE(ae((function(){var e=r.machine.initialState;return t.state?tE.create(t.state):e})),2),i=o[0],s=o[1];return[i,r.send,r]}function HE(){return HE=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},HE.apply(null,arguments)}function BE(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 _E={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(_E.str(e)||_E.num(e))return e===t;if(_E.obj(e)&&_E.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!_E.und(n)||e===t}};function jE(e,t){return _E.und(e)||_E.nul(e)?t:e}function FE(e){return _E.und(e)?[]:_E.arr(e)?e:[e]}function qE(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.fun(e)?e(...n):e}function WE(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,BE(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(_E.und(t))return HE({to:t},e);const n=Object.keys(e).reduce(((n,r)=>_E.und(t[r])?HE({},n,{[r]:e[r]}):n),{});return HE({to:t},n)}class UE{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 KE extends UE{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof UE&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof UE&&e.removeChild(this)))}}class GE extends UE{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof UE&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof UE&&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 UE)&&(t[n]=r instanceof UE?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let ZE,JE;let XE,YE=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let QE,eT=()=>Date.now();class tT extends GE{constructor(e,t){super(),this.update=void 0,this.payload=e.style?HE({},e,{style:QE(e.style)}):e,this.update=t,this.attach()}}let nT=!1;const rT=new Set,oT=()=>{if(!nT)return!1;let e=eT();for(let t of rT){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 UE,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||(rT.delete(t),t.stop(!0))}return rT.size?YE(oT):nT=!1,nT};function iT(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return iT({range:e,output:t,extrapolate:n});if(XE&&"string"==typeof e.output[0])return XE(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 sT extends KE{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof KE&&!(e instanceof sT)?e.getPayload():Array.isArray(e)?e:[e],this.calc=iT(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=iT(e,t,n)}interpolate(e,t,n){return new sT(this,e,t,n)}}const aT=(e,t,n)=>e&&new sT(e,t,n);function lT(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>lT(e,t)))}class cT extends UE{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&&lT(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new sT(this,e,t,n)}}class dT extends KE{constructor(e){super(),this.payload=e.map((e=>new cT(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 sT(this,e,t)}}let uT=0,hT=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=uT++}update(e){if(!e)return this;const t=WE(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=BE(t,["delay","to"]);if(_E.arr(o)||_E.fun(o))this.queue.push(HE({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const s=HE({to:{[n]:o},delay:qE(r,n)},i),a=e[s.delay]&&e[s.delay].to;e[s.delay]=HE({},e[s.delay],s,{to:HE({},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;_E.obj(n)&&(this.merged=HE({},n,this.merged)),_E.obj(o)&&(this.merged=HE({},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=BE(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=_E.arr(s.to)||_E.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 _E.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,rT.has(t)||rT.add(t),nT||(nT=!0,YE(oT));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,rT.has(t)&&rT.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=BE(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(_E.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=HE({},r,WE(r.to[t]));_E.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(_E.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=HE({},r,WE(n));if(_E.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=HE({},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=HE({},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=_E.num(o),l=_E.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!JE[o],c=_E.arr(o),h=!s&&!c&&!l;let f=_E.und(r[n])?o:r[n],m=s||c||l?o:1,g=qE(a,n);p&&(m=p.animations[n].parent);let b,v=i.parent,y=i.interpolation,w=FE(p?m.getPayload():m),x=o;h&&(x=XE({range:[0,1],output:[o,o]})(1));let C=y&&y.getValue();const k=!_E.und(v)&&i.animatedValues.some((e=>!e.done)),$=!_E.equ(x,C),S=!_E.equ(x,i.previous),M=!_E.equ(g,i.config);if(d||S&&$||M){if(s||l)v=y=i.parent||new cT(f);else if(c)v=y=i.parent||new dT(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 cT(0);const t={output:[e,o]};i.interpolation?(y=i.interpolation,i.interpolation.updateConfig(t)):y=v.interpolate(t)}return w=FE(p?m.getPayload():m),b=FE(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=eT(),e.done=!1,e.animatedStyles.clear()})),qE(u,n)&&v.setValue(h?m:o,!1),HE({},e,{[n]:HE({},i,{name:n,parent:v,interpolation:y,animatedValues:b,toValues:w,previous:x,config:g,fromValues:FE(v.getValue()),immediate:qE(u,n),initialVelocity:jE(g.velocity,0),clamp:jE(g.clamp,!1),precision:jE(g.precision,.01),tension:jE(g.tension,170),friction:jE(g.friction,26),mass:jE(g.mass,1),duration:g.duration,easing:jE(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,HE({},e,{[n]:HE({},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 pT=e=>{const t=_E.fun(e),n=((e,t)=>{const n=se(!1),r=se(),o=_E.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 hT,s=o?qE(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?qE(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 fT extends GE{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof UE||(e=ZE.transform(e)),this.payload=e}}const mT={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},gT="[-+]?\\d*\\.?\\d+",bT=gT+"%";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 yT=new RegExp("rgb"+vT(gT,gT,gT)),wT=new RegExp("rgba"+vT(gT,gT,gT,gT)),xT=new RegExp("hsl"+vT(gT,bT,bT)),CT=new RegExp("hsla"+vT(gT,bT,bT,gT)),kT=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$T=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ST=/^#([0-9a-fA-F]{6})$/,MT=/^#([0-9a-fA-F]{8})$/;function ET(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 TT(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ET(o,r,e+1/3),s=ET(o,r,e),a=ET(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function OT(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function LT(e){return(parseFloat(e)%360+360)%360/360}function AT(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function NT(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function RT(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ST.exec(e))?parseInt(t[1]+"ff",16)>>>0:mT.hasOwnProperty(e)?mT[e]:(t=yT.exec(e))?(OT(t[1])<<24|OT(t[2])<<16|OT(t[3])<<8|255)>>>0:(t=wT.exec(e))?(OT(t[1])<<24|OT(t[2])<<16|OT(t[3])<<8|AT(t[4]))>>>0:(t=kT.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=MT.exec(e))?parseInt(t[1],16)>>>0:(t=$T.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=xT.exec(e))?(255|TT(LT(t[1]),NT(t[2]),NT(t[3])))>>>0:(t=CT.exec(e))?(TT(LT(t[1]),NT(t[2]),NT(t[3]))|AT(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 DT=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,PT=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,IT=new RegExp(`(${Object.keys(mT).join("|")})`,"g");let zT={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 VT=["Webkit","Ms","Moz","O"];function HT(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||zT.hasOwnProperty(e)&&zT[e]?(""+t).trim():t+"px"}zT=Object.keys(zT).reduce(((e,t)=>(VT.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),zT);const BT={};var _T,jT;_T=e=>new fT(e),QE=_T,jT=e=>{const t=e.output.map((e=>e.replace(PT,RT))).map((e=>e.replace(IT,RT))),n=t[0].match(DT).map((()=>[]));t.forEach((e=>{e.match(DT).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(DT).map(((t,r)=>iT(HE({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(DT,(()=>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})`))}},XE=jT,JE=mT,function(e,t){ZE={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=BE(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=HT(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:BT[t]||(BT[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var FT;const qT=(FT=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 tT(e,(()=>{let e=!1;s.current&&(e=ZE.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=BE(l,["scrollTop","scrollLeft"]),d=(u=e,!_E.fun(u)||u.prototype instanceof te.Component?e=>s.current=function(e,t){return t&&(_E.fun(t)?t(e):_E.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return te.createElement(e,HE({},c,{ref:d}))})),e=>(_E.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=FT(n),e}),FT))(["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 WT(e,t){return e.map((function(e,n){return e+t[n]}))}function UT(e,t){return e.map((function(e,n){return e-t[n]}))}function KT(e){return Math.hypot.apply(Math,e)}function GT(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function ZT(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 JT(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?-ZT(t-e,n-t,r)+t:e>n?+ZT(e-n,n-t,r)+n:e}function XT(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 YT(){return YT=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},YT.apply(this,arguments)}function QT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function eO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tO(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 nO(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 tO(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)?tO(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 rO(){}function oO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?rO:1===t.length?t[0]:function(){for(var e,n,r=nO(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function iO(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 sO(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 aO(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]=aO(e[s],a);break;case"boolean":a&&(n[s]=e[s])}}return n}var lO=YT({},{threshold:function(e){return void 0===e&&(e=0),iO(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return iO(.15);case!1:return iO(0);default:return iO(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:iO(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 lO.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]]}}),cO="undefined"!=typeof window&&window.document&&window.document.createElement,dO={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=cO?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}}},uO=YT({},lO,{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=iO(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),iO(e)},swipeDistance:function(e){return void 0===e&&(e=60),iO(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function hO(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={}),aO(e,dO)}({domTarget:t,eventOptions:n,window:r,enabled:o});return s.drag=function(e){return void 0===e&&(e={}),aO(e,uO)}(i),s}function pO(e){return YT({_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:rO,canceled:!1,memo:void 0,args:void 0},e)}function fO(){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:pO({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:pO({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:pO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:pO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:pO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var mO=new Map,gO=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=YT({},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 YT({},g,{_movement:p,delta:[0,0]});var b,v,y,w,x=g._intentional,C=p;(!1!==x[0]&&!1===d[0]&&(v=sO(n,this.state),b=sO(r,this.state),l[0]=v[0],a[0]=b[0]),!1!==x[1]&&!1===d[1])&&(v=null!=(y=v)?y:sO(n,this.state),b=null!=(w=b)?w:sO(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]],$=WT(k,u),S=c?o:[0,0];return k=vO(a,WT(k,l),S),YT({},g,{intentional:!1!==x[0]||!1!==x[1],_initial:l,_movement:C,movement:k,values:e,offset:vO(a,$,S),delta:UT(k,h)})},t.clean=function(){this.clearTimeout()},XT(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&>(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[JT(r,l,c,i),JT(o,u,h,s)]}function yO(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 wO(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,YT({},t,{event:n})].concat(o))}}var xO=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=nO(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];$O(e,c[0],wO(c[1],YT({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=kO(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;MO(o,CO(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,oO.apply(void 0,d)])}SO(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]=oO.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=kO(t.config),n=t.config.eventOptions;e&&MO(e,CO(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){MO(n,o[i],r)}e.windowListeners={}}(t)},this.state=fO(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function CO(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function kO(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function $O(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function SO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=nO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.addEventListener(s,a,n)}}function MO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=nO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.removeEventListener(s,a,n)}}function EO(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(mO.get("drag"));e.wheel&&t.add(mO.get("wheel"));e.scroll&&t.add(mO.get("scroll"));e.move&&t.add(mO.get("move"));e.pinch&&t.add(mO.get("pinch"));e.hover&&t.add(mO.get("hover"));return t}(e),o=te.useMemo((function(){return new xO(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,te.useEffect(o.effect,[]),o.config.domTarget?TO:o.bind}function TO(){"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 OO=function(e){function t(){return e.apply(this,arguments)||this}QT(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return UT(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=KT(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:KT(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(gO);function LO(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function AO(e){var t="buttons"in e?e.buttons:0,n=LO(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 NO(e){var t=LO(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var RO=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&&(MO(r.window,o[t],r.eventOptions),SO(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(eO(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=AO(e);if(n.down){t.updateSharedState(n);var r=NO(e),o=t.getKinematics(r,e),i=yO(eO(t),e),s=t.state._isTap,a=KT(o._movement);s&&a>=3&&(s=!1),t.updateGestureState(YT({},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=YT({},yO(eO(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]=GT(o)),!1!==u&&Math.abs(i)>f&&Math.abs(l)>b&&(y[1]=GT(i))),t.updateGestureState(YT({},v,{tap:n,swipe:y})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(eO(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(MO(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}QT(t,e);var n=t.prototype;return n.startDrag=function(e){var t=NO(e);this.updateSharedState(AO(e)),this.updateGestureState(YT({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return YT({},fO()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),yO(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){($O(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&$O(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(OO);function DO(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(!DO(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(!DO(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||DO(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function PO(e,t){try{return DO(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 IO(e,t){void 0===t&&(t={}),mO.set("drag",RO);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}}(hO,PO)),EO({drag:e},n.current(t))}
|
|
3036
|
+
***************************************************************************** */var AS,NS,RS=function(){return RS=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},RS.apply(this,arguments)};function DS(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 PS(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 IS(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 zS(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"}(AS||(AS={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(NS||(NS={}));var VS=AS.Start,HS=AS.Stop,BS=AS.Raise,_S=AS.Send,jS=AS.Cancel,FS=AS.NullEvent,qS=AS.Assign;AS.After,AS.DoneState;var WS=AS.Log,US=AS.Init,KS=AS.Invoke;AS.ErrorExecution;var GS,ZS=AS.ErrorPlatform,JS=AS.ErrorCustom,XS=AS.Update,YS=AS.Choose,QS=AS.Pure,eM={},tM="xstate.guard",nM="production"===process.env.NODE_ENV;function rM(e,t,n){void 0===n&&(n=".");var r=sM(e,n),o=sM(t,n);return CM(o)?!!CM(r)&&o===r:CM(r)?r in o:Object.keys(r).every((function(e){return e in o&&rM(r[e],o[e])}))}function oM(e){try{return CM(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 iM(e,t){try{return wM(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function sM(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:wM(e)?aM(e):"string"!=typeof e?e:aM(iM(e,t));var n}function aM(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 lM(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 cM(e,t,n){var r,o,i={};try{for(var s=PS(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 dM=function(e){return function(t){var n,r,o=t;try{for(var i=PS(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 uM(e){return e?CM(e)?[[e]]:hM(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?uM(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function hM(e){var t;return(t=[]).concat.apply(t,zS([],IS(e),!1))}function pM(e){return wM(e)?e:[e]}function fM(e){return void 0===e?[]:pM(e)}function mM(e,t,n){var r,o;if(xM(e))return e(t,n.data);var i={};try{for(var s=PS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];xM(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 gM(e){return e instanceof Promise||!(null===e||!xM(e)&&"object"!=typeof e||!xM(e.then))}function bM(e,t){return lM(e.states,(function(e,n){if(e){var r=(CM(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:bM(e,r)}}}))}function vM(e,t,n,r){nM||yM(!!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(xM(s))l=s(e,t.data,a);else try{for(var c=PS(Object.keys(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=s[u];l[u]=xM(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 yM=function(){};function wM(e){return Array.isArray(e)}function xM(e){return"function"==typeof e}function CM(e){return"string"==typeof e}function kM(e,t){if(e)return CM(e)?{type:tM,name:e,predicate:t?t[e]:void 0}:xM(e)?{type:tM,name:e.name,predicate:e}:e}nM||(yM=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 SM(e){return!!e&&"__xstatenode"in e}function MM(e,t){return CM(e)||"number"==typeof e?RS({type:e},t):e}function EM(e,t){if(!CM(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=MM(e);return RS({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function TM(e,t){return pM(t).map((function(t){return void 0===t||"string"==typeof t||SM(t)?{target:t,event:e}:RS(RS({},t),{event:e})}))}function OM(e,t,n,r,o){var i=e.options.guards,s={state:o,cond:t,_event:r};if(t.type===tM)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 LM(e){return"string"==typeof e?{type:e}:e}function AM(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 NM(e,t){return"".concat(e,":invocation[").concat(t,"]")}function RM(e){return(e.type===BS||e.type===_S&&e.to===NS.Internal)&&"number"!=typeof e.delay}(GS={})[$M]=function(){return this},GS[Symbol.observable]=function(){return this};var DM=EM({type:US});function PM(e,t){return t&&t[e]||void 0}function IM(e,t){var n;if(CM(e)||"number"==typeof e)n=xM(r=PM(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(xM(e))n={type:e.name||e.toString(),exec:e};else{var r;if(xM(r=PM(e.type,t)))n=RS(RS({},e),{exec:r});else if(r){var o=r.type||e.type;n=RS(RS(RS({},r),e),{type:o})}else n=e}return n}var zM=function(e,t){return e?(wM(e)?e:[e]).map((function(e){return IM(e,t)})):[]};function VM(e){var t=IM(e);return RS(RS({id:CM(e)?e:t.id},t),{type:t.type})}function HM(e,t){var n="".concat(AS.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function BM(e,t){var n="".concat(AS.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function _M(e,t){var n="".concat(AS.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function jM(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=PS(e),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;)s.actions[a].type!==qS?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 BS:var h=function(e,t,n,r){var o,i={_event:n},s=EM(xM(e.event)?e.event(t,n.data,i):e.event);if(CM(e.delay)){var a=r&&r[e.delay];o=xM(a)?a(t,n.data,i):a}else o=xM(e.delay)?e.delay(t,n.data,i):e.delay;return RS(RS({},e),{type:BS,_event:s,delay:o})}(a,l,r,e.options.delays);return i&&"number"==typeof h.delay&&i(h,l,r),h;case _S:var p=function(e,t,n,r){var o,i={_event:n},s=EM(xM(e.event)?e.event(t,n.data,i):e.event);if(CM(e.delay)){var a=r&&r[e.delay];o=xM(a)?a(t,n.data,i):a}else o=xM(e.delay)?e.delay(t,n.data,i):e.delay;var l=xM(e.to)?e.to(t,n.data,i):e.to;return RS(RS({},e),{to:l,_event:s,event:s.data,delay:o})}(a,l,r,e.options.delays);if(!nM){var f=a.delay;yM(!CM(f)||"number"==typeof p.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&p.to!==NS.Internal&&("entry"===o?d.push(p):i(p,l,r)),p;case WS:var m=function(e,t,n){return RS(RS({},e),{value:CM(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(a,l,r);return null==i||i(m,l,r),m;case YS:if(!(y=null===(u=a.conds.find((function(n){var o=kM(n.cond,e.options.guards);return!o||OM(e,o,l,r,i?void 0:t)})))||void 0===u?void 0:u.actions))return[];var g=IS(jM(e,t,l,r,[{type:o,actions:zM(fM(y),e.options.actions)}],i,s),2),b=g[0],v=g[1];return l=v,null==c||c.push(l),b;case QS:var y;if(!(y=a.get(l,r.data)))return[];var w=IS(jM(e,t,l,r,[{type:o,actions:zM(fM(y),e.options.actions)}],i,s),2),x=w[0],C=w[1];return l=C,null==c||c.push(l),x;case HS:m=function(e,t,n){var r=xM(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:AS.Stop,activity:o}}(a,l,r);return null==i||i(m,n,r),m;case qS:l=vM(l,r,[a],i?void 0:t),null==c||c.push(l);break;default:var k=IM(a,e.options.actions),$=k.exec;if(i)i(k,l,r);else if($&&c){var S=c.length-1,M=RS(RS({},k),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];$.apply(void 0,zS([c[S]],IS(t),!1))}});k=M}return k}}var h=hM(o.map((function(e){var t,n,o=[];try{for(var s=PS(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 FM=function(e,t){return t(e)};function qM(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 WM(e,t,n){var r=qM(t);if(r.deferred=!0,SM(e)){var o=r.state=FM(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var UM=function(e){return"atomic"===e.type||"final"===e.type};function KM(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function GM(e){return KM(e).filter((function(e){return"history"!==e.type}))}function ZM(e){var t=[e];return UM(e)?t:t.concat(hM(GM(e).map(ZM)))}function JM(e,t){var n,r,o,i,s,a,l,c,d=YM(new Set(e)),u=new Set(t);try{for(var h=PS(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=YM(u);try{for(var g=PS(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,PS(GM(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=PS(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 XM(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(UM(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=XM(e,t)})),o}function YM(e){var t,n,r=new Map;try{for(var o=PS(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 QM(e,t){return XM(e,YM(JM([e],t)))}function eE(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function tE(e,t){return"compound"===t.type?GM(t).some((function(t){return"final"===t.type&&eE(e,t)})):"parallel"===t.type&&GM(t).every((function(t){return tE(e,t)}))}function nE(e){return new Set(hM(e.map((function(e){return e.tags}))))}function rE(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(CM(e)||CM(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return rE(e[n],t[n])}))}var oE=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=eM,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||eM,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 zS([],IS(new Set(hM(zS([],IS(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:DM,_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=DM;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="."),CM(e))return[e];var r=Object.keys(e);return r.concat.apply(r,zS([],IS(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=DS(e,["configuration","transitions","tags","machine"]);return RS(RS({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return rM(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;nM&&yM(!!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}(),iE={deferEvents:!1},sE=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=RS(RS({},iE),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}(),aE=new Map,lE=0,cE=function(){return"x:".concat(lE++)},dE=function(e,t){return aE.set(e,t),e},uE=function(e){return aE.get(e)},hE=function(e){aE.delete(e)};function pE(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(nM||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 fE(e){if(pE()){var t=function(){var e=pE();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function mE(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,s=function(e){var t;return RS(((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=AM(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 gE,bE={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(gE||(gE={}));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=gE.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(wM(e))return r.batch(e),r.state;var n=EM(MM(e,t));if(r.status===gE.Stopped)return nM||yM(!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!==gE.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===NS.Parent||r.parent.id===t),s=i?r.parent:CM(t)?t===NS.Internal?r:r.children.get(t)||uE(t):(o=t)&&"function"==typeof o.send?t:void 0;if(s)if("machine"in s){if(r.status!==gE.Stopped||r.parent!==s||r.state.done){var a=RS(RS({},e),{name:e.name===JS?"".concat(_M(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,"'."));nM||yM(!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||PM(e.type,o),s=xM(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 BS:var a=e;r.defer(a);break;case _S:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===DM):r.send(l._event);break;case jS:r.cancel(e.sendId);break;case VS:if(r.status!==gE.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===AS.Invoke){var d=LM(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,h=c.id,p=c.data;nM||yM(!("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(nM||yM(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var m=p?mM(p,t,n):void 0;if("string"==typeof u)return;var g=xM(u)?u(t,n.data,{data:m,src:d,meta:c.meta}):u;if(!g)return;var b=void 0;SM(g)&&(g=m?g.withContext(m):g,b={autoForward:f}),r.spawn(g,h,b)}else r.spawnActivity(c);break;case HS:r.stopChild(e.activity.id);break;case WS:var v=e,y=v.label,w=v.value;y?r.logger(y,w):r.logger(w);break;default:nM||yM(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=RS(RS({},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 sE({deferEvents:this.options.deferEvents}),this.sessionId=cE()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:FM(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return nM||yM(this.status!==gE.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=PS(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!==DM||!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=PS(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=PS(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=PS(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?mM(v.doneData,e.context,t):void 0;this._doneEvent=BM(this.id,y);try{for(var w=PS(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(),hE(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===gE.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=AM(e,t,n);this.listeners.add(o.next),this.status!==gE.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===gE.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===gE.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===gE.Running)return this;this.machine._init(),dE(this.sessionId,this),this.initialized=!0,this.status=gE.Running;var n=void 0===e?this.initialState:FM(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(oE.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,DM)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){xM(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=PS(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=PS(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=PS(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=PS(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=gE.Stopped,this._initialState=void 0;try{for(var y=PS(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 sE({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=EM({type:"xstate.stop"}),r=FM(e,(function(){var t=hM(zS([],IS(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return zM(t.onExit,e.machine.options.actions)}))),r=IS(jM(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 oE({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!RM(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(),hE(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===gE.NotStarted&&this.options.deferEvents)nM||yM(!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!==gE.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=EM(e);t.forward(r),i=FM(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),a.push.apply(a,zS([],IS(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return RS(RS({},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=PS(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,EM(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=EM(e);if(0===r.name.indexOf(ZS)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(ZS)})))throw r.data.data;return FM(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=PS(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),xM(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==gE.Running)return WM(e,t);if(gM(e))return this.spawnPromise(Promise.resolve(e),t);if(xM(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&&xM(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(SM(e))return this.spawnMachine(e,RS(RS({},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,RS(RS({},this.options),{parent:this,id:n.id||t.id})),i=RS(RS({},bE),n);i.sync&&o.onTransition((function(e){r.send(XS,{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(EM(e,{origin:o.id}))})).start(),s},e.prototype.spawnBehavior=function(e,t){var n=mE(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(EM(BM(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=_M(t,e);try{o.send(EM(n,{origin:t}))}catch(r){!function(e,t,n){if(!nM){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=AM(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(EM(e,{origin:t}))}),(function(e){a.add(e)}))}catch(e){this.send(_M(t,e))}if(gM(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=AM(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){s=!0,xM(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(EM(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(EM(_M(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(EM(BM(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 nM||yM(!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=pE();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(RS(RS({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:RS({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}fE(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[$M]=function(){return this},e.prototype.getSnapshot=function(){return this.status===gE.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=yE,e}();function yE(e,t){return new vE(e,t)}function wE(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function xE(e){return RS(RS({type:KS},e),{toJSON:function(){e.onDone,e.onError;var t=DS(e,["onDone","onError"]);return RS(RS({},t),{type:KS,src:wE(e.src)})}})}var CE="",kE="*",$E={},SE=function(e){return"#"===e[0]},ME=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||zS([this.machine.key],IS(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,nM||yM(!("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?lM(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:s,key:n});return Object.assign(s.idMap,RS(((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=PS(KM(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===CE})):CE in this.config.on),this.strict=!!this.config.strict,this.onEntry=fM(this.config.entry||this.config.onEntry).map((function(e){return IM(e)})),this.onExit=fM(this.config.exit||this.config.onExit).map((function(e){return IM(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=fM(this.config.invoke).map((function(e,t){var n,r;if(SM(e)){var o=NM(s.id,t);return s.machine.options.services=RS(((n={})[o]=e,n),s.machine.options.services),xE({src:o,id:o})}if(CM(e.src)){o=e.id||NM(s.id,t);return xE(RS(RS({},e),{id:o,src:e.src}))}if(SM(e.src)||xM(e.src)){o=e.id||NM(s.id,t);return s.machine.options.services=RS(((r={})[o]=e.src,r),s.machine.options.services),xE(RS(RS({id:o},e),{src:o}))}var i=e.src;return xE(RS(RS({id:NM(s.id,t)},e),{src:i}))})),this.activities=fM(this.config.activities).concat(this.invoke).map((function(e){return VM(e)})),this.transition=this.transition.bind(this),this.tags=fM(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||ZM(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:RS(RS({},o),t.actions),activities:RS(RS({},i),t.activities),guards:RS(RS({},s),t.guards),services:RS(RS({},a),t.services),delays:RS(RS({},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 xM(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:lM(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===CE,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===kE}));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(AS.After,"(").concat(e,")").concat(n)}(xM(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:_S,event:xM(e)?e:MM(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:xM(e)?e.name:oM(e)}}(r,{delay:t})),e.onExit.push({type:jS,sendId:r}),r},r=wM(t)?t.map((function(e,t){var r=n(e.delay,t);return RS(RS({},e),{event:r})})):hM(Object.keys(t).map((function(e,r){var o=t[e],i=CM(o)?{target:o}:o,s=isNaN(+e)?e:+e,a=n(s,r);return fM(i).map((function(e){return RS(RS({},e),{event:a,delay:s})}))})));return r.map((function(t){var n=t.delay;return RS(RS({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof oE?e.value:sM(e,this.delimiter);if(CM(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,zS([],IS(hM(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),s},e.prototype.handles=function(e){var t=oM(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof oE?e:oE.create(e),n=Array.from(JM([],this.getStateNodes(t.value)));return new oE(RS(RS({},t),{value:this.resolve(t.value),configuration:n,done:tE(n,this),tags:nE(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=PS(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=hM(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var p=hM(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:h,exitSet:hM(u.map((function(e){return e.exitSet}))),configuration:p,source:t,actions:hM(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return CM(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,EM(t))},e.prototype.next=function(e,t){var n,r,o,i=this,s=t.name,a=[],l=[];try{for(var c=PS(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||(CM(p)&&SE(p)?e.matches(sM(this.getStateNodeById(p).path,this.delimiter)):rM(sM(p,this.delimiter),dM(this.path.slice(0,-2))(e.value))),g=!1;try{g=!h||OM(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,zS([],IS(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=hM(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:hM(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?JM([],this.getStateNodes(i.value)):[],p=new Set;try{for(var f=PS(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=f.next();!m.done;m=f.next()){(!eE(h,v=m.value)||eE(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=PS(h),b=g.next();!b.done;b=g.next()){var v;eE(e,v=b.value)&&!eE(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=hM(y.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(HM(e.id,e.doneData),HM(i.id,e.doneData?mM(e.doneData,r,o):void 0));var s=i.parent;return"parallel"===s.type&&GM(s).every((function(e){return tE(n.configuration,e)}))&&t.push(HM(s.id)),t}))),C=y.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=VM(e);return{type:AS.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:zM(s?zS(zS([],IS(t),!1),IS(n),!1):zS(zS([],IS(n),!1),IS(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:x.map((function(e){return function(e,t){return{type:BS,event:"function"==typeof e?e:MM(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:zM(zS(zS([],IS(e.onExit),!1),IS(e.activities.map((function(e){return function(e){var t=xM(e)?e:VM(e);return{type:AS.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:zM(n.actions,this.machine.options.actions)}).concat(C);if(t){var $=zM(hM(zS([],IS(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!RM(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=EM(t);if(e instanceof oE)o=void 0===n?e:this.resolveState(oE.from(e,n));else{var a=CM(e)?this.resolve(aM(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(oE.from(a,l))}if(!nM&&s.name===kE)throw new Error("An event cannot have the wildcard type ('".concat(kE,"')"));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=JM([],this.getStateNodes(o.value)),u=c.configuration.length?JM(d,c.configuration):d;return c.configuration=zS([],IS(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,zS([],IS(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,s,a,l,c=this;void 0===o&&(o=DM);var d=e.configuration,u=!t||e.transitions.length>0,h=u?e.configuration:t?t.configuration:[],p=tE(h,this),f=u?QM(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?RS({},t.activities):{};try{for(var v=PS(g),y=v.next();!y.done;y=v.next()){var w=y.value;try{for(var x=(a=void 0,PS(w.actions)),C=x.next();!C.done;C=x.next()){var k=C.value;k.type===VS?b[k.activity.id||k.activity.type]=k:k.type===HS&&(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=IS(jM(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),E=M[0],T=M[1],O=IS(function(e,t){var n,r,o=IS([[],[]],2),i=o[0],s=o[1];try{for(var a=PS(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,RM),2),L=O[0],A=O[1],N=E.filter((function(e){var t;return e.type===VS&&(null===(t=e.activity)||void 0===t?void 0:t.type)===KS})),R=N.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=LM(e.src),s=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],a=e.data?mM(e.data,n,r):void 0,l=s?WM(s,e.id,a):qM(e.id);return l.meta=e,l}(t.activity,c.machine,T,o),e}),t?RS({},t.children):{}),D=new oE({value:f||t.value,context:T,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?m?($=m,S=f,{current:S,states:bM($,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:nE(h),machine:this}),P=n!==T;D.changed=o.name===XS||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!==CE))return D;var V=D;if(!p)for(z&&(V=this.resolveRaisedTransition(V,{type:FS},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||!rE(V.value,I.value):void 0);return V.changed=B,V.history=I,V},e.prototype.getStateNode=function(e){if(SE(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=SE(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&&SE(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=iM(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 lM(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):$E}));case"compound":if(CM(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?lM(e,(function(e,t){return e?n.getStateNode(t).resolve(e):$E})):this.initialStateValue||{};default:return e||$E}},e.prototype.getResolvedPath=function(e){if(SE(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 iM(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=cM(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=UM(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=CM(t.target)&&SE(t.target)?aM(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 UM(this)?[this]:"compound"!==this.type||this.initial?hM(uM(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(nM||yM(!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=IS(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:cM(this.states,(function(t,n){if(!e)return t.historyValue();var r=CM(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?hM(uM(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=PS(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 CM(s)?[n.getStateNode(s)]:hM(uM(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=hM(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=PS(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,PS(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(!CM(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 fM(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return CM(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),s=RS(RS({},e),{actions:zM(fM(e.actions)),cond:kM(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return RS(RS({},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=kE,s=o[i],a=void 0===s?[]:s,l=DS(o,["*"]);n=hM(Object.keys(l).map((function(e){nM||e!==CE||yM(!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=TM(e,l[e]);return nM||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(CM(e.target)||SM(e.target))})),o=t===CE?"the transient event":"event '".concat(t,"'");yM(!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(TM(kE,a)))}else n=[];var c=this.config.always?TM("",this.config.always):[],d=this.config.onDone?TM(String(HM(this.id)),this.config.onDone):[];nM||yM(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=hM(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,zS([],IS(TM(String(BM(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,zS([],IS(TM(String(_M(e.id)),e.onError)),!1)),t}))),h=this.after,p=hM(zS(zS(zS(zS([],IS(d),!1),IS(u),!1),IS(n),!1),IS(c),!1).map((function(e){return fM(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=PS(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 EE,TE=function(e){return{type:qS,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(EE||(EE={}));var OE="undefined"!=typeof document?de:function(){};function LE(e){var t=ee.useRef();return t.current||(t.current={v:e()}),t.current.v}var AE=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},NE=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 RE=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},DE=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 PE(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function IE(e){var t=se([]),n=se([]);OE((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=RE(function(e,t){var n,r,o=AE([[],[]],2),i=o[0],s=o[1];try{for(var a=NE(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===EE.Effect})),2),a=s[0],l=s[1];(r=t.current).push.apply(r,DE([],RE(a.map((function(t){return[t,e]}))),!1)),(o=n.current).push.apply(o,DE([],RE(l.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),OE((function(){for(;n.current.length;){var e=RE(n.current.shift(),2);PE(e[0],e[1])}})),ce((function(){for(;t.current.length;){var e=RE(t.current.shift(),2);PE(e[0],e[1])}}))}var zE=function(){return zE=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},zE.apply(this,arguments)},VE=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},HE=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 BE=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 _E(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=LE((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var o=HE(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=VE(t,["context","guards","actions","activities","services","delays","state"]),p=LE((function(){var e={context:i,guards:s,actions:a,activities:l,services:c,delays:d};return yE(r.withConfig(e,(function(){return zE(zE({},r.context),i)})),zE({deferEvents:!0},h))}));return OE((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]),OE((function(){return p.start(u?oE.create(u):void 0),function(){p.stop()}}),[]),OE((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]),IE(p),p}(e,t,n),o=BE(ae((function(){var e=r.machine.initialState;return t.state?oE.create(t.state):e})),2),i=o[0],s=o[1];return[i,r.send,r]}function jE(){return jE=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},jE.apply(null,arguments)}function FE(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 qE={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(qE.str(e)||qE.num(e))return e===t;if(qE.obj(e)&&qE.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!qE.und(n)||e===t}};function WE(e,t){return qE.und(e)||qE.nul(e)?t:e}function UE(e){return qE.und(e)?[]:qE.arr(e)?e:[e]}function KE(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 qE.fun(e)?e(...n):e}function GE(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,FE(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(qE.und(t))return jE({to:t},e);const n=Object.keys(e).reduce(((n,r)=>qE.und(t[r])?jE({},n,{[r]:e[r]}):n),{});return jE({to:t},n)}class ZE{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 JE extends ZE{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof ZE&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof ZE&&e.removeChild(this)))}}class XE extends ZE{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof ZE&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof ZE&&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 ZE)&&(t[n]=r instanceof ZE?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let YE,QE;let eT,tT=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let nT,rT=()=>Date.now();class oT extends XE{constructor(e,t){super(),this.update=void 0,this.payload=e.style?jE({},e,{style:nT(e.style)}):e,this.update=t,this.attach()}}let iT=!1;const sT=new Set,aT=()=>{if(!iT)return!1;let e=rT();for(let t of sT){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 ZE,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||(sT.delete(t),t.stop(!0))}return sT.size?tT(aT):iT=!1,iT};function lT(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return lT({range:e,output:t,extrapolate:n});if(eT&&"string"==typeof e.output[0])return eT(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 cT extends JE{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof JE&&!(e instanceof cT)?e.getPayload():Array.isArray(e)?e:[e],this.calc=lT(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=lT(e,t,n)}interpolate(e,t,n){return new cT(this,e,t,n)}}const dT=(e,t,n)=>e&&new cT(e,t,n);function uT(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>uT(e,t)))}class hT extends ZE{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&&uT(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new cT(this,e,t,n)}}class pT extends JE{constructor(e){super(),this.payload=e.map((e=>new hT(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 cT(this,e,t)}}let fT=0,mT=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=fT++}update(e){if(!e)return this;const t=GE(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=FE(t,["delay","to"]);if(qE.arr(o)||qE.fun(o))this.queue.push(jE({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const s=jE({to:{[n]:o},delay:KE(r,n)},i),a=e[s.delay]&&e[s.delay].to;e[s.delay]=jE({},e[s.delay],s,{to:jE({},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;qE.obj(n)&&(this.merged=jE({},n,this.merged)),qE.obj(o)&&(this.merged=jE({},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=FE(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=qE.arr(s.to)||qE.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 qE.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,sT.has(t)||sT.add(t),iT||(iT=!0,tT(aT));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,sT.has(t)&&sT.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=FE(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(qE.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=jE({},r,GE(r.to[t]));qE.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(qE.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=jE({},r,GE(n));if(qE.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=jE({},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=jE({},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=qE.num(o),l=qE.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!QE[o],c=qE.arr(o),h=!s&&!c&&!l;let f=qE.und(r[n])?o:r[n],m=s||c||l?o:1,g=KE(a,n);p&&(m=p.animations[n].parent);let b,v=i.parent,y=i.interpolation,w=UE(p?m.getPayload():m),x=o;h&&(x=eT({range:[0,1],output:[o,o]})(1));let C=y&&y.getValue();const k=!qE.und(v)&&i.animatedValues.some((e=>!e.done)),$=!qE.equ(x,C),S=!qE.equ(x,i.previous),M=!qE.equ(g,i.config);if(d||S&&$||M){if(s||l)v=y=i.parent||new hT(f);else if(c)v=y=i.parent||new pT(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 hT(0);const t={output:[e,o]};i.interpolation?(y=i.interpolation,i.interpolation.updateConfig(t)):y=v.interpolate(t)}return w=UE(p?m.getPayload():m),b=UE(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=rT(),e.done=!1,e.animatedStyles.clear()})),KE(u,n)&&v.setValue(h?m:o,!1),jE({},e,{[n]:jE({},i,{name:n,parent:v,interpolation:y,animatedValues:b,toValues:w,previous:x,config:g,fromValues:UE(v.getValue()),immediate:KE(u,n),initialVelocity:WE(g.velocity,0),clamp:WE(g.clamp,!1),precision:WE(g.precision,.01),tension:WE(g.tension,170),friction:WE(g.friction,26),mass:WE(g.mass,1),duration:g.duration,easing:WE(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,jE({},e,{[n]:jE({},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 gT=e=>{const t=qE.fun(e),n=((e,t)=>{const n=se(!1),r=se(),o=qE.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 mT,s=o?KE(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?KE(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 bT extends XE{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof ZE||(e=YE.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},yT="[-+]?\\d*\\.?\\d+",wT=yT+"%";function xT(){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 CT=new RegExp("rgb"+xT(yT,yT,yT)),kT=new RegExp("rgba"+xT(yT,yT,yT,yT)),$T=new RegExp("hsl"+xT(yT,wT,wT)),ST=new RegExp("hsla"+xT(yT,wT,wT,yT)),MT=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ET=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,TT=/^#([0-9a-fA-F]{6})$/,OT=/^#([0-9a-fA-F]{8})$/;function LT(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 AT(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=LT(o,r,e+1/3),s=LT(o,r,e),a=LT(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function NT(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function RT(e){return(parseFloat(e)%360+360)%360/360}function DT(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function PT(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function IT(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=TT.exec(e))?parseInt(t[1]+"ff",16)>>>0:vT.hasOwnProperty(e)?vT[e]:(t=CT.exec(e))?(NT(t[1])<<24|NT(t[2])<<16|NT(t[3])<<8|255)>>>0:(t=kT.exec(e))?(NT(t[1])<<24|NT(t[2])<<16|NT(t[3])<<8|DT(t[4]))>>>0:(t=MT.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=OT.exec(e))?parseInt(t[1],16)>>>0:(t=ET.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|AT(RT(t[1]),PT(t[2]),PT(t[3])))>>>0:(t=ST.exec(e))?(AT(RT(t[1]),PT(t[2]),PT(t[3]))|DT(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 zT=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,VT=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,HT=new RegExp(`(${Object.keys(vT).join("|")})`,"g");let BT={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 _T=["Webkit","Ms","Moz","O"];function jT(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||BT.hasOwnProperty(e)&&BT[e]?(""+t).trim():t+"px"}BT=Object.keys(BT).reduce(((e,t)=>(_T.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),BT);const FT={};var qT,WT;qT=e=>new bT(e),nT=qT,WT=e=>{const t=e.output.map((e=>e.replace(VT,IT))).map((e=>e.replace(HT,IT))),n=t[0].match(zT).map((()=>[]));t.forEach((e=>{e.match(zT).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(zT).map(((t,r)=>lT(jE({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(zT,(()=>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})`))}},eT=WT,QE=vT,function(e,t){YE={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=FE(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=jT(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:FT[t]||(FT[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var UT;const KT=(UT=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 oT(e,(()=>{let e=!1;s.current&&(e=YE.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=FE(l,["scrollTop","scrollLeft"]),d=(u=e,!qE.fun(u)||u.prototype instanceof te.Component?e=>s.current=function(e,t){return t&&(qE.fun(t)?t(e):qE.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return te.createElement(e,jE({},c,{ref:d}))})),e=>(qE.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=UT(n),e}),UT))(["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 GT(e,t){return e.map((function(e,n){return e+t[n]}))}function ZT(e,t){return e.map((function(e,n){return e-t[n]}))}function JT(e){return Math.hypot.apply(Math,e)}function XT(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function YT(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 QT(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?-YT(t-e,n-t,r)+t:e>n?+YT(e-n,n-t,r)+n:e}function eO(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 tO(){return tO=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},tO.apply(this,arguments)}function nO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function rO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oO(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 iO(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 oO(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)?oO(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 sO(){}function aO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?sO:1===t.length?t[0]:function(){for(var e,n,r=iO(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function lO(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 cO(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 dO(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]=dO(e[s],a);break;case"boolean":a&&(n[s]=e[s])}}return n}var uO=tO({},{threshold:function(e){return void 0===e&&(e=0),lO(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return lO(.15);case!1:return lO(0);default:return lO(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:lO(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 uO.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]]}}),hO="undefined"!=typeof window&&window.document&&window.document.createElement,pO={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=hO?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}}},fO=tO({},uO,{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=lO(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),lO(e)},swipeDistance:function(e){return void 0===e&&(e=60),lO(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function mO(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={}),dO(e,pO)}({domTarget:t,eventOptions:n,window:r,enabled:o});return s.drag=function(e){return void 0===e&&(e={}),dO(e,fO)}(i),s}function gO(e){return tO({_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:sO,canceled:!1,memo:void 0,args:void 0},e)}function bO(){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:gO({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:gO({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:gO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:gO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:gO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var vO=new Map,yO=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=tO({},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]?wO(p[0],i[0]):d[0],m=!1===d[1]?wO(p[1],i[1]):d[1],g=this.checkIntentionality([f,m],p);if(g._blocked)return tO({},g,{_movement:p,delta:[0,0]});var b,v,y,w,x=g._intentional,C=p;(!1!==x[0]&&!1===d[0]&&(v=cO(n,this.state),b=cO(r,this.state),l[0]=v[0],a[0]=b[0]),!1!==x[1]&&!1===d[1])&&(v=null!=(y=v)?y:cO(n,this.state),b=null!=(w=b)?w:cO(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]],$=GT(k,u),S=c?o:[0,0];return k=xO(a,GT(k,l),S),tO({},g,{intentional:!1!==x[0]||!1!==x[1],_initial:l,_movement:C,movement:k,values:e,offset:xO(a,$,S),delta:ZT(k,h)})},t.clean=function(){this.clearTimeout()},eO(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 wO(e,t){return Math.abs(e)>=t&&XT(e)*t}function xO(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[QT(r,l,c,i),QT(o,u,h,s)]}function CO(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 kO(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,tO({},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=iO(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];EO(e,c[0],kO(c[1],tO({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=MO(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;OO(o,SO(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,aO.apply(void 0,d)])}TO(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]=aO.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=MO(t.config),n=t.config.eventOptions;e&&OO(e,SO(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){OO(n,o[i],r)}e.windowListeners={}}(t)},this.state=bO(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function SO(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function MO(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function EO(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function TO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=iO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.addEventListener(s,a,n)}}function OO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=iO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.removeEventListener(s,a,n)}}function LO(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 $O(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,te.useEffect(o.effect,[]),o.config.domTarget?AO:o.bind}function AO(){"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 NO=function(e){function t(){return e.apply(this,arguments)||this}nO(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return ZT(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=JT(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:JT(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(yO);function RO(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function DO(e){var t="buttons"in e?e.buttons:0,n=RO(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 PO(e){var t=RO(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var IO=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&&(OO(r.window,o[t],r.eventOptions),TO(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(rO(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=DO(e);if(n.down){t.updateSharedState(n);var r=PO(e),o=t.getKinematics(r,e),i=CO(rO(t),e),s=t.state._isTap,a=JT(o._movement);s&&a>=3&&(s=!1),t.updateGestureState(tO({},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=tO({},CO(rO(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]=XT(o)),!1!==u&&Math.abs(i)>f&&Math.abs(l)>b&&(y[1]=XT(i))),t.updateGestureState(tO({},v,{tap:n,swipe:y})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(rO(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(OO(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}nO(t,e);var n=t.prototype;return n.startDrag=function(e){var t=PO(e);this.updateSharedState(DO(e)),this.updateGestureState(tO({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return tO({},bO()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),CO(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(EO(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&EO(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(NO);function zO(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(!zO(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(!zO(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||zO(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function VO(e,t){try{return zO(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 HO(e,t){void 0===t&&(t={}),vO.set("drag",IO);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}}(mO,VO)),LO({drag:e},n.current(t))}
|
|
3031
3037
|
/*!
|
|
3032
3038
|
* tabbable 5.3.3
|
|
3033
3039
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
3034
|
-
*/var
|
|
3040
|
+
*/var BO=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],_O=BO.join(","),jO="undefined"==typeof Element,FO=jO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,qO=!jO&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},WO=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(_O));return t&&FO.call(e,_O)&&r.unshift(e),r=r.filter(n)},UO=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{FO.call(s,_O)&&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},KO=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},GO=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ZO=function(e){return"INPUT"===e.tagName},JO=function(e){return function(e){return ZO(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||qO(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)},XO=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},YO=function(e,t){return!(t.disabled||function(e){return ZO(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=FO.call(e,"details>summary:first-of-type")?e.parentElement:e;if(FO.call(o,"details:not([open]) *"))return!0;var i=qO(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 XO(e)}else{if("function"==typeof r){for(var a=e;e;){var l=e.parentElement,c=qO(e);if(l&&!l.shadowRoot&&!0===r(l))return XO(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!!FO.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},QO=function(e,t){return!(JO(t)||KO(t)<0||!YO(e,t))},eL=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},tL=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scope,s=i?t.scope:t,a=KO(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(GO).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},nL=function(e,t){var n;return n=(t=t||{}).getShadowRoot?UO([e],t.includeContainer,{filter:QO.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:eL}):WO(e,t.includeContainer,QO.bind(null,t)),tL(n)},rL=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==FO.call(e,_O)&&QO(t,e)},oL=BO.concat("iframe").join(","),iL=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==FO.call(e,oL)&&YO(t,e)};
|
|
3035
3041
|
/*!
|
|
3036
3042
|
* focus-trap 6.9.4
|
|
3037
3043
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
3038
3044
|
*/
|
|
3039
|
-
function rL(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 oL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rL(Object(n),!0).forEach((function(t){iL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sL,aL=(sL=[],{activateTrap:function(e){if(sL.length>0){var t=sL[sL.length-1];t!==e&&t.pause()}var n=sL.indexOf(e);-1===n||sL.splice(n,1),sL.push(e)},deactivateTrap:function(e){var t=sL.indexOf(e);-1!==t&&sL.splice(t,1),sL.length>0&&sL[sL.length-1].unpause()}}),lL=function(e){return setTimeout(e,0)},cL=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},dL=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},uL=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},hL=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=oL({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=QO(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?FO([t],n.includeContainer,{filter:ZO.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):jO(t,n.includeContainer,ZO.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 eL(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return eL(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=uL(e);a(t)>=0||(dL(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!nL(t,o.tabbableOptions)}):dL(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=uL(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!==dL(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=uL(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=cL(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(s.container===t||nL(t,o.tabbableOptions)&&!eL(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=cL(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(p<0&&(s.container===t||nL(t,o.tabbableOptions)&&!eL(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=uL(e);a(t)>=0||dL(o.clickOutsideDeactivates,e)||dL(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(i.active)return aL.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?lL((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=oL({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,v(),i.active=!1,i.paused=!1,aL.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(){lL((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 pL=!1;if("undefined"!=typeof window){var fL={get passive(){pL=!0}};window.addEventListener("testPassive",null,fL),window.removeEventListener("testPassive",null,fL)}var mL,gL="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=[],vL=!1,yL=-1,wL=void 0,xL=void 0,CL=function(e){return bL.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},kL=function(e){var t=e||window.event;return!!CL(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},$L=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]),gL?(e.ontouchstart=function(e){1===e.targetTouches.length&&(yL=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-yL;!CL(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?kL(e):e.stopPropagation())}(t,e)},vL||(document.addEventListener("touchmove",kL,pL?{passive:!1}:void 0),vL=!0)):function(e){if(void 0===xL){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(xL=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===wL&&(wL=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.")},SL=function(e){e?(bL=bL.filter((function(t){return t.targetElement!==e})),gL?(e.ontouchstart=null,e.ontouchmove=null,vL&&0===bL.length&&(document.removeEventListener("touchmove",kL,pL?{passive:!1}:void 0),vL=!1)):bL.length||(void 0!==xL&&(document.body.style.paddingRight=xL,xL=void 0),void 0!==wL&&(document.body.style.overflow=wL,wL=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},ML=[],EL="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"}(mL||(mL={}));var TL,OL=function(e){return Object.freeze(e)},LL=function(e,t){this.inlineSize=e,this.blockSize=t,OL(this)},AL=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,OL(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}(),NL=function(e){return e instanceof SVGElement&&"getBBox"in e},RL=function(e){if(NL(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)},DL=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)},PL="undefined"!=typeof window?window:{},IL=new WeakMap,zL=/auto|scroll/,VL=/^tb|vertical/,HL=/msie|trident/i.test(PL.navigator&&PL.navigator.userAgent),BL=function(e){return parseFloat(e||"0")},_L=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new LL((n?t:e)||0,(n?e:t)||0)},jL=OL({devicePixelContentBoxSize:_L(),borderBoxSize:_L(),contentBoxSize:_L(),contentRect:new AL(0,0,0,0)}),FL=function(e,t){if(void 0===t&&(t=!1),IL.has(e)&&!t)return IL.get(e);if(RL(e))return IL.set(e,jL),jL;var n=getComputedStyle(e),r=NL(e)&&e.ownerSVGElement&&e.getBBox(),o=!HL&&"border-box"===n.boxSizing,i=VL.test(n.writingMode||""),s=!r&&zL.test(n.overflowY||""),a=!r&&zL.test(n.overflowX||""),l=r?0:BL(n.paddingTop),c=r?0:BL(n.paddingRight),d=r?0:BL(n.paddingBottom),u=r?0:BL(n.paddingLeft),h=r?0:BL(n.borderTopWidth),p=r?0:BL(n.borderRightWidth),f=r?0:BL(n.borderBottomWidth),m=u+c,g=l+d,b=(r?0:BL(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:BL(n.width)-x-w,$=r?r.height:BL(n.height)-C-y,S=k+m+w+b,M=$+g+y+v,E=OL({devicePixelContentBoxSize:_L(Math.round(k*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:_L(S,M,i),contentBoxSize:_L(k,$,i),contentRect:new AL(u,l,k,$)});return IL.set(e,E),E},qL=function(e,t,n){var r=FL(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case mL.DEVICE_PIXEL_CONTENT_BOX:return s;case mL.BORDER_BOX:return o;default:return i}},WL=function(e){var t=FL(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=OL([t.borderBoxSize]),this.contentBoxSize=OL([t.contentBoxSize]),this.devicePixelContentBoxSize=OL([t.devicePixelContentBoxSize])},UL=function(e){if(RL(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},KL=function(){var e=1/0,t=[];ML.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new WL(t.target),o=UL(t.target);r.push(n),t.lastReportedSize=qL(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},GL=function(e){ML.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(UL(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},ZL=function(){var e=0;for(GL(e);ML.some((function(e){return e.activeTargets.length>0}));)e=KL(),GL(e);return ML.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:EL}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=EL),window.dispatchEvent(e)}(),e>0},JL=[],XL=function(e){if(!TL){var t=0,n=document.createTextNode("");new MutationObserver((function(){return JL.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),TL=function(){n.textContent="".concat(t?t--:t++)}}JL.push(e),TL()},YL=0,QL={attributes:!0,characterData:!0,childList:!0,subtree:!0},eA=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],tA=function(e){return void 0===e&&(e=0),Date.now()+e},nA=!1,rA=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),!nA){nA=!0;var n,r=tA(e);n=function(){var n=!1;try{n=ZL()}finally{if(nA=!1,e=r-tA(),!YL)return;n?t.run(1e3):e>0?t.run(e):t.start()}},XL((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,QL)};document.body?t():PL.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),eA.forEach((function(t){return PL.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),eA.forEach((function(t){return PL.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),oA=function(e){!YL&&e>0&&rA.start(),!(YL+=e)&&rA.stop()},iA=function(){function e(e,t){this.target=e,this.observedBox=t||mL.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=qL(this.target,this.observedBox,!0);return function(e){return!NL(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}(),sA=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},aA=new WeakMap,lA=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},cA=function(){function e(){}return e.connect=function(e,t){var n=new sA(e,t);aA.set(e,n)},e.observe=function(e,t,n){var r=aA.get(e),o=0===r.observationTargets.length;lA(r.observationTargets,t)<0&&(o&&ML.push(r),r.observationTargets.push(new iA(t,n&&n.box)),oA(1),rA.schedule())},e.unobserve=function(e,t){var n=aA.get(e),r=lA(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&ML.splice(ML.indexOf(n),1),n.observationTargets.splice(r,1),oA(-1))},e.disconnect=function(e){var t=this,n=aA.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),dA=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.");cA.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(!DL(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");cA.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(!DL(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");cA.unobserve(this,e)},e.prototype.disconnect=function(){cA.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function uA(){return uA=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},uA.apply(this,arguments)}function hA(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 pA="undefined"!=typeof window?de:ce;function fA(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 mA(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var gA={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 pA((function(){if(e.current&&r){var t=new dA(l);return t.observe(e.current,gA),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 yA={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},wA={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},xA=function(e,t,n){return void 0===n&&(n=e.context),new kE(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:uA({},yA,wA)}}},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:uA({},yA,wA)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:uA({},{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:[SE({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}}}),CA=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],kA=["velocity"],$A=["onRest","config"],SA={tension:170,friction:26},MA=SA.tension,EA=SA.friction,TA=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?LA:p,m=e.snapPoints,g=void 0===m?AA: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=hA(e,CA),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 uA({},t,((n={})[e]=!1,n))})),function(){i((function(t){var n;return uA({},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=pT((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,$L(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){i&&(i=!1,SL(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=hL(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 mA(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]),pA((function(){if(e)return s(mA(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(mA).reduce((function(e,n){return e.add(fA(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=mA("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);pA((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=hA(n,kA),s=hA(e,$A);return new Promise((function(e){return _(uA({},s,{config:uA({velocity:o},i,{mass:1,tension:MA,friction:Math.max(EA,EA+(EA-EA*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[_]),we=VE(xA,{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]),pA((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=IO((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?JT(v,u?0:fe.current,ge.current,.55):v<fe.current?JT(v,fe.current,2*ge.current,.55):JT(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=aT([n.y,n.maxHeight],(function(e,t){return Math.round(fA(t-e,0,16))+"px"})),o=aT([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return fA(e,t,n)+"px"})),i=aT([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),s=aT([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),a=aT([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return fA((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=aT([n.y,n.minSnap],(function(e,t){return t?fA(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(qT.div,uA({},O,{"data-rsbs-root":!0,"data-rsbs-state":OA.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:uA({},$e,x,{opacity:B.ready})}),r,v&&te.createElement("div",uA({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",uA({key:"header","data-rsbs-header":!0,ref:W},ke()),s),te.createElement("div",uA({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",uA({key:"footer",ref:U,"data-rsbs-footer":!0},ke()),i)))})),OA=["closed","opening","open","closing","dragging","snapping","resizing"];function LA(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function AA(e){return e.minHeight}var NA=["onSpringStart","onSpringEnd","skipInitialTransition"],RA=ie((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,o=e.skipInitialTransition,i=hA(e,NA),s=ae(!1),a=s[0],l=s[1],c=se(),d=se(null),u=se(o&&i.open?"OPEN":"CLOSED");pA((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(ES,{"data-rsbs-portal":!0},te.createElement(TA,uA({},i,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:h,onSpringEnd:p}))):null}));const DA=ke`
|
|
3045
|
+
function sL(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 aL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sL(Object(n),!0).forEach((function(t){lL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cL,dL=(cL=[],{activateTrap:function(e){if(cL.length>0){var t=cL[cL.length-1];t!==e&&t.pause()}var n=cL.indexOf(e);-1===n||cL.splice(n,1),cL.push(e)},deactivateTrap:function(e){var t=cL.indexOf(e);-1!==t&&cL.splice(t,1),cL.length>0&&cL[cL.length-1].unpause()}}),uL=function(e){return setTimeout(e,0)},hL=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},pL=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},fL=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},mL=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=aL({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=nL(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?UO([t],n.includeContainer,{filter:YO.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):WO(t,n.includeContainer,YO.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 rL(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return rL(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=fL(e);a(t)>=0||(pL(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!iL(t,o.tabbableOptions)}):pL(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=fL(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!==pL(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=fL(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=hL(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(s.container===t||iL(t,o.tabbableOptions)&&!rL(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=hL(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(p<0&&(s.container===t||iL(t,o.tabbableOptions)&&!rL(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=fL(e);a(t)>=0||pL(o.clickOutsideDeactivates,e)||pL(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(i.active)return dL.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?uL((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=aL({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,v(),i.active=!1,i.paused=!1,dL.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(){uL((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 gL=!1;if("undefined"!=typeof window){var bL={get passive(){gL=!0}};window.addEventListener("testPassive",null,bL),window.removeEventListener("testPassive",null,bL)}var vL,yL="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),wL=[],xL=!1,CL=-1,kL=void 0,$L=void 0,SL=function(e){return wL.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},ML=function(e){var t=e||window.event;return!!SL(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},EL=function(e,t){if(e){if(!wL.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};wL=[].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)}(wL),[n]),yL?(e.ontouchstart=function(e){1===e.targetTouches.length&&(CL=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-CL;!SL(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?ML(e):e.stopPropagation())}(t,e)},xL||(document.addEventListener("touchmove",ML,gL?{passive:!1}:void 0),xL=!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===kL&&(kL=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.")},TL=function(e){e?(wL=wL.filter((function(t){return t.targetElement!==e})),yL?(e.ontouchstart=null,e.ontouchmove=null,xL&&0===wL.length&&(document.removeEventListener("touchmove",ML,gL?{passive:!1}:void 0),xL=!1)):wL.length||(void 0!==$L&&(document.body.style.paddingRight=$L,$L=void 0),void 0!==kL&&(document.body.style.overflow=kL,kL=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},OL=[],LL="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 AL,NL=function(e){return Object.freeze(e)},RL=function(e,t){this.inlineSize=e,this.blockSize=t,NL(this)},DL=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,NL(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}(),PL=function(e){return e instanceof SVGElement&&"getBBox"in e},IL=function(e){if(PL(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)},zL=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)},VL="undefined"!=typeof window?window:{},HL=new WeakMap,BL=/auto|scroll/,_L=/^tb|vertical/,jL=/msie|trident/i.test(VL.navigator&&VL.navigator.userAgent),FL=function(e){return parseFloat(e||"0")},qL=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new RL((n?t:e)||0,(n?e:t)||0)},WL=NL({devicePixelContentBoxSize:qL(),borderBoxSize:qL(),contentBoxSize:qL(),contentRect:new DL(0,0,0,0)}),UL=function(e,t){if(void 0===t&&(t=!1),HL.has(e)&&!t)return HL.get(e);if(IL(e))return HL.set(e,WL),WL;var n=getComputedStyle(e),r=PL(e)&&e.ownerSVGElement&&e.getBBox(),o=!jL&&"border-box"===n.boxSizing,i=_L.test(n.writingMode||""),s=!r&&BL.test(n.overflowY||""),a=!r&&BL.test(n.overflowX||""),l=r?0:FL(n.paddingTop),c=r?0:FL(n.paddingRight),d=r?0:FL(n.paddingBottom),u=r?0:FL(n.paddingLeft),h=r?0:FL(n.borderTopWidth),p=r?0:FL(n.borderRightWidth),f=r?0:FL(n.borderBottomWidth),m=u+c,g=l+d,b=(r?0:FL(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:FL(n.width)-x-w,$=r?r.height:FL(n.height)-C-y,S=k+m+w+b,M=$+g+y+v,E=NL({devicePixelContentBoxSize:qL(Math.round(k*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:qL(S,M,i),contentBoxSize:qL(k,$,i),contentRect:new DL(u,l,k,$)});return HL.set(e,E),E},KL=function(e,t,n){var r=UL(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}},GL=function(e){var t=UL(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=NL([t.borderBoxSize]),this.contentBoxSize=NL([t.contentBoxSize]),this.devicePixelContentBoxSize=NL([t.devicePixelContentBoxSize])},ZL=function(e){if(IL(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},JL=function(){var e=1/0,t=[];OL.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new GL(t.target),o=ZL(t.target);r.push(n),t.lastReportedSize=KL(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},XL=function(e){OL.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(ZL(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},YL=function(){var e=0;for(XL(e);OL.some((function(e){return e.activeTargets.length>0}));)e=JL(),XL(e);return OL.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:LL}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=LL),window.dispatchEvent(e)}(),e>0},QL=[],eA=function(e){if(!AL){var t=0,n=document.createTextNode("");new MutationObserver((function(){return QL.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),AL=function(){n.textContent="".concat(t?t--:t++)}}QL.push(e),AL()},tA=0,nA={attributes:!0,characterData:!0,childList:!0,subtree:!0},rA=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],oA=function(e){return void 0===e&&(e=0),Date.now()+e},iA=!1,sA=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),!iA){iA=!0;var n,r=oA(e);n=function(){var n=!1;try{n=YL()}finally{if(iA=!1,e=r-oA(),!tA)return;n?t.run(1e3):e>0?t.run(e):t.start()}},eA((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,nA)};document.body?t():VL.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),rA.forEach((function(t){return VL.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),rA.forEach((function(t){return VL.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),aA=function(e){!tA&&e>0&&sA.start(),!(tA+=e)&&sA.stop()},lA=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=KL(this.target,this.observedBox,!0);return function(e){return!PL(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}(),cA=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},dA=new WeakMap,uA=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},hA=function(){function e(){}return e.connect=function(e,t){var n=new cA(e,t);dA.set(e,n)},e.observe=function(e,t,n){var r=dA.get(e),o=0===r.observationTargets.length;uA(r.observationTargets,t)<0&&(o&&OL.push(r),r.observationTargets.push(new lA(t,n&&n.box)),aA(1),sA.schedule())},e.unobserve=function(e,t){var n=dA.get(e),r=uA(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&OL.splice(OL.indexOf(n),1),n.observationTargets.splice(r,1),aA(-1))},e.disconnect=function(e){var t=this,n=dA.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),pA=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.");hA.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(!zL(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");hA.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(!zL(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");hA.unobserve(this,e)},e.prototype.disconnect=function(){hA.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function fA(){return fA=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},fA.apply(this,arguments)}function mA(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 gA="undefined"!=typeof window?de:ce;function bA(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 yA={box:"border-box"};function wA(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 gA((function(){if(e.current&&r){var t=new pA(l);return t.observe(e.current,yA),function(){t.disconnect()}}}),[e,l,r]),r?s:0}function xA(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var CA={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},kA={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},$A=function(e,t,n){return void 0===n&&(n=e.context),new ME(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:fA({},CA,kA)}}},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:fA({},CA,kA)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:fA({},{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:[TE({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(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),SA=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],MA=["velocity"],EA=["onRest","config"],TA={tension:170,friction:26},OA=TA.tension,LA=TA.friction,AA=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?RA:p,m=e.snapPoints,g=void 0===m?DA: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=mA(e,SA),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 fA({},t,((n={})[e]=!1,n))})),function(){i((function(t){var n;return fA({},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=gT((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,EL(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){i&&(i=!1,TL(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=mL(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]),gA((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=wA(s,{label:"headerHeight",enabled:i,resizeSourceRef:l}),h=wA(t,{label:"contentHeight",enabled:!0,resizeSourceRef:l}),p=wA(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(bA(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);gA((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=mA(n,MA),s=mA(e,EA);return new Promise((function(e){return _(fA({},s,{config:fA({velocity:o},i,{mass:1,tension:OA,friction:Math.max(LA,LA+(LA-LA*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[_]),we=_E($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]),gA((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=HO((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?QT(v,u?0:fe.current,ge.current,.55):v<fe.current?QT(v,fe.current,2*ge.current,.55):QT(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=dT([n.y,n.maxHeight],(function(e,t){return Math.round(bA(t-e,0,16))+"px"})),o=dT([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return bA(e,t,n)+"px"})),i=dT([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),s=dT([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),a=dT([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return bA((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=dT([n.y,n.minSnap],(function(e,t){return t?bA(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(KT.div,fA({},O,{"data-rsbs-root":!0,"data-rsbs-state":NA.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:fA({},$e,x,{opacity:B.ready})}),r,v&&te.createElement("div",fA({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",fA({key:"header","data-rsbs-header":!0,ref:W},ke()),s),te.createElement("div",fA({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",fA({key:"footer",ref:U,"data-rsbs-footer":!0},ke()),i)))})),NA=["closed","opening","open","closing","dragging","snapping","resizing"];function RA(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function DA(e){return e.minHeight}var PA=["onSpringStart","onSpringEnd","skipInitialTransition"],IA=ie((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,o=e.skipInitialTransition,i=mA(e,PA),s=ae(!1),a=s[0],l=s[1],c=se(),d=se(null),u=se(o&&i.open?"OPEN":"CLOSED");gA((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(LS,{"data-rsbs-portal":!0},te.createElement(AA,fA({},i,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:h,onSpringEnd:p}))):null}));const zA=ke`
|
|
3040
3046
|
width: ${Ve(1e3)};
|
|
3041
3047
|
border-radius: ${Be(300)};
|
|
3042
3048
|
background: transparent;
|
|
@@ -3050,7 +3056,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3050
3056
|
margin: 0;
|
|
3051
3057
|
background: ${Ie("neutral",300)};
|
|
3052
3058
|
}
|
|
3053
|
-
`,
|
|
3059
|
+
`,VA=(e,t)=>ke`
|
|
3054
3060
|
[data-rsbs-overlay] {
|
|
3055
3061
|
border-top-left-radius: ${Be(500)};
|
|
3056
3062
|
border-top-right-radius: ${Be(500)};
|
|
@@ -3076,7 +3082,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3076
3082
|
padding: 0;
|
|
3077
3083
|
min-height: ${Ve(1600)};
|
|
3078
3084
|
}
|
|
3079
|
-
`;!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
|
|
3085
|
+
`;!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 HA=(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},BA=({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=HA(g,y);e>0&&e<y.length-1?w=p.makeFullScreenLabel:e===y.length-1&&(w=p.expandedSheetLabel)}const x=!(null==g||!y.length||HA(g,y)!==y.length-1);return ve(IA,{ref:f,css:VA(!!e,u),className:c,open:r,onDismiss:o,header:be("div",{children:[ve("button",{type:"button",disabled:x,"aria-label":w,css:zA,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})},_A=(e,t)=>{let n="14.875rem";return"full-width"===e?n="100%":"large"===e&&(n="22.875rem"),ke`
|
|
3080
3086
|
width: 100%;
|
|
3081
3087
|
max-width: ${n};
|
|
3082
3088
|
border-radius: ${Be(300)};
|
|
@@ -3090,7 +3096,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3090
3096
|
button {
|
|
3091
3097
|
margin-left: ${t?0:Ve(600)};
|
|
3092
3098
|
}
|
|
3093
|
-
`},
|
|
3099
|
+
`},jA=ke`
|
|
3094
3100
|
display: flex;
|
|
3095
3101
|
align-items: baseline;
|
|
3096
3102
|
gap: ${Ve(200)};
|
|
@@ -3098,35 +3104,35 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3098
3104
|
svg {
|
|
3099
3105
|
margin-top: 0.1875rem;
|
|
3100
3106
|
}
|
|
3101
|
-
`,
|
|
3107
|
+
`,FA=e=>ke`
|
|
3102
3108
|
color: ${Ie("neutral",800)};
|
|
3103
3109
|
font-size: ${ze("small"===e?300:500)};
|
|
3104
3110
|
line-height: ${He("small"===e?500:700)};
|
|
3105
3111
|
font-weight: 400;
|
|
3106
3112
|
text-align: left;
|
|
3107
|
-
`,
|
|
3113
|
+
`,qA=(e,t)=>ke`
|
|
3108
3114
|
color: ${Ie("neutral",700)};
|
|
3109
3115
|
font-size: ${ze("small"===e?200:400)};
|
|
3110
3116
|
line-height: ${He("small"===e?400:600)};
|
|
3111
3117
|
font-weight: 400;
|
|
3112
3118
|
margin-left: ${t?Ve(600):"0"};
|
|
3113
3119
|
text-align: left;
|
|
3114
|
-
`,
|
|
3120
|
+
`,WA=(e,t)=>ke`
|
|
3115
3121
|
color: ${Ie("neutral",700)};
|
|
3116
3122
|
font-size: ${ze("small"===e?200:400)};
|
|
3117
3123
|
line-height: ${He("small"===e?400:600)};
|
|
3118
3124
|
font-weight: 400;
|
|
3119
3125
|
margin-left: ${t?Ve(600):"0"};
|
|
3120
3126
|
text-align: left;
|
|
3121
|
-
`,
|
|
3127
|
+
`,UA=ke`
|
|
3122
3128
|
background-color: ${Ie("neutral",100)};
|
|
3123
3129
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3124
3130
|
color: ${Ie("neutral",700)};
|
|
3125
|
-
`,
|
|
3131
|
+
`,KA=ke`
|
|
3126
3132
|
background-color: ${Ie("neutral",200)};
|
|
3127
3133
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3128
3134
|
color: ${Ie("neutral",700)};
|
|
3129
|
-
`,
|
|
3135
|
+
`,GA=ke`
|
|
3130
3136
|
background-color: ${Ie("success",100)};
|
|
3131
3137
|
border: ${_e(100)} solid ${Ie("success",300)};
|
|
3132
3138
|
color: ${Ie("success",500)};
|
|
@@ -3134,7 +3140,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3134
3140
|
p {
|
|
3135
3141
|
color: ${Ie("success",900)};
|
|
3136
3142
|
}
|
|
3137
|
-
`,
|
|
3143
|
+
`,ZA=ke`
|
|
3138
3144
|
background-color: ${Ie("warning",100)};
|
|
3139
3145
|
border: ${_e(100)} solid ${Ie("warning",300)};
|
|
3140
3146
|
color: ${Ie("warning",500)};
|
|
@@ -3142,7 +3148,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3142
3148
|
p {
|
|
3143
3149
|
color: ${Ie("warning",900)};
|
|
3144
3150
|
}
|
|
3145
|
-
`,
|
|
3151
|
+
`,JA=ke`
|
|
3146
3152
|
background-color: ${Ie("error",100)};
|
|
3147
3153
|
border: ${_e(100)} solid ${Ie("error",300)};
|
|
3148
3154
|
color: ${Ie("error",500)};
|
|
@@ -3150,52 +3156,52 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3150
3156
|
p {
|
|
3151
3157
|
color: ${Ie("error",900)};
|
|
3152
3158
|
}
|
|
3153
|
-
`,
|
|
3159
|
+
`,XA=({label:e,caption:t,variant:n,size:r="large",icon:o=ve(cg,{height:"1rem",width:"1rem"}),onActionClick:i,actionLabel:s,isButtonRight:a,buttonLeftIcon:l,buttonRightIcon:c,labels:d})=>{const u=tg("InlineMessage",d);let h=UA;"info-grey"===n?h=KA:"success"===n?h=GA:"warning"===n?h=ZA:"error"===n&&(h=JA);const p="error"===n||"warning"===n?"alert":"status",f="alert"===p?"assertive":"polite";return be("div",{css:[_A(r,a),h],role:p,"aria-live":f,"aria-roledescription":u.roleDescription,children:[be("div",{children:[be("div",{css:jA,children:[o,ve("string"==typeof e?"p":"div",{css:FA(r),children:e})]}),t&&"string"==typeof t?ve("p",{css:qA(r,!!o),children:t}):t?ve("div",{css:WA(r,!!o),children:t}):null]}),s?ve(ng,{label:s,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:i,leftIcon:l,rightIcon:c}):null]})},YA=ke`
|
|
3154
3160
|
width: 100%;
|
|
3155
3161
|
min-height: calc(${Ve(1200)} * 12);
|
|
3156
3162
|
background-color: ${Ie("neutral",100)};
|
|
3157
3163
|
display: flex;
|
|
3158
3164
|
flex-direction: column;
|
|
3159
|
-
`,
|
|
3165
|
+
`,QA=ke`
|
|
3160
3166
|
background-color: ${Ie("neutral",200)};
|
|
3161
3167
|
padding: ${Ve(300)};
|
|
3162
3168
|
display: flex;
|
|
3163
3169
|
align-items: center;
|
|
3164
3170
|
gap: ${Ve(300)};
|
|
3165
|
-
`,
|
|
3171
|
+
`,eN=ke`
|
|
3166
3172
|
flex: 1;
|
|
3167
3173
|
|
|
3168
3174
|
.ds-text-input-container {
|
|
3169
3175
|
margin-bottom: 0;
|
|
3170
3176
|
}
|
|
3171
|
-
`,
|
|
3177
|
+
`,tN=ke`
|
|
3172
3178
|
flex-shrink: 0;
|
|
3173
3179
|
color: ${Ie("neutral",700)};
|
|
3174
3180
|
font-size: ${ze(400)};
|
|
3175
3181
|
font-style: normal;
|
|
3176
3182
|
font-weight: 400;
|
|
3177
|
-
`,
|
|
3183
|
+
`,nN=ke`
|
|
3178
3184
|
flex: 1;
|
|
3179
3185
|
min-height: 0;
|
|
3180
3186
|
padding: ${Ve(400)};
|
|
3181
3187
|
display: flex;
|
|
3182
3188
|
flex-direction: column;
|
|
3183
3189
|
gap: ${Ve(300)};
|
|
3184
|
-
`,
|
|
3190
|
+
`,rN=ke`
|
|
3185
3191
|
color: ${Ie("neutral",700)};
|
|
3186
3192
|
font-size: ${ze(400)};
|
|
3187
3193
|
line-height: ${He(600)};
|
|
3188
3194
|
font-weight: 700;
|
|
3189
|
-
`,
|
|
3195
|
+
`,oN=ke`
|
|
3190
3196
|
width: 100%;
|
|
3191
|
-
`,
|
|
3197
|
+
`,iN=ke`
|
|
3192
3198
|
flex: 1;
|
|
3193
3199
|
min-height: 0;
|
|
3194
3200
|
overflow-y: auto;
|
|
3195
3201
|
display: flex;
|
|
3196
3202
|
flex-direction: column;
|
|
3197
3203
|
gap: ${Ve(200)};
|
|
3198
|
-
`,
|
|
3204
|
+
`,sN=ke`
|
|
3199
3205
|
background-color: ${Ie("neutral",200)};
|
|
3200
3206
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3201
3207
|
border-radius: ${Be(300)};
|
|
@@ -3221,13 +3227,13 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3221
3227
|
&:active {
|
|
3222
3228
|
background-color: ${Ie("neutral",300)};
|
|
3223
3229
|
}
|
|
3224
|
-
`,
|
|
3230
|
+
`,aN=ke`
|
|
3225
3231
|
display: flex;
|
|
3226
3232
|
flex: 1;
|
|
3227
3233
|
min-width: 0;
|
|
3228
3234
|
flex-direction: column;
|
|
3229
3235
|
gap: ${Ve(50)};
|
|
3230
|
-
`,
|
|
3236
|
+
`,lN=ke`
|
|
3231
3237
|
color: ${Ie("neutral",900)};
|
|
3232
3238
|
font-size: ${ze(300)};
|
|
3233
3239
|
line-height: ${He(500)};
|
|
@@ -3235,7 +3241,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3235
3241
|
overflow: hidden;
|
|
3236
3242
|
text-overflow: ellipsis;
|
|
3237
3243
|
white-space: nowrap;
|
|
3238
|
-
`,
|
|
3244
|
+
`,cN=ke`
|
|
3239
3245
|
color: ${Ie("neutral",700)};
|
|
3240
3246
|
font-size: ${ze(300)};
|
|
3241
3247
|
line-height: ${He(500)};
|
|
@@ -3243,7 +3249,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3243
3249
|
overflow: hidden;
|
|
3244
3250
|
text-overflow: ellipsis;
|
|
3245
3251
|
white-space: nowrap;
|
|
3246
|
-
`,
|
|
3252
|
+
`,dN=({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(_b,{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:YA,children:[be("div",{css:QA,children:[ve("div",{css:eN,children:ve(V,{startElement:ve(Hg,{width:"1.25rem",height:"1.25rem",fill:L,"aria-hidden":"true"}),endElement:O,children:ve(Ab,{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:tN,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:nN,children:[ve("h3",{css:rN,children:T}),n?ve("div",{css:oN,children:ve(XA,{label:b.infoLabel,variant:"info-white",size:"full-width"})}):null,ve("ul",{css:iN,"aria-label":T,children:E.map((e=>ve("li",{children:be(N.button,{type:"button",css:sN,onClick:()=>(e=>{f?.(e)})(e),"aria-label":`${e.label}, ${e.caption??""}`,style:{width:"100%"},children:[e.icon??null,be("div",{css:aN,children:[ve("p",{css:lN,children:e.label}),ve("p",{css:cN,children:e.caption})]})]})},e.id)))})]}):null]})},uN=e=>ke`
|
|
3247
3253
|
a,
|
|
3248
3254
|
p {
|
|
3249
3255
|
font-size: ${ze("small"===e?200:400)};
|
|
@@ -3275,19 +3281,19 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3275
3281
|
a:hover {
|
|
3276
3282
|
text-decoration: underline;
|
|
3277
3283
|
}
|
|
3278
|
-
`,
|
|
3284
|
+
`,hN=e=>ke`
|
|
3279
3285
|
svg {
|
|
3280
3286
|
height: ${Ve("small"===e?200:300)};
|
|
3281
3287
|
width: ${Ve("small"===e?200:300)};
|
|
3282
3288
|
color: ${Ie("neutral",600)};
|
|
3283
3289
|
}
|
|
3284
|
-
`,
|
|
3290
|
+
`,pN=ke`
|
|
3285
3291
|
cursor: pointer;
|
|
3286
3292
|
color: ${Ie("neutral",600)};
|
|
3287
3293
|
display: flex;
|
|
3288
3294
|
justify-content: center;
|
|
3289
3295
|
align-items: center;
|
|
3290
|
-
`,
|
|
3296
|
+
`,fN=({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:uN(o),children:be(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),ve(H.Separator,{css:hN(o),children:t||ve(dg,{rotate:"270"})}),ve("li",{className:"chakra-breadcrumb__item",children:ve("button",{css:pN,type:"button",onClick:()=>s(!1),children:"..."})}),ve(H.Separator,{css:hN(o),children:t||ve(dg,{rotate:"270"})}),ve(H.Item,{css:uN(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:uN(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:hN(o),children:t||ve(dg,{rotate:"270"})}):null]},n.label):null))})})},mN=(e,t)=>ke`
|
|
3291
3297
|
min-height: ${Ve(1400)};
|
|
3292
3298
|
width: 100vw;
|
|
3293
3299
|
position: ${e?"sticky":"absolute"};
|
|
@@ -3297,7 +3303,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3297
3303
|
border-top: ${_e(100)} solid
|
|
3298
3304
|
${Ie("neutral",400)};
|
|
3299
3305
|
z-index: 101;
|
|
3300
|
-
`,
|
|
3306
|
+
`,gN=e=>ke`
|
|
3301
3307
|
height: 100%;
|
|
3302
3308
|
width: 100%;
|
|
3303
3309
|
max-width: ${null!=e?Me(e):"100%"};
|
|
@@ -3312,7 +3318,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3312
3318
|
flex-direction: column;
|
|
3313
3319
|
align-items: flex-start;
|
|
3314
3320
|
}
|
|
3315
|
-
`,
|
|
3321
|
+
`,bN=ke`
|
|
3316
3322
|
display: flex;
|
|
3317
3323
|
align-items: center;
|
|
3318
3324
|
flex-wrap: wrap;
|
|
@@ -3325,7 +3331,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3325
3331
|
color: ${Ie("neutral",700)};
|
|
3326
3332
|
text-decoration: underline;
|
|
3327
3333
|
}
|
|
3328
|
-
`,
|
|
3334
|
+
`,vN=ke`
|
|
3329
3335
|
width: 15rem;
|
|
3330
3336
|
font-size: ${ze(300)};
|
|
3331
3337
|
line-height: ${He(500)};
|
|
@@ -3336,17 +3342,17 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3336
3342
|
@media screen and (max-width: 48rem) {
|
|
3337
3343
|
text-align: left;
|
|
3338
3344
|
}
|
|
3339
|
-
`,
|
|
3345
|
+
`,yN=ke`
|
|
3340
3346
|
display: flex;
|
|
3341
3347
|
align-items: center;
|
|
3342
3348
|
gap: ${Ve(400)};
|
|
3343
|
-
`,
|
|
3349
|
+
`,wN=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:o,additionalLogos:i})=>{const s=(new Date).getFullYear();return ve("footer",{css:mN(n,r),children:be("div",{css:gN(o),children:[be("div",{css:yN,children:[ve(yg,{height:"2rem",width:"5.6875rem"}),i&&i.map(((e,t)=>ve("div",{children:e},t)))]}),ve("div",{css:bN,children:e}),ve("div",{children:be("p",{css:vN,children:[t," ",s]})})]})})},xN=ke`
|
|
3344
3350
|
width: 100%;
|
|
3345
3351
|
display: flex;
|
|
3346
3352
|
align-items: center;
|
|
3347
3353
|
height: ${Ve(1400)};
|
|
3348
3354
|
background-color: ${Ie("neutral",200)};
|
|
3349
|
-
`,
|
|
3355
|
+
`,CN=ke`
|
|
3350
3356
|
height: ${Ve(1400)};
|
|
3351
3357
|
width: 99%;
|
|
3352
3358
|
background-color: ${Ie("neutral",200)};
|
|
@@ -3442,9 +3448,9 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3442
3448
|
opacity: 1;
|
|
3443
3449
|
}
|
|
3444
3450
|
}
|
|
3445
|
-
`,
|
|
3451
|
+
`,kN=ke`
|
|
3446
3452
|
position: relative;
|
|
3447
|
-
|
|
3453
|
+
`,$N=ke`
|
|
3448
3454
|
position: absolute;
|
|
3449
3455
|
top: -0.3125rem;
|
|
3450
3456
|
right: -0.3125rem;
|
|
@@ -3459,7 +3465,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3459
3465
|
display: flex;
|
|
3460
3466
|
justify-content: center;
|
|
3461
3467
|
align-items: center;
|
|
3462
|
-
`,
|
|
3468
|
+
`,SN=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),MN=({defaultValue:e,tabs:t,onTabClick:n,hideLabels:r,activationMode:o="manual",labels:i})=>{const s=tg("MobileTabBar",i),a=t.length,[l,c]=ae((()=>SN(t,e)));return ve("div",{css:xN,children:ve(B.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>(e=>{const r=SN(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:CN,"aria-label":c||n,"aria-disabled":!!u||void 0,"aria-describedby":g,disabled:u,...h,children:[be("div",{css:kN,children:[o,i?ve("div",{css:$N,className:"ds-badge-count",children:i}):null]}),r?null:ve("p",{children:n}),ve(_,{id:p,children:m.join(", ")})]},e.value)}))})})})},EN=(e,t,n,r,o)=>{let i="3rem";return e?i="6rem":o&&(i="1.75rem"),ke`
|
|
3463
3469
|
max-height: ${i};
|
|
3464
3470
|
width: 100%;
|
|
3465
3471
|
background-color: ${n??Ie("neutral","dark"===r?800:100)};
|
|
@@ -3469,7 +3475,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3469
3475
|
z-index: 102;
|
|
3470
3476
|
border-bottom: ${_e(100)} solid
|
|
3471
3477
|
${Ie("neutral",400)};
|
|
3472
|
-
`},
|
|
3478
|
+
`},TN=(e,t)=>ke`
|
|
3473
3479
|
height: ${Ve(t?700:1200)};
|
|
3474
3480
|
width: 100%;
|
|
3475
3481
|
background-color: ${Ie("neutral","dark"===e?800:100)};
|
|
@@ -3480,7 +3486,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3480
3486
|
justify-content: flex-start;
|
|
3481
3487
|
gap: 0;
|
|
3482
3488
|
padding: ${t?0:`${Ve(200)} ${Ve(400)}`};
|
|
3483
|
-
`,
|
|
3489
|
+
`,ON=(e,t,n)=>ke`
|
|
3484
3490
|
height: ${Ve(n?700:1200)};
|
|
3485
3491
|
width: 100%;
|
|
3486
3492
|
max-width: ${t?Me(t):"100%"};
|
|
@@ -3491,13 +3497,13 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3491
3497
|
justify-content: space-between;
|
|
3492
3498
|
margin: 0 auto;
|
|
3493
3499
|
padding: ${n?0:`${Ve(200)} ${Ve(400)}`};
|
|
3494
|
-
`,
|
|
3500
|
+
`,LN=(e,t)=>ke`
|
|
3495
3501
|
display: flex;
|
|
3496
3502
|
margin: ${t?"-0.0625rem":"0rem"};
|
|
3497
3503
|
justify-content: flex-start;
|
|
3498
3504
|
gap: ${Ve(300)};
|
|
3499
3505
|
color: ${Ie("neutral",e?100:900)};
|
|
3500
|
-
`,
|
|
3506
|
+
`,AN=ke`
|
|
3501
3507
|
outline: none;
|
|
3502
3508
|
|
|
3503
3509
|
a {
|
|
@@ -3509,12 +3515,12 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3509
3515
|
outline-width: ${Ve(50)};
|
|
3510
3516
|
}
|
|
3511
3517
|
}
|
|
3512
|
-
`,
|
|
3518
|
+
`,NN=e=>ke`
|
|
3513
3519
|
display: ${e?"none":"flex"};
|
|
3514
3520
|
align-items: center;
|
|
3515
3521
|
justify-content: flex-start;
|
|
3516
3522
|
gap: 0rem;
|
|
3517
|
-
`,
|
|
3523
|
+
`,RN=(e,t,n)=>ke`
|
|
3518
3524
|
font-size: ${ze(n?300:400)};
|
|
3519
3525
|
line-height: ${He(600)};
|
|
3520
3526
|
font-weight: 400;
|
|
@@ -3539,12 +3545,12 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3539
3545
|
font-weight: 700;
|
|
3540
3546
|
color: ${Ie("accessible","controls-on-neutral-lights")};
|
|
3541
3547
|
`:""}
|
|
3542
|
-
`,
|
|
3548
|
+
`,DN=e=>ke`
|
|
3543
3549
|
height: ${Ve(e?700:1200)};
|
|
3544
3550
|
display: flex;
|
|
3545
3551
|
align-items: center;
|
|
3546
3552
|
justify-content: flex-end;
|
|
3547
|
-
`,
|
|
3553
|
+
`,PN=e=>ke`
|
|
3548
3554
|
height: 100%;
|
|
3549
3555
|
font-size: ${ze(400)};
|
|
3550
3556
|
line-height: ${He(600)};
|
|
@@ -3564,7 +3570,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3564
3570
|
}
|
|
3565
3571
|
}
|
|
3566
3572
|
`:""}
|
|
3567
|
-
`,
|
|
3573
|
+
`,IN=e=>ke`
|
|
3568
3574
|
height: 100%;
|
|
3569
3575
|
display: flex;
|
|
3570
3576
|
align-items: center;
|
|
@@ -3573,7 +3579,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3573
3579
|
padding-left: ${Ve(400)};
|
|
3574
3580
|
border-left: ${_e(100)} solid
|
|
3575
3581
|
${Ie("neutral",e?700:300)};
|
|
3576
|
-
`,
|
|
3582
|
+
`,zN=(e="light",t)=>ke`
|
|
3577
3583
|
background-color: none;
|
|
3578
3584
|
border: none;
|
|
3579
3585
|
cursor: pointer;
|
|
@@ -3599,7 +3605,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3599
3605
|
outline-width: ${_e(200)};
|
|
3600
3606
|
background-color: ${Ie("neutral",200)};
|
|
3601
3607
|
}
|
|
3602
|
-
`,
|
|
3608
|
+
`,VN=(e,t)=>ke`
|
|
3603
3609
|
position: absolute;
|
|
3604
3610
|
top: ${Ve(t?700:1200)};
|
|
3605
3611
|
right: 0;
|
|
@@ -3614,10 +3620,10 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3614
3620
|
justify-content: flex-start;
|
|
3615
3621
|
gap: ${Ve(400)};
|
|
3616
3622
|
transition: width 0.5s ease-in-out;
|
|
3617
|
-
`,
|
|
3623
|
+
`,HN=ke`
|
|
3618
3624
|
height: 100%;
|
|
3619
3625
|
width: 100%;
|
|
3620
|
-
`,
|
|
3626
|
+
`,BN=e=>ke`
|
|
3621
3627
|
background-color: ${Ie("neutral","dark"===e?800:200)};
|
|
3622
3628
|
border-bottom: ${_e(100)} solid
|
|
3623
3629
|
${Ie("neutral",300)};
|
|
@@ -3638,13 +3644,13 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3638
3644
|
margin-left: -${Ve(300)};
|
|
3639
3645
|
}
|
|
3640
3646
|
}
|
|
3641
|
-
`,
|
|
3647
|
+
`,_N=ke`
|
|
3642
3648
|
background-color: ${Ie("neutral",100)};
|
|
3643
|
-
`,
|
|
3649
|
+
`,jN=ke`
|
|
3644
3650
|
min-height: 100vh;
|
|
3645
3651
|
width: 100%;
|
|
3646
3652
|
overflow-y: scroll;
|
|
3647
|
-
`;ke``;const
|
|
3653
|
+
`;ke``;const FN=e=>ke`
|
|
3648
3654
|
display: inline-block;
|
|
3649
3655
|
width: 100%;
|
|
3650
3656
|
padding: ${Ve(300)} ${Ve(400)};
|
|
@@ -3673,7 +3679,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3673
3679
|
outline-width: ${_e(200)};
|
|
3674
3680
|
background-color: ${Ie("neutral",200)};
|
|
3675
3681
|
}
|
|
3676
|
-
`,
|
|
3682
|
+
`,qN=ke`
|
|
3677
3683
|
width: 100%;
|
|
3678
3684
|
padding: ${Ve(300)} ${Ve(400)};
|
|
3679
3685
|
display: flex;
|
|
@@ -3697,7 +3703,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3697
3703
|
outline-width: ${_e(200)};
|
|
3698
3704
|
background-color: ${Ie("neutral",200)};
|
|
3699
3705
|
}
|
|
3700
|
-
`,
|
|
3706
|
+
`,WN=e=>ke`
|
|
3701
3707
|
position: absolute;
|
|
3702
3708
|
top: 0rem;
|
|
3703
3709
|
right: 0;
|
|
@@ -3709,7 +3715,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3709
3715
|
align-items: flex-start;
|
|
3710
3716
|
justify-content: flex-start;
|
|
3711
3717
|
transition: width 0.5s ease-in-out;
|
|
3712
|
-
`,
|
|
3718
|
+
`,UN=ke`
|
|
3713
3719
|
height: ${Ve(1200)};
|
|
3714
3720
|
width: 100%;
|
|
3715
3721
|
display: flex;
|
|
@@ -3721,7 +3727,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3721
3727
|
position: relative;
|
|
3722
3728
|
top: 0;
|
|
3723
3729
|
left: 0;
|
|
3724
|
-
`,
|
|
3730
|
+
`,KN=ke`
|
|
3725
3731
|
position: absolute;
|
|
3726
3732
|
bottom: 0;
|
|
3727
3733
|
left: 0;
|
|
@@ -3736,7 +3742,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3736
3742
|
button {
|
|
3737
3743
|
width: calc(48% - 1.5rem);
|
|
3738
3744
|
}
|
|
3739
|
-
`,
|
|
3745
|
+
`,GN=({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:VN(s,d),children:s&&be("div",{css:HN,children:[be("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"4.5rem"},children:[r?ve("div",{css:BN(e),children:r?.map((e=>ve("div",{className:"ds-utility-item",children:e})))}):null,n?ve("div",{css:_N,children:n.map(((e,t)=>e.link?ve(b,{to:e.link,href:e.link,onClick:()=>{h(void 0),f(-1),a(!1)},css:FN(l===e.link),children:e.label},e.label):be("button",{css:qN,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:KN,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:WN(!!u?.items),children:u?.items?be(ye,{children:[be("div",{css:UN,children:[be("button",{type:"button",onClick:()=>{h(void 0),f(-1),g.current[p]?.focus()},"aria-label":c.goBackLabel,css:zN(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:zN(e),children:[c.closeButtonText,ve(hg,{height:"1rem",width:"1rem"})]})]}),ve("div",{css:jN,children:u?.items?.map((e=>ve(b,{to:e.link,href:e.link,css:FN(),onClick:()=>{h(void 0),f(-1),a(!1)},children:e.label},e.label)))})]}):null})]})},ZN=1023,JN=({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<=ZN),[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<=ZN||window.innerWidth<=y?(d?.(96),v(!0)):window.innerWidth>ZN&&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<=ZN||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:EN(b&&!x,c,u,t,E),children:[be("div",{css:ON(b&&!x,l,E),children:[be("div",{css:LN(b&&!x||"dark"===t,E),ref:f,children:[n?ve("div",{ref:g,css:AN,children:n}):null,ve("div",{css:NN(b),children:i?.map((e=>e.link?ve(S,{to:e.link,href:e.link,css:RN(o===e.link,t,E),children:e.label},e.label):ve(tb,{theme:t,label:e.label,fontSize:E?"0.875rem":"1rem",items:e.items||[]},e.label)))})]}),ve("div",{css:DN(E),ref:m,children:x?be("button",{type:"button",onClick:()=>$(!k),"aria-label":k?p.closeMenuLabel:p.openMenuLabel,"aria-expanded":k,css:zN(t),children:[k?p.closeLabel:p.menuLabel,ve(k?hg:Ig,{height:E?"0.75rem":"1rem",width:E?"0.75rem":"1rem"})]}):be(ye,{children:[ve("div",{css:DN(E),children:s?.map(((e,t)=>ve("div",{css:PN(b),children:e},t)))}),a?.length?ve("div",{css:IN(b),children:a.map((e=>ve(ng,{...e},e.ariaLabel)))}):null]})})]}),b&&!x?ve("div",{css:TN(t,E),children:i?.map((e=>e.link?ve(S,{to:e.link,href:e.link,css:RN(o===e.link,t,E),children:e.label},e.label):ve(tb,{theme:t,label:e.label,fontSize:E?"0.875rem":"1rem",items:e.items||[]},e.label)))}):null,x?ve(GN,{theme:t,variant:e,navigationSection:i,utilitySection:s,actionsSection:a,linkRouter:r,isOpen:k,setIsOpen:$,pathname:o,resolvedLabels:p}):null]})},XN=ke`
|
|
3740
3746
|
width: ${Ve(1600)};
|
|
3741
3747
|
height: 100%;
|
|
3742
3748
|
z-index: 100;
|
|
@@ -3746,7 +3752,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3746
3752
|
display: flex;
|
|
3747
3753
|
flex-direction: column;
|
|
3748
3754
|
justify-content: space-between;
|
|
3749
|
-
`,
|
|
3755
|
+
`,YN=ke`
|
|
3750
3756
|
width: ${Ve(1600)};
|
|
3751
3757
|
height: ${Ve(1600)};
|
|
3752
3758
|
background-color: ${Ie("neutral",200)};
|
|
@@ -3837,7 +3843,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3837
3843
|
}
|
|
3838
3844
|
}
|
|
3839
3845
|
}
|
|
3840
|
-
`,
|
|
3846
|
+
`,QN=ke`
|
|
3841
3847
|
display: flex;
|
|
3842
3848
|
justify-content: center;
|
|
3843
3849
|
align-items: center;
|
|
@@ -3850,7 +3856,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3850
3856
|
fill: ${Ie("neutral",600)};
|
|
3851
3857
|
}
|
|
3852
3858
|
}
|
|
3853
|
-
`,
|
|
3859
|
+
`,eR=ke`
|
|
3854
3860
|
width: ${Ve(1600)};
|
|
3855
3861
|
height: ${Ve(1600)};
|
|
3856
3862
|
background-color: ${Ie("neutral",200)};
|
|
@@ -3888,7 +3894,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3888
3894
|
text-align: center;
|
|
3889
3895
|
color: ${Ie("neutral",600)};
|
|
3890
3896
|
}
|
|
3891
|
-
`,
|
|
3897
|
+
`,tR=ke`
|
|
3892
3898
|
width: 20rem;
|
|
3893
3899
|
height: 100%;
|
|
3894
3900
|
z-index: 100;
|
|
@@ -3898,7 +3904,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3898
3904
|
overflow-x: hidden;
|
|
3899
3905
|
border-right: ${_e(100)} solid
|
|
3900
3906
|
${Ie("neutral",300)};
|
|
3901
|
-
`,
|
|
3907
|
+
`,nR=({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:XN,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:YN,"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:QN,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:eR,children:[ve("div",{css:QN,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:tR,role:"tabpanel","aria-labelledby":d,children:o})})}):null]})},rR=e=>ke`
|
|
3902
3908
|
width: 100%;
|
|
3903
3909
|
display: flex;
|
|
3904
3910
|
align-items: center;
|
|
@@ -3907,7 +3913,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3907
3913
|
${"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 `}
|
|
3908
3914
|
|
|
3909
3915
|
${"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 `}
|
|
3910
|
-
`,
|
|
3916
|
+
`,oR=ke`
|
|
3911
3917
|
width: 99%;
|
|
3912
3918
|
height: ${Ve(1e3)};
|
|
3913
3919
|
padding: ${Ve(200)} ${Ve(400)};
|
|
@@ -3923,7 +3929,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3923
3929
|
&:focus-visible {
|
|
3924
3930
|
box-shadow: none;
|
|
3925
3931
|
}
|
|
3926
|
-
`,
|
|
3932
|
+
`,iR=ke`
|
|
3927
3933
|
background-color: ${Ie("neutral",200)};
|
|
3928
3934
|
color: ${Ie("neutral",700)};
|
|
3929
3935
|
|
|
@@ -3980,11 +3986,11 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3980
3986
|
opacity: 1;
|
|
3981
3987
|
}
|
|
3982
3988
|
}
|
|
3983
|
-
`,
|
|
3989
|
+
`,sR=ke`
|
|
3984
3990
|
width: ${Ve(100)};
|
|
3985
3991
|
height: ${Ve(600)};
|
|
3986
3992
|
background-color: ${Ie("neutral",400)};
|
|
3987
|
-
`,
|
|
3993
|
+
`,aR=ke`
|
|
3988
3994
|
height: ${Ve(800)};
|
|
3989
3995
|
border-radius: ${Be(200)};
|
|
3990
3996
|
background-color: ${Ie("neutral",200)};
|
|
@@ -4059,7 +4065,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4059
4065
|
opacity: 1;
|
|
4060
4066
|
}
|
|
4061
4067
|
}
|
|
4062
|
-
`,
|
|
4068
|
+
`,lR=ke`
|
|
4063
4069
|
background-color: transparent;
|
|
4064
4070
|
color: ${Ie("neutral",600)};
|
|
4065
4071
|
width: auto;
|
|
@@ -4136,7 +4142,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4136
4142
|
}
|
|
4137
4143
|
}
|
|
4138
4144
|
}
|
|
4139
|
-
`,
|
|
4145
|
+
`,cR=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),dR=e=>1===e?"none":2===e?"left":"right",uR=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:o,activationMode:i="manual"})=>{const[s,a]=ae(cR(n,t)||0);return ve("div",{css:rR(e),children:ve(B.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a(cR(n,t=e)),void(o&&o(t));var t},activationMode:i,children:ve(B.List,{alignItems:"center",border:"none",children:n.map(((t,n)=>be(ge,{children:["view"===e&&1===n&&"left"===dR(s)?ve("div",{css:sR}):null,ve(B.Trigger,{css:[oR,"view"===e&&aR,"panel"===e&&iR,"transparent"===e&&lR],"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===n&&"right"===dR(s)?ve("div",{css:sR}):null]},t.label)))})})})},hR=Ie("neutral",700),pR=ke`
|
|
4140
4146
|
position: relative;
|
|
4141
4147
|
width: 100%;
|
|
4142
4148
|
|
|
@@ -4149,12 +4155,12 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4149
4155
|
&[data-open='true'][data-placement='top'] input {
|
|
4150
4156
|
border-bottom-left-radius: ${Be(300)};
|
|
4151
4157
|
border-bottom-right-radius: ${Be(300)};
|
|
4152
|
-
border-bottom-color: ${
|
|
4158
|
+
border-bottom-color: ${hR};
|
|
4153
4159
|
border-top-left-radius: 0;
|
|
4154
4160
|
border-top-right-radius: 0;
|
|
4155
4161
|
border-top-color: transparent;
|
|
4156
4162
|
}
|
|
4157
|
-
`,
|
|
4163
|
+
`,fR=ke`
|
|
4158
4164
|
width: 100%;
|
|
4159
4165
|
z-index: 1000;
|
|
4160
4166
|
overflow-y: auto;
|
|
@@ -4168,7 +4174,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4168
4174
|
margin-top: calc(${_e(100)} * -1);
|
|
4169
4175
|
border-top-left-radius: 0;
|
|
4170
4176
|
border-top-right-radius: 0;
|
|
4171
|
-
border-top: ${_e(100)} solid ${
|
|
4177
|
+
border-top: ${_e(100)} solid ${hR};
|
|
4172
4178
|
|
|
4173
4179
|
&[data-placement^='top'] {
|
|
4174
4180
|
margin-top: 0;
|
|
@@ -4179,12 +4185,12 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4179
4185
|
${Ie("neutral",400)};
|
|
4180
4186
|
border-bottom-left-radius: 0;
|
|
4181
4187
|
border-bottom-right-radius: 0;
|
|
4182
|
-
border-bottom: ${_e(100)} solid ${
|
|
4188
|
+
border-bottom: ${_e(100)} solid ${hR};
|
|
4183
4189
|
box-shadow:
|
|
4184
4190
|
0 -0.25rem 0.375rem -0.25rem #0000001a,
|
|
4185
4191
|
0 -0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
4186
4192
|
}
|
|
4187
|
-
`,
|
|
4193
|
+
`,mR=ke`
|
|
4188
4194
|
padding: ${Ve(200)};
|
|
4189
4195
|
border-radius: ${Be(300)};
|
|
4190
4196
|
cursor: pointer;
|
|
@@ -4205,7 +4211,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4205
4211
|
&:active {
|
|
4206
4212
|
background-color: ${Hm(40)};
|
|
4207
4213
|
}
|
|
4208
|
-
`,
|
|
4214
|
+
`,gR=({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)))})},bR=({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:mR,"data-highlighted":i===o||void 0,onClick:()=>n(e.id||s),children:"string"==typeof e.label||"number"==typeof e.label?ve(gR,{text:String(e.label),query:t}):e.label},e.id)}))})},vR=e=>e.searchLabel?e.searchLabel:"string"==typeof e.label||"number"==typeof e.label?String(e.label):"",yR=({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}=nw(),R=`search-results-${he()}`,D=e=>{const t=i.find((t=>t.id===e||vR(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)||vR(e).toLowerCase().includes(t)||e.caption?.toLowerCase().includes(t)})).map((e=>({id:e.id??vR(e),label:e.label,searchLabel:e.searchLabel,caption:e.caption,variant:"select",icon:e.icon,onItemClick:()=>D(e.id||vR(e))})));k(e),w()}),[b]);const P=b.length?ve(_b,{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:pR,"data-open":z||void 0,"data-placement":N,children:[ve(u.Anchor,{children:ve(V,{startElement:ve(Hg,{width:B,height:B,fill:H}),endElement:P,children:ve(Ab,{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||vR(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:fR,style:{maxHeight:_},"data-nav-source":T,onPointerMove:()=>O("pointer"),children:[l&&ve(r,{padding:"1rem",children:ve(o,{})}),"text"===c&&!l&&ve(bR,{highlightedIndex:$,items:C,query:b,onSelect:D}),"list"===c&&!l&&ve(jk,{items:C,highlightedIndex:$})]})})})]})},wR={small:Ve(400),medium:Ve(600),large:Ve(1e3),default:Ve(400)};function xR(e,t,n,r){const o=function(e,t){return null!=t&&""!==t?Me(t):e&&wR[e]?wR[e]:wR.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`
|
|
4209
4215
|
height: ${o};
|
|
4210
4216
|
width: ${o};
|
|
4211
4217
|
border-radius: 50%;
|
|
@@ -4240,20 +4246,20 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4240
4246
|
background-color: ${Ie("primary",500)};
|
|
4241
4247
|
}
|
|
4242
4248
|
}
|
|
4243
|
-
`}const
|
|
4249
|
+
`}const CR=ke`
|
|
4244
4250
|
font-size: ${ze(200)};
|
|
4245
4251
|
line-height: ${He(400)};
|
|
4246
4252
|
font-weight: 700;
|
|
4247
4253
|
color: inherit;
|
|
4248
|
-
`,
|
|
4254
|
+
`,kR={small:{fontSize:Ee(8),boxSize:Ee(10),padding:Ee(2)},large:{fontSize:Ee(12),boxSize:Ee(20),padding:`${Ee(2)} ${Ee(4)}`}},$R=ke`
|
|
4249
4255
|
display: flex;
|
|
4250
4256
|
justify-content: flex-start;
|
|
4251
4257
|
align-items: center;
|
|
4252
4258
|
gap: ${Ve(200)};
|
|
4253
|
-
`,
|
|
4259
|
+
`,SR=e=>ke`
|
|
4254
4260
|
position: relative;
|
|
4255
4261
|
display: flex;
|
|
4256
|
-
`,
|
|
4262
|
+
`,MR=(e="large")=>{const t=Ve("small"===e?100:200);return ke`
|
|
4257
4263
|
height: ${t};
|
|
4258
4264
|
width: ${t};
|
|
4259
4265
|
background-color: ${Ie("error",500)};
|
|
@@ -4262,7 +4268,7 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4262
4268
|
top: 0rem;
|
|
4263
4269
|
right: 0rem;
|
|
4264
4270
|
z-index: 1;
|
|
4265
|
-
`}
|
|
4271
|
+
`},ER=(e="large")=>{const{boxSize:t,padding:n}=kR[e];return ke`
|
|
4266
4272
|
background-color: ${Ie("error",500)};
|
|
4267
4273
|
padding: ${n};
|
|
4268
4274
|
border-radius: 9999px;
|
|
@@ -4277,12 +4283,12 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4277
4283
|
min-width: ${t};
|
|
4278
4284
|
height: ${t};
|
|
4279
4285
|
z-index: 1;
|
|
4280
|
-
`},
|
|
4286
|
+
`},TR=(e="large")=>{const{fontSize:t}=kR[e];return ke`
|
|
4281
4287
|
font-size: ${t};
|
|
4282
4288
|
line-height: 1;
|
|
4283
4289
|
font-weight: 700;
|
|
4284
4290
|
color: ${Ie("error",100)};
|
|
4285
|
-
`},
|
|
4291
|
+
`},OR=(e="large")=>{const{boxSize:t}=kR[e];return ke`
|
|
4286
4292
|
height: ${t};
|
|
4287
4293
|
min-width: ${t};
|
|
4288
4294
|
background-color: ${Ie("error",500)};
|
|
@@ -4291,12 +4297,12 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4291
4297
|
justify-content: center;
|
|
4292
4298
|
align-items: center;
|
|
4293
4299
|
padding: 0rem ${Ve(100)} 0.0625rem ${Ve(100)};
|
|
4294
|
-
`},
|
|
4300
|
+
`},LR=(e="large")=>{const{fontSize:t}=kR[e];return ke`
|
|
4295
4301
|
font-size: ${t};
|
|
4296
4302
|
line-height: ${He(600)};
|
|
4297
4303
|
font-weight: 700;
|
|
4298
4304
|
color: ${Ie("error",100)};
|
|
4299
|
-
`},
|
|
4305
|
+
`},AR=({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:$R,role:"status","aria-live":"polite",children:[be("div",{css:SR(),children:[ve(wg,{color:"currentColor",height:d,width:d}),!e||t||n?null:ve("div",{css:MR(i),"aria-hidden":!0})]}),n?ve("p",{children:n}):null,c.length>0?ve("div",{css:OR(i),children:ve("p",{css:LR(i),"aria-label":s.unreadMessagesLabel(t||0),children:c})}):null]}:{css:$R,role:"status","aria-live":"polite",children:[n?ve("p",{children:n}):null,be("div",{css:SR(),children:[c.length>0?ve("div",{css:ER(i),children:ve("p",{css:TR(i),"aria-label":s.unreadMessagesLabel(t||0),children:c})}):null,e&&!t?ve("div",{css:MR(i),"aria-hidden":!0}):null,o??ve(wg,{color:"currentColor",height:d,width:d})]})]})},NR=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:xR(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:CR}),!m&&!e&&ve(zg,{size:"100%",style:{padding:"15%",color:c?Ie("neutral",400):Ie("primary",800)}})]});return b?ve(AR,{notificationCount:a,size:l,labels:{unreadMessagesLabel:p.unreadMessagesLabel},children:v}):v})),RR=(e,t="full-width",n=!1)=>{let r="",o="",i="";return"success"===e?(r=Ie("success",100),o=Ie("success",500),i=Ie("success",300)):"warning"===e?(r=Ie("warning",100),o=Ie("warning",500),i=Ie("warning",300)):"error"===e?(r=Ie("error",100),o=Ie("error",500),i=Ie("error",300)):"information"===e?(r=Ie("secondary",100),o=Ie("secondary",500),i=Ie("secondary",200)):"general-grey"===e?(r=Ie("neutral",200),o=Ie("neutral",700),i=Ie("neutral",300)):(r=Ie("neutral",100),o=Ie("neutral",700),i=Ie("neutral",300)),ke`
|
|
4300
4306
|
display: ${"inline"===t?"inline-flex":"flex"};
|
|
4301
4307
|
width: ${"inline"===t?"fit-content":"100%"};
|
|
4302
4308
|
max-width: 100%;
|
|
@@ -4307,38 +4313,38 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4307
4313
|
background-color: ${r};
|
|
4308
4314
|
border-bottom: ${_e(100)} solid ${i};
|
|
4309
4315
|
border-radius: 0;
|
|
4310
|
-
`},
|
|
4316
|
+
`},DR=e=>ke`
|
|
4311
4317
|
rotate: ${"error"===e?"180deg":""};
|
|
4312
4318
|
svg {
|
|
4313
4319
|
width: 1rem;
|
|
4314
4320
|
height: 1rem;
|
|
4315
4321
|
}
|
|
4316
|
-
`,
|
|
4322
|
+
`,PR=ee.forwardRef((({title:e,children:t,icon:n,variant:r,onClose:o,labels:i,isCentered:s=!1,width:a="full-width"},l)=>{const c=tg("AlertBanner",i),[d,u]=ee.useState(!0),h=ve("success"===r?gg:"warning"===r?bg:cg,{});return d?be(U.Root,{css:RR(r,a,s),children:[ve(U.Indicator,{css:DR(r),children:n||h}),t?ve(U.Content,{flex:s?"initial":void 0,children:be("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center"},children:[ve(U.Title,{children:e}),ve(U.Description,{children:t})]})}):ve(U.Title,{flex:s?"initial":"1",children:e}),ve(_b,{"aria-label":c.closeAlertLabel,pos:"absolute",top:"1rem",insetEnd:"2",onClick:()=>{u(!1),o?.()}})]}):null})),IR=ke`
|
|
4317
4323
|
height: ${Ve(200)};
|
|
4318
4324
|
width: 100%;
|
|
4319
4325
|
background-color: ${Ie("neutral",300)};
|
|
4320
4326
|
display: flex;
|
|
4321
4327
|
align-items: center;
|
|
4322
4328
|
justify-content: flex-start;
|
|
4323
|
-
`,
|
|
4329
|
+
`,zR=(e,t)=>ke`
|
|
4324
4330
|
height: 100%;
|
|
4325
4331
|
width: ${e}%;
|
|
4326
4332
|
background-color: ${t??Ie("primary",500)};
|
|
4327
4333
|
transition: width 0.5s ease-in-out;
|
|
4328
|
-
`,
|
|
4334
|
+
`,VR=({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:IR,role:"progressbar","aria-label":r.progressAriaLabel(o),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o,children:ve("div",{css:zR(o,n)})})},HR=ke`
|
|
4329
4335
|
width: 100%;
|
|
4330
4336
|
display: flex;
|
|
4331
4337
|
align-items: center;
|
|
4332
4338
|
justify-content: space-between;
|
|
4333
4339
|
position: relative;
|
|
4334
|
-
`,
|
|
4340
|
+
`,BR=ke`
|
|
4335
4341
|
height: 3.75rem;
|
|
4336
4342
|
width: ${Ve(2e3)};
|
|
4337
4343
|
display: flex;
|
|
4338
4344
|
flex-direction: column;
|
|
4339
4345
|
align-items: center;
|
|
4340
4346
|
justify-content: space-between;
|
|
4341
|
-
`,
|
|
4347
|
+
`,_R=(e,t)=>ke`
|
|
4342
4348
|
height: ${Ve(800)};
|
|
4343
4349
|
width: ${Ve(800)};
|
|
4344
4350
|
display: flex;
|
|
@@ -4374,12 +4380,12 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4374
4380
|
}
|
|
4375
4381
|
|
|
4376
4382
|
${t?`\n background-color: ${Ie("neutral",300)};\n \n &:hover {\n background-color: ${Ie("neutral",300)};\n box-shadow: none;\n }\n `:""}
|
|
4377
|
-
`,
|
|
4383
|
+
`,jR=e=>ke`
|
|
4378
4384
|
color: ${Ie("neutral",e?800:600)};
|
|
4379
4385
|
font-size: ${ze(300)};
|
|
4380
4386
|
line-height: ${He(500)};
|
|
4381
4387
|
font-weight: 400;
|
|
4382
|
-
`,
|
|
4388
|
+
`,FR=ke`
|
|
4383
4389
|
height: ${_e(100)};
|
|
4384
4390
|
width: 100%;
|
|
4385
4391
|
padding: 0 1.875rem;
|
|
@@ -4387,25 +4393,25 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4387
4393
|
top: ${Ve(400)};
|
|
4388
4394
|
left: 0;
|
|
4389
4395
|
z-index: -1;
|
|
4390
|
-
`,
|
|
4396
|
+
`,qR=ke`
|
|
4391
4397
|
height: ${_e(100)};
|
|
4392
4398
|
width: 100%;
|
|
4393
4399
|
background-color: ${Ie("neutral",400)};
|
|
4394
|
-
`,
|
|
4400
|
+
`,WR=({steps:e,currentStep:t,labels:n})=>{const r=tg("StepProgressIndicator",n);return be("div",{css:HR,children:[e.map(((e,n)=>be("div",{css:BR,children:[ve("button",{css:_R(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:jR(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),ve("div",{css:FR,children:ve("div",{css:qR})})]})},UR=ke`
|
|
4395
4401
|
font-size: ${ze(500)};
|
|
4396
4402
|
line-height: ${He(700)};
|
|
4397
4403
|
font-weight: 400;
|
|
4398
4404
|
color: ${Ie("neutral",800)};
|
|
4399
|
-
`,
|
|
4405
|
+
`,KR=ke`
|
|
4400
4406
|
font-size: ${ze(400)};
|
|
4401
4407
|
line-height: ${He(600)};
|
|
4402
4408
|
font-weight: 400;
|
|
4403
4409
|
color: ${Ie("neutral",700)};
|
|
4404
|
-
`,
|
|
4410
|
+
`,GR=ke`
|
|
4405
4411
|
padding: 0.375rem;
|
|
4406
|
-
`,
|
|
4412
|
+
`,ZR=ke`
|
|
4407
4413
|
padding: 0.375rem;
|
|
4408
|
-
`,
|
|
4414
|
+
`,JR={pauseOnPageIdle:!0,offsets:"1.5rem"},XR={"top-start":K({placement:"top-start",...JR}),top:K({placement:"top",...JR}),"top-end":K({placement:"top-end",...JR}),"bottom-start":K({placement:"bottom-start",...JR}),bottom:K({placement:"bottom",...JR}),"bottom-end":K({placement:"bottom-end",...JR})},YR=e=>{XR[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})},QR=e=>{Object.values(XR).forEach((t=>{t.dismiss(e)}))},eD=({labels:e})=>{const t=tg("Toast",e);return Object.keys(XR).map((e=>ve(a,{children:ve(G,{toaster:XR[e],insetInline:{mdDown:"4"},children:n=>{return be(Z.Root,{css:(r=n.meta?.maxWidth,ke`
|
|
4409
4415
|
justify-content: space-between;
|
|
4410
4416
|
align-items: center;
|
|
4411
4417
|
gap: ${Ve(200)};
|
|
@@ -4449,4 +4455,4 @@ function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4449
4455
|
color: ${Ie("error",900)};
|
|
4450
4456
|
}
|
|
4451
4457
|
}
|
|
4452
|
-
`),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-
|
|
4458
|
+
`),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(gg,{color:"var(--chakra-colors-success-500)"}):null,"warning"===n.type?n.meta?.icon?n.meta.icon:ve(bg,{color:"var(--chakra-colors-warning-500)"}):null,"error"===n.type?n.meta?.icon?n.meta.icon:ve(vg,{color:"var(--chakra-colors-error-500)"}):null,be(J,{gap:"1",flex:"1",maxWidth:"100%",children:[ve(Z.Title,{css:UR,"aria-label":`${n.title}`,children:n.title}),n.description?ve(Z.Title,{css:KR,"aria-label":`${n.description}`,children:n.description}):null]})]}),n.action||n.meta?.closable?be(J,{flexDirection:"row",children:[n.action?ve(ng,{css:GR,label:n.action.label,size:"small",variant:"info"===n.type?"primary":"secondary",onClick:()=>{n?.action?.onClick&&n.action.onClick(),XR[e].dismiss()}}):null,n.meta?.closable?ve(ng,{css:ZR,label:n.meta.closableLabel,"aria-label":n.meta?.closableLabel||t.dismissLabel,leftIcon:ve(hg,{height:"0.625rem!",width:"0.625rem!"}),size:"small",variant:"secondary",onClick:()=>{n.meta?.onClose&&n.meta.onClose(),XR[e].dismiss()}}):null]}):null]});var r}})},e)))};export{PR as AlertBanner,v$ as AnalysisWidget,NR as Avatar,AR as Badge,bw as BaseMap,fN as Breadcrumb,ng as Button,Ov as Checkbox,gy as CheckboxList,Iv as CheckboxOptionCard,_b as CloseButton,ww as ClusterPoint,lw as Combobox,Fe as DesignSystemLocaleProvider,p$ as ExtendableCard,Cb as FieldWrapper,wN as Footer,Ev as FormContainer,og as IconButton,XA as InlineMessage,By as InputWithUnits,Rk as ItemCount,GC as LayerGroup,ZC as LayerGroupContainer,KC as LayerItem,ek as LayerParameters,hk as LegendItem,jk as List,fv as MapControlsToolbar,yw as MapMarker,Cw as MapMarkers,zC as MapPopUp,tb as Menu,dN as MobileSearch,MN as MobileTabBar,vS as Modal,Cv as MultiActionButton,JN as Navbar,nR as NavigationRail,Fv as OptionCard,Kk as Pagination,SS as Panel,Uy as Password,VR as ProgressBar,xk as QualitativeAttribute,Kv as Radio,Gv as RadioGroup,Gy as RadioList,Vb as RichTextEditor,Hb as SSOButtons,Tk as ScaleBar,yR as Search,Hy as Select,BA as Sheet,xw as SimpleMapPin,sy as Slider,Jy as SliderInput,WR as StepProgressIndicator,ly as Switch,uR as TabBar,l$ as Table,d$ as TableCell,c$ as TableRow,Iy as Tag,Ab as TextInput,ew as Textarea,eD as Toast,pv as Toolbar,ob as Tooltip,QR 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,YR as showToast};
|