@worldresources/wri-design-systems 2.147.0 → 2.148.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +64 -49
- package/dist/index.d.ts +16 -2
- package/dist/index.esm.js +201 -186
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1781,40 +1781,55 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
1781
1781
|
background-image: url(${t});
|
|
1782
1782
|
background-size: cover;
|
|
1783
1783
|
background-position: center;
|
|
1784
|
-
`)}),B("div",{css:Vr,children:[B("div",{className:"ds-base-map-title-container",children:[F("p",{className:"ds-base-map-title",children:e.label}),e.active?F(Yn,{label:"Active",variant:"warning",size:"small",icon:F(Se,{})}):null]}),F("p",{className:"ds-base-map-caption",children:e.caption}),e.active&&e.children?F("div",{className:"ds-base-map-children",children:e.children}):null]})]},e.label);var t}))}):null]})]})}),Ir=(e,t,n)=>ae`
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1784
|
+
`)}),B("div",{css:Vr,children:[B("div",{className:"ds-base-map-title-container",children:[F("p",{className:"ds-base-map-title",children:e.label}),e.active?F(Yn,{label:"Active",variant:"warning",size:"small",icon:F(Se,{})}):null]}),F("p",{className:"ds-base-map-caption",children:e.caption}),e.active&&e.children?F("div",{className:"ds-base-map-children",children:e.children}):null]})]},e.label);var t}))}):null]})]})}),Ir=(e,t,n,r,i,o="icon")=>{let a="16px",l=`4px solid ${ve("neutral",100)}`;if("cluster"===o){const e=28,t=96,n=.5;if(l=`4px solid ${ve("neutral",100)}`,void 0!==i&&i>1){const r=e+(i-1)*n;a=`${Math.min(r,t)}px`}else a=`${e}px`}else"simple-pin"===o?(l=`4px solid ${ve("error",500)}`,a="24px"):n&&(a="28px",l=`2px solid ${ve("neutral",100)}`);return ae`
|
|
1785
|
+
text-overflow: ellipsis;
|
|
1786
|
+
height: ${a};
|
|
1787
|
+
width: ${a};
|
|
1788
|
+
background-color: ${"simple-pin"===o?ve("neutral",100):((e,t)=>e||("dark"===t?ve("neutral",800):"light"===t?ve("neutral",100):ve("success",300)))(e,r)};
|
|
1789
|
+
color: ${ve("neutral","dark"===r?100:800)};
|
|
1790
|
+
border: ${l};
|
|
1791
|
+
border-radius: 50%;
|
|
1792
|
+
box-shadow: 0px 2px 4px -2px #0000001a;
|
|
1793
|
+
box-shadow: 0px 4px 6px -1px #0000001a;
|
|
1794
|
+
cursor: ${t?"pointer":"default"};
|
|
1795
|
+
display: flex;
|
|
1796
|
+
align-items: center;
|
|
1797
|
+
justify-content: center;
|
|
1796
1798
|
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1799
|
+
${"simple-pin"===o&&ae`
|
|
1800
|
+
&::after {
|
|
1801
|
+
content: '';
|
|
1802
|
+
position: relative;
|
|
1803
|
+
top: 100%;
|
|
1804
|
+
left: 2px;
|
|
1805
|
+
transform: translateX(-50%);
|
|
1806
|
+
width: 4px;
|
|
1807
|
+
height: 10px;
|
|
1808
|
+
background-color: ${ve("error",500)};
|
|
1809
|
+
pointer-events: none;
|
|
1810
|
+
}
|
|
1811
|
+
`}
|
|
1812
|
+
&:focus-visible {
|
|
1813
|
+
outline: 2px solid ${ve("primary",700)};
|
|
1814
|
+
outline-offset: 2px;
|
|
1815
|
+
box-shadow:
|
|
1816
|
+
0 0 0 2px ${ve("neutral",100)},
|
|
1817
|
+
rgba(0, 0, 0, 0.05) 0px 2px 2px 4px;
|
|
1818
|
+
}
|
|
1804
1819
|
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
height: ${
|
|
1811
|
-
width: ${
|
|
1820
|
+
svg {
|
|
1821
|
+
height: 14px;
|
|
1822
|
+
width: 14px;
|
|
1823
|
+
}
|
|
1824
|
+
`},Ar=G((({ariaLabel:e,icon:t,backgroundColor:n,onClick:r,showFocusState:i,count:o,mode:a,variant:l="icon"},s)=>{const c=o?(d=o)>=1e8?"99M+":d>=1e6?`${(d/1e6).toFixed(0)}M`:d>=1e5?`${(d/1e3).toFixed(0)}K`:d.toString():void 0;var d;return F("div",{css:i?(u=!!t,ae`
|
|
1825
|
+
height: ${u?"32px":"20px"};
|
|
1826
|
+
width: ${u?"32px":"20px"};
|
|
1812
1827
|
border: 2px solid ${ve("primary",700)};
|
|
1813
1828
|
border-radius: 50%;
|
|
1814
1829
|
box-shadow:
|
|
1815
1830
|
0 0 0 2px ${ve("neutral",100)},
|
|
1816
1831
|
rgba(0, 0, 0, 0.05) 0px 2px 2px 4px;
|
|
1817
|
-
`):"",children:F("button",{type:"button",css:Ir(n,!!r,!!t),"aria-label":e,ref:o,onClick:r,children:t})});var a})),zr={Paper:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>le(Ar,{ariaLabel:e||"paper icon",icon:le(Xe,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t,ref:n,showFocusState:r}),Drop:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>le(Ar,{ariaLabel:e||"drop icon",icon:le(Ye,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t,ref:n,showFocusState:r}),Plant:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>le(Ar,{ariaLabel:e||"plant icon",icon:le(Ke,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t,ref:n,showFocusState:r}),Point:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>le(Ar,{ariaLabel:e||"point icon",backgroundColor:ve("primary",500),onClick:t,ref:n,showFocusState:r})};function Hr(){return"undefined"!=typeof window}function Br(e){return Wr(e)?(e.nodeName||"").toLowerCase():"#document"}function Fr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Zr(e){var t;return null==(t=(Wr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Wr(e){return!!Hr()&&(e instanceof Node||e instanceof Fr(e).Node)}function qr(e){return!!Hr()&&(e instanceof Element||e instanceof Fr(e).Element)}function Gr(e){return!!Hr()&&(e instanceof HTMLElement||e instanceof Fr(e).HTMLElement)}function Ur(e){return!(!Hr()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Fr(e).ShadowRoot)}const Xr=new Set(["inline","contents"]);function Yr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Xr.has(i)}const Kr=new Set(["table","td","th"]);function Jr(e){return Kr.has(Br(e))}const Qr=[":popover-open",":modal"];function ei(e){return Qr.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const ti=["transform","translate","scale","rotate","perspective"],ni=["transform","translate","scale","rotate","perspective","filter"],ri=["paint","layout","strict","content"];function ii(e){const t=oi(),n=qr(e)?si(e):e;return ti.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ni.some((e=>(n.willChange||"").includes(e)))||ri.some((e=>(n.contain||"").includes(e)))}function oi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ai=new Set(["html","body","#document"]);function li(e){return ai.has(Br(e))}function si(e){return Fr(e).getComputedStyle(e)}function ci(e){return qr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function di(e){if("html"===Br(e))return e;const t=e.assignedSlot||e.parentNode||Ur(e)&&e.host||Zr(e);return Ur(t)?t.host:t}function ui(e){const t=di(e);return li(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gr(t)&&Yr(t)?t:ui(t)}function pi(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=ui(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Fr(i);if(o){const e=hi(a);return t.concat(a,a.visualViewport||[],Yr(i)?i:[],e&&n?pi(e):[])}return t.concat(i,pi(i,[],n))}function hi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const fi=Math.min,gi=Math.max,vi=Math.round,mi=Math.floor,xi=e=>({x:e,y:e}),bi={left:"right",right:"left",bottom:"top",top:"bottom"},yi={start:"end",end:"start"};function wi(e,t,n){return gi(e,fi(t,n))}function Ci(e,t){return"function"==typeof e?e(t):e}function $i(e){return e.split("-")[0]}function ki(e){return e.split("-")[1]}function Si(e){return"x"===e?"y":"x"}function Ei(e){return"y"===e?"height":"width"}const Oi=new Set(["top","bottom"]);function Ri(e){return Oi.has($i(e))?"y":"x"}function Li(e){return Si(Ri(e))}function Pi(e){return e.replace(/start|end/g,(e=>yi[e]))}const Ti=["left","right"],_i=["right","left"],Mi=["top","bottom"],Di=["bottom","top"];function Ni(e,t,n,r){const i=ki(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?_i:Ti:t?Ti:_i;case"left":case"right":return t?Mi:Di;default:return[]}}($i(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(Pi)))),o}function Vi(e){return e.replace(/left|right|bottom|top/g,(e=>bi[e]))}function ji(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 Ii(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}const Ai="data-floating-ui-focusable";function zi(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ur(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Hi(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Bi(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 Fi(e){return(null==e?void 0:e.ownerDocument)||document}function Zi(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,...Zi(e,t.id,n)]))}var Wi="undefined"!=typeof document?K:function(){};const qi={...W}.useInsertionEffect||(e=>e());function Gi(e){const t=W.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return qi((()=>{t.current=e})),W.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 Ui(e,t,n){let{reference:r,floating:i}=e;const o=Ri(t),a=Li(t),l=Ei(a),s=$i(t),c="y"===o,d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,p=r[l]/2-i[l]/2;let h;switch(s){case"top":h={x:d,y:r.y-i.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-i.width,y:u};break;default:h={x:r.x,y:r.y}}switch(ki(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function Xi(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=Ci(t,e),f=ji(h),g=l[p?"floating"===u?"reference":"floating":u],v=Ii(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),m="floating"===u?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),b=await(null==o.isElement?void 0:o.isElement(x))&&await(null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},y=Ii(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:m,offsetParent:x,strategy:s}):m);return{top:(v.top-y.top+f.top)/b.y,bottom:(y.bottom-v.bottom+f.bottom)/b.y,left:(v.left-y.left+f.left)/b.x,right:(y.right-v.right+f.right)/b.x}}const Yi=new Set(["left","top"]);function Ki(e){const t=si(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Gr(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=vi(n)!==o||vi(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function Ji(e){return qr(e)?e:e.contextElement}function Qi(e){const t=Ji(e);if(!Gr(t))return xi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ki(t);let a=(o?vi(n.width):n.width)/r,l=(o?vi(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const eo=xi(0);function to(e){const t=Fr(e);return oi()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function no(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Ji(e);let a=xi(1);t&&(r?qr(r)&&(a=Qi(r)):a=Qi(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Fr(e))&&t}(o,n,r)?to(o):xi(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(o){const e=Fr(o),t=r&&qr(r)?Fr(r):r;let n=e,i=hi(n);for(;i&&r&&t!==n;){const e=Qi(i),t=i.getBoundingClientRect(),r=si(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,u*=e.y,s+=o,c+=a,n=Fr(i),i=hi(n)}}return Ii({width:d,height:u,x:s,y:c})}function ro(e,t){const n=ci(e).scrollLeft;return t?t.left+n:no(Zr(e)).left+n}function io(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ro(e,n),y:n.top+t.scrollTop}}const oo=new Set(["absolute","fixed"]);function ao(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Fr(e),r=Zr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){o=i.width,a=i.height;const e=oi();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}const c=ro(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else c<=25&&(o+=c);return{width:o,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=Zr(e),n=ci(e),r=e.ownerDocument.body,i=gi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=gi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ro(e);const l=-n.scrollTop;return"rtl"===si(r).direction&&(a+=gi(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}(Zr(e));else if(qr(t))r=function(e,t){const n=no(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Gr(e)?Qi(e):xi(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=to(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ii(r)}function lo(e,t){const n=di(e);return!(n===t||!qr(n)||li(n))&&("fixed"===si(n).position||lo(n,t))}function so(e,t,n){const r=Gr(t),i=Zr(t),o="fixed"===n,a=no(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const s=xi(0);function c(){s.x=ro(i)}if(r||!r&&!o)if(("body"!==Br(t)||Yr(i))&&(l=ci(t)),r){const e=no(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&c();o&&!r&&i&&c();const d=!i||r||o?xi(0):io(i,l);return{x:a.left+l.scrollLeft-s.x-d.x,y:a.top+l.scrollTop-s.y-d.y,width:a.width,height:a.height}}function co(e){return"static"===si(e).position}function uo(e,t){if(!Gr(e)||"fixed"===si(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Zr(e)===n&&(n=n.ownerDocument.body),n}function po(e,t){const n=Fr(e);if(ei(e))return n;if(!Gr(e)){let t=di(e);for(;t&&!li(t);){if(qr(t)&&!co(t))return t;t=di(t)}return n}let r=uo(e,t);for(;r&&Jr(r)&&co(r);)r=uo(r,t);return r&&li(r)&&co(r)&&!ii(r)?n:r||function(e){let t=di(e);for(;Gr(t)&&!li(t);){if(ii(t))return t;if(ei(t))return null;t=di(t)}return null}(e)||n}const ho={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=Zr(r),l=!!t&&ei(t.floating);if(r===a||l&&o)return n;let s={scrollLeft:0,scrollTop:0},c=xi(1);const d=xi(0),u=Gr(r);if((u||!u&&!o)&&(("body"!==Br(r)||Yr(a))&&(s=ci(r)),Gr(r))){const e=no(r);c=Qi(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const p=!a||u||o?xi(0):io(a,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-s.scrollTop*c.y+d.y+p.y}},getDocumentElement:Zr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o="clippingAncestors"===n?ei(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=pi(e,[],!1).filter((e=>qr(e)&&"body"!==Br(e))),i=null;const o="fixed"===si(e).position;let a=o?di(e):e;for(;qr(a)&&!li(a);){const t=si(a),n=ii(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&oo.has(i.position)||Yr(a)&&!n&&lo(e,a))?r=r.filter((e=>e!==a)):i=t,a=di(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...o,r],l=a[0],s=a.reduce(((e,n)=>{const r=ao(t,n,i);return e.top=gi(r.top,e.top),e.right=fi(r.right,e.right),e.bottom=fi(r.bottom,e.bottom),e.left=gi(r.left,e.left),e}),ao(t,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:po,getElementRects:async function(e){const t=this.getOffsetParent||po,n=this.getDimensions,r=await n(e.floating);return{reference:so(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}=Ki(e);return{width:t,height:n}},getScale:Qi,isElement:qr,isRTL:function(e){return"rtl"===si(e).direction}};function fo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function go(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Ji(e),d=i||o?[...c?pi(c):[],...pi(t)]:[];d.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const u=c&&l?function(e,t){let n,r=null;const i=Zr(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),o();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(l||t(),!p||!h)return;const f={rootMargin:-mi(u)+"px "+-mi(i.clientWidth-(d+p))+"px "+-mi(i.clientHeight-(u+h))+"px "+-mi(d)+"px",threshold:gi(0,fi(1,s))||1};let g=!0;function v(t){const r=t[0].intersectionRatio;if(r!==s){if(!g)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||fo(c,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(v,{...f,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(v,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!s&&f.observe(c),f.observe(t));let g=s?no(e):null;return s&&function t(){const r=no(e);g&&!fo(g,r)&&n();g=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(p)}}const vo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=$i(n),l=ki(n),s="y"===Ri(n),c=Yi.has(a)?-1:1,d=o&&s?-1:1,u=Ci(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof f&&(h="end"===l?-1*f:f),s?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:a}}}}},mo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=Ci(e,t),c={x:n,y:r},d=await Xi(t,s),u=Ri($i(i)),p=Si(u);let h=c[p],f=c[u];if(o){const e="y"===p?"bottom":"right";h=wi(h+d["y"===p?"top":"left"],h,h-d[e])}if(a){const e="y"===u?"bottom":"right";f=wi(f+d["y"===u?"top":"left"],f,f-d[e])}const g=l.fn({...t,[p]:h,[u]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[u]:a}}}}}},xo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...v}=Ci(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const m=$i(i),x=Ri(l),b=$i(l)===l,y=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=p||(b||!g?[Vi(l)]:function(e){const t=Vi(e);return[Pi(e),t,Pi(t)]}(l)),C="none"!==f;!p&&C&&w.push(...Ni(l,g,f,y));const $=[l,...w],k=await Xi(t,v),S=[];let E=(null==(r=o.flip)?void 0:r.overflows)||[];if(d&&S.push(k[m]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=ki(e),i=Li(e),o=Ei(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Vi(a)),[a,Vi(a)]}(i,a,y);S.push(k[e[0]],k[e[1]])}if(E=[...E,{placement:i,overflows:S}],!S.every((e=>e<=0))){var O,R;const e=((null==(O=o.flip)?void 0:O.index)||0)+1,t=$[e];if(t){if(!("alignment"===u&&x!==Ri(t))||E.every((e=>Ri(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=null==(R=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(h){case"bestFit":{var L;const e=null==(L=E.filter((e=>{if(C){const t=Ri(e.placement);return t===x||"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:L[0];e&&(n=e);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}},bo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:d=0}=Ci(e,t)||{};if(null==c)return{};const u=ji(d),p={x:n,y:r},h=Li(i),f=Ei(h),g=await a.getDimensions(c),v="y"===h,m=v?"top":"left",x=v?"bottom":"right",b=v?"clientHeight":"clientWidth",y=o.reference[f]+o.reference[h]-p[h]-o.floating[f],w=p[h]-o.reference[h],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let $=C?C[b]:0;$&&await(null==a.isElement?void 0:a.isElement(C))||($=l.floating[b]||o.floating[f]);const k=y/2-w/2,S=$/2-g[f]/2-1,E=fi(u[m],S),O=fi(u[x],S),R=E,L=$-g[f]-O,P=$/2-g[f]/2+k,T=wi(R,P,L),_=!s.arrow&&null!=ki(i)&&P!==T&&o.reference[f]/2-(P<R?E:O)-g[f]/2<0,M=_?P<R?P-R:P-L:0;return{[h]:p[h]+M,data:{[h]:T,centerOffset:P-T-M,..._&&{alignmentOffset:M}},reset:_}}}),yo=(e,t,n)=>{const r=new Map,i={platform:ho,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Ui(c,r,s),p=r,h={},f=0;for(let n=0;n<l.length;n++){const{name:o,fn:g}=l[n],{x:v,y:m,data:x,reset:b}=await g({x:d,y:u,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=v?v:d,u=null!=m?m:u,h={...h,[o]:{...h[o],...x}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:d,y:u}=Ui(c,p,s))),n=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:h}})(e,t,{...i,platform:o})};var wo="undefined"!=typeof document?K:function(){};function Co(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,i;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(!Co(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!Co(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function $o(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ko(e,t){const n=$o(e);return Math.round(t*n)/n}function So(e){const t=W.useRef(e);return wo((()=>{t.current=e})),t}const Eo=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?bo({element:n.current,padding:r}).fn(t):{}:n?bo({element:n,padding:r}).fn(t):{};var i}}),Oo=(e,t)=>({...vo(e),options:[e,t]}),Ro=(e,t)=>({...mo(e),options:[e,t]}),Lo=(e,t)=>({...Eo(e),options:[e,t]}),Po="data-floating-ui-focusable",To="active",_o="selected",Mo={...W};let Do=!1,No=0;const Vo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+No++;const jo=Mo.useId||function(){const[e,t]=W.useState((()=>Do?Vo():void 0));return Wi((()=>{null==e&&t(Vo())}),[]),W.useEffect((()=>{Do=!0}),[]),e};let Io;"production"!==process.env.NODE_ENV&&(Io=new Set);const Ao=W.createContext(null),zo=W.createContext(null),Ho=()=>{var e;return(null==(e=W.useContext(Ao))?void 0:e.id)||null},Bo=()=>W.useContext(zo);const Fo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Zo={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Wo=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 qo(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=jo(),o=W.useRef({}),[a]=W.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)}}}())),l=null!=Ho();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!qr(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");var o;null!=(e=Io)&&e.has(i)||(null==(o=Io)||o.add(i),console.error(i))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[s,c]=W.useState(r.reference),d=Gi(((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),u=W.useMemo((()=>({setPositionReference:c})),[]),p=W.useMemo((()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference})),[s,r.reference,r.floating]);return W.useMemo((()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:u})),[t,d,p,a,i,u])}function Go(e){void 0===e&&(e={});const{nodeId:t}=e,n=qo({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=W.useState(null),[l,s]=W.useState(null),c=(null==i?void 0:i.domReference)||o,d=W.useRef(null),u=Bo();Wi((()=>{c&&(d.current=c)}),[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:s,open:c}=e,[d,u]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=W.useState(r);Co(p,r)||h(r);const[f,g]=W.useState(null),[v,m]=W.useState(null),x=W.useCallback((e=>{e!==C.current&&(C.current=e,g(e))}),[]),b=W.useCallback((e=>{e!==$.current&&($.current=e,m(e))}),[]),y=o||f,w=a||v,C=W.useRef(null),$=W.useRef(null),k=W.useRef(d),S=null!=s,E=So(s),O=So(i),R=So(c),L=W.useCallback((()=>{if(!C.current||!$.current)return;const e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),yo(C.current,$.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};P.current&&!Co(k.current,t)&&(k.current=t,de.flushSync((()=>{u(t)})))}))}),[p,t,n,O,R]);wo((()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[c]);const P=W.useRef(!1);wo((()=>(P.current=!0,()=>{P.current=!1})),[]),wo((()=>{if(y&&(C.current=y),w&&($.current=w),y&&w){if(E.current)return E.current(y,w,L);L()}}),[y,w,L,E,S]);const T=W.useMemo((()=>({reference:C,floating:$,setReference:x,setFloating:b})),[x,b]),_=W.useMemo((()=>({reference:y,floating:w})),[y,w]),M=W.useMemo((()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=ko(_.floating,d.x),r=ko(_.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...$o(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,_.floating,d.x,d.y]);return W.useMemo((()=>({...d,update:L,refs:T,elements:_,floatingStyles:M})),[d,L,T,_,M])}({...e,elements:{...i,...l&&{reference:l}}}),h=W.useCallback((e=>{const t=qr(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),p.refs.setReference(t)}),[p.refs]),f=W.useCallback((e=>{(qr(e)||null===e)&&(d.current=e,a(e)),(qr(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!qr(e))&&p.refs.setReference(e)}),[p.refs]),g=W.useMemo((()=>({...p.refs,setReference:f,setPositionReference:h,domReference:d})),[p.refs,f,h]),v=W.useMemo((()=>({...p.elements,domReference:c})),[p.elements,c]),m=W.useMemo((()=>({...p,...r,refs:g,elements:v,nodeId:t})),[p,g,v,t,r]);return Wi((()=>{r.dataRef.current.floatingContext=m;const e=null==u?void 0:u.nodesRef.current.find((e=>e.id===t));e&&(e.context=m)})),W.useMemo((()=>({...p,context:m,refs:g,elements:v})),[p,g,v,m])}function Uo(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[To]:t,[_o]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[Po]:""},...o,...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,o]=t;var a;i&&[To,_o].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}const Xo=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Yo(e,t){var n,r;void 0===t&&(t={});const{open:i,elements:o,floatingId:a}=e,{enabled:l=!0,role:s="dialog"}=t,c=jo(),d=(null==(n=o.domReference)?void 0:n.id)||c,u=W.useMemo((()=>{var e,t;return(null==(e=(t=o.floating)?t.hasAttribute(Ai)?t:t.querySelector("["+Ai+"]")||t:null)?void 0:e.id)||a}),[o.floating,a]),p=null!=(r=Xo.get(s))?r:s,h=null!=Ho(),f=W.useMemo((()=>"tooltip"===p||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:i?u:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":i?u:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:d},..."menu"===p&&h&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[p,u,h,i,d,s]),g=W.useMemo((()=>{const e={id:u,...p&&{role:p}};return"tooltip"===p||"label"===s?e:{...e,..."menu"===p&&{"aria-labelledby":d}}}),[p,u,d,s]),v=W.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:u+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}}),[u,s]);return W.useMemo((()=>l?{reference:f,floating:g,item:v}:{}),[l,f,g,v])}const Ko=ae`
|
|
1832
|
+
`):"",children:B("button",{type:"button",css:Ir(n,!!r,!!t,a,o,l),"aria-label":e||(o?`Cluster of ${o} locations`:"simple-pin"===l?"Map pin location":"Map point"),ref:s,onClick:r,children:["cluster"===l&&c,"icon"===l&&t]})});var u})),zr=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:i,variant:o="cluster"})=>le(Ar,{count:r,mode:i,onClick:e,ref:t,showFocusState:n,variant:o}),Hr=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:i,variant:o="simple-pin"})=>le(Ar,{count:r,mode:i,onClick:e,ref:t,showFocusState:n,variant:o}),Br={Paper:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>le(Ar,{ariaLabel:e||"paper icon",icon:le(Xe,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t,ref:n,showFocusState:r}),Drop:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>le(Ar,{ariaLabel:e||"drop icon",icon:le(Ye,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t,ref:n,showFocusState:r}),Plant:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>le(Ar,{ariaLabel:e||"plant icon",icon:le(Ke,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t,ref:n,showFocusState:r}),Point:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>le(Ar,{ariaLabel:e||"point icon",backgroundColor:ve("primary",500),onClick:t,ref:n,showFocusState:r})};function Fr(){return"undefined"!=typeof window}function Zr(e){return Gr(e)?(e.nodeName||"").toLowerCase():"#document"}function Wr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qr(e){var t;return null==(t=(Gr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Gr(e){return!!Fr()&&(e instanceof Node||e instanceof Wr(e).Node)}function Ur(e){return!!Fr()&&(e instanceof Element||e instanceof Wr(e).Element)}function Xr(e){return!!Fr()&&(e instanceof HTMLElement||e instanceof Wr(e).HTMLElement)}function Yr(e){return!(!Fr()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Wr(e).ShadowRoot)}const Kr=new Set(["inline","contents"]);function Jr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=di(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Kr.has(i)}const Qr=new Set(["table","td","th"]);function ei(e){return Qr.has(Zr(e))}const ti=[":popover-open",":modal"];function ni(e){return ti.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const ri=["transform","translate","scale","rotate","perspective"],ii=["transform","translate","scale","rotate","perspective","filter"],oi=["paint","layout","strict","content"];function ai(e){const t=li(),n=Ur(e)?di(e):e;return ri.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ii.some((e=>(n.willChange||"").includes(e)))||oi.some((e=>(n.contain||"").includes(e)))}function li(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const si=new Set(["html","body","#document"]);function ci(e){return si.has(Zr(e))}function di(e){return Wr(e).getComputedStyle(e)}function ui(e){return Ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pi(e){if("html"===Zr(e))return e;const t=e.assignedSlot||e.parentNode||Yr(e)&&e.host||qr(e);return Yr(t)?t.host:t}function hi(e){const t=pi(e);return ci(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xr(t)&&Jr(t)?t:hi(t)}function fi(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=hi(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Wr(i);if(o){const e=gi(a);return t.concat(a,a.visualViewport||[],Jr(i)?i:[],e&&n?fi(e):[])}return t.concat(i,fi(i,[],n))}function gi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const vi=Math.min,mi=Math.max,xi=Math.round,bi=Math.floor,yi=e=>({x:e,y:e}),wi={left:"right",right:"left",bottom:"top",top:"bottom"},Ci={start:"end",end:"start"};function $i(e,t,n){return mi(e,vi(t,n))}function ki(e,t){return"function"==typeof e?e(t):e}function Si(e){return e.split("-")[0]}function Ei(e){return e.split("-")[1]}function Oi(e){return"x"===e?"y":"x"}function Ri(e){return"y"===e?"height":"width"}const Li=new Set(["top","bottom"]);function Pi(e){return Li.has(Si(e))?"y":"x"}function Ti(e){return Oi(Pi(e))}function _i(e){return e.replace(/start|end/g,(e=>Ci[e]))}const Mi=["left","right"],Di=["right","left"],Ni=["top","bottom"],Vi=["bottom","top"];function ji(e,t,n,r){const i=Ei(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Di:Mi:t?Mi:Di;case"left":case"right":return t?Ni:Vi;default:return[]}}(Si(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(_i)))),o}function Ii(e){return e.replace(/left|right|bottom|top/g,(e=>wi[e]))}function Ai(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 zi(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}const Hi="data-floating-ui-focusable";function Bi(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Yr(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Fi(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Zi(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 Wi(e){return(null==e?void 0:e.ownerDocument)||document}function qi(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,...qi(e,t.id,n)]))}var Gi="undefined"!=typeof document?K:function(){};const Ui={...W}.useInsertionEffect||(e=>e());function Xi(e){const t=W.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Ui((()=>{t.current=e})),W.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 Yi(e,t,n){let{reference:r,floating:i}=e;const o=Pi(t),a=Ti(t),l=Ri(a),s=Si(t),c="y"===o,d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,p=r[l]/2-i[l]/2;let h;switch(s){case"top":h={x:d,y:r.y-i.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-i.width,y:u};break;default:h={x:r.x,y:r.y}}switch(Ei(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function Ki(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=ki(t,e),f=Ai(h),g=l[p?"floating"===u?"reference":"floating":u],v=zi(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),m="floating"===u?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),b=await(null==o.isElement?void 0:o.isElement(x))&&await(null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},y=zi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:m,offsetParent:x,strategy:s}):m);return{top:(v.top-y.top+f.top)/b.y,bottom:(y.bottom-v.bottom+f.bottom)/b.y,left:(v.left-y.left+f.left)/b.x,right:(y.right-v.right+f.right)/b.x}}const Ji=new Set(["left","top"]);function Qi(e){const t=di(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Xr(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=xi(n)!==o||xi(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function eo(e){return Ur(e)?e:e.contextElement}function to(e){const t=eo(e);if(!Xr(t))return yi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Qi(t);let a=(o?xi(n.width):n.width)/r,l=(o?xi(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const no=yi(0);function ro(e){const t=Wr(e);return li()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:no}function io(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=eo(e);let a=yi(1);t&&(r?Ur(r)&&(a=to(r)):a=to(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Wr(e))&&t}(o,n,r)?ro(o):yi(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(o){const e=Wr(o),t=r&&Ur(r)?Wr(r):r;let n=e,i=gi(n);for(;i&&r&&t!==n;){const e=to(i),t=i.getBoundingClientRect(),r=di(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,u*=e.y,s+=o,c+=a,n=Wr(i),i=gi(n)}}return zi({width:d,height:u,x:s,y:c})}function oo(e,t){const n=ui(e).scrollLeft;return t?t.left+n:io(qr(e)).left+n}function ao(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-oo(e,n),y:n.top+t.scrollTop}}const lo=new Set(["absolute","fixed"]);function so(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Wr(e),r=qr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){o=i.width,a=i.height;const e=li();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}const c=oo(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else c<=25&&(o+=c);return{width:o,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=qr(e),n=ui(e),r=e.ownerDocument.body,i=mi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=mi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+oo(e);const l=-n.scrollTop;return"rtl"===di(r).direction&&(a+=mi(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}(qr(e));else if(Ur(t))r=function(e,t){const n=io(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Xr(e)?to(e):yi(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=ro(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return zi(r)}function co(e,t){const n=pi(e);return!(n===t||!Ur(n)||ci(n))&&("fixed"===di(n).position||co(n,t))}function uo(e,t,n){const r=Xr(t),i=qr(t),o="fixed"===n,a=io(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const s=yi(0);function c(){s.x=oo(i)}if(r||!r&&!o)if(("body"!==Zr(t)||Jr(i))&&(l=ui(t)),r){const e=io(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&c();o&&!r&&i&&c();const d=!i||r||o?yi(0):ao(i,l);return{x:a.left+l.scrollLeft-s.x-d.x,y:a.top+l.scrollTop-s.y-d.y,width:a.width,height:a.height}}function po(e){return"static"===di(e).position}function ho(e,t){if(!Xr(e)||"fixed"===di(e).position)return null;if(t)return t(e);let n=e.offsetParent;return qr(e)===n&&(n=n.ownerDocument.body),n}function fo(e,t){const n=Wr(e);if(ni(e))return n;if(!Xr(e)){let t=pi(e);for(;t&&!ci(t);){if(Ur(t)&&!po(t))return t;t=pi(t)}return n}let r=ho(e,t);for(;r&&ei(r)&&po(r);)r=ho(r,t);return r&&ci(r)&&po(r)&&!ai(r)?n:r||function(e){let t=pi(e);for(;Xr(t)&&!ci(t);){if(ai(t))return t;if(ni(t))return null;t=pi(t)}return null}(e)||n}const go={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=qr(r),l=!!t&&ni(t.floating);if(r===a||l&&o)return n;let s={scrollLeft:0,scrollTop:0},c=yi(1);const d=yi(0),u=Xr(r);if((u||!u&&!o)&&(("body"!==Zr(r)||Jr(a))&&(s=ui(r)),Xr(r))){const e=io(r);c=to(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const p=!a||u||o?yi(0):ao(a,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-s.scrollTop*c.y+d.y+p.y}},getDocumentElement:qr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o="clippingAncestors"===n?ni(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=fi(e,[],!1).filter((e=>Ur(e)&&"body"!==Zr(e))),i=null;const o="fixed"===di(e).position;let a=o?pi(e):e;for(;Ur(a)&&!ci(a);){const t=di(a),n=ai(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&lo.has(i.position)||Jr(a)&&!n&&co(e,a))?r=r.filter((e=>e!==a)):i=t,a=pi(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...o,r],l=a[0],s=a.reduce(((e,n)=>{const r=so(t,n,i);return e.top=mi(r.top,e.top),e.right=vi(r.right,e.right),e.bottom=vi(r.bottom,e.bottom),e.left=mi(r.left,e.left),e}),so(t,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:fo,getElementRects:async function(e){const t=this.getOffsetParent||fo,n=this.getDimensions,r=await n(e.floating);return{reference:uo(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}=Qi(e);return{width:t,height:n}},getScale:to,isElement:Ur,isRTL:function(e){return"rtl"===di(e).direction}};function vo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mo(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=eo(e),d=i||o?[...c?fi(c):[],...fi(t)]:[];d.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const u=c&&l?function(e,t){let n,r=null;const i=qr(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),o();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(l||t(),!p||!h)return;const f={rootMargin:-bi(u)+"px "+-bi(i.clientWidth-(d+p))+"px "+-bi(i.clientHeight-(u+h))+"px "+-bi(d)+"px",threshold:mi(0,vi(1,s))||1};let g=!0;function v(t){const r=t[0].intersectionRatio;if(r!==s){if(!g)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||vo(c,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(v,{...f,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(v,f)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!s&&f.observe(c),f.observe(t));let g=s?io(e):null;return s&&function t(){const r=io(e);g&&!vo(g,r)&&n();g=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(p)}}const xo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=Si(n),l=Ei(n),s="y"===Pi(n),c=Ji.has(a)?-1:1,d=o&&s?-1:1,u=ki(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof f&&(h="end"===l?-1*f:f),s?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:a}}}}},bo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=ki(e,t),c={x:n,y:r},d=await Ki(t,s),u=Pi(Si(i)),p=Oi(u);let h=c[p],f=c[u];if(o){const e="y"===p?"bottom":"right";h=$i(h+d["y"===p?"top":"left"],h,h-d[e])}if(a){const e="y"===u?"bottom":"right";f=$i(f+d["y"===u?"top":"left"],f,f-d[e])}const g=l.fn({...t,[p]:h,[u]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[u]:a}}}}}},yo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...v}=ki(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const m=Si(i),x=Pi(l),b=Si(l)===l,y=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=p||(b||!g?[Ii(l)]:function(e){const t=Ii(e);return[_i(e),t,_i(t)]}(l)),C="none"!==f;!p&&C&&w.push(...ji(l,g,f,y));const $=[l,...w],k=await Ki(t,v),S=[];let E=(null==(r=o.flip)?void 0:r.overflows)||[];if(d&&S.push(k[m]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=Ei(e),i=Ti(e),o=Ri(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Ii(a)),[a,Ii(a)]}(i,a,y);S.push(k[e[0]],k[e[1]])}if(E=[...E,{placement:i,overflows:S}],!S.every((e=>e<=0))){var O,R;const e=((null==(O=o.flip)?void 0:O.index)||0)+1,t=$[e];if(t){if(!("alignment"===u&&x!==Pi(t))||E.every((e=>Pi(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=null==(R=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(h){case"bestFit":{var L;const e=null==(L=E.filter((e=>{if(C){const t=Pi(e.placement);return t===x||"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:L[0];e&&(n=e);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}},wo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:d=0}=ki(e,t)||{};if(null==c)return{};const u=Ai(d),p={x:n,y:r},h=Ti(i),f=Ri(h),g=await a.getDimensions(c),v="y"===h,m=v?"top":"left",x=v?"bottom":"right",b=v?"clientHeight":"clientWidth",y=o.reference[f]+o.reference[h]-p[h]-o.floating[f],w=p[h]-o.reference[h],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let $=C?C[b]:0;$&&await(null==a.isElement?void 0:a.isElement(C))||($=l.floating[b]||o.floating[f]);const k=y/2-w/2,S=$/2-g[f]/2-1,E=vi(u[m],S),O=vi(u[x],S),R=E,L=$-g[f]-O,P=$/2-g[f]/2+k,T=$i(R,P,L),_=!s.arrow&&null!=Ei(i)&&P!==T&&o.reference[f]/2-(P<R?E:O)-g[f]/2<0,M=_?P<R?P-R:P-L:0;return{[h]:p[h]+M,data:{[h]:T,centerOffset:P-T-M,..._&&{alignmentOffset:M}},reset:_}}}),Co=(e,t,n)=>{const r=new Map,i={platform:go,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Yi(c,r,s),p=r,h={},f=0;for(let n=0;n<l.length;n++){const{name:o,fn:g}=l[n],{x:v,y:m,data:x,reset:b}=await g({x:d,y:u,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=v?v:d,u=null!=m?m:u,h={...h,[o]:{...h[o],...x}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:d,y:u}=Yi(c,p,s))),n=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:h}})(e,t,{...i,platform:o})};var $o="undefined"!=typeof document?K:function(){};function ko(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,i;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(!ko(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ko(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function So(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Eo(e,t){const n=So(e);return Math.round(t*n)/n}function Oo(e){const t=W.useRef(e);return $o((()=>{t.current=e})),t}const Ro=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?wo({element:n.current,padding:r}).fn(t):{}:n?wo({element:n,padding:r}).fn(t):{};var i}}),Lo=(e,t)=>({...xo(e),options:[e,t]}),Po=(e,t)=>({...bo(e),options:[e,t]}),To=(e,t)=>({...Ro(e),options:[e,t]}),_o="data-floating-ui-focusable",Mo="active",Do="selected",No={...W};let Vo=!1,jo=0;const Io=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+jo++;const Ao=No.useId||function(){const[e,t]=W.useState((()=>Vo?Io():void 0));return Gi((()=>{null==e&&t(Io())}),[]),W.useEffect((()=>{Vo=!0}),[]),e};let zo;"production"!==process.env.NODE_ENV&&(zo=new Set);const Ho=W.createContext(null),Bo=W.createContext(null),Fo=()=>{var e;return(null==(e=W.useContext(Ho))?void 0:e.id)||null},Zo=()=>W.useContext(Bo);const Wo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},qo={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Go=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 Uo(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Ao(),o=W.useRef({}),[a]=W.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)}}}())),l=null!=Fo();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!Ur(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");var o;null!=(e=zo)&&e.has(i)||(null==(o=zo)||o.add(i),console.error(i))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[s,c]=W.useState(r.reference),d=Xi(((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),u=W.useMemo((()=>({setPositionReference:c})),[]),p=W.useMemo((()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference})),[s,r.reference,r.floating]);return W.useMemo((()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:u})),[t,d,p,a,i,u])}function Xo(e){void 0===e&&(e={});const{nodeId:t}=e,n=Uo({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=W.useState(null),[l,s]=W.useState(null),c=(null==i?void 0:i.domReference)||o,d=W.useRef(null),u=Zo();Gi((()=>{c&&(d.current=c)}),[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:s,open:c}=e,[d,u]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=W.useState(r);ko(p,r)||h(r);const[f,g]=W.useState(null),[v,m]=W.useState(null),x=W.useCallback((e=>{e!==C.current&&(C.current=e,g(e))}),[]),b=W.useCallback((e=>{e!==$.current&&($.current=e,m(e))}),[]),y=o||f,w=a||v,C=W.useRef(null),$=W.useRef(null),k=W.useRef(d),S=null!=s,E=Oo(s),O=Oo(i),R=Oo(c),L=W.useCallback((()=>{if(!C.current||!$.current)return;const e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),Co(C.current,$.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};P.current&&!ko(k.current,t)&&(k.current=t,de.flushSync((()=>{u(t)})))}))}),[p,t,n,O,R]);$o((()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[c]);const P=W.useRef(!1);$o((()=>(P.current=!0,()=>{P.current=!1})),[]),$o((()=>{if(y&&(C.current=y),w&&($.current=w),y&&w){if(E.current)return E.current(y,w,L);L()}}),[y,w,L,E,S]);const T=W.useMemo((()=>({reference:C,floating:$,setReference:x,setFloating:b})),[x,b]),_=W.useMemo((()=>({reference:y,floating:w})),[y,w]),M=W.useMemo((()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=Eo(_.floating,d.x),r=Eo(_.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...So(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,_.floating,d.x,d.y]);return W.useMemo((()=>({...d,update:L,refs:T,elements:_,floatingStyles:M})),[d,L,T,_,M])}({...e,elements:{...i,...l&&{reference:l}}}),h=W.useCallback((e=>{const t=Ur(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),p.refs.setReference(t)}),[p.refs]),f=W.useCallback((e=>{(Ur(e)||null===e)&&(d.current=e,a(e)),(Ur(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Ur(e))&&p.refs.setReference(e)}),[p.refs]),g=W.useMemo((()=>({...p.refs,setReference:f,setPositionReference:h,domReference:d})),[p.refs,f,h]),v=W.useMemo((()=>({...p.elements,domReference:c})),[p.elements,c]),m=W.useMemo((()=>({...p,...r,refs:g,elements:v,nodeId:t})),[p,g,v,t,r]);return Gi((()=>{r.dataRef.current.floatingContext=m;const e=null==u?void 0:u.nodesRef.current.find((e=>e.id===t));e&&(e.context=m)})),W.useMemo((()=>({...p,context:m,refs:g,elements:v})),[p,g,v,m])}function Yo(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[Mo]:t,[Do]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[_o]:""},...o,...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,o]=t;var a;i&&[Mo,Do].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}const Ko=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Jo(e,t){var n,r;void 0===t&&(t={});const{open:i,elements:o,floatingId:a}=e,{enabled:l=!0,role:s="dialog"}=t,c=Ao(),d=(null==(n=o.domReference)?void 0:n.id)||c,u=W.useMemo((()=>{var e,t;return(null==(e=(t=o.floating)?t.hasAttribute(Hi)?t:t.querySelector("["+Hi+"]")||t:null)?void 0:e.id)||a}),[o.floating,a]),p=null!=(r=Ko.get(s))?r:s,h=null!=Fo(),f=W.useMemo((()=>"tooltip"===p||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:i?u:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":i?u:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:d},..."menu"===p&&h&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[p,u,h,i,d,s]),g=W.useMemo((()=>{const e={id:u,...p&&{role:p}};return"tooltip"===p||"label"===s?e:{...e,..."menu"===p&&{"aria-labelledby":d}}}),[p,u,d,s]),v=W.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:u+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}}),[u,s]);return W.useMemo((()=>l?{reference:f,floating:g,item:v}:{}),[l,f,g,v])}const Qo=ae`
|
|
1818
1833
|
height: auto;
|
|
1819
1834
|
max-height: 512px;
|
|
1820
1835
|
width: 100%;
|
|
@@ -1828,7 +1843,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
1828
1843
|
0px 4px 6px -4px #0000001a,
|
|
1829
1844
|
0px 10px 15px -3px #0000001a;
|
|
1830
1845
|
outline: 0;
|
|
1831
|
-
`,
|
|
1846
|
+
`,ea=ae`
|
|
1832
1847
|
display: flex;
|
|
1833
1848
|
align-items: flex-start;
|
|
1834
1849
|
justify-content: space-between;
|
|
@@ -1840,7 +1855,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
1840
1855
|
.ds-map-pop-up-close-button {
|
|
1841
1856
|
margin-top: 4px;
|
|
1842
1857
|
}
|
|
1843
|
-
`,
|
|
1858
|
+
`,ta=ae`
|
|
1844
1859
|
height: 100%;
|
|
1845
1860
|
max-height: 400px;
|
|
1846
1861
|
overflow-y: auto;
|
|
@@ -1848,11 +1863,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
1848
1863
|
&:focus-visible {
|
|
1849
1864
|
outline-color: ${ve("primary",700)};
|
|
1850
1865
|
}
|
|
1851
|
-
`,
|
|
1866
|
+
`,na=ae`
|
|
1852
1867
|
padding: 8px 12px;
|
|
1853
1868
|
border-top: 1px solid ${ve("neutral",300)};
|
|
1854
1869
|
min-height: 44px;
|
|
1855
|
-
`,
|
|
1870
|
+
`,ra=(e,t,n,r,i,o)=>ae`
|
|
1856
1871
|
height: ${e}px;
|
|
1857
1872
|
width: ${t}px;
|
|
1858
1873
|
position: absolute;
|
|
@@ -1861,14 +1876,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
1861
1876
|
${`${i}: -${o-1}px`};
|
|
1862
1877
|
background-color: ${ve("neutral",100)};
|
|
1863
1878
|
border: 1px solid ${ve("neutral",300)};
|
|
1864
|
-
`,
|
|
1879
|
+
`,ia=({open:e,onOpenChange:t,anchorRef:n,header:r,content:i,footer:o,placement:a="bottom",offset:l=30,closeOnEscape:s=!0,closeOnOutsideClick:c=!1})=>{const d=J(null),{refs:u,floatingStyles:p,context:h,middlewareData:f,placement:g}=Xo({open:e,onOpenChange:t,placement:a,whileElementsMounted:mo,middleware:[Lo(l),(v={fallbackAxisSideDirection:"start"},{...yo(v),options:[v,m]}),Po({padding:8}),To({element:d})]});var v,m;q.useEffect((()=>{n?.current&&u.setReference(n.current)}),[n,u]);const x=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:s=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:f}=t,g=Zo(),v=Xi("function"==typeof s?s:()=>!1),m="function"==typeof s?v:s,x=W.useRef(!1),{escapeKey:b,outsidePress:y}=Go(h),{escapeKey:w,outsidePress:C}=Go(f),$=W.useRef(!1),k=Xi((e=>{var t;if(!n||!a||!l||"Escape"!==e.key)return;if($.current)return;const i=null==(t=o.current.floatingContext)?void 0:t.nodeId,s=g?qi(g.nodesRef.current,i):[];if(!b&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.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=Xi((e=>{var t;const n=()=>{var t;k(e),null==(t=Fi(e))||t.removeEventListener("keydown",n)};null==(t=Fi(e))||t.addEventListener("keydown",n)})),E=Xi((e=>{var t;const n=o.current.insideReactTree;o.current.insideReactTree=!1;const a=x.current;if(x.current=!1,"click"===c&&a)return;if(n)return;if("function"==typeof m&&!m(e))return;const l=Fi(e),s="[data-floating-ui-inert]",d=Wi(i.floating).querySelectorAll(s);let u=Ur(l)?l:null;for(;u&&!ci(u);){const e=pi(u);if(ci(e)||!Ur(e))break;u=e}if(d.length&&Ur(l)&&!l.matches("html,body")&&!Bi(l,i.floating)&&Array.from(d).every((e=>!Bi(u,e))))return;if(Xr(l)&&L){const t=ci(l),n=di(l),r=/auto|scroll/,i=t||r.test(n.overflowX),o=t||r.test(n.overflowY),a=i&&l.clientWidth>0&&l.scrollWidth>l.clientWidth,s=o&&l.clientHeight>0&&l.scrollHeight>l.clientHeight,c="rtl"===n.direction,d=s&&(c?e.offsetX<=l.offsetWidth-l.clientWidth:e.offsetX>l.clientWidth),u=a&&e.offsetY>l.clientHeight;if(d||u)return}const p=null==(t=o.current.floatingContext)?void 0:t.nodeId,h=g&&qi(g.nodesRef.current,p).some((t=>{var n;return Zi(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Zi(e,i.floating)||Zi(e,i.domReference)||h)return;const f=g?qi(g.nodesRef.current,p):[];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")})),O=Xi((e=>{var t;const n=()=>{var t;E(e),null==(t=Fi(e))||t.removeEventListener(c,n)};null==(t=Fi(e))||t.addEventListener(c,n)}));W.useEffect((()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=b,o.current.__outsidePressBubbles=y;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),$.current=!0}function d(){e=window.setTimeout((()=>{$.current=!1}),li()?5:0)}const u=Wi(i.floating);l&&(u.addEventListener("keydown",w?S:k,w),u.addEventListener("compositionstart",s),u.addEventListener("compositionend",d)),m&&u.addEventListener(c,C?O:E,C);let h=[];return p&&(Ur(i.domReference)&&(h=fi(i.domReference)),Ur(i.floating)&&(h=h.concat(fi(i.floating))),!Ur(i.reference)&&i.reference&&i.reference.contextElement&&(h=h.concat(fi(i.reference.contextElement)))),h=h.filter((e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)})),h.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(u.removeEventListener("keydown",w?S:k,w),u.removeEventListener("compositionstart",s),u.removeEventListener("compositionend",d)),m&&u.removeEventListener(c,C?O:E,C),h.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[o,i,l,m,c,n,r,p,a,b,y,k,w,S,E,C,O]),W.useEffect((()=>{o.current.insideReactTree=!1}),[o,m,c]);const R=W.useMemo((()=>({onKeyDown:k,...d&&{[Wo[u]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==u&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[k,r,d,u]),L=W.useMemo((()=>({onKeyDown:k,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[qo[c]]:()=>{o.current.insideReactTree=!0}})),[k,c,o]);return W.useMemo((()=>a?{reference:R,floating:L}:{}),[a,R,L])}(h,{escapeKey:s,outsidePress:c}),b=Jo(h,{role:"dialog"}),{getFloatingProps:y}=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)),i=W.useCallback((t=>Yo(t,e,"reference")),t),o=W.useCallback((t=>Yo(t,e,"floating")),n),a=W.useCallback((t=>Yo(t,e,"item")),r);return W.useMemo((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([x,b]),{x:w,y:C}=f.arrow??{x:null,y:null},$={top:"bottom",right:"left",bottom:"top",left:"right"}[g.split("-")[0]];if(!e)return null;let k=l-1,S=4;return"left"!==$&&"right"!==$||(k=4,S=l-1),B(Z,{children:[B("div",{ref:u.setFloating,style:p,"aria-modal":!0,...y(),css:Qo,children:[B("div",{css:ea,children:[r,F(lt,{onClick:()=>t(!1),className:"ds-map-pop-up-close-button","aria-label":"Close"})]}),F("div",{css:ta,children:i}),o?F("div",{css:na,children:o}):null,F("div",{ref:d,css:ra(k,S,w,C,$,l)})]}),F("div",{className:"fixed inset-0 z-[999] bg-black/20 backdrop-blur-[1px]",onClick:()=>c&&t(!1)})]})},oa=ae`
|
|
1865
1880
|
background-color: ${ve("neutral",100)};
|
|
1866
|
-
`,
|
|
1881
|
+
`,aa=ae`
|
|
1867
1882
|
padding: 16px 16px 0px 16px;
|
|
1868
1883
|
&:focus-visible {
|
|
1869
1884
|
outline-color: ${ve("primary",700)};
|
|
1870
1885
|
}
|
|
1871
|
-
`,
|
|
1886
|
+
`,la=ae`
|
|
1872
1887
|
font-size: 16px;
|
|
1873
1888
|
font-weight: 700;
|
|
1874
1889
|
line-height: 24px;
|
|
@@ -1878,14 +1893,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
1878
1893
|
align-items: center;
|
|
1879
1894
|
text-align: left;
|
|
1880
1895
|
gap: 10px;
|
|
1881
|
-
`,
|
|
1896
|
+
`,sa=ae`
|
|
1882
1897
|
font-size: 12px;
|
|
1883
1898
|
font-weight: 400;
|
|
1884
1899
|
line-height: 16px;
|
|
1885
1900
|
text-align: left;
|
|
1886
1901
|
color: ${ve("neutral",700)};
|
|
1887
1902
|
margin-bottom: 8px;
|
|
1888
|
-
`,
|
|
1903
|
+
`,ca=ae`
|
|
1889
1904
|
width: 100%;
|
|
1890
1905
|
padding: 16px 0;
|
|
1891
1906
|
border-bottom: 1px solid ${ve("neutral",300)};
|
|
@@ -1893,31 +1908,31 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
1893
1908
|
&:last-of-type {
|
|
1894
1909
|
border-bottom: none;
|
|
1895
1910
|
}
|
|
1896
|
-
`,
|
|
1911
|
+
`,da=ae`
|
|
1897
1912
|
display: flex;
|
|
1898
1913
|
align-items: flex-start;
|
|
1899
1914
|
justify-content: space-between;
|
|
1900
|
-
`,
|
|
1915
|
+
`,ua=ae`
|
|
1901
1916
|
display: flex;
|
|
1902
1917
|
flex-direction: column;
|
|
1903
|
-
`,
|
|
1918
|
+
`,pa=e=>ae`
|
|
1904
1919
|
font-size: 16px;
|
|
1905
1920
|
font-weight: 400;
|
|
1906
1921
|
line-height: 24px;
|
|
1907
1922
|
text-align: left;
|
|
1908
1923
|
color: ${ve("neutral",e?500:800)};
|
|
1909
|
-
`,
|
|
1924
|
+
`,ha=e=>ae`
|
|
1910
1925
|
font-size: 14px;
|
|
1911
1926
|
font-weight: 400;
|
|
1912
1927
|
line-height: 20px;
|
|
1913
1928
|
text-align: left;
|
|
1914
1929
|
color: ${ve("neutral",e?500:700)};
|
|
1915
|
-
`,
|
|
1930
|
+
`,fa=({name:e,label:t,caption:n,showInfoButton:i=!0,infoButtonLabel:o="About data",variant:a="switch",disabled:l,onInfoClick:s,isDefaultSelected:c=!1,onChange:d})=>{const u="switch"===a;return B("div",{css:ca,children:[B("div",u?{css:da,children:[B("div",{css:ua,children:[F("p",{css:pa(l),"aria-label":t,"aria-disabled":l,children:t}),F("p",{"aria-label":n,css:ha(l),children:n})]}),F(ln,{"aria-label":`${t}, ${n}`,name:e,disabled:l,defaultChecked:c,onChange:d,role:"switch"})]}:{style:{display:"flex",flexDirection:"column"},children:[F(Ut,{value:e,disabled:l,fontSize:"16px",color:"var(--chakra-colors-neutral-800)",children:t}),F("p",{style:{marginLeft:"28px"},css:ha(l),children:n})]}),i?F(r,{display:"flex",justifyContent:"flex-start",marginTop:"8px",marginLeft:u?0:"28px",children:F(Ce,{variant:"secondary",label:o,rightIcon:F(Oe,{}),size:"small",onClick:s,disabled:l})}):null]})},ga=({label:e,caption:t,value:n,layerItems:i,onChangeForRadioVariant:o})=>{const[a,l]=U({}),[s]=U((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(i));X((()=>{let t={...a};i.forEach((n=>{n.isDefaultSelected&&(t={...t,["radio"===n.variant?e:n.name]:n.isDefaultSelected})})),l(t)}),[]);const c=(e,t,n,r)=>{const i={...a,[e]:t};l(i),n&&n(e,t,r)},d=Object.values(a).filter((e=>!0===e)).length,u=`${e}, ${d} Active layers on the map${t?`, ${t}`:""}`;return B(S.Item,{value:n,width:"100%",children:[B(S.ItemTrigger,{css:aa,alignItems:"flex-start","aria-label":u,children:[B(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[B("span",{css:la,children:[e,F(Yn,{label:`${d} Active`,size:"small",variant:d>0?"success":"info-grey"})]}),F("div",{css:sa,children:t})]}),F(S.ItemIndicator,{display:"flex",children:F(Re,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),F(S.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:F(Xt,{name:e,defaultValue:s,customGap:"0px",onChange:(e,t)=>c(e,!!t,o,t),children:i.map((e=>F(fa,{...e,onChange:(t,n)=>c(t,n,e.onChange)},e.label)))})})]})},va=({children:e,defaultValue:t,...n})=>F("div",{css:oa,style:{width:"100%"},children:F(S.Root,{css:{},defaultValue:t,multiple:!0,...n,children:e})}),ma=ae`
|
|
1916
1931
|
margin-bottom: 16px;
|
|
1917
1932
|
border: 1px solid ${ve("neutral",300)};
|
|
1918
1933
|
border-radius: 4px;
|
|
1919
1934
|
box-shadow: 0px 1px 2px 0px #0000000d;
|
|
1920
|
-
`,
|
|
1935
|
+
`,xa=ae`
|
|
1921
1936
|
padding: 6px 8px;
|
|
1922
1937
|
align-items: center;
|
|
1923
1938
|
background-color: ${ve("neutral",100)};
|
|
@@ -1933,12 +1948,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
1933
1948
|
height: 10px;
|
|
1934
1949
|
width: 10px;
|
|
1935
1950
|
}
|
|
1936
|
-
`,
|
|
1951
|
+
`,ba=ae`
|
|
1937
1952
|
font-size: 12px;
|
|
1938
1953
|
font-weight: 700;
|
|
1939
1954
|
line-height: 16px;
|
|
1940
1955
|
color: ${ve("neutral",800)};
|
|
1941
|
-
`,
|
|
1956
|
+
`,ya=ae`
|
|
1942
1957
|
padding: 12px 8px;
|
|
1943
1958
|
display: flex;
|
|
1944
1959
|
flex-direction: column;
|
|
@@ -1954,13 +1969,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
1954
1969
|
margin-bottom: 0px;
|
|
1955
1970
|
}
|
|
1956
1971
|
}
|
|
1957
|
-
`,
|
|
1972
|
+
`,wa=({label:e,children:t,openedByDefault:n})=>F("div",{children:F(S.Root,{defaultValue:n?[e]:[],multiple:!0,children:B(S.Item,{css:ma,value:e,children:[B(S.ItemTrigger,{css:xa,children:[F(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:F("p",{css:ba,children:e})}),F(S.ItemIndicator,{display:"flex",children:F(Re,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),F(S.ItemContent,{css:ya,children:Q.map(t,(e=>F("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),Ca=ae`
|
|
1958
1973
|
padding: 12px;
|
|
1959
1974
|
padding-bottom: 20px;
|
|
1960
1975
|
display: flex;
|
|
1961
1976
|
gap: 12px;
|
|
1962
1977
|
border-bottom: 1px solid ${ve("neutral",300)};
|
|
1963
|
-
|
|
1978
|
+
`,$a=ae`
|
|
1964
1979
|
display: flex;
|
|
1965
1980
|
flex-direction: column;
|
|
1966
1981
|
|
|
@@ -1969,44 +1984,44 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
1969
1984
|
fill: ${ve("neutral",700)} !important;
|
|
1970
1985
|
}
|
|
1971
1986
|
}
|
|
1972
|
-
`,
|
|
1987
|
+
`,ka=ae`
|
|
1973
1988
|
display: flex;
|
|
1974
1989
|
align-items: flex-start;
|
|
1975
1990
|
justify-content: space-between;
|
|
1976
1991
|
gap: 12px;
|
|
1977
1992
|
margin-bottom: 16px;
|
|
1978
|
-
|
|
1993
|
+
`,Sa=ae`
|
|
1979
1994
|
font-size: 16px;
|
|
1980
1995
|
line-height: 24px;
|
|
1981
1996
|
font-weight: 400;
|
|
1982
1997
|
text-align: left;
|
|
1983
1998
|
color: ${ve("neutral",900)};
|
|
1984
|
-
`,
|
|
1999
|
+
`,Ea=ae`
|
|
1985
2000
|
font-size: 14px;
|
|
1986
2001
|
line-height: 20px;
|
|
1987
2002
|
font-weight: 400;
|
|
1988
2003
|
text-align: left;
|
|
1989
2004
|
color: ${ve("neutral",700)};
|
|
1990
|
-
`,
|
|
2005
|
+
`,Oa=ae`
|
|
1991
2006
|
display: flex;
|
|
1992
2007
|
justify-content: space-between;
|
|
1993
2008
|
|
|
1994
2009
|
button {
|
|
1995
2010
|
width: 46%;
|
|
1996
2011
|
}
|
|
1997
|
-
`,
|
|
2012
|
+
`,Ra=ae`
|
|
1998
2013
|
width: 234px;
|
|
1999
2014
|
border: 1px solid ${ve("neutral",600)};
|
|
2000
2015
|
border-radius: 4px;
|
|
2001
|
-
`,
|
|
2016
|
+
`,La=ae`
|
|
2002
2017
|
padding: 12px;
|
|
2003
|
-
`,
|
|
2018
|
+
`,Pa=ae`
|
|
2004
2019
|
font-size: 14px;
|
|
2005
2020
|
line-height: 20px;
|
|
2006
2021
|
font-weight: 400;
|
|
2007
2022
|
text-align: left;
|
|
2008
2023
|
color: ${ve("neutral",900)};
|
|
2009
|
-
`,
|
|
2024
|
+
`,Ta=ae`
|
|
2010
2025
|
display: flex;
|
|
2011
2026
|
align-items: center;
|
|
2012
2027
|
gap: 12px;
|
|
@@ -2027,20 +2042,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2027
2042
|
margin-top: 18px;
|
|
2028
2043
|
width: 100%;
|
|
2029
2044
|
}
|
|
2030
|
-
`,
|
|
2045
|
+
`,_a=({defaultValue:e,onOpacityChanged:t})=>{const[n,r]=U(e);return B(E.Root,{positioning:{placement:"bottom-end"},children:[F(E.Trigger,{asChild:!0,children:F(Ce,{label:"Opacity",size:"small",variant:"secondary",leftIcon:F(Oe,{})})}),F(E.Positioner,{children:F(E.Content,{css:Ra,children:B(E.Body,{css:La,children:[F("p",{css:Pa,children:"Opacity"}),B("div",{css:Ta,children:[B("div",{style:{position:"relative"},children:[F(On,{"aria-label":"Opacity",min:"0",max:"100",value:n,onChange:e=>{const n=e.target.value||"0";let i=parseInt(n,10);i=Number.isNaN(i)?0:i,i=i<0?0:i,i=i>100?100:i,r(i),t&&t(i)},className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),F("p",{style:{position:"absolute",top:"18.5px",right:"5px"},children:"%"})]}),F(on,{min:0,max:100,value:[n],onValueChangeEnd:({value:e})=>{r(e[0]),t&&t(e[0])}})]})]})})})]})},Ma=({layerName:e,dataUnit:t,onDrag:n,onUpClick:r,onDownClick:i,onRemoveClick:o,children:a,onInfoClick:l,onOpacityChanged:s})=>B("div",{css:Ca,children:[B("div",{css:$a,children:[F(at,{icon:F(Ne,{}),"aria-label":"Drag and drop","aria-hidden":!0,onClick:n,style:{display:"none",marginBottom:"12px"}}),B("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[F(at,{icon:F(Re,{rotate:"180"}),"aria-label":"Up",onClick:r}),F(at,{icon:F(Re,{}),"aria-label":"Down",onClick:i})]})]}),B("div",{style:{width:"100%"},children:[B("div",{css:ka,children:[B("div",{children:[F("h3",{css:Sa,children:e}),F("p",{css:Ea,children:t})]}),F(Ce,{label:"Remove",size:"small",variant:"secondary",rightIcon:F(Te,{}),onClick:o})]}),a,B("div",{css:Oa,children:[F(Ce,{label:"About data",size:"small",variant:"secondary",leftIcon:F(Oe,{}),onClick:l}),F(_a,{defaultValue:80,onOpacityChanged:s})]})]})]}),Da=e=>ae`
|
|
2031
2046
|
width: 20px;
|
|
2032
2047
|
height: 20px;
|
|
2033
2048
|
border-radius: 50%;
|
|
2034
2049
|
background-color: ${e};
|
|
2035
2050
|
border: 1px solid ${ve("neutral",400)};
|
|
2036
|
-
`,
|
|
2051
|
+
`,Na=e=>ae`
|
|
2037
2052
|
width: 20px;
|
|
2038
2053
|
height: 8px;
|
|
2039
2054
|
border-radius: 2px;
|
|
2040
2055
|
background-color: ${e};
|
|
2041
2056
|
border: 1px solid ${ve("neutral",400)};
|
|
2042
2057
|
margin-top: 6px;
|
|
2043
|
-
`,
|
|
2058
|
+
`,Va=e=>ae`
|
|
2044
2059
|
width: 20px;
|
|
2045
2060
|
height: 20px;
|
|
2046
2061
|
border-radius: 50%;
|
|
@@ -2053,26 +2068,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2053
2068
|
width: 10px;
|
|
2054
2069
|
height: 10px;
|
|
2055
2070
|
}
|
|
2056
|
-
`,
|
|
2071
|
+
`,ja=ae`
|
|
2057
2072
|
width: 100%;
|
|
2058
2073
|
display: flex;
|
|
2059
2074
|
justify-content: space-between;
|
|
2060
2075
|
gap: 8px;
|
|
2061
2076
|
margin-bottom: 16px;
|
|
2062
|
-
`,
|
|
2077
|
+
`,Ia=ae`
|
|
2063
2078
|
display: flex;
|
|
2064
2079
|
gap: 8px;
|
|
2065
|
-
`,
|
|
2080
|
+
`,Aa=ae`
|
|
2066
2081
|
font-size: 14px;
|
|
2067
2082
|
line-height: 20px;
|
|
2068
2083
|
font-weight: 400;
|
|
2069
2084
|
color: ${ve("neutral",800)};
|
|
2070
|
-
`,
|
|
2085
|
+
`,za=ae`
|
|
2071
2086
|
font-size: 12px;
|
|
2072
2087
|
line-height: 16px;
|
|
2073
2088
|
font-weight: 400;
|
|
2074
2089
|
color: ${ve("neutral",700)};
|
|
2075
|
-
`,
|
|
2090
|
+
`,Ha=ae`
|
|
2076
2091
|
button {
|
|
2077
2092
|
height: 25px;
|
|
2078
2093
|
font-size: 12px;
|
|
@@ -2081,12 +2096,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2081
2096
|
color: ${ve("neutral",600)};
|
|
2082
2097
|
padding: 0 10px;
|
|
2083
2098
|
}
|
|
2084
|
-
`,
|
|
2099
|
+
`,Ba=({type:e,label:t,caption:n,color:r,onActionClick:i,showActionButton:o,pointIcon:a=F(Ue,{color:"#006D2C"})})=>{const[l,s]=U(!0),c=Y(),d=Y(),u="raster"===e,p="line"===e,h="point"===e,f=Y(),g=ee((()=>`${e?`${e} layer`:"layer"}, ${t}${n?`, ${n}`:""}. Currently ${l?"visible":"hidden"}.`),[l,e,t,n]),v=l?"Hide":"Show";return B("div",{css:ja,children:[F("p",{id:f,css:{position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,clip:"rect(0 0 0 0)",overflow:"hidden"},children:g}),B("div",{css:Ia,children:[B("div",{children:[u&&F("div",{css:Da(r)}),p&&F("div",{css:Na(r)}),h&&F("div",{css:Va(r),children:a})]}),B("div",{children:[F("p",{id:c,css:Aa,children:t}),n?F("p",{id:d,css:za,children:n}):null]})]}),i&&o?F("div",{css:Ha,children:F(Ce,{type:"button",variant:"borderless",label:v,rightIcon:F(l?De:Me,{}),"aria-pressed":l,"aria-labelledby":`${f} ${c}`,onClick:()=>{s((e=>!e)),i?.()}})}):null]})},Fa=ae`
|
|
2085
2100
|
width: 100%;
|
|
2086
2101
|
display: flex;
|
|
2087
2102
|
flex-direction: column;
|
|
2088
2103
|
margin-bottom: 16px;
|
|
2089
|
-
`,
|
|
2104
|
+
`,Za=ae`
|
|
2090
2105
|
height: 20px;
|
|
2091
2106
|
width: 100%;
|
|
2092
2107
|
margin-bottom: 8px;
|
|
@@ -2104,34 +2119,34 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2104
2119
|
border-top-right-radius: 3px;
|
|
2105
2120
|
border-bottom-right-radius: 3px;
|
|
2106
2121
|
}
|
|
2107
|
-
`,
|
|
2122
|
+
`,Wa=ae`
|
|
2108
2123
|
display: flex;
|
|
2109
2124
|
justify-content: space-between;
|
|
2110
2125
|
align-items: flex-start;
|
|
2111
|
-
`,
|
|
2126
|
+
`,qa=ae`
|
|
2112
2127
|
width: 100%;
|
|
2113
2128
|
font-size: 12px;
|
|
2114
2129
|
line-height: 16px;
|
|
2115
2130
|
font-weight: 400;
|
|
2116
2131
|
color: ${ve("neutral",800)};
|
|
2117
2132
|
text-align: center;
|
|
2118
|
-
`,
|
|
2133
|
+
`,Ga=ae`
|
|
2119
2134
|
font-size: 12px;
|
|
2120
2135
|
line-height: 16px;
|
|
2121
2136
|
font-weight: 400;
|
|
2122
2137
|
color: ${ve("neutral",700)};
|
|
2123
2138
|
text-align: center;
|
|
2124
|
-
`,
|
|
2139
|
+
`,Ua=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(", ")})`},Xa=({colors:e,values:t,subLabels:n,isGradient:r})=>{return B("div",{css:Fa,children:[F("div",r?{css:(i=Ua(e),ae`
|
|
2125
2140
|
height: 20px;
|
|
2126
2141
|
width: 100%;
|
|
2127
2142
|
margin-bottom: 8px;
|
|
2128
2143
|
border: 1px solid ${ve("neutral",300)};
|
|
2129
2144
|
border-radius: 4px;
|
|
2130
2145
|
${i?`background: ${i};`:""}
|
|
2131
|
-
`)}:{css:
|
|
2146
|
+
`)}:{css:Za,children:e?.map(((e,n)=>F("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),F("div",{css:Wa,children:t?.map((e=>F("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:F("p",{css:qa,children:e})},e)))}),n&&n.length?F("div",{css:Wa,children:n.map((e=>F("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:F("p",{css:Ga,style:{width:"100%"},children:e})},e)))}):null]});var i},Ya=ae`
|
|
2132
2147
|
display: flex;
|
|
2133
2148
|
flex-direction: column;
|
|
2134
|
-
`,
|
|
2149
|
+
`,Ka=ae`
|
|
2135
2150
|
display: flex;
|
|
2136
2151
|
gap: 16px;
|
|
2137
2152
|
align-items: center;
|
|
@@ -2140,41 +2155,41 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2140
2155
|
.ds-select-input-container {
|
|
2141
2156
|
margin-bottom: 0px;
|
|
2142
2157
|
}
|
|
2143
|
-
`,
|
|
2158
|
+
`,Ja=ae`
|
|
2144
2159
|
font-size: 18px;
|
|
2145
2160
|
line-height: 28px;
|
|
2146
2161
|
font-weight: 400;
|
|
2147
2162
|
color: ${ve("neutral",700)};
|
|
2148
|
-
`,
|
|
2163
|
+
`,Qa=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:r,showItemCountText:i})=>B("div",{css:Ya,children:[B("div",{css:Ka,children:[F("div",{style:{width:"80px"},children:F(Qn,{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})}),F("p",{css:Ja,children:"Per Page"})]}),i?F("p",{css:Ja,children:(()=>{const r=e,i=(t-1)*r+1;return`Showing ${i}-${Math.min(i+r-1,n)} of ${n}`})()}):null]}),el=e=>ae`
|
|
2149
2164
|
border: 1px solid ${ve("neutral",300)};
|
|
2150
2165
|
${e?"border: none;":""}
|
|
2151
|
-
`,
|
|
2166
|
+
`,tl=e=>ae`
|
|
2152
2167
|
color: ${ve("neutral",e?400:700)};
|
|
2153
2168
|
line-height: 20px;
|
|
2154
2169
|
white-space: nowrap;
|
|
2155
2170
|
overflow: hidden;
|
|
2156
2171
|
text-overflow: ellipsis;
|
|
2157
|
-
`,
|
|
2172
|
+
`,nl=ae`
|
|
2158
2173
|
font-weight: 400;
|
|
2159
2174
|
color: ${ve("neutral",700)};
|
|
2160
2175
|
white-space: nowrap;
|
|
2161
2176
|
overflow: hidden;
|
|
2162
2177
|
text-overflow: ellipsis;
|
|
2163
|
-
`,
|
|
2178
|
+
`,rl=ae`
|
|
2164
2179
|
color: ${ve("neutral",700)};
|
|
2165
2180
|
text-align: right;
|
|
2166
2181
|
font-weight: 700;
|
|
2167
2182
|
white-space: nowrap;
|
|
2168
2183
|
overflow: hidden;
|
|
2169
2184
|
text-overflow: ellipsis;
|
|
2170
|
-
`,
|
|
2185
|
+
`,il=e=>ae`
|
|
2171
2186
|
width: 16px;
|
|
2172
2187
|
height: 16px;
|
|
2173
2188
|
|
|
2174
2189
|
path {
|
|
2175
2190
|
fill: ${ve("neutral",e?400:700)};
|
|
2176
2191
|
}
|
|
2177
|
-
`,
|
|
2192
|
+
`,ol=ae`
|
|
2178
2193
|
display: flex;
|
|
2179
2194
|
align-items: center;
|
|
2180
2195
|
justify-content: space-between;
|
|
@@ -2183,7 +2198,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2183
2198
|
border-bottom: 1px solid ${ve("neutral",200)};
|
|
2184
2199
|
width: 100%;
|
|
2185
2200
|
text-align: left;
|
|
2186
|
-
`,
|
|
2201
|
+
`,al=ae`
|
|
2187
2202
|
display: flex;
|
|
2188
2203
|
align-items: center;
|
|
2189
2204
|
justify-content: space-between;
|
|
@@ -2217,18 +2232,18 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2217
2232
|
&:disabled {
|
|
2218
2233
|
background-color: ${ve("neutral",200)};
|
|
2219
2234
|
}
|
|
2220
|
-
`,
|
|
2235
|
+
`,ll=({id:e,label:t,caption:n,icon:i,value:a,variant:l="data",onItemClick:s,isExpanded:c=!1,ariaLabel:d,disabled:u=!1})=>{const p="navigation"===l&&!!s,h=p?O.button:O.div;return B(h,{id:e,css:"data"===l?ol:al,onClick:p?s:void 0,tabIndex:p?0:void 0,onKeyDown:e=>{p&&("Enter"!==e.key&&" "!==e.key||s?.())},role:p?"button":void 0,"aria-expanded":p?c:void 0,"aria-label":d||("data"===l&&a?`${t}, ${a}`:t),disabled:u,children:[B(R,{gap:3,flex:"1",overflow:"hidden",children:[i,B(r,{flex:"1",minWidth:0,children:[F(L,{fontWeight:"navigation"===l?"700":"400",css:tl(u),children:t}),n&&F(L,{css:nl,children:n})]})]}),"data"===l&&a&&F(L,{css:rl,children:a}),"navigation"===l&&F(o,{as:Le,boxSize:4,"aria-hidden":"true",css:il(u)})]})},sl=({items:e,noBorder:t})=>F(r,{css:el(t),children:e.map((e=>F(ll,{id:e.id,icon:e.icon,label:e.label,caption:e.caption,value:e.value,variant:e.variant??"data",onItemClick:e.onItemClick},e.id??e.label)))}),cl=ae`
|
|
2221
2236
|
svg {
|
|
2222
2237
|
path {
|
|
2223
2238
|
fill: ${ve("primary",500)};
|
|
2224
2239
|
}
|
|
2225
2240
|
}
|
|
2226
|
-
`,
|
|
2241
|
+
`,dl=ae`
|
|
2227
2242
|
font-size: 16px;
|
|
2228
2243
|
line-height: 24px;
|
|
2229
2244
|
font-weight: 700;
|
|
2230
2245
|
color: ${ve("neutral",900)};
|
|
2231
|
-
`,
|
|
2246
|
+
`,ul=ae`
|
|
2232
2247
|
span {
|
|
2233
2248
|
height: 20px;
|
|
2234
2249
|
width: 20px;
|
|
@@ -2238,7 +2253,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2238
2253
|
background-color: transparent;
|
|
2239
2254
|
}
|
|
2240
2255
|
}
|
|
2241
|
-
`,
|
|
2256
|
+
`,pl=ae`
|
|
2242
2257
|
font-size: 16px;
|
|
2243
2258
|
line-height: 24px;
|
|
2244
2259
|
font-weight: 400;
|
|
@@ -2248,22 +2263,22 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2248
2263
|
color: ${ve("neutral",900)};
|
|
2249
2264
|
font-weight: 700;
|
|
2250
2265
|
}
|
|
2251
|
-
`,
|
|
2266
|
+
`,hl=({totalItems:e,pageSize:t,currentPage:n,variant:r="default",onPageChange:i})=>{const o="compact"===r||"compact-with-buttons"===r,a="compact-with-buttons"===r;return F("div",{"aria-label":"Pagination",children:F(P.Root,{count:e,pageSize:t,defaultPage:n,onPageChange:e=>i&&i(e.page),siblingCount:1,children:B(T,{gap:"2",size:"sm",variant:"ghost",css:ul,children:[F(P.PrevTrigger,{asChild:!0,children:a?F(Ce,{variant:"secondary",label:"Previous",size:"small",leftIcon:F(Re,{style:{rotate:"90deg"},color:"var(--chakra-colors-primary-500)"})}):F(at,{css:cl,style:{rotate:"90deg"},icon:F(Re,{}),"aria-label":"Previous page"})}),o?F(P.PageText,{css:dl}):F(P.Items,{render:e=>F(at,{css:pl,"aria-label":`Page ${e.value}`,icon:F("p",{children:e.value})})}),F(P.NextTrigger,{asChild:!0,children:a?F(Ce,{variant:"secondary",label:"Next",size:"small",rightIcon:F(Re,{style:{rotate:"270deg"},color:"var(--chakra-colors-primary-500)"})}):F(at,{css:cl,style:{rotate:"270deg"},icon:F(Re,{}),"aria-label":"Next page"})})]})})})},fl=ae`
|
|
2252
2267
|
border: 1px solid ${ve("neutral",300)};
|
|
2253
2268
|
border-radius: 2px;
|
|
2254
2269
|
box-shadow: 0 0 0 1px ${ve("neutral",300)};
|
|
2255
|
-
`,
|
|
2270
|
+
`,gl=ae`
|
|
2256
2271
|
tr {
|
|
2257
2272
|
background-color: ${ve("neutral",200)};
|
|
2258
2273
|
}
|
|
2259
|
-
`,
|
|
2274
|
+
`,vl=ae`
|
|
2260
2275
|
font-size: 16px;
|
|
2261
2276
|
line-height: 24px;
|
|
2262
2277
|
font-weight: 700;
|
|
2263
2278
|
color: ${ve("neutral",800)};
|
|
2264
2279
|
display: flex;
|
|
2265
2280
|
align-items: center;
|
|
2266
|
-
`,
|
|
2281
|
+
`,ml=ae`
|
|
2267
2282
|
height: 24px;
|
|
2268
2283
|
width: 10px;
|
|
2269
2284
|
display: flex;
|
|
@@ -2286,21 +2301,21 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2286
2301
|
}
|
|
2287
2302
|
}
|
|
2288
2303
|
}
|
|
2289
|
-
`,
|
|
2304
|
+
`,xl=e=>ae`
|
|
2290
2305
|
svg {
|
|
2291
2306
|
path {
|
|
2292
2307
|
fill: ${e?ve("primary",600):ve("neutral",400)} !important;
|
|
2293
2308
|
}
|
|
2294
2309
|
}
|
|
2295
|
-
`,
|
|
2310
|
+
`,bl=ae`
|
|
2296
2311
|
margin-top: 12px;
|
|
2297
2312
|
display: flex;
|
|
2298
2313
|
justify-content: space-between;
|
|
2299
|
-
`,
|
|
2314
|
+
`,yl=ae`
|
|
2300
2315
|
margin-top: 9px;
|
|
2301
|
-
`,
|
|
2316
|
+
`,wl=({columns:e,data:t,renderRow:n,striped:r,stickyHeader:i,pagination:o,selectable:a,selectedRows:l,onSortColumn:s,onPageSizeChange:c,onPageChange:d,onAllItemsSelected:u})=>{const[p,h]=U({key:"",order:""}),{totalItems:f=t.length,currentPage:g=1,pageSize:v=10,showItemCount:m,showItemCountText:x}=o||{},b=(e,t)=>{h({key:e,order:t}),s&&s({key:e,order:t})},y=l?.length===t?.length,w=l&&l.length>0&&!y;return B("div",{children:[B(_.Root,{css:fl,striped:r,stickyHeader:i,interactive:!0,children:[F(_.Header,{css:gl,children:B(_.Row,{children:[a?F(_.ColumnHeader,{children:F(Pt,{name:"header-checkbox",checked:y,indeterminate:w,onCheckedChange:({checked:e})=>{u&&u(e)}})}):null,e.map((e=>F(_.ColumnHeader,{role:e.sortable?"columnheader":void 0,"aria-sort":e.sortable&&"asc"===p.order?"ascending":e.sortable&&"desc"===p.order?"descending":void 0,children:B("div",{css:vl,children:[e.label,e.sortable?B("div",{css:ml,children:[F(at,{css:xl(p.key===e.key&&"asc"===p.order),icon:F(Re,{style:{transform:"rotate(180deg)"}}),onClick:()=>b(e.key,"asc"),"aria-label":"Ascending"}),F(at,{css:xl(p.key===e.key&&"desc"===p.order),icon:F(Re,{}),onClick:()=>b(e.key,"desc"),"aria-label":"Descending"})]}):null]})},e.key)))]})}),F(_.Body,{children:t.map((e=>F(q.Fragment,{children:n(e)},e.id)))})]}),B("div",{css:bl,children:[F("div",{children:m?F(Qa,{pageSize:v,currentPage:g,totalItems:f,onPageSizeChange:c,showItemCountText:x}):null}),o?F("div",{css:yl,children:F(hl,{totalItems:f,pageSize:v,currentPage:g,onPageChange:d})}):null]})]})},Cl=_.Row,$l=_.Cell,kl=ae`
|
|
2302
2317
|
border: 1px solid ${ve("neutral",300)};
|
|
2303
|
-
|
|
2318
|
+
`,Sl=ae`
|
|
2304
2319
|
padding: 16px;
|
|
2305
2320
|
cursor: pointer;
|
|
2306
2321
|
&:focus-visible {
|
|
@@ -2315,9 +2330,9 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2315
2330
|
transparent
|
|
2316
2331
|
);
|
|
2317
2332
|
}
|
|
2318
|
-
`,
|
|
2333
|
+
`,El=({children:e,header:t,footer:n})=>F(r,{css:kl,children:F(S.Root,{multiple:!0,children:B(S.Item,{value:"extendable-card-item",children:[B(S.ItemTrigger,{css:Sl,alignItems:"center",children:[F(R,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:t}),F(S.ItemIndicator,{children:F(Re,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),B(S.ItemContent,{children:[e,n]})]})})}),Ol=ae`
|
|
2319
2334
|
border: 1px solid ${ve("neutral",300)};
|
|
2320
|
-
`,
|
|
2335
|
+
`,Rl=ae`
|
|
2321
2336
|
padding: 16px;
|
|
2322
2337
|
cursor: pointer;
|
|
2323
2338
|
border-bottom: 1px solid ${ve("neutral",300)};
|
|
@@ -2333,7 +2348,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2333
2348
|
transparent
|
|
2334
2349
|
);
|
|
2335
2350
|
}
|
|
2336
|
-
`,
|
|
2351
|
+
`,Ll=ae`
|
|
2337
2352
|
.item-content-open > * {
|
|
2338
2353
|
max-height: auto;
|
|
2339
2354
|
|
|
@@ -2354,9 +2369,9 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2354
2369
|
padding-bottom 0.2s ease,
|
|
2355
2370
|
padding-top 0.2s ease;
|
|
2356
2371
|
}
|
|
2357
|
-
`,
|
|
2372
|
+
`,Pl=ae`
|
|
2358
2373
|
border-top: 1px solid ${ve("neutral",300)};
|
|
2359
|
-
`,
|
|
2374
|
+
`,Tl=({children:e,header:t,footer:n,expanded:i=!0,collapsible:o=!0,actions:a})=>{const l="analysis-widget-item",[s,c]=U(i),d=`analysis-widget-header-${l}`;return F(r,{as:"section","aria-labelledby":d,css:Ol,children:F(S.Root,{multiple:!0,value:o?void 0:[l],defaultValue:i?[l]:[],children:B(S.Item,{css:Ll,value:l,children:[t&&F(S.ItemTrigger,{id:d,role:"button","aria-expanded":s,tabIndex:0,css:Rl,pointerEvents:o?"auto":"none",onClick:o?()=>{c(!s)}:void 0,children:B(R,{gap:3,flex:"1",overflow:"hidden",alignItems:"top",justifyContent:"space-between",children:[t,a&&a.map((e=>F(Yn,{variant:"info-grey",label:e.label,onClick:t=>{e.onClick(),t.preventDefault(),t.stopPropagation()},icon:e?.icon},e.label))),o&&F(S.ItemIndicator,{height:"16px",display:"flex",children:F(Re,{"aria-label":"Toggle section",color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]})}),B("div",{className:s?"item-content-open":"item-content-closed","aria-hidden":!s,children:[e,n&&F(r,{css:Pl,children:n})]})]})})})};function _l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ml(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var Dl,Nl={exports:{}},Vl={},jl={exports:{}},Il={exports:{}},Al={};var zl,Hl,Bl,Fl,Zl,Wl,ql,Gl,Ul,Xl,Yl,Kl,Jl,Ql={};
|
|
2360
2375
|
/** @license React v16.13.1
|
|
2361
2376
|
* react-is.development.js
|
|
2362
2377
|
*
|
|
@@ -2364,7 +2379,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2364
2379
|
*
|
|
2365
2380
|
* This source code is licensed under the MIT license found in the
|
|
2366
2381
|
* LICENSE file in the root directory of this source tree.
|
|
2367
|
-
*/function Jl(){return Al||(Al=1,"production"===process.env.NODE_ENV?Vl.exports=function(){if(_l)return jl;_l=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,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=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,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case o:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function y(e){return b(e)===c}return jl.AsyncMode=s,jl.ConcurrentMode=c,jl.ContextConsumer=l,jl.ContextProvider=a,jl.Element=t,jl.ForwardRef=d,jl.Fragment=r,jl.Lazy=f,jl.Memo=h,jl.Portal=n,jl.Profiler=o,jl.StrictMode=i,jl.Suspense=u,jl.isAsyncMode=function(e){return y(e)||b(e)===s},jl.isConcurrentMode=y,jl.isContextConsumer=function(e){return b(e)===l},jl.isContextProvider=function(e){return b(e)===a},jl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},jl.isForwardRef=function(e){return b(e)===d},jl.isFragment=function(e){return b(e)===r},jl.isLazy=function(e){return b(e)===f},jl.isMemo=function(e){return b(e)===h},jl.isPortal=function(e){return b(e)===n},jl.isProfiler=function(e){return b(e)===o},jl.isStrictMode=function(e){return b(e)===i},jl.isSuspense=function(e){return b(e)===u},jl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},jl.typeOf=b,jl}():Vl.exports=(Il||(Il=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,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=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,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case o:case i:case u:return g;default:var v=g&&g.$$typeof;switch(v){case l:case d:case f:case h:case a:return v;default:return p}}case n:return p}}}var y=s,w=c,C=l,$=a,k=t,S=d,E=r,O=f,R=h,L=n,P=o,T=i,_=u,M=!1;function D(e){return b(e)===c}Kl.AsyncMode=y,Kl.ConcurrentMode=w,Kl.ContextConsumer=C,Kl.ContextProvider=$,Kl.Element=k,Kl.ForwardRef=S,Kl.Fragment=E,Kl.Lazy=O,Kl.Memo=R,Kl.Portal=L,Kl.Profiler=P,Kl.StrictMode=T,Kl.Suspense=_,Kl.isAsyncMode=function(e){return M||(M=!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)||b(e)===s},Kl.isConcurrentMode=D,Kl.isContextConsumer=function(e){return b(e)===l},Kl.isContextProvider=function(e){return b(e)===a},Kl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Kl.isForwardRef=function(e){return b(e)===d},Kl.isFragment=function(e){return b(e)===r},Kl.isLazy=function(e){return b(e)===f},Kl.isMemo=function(e){return b(e)===h},Kl.isPortal=function(e){return b(e)===n},Kl.isProfiler=function(e){return b(e)===o},Kl.isStrictMode=function(e){return b(e)===i},Kl.isSuspense=function(e){return b(e)===u},Kl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},Kl.typeOf=b}()),Kl)),Vl.exports}function Ql(){if(Hl)return zl;Hl=1;return zl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function es(){return Fl?Bl:(Fl=1,Bl=Function.call.bind(Object.prototype.hasOwnProperty))}function ts(){if(Gl)return ql;Gl=1;var e=Jl(),t=he,n=Ql(),r=es(),i=function(){if(Wl)return Zl;Wl=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Ql(),n={},r=es();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](o,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+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 p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Zl=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),ql=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:f(a),arrayOf:function(e){return f((function(t,r,i,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("Invalid "+o+" `"+a+"` of type `"+x(l)+"` supplied to `"+i+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,i,o,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,i){var o=e[t];return l(o)?null:new h("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+i+" `"+o+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:f((function(e,t,n,r,i){return m(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,i,o,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new h("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(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."),a;return f((function(t,n,r,i,o){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(i)+" at index "+t+"."),a}return f((function(t,i,o,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,o,a,l,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new h("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return v(i,o,a,c,b(d));var u=d(l,c,i,o,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new h("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[o],e);for(var p in u){var f=e[p];if(r(e,p)&&"function"!=typeof f)return v(a,l,s,p,b(f));if(!f)return new h("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,p,a,l,s+"."+p,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(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 i(i,a,l,c,u,p,f){if(c=c||d,p=p||l,f!==n){if(s){var g=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 g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+l;!t[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` 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[v]=!0,r++)}}return null==a[l]?i?null===a[l]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,u,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function g(e){return f((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new h("Invalid "+i+" `"+o+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,i){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(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(m);if(null===e||l(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(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function x(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 b(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},ql}function ns(){if(Yl)return Nl.exports;if(Yl=1,"production"!==process.env.NODE_ENV){var e=Jl();Nl.exports=ts()(e.isElement,!0)}else Nl.exports=function(){if(Xl)return Ul;Xl=1;var e=Ql();function t(){}function n(){}return n.resetWarningCache=t,Ul=function(){function r(t,n,r,i,o,a){if(a!==e){var l=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 l.name="Invariant Violation",l}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();return Nl.exports}function rs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=rs(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function is(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=rs(e))&&(r&&(r+=" "),r+=t);return r}var os,as=Tl(Object.freeze({__proto__:null,clsx:is,default:is})),ls={},ss={};function cs(){if(os)return ss;return os=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},ss.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]},ss.int=function(e){return parseInt(e,10)},ss.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},ss.isNum=function(e){return"number"==typeof e&&!isNaN(e)},ss}var ds,us,ps={};function hs(){if(us)return ls;us=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.addClassName=a,ls.addEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},ls.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&&a(e.body,"react-draggable-transparent-selection")},ls.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},ls.createSVGTransform=function(e,t){return o(e,t,"")},ls.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))},ls.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},ls.getTranslation=o,ls.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},ls.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},ls.matchesSelector=i,ls.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(i(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},ls.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,o=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:o}},ls.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},ls.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},ls.removeClassName=l,ls.removeEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},ls.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&l(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){}};var e=cs(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}i.default=e,r&&r.set(e,i);return i}(function(){if(ds)return ps;ds=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.browserPrefixToKey=n,ps.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},ps.default=void 0,ps.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const i=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in i)return e[t];return""}function n(e,t){return t?"".concat(t).concat(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 ps.default=t(),ps}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function i(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function o(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);o="translate(".concat(e,", ").concat(r,")")+o}return o}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function l(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return ls}var fs,gs={};function vs(){if(fs)return gs;fs=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},gs.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},gs.createCoreData=function(t,r,i){const o=!(0,e.isNum)(t.lastX),a=n(t);return o?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:a,deltaX:r-t.lastX,deltaY:i-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:i}},gs.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}},gs.getBoundPosition=function(r,i,o){if(!r.props.bounds)return[i,o];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const l=n(r);if("string"==typeof a){const{ownerDocument:n}=l,r=n.defaultView;let i;if(i="parent"===a?l.parentNode:n.querySelector(a),!(i instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const o=i,s=r.getComputedStyle(l),c=r.getComputedStyle(o);a={left:-l.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-l.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(o)-(0,t.outerWidth)(l)-l.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(o)-(0,t.outerHeight)(l)-l.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(a.right)&&(i=Math.min(i,a.right));(0,e.isNum)(a.bottom)&&(o=Math.min(o,a.bottom));(0,e.isNum)(a.left)&&(i=Math.max(i,a.left));(0,e.isNum)(a.top)&&(o=Math.max(o,a.top));return[i,o]},gs.getControlPosition=function(e,r,i){const o="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!o)return null;const a=n(i),l=i.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(o||e,l,i.props.scale)},gs.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]};var e=cs(),t=hs();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return gs}var ms,xs,bs,ys,ws={},Cs={};function $s(){if(ms)return Cs;return ms=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=function(){},Cs}function ks(){if(xs)return ws;xs=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(q),t=l(ns()),n=l(ue),r=hs(),i=vs(),o=cs(),a=l($s());function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},u={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=u,h=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(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&&e.preventDefault();const o=(0,r.getTouchIdentifier)(e);this.touchIdentifier=o;const l=(0,i.getControlPosition)(e,o,this);if(null==l)return;const{x:s,y:c}=l,d=(0,i.createCoreData)(this,s,c);(0,a.default)("DraggableCore: handleDragStart: %j",d),(0,a.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=s,this.lastY=c,(0,r.addEvent)(n,p.move,this.handleDrag),(0,r.addEvent)(n,p.stop,this.handleDragStop))})),c(this,"handleDrag",(e=>{const t=(0,i.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,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,i.createCoreData)(this,n,r);(0,a.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!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)}})),c(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=o-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,o=this.lastY+t}const l=(0,i.createCoreData)(this,n,o);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(s.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(s.ownerDocument,p.move,this.handleDrag),(0,r.removeEvent)(s.ownerDocument,p.stop,this.handleDragStop))})),c(this,"onMouseDown",(e=>(p=u,this.handleDragStart(e)))),c(this,"onMouseUp",(e=>(p=u,this.handleDragStop(e)))),c(this,"onTouchStart",(e=>(p=d,this.handleDragStart(e)))),c(this,"onTouchEnd",(e=>(p=d,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,u.move,this.handleDrag),(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,u.stop,this.handleDragStop),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.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 ws.default=h,c(h,"displayName","DraggableCore"),c(h,"propTypes",{allowAnyClick: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:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),c(h,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),ws}function Ss(){return bs||(bs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(q),n=d(ns()),r=d(ue),i=d(as),o=hs(),a=vs(),l=cs(),s=d(ks()),c=d($s());function d(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(){return p=Object.assign?Object.assign.bind():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},p.apply(this,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f 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,a.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,a.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[i,o]=(0,a.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,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,a.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.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:l,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:u,position:h,positionOffset:f,scale:g,...v}=this.props;let m={},x=null;const b=!Boolean(h)||this.state.dragging,y=h||l,w={x:(0,a.canDragX)(this)&&b?this.state.x:y.x,y:(0,a.canDragY)(this)&&b?this.state.y:y.y};this.state.isElementSVG?x=(0,o.createSVGTransform)(w,f):m=(0,o.createCSSTransform)(w,f);const C=(0,i.default)(r.props.className||"",c,{[d]:this.state.dragging,[u]:this.state.dragged});return t.createElement(s.default,p({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...m},transform:x}))}}e.default=f,h(f,"displayName","Draggable"),h(f,"propTypes",{...s.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:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),h(f,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Dl)),Dl}var Es=function(){if(ys)return Ml.exports;ys=1;const{default:e,DraggableCore:t}=Ss();return Ml.exports=e,Ml.exports.default=e,Ml.exports.DraggableCore=t,Ml.exports}(),Os=Pl(Es);const Rs=e=>ae`
|
|
2382
|
+
*/function es(){return Hl||(Hl=1,"production"===process.env.NODE_ENV?Il.exports=function(){if(Dl)return Al;Dl=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,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=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,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case o:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function y(e){return b(e)===c}return Al.AsyncMode=s,Al.ConcurrentMode=c,Al.ContextConsumer=l,Al.ContextProvider=a,Al.Element=t,Al.ForwardRef=d,Al.Fragment=r,Al.Lazy=f,Al.Memo=h,Al.Portal=n,Al.Profiler=o,Al.StrictMode=i,Al.Suspense=u,Al.isAsyncMode=function(e){return y(e)||b(e)===s},Al.isConcurrentMode=y,Al.isContextConsumer=function(e){return b(e)===l},Al.isContextProvider=function(e){return b(e)===a},Al.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Al.isForwardRef=function(e){return b(e)===d},Al.isFragment=function(e){return b(e)===r},Al.isLazy=function(e){return b(e)===f},Al.isMemo=function(e){return b(e)===h},Al.isPortal=function(e){return b(e)===n},Al.isProfiler=function(e){return b(e)===o},Al.isStrictMode=function(e){return b(e)===i},Al.isSuspense=function(e){return b(e)===u},Al.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},Al.typeOf=b,Al}():Il.exports=(zl||(zl=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,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=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,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case o:case i:case u:return g;default:var v=g&&g.$$typeof;switch(v){case l:case d:case f:case h:case a:return v;default:return p}}case n:return p}}}var y=s,w=c,C=l,$=a,k=t,S=d,E=r,O=f,R=h,L=n,P=o,T=i,_=u,M=!1;function D(e){return b(e)===c}Ql.AsyncMode=y,Ql.ConcurrentMode=w,Ql.ContextConsumer=C,Ql.ContextProvider=$,Ql.Element=k,Ql.ForwardRef=S,Ql.Fragment=E,Ql.Lazy=O,Ql.Memo=R,Ql.Portal=L,Ql.Profiler=P,Ql.StrictMode=T,Ql.Suspense=_,Ql.isAsyncMode=function(e){return M||(M=!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)||b(e)===s},Ql.isConcurrentMode=D,Ql.isContextConsumer=function(e){return b(e)===l},Ql.isContextProvider=function(e){return b(e)===a},Ql.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ql.isForwardRef=function(e){return b(e)===d},Ql.isFragment=function(e){return b(e)===r},Ql.isLazy=function(e){return b(e)===f},Ql.isMemo=function(e){return b(e)===h},Ql.isPortal=function(e){return b(e)===n},Ql.isProfiler=function(e){return b(e)===o},Ql.isStrictMode=function(e){return b(e)===i},Ql.isSuspense=function(e){return b(e)===u},Ql.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},Ql.typeOf=b}()),Ql)),Il.exports}function ts(){if(Fl)return Bl;Fl=1;return Bl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function ns(){return Wl?Zl:(Wl=1,Zl=Function.call.bind(Object.prototype.hasOwnProperty))}function rs(){if(Xl)return Ul;Xl=1;var e=es(),t=he,n=ts(),r=ns(),i=function(){if(Gl)return ql;Gl=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=ts(),n={},r=ns();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](o,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+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 p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},ql=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Ul=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:f(a),arrayOf:function(e){return f((function(t,r,i,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("Invalid "+o+" `"+a+"` of type `"+x(l)+"` supplied to `"+i+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,i,o,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,i){var o=e[t];return l(o)?null:new h("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+i+" `"+o+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:f((function(e,t,n,r,i){return m(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,i,o,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new h("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(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."),a;return f((function(t,n,r,i,o){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(i)+" at index "+t+"."),a}return f((function(t,i,o,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,o,a,l,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new h("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return v(i,o,a,c,b(d));var u=d(l,c,i,o,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new h("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[o],e);for(var p in u){var f=e[p];if(r(e,p)&&"function"!=typeof f)return v(a,l,s,p,b(f));if(!f)return new h("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,p,a,l,s+"."+p,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(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 i(i,a,l,c,u,p,f){if(c=c||d,p=p||l,f!==n){if(s){var g=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 g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+l;!t[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` 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[v]=!0,r++)}}return null==a[l]?i?null===a[l]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,u,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function g(e){return f((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new h("Invalid "+i+" `"+o+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,i){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(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(m);if(null===e||l(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(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function x(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 b(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},Ul}function is(){if(Jl)return jl.exports;if(Jl=1,"production"!==process.env.NODE_ENV){var e=es();jl.exports=rs()(e.isElement,!0)}else jl.exports=function(){if(Kl)return Yl;Kl=1;var e=ts();function t(){}function n(){}return n.resetWarningCache=t,Yl=function(){function r(t,n,r,i,o,a){if(a!==e){var l=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 l.name="Invariant Violation",l}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();return jl.exports}function os(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=os(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function as(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=os(e))&&(r&&(r+=" "),r+=t);return r}var ls,ss=Ml(Object.freeze({__proto__:null,clsx:as,default:as})),cs={},ds={};function us(){if(ls)return ds;return ls=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},ds.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]},ds.int=function(e){return parseInt(e,10)},ds.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},ds.isNum=function(e){return"number"==typeof e&&!isNaN(e)},ds}var ps,hs,fs={};function gs(){if(hs)return cs;hs=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.addClassName=a,cs.addEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},cs.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&&a(e.body,"react-draggable-transparent-selection")},cs.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},cs.createSVGTransform=function(e,t){return o(e,t,"")},cs.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))},cs.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},cs.getTranslation=o,cs.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},cs.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},cs.matchesSelector=i,cs.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(i(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},cs.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,o=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:o}},cs.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},cs.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},cs.removeClassName=l,cs.removeEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},cs.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&l(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){}};var e=us(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}i.default=e,r&&r.set(e,i);return i}(function(){if(ps)return fs;ps=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.browserPrefixToKey=n,fs.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},fs.default=void 0,fs.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const i=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in i)return e[t];return""}function n(e,t){return t?"".concat(t).concat(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 fs.default=t(),fs}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function i(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function o(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);o="translate(".concat(e,", ").concat(r,")")+o}return o}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function l(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return cs}var vs,ms={};function xs(){if(vs)return ms;vs=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},ms.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},ms.createCoreData=function(t,r,i){const o=!(0,e.isNum)(t.lastX),a=n(t);return o?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:a,deltaX:r-t.lastX,deltaY:i-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:i}},ms.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}},ms.getBoundPosition=function(r,i,o){if(!r.props.bounds)return[i,o];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const l=n(r);if("string"==typeof a){const{ownerDocument:n}=l,r=n.defaultView;let i;if(i="parent"===a?l.parentNode:n.querySelector(a),!(i instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const o=i,s=r.getComputedStyle(l),c=r.getComputedStyle(o);a={left:-l.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-l.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(o)-(0,t.outerWidth)(l)-l.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(o)-(0,t.outerHeight)(l)-l.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(a.right)&&(i=Math.min(i,a.right));(0,e.isNum)(a.bottom)&&(o=Math.min(o,a.bottom));(0,e.isNum)(a.left)&&(i=Math.max(i,a.left));(0,e.isNum)(a.top)&&(o=Math.max(o,a.top));return[i,o]},ms.getControlPosition=function(e,r,i){const o="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!o)return null;const a=n(i),l=i.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(o||e,l,i.props.scale)},ms.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]};var e=us(),t=gs();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return ms}var bs,ys,ws,Cs,$s={},ks={};function Ss(){if(bs)return ks;return bs=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=function(){},ks}function Es(){if(ys)return $s;ys=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(q),t=l(is()),n=l(ue),r=gs(),i=xs(),o=us(),a=l(Ss());function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},u={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=u,h=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(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&&e.preventDefault();const o=(0,r.getTouchIdentifier)(e);this.touchIdentifier=o;const l=(0,i.getControlPosition)(e,o,this);if(null==l)return;const{x:s,y:c}=l,d=(0,i.createCoreData)(this,s,c);(0,a.default)("DraggableCore: handleDragStart: %j",d),(0,a.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=s,this.lastY=c,(0,r.addEvent)(n,p.move,this.handleDrag),(0,r.addEvent)(n,p.stop,this.handleDragStop))})),c(this,"handleDrag",(e=>{const t=(0,i.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,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,i.createCoreData)(this,n,r);(0,a.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!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)}})),c(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=o-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,o=this.lastY+t}const l=(0,i.createCoreData)(this,n,o);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(s.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(s.ownerDocument,p.move,this.handleDrag),(0,r.removeEvent)(s.ownerDocument,p.stop,this.handleDragStop))})),c(this,"onMouseDown",(e=>(p=u,this.handleDragStart(e)))),c(this,"onMouseUp",(e=>(p=u,this.handleDragStop(e)))),c(this,"onTouchStart",(e=>(p=d,this.handleDragStart(e)))),c(this,"onTouchEnd",(e=>(p=d,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,u.move,this.handleDrag),(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,u.stop,this.handleDragStop),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return $s.default=h,c(h,"displayName","DraggableCore"),c(h,"propTypes",{allowAnyClick: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:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),c(h,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),$s}function Os(){return ws||(ws=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(q),n=d(is()),r=d(ue),i=d(ss),o=gs(),a=xs(),l=us(),s=d(Es()),c=d(Ss());function d(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(){return p=Object.assign?Object.assign.bind():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},p.apply(this,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===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:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f 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,a.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,a.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[i,o]=(0,a.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,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,a.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.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:l,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:u,position:h,positionOffset:f,scale:g,...v}=this.props;let m={},x=null;const b=!Boolean(h)||this.state.dragging,y=h||l,w={x:(0,a.canDragX)(this)&&b?this.state.x:y.x,y:(0,a.canDragY)(this)&&b?this.state.y:y.y};this.state.isElementSVG?x=(0,o.createSVGTransform)(w,f):m=(0,o.createCSSTransform)(w,f);const C=(0,i.default)(r.props.className||"",c,{[d]:this.state.dragging,[u]:this.state.dragged});return t.createElement(s.default,p({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...m},transform:x}))}}e.default=f,h(f,"displayName","Draggable"),h(f,"propTypes",{...s.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:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),h(f,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Vl)),Vl}var Rs=function(){if(Cs)return Nl.exports;Cs=1;const{default:e,DraggableCore:t}=Os();return Nl.exports=e,Nl.exports.default=e,Nl.exports.DraggableCore=t,Nl.exports}(),Ls=_l(Rs);const Ps=e=>ae`
|
|
2368
2383
|
width: 240px;
|
|
2369
2384
|
${"medium"===e&&"width: 320px;"}
|
|
2370
2385
|
${"large"===e&&"width: 440px;"}
|
|
@@ -2375,7 +2390,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2375
2390
|
border-radius: 4px;
|
|
2376
2391
|
box-shadow: 0px 4px 6px -4px #0000001a;
|
|
2377
2392
|
box-shadow: 0px 10px 15px -3px #0000001a;
|
|
2378
|
-
`,
|
|
2393
|
+
`,Ts=ae`
|
|
2379
2394
|
height: 100%;
|
|
2380
2395
|
min-height: 40px;
|
|
2381
2396
|
display: flex;
|
|
@@ -2383,27 +2398,27 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2383
2398
|
justify-content: space-between;
|
|
2384
2399
|
padding: 8px;
|
|
2385
2400
|
border-bottom: 1px solid ${ve("neutral",300)};
|
|
2386
|
-
`,
|
|
2401
|
+
`,_s=ae`
|
|
2387
2402
|
top: 10px;
|
|
2388
|
-
`,
|
|
2403
|
+
`,Ms=ae`
|
|
2389
2404
|
padding: 12px;
|
|
2390
|
-
`,
|
|
2405
|
+
`,Ds=({header:e,content:t,footer:n,size:r="medium",draggable:i,blocking:o,open:a,onClose:s})=>a?F(M.Root,{open:a,onOpenChange:s,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!i&&!o,preventScroll:!i&&!o,closeOnEscape:!o,defaultOpen:!0,children:B(l,{children:[i?null:F(M.Backdrop,{}),F(Ls,{disabled:!i,children:F(M.Positioner,{children:B(M.Content,{css:Ps(r),children:[B(M.Header,{css:Ts,children:[e,o?null:F(M.CloseTrigger,{css:_s,asChild:!0,children:F(lt,{})})]}),F(M.Body,{css:Ms,children:t}),n?F(M.Footer,{padding:"12px",children:n}):null]})})})]})}):null,Ns=e=>ae`
|
|
2391
2406
|
height: 100%;
|
|
2392
2407
|
width: ${e||"320px"};
|
|
2393
2408
|
background-color: ${ve("neutral",100)};
|
|
2394
2409
|
box-shadow: 0px 1px 2px -1px #0000001a;
|
|
2395
2410
|
box-shadow: 0px 1px 3px 0px #0000001a;
|
|
2396
2411
|
position: relative;
|
|
2397
|
-
`,
|
|
2412
|
+
`,Vs=ae`
|
|
2398
2413
|
border-right: 1px solid ${ve("neutral",300)};
|
|
2399
|
-
`,
|
|
2414
|
+
`,js=ae`
|
|
2400
2415
|
border: 1px solid ${ve("neutral",300)};
|
|
2401
2416
|
border-radius: 4px;
|
|
2402
|
-
`,
|
|
2417
|
+
`,Is=ae`
|
|
2403
2418
|
min-height: 48px;
|
|
2404
2419
|
width: 100%;
|
|
2405
2420
|
border-bottom: 1px solid ${ve("neutral",300)};
|
|
2406
|
-
`,
|
|
2421
|
+
`,As=(e,t)=>ae`
|
|
2407
2422
|
height: ${((e,t)=>e&&t?`calc(100% - ${e+t}px)`:e?`calc(100% - ${e}px)`:t?`calc(100% - ${t}px)`:"100%")(e,t)};
|
|
2408
2423
|
width: 100%;
|
|
2409
2424
|
overflow-y: auto;
|
|
@@ -2411,7 +2426,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2411
2426
|
&:focus-visible {
|
|
2412
2427
|
outline-color: ${ve("primary",700)};
|
|
2413
2428
|
}
|
|
2414
|
-
`,
|
|
2429
|
+
`,zs=ae`
|
|
2415
2430
|
min-height: 64px;
|
|
2416
2431
|
width: 100%;
|
|
2417
2432
|
display: flex;
|
|
@@ -2421,7 +2436,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
|
|
|
2421
2436
|
bottom: 0;
|
|
2422
2437
|
left: 0;
|
|
2423
2438
|
border-top: 1px solid ${ve("neutral",300)};
|
|
2424
|
-
`,
|
|
2439
|
+
`,Hs=({header:e,content:t,footer:n,variant:r="fixed",width:i})=>{const[o,a]=U(void 0),[l,s]=U(void 0),c=J(null),d=J(null);X((()=>{a(c?.current?.getBoundingClientRect()?.height),s(d?.current?.getBoundingClientRect()?.height)}),[e,n]);return B("div",{css:[Ns(i),"fixed"===r?Vs:js],children:[e?F("div",{css:Is,ref:c,children:e}):null,F("div",{css:As(o,l),children:t}),n?F("div",{css:zs,ref:d,children:n}):null]})};var Bs,Fs;!function(){if(Fs)return Bs;Fs=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 i=0,o="Warning: "+e.replace(/%s/g,(function(){return t[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};e=function(e,n,r){var i=arguments.length;r=new Array(i>2?i-2:0);for(var o=2;o<i;o++)r[o-2]=arguments[o];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}Bs=e}();var Zs=Ws()?K:X;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function Ws(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var qs=function(e){var t,n=e.children,r=e.type,i=void 0===r?"reach-portal":r,o=J(null),a=J(null),l=(t=U(Object.create(null))[1],te((function(){t(Object.create(null))}),[]));return Zs((function(){if(o.current){var e=o.current.ownerDocument;return a.current=null==e?void 0:e.createElement(i),e.body.appendChild(a.current),l(),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}}),[i,l]),a.current?pe(n,a.current):ne("span",{ref:o})};"production"!==process.env.NODE_ENV&&(qs.displayName="Portal");
|
|
2425
2440
|
/*! *****************************************************************************
|
|
2426
2441
|
Copyright (c) Microsoft Corporation.
|
|
2427
2442
|
|
|
@@ -2435,16 +2450,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
2435
2450
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2436
2451
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2437
2452
|
PERFORMANCE OF THIS SOFTWARE.
|
|
2438
|
-
***************************************************************************** */var Ws,qs,Gs=function(){return Gs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Gs.apply(this,arguments)};function Us(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Xs(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 Ys(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ks(e,t,n){if(2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);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"}(Ws||(Ws={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(qs||(qs={}));var Js=Ws.Start,Qs=Ws.Stop,ec=Ws.Raise,tc=Ws.Send,nc=Ws.Cancel,rc=Ws.NullEvent,ic=Ws.Assign;Ws.After,Ws.DoneState;var oc=Ws.Log,ac=Ws.Init,lc=Ws.Invoke;Ws.ErrorExecution;var sc,cc=Ws.ErrorPlatform,dc=Ws.ErrorCustom,uc=Ws.Update,pc=Ws.Choose,hc=Ws.Pure,fc={},gc="xstate.guard",vc="production"===process.env.NODE_ENV;function mc(e,t,n){void 0===n&&(n=".");var r=yc(e,n),i=yc(t,n);return Vc(i)?!!Vc(r)&&i===r:Vc(r)?r in i:Object.keys(r).every((function(e){return e in i&&mc(r[e],i[e])}))}function xc(e){try{return Vc(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 bc(e,t){try{return Dc(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function yc(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:Dc(e)?wc(e):"string"!=typeof e?e:wc(bc(e,t));var n}function wc(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 Cc(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];n[o]=t(e[o],o,e,i)}return n}function $c(e,t,n){var r,i,o={};try{for(var a=Xs(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];n(c)&&(o[s]=t(c,s,e))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var kc=function(e){return function(t){var n,r,i=t;try{for(var o=Xs(e),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function Sc(e){return e?Vc(e)?[[e]]:Ec(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?Sc(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function Ec(e){var t;return(t=[]).concat.apply(t,Ks([],Ys(e),!1))}function Oc(e){return Dc(e)?e:[e]}function Rc(e){return void 0===e?[]:Oc(e)}function Lc(e,t,n){var r,i;if(Nc(e))return e(t,n.data);var o={};try{for(var a=Xs(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];Nc(c)?o[s]=c(t,n.data):o[s]=c}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function Pc(e){return e instanceof Promise||!(null===e||!Nc(e)&&"object"!=typeof e||!Nc(e.then))}function Tc(e,t){return Cc(e.states,(function(e,n){if(e){var r=(Vc(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:Tc(e,r)}}}))}function _c(e,t,n,r){vc||Mc(!!e,"Attempting to update undefined context");var i=e?n.reduce((function(e,n){var i,o,a=n.assignment,l={state:r,action:n,_event:t},s={};if(Nc(a))s=a(e,t.data,l);else try{for(var c=Xs(Object.keys(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=a[u];s[u]=Nc(p)?p(e,t.data,l):p}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return Object.assign({},e,s)}),e):e;return i}var Mc=function(){};function Dc(e){return Array.isArray(e)}function Nc(e){return"function"==typeof e}function Vc(e){return"string"==typeof e}function jc(e,t){if(e)return Vc(e)?{type:gc,name:e,predicate:t?t[e]:void 0}:Nc(e)?{type:gc,name:e.name,predicate:e}:e}vc||(Mc=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 Ic=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Ac(e){return!!e&&"__xstatenode"in e}function zc(e,t){return Vc(e)||"number"==typeof e?Gs({type:e},t):e}function Hc(e,t){if(!Vc(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=zc(e);return Gs({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function Bc(e,t){return Oc(t).map((function(t){return void 0===t||"string"==typeof t||Ac(t)?{target:t,event:e}:Gs(Gs({},t),{event:e})}))}function Fc(e,t,n,r,i){var o=e.options.guards,a={state:i,cond:t,_event:r};if(t.type===gc)return((null==o?void 0:o[t.name])||t.predicate)(n,r.data,a);var l=null==o?void 0:o[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(n,r.data,a)}function Zc(e){return"string"==typeof e?{type:e}:e}function Wc(e,t,n){var r=function(){},i="object"==typeof e,o=i?e:null;return{next:((i?e.next:e)||r).bind(o),error:((i?e.error:t)||r).bind(o),complete:((i?e.complete:n)||r).bind(o)}}function qc(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Gc(e){return(e.type===ec||e.type===tc&&e.to===qs.Internal)&&"number"!=typeof e.delay}(sc={})[Ic]=function(){return this},sc[Symbol.observable]=function(){return this};var Uc=Hc({type:ac});function Xc(e,t){return t&&t[e]||void 0}function Yc(e,t){var n;if(Vc(e)||"number"==typeof e)n=Nc(r=Xc(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(Nc(e))n={type:e.name||e.toString(),exec:e};else{var r;if(Nc(r=Xc(e.type,t)))n=Gs(Gs({},e),{exec:r});else if(r){var i=r.type||e.type;n=Gs(Gs(Gs({},r),e),{type:i})}else n=e}return n}var Kc=function(e,t){return e?(Dc(e)?e:[e]).map((function(e){return Yc(e,t)})):[]};function Jc(e){var t=Yc(e);return Gs(Gs({id:Vc(e)?e:t.id},t),{type:t.type})}function Qc(e,t){var n="".concat(Ws.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function ed(e,t){var n="".concat(Ws.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function td(e,t){var n="".concat(Ws.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function nd(e,t,n,r,i,o,a){void 0===a&&(a=!1);var l=a?[]:function(e){var t,n,r=[];try{for(var i=Xs(e),o=i.next();!o.done;o=i.next())for(var a=o.value,l=0;l<a.actions.length;)a.actions[l].type!==ic?l++:(r.push(a.actions[l]),a.actions.splice(l,1))}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(i),s=l.length?_c(n,r,l,t):n,c=a?[n]:void 0,d=[];function u(i,l){var u;switch(l.type){case ec:var p=function(e,t,n,r){var i,o={_event:n},a=Hc(Nc(e.event)?e.event(t,n.data,o):e.event);if(Vc(e.delay)){var l=r&&r[e.delay];i=Nc(l)?l(t,n.data,o):l}else i=Nc(e.delay)?e.delay(t,n.data,o):e.delay;return Gs(Gs({},e),{type:ec,_event:a,delay:i})}(l,s,r,e.options.delays);return o&&"number"==typeof p.delay&&o(p,s,r),p;case tc:var h=function(e,t,n,r){var i,o={_event:n},a=Hc(Nc(e.event)?e.event(t,n.data,o):e.event);if(Vc(e.delay)){var l=r&&r[e.delay];i=Nc(l)?l(t,n.data,o):l}else i=Nc(e.delay)?e.delay(t,n.data,o):e.delay;var s=Nc(e.to)?e.to(t,n.data,o):e.to;return Gs(Gs({},e),{to:s,_event:a,event:a.data,delay:i})}(l,s,r,e.options.delays);if(!vc){var f=l.delay;Mc(!Vc(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return o&&h.to!==qs.Internal&&("entry"===i?d.push(h):o(h,s,r)),h;case oc:var g=function(e,t,n){return Gs(Gs({},e),{value:Vc(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(l,s,r);return null==o||o(g,s,r),g;case pc:if(!(b=null===(u=l.conds.find((function(n){var i=jc(n.cond,e.options.guards);return!i||Fc(e,i,s,r,o?void 0:t)})))||void 0===u?void 0:u.actions))return[];var v=Ys(nd(e,t,s,r,[{type:i,actions:Kc(Rc(b),e.options.actions)}],o,a),2),m=v[0],x=v[1];return s=x,null==c||c.push(s),m;case hc:var b;if(!(b=l.get(s,r.data)))return[];var y=Ys(nd(e,t,s,r,[{type:i,actions:Kc(Rc(b),e.options.actions)}],o,a),2),w=y[0],C=y[1];return s=C,null==c||c.push(s),w;case Qs:g=function(e,t,n){var r=Nc(e.activity)?e.activity(t,n.data):e.activity,i="string"==typeof r?{id:r}:r;return{type:Ws.Stop,activity:i}}(l,s,r);return null==o||o(g,n,r),g;case ic:s=_c(s,r,[l],o?void 0:t),null==c||c.push(s);break;default:var $=Yc(l,e.options.actions),k=$.exec;if(o)o($,s,r);else if(k&&c){var S=c.length-1,E=Gs(Gs({},$),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,Ks([c[S]],Ys(t),!1))}});$=E}return $}}var p=Ec(i.map((function(e){var t,n,i=[];try{for(var a=Xs(e.actions),l=a.next();!l.done;l=a.next()){var c=l.value,p=u(e.type,c);p&&(i=i.concat(p))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return d.forEach((function(e){o(e,s,r)})),d.length=0,i})));return[p,s]}var rd=function(e,t){return t(e)};function id(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[Ic]=function(){return this},t}function od(e,t,n){var r=id(t);if(r.deferred=!0,Ac(e)){var i=r.state=rd(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return i}}return r}var ad=function(e){return"atomic"===e.type||"final"===e.type};function ld(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function sd(e){return ld(e).filter((function(e){return"history"!==e.type}))}function cd(e){var t=[e];return ad(e)?t:t.concat(Ec(sd(e).map(cd)))}function dd(e,t){var n,r,i,o,a,l,s,c,d=pd(new Set(e)),u=new Set(t);try{for(var p=Xs(u),h=p.next();!h.done;h=p.next())for(var f=($=h.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var g=pd(u);try{for(var v=Xs(u),m=v.next();!m.done;m=v.next()){if("compound"!==($=m.value).type||g.get($)&&g.get($).length){if("parallel"===$.type)try{for(var x=(a=void 0,Xs(sd($))),b=x.next();!b.done;b=x.next()){var y=b.value;u.has(y)||(u.add(y),d.get(y)?d.get(y).forEach((function(e){return u.add(e)})):y.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}else d.get($)?d.get($).forEach((function(e){return u.add(e)})):$.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var w=Xs(u),C=w.next();!C.done;C=w.next()){var $;for(f=($=C.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){s={error:e}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(s)throw s.error}}return u}function ud(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(ad(r))return r.key}var i={};return n.forEach((function(e){i[e.key]=ud(e,t)})),i}function pd(e){var t,n,r=new Map;try{for(var i=Xs(e),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function hd(e,t){return ud(e,pd(dd([e],t)))}function fd(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function gd(e,t){return"compound"===t.type?sd(t).some((function(t){return"final"===t.type&&fd(e,t)})):"parallel"===t.type&&sd(t).every((function(t){return gd(e,t)}))}function vd(e){return new Set(Ec(e.map((function(e){return e.tags}))))}function md(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(Vc(e)||Vc(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return md(e[n],t[n])}))}var xd=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=fc,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||fc,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 Ks([],Ys(new Set(Ec(Ks([],Ys(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:Uc,_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=Uc;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="."),Vc(e))return[e];var r=Object.keys(e);return r.concat.apply(r,Ks([],Ys(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=Us(e,["configuration","transitions","tags","machine"]);return Gs(Gs({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return mc(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;vc&&Mc(!!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}(),bd={deferEvents:!1},yd=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=Gs(Gs({},bd),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}(),wd=new Map,Cd=0,$d=function(){return"x:".concat(Cd++)},kd=function(e,t){return wd.set(e,t),e},Sd=function(e){return wd.get(e)},Ed=function(e){wd.delete(e)};function Od(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(vc||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 Rd(e){if(Od()){var t=function(){var e=Od();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function Ld(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,i=[],o=!1,a=function(e){var t;return Gs(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[Ic]=function(){return this},t),e)}({id:t.id,send:function(t){i.push(t),function(){if(!o){for(o=!0;i.length>0;){var t=i.shift();n=e.transition(n,t,l),r.forEach((function(e){return e.next(n)}))}o=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,i){var o=Wc(e,t,i);return r.add(o),o.next(n),{unsubscribe:function(){r.delete(o)}}}}),l={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(l):n,a}var Pd,Td={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Pd||(Pd={}));var _d=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=Pd.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(Dc(e))return r.batch(e),r.state;var n=Hc(zc(e,t));if(r.status===Pd.Stopped)return vc||Mc(!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!==Pd.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 i,o=r.parent&&(t===qs.Parent||r.parent.id===t),a=o?r.parent:Vc(t)?t===qs.Internal?r:r.children.get(t)||Sd(t):(i=t)&&"function"==typeof i.send?t:void 0;if(a)if("machine"in a){if(r.status!==Pd.Stopped||r.parent!==a||r.state.done){var l=Gs(Gs({},e),{name:e.name===dc?"".concat(td(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,l]):a.send(l)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else{if(!o)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));vc||Mc(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,i){void 0===i&&(i=r.machine.options.actions);var o=e.exec||Xc(e.type,i),a=Nc(o)?o:o?o.exec:e.exec;if(a)try{return a(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 ec:var l=e;r.defer(l);break;case tc:var s=e;if("number"==typeof s.delay)return void r.defer(s);s.to?r.sendTo(s._event,s.to,n===Uc):r.send(s._event);break;case nc:r.cancel(e.sendId);break;case Js:if(r.status!==Pd.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===Ws.Invoke){var d=Zc(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,p=c.id,h=c.data;vc||Mc(!("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(vc||Mc(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var g=h?Lc(h,t,n):void 0;if("string"==typeof u)return;var v=Nc(u)?u(t,n.data,{data:g,src:d,meta:c.meta}):u;if(!v)return;var m=void 0;Ac(v)&&(v=g?v.withContext(g):v,m={autoForward:f}),r.spawn(v,p,m)}else r.spawnActivity(c);break;case Qs:r.stopChild(e.activity.id);break;case oc:var x=e,b=x.label,y=x.value;b?r.logger(b,y):r.logger(y);break;default:vc||Mc(!1,"No implementation found for action type '".concat(e.type,"'"))}};var i=Gs(Gs({},e.defaultOptions),n),o=i.clock,a=i.logger,l=i.parent,s=i.id,c=void 0!==s?s:t.id;this.id=c,this.logger=a,this.clock=o,this.parent=l,this.options=i,this.scheduler=new yd({deferEvents:this.options.deferEvents}),this.sessionId=$d()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:rd(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return vc||Mc(this.status!==Pd.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 i=Xs(e.actions),o=i.next();!o.done;o=i.next()){var a=o.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,i,o,a,l,s,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==Uc||!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 p=Xs(this.eventListeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=Xs(this.listeners),g=f.next();!g.done;g=f.next()){(0,g.value)(e,e.event)}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}try{for(var v=Xs(this.contextListeners),m=v.next();!m.done;m=v.next()){(0,m.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=v.return)&&l.call(v)}finally{if(a)throw a.error}}if(this.state.done){var x=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),b=x&&x.doneData?Lc(x.doneData,e.context,t):void 0;this._doneEvent=ed(this.id,b);try{for(var y=Xs(this.doneListeners),w=y.next();!w.done;w=y.next()){(0,w.value)(this._doneEvent)}}catch(e){s={error:e}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(s)throw s.error}}this._stop(),this._stopChildren(),Ed(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===Pd.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,i=Wc(e,t,n);this.listeners.add(i.next),this.status!==Pd.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===Pd.Stopped?i.complete():(this.onDone(o),this.onStop(o)),{unsubscribe:function(){r.listeners.delete(i.next),r.doneListeners.delete(o),r.stopListeners.delete(o)}}},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===Pd.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===Pd.Running)return this;this.machine._init(),kd(this.sessionId,this),this.initialized=!0,this.status=Pd.Running;var n=void 0===e?this.initialState:rd(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(xd.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Uc)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){Nc(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,i,o,a,l,s,c;try{for(var d=Xs(this.listeners),u=d.next();!u.done;u=d.next()){var p=u.value;this.listeners.delete(p)}}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 h=Xs(this.stopListeners),f=h.next();!f.done;f=h.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var g=Xs(this.contextListeners),v=g.next();!v.done;v=g.next()){p=v.value;this.contextListeners.delete(p)}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var m=Xs(this.doneListeners),x=m.next();!x.done;x=m.next()){p=x.value;this.doneListeners.delete(p)}}catch(e){a={error:e}}finally{try{x&&!x.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=Pd.Stopped,this._initialState=void 0;try{for(var b=Xs(Object.keys(this.delayedEventsMap)),y=b.next();!y.done;y=b.next()){var w=y.value;this.clock.clearTimeout(this.delayedEventsMap[w])}}catch(e){s={error:e}}finally{try{y&&!y.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}this.scheduler.clear(),this.scheduler=new yd({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=Hc({type:"xstate.stop"}),r=rd(e,(function(){var t=Ec(Ks([],Ys(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Kc(t.onExit,e.machine.options.actions)}))),r=Ys(nd(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),i=r[0],o=r[1],a=new xd({value:e.state.value,context:o,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter((function(e){return!Gc(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a}));e.update(r,n),e._stopChildren(),Ed(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===Pd.NotStarted&&this.options.deferEvents)vc||Mc(!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!==Pd.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,i,o=t.state,a=!1,l=[],s=function(e){var r=Hc(e);t.forward(r),o=rd(t,(function(){return t.machine.transition(o,r,void 0,n||void 0)})),l.push.apply(l,Ks([],Ys(t.machine.config.predictableActionArguments?o.actions:o.actions.map((function(e){return function(e,t){var n=e.exec;return Gs(Gs({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,o)}))),!1)),a=a||!!o.changed};try{for(var c=Xs(e),d=c.next();!d.done;d=c.next()){s(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}o.changed=a,o.actions=l,t.update(o,Hc(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=Hc(e);if(0===r.name.indexOf(cc)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(cc)})))throw r.data.data;return rd(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=Xs(this.forwardTo),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.children.get(o);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{i&&!i.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),Nc(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==Pd.Running)return od(e,t);if(Pc(e))return this.spawnPromise(Promise.resolve(e),t);if(Nc(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(i=e)&&"id"in i)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&Nc(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(Ac(e))return this.spawnMachine(e,Gs(Gs({},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,i},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var i=new e(t,Gs(Gs({},this.options),{parent:this,id:n.id||t.id})),o=Gs(Gs({},Td),n);o.sync&&i.onTransition((function(e){r.send(uc,{state:e,id:i.id})}));var a=i;return this.children.set(i.id,a),o.autoForward&&this.forwardTo.add(i.id),i.onDone((function(e){r.removeChild(i.id),r.send(Hc(e,{origin:i.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=Ld(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,i=this,o=!1;e.then((function(e){o||(r=e,i.removeChild(t),i.send(Hc(ed(t,e),{origin:t})))}),(function(e){if(!o){i.removeChild(t);var n=td(t,e);try{i.send(Hc(n,{origin:t}))}catch(r){!function(e,t,n){if(!vc){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 i=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(i))}}}(e,r,t),i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var i=Wc(t,n,r),o=!1;return e.then((function(e){o||(i.next(e),o||i.complete())}),(function(e){o||i.error(e)})),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[Ic]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,i,o=this,a=!1,l=new Set,s=new Set;try{i=e((function(e){r=e,s.forEach((function(t){return t(e)})),a||o.send(Hc(e,{origin:t}))}),(function(e){l.add(e)}))}catch(e){this.send(td(t,e))}if(Pc(i))return this.spawnPromise(i,t);var c=((n={id:t,send:function(e){return l.forEach((function(t){return t(e)}))},subscribe:function(e){var t=Wc(e);return s.add(t.next),{unsubscribe:function(){s.delete(t.next)}}},stop:function(){a=!0,Nc(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[Ic]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,i=this,o=e.subscribe((function(e){r=e,i.send(Hc(e,{origin:t}))}),(function(e){i.removeChild(t),i.send(Hc(td(t,e),{origin:t}))}),(function(){i.removeChild(t),i.send(Hc(ed(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[Ic]=function(){return this},n);return this.children.set(t,a),a},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 vc||Mc(!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}}})[Ic]=function(){return this},n))},e.prototype.attachDev=function(){var e=Od();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(Gs(Gs({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:Gs({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}Rd(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Ic]=function(){return this},e.prototype.getSnapshot=function(){return this.status===Pd.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=Md,e}();function Md(e,t){return new _d(e,t)}function Dd(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function Nd(e){return Gs(Gs({type:lc},e),{toJSON:function(){e.onDone,e.onError;var t=Us(e,["onDone","onError"]);return Gs(Gs({},t),{type:lc,src:Dd(e.src)})}})}var Vd="",jd="*",Id={},Ad=function(e){return"#"===e[0]},zd=function(){function e(t,n,r,i){void 0===r&&(r="context"in t?t.context:void 0);var o,a=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==i?void 0:i.parent,this.key=this.config.key||(null==i?void 0:i.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||Ks([this.machine.key],Ys(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!==(o=this.config.schema)&&void 0!==o?o:{},this.description=this.config.description,vc||Mc(!("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?Cc(this.config.states,(function(t,n){var r,i=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,Gs(((r={})[i.id]=i,r),i.idMap)),i})):Id;var l=0;!function e(t){var n,r;t.order=l++;try{for(var i=Xs(ld(t)),o=i.next();!o.done;o=i.next()){e(o.value)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}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===Vd})):Vd in this.config.on),this.strict=!!this.config.strict,this.onEntry=Rc(this.config.entry||this.config.onEntry).map((function(e){return Yc(e)})),this.onExit=Rc(this.config.exit||this.config.onExit).map((function(e){return Yc(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=Rc(this.config.invoke).map((function(e,t){var n,r;if(Ac(e)){var i=qc(a.id,t);return a.machine.options.services=Gs(((n={})[i]=e,n),a.machine.options.services),Nd({src:i,id:i})}if(Vc(e.src)){i=e.id||qc(a.id,t);return Nd(Gs(Gs({},e),{id:i,src:e.src}))}if(Ac(e.src)||Nc(e.src)){i=e.id||qc(a.id,t);return a.machine.options.services=Gs(((r={})[i]=e.src,r),a.machine.options.services),Nd(Gs(Gs({id:i},e),{src:i}))}var o=e.src;return Nd(Gs(Gs({id:qc(a.id,t)},e),{src:o}))})),this.activities=Rc(this.config.activities).concat(this.invoke).map((function(e){return Jc(e)})),this.transition=this.transition.bind(this),this.tags=Rc(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||cd(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,o=r.activities,a=r.guards,l=r.services,s=r.delays;return new e(this.config,{actions:Gs(Gs({},i),t.actions),activities:Gs(Gs({},o),t.activities),guards:Gs(Gs({},a),t.guards),services:Gs(Gs({},l),t.services),delays:Gs(Gs({},s),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 Nc(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:Cc(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===Vd,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===jd}));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(Ws.After,"(").concat(e,")").concat(n)}(Nc(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:tc,event:Nc(e)?e:zc(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:Nc(e)?e.name:xc(e)}}(r,{delay:t})),e.onExit.push({type:nc,sendId:r}),r},r=Dc(t)?t.map((function(e,t){var r=n(e.delay,t);return Gs(Gs({},e),{event:r})})):Ec(Object.keys(t).map((function(e,r){var i=t[e],o=Vc(i)?{target:i}:i,a=isNaN(+e)?e:+e,l=n(a,r);return Rc(o).map((function(e){return Gs(Gs({},e),{event:l,delay:a})}))})));return r.map((function(t){var n=t.delay;return Gs(Gs({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof xd?e.value:yc(e,this.delimiter);if(Vc(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((t={})[r]=i,t)):[this,this.states[r]]}var o=Object.keys(r),a=[this];return a.push.apply(a,Ks([],Ys(Ec(o.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=xc(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof xd?e:xd.create(e),n=Array.from(dd([],this.getStateNodes(t.value)));return new xd(Gs(Gs({},t),{value:this.resolve(t.value),configuration:n,done:gd(n,this),tags:vd(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),i=this.getStateNode(r[0])._transition(e[r[0]],t,n);return i&&i.transitions.length?i:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,i,o={};try{for(var a=Xs(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];if(c){var d=this.getStateNode(s)._transition(c,t,n);d&&(o[s]=d)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var u=Object.keys(o).map((function(e){return o[e]})),p=Ec(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=Ec(Object.keys(o).map((function(e){return o[e].configuration})));return{transitions:p,exitSet:Ec(u.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:Ec(Object.keys(o).map((function(e){return o[e].actions})))}},e.prototype._transition=function(e,t,n){return Vc(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,Hc(t))},e.prototype.next=function(e,t){var n,r,i,o=this,a=t.name,l=[],s=[];try{for(var c=Xs(this.getCandidates(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=u.cond,h=u.in,f=e.context,g=!h||(Vc(h)&&Ad(h)?e.matches(yc(this.getStateNodeById(h).path,this.delimiter)):mc(yc(h,this.delimiter),kc(this.path.slice(0,-2))(e.value))),v=!1;try{v=!p||Fc(this.machine,p,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(v&&g){void 0!==u.target&&(s=u.target),l.push.apply(l,Ks([],Ys(u.actions),!1)),i=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(i){if(!s.length)return{transitions:[i],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var m=Ec(s.map((function(t){return o.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[i],exitSet:!!i.internal?[]:Ec(s.map((function(e){return o.getPotentiallyReenteringNodes(e)}))),configuration:m,source:e,actions:l}}},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,i,o,a){var l,s,c,d,u=this,p=o?dd([],this.getStateNodes(o.value)):[],h=new Set;try{for(var f=Xs(Array.from(e).sort((function(e,t){return e.order-t.order}))),g=f.next();!g.done;g=f.next()){(!fd(p,x=g.value)||fd(n.exitSet,x)||x.parent&&h.has(x.parent))&&h.add(x)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(s=f.return)&&s.call(f)}finally{if(l)throw l.error}}try{for(var v=Xs(p),m=v.next();!m.done;m=v.next()){var x;fd(e,x=m.value)&&!fd(n.exitSet,x.parent)||n.exitSet.push(x)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var b=Array.from(h).sort((function(e,t){return e.order-t.order})),y=new Set(n.exitSet),w=Ec(b.map((function(e){var t=[];if("final"!==e.type)return t;var o=e.parent;if(!o.parent)return t;t.push(Qc(e.id,e.doneData),Qc(o.id,e.doneData?Lc(e.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&sd(a).every((function(e){return gd(n.configuration,e)}))&&t.push(Qc(a.id)),t}))),C=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=Jc(e);return{type:Ws.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:Kc(a?Ks(Ks([],Ys(t),!1),Ys(n),!1):Ks(Ks([],Ys(n),!1),Ys(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:w.map((function(e){return function(e,t){return{type:ec,event:"function"==typeof e?e:zc(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),$=Array.from(y).map((function(e){return{type:"exit",actions:Kc(Ks(Ks([],Ys(e.onExit),!1),Ys(e.activities.map((function(e){return function(e){var t=Nc(e)?e:Jc(e);return{type:Ws.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:Kc(n.actions,this.machine.options.actions)}).concat(C);if(t){var k=Kc(Ec(Ks([],Ys(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!Gc(e)}));return $.concat({type:"stop",actions:k})}return $},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var i,o,a=Hc(t);if(e instanceof xd)i=void 0===n?e:this.resolveState(xd.from(e,n));else{var l=Vc(e)?this.resolve(wc(this.getResolvedPath(e))):this.resolve(e),s=null!=n?n:this.machine.context;i=this.resolveState(xd.from(l,s))}if(!vc&&a.name===jd)throw new Error("An event cannot have the wildcard type ('".concat(jd,"')"));if(this.strict&&!this.events.includes(a.name)&&(o=a.name,!/^(done|error)\./.test(o)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},d=dd([],this.getStateNodes(i.value)),u=c.configuration.length?dd(d,c.configuration):d;return c.configuration=Ks([],Ys(u),!1),this.resolveTransition(c,i,i.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var i,o=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(i=e.actions).unshift.apply(i,Ks([],Ys(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,i){var o,a,l,s,c=this;void 0===i&&(i=Uc);var d=e.configuration,u=!t||e.transitions.length>0,p=u?e.configuration:t?t.configuration:[],h=gd(p,this),f=u?hd(this.machine,d):void 0,g=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,v=this.getActions(new Set(p),h,e,n,i,t,r),m=t?Gs({},t.activities):{};try{for(var x=Xs(v),b=x.next();!b.done;b=x.next()){var y=b.value;try{for(var w=(l=void 0,Xs(y.actions)),C=w.next();!C.done;C=w.next()){var $=C.value;$.type===Js?m[$.activity.id||$.activity.type]=$:$.type===Qs&&(m[$.activity.id||$.activity.type]=!1)}}catch(e){l={error:e}}finally{try{C&&!C.done&&(s=w.return)&&s.call(w)}finally{if(l)throw l.error}}}}catch(e){o={error:e}}finally{try{b&&!b.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}var k,S,E=Ys(nd(this,t,n,i,v,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),O=E[0],R=E[1],L=Ys(function(e,t){var n,r,i=Ys([[],[]],2),o=i[0],a=i[1];try{for(var l=Xs(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(O,Gc),2),P=L[0],T=L[1],_=O.filter((function(e){var t;return e.type===Js&&(null===(t=e.activity)||void 0===t?void 0:t.type)===lc})),M=_.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var i,o=Zc(e.src),a=null===(i=null==t?void 0:t.options.services)||void 0===i?void 0:i[o.type],l=e.data?Lc(e.data,n,r):void 0,s=a?od(a,e.id,l):id(e.id);return s.meta=e,s}(t.activity,c.machine,R,i),e}),t?Gs({},t.children):{}),D=new xd({value:f||t.value,context:R,_event:i,_sessionid:t?t._sessionid:null,historyValue:f?g?(k=g,S=f,{current:S,states:Tc(k,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?T:[],activities:f?m:t?t.activities:{},events:[],configuration:p,transitions:e.transitions,children:M,done:h,tags:vd(p),machine:this}),N=n!==R;D.changed=i.name===uc||N;var V=D.history;V&&delete V.history;var j=!h&&(this._transient||d.some((function(e){return e._transient})));if(!(u||j&&i.name!==Vd))return D;var I=D;if(!h)for(j&&(I=this.resolveRaisedTransition(I,{type:rc},i,r));P.length;){var A=P.shift();I=this.resolveRaisedTransition(I,A._event,i,r)}var z=I.changed||(V?!!I.actions.length||N||typeof V.value!=typeof I.value||!md(I.value,V.value):void 0);return I.changed=z,I.history=V,I},e.prototype.getStateNode=function(e){if(Ad(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=Ad(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&&Ad(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=bc(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||Id;switch(this.type){case"parallel":return Cc(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):Id}));case"compound":if(Vc(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?Cc(e,(function(e,t){return e?n.getStateNode(t).resolve(e):Id})):this.initialStateValue||{};default:return e||Id}},e.prototype.getResolvedPath=function(e){if(Ad(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 bc(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=$c(this.states,(function(e){return e.initialStateValue||Id}),(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=ad(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=Vc(t.target)&&Ad(t.target)?wc(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 ad(this)?[this]:"compound"!==this.type||this.initial?Ec(Sc(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(vc||Mc(!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=Ys(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 i=this.getStateNode(n);if("history"===i.type)return i.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:$c(this.states,(function(t,n){if(!e)return t.historyValue();var r=Vc(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?Ec(Sc(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(e){var t,n,r=e;try{for(var a=Xs(i),l=a.next();!l.done;l=a.next()){var s=l.value;r=r[o][s]}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return Vc(a)?[n.getStateNode(a)]:Ec(Sc(a).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=Ec(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 i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=Xs(Object.keys(i)),l=a.next();!l.done;l=a.next()){var s=i[l.value];if(s.states)try{for(var c=(n=void 0,Xs(s.events)),d=c.next();!d.done;d=c.next()){var u=d.value;o.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{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(o)},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(!Vc(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 Rc(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return Vc(e)&&e[0]===t.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=Gs(Gs({},e),{actions:Kc(Rc(e.actions)),cond:jc(e.cond,i),target:o,source:this,internal:r,eventType:e.event,toJSON:function(){return Gs(Gs({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},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 i=this.config.on,o=jd,a=i[o],l=void 0===a?[]:a,s=Us(i,["*"]);n=Ec(Object.keys(s).map((function(e){vc||e!==Vd||Mc(!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=Bc(e,s[e]);return vc||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(Vc(e.target)||Ac(e.target))})),i=t===Vd?"the transient event":"event '".concat(t,"'");Mc(!r,"One or more transitions for ".concat(i," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(Bc(jd,l)))}else n=[];var c=this.config.always?Bc("",this.config.always):[],d=this.config.onDone?Bc(String(Qc(this.id)),this.config.onDone):[];vc||Mc(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=Ec(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,Ks([],Ys(Bc(String(ed(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,Ks([],Ys(Bc(String(td(e.id)),e.onError)),!1)),t}))),p=this.after,h=Ec(Ks(Ks(Ks(Ks([],Ys(d),!1),Ys(u),!1),Ys(n),!1),Ys(c),!1).map((function(e){return Rc(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=Xs(p),g=f.next();!g.done;g=f.next()){var v=g.value;h.push(v)}}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return h},e}();var Hd,Bd=function(e){return{type:ic,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(Hd||(Hd={}));var Fd="undefined"!=typeof document?K:function(){};function Zd(e){var t=W.useRef();return t.current||(t.current={v:e()}),t.current.v}var Wd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},qd=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 Gd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ud=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function Xd(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function Yd(e){var t=J([]),n=J([]);Fd((function(){var r=e.subscribe((function(e){var r,i;if(e.actions.length){var o=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),a=Gd(function(e,t){var n,r,i=Wd([[],[]],2),o=i[0],a=i[1];try{for(var l=qd(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(o,(function(e){return e.exec.__effect===Hd.Effect})),2),l=a[0],s=a[1];(r=t.current).push.apply(r,Ud([],Gd(l.map((function(t){return[t,e]}))),!1)),(i=n.current).push.apply(i,Ud([],Gd(s.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),Fd((function(){for(;n.current.length;){var e=Gd(n.current.shift(),2);Xd(e[0],e[1])}})),X((function(){for(;t.current.length;){var e=Gd(t.current.shift(),2);Xd(e[0],e[1])}}))}var Kd=function(){return Kd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Kd.apply(this,arguments)},Jd=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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Qd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};var eu=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function tu(e,t){void 0===t&&(t={});var n=te((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&a(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=Zd((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=Qd(U(r),1)[0];e!==i&&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 o=t.context,a=t.guards,l=t.actions,s=t.activities,c=t.services,d=t.delays,u=t.state,p=Jd(t,["context","guards","actions","activities","services","delays","state"]),h=Zd((function(){var e={context:o,guards:a,actions:l,activities:s,services:c,delays:d};return Md(r.withConfig(e,(function(){return Kd(Kd({},r.context),o)})),Kd({deferEvents:!0},p))}));return Fd((function(){var e;return n&&(e=h.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]),Fd((function(){return h.start(u?xd.create(u):void 0),function(){h.stop()}}),[]),Fd((function(){Object.assign(h.machine.options.actions,l),Object.assign(h.machine.options.guards,a),Object.assign(h.machine.options.activities,s),Object.assign(h.machine.options.services,c),Object.assign(h.machine.options.delays,d)}),[l,a,s,c,d]),Yd(h),h}(e,t,n),i=eu(U((function(){var e=r.machine.initialState;return t.state?xd.create(t.state):e})),2),o=i[0],a=i[1];return[o,r.send,r]}function nu(){return nu=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},nu.apply(null,arguments)}function ru(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 iu={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(iu.str(e)||iu.num(e))return e===t;if(iu.obj(e)&&iu.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!iu.und(n)||e===t}};function ou(e,t){return iu.und(e)||iu.nul(e)?t:e}function au(e){return iu.und(e)?[]:iu.arr(e)?e:[e]}function lu(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 iu.fun(e)?e(...n):e}function su(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,ru(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(iu.und(t))return nu({to:t},e);const n=Object.keys(e).reduce(((n,r)=>iu.und(t[r])?nu({},n,{[r]:e[r]}):n),{});return nu({to:t},n)}class cu{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 du extends cu{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof cu&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof cu&&e.removeChild(this)))}}class uu extends cu{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof cu&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof cu&&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 cu)&&(t[n]=r instanceof cu?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let pu,hu;let fu,gu=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let vu,mu=()=>Date.now();class xu extends uu{constructor(e,t){super(),this.update=void 0,this.payload=e.style?nu({},e,{style:vu(e.style)}):e,this.update=t,this.attach()}}let bu=!1;const yu=new Set,wu=()=>{if(!bu)return!1;let e=mu();for(let t of yu){let n=!1;for(let r=0;r<t.configs.length;r++){let i,o,a=t.configs[r];for(let t=0;t<a.animatedValues.length;t++){let r=a.animatedValues[t];if(r.done)continue;let l=a.fromValues[t],s=a.toValues[t],c=r.lastPosition,d=s instanceof cu,u=Array.isArray(a.initialVelocity)?a.initialVelocity[t]:a.initialVelocity;if(d&&(s=s.getValue()),a.immediate)r.setValue(s),r.done=!0;else if("string"!=typeof l&&"string"!=typeof s){if(void 0!==a.duration)c=l+a.easing((e-r.startTime)/a.duration)*(s-l),i=e>=r.startTime+a.duration;else if(a.decay)c=l+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),i=Math.abs(r.lastPosition-c)<.1,i&&(s=c);else{o=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:a.initialVelocity,e>o+64&&(o=e);let t=Math.floor(e-o);for(let e=0;e<t;++e){u+=1*((-a.tension*(c-s)+-a.friction*u)/a.mass)/1e3,c+=1*u/1e3}let n=!(!a.clamp||0===a.tension)&&(l<s?c>s:c<s),d=Math.abs(u)<=a.precision,p=0===a.tension||Math.abs(s-c)<=a.precision;i=n||d&&p,r.lastVelocity=u,r.lastTime=e}d&&!a.toValues[t].done&&(i=!1),i?(r.value!==s&&(c=s),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(s),r.done=!0}t.props.onFrame&&(t.values[a.name]=a.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(yu.delete(t),t.stop(!0))}return yu.size?gu(wu):bu=!1,bu};function Cu(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return Cu({range:e,output:t,extrapolate:n});if(fu&&"string"==typeof e.output[0])return fu(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=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,o);return function(e,t,n,r,i,o,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],s,a,l,r.map)}}class $u extends du{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof du&&!(e instanceof $u)?e.getPayload():Array.isArray(e)?e:[e],this.calc=Cu(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=Cu(e,t,n)}interpolate(e,t,n){return new $u(this,e,t,n)}}const ku=(e,t,n)=>e&&new $u(e,t,n);function Su(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>Su(e,t)))}class Eu extends cu{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&&Su(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new $u(this,e,t,n)}}class Ou extends du{constructor(e){super(),this.payload=e.map((e=>new Eu(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 $u(this,e,t)}}let Ru=0,Lu=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=Ru++}update(e){if(!e)return this;const t=su(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=ru(t,["delay","to"]);if(iu.arr(i)||iu.fun(i))this.queue.push(nu({},o,{delay:r,to:i}));else if(i){let e={};Object.entries(i).forEach((t=>{let n=t[0],i=t[1];const a=nu({to:{[n]:i},delay:lu(r,n)},o),l=e[a.delay]&&e[a.delay].to;e[a.delay]=nu({},e[a.delay],a,{to:nu({},l,a.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(o),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,i=void 0===r?{}:r;iu.obj(n)&&(this.merged=nu({},n,this.merged)),iu.obj(i)&&(this.merged=nu({},this.merged,i))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,i)=>{let o=r.delay,a=ru(r,["delay"]);const l=r=>{i===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let s=iu.arr(a.to)||iu.fun(a.to);o?setTimeout((()=>{t===this.guid&&(s?this.runAsync(a,l):this.diff(a).start(l))}),o):s?this.runAsync(a,l):this.diff(a).start(l)}))}else iu.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,yu.has(t)||yu.add(t),bu||(bu=!0,gu(wu));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,yu.has(t)&&yu.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=ru(e,["delay"]);const i=this.local;let o=Promise.resolve(void 0);if(iu.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=nu({},r,su(r.to[t]));iu.arr(n.config)&&(n.config=n.config[t]),o=o.then((()=>{if(i===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(iu.fun(r.to)){let e,t=0;o=o.then((()=>r.to((n=>{const o=nu({},r,su(n));if(iu.arr(o.config)&&(o.config=o.config[t]),t++,i===this.guid)return e=new Promise((e=>this.diff(o).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}o.then(t)}diff(e){this.props=nu({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,i=t.to,o=void 0===i?{}:i,a=t.config,l=void 0===a?{}:a,s=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(s){var p=[o,r];r=p[0],o=p[1]}this.merged=nu({},r,this.merged,o),this.hasChanged=!1;let h=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],i=t[1],o=e[n]||{};const a=iu.num(i),s=iu.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!hu[i],c=iu.arr(i),p=!a&&!c&&!s;let f=iu.und(r[n])?i:r[n],g=a||c||s?i:1,v=lu(l,n);h&&(g=h.animations[n].parent);let m,x=o.parent,b=o.interpolation,y=au(h?g.getPayload():g),w=i;p&&(w=fu({range:[0,1],output:[i,i]})(1));let C=b&&b.getValue();const $=!iu.und(x)&&o.animatedValues.some((e=>!e.done)),k=!iu.equ(w,C),S=!iu.equ(w,o.previous),E=!iu.equ(v,o.config);if(d||S&&k||E){if(a||s)x=b=o.parent||new Eu(f);else if(c)x=b=o.parent||new Ou(f);else if(p){let e=o.interpolation&&o.interpolation.calc(o.parent.value);e=void 0===e||d?f:e,o.parent?(x=o.parent,x.setValue(0,!1)):x=new Eu(0);const t={output:[e,i]};o.interpolation?(b=o.interpolation,o.interpolation.updateConfig(t)):b=x.interpolate(t)}return y=au(h?g.getPayload():g),m=au(x.getPayload()),d&&!p&&x.setValue(f,!1),this.hasChanged=!0,m.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=$?e.lastVelocity:void 0,e.lastTime=$?e.lastTime:void 0,e.startTime=mu(),e.done=!1,e.animatedStyles.clear()})),lu(u,n)&&x.setValue(p?g:i,!1),nu({},e,{[n]:nu({},o,{name:n,parent:x,interpolation:b,animatedValues:m,toValues:y,previous:w,config:v,fromValues:au(x.getValue()),immediate:lu(u,n),initialVelocity:ou(v.velocity,0),clamp:ou(v.clamp,!1),precision:ou(v.precision,.01),tension:ou(v.tension,170),friction:ou(v.friction,26),mass:ou(v.mass,1),duration:v.duration,easing:ou(v.easing,(e=>e)),decay:v.decay})})}return k?e:(p&&(x.setValue(1,!1),b.updateConfig({output:[w,w]})),x.done=!0,this.hasChanged=!0,nu({},e,{[n]:nu({},e[n],{previous:w})}))}),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 Pu=e=>{const t=iu.fun(e),n=((e,t)=>{const n=J(!1),r=J(),i=iu.fun(t),o=ee((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const o=new Lu,a=i?lu(t,r,o):t[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o})),n]}),[e]),a=o[0],l=o[1];r.current=a,re(l,(()=>({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 s=ee((()=>e=>r.current.map(((t,n)=>{t.update(i?lu(e,n,t):e[n]),l||t.start()}))),[e]);X((()=>{n.current?i||s(t):l||r.current.forEach((e=>e.start()))})),X((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return i?[c,s,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r};class Tu extends uu{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof cu||(e=pu.transform(e)),this.payload=e}}const _u={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},Mu="[-+]?\\d*\\.?\\d+",Du=Mu+"%";function Nu(){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 Vu=new RegExp("rgb"+Nu(Mu,Mu,Mu)),ju=new RegExp("rgba"+Nu(Mu,Mu,Mu,Mu)),Iu=new RegExp("hsl"+Nu(Mu,Du,Du)),Au=new RegExp("hsla"+Nu(Mu,Du,Du,Mu)),zu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Hu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Bu=/^#([0-9a-fA-F]{6})$/,Fu=/^#([0-9a-fA-F]{8})$/;function Zu(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 Wu(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Zu(i,r,e+1/3),a=Zu(i,r,e),l=Zu(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function qu(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Gu(e){return(parseFloat(e)%360+360)%360/360}function Uu(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Xu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Yu(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Bu.exec(e))?parseInt(t[1]+"ff",16)>>>0:_u.hasOwnProperty(e)?_u[e]:(t=Vu.exec(e))?(qu(t[1])<<24|qu(t[2])<<16|qu(t[3])<<8|255)>>>0:(t=ju.exec(e))?(qu(t[1])<<24|qu(t[2])<<16|qu(t[3])<<8|Uu(t[4]))>>>0:(t=zu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Fu.exec(e))?parseInt(t[1],16)>>>0:(t=Hu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Iu.exec(e))?(255|Wu(Gu(t[1]),Xu(t[2]),Xu(t[3])))>>>0:(t=Au.exec(e))?(Wu(Gu(t[1]),Xu(t[2]),Xu(t[3]))|Uu(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 Ku=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ju=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Qu=new RegExp(`(${Object.keys(_u).join("|")})`,"g");let ep={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 tp=["Webkit","Ms","Moz","O"];function np(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ep.hasOwnProperty(e)&&ep[e]?(""+t).trim():t+"px"}ep=Object.keys(ep).reduce(((e,t)=>(tp.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),ep);const rp={};var ip;vu=e=>new Tu(e),ip=e=>{const t=e.output.map((e=>e.replace(Ju,Yu))).map((e=>e.replace(Qu,Yu))),n=t[0].match(Ku).map((()=>[]));t.forEach((e=>{e.match(Ku).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Ku).map(((t,r)=>Cu(nu({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Ku,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`))}},fu=ip,hu=_u,function(e,t){pu={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,o=t.children,a=t.scrollTop,l=t.scrollLeft,s=ru(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=np(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in s){const n=c?t:rp[t]||(rp[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));var op;const ap=(op=e=>G(((t,n)=>{const r=function(){const e=U(!1)[1];return te((()=>e((e=>!e))),[])}(),i=J(!0),o=J(null),a=J(null),l=te((e=>{const t=o.current;o.current=new xu(e,(()=>{let e=!1;a.current&&(e=pu.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);X((()=>()=>{i.current=!1,o.current&&o.current.detach()}),[]),re(n,(()=>(e=>e.current)(a))),l(t);const s=o.current.getValue();s.scrollTop,s.scrollLeft;const c=ru(s,["scrollTop","scrollLeft"]),d=(u=e,!iu.fun(u)||u.prototype instanceof q.Component?e=>a.current=function(e,t){return t&&(iu.fun(t)?t(e):iu.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return q.createElement(e,nu({},c,{ref:d}))})),e=>(iu.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=op(n),e}),op))(["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 lp(e,t){return e.map((function(e,n){return e+t[n]}))}function sp(e,t){return e.map((function(e,n){return e-t[n]}))}function cp(e){return Math.hypot.apply(Math,e)}function dp(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function up(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 pp(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?-up(t-e,n-t,r)+t:e>n?+up(e-n,n-t,r)+n:e}function hp(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 fp(){return fp=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},fp.apply(this,arguments)}function gp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function vp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mp(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 xp(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 mp(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)?mp(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 bp(){}function yp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?bp:1===t.length?t[0]:function(){for(var e,n,r=xp(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function wp(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 Cp(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 $p(e,t){void 0===e&&(e={});for(var n={},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],l=o[1];switch(typeof l){case"function":n[a]=l.call(n,e[a],a,e);break;case"object":n[a]=$p(e[a],l);break;case"boolean":l&&(n[a]=e[a])}}return n}var kp=fp({},{threshold:function(e){return void 0===e&&(e=0),wp(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return wp(.15);case!1:return wp(0);default:return wp(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:wp(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 kp.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,i=t.right,o=void 0===i?1/0:i,a=t.top,l=void 0===a?-1/0:a,s=t.bottom;return[[r,o],[l,void 0===s?1/0:s]]}}),Sp="undefined"!=typeof window&&window.document&&window.document.createElement,Ep={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=Sp?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,i=t.capture;return{passive:r,capture:void 0!==i&&i}}},Op=fp({},kp,{threshold:function(e,t,n){var r=n.filterTaps,i=void 0!==r&&r,o=n.lockDirection,a=void 0!==o&&o,l=n.axis,s=wp(e,i?3:a||(void 0===l?void 0:l)?1:0);return this.filterTaps=i||s[0]+s[1]>0,s},swipeVelocity:function(e){return void 0===e&&(e=.5),wp(e)},swipeDistance:function(e){return void 0===e&&(e=60),wp(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function Rp(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["domTarget","eventOptions","window","enabled"]),a=function(e){return void 0===e&&(e={}),$p(e,Ep)}({domTarget:t,eventOptions:n,window:r,enabled:i});return a.drag=function(e){return void 0===e&&(e={}),$p(e,Op)}(o),a}function Lp(e){return fp({_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:bp,canceled:!1,memo:void 0,args:void 0},e)}function Pp(){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:Lp({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:Lp({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:Lp({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:Lp({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:Lp({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var Tp=new Map,_p=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 i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(o))},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 i=fp({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),o=n.handler(i);return n.state.memo=void 0!==o?o:n.state.memo,n.state._active||n.clean(),i}}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,i=t.rubberband,o=t.threshold,a=this.state,l=a._bounds,s=a._initial,c=a._active,d=a._intentional,u=a.lastOffset,p=a.movement,h=this.getInternalMovement(e,this.state),f=!1===d[0]?Mp(h[0],o[0]):d[0],g=!1===d[1]?Mp(h[1],o[1]):d[1],v=this.checkIntentionality([f,g],h);if(v._blocked)return fp({},v,{_movement:h,delta:[0,0]});var m,x,b,y,w=v._intentional,C=h;(!1!==w[0]&&!1===d[0]&&(x=Cp(n,this.state),m=Cp(r,this.state),s[0]=x[0],l[0]=m[0]),!1!==w[1]&&!1===d[1])&&(x=null!=(b=x)?b:Cp(n,this.state),m=null!=(y=m)?y:Cp(r,this.state),s[1]=x[1],l[1]=m[1]);var $=[!1!==w[0]?h[0]-w[0]:s[0],!1!==w[1]?h[1]-w[1]:s[1]],k=lp($,u),S=c?i:[0,0];return $=Dp(l,lp($,s),S),fp({},v,{intentional:!1!==w[0]||!1!==w[1],_initial:s,_movement:C,movement:$,values:e,offset:Dp(l,k,S),delta:sp($,p)})},t.clean=function(){this.clearTimeout()},hp(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 Mp(e,t){return Math.abs(e)>=t&&dp(e)*t}function Dp(e,t,n){var r=t[0],i=t[1],o=n[0],a=n[1],l=e[0],s=l[0],c=l[1],d=e[1],u=d[0],p=d[1];return[pp(r,s,c,o),pp(i,u,p,a)]}function Np(e,t,n){var r=e.state,i=e.args,o=t.timeStamp,a=t.type,l=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,args:i,previous:l}}function Vp(e,t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.call.apply(e,[this,fp({},t,{event:n})].concat(i))}}var jp=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o,a=xp(t.classes);!(o=a()).done;){new(0,o.value)(t,r).addBindings(e)}for(var l=0,s=Object.entries(t.nativeRefs);l<s.length;l++){var c=s[l];zp(e,c[0],Vp(c[1],fp({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=Ap(n);if(!i)throw new Error("domTarget must be defined");var o=n.eventOptions;Bp(i,Ip(r),o);for(var a=0,l=Object.entries(t);a<l.length;a++){var s=l[a],c=s[0],d=s[1],u=c.slice(2).toLowerCase();r.push([u,yp.apply(void 0,d)])}Hp(i,r,o)}(t,e):function(e,t){for(var n=e.config,r={},i=n.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var l=a[o],s=l[0],c=l[1],d=Array.isArray(c)?c:[c];r[s+i]=yp.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Ap(t.config),n=t.config.eventOptions;e&&Bp(e,Ip(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,i=e.windowListeners;if(!n)return;for(var o in i){Bp(n,i[o],r)}e.windowListeners={}}(t)},this.state=Pp(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function Ip(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Ap(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function zp(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function Hp(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=xp(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.addEventListener(a,l,n)}}function Bp(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=xp(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.removeEventListener(a,l,n)}}function Fp(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(Tp.get("drag"));e.wheel&&t.add(Tp.get("wheel"));e.scroll&&t.add(Tp.get("scroll"));e.move&&t.add(Tp.get("move"));e.pinch&&t.add(Tp.get("pinch"));e.hover&&t.add(Tp.get("hover"));return t}(e),i=q.useMemo((function(){return new jp(r)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=n,q.useEffect(i.effect,[]),i.config.domTarget?Zp:i.bind}function Zp(){"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`.")}function Wp(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function qp(e){var t="buttons"in e?e.buttons:0,n=Wp(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 Gp(e){var t=Wp(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Up=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,i=e.windowListeners;void 0===n&&(n=[]),r.window&&(Bp(r.window,i[t],r.eventOptions),Hp(r.window,i[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(vp(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=qp(e);if(n.down){t.updateSharedState(n);var r=Gp(e),i=t.getKinematics(r,e),o=Np(vp(t),e),a=t.state._isTap,l=cp(i._movement);a&&l>=3&&(a=!1),t.updateGestureState(fp({},o,i,{_isTap:a})),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,i=r[0],o=r[1],a=t.state.movement,l=a[0],s=a[1],c=t.state._intentional,d=c[0],u=c[1],p=t.config.swipeVelocity,h=p[0],f=p[1],g=t.config.swipeDistance,v=g[0],m=g[1],x=fp({},Np(vp(t),e),t.getMovement(t.state.values)),b=[0,0];x.elapsedTime<220&&(!1!==d&&Math.abs(i)>h&&Math.abs(l)>v&&(b[0]=dp(i)),!1!==u&&Math.abs(o)>f&&Math.abs(s)>m&&(b[1]=dp(o))),t.updateGestureState(fp({},x,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(vp(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(Bp(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}gp(t,e);var n=t.prototype;return n.startDrag=function(e){var t=Gp(e);this.updateSharedState(qp(e)),this.updateGestureState(fp({},function(e,t,n){var r=e.state.offset,i=n.timeStamp;return fp({},Pp()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:i})}(this,t,e),Np(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(zp(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&zp(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}gp(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return sp(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],i=n[1],o=this.state.axis||(r>i?"x":r<i?"y":void 0);return this.config.axis||this.config.lockDirection?o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e["x"===o?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}:{_intentional:e,_blocked:!1,axis:o}},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=cp(t),i=0===r?0:1/r,o=0===n?0:1/n,a=o*r,l=t.map((function(e){return o*e})),s=t.map((function(e){return i*e}));return{velocities:l,velocity:a,distance:cp(e),direction:s}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(_p));function Xp(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,i,o;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!Xp(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(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Xp(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(o=e.entries();!(r=o.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=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===i[r]&&e.$$typeof||Xp(e[i[r]],t[i[r]])))return!1;return!0}return e!=e&&t!=t}function Yp(e,t){try{return Xp(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 Kp(e,t){void 0===t&&(t={}),Tp.set("drag",Up);var n=J();return n.current||(n.current=function(e,t){var n,r,i=[],o=!1;return function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return o&&n===this&&t(l,i)||(r=e.apply(this,l),o=!0,n=this,i=l),r}}(Rp,Yp)),Fp({drag:e},n.current(t))}
|
|
2453
|
+
***************************************************************************** */var Gs,Us,Xs=function(){return Xs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Xs.apply(this,arguments)};function Ys(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ks(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 Js(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Qs(e,t,n){if(2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(Gs||(Gs={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(Us||(Us={}));var ec=Gs.Start,tc=Gs.Stop,nc=Gs.Raise,rc=Gs.Send,ic=Gs.Cancel,oc=Gs.NullEvent,ac=Gs.Assign;Gs.After,Gs.DoneState;var lc=Gs.Log,sc=Gs.Init,cc=Gs.Invoke;Gs.ErrorExecution;var dc,uc=Gs.ErrorPlatform,pc=Gs.ErrorCustom,hc=Gs.Update,fc=Gs.Choose,gc=Gs.Pure,vc={},mc="xstate.guard",xc="production"===process.env.NODE_ENV;function bc(e,t,n){void 0===n&&(n=".");var r=Cc(e,n),i=Cc(t,n);return Ic(i)?!!Ic(r)&&i===r:Ic(r)?r in i:Object.keys(r).every((function(e){return e in i&&bc(r[e],i[e])}))}function yc(e){try{return Ic(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 wc(e,t){try{return Vc(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function Cc(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:Vc(e)?$c(e):"string"!=typeof e?e:$c(wc(e,t));var n}function $c(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 kc(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];n[o]=t(e[o],o,e,i)}return n}function Sc(e,t,n){var r,i,o={};try{for(var a=Ks(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];n(c)&&(o[s]=t(c,s,e))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var Ec=function(e){return function(t){var n,r,i=t;try{for(var o=Ks(e),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function Oc(e){return e?Ic(e)?[[e]]:Rc(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?Oc(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function Rc(e){var t;return(t=[]).concat.apply(t,Qs([],Js(e),!1))}function Lc(e){return Vc(e)?e:[e]}function Pc(e){return void 0===e?[]:Lc(e)}function Tc(e,t,n){var r,i;if(jc(e))return e(t,n.data);var o={};try{for(var a=Ks(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];jc(c)?o[s]=c(t,n.data):o[s]=c}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function _c(e){return e instanceof Promise||!(null===e||!jc(e)&&"object"!=typeof e||!jc(e.then))}function Mc(e,t){return kc(e.states,(function(e,n){if(e){var r=(Ic(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:Mc(e,r)}}}))}function Dc(e,t,n,r){xc||Nc(!!e,"Attempting to update undefined context");var i=e?n.reduce((function(e,n){var i,o,a=n.assignment,l={state:r,action:n,_event:t},s={};if(jc(a))s=a(e,t.data,l);else try{for(var c=Ks(Object.keys(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=a[u];s[u]=jc(p)?p(e,t.data,l):p}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return Object.assign({},e,s)}),e):e;return i}var Nc=function(){};function Vc(e){return Array.isArray(e)}function jc(e){return"function"==typeof e}function Ic(e){return"string"==typeof e}function Ac(e,t){if(e)return Ic(e)?{type:mc,name:e,predicate:t?t[e]:void 0}:jc(e)?{type:mc,name:e.name,predicate:e}:e}xc||(Nc=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 zc=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Hc(e){return!!e&&"__xstatenode"in e}function Bc(e,t){return Ic(e)||"number"==typeof e?Xs({type:e},t):e}function Fc(e,t){if(!Ic(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=Bc(e);return Xs({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function Zc(e,t){return Lc(t).map((function(t){return void 0===t||"string"==typeof t||Hc(t)?{target:t,event:e}:Xs(Xs({},t),{event:e})}))}function Wc(e,t,n,r,i){var o=e.options.guards,a={state:i,cond:t,_event:r};if(t.type===mc)return((null==o?void 0:o[t.name])||t.predicate)(n,r.data,a);var l=null==o?void 0:o[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(n,r.data,a)}function qc(e){return"string"==typeof e?{type:e}:e}function Gc(e,t,n){var r=function(){},i="object"==typeof e,o=i?e:null;return{next:((i?e.next:e)||r).bind(o),error:((i?e.error:t)||r).bind(o),complete:((i?e.complete:n)||r).bind(o)}}function Uc(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Xc(e){return(e.type===nc||e.type===rc&&e.to===Us.Internal)&&"number"!=typeof e.delay}(dc={})[zc]=function(){return this},dc[Symbol.observable]=function(){return this};var Yc=Fc({type:sc});function Kc(e,t){return t&&t[e]||void 0}function Jc(e,t){var n;if(Ic(e)||"number"==typeof e)n=jc(r=Kc(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(jc(e))n={type:e.name||e.toString(),exec:e};else{var r;if(jc(r=Kc(e.type,t)))n=Xs(Xs({},e),{exec:r});else if(r){var i=r.type||e.type;n=Xs(Xs(Xs({},r),e),{type:i})}else n=e}return n}var Qc=function(e,t){return e?(Vc(e)?e:[e]).map((function(e){return Jc(e,t)})):[]};function ed(e){var t=Jc(e);return Xs(Xs({id:Ic(e)?e:t.id},t),{type:t.type})}function td(e,t){var n="".concat(Gs.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function nd(e,t){var n="".concat(Gs.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function rd(e,t){var n="".concat(Gs.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function id(e,t,n,r,i,o,a){void 0===a&&(a=!1);var l=a?[]:function(e){var t,n,r=[];try{for(var i=Ks(e),o=i.next();!o.done;o=i.next())for(var a=o.value,l=0;l<a.actions.length;)a.actions[l].type!==ac?l++:(r.push(a.actions[l]),a.actions.splice(l,1))}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(i),s=l.length?Dc(n,r,l,t):n,c=a?[n]:void 0,d=[];function u(i,l){var u;switch(l.type){case nc:var p=function(e,t,n,r){var i,o={_event:n},a=Fc(jc(e.event)?e.event(t,n.data,o):e.event);if(Ic(e.delay)){var l=r&&r[e.delay];i=jc(l)?l(t,n.data,o):l}else i=jc(e.delay)?e.delay(t,n.data,o):e.delay;return Xs(Xs({},e),{type:nc,_event:a,delay:i})}(l,s,r,e.options.delays);return o&&"number"==typeof p.delay&&o(p,s,r),p;case rc:var h=function(e,t,n,r){var i,o={_event:n},a=Fc(jc(e.event)?e.event(t,n.data,o):e.event);if(Ic(e.delay)){var l=r&&r[e.delay];i=jc(l)?l(t,n.data,o):l}else i=jc(e.delay)?e.delay(t,n.data,o):e.delay;var s=jc(e.to)?e.to(t,n.data,o):e.to;return Xs(Xs({},e),{to:s,_event:a,event:a.data,delay:i})}(l,s,r,e.options.delays);if(!xc){var f=l.delay;Nc(!Ic(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return o&&h.to!==Us.Internal&&("entry"===i?d.push(h):o(h,s,r)),h;case lc:var g=function(e,t,n){return Xs(Xs({},e),{value:Ic(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(l,s,r);return null==o||o(g,s,r),g;case fc:if(!(b=null===(u=l.conds.find((function(n){var i=Ac(n.cond,e.options.guards);return!i||Wc(e,i,s,r,o?void 0:t)})))||void 0===u?void 0:u.actions))return[];var v=Js(id(e,t,s,r,[{type:i,actions:Qc(Pc(b),e.options.actions)}],o,a),2),m=v[0],x=v[1];return s=x,null==c||c.push(s),m;case gc:var b;if(!(b=l.get(s,r.data)))return[];var y=Js(id(e,t,s,r,[{type:i,actions:Qc(Pc(b),e.options.actions)}],o,a),2),w=y[0],C=y[1];return s=C,null==c||c.push(s),w;case tc:g=function(e,t,n){var r=jc(e.activity)?e.activity(t,n.data):e.activity,i="string"==typeof r?{id:r}:r;return{type:Gs.Stop,activity:i}}(l,s,r);return null==o||o(g,n,r),g;case ac:s=Dc(s,r,[l],o?void 0:t),null==c||c.push(s);break;default:var $=Jc(l,e.options.actions),k=$.exec;if(o)o($,s,r);else if(k&&c){var S=c.length-1,E=Xs(Xs({},$),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,Qs([c[S]],Js(t),!1))}});$=E}return $}}var p=Rc(i.map((function(e){var t,n,i=[];try{for(var a=Ks(e.actions),l=a.next();!l.done;l=a.next()){var c=l.value,p=u(e.type,c);p&&(i=i.concat(p))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return d.forEach((function(e){o(e,s,r)})),d.length=0,i})));return[p,s]}var od=function(e,t){return t(e)};function ad(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[zc]=function(){return this},t}function ld(e,t,n){var r=ad(t);if(r.deferred=!0,Hc(e)){var i=r.state=od(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return i}}return r}var sd=function(e){return"atomic"===e.type||"final"===e.type};function cd(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function dd(e){return cd(e).filter((function(e){return"history"!==e.type}))}function ud(e){var t=[e];return sd(e)?t:t.concat(Rc(dd(e).map(ud)))}function pd(e,t){var n,r,i,o,a,l,s,c,d=fd(new Set(e)),u=new Set(t);try{for(var p=Ks(u),h=p.next();!h.done;h=p.next())for(var f=($=h.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var g=fd(u);try{for(var v=Ks(u),m=v.next();!m.done;m=v.next()){if("compound"!==($=m.value).type||g.get($)&&g.get($).length){if("parallel"===$.type)try{for(var x=(a=void 0,Ks(dd($))),b=x.next();!b.done;b=x.next()){var y=b.value;u.has(y)||(u.add(y),d.get(y)?d.get(y).forEach((function(e){return u.add(e)})):y.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}else d.get($)?d.get($).forEach((function(e){return u.add(e)})):$.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var w=Ks(u),C=w.next();!C.done;C=w.next()){var $;for(f=($=C.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){s={error:e}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(s)throw s.error}}return u}function hd(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(sd(r))return r.key}var i={};return n.forEach((function(e){i[e.key]=hd(e,t)})),i}function fd(e){var t,n,r=new Map;try{for(var i=Ks(e),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function gd(e,t){return hd(e,fd(pd([e],t)))}function vd(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function md(e,t){return"compound"===t.type?dd(t).some((function(t){return"final"===t.type&&vd(e,t)})):"parallel"===t.type&&dd(t).every((function(t){return md(e,t)}))}function xd(e){return new Set(Rc(e.map((function(e){return e.tags}))))}function bd(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(Ic(e)||Ic(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return bd(e[n],t[n])}))}var yd=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=vc,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||vc,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 Qs([],Js(new Set(Rc(Qs([],Js(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:Yc,_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=Yc;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="."),Ic(e))return[e];var r=Object.keys(e);return r.concat.apply(r,Qs([],Js(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=Ys(e,["configuration","transitions","tags","machine"]);return Xs(Xs({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return bc(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;xc&&Nc(!!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}(),wd={deferEvents:!1},Cd=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=Xs(Xs({},wd),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}(),$d=new Map,kd=0,Sd=function(){return"x:".concat(kd++)},Ed=function(e,t){return $d.set(e,t),e},Od=function(e){return $d.get(e)},Rd=function(e){$d.delete(e)};function Ld(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(xc||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 Pd(e){if(Ld()){var t=function(){var e=Ld();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function Td(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,i=[],o=!1,a=function(e){var t;return Xs(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[zc]=function(){return this},t),e)}({id:t.id,send:function(t){i.push(t),function(){if(!o){for(o=!0;i.length>0;){var t=i.shift();n=e.transition(n,t,l),r.forEach((function(e){return e.next(n)}))}o=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,i){var o=Gc(e,t,i);return r.add(o),o.next(n),{unsubscribe:function(){r.delete(o)}}}}),l={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(l):n,a}var _d,Md={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(_d||(_d={}));var Dd=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=_d.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(Vc(e))return r.batch(e),r.state;var n=Fc(Bc(e,t));if(r.status===_d.Stopped)return xc||Nc(!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!==_d.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 i,o=r.parent&&(t===Us.Parent||r.parent.id===t),a=o?r.parent:Ic(t)?t===Us.Internal?r:r.children.get(t)||Od(t):(i=t)&&"function"==typeof i.send?t:void 0;if(a)if("machine"in a){if(r.status!==_d.Stopped||r.parent!==a||r.state.done){var l=Xs(Xs({},e),{name:e.name===pc?"".concat(rd(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,l]):a.send(l)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else{if(!o)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));xc||Nc(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,i){void 0===i&&(i=r.machine.options.actions);var o=e.exec||Kc(e.type,i),a=jc(o)?o:o?o.exec:e.exec;if(a)try{return a(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 nc:var l=e;r.defer(l);break;case rc:var s=e;if("number"==typeof s.delay)return void r.defer(s);s.to?r.sendTo(s._event,s.to,n===Yc):r.send(s._event);break;case ic:r.cancel(e.sendId);break;case ec:if(r.status!==_d.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===Gs.Invoke){var d=qc(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,p=c.id,h=c.data;xc||Nc(!("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(xc||Nc(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var g=h?Tc(h,t,n):void 0;if("string"==typeof u)return;var v=jc(u)?u(t,n.data,{data:g,src:d,meta:c.meta}):u;if(!v)return;var m=void 0;Hc(v)&&(v=g?v.withContext(g):v,m={autoForward:f}),r.spawn(v,p,m)}else r.spawnActivity(c);break;case tc:r.stopChild(e.activity.id);break;case lc:var x=e,b=x.label,y=x.value;b?r.logger(b,y):r.logger(y);break;default:xc||Nc(!1,"No implementation found for action type '".concat(e.type,"'"))}};var i=Xs(Xs({},e.defaultOptions),n),o=i.clock,a=i.logger,l=i.parent,s=i.id,c=void 0!==s?s:t.id;this.id=c,this.logger=a,this.clock=o,this.parent=l,this.options=i,this.scheduler=new Cd({deferEvents:this.options.deferEvents}),this.sessionId=Sd()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:od(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return xc||Nc(this.status!==_d.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 i=Ks(e.actions),o=i.next();!o.done;o=i.next()){var a=o.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,i,o,a,l,s,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==Yc||!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 p=Ks(this.eventListeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=Ks(this.listeners),g=f.next();!g.done;g=f.next()){(0,g.value)(e,e.event)}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}try{for(var v=Ks(this.contextListeners),m=v.next();!m.done;m=v.next()){(0,m.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=v.return)&&l.call(v)}finally{if(a)throw a.error}}if(this.state.done){var x=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),b=x&&x.doneData?Tc(x.doneData,e.context,t):void 0;this._doneEvent=nd(this.id,b);try{for(var y=Ks(this.doneListeners),w=y.next();!w.done;w=y.next()){(0,w.value)(this._doneEvent)}}catch(e){s={error:e}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(s)throw s.error}}this._stop(),this._stopChildren(),Rd(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===_d.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,i=Gc(e,t,n);this.listeners.add(i.next),this.status!==_d.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===_d.Stopped?i.complete():(this.onDone(o),this.onStop(o)),{unsubscribe:function(){r.listeners.delete(i.next),r.doneListeners.delete(o),r.stopListeners.delete(o)}}},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===_d.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===_d.Running)return this;this.machine._init(),Ed(this.sessionId,this),this.initialized=!0,this.status=_d.Running;var n=void 0===e?this.initialState:od(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(yd.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Yc)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){jc(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,i,o,a,l,s,c;try{for(var d=Ks(this.listeners),u=d.next();!u.done;u=d.next()){var p=u.value;this.listeners.delete(p)}}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 h=Ks(this.stopListeners),f=h.next();!f.done;f=h.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var g=Ks(this.contextListeners),v=g.next();!v.done;v=g.next()){p=v.value;this.contextListeners.delete(p)}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var m=Ks(this.doneListeners),x=m.next();!x.done;x=m.next()){p=x.value;this.doneListeners.delete(p)}}catch(e){a={error:e}}finally{try{x&&!x.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=_d.Stopped,this._initialState=void 0;try{for(var b=Ks(Object.keys(this.delayedEventsMap)),y=b.next();!y.done;y=b.next()){var w=y.value;this.clock.clearTimeout(this.delayedEventsMap[w])}}catch(e){s={error:e}}finally{try{y&&!y.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}this.scheduler.clear(),this.scheduler=new Cd({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=Fc({type:"xstate.stop"}),r=od(e,(function(){var t=Rc(Qs([],Js(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Qc(t.onExit,e.machine.options.actions)}))),r=Js(id(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),i=r[0],o=r[1],a=new yd({value:e.state.value,context:o,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter((function(e){return!Xc(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a}));e.update(r,n),e._stopChildren(),Rd(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===_d.NotStarted&&this.options.deferEvents)xc||Nc(!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!==_d.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,i,o=t.state,a=!1,l=[],s=function(e){var r=Fc(e);t.forward(r),o=od(t,(function(){return t.machine.transition(o,r,void 0,n||void 0)})),l.push.apply(l,Qs([],Js(t.machine.config.predictableActionArguments?o.actions:o.actions.map((function(e){return function(e,t){var n=e.exec;return Xs(Xs({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,o)}))),!1)),a=a||!!o.changed};try{for(var c=Ks(e),d=c.next();!d.done;d=c.next()){s(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}o.changed=a,o.actions=l,t.update(o,Fc(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=Fc(e);if(0===r.name.indexOf(uc)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(uc)})))throw r.data.data;return od(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=Ks(this.forwardTo),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.children.get(o);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{i&&!i.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),jc(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==_d.Running)return ld(e,t);if(_c(e))return this.spawnPromise(Promise.resolve(e),t);if(jc(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(i=e)&&"id"in i)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&jc(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(Hc(e))return this.spawnMachine(e,Xs(Xs({},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,i},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var i=new e(t,Xs(Xs({},this.options),{parent:this,id:n.id||t.id})),o=Xs(Xs({},Md),n);o.sync&&i.onTransition((function(e){r.send(hc,{state:e,id:i.id})}));var a=i;return this.children.set(i.id,a),o.autoForward&&this.forwardTo.add(i.id),i.onDone((function(e){r.removeChild(i.id),r.send(Fc(e,{origin:i.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=Td(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,i=this,o=!1;e.then((function(e){o||(r=e,i.removeChild(t),i.send(Fc(nd(t,e),{origin:t})))}),(function(e){if(!o){i.removeChild(t);var n=rd(t,e);try{i.send(Fc(n,{origin:t}))}catch(r){!function(e,t,n){if(!xc){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 i=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(i))}}}(e,r,t),i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var i=Gc(t,n,r),o=!1;return e.then((function(e){o||(i.next(e),o||i.complete())}),(function(e){o||i.error(e)})),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[zc]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,i,o=this,a=!1,l=new Set,s=new Set;try{i=e((function(e){r=e,s.forEach((function(t){return t(e)})),a||o.send(Fc(e,{origin:t}))}),(function(e){l.add(e)}))}catch(e){this.send(rd(t,e))}if(_c(i))return this.spawnPromise(i,t);var c=((n={id:t,send:function(e){return l.forEach((function(t){return t(e)}))},subscribe:function(e){var t=Gc(e);return s.add(t.next),{unsubscribe:function(){s.delete(t.next)}}},stop:function(){a=!0,jc(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[zc]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,i=this,o=e.subscribe((function(e){r=e,i.send(Fc(e,{origin:t}))}),(function(e){i.removeChild(t),i.send(Fc(rd(t,e),{origin:t}))}),(function(){i.removeChild(t),i.send(Fc(nd(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[zc]=function(){return this},n);return this.children.set(t,a),a},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 xc||Nc(!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}}})[zc]=function(){return this},n))},e.prototype.attachDev=function(){var e=Ld();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(Xs(Xs({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:Xs({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}Pd(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[zc]=function(){return this},e.prototype.getSnapshot=function(){return this.status===_d.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=Nd,e}();function Nd(e,t){return new Dd(e,t)}function Vd(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function jd(e){return Xs(Xs({type:cc},e),{toJSON:function(){e.onDone,e.onError;var t=Ys(e,["onDone","onError"]);return Xs(Xs({},t),{type:cc,src:Vd(e.src)})}})}var Id="",Ad="*",zd={},Hd=function(e){return"#"===e[0]},Bd=function(){function e(t,n,r,i){void 0===r&&(r="context"in t?t.context:void 0);var o,a=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==i?void 0:i.parent,this.key=this.config.key||(null==i?void 0:i.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||Qs([this.machine.key],Js(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!==(o=this.config.schema)&&void 0!==o?o:{},this.description=this.config.description,xc||Nc(!("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?kc(this.config.states,(function(t,n){var r,i=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,Xs(((r={})[i.id]=i,r),i.idMap)),i})):zd;var l=0;!function e(t){var n,r;t.order=l++;try{for(var i=Ks(cd(t)),o=i.next();!o.done;o=i.next()){e(o.value)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}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===Id})):Id in this.config.on),this.strict=!!this.config.strict,this.onEntry=Pc(this.config.entry||this.config.onEntry).map((function(e){return Jc(e)})),this.onExit=Pc(this.config.exit||this.config.onExit).map((function(e){return Jc(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=Pc(this.config.invoke).map((function(e,t){var n,r;if(Hc(e)){var i=Uc(a.id,t);return a.machine.options.services=Xs(((n={})[i]=e,n),a.machine.options.services),jd({src:i,id:i})}if(Ic(e.src)){i=e.id||Uc(a.id,t);return jd(Xs(Xs({},e),{id:i,src:e.src}))}if(Hc(e.src)||jc(e.src)){i=e.id||Uc(a.id,t);return a.machine.options.services=Xs(((r={})[i]=e.src,r),a.machine.options.services),jd(Xs(Xs({id:i},e),{src:i}))}var o=e.src;return jd(Xs(Xs({id:Uc(a.id,t)},e),{src:o}))})),this.activities=Pc(this.config.activities).concat(this.invoke).map((function(e){return ed(e)})),this.transition=this.transition.bind(this),this.tags=Pc(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||ud(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,o=r.activities,a=r.guards,l=r.services,s=r.delays;return new e(this.config,{actions:Xs(Xs({},i),t.actions),activities:Xs(Xs({},o),t.activities),guards:Xs(Xs({},a),t.guards),services:Xs(Xs({},l),t.services),delays:Xs(Xs({},s),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 jc(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:kc(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===Id,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===Ad}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(Gs.After,"(").concat(e,")").concat(n)}(jc(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:rc,event:jc(e)?e:Bc(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:jc(e)?e.name:yc(e)}}(r,{delay:t})),e.onExit.push({type:ic,sendId:r}),r},r=Vc(t)?t.map((function(e,t){var r=n(e.delay,t);return Xs(Xs({},e),{event:r})})):Rc(Object.keys(t).map((function(e,r){var i=t[e],o=Ic(i)?{target:i}:i,a=isNaN(+e)?e:+e,l=n(a,r);return Pc(o).map((function(e){return Xs(Xs({},e),{event:l,delay:a})}))})));return r.map((function(t){var n=t.delay;return Xs(Xs({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof yd?e.value:Cc(e,this.delimiter);if(Ic(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((t={})[r]=i,t)):[this,this.states[r]]}var o=Object.keys(r),a=[this];return a.push.apply(a,Qs([],Js(Rc(o.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=yc(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof yd?e:yd.create(e),n=Array.from(pd([],this.getStateNodes(t.value)));return new yd(Xs(Xs({},t),{value:this.resolve(t.value),configuration:n,done:md(n,this),tags:xd(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),i=this.getStateNode(r[0])._transition(e[r[0]],t,n);return i&&i.transitions.length?i:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,i,o={};try{for(var a=Ks(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];if(c){var d=this.getStateNode(s)._transition(c,t,n);d&&(o[s]=d)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var u=Object.keys(o).map((function(e){return o[e]})),p=Rc(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=Rc(Object.keys(o).map((function(e){return o[e].configuration})));return{transitions:p,exitSet:Rc(u.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:Rc(Object.keys(o).map((function(e){return o[e].actions})))}},e.prototype._transition=function(e,t,n){return Ic(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,Fc(t))},e.prototype.next=function(e,t){var n,r,i,o=this,a=t.name,l=[],s=[];try{for(var c=Ks(this.getCandidates(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=u.cond,h=u.in,f=e.context,g=!h||(Ic(h)&&Hd(h)?e.matches(Cc(this.getStateNodeById(h).path,this.delimiter)):bc(Cc(h,this.delimiter),Ec(this.path.slice(0,-2))(e.value))),v=!1;try{v=!p||Wc(this.machine,p,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(v&&g){void 0!==u.target&&(s=u.target),l.push.apply(l,Qs([],Js(u.actions),!1)),i=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(i){if(!s.length)return{transitions:[i],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var m=Rc(s.map((function(t){return o.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[i],exitSet:!!i.internal?[]:Rc(s.map((function(e){return o.getPotentiallyReenteringNodes(e)}))),configuration:m,source:e,actions:l}}},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,i,o,a){var l,s,c,d,u=this,p=o?pd([],this.getStateNodes(o.value)):[],h=new Set;try{for(var f=Ks(Array.from(e).sort((function(e,t){return e.order-t.order}))),g=f.next();!g.done;g=f.next()){(!vd(p,x=g.value)||vd(n.exitSet,x)||x.parent&&h.has(x.parent))&&h.add(x)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(s=f.return)&&s.call(f)}finally{if(l)throw l.error}}try{for(var v=Ks(p),m=v.next();!m.done;m=v.next()){var x;vd(e,x=m.value)&&!vd(n.exitSet,x.parent)||n.exitSet.push(x)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var b=Array.from(h).sort((function(e,t){return e.order-t.order})),y=new Set(n.exitSet),w=Rc(b.map((function(e){var t=[];if("final"!==e.type)return t;var o=e.parent;if(!o.parent)return t;t.push(td(e.id,e.doneData),td(o.id,e.doneData?Tc(e.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&dd(a).every((function(e){return md(n.configuration,e)}))&&t.push(td(a.id)),t}))),C=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=ed(e);return{type:Gs.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:Qc(a?Qs(Qs([],Js(t),!1),Js(n),!1):Qs(Qs([],Js(n),!1),Js(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:w.map((function(e){return function(e,t){return{type:nc,event:"function"==typeof e?e:Bc(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),$=Array.from(y).map((function(e){return{type:"exit",actions:Qc(Qs(Qs([],Js(e.onExit),!1),Js(e.activities.map((function(e){return function(e){var t=jc(e)?e:ed(e);return{type:Gs.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:Qc(n.actions,this.machine.options.actions)}).concat(C);if(t){var k=Qc(Rc(Qs([],Js(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!Xc(e)}));return $.concat({type:"stop",actions:k})}return $},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var i,o,a=Fc(t);if(e instanceof yd)i=void 0===n?e:this.resolveState(yd.from(e,n));else{var l=Ic(e)?this.resolve($c(this.getResolvedPath(e))):this.resolve(e),s=null!=n?n:this.machine.context;i=this.resolveState(yd.from(l,s))}if(!xc&&a.name===Ad)throw new Error("An event cannot have the wildcard type ('".concat(Ad,"')"));if(this.strict&&!this.events.includes(a.name)&&(o=a.name,!/^(done|error)\./.test(o)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},d=pd([],this.getStateNodes(i.value)),u=c.configuration.length?pd(d,c.configuration):d;return c.configuration=Qs([],Js(u),!1),this.resolveTransition(c,i,i.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var i,o=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(i=e.actions).unshift.apply(i,Qs([],Js(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,i){var o,a,l,s,c=this;void 0===i&&(i=Yc);var d=e.configuration,u=!t||e.transitions.length>0,p=u?e.configuration:t?t.configuration:[],h=md(p,this),f=u?gd(this.machine,d):void 0,g=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,v=this.getActions(new Set(p),h,e,n,i,t,r),m=t?Xs({},t.activities):{};try{for(var x=Ks(v),b=x.next();!b.done;b=x.next()){var y=b.value;try{for(var w=(l=void 0,Ks(y.actions)),C=w.next();!C.done;C=w.next()){var $=C.value;$.type===ec?m[$.activity.id||$.activity.type]=$:$.type===tc&&(m[$.activity.id||$.activity.type]=!1)}}catch(e){l={error:e}}finally{try{C&&!C.done&&(s=w.return)&&s.call(w)}finally{if(l)throw l.error}}}}catch(e){o={error:e}}finally{try{b&&!b.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}var k,S,E=Js(id(this,t,n,i,v,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),O=E[0],R=E[1],L=Js(function(e,t){var n,r,i=Js([[],[]],2),o=i[0],a=i[1];try{for(var l=Ks(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(O,Xc),2),P=L[0],T=L[1],_=O.filter((function(e){var t;return e.type===ec&&(null===(t=e.activity)||void 0===t?void 0:t.type)===cc})),M=_.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var i,o=qc(e.src),a=null===(i=null==t?void 0:t.options.services)||void 0===i?void 0:i[o.type],l=e.data?Tc(e.data,n,r):void 0,s=a?ld(a,e.id,l):ad(e.id);return s.meta=e,s}(t.activity,c.machine,R,i),e}),t?Xs({},t.children):{}),D=new yd({value:f||t.value,context:R,_event:i,_sessionid:t?t._sessionid:null,historyValue:f?g?(k=g,S=f,{current:S,states:Mc(k,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?T:[],activities:f?m:t?t.activities:{},events:[],configuration:p,transitions:e.transitions,children:M,done:h,tags:xd(p),machine:this}),N=n!==R;D.changed=i.name===hc||N;var V=D.history;V&&delete V.history;var j=!h&&(this._transient||d.some((function(e){return e._transient})));if(!(u||j&&i.name!==Id))return D;var I=D;if(!h)for(j&&(I=this.resolveRaisedTransition(I,{type:oc},i,r));P.length;){var A=P.shift();I=this.resolveRaisedTransition(I,A._event,i,r)}var z=I.changed||(V?!!I.actions.length||N||typeof V.value!=typeof I.value||!bd(I.value,V.value):void 0);return I.changed=z,I.history=V,I},e.prototype.getStateNode=function(e){if(Hd(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=Hd(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&&Hd(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=wc(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||zd;switch(this.type){case"parallel":return kc(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):zd}));case"compound":if(Ic(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?kc(e,(function(e,t){return e?n.getStateNode(t).resolve(e):zd})):this.initialStateValue||{};default:return e||zd}},e.prototype.getResolvedPath=function(e){if(Hd(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 wc(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=Sc(this.states,(function(e){return e.initialStateValue||zd}),(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=sd(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=Ic(t.target)&&Hd(t.target)?$c(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 sd(this)?[this]:"compound"!==this.type||this.initial?Rc(Oc(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(xc||Nc(!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=Js(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 i=this.getStateNode(n);if("history"===i.type)return i.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:Sc(this.states,(function(t,n){if(!e)return t.historyValue();var r=Ic(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?Rc(Oc(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(e){var t,n,r=e;try{for(var a=Ks(i),l=a.next();!l.done;l=a.next()){var s=l.value;r=r[o][s]}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return Ic(a)?[n.getStateNode(a)]:Rc(Oc(a).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=Rc(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 i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=Ks(Object.keys(i)),l=a.next();!l.done;l=a.next()){var s=i[l.value];if(s.states)try{for(var c=(n=void 0,Ks(s.events)),d=c.next();!d.done;d=c.next()){var u=d.value;o.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{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(o)},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(!Ic(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 Pc(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return Ic(e)&&e[0]===t.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=Xs(Xs({},e),{actions:Qc(Pc(e.actions)),cond:Ac(e.cond,i),target:o,source:this,internal:r,eventType:e.event,toJSON:function(){return Xs(Xs({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},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 i=this.config.on,o=Ad,a=i[o],l=void 0===a?[]:a,s=Ys(i,["*"]);n=Rc(Object.keys(s).map((function(e){xc||e!==Id||Nc(!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=Zc(e,s[e]);return xc||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(Ic(e.target)||Hc(e.target))})),i=t===Id?"the transient event":"event '".concat(t,"'");Nc(!r,"One or more transitions for ".concat(i," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(Zc(Ad,l)))}else n=[];var c=this.config.always?Zc("",this.config.always):[],d=this.config.onDone?Zc(String(td(this.id)),this.config.onDone):[];xc||Nc(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=Rc(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,Qs([],Js(Zc(String(nd(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,Qs([],Js(Zc(String(rd(e.id)),e.onError)),!1)),t}))),p=this.after,h=Rc(Qs(Qs(Qs(Qs([],Js(d),!1),Js(u),!1),Js(n),!1),Js(c),!1).map((function(e){return Pc(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=Ks(p),g=f.next();!g.done;g=f.next()){var v=g.value;h.push(v)}}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return h},e}();var Fd,Zd=function(e){return{type:ac,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(Fd||(Fd={}));var Wd="undefined"!=typeof document?K:function(){};function qd(e){var t=W.useRef();return t.current||(t.current={v:e()}),t.current.v}var Gd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ud=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 Xd=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Yd=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function Kd(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function Jd(e){var t=J([]),n=J([]);Wd((function(){var r=e.subscribe((function(e){var r,i;if(e.actions.length){var o=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),a=Xd(function(e,t){var n,r,i=Gd([[],[]],2),o=i[0],a=i[1];try{for(var l=Ud(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(o,(function(e){return e.exec.__effect===Fd.Effect})),2),l=a[0],s=a[1];(r=t.current).push.apply(r,Yd([],Xd(l.map((function(t){return[t,e]}))),!1)),(i=n.current).push.apply(i,Yd([],Xd(s.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),Wd((function(){for(;n.current.length;){var e=Xd(n.current.shift(),2);Kd(e[0],e[1])}})),X((function(){for(;t.current.length;){var e=Xd(t.current.shift(),2);Kd(e[0],e[1])}}))}var Qd=function(){return Qd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qd.apply(this,arguments)},eu=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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},tu=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};var nu=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function ru(e,t){void 0===t&&(t={});var n=te((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&a(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=qd((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=tu(U(r),1)[0];e!==i&&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 o=t.context,a=t.guards,l=t.actions,s=t.activities,c=t.services,d=t.delays,u=t.state,p=eu(t,["context","guards","actions","activities","services","delays","state"]),h=qd((function(){var e={context:o,guards:a,actions:l,activities:s,services:c,delays:d};return Nd(r.withConfig(e,(function(){return Qd(Qd({},r.context),o)})),Qd({deferEvents:!0},p))}));return Wd((function(){var e;return n&&(e=h.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]),Wd((function(){return h.start(u?yd.create(u):void 0),function(){h.stop()}}),[]),Wd((function(){Object.assign(h.machine.options.actions,l),Object.assign(h.machine.options.guards,a),Object.assign(h.machine.options.activities,s),Object.assign(h.machine.options.services,c),Object.assign(h.machine.options.delays,d)}),[l,a,s,c,d]),Jd(h),h}(e,t,n),i=nu(U((function(){var e=r.machine.initialState;return t.state?yd.create(t.state):e})),2),o=i[0],a=i[1];return[o,r.send,r]}function iu(){return iu=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},iu.apply(null,arguments)}function ou(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 au={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(au.str(e)||au.num(e))return e===t;if(au.obj(e)&&au.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!au.und(n)||e===t}};function lu(e,t){return au.und(e)||au.nul(e)?t:e}function su(e){return au.und(e)?[]:au.arr(e)?e:[e]}function cu(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 au.fun(e)?e(...n):e}function du(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,ou(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(au.und(t))return iu({to:t},e);const n=Object.keys(e).reduce(((n,r)=>au.und(t[r])?iu({},n,{[r]:e[r]}):n),{});return iu({to:t},n)}class uu{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 pu extends uu{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof uu&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof uu&&e.removeChild(this)))}}class hu extends uu{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof uu&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof uu&&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 uu)&&(t[n]=r instanceof uu?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let fu,gu;let vu,mu=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let xu,bu=()=>Date.now();class yu extends hu{constructor(e,t){super(),this.update=void 0,this.payload=e.style?iu({},e,{style:xu(e.style)}):e,this.update=t,this.attach()}}let wu=!1;const Cu=new Set,$u=()=>{if(!wu)return!1;let e=bu();for(let t of Cu){let n=!1;for(let r=0;r<t.configs.length;r++){let i,o,a=t.configs[r];for(let t=0;t<a.animatedValues.length;t++){let r=a.animatedValues[t];if(r.done)continue;let l=a.fromValues[t],s=a.toValues[t],c=r.lastPosition,d=s instanceof uu,u=Array.isArray(a.initialVelocity)?a.initialVelocity[t]:a.initialVelocity;if(d&&(s=s.getValue()),a.immediate)r.setValue(s),r.done=!0;else if("string"!=typeof l&&"string"!=typeof s){if(void 0!==a.duration)c=l+a.easing((e-r.startTime)/a.duration)*(s-l),i=e>=r.startTime+a.duration;else if(a.decay)c=l+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),i=Math.abs(r.lastPosition-c)<.1,i&&(s=c);else{o=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:a.initialVelocity,e>o+64&&(o=e);let t=Math.floor(e-o);for(let e=0;e<t;++e){u+=1*((-a.tension*(c-s)+-a.friction*u)/a.mass)/1e3,c+=1*u/1e3}let n=!(!a.clamp||0===a.tension)&&(l<s?c>s:c<s),d=Math.abs(u)<=a.precision,p=0===a.tension||Math.abs(s-c)<=a.precision;i=n||d&&p,r.lastVelocity=u,r.lastTime=e}d&&!a.toValues[t].done&&(i=!1),i?(r.value!==s&&(c=s),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(s),r.done=!0}t.props.onFrame&&(t.values[a.name]=a.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(Cu.delete(t),t.stop(!0))}return Cu.size?mu($u):wu=!1,wu};function ku(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return ku({range:e,output:t,extrapolate:n});if(vu&&"string"==typeof e.output[0])return vu(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=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,o);return function(e,t,n,r,i,o,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],s,a,l,r.map)}}class Su extends pu{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof pu&&!(e instanceof Su)?e.getPayload():Array.isArray(e)?e:[e],this.calc=ku(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=ku(e,t,n)}interpolate(e,t,n){return new Su(this,e,t,n)}}const Eu=(e,t,n)=>e&&new Su(e,t,n);function Ou(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>Ou(e,t)))}class Ru extends uu{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&&Ou(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new Su(this,e,t,n)}}class Lu extends pu{constructor(e){super(),this.payload=e.map((e=>new Ru(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 Su(this,e,t)}}let Pu=0,Tu=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=Pu++}update(e){if(!e)return this;const t=du(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=ou(t,["delay","to"]);if(au.arr(i)||au.fun(i))this.queue.push(iu({},o,{delay:r,to:i}));else if(i){let e={};Object.entries(i).forEach((t=>{let n=t[0],i=t[1];const a=iu({to:{[n]:i},delay:cu(r,n)},o),l=e[a.delay]&&e[a.delay].to;e[a.delay]=iu({},e[a.delay],a,{to:iu({},l,a.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(o),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,i=void 0===r?{}:r;au.obj(n)&&(this.merged=iu({},n,this.merged)),au.obj(i)&&(this.merged=iu({},this.merged,i))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,i)=>{let o=r.delay,a=ou(r,["delay"]);const l=r=>{i===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let s=au.arr(a.to)||au.fun(a.to);o?setTimeout((()=>{t===this.guid&&(s?this.runAsync(a,l):this.diff(a).start(l))}),o):s?this.runAsync(a,l):this.diff(a).start(l)}))}else au.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,Cu.has(t)||Cu.add(t),wu||(wu=!0,mu($u));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,Cu.has(t)&&Cu.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=ou(e,["delay"]);const i=this.local;let o=Promise.resolve(void 0);if(au.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=iu({},r,du(r.to[t]));au.arr(n.config)&&(n.config=n.config[t]),o=o.then((()=>{if(i===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(au.fun(r.to)){let e,t=0;o=o.then((()=>r.to((n=>{const o=iu({},r,du(n));if(au.arr(o.config)&&(o.config=o.config[t]),t++,i===this.guid)return e=new Promise((e=>this.diff(o).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}o.then(t)}diff(e){this.props=iu({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,i=t.to,o=void 0===i?{}:i,a=t.config,l=void 0===a?{}:a,s=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(s){var p=[o,r];r=p[0],o=p[1]}this.merged=iu({},r,this.merged,o),this.hasChanged=!1;let h=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],i=t[1],o=e[n]||{};const a=au.num(i),s=au.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!gu[i],c=au.arr(i),p=!a&&!c&&!s;let f=au.und(r[n])?i:r[n],g=a||c||s?i:1,v=cu(l,n);h&&(g=h.animations[n].parent);let m,x=o.parent,b=o.interpolation,y=su(h?g.getPayload():g),w=i;p&&(w=vu({range:[0,1],output:[i,i]})(1));let C=b&&b.getValue();const $=!au.und(x)&&o.animatedValues.some((e=>!e.done)),k=!au.equ(w,C),S=!au.equ(w,o.previous),E=!au.equ(v,o.config);if(d||S&&k||E){if(a||s)x=b=o.parent||new Ru(f);else if(c)x=b=o.parent||new Lu(f);else if(p){let e=o.interpolation&&o.interpolation.calc(o.parent.value);e=void 0===e||d?f:e,o.parent?(x=o.parent,x.setValue(0,!1)):x=new Ru(0);const t={output:[e,i]};o.interpolation?(b=o.interpolation,o.interpolation.updateConfig(t)):b=x.interpolate(t)}return y=su(h?g.getPayload():g),m=su(x.getPayload()),d&&!p&&x.setValue(f,!1),this.hasChanged=!0,m.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=$?e.lastVelocity:void 0,e.lastTime=$?e.lastTime:void 0,e.startTime=bu(),e.done=!1,e.animatedStyles.clear()})),cu(u,n)&&x.setValue(p?g:i,!1),iu({},e,{[n]:iu({},o,{name:n,parent:x,interpolation:b,animatedValues:m,toValues:y,previous:w,config:v,fromValues:su(x.getValue()),immediate:cu(u,n),initialVelocity:lu(v.velocity,0),clamp:lu(v.clamp,!1),precision:lu(v.precision,.01),tension:lu(v.tension,170),friction:lu(v.friction,26),mass:lu(v.mass,1),duration:v.duration,easing:lu(v.easing,(e=>e)),decay:v.decay})})}return k?e:(p&&(x.setValue(1,!1),b.updateConfig({output:[w,w]})),x.done=!0,this.hasChanged=!0,iu({},e,{[n]:iu({},e[n],{previous:w})}))}),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 _u=e=>{const t=au.fun(e),n=((e,t)=>{const n=J(!1),r=J(),i=au.fun(t),o=ee((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const o=new Tu,a=i?cu(t,r,o):t[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o})),n]}),[e]),a=o[0],l=o[1];r.current=a,re(l,(()=>({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 s=ee((()=>e=>r.current.map(((t,n)=>{t.update(i?cu(e,n,t):e[n]),l||t.start()}))),[e]);X((()=>{n.current?i||s(t):l||r.current.forEach((e=>e.start()))})),X((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return i?[c,s,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r};class Mu extends hu{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof uu||(e=fu.transform(e)),this.payload=e}}const Du={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},Nu="[-+]?\\d*\\.?\\d+",Vu=Nu+"%";function ju(){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 Iu=new RegExp("rgb"+ju(Nu,Nu,Nu)),Au=new RegExp("rgba"+ju(Nu,Nu,Nu,Nu)),zu=new RegExp("hsl"+ju(Nu,Vu,Vu)),Hu=new RegExp("hsla"+ju(Nu,Vu,Vu,Nu)),Bu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Fu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Zu=/^#([0-9a-fA-F]{6})$/,Wu=/^#([0-9a-fA-F]{8})$/;function qu(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 Gu(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=qu(i,r,e+1/3),a=qu(i,r,e),l=qu(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Uu(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Xu(e){return(parseFloat(e)%360+360)%360/360}function Yu(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ku(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ju(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Zu.exec(e))?parseInt(t[1]+"ff",16)>>>0:Du.hasOwnProperty(e)?Du[e]:(t=Iu.exec(e))?(Uu(t[1])<<24|Uu(t[2])<<16|Uu(t[3])<<8|255)>>>0:(t=Au.exec(e))?(Uu(t[1])<<24|Uu(t[2])<<16|Uu(t[3])<<8|Yu(t[4]))>>>0:(t=Bu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Wu.exec(e))?parseInt(t[1],16)>>>0:(t=Fu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=zu.exec(e))?(255|Gu(Xu(t[1]),Ku(t[2]),Ku(t[3])))>>>0:(t=Hu.exec(e))?(Gu(Xu(t[1]),Ku(t[2]),Ku(t[3]))|Yu(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 Qu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ep=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,tp=new RegExp(`(${Object.keys(Du).join("|")})`,"g");let np={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 rp=["Webkit","Ms","Moz","O"];function ip(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||np.hasOwnProperty(e)&&np[e]?(""+t).trim():t+"px"}np=Object.keys(np).reduce(((e,t)=>(rp.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),np);const op={};var ap;xu=e=>new Mu(e),ap=e=>{const t=e.output.map((e=>e.replace(ep,Ju))).map((e=>e.replace(tp,Ju))),n=t[0].match(Qu).map((()=>[]));t.forEach((e=>{e.match(Qu).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Qu).map(((t,r)=>ku(iu({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Qu,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`))}},vu=ap,gu=Du,function(e,t){fu={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,o=t.children,a=t.scrollTop,l=t.scrollLeft,s=ou(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=ip(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in s){const n=c?t:op[t]||(op[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));var lp;const sp=(lp=e=>G(((t,n)=>{const r=function(){const e=U(!1)[1];return te((()=>e((e=>!e))),[])}(),i=J(!0),o=J(null),a=J(null),l=te((e=>{const t=o.current;o.current=new yu(e,(()=>{let e=!1;a.current&&(e=fu.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);X((()=>()=>{i.current=!1,o.current&&o.current.detach()}),[]),re(n,(()=>(e=>e.current)(a))),l(t);const s=o.current.getValue();s.scrollTop,s.scrollLeft;const c=ou(s,["scrollTop","scrollLeft"]),d=(u=e,!au.fun(u)||u.prototype instanceof q.Component?e=>a.current=function(e,t){return t&&(au.fun(t)?t(e):au.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return q.createElement(e,iu({},c,{ref:d}))})),e=>(au.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=lp(n),e}),lp))(["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 cp(e,t){return e.map((function(e,n){return e+t[n]}))}function dp(e,t){return e.map((function(e,n){return e-t[n]}))}function up(e){return Math.hypot.apply(Math,e)}function pp(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function hp(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 fp(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?-hp(t-e,n-t,r)+t:e>n?+hp(e-n,n-t,r)+n:e}function gp(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 vp(){return vp=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},vp.apply(this,arguments)}function mp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function xp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bp(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 yp(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 bp(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)?bp(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 wp(){}function Cp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?wp:1===t.length?t[0]:function(){for(var e,n,r=yp(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function $p(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 kp(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 Sp(e,t){void 0===e&&(e={});for(var n={},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],l=o[1];switch(typeof l){case"function":n[a]=l.call(n,e[a],a,e);break;case"object":n[a]=Sp(e[a],l);break;case"boolean":l&&(n[a]=e[a])}}return n}var Ep=vp({},{threshold:function(e){return void 0===e&&(e=0),$p(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return $p(.15);case!1:return $p(0);default:return $p(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:$p(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 Ep.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,i=t.right,o=void 0===i?1/0:i,a=t.top,l=void 0===a?-1/0:a,s=t.bottom;return[[r,o],[l,void 0===s?1/0:s]]}}),Op="undefined"!=typeof window&&window.document&&window.document.createElement,Rp={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=Op?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,i=t.capture;return{passive:r,capture:void 0!==i&&i}}},Lp=vp({},Ep,{threshold:function(e,t,n){var r=n.filterTaps,i=void 0!==r&&r,o=n.lockDirection,a=void 0!==o&&o,l=n.axis,s=$p(e,i?3:a||(void 0===l?void 0:l)?1:0);return this.filterTaps=i||s[0]+s[1]>0,s},swipeVelocity:function(e){return void 0===e&&(e=.5),$p(e)},swipeDistance:function(e){return void 0===e&&(e=60),$p(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function Pp(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["domTarget","eventOptions","window","enabled"]),a=function(e){return void 0===e&&(e={}),Sp(e,Rp)}({domTarget:t,eventOptions:n,window:r,enabled:i});return a.drag=function(e){return void 0===e&&(e={}),Sp(e,Lp)}(o),a}function Tp(e){return vp({_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:wp,canceled:!1,memo:void 0,args:void 0},e)}function _p(){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:Tp({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:Tp({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:Tp({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:Tp({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:Tp({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var Mp=new Map,Dp=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 i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(o))},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 i=vp({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),o=n.handler(i);return n.state.memo=void 0!==o?o:n.state.memo,n.state._active||n.clean(),i}}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,i=t.rubberband,o=t.threshold,a=this.state,l=a._bounds,s=a._initial,c=a._active,d=a._intentional,u=a.lastOffset,p=a.movement,h=this.getInternalMovement(e,this.state),f=!1===d[0]?Np(h[0],o[0]):d[0],g=!1===d[1]?Np(h[1],o[1]):d[1],v=this.checkIntentionality([f,g],h);if(v._blocked)return vp({},v,{_movement:h,delta:[0,0]});var m,x,b,y,w=v._intentional,C=h;(!1!==w[0]&&!1===d[0]&&(x=kp(n,this.state),m=kp(r,this.state),s[0]=x[0],l[0]=m[0]),!1!==w[1]&&!1===d[1])&&(x=null!=(b=x)?b:kp(n,this.state),m=null!=(y=m)?y:kp(r,this.state),s[1]=x[1],l[1]=m[1]);var $=[!1!==w[0]?h[0]-w[0]:s[0],!1!==w[1]?h[1]-w[1]:s[1]],k=cp($,u),S=c?i:[0,0];return $=Vp(l,cp($,s),S),vp({},v,{intentional:!1!==w[0]||!1!==w[1],_initial:s,_movement:C,movement:$,values:e,offset:Vp(l,k,S),delta:dp($,p)})},t.clean=function(){this.clearTimeout()},gp(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 Np(e,t){return Math.abs(e)>=t&&pp(e)*t}function Vp(e,t,n){var r=t[0],i=t[1],o=n[0],a=n[1],l=e[0],s=l[0],c=l[1],d=e[1],u=d[0],p=d[1];return[fp(r,s,c,o),fp(i,u,p,a)]}function jp(e,t,n){var r=e.state,i=e.args,o=t.timeStamp,a=t.type,l=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,args:i,previous:l}}function Ip(e,t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.call.apply(e,[this,vp({},t,{event:n})].concat(i))}}var Ap=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o,a=yp(t.classes);!(o=a()).done;){new(0,o.value)(t,r).addBindings(e)}for(var l=0,s=Object.entries(t.nativeRefs);l<s.length;l++){var c=s[l];Bp(e,c[0],Ip(c[1],vp({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=Hp(n);if(!i)throw new Error("domTarget must be defined");var o=n.eventOptions;Zp(i,zp(r),o);for(var a=0,l=Object.entries(t);a<l.length;a++){var s=l[a],c=s[0],d=s[1],u=c.slice(2).toLowerCase();r.push([u,Cp.apply(void 0,d)])}Fp(i,r,o)}(t,e):function(e,t){for(var n=e.config,r={},i=n.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var l=a[o],s=l[0],c=l[1],d=Array.isArray(c)?c:[c];r[s+i]=Cp.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Hp(t.config),n=t.config.eventOptions;e&&Zp(e,zp(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,i=e.windowListeners;if(!n)return;for(var o in i){Zp(n,i[o],r)}e.windowListeners={}}(t)},this.state=_p(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function zp(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Hp(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function Bp(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function Fp(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=yp(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.addEventListener(a,l,n)}}function Zp(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=yp(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.removeEventListener(a,l,n)}}function Wp(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(Mp.get("drag"));e.wheel&&t.add(Mp.get("wheel"));e.scroll&&t.add(Mp.get("scroll"));e.move&&t.add(Mp.get("move"));e.pinch&&t.add(Mp.get("pinch"));e.hover&&t.add(Mp.get("hover"));return t}(e),i=q.useMemo((function(){return new Ap(r)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=n,q.useEffect(i.effect,[]),i.config.domTarget?qp:i.bind}function qp(){"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`.")}function Gp(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function Up(e){var t="buttons"in e?e.buttons:0,n=Gp(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 Xp(e){var t=Gp(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Yp=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,i=e.windowListeners;void 0===n&&(n=[]),r.window&&(Zp(r.window,i[t],r.eventOptions),Fp(r.window,i[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(xp(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=Up(e);if(n.down){t.updateSharedState(n);var r=Xp(e),i=t.getKinematics(r,e),o=jp(xp(t),e),a=t.state._isTap,l=up(i._movement);a&&l>=3&&(a=!1),t.updateGestureState(vp({},o,i,{_isTap:a})),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,i=r[0],o=r[1],a=t.state.movement,l=a[0],s=a[1],c=t.state._intentional,d=c[0],u=c[1],p=t.config.swipeVelocity,h=p[0],f=p[1],g=t.config.swipeDistance,v=g[0],m=g[1],x=vp({},jp(xp(t),e),t.getMovement(t.state.values)),b=[0,0];x.elapsedTime<220&&(!1!==d&&Math.abs(i)>h&&Math.abs(l)>v&&(b[0]=pp(i)),!1!==u&&Math.abs(o)>f&&Math.abs(s)>m&&(b[1]=pp(o))),t.updateGestureState(vp({},x,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(xp(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(Zp(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}mp(t,e);var n=t.prototype;return n.startDrag=function(e){var t=Xp(e);this.updateSharedState(Up(e)),this.updateGestureState(vp({},function(e,t,n){var r=e.state.offset,i=n.timeStamp;return vp({},_p()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:i})}(this,t,e),jp(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(Bp(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&Bp(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}mp(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return dp(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],i=n[1],o=this.state.axis||(r>i?"x":r<i?"y":void 0);return this.config.axis||this.config.lockDirection?o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e["x"===o?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}:{_intentional:e,_blocked:!1,axis:o}},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=up(t),i=0===r?0:1/r,o=0===n?0:1/n,a=o*r,l=t.map((function(e){return o*e})),s=t.map((function(e){return i*e}));return{velocities:l,velocity:a,distance:up(e),direction:s}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(Dp));function Kp(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,i,o;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!Kp(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(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Kp(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(o=e.entries();!(r=o.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=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===i[r]&&e.$$typeof||Kp(e[i[r]],t[i[r]])))return!1;return!0}return e!=e&&t!=t}function Jp(e,t){try{return Kp(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 Qp(e,t){void 0===t&&(t={}),Mp.set("drag",Yp);var n=J();return n.current||(n.current=function(e,t){var n,r,i=[],o=!1;return function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return o&&n===this&&t(l,i)||(r=e.apply(this,l),o=!0,n=this,i=l),r}}(Pp,Jp)),Wp({drag:e},n.current(t))}
|
|
2439
2454
|
/*!
|
|
2440
2455
|
* tabbable 5.3.3
|
|
2441
2456
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2442
|
-
*/var
|
|
2457
|
+
*/var eh=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],th=eh.join(","),nh="undefined"==typeof Element,rh=nh?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ih=!nh&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},oh=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(th));return t&&rh.call(e,th)&&r.unshift(e),r=r.filter(n)},ah=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if("SLOT"===a.tagName){var l=a.assignedElements(),s=e(l.length?l:a.children,!0,r);r.flatten?i.push.apply(i,s):i.push({scope:a,candidates:s})}else{rh.call(a,th)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!r.shadowRootFilter||r.shadowRootFilter(a);if(c&&d){var u=e(!0===c?a.children:c.children,!0,r);r.flatten?i.push.apply(i,u):i.push({scope:a,candidates:u})}else o.unshift.apply(o,a.children)}}return i},lh=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},sh=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ch=function(e){return"INPUT"===e.tagName},dh=function(e){return function(e){return ch(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||ih(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 i=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!i||i===e}(e)},uh=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},ph=function(e,t){return!(t.disabled||function(e){return ch(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=rh.call(e,"details>summary:first-of-type")?e.parentElement:e;if(rh.call(i,"details:not([open]) *"))return!0;var o=ih(e).host,a=(null==o?void 0:o.ownerDocument.contains(o))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return uh(e)}else{if("function"==typeof r){for(var l=e;e;){var s=e.parentElement,c=ih(e);if(s&&!s.shadowRoot&&!0===r(s))return uh(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=l}if(a)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!!rh.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},hh=function(e,t){return!(dh(t)||lh(t)<0||!ph(e,t))},fh=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},gh=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scope,a=o?t.scope:t,l=lh(a,o),s=o?e(t.candidates):a;0===l?o?n.push.apply(n,s):n.push(a):r.push({documentOrder:i,tabIndex:l,item:t,isScope:o,content:s})})),r.sort(sh).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},vh=function(e,t){var n;return n=(t=t||{}).getShadowRoot?ah([e],t.includeContainer,{filter:hh.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:fh}):oh(e,t.includeContainer,hh.bind(null,t)),gh(n)},mh=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==rh.call(e,th)&&hh(t,e)},xh=eh.concat("iframe").join(","),bh=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==rh.call(e,xh)&&ph(t,e)};
|
|
2443
2458
|
/*!
|
|
2444
2459
|
* focus-trap 6.9.4
|
|
2445
2460
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
2446
2461
|
*/
|
|
2447
|
-
function xh(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 bh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xh(Object(n),!0).forEach((function(t){yh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wh,Ch=(wh=[],{activateTrap:function(e){if(wh.length>0){var t=wh[wh.length-1];t!==e&&t.pause()}var n=wh.indexOf(e);-1===n||wh.splice(n,1),wh.push(e)},deactivateTrap:function(e){var t=wh.indexOf(e);-1!==t&&wh.splice(t,1),wh.length>0&&wh[wh.length-1].unpause()}}),$h=function(e){return setTimeout(e,0)},kh=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},Sh=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},Eh=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Oh=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=bh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e){return o.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},s=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}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 l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},c=function(){var e=s("initialFocus");if(!1===e)return!1;if(void 0===e)if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map((function(e){var t,n,r=fh(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?ih([t],n.includeContainer,{filter:dh.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):rh(t,n.includeContainer,dh.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:o,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=o.findIndex((function(t){return t===e}));if(!(n<0))return t?o.slice(n+1).find((function(e){return gh(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return gh(e,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!s("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:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=s("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=Eh(e);l(t)>=0||(Sh(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!mh(t,i.tabbableOptions)}):Sh(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=Eh(e),n=l(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(o.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==Sh(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Eh(e);d();var n=null;if(o.tabbableGroups.length>0){var r=l(t),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=kh(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||mh(t,i.tabbableOptions)&&!gh(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?o.tabbableGroups.length-1:c-1;n=o.tabbableGroups[p].lastTabbableNode}}else{var h=kh(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||mh(t,i.tabbableOptions)&&!gh(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[f].firstTabbableNode}}}else n=s("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},v=function(e){var t=Eh(e);l(t)>=0||Sh(i.clickOutsideDeactivates,e)||Sh(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return Ch.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?$h((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",v,{capture:!0,passive:!1}),r.addEventListener("keydown",g,{capture:!0,passive:!1}),n},x=function(){if(o.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",v,!0),r.removeEventListener("keydown",g,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){i&&d(),m(),n&&n()};return i?(i(o.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!o.active)return this;var t=bh({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,Ch.deactivateTrap(n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),s=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){$h((function(){c&&u(p(o.nodeFocusedBeforeActivation)),l&&l()}))};return c&&s?(s(p(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,x()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,d(),m(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&d(),this}}).updateContainerElements(e),n};var Rh=!1;if("undefined"!=typeof window){var Lh={get passive(){Rh=!0}};window.addEventListener("testPassive",null,Lh),window.removeEventListener("testPassive",null,Lh)}var Ph,Th="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),_h=[],Mh=!1,Dh=-1,Nh=void 0,Vh=void 0,jh=function(e){return _h.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Ih=function(e){var t=e||window.event;return!!jh(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Ah=function(e,t){if(e){if(!_h.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};_h=[].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)}(_h),[n]),Th?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Dh=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Dh;!jh(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Ih(e):e.stopPropagation())}(t,e)},Mh||(document.addEventListener("touchmove",Ih,Rh?{passive:!1}:void 0),Mh=!0)):function(e){if(void 0===Vh){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Vh=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Nh&&(Nh=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.")},zh=function(e){e?(_h=_h.filter((function(t){return t.targetElement!==e})),Th?(e.ontouchstart=null,e.ontouchmove=null,Mh&&0===_h.length&&(document.removeEventListener("touchmove",Ih,Rh?{passive:!1}:void 0),Mh=!1)):_h.length||(void 0!==Vh&&(document.body.style.paddingRight=Vh,Vh=void 0),void 0!==Nh&&(document.body.style.overflow=Nh,Nh=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},Hh=[],Bh="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"}(Ph||(Ph={}));var Fh,Zh=function(e){return Object.freeze(e)},Wh=function(e,t){this.inlineSize=e,this.blockSize=t,Zh(this)},qh=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,Zh(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}(),Gh=function(e){return e instanceof SVGElement&&"getBBox"in e},Uh=function(e){if(Gh(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},Xh=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)},Yh="undefined"!=typeof window?window:{},Kh=new WeakMap,Jh=/auto|scroll/,Qh=/^tb|vertical/,ef=/msie|trident/i.test(Yh.navigator&&Yh.navigator.userAgent),tf=function(e){return parseFloat(e||"0")},nf=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Wh((n?t:e)||0,(n?e:t)||0)},rf=Zh({devicePixelContentBoxSize:nf(),borderBoxSize:nf(),contentBoxSize:nf(),contentRect:new qh(0,0,0,0)}),of=function(e,t){if(void 0===t&&(t=!1),Kh.has(e)&&!t)return Kh.get(e);if(Uh(e))return Kh.set(e,rf),rf;var n=getComputedStyle(e),r=Gh(e)&&e.ownerSVGElement&&e.getBBox(),i=!ef&&"border-box"===n.boxSizing,o=Qh.test(n.writingMode||""),a=!r&&Jh.test(n.overflowY||""),l=!r&&Jh.test(n.overflowX||""),s=r?0:tf(n.paddingTop),c=r?0:tf(n.paddingRight),d=r?0:tf(n.paddingBottom),u=r?0:tf(n.paddingLeft),p=r?0:tf(n.borderTopWidth),h=r?0:tf(n.borderRightWidth),f=r?0:tf(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:tf(n.borderLeftWidth))+h,x=p+f,b=l?e.offsetHeight-x-e.clientHeight:0,y=a?e.offsetWidth-m-e.clientWidth:0,w=i?g+m:0,C=i?v+x:0,$=r?r.width:tf(n.width)-w-y,k=r?r.height:tf(n.height)-C-b,S=$+g+y+m,E=k+v+b+x,O=Zh({devicePixelContentBoxSize:nf(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:nf(S,E,o),contentBoxSize:nf($,k,o),contentRect:new qh(u,s,$,k)});return Kh.set(e,O),O},af=function(e,t,n){var r=of(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Ph.DEVICE_PIXEL_CONTENT_BOX:return a;case Ph.BORDER_BOX:return i;default:return o}},lf=function(e){var t=of(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Zh([t.borderBoxSize]),this.contentBoxSize=Zh([t.contentBoxSize]),this.devicePixelContentBoxSize=Zh([t.devicePixelContentBoxSize])},sf=function(e){if(Uh(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},cf=function(){var e=1/0,t=[];Hh.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new lf(t.target),i=sf(t.target);r.push(n),t.lastReportedSize=af(t.target,t.observedBox),i<e&&(e=i)})),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},df=function(e){Hh.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(sf(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},uf=function(){var e=0;for(df(e);Hh.some((function(e){return e.activeTargets.length>0}));)e=cf(),df(e);return Hh.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:Bh}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=Bh),window.dispatchEvent(e)}(),e>0},pf=[],hf=function(e){if(!Fh){var t=0,n=document.createTextNode("");new MutationObserver((function(){return pf.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Fh=function(){n.textContent="".concat(t?t--:t++)}}pf.push(e),Fh()},ff=0,gf={attributes:!0,characterData:!0,childList:!0,subtree:!0},vf=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],mf=function(e){return void 0===e&&(e=0),Date.now()+e},xf=!1,bf=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),!xf){xf=!0;var n,r=mf(e);n=function(){var n=!1;try{n=uf()}finally{if(xf=!1,e=r-mf(),!ff)return;n?t.run(1e3):e>0?t.run(e):t.start()}},hf((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,gf)};document.body?t():Yh.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),vf.forEach((function(t){return Yh.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),vf.forEach((function(t){return Yh.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),yf=function(e){!ff&&e>0&&bf.start(),!(ff+=e)&&bf.stop()},wf=function(){function e(e,t){this.target=e,this.observedBox=t||Ph.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=af(this.target,this.observedBox,!0);return function(e){return!Gh(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}(),Cf=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},$f=new WeakMap,kf=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Sf=function(){function e(){}return e.connect=function(e,t){var n=new Cf(e,t);$f.set(e,n)},e.observe=function(e,t,n){var r=$f.get(e),i=0===r.observationTargets.length;kf(r.observationTargets,t)<0&&(i&&Hh.push(r),r.observationTargets.push(new wf(t,n&&n.box)),yf(1),bf.schedule())},e.unobserve=function(e,t){var n=$f.get(e),r=kf(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&Hh.splice(Hh.indexOf(n),1),n.observationTargets.splice(r,1),yf(-1))},e.disconnect=function(e){var t=this,n=$f.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Ef=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.");Sf.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(!Xh(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Sf.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(!Xh(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Sf.unobserve(this,e)},e.prototype.disconnect=function(){Sf.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Of(){return Of=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},Of.apply(this,arguments)}function Rf(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var Lf="undefined"!=typeof window?K:X;function Pf(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 Tf(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var _f={box:"border-box"};function Mf(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=U(0),a=o[0],l=o[1];ie(n+": "+a);var s=te((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return Lf((function(){if(e.current&&r){var t=new Ef(s);return t.observe(e.current,_f),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function Df(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var Nf={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Vf={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},jf=function(e,t,n){return void 0===n&&(n=e.context),new zd(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:Of({},Nf,Vf)}}},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:Of({},Nf,Vf)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:Of({},{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:[Bd({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(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(Df()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),If=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],Af=["velocity"],zf=["onRest","config"],Hf={tension:170,friction:26},Bf=Hf.tension,Ff=Hf.friction,Zf=q.forwardRef((function(e,t){var n=e.children,r=e.sibling,i=e.className,o=e.footer,a=e.header,l=e.open,s=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,p=e.maxHeight,h=e.defaultSnap,f=void 0===h?qf:h,g=e.snapPoints,v=void 0===g?Gf:g,m=e.blocking,x=void 0===m||m,b=e.scrollLocking,y=void 0===b||b,w=e.style,C=e.onSpringStart,$=e.onSpringCancel,k=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?x:S,O=e.expandOnContentDrag,R=void 0!==O&&O,L=Rf(e,If),P=function(){var e=U(!1),t=e[0],n=e[1],r=U({}),i=r[0],o=r[1],a=te((function(e){return o((function(t){var n;return Of({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return Of({},t,((n={})[e]=!0,n))}))}}),[]);return X((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&n(!0)}),[i]),{ready:t,registerReady:a}}(),T=P.ready,_=P.registerReady,M=J(!1),D=J(C),N=J($),V=J(k);X((function(){D.current=C,N.current=$,V.current=k}),[$,C,k]);var j,I,A=Pu((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),z=A[0],H=A[1],B=J(null),F=J(null),Z=J(null),W=J(null),G=J(null),Y=J(null),K=J(0),Q=J(),ne=J(!1),oe=(j=ee((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=J(null==j?void 0:j.matches),ie(I.current?"reduce":"no-preference"),X((function(){var e=function(e){I.current=e.matches};return null==j||j.addListener(e),function(){return null==j?void 0:j.removeListener(e)}}),[j]),I),ae=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,i=J({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return ie(n?"Enabled":"Disabled"),X((function(){if(!n)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1;i.current={activate:function(){o||(o=!0,Ah(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,zh(e))}}}),[n,t,r]),i}({targetRef:F,enabled:T&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=J({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return ie(n?"Enabled":"Disabled"),X((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1,o=[],a=[];r.current={activate:function(){if(!i){i=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(o.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){i&&(i=!1,a.forEach((function(e,t){var n=o[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),o=[],a=[])}}}),[t,n]),r}({targetRef:B,enabled:T&&x}),se=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,i=e.enabled,o=J({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return ie(i?"Enabled":"Disabled"),X((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=Oh(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),l=!1;o.current={activate:function(){try{return l?Promise.resolve():(l=!0,Promise.resolve(a.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(){l&&(l=!1,a.deactivate())}}}),[i,n,r,t]),o}({targetRef:B,fallbackRef:Y,initialFocusRef:d||void 0,enabled:T&&x&&!1!==d}),ce=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,i=e.ready,o=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,i=e.footerRef,o=e.headerEnabled,a=e.headerRef,l=e.registerReady,s=e.resizeSourceRef,c=ee((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=ee((function(){return t("maxHeight")}),[t]),i=U((function(){return Tf(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=J(0);return ie(e?"controlled":"auto"),X((function(){l&&r()}),[l,r]),Lf((function(){if(e)return a(Tf(e)),void(n.current="maxheightprop");var t=function(){s.current||(s.current=requestAnimationFrame((function(){a(window.innerHeight),n.current="window",s.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(s.current)}}),[e,r,n]),o}(n,l,s),u=Mf(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=Mf(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=Mf(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;ie("minHeight: "+f);var g=p>0;return X((function(){g&&c()}),[g,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:h}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),a=o.maxHeight,l=o.minHeight,s=o.headerHeight,c=o.footerHeight,d=function(e,t){var n=[].concat(e).map(Tf).reduce((function(e,n){return e.add(Pf(n,0,t)),e}),new Set),r=Array.from(n),i=Math.min.apply(Math,r);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:i,maxSnap:o}}(i?t({height:n.current,footerHeight:c,headerHeight:s,minHeight:l,maxHeight:a}):[0],a),u=d.snapPoints,p=d.minSnap,h=d.maxSnap;return ie("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=Tf("function"==typeof e?e({footerHeight:c,headerHeight:s,height:n.current,minHeight:l,maxHeight:a,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:Z,controlledMaxHeight:p,footerEnabled:!!o,footerRef:G,getSnapPoints:v,headerEnabled:!1!==a,headerRef:W,heightRef:K,lastSnapRef:c,ready:T,registerReady:_,resizeSourceRef:Q}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=J(pe),ge=J(de),ve=J(ue),me=J(he),xe=J(0);Lf((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=te((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=Rf(n,Af),a=Rf(e,zf);return new Promise((function(e){return H(Of({},a,{config:Of({velocity:i},o,{mass:1,tension:Bf,friction:Math.max(Ff,Ff+(Ff-Ff*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=tu(jf,{devTools:!1,actions:{onOpenCancel:te((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:te((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:te((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:te((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:Q.current})}),[]),onOpenEnd:te((function(){return null==V.current?void 0:V.current({type:"OPEN"})}),[]),onSnapEnd:te((function(e,t){return null==V.current?void 0:V.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:te((function(){return null==V.current?void 0:V.current({type:"RESIZE",source:Q.current})}),[])},context:{initialState:s},services:{onSnapStart:te((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:te((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:te((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:te((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"RESIZE",source:Q.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:te((function(e,t){try{return Promise.resolve(null==V.current?void 0:V.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:te((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:te((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:te((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"RESIZE",source:Q.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:te((function(e,t){try{return Promise.resolve(be({y:xe.current,ready:0,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),activate:te((function(e,t){try{return M.current=!0,Promise.resolve(Promise.all([ae.current.activate(),se.current.activate(),le.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[le,se,ae]),deactivate:te((function(){try{return ae.current.deactivate(),se.current.deactivate(),le.current.deactivate(),M.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[le,se,ae]),openImmediately:te((function(){try{return K.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),openSmoothly:te((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return K.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:oe.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe]),snapSmoothly:te((function(e,t){try{var n=me.current(e.y);return K.current=n,c.current=n,Promise.resolve(be({y:n,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:oe.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),resizeSmoothly:te((function(){try{var e=me.current(K.current);return K.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==Q.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:te((function(e,t){try{return be({minSnap:K.current,immediate:!0}),K.current=0,Promise.resolve(be({y:0,maxHeight:fe.current,maxSnap:ve.current,immediate:oe.current})).then((function(){return Promise.resolve(be({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe])}}),we=ye[0],Ce=ye[1];X((function(){T&&Ce(l?"OPEN":"CLOSE")}),[l,Ce,T]),Lf((function(){(pe||ue||de)&&Ce("RESIZE")}),[pe,ue,de,Ce]),X((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),re(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,i=void 0===r?1:r,o=n.source,a=void 0===o?"custom":o;Ce("SNAP",{payload:{y:me.current(e),velocity:i,source:a}})},get height(){return K.current}}}),[Ce]),X((function(){var e=F.current,t=function(e){ne.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 R&&(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)}}),[R,F]);var $e=Kp((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,i=void 0!==r&&r,o=n.isContentDragging,a=void 0!==o&&o,l=e.cancel,s=e.direction[1],c=e.down,d=e.first,p=e.last,h=e.memo,f=void 0===h?z.y.getValue():h,g=e.tap,v=e.velocity,m=-1*e.movement[1];if(!M.current)return l(),f;if(u&&i&&g)return l(),setTimeout((function(){return u()}),0),f;if(g)return f;var x=f+m,b=m*v,y=Math.max(ge.current,Math.min(ve.current,x+2*b));if(!c&&u&&s>0&&x+b<ge.current/2)return l(),u(),f;var w=c?u||ge.current!==ve.current?pp(x,u?0:ge.current,ve.current,.55):x<ge.current?pp(x,ge.current,2*ve.current,.55):pp(x,ge.current/2,ve.current,.55):y;return R&&a?(w>=ve.current&&(w=ve.current),f===ve.current&&F.current.scrollTop>0&&(w=ve.current),ne.current=w<ve.current):ne.current=!1,d&&Ce("DRAG"),p?(Ce("SNAP",{payload:{y:w,velocity:v>.05?v:1,source:"dragging"}}),f):(H({y:w,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:!0,config:{velocity:v}}),f)}),{filterTaps:!0});if(Number.isNaN(ve.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ge.current))throw new TypeError("minSnapRef is NaN!!");var ke=function(e){var t,n=e.spring,r=ku([n.y,n.maxHeight],(function(e,t){return Math.round(Pf(t-e,0,16))+"px"})),i=ku([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return Pf(e,t,n)+"px"})),o=ku([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=ku([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=ku([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return Pf((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=ku([n.y,n.minSnap],(function(e,t){return t?Pf(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=l,t["--rsbs-backdrop-opacity"]=s,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=o,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=i,t}({spring:z});return q.createElement(ap.div,Of({},L,{"data-rsbs-root":!0,"data-rsbs-state":Wf.find(we.matches),"data-rsbs-is-blocking":x,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!o,className:i,ref:B,style:Of({},ke,w,{opacity:z.ready})}),r,x&&q.createElement("div",Of({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),q.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:Y,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&q.createElement("div",Of({key:"header","data-rsbs-header":!0,ref:W},$e()),a),q.createElement("div",Of({key:"scroll","data-rsbs-scroll":!0,ref:F},R?$e({isContentDragging:!0}):{}),q.createElement("div",{"data-rsbs-content":!0,ref:Z},n)),o&&q.createElement("div",Of({key:"footer",ref:G,"data-rsbs-footer":!0},$e()),o)))})),Wf=["closed","opening","open","closing","dragging","snapping","resizing"];function qf(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function Gf(e){return e.minHeight}var Uf=["onSpringStart","onSpringEnd","skipInitialTransition"],Xf=G((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=Rf(e,Uf),a=U(!1),l=a[0],s=a[1],c=J(),d=J(null),u=J(i&&o.open?"OPEN":"CLOSED");Lf((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=te((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=te((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return s(!1)})))}))}),[r]);return l?q.createElement(Zs,{"data-rsbs-portal":!0},q.createElement(Zf,Of({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));const Yf=(e,t)=>ae`
|
|
2462
|
+
function yh(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 wh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yh(Object(n),!0).forEach((function(t){Ch(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ch(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $h,kh=($h=[],{activateTrap:function(e){if($h.length>0){var t=$h[$h.length-1];t!==e&&t.pause()}var n=$h.indexOf(e);-1===n||$h.splice(n,1),$h.push(e)},deactivateTrap:function(e){var t=$h.indexOf(e);-1!==t&&$h.splice(t,1),$h.length>0&&$h[$h.length-1].unpause()}}),Sh=function(e){return setTimeout(e,0)},Eh=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},Oh=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},Rh=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Lh=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=wh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e){return o.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},s=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}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 l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},c=function(){var e=s("initialFocus");if(!1===e)return!1;if(void 0===e)if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map((function(e){var t,n,r=vh(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?ah([t],n.includeContainer,{filter:ph.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):oh(t,n.includeContainer,ph.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:o,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=o.findIndex((function(t){return t===e}));if(!(n<0))return t?o.slice(n+1).find((function(e){return mh(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return mh(e,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!s("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:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=s("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=Rh(e);l(t)>=0||(Oh(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!bh(t,i.tabbableOptions)}):Oh(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=Rh(e),n=l(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(o.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==Oh(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Rh(e);d();var n=null;if(o.tabbableGroups.length>0){var r=l(t),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=Eh(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||bh(t,i.tabbableOptions)&&!mh(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?o.tabbableGroups.length-1:c-1;n=o.tabbableGroups[p].lastTabbableNode}}else{var h=Eh(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||bh(t,i.tabbableOptions)&&!mh(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[f].firstTabbableNode}}}else n=s("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},v=function(e){var t=Rh(e);l(t)>=0||Oh(i.clickOutsideDeactivates,e)||Oh(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return kh.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?Sh((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",v,{capture:!0,passive:!1}),r.addEventListener("keydown",g,{capture:!0,passive:!1}),n},x=function(){if(o.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",v,!0),r.removeEventListener("keydown",g,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){i&&d(),m(),n&&n()};return i?(i(o.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!o.active)return this;var t=wh({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,kh.deactivateTrap(n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),s=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){Sh((function(){c&&u(p(o.nodeFocusedBeforeActivation)),l&&l()}))};return c&&s?(s(p(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,x()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,d(),m(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&d(),this}}).updateContainerElements(e),n};var Ph=!1;if("undefined"!=typeof window){var Th={get passive(){Ph=!0}};window.addEventListener("testPassive",null,Th),window.removeEventListener("testPassive",null,Th)}var _h,Mh="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Dh=[],Nh=!1,Vh=-1,jh=void 0,Ih=void 0,Ah=function(e){return Dh.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},zh=function(e){var t=e||window.event;return!!Ah(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Hh=function(e,t){if(e){if(!Dh.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Dh=[].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)}(Dh),[n]),Mh?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Vh=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Vh;!Ah(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?zh(e):e.stopPropagation())}(t,e)},Nh||(document.addEventListener("touchmove",zh,Ph?{passive:!1}:void 0),Nh=!0)):function(e){if(void 0===Ih){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Ih=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===jh&&(jh=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.")},Bh=function(e){e?(Dh=Dh.filter((function(t){return t.targetElement!==e})),Mh?(e.ontouchstart=null,e.ontouchmove=null,Nh&&0===Dh.length&&(document.removeEventListener("touchmove",zh,Ph?{passive:!1}:void 0),Nh=!1)):Dh.length||(void 0!==Ih&&(document.body.style.paddingRight=Ih,Ih=void 0),void 0!==jh&&(document.body.style.overflow=jh,jh=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},Fh=[],Zh="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"}(_h||(_h={}));var Wh,qh=function(e){return Object.freeze(e)},Gh=function(e,t){this.inlineSize=e,this.blockSize=t,qh(this)},Uh=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,qh(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}(),Xh=function(e){return e instanceof SVGElement&&"getBBox"in e},Yh=function(e){if(Xh(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},Kh=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)},Jh="undefined"!=typeof window?window:{},Qh=new WeakMap,ef=/auto|scroll/,tf=/^tb|vertical/,nf=/msie|trident/i.test(Jh.navigator&&Jh.navigator.userAgent),rf=function(e){return parseFloat(e||"0")},of=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Gh((n?t:e)||0,(n?e:t)||0)},af=qh({devicePixelContentBoxSize:of(),borderBoxSize:of(),contentBoxSize:of(),contentRect:new Uh(0,0,0,0)}),lf=function(e,t){if(void 0===t&&(t=!1),Qh.has(e)&&!t)return Qh.get(e);if(Yh(e))return Qh.set(e,af),af;var n=getComputedStyle(e),r=Xh(e)&&e.ownerSVGElement&&e.getBBox(),i=!nf&&"border-box"===n.boxSizing,o=tf.test(n.writingMode||""),a=!r&&ef.test(n.overflowY||""),l=!r&&ef.test(n.overflowX||""),s=r?0:rf(n.paddingTop),c=r?0:rf(n.paddingRight),d=r?0:rf(n.paddingBottom),u=r?0:rf(n.paddingLeft),p=r?0:rf(n.borderTopWidth),h=r?0:rf(n.borderRightWidth),f=r?0:rf(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:rf(n.borderLeftWidth))+h,x=p+f,b=l?e.offsetHeight-x-e.clientHeight:0,y=a?e.offsetWidth-m-e.clientWidth:0,w=i?g+m:0,C=i?v+x:0,$=r?r.width:rf(n.width)-w-y,k=r?r.height:rf(n.height)-C-b,S=$+g+y+m,E=k+v+b+x,O=qh({devicePixelContentBoxSize:of(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:of(S,E,o),contentBoxSize:of($,k,o),contentRect:new Uh(u,s,$,k)});return Qh.set(e,O),O},sf=function(e,t,n){var r=lf(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case _h.DEVICE_PIXEL_CONTENT_BOX:return a;case _h.BORDER_BOX:return i;default:return o}},cf=function(e){var t=lf(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=qh([t.borderBoxSize]),this.contentBoxSize=qh([t.contentBoxSize]),this.devicePixelContentBoxSize=qh([t.devicePixelContentBoxSize])},df=function(e){if(Yh(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},uf=function(){var e=1/0,t=[];Fh.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new cf(t.target),i=df(t.target);r.push(n),t.lastReportedSize=sf(t.target,t.observedBox),i<e&&(e=i)})),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},pf=function(e){Fh.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(df(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},hf=function(){var e=0;for(pf(e);Fh.some((function(e){return e.activeTargets.length>0}));)e=uf(),pf(e);return Fh.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:Zh}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=Zh),window.dispatchEvent(e)}(),e>0},ff=[],gf=function(e){if(!Wh){var t=0,n=document.createTextNode("");new MutationObserver((function(){return ff.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Wh=function(){n.textContent="".concat(t?t--:t++)}}ff.push(e),Wh()},vf=0,mf={attributes:!0,characterData:!0,childList:!0,subtree:!0},xf=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],bf=function(e){return void 0===e&&(e=0),Date.now()+e},yf=!1,wf=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),!yf){yf=!0;var n,r=bf(e);n=function(){var n=!1;try{n=hf()}finally{if(yf=!1,e=r-bf(),!vf)return;n?t.run(1e3):e>0?t.run(e):t.start()}},gf((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,mf)};document.body?t():Jh.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),xf.forEach((function(t){return Jh.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),xf.forEach((function(t){return Jh.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Cf=function(e){!vf&&e>0&&wf.start(),!(vf+=e)&&wf.stop()},$f=function(){function e(e,t){this.target=e,this.observedBox=t||_h.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=sf(this.target,this.observedBox,!0);return function(e){return!Xh(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}(),kf=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Sf=new WeakMap,Ef=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Of=function(){function e(){}return e.connect=function(e,t){var n=new kf(e,t);Sf.set(e,n)},e.observe=function(e,t,n){var r=Sf.get(e),i=0===r.observationTargets.length;Ef(r.observationTargets,t)<0&&(i&&Fh.push(r),r.observationTargets.push(new $f(t,n&&n.box)),Cf(1),wf.schedule())},e.unobserve=function(e,t){var n=Sf.get(e),r=Ef(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&Fh.splice(Fh.indexOf(n),1),n.observationTargets.splice(r,1),Cf(-1))},e.disconnect=function(e){var t=this,n=Sf.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Rf=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.");Of.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(!Kh(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Of.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(!Kh(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Of.unobserve(this,e)},e.prototype.disconnect=function(){Of.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Lf(){return Lf=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},Lf.apply(this,arguments)}function Pf(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var Tf="undefined"!=typeof window?K:X;function _f(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 Mf(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var Df={box:"border-box"};function Nf(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=U(0),a=o[0],l=o[1];ie(n+": "+a);var s=te((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return Tf((function(){if(e.current&&r){var t=new Rf(s);return t.observe(e.current,Df),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function Vf(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var jf={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},If={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},Af=function(e,t,n){return void 0===n&&(n=e.context),new Bd(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:Lf({},jf,If)}}},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:Lf({},jf,If)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:Lf({},{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:[Zd({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(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(Vf()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),zf=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],Hf=["velocity"],Bf=["onRest","config"],Ff={tension:170,friction:26},Zf=Ff.tension,Wf=Ff.friction,qf=q.forwardRef((function(e,t){var n=e.children,r=e.sibling,i=e.className,o=e.footer,a=e.header,l=e.open,s=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,p=e.maxHeight,h=e.defaultSnap,f=void 0===h?Uf:h,g=e.snapPoints,v=void 0===g?Xf:g,m=e.blocking,x=void 0===m||m,b=e.scrollLocking,y=void 0===b||b,w=e.style,C=e.onSpringStart,$=e.onSpringCancel,k=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?x:S,O=e.expandOnContentDrag,R=void 0!==O&&O,L=Pf(e,zf),P=function(){var e=U(!1),t=e[0],n=e[1],r=U({}),i=r[0],o=r[1],a=te((function(e){return o((function(t){var n;return Lf({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return Lf({},t,((n={})[e]=!0,n))}))}}),[]);return X((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&n(!0)}),[i]),{ready:t,registerReady:a}}(),T=P.ready,_=P.registerReady,M=J(!1),D=J(C),N=J($),V=J(k);X((function(){D.current=C,N.current=$,V.current=k}),[$,C,k]);var j,I,A=_u((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),z=A[0],H=A[1],B=J(null),F=J(null),Z=J(null),W=J(null),G=J(null),Y=J(null),K=J(0),Q=J(),ne=J(!1),oe=(j=ee((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=J(null==j?void 0:j.matches),ie(I.current?"reduce":"no-preference"),X((function(){var e=function(e){I.current=e.matches};return null==j||j.addListener(e),function(){return null==j?void 0:j.removeListener(e)}}),[j]),I),ae=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,i=J({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return ie(n?"Enabled":"Disabled"),X((function(){if(!n)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1;i.current={activate:function(){o||(o=!0,Hh(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,Bh(e))}}}),[n,t,r]),i}({targetRef:F,enabled:T&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=J({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return ie(n?"Enabled":"Disabled"),X((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1,o=[],a=[];r.current={activate:function(){if(!i){i=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(o.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){i&&(i=!1,a.forEach((function(e,t){var n=o[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),o=[],a=[])}}}),[t,n]),r}({targetRef:B,enabled:T&&x}),se=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,i=e.enabled,o=J({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return ie(i?"Enabled":"Disabled"),X((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=Lh(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),l=!1;o.current={activate:function(){try{return l?Promise.resolve():(l=!0,Promise.resolve(a.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(){l&&(l=!1,a.deactivate())}}}),[i,n,r,t]),o}({targetRef:B,fallbackRef:Y,initialFocusRef:d||void 0,enabled:T&&x&&!1!==d}),ce=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,i=e.ready,o=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,i=e.footerRef,o=e.headerEnabled,a=e.headerRef,l=e.registerReady,s=e.resizeSourceRef,c=ee((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=ee((function(){return t("maxHeight")}),[t]),i=U((function(){return Mf(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=J(0);return ie(e?"controlled":"auto"),X((function(){l&&r()}),[l,r]),Tf((function(){if(e)return a(Mf(e)),void(n.current="maxheightprop");var t=function(){s.current||(s.current=requestAnimationFrame((function(){a(window.innerHeight),n.current="window",s.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(s.current)}}),[e,r,n]),o}(n,l,s),u=Nf(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=Nf(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=Nf(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;ie("minHeight: "+f);var g=p>0;return X((function(){g&&c()}),[g,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:h}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),a=o.maxHeight,l=o.minHeight,s=o.headerHeight,c=o.footerHeight,d=function(e,t){var n=[].concat(e).map(Mf).reduce((function(e,n){return e.add(_f(n,0,t)),e}),new Set),r=Array.from(n),i=Math.min.apply(Math,r);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:i,maxSnap:o}}(i?t({height:n.current,footerHeight:c,headerHeight:s,minHeight:l,maxHeight:a}):[0],a),u=d.snapPoints,p=d.minSnap,h=d.maxSnap;return ie("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=Mf("function"==typeof e?e({footerHeight:c,headerHeight:s,height:n.current,minHeight:l,maxHeight:a,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:Z,controlledMaxHeight:p,footerEnabled:!!o,footerRef:G,getSnapPoints:v,headerEnabled:!1!==a,headerRef:W,heightRef:K,lastSnapRef:c,ready:T,registerReady:_,resizeSourceRef:Q}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=J(pe),ge=J(de),ve=J(ue),me=J(he),xe=J(0);Tf((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=te((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=Pf(n,Hf),a=Pf(e,Bf);return new Promise((function(e){return H(Lf({},a,{config:Lf({velocity:i},o,{mass:1,tension:Zf,friction:Math.max(Wf,Wf+(Wf-Wf*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=ru(Af,{devTools:!1,actions:{onOpenCancel:te((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:te((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:te((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:te((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:Q.current})}),[]),onOpenEnd:te((function(){return null==V.current?void 0:V.current({type:"OPEN"})}),[]),onSnapEnd:te((function(e,t){return null==V.current?void 0:V.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:te((function(){return null==V.current?void 0:V.current({type:"RESIZE",source:Q.current})}),[])},context:{initialState:s},services:{onSnapStart:te((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:te((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:te((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:te((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"RESIZE",source:Q.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:te((function(e,t){try{return Promise.resolve(null==V.current?void 0:V.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:te((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:te((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:te((function(){try{return Promise.resolve(null==V.current?void 0:V.current({type:"RESIZE",source:Q.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:te((function(e,t){try{return Promise.resolve(be({y:xe.current,ready:0,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),activate:te((function(e,t){try{return M.current=!0,Promise.resolve(Promise.all([ae.current.activate(),se.current.activate(),le.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[le,se,ae]),deactivate:te((function(){try{return ae.current.deactivate(),se.current.deactivate(),le.current.deactivate(),M.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[le,se,ae]),openImmediately:te((function(){try{return K.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),openSmoothly:te((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return K.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:oe.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe]),snapSmoothly:te((function(e,t){try{var n=me.current(e.y);return K.current=n,c.current=n,Promise.resolve(be({y:n,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:oe.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),resizeSmoothly:te((function(){try{var e=me.current(K.current);return K.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==Q.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:te((function(e,t){try{return be({minSnap:K.current,immediate:!0}),K.current=0,Promise.resolve(be({y:0,maxHeight:fe.current,maxSnap:ve.current,immediate:oe.current})).then((function(){return Promise.resolve(be({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe])}}),we=ye[0],Ce=ye[1];X((function(){T&&Ce(l?"OPEN":"CLOSE")}),[l,Ce,T]),Tf((function(){(pe||ue||de)&&Ce("RESIZE")}),[pe,ue,de,Ce]),X((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),re(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,i=void 0===r?1:r,o=n.source,a=void 0===o?"custom":o;Ce("SNAP",{payload:{y:me.current(e),velocity:i,source:a}})},get height(){return K.current}}}),[Ce]),X((function(){var e=F.current,t=function(e){ne.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 R&&(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)}}),[R,F]);var $e=Qp((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,i=void 0!==r&&r,o=n.isContentDragging,a=void 0!==o&&o,l=e.cancel,s=e.direction[1],c=e.down,d=e.first,p=e.last,h=e.memo,f=void 0===h?z.y.getValue():h,g=e.tap,v=e.velocity,m=-1*e.movement[1];if(!M.current)return l(),f;if(u&&i&&g)return l(),setTimeout((function(){return u()}),0),f;if(g)return f;var x=f+m,b=m*v,y=Math.max(ge.current,Math.min(ve.current,x+2*b));if(!c&&u&&s>0&&x+b<ge.current/2)return l(),u(),f;var w=c?u||ge.current!==ve.current?fp(x,u?0:ge.current,ve.current,.55):x<ge.current?fp(x,ge.current,2*ve.current,.55):fp(x,ge.current/2,ve.current,.55):y;return R&&a?(w>=ve.current&&(w=ve.current),f===ve.current&&F.current.scrollTop>0&&(w=ve.current),ne.current=w<ve.current):ne.current=!1,d&&Ce("DRAG"),p?(Ce("SNAP",{payload:{y:w,velocity:v>.05?v:1,source:"dragging"}}),f):(H({y:w,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:!0,config:{velocity:v}}),f)}),{filterTaps:!0});if(Number.isNaN(ve.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ge.current))throw new TypeError("minSnapRef is NaN!!");var ke=function(e){var t,n=e.spring,r=Eu([n.y,n.maxHeight],(function(e,t){return Math.round(_f(t-e,0,16))+"px"})),i=Eu([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return _f(e,t,n)+"px"})),o=Eu([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=Eu([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=Eu([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return _f((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=Eu([n.y,n.minSnap],(function(e,t){return t?_f(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=l,t["--rsbs-backdrop-opacity"]=s,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=o,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=i,t}({spring:z});return q.createElement(sp.div,Lf({},L,{"data-rsbs-root":!0,"data-rsbs-state":Gf.find(we.matches),"data-rsbs-is-blocking":x,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!o,className:i,ref:B,style:Lf({},ke,w,{opacity:z.ready})}),r,x&&q.createElement("div",Lf({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),q.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:Y,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&q.createElement("div",Lf({key:"header","data-rsbs-header":!0,ref:W},$e()),a),q.createElement("div",Lf({key:"scroll","data-rsbs-scroll":!0,ref:F},R?$e({isContentDragging:!0}):{}),q.createElement("div",{"data-rsbs-content":!0,ref:Z},n)),o&&q.createElement("div",Lf({key:"footer",ref:G,"data-rsbs-footer":!0},$e()),o)))})),Gf=["closed","opening","open","closing","dragging","snapping","resizing"];function Uf(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function Xf(e){return e.minHeight}var Yf=["onSpringStart","onSpringEnd","skipInitialTransition"],Kf=G((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=Pf(e,Yf),a=U(!1),l=a[0],s=a[1],c=J(),d=J(null),u=J(i&&o.open?"OPEN":"CLOSED");Tf((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=te((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=te((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return s(!1)})))}))}),[r]);return l?q.createElement(qs,{"data-rsbs-portal":!0},q.createElement(qf,Lf({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));const Jf=(e,t)=>ae`
|
|
2448
2463
|
[data-rsbs-overlay] {
|
|
2449
2464
|
border-top-left-radius: 16px;
|
|
2450
2465
|
border-top-right-radius: 16px;
|
|
@@ -2473,7 +2488,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2473
2488
|
padding: 0px;
|
|
2474
2489
|
min-height: 64px;
|
|
2475
2490
|
}
|
|
2476
|
-
`;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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
|
|
2491
|
+
`;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 Qf=({header:e,content:t,footer:n,open:r=!1,onClose:i,minimizedHeight:o,midHeight:a=200,maxFullHeight:l,defaultSnap:s="minimized",className:c,blocking:d,zIndex:u=1e3})=>F(Kf,{css:Jf(!!e,u),className:c,open:r,onDismiss:i,header:e,footer:n,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:r})=>[20,o||e,a+(n?r:0),l||t-t/6],defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:r})=>{let i=20;return"minimized"===s?i=o||e:"mid"===s?i=a+(n?r:0):"full"===s&&(i=l||t-t/6),i},blocking:d,children:t}),eg=ae`
|
|
2477
2492
|
a,
|
|
2478
2493
|
p {
|
|
2479
2494
|
font-size: 16px;
|
|
@@ -2505,19 +2520,19 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2505
2520
|
a:hover {
|
|
2506
2521
|
text-decoration: underline;
|
|
2507
2522
|
}
|
|
2508
|
-
`,
|
|
2523
|
+
`,tg=ae`
|
|
2509
2524
|
svg {
|
|
2510
2525
|
height: 12px;
|
|
2511
2526
|
width: 12px;
|
|
2512
2527
|
color: ${ve("neutral",600)};
|
|
2513
2528
|
}
|
|
2514
|
-
`,
|
|
2529
|
+
`,ng=ae`
|
|
2515
2530
|
cursor: pointer;
|
|
2516
2531
|
color: ${ve("neutral",600)};
|
|
2517
2532
|
display: flex;
|
|
2518
2533
|
justify-content: center;
|
|
2519
2534
|
align-items: center;
|
|
2520
|
-
`,
|
|
2535
|
+
`,rg=({links:e,separator:t,maxItems:n=99,linkRouter:r})=>{const[i,o]=U(e.length>n);X((()=>{o(e.length>n)}),[e.length]);const a=r;return F(D.Root,{children:F(D.List,{gap:"16px",children:i?B(Z,{children:[F(D.Item,{css:eg,children:B(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),F(D.Separator,{css:tg,children:t||F(Re,{rotate:"270"})}),F("li",{className:"chakra-breadcrumb__item",children:F("button",{css:ng,type:"button",onClick:()=>o(!1),children:"..."})}),F(D.Separator,{css:tg,children:t||F(Re,{rotate:"270"})}),F(D.Item,{css:eg,children:B("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?B(oe,{children:[F(D.Item,{css:eg,children:r<e.length-1?B(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):B("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?F(D.Separator,{css:tg,children:t||F(Re,{rotate:"270"})}):null]},n.label):null))})})},ig=(e,t)=>ae`
|
|
2521
2536
|
min-height: 56px;
|
|
2522
2537
|
width: 100vw;
|
|
2523
2538
|
position: ${e?"sticky":"absolute"};
|
|
@@ -2527,7 +2542,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2527
2542
|
background-color: ${ve("neutral",t?200:100)};
|
|
2528
2543
|
border-top: 1px solid ${ve("neutral",400)};
|
|
2529
2544
|
z-index: 101;
|
|
2530
|
-
`,
|
|
2545
|
+
`,og=e=>ae`
|
|
2531
2546
|
height: 100%;
|
|
2532
2547
|
width: 100%;
|
|
2533
2548
|
max-width: ${e?`${e}px`:"100%"};
|
|
@@ -2542,7 +2557,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2542
2557
|
flex-direction: column;
|
|
2543
2558
|
align-items: flex-start;
|
|
2544
2559
|
}
|
|
2545
|
-
`,
|
|
2560
|
+
`,ag=ae`
|
|
2546
2561
|
display: flex;
|
|
2547
2562
|
align-items: center;
|
|
2548
2563
|
flex-wrap: wrap;
|
|
@@ -2555,7 +2570,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2555
2570
|
color: ${ve("neutral",700)};
|
|
2556
2571
|
text-decoration: underline;
|
|
2557
2572
|
}
|
|
2558
|
-
`,
|
|
2573
|
+
`,lg=ae`
|
|
2559
2574
|
width: 240px;
|
|
2560
2575
|
font-size: 14px;
|
|
2561
2576
|
line-height: 20px;
|
|
@@ -2566,13 +2581,13 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2566
2581
|
@media screen and (max-width: 768px) {
|
|
2567
2582
|
text-align: left;
|
|
2568
2583
|
}
|
|
2569
|
-
`,
|
|
2584
|
+
`,sg=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:i})=>{const o=(new Date).getFullYear();return F("footer",{css:ig(n,r),children:B("div",{css:og(i),children:[F("div",{children:F(Ae,{height:"32px",width:"91px"})}),F("div",{css:ag,children:e}),F("div",{children:B("p",{css:lg,children:[t," ",o]})})]})})},cg=ae`
|
|
2570
2585
|
width: 100%;
|
|
2571
2586
|
display: flex;
|
|
2572
2587
|
align-items: center;
|
|
2573
2588
|
height: 56px;
|
|
2574
2589
|
background-color: ${ve("neutral",200)};
|
|
2575
|
-
`,
|
|
2590
|
+
`,dg=ae`
|
|
2576
2591
|
height: 56px;
|
|
2577
2592
|
width: 99%;
|
|
2578
2593
|
background-color: ${ve("neutral",200)};
|
|
@@ -2666,9 +2681,9 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2666
2681
|
opacity: 1;
|
|
2667
2682
|
}
|
|
2668
2683
|
}
|
|
2669
|
-
`,
|
|
2684
|
+
`,ug=ae`
|
|
2670
2685
|
position: relative;
|
|
2671
|
-
`,
|
|
2686
|
+
`,pg=ae`
|
|
2672
2687
|
position: absolute;
|
|
2673
2688
|
top: -5px;
|
|
2674
2689
|
right: -5px;
|
|
@@ -2683,7 +2698,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2683
2698
|
display: flex;
|
|
2684
2699
|
justify-content: center;
|
|
2685
2700
|
align-items: center;
|
|
2686
|
-
`,
|
|
2701
|
+
`,hg=(e,t)=>e.findIndex((e=>e.value===t)),fg=({defaultValue:e,tabs:t,onTabClick:n,hideLabels:r,activationMode:i="manual"})=>{const[o,a]=U(hg(t,e)||0);return F("div",{css:cg,children:F(N.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>{return a(hg(t,r=e)),void(n&&n(r));var r},activationMode:i,children:F(N.List,{alignItems:"center",border:"none",children:t.map((e=>{const{label:t,icon:n,bagdeCount:i,"aria-label":o,...a}=e;return B(N.Trigger,{css:dg,"aria-label":o||t,...a,children:[B("div",{css:ug,children:[n,i?F("div",{css:pg,className:"ds-badge-count",children:i}):null]}),r?null:F("p",{children:t})]},t)}))})})})},gg=(e,t)=>ae`
|
|
2687
2702
|
height: ${e?"96px":"48px"};
|
|
2688
2703
|
width: 100%;
|
|
2689
2704
|
background-color: ${ve("neutral",100)};
|
|
@@ -2692,7 +2707,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2692
2707
|
left: 0;
|
|
2693
2708
|
z-index: 102;
|
|
2694
2709
|
border-bottom: 1px solid ${ve("neutral",400)};
|
|
2695
|
-
`,
|
|
2710
|
+
`,vg=ae`
|
|
2696
2711
|
height: 48px;
|
|
2697
2712
|
width: 100%;
|
|
2698
2713
|
background-color: ${ve("neutral",100)};
|
|
@@ -2702,7 +2717,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2702
2717
|
justify-content: flex-start;
|
|
2703
2718
|
gap: 0px;
|
|
2704
2719
|
padding: 8px 16px;
|
|
2705
|
-
`,
|
|
2720
|
+
`,mg=(e,t)=>ae`
|
|
2706
2721
|
height: 48px;
|
|
2707
2722
|
width: 100%;
|
|
2708
2723
|
max-width: ${t?`${t}px`:"100%"};
|
|
@@ -2712,7 +2727,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2712
2727
|
justify-content: space-between;
|
|
2713
2728
|
margin: 0 auto;
|
|
2714
2729
|
padding: 8px 16px;
|
|
2715
|
-
`,
|
|
2730
|
+
`,xg=ae`
|
|
2716
2731
|
outline: none;
|
|
2717
2732
|
a {
|
|
2718
2733
|
&:focus-visible {
|
|
@@ -2723,12 +2738,12 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2723
2738
|
outline-width: 2px;
|
|
2724
2739
|
}
|
|
2725
2740
|
}
|
|
2726
|
-
`,
|
|
2741
|
+
`,bg=e=>ae`
|
|
2727
2742
|
display: ${e?"none":"flex"};
|
|
2728
2743
|
align-items: center;
|
|
2729
2744
|
justify-content: flex-start;
|
|
2730
2745
|
gap: 0px;
|
|
2731
|
-
`,
|
|
2746
|
+
`,yg=e=>ae`
|
|
2732
2747
|
font-size: 16px;
|
|
2733
2748
|
line-height: 24px;
|
|
2734
2749
|
font-weight: 400;
|
|
@@ -2753,12 +2768,12 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2753
2768
|
font-weight: 700;
|
|
2754
2769
|
color: ${ve("accessible","controls-on-neutral-lights")};
|
|
2755
2770
|
`:""}
|
|
2756
|
-
`,
|
|
2771
|
+
`,wg=ae`
|
|
2757
2772
|
height: 48px;
|
|
2758
2773
|
display: flex;
|
|
2759
2774
|
align-items: center;
|
|
2760
2775
|
justify-content: flex-end;
|
|
2761
|
-
`,
|
|
2776
|
+
`,Cg=e=>ae`
|
|
2762
2777
|
height: 100%;
|
|
2763
2778
|
font-size: 16px;
|
|
2764
2779
|
line-height: 24px;
|
|
@@ -2777,7 +2792,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2777
2792
|
}
|
|
2778
2793
|
}
|
|
2779
2794
|
`:""}
|
|
2780
|
-
|
|
2795
|
+
`,$g=e=>ae`
|
|
2781
2796
|
height: 100%;
|
|
2782
2797
|
display: flex;
|
|
2783
2798
|
align-items: center;
|
|
@@ -2785,7 +2800,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2785
2800
|
gap: 20px;
|
|
2786
2801
|
padding-left: 16px;
|
|
2787
2802
|
border-left: 1px solid ${ve("neutral",e?700:300)};
|
|
2788
|
-
`,
|
|
2803
|
+
`,kg=ae`
|
|
2789
2804
|
background-color: none;
|
|
2790
2805
|
border: none;
|
|
2791
2806
|
cursor: pointer;
|
|
@@ -2810,7 +2825,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2810
2825
|
outline-width: 2px;
|
|
2811
2826
|
background-color: ${ve("neutral",200)};
|
|
2812
2827
|
}
|
|
2813
|
-
|
|
2828
|
+
`,Sg=e=>ae`
|
|
2814
2829
|
position: absolute;
|
|
2815
2830
|
top: 48px;
|
|
2816
2831
|
right: 0;
|
|
@@ -2823,10 +2838,10 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2823
2838
|
justify-content: flex-start;
|
|
2824
2839
|
gap: 16px;
|
|
2825
2840
|
transition: width 0.5s ease-in-out;
|
|
2826
|
-
`,
|
|
2841
|
+
`,Eg=ae`
|
|
2827
2842
|
height: 100%;
|
|
2828
2843
|
width: 100%;
|
|
2829
|
-
`,
|
|
2844
|
+
`,Og=ae`
|
|
2830
2845
|
background-color: ${ve("neutral",200)};
|
|
2831
2846
|
border-bottom: 1px solid ${ve("neutral",300)};
|
|
2832
2847
|
|
|
@@ -2846,13 +2861,13 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2846
2861
|
margin-left: -12px;
|
|
2847
2862
|
}
|
|
2848
2863
|
}
|
|
2849
|
-
`,
|
|
2864
|
+
`,Rg=ae`
|
|
2850
2865
|
background-color: ${ve("neutral",100)};
|
|
2851
|
-
`,
|
|
2866
|
+
`,Lg=ae`
|
|
2852
2867
|
min-height: 100vh;
|
|
2853
2868
|
width: 100%;
|
|
2854
2869
|
overflow-y: scroll;
|
|
2855
|
-
`;ae``;const
|
|
2870
|
+
`;ae``;const Pg=e=>ae`
|
|
2856
2871
|
display: inline-block;
|
|
2857
2872
|
width: 100%;
|
|
2858
2873
|
padding: 12px 16px;
|
|
@@ -2881,7 +2896,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2881
2896
|
outline-width: 2px;
|
|
2882
2897
|
background-color: ${ve("neutral",200)};
|
|
2883
2898
|
}
|
|
2884
|
-
`,
|
|
2899
|
+
`,Tg=ae`
|
|
2885
2900
|
width: 100%;
|
|
2886
2901
|
padding: 12px 16px;
|
|
2887
2902
|
display: flex;
|
|
@@ -2905,7 +2920,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2905
2920
|
outline-width: 2px;
|
|
2906
2921
|
background-color: ${ve("neutral",200)};
|
|
2907
2922
|
}
|
|
2908
|
-
`,
|
|
2923
|
+
`,_g=e=>ae`
|
|
2909
2924
|
position: absolute;
|
|
2910
2925
|
top: 0px;
|
|
2911
2926
|
right: 0;
|
|
@@ -2917,7 +2932,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2917
2932
|
align-items: flex-start;
|
|
2918
2933
|
justify-content: flex-start;
|
|
2919
2934
|
transition: width 0.5s ease-in-out;
|
|
2920
|
-
`,
|
|
2935
|
+
`,Mg=ae`
|
|
2921
2936
|
height: 48px;
|
|
2922
2937
|
width: 100%;
|
|
2923
2938
|
display: flex;
|
|
@@ -2928,7 +2943,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2928
2943
|
position: relative;
|
|
2929
2944
|
top: 0;
|
|
2930
2945
|
left: 0;
|
|
2931
|
-
`,
|
|
2946
|
+
`,Dg=ae`
|
|
2932
2947
|
position: absolute;
|
|
2933
2948
|
bottom: 0;
|
|
2934
2949
|
left: 0;
|
|
@@ -2943,13 +2958,13 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2943
2958
|
button {
|
|
2944
2959
|
width: calc(48% - 24px);
|
|
2945
2960
|
}
|
|
2946
|
-
`,
|
|
2961
|
+
`,Ng=({navigationSection:e,utilitySection:t,actionsSection:n,linkRouter:r,isOpen:i,setIsOpen:o,pathname:a})=>{const[l,s]=U(void 0),[c,d]=U(-1),u=J(null),p=J([]),h=r;return B(Z,{children:[F("div",{css:Sg(i),children:i&&B("div",{css:Eg,children:[B("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[t?F("div",{css:Og,children:t?.map((e=>F("div",{className:"ds-utility-item",children:e})))}):null,e?F("div",{css:Rg,children:e.map(((e,t)=>e.link?F(h,{to:e.link,href:e.link,onClick:()=>{s(void 0),d(-1),o(!1)},css:Pg(a===e.link),children:e.label},e.label):B("button",{css:Tg,type:"button",ref:e=>p.current[t]=e,onClick:()=>{e.items&&(s(e),d(t),setTimeout((()=>{u.current?.focus()}),100))},children:[e.label,e.items?F(Re,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),n?F("div",{css:Dg,children:n.map((e=>F(Ce,{label:e.label,onClick:()=>{e?.onClick?.(),s(void 0),d(-1),o(!1)}},e.label)))}):null]})}),F("div",{css:_g(!!l?.items),children:l?.items?B(Z,{children:[B("div",{css:Mg,children:[B("button",{type:"button",onClick:()=>{s(void 0),d(-1),p.current[c]?.focus()},"aria-label":"Go back",css:kg,ref:u,children:[F(Re,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),l?.label]}),B("button",{type:"button",onClick:()=>{s(void 0),d(-1),o(!1)},"aria-label":"Close menu",css:kg,children:["Close",F(Te,{height:"16px",width:"16px"})]})]}),F("div",{css:Lg,children:l?.items?.map((e=>F(h,{to:e.link,href:e.link,css:Pg(),onClick:()=>{s(void 0),d(-1),o(!1)},children:e.label},e.label)))})]}):null})]})},Vg=1023,jg=({logo:e,linkRouter:t,pathname:n,navigationSection:r,utilitySection:i,actionsSection:o,maxWidth:a,fixed:l,onNavbarHeightChange:s})=>{const c=J(null),d=J(null),u=J(null),[p,h]=U(!1),[f,g]=U(-1),[v,m]=U("undefined"!=typeof window&&window?.innerWidth<=Vg),[x,b]=U(!1),y=t,w=te((()=>{if(d.current&&c.current&&u.current){const e=c.current.getBoundingClientRect(),t=d.current.getBoundingClientRect(),n=u.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=Vg||window.innerWidth<=f?(s?.(96),h(!0)):window.innerWidth>Vg&&window.innerWidth<=1440?e.right>=t.left?(s?.(96),h(!0),g(window.innerWidth)):window.innerWidth>f&&(s?.(48),h(!1),g(-1)):(s?.(48),h(!1),g(-1)),p&&(window.innerWidth<=Vg||n.right>=t.left?(m(!0),s?.(48)):(m(!1),s?.(96)))}}),[f,p]);return X((()=>(w(),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w)})),[w]),B("nav",{css:gg(p&&!v,l),children:[B("div",{css:mg(p&&!v,a),children:[B("div",{css:(C=p&&!v,ae`
|
|
2947
2962
|
display: flex;
|
|
2948
2963
|
align-items: center;
|
|
2949
2964
|
justify-content: flex-start;
|
|
2950
2965
|
gap: 12px;
|
|
2951
2966
|
color: ${ve("neutral",C?100:900)};
|
|
2952
|
-
`),ref:c,children:[e?F("div",{ref:u,css:
|
|
2967
|
+
`),ref:c,children:[e?F("div",{ref:u,css:xg,children:e}):null,F("div",{css:bg(p),children:r?.map((e=>e.link?F(y,{to:e.link,href:e.link,css:yg(n===e.link),children:e.label},e.label):F(gt,{label:e.label,items:e.items||[]},e.label)))})]}),F("div",{css:wg,ref:d,children:v?B("button",{type:"button",onClick:()=>b(!x),"aria-label":"Open menu",css:kg,children:[x?"Close":"Menu",F(x?Te:nt,{height:"16px",width:"16px"})]}):B(Z,{children:[F("div",{css:wg,children:i?.map(((e,t)=>F("div",{css:Cg(p),children:e},t)))}),o?F("div",{css:$g(p),children:o.map((e=>F(Ce,{...e},e.label)))}):null]})})]}),p&&!v?F("div",{css:vg,children:r?.map((e=>e.link?F(y,{to:e.link,href:e.link,css:yg(n===e.link),children:e.label},e.label):F(gt,{label:e.label,items:e.items||[]},e.label)))}):null,v?F(Ng,{navigationSection:r,utilitySection:i,actionsSection:o,linkRouter:t,isOpen:x,setIsOpen:b,pathname:n}):null]});var C},Ig=ae`
|
|
2953
2968
|
width: 64px;
|
|
2954
2969
|
height: 100%;
|
|
2955
2970
|
z-index: 100;
|
|
@@ -2958,7 +2973,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2958
2973
|
display: flex;
|
|
2959
2974
|
flex-direction: column;
|
|
2960
2975
|
justify-content: space-between;
|
|
2961
|
-
`,
|
|
2976
|
+
`,Ag=ae`
|
|
2962
2977
|
width: 64px;
|
|
2963
2978
|
height: 64px;
|
|
2964
2979
|
background-color: ${ve("neutral",200)};
|
|
@@ -3048,7 +3063,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3048
3063
|
}
|
|
3049
3064
|
}
|
|
3050
3065
|
}
|
|
3051
|
-
`,
|
|
3066
|
+
`,zg=ae`
|
|
3052
3067
|
display: flex;
|
|
3053
3068
|
justify-content: center;
|
|
3054
3069
|
align-items: center;
|
|
@@ -3061,7 +3076,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3061
3076
|
fill: ${ve("neutral",600)};
|
|
3062
3077
|
}
|
|
3063
3078
|
}
|
|
3064
|
-
`,
|
|
3079
|
+
`,Hg=ae`
|
|
3065
3080
|
width: 64px;
|
|
3066
3081
|
height: 64px;
|
|
3067
3082
|
background-color: ${ve("neutral",200)};
|
|
@@ -3099,7 +3114,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3099
3114
|
text-align: center;
|
|
3100
3115
|
color: ${ve("neutral",600)};
|
|
3101
3116
|
}
|
|
3102
|
-
`,
|
|
3117
|
+
`,Bg=ae`
|
|
3103
3118
|
width: 320px;
|
|
3104
3119
|
height: 100%;
|
|
3105
3120
|
z-index: 100;
|
|
@@ -3107,14 +3122,14 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3107
3122
|
background-color: ${ve("neutral",100)};
|
|
3108
3123
|
overflow-y: auto;
|
|
3109
3124
|
overflow-x: hidden;
|
|
3110
|
-
`,
|
|
3125
|
+
`,Fg=({tabs:e=[],defaultValue:t,onTabClick:n,children:i,onOpenChange:o})=>{const[a,l]=U(!1),[s,c]=U(t||e?.[0]?.value);return B("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[B("div",{css:Ig,children:[F(N.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{var t;c(t=e),n&&n(t)},role:"tablist",children:F(N.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>F(N.Trigger,{css:Ag,"aria-label":e["aria-label"]||e.label,...e,children:B(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"ds-tab-label",children:[e.icon?F("div",{css:zg,children:e.icon}):null,F("p",{children:e.label})]})},e.label)))})}),i?F(V.Root,{onOpenChange:({open:e})=>{l(e),o&&o(!e)},children:B(V.Trigger,{css:Hg,children:[F("div",{css:zg,children:F(a?ke:$e,{})}),B("div",{className:"ds-tab-label",children:[F("p",{children:a?"Show":"Hide"}),F("p",{children:"Sidebar"})]})]})}):null]}),i?F(V.Root,{defaultOpen:!0,open:!a,children:F(V.Content,{height:"100%",children:F("div",{css:Bg,role:"tabpanel","aria-labelledby":s,children:i})})}):null]})},Zg=e=>ae`
|
|
3111
3126
|
width: 100%;
|
|
3112
3127
|
display: flex;
|
|
3113
3128
|
align-items: center;
|
|
3114
3129
|
height: 40px;
|
|
3115
3130
|
|
|
3116
3131
|
${"view"===e&&`\n border: 1px solid ${ve("neutral",400)};\n background-color: ${ve("neutral",200)};\n border-radius: 4px;\n padding: 4px;\n `}
|
|
3117
|
-
`,
|
|
3132
|
+
`,Wg=ae`
|
|
3118
3133
|
width: 99%;
|
|
3119
3134
|
height: 40px;
|
|
3120
3135
|
padding: 8px 16px;
|
|
@@ -3130,7 +3145,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3130
3145
|
&:focus-visible {
|
|
3131
3146
|
box-shadow: none;
|
|
3132
3147
|
}
|
|
3133
|
-
`,
|
|
3148
|
+
`,qg=ae`
|
|
3134
3149
|
background-color: ${ve("neutral",200)};
|
|
3135
3150
|
color: ${ve("neutral",700)};
|
|
3136
3151
|
|
|
@@ -3187,11 +3202,11 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3187
3202
|
opacity: 1;
|
|
3188
3203
|
}
|
|
3189
3204
|
}
|
|
3190
|
-
`,
|
|
3205
|
+
`,Gg=ae`
|
|
3191
3206
|
width: 4px;
|
|
3192
3207
|
height: 24px;
|
|
3193
3208
|
background-color: ${ve("neutral",400)};
|
|
3194
|
-
`,
|
|
3209
|
+
`,Ug=ae`
|
|
3195
3210
|
height: 32px;
|
|
3196
3211
|
border-radius: 2px;
|
|
3197
3212
|
background-color: ${ve("neutral",200)};
|
|
@@ -3264,7 +3279,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3264
3279
|
opacity: 1;
|
|
3265
3280
|
}
|
|
3266
3281
|
}
|
|
3267
|
-
`,
|
|
3282
|
+
`,Xg=(e,t)=>e.findIndex((e=>e.value===t)),Yg=e=>1===e?"none":2===e?"left":"right",Kg=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:i,activationMode:o="manual"})=>{const[a,l]=U(Xg(n,t)||0),s="view"===e;return F("div",{css:Zg(e),children:F(N.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return l(Xg(n,t=e)),void(i&&i(t));var t},activationMode:o,children:F(N.List,{alignItems:"center",border:"none",children:n.map(((e,t)=>B(oe,{children:[s&&1===t&&"left"===Yg(a)?F("div",{css:Gg}):null,F(N.Trigger,{css:[Wg,s?Ug:qg],"aria-label":e["aria-label"]||e.label,...e,children:B(r,{display:"flex",alignItems:"center",gap:"5px",children:[e.icon,e.label]})},e.label),s&&1===t&&"right"===Yg(a)?F("div",{css:Gg}):null]},e.label)))})})})},Jg=ae`
|
|
3268
3283
|
height: 28px;
|
|
3269
3284
|
width: 28px;
|
|
3270
3285
|
border-radius: 50%;
|
|
@@ -3295,17 +3310,17 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3295
3310
|
background-color: ${ve("primary",500)};
|
|
3296
3311
|
}
|
|
3297
3312
|
}
|
|
3298
|
-
`,
|
|
3313
|
+
`,Qg=ae`
|
|
3299
3314
|
font-size: 12px;
|
|
3300
3315
|
line-height: 16px;
|
|
3301
3316
|
font-weight: 700;
|
|
3302
3317
|
color: ${ve("primary",800)};
|
|
3303
|
-
`,
|
|
3318
|
+
`,ev=e=>ae`
|
|
3304
3319
|
width: ${e||"16px"};
|
|
3305
3320
|
position: absolute;
|
|
3306
3321
|
top: -8px;
|
|
3307
3322
|
left: 15px;
|
|
3308
|
-
`,
|
|
3323
|
+
`,tv=G((({name:e,ariaLabel:t,src:n,srcSet:r,onClick:i,notificationCount:o},a)=>{const l=(()=>{let e="";return o&&o>0&&(e=`${o>99?"99+":o}`),e})();let s="16px";return o&&o>99?s="28px":o&&o>9&&(s="22px"),B(j.Root,{"aria-label":t||e,ref:a,css:Jg,onClick:i,onKeyDown:e=>{"Enter"===e.key&&i?.()},role:i?"button":void 0,tabIndex:i?0:void 0,children:[F(j.Fallback,{name:e,css:Qg}),F(j.Image,{src:n,srcSet:r}),l.length>0?F("div",{css:ev(s),children:F("div",{css:ae`
|
|
3309
3324
|
height: 16px;
|
|
3310
3325
|
width: auto;
|
|
3311
3326
|
background-color: ${ve("error",500)};
|
|
@@ -3317,16 +3332,16 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3317
3332
|
font-size: 12px;
|
|
3318
3333
|
font-weight: 700;
|
|
3319
3334
|
color: ${ve("error",100)};
|
|
3320
|
-
`,children:F("p",{"aria-label":`${o} unread message`,children:l})})}):null]})})),
|
|
3335
|
+
`,children:F("p",{"aria-label":`${o} unread message`,children:l})})}):null]})})),nv=ae`
|
|
3321
3336
|
display: flex;
|
|
3322
3337
|
justify-content: flex-start;
|
|
3323
3338
|
align-items: center;
|
|
3324
3339
|
gap: 8px;
|
|
3325
|
-
`,
|
|
3340
|
+
`,rv=e=>ae`
|
|
3326
3341
|
width: ${e||"16px"};
|
|
3327
3342
|
position: relative;
|
|
3328
3343
|
display: flex;
|
|
3329
|
-
`,
|
|
3344
|
+
`,iv=ae`
|
|
3330
3345
|
height: 4px;
|
|
3331
3346
|
width: 4px;
|
|
3332
3347
|
background-color: ${ve("error",500)};
|
|
@@ -3334,7 +3349,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3334
3349
|
position: absolute;
|
|
3335
3350
|
top: 0px;
|
|
3336
3351
|
right: 0px;
|
|
3337
|
-
`,
|
|
3352
|
+
`,ov=ae`
|
|
3338
3353
|
height: 10px;
|
|
3339
3354
|
background-color: ${ve("error",500)};
|
|
3340
3355
|
padding: 0 3px 1px 3px;
|
|
@@ -3345,11 +3360,11 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3345
3360
|
position: absolute;
|
|
3346
3361
|
top: -2px;
|
|
3347
3362
|
left: 9px;
|
|
3348
|
-
`,
|
|
3363
|
+
`,av=ae`
|
|
3349
3364
|
font-size: 9px;
|
|
3350
3365
|
font-weight: 700;
|
|
3351
3366
|
color: ${ve("error",100)};
|
|
3352
|
-
`,
|
|
3367
|
+
`,lv=ae`
|
|
3353
3368
|
height: 16px;
|
|
3354
3369
|
min-width: 16px;
|
|
3355
3370
|
background-color: ${ve("error",500)};
|
|
@@ -3358,11 +3373,11 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3358
3373
|
justify-content: center;
|
|
3359
3374
|
align-items: center;
|
|
3360
3375
|
padding: 0px 4px 1px 4px;
|
|
3361
|
-
`,
|
|
3376
|
+
`,sv=ae`
|
|
3362
3377
|
font-size: 16px;
|
|
3363
3378
|
font-weight: 700;
|
|
3364
3379
|
color: ${ve("error",100)};
|
|
3365
|
-
`,
|
|
3380
|
+
`,cv=({hasNotification:e,notificationCount:t,label:n})=>{const[r,i]=U(!1);X((()=>{const e=()=>{window.innerWidth<1024?i(!0):i(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const o=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let a="16px";return t&&t>99?a="28px":t&&t>9&&(a="22px"),B("div",r?{css:nv,role:"status","aria-live":"polite",children:[B("div",{css:rv(),children:[F(ze,{color:"currentColor",height:"16px",width:"16px"}),!e||t||n?null:F("div",{css:iv,"aria-hidden":!0})]}),n?F("p",{children:n}):null,o.length>0?F("div",{css:lv,children:F("p",{css:sv,"aria-label":`${t} unread message`,children:o})}):null]}:{css:nv,role:"status","aria-live":"polite",children:[n?F("p",{children:n}):null,B("div",{css:rv(a),children:[o.length>0?F("div",{css:ov,children:F("p",{css:av,"aria-label":`${t} unread message`,children:o})}):null,e&&!t?F("div",{css:iv,"aria-hidden":!0}):null,F(ze,{color:"currentColor",height:"16px",width:"16px"})]})]})},dv=(e,t)=>ae`
|
|
3366
3381
|
width: 100%;
|
|
3367
3382
|
min-width: ${"small"===e?"234px":"320px"};
|
|
3368
3383
|
border-radius: 4px;
|
|
@@ -3377,7 +3392,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3377
3392
|
button {
|
|
3378
3393
|
margin-left: ${t?0:"24px"};
|
|
3379
3394
|
}
|
|
3380
|
-
`,
|
|
3395
|
+
`,uv=ae`
|
|
3381
3396
|
display: flex;
|
|
3382
3397
|
align-items: flex-start;
|
|
3383
3398
|
gap: 8px;
|
|
@@ -3385,28 +3400,28 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3385
3400
|
svg {
|
|
3386
3401
|
margin-top: 6px;
|
|
3387
3402
|
}
|
|
3388
|
-
`,
|
|
3403
|
+
`,pv=e=>ae`
|
|
3389
3404
|
color: ${ve("neutral",800)};
|
|
3390
3405
|
font-size: ${"small"===e?"14px":"18px"};
|
|
3391
3406
|
line-height: ${"small"===e?"20px":"28px"};
|
|
3392
3407
|
font-weight: 400;
|
|
3393
3408
|
text-align: left;
|
|
3394
|
-
`,
|
|
3409
|
+
`,hv=e=>ae`
|
|
3395
3410
|
color: ${ve("neutral",700)};
|
|
3396
3411
|
font-size: ${"small"===e?"12px":"16px"};
|
|
3397
3412
|
line-height: ${"small"===e?"16px":"24px"};
|
|
3398
3413
|
font-weight: 400;
|
|
3399
3414
|
margin-left: 24px;
|
|
3400
3415
|
text-align: left;
|
|
3401
|
-
`,
|
|
3416
|
+
`,fv=ae`
|
|
3402
3417
|
background-color: ${ve("neutral",100)};
|
|
3403
3418
|
border: 1px solid ${ve("neutral",300)};
|
|
3404
3419
|
color: ${ve("neutral",700)};
|
|
3405
|
-
`,
|
|
3420
|
+
`,gv=ae`
|
|
3406
3421
|
background-color: ${ve("neutral",200)};
|
|
3407
3422
|
border: 1px solid ${ve("neutral",300)};
|
|
3408
3423
|
color: ${ve("neutral",700)};
|
|
3409
|
-
`,
|
|
3424
|
+
`,vv=ae`
|
|
3410
3425
|
background-color: ${ve("success",100)};
|
|
3411
3426
|
border: 1px solid ${ve("success",300)};
|
|
3412
3427
|
color: ${ve("success",500)};
|
|
@@ -3414,7 +3429,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3414
3429
|
p {
|
|
3415
3430
|
color: ${ve("success",900)};
|
|
3416
3431
|
}
|
|
3417
|
-
`,
|
|
3432
|
+
`,mv=ae`
|
|
3418
3433
|
background-color: ${ve("warning",100)};
|
|
3419
3434
|
border: 1px solid ${ve("warning",300)};
|
|
3420
3435
|
color: ${ve("warning",500)};
|
|
@@ -3422,7 +3437,7 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3422
3437
|
p {
|
|
3423
3438
|
color: ${ve("warning",900)};
|
|
3424
3439
|
}
|
|
3425
|
-
`,
|
|
3440
|
+
`,xv=ae`
|
|
3426
3441
|
background-color: ${ve("error",100)};
|
|
3427
3442
|
border: 1px solid ${ve("error",300)};
|
|
3428
3443
|
color: ${ve("error",500)};
|
|
@@ -3430,32 +3445,32 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3430
3445
|
p {
|
|
3431
3446
|
color: ${ve("error",900)};
|
|
3432
3447
|
}
|
|
3433
|
-
`,
|
|
3448
|
+
`,bv=({label:e,caption:t,variant:n,size:r="large",icon:i=F(Oe,{height:"16px",width:"16px"}),onActionClick:o,actionLabel:a,isButtonRight:l})=>{let s=fv;return"info-grey"===n?s=gv:"success"===n?s=vv:"warning"===n?s=mv:"error"===n&&(s=xv),B("div",{css:[dv(r,l),s],"aria-roledescription":"Note",children:[B("div",{children:[B("div",{css:uv,children:[i,F("p",{css:pv(r),children:e})]}),F("p",{css:hv(r),children:t})]}),a?F(Ce,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:o}):null]})},yv=ae`
|
|
3434
3449
|
height: 8px;
|
|
3435
3450
|
width: 100%;
|
|
3436
3451
|
background-color: ${ve("neutral",300)};
|
|
3437
3452
|
display: flex;
|
|
3438
3453
|
align-items: center;
|
|
3439
3454
|
justify-content: flex-start;
|
|
3440
|
-
`,
|
|
3455
|
+
`,wv=e=>ae`
|
|
3441
3456
|
height: 100%;
|
|
3442
3457
|
width: ${e}%;
|
|
3443
3458
|
background-color: ${ve("primary",500)};
|
|
3444
3459
|
transition: width 0.5s ease-in-out;
|
|
3445
|
-
`,
|
|
3460
|
+
`,Cv=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),F("div",{css:yv,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:F("div",{css:wv(t)})})},$v=ae`
|
|
3446
3461
|
width: 100%;
|
|
3447
3462
|
display: flex;
|
|
3448
3463
|
align-items: center;
|
|
3449
3464
|
justify-content: space-between;
|
|
3450
3465
|
position: relative;
|
|
3451
|
-
`,
|
|
3466
|
+
`,kv=ae`
|
|
3452
3467
|
height: 60px;
|
|
3453
3468
|
width: 80px;
|
|
3454
3469
|
display: flex;
|
|
3455
3470
|
flex-direction: column;
|
|
3456
3471
|
align-items: center;
|
|
3457
3472
|
justify-content: space-between;
|
|
3458
|
-
|
|
3473
|
+
`,Sv=(e,t)=>ae`
|
|
3459
3474
|
height: 32px;
|
|
3460
3475
|
width: 32px;
|
|
3461
3476
|
display: flex;
|
|
@@ -3491,12 +3506,12 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3491
3506
|
}
|
|
3492
3507
|
|
|
3493
3508
|
${t?`\n background-color: ${ve("neutral",300)};\n \n &:hover {\n background-color: ${ve("neutral",300)};\n box-shadow: none;\n }\n `:""}
|
|
3494
|
-
`,
|
|
3509
|
+
`,Ev=e=>ae`
|
|
3495
3510
|
color: ${ve("neutral",e?800:600)};
|
|
3496
3511
|
font-size: 14px;
|
|
3497
3512
|
line-height: 20px;
|
|
3498
3513
|
font-weight: 400;
|
|
3499
|
-
`,
|
|
3514
|
+
`,Ov=ae`
|
|
3500
3515
|
height: 1px;
|
|
3501
3516
|
width: 100%;
|
|
3502
3517
|
padding: 0 30px;
|
|
@@ -3504,11 +3519,11 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3504
3519
|
top: 16px;
|
|
3505
3520
|
left: 0;
|
|
3506
3521
|
z-index: -1;
|
|
3507
|
-
`,
|
|
3522
|
+
`,Rv=ae`
|
|
3508
3523
|
height: 1px;
|
|
3509
3524
|
width: 100%;
|
|
3510
3525
|
background-color: ${ve("neutral",400)};
|
|
3511
|
-
`,
|
|
3526
|
+
`,Lv=({steps:e,currentStep:t})=>B("div",{css:$v,children:[e.map(((e,n)=>B("div",{css:kv,children:[F("button",{css:Sv(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":`Current Step ${n}${e.label?` ${e.label}`:""}`,"data-active":t>=n+1,children:t>n+1?F(Se,{height:"16px",width:"16px"}):n+1}),e.label?F("p",{css:Ev(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),F("div",{css:Ov,children:F("div",{css:Rv})})]}),Pv=ae`
|
|
3512
3527
|
justify-content: space-between;
|
|
3513
3528
|
align-items: center;
|
|
3514
3529
|
gap: 8px;
|
|
@@ -3551,18 +3566,18 @@ function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3551
3566
|
color: ${ve("error",900)};
|
|
3552
3567
|
}
|
|
3553
3568
|
}
|
|
3554
|
-
`,
|
|
3569
|
+
`,Tv=ae`
|
|
3555
3570
|
font-size: 18px;
|
|
3556
3571
|
line-height: 28px;
|
|
3557
3572
|
font-weight: 400;
|
|
3558
3573
|
color: ${ve("neutral",800)};
|
|
3559
|
-
`,
|
|
3574
|
+
`,_v=ae`
|
|
3560
3575
|
font-size: 16px;
|
|
3561
3576
|
line-height: 24px;
|
|
3562
3577
|
font-weight: 400;
|
|
3563
3578
|
color: ${ve("neutral",700)};
|
|
3564
|
-
`,
|
|
3579
|
+
`,Mv=ae`
|
|
3565
3580
|
padding: 6px;
|
|
3566
|
-
`,
|
|
3581
|
+
`,Dv=ae`
|
|
3567
3582
|
padding: 6px;
|
|
3568
|
-
`,
|
|
3583
|
+
`,Nv={pauseOnPageIdle:!0,offsets:"24px"},Vv={"top-start":I({placement:"top-start",...Nv}),"top-end":I({placement:"top-end",...Nv}),"bottom-start":I({placement:"bottom-start",...Nv}),"bottom-end":I({placement:"bottom-end",...Nv})},jv=e=>{Vv[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})},Iv=()=>Object.keys(Vv).map((e=>F(l,{children:F(A,{toaster:Vv[e],insetInline:{mdDown:"4"},children:t=>B(z.Root,{css:Pv,width:{md:"sm"},children:[B(H,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===t.type?t.meta?.icon?t.meta.icon:F(Oe,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===t.type?F(i,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===t.type?t.meta?.icon?t.meta.icon:F(Ve,{color:"var(--chakra-colors-success-500)"}):null,"warning"===t.type?t.meta?.icon?t.meta.icon:F(je,{color:"var(--chakra-colors-warning-500)"}):null,"error"===t.type?t.meta?.icon?t.meta.icon:F(Ie,{color:"var(--chakra-colors-error-500)"}):null,B(H,{gap:"1",flex:"1",maxWidth:"100%",children:[F(z.Title,{css:Tv,"aria-label":`${t.title}`,children:t.title}),t.description?F(z.Title,{css:_v,"aria-label":`${t.description}`,children:t.description}):null]})]}),t.action||t.meta?.closable?B(H,{flexDirection:"row",children:[t.action?F(Ce,{css:Mv,label:t.action.label,size:"small",variant:"info"===t.type?"primary":"secondary",onClick:()=>{t?.action?.onClick&&t.action.onClick(),Vv[e].dismiss()}}):null,t.meta?.closable?F(Ce,{css:Dv,label:t.meta.closableLabel,"aria-label":t.meta?.closableLabel||"Dismiss",leftIcon:F(Te,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>Vv[e].dismiss()}):null]}):null]})})},e)));export{Tl as AnalysisWidget,tv as Avatar,cv as Badge,jr as BaseMap,rg as Breadcrumb,Ce as Button,Pt as Checkbox,fn as CheckboxList,jt as CheckboxOptionCard,lt as CloseButton,zr as ClusterPoint,El as ExtendableCard,sg as Footer,at as IconButton,Ar as IconMarker,Br as IconMarkers,bv as InlineMessage,er as InputWithUnits,Qa as ItemCount,ga as LayerGroup,va as LayerGroupContainer,fa as LayerItem,wa as LayerParameters,Ma as LegendItem,sl as List,bt as MapControlsToolbar,ia as MapPopUp,gt as Menu,fg as MobileTabBar,Ds as Modal,St as MultiActionButton,jg as Navbar,Fg as NavigationRail,Zt as OptionCard,hl as Pagination,Hs as Panel,sr as Password,Cv as ProgressBar,Ba as QualitativeAttribute,Ut as Radio,Xt as RadioGroup,vr as RadioList,rt as SSOButtons,Xa as ScaleBar,Qn as Select,Qf as Sheet,Hr as SimpleMapPin,on as Slider,yr as SliderInput,Lv as StepProgressIndicator,ln as Switch,Kg as TabBar,wl as Table,$l as TableCell,Cl as TableRow,Yn as Tag,On as TextInput,Rr as Textarea,Iv as Toast,xt as Toolbar,Rt as Tooltip,ge as designSystemStyles,ve as getThemedColor,jv as showToast};
|